diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-08-18 13:17:11 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-08-18 13:19:42 +0200 |
commit | dae4fc3adf8f673187f9eb323af157f9056c3645 (patch) | |
tree | b11ee41e4fafac58b6f02555e4ee656606c3cf39 /lisp/emacs-lisp | |
parent | 842c641c57b6cc6ffa82ca6a74df655d8369e9e1 (diff) | |
download | emacs-dae4fc3adf8f673187f9eb323af157f9056c3645.tar.gz emacs-dae4fc3adf8f673187f9eb323af157f9056c3645.tar.bz2 emacs-dae4fc3adf8f673187f9eb323af157f9056c3645.zip |
Improve cryptic syntax switch message in re-builder
* lisp/emacs-lisp/re-builder.el (reb-restart-font-lock): Move message
from here...
* lisp/emacs-lisp/re-builder.el (reb-change-syntax): ...to here.
Change it to be less cryptic.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/re-builder.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el index 46b429ce6fe..4b5363d8f60 100644 --- a/lisp/emacs-lisp/re-builder.el +++ b/lisp/emacs-lisp/re-builder.el @@ -497,7 +497,8 @@ Optional argument SYNTAX must be specified if called non-interactively." (setq reb-re-syntax syntax) (when buffer (with-current-buffer buffer - (reb-initialize-buffer)))) + (reb-initialize-buffer)) + (message "Switched syntax to `%s'" reb-re-syntax))) (error "Invalid syntax: %s" syntax))) @@ -819,7 +820,6 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions." (defun reb-restart-font-lock () "Restart `font-lock-mode' to fit current regexp format." - (message "reb-restart-font-lock re-re-syntax=%s" reb-re-syntax) (with-current-buffer (get-buffer reb-buffer) (let ((font-lock-is-on font-lock-mode)) (font-lock-mode -1) |