(rmail-summary-get-new-mail): Don't call rmail-summary-goto-msg if msg is 0.
authorRichard M. Stallman <rms@gnu.org>
Thu, 30 Nov 1995 00:30:38 +0000 (00:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 30 Nov 1995 00:30:38 +0000 (00:30 +0000)
lisp/mail/rmailsum.el

index b0208a1..83ab968 100644 (file)
@@ -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."