[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: backtrace sets print-level to 3
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: backtrace sets print-level to 3 |
Date: |
Thu, 30 Sep 2010 14:35:26 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> (frame-parameter '(1 (2 (3 (4)))))
>>
>> Debugger entered--Lisp error: (wrong-number-of-arguments frame-parameter 1)
>> (frame-parameter (quote (1 ...)))
>> eval((frame-parameter (quote (1 ...))))
>> eval-last-sexp-1(nil)
>> eval-last-sexp(nil)
>> call-interactively(eval-last-sexp nil nil)
>
> You lost me. What "levels" do you mean? I meant the stack levels.
I meant print-level, which says how deep you recurse before you start
printing "...". I think 3 is way too shallow to actually allow
debugging, as shown by the backtrace above.
> Anyway, it might be relevant that debug.el binds print-level and
> pint-length to fixed numbers, see debugger-setup-buffer.
debug.el binds print-level to 8, which is then overridden by Fbacktrace
to 3, and then set to nil.
I think I'll just fix Fbacktrace to 1) restore the previous value upon
exit instead of setting it to Qnil, and 2) use 8 instead of 3.
--
(domestic pets only, the antidote for overdose, milk.)
address@hidden * Lars Magne Ingebrigtsen