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

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

Re: [emacs-wiki-discuss] Re: Trying to write code to move a task to a Co


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] Re: Trying to write code to move a task to a CompletedTask page when completed
Date: Sun, 20 Nov 2005 17:42:13 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> Jim Ottaway <address@hidden> writes:

[snip]

> Yes.  My guess is that the bit I have underlined is not correct

> (defun planner-gtd-mark-task-hook (old-status new-status)
>   (when (or (string= new-status "C")
>           (string= new-status "X"))
>     (let* ((info (planner-current-task-info))
>          (links (planner-multi-task-link-as-list info))
>          (new-links (append (remove planner-welcome-page-name links)
>                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[snip]

> since each of links from planner-multi-task-link-as-list will be
> wrapped in explicit link brackets, the remove won't match anything.
> It should probably be something like

Sorry, this part

>        (new-links (append (planner-multi-link-delete links)...

should have been
         (new-links (append (planner-multi-link-delete
                             planner-welcome-page-name links)...

of course.

-- 
Jim Ottaway




reply via email to

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