summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-09-17 18:37:51 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-09-17 18:39:02 +0200
commit338af9213d6cb47da9c1835d20d8db27b915b3d1 (patch)
tree6239c0ebf14489a959aebb4820d962e0c447d0be /lisp/term.el
parent0ac58e89d71024177b791dc9c3d16a0f82d62aac (diff)
downloademacs-338af9213d6cb47da9c1835d20d8db27b915b3d1.tar.gz
emacs-338af9213d6cb47da9c1835d20d8db27b915b3d1.tar.bz2
emacs-338af9213d6cb47da9c1835d20d8db27b915b3d1.zip
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).
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el2
1 files changed, 1 insertions, 1 deletions
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.