[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19714: reftex under Xemacs 21.5.33 Mule

From: Tassilo Horn
Subject: bug#19714: reftex under Xemacs 21.5.33 Mule
Date: Thu, 29 Jan 2015 15:42:48 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

>> Yes, that's it.  Unfortunately, I use that on purpose in
>> `reftex-label-regexps' which is a customizable list of regexps which
>> gets `regexp-opt'ed and starts `reftex-everything-regexp'.  By
>> default, it has one entry matching \label{...} and one matching
>> keyval label={...} arguments.
>> RefTeX relies on the first group in `reftex-everything-regexp'
>> capturing the label name (see reftex-parse.el:242).  Without the
>> explicitly numbered groups, the regex for \label{...} would be group
>> 1, but the regex for label={...} would already be two.
>> I don't see an easy fix here on my side.
> The first non-nil matching group?

Well, reftex also relies on group 3 being the section, group 7 being a
file being input or included, group 9 being the appendix, etc.  So when
the label becomes the first non-nil group, the section becomes the third
non-nil group after the first non-nil group...

Oh, and of course you may have a document without a \label.  Then the
first non-nil group is the section rather than the label.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]