>From 247dcc5e0bb0414b72feac1b4012db18f334b8da Mon Sep 17 00:00:00 2001 From: Ivan Kanis Date: Thu, 24 Mar 2011 19:24:13 +0100 Subject: [PATCH 09/13] fix stray prev-appt-display-count, don't set app-display-count to nil --- appt.el | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/appt.el b/appt.el index a940831..48184ea 100644 --- a/appt.el +++ b/appt.el @@ -314,8 +314,7 @@ displayed in a window: appt-comp-time appt-warn-time min-to-app) (save-excursion (appt-check-diary force cur-comp-time) - (setq appt-mode-string nil - appt-display-count nil) + (setq appt-mode-string nil) ;; If there are entries in the list, and the user wants a ;; message issued, get the first time off of the list and ;; calculate the number of minutes until the appointment. @@ -347,7 +346,7 @@ displayed in a window: (when (and (<= min-to-app appt-warn-time) (>= min-to-app 0)) ;; This is true every appt-display-interval minutes. - (if (zerop (mod prev-appt-display-count appt-display-interval)) + (if (zerop (mod appt-display-count appt-display-interval)) (appt-display-message (cadr (car appt-time-msg-list)) min-to-app)) (setq appt-display-count (1+ appt-display-count)) -- 1.7.1