[4501] in Consulting_FYI
word count in Emacs
daemon@ATHENA.MIT.EDU (acevedo@Athena.MIT.EDU)
Thu Jan 16 17:10:43 1992
From: acevedo@Athena.MIT.EDU
Date: Thu, 16 Jan 92 17:10:29 -0500
To: cfyi@Athena.MIT.EDU
Cc: olc-stock@Athena.MIT.EDU
This is such basic functionality it's hard to believe it's not a
standard part of Emacs. Anyway, per request of Anne Hunter, The Course
6 Goddess, I wrote code to count the number of words in Emacs. Note
that a word is considered whatever `forward-word' considers a word...
with a slight hack to make sure that dashes and underscores are
considered part of a word. (Otherwise, "foo-bar" is considered two
words.) This code is in /afs/sipb/contrib/emacs/elisp, and in a day or
two I'll post it to gnu.emacs.sources with a hint to rms to put it in
Emacs. Perhaps this should go in the stock answers under Emacs or
somewhere where users can easily find it...
Raul