GNU bug report logs - #22292
25.0.50; xref-find-references doesn't find anything for Lisp symbols

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Sat, 2 Jan 2016 13:24:01 UTC

Severity: normal

Found in version 25.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 22292 <at> debbugs.gnu.org
Subject: bug#22292: 25.0.50; xref-find-references doesn't find anything for Lisp symbols
Date: Sat, 2 Jan 2016 16:29:57 +0200
On 01/02/2016 04:14 PM, Eli Zaretskii wrote:

> What does that use if an ID database is not available?  Grep?

Global, CScope, or, yes, Grep. I always end up using Grep.

> Can you guide me through the call sequence?  Debugging xref and its
> back-ends is a pain.

You don't need to worry about xref backends here, only about CEDET 
tools. Try debugging xref-collect-references.

It calls semantic-symref-find-references-by-name, which
calls semantic-symref-instantiate (which detects the tool used in the 
current directory), then delegates the search to the tool's logic via 
the generics semantic-symref-get-result and semantic-symref-perform-search.

The Grep implementation for that stuff lives in 
lisp/cedet/semantic/symref/grep.el.

> I'm not replacing one command for another, I'm rewriting the entire
> section.  It cannot be kept in its current form, since it assumes
> everything is based on TAGS.

That's great, but I think my point still stands: if worst comes to 
worst, we could leave this command unadvertised.

Not that I wouldn't try my best to fix any remaining small-to-medium 
problems, of course.




This bug report was last modified 9 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.