]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't abort compiling if package loading fails
authorThomas Frössman <thomasf@jossystem.se>
Sat, 17 May 2014 08:28:41 +0000 (10:28 +0200)
committerThomas Frössman <thomasf@jossystem.se>
Sat, 17 May 2014 08:48:20 +0000 (10:48 +0200)
lisp/use-package/use-package.el

index 0012d26597d509a9d54a2f2d0929d17e72ff384b..7b370380d4b039e1ea387c36da4c4c11794d2d5b 100644 (file)
@@ -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)))