changeset 69388:1fe13d52e977

(x_fully_uncatch_errors, x_catching_errors): New functions.
author Richard M. Stallman <rms@gnu.org>
date Sat, 11 Mar 2006 15:20:09 +0000
parents 2a8938fd785e
children 858b77cfcdf5
files src/xterm.c
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Mar 11 15:19:31 2006 +0000
+++ b/src/xterm.c	Sat Mar 11 15:20:09 2006 +0000
@@ -7590,6 +7590,23 @@
   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 ()