Subject: [PATCH] ; * lisp/apropos.el (apropos-library): Fix typo.
From: Eshel Yaron <[email-masked]>
To: [email-masked]
Date: Sat, 07 Dec 2024 14:31:53 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Tags: patch

This patch fixes the issue described below, which IIUC originates in a
mere typo in commit 671862f6b3089c3a503c1b6936a821ad54429359

1. emacs -Q
2. M-x apropos-library elisp-mode RET
3. The *Apropos* buffer incorrectly lists methods that elisp-mode.el
   defines as if they were _features_ provided by the library.
   Accordingly, clicking on one of those references yields an error such
   as "Unknown library `xref-backend-definitions'"

From 40af45daf1ff41ddb1ba624a99a249b36f724bd0 Mon Sep 17 00:00:00 2001
From: Eshel Yaron <[email-masked]>
Date: Sat, 7 Dec 2024 14:13:12 +0100
Subject: [PATCH] ; * lisp/apropos.el (apropos-library): Fix typo.

---
 lisp/apropos.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/apropos.el b/lisp/apropos.el
index 0655fecd0e8..eb2c36f673e 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -733,7 +733,7 @@ apropos-library
         ('t nil)                     ; Skip "was an autoload" entries.
         ;; FIXME: Print information about each individual method: both
         ;; its docstring and specializers (bug#21422).
-        ('cl-defmethod (push (cadr x) provides))
+        ('cl-defmethod (push (cadr x) symbols))
         ;; FIXME: Add extension point (bug#72616).
 	(_ (let ((sym (or (cdr-safe x) x)))
 	     (and sym (symbolp sym)
-- 
2.46.2