# HG changeset patch # User Eli Zaretskii # Date 1142092850 0 # Node ID 947598ed954aa99e1a322f045282b7358d78f104 # Parent 15b9fd17967e7f9c4db7891e722c89b92ea4163b (unwind_to_catch): Call x_fully_uncatch_errors only if HAVE_X_WINDOWS. (internal_condition_case, internal_condition_case_1) (internal_condition_case_2): Call x_catching_errors only if HAVE_X_WINDOWS. diff -r 15b9fd17967e -r 947598ed954a src/eval.c --- a/src/eval.c Sat Mar 11 15:46:24 2006 +0000 +++ b/src/eval.c Sat Mar 11 16:00:50 2006 +0000 @@ -1259,9 +1259,11 @@ } while (! last_time); +#if HAVE_X_WINDOWS /* If x_catch_errors was done, turn it off now. (First we give unbind_to a chance to do that.) */ x_fully_uncatch_errors (); +#endif byte_stack_list = catch->byte_stack; gcprolist = catch->gcpro; @@ -1441,8 +1443,10 @@ /* Since Fsignal will close off all calls to x_catch_errors, we will get the wrong results if some are not closed now. */ +#if HAVE_X_WINDOWS if (x_catching_errors ()) abort (); +#endif c.tag = Qnil; c.val = Qnil; @@ -1487,8 +1491,10 @@ /* Since Fsignal will close off all calls to x_catch_errors, we will get the wrong results if some are not closed now. */ +#if HAVE_X_WINDOWS if (x_catching_errors ()) abort (); +#endif c.tag = Qnil; c.val = Qnil; @@ -1536,8 +1542,10 @@ /* Since Fsignal will close off all calls to x_catch_errors, we will get the wrong results if some are not closed now. */ +#if HAVE_X_WINDOWS if (x_catching_errors ()) abort (); +#endif c.tag = Qnil; c.val = Qnil;