]> git.eshelyaron.com Git - emacs.git/commitdiff
Make help for file supersession more readable
authorCharles A. Roelli <charles@aurox.ch>
Sat, 9 Mar 2019 15:47:38 +0000 (16:47 +0100)
committerCharles A. Roelli <charles@aurox.ch>
Sat, 9 Mar 2019 15:47:38 +0000 (16:47 +0100)
* lisp/userlock.el (ask-user-about-supersession-help): Use
'substitute-command-keys' to show the command key for
"\\[revert-buffer]" properly.

lisp/userlock.el

index 1a1adebdde963c26d41cd1fb4c2028c34b03a4cc..f077bc9ad62aa8f5457e52701e996901a1e0e826 100644 (file)
@@ -174,7 +174,9 @@ really edit the buffer? (y, n, r or C-h) "
 
 (defun ask-user-about-supersession-help ()
   (with-output-to-temp-buffer "*Help*"
-    (princ "You want to modify a buffer whose disk file has changed
+    (princ
+     (substitute-command-keys
+      "You want to modify a buffer whose disk file has changed
 since you last read it in or saved it with this buffer.
 
 If you say `y' to go ahead and modify this buffer,
@@ -184,7 +186,7 @@ from the file on disk.
 If you say `n', the change you started to make will be aborted.
 
 Usually, you should type `n' and then `\\[revert-buffer]',
-to get the latest version of the file, then make the change again.")
+to get the latest version of the file, then make the change again."))
     (with-current-buffer standard-output
       (help-mode))))