emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/async d08a41295b 2/5: No need to call package-initializ


From: ELPA Syncer
Subject: [elpa] externals/async d08a41295b 2/5: No need to call package-initialize which is costly
Date: Fri, 19 Jul 2024 12:57:32 -0400 (EDT)

branch: externals/async
commit d08a41295bde2ed9e7890f4b4fbda7c54cfb259c
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]