[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to define xref-find-definitions for a new mode?
From: |
Marcin Borkowski |
Subject: |
Re: How to define xref-find-definitions for a new mode? |
Date: |
Sat, 09 Jun 2018 11:10:22 +0200 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2018-06-09, at 10:47, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Marcin Borkowski <mbork@mbork.pl>
>> Date: Sat, 09 Jun 2018 08:46:07 +0200
>>
>> I'd like to define xref-find-definitions for LaTeX (in AUCTeX). Where
>> should I start? Is there any documentation on how to add a new mode
>> support to xref?
>
> The only documentation is in xref.el itself. In a nutshell, you need
> to implement a couple of methods in a way that is specific to LaTeX.
Thanks. Are there other places I could look into, like xref
implementation for a concrete language?
> (Btw, doesn't it already work? Etags is an existing back-end for
> Xref, and 'etags' the program already supports TeX and its
> derivatives, so it is able to create TAGS tables for LaTeX files.)
Well, possibly, but I'd like it to work like for Elisp or JavaScript,
without a TAGS table. Also, I want it to go to \label when on \ref, to
\bib / \bibitem when on \cite etc.
Thanks,
--
Marcin Borkowski
http://mbork.pl
- How to define xref-find-definitions for a new mode?, Marcin Borkowski, 2018/06/09
- Re: How to define xref-find-definitions for a new mode?, Eli Zaretskii, 2018/06/09
- Re: How to define xref-find-definitions for a new mode?,
Marcin Borkowski <=
- Re: How to define xref-find-definitions for a new mode?, Eli Zaretskii, 2018/06/09
- Re: How to define xref-find-definitions for a new mode?, Marcin Borkowski, 2018/06/10
- Re: How to define xref-find-definitions for a new mode?, Eli Zaretskii, 2018/06/11
- Re: How to define xref-find-definitions for a new mode?, Marcin Borkowski, 2018/06/15
- Re: How to define xref-find-definitions for a new mode?, Eli Zaretskii, 2018/06/15
- Re: How to define xref-find-definitions for a new mode?, Marcin Borkowski, 2018/06/15
- Re: How to define xref-find-definitions for a new mode?, Dmitry Gutov, 2018/06/12