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 #62 received at 28403 <at> debbugs.gnu.org (full text, mbox):

From: Winston <wbe <at> psr.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 28403 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#28403: 25.2; find-tag works, but xref-find-definitions
Date: Mon, 11 Sep 2017 00:05 EDT
Eli suggested:
>>>  etags --regex="/[ \t]*\([^ \t]+\)[ \t]+_ARGS/\1/" ...

and in reply to my changes said:
> It worked with your example.

   Yes.  The difference is a small one: "_ARGS[0-9]" only matches function
definition lines, while using only "_ARGS" will also match declarations.


>>    [Too bad etags doesn't have a way of doing "s/[ \t]+_ARGS[0-9]*//" on
>> the lines it normally finds...]

> Why do you need that?

   The idea was that instead of cluttering up the TAGS file with two
lines for every tag, such as

	foo _ARGS2^?foo^A50,100
	foo _ARGS2(^?50,100

as a result of using --regex, a post edit that allowed one to do
"s/[ \t]+_ARGS[0-9]*//" could simply remove the _ARGS2 part and reduce
the default etags line to:

	foo(^?50,100

thus (I'm guessing) clarifying things a different way.
 -WBE




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.