Subject: Re: bug#44611: Prefix arg for xref-goto-xref

From: Dmitry Gutov <[email-masked]>
Date: Tue, 22 Dec 2020 14:20:18 +0200

On 22.12.2020 10:58, Juri Linkov wrote:

> But a completely separate case is when the *xref* buffer is created
> by such grep-like commands as project-find-regexp.
> 
> So currently there are two different uses of the *xref* buffer:
> 
> 1. as a transient completions buffer that could be buried
>     after a completion is selected from the buffer;
> 2. as a grep buffer for visiting the found matches.
> 
> In the second case, it's natural to type TAB to navigate results.
> 
> Should these cases use different modes with different buffer names?

It can have a different name, and even a different mode, but I don't 
think using significantly different key bindings is a good idea while 
the buffer (except for the name, maybe) looks exactly the same. That's 
still a good recipe for confusing a user.

> Such as a buffer name *xgrep*?

Perhaps we could rename the "find definitions" buffer instead, because 
that one only has one "source".

The second case, however, can have "matches" coming from very different 
sources, so calling it "grep" might not always be appropriate.