mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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)
This commit is contained in:
parent
b4e2d9a3af
commit
c66c0942ea
2 changed files with 9 additions and 3 deletions
5
etc/NEWS
5
etc/NEWS
|
|
@ -728,6 +728,11 @@ If it is non-nil, or when invoked with a prefix argument,
|
|||
'package-autoremove' will not prompt the user for confirmation before
|
||||
removing packages.
|
||||
|
||||
---
|
||||
*** New prefix argument for 'package-install-selected-packages'.
|
||||
When invoked with a prefix argument, 'package-install-selected-packages'
|
||||
will not prompt the user for confirmation before installing packages.
|
||||
|
||||
|
||||
* New Modes and Packages in Emacs 31.1
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue