mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Move :init back to happening after all autoloads have occurred
Fixes https://github.com/jwiegley/use-package/issues/535
This commit is contained in:
parent
05dfea96e5
commit
5d973a0188
@ -66,7 +66,6 @@
|
||||
:after
|
||||
:custom
|
||||
:custom-face
|
||||
:init
|
||||
:bind
|
||||
:bind*
|
||||
:bind-keymap
|
||||
@ -79,6 +78,7 @@
|
||||
;; Any other keyword that also declares commands to be autoloaded (such as
|
||||
;; :bind) must appear before this keyword.
|
||||
:commands
|
||||
:init
|
||||
:defer
|
||||
:demand
|
||||
:load
|
||||
|
@ -662,6 +662,15 @@
|
||||
(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)
|
||||
|
Loading…
Reference in New Issue
Block a user