changeset 9633:3c1d373d9125

(rmail-get-new-mail): If display-time is in use, call display-time-filter to update the Mail indicator.
author Richard M. Stallman <rms@gnu.org>
date Fri, 21 Oct 1994 00:48:18 +0000
parents 833a19698ef3
children 85728d093edd
files lisp/mail/rmail.el
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Thu Oct 20 21:19:47 1994 +0000
+++ b/lisp/mail/rmail.el	Fri Oct 21 00:48:18 1994 +0000
@@ -870,14 +870,10 @@
 		(rmail-update-summary)))
 	  (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
-		     (concat
-		      (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.
     (rmail-show-message)))