changeset 7994:c5b7f74b5023

(Fkill_buffer): Don't delete auto save file if it didn't come from this Emacs session.
author Richard M. Stallman <rms@gnu.org>
date Tue, 21 Jun 1994 17:52:18 +0000
parents fde315722669
children 7f68b0db826f
files src/buffer.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Tue Jun 21 17:46:53 1994 +0000
+++ b/src/buffer.c	Tue Jun 21 17:52:18 1994 +0000
@@ -801,8 +801,9 @@
   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"));