; Minor improvements in doc strings of package-upgrade commands

* lisp/emacs-lisp/package.el (package-upgrade)
(package-upgrade-all): Doc fixes.  (Bug#62720)
This commit is contained in:
Eli Zaretskii 2023-04-28 08:14:37 +03:00
parent c3a61870b9
commit b33d25f596

View file

@ -2270,8 +2270,9 @@ had been enabled."
"Upgrade package NAME if a newer version exists. "Upgrade package NAME if a newer version exists.
Currently, packages which are part of the Emacs distribution Currently, packages which are part of the Emacs distribution
cannot be upgraded that way. Use `i' after `M-x list-packages' to cannot be upgraded that way. To enable upgrades of such a
upgrade to an ELPA version first." package using this command, first upgrade the package to a
newer version from ELPA by using `\\<package-menu-mode-map>\\[package-menu-mark-install]' after `\\[list-packages]'."
(interactive (interactive
(list (completing-read (list (completing-read
"Upgrade package: " (package--upgradeable-packages) nil t))) "Upgrade package: " (package--upgradeable-packages) nil t)))
@ -2308,7 +2309,11 @@ If QUERY, ask the user before upgrading packages. When called
interactively, QUERY is always true. interactively, QUERY is always true.
Currently, packages which are part of the Emacs distribution are Currently, packages which are part of the Emacs distribution are
not upgraded that way. Use `i' after `M-x list-packages' to not upgraded by this command. To enable upgrading such a package
using this command, first upgrade the package to a newer version
from ELPA by using `\\<package-menu-mode-map>\\[package-menu-mark-install]' after `\\[list-packages]'.
Use `i' after `M-x list-packages' to
upgrade to an ELPA version first." upgrade to an ELPA version first."
(interactive (list (not noninteractive))) (interactive (list (not noninteractive)))
(package-refresh-contents) (package-refresh-contents)