From 0a62e6c304d880b9fcb91c9ce091200cd2436a52 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 5 Apr 2026 07:33:14 +0300 Subject: [PATCH] ; Fix documentation of last change * lisp/emacs-lisp/package.el (package--compatible-packages): Doc fix. * etc/NEWS: Improve and expand wording in the new entry. (Bug#80695) --- etc/NEWS | 5 ++++- lisp/emacs-lisp/package.el | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 20f8acaea0e..27dc86727e3 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3177,7 +3177,10 @@ This user option controls what previous packages versions to keep on upgrade. By default, this is set to nil, to keep the previous behavior. --- -*** Packages check recursive dependencies before installing. +*** Packages are now checked for recursive dependencies before installing. +If a package has dependencies not available on any of the archives in +'package-archives', it will appear as unavailable, with the reasons +stated in its description. ** Rcirc diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index e5de0a2f519..6a4848c6544 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2018,7 +2018,8 @@ package archive." (defun package--compatible-packages () "Return list of packages that can be installed. This excludes packages that are listed in the archives, but have -incompatible dependencies (either not available at all or too old)." +incompatible dependencies (either too old or not available at all +in any archive mentioned in `package-archives')." (package-read-all-archive-contents) (package--build-compatibility-table) (cl-loop for (name . desc) in package-archive-contents