changeset 26779:2a78c861578f

(after-find-file): Use auto-save-visited-file-name if set.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 09 Dec 1999 15:20:31 +0000
parents 6dc236826c61
children 5bd07730f536
files lisp/files.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Thu Dec 09 15:15:54 1999 +0000
+++ b/lisp/files.el	Thu Dec 09 15:20:31 1999 +0000
@@ -1195,7 +1195,8 @@
 		   "File exists, but cannot be read")
 		  ((not buffer-read-only)
 		   (if (and warn
-			    (file-newer-than-file-p (make-auto-save-file-name)
+			    (file-newer-than-file-p (or auto-save-visited-file-name
+							(make-auto-save-file-name))
 						    buffer-file-name))
 		       (format "%s has auto save data; consider M-x recover-file"
 			       (file-name-nondirectory buffer-file-name))