GNU bug report logs -
#54107
29.0.50; re-builder signals error when using rx syntax
Previous Next
Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>
Date: Tue, 22 Feb 2022 13:33:02 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 54107 <at> debbugs.gnu.org (full text, mbox):
Philipp Stephani <p.stephani2 <at> 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
This bug report was last modified 3 years and 91 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.