From: Glenn Morris Date: Mon, 14 Nov 2011 02:01:00 +0000 (-0800) Subject: * lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator. X-Git-Tag: emacs-pretest-24.0.92~197 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d3cfca60276d7d1e29cb2ee5e7729141b86b2fb5;p=emacs.git * lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 676c0c6b180..ea27df043f0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2011-11-14 Glenn Morris + * 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. diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 4b3441a8cdc..76c9b87f881 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -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."))))