From a2b23f8326d06690c8092ecc5e83ba2e4dd3c336 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Thu, 11 Dec 2014 08:42:53 +0100 Subject: [PATCH] Don't add autoload for existing commands --- lisp/use-package/use-package.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 570044970ea..654ed8d02b0 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -434,8 +434,10 @@ For full documentation. please see commentary. (not (use-package-plist-get args :demand))) (let (form) (mapc #'(lambda (command) - (push `(autoload (function ,command) - ,name-string nil t) form)) + (push `(unless (fboundp (quote ,command)) + (autoload (function ,command) + ,name-string nil t)) + form)) commands) `(when ,(or predicate t) -- 2.39.2