emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current mode command discovery


From: Eli Zaretskii
Subject: Re: Current mode command discovery
Date: Fri, 19 Feb 2021 14:42:38 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: dgutov@yandex.ru,  ofv@wanadoo.es,  emacs-devel@gnu.org
> Date: Fri, 19 Feb 2021 13:34:48 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> However, this may be a smaller issue than you'd think.  Most things that
> >> are tagged as ;;;###autoload won't be mode-specific: They are
> >> autoloadable exactly because they can be called from anywhere in Emacs.
> >
> > That's not necessarily true.  We also use ;;;###autoload as the means
> > to load a mode when some command is invoked.
> 
> I'm not quite sure what you're mean here?

What I mean is this: we do sometimes mark mode-specific commands as
autoloaded, for the reason I explained.  Unlike what you said, which
is that most things that we autoload are NOT mode-specific.

> We use ;;;###autoload on functions that aren't commands; yes.  But a
> (major) mode can't (by definition) be a mode-specific command.

I don't see how this is relevant.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]