all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Alexander V. Lukyanov" <lav@netis.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bug-gnu-emacs@gnu.org, 1260@emacsbugs.donarmstrong.com
Subject: bug#1260: regex.c and RE_FRUGAL
Date: Tue, 28 Oct 2008 14:57:39 +0300	[thread overview]
Message-ID: <20081028115739.GA7702@night.netis.ru> (raw)
In-Reply-To: <jwv8ws93zpx.fsf-monnier+emacsbugreports@gnu.org>

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.






  reply	other threads:[~2008-10-28 11:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jwvmygo23nk.fsf-monnier+emacsbugreports@gnu.org>
2008-10-27 15:56 ` bug#1260: regex.c and RE_FRUGAL Alexander V. Lukyanov
2008-10-28  8:17   ` Stefan Monnier
2008-10-28 11:57     ` Alexander V. Lukyanov [this message]
2008-10-28 14:40   ` bug#1260: marked as done (regex.c and RE_FRUGAL) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081028115739.GA7702@night.netis.ru \
    --to=lav@netis.ru \
    --cc=1260@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.