(prev-appt-display-count appt-display-count)
;; Convert current time to minutes after midnight (12.01am = 1).
(now (decode-time))
- (now-mins (+ (* 60 (nth 2 now)) (nth 1 now)))
+ (now-mins (+ (* 60 (decoded-time-hour now)) (decoded-time-minute now)))
appt-mins appt-warn-time min-to-app min-list string-list)
(save-excursion ; FIXME ?
;; At first check in any day, update appointments to today's list.
;; Convert current time to minutes after midnight (12:01am = 1),
;; and remove elements in the list that are in the past.
(let* ((now (decode-time))
- (now-mins (+ (* 60 (nth 2 now)) (nth 1 now))))
+ (now-mins (+ (* 60 (decoded-time-hour now))
+ (decoded-time-minute now))))
(while (and appt-time-msg-list
(< (caar (car appt-time-msg-list)) now-mins))
(setq appt-time-msg-list (cdr appt-time-msg-list)))))))