From 8d908f848cb5b69743d4273b4f344af0b5fbb214 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 30 Nov 1995 00:30:38 +0000 Subject: [PATCH] (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(-) 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." -- 2.39.2