1 |
/* X Communication module for terminals which understand the X protocol. |
/* X Communication module for terminals which understand the X protocol. |
2 |
Copyright (C) 1989, 93, 94, 95, 96, 97, 98, 1999, 2000,01,02,03,04 |
Copyright (C) 1989, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
3 |
Free Software Foundation, Inc. |
2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Emacs. |
This file is part of GNU Emacs. |
6 |
|
|
7766 |
error ("%s", error_msg); |
error ("%s", error_msg); |
7767 |
} |
} |
7768 |
|
|
7769 |
|
/* We specifically use it before defining it, so that gcc doesn't inline it, |
7770 |
|
otherwise gdb doesn't know how to properly put a breakpoint on it. */ |
7771 |
|
static void x_error_quitter (Display *display, XErrorEvent *error); |
7772 |
|
|
7773 |
/* This is the first-level handler for X protocol errors. |
/* This is the first-level handler for X protocol errors. |
7774 |
It calls x_error_quitter or x_error_catcher. */ |
It calls x_error_quitter or x_error_catcher. */ |
7775 |
|
|
7789 |
It kills all frames on the display that we got the error for. |
It kills all frames on the display that we got the error for. |
7790 |
If that was the only one, it prints an error message and kills Emacs. */ |
If that was the only one, it prints an error message and kills Emacs. */ |
7791 |
|
|
7792 |
/* This is not static because we want to put a breakpoint on it. |
/* It is after x_error_handler so that it won't get inlined in |
|
It is after x_error_handler so that it won't get inlined in |
|
7793 |
x_error_handler. */ |
x_error_handler. */ |
7794 |
|
|
7795 |
void |
static void |
7796 |
x_error_quitter (display, error) |
x_error_quitter (display, error) |
7797 |
Display *display; |
Display *display; |
7798 |
XErrorEvent *error; |
XErrorEvent *error; |