Function: ad-compile-function

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

Signature

(ad-compile-function FUNCTION)

Documentation

Byte-compile the assembled advice function.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defvar warning-suppress-types)         ;From warnings.el.
(defun ad-compile-function (function)
  "Byte-compile the assembled advice function."
  (require 'bytecomp)
  (let ((byte-compile-warnings byte-compile-warnings)
        ;; Don't pop up windows showing byte-compiler warnings.
        (warning-suppress-types '((bytecomp))))
    (byte-compile (ad-get-advice-info-field function 'advicefunname))))