From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#26338: 26.0.50; Collect all matches for REGEXP in current buffer Date: Fri, 7 Apr 2017 07:40:28 -0700 (PDT) Message-ID: <943bd0fd-c4ad-48f4-a803-f832b5bf0edf@default> References: <8737dr6kxx.fsf@calancha-pc> <87h926cvgl.fsf@localhost> <87k272ow7g.fsf@calancha-pc> <87fuhpcbem.fsf@localhost> <87lgrheyvn.fsf@calancha-pc> <87pogsmefn.fsf@jane> <874ly3vw1p.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1491576085 21556 195.159.176.226 (7 Apr 2017 14:41:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 14:41:25 +0000 (UTC) Cc: 26338@debbugs.gnu.org, Marcin Borkowski , Juri Linkov To: Tino Calancha , npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 07 16:41: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 1cwV4Z-0004CS-Iu for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Apr 2017 16:41:11 +0200 Original-Received: from localhost ([::1]:51228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwV4f-00055j-Cx for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Apr 2017 10:41:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwV4U-00053b-5E for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2017 10:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwV4Q-0006m8-2J for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2017 10:41:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwV4P-0006lj-Vg for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2017 10:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cwV4P-0000eC-JX for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2017 10:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Apr 2017 14:41: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.14915760422451 (code B ref 26338); Fri, 07 Apr 2017 14:41:01 +0000 Original-Received: (at 26338) by debbugs.gnu.org; 7 Apr 2017 14:40:42 +0000 Original-Received: from localhost ([127.0.0.1]:36657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwV46-0000dS-0l for submit@debbugs.gnu.org; Fri, 07 Apr 2017 10:40:42 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:27818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwV44-0000dF-HS for 26338@debbugs.gnu.org; Fri, 07 Apr 2017 10:40:40 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v37EeXf0029872 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Apr 2017 14:40:33 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id v37EeXma004982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Apr 2017 14:40:33 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v37EeVE6011999; Fri, 7 Apr 2017 14:40:31 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] 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:131334 Archived-At: > > Or an addition to cl-loop that would allow doing something like > > > > (cl-loop for m being the matches of "foo\\|bar" > > do ...) > > > > Then you could easily 'collect m' to get the list of matches if you wan= t > > that. > > Your proposals looks nice to me ;-) (Caveat: I have not been following this thread.) I think that `cl-loop' should be as close to Common Lisp `loop' as we can reasonably make it. We should _not_ be adding other features to it or changing its behavior away from what it is supposedly emulating. If you want, create a _different_ macro that is Emacs-specific, with whatever behavior you want. Call it whatever you want that will not be confused with Common Lisp emulation. Please keep `cl-' for Common Lisp emulation. We've already seen more than enough tampering with this - people adding their favorite thing to the `cl-' namespace. Not good.