]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fkill_buffer): Don't delete auto save file
authorRichard M. Stallman <rms@gnu.org>
Tue, 21 Jun 1994 17:52:18 +0000 (17:52 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 21 Jun 1994 17:52:18 +0000 (17:52 +0000)
if it didn't come from this Emacs session.

src/buffer.c

index 8edd937b957146ce22bcead15db35b104d4e496c..edab13cc88b4afccf60ddd5e227d692d17775b6d 100644 (file)
@@ -801,8 +801,9 @@ with `delete-process'.")
   Freplace_buffer_in_windows (buf);
   Vinhibit_quit = tem;
 
-  /* Delete any auto-save file.  */
-  if (XTYPE (b->auto_save_file_name) == Lisp_String)
+  /* Delete any auto-save file, if we saved it in this session.  */
+  if (XTYPE (b->auto_save_file_name) == Lisp_String
+      && b->auto_save_modified != 0)
     {
       Lisp_Object tem;
       tem = Fsymbol_value (intern ("delete-auto-save-files"));