Mercurial > emacs
changeset 9540:cde03222210e
(rmail-summary-previous-all)
(rmail-summary-next-all): Don't move forward to the end of the buffer.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 15 Oct 1994 10:18:02 +0000 |
parents | 164a7cb8d0ea |
children | 449e024f13be |
files | lisp/mail/rmailsum.el |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmailsum.el Sat Oct 15 10:16:09 1994 +0000 +++ b/lisp/mail/rmailsum.el Sat Oct 15 10:18:02 1994 +0000 @@ -379,11 +379,17 @@ (defun rmail-summary-next-all (&optional number) (interactive "p") (forward-line (if number number 1)) + ;; It doesn't look nice to move forward past the last message line. + (and (eobp) (> number 0) + (forward-line -1)) (display-buffer rmail-buffer)) (defun rmail-summary-previous-all (&optional number) (interactive "p") (forward-line (- (if number number 1))) + ;; It doesn't look nice to move forward past the last message line. + (and (eobp) (< number 0) + (forward-line -1)) (display-buffer rmail-buffer)) (defun rmail-summary-next-msg (&optional number)