]> git.eshelyaron.com Git - emacs.git/commitdiff
Use substitute-command-keys in some vc messages
authorStefan Kangas <stefankangas@gmail.com>
Fri, 16 Sep 2022 14:37:58 +0000 (16:37 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 16 Sep 2022 15:08:24 +0000 (17:08 +0200)
* lisp/vc/vc-dispatcher.el (vc-start-logentry):
* lisp/vc/vc.el (vc-steal-lock): Use substitute-command-keys.

lisp/vc/vc-dispatcher.el
lisp/vc/vc.el

index 36a6f27891b07f784a18981198b76f916a1f6642..f64809da61615e0b7b27870a8df0b76f49d30543 100644 (file)
@@ -704,7 +704,11 @@ PATCH-STRING is a patch to check in."
       (erase-buffer)
       (when (stringp comment) (insert comment)))
     (if (or (not comment) initial-contents)
-       (message "%s  Type C-c C-c when done" msg)
+        (message (substitute-command-keys
+                  (if (eq major-mode 'log-edit-mode)
+                      "%s  Type \\[log-edit-done] when done"
+                    "%s  Type \\`C-c C-c' when done"))
+                 msg)
       (vc-finish-logentry (eq comment t)))))
 
 ;; vc-finish-logentry is typically called from a log-edit buffer (see
index 4688137d923d2c70d21b102b9a613442353479c0..c67dad69fcebc7ace468a1511e45bb5521245169 100644 (file)
@@ -1627,7 +1627,9 @@ Type \\[vc-next-action] to check in changes.")
      (format "I stole the lock on %s, " file-description)
      (current-time-string)
      ".\n")
-    (message "Please explain why you stole the lock.  Type C-c C-c when done.")))
+    (message
+     (substitute-command-keys
+      "Please explain why you stole the lock.  Type \\`C-c C-c' when done"))))
 
 (defun vc-checkin (files backend &optional comment initial-contents rev patch-string)
   "Check in FILES. COMMENT is a comment string; if omitted, a