GNU bug report logs -
#53749
29.0.50; [PATCH] Xref backend for TeX buffers
Previous Next
Reported by: David Fussner <dfussner <at> googlemail.com>
Date: Thu, 3 Feb 2022 15:10:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Fixed in version 31.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 53749 <at> debbugs.gnu.org (full text, mbox):
Hi!
Let us first discuss whether we could make do without an additional Xref
backend. Just to make sure.
On 03.02.2022 17:09, David Fussner via Bug reports for GNU Emacs, the
Swiss army knife of text editors wrote:
> Similarly, any xref command on 'my:citekey' will only search by default
> for the half of the symbol under point, stopping at the colon.
etags's implementation of 'xref-backend-identifier-at-point' calls
'find-tag--default', which consults 'find-tag-default-function' and
(get major-mode 'find-tag-default-function).
So if your main goal was to alter which string gets searched for (based
on text around point), you can define a function which returns the
necessary string (as you did in the patch) and then either set
'find-tag-default-function' to that function, or put it on the
'find-tag-default-function' property for the respective major mode
functions.
> There are many other behaviors that are suboptimal, as well, so in the
> end I wrote a new xref backend for TeX buffers (cloning large portions
> of the default etags backend), and wondered whether it might be welcome
> in GNU Emacs.
Could you point out the other changes which were required?
This bug report was last modified 243 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.