From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: etags to xref changed navigation Date: Wed, 24 Apr 2024 23:34:54 -0400 Message-ID: References: <87sezdqvox.fsf@vps.thesusis.net> <86edax5s9t.fsf@gnu.org> <86bk615ho9.fsf@gnu.org> <87cyqg6ma8.fsf@vps.thesusis.net> <61c19ec5-1f9e-4705-8a4c-0dad852ae6d2@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Phillip Susi , help-gnu-emacs@gnu.org To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 25 05:35:46 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1rzpth-0008Hc-Fd for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Apr 2024 05:35:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzpsy-0000yt-Ue; Wed, 24 Apr 2024 23:35:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzpsx-0000yj-3j for help-gnu-emacs@gnu.org; Wed, 24 Apr 2024 23:34:59 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzpsv-0002TR-8Q for help-gnu-emacs@gnu.org; Wed, 24 Apr 2024 23:34:58 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 80F4D442E5F; Wed, 24 Apr 2024 23:34:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1714016094; bh=VigTwDH+E7T7S0NcZmqKnKEdbij1RJlL1fyS29EsM84=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V+GqE44tAhxBmAVG+2igoI0IqRtKog6RvvmaxOqELqAeOqKEoMm+snItfQCETEHeC vvslasi4qtOFIzPNe3I6w2E/MttAmh2AtNVel6IC+ROSutBCoU/i8Nrourd/e/zmV5 Go/lpuIKsiLVSENt2riMx8BhNKvzpwhQv5c7QmaQ37ZlvvkDVAqejGItLqsjBiWMQG Zyyz7i/xMUgN3RRYfhVWZrTRVy+yWCjVK8Ur4EHZujcorulOf8dbOenKw7BtKr2gpB iQknIB+qctfE6nbtHSWqwOHb17SDC1BDOvOPf9ToFZqLhXvQ/KPltY/v62U84oG01o dsYH4N+4flPvg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 280E3442E4E; Wed, 24 Apr 2024 23:34:54 -0400 (EDT) Original-Received: from alfajor (unknown [45.72.201.215]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F0DA312027F; Wed, 24 Apr 2024 23:34:53 -0400 (EDT) In-Reply-To: <61c19ec5-1f9e-4705-8a4c-0dad852ae6d2@gutov.dev> (Dmitry Gutov's message of "Thu, 25 Apr 2024 03:05:39 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146470 Archived-At: >>>> I'm not sure what the problems would be, concretely, but we can always >>>> solve the problem by making the behavior optional. >>> I think the reason why it was on M-, before was because repeated >>> M-. couldn't tell whether you wanted the next, or to start a new search >>> for whatever point is on now. >> That's also my understanding, and I'm suggesting that it distinguishes >> the two by checking if `M-.` is used consecutively or not (just like >> `C-/` can't easily tell whether you want to keep undoing or you want to redo >> the thing you just undid, so it checks whether these `C-/` are >> consecutive or not). > In such as scheme, if the first 'M-.' brings you to a beginning of a symbol, > the next 'M-.' would be ambiguous: would you want to continue the previous > navigation (and go to the second location), or would you want to go to the > definition of the new symbol? Not sure which part of my above-quoted text isn't clear: the ambiguity would be "hand waved" away by saying that when the users hits `M-.` without doing anything else in between, they are telling Emacs to keep looking for the same symbol. If they want to start a new search, they should break the sequence, e.g. with `C-g` or `C-f C-b`, you name it. IME in most languages `M-.` usually jumps to a symbol which you will rarely want to use for a new search. Stefan