* lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): Use the new

`base' arg of backtrace-frame.
This commit is contained in:
Stefan Monnier 2013-07-26 14:41:18 -04:00
parent d58d31fbe7
commit 7ced0d0446
2 changed files with 6 additions and 1 deletions

View file

@ -425,7 +425,7 @@ of the piece of advice."
(get-next-frame
(lambda ()
(setq frame1 frame2)
(setq frame2 (internal--called-interactively-p--get-frame i))
(setq frame2 (backtrace-frame i #'called-interactively-p))
;; (message "Advice Frame %d = %S" i frame2)
(setq i (1+ i)))))
(when (and (eq (nth 1 frame2) 'apply)