From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: collect-string Date: Tue, 30 Nov 2010 14:27:12 +0900 Message-ID: <8762vf5qkv.fsf@uwakimon.sk.tsukuba.ac.jp> References: <20101104.113654.332196908.Takaaki.Ota@am.sony.com> <20101109.181250.505612453.Takaaki.Ota@am.sony.com> <20101129.181453.300448974.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291198086 15901 80.91.229.12 (1 Dec 2010 10:08:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 10:08:06 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Tak Ota Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 01 11:07:59 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNjbR-0000gc-M1 for ged-emacs-devel@m.gmane.org; Wed, 01 Dec 2010 11:07:58 +0100 Original-Received: from localhost ([127.0.0.1]:55575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNjbQ-0002k0-8W for ged-emacs-devel@m.gmane.org; Wed, 01 Dec 2010 05:07:56 -0500 Original-Received: from [140.186.70.92] (port=44267 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNfir-0006m4-Rq for emacs-devel@gnu.org; Wed, 01 Dec 2010 00:59:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNIkW-00088k-3Y for emacs-devel@gnu.org; Tue, 30 Nov 2010 00:27:32 -0500 Original-Received: from imss12.cc.tsukuba.ac.jp ([130.158.254.161]:40120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNIkV-00084g-PI for emacs-devel@gnu.org; Tue, 30 Nov 2010 00:27:32 -0500 Original-Received: from imss12.cc.tsukuba.ac.jp (imss12.cc.tsukuba.ac.jp [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id EF4102AF543; Tue, 30 Nov 2010 14:27:28 +0900 (JST) Original-Received: from mgmt1.sk.tsukuba.ac.jp (unknown [130.158.97.223]) by imss12.cc.tsukuba.ac.jp (Postfix) with ESMTP id E15712AF542; Tue, 30 Nov 2010 14:27:28 +0900 (JST) Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id E06533FA0542; Tue, 30 Nov 2010 14:27:28 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 42D1211F034; Tue, 30 Nov 2010 14:27:12 +0900 (JST) In-Reply-To: <20101129.181453.300448974.Takaaki.Ota@am.sony.com> X-Mailer: VM undefined under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133264 Archived-At: Tak Ota writes: > > ! When prefix argument is provided without a number (`C-u' alone as > > ! prefix) the matching strings are collected into the `*Occur*' > > ! buffer. When COLLECT is zero the entire matched strings are > > ! collected otherwise COLLECTth pair of parenthesized match in the > > ! REGEXP is collected." I don't think this describes the behavior of the prefix argument correctly (you will be prompted for a number, IIUC). What happens when the prefix argument is a number? > > ! (defun multi-occur-in-matching-buffers (bufregexp regexp &optional allbufs collect) > > "Show all lines matching REGEXP in buffers specified by BUFREGEXP. > > Normally BUFREGEXP matches against each buffer's visited file name, > > but if you specify a prefix argument, it matches against the buffer name. The COLLECT argument is undocumented. Aside to the maintainers: the ALLBUFS argument could use further clarification, but that's not Tak's responsibility.