From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacopo De Simoi Subject: Word-counting in a subtree Date: Mon, 21 Aug 2017 13:21:10 -0400 Message-ID: <1709997.Ids7SHHmVx@bl4ckspoons> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djqPZ-0005tU-Pa for emacs-orgmode@gnu.org; Mon, 21 Aug 2017 13:22:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djqPW-0004k1-Kz for emacs-orgmode@gnu.org; Mon, 21 Aug 2017 13:22:49 -0400 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]:37676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djqPW-0004hO-Ez for emacs-orgmode@gnu.org; Mon, 21 Aug 2017 13:22:46 -0400 Received: by mail-it0-x22b.google.com with SMTP id 76so35433193ith.0 for ; Mon, 21 Aug 2017 10:22:45 -0700 (PDT) Received: from bl4ckspoons.localnet ([128.100.227.152]) by smtp.gmail.com with ESMTPSA id g131sm4079117ita.23.2017.08.21.10.22.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 10:22:43 -0700 (PDT) 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: Org Mode List tl;dr Is there a way to create a token on a subtree header that would count words in the subtree and [optionally] mark a maximum allowed number of words? Long question I am preparing an application and filling out many forms; each section of the form (that I rewrote as a subtree-header) has a maximum number of allowed words. It would be nice to have some kind of token to add to the subtree header which would count the number of words in the corresponding paragraph in a semi- automatic way. As a bonus, one could also set a maximum number of words, and the token would switch to alert face when the maximum is reached. Is there a reasonable way to accomplish this? Thanks __J