unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Filipp Gunbin <fgunbin@fastmail.fm>
Cc: "spwhitton@spwhitton.name" <spwhitton@spwhitton.name>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: [External] : Re: Proposal: add a binding for `imenu' under M-g
Date: Thu, 14 Apr 2022 19:47:48 +0000	[thread overview]
Message-ID: <SJ0PR10MB54889BA537CD6C97465BCA9AF3EF9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <83k0br356f.fsf@gnu.org>

> > >> From: Sean Whitton <spwhitton@spwhitton.name>
> > >> Date: Thu, 14 Apr 2022 07:16:02 -0700
> > >>
> > >> > `imenu' doesn't have a binding.  How about binding it to 'M-g i'?
> > >
> > > I wonder why M-g.  That prefix is for commands the "go" somewhere,
> > > and this one doesn't.
> >
> > But the purpose of imenu is "go to the index entry", it just offers
> > completion before that.
> 
> We have a lot of commands that display a menu of possibilities, and
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I'm not sure it is valid to consider them all as "go to somewhere".
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^

Did someone say that all commands that display a menu
should be considered as providing menu items that go
somewhere?

(FWIW, I don't really care whether we add an `imenu'
key binding on `M-g'.  I'm just pointing to the jump
in logic of that statement.  It went "somewhere"...)

Imenu menu items do generally "go somewhere", IMO.

Similarly, most bookmark "jump" commands generally
"go somewhere".  So do commands such as `find-file',
`pop-to-buffer', and `other-window'.

Whether this or that command (accessed from a menu
or not) deserves access from prefix key `M-g' is a
question to be answered case by case.  Command
`imenu' is a reasonable contender, I think.

Maybe that's what you really meant?  Lots of commands
go somewhere.  That general characterization likely
can't be the sole argument to give a command a binding
on `M-g'.  Otherwise we'd have a pretty large set of
`M-g' bindings.

If that's your point then I agree with it.  Maybe
any "go somewhere" command could be considered for
`M-g' candidacy.  But I don't think consideration of
such candidacy applies to all commands that show a
menu.  Going somewhere is relevant here.  Showing a
menu, in itself, is not.






  parent reply	other threads:[~2022-04-14 19:47 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
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         ` Drew Adams [this message]
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=SJ0PR10MB54889BA537CD6C97465BCA9AF3EF9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=fgunbin@fastmail.fm \
    --cc=spwhitton@spwhitton.name \
    /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).