From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "hallen" Newsgroups: gmane.emacs.help Subject: Re: how to interactive to emacs Date: 19 Mar 2006 06:48:54 -0800 Organization: http://groups.google.com Message-ID: <1142779734.075329.172400@z34g2000cwc.googlegroups.com> References: <1142771167.371441.289120@u72g2000cwu.googlegroups.com> <85slpe62af.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1142782854 24275 80.91.229.2 (19 Mar 2006 15:40:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Mar 2006 15:40:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 19 16:40:49 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FL01Q-00023f-HM for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Mar 2006 16:40:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FL01Q-0006Ma-2p for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Mar 2006 10:40:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z34g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 59.52.194.21 Original-X-Trace: posting.google.com 1142779739 6915 127.0.0.1 (19 Mar 2006 14:48:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 19 Mar 2006 14:48:59 +0000 (UTC) In-Reply-To: <85slpe62af.fsf@lola.goethe.zz> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z34g2000cwc.googlegroups.com; posting-host=59.52.194.21; posting-account=GGSQAQ0AAADA2Kc0HZxMDwJI0UUNvGZC Original-Xref: shelby.stanford.edu gnu.emacs.help:138264 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33882 Archived-At: 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"