Commit 9b59d6d0 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fkill_buffer): Don't delete auto save file

if it didn't come from this Emacs session.
parent d1739e52
......@@ -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"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment