mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-12 14:30:42 -08:00
(x_fully_uncatch_errors, x_catching_errors): New functions.
This commit is contained in:
parent
88019a6328
commit
e6feb692fb
1 changed files with 17 additions and 0 deletions
17
src/xterm.c
17
src/xterm.c
|
|
@ -7590,6 +7590,23 @@ x_clear_errors (dpy)
|
|||
x_error_message->string[0] = 0;
|
||||
}
|
||||
|
||||
/* Close off all unclosed x_catch_errors calls. */
|
||||
|
||||
void
|
||||
x_fully_uncatch_errors ()
|
||||
{
|
||||
while (x_error_message)
|
||||
x_uncatch_errors ();
|
||||
}
|
||||
|
||||
/* Nonzero if x_catch_errors has been done and not yet canceled. */
|
||||
|
||||
int
|
||||
x_catching_errors ()
|
||||
{
|
||||
return x_error_message != 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static unsigned int x_wire_count;
|
||||
x_trace_wire ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue