summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2015-07-21 19:09:12 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2015-07-21 19:09:12 -0400
commit5abadebc353cdb55a162a7f35a299623537cd3a8 (patch)
tree4a7d9f6021c10c0f75a9cd4d746b310e99d0ba91
parent492ea2410c6aab25a1d02cb576bb1df536c3f57c (diff)
(advice--called-interactively-skip): Fix inf-loop (bug#21083)
* lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): Fix inf-loop (bug#21083).
-rw-r--r--lisp/emacs-lisp/nadvice.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index a6db5e9e69..5a59a980fe 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -522,8 +522,9 @@ of the piece of advice."
(while
(progn
(funcall get-next-frame)
- (not (and (eq (nth 1 frame2) 'apply)
- (eq (nth 3 frame2) inneradvice)))))
+ (and frame2
+ (not (and (eq (nth 1 frame2) 'apply)
+ (eq (nth 3 frame2) inneradvice))))))
(funcall get-next-frame)
(funcall get-next-frame))))
(- i origi 1))))