diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-07-08 13:44:42 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-07-08 13:44:42 +0000 |
commit | ae5cf18e426ab831baf530f178372b84d24d93dd (patch) | |
tree | 244bd7fd2d159f9ba40b939e013e8f8ebeb74389 /lisp/comint.el | |
parent | 3c88bdc5607cbf2173a83afcc2102e7001c3e326 (diff) | |
download | emacs-ae5cf18e426ab831baf530f178372b84d24d93dd.tar.gz |
(comint-postoutput-scroll-to-bottom)
(comint-show-maximum-output): Take scroll-margin into consideration.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r-- | lisp/comint.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 188af8a3b0b..99ea2c44436 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1818,7 +1818,7 @@ This function should be in the list `comint-output-filter-functions'." (= (point) (point-max))) (save-excursion (goto-char (point-max)) - (recenter -1))) + (recenter (- -1 scroll-margin)))) (select-window selected))))) nil t)) (set-buffer current)))) @@ -1852,7 +1852,7 @@ This function could be on `comint-output-filter-functions' or bound to a key." "Put the end of the buffer at the bottom of the window." (interactive) (goto-char (point-max)) - (recenter -1)) + (recenter (- -1 scroll-margin))) (defun comint-get-old-input-default () "Default for `comint-get-old-input'. |