[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5314: Acknowledgement (23.1; Inconsistent treatment of auto-save fil
bug#5314: Acknowledgement (23.1; Inconsistent treatment of auto-save files)
Tue, 05 Jan 2010 23:29:30 -0700
Thunderbird 22.214.171.124 (Macintosh/20090812)
Uday S Reddy wrote:
I did some more testing of the functions after my initial report. The
situation seems a lot more complex than I had imagined.
With an old auto-save file on the disk, the following sequence done on
a buffer seems to always return nil:
(progn (insert "x") (recent-auto-save-p))
That could be explained by the dependencies on auto-save-interval and
auto-save-timeout. There is no guarantee that Emacs will auto-save
after the insert, regardless whether an old auto-save file exists.
Killing the buffer in this case does not affect the old auto-save
The following sequence seems to always return t
(progn (set-buffer-modified-p t) (recent-auto-save-p))
Hmmm, that should also depend on auto-save-interval and auto-save-timeout.
Killing the buffer in this case deletes the old auto-save file.
So, it appears that recent-auto-save-p and kill-buffer are consistent
with each other. But their behaviour is paradoxical with regard to
Denver, Colorado, USA