Fixes https://github.com/jwiegley/use-package/issues/535
:after
:custom
:custom-face
- :init
:bind
:bind*
:bind-keymap
;; Any other keyword that also declares commands to be autoloaded (such as
;; :bind) must appear before this keyword.
:commands
+ :init
:defer
:demand
:load
(eval-when-compile
(declare-function quux "foo"))))))
+(ert-deftest use-package-test/:commands-4 ()
+ (match-expansion
+ (use-package foo :commands bar :init (bar))
+ `(progn
+ (unless
+ (fboundp 'bar)
+ (autoload #'bar "foo" nil t))
+ (bar))))
+
(ert-deftest use-package-test/:defines-1 ()
(match-expansion
(use-package foo :defines bar)