aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2006-09-08 12:13:14 +0000
committerRichard M. Stallman2006-09-08 12:13:14 +0000
commit9e69bfa484748b259060fed2ac8426b849e49769 (patch)
tree81cf9312c2120087c07fb5e0d98e48697b278c55 /src
parentd799329b41efb934cd65e4750305e6a854fafc70 (diff)
downloademacs-9e69bfa484748b259060fed2ac8426b849e49769.tar.gz
emacs-9e69bfa484748b259060fed2ac8426b849e49769.zip
(x_error_quitter): For BadName error, just return.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 6a392f96559..757a022d35c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7500,7 +7500,7 @@ struct x_error_message_stack {
7500static struct x_error_message_stack *x_error_message; 7500static struct x_error_message_stack *x_error_message;
7501 7501
7502/* An X error handler which stores the error message in 7502/* An X error handler which stores the error message in
7503 x_error_message_string. This is called from x_error_handler if 7503 *x_error_message. This is called from x_error_handler if
7504 x_catch_errors is in effect. */ 7504 x_catch_errors is in effect. */
7505 7505
7506static void 7506static void
@@ -7519,7 +7519,7 @@ x_error_catcher (display, error)
7519 7519
7520 After calling this function, X protocol errors no longer cause 7520 After calling this function, X protocol errors no longer cause
7521 Emacs to exit; instead, they are recorded in the string 7521 Emacs to exit; instead, they are recorded in the string
7522 stored in x_error_message_string. 7522 stored in *x_error_message.
7523 7523
7524 Calling x_check_errors signals an Emacs error if an X error has 7524 Calling x_check_errors signals an Emacs error if an X error has
7525 occurred since the last call to x_catch_errors or x_check_errors. 7525 occurred since the last call to x_catch_errors or x_check_errors.
@@ -7779,7 +7779,7 @@ x_connection_closed (dpy, error_message)
7779 7779
7780/* We specifically use it before defining it, so that gcc doesn't inline it, 7780/* We specifically use it before defining it, so that gcc doesn't inline it,
7781 otherwise gdb doesn't know how to properly put a breakpoint on it. */ 7781 otherwise gdb doesn't know how to properly put a breakpoint on it. */
7782static void x_error_quitter P_ ((Display *, XErrorEvent *)) NO_RETURN; 7782static void x_error_quitter P_ ((Display *, XErrorEvent *));
7783 7783
7784/* This is the first-level handler for X protocol errors. 7784/* This is the first-level handler for X protocol errors.
7785 It calls x_error_quitter or x_error_catcher. */ 7785 It calls x_error_quitter or x_error_catcher. */
@@ -7824,6 +7824,12 @@ x_error_quitter (display, error)
7824{ 7824{
7825 char buf[256], buf1[356]; 7825 char buf[256], buf1[356];
7826 7826
7827 /* Ignore BadName errors. They can happen because of fonts
7828 or colors that are not defined. */
7829
7830 if (error->error_code == BadName)
7831 return;
7832
7827 /* Note that there is no real way portable across R3/R4 to get the 7833 /* Note that there is no real way portable across R3/R4 to get the
7828 original error handler. */ 7834 original error handler. */
7829 7835