mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29: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
5d9c854a6c
commit
0239ee227a
2 changed files with 10 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue