aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2014-07-28 00:58:06 -0300
committerFabián Ezequiel Gallina2014-07-28 00:58:06 -0300
commit4256626a7ac486446f4dea9c12df3057053825a7 (patch)
treec972b938446045ea3fc256a1e9227cc1b38e086c /lisp/progmodes/python.el
parentca43b536253239560953b7755bc3fe154a559861 (diff)
downloademacs-4256626a7ac486446f4dea9c12df3057053825a7.tar.gz
emacs-4256626a7ac486446f4dea9c12df3057053825a7.zip
Prevent Python process shell buffer to pop twice.
* lisp/progmodes/python.el (python-shell-switch-to-shell): Do not call pop-to-buffer.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index f7556bcb3a9..5ec2b865a46 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2770,7 +2770,7 @@ If DELETE is non-nil, delete the file afterwards."
2770(defun python-shell-switch-to-shell () 2770(defun python-shell-switch-to-shell ()
2771 "Switch to inferior Python process buffer." 2771 "Switch to inferior Python process buffer."
2772 (interactive) 2772 (interactive)
2773 (pop-to-buffer (process-buffer (python-shell-get-or-create-process)) t)) 2773 (process-buffer (python-shell-get-or-create-process)) t)
2774 2774
2775(defun python-shell-send-setup-code () 2775(defun python-shell-send-setup-code ()
2776 "Send all setup code for shell. 2776 "Send all setup code for shell.