diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-06-21 17:52:18 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-06-21 17:52:18 +0000 |
commit | 047fb1fc05b8f55032854ea0b2f7b7014cc3ea90 (patch) | |
tree | af9b3262558edbd0551977963e9e025f2a42242b /src/buffer.c | |
parent | acfe990d6f3a2b4b3733014e7e1a0db0f6ba5d36 (diff) | |
download | emacs-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.c | 5 |
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")); |