From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sacha Chua Subject: Re: Counting number of children under heading Date: Sun, 20 Apr 2014 22:55:04 -0400 Message-ID: <86wqejjss7.fsf@sachachua.com> References: <87bnw05n1r.fsf@bzg.ath.cx> <86vbu6rbdl.fsf@somewhere.org> <86a9bi66a7.fsf@sachachua.com> <86lhuzlxk8.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wc4O4-0002rz-0y for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 22:55:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wc4Ny-0007Nd-6m for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 22:55:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:39659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wc4Ny-0007NR-0I for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 22:55:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wc4Nw-000600-Ji for emacs-orgmode@gnu.org; Mon, 21 Apr 2014 04:55:08 +0200 Received: from 184.175.19.126 ([184.175.19.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Apr 2014 04:55:08 +0200 Received: from sacha by 184.175.19.126 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Apr 2014 04:55:08 +0200 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: emacs-orgmode@gnu.org Sebastien Vauban writes: Hello, Seb, all! > Yes, I almost remembered what you wrote in > http://sachachua.com/blog/2008/01/outlining-your-notes-with-org/, > section "Getting a Sense of Progress". Still, it is about counting > headlines, but with a special cookie you add. Wow, I totally forgot about that. =) Good thing you remembered! Anyway, Marvin, you (or someone) will probably be able to update that code and get it to work for you, if you don't mind having checkboxes instead of TODO. If you want it to work for plain headings, we could probably figure out a custom function that updates numbers in parentheses with the number of child headings. (Assuming you don't have numbers in parentheses generally, or maybe we should use curly braces instead? Decisions, decisions...) It's likely to be code that's going to be in your custom config, since the need seems uncommon. =) Sacha