emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jacopo De Simoi <wilderkde@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Word-counting in a subtree
Date: Mon, 21 Aug 2017 13:21:10 -0400	[thread overview]
Message-ID: <1709997.Ids7SHHmVx@bl4ckspoons> (raw)

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

             reply	other threads:[~2017-08-21 17:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-21 17:21 Jacopo De Simoi [this message]
2017-08-21 18:09 ` Word-counting in a subtree Eric S Fraga
2017-08-21 21:34   ` Jacopo De Simoi
2017-08-22  8:31     ` Simon Guest
2017-08-22  9:24     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1709997.Ids7SHHmVx@bl4ckspoons \
    --to=wilderkde@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).