1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 06:20:43 -08:00

Merge pull request from thomasf/master

Display which package that has compile errors
GitHub-reference: https://github.com/jwiegley/use-package/issues/124
This commit is contained in:
John Wiegley 2014-09-14 14:26:57 +01:00
commit 4c927efbd5

View file

@ -401,10 +401,11 @@ For full documentation. please see commentary.
(eval-when-compile
(when (bound-and-true-p byte-compile-current-file)
,@defines-eval
(with-demoted-errors
,(if (stringp name)
`(load ,name t)
`(require ',name nil t)))))
(condition-case err
,(if (stringp name)
`(load ,name t)
`(require ',name nil t))
(error (message "Error compiling %s: %s" ',name err) nil))))
,(if (and (or commands (use-package-plist-get args :defer))
(not (use-package-plist-get args :demand)))