unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to interactive to emacs
@ 2006-03-19 12:26 hallen
  2006-03-19 12:34 ` David Kastrup
  0 siblings, 1 reply; 7+ messages in thread
From: hallen @ 2006-03-19 12:26 UTC (permalink / raw)


I am get a function to count the words in a buffer
-----------------count.el
(defun count-word-buffer()
  "couont the number of words in the current buffer;
 priny a message in the minibuffer with the result"
  (interactive "p")
  (save-excursion
   (let ((count 0))
     (goto-char (point-min))
     (while (< (point) (point-max))
       (forward-word 1)
       (setq count(1+ count)))
     (message "This buffer total contains %d words" count)))
------------------
i  can use in the emacs-lisp mode .so how can i interactive it to emacs
so that i can use the count-word-buffer function for all the emacs
buffer.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-20  5:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-19 12:26 how to interactive to emacs hallen
2006-03-19 12:34 ` David Kastrup
2006-03-19 14:48   ` hallen
2006-03-19 14:52     ` David Kastrup
2006-03-19 17:41       ` Pascal Bourguignon
2006-03-19 20:00     ` Harald Hanche-Olsen
2006-03-20  5:23       ` hallen

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).