From unknown Sat Jun 21 05:19:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language 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 Resent-Date: Thu, 25 Nov 2010 03:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7477 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 7477@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12906544208367 (code B ref -1); Thu, 25 Nov 2010 03:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2010 03:07:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PLSAk-0002Au-I9 for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:06:59 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PLSAi-0002Ag-Hp for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:06:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLSFt-0007jo-IC for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:12:18 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:50749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLSFt-0007jh-G1 for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:12:17 -0500 Received: from [140.186.70.92] (port=55117 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLSFs-0001Wi-7E for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2010 22:12:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLSFr-0007jG-5d for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2010 22:12:16 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:41186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLSFr-0007iv-07 for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2010 22:12:15 -0500 Received: by pzk27 with SMTP id 27so690955pzk.0 for ; Wed, 24 Nov 2010 19:12:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=OM9MxhkRWJ6JyeopmsfszLi3j2M6IMNWxWLaZo8PYa0=; b=SCJFrD0ieISfMgjViIe21e5e7XgGPbn0OdfPhQ8jOWzD1r2eIsuNNBW4LCmP/ovfJL Il9N5AggqM9rv198vrT+5xFeLLwET3YgPYDY0cbk3x9GtF2eRyOA5/Ci3tFSDZbyg0Y+ JKjowT59DMC93Kz3V1LDjxPV50JRYGcSS4hzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=vHP5x1pYhHTn2MJY7zzLrzwU/Vr+ni6ieUXsvmUjFF7gy1KweMV4gvJwXoLNdUsVRu CO/aA/RAk/8PbLF964YjXmj2wn4kvNQOJmKovdCuJV6OzxrHm86anlxRo0RKBM46DEk2 Jn15sNkkRckBLcHdE58MbChnwekvmctnG1Of4= Received: by 10.142.232.1 with SMTP id e1mr148798wfh.187.1290654733534; Wed, 24 Nov 2010 19:12:13 -0800 (PST) Received: from [192.168.1.52] (c-67-183-23-114.hsd1.wa.comcast.net [67.183.23.114]) by mx.google.com with ESMTPS id w42sm291463wfh.15.2010.11.24.19.12.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Nov 2010 19:12:12 -0800 (PST) Message-ID: <4CEDD405.7080706@gmail.com> Date: Wed, 24 Nov 2010 19:12:05 -0800 From: Daniel Colascione User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBC3EBDC5BAD97A40EDB40FD1" 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-Spam-Score: -5.2 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBC3EBDC5BAD97A40EDB40FD1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If a file in c-mode contains constructs that look like C++ templates, c-mode will try to use parts of the template-matching infrastructure that have not been initialized. =3D=3D=3D modified file 'lisp/progmodes/cc-engine.el' --- lisp/progmodes/cc-engine.el 2010-11-15 04:13:16 +0000 +++ lisp/progmodes/cc-engine.el 2010-11-25 03:09:29 +0000 @@ -5889,7 +5889,8 @@ ;; `c-record-type-identifiers' is non-nil. ;; ;; This function might do hidden buffer changes. - (when (looking-at "<") + (when (and c-recognize-<>-arglists + (looking-at "<")) (c-forward-<>-arglist t) (c-forward-syntactic-ws)) --------------enigBC3EBDC5BAD97A40EDB40FD1 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) iEYEARECAAYFAkzt1AkACgkQ17c2LVA10VvBggCfTUa448hxeWCyhsj/M5DrGeWJ TfEAmgPi72G4jAXD4HDEFwhkWBumaOz/ =4WDX -----END PGP SIGNATURE----- --------------enigBC3EBDC5BAD97A40EDB40FD1-- From unknown Sat Jun 21 05:19:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language 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: Mon, 06 Dec 2010 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7477 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Alan Mackenzie Cc: Daniel Colascione , 7477@debbugs.gnu.org Received: via spool by 7477-submit@debbugs.gnu.org id=B7477.129166533611866 (code B ref 7477); Mon, 06 Dec 2010 19:56:02 +0000 Received: (at 7477) by debbugs.gnu.org; 6 Dec 2010 19:55:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PPh9s-00035L-90 for submit@debbugs.gnu.org; Mon, 06 Dec 2010 14:55:36 -0500 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PPh9q-000352-NB for 7477@debbugs.gnu.org; Mon, 06 Dec 2010 14:55:34 -0500 Received: from furball (dhcp128036014234.central.yale.edu [128.36.14.234]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id oB6K1RHi021565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 6 Dec 2010 15:01:27 -0500 Received: by furball (Postfix, from userid 1000) id 7CE58160C98; Mon, 6 Dec 2010 15:01:27 -0500 (EST) From: Chong Yidong References: <4CEDD405.7080706@gmail.com> Date: Mon, 06 Dec 2010 15:01:27 -0500 In-Reply-To: <4CEDD405.7080706@gmail.com> (Daniel Colascione's message of "Wed, 24 Nov 2010 19:12:05 -0800") Message-ID: <87d3pek6w8.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Hi Alan, could you take a look at this patch? Thanks. Daniel Colascione writes: > If a file in c-mode contains constructs that look like C++ templates, > c-mode will try to use parts of the template-matching infrastructure > that have not been initialized. > > === modified file 'lisp/progmodes/cc-engine.el' > --- lisp/progmodes/cc-engine.el 2010-11-15 04:13:16 +0000 > +++ lisp/progmodes/cc-engine.el 2010-11-25 03:09:29 +0000 > @@ -5889,7 +5889,8 @@ > ;; `c-record-type-identifiers' is non-nil. > ;; > ;; This function might do hidden buffer changes. > - (when (looking-at "<") > + (when (and c-recognize-<>-arglists > + (looking-at "<")) > (c-forward-<>-arglist t) > (c-forward-syntactic-ws)) From unknown Sat Jun 21 05:19:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language Resent-From: Alan Mackenzie 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: Thu, 09 Dec 2010 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7477 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Chong Yidong Cc: Daniel Colascione , 7477@debbugs.gnu.org Received: via spool by 7477-submit@debbugs.gnu.org id=B7477.12919329323230 (code B ref 7477); Thu, 09 Dec 2010 22:16:01 +0000 Received: (at 7477) by debbugs.gnu.org; 9 Dec 2010 22:15:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PQolv-0000q2-QR for submit@debbugs.gnu.org; Thu, 09 Dec 2010 17:15:32 -0500 Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PQolt-0000pi-Nd for 7477@debbugs.gnu.org; Thu, 09 Dec 2010 17:15:30 -0500 Received: (qmail 7748 invoked by uid 3782); 9 Dec 2010 22:21:29 -0000 Received: from acm.muc.de (pD9E51688.dip.t-dialin.net [217.229.22.136]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 09 Dec 2010 23:21:28 +0100 Received: (qmail 5065 invoked by uid 1000); 9 Dec 2010 22:35:49 -0000 Date: Thu, 9 Dec 2010 22:35:49 +0000 Message-ID: <20101209223549.GB4636@muc.de> References: <4CEDD405.7080706@gmail.com> <87d3pek6w8.fsf@stupidchicken.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d3pek6w8.fsf@stupidchicken.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Hi, both! On Mon, Dec 06, 2010 at 03:01:27PM -0500, Chong Yidong wrote: > Hi Alan, could you take a look at this patch? Thanks. > > Daniel Colascione writes: > > > If a file in c-mode contains constructs that look like C++ templates, > > c-mode will try to use parts of the template-matching infrastructure > > that have not been initialized. > > > > === modified file 'lisp/progmodes/cc-engine.el' > > --- lisp/progmodes/cc-engine.el 2010-11-15 04:13:16 +0000 > > +++ lisp/progmodes/cc-engine.el 2010-11-25 03:09:29 +0000 > > @@ -5889,7 +5889,8 @@ > > ;; `c-record-type-identifiers' is non-nil. > > ;; > > ;; This function might do hidden buffer changes. > > - (when (looking-at "<") > > + (when (and c-recognize-<>-arglists > > + (looking-at "<")) > > (c-forward-<>-arglist t) > > (c-forward-syntactic-ws)) The patch looks exactly right. I'll commit it sometime soon. Thanks, Daniel! -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Jun 21 05:19:17 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel Colascione Subject: bug#7477: closed (Re: bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language) Message-ID: References: <20101212135017.GA2831@muc.de> <4CEDD405.7080706@gmail.com> X-Gnu-PR-Message: they-closed 7477 X-Gnu-PR-Package: emacs,cc-mode X-Gnu-PR-Keywords: patch Reply-To: 7477@debbugs.gnu.org Date: Sun, 12 Dec 2010 13:30:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1292160604-32139-1" This is a multi-part message in MIME format... ------------=_1292160604-32139-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7477: [PATCH] cc-mode tries to recognize template in non-templated language which was filed against the emacs,cc-mode package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7477@debbugs.gnu.org. --=20 7477: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7477 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1292160604-32139-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7477-done) by debbugs.gnu.org; 12 Dec 2010 13:29:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRlzo-0008Lq-T0 for submit@debbugs.gnu.org; Sun, 12 Dec 2010 08:29:49 -0500 Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRlzn-0008Le-Gb for 7477-done@debbugs.gnu.org; Sun, 12 Dec 2010 08:29:48 -0500 Received: (qmail 16014 invoked by uid 3782); 12 Dec 2010 13:35:54 -0000 Received: from acm.muc.de (pD9E522DA.dip.t-dialin.net [217.229.34.218]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 12 Dec 2010 14:35:52 +0100 Received: (qmail 4931 invoked by uid 1000); 12 Dec 2010 13:50:17 -0000 Date: Sun, 12 Dec 2010 13:50:17 +0000 To: Daniel Colascione Subject: Re: bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language Message-ID: <20101212135017.GA2831@muc.de> References: <4CEDD405.7080706@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CEDD405.7080706@gmail.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7477-done Cc: 7477-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Hi, Daniel. On Wed, Nov 24, 2010 at 07:12:05PM -0800, Daniel Colascione wrote: > If a file in c-mode contains constructs that look like C++ templates, > c-mode will try to use parts of the template-matching infrastructure > that have not been initialized. > > === modified file 'lisp/progmodes/cc-engine.el' > --- lisp/progmodes/cc-engine.el 2010-11-15 04:13:16 +0000 > +++ lisp/progmodes/cc-engine.el 2010-11-25 03:09:29 +0000 > @@ -5889,7 +5889,8 @@ > ;; `c-record-type-identifiers' is non-nil. > ;; > ;; This function might do hidden buffer changes. > - (when (looking-at "<") > + (when (and c-recognize-<>-arglists > + (looking-at "<")) > (c-forward-<>-arglist t) > (c-forward-syntactic-ws)) Thanks again for the patch! I've committed it. -- Alan Mackenzie (Nuremberg, Germany). ------------=_1292160604-32139-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Nov 2010 03:07:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PLSAk-0002Au-I9 for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:06:59 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PLSAi-0002Ag-Hp for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:06:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLSFt-0007jo-IC for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:12:18 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:50749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLSFt-0007jh-G1 for submit@debbugs.gnu.org; Wed, 24 Nov 2010 22:12:17 -0500 Received: from [140.186.70.92] (port=55117 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLSFs-0001Wi-7E for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2010 22:12:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLSFr-0007jG-5d for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2010 22:12:16 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:41186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLSFr-0007iv-07 for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2010 22:12:15 -0500 Received: by pzk27 with SMTP id 27so690955pzk.0 for ; Wed, 24 Nov 2010 19:12:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=OM9MxhkRWJ6JyeopmsfszLi3j2M6IMNWxWLaZo8PYa0=; b=SCJFrD0ieISfMgjViIe21e5e7XgGPbn0OdfPhQ8jOWzD1r2eIsuNNBW4LCmP/ovfJL Il9N5AggqM9rv198vrT+5xFeLLwET3YgPYDY0cbk3x9GtF2eRyOA5/Ci3tFSDZbyg0Y+ JKjowT59DMC93Kz3V1LDjxPV50JRYGcSS4hzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=vHP5x1pYhHTn2MJY7zzLrzwU/Vr+ni6ieUXsvmUjFF7gy1KweMV4gvJwXoLNdUsVRu CO/aA/RAk/8PbLF964YjXmj2wn4kvNQOJmKovdCuJV6OzxrHm86anlxRo0RKBM46DEk2 Jn15sNkkRckBLcHdE58MbChnwekvmctnG1Of4= Received: by 10.142.232.1 with SMTP id e1mr148798wfh.187.1290654733534; Wed, 24 Nov 2010 19:12:13 -0800 (PST) Received: from [192.168.1.52] (c-67-183-23-114.hsd1.wa.comcast.net [67.183.23.114]) by mx.google.com with ESMTPS id w42sm291463wfh.15.2010.11.24.19.12.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Nov 2010 19:12:12 -0800 (PST) Message-ID: <4CEDD405.7080706@gmail.com> Date: Wed, 24 Nov 2010 19:12:05 -0800 From: Daniel Colascione User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: [PATCH] cc-mode tries to recognize template in non-templated language X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBC3EBDC5BAD97A40EDB40FD1" 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-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBC3EBDC5BAD97A40EDB40FD1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If a file in c-mode contains constructs that look like C++ templates, c-mode will try to use parts of the template-matching infrastructure that have not been initialized. =3D=3D=3D modified file 'lisp/progmodes/cc-engine.el' --- lisp/progmodes/cc-engine.el 2010-11-15 04:13:16 +0000 +++ lisp/progmodes/cc-engine.el 2010-11-25 03:09:29 +0000 @@ -5889,7 +5889,8 @@ ;; `c-record-type-identifiers' is non-nil. ;; ;; This function might do hidden buffer changes. - (when (looking-at "<") + (when (and c-recognize-<>-arglists + (looking-at "<")) (c-forward-<>-arglist t) (c-forward-syntactic-ws)) --------------enigBC3EBDC5BAD97A40EDB40FD1 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) iEYEARECAAYFAkzt1AkACgkQ17c2LVA10VvBggCfTUa448hxeWCyhsj/M5DrGeWJ TfEAmgPi72G4jAXD4HDEFwhkWBumaOz/ =4WDX -----END PGP SIGNATURE----- --------------enigBC3EBDC5BAD97A40EDB40FD1-- ------------=_1292160604-32139-1--