]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_fully_uncatch_errors, x_catching_errors): New functions.
authorRichard M. Stallman <rms@gnu.org>
Sat, 11 Mar 2006 15:20:09 +0000 (15:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 11 Mar 2006 15:20:09 +0000 (15:20 +0000)
src/xterm.c

index c0941b7cbdb460646681ec48a4b9a45e37e9adaf..92b245f2b32a26cd4577e3630a51eb30db5536cc 100644 (file)
@@ -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 ()