changeset 57879:7b2c608f3b0b

(ad-make-advised-definition): Use called-interactively-p.
author Richard M. Stallman <rms@gnu.org>
date Tue, 02 Nov 2004 09:17:50 +0000
parents 57a0b4f747a1
children 52307ec50b54
files lisp/emacs-lisp/advice.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/advice.el	Tue Nov 02 09:14:11 2004 +0000
+++ b/lisp/emacs-lisp/advice.el	Tue Nov 02 09:17:50 2004 +0000
@@ -3106,7 +3106,7 @@
 			  (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