]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve cryptic syntax switch message in re-builder
authorStefan Kangas <stefankangas@gmail.com>
Thu, 18 Aug 2022 11:17:11 +0000 (13:17 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 18 Aug 2022 11:19:42 +0000 (13:19 +0200)
* 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.

lisp/emacs-lisp/re-builder.el

index 46b429ce6fed81856d3a0b6d0f139a96dfe1655b..4b5363d8f60de6053f89ac863d108cde215ac12c 100644 (file)
@@ -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)