]> git.eshelyaron.com Git - emacs.git/commitdiff
(ad-make-advised-definition): Use called-interactively-p.
authorRichard M. Stallman <rms@gnu.org>
Tue, 2 Nov 2004 09:17:50 +0000 (09:17 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 2 Nov 2004 09:17:50 +0000 (09:17 +0000)
lisp/emacs-lisp/advice.el

index 7686722c5bed7e0aaed49bd0144672bd15ffe128..cfaac96bbb19843417a797ac0df4624ccba9a2b2 100644 (file)
@@ -3106,7 +3106,7 @@ in any of these classes."
                          (not advised-interactive-form))
                     ;; Check whether we were called interactively
                     ;; in order to do proper prompting:
-                    `(if (interactive-p)
+                    `(if (called-interactively-p)
                          (call-interactively ',origname)
                        ,(ad-make-mapped-call orig-arglist
                                              advised-arglist