emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposal: add a binding for `imenu' under M-g


From: Filipp Gunbin
Subject: Re: Proposal: add a binding for `imenu' under M-g
Date: Wed, 20 Apr 2022 13:27:55 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)

On 20/04/2022 11:15 +0300, Eli Zaretskii wrote:

>> From: Filipp Gunbin <fgunbin@fastmail.fm>
>> Date: Wed, 20 Apr 2022 11:02:55 +0300
>> Cc: yandros@gmail.com, emacs-devel@gnu.org,
>>  Sean Whitton <spwhitton@spwhitton.name>
>> 
>> M-s feels good as mnemonic for search/show, and indeed, we have "M-s o"
>> (occur - searches and shows), "M-s h" (highlight - also searches and
>> shows) and maybe others.  Yes you can go to occur results, but that's
>> another action.
>> 
>> While M-g would mean "go".  And stuff like "M-g g", "M-g c", they
>> request input only to go somewhere.  imenu falls in this category -
>> request input (select from completions) and go there.
>
> To me, imenu is a facility to find definitions of functions,

I think this is where our perception differs: I find it very much like
"go", partly because we move to the position in the current buffer, and
not some other.

> so it is conceptually very similar to M-. and other such features.  We
> don't perceive M-. as a "go" command, do we?
>
> M-s is not just for searching.  It has, for example, a set of bindings
> that invoke hi-lock commands, which are not about searching at all.
> We could have a similar "M-s i" prefix for imenu commands.

I don't use hi-lock regularly, but if I would, that would be exactly for
searching for some pattern.  Even if not in the sense of search-forward
/ isearch-forward.  And again, "s" in M-s can also mean "show"...

Oh, another key binding discussion :-)

Filipp



reply via email to

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