(py-shell): Set the default shell if not set yet. It's sometimes

convenient to call py-shell before the first Python file has been
visited.
This commit is contained in:
Barry Warsaw 1999-08-10 21:49:00 +00:00
parent abc2f960d4
commit 50765abb29
1 changed files with 3 additions and 0 deletions

View File

@ -1207,6 +1207,9 @@ interaction between undo and process filters; the same problem exists in
non-Python process buffers using the default (Emacs-supplied) process
filter."
(interactive "P")
;; Set the default shell if not already set
(when (null py-which-shell)
(py-toggle-shells py-default-interpreter))
(let ((args py-which-args))
(when (and argprompt
(interactive-p)