[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: appt-make-list too aggressive?
From: |
Kevin Rodgers |
Subject: |
Re: appt-make-list too aggressive? |
Date: |
Tue, 22 Feb 2005 12:16:42 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Jim Ottaway wrote:
> The function `appt-make-list' clears all prior appointments when it
> parses the diary file [or files]. So if I have `appt-make-list' in
> `diary-hook' and I add an appointment using `appt-add' before I look
> at my diary, that appointment is deleted from `appt-time-msg-list'. I
> would have expected `appt-make-list' to keep any appointments added by
> appt-add.
Well, it's behaving as documented (C-h f):
Create the appointments list from todays diary buffer.
And the code is very explicit:
;; Clear the appointments list, then fill it in from the diary.
(setq appt-time-msg-list nil)
The problem is even if you make sure appt-make-list is called before
appt-add, to initialize appt-time-msg-list, it could get called again
(like at midnight) and overwrite the appointment list.
--
Kevin Rodgers