From: "hallen" <longhrs@gmail.com>
Subject: how to interactive to emacs
Date: 19 Mar 2006 04:26:07 -0800 [thread overview]
Message-ID: <1142771167.371441.289120@u72g2000cwu.googlegroups.com> (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.
next reply other threads:[~2006-03-19 12:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-19 12:26 hallen [this message]
2006-03-19 12:34 ` how to interactive to emacs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1142771167.371441.289120@u72g2000cwu.googlegroups.com \
--to=longhrs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.