]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak how term-emulate-terminal selects windows
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 Sep 2021 16:37:51 +0000 (18:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 Sep 2021 16:39:02 +0000 (18:39 +0200)
* 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

index caa3b39be499aa67564fb517fa053f14ae03b0b9..42b2e5a2481941978567f2a72cbf2194d0b64fa1 100644 (file)
@@ -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.