diff options
author | Vasilij Schneidermann <v.schneidermann@gmail.com> | 2016-09-30 16:22:26 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-09-30 16:22:26 +0300 |
commit | d1890a3a4a18f79cabf4caf8d194cdc29ea4bf05 (patch) | |
tree | 2bc07affe29f93d7c0287b9723d0a1b022b671c9 /lisp/emacs-lisp/debug.el | |
parent | 97f35401771f782d5edc0dc6b841e054ca8685c3 (diff) | |
download | emacs-d1890a3a4a18f79cabf4caf8d194cdc29ea4bf05.tar.gz emacs-d1890a3a4a18f79cabf4caf8d194cdc29ea4bf05.tar.bz2 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 'lisp/emacs-lisp/debug.el')
-rw-r--r-- | lisp/emacs-lisp/debug.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 22a3f3935f2..7d273809fcd 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el @@ -279,7 +279,9 @@ That buffer should be current already." (goto-char (point-min)) (delete-region (point) (progn - (search-forward "\n debug(") + (search-forward (if debugger-stack-frame-as-list + "\n (debug " + "\n debug(")) (forward-line (if (eq (car args) 'debug) ;; Remove debug--implement-debug-on-entry ;; and the advice's `apply' frame. |