aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-12-21 04:13:46 +0000
committerStefan Monnier2008-12-21 04:13:46 +0000
commit5e252df23484d60af95fb3efce226971c2e988d4 (patch)
tree41e726ff17fc772fbf535c6b206ee735c360d926 /src
parente3ca2c4b7e4c8a01e9a146f87e5a5b50d91b4ec3 (diff)
downloademacs-5e252df23484d60af95fb3efce226971c2e988d4.tar.gz
emacs-5e252df23484d60af95fb3efce226971c2e988d4.zip
(cmd_error_internal): Don't exit in daemon mode, bug#1310.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/keyboard.c13
2 files changed, 16 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bd37f3528fd..ae758b60dcf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4
12008-12-20 Jason Rumney <jasonr@gnu.org> 52008-12-20 Jason Rumney <jasonr@gnu.org>
2 6
3 * frame.c (Fmake_terminal_frame): Raise an error when called from 7 * frame.c (Fmake_terminal_frame): Raise an error when called from
diff --git a/src/keyboard.c b/src/keyboard.c
index 1d2f4eb7a9a..6f6b094e88c 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1265,7 +1265,18 @@ cmd_error_internal (data, context)
1265 /* If the window system or terminal frame hasn't been initialized 1265 /* If the window system or terminal frame hasn't been initialized
1266 yet, or we're not interactive, write the message to stderr and exit. */ 1266 yet, or we're not interactive, write the message to stderr and exit. */
1267 else if (!sf->glyphs_initialized_p 1267 else if (!sf->glyphs_initialized_p
1268 || FRAME_INITIAL_P (sf) 1268 /* We used to check if "This is the case of the frame dumped with
1269 Emacs, when we're running under a window system" with
1270 || (!NILP (Vwindow_system) && !inhibit_window_system
1271 && FRAME_TERMCAP_P (sf))
1272 then the multi-tty code generalized this check to
1273 || FRAME_INITIAL_P (sf)
1274 but this leads to undesirable behavior in daemon mode where
1275 we don't want to exit just because we got an error without
1276 having a frame (bug#1310).
1277 So I just removed the check, and rely instead on the `message_*'
1278 functions properly using FRAME_INITIAL_P. In the worst case
1279 this should just make Emacs not exit when it should. */
1269 || noninteractive) 1280 || noninteractive)
1270 { 1281 {
1271 print_error_message (data, Qexternal_debugging_output, 1282 print_error_message (data, Qexternal_debugging_output,