From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Count words under subtrees Date: Tue, 27 Sep 2016 10:15:00 +0100 Message-ID: <87eg453drf.fsf@ucl.ac.uk> References: <13cda52050fc411c8b0b7a74bd60f5c0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bopvG-00047y-VT for emacs-orgmode@gnu.org; Tue, 27 Sep 2016 06:47:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bopvC-0008Jk-8Z for emacs-orgmode@gnu.org; Tue, 27 Sep 2016 06:47:38 -0400 Received: from mail-db5eur01on0135.outbound.protection.outlook.com ([104.47.2.135]:53600 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bopvB-0008JT-Uh for emacs-orgmode@gnu.org; Tue, 27 Sep 2016 06:47:34 -0400 In-Reply-To: <13cda52050fc411c8b0b7a74bd60f5c0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Giacomo M.'s message of "Tue, 27 Sep 2016 09:01:37 +0000") 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" To: Giacomo M Cc: "emacs-orgmode@gnu.org" On Tuesday, 27 Sep 2016 at 09:01, Giacomo M wrote: > Dear all, > > right now I manually =er/expand-region= (from expand-region.el) until I > select a subtree, and then =count-words-region= to get number of words > for the subtree. I was wondering whether anybody already coded some lisp > to programmatically have this count, ideally one count per TOC entry > (and perhaps excluding headline words in the count). Cannot help you directly although this topic has come up before on this list. However, I can point you to C-c @ (org-mark-subtree) as a quick way to select the whole subtree which at least makes the process a little less painful. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.1.50.1, Org release_8.3.6-1149-g582233