From unknown Tue Jun 17 20:19:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5422 <5422@debbugs.gnu.org> To: bug#5422 <5422@debbugs.gnu.org> Subject: Status: syntax highlighting bug Reply-To: bug#5422 <5422@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:19:24 +0000 retitle 5422 syntax highlighting bug reassign 5422 emacs,cc-mode submitter 5422 blew@astro.uni.torun.pl severity 5422 normal tag 5422 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 08:17:55 2010 Received: (at submit) by debbugs.gnu.org; 19 Jan 2010 13:17:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXDxz-00016N-9A for submit@debbugs.gnu.org; Tue, 19 Jan 2010 08:17:55 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXD7G-0008Qw-MB for submit@debbugs.gnu.org; Tue, 19 Jan 2010 07:23:27 -0500 Received: from mail.gnu.org ([199.232.76.166]:59438 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXD7B-0006RD-DY for submit@debbugs.gnu.org; Tue, 19 Jan 2010 07:23:21 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NXD5Q-0002bI-5Q for submit@debbugs.gnu.org; Tue, 19 Jan 2010 07:21:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO, UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:33353) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXD5P-0002bC-Mz for submit@debbugs.gnu.org; Tue, 19 Jan 2010 07:21:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXD5P-0006QX-36 for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 07:21:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXD5J-0006Op-Tn for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 07:21:30 -0500 Received: from [199.232.76.173] (port=48692 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXD5J-0006Oh-Ot for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 07:21:25 -0500 Received: from smail.uci.uni.torun.pl ([158.75.1.70]:59960 helo=smail.uci.umk.pl) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXD5J-0002aY-BE for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 07:21:25 -0500 Received: from localhost (mul.uci.umk.pl [158.75.1.120]) by smail.uci.umk.pl (Postfix) with ESMTP id 145518F552 for ; Tue, 19 Jan 2010 13:21:21 +0100 (CET) X-Virus-Scanned: amavisd-new at smail.uci.umk.pl Received: from smail.uci.umk.pl ([158.75.1.70]) by localhost (smail.uci.umk.pl [158.75.1.120]) (amavisd-new, port 10024) with ESMTP id LKOz8-sHpt0u for ; Tue, 19 Jan 2010 13:21:19 +0100 (CET) Received: from szajcomp.localnet (ape.astro.uni.torun.pl [158.75.6.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: blew) by smail.uci.umk.pl (Postfix) with ESMTP id 358678F551 for ; Tue, 19 Jan 2010 13:21:19 +0100 (CET) From: Bartosz Lew Organization: Nicolaus Copernicus University To: bug-gnu-emacs@gnu.org Subject: syntax highlighting bug Date: Tue, 19 Jan 2010 13:21:30 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.29.5-191.fc11.i686.PAE; KDE/4.3.2; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201001191321.30279.blew@astro.uni.torun.pl> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 19 Jan 2010 08:17:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: blew@astro.uni.torun.pl 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.9 (-----) Hi, This is just to report on some minor C++ syntax highlighting problem in emacs. when I write: if (a < b->c()) { do this; } else { do that; } two two things go wrong: 1) parentheses matching doesn't work correctly emacs matches the closing bracket of the if condition with the "<" - "smaller than" sign in the if condition. 2) the automatic positioning of any code written below gets confused due to this parentheses matching problem. I use: GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6) of 2009-09-29 on x86-7.fedora.phx.redhat.com Hope this is of any use. Cheers, Bart From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 14:23:19 2010 Received: (at control) by debbugs.gnu.org; 19 Jan 2010 19:23:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXJfb-0005Yt-Ck for submit@debbugs.gnu.org; Tue, 19 Jan 2010 14:23:19 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXJfY-0005Ym-Ua for control@debbugs.gnu.org; Tue, 19 Jan 2010 14:23:17 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXJfU-0007gf-N8; Tue, 19 Jan 2010 14:23:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19286.1696.696215.14506@gargle.gargle.HOWL> Date: Tue, 19 Jan 2010 14:23:12 -0500 From: Glenn Morris To: control Subject: control X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: control 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.0 (-----) tags 4940 patch reassign 5388 emacs,cc-mode reassign 5303 emacs,w32 retitle 5386 gtk daemon close display hang reassign 5425 notemacs severity 5424 wishlist reassign 5422 emacs,cc-mode reassign 5411 emacs,cc-mode reassign 5404 emacs,ns From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 17:00:47 2011 Received: (at 5422) by debbugs.gnu.org; 3 Oct 2011 21:00:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RApd1-0006WD-36 for submit@debbugs.gnu.org; Mon, 03 Oct 2011 17:00:47 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RApcx-0006W4-Uk for 5422@debbugs.gnu.org; Mon, 03 Oct 2011 17:00:45 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RApbZ-00080w-FO; Mon, 03 Oct 2011 16:59:17 -0400 From: Glenn Morris To: blew@astro.uni.torun.pl Subject: Re: bug#5422: syntax highlighting bug References: <201001191321.30279.blew@astro.uni.torun.pl> X-Spook: halcon gamma credit card Saddam Hussein UOP class X-Ran: pno52tH>rfUlILKmi7cH.'s\#iFs/CSvnvYG]>r;=M[RbD'SHIkh?{!)<"waJpAGoja&[4 X-Hue: magenta X-Attribution: GM Date: Mon, 03 Oct 2011 16:59:17 -0400 In-Reply-To: <201001191321.30279.blew@astro.uni.torun.pl> (Bartosz Lew's message of "Tue, 19 Jan 2010 13:21:30 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 5422 Cc: 5422@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: -5.3 (-----) Bartosz Lew wrote: > This is just to report on some minor C++ syntax highlighting problem > in emacs. > > when I write: > > if (a < b->c()) { do this; } else { do that; } > > two two things go wrong: > 1) parentheses matching doesn't work correctly > emacs matches the closing bracket of the if condition with the > "<" - "smaller > than" sign in the if condition. > > 2) the automatic positioning of any code written below gets confused due to > this parentheses matching problem. > > I use: > > GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6) > of 2009-09-29 on x86-7.fedora.phx.redhat.com I am unable to reproduce this in any version of Emacs, including 23.1. If you still see the problem in the latest release, please send a complete example starting from emacs -Q. (There seem to have been some fixes in this area, eg http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4847 ) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 17:29:46 2011 Received: (at 5422-done) by debbugs.gnu.org; 3 Oct 2011 21:29:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAq53-0007CF-88 for submit@debbugs.gnu.org; Mon, 03 Oct 2011 17:29:45 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAq4F-0007AX-0X for 5422-done@debbugs.gnu.org; Mon, 03 Oct 2011 17:28:56 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RAq2r-0002L5-9E for 5422-done@debbugs.gnu.org; Mon, 03 Oct 2011 17:27:29 -0400 Resent-Message-ID: <20106.10433.203083.128747@fencepost.gnu.org> Resent-Date: Mon, 3 Oct 2011 17:27:29 -0400 Resent-From: Glenn Morris Resent-To: 5422-done@debbugs.gnu.org X-Debbugs-No-Ack: yes Bcc: rgm@gnu.org 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 autolearn=ham version=3.3.1 X-Virus-Scanned: amavisd-new at smail.uci.umk.pl Organization: Nicolaus Copernicus University References: <201001191321.30279.blew@astro.uni.torun.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201110032324.29979.blew@doktorant.umk.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 158.75.1.70 Date: Mon, 3 Oct 2011 23:24:29 +0200 From: Bartosz Lew To: Glenn Morris Subject: Re: bug#5422: syntax highlighting bug X-Bogosity: no, spamicity=0.053518, v1.2.1 User-Agent: KMail/1.13.7 (Linux/2.6.39.2; KDE/4.6.5; x86_64; ; ) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 5422-done X-Mailman-Approved-At: Mon, 03 Oct 2011 17:29:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: blew@astro.uni.torun.pl 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 Resent-Date: Mon, 03 Oct 2011 17:29:45 -0400 X-Spam-Score: -6.6 (------) Thanks for the email. Well, I don't see this behaviour now either but now I'm working on Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4) of 2011-05-23 on x86-12.phx2.fedoraproject.org installed on a new computer. I sent the bug report one laptop ago and that computer has crushed, so I cannot easily go back to that configuration without system reinstall. Anyway, everything seems fine with my current version. Thanks again. Bartek. On Monday 03 of October 2011 22:59:17 you wrote: > Bartosz Lew wrote: > > This is just to report on some minor C++ syntax highlighting problem > > in emacs. > > > > when I write: > > if (a < b->c()) { do this; } else { do that; } > > > > two two things go wrong: > > 1) parentheses matching doesn't work correctly > > > > emacs matches the closing bracket of the if condition with the > > > > "<" - "smaller > than" sign in the if condition. > > > > 2) the automatic positioning of any code written below gets confused due > > to this parentheses matching problem. > > > > I use: > > GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6) > > of 2009-09-29 on x86-7.fedora.phx.redhat.com > > I am unable to reproduce this in any version of Emacs, including 23.1. > If you still see the problem in the latest release, please send a > complete example starting from emacs -Q. > > (There seem to have been some fixes in this area, eg > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4847 ) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 01:34:45 2011 Received: (at 5422) by debbugs.gnu.org; 4 Oct 2011 05:34:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAxeO-0002tL-IE for submit@debbugs.gnu.org; Tue, 04 Oct 2011 01:34:45 -0400 Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAxeL-0002tC-VX for 5422@debbugs.gnu.org; Tue, 04 Oct 2011 01:34:43 -0400 Received: from iph1.telenor.se (iph1.telenor.se [195.54.127.132]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 2CE59EADBE for <5422@debbugs.gnu.org>; Tue, 4 Oct 2011 07:33:11 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArM1AGyaik5V4S3JPGdsb2JhbABCpxZrGQEBAQE3MoFTAQEEAScTHCMFCwsOCi4tDAoUBhOHewIEuAeGQGEEmQaMHQ X-IronPort-AV: E=Sophos;i="4.68,483,1312149600"; d="scan'208";a="489468352" Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph1.telenor.se with ESMTP; 04 Oct 2011 07:33:01 +0200 Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id 554B17FA058; Tue, 4 Oct 2011 07:33:01 +0200 (CEST) References: <201001191321.30279.blew@astro.uni.torun.pl> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8L1) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <9AFE9713-A3D7-49B9-BF21-920F91C067EF@swipnet.se> X-Mailer: iPhone Mail (8L1) From: =?utf-8?Q?Jan_Dj=C3=A4rv?= Subject: Re: bug#5422: syntax highlighting bug Date: Tue, 4 Oct 2011 07:32:57 +0200 To: Glenn Morris X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 5422 Cc: "blew@astro.uni.torun.pl" , "5422@debbugs.gnu.org" <5422@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: -1.5 (-) Hello. 3 okt 2011 kl. 22:59 skrev Glenn Morris : > Bartosz Lew wrote: >=20 >> This is just to report on some minor C++ syntax highlighting problem >> in emacs. >>=20 >> when I write: >>=20 >> if (a < b->c()) { do this; } else { do that; } >>=20 >> two two things go wrong: >> 1) parentheses matching doesn't work correctly=20 >> emacs matches the closing bracket of the if condition with the >> "<" - "smaller > than" sign in the if condition. >>=20 >> 2) the automatic positioning of any code written below gets confused due t= o=20 >> this parentheses matching problem. >>=20 >> I use: >>=20 >> GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6) >> of 2009-09-29 on x86-7.fedora.phx.redhat.com >=20 > I am unable to reproduce this in any version of Emacs, including 23.1. > If you still see the problem in the latest release, please send a > complete example starting from emacs -Q. >=20 > (There seem to have been some fixes in this area, eg > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4847 ) >=20 This is one of the elusive cc-mode bugs that isn't easy to reproduce.=20 AFAIK it depends on some cache in cc-mode getting out of sync. So you are mo= re likely to see it on a large file you have edited in several places. It mi= ght even depend on what kind of editing you have done. I think this is a sym= ptom of some underlying bug. I see this in 23.3 and the trunk at least 2-3 times per day when editing cod= e with a lot of templates. The < and > are mistaken for start/end brace or p= arentesis. Save the file, kill the buffer, and reopen the file usually fixes it. Jan D.= From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 09:13:12 2011 Received: (at 5422) by debbugs.gnu.org; 4 Oct 2011 13:13:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RB4o3-0005lg-I8 for submit@debbugs.gnu.org; Tue, 04 Oct 2011 09:13:12 -0400 Received: from md5i.com ([75.151.244.229] helo=maru.md5i.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RB4o0-0005lY-Sf for 5422@debbugs.gnu.org; Tue, 04 Oct 2011 09:13:10 -0400 Received: from md5i by maru.md5i.com with local (Exim 4.76) (envelope-from ) id 1RB4mS-000621-Pw; Tue, 04 Oct 2011 09:11:32 -0400 From: Michael Welsh Duggan To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#5422: syntax highlighting bug References: <201001191321.30279.blew@astro.uni.torun.pl> <9AFE9713-A3D7-49B9-BF21-920F91C067EF@swipnet.se> Date: Tue, 04 Oct 2011 09:11:32 -0400 In-Reply-To: <9AFE9713-A3D7-49B9-BF21-920F91C067EF@swipnet.se> ("Jan =?iso-8859-1?Q?Dj=E4rv=22's?= message of "Tue, 4 Oct 2011 07:32:57 +0200") Message-ID: <87y5x07vgb.fsf@maru.md5i.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: 5422 Cc: "blew@astro.uni.torun.pl" , Glenn Morris , "5422@debbugs.gnu.org" <5422@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: -3.2 (---) Jan Dj=E4rv writes: > Hello. > > > 3 okt 2011 kl. 22:59 skrev Glenn Morris : > >> Bartosz Lew wrote: >>=20 >>> This is just to report on some minor C++ syntax highlighting problem >>> in emacs. [...] >>=20 >> I am unable to reproduce this in any version of Emacs, including 23.1. >> If you still see the problem in the latest release, please send a >> complete example starting from emacs -Q. >>=20 >> (There seem to have been some fixes in this area, eg >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4847 ) >>=20 > > This is one of the elusive cc-mode bugs that isn't easy to reproduce.=20 > > AFAIK it depends on some cache in cc-mode getting out of sync. So you > are more likely to see it on a large file you have edited in several > places. It might even depend on what kind of editing you have done. I > think this is a symptom of some underlying bug. > > I see this in 23.3 and the trunk at least 2-3 times per day when > editing code with a lot of templates. The < and > are mistaken for > start/end brace or parentesis. > > Save the file, kill the buffer, and reopen the file usually fixes it. I have been having similar problems, and am really hoping this gets fixed in the pretest. I have an open bug (9560) which contains information which hopefully can reproduce at least one of these cache inconsistency errors. --=20 Michael Welsh Duggan (md5i@md5i.com) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 11:42:51 2011 Received: (at 5422) by debbugs.gnu.org; 6 Oct 2011 15:42:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBq5y-0004NE-Fb for submit@debbugs.gnu.org; Thu, 06 Oct 2011 11:42:50 -0400 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 1RBq5v-0004N4-2j for 5422@debbugs.gnu.org; Thu, 06 Oct 2011 11:42:48 -0400 Received: (qmail 94506 invoked by uid 3782); 6 Oct 2011 15:42:37 -0000 Received: from acm.muc.de (pD9556B61.dip.t-dialin.net [217.85.107.97]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 06 Oct 2011 17:42:35 +0200 Received: (qmail 5402 invoked by uid 1000); 6 Oct 2011 15:38:14 -0000 Date: Thu, 6 Oct 2011 15:38:14 +0000 To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#5422: syntax highlighting bug Message-ID: <20111006153814.GB3284@acm.acm> References: <201001191321.30279.blew@astro.uni.torun.pl> <9AFE9713-A3D7-49B9-BF21-920F91C067EF@swipnet.se> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9AFE9713-A3D7-49B9-BF21-920F91C067EF@swipnet.se> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 5422 Cc: "blew@astro.uni.torun.pl" , Glenn Morris , "5422@debbugs.gnu.org" <5422@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.9 (--) On Tue, Oct 04, 2011 at 07:32:57AM +0200, Jan Djärv wrote: > Hello. > 3 okt 2011 kl. 22:59 skrev Glenn Morris : > > Bartosz Lew wrote: > >> This is just to report on some minor C++ syntax highlighting problem > >> in emacs. > >> when I write: > >> if (a < b->c()) { do this; } else { do that; } > >> two two things go wrong: > >> 1) parentheses matching doesn't work correctly > >> emacs matches the closing bracket of the if condition with the > >> "<" - "smaller > than" sign in the if condition. > >> 2) the automatic positioning of any code written below gets confused due to > >> this parentheses matching problem. > >> I use: > >> GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6) > >> of 2009-09-29 on x86-7.fedora.phx.redhat.com > > I am unable to reproduce this in any version of Emacs, including 23.1. > > If you still see the problem in the latest release, please send a > > complete example starting from emacs -Q. > > (There seem to have been some fixes in this area, eg > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4847 ) > This is one of the elusive cc-mode bugs that isn't easy to reproduce. > AFAIK it depends on some cache in cc-mode getting out of sync. So you > are more likely to see it on a large file you have edited in several > places. It might even depend on what kind of editing you have done. I > think this is a symptom of some underlying bug. > I see this in 23.3 and the trunk at least 2-3 times per day when > editing code with a lot of templates. The < and > are mistaken for > start/end brace or parentesis. The < and > are marked (with syntax-table text properties) as parens when they "look like" template brackets, as they sort of do in the OP's code. Many moons ago, < and > got marked as parens individually. Now they are only marked in pairs. This has quite likely fixed the OP's bug. > Save the file, kill the buffer, and reopen the file usually fixes it. Yes. But that "shouldn't" be necessary any more. > Jan D. -- Alan Mackenzie (Nuremberg, Germany). From unknown Tue Jun 17 20:19:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Nov 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator