emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master cf672c6: * lisp/emacs-lisp/package.el (package-activate-all): Ano


From: Stefan Monnier
Subject: master cf672c6: * lisp/emacs-lisp/package.el (package-activate-all): Another tweak
Date: Tue, 5 Jan 2021 21:26:09 -0500 (EST)

branch: master
commit cf672c66711c0aa24500cab99eb7f2ef63b02bf2
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/emacs-lisp/package.el (package-activate-all): Another tweak
    
    `package-quickstart.el` files presume `package-activated-list`
    is a bound variable, so make sure this is the case even when `package.el` is
    not yet loaded.
---
 lisp/emacs-lisp/package.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index a38363d..453e86c 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1640,6 +1640,8 @@ The variable `package-load-list' controls which packages 
to load."
         ;; 2 when loading the .el file (this assumes we were careful to
         ;; save this file so it doesn't need any decoding).
         (let ((load-source-file-function nil))
+          (unless (boundp 'package-activated-list)
+            (setq package-activated-list nil))
           (load qs nil 'nomessage))
       (require 'package)
       (package--activate-all)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]