diff options
| author | Richard M. Stallman | 1994-08-09 05:42:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-08-09 05:42:35 +0000 |
| commit | bd21cb17b7d63dde6f81e0076c8e41c5f9f45475 (patch) | |
| tree | 41cac8e6879976cae6f10af494be50f8986db6ef | |
| parent | 7250968eba3eea4b41392ed86523f0e2f0677002 (diff) | |
| download | emacs-bd21cb17b7d63dde6f81e0076c8e41c5f9f45475.tar.gz emacs-bd21cb17b7d63dde6f81e0076c8e41c5f9f45475.zip | |
(appt-check): Update on first wakeup after midnight
even if that's not precisely 12:01.
| -rw-r--r-- | lisp/calendar/appt.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index 20f61facccb..68a60a708be 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el | |||
| @@ -246,10 +246,11 @@ Therefore, you need to have `(display-time)' in your .emacs file." | |||
| 246 | (substring (current-time-string) 14 16))) | 246 | (substring (current-time-string) 14 16))) |
| 247 | (cur-comp-time (+ (* cur-hour 60) cur-min))) | 247 | (cur-comp-time (+ (* cur-hour 60) cur-min))) |
| 248 | 248 | ||
| 249 | ;; If the time is 12:01am, we should update our | 249 | ;; At the first check after 12:01am, we should update our |
| 250 | ;; appointments to todays list. | 250 | ;; appointments to today's list. |
| 251 | 251 | ||
| 252 | (if (= cur-comp-time 1) | 252 | (if (and (>= cur-comp-time 1) |
| 253 | (<= cur-comp-time appt-display-interval)) | ||
| 253 | (if (and view-diary-entries-initially appt-display-diary) | 254 | (if (and view-diary-entries-initially appt-display-diary) |
| 254 | (diary) | 255 | (diary) |
| 255 | (let ((diary-display-hook 'appt-make-list)) | 256 | (let ((diary-display-hook 'appt-make-list)) |