instead of with-demoted-errors. This prevents errors from getting lost
in the *Messages* buffer.
(defsubst use-package-expand (name label form)
(declare (indent 1))
(and form
- `(with-demoted-errors
- ,(format "Failure in %s of %s: %%S" label name)
- ,form)))
+ (let ((err (make-symbol "err"))
+ (fmt (format "Failure in %s of %s: %%S" label name)))
+ `(condition-case-unless-debug ,err
+ ,form
+ (error (display-warning 'use-package (format ,fmt ,err) :error)
+ nil)))))
(defun use--package (name-symbol name-string args)
"See docstring for `use-package'."