From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ali Tofigh Subject: Re: refiling tasks and counter cookies Date: Thu, 5 Jan 2012 12:37:09 -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]:50311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RirFx-0007gp-AS for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 12:37:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RirFr-0003Iu-Oe for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 12:37:37 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:51830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RirFr-0003Im-B7 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 12:37:31 -0500 Received: by eabm6 with SMTP id m6so653086eab.0 for ; Thu, 05 Jan 2012 09:37:30 -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 thanks for the snippet! that code solves half the problem: it updates the counter cookie for the node where the todo item was refiled to, but not for the original location. I couldn't figure out how to do the second part. any ideas? /ali 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) > > HTH, > > -- > =C2=A0Bastien