GNU bug report logs -
#59638
13.0.9; reftex-toc counts incorrectly if section is commented out
Previous Next
Reported by: Uwe Brauer <oub <at> mat.ucm.es>
Date: Sun, 27 Nov 2022 17:27:02 UTC
Severity: normal
Found in version 13.0.9
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 59638 <at> debbugs.gnu.org (full text, mbox):
Uwe Brauer <oub <at> mat.ucm.es> writes:
>>>> "AE" == Arash Esbati <arash <at> gnu.org> writes:
>
>> diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
>> index e72576cdc7..c72dd5fa07 100644
>> --- a/lisp/textmodes/reftex.el
>> +++ b/lisp/textmodes/reftex.el
>> @@ -1005,9 +1005,13 @@ reftex-compile-variables
>
>> ;; Calculate the regular expressions
>> (let* (
>> -; (wbol "\\(\\`\\|[\n\r]\\)[ \t]*")
>> - (wbol "\\(^\\)%?[ \t]*") ; Need to keep the empty group because
>> - ; match numbers are hard coded
>> + ;; (wbol "\\(\\`\\|[\n\r]\\)[ \t]*")
>> + ;; Need to keep the empty group because match numbers are
>> + ;; hard coded
>> + (wbol (concat "\\(^\\)"
>> + (when (string-suffix-p ".dtx" (buffer-file-name) t)
>> + "%")
>> + "[ \t]*"))
>> (label-re (concat "\\(?:"
>> (mapconcat #'identity reftex-label-regexps "\\|")
>> "\\)"))
>
> I can try to test this later
Ping! Gentlemen, any comment on this proposal?
Best, Arash
This bug report was last modified 2 years and 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.