From a4a696572df141c87198f04b69a012f111b21bef Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 13 Mar 2015 03:26:09 -0500 Subject: [PATCH] Revert "Don't add autoload for existing commands" This reverts commit a2b23f8326d06690c8092ecc5e83ba2e4dd3c336. --- lisp/use-package/use-package.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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) -- 2.39.2