aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-11-02 09:17:50 +0000
committerRichard M. Stallman2004-11-02 09:17:50 +0000
commitae03e7cf52e245b66b8e04bd9601aa652c43cdf9 (patch)
tree6203746fe547223a57a2968283d5b152733f3928
parent085db7de2dc9af0a5d88667aed435ad155ecfa70 (diff)
downloademacs-ae03e7cf52e245b66b8e04bd9601aa652c43cdf9.tar.gz
emacs-ae03e7cf52e245b66b8e04bd9601aa652c43cdf9.zip
(ad-make-advised-definition): Use called-interactively-p.
-rw-r--r--lisp/emacs-lisp/advice.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 7686722c5be..cfaac96bbb1 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -3106,7 +3106,7 @@ in any of these classes."
3106 (not advised-interactive-form)) 3106 (not advised-interactive-form))
3107 ;; Check whether we were called interactively 3107 ;; Check whether we were called interactively
3108 ;; in order to do proper prompting: 3108 ;; in order to do proper prompting:
3109 `(if (interactive-p) 3109 `(if (called-interactively-p)
3110 (call-interactively ',origname) 3110 (call-interactively ',origname)
3111 ,(ad-make-mapped-call orig-arglist 3111 ,(ad-make-mapped-call orig-arglist
3112 advised-arglist 3112 advised-arglist