Commit 50765abb authored by Barry Warsaw's avatar Barry Warsaw

(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.
parent abc2f960
...@@ -1207,6 +1207,9 @@ interaction between undo and process filters; the same problem exists in ...@@ -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 non-Python process buffers using the default (Emacs-supplied) process
filter." filter."
(interactive "P") (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)) (let ((args py-which-args))
(when (and argprompt (when (and argprompt
(interactive-p) (interactive-p)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment