all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: Phillip Susi <phill@thesusis.net>,  help-gnu-emacs@gnu.org
Subject: Re: etags to xref changed navigation
Date: Wed, 24 Apr 2024 23:34:54 -0400	[thread overview]
Message-ID: <jwvil06yv7n.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <61c19ec5-1f9e-4705-8a4c-0dad852ae6d2@gutov.dev> (Dmitry Gutov's message of "Thu, 25 Apr 2024 03:05:39 +0300")

>>>> 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




  reply	other threads:[~2024-04-25  3:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-22 15:11 etags to xref changed navigation Phillip Susi
2024-04-22 15:30 ` Eli Zaretskii
2024-04-22 16:00   ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-22 19:19     ` Eli Zaretskii
2024-04-23  1:39       ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-23 17:06         ` Phillip Susi
2024-04-23 18:29           ` Stefan Monnier
2024-04-23 18:41             ` Eli Zaretskii
2024-04-24  2:07               ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-24  6:31                 ` Eli Zaretskii
2024-04-25  0:05             ` Dmitry Gutov
2024-04-25  3:34               ` Stefan Monnier [this message]
2024-04-25 21:30                 ` Dmitry Gutov
2024-04-23 17:02   ` Phillip Susi
2024-04-23 17:15     ` Eli Zaretskii
2024-04-22 17:48 ` Philip Kaludercic
2024-04-23 17:17   ` Phillip Susi
2024-04-23 19:33     ` Philip Kaludercic

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

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

  git send-email \
    --in-reply-to=jwvil06yv7n.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dmitry@gutov.dev \
    --cc=help-gnu-emacs@gnu.org \
    --cc=phill@thesusis.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.