From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#37659: rx additions: anychar, unmatchable, unordered-or Date: Fri, 14 Feb 2020 21:49:01 +0100 Message-ID: <8CA2BCC5-7558-4523-9880-EA397A95B958@acm.org> References: <88571301-3F15-428F-82F9-60A23D817EF8@acm.org> <2F3A70C9-969B-4E86-998E-BF3CC990B769@acm.org> <838sl9ruxe.fsf@gnu.org> <1040da3e-670e-385c-0365-bd91c9d0839f@cs.ucla.edu> <4223FF58-0F5C-4DE8-8BE0-7DF40CBF64C9@acm.org> <6aa5c232-e3df-751a-a7dc-30d430924385@cs.ucla.edu> <4942C948-4FF4-4E47-B713-F8D6D60F8A84@acm.org> <8336beqo80.fsf@gnu.org> <12A58AE7-C821-4F65-89F1-65A818D350BE@acm.org> <83y2t5pq75.fsf@gnu.org> <6cd2fba8-bc54-6784-cf35-acae470b86a0@cs.ucla.edu> 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: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56246"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, 37659@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 14 21:50:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j2huc-000ERj-RY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Feb 2020 21:50:10 +0100 Original-Received: from localhost ([::1]:45642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2hub-0001Xr-R9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Feb 2020 15:50:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57698) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2huU-0001Xk-NW for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 15:50:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2huT-0005pY-OB for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 15:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2huT-0005pO-LB for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 15:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2huT-0006FX-Iv for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2020 15:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Feb 2020 20:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37659-submit@debbugs.gnu.org id=B37659.158171336023972 (code B ref 37659); Fri, 14 Feb 2020 20:50:01 +0000 Original-Received: (at 37659) by debbugs.gnu.org; 14 Feb 2020 20:49:20 +0000 Original-Received: from localhost ([127.0.0.1]:34772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2hto-0006Ea-BY for submit@debbugs.gnu.org; Fri, 14 Feb 2020 15:49:20 -0500 Original-Received: from mail228c50.megamailservers.eu ([91.136.10.238]:49742 helo=mail36c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2htl-0006EQ-WF for 37659@debbugs.gnu.org; Fri, 14 Feb 2020 15:49:19 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1581713345; bh=LNGUtBOcigaMQOqRwwu3VSUkC9BDAN8/OZn2TMHowSg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=tI0uzQL9JLM+Ihb6NYJDI9YyRSYgIMPWxYZv6k305VdZiyu6Rn6xGqOh/gDPUijdG 0hWZYPVo69x/OBvaLGY7mJ3Z4D2OTsaEa8BimErJ/d/9Ig1lnY1d3A5e3XOk8j+7qB E1A45VYp4Uug/7nKVTBnG3aX8HJ9zS27Kjxmmerc= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail36c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 01EKn1ZS013998; Fri, 14 Feb 2020 20:49:03 +0000 In-Reply-To: <6cd2fba8-bc54-6784-cf35-acae470b86a0@cs.ucla.edu> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0205.5E4707C1.0003, 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=bd8Vr9HB c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=j-H0ebYbrs4BSkZOu2wA: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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176067 Archived-At: 14 feb. 2020 kl. 17.15 skrev Paul Eggert : > How about this idea: if the compositionality patch affects only forms = introduced in Emacs 27, then it's OK to put it into Emacs 27. If it = affects forms that have been around since Emacs 26, it might be safer to = put the patch into the master branch. It is a reasonable criterion. In theory the patch might affect existing = code, since it enables maximal matching for nested 'or' trees of string = literals. The expression (rx (or (or "a" "abc") (or "ab" "abcd"))) will currently not match the whole string "abcd", but with the patch, it = would, as if flattened. The reasoning is that this is more useful, = composable, and always what the user wants. Whether this makes a difference for actually existing code is anyone's = guess.