aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/debugging.texi
diff options
context:
space:
mode:
authorVasilij Schneidermann2016-09-30 16:22:26 +0300
committerEli Zaretskii2016-09-30 16:22:26 +0300
commitd1890a3a4a18f79cabf4caf8d194cdc29ea4bf05 (patch)
tree2bc07affe29f93d7c0287b9723d0a1b022b671c9 /doc/lispref/debugging.texi
parent97f35401771f782d5edc0dc6b841e054ca8685c3 (diff)
downloademacs-d1890a3a4a18f79cabf4caf8d194cdc29ea4bf05.tar.gz
emacs-d1890a3a4a18f79cabf4caf8d194cdc29ea4bf05.zip
New user option 'debugger-stack-frame-as-list'
* src/eval.c (syms_of_eval) <debugger-stack-frame-as-list>: New variable. * lisp/cus-start.el (standard): Add debugger-stack-frame-as-list. * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Adjust backtrace processing for the value of debugger-stack-frame-as-list. * lisp/emacs-lisp/edebug.el (edebug-backtrace): Adjust backtrace processing for the value of debugger-stack-frame-as-list. * doc/lispref/debugging.texi (Internals of Debugger): Document debugger-stack-frame-as-list. * etc/NEWS: Mention 'debugger-stack-frame-as-list'.
Diffstat (limited to 'doc/lispref/debugging.texi')
-rw-r--r--doc/lispref/debugging.texi31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi
index 2f83b4040fa..710ab92fda5 100644
--- a/doc/lispref/debugging.texi
+++ b/doc/lispref/debugging.texi
@@ -623,6 +623,37 @@ forms are elided.
623@end smallexample 623@end smallexample
624@end deffn 624@end deffn
625 625
626@defvar debugger-stack-frame-as-list
627If this variable is non-@code{nil}, every stack frame of the backtrace
628is displayed as a list. This aims at improving the backtrace
629readability at the cost of special forms no longer being visually
630different from regular function calls.
631
632With @code{debugger-stack-frame-as-list} non-@code{nil}, the above
633example would look as follows:
634
635@smallexample
636@group
637----------- Buffer: backtrace-output ------------
638 (backtrace)
639 (list ...computing arguments...)
640@end group
641 (progn ...)
642 (eval (progn (1+ var) (list (quote testing) (backtrace))))
643 (setq ...)
644 (save-excursion ...)
645 (let ...)
646 (with-output-to-temp-buffer ...)
647 (eval (with-output-to-temp-buffer ...))
648 (eval-last-sexp-1 nil)
649@group
650 (eval-last-sexp nil)
651 (call-interactively eval-last-sexp)
652----------- Buffer: backtrace-output ------------
653@end group
654@end smallexample
655@end defvar
656
626@defvar debug-on-next-call 657@defvar debug-on-next-call
627@cindex @code{eval}, and debugging 658@cindex @code{eval}, and debugging
628@cindex @code{apply}, and debugging 659@cindex @code{apply}, and debugging