GNU bug report logs - #1260
regex.c and RE_FRUGAL

Previous Next

Package: emacs;

Reported by: "Alexander V. Lukyanov" <lav <at> netis.ru>

Date: Mon, 27 Oct 2008 16:05:04 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #30 received at 1260-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Alexander V. Lukyanov" <lav <at> netis.ru>
Cc: 1260-done <at> debbugs.gnu.org
Subject: Re: bug#1260: regex.c and RE_FRUGAL
Date: Tue, 28 Oct 2008 10:31:29 -0400
>> > 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?

Emacs passes RE_NO_POSIX_BACKTRACKING explicitly depending on whether it
wants posix behavior or not (it has matching functions like
"string-match" and "posix-string-match").


        Stefan




This bug report was last modified 16 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.