help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to interactive to emacs


From: David Kastrup
Subject: Re: how to interactive to emacs
Date: Sun, 19 Mar 2006 15:52:14 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"hallen" <longhrs@gmail.com> writes:

>  remove the p
> ---------------------
> (defun count-word-buffer()
>   "couont the number of words in the current buffer;
>  priny a message in the minibuffer with the result"
>   (interactive )
>   (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)))
>
> ====================
> when i  type M-x count-word-buffer
> also can not found that function 
> messaged  "no match"

It is not clear what you actually did with the above code to make
Emacs see it.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]