aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2022-05-26 16:40:52 -0400
committerStefan Monnier2022-05-26 16:40:52 -0400
commitfbe0d7361f046e28f021cdce0adf05dfda93fe45 (patch)
tree54734ecd3ce623a713cdc53dd17c14808ca77cb7
parent3d567a5517ca461071d169635cfce3430630b56f (diff)
downloademacs-fbe0d7361f046e28f021cdce0adf05dfda93fe45.tar.gz
emacs-fbe0d7361f046e28f021cdce0adf05dfda93fe45.zip
package-activate-all: Use the quickstart more conservatively
* lisp/emacs-lisp/package.el (package-activate-all): Don't use the quickstart file if some packages have already been activated.
-rw-r--r--lisp/emacs-lisp/package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 92438698536..f4872a1a52f 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1629,7 +1629,9 @@ The variable `package-load-list' controls which packages to load."
1629 (qs (if (file-readable-p elc) elc 1629 (qs (if (file-readable-p elc) elc
1630 (if (file-readable-p package-quickstart-file) 1630 (if (file-readable-p package-quickstart-file)
1631 package-quickstart-file)))) 1631 package-quickstart-file))))
1632 (if qs 1632 ;; The quickstart file presumes that it has a blank slate,
1633 ;; so don't use it if we already activated some packages.
1634 (if (and qs (not (bound-and-true-p package-activated-list)))
1633 ;; Skip load-source-file-function which would slow us down by a factor 1635 ;; Skip load-source-file-function which would slow us down by a factor
1634 ;; 2 when loading the .el file (this assumes we were careful to 1636 ;; 2 when loading the .el file (this assumes we were careful to
1635 ;; save this file so it doesn't need any decoding). 1637 ;; save this file so it doesn't need any decoding).