]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 676c0c6b180b9daf33f940ea6a07e8b7cd0cb0ee..ea27df043f01f7b08c4515abcb93ee78280d2cff 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 4b3441a8cdc366005d994458e09ce02f32b750c3..76c9b87f8814a747aebcc9049e34a3a11d7a15a6 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."))))