From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Albert Reiner Newsgroups: gmane.emacs.help Subject: Re: how-many to number? Date: 28 Sep 2005 16:00:38 +0200 Message-ID: References: <1127914526.834249.240930@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1127917516 599 80.91.229.2 (28 Sep 2005 14:25:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Sep 2005 14:25:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 28 16:25:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EKcoP-0000Ee-9H for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Sep 2005 16:21:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EKcoO-0005ZQ-OM for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Sep 2005 10:21:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.rh-tec.net!koehntopp.de!news.banetele.no!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: berry.phys.ntnu.no Original-X-Trace: quimby.gnus.org 1127916038 29173 129.241.48.91 (28 Sep 2005 14:00:38 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 28 Sep 2005 14:00:38 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:134215 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:29785 Archived-At: ["rgb" , 28 Sep 2005 06:35:26 -0700]: > C-h f how-many > > Print and return number of matches for regexp following point. > When called from Lisp and interactive is omitted or nil, *just return > the number, do not print it*; if interactive is t, the function behaves > in all respects has if it had been called interactively. Thanks; I don't get this on GNU Emacs 21.3.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-04 on bugs.build.redhat.com: ,----[ C-h f how-many RET ] | how-many is an interactive compiled Lisp function in `replace'. | (how-many REGEXP &optional RSTART REND) | | Print number of matches for REGEXP following point. | | If REGEXP contains upper case characters (excluding those preceded by `\'), | the matching is case-sensitive. | | Second and third arg RSTART and REND specify the region to operate on. | | Interactively, in Transient Mark mode when the mark is active, operate | on the contents of the region. Otherwise, operate from point to the | end of the buffer. `---- So I guess that changed recently. My current work-around: (read (how-many "\\b\\w+\\b" (point-min) (point-max))) , which is ugly but seems to work. Thanks for your help, Albert.