From: Richard M. Stallman Date: Fri, 19 Apr 1996 09:32:55 +0000 (+0000) Subject: (after-find-file): Mention file name in "auto save is newer" message. X-Git-Tag: emacs-19.34~811 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6a6a0b8bf3c49d0bac6d1726ff90bb88e2f4260f;p=emacs.git (after-find-file): Mention file name in "auto save is newer" message. --- 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)