diff options
| author | Eli Zaretskii | 2023-04-28 08:14:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-04-28 08:14:37 +0300 |
| commit | b33d25f596725c69ad5d85f3d724b8bf452ff509 (patch) | |
| tree | 2b6a61e270ab2e3fdc995645e60a766953147702 | |
| parent | c3a61870b94bf2745faa1565c445d60b5a289007 (diff) | |
| download | emacs-b33d25f596725c69ad5d85f3d724b8bf452ff509.tar.gz emacs-b33d25f596725c69ad5d85f3d724b8bf452ff509.zip | |
; Minor improvements in doc strings of package-upgrade commands
* lisp/emacs-lisp/package.el (package-upgrade)
(package-upgrade-all): Doc fixes. (Bug#62720)
| -rw-r--r-- | lisp/emacs-lisp/package.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 74796fc8744..9cc3f8724af 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -2270,8 +2270,9 @@ had been enabled." | |||
| 2270 | "Upgrade package NAME if a newer version exists. | 2270 | "Upgrade package NAME if a newer version exists. |
| 2271 | 2271 | ||
| 2272 | Currently, packages which are part of the Emacs distribution | 2272 | Currently, packages which are part of the Emacs distribution |
| 2273 | cannot be upgraded that way. Use `i' after `M-x list-packages' to | 2273 | cannot be upgraded that way. To enable upgrades of such a |
| 2274 | upgrade to an ELPA version first." | 2274 | package using this command, first upgrade the package to a |
| 2275 | newer version from ELPA by using `\\<package-menu-mode-map>\\[package-menu-mark-install]' after `\\[list-packages]'." | ||
| 2275 | (interactive | 2276 | (interactive |
| 2276 | (list (completing-read | 2277 | (list (completing-read |
| 2277 | "Upgrade package: " (package--upgradeable-packages) nil t))) | 2278 | "Upgrade package: " (package--upgradeable-packages) nil t))) |
| @@ -2308,7 +2309,11 @@ If QUERY, ask the user before upgrading packages. When called | |||
| 2308 | interactively, QUERY is always true. | 2309 | interactively, QUERY is always true. |
| 2309 | 2310 | ||
| 2310 | Currently, packages which are part of the Emacs distribution are | 2311 | Currently, packages which are part of the Emacs distribution are |
| 2311 | not upgraded that way. Use `i' after `M-x list-packages' to | 2312 | not upgraded by this command. To enable upgrading such a package |
| 2313 | using this command, first upgrade the package to a newer version | ||
| 2314 | from ELPA by using `\\<package-menu-mode-map>\\[package-menu-mark-install]' after `\\[list-packages]'. | ||
| 2315 | |||
| 2316 | Use `i' after `M-x list-packages' to | ||
| 2312 | upgrade to an ELPA version first." | 2317 | upgrade to an ELPA version first." |
| 2313 | (interactive (list (not noninteractive))) | 2318 | (interactive (list (not noninteractive))) |
| 2314 | (package-refresh-contents) | 2319 | (package-refresh-contents) |