Reload autoloads files in noninteractive sessions
After it's been regenerated, so that any hacks (*cough*org/magit*cough*) are in scope.
This commit is contained in:
parent
87358db85e
commit
b808c4e1ab
1 changed files with 3 additions and 4 deletions
|
@ -57,10 +57,9 @@ It also caches `load-path', `Info-directory-list', `doom-disabled-packages',
|
||||||
(byte-compile-dynamic-docstrings t))
|
(byte-compile-dynamic-docstrings t))
|
||||||
(condition-case-unless-debug e
|
(condition-case-unless-debug e
|
||||||
(when (byte-compile-file file)
|
(when (byte-compile-file file)
|
||||||
(if noninteractive
|
(prog1 (load file 'noerror 'nomessage)
|
||||||
(add-hook 'doom-cli-post-success-execute-hook #'doom--warn-refresh-session-h)
|
(when noninteractive
|
||||||
;; Give autoloads file a chance to report error
|
(add-hook 'doom-cli-post-success-execute-hook #'doom--warn-refresh-session-h))))
|
||||||
(load file 'noerror 'nomessage)))
|
|
||||||
((debug error)
|
((debug error)
|
||||||
(let ((backup-file (concat file ".bk")))
|
(let ((backup-file (concat file ".bk")))
|
||||||
(print! (warn "Copied backup to %s") (relpath backup-file))
|
(print! (warn "Copied backup to %s") (relpath backup-file))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue