GNU bug report logs - #28403
25.2; find-tag works, but xref-find-definitions doesn't; bug?

Previous Next

Package: emacs;

Reported by: Winston <wbe <at> psr.com>

Date: Sat, 9 Sep 2017 22:41:02 UTC

Severity: normal

Found in version 25.2

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

Bug is archived. No further changes may be made.

Full log


Message #85 received at 28403 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: wbe <at> psr.com, 28403 <at> debbugs.gnu.org
Subject: Re: bug#28403: 25.2; find-tag works, but xref-find-definitions
Date: Wed, 13 Sep 2017 02:40:21 +0300
On 9/11/17 5:43 PM, Eli Zaretskii wrote:

>>>> that would require support from backends, then.
>>
>> To make "fuzzy" work.
> 
> It would be good to have other back-ends support that, but I don't
> think it's a must.  First, no one said all the back-ends must
> distinguish between the two modes; it could even be that only one
> makes sense for some language.

How will we define that it "makes sense"?

There are two ways it could work:

- Like etags, try to match all words on the same line as the legitimate 
definitions. For most backends, this will simply be impossible (for 
those that use a concise index instead of a flat list of strings). E.g., 
the elisp backend can't implement that.

- Allow substring matching for definition names? But xref-find-apropos 
already lets you do that.

> And second, I'm guess that this new
> method will only be useful to those who are accustomed to etags.
> 
> So I think we could add this with only the etags back-end support for
> now, and extend it later to other back-ends if needed.

Should it be a defcustom in etags.el, then? That's not far from what I 
suggested in the first place.

I hesitate to add a defcustom to xref.el that will only affect etags.




This bug report was last modified 7 years and 253 days ago.

Previous Next


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