emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xref-query-replace


From: Eli Zaretskii
Subject: Re: xref-query-replace
Date: Sun, 10 Jan 2016 05:32:14 +0200

> Cc: address@hidden
> From: Dmitry Gutov <address@hidden>
> Date: Sat, 9 Jan 2016 23:46:21 +0300
> 
> On 01/09/2016 11:40 PM, Eli Zaretskii wrote:
> 
> > I don't really understand why.
> 
> If you have a set of matches for a C++ method A::C#foo, what value 
> should xref-match-length return for each of them? Can you tell that 
> value in advance, just based on the method's qualified name?

I don't understand the importance of the length, but the definition of
a method points to a specific source line, exactly like a reference.
So whatever you gather from a reference could be done with a
definition, no?

> > But if you insist, the only way to
> > explain this is to explicitly mention all the commands that produce
> > "good" XREF buffers in the error message.  Yes, it will be a long
> > one.  But that's not a catastrophe.
> 
> Technically, this list is an open one: anyone can call xref--show-xrefs 
> with a list of appropriate values. This function, or one like it, should 
> be public in some next release.
> 
> If we define a collective term for such xref functions, we could mention 
> it in their docstrings.

I just don't see what kind of collective name would be possble.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]