From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: appt-make-list too aggressive? Date: Tue, 22 Feb 2005 12:16:42 -0700 Message-ID: <381eotF5h4ihrU1@individual.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109101422 23652 80.91.229.2 (22 Feb 2005 19:43:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2005 19:43:42 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 20:43:42 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3fwP-0003DH-6h for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Feb 2005 20:43:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3gDb-00066U-Rq for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Feb 2005 15:01:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3gCd-0005iH-Nm for bug-gnu-emacs@gnu.org; Tue, 22 Feb 2005 15:00:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3gCa-0005h8-98 for bug-gnu-emacs@gnu.org; Tue, 22 Feb 2005 15:00:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3g8L-0004ko-LD for bug-gnu-emacs@gnu.org; Tue, 22 Feb 2005 14:55:49 -0500 Original-Received: from [216.168.1.22] (helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D3fWh-0005eA-92 for bug-gnu-emacs@gnu.org; Tue, 22 Feb 2005 14:16:55 -0500 Original-Received: from mail.fu-berlin.de ([130.133.1.2]:4162) by trinity.supernews.net with esmtp (Exim 4.42 (FreeBSD)) id 1D3fWf-0003Js-E7 for gnu-emacs-bug@moderators.isc.org; Tue, 22 Feb 2005 19:16:53 +0000 Original-Received: from curry.zedat.fu-berlin.de ([160.45.10.36]) by Mail.FU-Berlin.DE (Exim 4.42) for gnu-emacs-bug@moderators.isc.org with esmtp id <1D3fWY-000FFU-Be>; Tue, 22 Feb 2005 20:16:46 +0100 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Tue, 22 Feb 2005 20:16:46 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: individual.net!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 23 X-Orig-X-Trace: individual.net MzX6dtrFLuC/UOncFjF1mw5GNViml+F40XVwBj5XV+xy8/QcA= User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geb-bug-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.bugs:10786 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10786 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