Mercurial > emacs
changeset 15726:8c7e66043faf
(display-time): Starting time should be future, not past.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 17 Jul 1996 20:14:16 +0000 |
parents | bf32c17c153b |
children | 6c3657019286 |
files | lisp/time.el |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/time.el Wed Jul 17 04:54:04 1996 +0000 +++ b/lisp/time.el Wed Jul 17 20:14:16 1996 +0000 @@ -71,10 +71,9 @@ ;; Setup the time timer. (and display-time-timer (cancel-timer display-time-timer)) (setq display-time-timer - ;; 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)) + ;; Start timer at the beginning of the next minute. + (run-at-time (apply 'encode-time 60 (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))