From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1260: regex.c and RE_FRUGAL Date: Tue, 28 Oct 2008 04:17:45 -0400 Message-ID: References: <20081027155611.GA7082@night.netis.ru> Reply-To: Stefan Monnier , 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 1225182798 4396 80.91.229.12 (28 Oct 2008 08:33:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 08:33:18 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 1260@emacsbugs.donarmstrong.com To: "Alexander V. Lukyanov" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 09:34:20 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 1Kuk1q-0000tY-3o for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 09:34:18 +0100 Original-Received: from localhost ([127.0.0.1]:35863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kuk0j-0004BV-Vt for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 04:33:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kuk0U-0003zh-K2 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:32:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kuk0T-0003yV-Ga for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:32:54 -0400 Original-Received: from [199.232.76.173] (port=52216 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kujxp-0003On-HA for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:30:09 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54439) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kujxp-000414-3u for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:30:09 -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 m9S8U3Wp031768; Tue, 28 Oct 2008 01:30:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9S8P4fX030618; Tue, 28 Oct 2008 01:25:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 28 Oct 2008 08:25:04 +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 submit@emacsbugs.donarmstrong.com id=B.122518188229308 (code B ref -1); Tue, 28 Oct 2008 08:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 28 Oct 2008 08:18:02 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9S8HwiA029302 for ; Tue, 28 Oct 2008 01:18:00 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kujm1-0004sK-FZ for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:17:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kujlw-0004pZ-7X for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:17:56 -0400 Original-Received: from [199.232.76.173] (port=35910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kujlw-0004pT-01 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:17:52 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:60537 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kujlv-0001wS-LR for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 04:17:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAFAGpnBklMCqyo/2dsb2JhbACBdsYcg0+BDQ X-IronPort-AV: E=Sophos;i="4.33,497,1220241600"; d="scan'208";a="28947956" Original-Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 28 Oct 2008 04:17:45 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 37CD78E6F; Tue, 28 Oct 2008 04:17:45 -0400 (EDT) In-Reply-To: <20081027155611.GA7082@night.netis.ru> (Alexander V. Lukyanov's message of "Mon, 27 Oct 2008 18:56:11 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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 04:32:53 -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:21964 Archived-At: > 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. Stefan