summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2006-09-08 12:13:14 +0000
committerRichard M. Stallman <rms@gnu.org>2006-09-08 12:13:14 +0000
commit9e69bfa484748b259060fed2ac8426b849e49769 (patch)
tree81cf9312c2120087c07fb5e0d98e48697b278c55 /src/xterm.c
parentd799329b41efb934cd65e4750305e6a854fafc70 (diff)
downloademacs-9e69bfa484748b259060fed2ac8426b849e49769.tar.gz
(x_error_quitter): For BadName error, just return.
Diffstat (limited to 'src/xterm.c')
-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 {
static struct x_error_message_stack *x_error_message;
/* An X error handler which stores the error message in
- x_error_message_string. This is called from x_error_handler if
+ *x_error_message. This is called from x_error_handler if
x_catch_errors is in effect. */
static void
@@ -7519,7 +7519,7 @@ x_error_catcher (display, error)
After calling this function, X protocol errors no longer cause
Emacs to exit; instead, they are recorded in the string
- stored in x_error_message_string.
+ stored in *x_error_message.
Calling x_check_errors signals an Emacs error if an X error has
occurred since the last call to x_catch_errors or x_check_errors.
@@ -7779,7 +7779,7 @@ x_connection_closed (dpy, error_message)
/* We specifically use it before defining it, so that gcc doesn't inline it,
otherwise gdb doesn't know how to properly put a breakpoint on it. */
-static void x_error_quitter P_ ((Display *, XErrorEvent *)) NO_RETURN;
+static void x_error_quitter P_ ((Display *, XErrorEvent *));
/* This is the first-level handler for X protocol errors.
It calls x_error_quitter or x_error_catcher. */
@@ -7824,6 +7824,12 @@ x_error_quitter (display, error)
{
char buf[256], buf1[356];
+ /* Ignore BadName errors. They can happen because of fonts
+ or colors that are not defined. */
+
+ if (error->error_code == BadName)
+ return;
+
/* Note that there is no real way portable across R3/R4 to get the
original error handler. */