summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-06-21 17:52:18 +0000
committerRichard M. Stallman <rms@gnu.org>1994-06-21 17:52:18 +0000
commit047fb1fc05b8f55032854ea0b2f7b7014cc3ea90 (patch)
treeaf9b3262558edbd0551977963e9e025f2a42242b /src/buffer.c
parentacfe990d6f3a2b4b3733014e7e1a0db0f6ba5d36 (diff)
downloademacs-047fb1fc05b8f55032854ea0b2f7b7014cc3ea90.tar.gz
(Fkill_buffer): Don't delete auto save file
if it didn't come from this Emacs session.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8edd937b957..edab13cc88b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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"));