fix(lib): silence deprecation notice from autoload.el

It's been replaced with loaddeffs-gen.el in >=30, but we can't switch to
it until we've dropped 29.x support.
This commit is contained in:
Henrik Lissner 2024-11-13 03:00:42 -05:00
parent 1af6fe8502
commit cb557319a9
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -167,7 +167,8 @@ hoist buggy forms into autoloads.")
Autoloads will be generated from autoload cookies in FILES (except those that Autoloads will be generated from autoload cookies in FILES (except those that
match one of the regexps in EXCLUDE -- a list of strings). If LITERAL is match one of the regexps in EXCLUDE -- a list of strings). If LITERAL is
non-nil, treat FILES as pre-generated autoload files instead." non-nil, treat FILES as pre-generated autoload files instead."
(require 'autoload) (quiet! ; silence deprecation notices in 30+
(require 'autoload))
(let (autoloads) (let (autoloads)
(dolist (file files (nreverse (delq nil autoloads))) (dolist (file files (nreverse (delq nil autoloads)))
(when (and (not (seq-find (doom-rpartial #'string-match-p file) exclude)) (when (and (not (seq-find (doom-rpartial #'string-match-p file) exclude))