unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: Eli Zaretskii <eliz@gnu.org>
Cc: yandros@gmail.com, emacs-devel@gnu.org, spwhitton@spwhitton.name
Subject: Re: Proposal: add a binding for `imenu' under M-g
Date: Wed, 20 Apr 2022 13:27:55 +0300	[thread overview]
Message-ID: <m2v8v482xg.fsf@fastmail.fm> (raw)
In-Reply-To: <83czhctbkw.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Apr 2022 11:15:27 +0300")

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	other threads:[~2022-04-20 10:27 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-08 15:36 Proposal: add a binding for `imenu' under M-g Sean Whitton
2022-04-14 14:16 ` Sean Whitton
2022-04-14 16:14   ` Eli Zaretskii
2022-04-14 17:21     ` Filipp Gunbin
2022-04-14 18:00       ` Sean Whitton
2022-04-14 18:12       ` Eli Zaretskii
2022-04-14 19:03         ` chad
2022-04-15  5:51           ` Eli Zaretskii
2022-04-15  6:45             ` Sean Whitton
2022-04-15  6:50               ` Eli Zaretskii
2022-04-15 17:16                 ` Howard Melman
2022-04-15 17:16                 ` Howard Melman
2022-04-20  5:15                 ` Sean Whitton
2022-04-20  6:38                   ` Eli Zaretskii
2022-04-20  8:02                     ` Filipp Gunbin
2022-04-20  8:15                       ` Eli Zaretskii
2022-04-20 10:27                         ` Filipp Gunbin [this message]
2022-04-20 11:55                         ` Brian Cully
2022-04-20 12:10                         ` Stefan Monnier
2022-04-20 15:53                           ` John Yates
2022-04-21 13:14                             ` Stefan Monnier
2022-04-20 16:43                           ` Sean Whitton
2022-04-20 17:19                         ` chad
2022-04-20 20:54                         ` Kévin Le Gouguec
2022-04-21  7:20                           ` Juri Linkov
2022-04-21 15:36                             ` [External] : " Drew Adams
2022-04-21 17:50                             ` Howard Melman
2022-04-22  3:37                               ` Sean Whitton
2022-04-21 17:54                             ` Kévin Le Gouguec
2022-04-21 19:03                             ` Sean Whitton
2022-04-21 19:01                     ` Sean Whitton
2022-04-14 19:37         ` Sean Whitton
2022-04-14 19:52           ` [External] : " Drew Adams
2022-04-19 14:21           ` Stephen Leake
2022-04-14 19:47         ` [External] : " Drew Adams
2022-04-14 16:24   ` Filipp Gunbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2v8v482xg.fsf@fastmail.fm \
    --to=fgunbin@fastmail.fm \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=spwhitton@spwhitton.name \
    --cc=yandros@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).