GNU bug report logs -
#22077
Possible bug in `reftex-what-index-tag'
Previous Next
Reported by: Arash Esbati <esbati <at> gmx.de>
Date: Wed, 2 Dec 2015 21:38:02 UTC
Severity: normal
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Mosè Giordano <mose <at> gnu.org> writes:
>> I think it should be `(match-end 0)' since the last search had no
>> parenthesized expression in regexp. In short:
>>
>> --8<---------------cut here---------------start------------->8---
>> diff --git a/lisp/textmodes/reftex-auc.el b/lisp/textmodes/reftex-auc.el
>> index bbad065..151be59 100644
>> --- a/lisp/textmodes/reftex-auc.el
>> +++ b/lisp/textmodes/reftex-auc.el
>> @@ -137,7 +137,7 @@ reftex-what-index-tag
>> ((stringp tag) tag)
>> ((integerp tag)
>> (save-excursion
>> - (goto-char (match-end 1))
>> + (goto-char (match-end 0))
>> (or (reftex-nth-arg tag (nth 6 entry)) "idx")))
>> (t "idx")))))
>> --8<---------------cut here---------------end--------------->8---
>>
>> Any comments? I could make a proper patch for this.
>
> Yes, you're right, `goto-char' is called with nil argument. And yes,
> a proper patch would be useful, even if it's a one-liner change.
I've just committed this trivial patch under Arash's name.
> BTW, you signed the copyright paper only for AUCTeX, should you want
> to provide more substantial contributions for RefTeX you have to sign
> the copyright paper for Emacs as well.
Yes, that would be good anyway.
Bye,
Tassilo
This bug report was last modified 9 years and 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.