aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 5951040ff2c..100ebc7e2de 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1798,11 +1798,15 @@ cleaning up all windows currently displaying the buffer to be killed. */)
1798 1798
1799 /* Delete the autosave file, if requested. */ 1799 /* Delete the autosave file, if requested. */
1800 if (modified 1800 if (modified
1801 && STRINGP (BVAR (b, auto_save_file_name))
1802 && !NILP (Ffile_exists_p (BVAR (b, auto_save_file_name)))
1803 && kill_buffer_delete_auto_save_files 1801 && kill_buffer_delete_auto_save_files
1804 && delete_auto_save_files 1802 && delete_auto_save_files
1805 && !NILP (Frecent_auto_save_p ())) 1803 && !NILP (Frecent_auto_save_p ())
1804 && STRINGP (BVAR (b, auto_save_file_name))
1805 && !NILP (Ffile_exists_p (BVAR (b, auto_save_file_name)))
1806 /* If `auto-save-visited-mode' is on, then we're auto-saving
1807 to the visited file -- don't delete it.. */
1808 && NILP (Fstring_equal (BVAR (b, auto_save_file_name),
1809 BVAR (b, filename))))
1806 { 1810 {
1807 tem = do_yes_or_no_p (build_string ("Delete auto-save file? ")); 1811 tem = do_yes_or_no_p (build_string ("Delete auto-save file? "));
1808 if (!NILP (tem)) 1812 if (!NILP (tem))