# HG changeset patch # User Lars Magne Ingebrigtsen # Date 1285856902 -7200 # Node ID f330be51ec029ef8b3cffcc9f80219d8e5754295 # Parent c05f92a4d8346a1ae70f72523eb499fef15a8813 (Fbacktrace): Don't overwrite print-level on exit. Also only override Vprint_level if it isn't already bound, and increase the level to 8 to produce more useful backtraces for bug reports. diff -r c05f92a4d834 -r f330be51ec02 src/ChangeLog --- a/src/ChangeLog Thu Sep 30 14:44:25 2010 +0200 +++ b/src/ChangeLog Thu Sep 30 16:28:22 2010 +0200 @@ -1,3 +1,9 @@ +2010-09-30 Lars Magne Ingebrigtsen + + * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also + only override Vprint_level if it isn't already bound, and increase + the level to 8 to produce more useful backtraces for bug reports. + 2010-09-30 Dan Nicolaescu * Makefile.in: ecrt0.c does not exist anymore, do not mention it. diff -r c05f92a4d834 -r f330be51ec02 src/eval.c --- a/src/eval.c Thu Sep 30 14:44:25 2010 +0200 +++ b/src/eval.c Thu Sep 30 16:28:22 2010 +0200 @@ -3441,8 +3441,10 @@ Lisp_Object tail; Lisp_Object tem; struct gcpro gcpro1; - - XSETFASTINT (Vprint_level, 3); + Lisp_Object old_print_level = Vprint_level; + + if (NILP (Vprint_level)) + XSETFASTINT (Vprint_level, 8); tail = Qnil; GCPRO1 (tail); @@ -3483,7 +3485,7 @@ backlist = backlist->next; } - Vprint_level = Qnil; + Vprint_level = old_print_level; UNGCPRO; return Qnil; }