emacs-devel
[Top][All Lists]
Advanced

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

Re: Current mode command discovery


From: Óscar Fuentes
Subject: Re: Current mode command discovery
Date: Sun, 14 Feb 2021 21:00:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 14.02.2021 19:19, Lars Ingebrigtsen wrote:
>> This would only be commands that have been marked for the current major
>> mode and any active minor modes, I guess?
>
> BTW, you might be interested in this alternative approach (see
> smex-major-mode-commands):
>
> https://github.com/nonsequitur/smex/blob/master/smex.el#L120-L129
>
> No (declare ...) or incompatible changes to 'interactive' necessary.
> Of course, it doesn't support arbitrary predicates. OTOH, it should
> reliably be fast enough.

That only works with major modes, which IMO is enough to disqualify it,
but on addition it uses crude heuristics for detecting the commands
related to the major mode.




reply via email to

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