From unknown Thu Aug 14 21:43:58 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#4984 <4984@debbugs.gnu.org> To: bug#4984 <4984@debbugs.gnu.org> Subject: Status: c++ parantheses matching vs templates Reply-To: bug#4984 <4984@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:43:58 +0000 retitle 4984 c++ parantheses matching vs templates reassign 4984 emacs,cc-mode submitter 4984 Tudor Achim severity 4984 normal thanks From t.achim@gmail.com Thu Nov 19 21:18:41 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Nov 2009 05:18:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAK5IeVC025285 for ; Thu, 19 Nov 2009 21:18:41 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBLtH-0003fd-O2 for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 00:18:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBLtC-0003b7-6k for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 00:18:38 -0500 Received: from [199.232.76.173] (port=51181 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBLtC-0003b4-0l for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 00:18:34 -0500 Received: from mail-qy0-f196.google.com ([209.85.221.196]:56127) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBLtB-0004C1-PI for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 00:18:33 -0500 Received: by qyk34 with SMTP id 34so1773503qyk.14 for ; Thu, 19 Nov 2009 21:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=lqGYtSS98iFjRuar/VPAQQai14ZZ53411Y/MFUVYBsM=; b=amYldPcxAycrvAs1kAt/p8/CjX839h+WO8QUQ7ha6rzEYzzRz6mMD7KejsatKYEW4A HH2J/n1L+fvYk5uuYUDn1AgvCD5cANHgtP7yxHvu38ARyZU1JznESmKyTBhVtydgHVZS bmjvXETGEgJg+q9WlqXGSdbXD8x+Abn9n8UpU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=i8DWjeveqHZOB1ztgigatjtnewKSRKMqTDKx6zzDjMb/azHc9UIiFe+tTWl7J/Nj7H vwLZpDcgtPijVV/FdnLEwZvMi8xU7umFbUxd8gAkw5xsg7TGJtW6+77eIZ8s0LwJyCpH VRya5xS46hPxCo+TTxdbp8zIqt7ndJdy4PN0U= MIME-Version: 1.0 Received: by 10.229.1.167 with SMTP id 39mr137885qcf.99.1258694313283; Thu, 19 Nov 2009 21:18:33 -0800 (PST) Date: Fri, 20 Nov 2009 00:18:33 -0500 Message-ID: Subject: c++ parantheses matching vs templates From: Tudor Achim To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Hi all, This bug can be reproduced as follows: open up a c++ file (or set c++ mode) type (i < 5), delete the ), type >, delete the >, type ), and emacs should display Mismatched parentheses, and have incorrect indentation for subsequent s. This was reproduced on versions GNU Emacs 22.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.1) of 2008-09-05, modified by Ubuntu GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-08-16 GNU Emacs 22.1.1 (mac-apple-darwin, Carbon Version 1.6.0) of 2009-10-05 Presumably this involves telling the paren-matcher to reparse, rather than look at its history which makes it think a template instantiation is going on. If nobody else has time I can take a look at it this weekend. Thanks, Tudor From rgm@gnu.org Fri Nov 20 16:50:34 2009 Received: (at control) by emacsbugs.donarmstrong.com; 21 Nov 2009 00:50:34 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAL0oW9f011347 for ; Fri, 20 Nov 2009 16:50:33 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1NBeBL-0000Qr-MB; Fri, 20 Nov 2009 19:50:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19207.14679.626093.237244@fencepost.gnu.org> Date: Fri, 20 Nov 2009 19:50:31 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: bd\:f@TlE.},B>anVwq:5^nd'<*1525;T}E~rD*uz6YPvccu2_-2=a_Wi_52q7sm#]-0Fp X-Debbugs-No-Ack: yes severity 4980 minor reassign 4983 spam reassign 4985 spam reassign 4986 spam severity 4987 wishlist reassign 4989 spam reassign 4990 spam reassign 4991 spam reassign 4992 emacs,etags reassign 4984 emacs,cc-mode From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 15:12:53 2011 Received: (at control) by debbugs.gnu.org; 3 Oct 2011 19:12:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAnwa-00006I-Nl for submit@debbugs.gnu.org; Mon, 03 Oct 2011 15:12:53 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAnwY-00006B-UH for control@debbugs.gnu.org; Mon, 03 Oct 2011 15:12:51 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RAnvB-0007Lo-U1 for control@debbugs.gnu.org; Mon, 03 Oct 2011 15:11:26 -0400 Date: Mon, 03 Oct 2011 15:11:25 -0400 Message-Id: Subject: control message for bug 4984 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) 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: -6.4 (------) forcemerge 4847 4984 From unknown Thu Aug 14 21:43:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Nov 2011 11:24:02 +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