Mercurial > emacs
comparison lisp/mail/rmail.el @ 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 | d39103e3eea2 |
children | efb97e6ec979 |
comparison
equal
deleted
inserted
replaced
9632:833a19698ef3 | 9633:3c1d373d9125 |
---|---|
868 (if (rmail-summary-exists) | 868 (if (rmail-summary-exists) |
869 (rmail-select-summary | 869 (rmail-select-summary |
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 |
884 (defun rmail-insert-inbox-text (files renamep) | 880 (defun rmail-insert-inbox-text (files renamep) |
885 (let (file tofile delete-files movemail popmail) | 881 (let (file tofile delete-files movemail popmail) |