diff options
author | Nicolas Richard <theonewiththeevillook@yahoo.fr> | 2014-12-11 08:42:53 +0100 |
---|---|---|
committer | Nicolas Richard <theonewiththeevillook@yahoo.fr> | 2014-12-17 18:30:50 +0100 |
commit | a2b23f8326d06690c8092ecc5e83ba2e4dd3c336 (patch) | |
tree | a5a93dd6a592da3dad9bbc6ece933c394d25bb3c | |
parent | 18f04bfb99223b7b9a3ec8278fdd13afb1d973ef (diff) | |
download | emacs-a2b23f8326.tar.gz |
Don't add autoload for existing commands
-rw-r--r-- | lisp/use-package/use-package.el | 6 |
1 files 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) |