From f474ad4ed1932ee01e43fa5be206d0a0c144bd1d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 25 May 2022 03:23:50 +0200 Subject: [PATCH] Autoload package-update-all * lisp/emacs-lisp/package.el (package-update-all): Autoload and tweak querying so that -f works. --- lisp/emacs-lisp/package.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 8ddaa9f41d3..1cebab36f25 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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") -- 2.39.2