Function: ad-enable-advice
ad-enable-advice is an autoloaded, interactive and byte-compiled
function defined in advice.el.gz.
Signature
(ad-enable-advice FUNCTION CLASS NAME)
Documentation
Enables the advice of FUNCTION with CLASS and NAME.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
;;;###autoload
(defun ad-enable-advice (function class name)
"Enables the advice of FUNCTION with CLASS and NAME."
(interactive (ad-read-advice-specification "Enable advice of"))
(if (ad-is-advised function)
(if (eq (ad-enable-advice-internal function class name t) 0)
(error "ad-enable-advice: `%s' has no %s advice matching `%s'"
function class name))
(error "ad-enable-advice: `%s' is not advised" function)))