From: John Wiegley Date: Wed, 29 Nov 2017 04:31:40 +0000 (-0800) Subject: When byte-compiling, correctly output declare-function directives X-Git-Tag: emacs-29.0.90~1306^2~15^2~241 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a392f6da55;p=emacs.git When byte-compiling, correctly output declare-function directives Fixes https://github.com/jwiegley/use-package/issues/474 --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 7ee7ac0efa2..7185999d14d 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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)