>From 8c909e82ab3dc93fc0302a92985fd633d3f0e5b2 Mon Sep 17 00:00:00 2001 From: Ivan Kanis Date: Thu, 24 Mar 2011 18:59:24 +0100 Subject: [PATCH 06/13] don't initialize min-to-app to -1, there is no good reason --- appt.el | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/appt.el b/appt.el index 8cb011f..f6ff5c1 100644 --- a/appt.el +++ b/appt.el @@ -308,12 +308,11 @@ displayed in a window: `appt-delete-window-function' Function called to remove appointment window and buffer." (interactive "P") ; so people can force updates - (let* ((min-to-app -1) - (prev-appt-mode-string appt-mode-string) + (let* ((prev-appt-mode-string appt-mode-string) ;; Convert current time to minutes after midnight (12.01am = 1). (now (decode-time)) (cur-comp-time (+ (* 60 (nth 2 now)) (nth 1 now))) - appt-comp-time appt-warn-time) + appt-comp-time appt-warn-time min-to-app) (save-excursion (appt-check-diary force cur-comp-time) (setq appt-prev-comp-time cur-comp-time -- 1.7.1