[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: etags in tex files
From: |
Eli Zaretskii |
Subject: |
Re: etags in tex files |
Date: |
Sun, 18 Jul 2021 09:35:20 +0300 |
> From: Colin Baxter <m43cap@yandex.com>
> Date: Sat, 17 Jul 2021 21:18:49 +0100
> Cc: , help-gnu-emacs@gnu.org
>
> >>>>> Óscar Fuentes <ofv@wanadoo.es> writes:
>
> > Colin Baxter <m43cap@yandex.com> writes:
> >> Hello,
> >>
> >> I like to use etags in tex files in order to search for
> >> occurrences of equation labels. This works well if the label is a
> >> string of only digits and/or letters, say
> >> \label{123abc}. However, if there's a colon in the label, say
> >> \label{123:abc} then etags will only search for the portion of
> >> the string before the colon, i.e. 123.
> >>
> >> Is there any way in which I can configure etags to recognise
> >> everything with the curly brackets of a \label? I could always
> >> use grep but I like etags and would like to stick with them.
>
> > Dunno about (c|e)tags, but other implementations such as Universal
> > Ctgas lets you to define your own language. It is quite simple and
> > works fine.
>
> Thanks. I'll have a look at your suggestion if T don't make progress
> with etags.
If the TAGS file produced by Emacs's etags includes the problematic
labels, then switching to another etags/ctags implementation will not
help, AFAIU.