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


View this message in rfc822 format

From: Winston <wbe <at> psr.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 28403 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: bug#28403: 25.2; find-tag works, but xref-find-definitions
Date: Mon, 11 Sep 2017 01:02 EDT
Eli asked:
> I guess we can now close the bug report?

From my standpoint, yes.

However, since xref-find-definitions is not a drop-in replacement for
find-tag (differences incl. find partial name differs, goes to the
string at (point) without prompting, etc.), I probably won't be the last
person running into the differences.

Perhaps the simplest solution is to expand the documentation section of
xref-find-definitions with text such as the following (corrected for
anything I've got wrong below).  :-)

----------

xref-find-definitions differs from find-tag several ways:
* find-tag always prompted for a name, with the string at (point) as
  the default name.  With no argument, xref-find-definitions does not
  prompt, and tries immediately to go to a tag with that default name.
  Use (setq xref-prompt-for-identifier t) to force prompting. 
* find-tag allowed partial names.  xref-find-definitions does not.
  Use TAB after a partial name in a prompt for completion(s).
* If find-tag finds your tags OK but xref-find-definitions does not, you
  may need to use --regexp with etags to help it identify the tag name.
  (See etags man page.)  If even that doesn't help, try
							{whatever Dmitry
  and Eli decide is a good long-term easy way to add '(tag-symbol-match-p)
  to etags-xref-find-definitions-tag-order}.

----------

Thanks for your help!  HTH,
 -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.