diff options
| -rw-r--r-- | lisp/emacs-lisp/re-builder.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el index 38726ca048e..24770fac67f 100644 --- 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'.") | |||
| 323 | (reb-lisp-mode)) | 323 | (reb-lisp-mode)) |
| 324 | (t (reb-mode))) | 324 | (t (reb-mode))) |
| 325 | (reb-restart-font-lock) | 325 | (reb-restart-font-lock) |
| 326 | (reb-do-update)) | 326 | ;; When using `rx' syntax, the initial syntax () is invalid. But |
| 327 | ;; don't signal an error in that case. | ||
| 328 | (ignore-errors | ||
| 329 | (reb-do-update))) | ||
| 327 | 330 | ||
| 328 | (defun reb-mode-buffer-p () | 331 | (defun reb-mode-buffer-p () |
| 329 | "Return non-nil if the current buffer is a RE Builder buffer." | 332 | "Return non-nil if the current buffer is a RE Builder buffer." |