summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-10-02 17:52:05 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-10-02 17:52:05 +0200
commit4839b42a16635a3090f4fb374fb1fbe532ef0451 (patch)
tree29573e76be8b2281fb8f98e1cf1d3b67027b703f /lisp/files.el
parent0a40120b40356ce43c084f44cedba8566a5685be (diff)
downloademacs-4839b42a16635a3090f4fb374fb1fbe532ef0451.tar.gz
emacs-4839b42a16635a3090f4fb374fb1fbe532ef0451.tar.bz2
emacs-4839b42a16635a3090f4fb374fb1fbe532ef0451.zip
* lisp/files.el (after-find-file): Use substitute-command-keys.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 10b156fb306..40ad11ecfc4 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2711,7 +2711,8 @@ unless NOMODES is non-nil."
(file-newer-than-file-p (or buffer-auto-save-file-name
(make-auto-save-file-name))
buffer-file-name))
- (format "%s has auto save data; consider M-x recover-this-file"
+ (format (substitute-command-keys
+ "%s has auto save data; consider \\`M-x recover-this-file'")
(file-name-nondirectory buffer-file-name))
(setq not-serious t)
(if error "(New file)" nil)))