GNU bug report logs - #63918
28.2; re-builder rx fails to match

Previous Next

Package: emacs;

Reported by: Carl Allendorph <callendorph <at> gmail.com>

Date: Tue, 6 Jun 2023 04:09:01 UTC

Severity: wishlist

Merged with 60196

Found in versions 28.2, 29.0.60

Full log


Message #13 received at 63918 <at> debbugs.gnu.org (full text, mbox):

From: Carl Allendorph <callendorph <at> gmail.com>
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>
Cc: 63918 <at> debbugs.gnu.org
Subject: Re: bug#63918: 28.2; re-builder rx fails to match
Date: Sat, 10 Jun 2023 20:16:32 -0700
[Message part 1 (text/plain, inline)]
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 <at> 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
>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.