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.
This commit is contained in:
parent
842c641c57
commit
dae4fc3adf
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue