From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Counter cookies and mixed checkbox lists/subtasks Date: Wed, 8 Apr 2009 16:47:37 +0200 Message-ID: <7F5AF424-5413-44D5-A73C-A4BA6B9FB5F9@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrZ4m-0000GM-Px for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 10:48:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrZ4h-0000Dq-Ld for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 10:48:27 -0400 Received: from [199.232.76.173] (port=43311 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrZ4h-0000Dj-FO for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 10:48:23 -0400 Received: from wa-out-1112.google.com ([209.85.146.181]:13615) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LrZ4g-0000ce-UJ for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 10:48:23 -0400 Received: by wa-out-1112.google.com with SMTP id j40so65180wah.26 for ; Wed, 08 Apr 2009 07:48:22 -0700 (PDT) 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: Ulf Stegemann Cc: emacs-orgmode@gnu.org Hi Ulf, there is no way currently to force a cookie either way. I think the the right solution is to modify the structure, so that the check boxes are only in entries without children. Seems to me that this is always possible - in your case you could just create a "first child" that gets the checkboxes. - Carsten On Apr 8, 2009, at 10:40 AM, Ulf Stegemann wrote: > The following applies to Emacs 23.0.92 and Org 6.25trans, both checked > out a few minutes ago. > > I'm quite fond of using counter cookies in headlines (`[/]' or `[%]'). > However, when using those cookies in headlines where the body mixes up > checkbox lists and subtasks org-mode changes reference of the cookie > between list items and tasks depending on what has been last updated > (probably due to the fact that the cookies may refer to both types). > > To give an example: > > --8<--------------------------snip-------------------------->8--- > * TODO Something to do [/] > > - [ ] first item > - [ ] second item > - [ ] third item > > ** TODO first subtask > ** TODO second subtask > --8<--------------------------snap-------------------------->8--- > > Now, when checking a check box this would look like: > > --8<--------------------------snip-------------------------->8--- > * TODO Something to do [1/3] > > - [x] first item > - [ ] second item > - [ ] third item > > ** TODO first subtask > ** TODO second subtask > --8<--------------------------snap-------------------------->8--- > > Given that, changing the state of a subtask will lead to: > > --8<--------------------------snip-------------------------->8--- > * TODO Something to do [1/2] > > - [x] first item > - [ ] second item > - [ ] third item > > ** DONE first subtask > ** TODO second subtask > --8<--------------------------snap-------------------------->8--- > > So the question is: Is it possible to give the counter cookie a clear > reference, i.e. always counting the checkbox list *or* the subtasks? > > Ulf > > > > _______________________________________________ > 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