Mercurial > emacs
changeset 11846:778a35aba3f7
(Fkill_emacs): Delete the auto-save-list file
after shut_down_emacs.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 18 May 1995 19:50:57 +0000 |
parents | c2179a288898 |
children | c5cf8807738b |
files | src/emacs.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/emacs.c Thu May 18 16:54:42 1995 +0000 +++ b/src/emacs.c Thu May 18 19:50:57 1995 +0000 @@ -1130,11 +1130,6 @@ 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 @@ 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