|
From: | Dmitry Gutov |
Subject: | bug#33992: 27.0.50; xref-find-definitions wastes too much space |
Date: | Sat, 6 Apr 2019 02:20:02 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.0a1 |
On 05.04.2019 12:44, Felician Nemeth wrote:
(Sorry for replying late, I've just read this bug report.) I thought that I didn't need to see the list of the xref results and the xrefs' window shrank the view of the code I wanted to study. So, I came up with the defun below. It presents the xref results without showing the xref window. I think this idea can be further developed.
For instance, by not calling xref--show-xref-buffer right away, and instead storing the arguments. And then maybe calling it later if the user types 'm'.
You won't be able to use previous/next-error for such an implementation, though.
xref-show--xrefs-buffer could have an 'm' key binding that "minimizes" its window by switching to xref-show-xrefs-without-buffer (below) and that function can "maximize" back with the same 'm' key. A customizable variable could define the initial behavior.
I'm not a fan of this interface, personally. It's good that it's available, though.
We will make xref-show-xrefs-function a defcustom sooner or later, when we're sure that it doesn't need to be changed much.
Also, I think we can enhance xref-pulse-momentarily to use a different face if there's only one xref to present.
Yes, but I'm not sure the user will quickly understand the meaning of the different face.
Anyway, we can make the exact face name a defcustom (it's currently 'next-error'), and you'd be able to change it via 'let'.
[Prev in Thread] | Current Thread | [Next in Thread] |