mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-06 20:29:36 +00:00
Display which package that has compile errors
This commit is contained in:
parent
4cf50ffbca
commit
351c102010
1 changed files with 5 additions and 4 deletions
|
@ -401,10 +401,11 @@ 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
|
(condition-case err
|
||||||
,(if (stringp name)
|
,(if (stringp name)
|
||||||
`(load ,name t)
|
`(load ,name t)
|
||||||
`(require ',name nil t)))))
|
`(require ',name nil t))
|
||||||
|
(error (message "Error compiling %s: %s" ',name err) nil))))
|
||||||
|
|
||||||
,(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