Revert "Make `M-x run-python' select the window again"

This reverts commit aa2872a127.

This led to a test failure.
This commit is contained in:
Lars Ingebrigtsen 2021-12-10 13:07:24 +01:00
parent aa2872a127
commit 5708da48d1

View file

@ -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 ()