aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-09-30 16:28:22 +0200
committerLars Magne Ingebrigtsen2010-09-30 16:28:22 +0200
commitd4b6d95d51c84ee12cd41fead4bb64191b6d5b6b (patch)
treee7f66d2f077bcc1396fef35427a2bc3203e0ae84 /src/eval.c
parentcad90f3b7ad1fafdb09d1bcd3fe4908f94cb3943 (diff)
downloademacs-d4b6d95d51c84ee12cd41fead4bb64191b6d5b6b.tar.gz
emacs-d4b6d95d51c84ee12cd41fead4bb64191b6d5b6b.zip
(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.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index d64d15040df..15112d8659b 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3441,8 +3441,10 @@ Output stream used is value of `standard-output'. */)
3441 Lisp_Object tail; 3441 Lisp_Object tail;
3442 Lisp_Object tem; 3442 Lisp_Object tem;
3443 struct gcpro gcpro1; 3443 struct gcpro gcpro1;
3444 Lisp_Object old_print_level = Vprint_level;
3444 3445
3445 XSETFASTINT (Vprint_level, 3); 3446 if (NILP (Vprint_level))
3447 XSETFASTINT (Vprint_level, 8);
3446 3448
3447 tail = Qnil; 3449 tail = Qnil;
3448 GCPRO1 (tail); 3450 GCPRO1 (tail);
@@ -3483,7 +3485,7 @@ Output stream used is value of `standard-output'. */)
3483 backlist = backlist->next; 3485 backlist = backlist->next;
3484 } 3486 }
3485 3487
3486 Vprint_level = Qnil; 3488 Vprint_level = old_print_level;
3487 UNGCPRO; 3489 UNGCPRO;
3488 return Qnil; 3490 return Qnil;
3489} 3491}