1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 22:41:06 -08:00

Autoload package-update-all

* lisp/emacs-lisp/package.el (package-update-all): Autoload and
tweak querying so that -f works.
This commit is contained in:
Lars Ingebrigtsen 2022-05-25 03:23:50 +02:00
parent fcf80d7e62
commit f474ad4ed1

View file

@ -2164,11 +2164,12 @@ to install it but still mark it as selected."
(package-desc-priority-version (cadr available))))))
package-alist)))
;;;###autoload
(defun package-update-all (&optional query)
"Upgrade all packages.
If QUERY, ask the user before updating packages. When called
interactively, QUERY is always true."
(interactive (list t))
(interactive (list (not noninteractive)))
(let ((updateable (package--updateable-packages)))
(if (not updateable)
(message "No packages to update")