From 4256626a7ac486446f4dea9c12df3057053825a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Mon, 28 Jul 2014 00:58:06 -0300 Subject: [PATCH] Prevent Python process shell buffer to pop twice. * lisp/progmodes/python.el (python-shell-switch-to-shell): Do not call pop-to-buffer. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/python.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 16ec6a08789..0dee47e5287 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2014-07-28 Fabián Ezequiel Gallina + + Prevent Python process shell buffer to pop twice. + * progmodes/python.el (python-shell-switch-to-shell): Do not call + pop-to-buffer. + 2014-07-28 Fabián Ezequiel Gallina * progmodes/python.el 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." (defun python-shell-switch-to-shell () "Switch to inferior Python process buffer." (interactive) - (pop-to-buffer (process-buffer (python-shell-get-or-create-process)) t)) + (process-buffer (python-shell-get-or-create-process)) t) (defun python-shell-send-setup-code () "Send all setup code for shell. -- 2.39.2