summaryrefslogtreecommitdiff
path: root/lisp/time.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-07-17 20:14:16 +0000
committerKarl Heuer <kwzh@gnu.org>1996-07-17 20:14:16 +0000
commitc513a845e8387c6c2e1ecc34805fd6d80d4aef92 (patch)
tree62f45376436ac14ac0cf1874c15938b84b9bf800 /lisp/time.el
parent840797eed72533d2a46de3e808eb58609cdf4cf1 (diff)
downloademacs-c513a845e8387c6c2e1ecc34805fd6d80d4aef92.tar.gz
(display-time): Starting time should be future, not past.
Diffstat (limited to 'lisp/time.el')
-rw-r--r--lisp/time.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/time.el b/lisp/time.el
index 08c2f86c82c..dfcace7c5d2 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -71,10 +71,9 @@ After each update, `display-time-hook' is run with `run-hooks'."
;; 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))