diff options
| author | Karl Heuer | 1995-04-25 22:24:40 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-04-25 22:24:40 +0000 |
| commit | ffedf987d7259afb92bed3f8b17499f6297af86f (patch) | |
| tree | 38d04d0d6a53374014b0053b465eecd573b893b3 /lisp | |
| parent | 75abbc6e6336e4f7aec041b78e3bad124a55ce95 (diff) | |
| download | emacs-ffedf987d7259afb92bed3f8b17499f6297af86f.tar.gz emacs-ffedf987d7259afb92bed3f8b17499f6297af86f.zip | |
(display-time-sentinel, display-time-filter): Use force-mode-line-update.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/time.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/time.el b/lisp/time.el index 95c761f24e5..f99cb3c5d51 100644 --- a/lisp/time.el +++ b/lisp/time.el | |||
| @@ -88,8 +88,7 @@ After each update, `display-time-hook' is run with `run-hooks'." | |||
| 88 | (or (eq (process-status proc) 'run) | 88 | (or (eq (process-status proc) 'run) |
| 89 | (setq display-time-string "")) | 89 | (setq display-time-string "")) |
| 90 | ;; Force mode-line updates | 90 | ;; Force mode-line updates |
| 91 | (save-excursion (set-buffer (other-buffer))) | 91 | (force-mode-line-update t) |
| 92 | (set-buffer-modified-p (buffer-modified-p)) | ||
| 93 | (sit-for 0)) | 92 | (sit-for 0)) |
| 94 | 93 | ||
| 95 | (defvar display-time-string-forms | 94 | (defvar display-time-string-forms |
| @@ -165,9 +164,7 @@ would give mode line times like `94/12/30 21:07:48 (UTC)'.") | |||
| 165 | (setq display-time-string | 164 | (setq display-time-string |
| 166 | (mapconcat 'eval display-time-string-forms ""))) | 165 | (mapconcat 'eval display-time-string-forms ""))) |
| 167 | (run-hooks 'display-time-hook) | 166 | (run-hooks 'display-time-hook) |
| 168 | ;; Force redisplay of all buffers' mode lines to be considered. | 167 | (force-mode-line-update) |
| 169 | (save-excursion (set-buffer (other-buffer))) | ||
| 170 | (set-buffer-modified-p (buffer-modified-p)) | ||
| 171 | ;; Do redisplay right now, if no input pending. | 168 | ;; Do redisplay right now, if no input pending. |
| 172 | (sit-for 0)) | 169 | (sit-for 0)) |
| 173 | 170 | ||