# HG changeset patch # User Richard M. Stallman # Date 1005022095 0 # Node ID aa9b081b3a0d0b763b7f48b816d746f02baa7efd # Parent 7441fb1a40ac12fbd805913c6dd17d19cf725c14 (Fkill_buffer): Don't delete auto save file if buffer is modified. diff -r 7441fb1a40ac -r aa9b081b3a0d src/buffer.c --- a/src/buffer.c Tue Nov 06 04:44:51 2001 +0000 +++ b/src/buffer.c Tue Nov 06 04:48:15 2001 +0000 @@ -1367,10 +1367,12 @@ 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"));