On Thu, Jan 5, 2012 at 12:14, Bastien <b...@altern.org> wrote: > Hi Ali, > > Ali Tofigh <alix.tof...@gmail.com> 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