Skip to content

Commit

Permalink
No need to call package-initialize which is costly
Browse files Browse the repository at this point in the history
Reuse already defined vars which should be enough.
  • Loading branch information
thierryvolpiatto committed Jul 19, 2024
1 parent 230b536 commit d08a412
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions async-package.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d08a412

Please sign in to comment.