aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-21 00:48:18 +0000
committerRichard M. Stallman1994-10-21 00:48:18 +0000
commit07074849f0139889d8aafbe88d7fcb1c04286184 (patch)
tree3b971d74633b50d6e5eb982e749b2255cea21614
parentb5b4d3606f855d2e3982d75082e8d52d29920115 (diff)
downloademacs-07074849f0139889d8aafbe88d7fcb1c04286184.tar.gz
emacs-07074849f0139889d8aafbe88d7fcb1c04286184.zip
(rmail-get-new-mail): If display-time is in use,
call display-time-filter to update the Mail indicator.
-rw-r--r--lisp/mail/rmail.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index f696ddfa12f..6a3a1886e59 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -870,14 +870,10 @@ This function runs `rmail-get-new-mail-hook' before saving the updated file."
870 (rmail-update-summary))) 870 (rmail-update-summary)))
871 (message "%d new message%s read" 871 (message "%d new message%s read"
872 new-messages (if (= 1 new-messages) "" "s")) 872 new-messages (if (= 1 new-messages) "" "s"))
873 (and (boundp 'display-time-string) 873 ;; Update the displayed time, since that will clear out
874 (stringp display-time-string) 874 ;; the flag that says you have mail.
875 (string-match " Mail" display-time-string) 875 (if (eq (process-status "display-time") 'run)
876 (setq display-time-string 876 (display-time-filter display-time-process ""))))
877 (concat
878 (substring display-time-string 0 (match-beginning 0))
879 (substring display-time-string (match-end 0))))
880 (force-mode-line-update 'all))))
881 ;; Don't leave the buffer screwed up if we get a disk-full error. 877 ;; Don't leave the buffer screwed up if we get a disk-full error.
882 (rmail-show-message))) 878 (rmail-show-message)))
883 879