projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85567d5
)
Don't signal an error on re-builder startup with rx syntax
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 22 Feb 2022 13:43:35 +0000
(14:43 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 22 Feb 2022 13:43:35 +0000
(14:43 +0100)
* lisp/emacs-lisp/re-builder.el (reb-initialize-buffer): Make
startup with rx syntax not signal an error (bug#54107).
lisp/emacs-lisp/re-builder.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/re-builder.el
b/lisp/emacs-lisp/re-builder.el
index 38726ca048ec0f031421bb85ea32e82ddbb59bfc..24770fac67f8927fb72def97811a90398ae0f776 100644
(file)
--- a/
lisp/emacs-lisp/re-builder.el
+++ b/
lisp/emacs-lisp/re-builder.el
@@
-323,7
+323,10
@@
Except for Lisp syntax this is the same as `reb-regexp'.")
(reb-lisp-mode))
(t (reb-mode)))
(reb-restart-font-lock)
- (reb-do-update))
+ ;; When using `rx' syntax, the initial syntax () is invalid. But
+ ;; don't signal an error in that case.
+ (ignore-errors
+ (reb-do-update)))
(defun reb-mode-buffer-p ()
"Return non-nil if the current buffer is a RE Builder buffer."