From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#36444: [PATCH] Improved regexp-opt KEEP-ORDER check Date: Thu, 4 Jul 2019 17:18:40 +0200 Message-ID: <9C8D8AE9-8B8B-4428-BC79-BEB82BC3E3A3@acm.org> References: <2CE5D98F-8F07-4E79-9132-FDBA0062D8E2@acm.org> <85v9wiex2a.fsf@gmail.com> <74D2BB46-AE27-4F7B-8E76-E12527834B53@acm.org> <85sgrlevdo.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="106850"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36444-done@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 17:28:48 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hj3f8-000RJR-Og for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 17:28:43 +0200 Original-Received: from localhost ([::1]:46872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj3Vt-0004e5-1o for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 11:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37292) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj3Vn-0004bt-Ix for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 11:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj3Vm-0003Nk-Jb for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 11:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hj3Vm-0003NX-Am for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 11:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hj3Vm-0002Xv-55 for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 11:19:02 -0400 Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2019 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 36444 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 36444@debbugs.gnu.org, mattiase@acm.org, mattiase@acm.org Original-Received: via spool by 36444-done@debbugs.gnu.org id=D36444.15622535279761 (code D ref 36444); Thu, 04 Jul 2019 15:19:01 +0000 Original-Received: (at 36444-done) by debbugs.gnu.org; 4 Jul 2019 15:18:47 +0000 Original-Received: from localhost ([127.0.0.1]:51722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj3VX-0002XM-Jb for submit@debbugs.gnu.org; Thu, 04 Jul 2019 11:18:47 -0400 Original-Received: from mail227c50.megamailservers.eu ([91.136.10.237]:58424 helo=mail36c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj3VU-0002XC-Gb for 36444-done@debbugs.gnu.org; Thu, 04 Jul 2019 11:18:45 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1562253522; bh=SaA6i8e+I0TvmN1BJ9xEU2AZcjDDPfXwz6q9we3UeuE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=mmXTuvkObcq4IF7RtRZHySDlOIg/8EZSEe2sho7Wudq8irEr6WDz5MEr+jOz3Fx4Q MU2nCPnYTy7d+z9twtXNGiPwC9jnWrbm7EvJ+ydIZ2Hd3iGw70d4IZ5RMYAFA8Z7C8 pF8Khq1arbJVziPuEgwnPL0bhr7wIvOqzfSv0/9s= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail36c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x64FIeUw031042; Thu, 4 Jul 2019 15:18:42 +0000 In-Reply-To: <85sgrlevdo.fsf@gmail.com> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0215.5D1E18D2.0066, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=BtuzP7f5 c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=8cXiXC9NtpSe86jUhhQA:9 a=CjuIK1q_8ugA:10 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: 209.51.188.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:162063 Archived-At: 4 juli 2019 kl. 16.18 skrev Noam Postavsky : >=20 >> Not too fond of that either, really; catch/throw somehow seems more >> heavyweight than warranted by the situation. >=20 > I've wondered if it's worth making a lexical variant of catch/throw = that > could be compiled as goto for these kind of situations. Yes, although in this case I'd settle for built-in some/every constructs = without bootstrap trouble, or list comprehensions that aren't a = mysterious corner of cl-loop. >> (1) Same as before, but with a comment about what tripped you up: >=20 >> (2) Using cl-loop: >=20 > Assuming (eval-when-compile (require 'cl-lib)) avoids bootstapping > problems, I think the cl-loop variant is a bit neater; but either way = is > fine with me. Thank you; I went with the while-loop, on the grounds that it can be = readily understood by the layman from first principles. I have yet to be = entirely friends with cl-loop. Pushed to master.