Function: advice-member-p

advice-member-p is a byte-compiled function defined in nadvice.el.gz.

Signature

(advice-member-p ADVICE SYMBOL)

Documentation

Return non-nil if ADVICE has been added to SYMBOL.

Instead of ADVICE being the actual function, it can also be the name of the piece of advice.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/nadvice.el.gz
;;;###autoload
(defun advice-member-p (advice symbol)
  "Return non-nil if ADVICE has been added to SYMBOL.
Instead of ADVICE being the actual function, it can also be the `name'
of the piece of advice."
  (advice-function-member-p advice (advice--symbol-function symbol)))