(Fkill_buffer): Don't delete auto save file if buffer is modified.
This commit is contained in:
parent
2bb659660e
commit
9cf712eb57
1 changed files with 4 additions and 2 deletions
|
@ -1367,10 +1367,12 @@ with SIGHUP. */)
|
|||
frames_discard_buffer (buf);
|
||||
Vinhibit_quit = tem;
|
||||
|
||||
/* Delete any auto-save file, if we saved it in this session. */
|
||||
/* Delete any auto-save file, if we saved it in this session.
|
||||
But not if the buffer is modified. */
|
||||
if (STRINGP (b->auto_save_file_name)
|
||||
&& b->auto_save_modified != 0
|
||||
&& BUF_SAVE_MODIFF (b) < b->auto_save_modified)
|
||||
&& BUF_SAVE_MODIFF (b) < b->auto_save_modified
|
||||
&& BUF_SAVE_MODIFF (b) < BUF_MODIFF (b))
|
||||
{
|
||||
Lisp_Object tem;
|
||||
tem = Fsymbol_value (intern ("delete-auto-save-files"));
|
||||
|
|
Loading…
Add table
Reference in a new issue