From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#26338: 26.0.50; Collect all matches for REGEXP in current buffer Date: Mon, 03 Apr 2017 01:10:02 +0300 Organization: LINKOV.NET Message-ID: <87h926cvgl.fsf@localhost> References: <8737dr6kxx.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491171196 22477 195.159.176.226 (2 Apr 2017 22:13:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Apr 2017 22:13:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (x86_64-pc-linux-gnu) Cc: 26338@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 03 00:13:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cunkE-0005EV-OA for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Apr 2017 00:13:10 +0200 Original-Received: from localhost ([::1]:56401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cunkK-0003iD-Oo for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Apr 2017 18:13:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cunkC-0003he-Gl for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 18:13:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cunk7-0003an-Cy for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 18:13:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59656) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cunk7-0003ai-78 for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 18:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cunk7-0001O7-18 for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 18:13:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2017 22:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26338 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26338-submit@debbugs.gnu.org id=B26338.14911711365247 (code B ref 26338); Sun, 02 Apr 2017 22:13:02 +0000 Original-Received: (at 26338) by debbugs.gnu.org; 2 Apr 2017 22:12:16 +0000 Original-Received: from localhost ([127.0.0.1]:57850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cunjM-0001MY-CR for submit@debbugs.gnu.org; Sun, 02 Apr 2017 18:12:16 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:43689 helo=homiemail-a20.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cunjK-0001MQ-ND for 26338@debbugs.gnu.org; Sun, 02 Apr 2017 18:12:15 -0400 Original-Received: from homiemail-a20.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTP id 3EC497EC061; Sun, 2 Apr 2017 15:12:10 -0700 (PDT) Original-Received: from localhost.linkov.net (m83-179-201-25.cust.tele2.ee [83.179.201.25]) (Authenticated sender: jurta@jurta.org) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPA id 63E727EC064; Sun, 2 Apr 2017 15:12:09 -0700 (PDT) In-Reply-To: <8737dr6kxx.fsf@calancha-pc> (Tino Calancha's message of "Sun, 02 Apr 2017 21:41:30 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131232 Archived-At: > we have `count-matches' in replace.el, which returns the > number of matches of a regexp. Why not to have an standard > function `collect-matches' as well? > > I know `xref-collect-matches' but it uses grep program: some users might > not have grep installed, or they may prefer to use Emacs regexps. > > I've being using for a while something similar than the patch below. > Probably it doesn't need to be a command, just a normal function. > > What do you think? But there is already the occur-collect feature implemented in occur-1 and occur-read-primary-args. Why would we need a separate command?