GNU bug report logs - #72616
30.0.60; M-x apropos-library eglot fails

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gerard Vermeulen <gerard.vermeulen@HIDDEN>; dated Wed, 14 Aug 2024 08:06:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 72616 <at> debbugs.gnu.org:


Received: (at 72616) by debbugs.gnu.org; 17 Aug 2024 09:47:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 17 05:47:35 2024
Received: from localhost ([127.0.0.1]:53551 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sfG23-00037c-GJ
	for submit <at> debbugs.gnu.org; Sat, 17 Aug 2024 05:47:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:52898)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sfG20-00037O-PQ
 for 72616 <at> debbugs.gnu.org; Sat, 17 Aug 2024 05:47:33 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sfG1H-0006dv-Dy; Sat, 17 Aug 2024 05:46:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=sQMVlEkrIPgV4Uj5ds8eWdyKcoonE1Ydv9n4zwLyBzc=; b=l34HglroMnsi
 UAVA+YmKIvVLMaqDKqCKTridaf0qvCFHYlc43U5EqFr2zCtGWJgbzbyPUbAVe2xDB2rS/+Yc17yS1
 EpS+skYzjxRRKSXZch5geJUIhm39E60T+QPViiSeTxVo9Vu4M0Xy7UarBgWQNlMJBmYNhqJf0qDlC
 DMISoYMbY2ewWt0uBepk5YUalLWw/E7OOKY1Q3S0SAYjWDzfY8qf5uln3At5OsODkRVoXQ4dG6ZxZ
 ugukHEAE+l4wjFlN+Px9+LMVMAW3ntUZavJZJo2JXEl0XROWQXoYnx608kWqoOBqWmDGmBOxTH+fU
 OgjB5VZpBIsWoVMHpjwIAA==;
Date: Sat, 17 Aug 2024 12:46:45 +0300
Message-Id: <86r0an32ii.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: monnier@HIDDEN
In-Reply-To: <86o75v8bnk.fsf@HIDDEN> (message from Eli Zaretskii on Wed, 14
 Aug 2024 16:41:19 +0300)
Subject: Re: bug#72616: 30.0.60; M-x apropos-library eglot fails
References: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN>
 <86y14z8o7v.fsf@HIDDEN> <jwv4j7npbr1.fsf-monnier+emacs@HIDDEN>
 <86sev78fob.fsf@HIDDEN> <jwv7ccjnuv8.fsf-monnier+emacs@HIDDEN>
 <86o75v8bnk.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72616
Cc: 72616 <at> debbugs.gnu.org, gerard.vermeulen@HIDDEN, joaotavora@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 72616 <at> debbugs.gnu.org, gerard.vermeulen@HIDDEN, joaotavora@HIDDEN
> Date: Wed, 14 Aug 2024 16:41:19 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Stefan Monnier <monnier@HIDDEN>
> > Cc: gerard.vermeulen@HIDDEN,  joaotavora@HIDDEN,  72616 <at> debbugs.gnu.org
> > Date: Wed, 14 Aug 2024 08:47:40 -0400
> > 
> > >> This doesn't look right: the meaning of `define-symbol-props` in
> > >> `load-history` should be defined in a more modular way, near
> > >> `define-symbol-prop` rather than by hardcoding something in
> > >> `apropos.el`.
> > >
> > > Is it better to leave us where we are now: that apropos-library
> > > signals an error instead of displaying the information about the
> > > library?
> > 
> > In the mean time we could just sanitize the data we use heuristically,
> > as in the patch below.
> 
> Thanks, will install soon unless someone has a better suggestion.

Now done.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72616; Package emacs. Full text available.

Message received at 72616 <at> debbugs.gnu.org:


Received: (at 72616) by debbugs.gnu.org; 14 Aug 2024 13:42:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 09:42:11 2024
Received: from localhost ([127.0.0.1]:46529 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1seEGN-0004tb-JH
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2024 09:42:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60596)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1seEGL-0004t6-4i
 for 72616 <at> debbugs.gnu.org; Wed, 14 Aug 2024 09:42:06 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1seEFf-00051M-75; Wed, 14 Aug 2024 09:41:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=enDRWiimUm20jxAWwYoIW6aSzGcNidGuNXbntK7syE8=; b=KGRzeQLIGH0i
 L5Bf7bkV4MQz9PxcAEJjeXfU+zAnvoSpaYf7R1z0UY7mcn/SbtFo6epcrlA9m3sWuwVx7neM+jkRW
 c4t4gYJ64PzR3of77K2rT2cLINB3+mgRiN86is++gprAU99GnE1w7W0vPB7RLCgW6415JOmxFwr+G
 VUtmtzyN1MeFAzhQJGc44Czf2WIuHzVarTSWbdFE7f7FjXraLZtUuhS5eLmun4WqLxHZn98l0WAiE
 Ec6ExQW5YDyVgsSpTpPGUMaSrgHk+1WhQ9a1hJ7OuPyyQTKHhTeECW0//9fko46pfz4F3OiIziDFJ
 vM3DiuT2gA2iC2rjFoCkog==;
Date: Wed, 14 Aug 2024 16:41:19 +0300
Message-Id: <86o75v8bnk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwv7ccjnuv8.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Wed, 14 Aug 2024 08:47:40 -0400)
Subject: Re: bug#72616: 30.0.60; M-x apropos-library eglot fails
References: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN>
 <86y14z8o7v.fsf@HIDDEN> <jwv4j7npbr1.fsf-monnier+emacs@HIDDEN>
 <86sev78fob.fsf@HIDDEN> <jwv7ccjnuv8.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72616
Cc: 72616 <at> debbugs.gnu.org, gerard.vermeulen@HIDDEN, joaotavora@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: gerard.vermeulen@HIDDEN,  joaotavora@HIDDEN,  72616 <at> debbugs.gnu.org
> Date: Wed, 14 Aug 2024 08:47:40 -0400
> 
> >> This doesn't look right: the meaning of `define-symbol-props` in
> >> `load-history` should be defined in a more modular way, near
> >> `define-symbol-prop` rather than by hardcoding something in
> >> `apropos.el`.
> >
> > Is it better to leave us where we are now: that apropos-library
> > signals an error instead of displaying the information about the
> > library?
> 
> In the mean time we could just sanitize the data we use heuristically,
> as in the patch below.

Thanks, will install soon unless someone has a better suggestion.

> > Patches are welcome, but maybe we should start with someone explaining
> > what are those define-symbol-props elements in load-history.  They are
> > currently completely undocumented AFAICT, and so anyone but the
> > person(s) who added that to Emacs will have hard time coming up with
> > changes such as you describe.  (Apologies if this is already
> > documented and I just missed it.)
> 
> Indeed, we currently don't have a good way to document the new kinds of
> elements that can occur in `load-history` and the new ones we do have
> (e.g. `cl-defmethod`, `define-type`, ...) are currently undocumented.

cl-defmethod and define-type _are_ documented, AFAICT.  See the
documentation of load-history.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72616; Package emacs. Full text available.

Message received at 72616 <at> debbugs.gnu.org:


Received: (at 72616) by debbugs.gnu.org; 14 Aug 2024 12:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 08:48:27 2024
Received: from localhost ([127.0.0.1]:46450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1seDQR-0003Ci-Ho
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2024 08:48:27 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15119)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1seDQP-0003CU-Gu
 for 72616 <at> debbugs.gnu.org; Wed, 14 Aug 2024 08:48:26 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 40C9910005D;
 Wed, 14 Aug 2024 08:47:43 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1723639661;
 bh=GB1UmpfX+Ev8bfF2zid0bSDHyAaRVZliB65nIu0cBCI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=Shaclw5N8hus6Biv/T4OANPVJN2eMCt/R1akl+QKu8iiKnAubu0guuZ6WKXmCUnvG
 hDcgxAwnNsPDSNwN0SBhH41d7vEm6x3qO0QzMV/zuMyvEsOQdYs4v4GnUTJYm0dVlM
 7IuUT9WJ8ReaEvsMFpTm1ui7jmFK7labatLL+jaXy+cBKVHj27ILolavE1GFchiz1P
 MiU3EeF1Dg9ZIcW676F2QC0ycn2nHuvZhwHz6MBkntL1cQ8OCto1PP+jpaOdKZ5wqY
 5FxYrVbJNBPhdGsfQm4beqggiJWb2VpJfNt6pbu2dfegc2rszh6omb+Vtct+iv0Qna
 7A371yooaPrbg==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B741A100042;
 Wed, 14 Aug 2024 08:47:41 -0400 (EDT)
Received: from pastel (unknown [216.154.9.87])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 84BF112024D;
 Wed, 14 Aug 2024 08:47:41 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#72616: 30.0.60; M-x apropos-library eglot fails
In-Reply-To: <86sev78fob.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 14 Aug
 2024 15:14:28 +0300")
Message-ID: <jwv7ccjnuv8.fsf-monnier+emacs@HIDDEN>
References: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN>
 <86y14z8o7v.fsf@HIDDEN> <jwv4j7npbr1.fsf-monnier+emacs@HIDDEN>
 <86sev78fob.fsf@HIDDEN>
Date: Wed, 14 Aug 2024 08:47:40 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.022 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72616
Cc: 72616 <at> debbugs.gnu.org, gerard.vermeulen@HIDDEN, joaotavora@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> This doesn't look right: the meaning of `define-symbol-props` in
>> `load-history` should be defined in a more modular way, near
>> `define-symbol-prop` rather than by hardcoding something in
>> `apropos.el`.
>
> Is it better to leave us where we are now: that apropos-library
> signals an error instead of displaying the information about the
> library?

In the mean time we could just sanitize the data we use heuristically,
as in the patch below.

> Patches are welcome, but maybe we should start with someone explaining
> what are those define-symbol-props elements in load-history.  They are
> currently completely undocumented AFAICT, and so anyone but the
> person(s) who added that to Emacs will have hard time coming up with
> changes such as you describe.  (Apologies if this is already
> documented and I just missed it.)

Indeed, we currently don't have a good way to document the new kinds of
elements that can occur in `load-history` and the new ones we do have
(e.g. `cl-defmethod`, `define-type`, ...) are currently undocumented.


        Stefan


diff --git a/lisp/apropos.el b/lisp/apropos.el
index 6c6cd0b593d..0655fecd0e8 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -734,7 +734,10 @@ apropos-library
         ;; FIXME: Print information about each individual method: both
         ;; its docstring and specializers (bug#21422).
         ('cl-defmethod (push (cadr x) provides))
-	(_ (push (or (cdr-safe x) x) symbols))))
+        ;; FIXME: Add extension point (bug#72616).
+	(_ (let ((sym (or (cdr-safe x) x)))
+	     (and sym (symbolp sym)
+	          (push sym symbols))))))
     (let ((apropos-pattern "") ;Dummy binding for apropos-symbols-internal.
           (text
            (concat





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72616; Package emacs. Full text available.

Message received at 72616 <at> debbugs.gnu.org:


Received: (at 72616) by debbugs.gnu.org; 14 Aug 2024 12:17:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 08:17:35 2024
Received: from localhost ([127.0.0.1]:46412 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1seCwY-0002IX-Kj
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2024 08:17:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56940)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1seCwW-0002IJ-K6
 for 72616 <at> debbugs.gnu.org; Wed, 14 Aug 2024 08:17:33 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1seCtm-0007du-71; Wed, 14 Aug 2024 08:14:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=Rx0KJDkrIv7UME6Yo0pD9w2GKsgDk2LphlP+McGwJfc=; b=MCpjTQonKfr6ct5tZoAi
 g7GoiFNYWXbP9TKweRIRdwa5a3BBrAkoH+U1kec20TlojhHCC2p4L8ShmgVt0dLWVTHcH9CNhC+am
 US45/V18bB0YvIy7Rr60Uh83SfGG3VHJjGhSuHpsytdsoDI1qvcWZJssCG+BbGDwdLKmT9lXCmWCi
 COxDu5vW4iNaffHc9dDmNPEfIzZeI6hvgTqlBmA4sq12GNBwagD0V5USWvj0o7bqTUOX8PfPjN/1+
 HVG/BurD7aWGvu7bF5H8tPOygrvFWhdAOmDZUeXN023IWVpK4wKRtB4XwCUlZBlXmyeJ0qXXBUMhP
 tr4Ki9GCmHZS7g==;
Date: Wed, 14 Aug 2024 15:14:28 +0300
Message-Id: <86sev78fob.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwv4j7npbr1.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Wed, 14 Aug 2024 07:58:15 -0400)
Subject: Re: bug#72616: 30.0.60; M-x apropos-library eglot fails
References: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN>
 <86y14z8o7v.fsf@HIDDEN> <jwv4j7npbr1.fsf-monnier+emacs@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72616
Cc: 72616 <at> debbugs.gnu.org, gerard.vermeulen@HIDDEN, joaotavora@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: Gerard Vermeulen <gerard.vermeulen@HIDDEN>,  Joćo Tįvora
>  <joaotavora@HIDDEN>,  72616 <at> debbugs.gnu.org
> Date: Wed, 14 Aug 2024 07:58:15 -0400
> 
> >> I get the message:
> >> "apropos-library: Wrong type argument: symbolp, ((cl-deftype-satisfies 
> >> eglot-lsp-server))"
> >> when I try "M-x apropos-library eglot"
> >
> > You forgot to tell that one needs first to load Eglot, otherwise the
> > above command cannot be invoked at all.
> >
> > Stefan and Joćo, is the below the right solution?
> >
> > diff --git a/lisp/apropos.el b/lisp/apropos.el
> > index 6c6cd0b..3fb7581 100644
> > --- a/lisp/apropos.el
> > +++ b/lisp/apropos.el
> > @@ -731,6 +731,7 @@ apropos-library
> >  	('require (push (cdr x) requires))
> >  	('provide (push (cdr x) provides))
> >          ('t nil)                     ; Skip "was an autoload" entries.
> > +        ('define-symbol-props nil)
> >          ;; FIXME: Print information about each individual method: both
> >          ;; its docstring and specializers (bug#21422).
> >          ('cl-defmethod (push (cadr x) provides))
> 
> This doesn't look right: the meaning of `define-symbol-props` in
> `load-history` should be defined in a more modular way, near
> `define-symbol-prop` rather than by hardcoding something in
> `apropos.el`.

Is it better to leave us where we are now: that apropos-library
signals an error instead of displaying the information about the
library?

> IOW, we should add something to `apropos.el` where users of
> `load-history` can register what to do with their entries, just like
> `find-function-regexp-alist` and the generic function
> `loadhist-unload-element` are used to tell `find-function` what to do
> with those same entries.

Patches are welcome, but maybe we should start with someone explaining
what are those define-symbol-props elements in load-history.  They are
currently completely undocumented AFAICT, and so anyone but the
person(s) who added that to Emacs will have hard time coming up with
changes such as you describe.  (Apologies if this is already
documented and I just missed it.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72616; Package emacs. Full text available.

Message received at 72616 <at> debbugs.gnu.org:


Received: (at 72616) by debbugs.gnu.org; 14 Aug 2024 11:59:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 07:59:00 2024
Received: from localhost ([127.0.0.1]:46381 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1seCea-0001iZ-6T
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2024 07:59:00 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30547)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1seCeY-0001i9-Jm
 for 72616 <at> debbugs.gnu.org; Wed, 14 Aug 2024 07:58:59 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2C50A10005D;
 Wed, 14 Aug 2024 07:58:18 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1723636696;
 bh=Cmx8js+S7ZqWtmW2vEWZl51vmtpRcdd+8AtXXWNo5PM=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=S0gI/lkD8n2U/tpb/xXca4uDj/j2HPiiYN4l89HueDugU8HFOkkgkDaNjViN/5yW3
 gTXpHe+J5qu4TPpaVVhLtMCQUtkLVIEqruzSxANjzi8qTEoBe8CCiOTTuBdHvTuwS2
 FK6zS9K5Vm8jY9BPqmRmLqLk5mj8VMYzYqjo8NOc8hGlK2ew3BJ7W/m/v0jkTrUpU8
 zBTAMwrcciVZ+7FQ6teRq4voewDiwwWcBUYvnePUw8x3ibP2Eq/2Zz3dlmfJA5EPY4
 ceyIcpa+rYhI91dMpBCYB+QqSLM1aMG8P9Kz8B2j6/qG3SY+QxhseJuYJE1rQU6IyI
 EebUQmEfd6TIg==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DC4A7100042;
 Wed, 14 Aug 2024 07:58:16 -0400 (EDT)
Received: from pastel (unknown [216.154.9.87])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A77F7120223;
 Wed, 14 Aug 2024 07:58:16 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#72616: 30.0.60; M-x apropos-library eglot fails
In-Reply-To: <86y14z8o7v.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 14 Aug
 2024 12:09:56 +0300")
Message-ID: <jwv4j7npbr1.fsf-monnier+emacs@HIDDEN>
References: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN>
 <86y14z8o7v.fsf@HIDDEN>
Date: Wed, 14 Aug 2024 07:58:15 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.023 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72616
Cc: 72616 <at> debbugs.gnu.org, Gerard Vermeulen <gerard.vermeulen@HIDDEN>,
 =?windows-1252?B?Sm/j?= =?windows-1252?B?byBU4XZvcmE=?=
 <joaotavora@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> I get the message:
>> "apropos-library: Wrong type argument: symbolp, ((cl-deftype-satisfies=20
>> eglot-lsp-server))"
>> when I try "M-x apropos-library eglot"
>
> You forgot to tell that one needs first to load Eglot, otherwise the
> above command cannot be invoked at all.
>
> Stefan and Jo=E3o, is the below the right solution?
>
> diff --git a/lisp/apropos.el b/lisp/apropos.el
> index 6c6cd0b..3fb7581 100644
> --- a/lisp/apropos.el
> +++ b/lisp/apropos.el
> @@ -731,6 +731,7 @@ apropos-library
>  	('require (push (cdr x) requires))
>  	('provide (push (cdr x) provides))
>          ('t nil)                     ; Skip "was an autoload" entries.
> +        ('define-symbol-props nil)
>          ;; FIXME: Print information about each individual method: both
>          ;; its docstring and specializers (bug#21422).
>          ('cl-defmethod (push (cadr x) provides))

This doesn't look right: the meaning of `define-symbol-props` in
`load-history` should be defined in a more modular way, near
`define-symbol-prop` rather than by hardcoding something in
`apropos.el`.

IOW, we should add something to `apropos.el` where users of
`load-history` can register what to do with their entries, just like
`find-function-regexp-alist` and the generic function
`loadhist-unload-element` are used to tell `find-function` what to do
with those same entries.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72616; Package emacs. Full text available.

Message received at 72616 <at> debbugs.gnu.org:


Received: (at 72616) by debbugs.gnu.org; 14 Aug 2024 09:10:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 05:10:42 2024
Received: from localhost ([127.0.0.1]:46110 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1seA1i-0005dR-Bf
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2024 05:10:42 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38840)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1seA1g-0005dB-QP
 for 72616 <at> debbugs.gnu.org; Wed, 14 Aug 2024 05:10:41 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1seA12-0001JT-7E; Wed, 14 Aug 2024 05:10:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=hDqNZzRffFXwbF4VDJMPhxs2DaUw1SCme8ya+xydq1w=; b=aWl2PZR+QfjfO1+vgJ+3
 UdNrYdQjk7Qk7ruEOuTsJHFrLrIeZxJEOJeyl5lTU8fK7a3WNq06VBK2GYDLPpLF6piHSUo1hsdMH
 6aua9HKiDpDntICMLxjWULuwxDhT6c1HJ2RlErmIHEH99pCHNtI+TsoQyPz/f+ifHABTWgZSitcnW
 BGR5Xs734zITvid+W4/ArRgS09dq/xAxGuZMxDYOX0tca2X6KTF9HPj+ykUuZUfX7vygRpYg+4JMU
 Iu6nk0nTvDFoiDXllFxjW6nxjbvIAbBoC/Zh+i4LEe6uGaDc3Rs4qowuZJEw7eEWfWA2lCus16I9A
 Tm2owpKFuz7iLw==;
Date: Wed, 14 Aug 2024 12:09:56 +0300
Message-Id: <86y14z8o7v.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerard Vermeulen <gerard.vermeulen@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>,
 =?iso-8859-1?Q?Jo=E3o_T=E1vora?= <joaotavora@HIDDEN>
In-Reply-To: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN> (message from
 Gerard Vermeulen on Wed, 14 Aug 2024 08:04:31 +0000)
Subject: Re: bug#72616: 30.0.60; M-x apropos-library eglot fails
References: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72616
Cc: 72616 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Wed, 14 Aug 2024 08:04:31 +0000
> From: Gerard Vermeulen <gerard.vermeulen@HIDDEN>
> 
> I get the message:
> "apropos-library: Wrong type argument: symbolp, ((cl-deftype-satisfies 
> eglot-lsp-server))"
> when I try "M-x apropos-library eglot"

You forgot to tell that one needs first to load Eglot, otherwise the
above command cannot be invoked at all.

Stefan and Joćo, is the below the right solution?

diff --git a/lisp/apropos.el b/lisp/apropos.el
index 6c6cd0b..3fb7581 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -731,6 +731,7 @@ apropos-library
 	('require (push (cdr x) requires))
 	('provide (push (cdr x) provides))
         ('t nil)                     ; Skip "was an autoload" entries.
+        ('define-symbol-props nil)
         ;; FIXME: Print information about each individual method: both
         ;; its docstring and specializers (bug#21422).
         ('cl-defmethod (push (cadr x) provides))




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72616; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Aug 2024 08:05:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 04:05:20 2024
Received: from localhost ([127.0.0.1]:45990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1se90S-0003vF-3O
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2024 04:05:20 -0400
Received: from lists.gnu.org ([209.51.188.17]:34214)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerard.vermeulen@HIDDEN>) id 1se90R-0003v9-Bf
 for submit <at> debbugs.gnu.org; Wed, 14 Aug 2024 04:05:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerard.vermeulen@HIDDEN>)
 id 1se8zs-0001Zn-86
 for bug-gnu-emacs@HIDDEN; Wed, 14 Aug 2024 04:04:44 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerard.vermeulen@HIDDEN>)
 id 1se8zp-0008FK-FN
 for bug-gnu-emacs@HIDDEN; Wed, 14 Aug 2024 04:04:43 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id ABACF240104
 for <bug-gnu-emacs@HIDDEN>; Wed, 14 Aug 2024 10:04:31 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1723622671; bh=5+WzpH20JupfC3cqOkcqL71jjGFtkgEQXx/i+myuGD4=;
 h=MIME-Version:Date:From:To:Subject:Message-ID:Content-Type:
 Content-Transfer-Encoding:From;
 b=nDpDbNC44J4xjZ6k2mwdZsAkQFpBHR57ojgT0YM4A1I4QauGltfoVeCxLX0VaAUak
 9fHz1YXa1mDC1CR6dKRWg/IswdN6Rc7jh4de5KwV5eR+64MG7K3hhi8C7YGqO+KX5P
 Cyl4a0oz/cXR8fKDuQZydt46AMldsRUXuhClOjFf2Egx52T3uy5KIzM9C44mY8IALV
 QrTDwX19u75wJ8QiQZaYCEskIo9c1zacpAU1rFk2J3+/aA+c9hnUo+RGWHgruvgCoT
 cViq5nqwsrhLQZKRuZQxTNcQrs2nD19MAeaDf66zWzej6w7uvH/tF98vUzY/gN27Ik
 Fm40NmX9dUMiA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4WkLPq1J5lz6twS
 for <bug-gnu-emacs@HIDDEN>; Wed, 14 Aug 2024 10:04:31 +0200 (CEST)
MIME-Version: 1.0
Date: Wed, 14 Aug 2024 08:04:31 +0000
From: Gerard Vermeulen <gerard.vermeulen@HIDDEN>
To: Bug gnu emacs <bug-gnu-emacs@HIDDEN>
Subject: 30.0.60; M-x apropos-library eglot fails
Message-ID: <b8d9d2ddb72aece4ace998d26e208086@HIDDEN>
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=185.67.36.66;
 envelope-from=gerard.vermeulen@HIDDEN; helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hello,

I get the message:
"apropos-library: Wrong type argument: symbolp, ((cl-deftype-satisfies 
eglot-lsp-server))"
when I try "M-x apropos-library eglot"

GNU Emacs 30.0.60 (build 12, x86_64-apple-darwin20.6.0, NS 
appkit-2202.70 Version 11.7.1 (Build 20G918)) of 2024-08-13

Regards -- Gerard






Acknowledgement sent to Gerard Vermeulen <gerard.vermeulen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#72616; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.