1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Return t' after calling eval-after-load'

Fixes https://github.com/jwiegley/use-package/issues/174
This commit is contained in:
John Wiegley 2017-02-16 11:44:41 -08:00
parent 61d6a8e449
commit 87a8ff6d69

View file

@ -1070,8 +1070,10 @@ deferred until the prefix key sequence is pressed."
(list t))))))
(if (plist-get state :deferred)
(unless (or (null config-body) (equal config-body '(t)))
`((eval-after-load ,(if (symbolp name) `',name name)
',(macroexp-progn config-body))))
`((progn
(eval-after-load ,(if (symbolp name) `',name name)
',(macroexp-progn config-body))
t)))
(use-package--with-elapsed-timer
(format "Loading package %s" name)
(if use-package-expand-minimally