]> code.delx.au - gnu-emacs/commitdiff
(advice--called-interactively-skip): Fix inf-loop (bug#21083)
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Jul 2015 23:09:12 +0000 (19:09 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Jul 2015 23:09:12 +0000 (19:09 -0400)
* lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip):
Fix inf-loop (bug#21083).

lisp/emacs-lisp/nadvice.el

index a6db5e9e696827939c048dbad88fb09095fa38cc..5a59a980feb9fd455e6501f09407e441e0a211aa 100644 (file)
@@ -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))))