From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#36444: [PATCH] Improved regexp-opt KEEP-ORDER check Date: Thu, 04 Jul 2019 10:18:11 -0400 Message-ID: <85sgrlevdo.fsf@gmail.com> References: <2CE5D98F-8F07-4E79-9132-FDBA0062D8E2@acm.org> <85v9wiex2a.fsf@gmail.com> <74D2BB46-AE27-4F7B-8E76-E12527834B53@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="80434"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cc: Noam Postavsky , 36444@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 16:19:14 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 1hj2Zs-000KeO-Rh for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 16:19:12 +0200 Original-Received: from localhost ([::1]:46448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj2Zr-0002hF-T3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 10:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57462) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj2Zm-0002gt-Ps for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 10:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj2Zi-00069H-1G for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 10:19:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hj2Zh-000692-Qd for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 10:19:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hj2Zh-0007Pk-Ln for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 10:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2019 14:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36444 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36444-submit@debbugs.gnu.org id=B36444.156224990328455 (code B ref 36444); Thu, 04 Jul 2019 14:19:01 +0000 Original-Received: (at 36444) by debbugs.gnu.org; 4 Jul 2019 14:18:23 +0000 Original-Received: from localhost ([127.0.0.1]:51685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj2Z5-0007Ot-1E for submit@debbugs.gnu.org; Thu, 04 Jul 2019 10:18:23 -0400 Original-Received: from mail-io1-f53.google.com ([209.85.166.53]:47044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj2Z3-0007Oe-3Y for 36444@debbugs.gnu.org; Thu, 04 Jul 2019 10:18:21 -0400 Original-Received: by mail-io1-f53.google.com with SMTP id i10so13053698iol.13 for <36444@debbugs.gnu.org>; Thu, 04 Jul 2019 07:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=dPOgPlwR3QJTedEe/yU9vfSa6SmJ5ZmLVKmvODLiIDg=; b=eHJZvPpkBnVRbHsnbNNfhmUAqLFUQX4CWuEPLMCaGZIxsIvDwzhiMrrc1p6s7UMLLm r7yofJ9a/CvkZw8fuVWJXoM8N5ESrV95LdiMGLQ/9SWCo6yzwYqW3y9e4yFi9bNsFNnB IxitKTQlYaGBuqNdIs4FlW5HHUFkttmYTygIQD9NaIKNzvgU+x4gE74co2v8E3mI2D/j zCDvgMSSU8K32wqgdBZcniLyGCF9Bubasc0Fp73VeUMEk6TeVZP45IkaMsGy/53g/4L5 96GxUrI4KrtEkSMjCFHGWVMb7b8cvgthlw7Q3JusVuD6J8uz0LL87uq+aj0uhGOoipgH Upew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=dPOgPlwR3QJTedEe/yU9vfSa6SmJ5ZmLVKmvODLiIDg=; b=KQGUIM28gyCJ8XPH2vwkrJoopwFtX+itjsROiQmNpBnsuFkXCwwMlVVD0lAljiDF4K jmbZWHKC9rk30RC/ytoebTYU7odMc09d6iqTZvAEglSJ0kMYdm2J/taujY7cPaLridV7 HWho3Ls1ZMlwheJanO06jKYoRDkYCkd+38Dnxf0SEeqmlNtENOMyLd+FFaiJL5M8YfpY YR6EGx2CMALuNgyPrlpUgHlNaMg3VNCrAywRwilYjYc8W34k/7JkZZYaXivfPZuv36Hs 0pGAA8dErT/yaOoVqvZ846eHwJXNborYOgkQ0kC07sFhPLvzQZdJu5M8cVm1OE4qqDDM GOCg== X-Gm-Message-State: APjAAAXla5sfd2s2YEG4umGXLQ4NKkHNQauqXF2GL0rp/q+KPHKm83XS iE3CpkG56YvcZ/SErk+EObavjMqZ X-Google-Smtp-Source: APXvYqw9Uufid3tkcqEexz+QuZ/A6BGuuro2rZty1jLp9LaGwjCBquB3DB+yumGQBv+UEGlT/kDhxQ== X-Received: by 2002:a02:b00f:: with SMTP id p15mr6715543jah.49.1562249891467; Thu, 04 Jul 2019 07:18:11 -0700 (PDT) Original-Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id t5sm4426971iol.55.2019.07.04.07.18.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jul 2019 07:18:11 -0700 (PDT) In-Reply-To: <74D2BB46-AE27-4F7B-8E76-E12527834B53@acm.org> ("Mattias \=\?iso-8859-1\?Q\?Engdeg\=E5rd\=22's\?\= message of "Thu, 4 Jul 2019 13:52:31 +0200") 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:162059 Archived-At: Mattias Engdeg=E5rd writes: > Not too fond of that either, really; catch/throw somehow seems more > heavyweight than warranted by the situation. 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. > (1) Same as before, but with a comment about what tripped you up: > (2) Using cl-loop: 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.