From a392f6da552f9fd10df626e00c4cf1105eef1029 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 28 Nov 2017 20:31:40 -0800 Subject: [PATCH] When byte-compiling, correctly output declare-function directives Fixes https://github.com/jwiegley/use-package/issues/474 --- lisp/use-package/use-package.el | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.2