From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#7722: 24.0.50; Finding this C++ header file drops emacs into a infinite loop Date: Fri, 11 Feb 2011 20:25:06 -0500 Message-ID: <8739nu82od.fsf@stupidchicken.com> References: <87fwtnbmmj.fsf@member.fsf.org> <87hbd0y8sb.fsf@stupidchicken.com> <20110204222207.GA2424@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297474617 31378 80.91.229.12 (12 Feb 2011 01:36:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 01:36:57 +0000 (UTC) Cc: 7722@debbugs.gnu.org, Tassilo Horn To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 12 02:36:53 2011 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 1Po4Pq-0005bG-Ur for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Feb 2011 02:36:51 +0100 Original-Received: from localhost ([127.0.0.1]:55546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Po4Pq-0001b9-Bv for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Feb 2011 20:36:50 -0500 Original-Received: from [140.186.70.92] (port=33814 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Po4Pa-0001Uq-RR for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2011 20:36:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Po4PZ-00053U-Qv for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2011 20:36:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Po4PS-00051g-NP; Fri, 11 Feb 2011 20:36:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Po46g-0006m7-4L; Fri, 11 Feb 2011 20:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 12 Feb 2011 01:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7722 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 7722-submit@debbugs.gnu.org id=B7722.129747338025980 (code B ref 7722); Sat, 12 Feb 2011 01:17:02 +0000 Original-Received: (at 7722) by debbugs.gnu.org; 12 Feb 2011 01:16:20 +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 1Po45z-0006kz-IO for submit@debbugs.gnu.org; Fri, 11 Feb 2011 20:16:19 -0500 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Po45y-0006ko-9q for 7722@debbugs.gnu.org; Fri, 11 Feb 2011 20:16:18 -0500 Original-Received: from furball (dhcp128036014062.central.yale.edu [128.36.14.62]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p1C1P8qr017085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 11 Feb 2011 20:25:08 -0500 Original-Received: by furball (Postfix, from userid 1000) id BCB2016055E; Fri, 11 Feb 2011 20:25:06 -0500 (EST) In-Reply-To: <20110204222207.GA2424@muc.de> (Alan Mackenzie's message of "Fri, 4 Feb 2011 22:22:07 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 11 Feb 2011 20:17:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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:44053 Archived-At: Alan Mackenzie writes: > It was indeed such a loop. It was caused by a 500n jit-lock boundary > falling in the middle of a template construct, hence the "necessity" of > all the whitespace to reproduce the failure. > > Here's a putative patch for the problem. I've refactored the offending > function by replacing obscenely nested `if'-forms with a simple `cond'. > I've also removed some narrowing (to the 500n limit) which should help > jit-lock, hopefully without hurting too much elsewhere. > > Tassilo, would you try out the patch, please, and let me know how it > goes. Thanks! Thanks. This patch doesn't apply cleanly to the emacs-23 branch. Do you think we could apply it to the trunk, and just use the workaround in the branch (some of these logic changes don't look obvious to me)?