Don't abort compiling if package loading fails

This commit is contained in:
Thomas Frössman 2014-05-17 10:28:41 +02:00
parent a4939e7ef3
commit 1c82b2377f

View file

@ -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)))