]> git.eshelyaron.com Git - emacs.git/commitdiff
package-activate-all: Use the quickstart more conservatively
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 26 May 2022 20:40:52 +0000 (16:40 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 26 May 2022 20:40:52 +0000 (16:40 -0400)
* lisp/emacs-lisp/package.el (package-activate-all): Don't use the
quickstart file if some packages have already been activated.

lisp/emacs-lisp/package.el

index 924386985360fe89f81ee7c16efabe5c5e758e5d..f4872a1a52fc2d75a7c3ff63f8d2cb79f7f4b691 100644 (file)
@@ -1629,7 +1629,9 @@ The variable `package-load-list' controls which packages to load."
          (qs (if (file-readable-p elc) elc
                (if (file-readable-p package-quickstart-file)
                    package-quickstart-file))))
-    (if qs
+    ;; The quickstart file presumes that it has a blank slate,
+    ;; so don't use it if we already activated some packages.
+    (if (and qs (not (bound-and-true-p package-activated-list)))
         ;; Skip load-source-file-function which would slow us down by a factor
         ;; 2 when loading the .el file (this assumes we were careful to
         ;; save this file so it doesn't need any decoding).