Commit bd21cb17 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(appt-check): Update on first wakeup after midnight

even if that's not precisely 12:01.
parent 7250968e
......@@ -246,10 +246,11 @@ Therefore, you need to have `(display-time)' in your .emacs file."
(substring (current-time-string) 14 16)))
(cur-comp-time (+ (* cur-hour 60) cur-min)))
;; If the time is 12:01am, we should update our
;; appointments to todays list.
;; At the first check after 12:01am, we should update our
;; appointments to today's list.
(if (= cur-comp-time 1)
(if (and (>= cur-comp-time 1)
(<= cur-comp-time appt-display-interval))
(if (and view-diary-entries-initially appt-display-diary)
(diary)
(let ((diary-display-hook 'appt-make-list))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment