]> git.eshelyaron.com Git - emacs.git/commitdiff
(after-find-file): Fix previous change.
authorGerd Moellmann <gerd@gnu.org>
Sun, 12 Dec 1999 12:26:53 +0000 (12:26 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 12 Dec 1999 12:26:53 +0000 (12:26 +0000)
lisp/files.el

index 73268891513a7813828ec68d6dd27331168225c3..77fb79eefdfd7da66d14b2644e8a38eaafaa2a90 100644 (file)
@@ -1195,7 +1195,11 @@ unless NOMODES is non-nil."
                   "File exists, but cannot be read")
                  ((not buffer-read-only)
                   (if (and warn
-                           (file-newer-than-file-p (or auto-save-visited-file-name
+                           ;; No need to warn if buffer is auto-saved
+                           ;; under the name of the visited file.
+                           (not (and buffer-file-name
+                                     auto-save-visited-file-name))
+                           (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-file"