changeset 13663:197f7ae5493d

(rmail-summary-get-new-mail): Don't call rmail-summary-goto-msg if msg is 0.
author Richard M. Stallman <rms@gnu.org>
date Thu, 30 Nov 1995 00:30:38 +0000
parents cb0496b98829
children dfbef4de96f0
files lisp/mail/rmailsum.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmailsum.el	Wed Nov 29 21:18:05 1995 +0000
+++ b/lisp/mail/rmailsum.el	Thu Nov 30 00:30:38 1995 +0000
@@ -1051,7 +1051,8 @@
       ;; 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."