diff options
| author | Richard M. Stallman | 2006-03-11 15:20:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-03-11 15:20:09 +0000 |
| commit | e6feb692fb27773fd062a63e2b30aef4db5d4bac (patch) | |
| tree | be4c2c570f90cabc721e2f749f6f6c5ffa81feb9 | |
| parent | 88019a632801faf4b322b997971658a83274f33d (diff) | |
| download | emacs-e6feb692fb27773fd062a63e2b30aef4db5d4bac.tar.gz emacs-e6feb692fb27773fd062a63e2b30aef4db5d4bac.zip | |
(x_fully_uncatch_errors, x_catching_errors): New functions.
| -rw-r--r-- | src/xterm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index c0941b7cbdb..92b245f2b32 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7590,6 +7590,23 @@ x_clear_errors (dpy) | |||
| 7590 | x_error_message->string[0] = 0; | 7590 | x_error_message->string[0] = 0; |
| 7591 | } | 7591 | } |
| 7592 | 7592 | ||
| 7593 | /* Close off all unclosed x_catch_errors calls. */ | ||
| 7594 | |||
| 7595 | void | ||
| 7596 | x_fully_uncatch_errors () | ||
| 7597 | { | ||
| 7598 | while (x_error_message) | ||
| 7599 | x_uncatch_errors (); | ||
| 7600 | } | ||
| 7601 | |||
| 7602 | /* Nonzero if x_catch_errors has been done and not yet canceled. */ | ||
| 7603 | |||
| 7604 | int | ||
| 7605 | x_catching_errors () | ||
| 7606 | { | ||
| 7607 | return x_error_message != 0; | ||
| 7608 | } | ||
| 7609 | |||
| 7593 | #if 0 | 7610 | #if 0 |
| 7594 | static unsigned int x_wire_count; | 7611 | static unsigned int x_wire_count; |
| 7595 | x_trace_wire () | 7612 | x_trace_wire () |