Subject: Re: bug#1260: regex.c and RE_FRUGAL

From: "Alexander V. Lukyanov" <[email-masked]>
Date: Tue, 28 Oct 2008 14:57:39 +0300

On Tue, Oct 28, 2008 at 04:17:45AM -0400, Stefan Monnier wrote:
> > This bug report is not quite for emacs, but for its regex library.
> > It features RE_FRUGAL flag (very useful), but it does not seem to work.
> > I have tried this rather simple program and it prints 0-12 instead of
> > expected 0-6.
> 
> IIRC you'll need to set RE_NO_POSIX_BACKTRACKING as well, otherwise the
> match returned will always be the longest.

Thank you! The flag RE_NO_POSIX_BACKTRACKING did the trick.

Is there a reason for RE_SYNTAX_EMACS including RE_FRUGAL and not including
RE_NO_POSIX_BACKTRACKING?

-- 
   Alexander.