branch: elpa/lua-mode
commit 4b407ccfd8d6121f4f76022240dccb7991df2313
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
Print 'Prefix key set to ...' only when setting via interactive function
---
lua-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 1c2f5b5..d7a6332 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -232,8 +232,7 @@ Should be a list of strings."
;; in both cases (elt x 0) is ok
(elt (read-kbd-macro prefix-key-val) 0)))
(if (fboundp 'lua-prefix-key-update-bindings)
- (lua-prefix-key-update-bindings))
- (message "prefix key set to %S" (single-key-description (eval
prefix-key-sym))))
+ (lua-prefix-key-update-bindings)))
(defcustom lua-prefix-key "\C-c"
"Prefix for all lua-mode commands."
@@ -730,6 +729,7 @@ Groups 6-9 can be used in any of argument regexps."
This function replaces previous prefix-key binding with a new one."
(interactive "sNew prefix key (empty string means no key): ")
(lua--customize-set-prefix-key 'lua-prefix-key new-key-str)
+ (message "Prefix key set to %S" (single-key-description lua-prefix-key))
(lua-prefix-key-update-bindings))
(defun lua-string-p (&optional pos)