[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 a0b04a22479: Documentation copyedits for 'package-install-upgra
From: |
Eli Zaretskii |
Subject: |
emacs-29 a0b04a22479: Documentation copyedits for 'package-install-upgrade-built-in' etc |
Date: |
Sun, 16 Apr 2023 11:11:25 -0400 (EDT) |
branch: emacs-29
commit a0b04a2247908e4d7d1d9f66886d3c1f21866084
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Documentation copyedits for 'package-install-upgrade-built-in' etc
* etc/NEWS: More details about the new option
'package-install-upgrade-built-in'.
* lisp/emacs-lisp/package.el (package-install-upgrade-built-in)
(package--active-built-in-p, package-install): Doc fixes.
(Bug#62720)
---
etc/NEWS | 20 ++++++++++++++++++--
lisp/emacs-lisp/package.el | 10 +++++-----
2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index 0789fa49d75..0d31fc679da 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1878,8 +1878,16 @@ install.
---
*** New user option 'package-install-upgrade-built-in'.
-When enabled, 'package-install' can be used to install
-newer versions of built-in packages.
+When enabled, 'package-install' will include in the list of
+upgradeable packages those built-in packages (like Eglot and
+use-package, for example) for which a newer version is available in
+package archives, and will allow to install those newer versions. By
+default, this is disabled; however, if 'package-install' is invoked
+with a prefix argument, it will act as if this new option were
+enabled.
+
+If you customize this option, we recommend to place its non-default
+setting in your early-init file.
** Emacs Sessions (Desktop)
@@ -3249,6 +3257,10 @@ based on data provided by language servers using the
Language Server
Protocol (LSP). See the new Info manual "(eglot) Top" for more. Also
see "etc/EGLOT-NEWS".
+If you want to be able to use 'package-install' to upgrade Eglot to
+newer versions released on GNU ELPA, customize the new option
+'package-install-upgrade-built-in' to a non-nil value.
+
+++
** use-package: Declarative package configuration.
use-package is now shipped with Emacs. It provides the 'use-package'
@@ -3256,6 +3268,10 @@ macro, which allows you to isolate package configuration
in your init
file in a way that is declarative, tidy, and performance-oriented.
See the new Info manual "(use-package) Top" for more.
+If you want to be able to use 'package-install' to upgrade use-package
+to newer versions released on GNU ELPA, customize the new option
+'package-install-upgrade-built-in' to a non-nil value.
+
---
** New package 'wallpaper'.
This package provides the command 'wallpaper-set', which sets the
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index c0cc7bebeb2..ffa6272dd1f 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -798,7 +798,7 @@ specifying the minimum acceptable version."
(assq package package--builtins))))))
(defun package--active-built-in-p (package)
- "Return non-nil if PACKAGE if the built-in version is used.
+ "Return non-nil if the built-in version of PACKAGE is used.
If the built-in version of PACKAGE is used and PACKAGE is
also available for installation from an archive, it is an
indication that PACKAGE was never upgraded to any newer
@@ -2200,7 +2200,7 @@ using `package-compute-transaction'."
(defcustom package-install-upgrade-built-in nil
"Non-nil means that built-in packages can be upgraded via a package archive.
If disabled, then `package-install' will not suggest to replace a
-built-in package with a version from a package archive."
+built-in package with a (possibly newer) version from a package archive."
:type 'boolean
:version "29.1")
@@ -2220,9 +2220,9 @@ non-nil, install the package but do not add it to
If PKG is a `package-desc' and it is already installed, don't try
to install it but still mark it as selected.
-If the command is invoked with a prefix argument, the upgrading
-of built-in packages will be possible, as if
-`package-install-upgrade-built-in' had been enabled."
+If the command is invoked with a prefix argument, it will allow
+upgrading of built-in packages, as if `package-install-upgrade-built-in'
+had been enabled."
(interactive
(progn
;; Initialize the package system to get the list of package
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 a0b04a22479: Documentation copyedits for 'package-install-upgrade-built-in' etc,
Eli Zaretskii <=