From: Richard M. Stallman Date: Tue, 6 Nov 2001 04:49:58 +0000 (+0000) Subject: (Fkill_buffer): Don't delete auto save file if buffer is modified. X-Git-Tag: emacs-21.2~355 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=99986d0775b20e0317f39e442a64ac824732eab8;p=emacs.git (Fkill_buffer): Don't delete auto save file if buffer is modified. --- diff --git a/src/buffer.c b/src/buffer.c index 902d818f230..7282ede179e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1310,10 +1310,12 @@ with SIGHUP.") frames_discard_buffer (buf); Vinhibit_quit = tem; - /* Delete any auto-save file, if we saved it in this session. */ + /* Delete any auto-save file, if we saved it in this session. + But not if the buffer is modified. */ if (STRINGP (b->auto_save_file_name) && b->auto_save_modified != 0 - && BUF_SAVE_MODIFF (b) < b->auto_save_modified) + && BUF_SAVE_MODIFF (b) < b->auto_save_modified + && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b)) { Lisp_Object tem; tem = Fsymbol_value (intern ("delete-auto-save-files"));