aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorEli Zaretskii2006-03-11 16:00:50 +0000
committerEli Zaretskii2006-03-11 16:00:50 +0000
commita2a103bbe128dd10d70607e6e40882781154aade (patch)
treebca29c9aa6993a711a1c1223d72f60deeb55a6d8 /src/eval.c
parent9257b6273afb9f97b64fa331623ffc0afdeb5382 (diff)
downloademacs-a2a103bbe128dd10d70607e6e40882781154aade.tar.gz
emacs-a2a103bbe128dd10d70607e6e40882781154aade.zip
(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.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 435667e4d50..86ee384896c 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1259,9 +1259,11 @@ unwind_to_catch (catch, value)
1259 } 1259 }
1260 while (! last_time); 1260 while (! last_time);
1261 1261
1262#if HAVE_X_WINDOWS
1262 /* If x_catch_errors was done, turn it off now. 1263 /* If x_catch_errors was done, turn it off now.
1263 (First we give unbind_to a chance to do that.) */ 1264 (First we give unbind_to a chance to do that.) */
1264 x_fully_uncatch_errors (); 1265 x_fully_uncatch_errors ();
1266#endif
1265 1267
1266 byte_stack_list = catch->byte_stack; 1268 byte_stack_list = catch->byte_stack;
1267 gcprolist = catch->gcpro; 1269 gcprolist = catch->gcpro;
@@ -1441,8 +1443,10 @@ internal_condition_case (bfun, handlers, hfun)
1441 1443
1442 /* Since Fsignal will close off all calls to x_catch_errors, 1444 /* Since Fsignal will close off all calls to x_catch_errors,
1443 we will get the wrong results if some are not closed now. */ 1445 we will get the wrong results if some are not closed now. */
1446#if HAVE_X_WINDOWS
1444 if (x_catching_errors ()) 1447 if (x_catching_errors ())
1445 abort (); 1448 abort ();
1449#endif
1446 1450
1447 c.tag = Qnil; 1451 c.tag = Qnil;
1448 c.val = Qnil; 1452 c.val = Qnil;
@@ -1487,8 +1491,10 @@ internal_condition_case_1 (bfun, arg, handlers, hfun)
1487 1491
1488 /* Since Fsignal will close off all calls to x_catch_errors, 1492 /* Since Fsignal will close off all calls to x_catch_errors,
1489 we will get the wrong results if some are not closed now. */ 1493 we will get the wrong results if some are not closed now. */
1494#if HAVE_X_WINDOWS
1490 if (x_catching_errors ()) 1495 if (x_catching_errors ())
1491 abort (); 1496 abort ();
1497#endif
1492 1498
1493 c.tag = Qnil; 1499 c.tag = Qnil;
1494 c.val = Qnil; 1500 c.val = Qnil;
@@ -1536,8 +1542,10 @@ internal_condition_case_2 (bfun, nargs, args, handlers, hfun)
1536 1542
1537 /* Since Fsignal will close off all calls to x_catch_errors, 1543 /* Since Fsignal will close off all calls to x_catch_errors,
1538 we will get the wrong results if some are not closed now. */ 1544 we will get the wrong results if some are not closed now. */
1545#if HAVE_X_WINDOWS
1539 if (x_catching_errors ()) 1546 if (x_catching_errors ())
1540 abort (); 1547 abort ();
1548#endif
1541 1549
1542 c.tag = Qnil; 1550 c.tag = Qnil;
1543 c.val = Qnil; 1551 c.val = Qnil;