summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-05-13 15:04:50 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-05-13 15:05:14 +0200
commitdce5642e86b0ed006a82146126578e6be76869dd (patch)
treef17bb724609e29dd3306ff3c9f693c1336887718 /lisp/emacs-lisp
parent526e9758de7d163ce3b25fde69a4e122ce9c3742 (diff)
downloademacs-dce5642e86b0ed006a82146126578e6be76869dd.tar.gz
emacs-dce5642e86b0ed006a82146126578e6be76869dd.tar.bz2
emacs-dce5642e86b0ed006a82146126578e6be76869dd.zip
Allow calling package-update-all from the command line
* lisp/emacs-lisp/package.el (package-update-all): Allow calling from the command line with -f package-update-all without any queries.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 72b22a65566..6c77f6f150c 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2171,6 +2171,7 @@ to install it but still mark it as selected."
(if (not updateable)
(message "No packages to update")
(when (and (not inhibit-queries)
+ (not noninteractive)
(not (yes-or-no-p
(if (length= updateable 1)
"One package to update. Do it? "