GNU bug report logs - #72795
31.0.50; Make speedbar-add-supported-extension autoloaded

Previous Next

Package: emacs;

Reported by: "Mark A. Hershberger" <mah <at> everybody.org>

Date: Sat, 24 Aug 2024 19:15:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72795 in the body.
You can then email your comments to 72795 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72795; Package emacs. (Sat, 24 Aug 2024 19:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Mark A. Hershberger" <mah <at> everybody.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 24 Aug 2024 19:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Mark A. Hershberger" <mah <at> everybody.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; Make speedbar-add-supported-extension autoloaded
Date: Sat, 24 Aug 2024 15:12:47 -0400
As per subject, this will allow extensions to add themselves just by
fboundp'ing the function.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72795; Package emacs. (Sat, 24 Aug 2024 19:22:02 GMT) Full text and rfc822 format available.

Message #8 received at 72795 <at> debbugs.gnu.org (full text, mbox):

From: "Mark A. Hershberger" <mah <at> everybody.org>
To: 72795 <at> debbugs.gnu.org
Subject: 31.0.50; Make speedbar-add-supported-extension autoloaded
Date: Sat, 24 Aug 2024 15:20:13 -0400
Example where this would be handy:

https://github.com/jschaf/powershell.el/pull/39/commits/3744d8c2ab99ef9f6dc58cdffec7d3770201713b




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72795; Package emacs. (Sat, 24 Aug 2024 19:23:02 GMT) Full text and rfc822 format available.

Message #11 received at 72795 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Mark A. Hershberger" <mah <at> everybody.org>
Cc: 72795 <at> debbugs.gnu.org
Subject: Re: bug#72795: 31.0.50;
 Make speedbar-add-supported-extension autoloaded
Date: Sat, 24 Aug 2024 22:21:40 +0300
> Date: Sat, 24 Aug 2024 15:12:47 -0400
> From:  "Mark A. Hershberger" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> As per subject, this will allow extensions to add themselves just by
> fboundp'ing the function.

Sorry, I don't understand: an autoloaded function is always fboundp,
so what do you mean by the above?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72795; Package emacs. (Sat, 24 Aug 2024 19:27:01 GMT) Full text and rfc822 format available.

Message #14 received at 72795 <at> debbugs.gnu.org (full text, mbox):

From: "Mark A. Hershberger" <mah <at> everybody.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 72795 <at> debbugs.gnu.org
Subject: Re: bug#72795: 31.0.50; Make speedbar-add-supported-extension
 autoloaded
Date: Sat, 24 Aug 2024 15:25:40 -0400
On Sat, 2024-08-24 at 22:21 +0300, Eli Zaretskii wrote:
> 
> Sorry, I don't understand: an autoloaded function is always fboundp,
> so what do you mean by the above?

My framing was wrong.  See the PR I have against powershell.el for an
example of what I'm trying to do.

It is possible my PR is still wrong and require is the right thing in
this case (not fboundp), but fboundp at least let's me get past the
warnings about functions not known to be defined.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72795; Package emacs. (Sun, 25 Aug 2024 04:51:02 GMT) Full text and rfc822 format available.

Message #17 received at 72795 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Mark A. Hershberger" <mah <at> everybody.org>
Cc: 72795 <at> debbugs.gnu.org
Subject: Re: bug#72795: 31.0.50; Make speedbar-add-supported-extension
 autoloaded
Date: Sun, 25 Aug 2024 07:47:20 +0300
> From: "Mark A. Hershberger" <mah <at> everybody.org>
> Cc: 72795 <at> debbugs.gnu.org
> Date: Sat, 24 Aug 2024 15:25:40 -0400
> 
> On Sat, 2024-08-24 at 22:21 +0300, Eli Zaretskii wrote:
> > 
> > Sorry, I don't understand: an autoloaded function is always fboundp,
> > so what do you mean by the above?
> 
> My framing was wrong.  See the PR I have against powershell.el for an
> example of what I'm trying to do.
> 
> It is possible my PR is still wrong and require is the right thing in
> this case (not fboundp), but fboundp at least let's me get past the
> warnings about functions not known to be defined.

The need to (require PACKAGE) before calling functions from that
package is standard Emacs technique.  To prevent warnings during byte
compilation you could simply (require 'speedbar).  See the node
"Warning Tips" in the ELisp Reference manual for this and related
techniques.

I don't think speedbar or this function are special in any way, so I
don't think we need to do anything about this.




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Mon, 30 Sep 2024 00:50:02 GMT) Full text and rfc822 format available.

Notification sent to "Mark A. Hershberger" <mah <at> everybody.org>:
bug acknowledged by developer. (Mon, 30 Sep 2024 00:50:02 GMT) Full text and rfc822 format available.

Message #22 received at 72795-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, "Mark A. Hershberger" <mah <at> everybody.org>
Cc: 72795-done <at> debbugs.gnu.org
Subject: Re: bug#72795: 31.0.50;
 Make speedbar-add-supported-extension autoloaded
Date: Sun, 29 Sep 2024 17:48:10 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> I don't think speedbar or this function are special in any way, so I
> don't think we need to do anything about this.

There have been no further comments within 1 month.  I'm therefore
closing this bug report now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Oct 2024 11:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 292 days ago.

Previous Next


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