* src/nsterm.m (ns_term_shutdown): Synchronize user defaults before exiting (Bug#8239).

This commit is contained in:
William Xu 2011-05-28 12:56:53 -04:00 committed by Chong Yidong
parent e19009947f
commit 5ba6571dd9
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-05-28 William Xu <william.xwl@gmail.com>
* nsterm.m (ns_term_shutdown): Synchronize user defaults before
exiting (Bug#8239).
2011-05-28 Jim Meyering <meyering@redhat.com>
Avoid a sign-extension bug in crypto_hash_function.

View file

@ -4058,6 +4058,8 @@ Needs to be here because ns_initialize_display_info () uses AppKit classes.
void
ns_term_shutdown (int sig)
{
[[NSUserDefaults standardUserDefaults] synchronize];
/* code not reached in emacs.c after this is called by shut_down_emacs: */
if (STRINGP (Vauto_save_list_file_name))
unlink (SDATA (Vauto_save_list_file_name));