Revert "Don't add autoload for existing commands"

This reverts commit a2b23f8326.
This commit is contained in:
John Wiegley 2015-03-13 03:26:09 -05:00
parent 30da0769bf
commit a4a696572d

View file

@ -499,11 +499,9 @@ For full documentation. please see commentary.
,(if (and (or commands (use-package-plist-get args :defer)) ,(if (and (or commands (use-package-plist-get args :defer))
(not (use-package-plist-get args :demand))) (not (use-package-plist-get args :demand)))
(let (form) (let (form)
(mapc (lambda (command) (mapc #'(lambda (command)
(push `(unless (fboundp (quote ,command)) (push `(autoload (function ,command)
(autoload (function ,command) ,name-string nil t) form))
,name-string nil t))
form))
commands) commands)
`(when ,(or predicate t) `(when ,(or predicate t)