comparison lisp/comint.el @ 90201:fbb2bea03df9

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-69 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 474-484) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 88-91) - Merge from emacs--cvs-trunk--0 - Update FSF's address in GPL notices - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 14 Jul 2005 08:02:00 +0000
parents f9a65d7ebd29 20da0da3a956
children 187d6a1f84f7
comparison
equal deleted inserted replaced
90200:f9a65d7ebd29 90201:fbb2bea03df9
1816 ;; ends at the bottom of the window. 1816 ;; ends at the bottom of the window.
1817 (if (and comint-scroll-show-maximum-output 1817 (if (and comint-scroll-show-maximum-output
1818 (= (point) (point-max))) 1818 (= (point) (point-max)))
1819 (save-excursion 1819 (save-excursion
1820 (goto-char (point-max)) 1820 (goto-char (point-max))
1821 (recenter -1))) 1821 (recenter (- -1 scroll-margin))))
1822 (select-window selected))))) 1822 (select-window selected)))))
1823 nil t)) 1823 nil t))
1824 (set-buffer current)))) 1824 (set-buffer current))))
1825 1825
1826 (defun comint-truncate-buffer (&optional string) 1826 (defun comint-truncate-buffer (&optional string)
1850 1850
1851 (defun comint-show-maximum-output () 1851 (defun comint-show-maximum-output ()
1852 "Put the end of the buffer at the bottom of the window." 1852 "Put the end of the buffer at the bottom of the window."
1853 (interactive) 1853 (interactive)
1854 (goto-char (point-max)) 1854 (goto-char (point-max))
1855 (recenter -1)) 1855 (recenter (- -1 scroll-margin)))
1856 1856
1857 (defun comint-get-old-input-default () 1857 (defun comint-get-old-input-default ()
1858 "Default for `comint-get-old-input'. 1858 "Default for `comint-get-old-input'.
1859 If `comint-use-prompt-regexp' is nil, then either 1859 If `comint-use-prompt-regexp' is nil, then either
1860 return the current input field, if point is on an input field, or the 1860 return the current input field, if point is on an input field, or the