Commit df842a73 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

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

parent 4f0239d8
Pipeline #27393 failed with stages
in 2 minutes and 12 seconds
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment