From 1c82b2377ffb2e05e60c6b3232c2555d1f66355c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Fr=C3=B6ssman?= Date: Sat, 17 May 2014 10:28:41 +0200 Subject: [PATCH] Don't abort compiling if package loading fails --- lisp/use-package/use-package.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 0012d26597d..7b370380d4b 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -402,9 +402,10 @@ For full documentation. please see commentary. (eval-when-compile (when (bound-and-true-p byte-compile-current-file) ,@defines-eval - ,(if (stringp name) - `(load ,name t) - `(require ',name nil t)))) + (with-demoted-errors + ,(if (stringp name) + `(load ,name t) + `(require ',name nil t))))) ,(if (and (or commands (use-package-plist-get args :defer)) (not (use-package-plist-get args :demand))) -- 2.39.2