mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 19:59:38 +00:00
When byte-compiling, correctly output declare-function directives
Fixes https://github.com/jwiegley/use-package/issues/474
This commit is contained in:
parent
2c32857d57
commit
a392f6da55
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue