]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fsignal): If lisp_eval_depth or spepdl_size are near
authorGerd Moellmann <gerd@gnu.org>
Tue, 2 May 2000 13:41:03 +0000 (13:41 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 2 May 2000 13:41:03 +0000 (13:41 +0000)
to the limits, increase the limits.

src/eval.c

index 0efa96f07a7b9fba90b051f60f687d66557a189c..d616addde4369d43e57e888492a420acccbeef80 100644 (file)
@@ -1296,6 +1296,13 @@ See also the function `condition-case'.")
   for (; handlerlist; handlerlist = handlerlist->next)
     {
       register Lisp_Object clause;
+      
+      if (lisp_eval_depth + 20 > max_lisp_eval_depth)
+       max_lisp_eval_depth = lisp_eval_depth + 20;
+  
+      if (specpdl_size + 40 > max_specpdl_size)
+       max_specpdl_size = specpdl_size + 40;
+  
       clause = find_handler_clause (handlerlist->handler, conditions,
                                    error_symbol, data, &debugger_value);