emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f474ad4ed1 1/3: Autoload package-update-all


From: Lars Ingebrigtsen
Subject: master f474ad4ed1 1/3: Autoload package-update-all
Date: Tue, 24 May 2022 21:25:37 -0400 (EDT)

branch: master
commit f474ad4ed1932ee01e43fa5be206d0a0c144bd1d
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 8ddaa9f41d..1cebab36f2 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]