From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#7595: Infinite loop in cc-mode, or the coming of autumn Date: Mon, 07 Mar 2011 23:25:24 -0800 Message-ID: <4D75D9E4.7030802@gmail.com> References: <4D000FF1.10307@gmail.com> <20101216213915.GA3442__49696.8405823738$1292537376$gmane$org@muc.de> <4D45F34F.8030601@gmail.com> <87tygo3c4q.fsf__35531.9466595121$1296517007$gmane$org@stupidchicken.com> <4D741A35.9030501@gmail.com> <20110307195441.GA2488@muc.de> <87hbben15a.fsf@stupidchicken.com> <20110307210225.GC2488@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCBD0CE65F7D80ED4C5131241" X-Trace: dough.gmane.org 1299569898 11906 80.91.229.12 (8 Mar 2011 07:38:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 07:38:18 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Chong Yidong , bug-gnu-emacs@gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 08 08:38:13 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 1PwrUK-0006Xh-Ho for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 08:38:13 +0100 Original-Received: from localhost ([127.0.0.1]:57874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwrUB-0006ch-S5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 02:37:39 -0500 Original-Received: from [140.186.70.92] (port=57147 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwrTZ-0006PY-Rp for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2011 02:37:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwrTT-0004iW-Av for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2011 02:36:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwrTR-0004iI-4R; Tue, 08 Mar 2011 02:36:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PwrIw-0002uC-CO; Tue, 08 Mar 2011 02:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione 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: Tue, 08 Mar 2011 07:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7595 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.129956914211144 (code B ref -1); Tue, 08 Mar 2011 07:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Mar 2011 07:25:42 +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 1PwrIc-0002tg-48 for submit@debbugs.gnu.org; Tue, 08 Mar 2011 02:25:42 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PwrIa-0002tV-LH for submit@debbugs.gnu.org; Tue, 08 Mar 2011 02:25:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwrIU-0002u7-I7 for submit@debbugs.gnu.org; Tue, 08 Mar 2011 02:25:35 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:45174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwrIU-0002u1-Ey for submit@debbugs.gnu.org; Tue, 08 Mar 2011 02:25:34 -0500 Original-Received: from [140.186.70.92] (port=45103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwrIT-0003IQ-1O for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2011 02:25:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwrIR-0002tP-Ni for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2011 02:25:32 -0500 Original-Received: from mail-gw0-f51.google.com ([74.125.83.51]:56142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwrIR-0002tD-Kr; Tue, 08 Mar 2011 02:25:31 -0500 Original-Received: by gwb15 with SMTP id 15so2532114gwb.38 for ; Mon, 07 Mar 2011 23:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; bh=V8/UeH5os8URGywgLebUVJ5bx7GjHNNyQMVFeGBA+Ks=; b=Qk/+kS64g33UCac4DtCX3YthvgLZUK/EbMpfbtE784KLJ+bu1kvSC8mj4qDYc7hGnE 73d+z0o1q/OLOIOQY2EvQO08bvWvwDpIVLSrep9cJH2neFBBB+hzkrwQjLGudso85Qzy Z3FBe0sHWfwtEyrpsoTOr3YJapxcPNL5GRyIg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=lul8qAyQ33HMdcvOh+v2s3cKS4rpqLjwj56Ob6chDZK5EMX04yfHfd8x6D3NQnXS0k KBTAy4Pa3RKi1Bw+NhvzwCmZaZqEsBDFaVNm+4H/EsOmwWoFZOD89m/Kjz+wDkNjA9OK /etVwdykCbf8hja6IrmtZCbttmI0IwXSLtnvY= Original-Received: by 10.150.163.20 with SMTP id l20mr5664439ybe.249.1299569130209; Mon, 07 Mar 2011 23:25:30 -0800 (PST) Original-Received: from [192.168.1.2] (c-67-183-23-114.hsd1.wa.comcast.net [67.183.23.114]) by mx.google.com with ESMTPS id v13sm2318885ybk.6.2011.03.07.23.25.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Mar 2011 23:25:29 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <20110307210225.GC2488@muc.de> X-Enigmail-Version: 1.1.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 08 Mar 2011 02:26: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:44779 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCBD0CE65F7D80ED4C5131241 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Alan, Yidong, On 3/7/11 1:02 PM, Alan Mackenzie wrote: > I think the problem is in the Emacs 24 trunk, too. >=20 >> So, it looks like my fault, and I'm not sure how it happened (maybe du= e >> to the line number mismatch). Sorry. >=20 >> With this corrected in the branch, the new problem goes away. I will >> make a second release candidate with this fix. >=20 > Excellent! Thanks for finding it. >=20 Thanks for looking into this: by the time I get a chance to relax for the day and check my email, it's already fixed. :-) It never even occurred to me that the patch wasn't properly applied, or that I should check against the cc-mode CVS; I usually hew closer to the Emacs trunk cc-mode. I've never seen patch botch a modification like this before. Out of curiosity, I rolled my branch back to the state it was in when I applied your patch manually, and it worked fine (albeit with frighteningly mismatched line numbers). I wonder how many other silently misapplied changes are lurking in the code. Maybe we should start including more context in our diffs? Alan, by the way: have you considered keeping cc-mode HEAD in a dvcs? It'd make synchronizing the various codebases easier, and it'd be possible to simply issue pull requests instead of emailing patches or manually making multiple checkins. Thanks, Daniel Colascione --------------enigCBD0CE65F7D80ED4C5131241 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAk112eYACgkQ17c2LVA10Vs2XACfb7ZipPP4GpFESwY/vc7n//aR AH8AniPpv0R4lXDJCTXWsoF4amgBjZci =yZSh -----END PGP SIGNATURE----- --------------enigCBD0CE65F7D80ED4C5131241--