Function: ad-disable-advice
ad-disable-advice is an autoloaded, interactive and byte-compiled
function defined in advice.el.gz.
Signature
(ad-disable-advice FUNCTION CLASS NAME)
Documentation
Disable 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-disable-advice (function class name)
"Disable the advice of FUNCTION with CLASS and NAME."
(interactive (ad-read-advice-specification "Disable advice of"))
(if (ad-is-advised function)
(if (eq (ad-enable-advice-internal function class name nil) 0)
(error "ad-disable-advice: `%s' has no %s advice matching `%s'"
function class name))
(error "ad-disable-advice: `%s' is not advised" function)))