1
0
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:
John Wiegley 2017-12-04 09:03:13 -08:00
parent 05dfea96e5
commit 5d973a0188
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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)