emacs-devel
[Top][All Lists]
Advanced

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

Re: Smarter M-x that filters on major-mode


From: Óscar Fuentes
Subject: Re: Smarter M-x that filters on major-mode
Date: Thu, 11 Feb 2021 21:39:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Óscar Fuentes <ofv@wanadoo.es> writes:
>
>> Please note that it is important to be able to filter out commands that
>> belong to inactive minor modes.
>
> That would be nice, but I'm not quite sure what that'd look like.

When M-x is invoked, is it possible to build a list of active modes
(major and minor, including parent modes) and, for each command, check
if its declared mode in on that list?

>> Plus we have to take into account derived modes.
>
> That's taken into account.  I'm not sure whether the current
> implementation is fast enough, but I guess we'll see as we get more and
> more annotated commands.

Thank you.




reply via email to

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