Function: autoload-generated-file

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

Signature

(autoload-generated-file OUTFILE)

Documentation

Return OUTFILE as an absolute name.

If generated-autoload-file is bound locally in the current buffer, that is used instead, and it is expanded using the default directory; otherwise, source-directory/lisp is used.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/autoload.el.gz
(defun autoload-generated-file (outfile)
  "Return OUTFILE as an absolute name.
If `generated-autoload-file' is bound locally in the current
buffer, that is used instead, and it is expanded using the
default directory; otherwise, `source-directory'/lisp is used."
  (expand-file-name (if (local-variable-p 'generated-autoload-file)
                        generated-autoload-file
                      outfile)
                    ;; File-local settings of generated-autoload-file should
                    ;; be interpreted relative to the file's location,
                    ;; of course.
                    (if (not (local-variable-p 'generated-autoload-file))
                        (expand-file-name "lisp" source-directory))))