emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] Duplicate appointments with planner-appt


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] Duplicate appointments with planner-appt
Date: Thu, 23 Jun 2005 09:49:19 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> Romain Francoise <address@hidden> writes:

> (require 'planner-appt)

> (planner-appt-use-tasks-and-schedule)
> (planner-appt-insinuate)
> (appt-activate 1)

> Let's say I add one schedule appt.  Each time I save the file (C-u M-~
> C-x C-s), the function named `planner-appt-add-appts-from-schedule' adds
> an entry in the appt list even if it's already there... so I changed it
> to prevent duplicates, though both the construction of the text and the
> way I use `appt-time-msg-list' directly are total hacks.  :-)

> --- orig/planner-appt.el
> +++ mod/planner-appt.el
> @@ -1203,7 +1203,9 @@
>                       ;; Ignore if this is an appt copied from the
>                       ;; task section.
>                       (member line
> -                             --planner-appt-lines-added-to-section))
> +                             --planner-appt-lines-added-to-section)
> +                     (member (concat time " " text)
> +                             (mapcar 'cadr appt-time-msg-list)))
>             (appt-add time text)
>             ;; Remember tasks added here.
>             (setq --planner-appt-schedule-added-appts

Thank you.  

Hmm...those appointments really ought ot have been deleted before we
get to that line.

> though both the construction of the text and the way I use
> `appt-time-msg-list' directly are total hacks.  :-)

q.v. planner-appt-remember-appt, and passim!

What version of Emacs are you using? 

If you are using the CVS development version, I suspect that the real
problem is probably in planner-appt-remember-appt: the format has
changed slightly, so they might not get deleted with
planner-appt-clear-appts. The change was made 2005-02-23; I wonder
what the best way of testing for this would be?


Regards,

-- 
Jim Ottaway




reply via email to

[Prev in Thread] Current Thread [Next in Thread]