]> git.eshelyaron.com Git - emacs.git/commitdiff
(comint-postoutput-scroll-to-bottom)
authorEli Zaretskii <eliz@gnu.org>
Fri, 8 Jul 2005 13:44:42 +0000 (13:44 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 8 Jul 2005 13:44:42 +0000 (13:44 +0000)
(comint-show-maximum-output): Take scroll-margin into consideration.

lisp/comint.el

index 188af8a3b0b68660e461c658152c1897640134e2..99ea2c44436e4e4eb3dae73bbdfef14bd5c18311 100644 (file)
@@ -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'.