From: Carl Allendorph <callendorph@gmail.com>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: 63918@debbugs.gnu.org
Subject: bug#63918: 28.2; re-builder rx fails to match
Date: Sat, 10 Jun 2023 20:16:32 -0700 [thread overview]
Message-ID: <CAKaXhuSK-Ec=7LKOosSa_3SO_iz0hGPBGiKJAXpJneqZJMm9UQ@mail.gmail.com> (raw)
In-Reply-To: <D5A9EDFD-689B-4EB9-B953-FA60B09CD920@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 909 bytes --]
Thank you for the kind response. I understand what I was doing wrong now.
On Tue, Jun 6, 2023 at 2:31 AM Mattias Engdegård <
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. 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=60196
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54107
>
>
[-- Attachment #2: Type: text/html, Size: 1577 bytes --]
prev parent reply other threads:[~2023-06-11 3:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 16:20 bug#63918: 28.2; re-builder rx fails to match Carl Allendorph
2023-06-06 9:31 ` Mattias Engdegård
2023-06-11 3:16 ` Carl Allendorph [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKaXhuSK-Ec=7LKOosSa_3SO_iz0hGPBGiKJAXpJneqZJMm9UQ@mail.gmail.com' \
--to=callendorph@gmail.com \
--cc=63918@debbugs.gnu.org \
--cc=mattias.engdegard@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.