diff src/eval.c @ 97775:88a8ab97052b

(find_handler_clause): Temporarily increase max-lisp-eval-depth while printing the backtrace buffer, to guarantee that help-mode code can run.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 27 Aug 2008 20:26:03 +0000
parents ec0a26179c3c
children 18ca5c2bd793
line wrap: on
line diff
--- a/src/eval.c	Wed Aug 27 20:21:31 2008 +0000
+++ b/src/eval.c	Wed Aug 27 20:26:03 2008 +0000
@@ -1941,16 +1941,18 @@
     {
       if (!NILP (sig) && wants_debugger (Vstack_trace_on_error, conditions))
 	{
+	  max_lisp_eval_depth += 15;
 	  max_specpdl_size++;
-    #ifdef PROTOTYPES
+#ifdef PROTOTYPES
 	  internal_with_output_to_temp_buffer ("*Backtrace*",
 					       (Lisp_Object (*) (Lisp_Object)) Fbacktrace,
 					       Qnil);
-    #else
+#else
 	  internal_with_output_to_temp_buffer ("*Backtrace*",
 					       Fbacktrace, Qnil);
-    #endif
+#endif
 	  max_specpdl_size--;
+	  max_lisp_eval_depth -= 15;
 	}
 
       if (!debugger_considered)