aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert1996-09-03 18:16:06 +0000
committerPaul Eggert1996-09-03 18:16:06 +0000
commitd694e9df527c072fffc03e7769902f92a791adf4 (patch)
treec65088075ca18d19dfb06e2b4c547e69ef4a3cc0 /lisp
parent65adbc85ce88c58a797cf30b8564462dc165b807 (diff)
downloademacs-d694e9df527c072fffc03e7769902f92a791adf4.tar.gz
emacs-d694e9df527c072fffc03e7769902f92a791adf4.zip
(display-time): Use new run-at-time functionality to
fix display glitches when display-time-interval != 60.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/time.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/time.el b/lisp/time.el
index df819d25677..17abe7f4965 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -89,9 +89,8 @@ This runs the normal hook `display-time-hook' after each update."
89 (append global-mode-string '(display-time-string)))) 89 (append global-mode-string '(display-time-string))))
90 ;; Set up the time timer. 90 ;; Set up the time timer.
91 (setq display-time-timer 91 (setq display-time-timer
92 ;; Start timer at the beginning of the next minute. 92 (run-at-time t display-time-interval
93 (run-at-time (apply 'encode-time 60 (cdr (decode-time))) 93 'display-time-event-handler))
94 display-time-interval 'display-time-event-handler))
95 ;; Make the time appear right away. 94 ;; Make the time appear right away.
96 (display-time-update) 95 (display-time-update)
97 ;; When you get new mail, clear "Mail" from the mode line. 96 ;; When you get new mail, clear "Mail" from the mode line.