From 338af9213d6cb47da9c1835d20d8db27b915b3d1 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 17 Sep 2021 18:37:51 +0200 Subject: [PATCH] Tweak how term-emulate-terminal selects windows * lisp/term.el (term-emulate-terminal): Don't record the selection of the window here, because we're not doing a user-level window selection, but just selecting the window for internal purposes (bug#41984). --- lisp/term.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/term.el b/lisp/term.el index caa3b39be49..42b2e5a2481 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -3126,7 +3126,7 @@ See `term-prompt-regexp'." (setq win (next-window win nil t)) (when (eq (window-buffer win) (process-buffer proc)) (let ((scroll term-scroll-to-bottom-on-output)) - (select-window win) + (select-window win t) (when (or (= (point) save-marker) (eq scroll t) (eq scroll 'all) ;; Maybe user wants point to jump to the end. -- 2.39.5