mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Include versioned preloaded libraries in `package--builtin-versions'
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Do not exclude preloaded libraries or remove entries generated for them. (autoload-generate-file-autoloads): Do not generate autoload statements for preloaded libraries.
This commit is contained in:
parent
a36ed9b5e9
commit
96bd07a322
1 changed files with 19 additions and 20 deletions
|
|
@ -736,6 +736,8 @@ FILE's modification time."
|
|||
package--builtin-versions))
|
||||
(princ "\n")))))
|
||||
|
||||
;; Do not insert autoload entries for excluded files.
|
||||
(unless (member absfile autoload-excludes)
|
||||
(goto-char (point-min))
|
||||
(while (not (eobp))
|
||||
(skip-chars-forward " \t\n\f")
|
||||
|
|
@ -768,7 +770,7 @@ FILE's modification time."
|
|||
"defun-rcirc-command"))))
|
||||
(push (match-string 2) defs))
|
||||
(forward-sexp 1)
|
||||
(forward-line 1))))))
|
||||
(forward-line 1)))))))
|
||||
|
||||
(when (and autoload-compute-prefixes defs)
|
||||
;; This output needs to always go in the main loaddefs.el,
|
||||
|
|
@ -1058,9 +1060,7 @@ write its autoloads into the specified file instead."
|
|||
((not (stringp file)))
|
||||
((or (not (file-exists-p file))
|
||||
;; Remove duplicates as well, just in case.
|
||||
(member file done)
|
||||
;; If the file is actually excluded.
|
||||
(member (expand-file-name file) autoload-excludes))
|
||||
(member file done))
|
||||
;; Remove the obsolete section.
|
||||
(setq changed t)
|
||||
(autoload-remove-section (match-beginning 0)))
|
||||
|
|
@ -1086,7 +1086,6 @@ write its autoloads into the specified file instead."
|
|||
(let ((no-autoloads-time (or last-time '(0 0 0 0))) file-time)
|
||||
(dolist (file files)
|
||||
(cond
|
||||
((member (expand-file-name file) autoload-excludes) nil)
|
||||
;; Passing nil as second argument forces
|
||||
;; autoload-generate-file-autoloads to look for the right
|
||||
;; spot where to insert each autoloads section.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue