Fix some file permissions errors
Occurs when deferred packages are loaded while in an unreadable or non-existent directory.
This commit is contained in:
parent
43ebba886f
commit
8766499b0d
4 changed files with 19 additions and 7 deletions
|
@ -344,7 +344,13 @@ intervals."
|
|||
(when-let (req (if reqs (pop reqs)))
|
||||
(doom-log "Incrementally loading %s" req)
|
||||
(condition-case e
|
||||
(or (while-no-input (require req nil t) t)
|
||||
(or (while-no-input
|
||||
;; If `default-directory' is a directory that doesn't exist
|
||||
;; or is unreadable, Emacs throws up file-missing errors, so
|
||||
;; we set it to a directory we know exists and is readable.
|
||||
(let ((default-directory doom-emacs-dir))
|
||||
(require req nil t))
|
||||
t)
|
||||
(push req reqs))
|
||||
((error debug)
|
||||
(message "Failed to load '%s' package incrementally, because: %s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue