From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#7227: re-search-forward goes infinite loop with dash inside [] Date: Sat, 16 Oct 2010 13:39:08 +0200 Message-ID: <4CB98EDC.6030501@easy-emacs.de> References: <87sk06pkfi.fsf@picasso.cante.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287229356 23363 80.91.229.12 (16 Oct 2010 11:42:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Oct 2010 11:42:36 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 16 13:42:35 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 1P759k-0003Ft-Ju for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Oct 2010 13:42:33 +0200 Original-Received: from localhost ([127.0.0.1]:58052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P759j-0004ks-Us for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Oct 2010 07:42:31 -0400 Original-Received: from [140.186.70.92] (port=38363 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P759c-0004k7-9k for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:42:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P759b-0001ql-7c for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:42:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P759b-0001qh-5L for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:42:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P754Q-0007bc-Fq; Sat, 16 Oct 2010 07:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= 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:37:02 +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 submit@debbugs.gnu.org id=B.128722898429224 (code B ref -1); Sat, 16 Oct 2010 11:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2010 11:36:24 +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 1P753o-0007bJ-76 for submit@debbugs.gnu.org; Sat, 16 Oct 2010 07:36:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P753m-0007bE-1O for submit@debbugs.gnu.org; Sat, 16 Oct 2010 07:36:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P757G-000194-TE for submit@debbugs.gnu.org; Sat, 16 Oct 2010 07:39:59 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:60389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P757G-00018z-RA for submit@debbugs.gnu.org; Sat, 16 Oct 2010 07:39:58 -0400 Original-Received: from [140.186.70.92] (port=36727 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P757F-0004Fk-KQ for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:39:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P757E-00018Y-5h for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:39:57 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:58166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P757D-00018L-RK for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2010 07:39:56 -0400 Original-Received: from noname.home (brln-4dbc7a5b.pool.mediaWays.net [77.188.122.91]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MZfLS-1POBUa0AH8-00L3lQ; Sat, 16 Oct 2010 13:39:54 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: <87sk06pkfi.fsf@picasso.cante.net> X-Provags-ID: V02:K0:TbZfjQO5Rg8OTabw1C6LuzN6/CRNqFUlyMo3xKym63q 7wdiUhxNewFncD3JdgO2Qi5BH/cSlq6GsLl2jA5ScIZWQVvjhz gBywV0Zkkx8j9KIIUP0+HMfgrwxjpRQEq3JQF/Nuv36no+WuIr 6+y9v63XeieVarNl+/1861MUUavbrcyuTsKhpUjbYk7jmX5q+o KJYZhdBBLgLmO7fgsiI2czz7e9in5Cs8bVoYyIhxgo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 16 Oct 2010 07:37:02 -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:40921 Archived-At: Am 16.10.2010 11:16, schrieb Jari Aalto: > Package: emacs Version: 23.2+1-4 Severity: normal > > 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].*\\)") ========== > > If the dash is taken awy from the "[a-z0-9.-]", this code does not > cause infinite loop: > > (re-search-forward "^\\([a-z0-9.]+\\)+[ \t]+\\([0-9]+\\) > +\\([a-z].*\\)") > > TEST ROWS FOR THE REGEXPS: > > row-one 1234 rest of line > > row2 1234 rest of line > > TEST SETUP > > emacs -Q --no-site-file into buffer> statements> > > -- System Information Debian Release: squeeze/sid APT Prefers > testing APT policy: (990, testing) (500, unstable) (1, experimental) > Architecture: amd64 Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri > Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux Locale: LANG=en_DK.UTF-8 > > -- Versions of packages `emacs depends on'. Depends: emacs23 > 23.2+1-4 GNU Emacs is the extensible self-documenting > emacs23-lucid 23.2+1-4 GNU Emacs is the extensible > self-documenting emacs23-nox 23.2+1-4 GNU Emacs is the > extensible self-documenting > > > > Hi, can't reproduce this with GNU Emacs 23.1.1 (i586-suse-linux-gnu, GTK+ Version 2.20.1) of 2010-07-05 in scratch buffer I get an error immediatly: Debugger entered--Lisp error: (search-failed "^\\([a-z0-9.-]+\\)+[ ]+\\([0-9]+\\) +\\([a-z].*\\)") re-search-forward("^\\([a-z0-9.-]+\\)+[ ]+\\([0-9]+\\) +\\([a-z].*\\)") eval((re-search-forward "^\\([a-z0-9.-]+\\)+[ ]+\\([0-9]+\\) +\\([a-z].*\\)")) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) Thanks for tiny-tools BTW. Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components https://code.launchpad.net/s-x-emacs-werkstatt/