summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan D. <jan.h.d@swipnet.se>2010-12-07 07:36:25 +0100
committerJan D. <jan.h.d@swipnet.se>2010-12-07 07:36:25 +0100
commit00e5beb45df02bc36ed9dfe3ab7c41c1f6bfc622 (patch)
tree08e15839a10fd6d52a8e2f4df220bb4d5ecb955c /src
parent11723486b9d2e301f62af83587e3ff122c5ed4a8 (diff)
downloademacs-00e5beb45df02bc36ed9dfe3ab7c41c1f6bfc622.tar.gz
* xsmfns.c (smc_die_CB): Call Fkill_emacs.
Diffstat (limited to 'src')
-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 94cc2712dc1..6f9952faf45 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 ();
}