emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] refiling tasks and counter cookies


From: Ali Tofigh
Subject: Re: [O] refiling tasks and counter cookies
Date: Thu, 19 Jan 2012 18:45:10 -0500

On Thu, Jan 5, 2012 at 12:14, Bastien <address@hidden> wrote:
> Hi Ali,
>
> Ali Tofigh <address@hidden> writes:
>
>> when refiling todos (C-c C-w), the counter cookies don't update. is
>> that a known/intended issue?
>
> This should do:
>
> (add-hook
>  'org-after-refile-insert-hook
>  'org-update-parent-todo-statistics)

what I need is a org-pre-refile-insert-hook. i looked in org.el and
the org-refile function. could some knowledgeable person on the
mailinglist point me to where I should insert

(run-hooks 'org-pre-refile-insert-hook)

so that the snippet below

(add-hook
 'org-pre-refile-insert-hook
 'org-update-parent-todo-statistics)

together with Bastien's helpful snippet above, would result in
updating of the cookie counters of both the source and destination?

/ali



reply via email to

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