]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/edmacro.el (edit-kbd-macro): Use command substitution.
authorStefan Kangas <stefan@marxist.se>
Fri, 17 Jun 2022 10:18:26 +0000 (12:18 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 17 Jun 2022 11:12:03 +0000 (13:12 +0200)
lisp/edmacro.el

index 26f3ae02ababa444fa83bcb2d83a884438b88b59..fe1fc086bc6459b4f757c4dbb031bbe87b5eda65 100644 (file)
@@ -154,8 +154,10 @@ With a prefix argument, format the macro in a more concise way."
         (setq-local edmacro-finish-hook finish-hook)
         (setq-local edmacro-store-hook store-hook)
        (erase-buffer)
-       (insert ";; Keyboard Macro Editor.  Press C-c C-c to finish; "
-               "press C-x k RET to cancel.\n")
+        (insert (substitute-command-keys
+                 (concat
+                  ";; Keyboard Macro Editor.  Press \\[edmacro-finish-edit] "
+                  "to finish; press \\`C-x k RET' to cancel.\n")))
        (insert ";; Original keys: " fmt "\n")
        (unless store-hook
          (insert "\nCommand: " (if cmd (symbol-name cmd) "none") "\n")