bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#31398: 27.0.50; run-python doesn't make the python buffer the curren


From: Tino Calancha
Subject: bug#31398: 27.0.50; run-python doesn't make the python buffer the current one
Date: Thu, 10 May 2018 16:44:45 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Tino Calancha <address@hidden> writes:


I must use `pop-to-buffer', otherwise the buffer is shown in two
windows:
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 01af500786..a09ca2f2f2 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2846,7 +2846,7 @@ run-python
          (python-shell-make-comint
           (or cmd (python-shell-calculate-command))
           (python-shell-get-process-name dedicated) show)))
-    (pop-to-buffer-same-window buffer)
+    (pop-to-buffer buffer)
     (get-buffer-process buffer)))
 
 (defun run-python-internal ()





reply via email to

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