From: Karl Heuer Date: Thu, 18 May 1995 19:50:57 +0000 (+0000) Subject: (Fkill_emacs): Delete the auto-save-list file X-Git-Tag: emacs-19.34~4012 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=585458387f90545b6549453c0d3a583313c7a2a7;p=emacs.git (Fkill_emacs): Delete the auto-save-list file after shut_down_emacs. --- 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