emacs-devel
[Top][All Lists]
Advanced

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

Re: Current mode command discovery


From: Philip Kaludercic
Subject: Re: Current mode command discovery
Date: Sun, 14 Feb 2021 22:20:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Alan Mackenzie <acm@muc.de> writes:

> Hello, Óscar
>
> On Sun, Feb 14, 2021 at 20:53:18 +0100, Óscar Fuentes wrote:
>> 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.
>
> For the way I use M-x, I absolutely need what you call "irrelevant"
> commands.  Suggesting that these "confuse and overload" me is not a nice
> thing to do.

What might be interesting is to filter out commands that have to be used
with a certain major or minor mode.  E.g. do python-mode commands have
to be shown when I'm in a c-mode buffer?

-- 
        Philip K.

Attachment: signature.asc
Description: PGP signature


reply via email to

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