]> git.eshelyaron.com Git - emacs.git/commitdiff
(display-time): Starting time should be future, not past.
authorKarl Heuer <kwzh@gnu.org>
Wed, 17 Jul 1996 20:14:16 +0000 (20:14 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 17 Jul 1996 20:14:16 +0000 (20:14 +0000)
lisp/time.el

index 08c2f86c82c08cd41d198282ad7cee24571cb87d..dfcace7c5d2b934d63129e3b3375ddfab081beea 100644 (file)
@@ -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))