From: Richard M. Stallman Date: Thu, 30 Nov 1995 00:30:38 +0000 (+0000) Subject: (rmail-summary-get-new-mail): Don't call rmail-summary-goto-msg if msg is 0. X-Git-Tag: emacs-19.34~2197 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8d908f848cb5b69743d4273b4f344af0b5fbb214;p=emacs.git (rmail-summary-get-new-mail): Don't call rmail-summary-goto-msg if msg is 0. --- 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."