]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Don't add autoload for existing commands"
authorJohn Wiegley <johnw@newartisans.com>
Fri, 13 Mar 2015 08:26:09 +0000 (03:26 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 13 Mar 2015 08:26:09 +0000 (03:26 -0500)
This reverts commit a2b23f8326d06690c8092ecc5e83ba2e4dd3c336.

lisp/use-package/use-package.el

index aa80eb0547f5eeabb3eaaa3727141df2fc62cbf1..15012741280045cd7be6825b6f6baae4ef4c5ffe 100644 (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)