|
From: | thomas knoll |
Subject: | [emacs-wiki-discuss] word count note |
Date: | Sat, 6 May 2006 16:58:09 -0500 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |