[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to interactive to emacs
From: |
Pascal Bourguignon |
Subject: |
Re: how to interactive to emacs |
Date: |
Sun, 19 Mar 2006 18:41:58 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
David Kastrup <dak@gnu.org> writes:
> "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.
Anyways, it's lacking closing parentheses so I doubt emacs made anything of
it...
--
__Pascal Bourguignon__ http://www.informatimago.com/
Kitty like plastic.
Confuses for litter box.
Don't leave tarp around.