* lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
authorGlenn Morris <rgm@gnu.org>
Mon, 14 Nov 2011 02:01:00 +0000 (18:01 -0800)
committerGlenn Morris <rgm@gnu.org>
Mon, 14 Nov 2011 02:01:00 +0000 (18:01 -0800)
lisp/ChangeLog
lisp/mail/rmail.el

index 676c0c6..ea27df0 100644 (file)
@@ -1,5 +1,7 @@
 2011-11-14  Glenn Morris  <rgm@gnu.org>
 
+       * mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
+
        * mail/rmailsum.el (rmail-summary, rmail-new-summary)
        (rmail-new-summary-1): Allow empty summaries.  (Bug#9964)
        (rmail-new-summary): Remember that rmail-summary-buffer is buffer-local.
index 4b3441a..76c9b87 100644 (file)
@@ -2602,6 +2602,8 @@ Ask the user whether to add that list name to `mail-mailing-lists'."
   "Return nil if there is mail, else \"No mail.\"."
   (if (zerop rmail-total-messages)
       (save-excursion
+       ;; Eg we deleted all the messages, so remove the old N/M mark.
+       (with-current-buffer rmail-buffer (setq mode-line-process nil))
        (with-current-buffer rmail-view-buffer
          (erase-buffer)
          "No mail."))))