From 5ba6571dd9564a146c80bef5d6ed08efb309cf43 Mon Sep 17 00:00:00 2001 From: William Xu Date: Sat, 28 May 2011 12:56:53 -0400 Subject: [PATCH] * src/nsterm.m (ns_term_shutdown): Synchronize user defaults before exiting (Bug#8239). --- src/ChangeLog | 5 +++++ src/nsterm.m | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 3e28cd2f2c0..1546348bfbf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-05-28 William Xu + + * nsterm.m (ns_term_shutdown): Synchronize user defaults before + exiting (Bug#8239). + 2011-05-28 Jim Meyering Avoid a sign-extension bug in crypto_hash_function. diff --git a/src/nsterm.m b/src/nsterm.m index ac9c44a57a9..52e0dc6c2a8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4058,6 +4058,8 @@ ns_term_init (Lisp_Object display_name) 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)); -- 2.39.2