From: Fabián Ezequiel Gallina Date: Mon, 28 Jul 2014 03:58:06 +0000 (-0300) Subject: Prevent Python process shell buffer to pop twice. X-Git-Tag: emacs-25.0.90~2636^3~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4256626a7ac486446f4dea9c12df3057053825a7;p=emacs.git Prevent Python process shell buffer to pop twice. * lisp/progmodes/python.el (python-shell-switch-to-shell): Do not call pop-to-buffer. --- 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.