aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-12-01 03:55:17 +0100
committerLars Ingebrigtsen2021-12-01 04:55:18 +0100
commit1f9834cd764fb89d01afca096068034acbf2c79d (patch)
tree4b80baa3459f1efbba3b83db0c0a2b60aa43007c
parent541f61b378eca85fa118caff5ad97b56171baa98 (diff)
downloademacs-1f9834cd764fb89d01afca096068034acbf2c79d.tar.gz
emacs-1f9834cd764fb89d01afca096068034acbf2c79d.zip
Don't include the other loaddef files in the no-autoloads section
* lisp/emacs-lisp/autoload.el (make-directory-autoloads): Don't include the other loaddef files in the no-autoloads section.
-rw-r--r--lisp/emacs-lisp/autoload.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 23fb4002499..5857aa55717 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -1196,9 +1196,17 @@ directory or directories specified."
1196 (goto-char (point-max)) 1196 (goto-char (point-max))
1197 (search-backward "\f" nil t) 1197 (search-backward "\f" nil t)
1198 (autoload-insert-section-header 1198 (autoload-insert-section-header
1199 (current-buffer) nil nil no-autoloads (if autoload-timestamps 1199 (current-buffer) nil nil
1200 no-autoloads-time 1200 ;; Filter out the other loaddefs files, because it makes
1201 autoload--non-timestamp)) 1201 ;; the list unstable (and leads to spurious changes in
1202 ;; ldefs-boot.el) since the loaddef files can be created in
1203 ;; any order.
1204 (seq-filter (lambda (file)
1205 (not (string-match-p "[/-]loaddefs.el" file)))
1206 no-autoloads)
1207 (if autoload-timestamps
1208 no-autoloads-time
1209 autoload--non-timestamp))
1202 (insert generate-autoload-section-trailer))) 1210 (insert generate-autoload-section-trailer)))
1203 1211
1204 ;; Don't modify the file if its content has not been changed, so `make' 1212 ;; Don't modify the file if its content has not been changed, so `make'