From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Proposal: add a binding for `imenu' under M-g Date: Wed, 20 Apr 2022 13:19:49 -0400 Message-ID: References: <877d7zh9iz.fsf@athena.silentflame.com> <87fsmfpx7h.fsf@athena.silentflame.com> <83sfqf3anr.fsf@gnu.org> <83k0br356f.fsf@gnu.org> <83ilra3ne2.fsf@gnu.org> <87pmliyhdi.fsf@athena.silentflame.com> <83czhi3kmw.fsf@gnu.org> <87ilr4pc70.fsf@athena.silentflame.com> <83k0bktg2s.fsf@gnu.org> <83czhctbkw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000012cd1405dd1934b6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: EMACS development team , Filipp Gunbin , Sean Whitton To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 20 19:21:37 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhE1I-0006nu-Ul for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Apr 2022 19:21:36 +0200 Original-Received: from localhost ([::1]:55474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE1H-0003VS-J1 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Apr 2022 13:21:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhDzq-00024s-5r for emacs-devel@gnu.org; Wed, 20 Apr 2022 13:20:06 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:43913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhDzo-0001ZF-G9; Wed, 20 Apr 2022 13:20:05 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id x17so4161389lfa.10; Wed, 20 Apr 2022 10:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6AnfxrOzukiywc26s/wMDzDSkkfqfjA7E1/M7gk6Sjg=; b=hvQWxbQiGt86YB/6yNHvCRdHKNBIasDsTN8lYoLQ8ggIl8AsS3nVTGnlfL/xL6rB+Z NRjiwKoh4cbygAI+s4fcg/0E04ZVJIDg0kjeLMtr/+f0F5SIPUIFaktUGXHgzTr/imK5 4V6GfogrVlwjqEF29GnFmhwt8FOd1JGkqvhGtHstuXGn0GGflM78ZvBSeeol905V450B lIU7qrL3RXII0h7cD96gOpi9k0UbH5+9MsKjOMVqFHnHImt5ZbknqKfqNlmmMu5UfAIH hngn71YBNNbM/xnmUHqLObWH8iSfmGrKqb5vUz1qQV2n3J0EVmPkDl8w9YyYgzRE9ZTE 9hog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6AnfxrOzukiywc26s/wMDzDSkkfqfjA7E1/M7gk6Sjg=; b=oECj9Ujms/TFZBZlfMArGoqo3qls8vrqKhjt1sBJ3Drrh4tOaSaBb4rY6jIHXOCzBW VhxD6vwJrA0kMnM9041HD6/KTBPAq/dJ/BATFjkhXXocmQmU7DvhKLagLsN3VN/SqYw0 wJUpXCiB88oZl9UuZ7LlawgjUxuErOCHnsM8v4AL/ArqEJ6kHOxwqCCEUwsleiQKhunl 9MfpglQbjUUwkwHdoPpGqf/OS3s1AIjcMRzu47MXXNzhMthYCNnKbr8iocL8ARbnURnt jagZXZR/+jnq+ov0x2G7s6AsTRig9kAYhfFGHGFWBAlN0nfpKy3MhK/aVy3WJMECOLf1 nbuQ== X-Gm-Message-State: AOAM531qiaAJzaCt8xKq/VBHMCOpdOiceLCaVM9iiZUiQB+BW2NLWs6K PPHiZMTmZVofWdnFb5ZbVMrlR7F4PV+wXmHw49sbEe+n X-Google-Smtp-Source: ABdhPJxC6uPLqrlwL7cjGtYUdzrwqH/iFLwTFPr1sOLgxo/nZsz3QHW99pcL0LJGXh9ECCnOphC8tpce7LKLDmn6hLc= X-Received: by 2002:a05:6512:33c7:b0:471:a308:adce with SMTP id d7-20020a05651233c700b00471a308adcemr8254774lfg.186.1650475201120; Wed, 20 Apr 2022 10:20:01 -0700 (PDT) In-Reply-To: <83czhctbkw.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=yandros@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288720 Archived-At: --00000000000012cd1405dd1934b6 Content-Type: text/plain; charset="UTF-8" I don't have a strong opinion in this area, as someone who doesn't use imenu very much, but I feel like I was asked to support my intuition, so: On Wed, Apr 20, 2022 at 4:15 AM Eli Zaretskii wrote: > > 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, so it is > conceptually very similar to M-. and other such features. We don't > perceive M-. as a "go" command, do we? > I *do* feel like C-u M-. is a "go" command, similar to the others, since it prompts for input and "goes" there, but I also understand that the difference between "go" and "find/search" is intentionally fuzzy in emacs. I think C-x ` is another good example of a command that fits in the concept that I recall suggested for M-g back when it was added, and I notice that it actually has a binding in M-g, which I think supports the idea of M-g as "go" and also that it's ok to have some longstanding "go" functionality be bound both inside M-g and outside. I hope that helps, ~Chad --00000000000012cd1405dd1934b6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I don't have a strong opinion in this area, as so= meone who doesn't use imenu very much, but I feel like I was asked to s= upport my intuition, so:

On Wed, Apr 20, 2022 at 4:15= AM Eli Zaretskii <eliz@gnu.org> = wrote:
> Whil= e M-g would mean "go".=C2=A0 And stuff like "M-g g", &q= uot;M-g c", they
> request input only to go somewhere.=C2=A0 imenu falls in this category= -
> request input (select from completions) and go there.

To me, imenu is a facility to find definitions of functions, so it is
conceptually very similar to M-. and other such features.=C2=A0 We don'= t
perceive M-. as a "go" command, do we?

<= /div>
=C2=A0I *do* feel like C-u M-. is a "go" command, simil= ar to the others, since it prompts for input and "goes" there, bu= t I also understand that the difference between "go" and "fi= nd/search" is intentionally fuzzy in emacs.

I= think C-x ` is another good example of a command that fits in the concept = that I recall suggested for M-g back when it was added, and I notice that i= t actually has a binding in M-g, which I think supports the idea of M-g as = "go" and also that it's ok to have some longstanding=C2=A0&qu= ot;go" functionality be bound both inside M-g and outside.
<= br>
I hope that helps,
~Chad

=
--00000000000012cd1405dd1934b6--