From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Proposal: add a binding for `imenu' under M-g Date: Thu, 21 Apr 2022 10:20:10 +0300 Organization: LINKOV.NET Message-ID: <86mtgeuclx.fsf@mail.linkov.net> 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> <87tuanbhlr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34692"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , emacs-devel@gnu.org, Filipp Gunbin , yandros@gmail.com, spwhitton@spwhitton.name To: =?iso-8859-1?Q?K=E9vin?= Le Gouguec Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 21 10:13:23 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 1nhRwJ-0008rw-0d for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Apr 2022 10:13:23 +0200 Original-Received: from localhost ([::1]:51898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhRwH-0001du-J5 for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Apr 2022 04:13:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhR8o-0000lL-PN for emacs-devel@gnu.org; Thu, 21 Apr 2022 03:22:17 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:58529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhR8n-0005pr-0U; Thu, 21 Apr 2022 03:22:14 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 82C1160003; Thu, 21 Apr 2022 07:22:08 +0000 (UTC) In-Reply-To: <87tuanbhlr.fsf@gmail.com> (=?iso-8859-1?Q?=22K=E9vin?= Le Gouguec"'s message of "Wed, 20 Apr 2022 22:54:56 +0200") Received-SPF: pass client-ip=217.70.183.195; envelope-from=juri@linkov.net; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:288742 Archived-At: > * when I reach for M-s commands (isearch-forward-*, occur, > highlight-*/hi-lock-*), I feel like I am looking for a command that > operates on a set of _matches_ (jumping successively through the set, > collecting & displaying the set, highlighting the set), > > * when I reach for M-g commands, I feel like I want to jump to "precise" > locations, i.e. locations that are not defined by pattern matching, > but by some other semantics (e.g. line numbers, error reports). > > So M-. could very well bound to M-g d and/or M-g M-d, and it wouldn't > break my (perhaps twisted) grokking of the M-g prefix: I use it to visit > the "canonical" location for a symbol, defined by TAGS files, LSP > servers… though it's true that M-. sometimes does "match" more than one > locations. > > Consequently, having imenu on the M-g prefix sounds more natural to me. Do you think that additionally to 'M-g i' imenu should be bound also to 'M-g M-i'? Then it could be typed without releasing the Meta modifier. But the problem is that 'M-i' is equivalent to 'TAB', so this means taking the keybinding 'M-g TAB' that might have more sense for another command associated with TABs like navigating to the next link, then 'M-g S-TAB' to the previous link, etc.