aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-23 07:52:33 +0000
committerRichard M. Stallman1993-11-23 07:52:33 +0000
commit0744bf6404c89394dc3577556f923736ad8eb82c (patch)
treeff6282587637d2e860558cba17f2890d996227aa
parent9cd784736483f223873f3c04e9198e8913da16dc (diff)
downloademacs-0744bf6404c89394dc3577556f923736ad8eb82c.tar.gz
emacs-0744bf6404c89394dc3577556f923736ad8eb82c.zip
(comint-preinput-scroll-to-bottom): If SCROLL is `this',
don't bother with walk-windows; just hack the selected window.
-rw-r--r--lisp/comint.el22
1 files changed, 12 insertions, 10 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index bdb8867fb23..d9e48f19734 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1172,16 +1172,18 @@ This function should be a pre-command hook."
1172 (scroll comint-scroll-to-bottom-on-input)) 1172 (scroll comint-scroll-to-bottom-on-input))
1173 (if (and process (< (point) (process-mark process)) 1173 (if (and process (< (point) (process-mark process))
1174 scroll (not (window-minibuffer-p selected))) 1174 scroll (not (window-minibuffer-p selected)))
1175 (walk-windows 1175 (if (eq scroll 'this)
1176 (function (lambda (window) 1176 (goto-char (point-max))
1177 (if (and (eq (window-buffer window) current) 1177 (walk-windows
1178 (or (eq scroll t) (eq scroll 'all) 1178 (function (lambda (window)
1179 (and (eq scroll 'this) (eq selected window)))) 1179 (if (and (eq (window-buffer window) current)
1180 (progn 1180 (or (eq scroll t) (eq scroll 'all)
1181 (select-window window) 1181 (and (eq scroll 'this) (eq selected window))))
1182 (goto-char (point-max)) 1182 (progn
1183 (select-window selected))))) 1183 (select-window window)
1184 'not-minibuf t))))) 1184 (goto-char (point-max))
1185 (select-window selected)))))
1186 'not-minibuf t))))))
1185 1187
1186(defun comint-postoutput-scroll-to-bottom (string) 1188(defun comint-postoutput-scroll-to-bottom (string)
1187 "Go to the end of buffer in all windows showing it. 1189 "Go to the end of buffer in all windows showing it.