Commit d3cfca60 authored by Glenn Morris's avatar Glenn Morris

* lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.

parent 71e027ac
2011-11-14 Glenn Morris <rgm@gnu.org> 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) * mail/rmailsum.el (rmail-summary, rmail-new-summary)
(rmail-new-summary-1): Allow empty summaries. (Bug#9964) (rmail-new-summary-1): Allow empty summaries. (Bug#9964)
(rmail-new-summary): Remember that rmail-summary-buffer is buffer-local. (rmail-new-summary): Remember that rmail-summary-buffer is buffer-local.
......
...@@ -2602,6 +2602,8 @@ Ask the user whether to add that list name to `mail-mailing-lists'." ...@@ -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.\"." "Return nil if there is mail, else \"No mail.\"."
(if (zerop rmail-total-messages) (if (zerop rmail-total-messages)
(save-excursion (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 (with-current-buffer rmail-view-buffer
(erase-buffer) (erase-buffer)
"No mail.")))) "No mail."))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment