[Top][All Lists]

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

Re: [AUCTeX-devel] RefTeX: Create BibTeX file misses citations

From: David Kastrup
Subject: Re: [AUCTeX-devel] RefTeX: Create BibTeX file misses citations
Date: Fri, 13 Mar 2009 11:27:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Ralf Angeli <address@hidden> writes:

>> -            (while (re-search-forward 
>> "^[^%\n\r]*\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}"
>>  nil t)
>> +            (while (re-search-forward 
>> "\\(?:^\\|\\=\\)[^%\n\r]*?\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}"
>>  nil t)
> Just as a random thought: Using \= here is a smart way to prevent the
> regexp from matching in %-based comments.  Should we ever want to use
> RefTeX for modes with other comment starters, we might have to think
> about doing things like this with `reftex-in-comment'.

AFAIR, RefTeX does not even work in .dtx files.  Quite a shortcoming:
all navigation is unavailable.

Would likely require quite a bit of revision.

David Kastrup

reply via email to

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