From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Implemented word count for subtrees Date: Wed, 27 Apr 2011 18:51:06 +0100 Message-ID: <87iptzoa5x.fsf@ucl.ac.uk> References: <867hal4a6t.wl%simon.guest@tesujimath.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFAWQ-00054b-N6 for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 15:35:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFAWP-0007cx-Hz for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 15:35:38 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:45174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFAWP-0007ci-Cl for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 15:35:37 -0400 In-Reply-To: <867hal4a6t.wl%simon.guest@tesujimath.org> (Simon Guest's message of "Sat, 23 Apr 2011 20:57:14 +1200") 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: Simon Guest Cc: emacs-org list Simon Guest writes: > Dear Org mode people, > > I implemented word counting for Org mode sub-trees. That is, count > each sub-tree, and accumulate totals into the parent heading lines. > Others have asked about this, so I attach my code below. This is quite nice. Thanks! I cannot help you with the mark problem; hopefully others can. One suggestion, however: I wonder if you could introduce the word count in a different way? I do use my headings and having the dots and the actual count inserted is not great (although easy work around: org-wc-display and then undo immediately after looking at the counts...). Maybe you could automatically define a tag for each heading, something like :wcNNNN:? Of course, this won't be good for anybody that wishes to export documents *with* tags... Anyway, I've incorporated your code into my emacs configuration. Thanks again! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.211.gb0094)