From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Automatic change of TODO Date: Thu, 5 Nov 2009 08:05:31 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5wPc-0000X9-RH for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 02:05:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5wPX-0000Um-RL for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 02:05:40 -0500 Received: from [199.232.76.173] (port=53552 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5wPX-0000Uf-JV for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 02:05:35 -0500 Received: from ey-out-1920.google.com ([74.125.78.147]:34876) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5wPX-0003lf-5i for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 02:05:35 -0500 Received: by ey-out-1920.google.com with SMTP id 3so8383246eyh.34 for ; Wed, 04 Nov 2009 23:05:34 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alessandro Pacaccio Cc: emacs-orgmode@gnu.org Hi Alessandro, this is a bug, fixed now. Please verify that this works now correctly. Thanks. - Carsten On Nov 4, 2009, at 2:54 PM, Alessandro Pacaccio wrote: > Hi! > > I've an outline like this: > > * Project A > ** TODO Task A-1 [0/3] > *** TODO Subtask A-1-a > *** TODO Subtask A-1-b > *** TODO Subtask A-1-c > > where level 1 heading is the name of a project, level 2 heading is a > generic > task broken into three level 3 headings. > As suggested in section 5.5 of the manual, I've hooked the org- > summary-todo > function to org-after-todo-statistics-hook, in order to > automatically change the > level 2 TODO to DONE when all the subtasks are DONE. > Unfortunately, when I change to DONE the first subtask, an > unexpected TODO is > added to level 1 heading: > > * TODO Project A > ** TODO Task A-1 [1/3] > *** DONE Subtask A-1-a > *** TODO Subtask A-1-b > *** TODO Subtask A-1-c > > From now on, the switch TODO->DONE or DONE/TODO applies to level 1 > heading, even > if the [/] cookie in level 2 is correctly updated: > > * DONE Project A > ** TODO Task A-1 [3/3] > *** DONE Subtask A-1-a > *** DONE Subtask A-1-b > *** DONE Subtask A-1-c > > Is there a way to apply the automatic change of TODO to the parent > heading only, > as below? > > * Project A > ** DONE Task A-1 [3/3] > *** DONE Subtask A-1-a > *** DONE Subtask A-1-b > *** DONE Subtask A-1-c > > Thank you. > - Alessandro > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten