[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers
From: |
David Fussner |
Subject: |
bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers |
Date: |
Thu, 2 May 2024 14:34:45 +0100 |
Thanks for the review, Arash, and I'll make those changes.
Best, David.
On Thu, 2 May 2024 at 07:47, Arash Esbati <arash@gnu.org> wrote:
>
> David Fussner <dfussner@googlemail.com> writes:
>
> > Here's my third attempt at a working xref backend for TeX. I'll try
> > quickly to summarize what's in it:
> >
> > 1. I've modified etags so that it creates findable tags for as many
> > different sorts of TeX construct as possible, including those written
> > in the new expl3 syntax. I've now removed the escape character from
> > the tag names, as this simplifies code all around.
>
> Hi David,
>
> Thanks. I trust your code works, so I have 2 minor comments.
>
> > 5. Slightly unrelatedly, I've added new syntax-propertize-rules to
> > latex-mode so that expl3 constructs with the underscore aren't
> > fontified as subscripts, which makes such code unreadable. I'm happy
> > to split this off as another patch.
>
> I think this makes sense. AFAIK, Stefan M. looks after tex-mode.el, so
> he can the review it.
>
> > @@ -5736,11 +5752,25 @@ Scheme_functions (FILE *inf)
> > static linebuffer *TEX_toktab = NULL; /* Table with tag tokens */
> >
> > /* Default set of control sequences to put into TEX_toktab.
> > - The value of environment var TEXTAGS is prepended to this. */
> > + The value of environment var TEXTAGS is prepended to this.
> > + (2024) Add variants of '\def', some additional LaTeX (and
> > + former xparse) commands, common variants from the
> > + 'etoolbox' package, and the main expl3 commands. */
> > static const char *TEX_defenv = "\
> > -:chapter:section:subsection:subsubsection:eqno:label:ref:cite:bibitem\
> > -:part:appendix:entry:index:def\
> > -:newcommand:renewcommand:newenvironment:renewenvironment";
> > +:label:ref:chapter:section:subsection:subsubsection:eqno:cite:bibitem\
>
> I suggest to add 'Ref' and 'footref' as well which are part of LaTeX
> kernel.
>
> > +(defvar tex-esc-and-group-chars '(?\\ ?{ ?})
>
> (defvar tex-esc-and-group-chars '(?\\ ?\{ ?\})
>
> > + "The current TeX escape and grouping characters.
>
> Best, Arash
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, (continued)
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, David Fussner, 2024/05/09
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Stefan Monnier, 2024/05/13
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Dmitry Gutov, 2024/05/14
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Stefan Monnier, 2024/05/16
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Dmitry Gutov, 2024/05/19
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Stefan Monnier, 2024/05/19
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Eli Zaretskii, 2024/05/25
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Dmitry Gutov, 2024/05/25
bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Dmitry Gutov, 2024/05/06
bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Arash Esbati, 2024/05/02
- bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers,
David Fussner <=
bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, Stefan Monnier, 2024/05/03
bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, David Fussner, 2024/05/07
bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers, David Fussner, 2024/05/15