auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] A real-life problem...


From: David Kastrup
Subject: Re: [AUCTeX-devel] A real-life problem...
Date: Tue, 07 Jun 2005 13:59:02 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2005-06-07) writes:
>
>> Ralf Angeli <address@hidden> writes:
>>
>> Well, I thought about doing this "right" in every case.  And then I
>> thought about "[\\(]" and decided that I had no real chance.
>>
>> Maybe something that will work in more cases is reasonably easy to
>> do and not too inefficient.  I am not sure it will be worth the
>> trouble, but if somebody else is of a different opinion, I don't
>> mind if he comes up with something.
>
> What about the following ol' trick?
>
> (string-match "\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*\\\\(" "\\\\(")
>
> As you haven't come up with this I am probably missing
> something. (c;

An anchored search will not match either ^ nor [^\\] at the anchor
position.  But this can probably be cured by backstepping into the
last ( before resuming the search.  It still does not deal with
"[\\(]" though, but we probably can live with that.

So the revised patch would be something like

Attachment: txto6Hm_VXvrU.txt
Description: Text Data


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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