Function: advice--interactive-form

advice--interactive-form is a byte-compiled function defined in nadvice.el.gz.

Signature

(advice--interactive-form FUNCTION)

Documentation

Like interactive-form but tries to avoid autoloading functions.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/nadvice.el.gz
(defun advice--interactive-form (function)
  "Like `interactive-form' but tries to avoid autoloading functions."
  (if (not (and (symbolp function) (autoloadp (indirect-function function))))
      (interactive-form function)
    (when (commandp function)
      `(interactive (advice-eval-interactive-spec
                     (cadr (interactive-form ',function)))))))