From 6a6a0b8bf3c49d0bac6d1726ff90bb88e2f4260f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 19 Apr 1996 09:32:55 +0000 Subject: [PATCH] (after-find-file): Mention file name in "auto save is newer" message. --- lisp/files.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 81142835b06..770735e239e 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -862,7 +862,8 @@ unless NOMODES is non-nil." (if (and warn (file-newer-than-file-p (make-auto-save-file-name) buffer-file-name)) - "Auto save file is newer; consider M-x recover-file" + (format "%s has auto save data; consider M-x recover-file" + (file-name-nondirectory buffer-file-name)) (setq not-serious t) (if error "(New file)" nil))) ((not error) -- 2.39.2