Mercurial > emacs
changeset 26810:5fc1490f5900
(after-find-file): Fix previous change.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sun, 12 Dec 1999 12:26:53 +0000 |
parents | db949b28b6b4 |
children | cc5d95f3bc3a |
files | lisp/files.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Sun Dec 12 12:25:47 1999 +0000 +++ b/lisp/files.el Sun Dec 12 12:26:53 1999 +0000 @@ -1195,7 +1195,11 @@ "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"