[Top][All Lists]
[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
- [emacs-wiki-discuss] planner-browse-position-url quick fix, Romain Francoise, 2005/06/21
- [emacs-wiki-discuss] Re: planner-browse-position-url quick fix, Sacha Chua, 2005/06/21
- [emacs-wiki-discuss] Re: planner-browse-position-url quick fix, Romain Francoise, 2005/06/21
- [emacs-wiki-discuss] Re: planner-browse-position-url quick fix, Sacha Chua, 2005/06/22
- [emacs-wiki-discuss] Re: planner-browse-position-url quick fix, Romain Francoise, 2005/06/22
- Re: [emacs-wiki-discuss] Re: planner-browse-position-url quick fix, Jim Ottaway, 2005/06/22
- [emacs-wiki-discuss] Duplicate appointments with planner-appt (was: planner-browse-position-url quick fix), Romain Francoise, 2005/06/23
- Re: [emacs-wiki-discuss] Duplicate appointments with planner-appt,
Jim Ottaway <=
- [emacs-wiki-discuss] Re: Duplicate appointments with planner-appt, Romain Francoise, 2005/06/23
- Re: [emacs-wiki-discuss] Re: Duplicate appointments with planner-appt, Jim Ottaway, 2005/06/23
- Re: [emacs-wiki-discuss] Re: Duplicate appointments with planner-appt, Jim Ottaway, 2005/06/23
- [emacs-wiki-discuss] Re: Duplicate appointments with planner-appt, Romain Francoise, 2005/06/23
- [emacs-wiki-discuss] trailing whitespace and such (was: Re: Duplicate appointments with planner-appt), Vadim Nasardinov, 2005/06/23
- [emacs-wiki-discuss] Re: trailing whitespace and such, Romain Francoise, 2005/06/23
- Re: [emacs-wiki-discuss] Re: Duplicate appointments with planner-appt, Jim Ottaway, 2005/06/23
- Re: [emacs-wiki-discuss] Duplicate appointments with planner-appt, Jim Ottaway, 2005/06/23
- [emacs-wiki-discuss] Welcome to Planner (was Re: planner-browse-position-url quick fix), Sacha Chua, 2005/06/22
- [emacs-wiki-discuss] Re: Welcome to Planner, Romain Francoise, 2005/06/23