From: John Wiegley Date: Fri, 13 Mar 2015 08:26:09 +0000 (-0500) Subject: Revert "Don't add autoload for existing commands" X-Git-Tag: emacs-29.0.90~1306^2~15^2~401 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a4a696572d;p=emacs.git Revert "Don't add autoload for existing commands" This reverts commit a2b23f8326d06690c8092ecc5e83ba2e4dd3c336. --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index aa80eb0547f..15012741280 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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)