Function: ad-definition-type
ad-definition-type is a byte-compiled function defined in
advice.el.gz.
Signature
(ad-definition-type DEFINITION)
Documentation
Return symbol that describes the type of DEFINITION.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-definition-type (definition)
"Return symbol that describes the type of DEFINITION."
;; These symbols are only ever used to check a cache entry's validity.
;; The suffix `2' reflects the fact that we're using version 2 of advice
;; representations, so cache entries preactivated with version
;; 1 can't be used.
(cond
((macrop definition) 'macro2)
((subrp definition) 'subr2)
((or (ad-lambda-p definition) (ad-compiled-p definition)) 'fun2)
((ad-advice-p definition) 'advice2))) ;; FIXME: Can this ever happen?