GNU bug report logs -
#28814
26.0.90; When *xref* window is needed, original window-switching intent is lost
Previous Next
Reported by: joaotavora <at> gmail.com (João Távora)
Date: Fri, 13 Oct 2017 16:08:02 UTC
Severity: minor
Tags: patch
Found in version 26.0.90
Done: joaotavora <at> gmail.com (João Távora)
Bug is archived. No further changes may be made.
Full log
Message #61 received at 28814 <at> debbugs.gnu.org (full text, mbox):
> From: joaotavora <at> gmail.com (João Távora)
> Cc: Dmitry Gutov <dgutov <at> yandex.ru>, 28814 <at> debbugs.gnu.org
> Date: Wed, 25 Oct 2017 16:27:13 +0100
>
> > If so, then the easiest solution IMO would be to pop up one more
> > window, i.e. behave as if the window displaying the XREF buffer didn't
> > exist. That would both keep the contract of "C-x 4" and leave the
> > XREF buffer visible.
>
> Yes, this is the default behaviour in the current patches.
Good. Then I'm happy.
As for when we can't pop up a new window: would it be okay to reuse
the current window only in that (hopefully, rare) case?
> > As for quitting the XREF buffer when it's no longer needed: how about
> > 'q', like other similar modes do, or some variety thereof? "C-u RET"
> > is too odd, almost outlandish in Emacs.
>
> ’q’ is already taken by ’quit-window’ in *xref* buffers. It quits the
> window and does nothing else. I’m looking for a command that quits *and*
> goes to the target.
How about 'Q'?
> Then let’s open a separate discussion on whether that behaviour should
> become the default (I think it should).
What behavior should become the default?
The problem with binding this "quit and go to reference" function to
RET is that it is unlike any other similar feature we have: RET
usually selects the item, but does not quit any windows.
> It’s a bugfix, so emacs-26.
I'd need to see the patches in their last incarnation (if you already
posted them, and nothing needs to be changed, a URL will be
appreciated). In general, this changes user-visible behavior in
non-trivial ways, so it's borderline between a bugfix and a new
feature. But if the patches are small and simple enough, I guess they
could be okay for emacs-26.
Thanks.
This bug report was last modified 7 years and 260 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.