From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Counter cookies and mixed checkbox lists/subtasks Date: Wed, 08 Apr 2009 10:40:50 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrTLV-0002T9-Bb for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 04:41:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrTLQ-0002Oy-IC for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 04:41:20 -0400 Received: from [199.232.76.173] (port=40609 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrTLQ-0002Og-5U for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 04:41:16 -0400 Received: from main.gmane.org ([80.91.229.2]:58932 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrTLP-0001YT-Ne for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 04:41:15 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LrTLJ-0003SJ-Lh for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 08:41:09 +0000 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Apr 2009 08:41:09 +0000 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Apr 2009 08:41:09 +0000 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: emacs-orgmode@gnu.org 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