Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 11186:24c5bc6bfcaa legacy-trunk
(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.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Tue, 10 Aug 1999 21:49:00 +0000 |
| parents | bbd035e5a972 |
| children | d2573dbf6852 |
line wrap: on
line diff
--- a/Misc/python-mode.el Tue Aug 10 20:09:38 1999 +0000 +++ b/Misc/python-mode.el Tue Aug 10 21:49:00 1999 +0000 @@ -1207,6 +1207,9 @@ 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)
