GNU bug report logs - #22692
25.0.91; xref-find-definitions fails to prompt

Previous Next

Package: emacs;

Reported by: Mike Kupfer <m.kupfer <at> acm.org>

Date: Tue, 16 Feb 2016 01:03:01 UTC

Severity: normal

Found in version 25.0.91

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Kupfer <m.kupfer <at> acm.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 22692 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, Juri Linkov <juri <at> linkov.net>
Subject: bug#22692: docstring for xref-find-definitions
Date: Sat, 20 Feb 2016 19:42:57 -0800
Dmitry Gutov wrote:

> On 02/19/2016 05:34 PM, Eli Zaretskii wrote:
> > If find-tag-default-function is also used by xref-find-references,
> > then it won't be TRT to reject constants up front.  A request to find
> > all the places where a certain constant is used is a valid use case.
> > It is indeed unlikely to have such a request for the constant 1, but
> > think about constants like 3.14159 or 3.0e+8.
> 
> That's a valid argument.

Agreed.

I suppose find-tag-default-function could be enhanced to take an
optional flag that says whether the request is for finding references or
for finding the definition.  Though I'm not sure the additional
complexity is worth it.  And it would certainly not be part of
addressing this bug.

mike




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.