1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

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.
This commit is contained in:
Stefan Monnier 2022-05-26 16:40:52 -04:00
parent 3d567a5517
commit fbe0d7361f

View 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).