Commit 07074849 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-get-new-mail): If display-time is in use,

call display-time-filter to update the Mail indicator.
parent b5b4d360
......@@ -870,14 +870,10 @@ This function runs `rmail-get-new-mail-hook' before saving the updated file."
(message "%d new message%s read"
new-messages (if (= 1 new-messages) "" "s"))
(and (boundp 'display-time-string)
(stringp display-time-string)
(string-match " Mail" display-time-string)
(setq display-time-string
(substring display-time-string 0 (match-beginning 0))
(substring display-time-string (match-end 0))))
(force-mode-line-update 'all))))
;; Update the displayed time, since that will clear out
;; the flag that says you have mail.
(if (eq (process-status "display-time") 'run)
(display-time-filter display-time-process ""))))
;; Don't leave the buffer screwed up if we get a disk-full error.
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