Fix reload-package-autoloads outdated detection
The package autoloads generator wouldn't take module packages.el files into consideration when detecting whether the autoloads file should be regenerated. Now it does.
This commit is contained in:
parent
c04bccc68b
commit
6480a45f84
1 changed files with 6 additions and 1 deletions
|
@ -197,7 +197,12 @@ This should be run whenever your `doom!' block or update your packages."
|
|||
(interactive)
|
||||
(if (and (not force-p)
|
||||
(file-exists-p doom-package-autoload-file)
|
||||
(not (file-newer-than-file-p package-user-dir doom-package-autoload-file)))
|
||||
(not (file-newer-than-file-p package-user-dir doom-package-autoload-file))
|
||||
(not (ignore-errors
|
||||
(cl-loop for key being the hash-keys of (doom-module-table)
|
||||
for path = (doom-module-path (car key) (cdr key) "packages.el")
|
||||
if (file-newer-than-file-p path doom-package-autoload-file)
|
||||
return t))))
|
||||
(ignore (print! (green "Doom package autoloads is up-to-date"))
|
||||
(doom-initialize-autoloads doom-package-autoload-file))
|
||||
(doom-delete-autoloads-file doom-package-autoload-file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue