]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/package.el (package-isolate): Use `package-activate-all`
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 1 Oct 2024 18:46:06 +0000 (14:46 -0400)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Oct 2024 06:39:56 +0000 (08:39 +0200)
`package-initialize` is used to initialize the whole machinery needed
to list/download/install/remove packages, whereas here we only need to use
the installed packages.

(cherry picked from commit ff87166227b2634e45591e8c73db9b102734ab77)

lisp/emacs-lisp/package.el

index 67d0b127b9c7c500e8a526f614c9fecb80168727..bb334b94cbb2bd28df7a2d6a9ddd689423a8a193 100644 (file)
@@ -2690,7 +2690,7 @@ the Emacs user directory is set to a temporary directory."
                                  `(add-to-list 'package-directory-list ,dir))
                                (cons package-user-dir package-directory-list))
                             (setq package-load-list ',package-load-list)
-                            (package-initialize)))))))
+                            (package-activate-all)))))))
 
 \f
 ;;;; Package description buffer.