Commit debee8fe authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(grow_specpdl): Increase max_specpdl_size before Fsignal.

parent f275fd9a
......@@ -2045,9 +2045,11 @@ grow_specpdl ()
max_specpdl_size = 400;
if (specpdl_size >= max_specpdl_size)
{
if (!NILP (Vdebug_on_error))
/* Leave room for some specpdl in the debugger. */
max_specpdl_size = specpdl_size + 100;
Fsignal (Qerror,
Fcons (build_string ("Variable binding depth exceeds max-specpdl-size"), Qnil));
max_specpdl_size *= 2;
}
}
specpdl_size *= 2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment