From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ali Tofigh Subject: Re: refiling tasks and counter cookies Date: Thu, 19 Jan 2012 18:45:10 -0500 Message-ID: References: <87y5tmvzpf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro1g2-0005Uk-H8 for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 18:45:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ro1g1-0005mN-Lc for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 18:45:54 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:57169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro1g1-0005m0-B1 for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 18:45:53 -0500 Received: by bkbzx1 with SMTP id zx1so3550bkb.0 for ; Thu, 19 Jan 2012 15:45:51 -0800 (PST) In-Reply-To: <87y5tmvzpf.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Mailinglist emacs-orgmode On Thu, Jan 5, 2012 at 12:14, Bastien wrote: > Hi Ali, > > Ali Tofigh 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 > =C2=A0'org-after-refile-insert-hook > =C2=A0'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 =C2=A0'org-pre-refile-insert-hook =C2=A0'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