comparison src/emacs.c @ 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 c93c1c56a8bb
children 3a2442baa290
comparison
equal deleted inserted replaced
11845:c2179a288898 11846:778a35aba3f7
1128 arg = Qt; 1128 arg = Qt;
1129 1129
1130 if (!NILP (Vrun_hooks) && !noninteractive) 1130 if (!NILP (Vrun_hooks) && !noninteractive)
1131 call1 (Vrun_hooks, intern ("kill-emacs-hook")); 1131 call1 (Vrun_hooks, intern ("kill-emacs-hook"));
1132 1132
1133 /* If we have an auto-save list file,
1134 kill it because we are exiting Emacs deliberately (not crashing). */
1135 if (STRINGP (Vauto_save_list_file_name))
1136 unlink (XSTRING (Vauto_save_list_file_name)->data);
1137
1138 UNGCPRO; 1133 UNGCPRO;
1139 1134
1140 /* Is it really necessary to do this deassign 1135 /* Is it really necessary to do this deassign
1141 when we are going to exit anyway? */ 1136 when we are going to exit anyway? */
1142 /* #ifdef VMS 1137 /* #ifdef VMS
1143 stop_vms_input (); 1138 stop_vms_input ();
1144 #endif */ 1139 #endif */
1145 1140
1146 shut_down_emacs (0, 0, STRINGP (arg) ? arg : Qnil); 1141 shut_down_emacs (0, 0, STRINGP (arg) ? arg : Qnil);
1142
1143 /* If we have an auto-save list file,
1144 kill it because we are exiting Emacs deliberately (not crashing).
1145 Do it after shut_down_emacs, which does an auto-save. */
1146 if (STRINGP (Vauto_save_list_file_name))
1147 unlink (XSTRING (Vauto_save_list_file_name)->data);
1147 1148
1148 exit (INTEGERP (arg) ? XINT (arg) 1149 exit (INTEGERP (arg) ? XINT (arg)
1149 #ifdef VMS 1150 #ifdef VMS
1150 : 1 1151 : 1
1151 #else 1152 #else