From: Ivan Goncharov Date: Mon, 18 Jan 2016 01:41:27 +0000 (+1300) Subject: Do not package-initialize on each :pin X-Git-Tag: emacs-29.0.90~1306^2~15^2~319^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19474a1711;p=emacs.git Do not package-initialize on each :pin --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index a359e946378..9eab03dedc3 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -422,7 +422,9 @@ 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))) + (when (and (boundp 'package--initialized) + (not 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))