From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Minor Bug: COOKIE_DATA property breaks parent statistics [7.5 (release_7.5.24.g5f0ef)] Date: Mon, 18 Jul 2011 02:27:24 +0200 Message-ID: <87zkkch1qr.fsf@gmail.com> References: <87r5af62cc.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QibrK-0000tL-HH for emacs-orgmode@gnu.org; Sun, 17 Jul 2011 20:38:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QibrH-0005mI-Kg for emacs-orgmode@gnu.org; Sun, 17 Jul 2011 20:38:54 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:45146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QibgH-0003qV-CO for emacs-orgmode@gnu.org; Sun, 17 Jul 2011 20:27:32 -0400 Received: by wyg36 with SMTP id 36so2074098wyg.0 for ; Sun, 17 Jul 2011 17:27:27 -0700 (PDT) In-Reply-To: <87r5af62cc.fsf@norang.ca> (Bernt Hansen's message of "Wed, 09 Mar 2011 23:12:19 -0500") 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: Bernt Hansen Cc: emacs-orgmode@gnu.org Hello, Bernt Hansen writes: > I've run into a minor bug with cookie statistics. > > The COOKIE_DATA property seems to break parent task statistics when it > is set to 'recursive'. > > In the org file below task one/two/foo/a has the COOKIE_DATA property > set to recursive. Changing the state of task 'a' does not change the > statistics cookie of the parent task 'foo' when 'a' changes from TODO to > DONE or DONE to TODO. > > I cannot update the statistics of task 'foo' manually after changing > task 'a' by hitting C-c # on the 'foo' headline. If I update one of the > other tasks under 'foo' then the statistics are updated correctly. > > I think this should update automagically when the state of 'a' changes. > > Regards, > Bernt > > * TODO one [0/1] [0%] > > ** TODO two [0/3] [0%] > > *** TODO foo [1/4] > > **** TODO a [3/6] > :PROPERTIES: > :COOKIE_DATA: recursive > :END: > > ***** TODO a.1 > > ****** TODO a.1.1 > > ****** DONE a.1.2 > CLOSED: [2011-03-09 Wed 22:50] > :LOGBOOK: > - State "DONE" from "TODO" [2011-03-09 Wed 22:50] > :END: > > ****** TODO a.1.3 > ***** DONE a.2 > CLOSED: [2011-03-09 Wed 22:50] > :LOGBOOK: > - State "DONE" from "TODO" [2011-03-09 Wed 22:50] > :END: > > ***** DONE a.3 > CLOSED: [2011-03-09 Wed 22:50] > :LOGBOOK: > - State "DONE" from "TODO" [2011-03-09 Wed 22:50] > :END: > > **** TODO b > CLOSED: [2011-03-09 Wed 22:50] > :LOGBOOK: > - State "DONE" from "TODO" [2011-03-09 Wed 22:50] > :END: > > **** DONE c > CLOSED: [2011-03-09 Wed 22:50] > :LOGBOOK: > - State "DONE" from "TODO" [2011-03-09 Wed 22:50] > :END: > > **** TODO d > > *** TODO bar > > *** TODO baz I have pushed a fix in master branch that should solve the problem at hand. Could you test it a bit and tell me if it does the job? Regards, -- Nicolas Goaziou