GNU bug report logs -
#21612
24.5; Configuration variable to delete auto-save file when intentionally killing buffer
Previous Next
Reported by: Marcus <mrok4a <at> gmail.com>
Date: Sat, 3 Oct 2015 16:37:01 UTC
Severity: wishlist
Tags: moreinfo
Found in version 24.5
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #46 received at 21612 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> But that would exactly do what I asked not to do, and you agreed: ask
> that question by default. Because the default value of the variable
> is non-nil...
Oh yeah, I'd forgotten that it was t by default.
Hm...
/* Delete any auto-save file, if we saved it in this session.
But not if the buffer is modified. */
if (STRINGP (BVAR (b, auto_save_file_name))
&& BUF_AUTOSAVE_MODIFF (b) != 0
&& BUF_SAVE_MODIFF (b) < BUF_AUTOSAVE_MODIFF (b)
&& BUF_SAVE_MODIFF (b) < BUF_MODIFF (b)
&& NILP (Fsymbol_value (intern ("auto-save-visited-file-name"))))
{
Lisp_Object delete;
delete = Fsymbol_value (intern ("delete-auto-save-files"));
if (! NILP (delete))
internal_delete_file (BVAR (b, auto_save_file_name));
}
Actually, I'm not sure that my first reading of this code was correct.
Will this code ever trigger a file deletion?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.