From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#7227: re-search-forward goes infinite loop with dash inside [] Date: Sat, 16 Oct 2010 13:27:36 +0200 Message-ID: References: <87sk06pkfi.fsf@picasso.cante.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287229352 23350 80.91.229.12 (16 Oct 2010 11:42:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Oct 2010 11:42:32 +0000 (UTC) Cc: 7227@debbugs.gnu.org To: Jari Aalto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 16 13:42:31 2010 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.69) (envelope-from ) id 1P759i-0003ES-GL for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Oct 2010 13:42:30 +0200 Original-Received: from localhost ([127.0.0.1]:58039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P759h-0004kD-O6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Oct 2010 07:42:29 -0400 Original-Received: from [140.186.70.92] (port=38352 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P759b-0004k6-Du for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:42:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P759a-0001qa-Hv for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:42:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P759a-0001qW-Fm for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:42:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P74sn-0006r8-L5; Sat, 16 Oct 2010 07:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Oct 2010 11:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7227 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7227-submit@debbugs.gnu.org id=B7227.128722825126338 (code B ref 7227); Sat, 16 Oct 2010 11:25:01 +0000 Original-Received: (at 7227) by debbugs.gnu.org; 16 Oct 2010 11:24:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P74ry-0006ql-R7 for submit@debbugs.gnu.org; Sat, 16 Oct 2010 07:24:11 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P74rx-0006qe-5N for 7227@debbugs.gnu.org; Sat, 16 Oct 2010 07:24:09 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id E35F91C00500; Sat, 16 Oct 2010 13:27:37 +0200 (CEST) Original-Received: from igel.home (ppp-93-104-129-199.dynamic.mnet-online.de [93.104.129.199]) by mail.mnet-online.de (Postfix) with ESMTP id B50C31C00207; Sat, 16 Oct 2010 13:27:37 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 4FC6DCA2A0; Sat, 16 Oct 2010 13:27:37 +0200 (CEST) X-Yow: --Hello, POLICE? I"ve got ABBOTT & COSTELLO here on suspicion of HIGHWAY ROBBERY!! In-Reply-To: <87sk06pkfi.fsf@picasso.cante.net> (Jari Aalto's message of "Sat, 16 Oct 2010 12:16:01 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 16 Oct 2010 07:25:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:40920 Archived-At: Jari Aalto writes: > Executing the following code causes Emacs to go into infinite loop. > Simply run it behind the last paren with C-x C-e > > (re-search-forward "^\\([a-z0-9.-]+\\)+[ \t]+\\([0-9]+\\) +\\([a-z].*\\)") Works fine here. Note that nested repetitions like \([...]+\)+ are bad in any case. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."