From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alexander V. Lukyanov" Newsgroups: gmane.emacs.bugs Subject: bug#1260: regex.c and RE_FRUGAL Date: Tue, 28 Oct 2008 14:57:39 +0300 Message-ID: <20081028115739.GA7702@night.netis.ru> References: <20081027155611.GA7082@night.netis.ru> Reply-To: "Alexander V. Lukyanov" , 1260@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225195839 17421 80.91.229.12 (28 Oct 2008 12:10:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 12:10:39 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 1260@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 13:11:37 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KunQ2-0005n4-B5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 13:11:31 +0100 Original-Received: from localhost ([127.0.0.1]:39239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KunOu-0003dv-NG for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 08:10:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KunOp-0003as-CX for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 08:10:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KunOm-0003WJ-Gy for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 08:10:14 -0400 Original-Received: from [199.232.76.173] (port=53958 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KunOm-0003Vu-3G for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 08:10:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41625) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KunOk-0000Vs-Jk for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 08:10:11 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9SCA3r7021717; Tue, 28 Oct 2008 05:10:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9SC57JW020745; Tue, 28 Oct 2008 05:05:07 -0700 X-Loop: don@donarmstrong.com Resent-From: "Alexander V. Lukyanov" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 28 Oct 2008 12:05:07 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1260 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1260-submit@emacsbugs.donarmstrong.com id=B1260.122519508318510 (code B ref 1260); Tue, 28 Oct 2008 12:05:07 +0000 Original-Received: (at 1260) by emacsbugs.donarmstrong.com; 28 Oct 2008 11:58:03 +0000 Original-Received: from star.netis.ru (star.netis.ru [213.187.127.146]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9SBvsCN018503 for <1260@emacsbugs.donarmstrong.com>; Tue, 28 Oct 2008 04:57:56 -0700 Original-Received: from night.yars.free.net (night.yars.free.net [193.233.48.54]) by star.netis.ru (8.14.2/8.14.2) with ESMTP id m9SBvQFp015933; Tue, 28 Oct 2008 14:57:28 +0300 Original-Received: (from lav@localhost) by night.yars.free.net (8.11.6+Sun/8.11.6) id m9SBvdd07728; Tue, 28 Oct 2008 14:57:39 +0300 (MSK) X-Authentication-Warning: night.yars.free.net: lav set sender to lav@netis.ru using -f Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-NETIS-MailScanner-Information: Please contact NETIS Telecom for more information (+7 4852 797797) X-NETIS-MailScanner-ID: m9SBvQFp015933 X-NETIS-MailScanner: Found to be clean X-NETIS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0, required 6, autolearn=disabled) X-NETIS-MailScanner-From: lav@netis.ru X-NETIS-MailScanner-To: 1260@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org, monnier@iro.umontreal.ca X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 28 Oct 2008 08:10:14 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21966 Archived-At: 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.