[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find-file pointlessly suggests recovery of identical auto save version
From: |
Dan Davison |
Subject: |
find-file pointlessly suggests recovery of identical auto save version |
Date: |
Sat, 21 Mar 2009 11:02:31 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
find-file tells me to "consider M-x recover-this-file" even when the
contents of the auto save file are identical to the file being
opened. Would it not make sense to add an extra condition to the test
below (from after-find-file in files.el) that checks whether the backup
data is actually different? (for reasonably-sized files at least?)
Thanks,
Dan
emacs 23.0.60.1
ubuntu 8.10
(if (and warn
;; 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)
;; insert something that is true if auto save version
differs?
)
(format "%s has auto save data; consider M-x
recover-this-file"
(file-name-nondirectory buffer-file-name))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- find-file pointlessly suggests recovery of identical auto save version,
Dan Davison <=