diff options
author | Gerd Moellmann <[email protected]> | 1999-12-12 12:26:53 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 1999-12-12 12:26:53 +0000 |
commit | a390d6c6c8af0b3930012be294ceb88579a27842 (patch) | |
tree | 365a2b7743e6f8a76b410e848e6693722bd9da9c /lisp/files.el | |
parent | 6d6c336cf725ef21daa1dc7f3e44532a0936da4d (diff) |
(after-find-file): Fix previous change.
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 7326889151..77fb79eefd 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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" |