When byte-compiling, correctly output declare-function directives

Fixes https://github.com/jwiegley/use-package/issues/474
This commit is contained in:
John Wiegley 2017-11-28 20:31:40 -08:00
parent 2c32857d57
commit a392f6da55

View file

@ -1690,6 +1690,9 @@ this file. Usage:
`(eval-when-compile
,@(mapcar #'(lambda (var) `(defvar ,var))
(plist-get args :defines))
,@(mapcar #'(lambda (fn) `(declare-function
,fn ,(use-package-as-string name)))
(plist-get args :functions))
(with-demoted-errors
,(format "Cannot load %s: %%S" name)
,(if (eq use-package-verbose 'debug)