diff options
| author | Stefan Monnier | 2022-05-26 16:40:52 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2022-05-26 16:40:52 -0400 |
| commit | fbe0d7361f046e28f021cdce0adf05dfda93fe45 (patch) | |
| tree | 54734ecd3ce623a713cdc53dd17c14808ca77cb7 | |
| parent | 3d567a5517ca461071d169635cfce3430630b56f (diff) | |
| download | emacs-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.el | 4 |
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). |