unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 54107@debbugs.gnu.org
Subject: bug#54107: 29.0.50; re-builder signals error when using rx syntax
Date: Tue, 22 Feb 2022 14:45:05 +0100	[thread overview]
Message-ID: <8735kbc8wu.fsf@gnus.org> (raw)
In-Reply-To: <wvr41qzvyqlc.fsf@gmail.com> (Philipp Stephani's message of "Tue,  22 Feb 2022 14:32:15 +0100")

Philipp Stephani <p.stephani2@gmail.com> writes:

> emacs -Q -f toggle-debug-on-error -l re-builder -eval "(customize-set-variable 'reb-re-syntax 'rx)" -f re-builder
>
> This gives an error
>
> Debugger entered--Lisp error: (error "Unknown rx symbol ‘nil’")
>   signal(error ("Unknown rx symbol ‘nil’"))
>   error("Unknown rx symbol `%s'" nil)
>   rx--translate-symbol(nil)
>   rx--translate(nil)
>   rx-to-string(nil)
>   reb-cook-regexp(#("'()" 0 3 (fontified nil)))
>   reb-update-regexp()
>   reb-do-update()
>   reb-initialize-buffer()

The problem is that the initial rx syntax is invalid -- this is caught
elsewhere (and the mode line just says "invalid"), so I've done the same
in startup, which makes the problem go away (in Emacs 29).  But this may
or may not be the best solution here -- perhaps it would be better if
the initial form for rx was valid instead?  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2022-02-22 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 13:32 bug#54107: 29.0.50; re-builder signals error when using rx syntax Philipp Stephani
2022-02-22 13:45 ` Lars Ingebrigtsen [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735kbc8wu.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=54107@debbugs.gnu.org \
    --cc=p.stephani2@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).