Function: generate-file-autoloads

generate-file-autoloads is an interactive and byte-compiled function defined in autoload.el.gz.

Signature

(generate-file-autoloads FILE)

Documentation

Insert at point a loaddefs autoload section for FILE.

Autoloads are generated for defuns and defmacros in FILE marked by generate-autoload-cookie (which see). If FILE is being visited in a buffer, the contents of the buffer are used. Return non-nil in the case where no autoloads were added at point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/autoload.el.gz
(defun generate-file-autoloads (file)
  "Insert at point a loaddefs autoload section for FILE.
Autoloads are generated for defuns and defmacros in FILE
marked by `generate-autoload-cookie' (which see).
If FILE is being visited in a buffer, the contents of the buffer
are used.
Return non-nil in the case where no autoloads were added at point."
  (interactive "fGenerate autoloads for file: ")
  (let ((autoload-modified-buffers nil))
    (autoload-generate-file-autoloads file (current-buffer) buffer-file-name)
    autoload-modified-buffers))