diff options
author | Juanma Barranquero <[email protected]> | 2009-10-02 03:48:36 +0000 |
---|---|---|
committer | Juanma Barranquero <[email protected]> | 2009-10-02 03:48:36 +0000 |
commit | 32226619c5e563c384372b566000e5d37d783a61 (patch) | |
tree | 216af4221d2ba868b45162679ce3a0462985c422 /lisp/emacs-lisp/advice.el | |
parent | 12a3c28c787e23801f40ea557a5c00b538968a52 (diff) |
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/emacs-lisp/advice.el')
-rw-r--r-- | lisp/emacs-lisp/advice.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 8979f9dfa1..4165cb5f19 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el @@ -218,7 +218,7 @@ ;; "Make `car' an interactive function." ;; (interactive "xCar of list: ") ;; ad-do-it -;; (if (interactive-p) +;; (if (called-interactively-p 'interactive) ;; (message "%s" ad-return-value))) @@ -2390,7 +2390,7 @@ All currently advised functions will be considered." (interactive (list (ad-read-regexp "Enable advices via regexp"))) (let ((matched-advices (ad-enable-regexp-internal regexp 'any t))) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "%d matching advices enabled" matched-advices)) matched-advices)) @@ -2400,7 +2400,7 @@ All currently advised functions will be considered." (interactive (list (ad-read-regexp "Disable advices via regexp"))) (let ((matched-advices (ad-enable-regexp-internal regexp 'any nil))) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "%d matching advices disabled" matched-advices)) matched-advices)) |