auctex-devel
[Top][All Lists]
Advanced

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

Re: a problem with my patch for catchfilebetweentags


From: Arash Esbati
Subject: Re: a problem with my patch for catchfilebetweentags
Date: Mon, 19 Dec 2022 14:46:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50

Uwe Brauer <oub@mat.ucm.es> writes:

> I just realized there is a very subtle bug with my patch.
>
>     1. If I insert 11 catchfilebetweentags «enviroments» in one go,
>        everything is fine.
>
>     2. But if I stop with number 10, leave the file and reopen it, then
>        it wants to insert number 10 again and not eleven, I presume
>        something is wrong with regexp ("^%<\\*[^:]*:\\([^>]\\)>$" but I
>        can find the mistake, 
>
> @Arash, what do you say?

I'd say that the regexp

  "^%<\\*[^:]*:\\([^>]\\)>$"

is broken and should be:

  "^%<\\*[^:]*:\\([^>]+\\)>$"

Otherwise it only matches one digit numbers.

Best, Arash



reply via email to

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