From 585458387f90545b6549453c0d3a583313c7a2a7 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 18 May 1995 19:50:57 +0000 Subject: [PATCH] (Fkill_emacs): Delete the auto-save-list file after shut_down_emacs. --- src/emacs.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index ad001d93f03..8983b95d8a6 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1130,11 +1130,6 @@ all of which are called before Emacs is actually killed.") if (!NILP (Vrun_hooks) && !noninteractive) call1 (Vrun_hooks, intern ("kill-emacs-hook")); - /* If we have an auto-save list file, - kill it because we are exiting Emacs deliberately (not crashing). */ - if (STRINGP (Vauto_save_list_file_name)) - unlink (XSTRING (Vauto_save_list_file_name)->data); - UNGCPRO; /* Is it really necessary to do this deassign @@ -1145,6 +1140,12 @@ all of which are called before Emacs is actually killed.") shut_down_emacs (0, 0, STRINGP (arg) ? arg : Qnil); + /* If we have an auto-save list file, + kill it because we are exiting Emacs deliberately (not crashing). + Do it after shut_down_emacs, which does an auto-save. */ + if (STRINGP (Vauto_save_list_file_name)) + unlink (XSTRING (Vauto_save_list_file_name)->data); + exit (INTEGERP (arg) ? XINT (arg) #ifdef VMS : 1 -- 2.39.2