Function: help-fns--interactive-only
help-fns--interactive-only is a byte-compiled function defined in
help-fns.el.gz.
Signature
(help-fns--interactive-only FUNCTION)
Documentation
Insert some help blurb if FUNCTION should only be used interactively.
Source Code
;; Defined in /usr/src/emacs/lisp/help-fns.el.gz
(defun help-fns--interactive-only (function)
"Insert some help blurb if FUNCTION should only be used interactively."
;; Ignore lambda constructs, keyboard macros, etc.
(and (symbolp function)
(not (eq (car-safe (symbol-function function)) 'macro))
(let* ((interactive-only
(or (get function 'interactive-only)
(if (boundp 'byte-compile-interactive-only-functions)
(memq function
byte-compile-interactive-only-functions)))))
(when interactive-only
(insert " This function is for interactive use only"
;; Cf byte-compile-form.
(cond ((stringp interactive-only)
(format ";\n in Lisp code %s" interactive-only))
((and (symbolp 'interactive-only)
(not (eq interactive-only t)))
(format-message ";\n in Lisp code use `%s' instead."
interactive-only))
(t "."))
"\n")))))