mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
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
This commit is contained in:
commit
9e2dcf8655
1 changed files with 2 additions and 1 deletions
|
|
@ -427,7 +427,8 @@ manually updated package."
|
||||||
(add-to-list 'package-pinned-packages (cons package archive-name))
|
(add-to-list 'package-pinned-packages (cons package archive-name))
|
||||||
(error "Archive '%s' requested for package '%s' is not available."
|
(error "Archive '%s' requested for package '%s' is not available."
|
||||||
archive-name package))
|
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)
|
(defun use-package-handler/:pin (name keyword archive-name rest state)
|
||||||
(let ((body (use-package-process-keywords name rest state))
|
(let ((body (use-package-process-keywords name rest state))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue