Tweaks to count-words and count-words-region behavior.
authorChong Yidong <cyd@gnu.org>
Mon, 5 Mar 2012 06:10:11 +0000 (14:10 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 5 Mar 2012 06:10:11 +0000 (14:10 +0800)
commit10607bea34d2cddc62761df6c88d674c2861e71d
treed810f16718f7caeccaf97ec2a98bc22776aba713
parent50ab02c5cc9c84ecb6459bb3b1a041154365f8ac
Tweaks to count-words and count-words-region behavior.
In particular, make count-words more analogous to the existing
count-lines function.

* lisp/simple.el (count-words): If called from Lisp, return the word
count, for symmetry with `count-lines'.  Arglist changed.
(count-words--message): Args changed.  Consolidate counting code
from count-words and count-words-region.
(count-words-region): Caller changed.
(count-lines-region): Make it an obsolete alias.
etc/NEWS
lisp/ChangeLog
lisp/simple.el