]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 b0208a102c0a849c39362ac85f1fbfca806d1cac..83ab968a654f7faf8b456eff5cd078f86baee30b 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."