From 06fb342f476dfa26357f744a033862de666b5ce2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 30 Nov 1995 00:30:38 +0000 Subject: (rmail-summary-get-new-mail): Don't call rmail-summary-goto-msg if msg is 0. --- lisp/mail/rmailsum.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index b0208a102c0..83ab968a654 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el @@ -1051,7 +1051,8 @@ advance to the previous message." ;; Get the proper new message number. (setq msg rmail-current-message)) ;; Make sure that message is displayed. - (rmail-summary-goto-msg msg))) + (or (zerop msg) + (rmail-summary-goto-msg msg)))) (defun rmail-summary-input (filename) "Run Rmail on file FILENAME." -- cgit v1.2.1