word count note

"thomas knoll" <[email protected]> Sat, 6 May 2006 16:58:09 -0500
Newsgroups gmane.emacs.wiki.general
Message-ID <[email protected]>
Can someone help me figure out how to tweak the function below that
will count the words in the current note? (i.e. between .# 's)

  (defun count-words (start end)
    "Print number of words in the region."
    (interactive "r")
    (save-excursion
      (save-restriction
        (narrow-to-region start end)
        (goto-char (point-min))
        (count-matches "\\sw+"))))
  (defalias 'word-count 'count-words)

--
##[.:dydimustk:.]###############
web:     http://dydimustk.com/
vox:       651.210.2321
skype:   dydimustk
aim:       dyd1mustk

semper reformanda:
http://www.EmergingLeadersNetwork.org

_______________________________________________
emacs-wiki-discuss mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss