From 0aa0410372dc9dbd251fec0ec71a28e88b9697ec Mon Sep 17 00:00:00 2001 From: Stephen Gildea Date: Wed, 25 Aug 2021 17:39:26 -0700 Subject: [PATCH] Fix "Finder" description for multi-file packages * lisp/finder.el (finder-compile-keywords): Now that 'version' is set for more files, it is no longer necessary to check that we have a version when picking the file from which to take the description. Doing so caused built-in packages (where the version is known) to have their package description taken from the last .el file that matched the file name pattern, usually the last source file in the sub-directory. This bug was introduced in July 2019 and first released in Emacs 27.1. Thanks to Michael Albinus for reviewing this patch. --- lisp/finder.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/finder.el b/lisp/finder.el index d79b9c99f66..b8db62865de 100644 --- a/lisp/finder.el +++ b/lisp/finder.el @@ -253,7 +253,7 @@ from; the default is `load-path'." ;; The idea here is that eg calc.el gets to define ;; the description of the calc package. ;; This does not work for eg nxml-mode.el. - ((or (eq base-name package) version) + ((eq base-name package) (setq desc (cdr entry)) (aset desc 0 version) (aset desc 2 summary))) -- 2.39.2