Commit 5acd2b3e authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/comint.el (comint-preinput-scroll-to-bottom): Preserve the

parent 795b1482
2012-10-08 Stefan Monnier <>
* comint.el (comint-preinput-scroll-to-bottom): Preserve the
2012-10-07 Stefan Monnier <>
* subr.el (read-passwd-map): Don't use `defconst' (bug#12597).
......@@ -2088,8 +2088,7 @@ This function should be a pre-command hook."
(if (and comint-scroll-to-bottom-on-input
(memq this-command '(self-insert-command comint-magic-space yank
(let* ((selected (selected-window))
(current (current-buffer))
(let* ((current (current-buffer))
(process (get-buffer-process current))
(scroll comint-scroll-to-bottom-on-input))
(if (and process (< (point) (process-mark process)))
......@@ -2099,10 +2098,8 @@ This function should be a pre-command hook."
(lambda (window)
(if (and (eq (window-buffer window) current)
(or (eq scroll t) (eq scroll 'all)))
(select-window window)
(goto-char (point-max))
(select-window selected))))
(with-selected-window window
(goto-char (point-max)))))
nil t))))))
(defvar follow-mode)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment