all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded
@ 2024-08-24 19:12 Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-24 19:20 ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-24 19:21 ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-24 19:12 UTC (permalink / raw)
  To: 72795

As per subject, this will allow extensions to add themselves just by
fboundp'ing the function.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded
  2024-08-24 19:12 bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-24 19:20 ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-24 19:21 ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-24 19:20 UTC (permalink / raw)
  To: 72795


Example where this would be handy:

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded
  2024-08-24 19:12 bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-24 19:20 ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-24 19:21 ` Eli Zaretskii
  2024-08-24 19:25   ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2024-08-24 19:21 UTC (permalink / raw)
  To: Mark A. Hershberger; +Cc: 72795

> 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@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?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded
  2024-08-24 19:21 ` Eli Zaretskii
@ 2024-08-24 19:25   ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-25  4:47     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-24 19:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 72795

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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded
  2024-08-24 19:25   ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-25  4:47     ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2024-08-25  4:47 UTC (permalink / raw)
  To: Mark A. Hershberger; +Cc: 72795

> From: "Mark A. Hershberger" <mah@everybody.org>
> Cc: 72795@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-25  4:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-24 19:12 bug#72795: 31.0.50; Make speedbar-add-supported-extension autoloaded Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-24 19:20 ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-24 19:21 ` Eli Zaretskii
2024-08-24 19:25   ` Mark A. Hershberger via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-25  4:47     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.