From 69c50dcb47338f178758e30d59d7346a4512a3a4 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 8 May 2026 12:27:24 +0100 Subject: [PATCH] ; package-activate-all: Drop requiring package now not preloaded. --- lisp/emacs-lisp/package-activate.el | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/lisp/emacs-lisp/package-activate.el b/lisp/emacs-lisp/package-activate.el index d79628b172b..53a3fa30836 100644 --- a/lisp/emacs-lisp/package-activate.el +++ b/lisp/emacs-lisp/package-activate.el @@ -451,15 +451,13 @@ The variable `package-load-list' controls which packages to load." (setq package-activated-list nil)) (load qs nil 'nomessage) t))) - (progn - (require 'package) - ;; Silence the "unknown function" warning when this is compiled - ;; inside `loaddefs.el'. - ;; FIXME: We use `with-no-warnings' because the effect of - ;; `declare-function' is currently not scoped, so if we use - ;; it here, we end up with a redefinition warning instead :-) - (with-no-warnings - (package--activate-all)))))) + ;; Silence the "unknown function" warning when this is compiled + ;; inside `loaddefs.el'. + ;; FIXME: We use `with-no-warnings' because the effect of + ;; `declare-function' is currently not scoped, so if we use + ;; it here, we end up with a redefinition warning instead :-) + (with-no-warnings + (package--activate-all))))) (defun package--activate-all () (dolist (elt (package--alist))