Function: autoload-find-generated-file

autoload-find-generated-file is a byte-compiled function defined in autoload.el.gz.

Signature

(autoload-find-generated-file FILE)

Documentation

Visit the autoload file for the current buffer, and return its buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/autoload.el.gz
;; Forms which have doc-strings which should be printed specially.
;; A doc-string-elt property of ELT says that (nth ELT FORM) is
;; the doc-string in FORM.
;; Those properties are now set in lisp-mode.el.

(defun autoload-find-generated-file (file)
  "Visit the autoload file for the current buffer, and return its buffer."
  (let ((enable-local-variables :safe)
        (enable-local-eval nil)
        (find-file-hook nil)
        (delay-mode-hooks t))
    ;; We used to use `raw-text' to read this file, but this causes
    ;; problems when the file contains non-ASCII characters.
    (with-current-buffer (find-file-noselect
                          (autoload-ensure-file-writeable file))
      (if (zerop (buffer-size)) (insert (autoload-rubric file nil t)))
      (current-buffer))))