aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-10-07 20:12:26 -0400
committerStefan Monnier2012-10-07 20:12:26 -0400
commit5acd2b3ece740bbe487e9474f30665317db6f190 (patch)
treeaed118c7a29524a76fb21aacc16c2daa73060359
parent795b1482a9e314cda32d62ac2988f573d359366e (diff)
downloademacs-5acd2b3ece740bbe487e9474f30665317db6f190.tar.gz
emacs-5acd2b3ece740bbe487e9474f30665317db6f190.zip
* lisp/comint.el (comint-preinput-scroll-to-bottom): Preserve the
frame-selected-windows.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/comint.el9
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b0f896aa086..eaeca11ca09 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * comint.el (comint-preinput-scroll-to-bottom): Preserve the
4 frame-selected-windows.
5
12012-10-07 Stefan Monnier <monnier@iro.umontreal.ca> 62012-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * subr.el (read-passwd-map): Don't use `defconst' (bug#12597). 8 * subr.el (read-passwd-map): Don't use `defconst' (bug#12597).
diff --git a/lisp/comint.el b/lisp/comint.el
index 080b12e0cdf..cff9afee0df 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -2088,8 +2088,7 @@ This function should be a pre-command hook."
2088 (if (and comint-scroll-to-bottom-on-input 2088 (if (and comint-scroll-to-bottom-on-input
2089 (memq this-command '(self-insert-command comint-magic-space yank 2089 (memq this-command '(self-insert-command comint-magic-space yank
2090 hilit-yank))) 2090 hilit-yank)))
2091 (let* ((selected (selected-window)) 2091 (let* ((current (current-buffer))
2092 (current (current-buffer))
2093 (process (get-buffer-process current)) 2092 (process (get-buffer-process current))
2094 (scroll comint-scroll-to-bottom-on-input)) 2093 (scroll comint-scroll-to-bottom-on-input))
2095 (if (and process (< (point) (process-mark process))) 2094 (if (and process (< (point) (process-mark process)))
@@ -2099,10 +2098,8 @@ This function should be a pre-command hook."
2099 (lambda (window) 2098 (lambda (window)
2100 (if (and (eq (window-buffer window) current) 2099 (if (and (eq (window-buffer window) current)
2101 (or (eq scroll t) (eq scroll 'all))) 2100 (or (eq scroll t) (eq scroll 'all)))
2102 (progn 2101 (with-selected-window window
2103 (select-window window) 2102 (goto-char (point-max)))))
2104 (goto-char (point-max))
2105 (select-window selected))))
2106 nil t)))))) 2103 nil t))))))
2107 2104
2108(defvar follow-mode) 2105(defvar follow-mode)