1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 02:51:31 -08:00

* lisp/emacs-lisp/package.el (package-activate-all): Fix second-order warning

This commit is contained in:
Stefan Monnier 2023-12-05 15:02:24 -05:00
parent 4f0239d814
commit df842a737d

View file

@ -1732,8 +1732,13 @@ The variable `package-load-list' controls which packages to load."
t)))
(progn
(require 'package)
(declare-function package--activate-all "package" ())
(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))