mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Don't abort compiling if package loading fails
This commit is contained in:
parent
a4939e7ef3
commit
1c82b2377f
1 changed files with 4 additions and 3 deletions
|
@ -402,9 +402,10 @@ For full documentation. please see commentary.
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
(when (bound-and-true-p byte-compile-current-file)
|
(when (bound-and-true-p byte-compile-current-file)
|
||||||
,@defines-eval
|
,@defines-eval
|
||||||
|
(with-demoted-errors
|
||||||
,(if (stringp name)
|
,(if (stringp name)
|
||||||
`(load ,name t)
|
`(load ,name t)
|
||||||
`(require ',name nil t))))
|
`(require ',name nil t)))))
|
||||||
|
|
||||||
,(if (and (or commands (use-package-plist-get args :defer))
|
,(if (and (or commands (use-package-plist-get args :defer))
|
||||||
(not (use-package-plist-get args :demand)))
|
(not (use-package-plist-get args :demand)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue