]> git.eshelyaron.com Git - emacs.git/commitdiff
* xsmfns.c (smc_die_CB): Call Fkill_emacs.
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 7 Dec 2010 06:36:25 +0000 (07:36 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 7 Dec 2010 06:36:25 +0000 (07:36 +0100)
Fixes: debbugs:7552
src/ChangeLog
src/xsmfns.c

index 3293ec08da51d5d549c3fa2f4473325ef53c076e..9a92697b52d7017036ba5b34a6f61c06ac16af17 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
+
 2010-12-06  Chong Yidong  <cyd@stupidchicken.com>
 
        * dispextern.h (struct it): New member overlay_strings_charpos.
index ec5ca3b1a9f22ae0b0ef1b3d8c40f98808f11fc8..f6260d00a564aa9a322ef0e027f792b777e7b651 100644 (file)
@@ -298,6 +298,10 @@ smc_die_CB (smcConn, clientData)
      SmcConn smcConn;
      SmPointer clientData;
 {
+  /* This may behave badly if desktop.el tries to ask questions.  */
+  Fkill_emacs (Qnil);
+
+  /* This will not be reached, but we want kill-emacs-hook to be run.  */
   SmcCloseConnection (smcConn, 0, 0);
   ice_connection_closed ();
 }