Virtually backported from trunk.
Fixes: debbugs:10025
+2012-12-07 Michael Heerdegen <michael_heerdegen@web.de>
+
+ * emacs-lisp/debug.el (debug): Fix hard-coded frame counts (bug#10025).
+ Virtually backported from trunk.
+
2012-12-07 Juanma Barranquero <lekktu@gmail.com>
* vc/vc-hooks.el (vc-state): Doc fix.
(when (eq (car debugger-args) 'debug)
;; Skip the frames for backtrace-debug, byte-code,
;; and implement-debug-on-entry.
- (backtrace-debug 4 t)
+ (backtrace-debug 3 t)
;; Place an extra debug-on-exit for macro's.
- (when (eq 'lambda (car-safe (cadr (backtrace-frame 4))))
- (backtrace-debug 5 t)))
+ (when (eq 'lambda (car-safe (cadr (backtrace-frame 3))))
+ (backtrace-debug 4 t)))
(pop-to-buffer
debugger-buffer
`((display-buffer-reuse-window