all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Carl Allendorph <callendorph@gmail.com>
Cc: 63918@debbugs.gnu.org
Subject: bug#63918: 28.2; re-builder rx fails to match
Date: Tue, 6 Jun 2023 11:31:02 +0200	[thread overview]
Message-ID: <D5A9EDFD-689B-4EB9-B953-FA60B09CD920@gmail.com> (raw)
In-Reply-To: <CAKaXhuRYTC4gaqmo7saY=dv9J6un6jWP-ykeVcWARzwp70rp7A@mail.gmail.com>

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






  reply	other threads:[~2023-06-06  9:31 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 [this message]
2023-06-11  3:16   ` Carl Allendorph

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=D5A9EDFD-689B-4EB9-B953-FA60B09CD920@gmail.com \
    --to=mattias.engdegard@gmail.com \
    --cc=63918@debbugs.gnu.org \
    --cc=callendorph@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.