From: Lars Ingebrigtsen Date: Sat, 7 May 2022 11:56:19 +0000 (+0200) Subject: Improve inferior-python-mode scroll behaviour X-Git-Tag: emacs-29.0.90~1910^2~934 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ccec59f2b2c5344b10fa4b006bb5dc1c59555fb1;p=emacs.git Improve inferior-python-mode scroll behaviour * lisp/progmodes/python.el (inferior-python-mode): Use scroll-convervatively instead of trying to do this with a comint filter (which produces flickering) (bug#31115). --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 11ed732d282..825e94572a7 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2646,6 +2646,7 @@ banner and the initial prompt are received separately." (defun python-comint-postoutput-scroll-to-bottom (output) "Faster version of `comint-postoutput-scroll-to-bottom'. Avoids `recenter' calls until OUTPUT is completely sent." + (declare (obsolete nil "29.1")) ; Not used. (when (and (not (string= "" output)) (python-shell-comint-end-of-output-p (ansi-color-filter-apply output))) @@ -2951,11 +2952,11 @@ variable. (setq-local comint-output-filter-functions '(ansi-color-process-output python-shell-comint-watch-for-first-prompt-output-filter - python-comint-postoutput-scroll-to-bottom comint-watch-for-password-prompt)) (setq-local comint-highlight-input nil) (setq-local compilation-error-regexp-alist python-shell-compilation-regexp-alist) + (setq-local scroll-conservatively 1) (add-hook 'completion-at-point-functions #'python-shell-completion-at-point nil 'local) (define-key inferior-python-mode-map "\t"