[Top][All Lists]

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

Re: xref-collect-references picks wrong search backend

From: Dmitry Gutov
Subject: Re: xref-collect-references picks wrong search backend
Date: Fri, 11 Sep 2015 04:12:13 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0

On 09/10/2015 06:40 PM, Stephen Leake wrote:

I have run Gnu Global on the Emacs root directory, mostly to find out if
that's useful (so far not, because etags is better, but in other projects
it could be useful).

Maybe you should run it in the src/ directory, not the top level one. This way, files outside of it won't try to use GNU Global.

I'm actually using an experimental multi-language project setup that
provides an xref-find-function that calls xref-collect-references
directly for elisp searches, so I suggest the following solution:

- Add an optional symref-tool arg to xref-collect-references; my
   xref-find-function can set that to 'grep for elisp searches.

If you'll find that useful, sure.

But semantic-symref-find-references-by-name in the default implementation was just a way to get out something working quickly.

We might even have to bypass it altogether and always use Grep (in the default implementation), because any problems with semantic-symref (like GTAGS being out of date, or, like in this case, the tagging program skipping whole classes of files) are entirely opaque to the user.

> elisp--xref-find-references could also set it to 'grep.

Since its definition is pretty much the same as the etags one, I was going to merge them and put in the new "default" backend.

reply via email to

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