Variable: ad-default-compilation-action
ad-default-compilation-action is a customizable variable defined in
advice.el.gz.
Value
maybe
Documentation
Defines whether to compile advised definitions during activation.
A value of always will result in unconditional compilation, never will
always avoid compilation, maybe will compile if the byte-compiler is already
loaded, and like-original will compile if the original definition of the
advised function is compiled or a built-in function. Every other value will
be interpreted as maybe. This variable will only be considered if the
COMPILE argument of ad-activate was supplied as nil.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
;;;###autoload
(defcustom ad-default-compilation-action 'maybe
"Defines whether to compile advised definitions during activation.
A value of `always' will result in unconditional compilation, `never' will
always avoid compilation, `maybe' will compile if the byte-compiler is already
loaded, and `like-original' will compile if the original definition of the
advised function is compiled or a built-in function. Every other value will
be interpreted as `maybe'. This variable will only be considered if the
COMPILE argument of `ad-activate' was supplied as nil."
:type '(choice (const always) (const never) (const like-original)
(other :tag "maybe" maybe))
:group 'advice)