summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-07-21 18:38:38 +0000
committerRichard M. Stallman <rms@gnu.org>1996-07-21 18:38:38 +0000
commitc22161a406eeb054583bb1249597fe4e2439ec59 (patch)
tree9ddd1af125a86cfb2940101407a4913e3e54c8f8 /lisp
parent6ddc496fa7ef72ee2d39701aaf14f8b3c767ae56 (diff)
downloademacs-c22161a406eeb054583bb1249597fe4e2439ec59.tar.gz
(display-time): Call display-time-event-handler directly
to make the time appear right away.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/time.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/time.el b/lisp/time.el
index dfcace7c5d2..1008dac31fc 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -74,6 +74,8 @@ After each update, `display-time-hook' is run with `run-hooks'."
;; 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))
+ ;; Make the time appear right away.
+ (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))