aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2015-07-21 19:09:12 -0400
committerStefan Monnier2015-07-21 19:09:12 -0400
commit5abadebc353cdb55a162a7f35a299623537cd3a8 (patch)
tree4a7d9f6021c10c0f75a9cd4d746b310e99d0ba91
parent492ea2410c6aab25a1d02cb576bb1df536c3f57c (diff)
downloademacs-5abadebc353cdb55a162a7f35a299623537cd3a8.tar.gz
emacs-5abadebc353cdb55a162a7f35a299623537cd3a8.zip
(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 a6db5e9e696..5a59a980feb 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -522,8 +522,9 @@ of the piece of advice."
522 (while 522 (while
523 (progn 523 (progn
524 (funcall get-next-frame) 524 (funcall get-next-frame)
525 (not (and (eq (nth 1 frame2) 'apply) 525 (and frame2
526 (eq (nth 3 frame2) inneradvice))))) 526 (not (and (eq (nth 1 frame2) 'apply)
527 (eq (nth 3 frame2) inneradvice))))))
527 (funcall get-next-frame) 528 (funcall get-next-frame)
528 (funcall get-next-frame)))) 529 (funcall get-next-frame))))
529 (- i origi 1)))) 530 (- i origi 1))))