From: Shitikanth Kashyap Date: Mon, 12 Apr 2021 08:43:42 +0000 (+0200) Subject: Fix python-shell-switch-to-shell redisplay bug X-Git-Tag: emacs-28.0.90~2887 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2ab4cec7a762e8fe641cde00e6b299a92301cac;p=emacs.git Fix python-shell-switch-to-shell redisplay bug * lisp/progmodes/python.el (python-shell-switch-to-shell): Redisplay the switched-to window faster (bug#47679). Copyright-paperwork-exempt: yes --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e5c15d148f8..30721c7a577 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -3385,7 +3385,8 @@ user-friendly message if there's no process running; defaults to t when called interactively." (interactive "p") (pop-to-buffer - (process-buffer (python-shell-get-process-or-error msg)) nil t)) + (process-buffer (python-shell-get-process-or-error msg)) + nil 'mark-for-redisplay)) (defun python-shell-send-setup-code () "Send all setup code for shell.