From: Lars Ingebrigtsen Date: Sun, 5 Jun 2022 18:32:01 +0000 (+0200) Subject: Move two more variables from autoload.el to loaddefs-gen.el X-Git-Tag: emacs-29.0.90~1910^2~211 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c00e21df220b7391ae2f86867419a882e4f1ce1;p=emacs.git Move two more variables from autoload.el to loaddefs-gen.el * lisp/emacs-lisp/loaddefs-gen.el (generated-autoload-file) (generated-autoload-load-name): Move the remaining two autoload.el variables used by loaddefs-gen.el from autoload.el. --- diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index d324a7fc70c..eed88b6faf4 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -38,31 +38,6 @@ (require 'cl-lib) (require 'loaddefs-gen) -(defvar generated-autoload-file nil - "File into which to write autoload definitions. -A Lisp file can set this in its local variables section to make -its autoloads go somewhere else. - -If this is a relative file name, the directory is determined as -follows: - - If a Lisp file defined `generated-autoload-file' as a - file-local variable, use its containing directory. - - Otherwise use the \"lisp\" subdirectory of `source-directory'. - -The autoload file is assumed to contain a trailer starting with a -FormFeed character.") -;;;###autoload -(put 'generated-autoload-file 'safe-local-variable 'stringp) - -(defvar generated-autoload-load-name nil - "Load name for `autoload' statements generated from autoload cookies. -If nil, this defaults to the file name, sans extension. -Typically, you need to set this when the directory containing the file -is not in `load-path'. -This also affects the generated cus-load.el file.") -;;;###autoload -(put 'generated-autoload-load-name 'safe-local-variable 'stringp) - ;; This feels like it should be a defconst, but MH-E sets it to ;; ";;;###mh-autoload" for the autoloads that are to go into mh-loaddefs.el. (defvar generate-autoload-cookie ";;;###autoload" diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el index 7661f60e0ba..a6a4baffbab 100644 --- a/lisp/emacs-lisp/loaddefs-gen.el +++ b/lisp/emacs-lisp/loaddefs-gen.el @@ -65,6 +65,31 @@ be included.") More specifically those definitions will not be considered for the `register-definition-prefixes' call.") +(defvar generated-autoload-file nil + "File into which to write autoload definitions. +A Lisp file can set this in its local variables section to make +its autoloads go somewhere else. + +If this is a relative file name, the directory is determined as +follows: + - If a Lisp file defined `generated-autoload-file' as a + file-local variable, use its containing directory. + - Otherwise use the \"lisp\" subdirectory of `source-directory'. + +The autoload file is assumed to contain a trailer starting with a +FormFeed character.") +;;;###autoload +(put 'generated-autoload-file 'safe-local-variable 'stringp) + +(defvar generated-autoload-load-name nil + "Load name for `autoload' statements generated from autoload cookies. +If nil, this defaults to the file name, sans extension. +Typically, you need to set this when the directory containing the file +is not in `load-path'. +This also affects the generated cus-load.el file.") +;;;###autoload +(put 'generated-autoload-load-name 'safe-local-variable 'stringp) + (defun loaddefs-generate--file-load-name (file outfile) "Compute the name that will be used to load FILE. OUTFILE should be the name of the global loaddefs.el file, which