From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carl Allendorph Newsgroups: gmane.emacs.bugs Subject: bug#63918: 28.2; re-builder rx fails to match Date: Sat, 10 Jun 2023 20:16:32 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000154e9b05fdd20887" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23412"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63918@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 11 05:17:28 2023 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 1q8Ba3-0005x9-Ks for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Jun 2023 05:17:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8BZp-0000IX-Tl; Sat, 10 Jun 2023 23:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8BZo-0000IJ-9J for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2023 23:17:12 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8BZe-0000gD-Vu for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2023 23:17:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8BZe-0000vd-AI for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2023 23:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carl Allendorph Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Jun 2023 03:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63918 X-GNU-PR-Package: emacs Original-Received: via spool by 63918-submit@debbugs.gnu.org id=B63918.16864534193558 (code B ref 63918); Sun, 11 Jun 2023 03:17:02 +0000 Original-Received: (at 63918) by debbugs.gnu.org; 11 Jun 2023 03:16:59 +0000 Original-Received: from localhost ([127.0.0.1]:36497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8BZX-0000vF-V1 for submit@debbugs.gnu.org; Sat, 10 Jun 2023 23:16:59 -0400 Original-Received: from mail-ej1-f54.google.com ([209.85.218.54]:60557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8BZS-0000ux-Di for 63918@debbugs.gnu.org; Sat, 10 Jun 2023 23:16:54 -0400 Original-Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-9741caaf9d4so467618266b.0 for <63918@debbugs.gnu.org>; Sat, 10 Jun 2023 20:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686453404; x=1689045404; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sVIhug1sZ4OiG3NAMO/kRtomZ1Kkq8mK4i0eJgp1UtY=; b=VqFxwEwIXnWo7dUh5S+bkC+UagzZtNy0ddRIxFMdxrW4g9e6Os2orpks83FeFB0aQc CVvDrfA8LTINQF6BOjhBn/Eyypq/ef+CXj0oym/UVmytUc/Luf4EpdxZZGJPDDbeoItg IjnsLocliOlKEFvSj2w3+EYI2SDlC5rZ89GvMNM+XdjUgE4uSmHA3s0No/TEefQDIarU nnQefsLK6UGpIBkeHLWM/Y9uWJgYxCQd6e0dHnWCTIVvaw+UjzwTas7xcJYoxw0uGv62 w82D4SqtNOClxT7iTBCOVKc1Fqgbl5U0O1nhf5w01wqvZ8H8C2cVGG5VtoirX4mshzf7 Dd5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686453404; x=1689045404; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sVIhug1sZ4OiG3NAMO/kRtomZ1Kkq8mK4i0eJgp1UtY=; b=FrgK9wJQUqXo/P4BBFLxAI2qEuHoLbCOlx2Np6jFzQUCtsQYeSa7bVTmFQg/9VJmZ1 LmTLcjiITR1AO49Gd+06F6zAJDZV0QqT0gET7jzfhin3ukCeqP6G1b+DQp0pXqISTx6u ejG0AJ66IV0quTmCzm7nhU3Po/IZrc/m4i+Fq0tsXIaqru54bbA4zM5Kn3cu4+9qlqlP fAGP0GfhwyC/LS+sGA/+cOLHH0wL7jd4ZEWA2/SyD/qIW1MvKs85pR09+Q8QkErwbkr2 sjYeWsxv/jE9UAbcLHMhEvn1xsoqL9al0T/CajUJSGj3G9ElgKSpqKcYHv4Xc+GQe49I oXLw== X-Gm-Message-State: AC+VfDxGP6uuC5aKfVrUwVQ7hkRAlSsJknHLQjTQIEmUG/mf+DgYTHbJ mPajdlDNtiu55w6pb8ExjAITEDr9ruapxCyHXXM= X-Google-Smtp-Source: ACHHUZ4+qk0KtJbYZEZbq4dbQy7lkkfm5AdTLk2t4yJMdeB7EGkNvjtCg5RUanwxQi9x69TBXVjws7Rdont1pgfXHqs= X-Received: by 2002:a17:907:ea1:b0:973:d85b:9ed9 with SMTP id ho33-20020a1709070ea100b00973d85b9ed9mr6972626ejc.72.1686453404125; Sat, 10 Jun 2023 20:16:44 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263238 Archived-At: --000000000000154e9b05fdd20887 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for the kind response. I understand what I was doing wrong now. On Tue, Jun 6, 2023 at 2:31=E2=80=AFAM Mattias Engdeg=C3=A5rd < mattias.engdegard@gmail.com> wrote: > The problem is that re-builder's handling of rx is badly designed, and yo= u > are not the first to be annoyed by this. In 'rx' mode, re-builder expects > you to write a Lisp expression that can be used as argument to > `rx-to-string`, something that nobody wants to do. In your case, instead = of > > (rx (or "a" "b") "c") > > you would have to write something like > > '(seq (or "a" "b") "c") > > Note the quote (because the expression is evaluated) and `seq` (because > `rx-to-string` only takes a single rx expression as input; `rx` forms an > implicit `seq` of its arguments). > > Previous bugs: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60196 > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54107 > > --000000000000154e9b05fdd20887 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the kind response. I understand=C2=A0what I was d= oing wrong now.=C2=A0

On Tue, Jun 6, 2023 at 2:31=E2=80=AF= AM Mattias Engdeg=C3=A5rd <mattias.engdegard@gmail.com> wrote:
The problem is that re-builder's handling = of rx is badly designed, and you are not the first to be annoyed by this. I= n 'rx' mode, re-builder expects you to write a Lisp expression that= can be used as argument to `rx-to-string`, something that nobody wants to = do. In your case, instead of

=C2=A0 (rx (or "a" "b") "c")

you would have to write something like

=C2=A0 '(seq (or "a" "b") "c")

Note the quote (because the expression is evaluated) and `seq` (because `rx= -to-string` only takes a single rx expression as input; `rx` forms an impli= cit `seq` of its arguments).

Previous bugs:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug= =3D60196
https://debbugs.gnu.org/cgi/bugreport.cgi?bug= =3D54107

--000000000000154e9b05fdd20887--