emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 5708da4: Revert "Make `M-x run-python' select the window again"


From: Lars Ingebrigtsen
Subject: emacs-28 5708da4: Revert "Make `M-x run-python' select the window again"
Date: Fri, 10 Dec 2021 07:07:41 -0500 (EST)

branch: emacs-28
commit 5708da48d1c7017b937e0fbfeb7de77bb3ba084e
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Revert "Make `M-x run-python' select the window again"
    
    This reverts commit aa2872a12770282ede3548ed3fcab00c5a5b9f18.
    
    This led to a test failure.
---
 lisp/progmodes/python.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 6357c4f..f1c3e75 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2994,9 +2994,8 @@ killed."
                   (mapconcat #'identity args " ")))
             (with-current-buffer buffer
               (inferior-python-mode))
+            (when show (display-buffer buffer))
             (and internal (set-process-query-on-exit-flag process nil))))
-        (when show
-          (pop-to-buffer proc-buffer-name))
         proc-buffer-name))))
 
 ;;;###autoload
@@ -3028,6 +3027,7 @@ process buffer for a list of commands.)"
          (python-shell-make-comint
           (or cmd (python-shell-calculate-command))
           (python-shell-get-process-name dedicated) show)))
+    (set-buffer buffer)
     (get-buffer-process buffer)))
 
 (defun run-python-internal ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]