cut debugger frames from backtraces
authorRobin Templeton <robin@terpri.org>
Tue, 23 Sep 2014 04:44:45 +0000 (00:44 -0400)
committerRobin Templeton <robin@terpri.org>
Mon, 9 Feb 2015 18:04:27 +0000 (13:04 -0500)
commita2c412a83999428ce92928002a84dc00aed05079
tree3491e51750039621d4e8beb3dc41024266562d60
parente3fc50ad658a464ef32c11a98d4c846be9850201
cut debugger frames from backtraces

Thanks to Oleg Sivokon <olegsivokon@gmail.com> for the report.

* lisp/emacs-lisp/debug.el (debug-inner-cut): New variable.
  (debug-1): New function extracted from `debug'.
  (debug): Call `debug-1' in a new prompt, binding `debug-inner-cut'
  to the prompt tag.
  (debugger-setup-buffer): Cut the backtrace with `debug-inner-cut'.
lisp/emacs-lisp/debug.el