summaryrefslogtreecommitdiff
path: root/lisp/emulation
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-07-03 21:00:16 +0200
committerStefan Kangas <stefan@marxist.se>2022-07-03 23:31:31 +0200
commitbda6e9a226f42d74176cba640dda7dfef25b764b (patch)
tree32a8de3b9a9fd897b7e7cdd95d2604ecd7e11ef3 /lisp/emulation
parent5cb8303f6b207eade52ba8faee1ef364617077de (diff)
downloademacs-bda6e9a226f42d74176cba640dda7dfef25b764b.tar.gz
Use command substitutions instead of literal keys in some places
* lisp/emulation/viper-macs.el (ex-map, viper-set-register-macro): * lisp/minibuffer.el (minibuffer-beginning-of-buffer-movement): * lisp/speedbar.el (speedbar-frame-mode): * lisp/subr.el (kbd): * lisp/textmodes/page-ext.el (pages-directory) (pages-directory-for-addresses): * lisp/textmodes/reftex-toc.el: Use command substitutions instead of literal keys.
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/viper-macs.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el
index c4eb183ce44..06130afa7da 100644
--- a/lisp/emulation/viper-macs.el
+++ b/lisp/emulation/viper-macs.el
@@ -105,7 +105,8 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
#'viper-end-mapping-kbd-macro)
(define-key viper-emacs-intercept-map "\C-x)"
#'viper-end-mapping-kbd-macro)
- (message "Mapping %S in %s state. Type macro definition followed by `C-x )'"
+ (message (substitute-command-keys "Mapping %S in %s state. \
+Type macro definition followed by \\[kmacro-end-macro]")
(viper-display-macro macro-name)
(if ins "Insert" "Vi")))
))
@@ -886,8 +887,9 @@ mistakes in macro names to be passed to this function is to use
(if (get-register reg)
(if (y-or-n-p "Register contains data. Overwrite? ")
()
- (error
- "Macro not saved in register. Can still be invoked via `C-x e'")))
+ (error
+ (substitute-command-keys
+ "Macro not saved in register. Can still be invoked via \\[kmacro-end-and-call-macro]"))))
(set-register reg last-kbd-macro))
(defun viper-register-macro (count)