diff options
author | Sean Devlin <spd@toadstyle.org> | 2024-10-28 10:34:48 -0400 |
---|---|---|
committer | Philip Kaludercic <philipk@posteo.net> | 2024-11-21 22:12:32 +0100 |
commit | c66c0942ea9ac10e6d6324e472150de403a03b69 (patch) | |
tree | 5a635d59b14ede1c7bcc8948d69f11dc9038e9f7 /lisp/emacs-lisp | |
parent | b4e2d9a3af3dbd0ac7fa944e9386f667feb1c124 (diff) | |
download | emacs-c66c0942ea9ac10e6d6324e472150de403a03b69.tar.gz emacs-c66c0942ea9ac10e6d6324e472150de403a03b69.tar.bz2 emacs-c66c0942ea9ac10e6d6324e472150de403a03b69.zip |
Use prefix argument in 'package-install-selected-packages'
* lisp/emacs-lisp/package.el (package-install-selected-packages):
When invoked with a prefix argument, skip user confirmation when
installing packages.
* etc/NEWS: Announce the prefix argument usage. (Bug#73932)
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 4403e5ffb63..438af781393 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2438,9 +2438,10 @@ directory." (defun package-install-selected-packages (&optional noconfirm) "Ensure packages in `package-selected-packages' are installed. If some packages are not installed, propose to install them. -If optional argument NOCONFIRM is non-nil, don't ask for -confirmation to install packages." - (interactive) + +If optional argument NOCONFIRM is non-nil, or when invoked with a prefix +argument, don't ask for confirmation to install packages." + (interactive "P") (package--archives-initialize) ;; We don't need to populate `package-selected-packages' before ;; using here, because the outcome is the same either way (nothing |