summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2010-12-07 07:36:25 +0100
committerJan Djärv <jan.h.d@swipnet.se>2010-12-07 07:36:25 +0100
commit2b815743b24c79ae63863bd0f0ffcaf822d400a1 (patch)
treeb3bee3652f14242495586d6b4fdfb201161abb2c
parente49fb298b820378512e01d9b84970decb3038f8c (diff)
downloademacs-2b815743b24c79ae63863bd0f0ffcaf822d400a1.tar.gz
* xsmfns.c (smc_die_CB): Call Fkill_emacs.
Fixes: debbugs:7552
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xsmfns.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3293ec08da5..9a92697b52d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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.
diff --git a/src/xsmfns.c b/src/xsmfns.c
index ec5ca3b1a9f..f6260d00a56 100644
--- a/src/xsmfns.c
+++ b/src/xsmfns.c
@@ -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 ();
}