From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 59381@debbugs.gnu.org, ackerleytng@gmail.com, juri@linkov.net
Subject: bug#59381: Should xref--marker-ring be per-window?
Date: Sun, 20 Nov 2022 09:59:25 +0200 [thread overview]
Message-ID: <83v8na5a5e.fsf@gnu.org> (raw)
In-Reply-To: <ffd62411-952a-3912-c6e7-a8c3bd3669cf@yandex.ru> (message from Dmitry Gutov on Sun, 20 Nov 2022 04:52:38 +0200)
> Date: Sun, 20 Nov 2022 04:52:38 +0200
> Cc: ackerleytng@gmail.com, 59381@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
>
> > My guess is that the OP wanted to have control on when M-. pushes locations to
> > the last used stack or begin a new stack. Because only the user knows when
> > M-. begins a new series of searches. So I think it is better to offer a
> > separate command for exercising just such control.
>
> As previously mentioned in
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38797#8, I personally find
> it perfectly usable to always use window-local stacks.
>
> But maybe it will be helpful for you to elaborate: what the workflow
> would look like. Would it be a parallel set of commands, or simply a
> command to... do what?
I just did that, above: add a command that starts a new "stack". All the
rest is unchanged.
> In my workflow, a new stack is more or less created implicitly by
> splitting a window, and discarded by deleting one.
So you always ever have a given buffer displayed in a single window? Does
it ever happen to you that you need to work on one portion of a file while
looking at its another portion? or work on one file while look at another
file in a sibling window? If you ever need to do these, and both windows
show files that belong to the same "editing activity", why would the stack
be local to a window? That would effectively designate a single window as
the only one where M-. and M-, will do what you expect, no?
> The older stacks can get forgotten, but while the locations are fresh in
> mind, this behavior feels logical: it *feels* that I did that chain of
> navigations in one window, and another in the other one. And I can jump
> back and forward in each one in parallel.
But not if you switch windows?
> I suppose it doesn't work as well when commands pop new windows a lot,
> but luckily M-. doesn't do that too often.
In your experience, maybe. In Emacs we have macros like FOO_BAR that call
functions named foo_bar, and then M-. always pops up a new window. Likewise
with macros or data structures that have several different definitions
depending on the window-system backend (X, w32, NS, etc.).
The use cases I described don't work well with window-local stacks. So if
an explicit command as I envisioned is deemed an annoyance, perhaps a user
option which will allow one or the other workflow is in order?
next prev parent reply other threads:[~2022-11-20 7:59 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 5:29 bug#59381: Should xref--marker-ring be per-window? Ackerley Tng
2022-11-19 18:53 ` Juri Linkov
2022-11-19 19:53 ` Eli Zaretskii
2022-11-19 22:01 ` Ackerley Tng
2022-11-20 7:09 ` Eli Zaretskii
2022-11-20 17:00 ` Dmitry Gutov
2022-11-20 17:32 ` Eli Zaretskii
2022-11-20 18:11 ` Ackerley Tng
2022-11-20 18:22 ` Eli Zaretskii
2022-11-20 23:01 ` Dmitry Gutov
2022-11-21 7:42 ` Juri Linkov
2022-11-24 3:16 ` Dmitry Gutov
2022-11-20 2:52 ` Dmitry Gutov
2022-11-20 7:59 ` Eli Zaretskii [this message]
2022-11-20 23:17 ` Dmitry Gutov
2022-11-21 13:14 ` Eli Zaretskii
2022-11-22 2:46 ` Ackerley Tng
2022-11-24 3:28 ` Dmitry Gutov
2022-11-24 14:17 ` Dmitry Gutov
2022-11-24 23:42 ` Ackerley Tng
2022-11-24 23:59 ` Dmitry Gutov
2022-11-25 0:28 ` Ackerley Tng
2022-11-25 1:02 ` Dmitry Gutov
2022-11-24 3:19 ` Dmitry Gutov
2022-11-24 7:30 ` Eli Zaretskii
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=83v8na5a5e.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=59381@debbugs.gnu.org \
--cc=ackerleytng@gmail.com \
--cc=dgutov@yandex.ru \
--cc=juri@linkov.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.