From: Barry Warsaw Date: Tue, 10 Aug 1999 21:49:00 +0000 (+0000) Subject: (py-shell): Set the default shell if not set yet. It's sometimes X-Git-Tag: v1.6a1~1020 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50765abb29cb3a124c1696a8f29c69db267eb624;p=thirdparty%2FPython%2Fcpython.git (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. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index d7818f1c2782..0dbf202113d3 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -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)