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 20:53:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> Now that we have mode markup, should there be a command like `M-x', but
>> instead lists only those commands that are specifically relevant to the
>> current buffer?
>
> Like I said before: instead of removing what seems irrelevant, make
> them appear after the relevant parts.  Otherwise we will lose
> information when we guess wrong (which is an easy mistake to make,
> since the assumption that the user always wants only the commands from
> the current major mode is not always true).

That defeats the purpose of the feature, which is showing what is
relevant and ignore the rest.

Listing the irrelevant commands would only serve to confuse and overload
the user.

Those who insist on using M-x to discover things while working on random
buffers (something that seems quite bizarre to me, to be honest) still
can disable the filtering or, better, learn to use the Emacs help
system.

>> This would only be commands that have been marked for the current major
>> mode and any active minor modes, I guess?
>
> What about primitives? they are relevant in any mode.

Here I think that Lars is proposing an special command that just shows
those commands marked as related to the current active modes. Regular
M-x will still show the commands which are relevant in general, on
addition to the specific ones.




reply via email to

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