From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26338: 26.0.50; Collect all matches for REGEXP in current buffer Date: Mon, 3 Apr 2017 13:01:50 +0900 (JST) Message-ID: References: <8737dr6kxx.fsf@calancha-pc> <87h926cvgl.fsf@localhost> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1491192134 6750 195.159.176.226 (3 Apr 2017 04:02:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Apr 2017 04:02:14 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 26338@debbugs.gnu.org, Tino Calancha To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 03 06:02:10 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 1cutBs-0000df-QW for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Apr 2017 06:02:04 +0200 Original-Received: from localhost ([::1]:57361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cutBy-0008Ll-QU for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Apr 2017 00:02:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cutBt-0008Lc-Df for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 00:02:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cutBq-00040V-C2 for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 00:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cutBq-00040P-8b for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 00:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cutBq-0001BD-1i for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2017 00:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Apr 2017 04:02:01 +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.14911921204528 (code B ref 26338); Mon, 03 Apr 2017 04:02:01 +0000 Original-Received: (at 26338) by debbugs.gnu.org; 3 Apr 2017 04:02:00 +0000 Original-Received: from localhost ([127.0.0.1]:58045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cutBo-0001Ax-AD for submit@debbugs.gnu.org; Mon, 03 Apr 2017 00:02:00 -0400 Original-Received: from mail-pg0-f68.google.com ([74.125.83.68]:35406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cutBm-0001Ak-Uu for 26338@debbugs.gnu.org; Mon, 03 Apr 2017 00:01:59 -0400 Original-Received: by mail-pg0-f68.google.com with SMTP id g2so26807390pge.2 for <26338@debbugs.gnu.org>; Sun, 02 Apr 2017 21:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=/2XIErxYBnEvUOjoN6KhJiibaYI+VWTIeg6gt7+Hj/M=; b=aWa0MsnaFl2FmB3pFSF5aRvyhWZxw3iqz0XToPgqQwYEbY8THzltVVm7iw5UnxK6pS hP5rAgnMG7F3s5/3HcJdmecW2eDG+n9oJDkfLJCTUADYhM+WJCsdkmTVMvuOboimOsnv SK3d2XNJnfgr9wnOfBijVDW5lwxBYUmfHxgNULUid0DO7MtgWJnMUrTjjLGLF9BfM3MV dQgsrVSfZJqowaVxMLqXcUN2ICyi/4K0mRy9L7uM/SdOfqz3ebcmQSGkmOpJcKFi4NoP yyFoMSNtNV7wo31zp1u4YsekD8TBRlRu8DOY1kwHtw7HIdFY6LQSaFPKF9nAhTEYfggR uOhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=/2XIErxYBnEvUOjoN6KhJiibaYI+VWTIeg6gt7+Hj/M=; b=QikjbxtsDGNtsd4ccLtWWu6YfvJMlXM/84phlucvTNqZGCheG6a/zgc7fD5gA7B6VQ v7AnRBX9Wz/gfKithwEsyyPXv6x9nuN7FrNpFFhaLzJgGzc8DcALjds/OLf+wZK5nyQP KQHM9n3QvV75jZz6/eS+xfRz0vS3QpHm+we7QRNEtBogvO5eeVLwWVcwKpP80ekwKrCx XAsaUCoHj2b9JGTNVfffLV7NpWwWlpaSaIDmFpadcKz1PieZSZv79nc7gq+VDvsVCWLH ssHNf7rxWV+BmGWCXZCfOcuYXkUh0aWmuv2kNs243oYSU7UWmdrLviRMoPJw3tpFX8Pu zFPw== X-Gm-Message-State: AFeK/H1ASZT8Xme58VQuQk9phHV4hQ/VPLTqE+lewREdjUD0n45ktpm4XU+hKuJKD+iwWA== X-Received: by 10.84.179.193 with SMTP id b59mr19252701plc.56.1491192113439; Sun, 02 Apr 2017 21:01:53 -0700 (PDT) Original-Received: from calancha-pc (234.204.100.220.dy.bbexcite.jp. [220.100.204.234]) by smtp.gmail.com with ESMTPSA id n24sm22535256pgc.43.2017.04.02.21.01.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Apr 2017 21:01:52 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <87h926cvgl.fsf@localhost> 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:131238 Archived-At: On Mon, 3 Apr 2017, Juri Linkov wrote: >> 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? Sorry, i don't know about `occur-collect', i can not find its definition. It doesn't seem to be a defun in replace.el. See my previous e-mail and let me know if `occur-collect' can serve for that purpose.