summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-01-25 12:58:02 -0500
committerJohn Wiegley <johnw@newartisans.com>2016-01-25 12:58:02 -0500
commit9e2dcf8655fc6fe14e03bfe96c33d28dc31a1a12 (patch)
tree42c3e38920f3ac5465ab4021721328177e3bcf48 /lisp/use-package/use-package.el
parentcc4333a1be9fd6ac966a94e2d48653c075c9e467 (diff)
parentc42e3f5669482b46936fe391e5b73e8e27dc8438 (diff)
downloademacs-9e2dcf8655fc6fe14e03bfe96c33d28dc31a1a12.tar.gz
emacs-9e2dcf8655fc6fe14e03bfe96c33d28dc31a1a12.tar.bz2
emacs-9e2dcf8655fc6fe14e03bfe96c33d28dc31a1a12.zip
Merge pull request from kovrik/fix-pin-performance
Do not package-initialize on each :pin GitHub-reference: https://github.com/jwiegley/use-package/issues/308
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r--lisp/use-package/use-package.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index bfb5002965d..dcc8842b6e9 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -427,7 +427,8 @@ manually updated package."
(add-to-list 'package-pinned-packages (cons package archive-name))
(error "Archive '%s' requested for package '%s' is not available."
archive-name package))
- (package-initialize t)))
+ (unless (bound-and-true-p package--initialized)
+ (package-initialize t))))
(defun use-package-handler/:pin (name keyword archive-name rest state)
(let ((body (use-package-process-keywords name rest state))