Document the `x' DWIM action in the manual

* doc/emacs/package.texi (Package Menu): Mention the DWIM action
of the `x' command.
This commit is contained in:
Lars Ingebrigtsen 2022-05-07 14:42:18 +02:00
parent c2a84365d8
commit 5ac6af4e88
2 changed files with 10 additions and 1 deletions

View file

@ -89,6 +89,11 @@ list of available packages from package archive servers. If the
network is unavailable, it falls back on the most recently retrieved
list.
The main command to use in the package list buffer is the @key{x}
command. If the package under point isn't installed already, this
command will install it. If the package under point is already
installed, this command will delete it.
The following commands are available in the package menu:
@table @kbd
@ -162,7 +167,10 @@ installed versions (marked with status @samp{obsolete}).
@findex package-menu-execute
Download and install all packages marked with @kbd{i}, and their
dependencies; also, delete all packages marked with @kbd{d}
(@code{package-menu-execute}). This also removes the marks.
(@code{package-menu-execute}). This also removes the marks. If no
packages are marked, this command will install the package under point
(if it isn't installed already), or delete the package under point (if
it's already installed).
@item g
@item r

View file

@ -748,6 +748,7 @@ this includes "binary" buffers like 'archive-mode' and 'image-mode'.
This command allows you to upgrade packages without using 'M-x
list-packages'.
+++
*** New DWIM action on 'x'.
If no packages are marked, 'x' will install the package under point if
it isn't already, and remove it if it is installed.