Function: ad-is-compilable

ad-is-compilable is a byte-compiled function defined in advice.el.gz.

Signature

(ad-is-compilable FUNCTION)

Documentation

True if FUNCTION has an interpreted definition that can be compiled.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-is-compilable (function)
  "True if FUNCTION has an interpreted definition that can be compiled."
  (and (ad-has-proper-definition function)
       (or (ad-lambda-p (symbol-function function))
	   (macrop (symbol-function function)))
       (not (ad-compiled-p (symbol-function function)))))