diff options
| author | Lars Ingebrigtsen | 2021-12-10 13:07:24 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-12-10 13:07:24 +0100 |
| commit | 5708da48d1c7017b937e0fbfeb7de77bb3ba084e (patch) | |
| tree | a84b46ad9e4358a81dc86d4e87b436b91b05927a | |
| parent | aa2872a12770282ede3548ed3fcab00c5a5b9f18 (diff) | |
| download | emacs-5708da48d1c7017b937e0fbfeb7de77bb3ba084e.tar.gz emacs-5708da48d1c7017b937e0fbfeb7de77bb3ba084e.zip | |
Revert "Make `M-x run-python' select the window again"
This reverts commit aa2872a12770282ede3548ed3fcab00c5a5b9f18.
This led to a test failure.
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 6357c4f2d3e..f1c3e75bb73 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2994,9 +2994,8 @@ killed." | |||
| 2994 | (mapconcat #'identity args " "))) | 2994 | (mapconcat #'identity args " "))) |
| 2995 | (with-current-buffer buffer | 2995 | (with-current-buffer buffer |
| 2996 | (inferior-python-mode)) | 2996 | (inferior-python-mode)) |
| 2997 | (when show (display-buffer buffer)) | ||
| 2997 | (and internal (set-process-query-on-exit-flag process nil)))) | 2998 | (and internal (set-process-query-on-exit-flag process nil)))) |
| 2998 | (when show | ||
| 2999 | (pop-to-buffer proc-buffer-name)) | ||
| 3000 | proc-buffer-name)))) | 2999 | proc-buffer-name)))) |
| 3001 | 3000 | ||
| 3002 | ;;;###autoload | 3001 | ;;;###autoload |
| @@ -3028,6 +3027,7 @@ process buffer for a list of commands.)" | |||
| 3028 | (python-shell-make-comint | 3027 | (python-shell-make-comint |
| 3029 | (or cmd (python-shell-calculate-command)) | 3028 | (or cmd (python-shell-calculate-command)) |
| 3030 | (python-shell-get-process-name dedicated) show))) | 3029 | (python-shell-get-process-name dedicated) show))) |
| 3030 | (set-buffer buffer) | ||
| 3031 | (get-buffer-process buffer))) | 3031 | (get-buffer-process buffer))) |
| 3032 | 3032 | ||
| 3033 | (defun run-python-internal () | 3033 | (defun run-python-internal () |