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))
(not (use-package-plist-get args :demand)))
(let (form)
(mapc (lambda (command)
(push `(unless (fboundp (quote ,command))
(autoload (function ,command)
,name-string nil t))
form))
(mapc #'(lambda (command)
(push `(autoload (function ,command)
,name-string nil t) form))
commands)
`(when ,(or predicate t)