branch: externals/async commit d08a41295bde2ed9e7890f4b4fbda7c54cfb259c Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
No need to call package-initialize which is costly Reuse already defined vars which should be enough. --- async-package.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/async-package.el b/async-package.el index 7c7510d28c..6773e1da06 100644 --- a/async-package.el +++ b/async-package.el @@ -67,8 +67,10 @@ Argument ERROR-FILE is the file where errors are logged, if some." `(lambda () (require 'bytecomp) (setq package-archives ',package-archives - package-pinned-packages ',package-pinned-packages) - (package-initialize) + package-pinned-packages ',package-pinned-packages + package-archive-contents ',package-archive-contents + package-alist ',package-alist + load-path ',load-path) (prog1 (condition-case err (mapc ',fn ',packages)