Mercurial > emacs
changeset 15662:38c4c8679068
(display-time): Fix start time for run-at-time.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 13 Jul 1996 17:53:53 +0000 |
parents | 96debed5fb36 |
children | 4f762e6ae80a |
files | lisp/time.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/time.el Sat Jul 13 17:50:47 1996 +0000 +++ b/lisp/time.el Sat Jul 13 17:53:53 1996 +0000 @@ -71,7 +71,10 @@ ;; Setup the time timer. (and display-time-timer (cancel-timer display-time-timer)) (setq display-time-timer - (run-at-time nil display-time-interval 'display-time-event-handler)) + ;; Start timer at the beginning of the current minute so that + ;; it updates as soon as the minute changes. + (run-at-time (apply 'encode-time 0 (cdr (decode-time))) + display-time-interval 'display-time-event-handler)) ;; When you get new mail, clear "Mail" from the mode line. (add-hook 'rmail-after-get-new-mail-hook 'display-time-event-handler))