]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/nsterm.m (ns_term_shutdown): Synchronize user defaults before exiting (Bug...
authorWilliam Xu <william.xwl@gmail.com>
Sat, 28 May 2011 16:56:53 +0000 (12:56 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 28 May 2011 16:56:53 +0000 (12:56 -0400)
src/ChangeLog
src/nsterm.m

index 3e28cd2f2c0a8414715b2c649b7ed27975fd1935..1546348bfbfc65886e737728105b800588f69ccd 100644 (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.
index ac9c44a57a95b49996b3f62315b34ce07e533b04..52e0dc6c2a874956b8d79259b43182a8d4c86c31 100644 (file)
@@ -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));