From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Dennett Newsgroups: gmane.emacs.bugs Subject: bug#11386: C++11 support: C++ mode gets (temporarily) confused by edits to convert "> >" to ">>" in templates Date: Mon, 30 Apr 2012 14:05:29 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1335820647 8728 80.91.229.3 (30 Apr 2012 21:17:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2012 21:17:27 +0000 (UTC) To: 11386@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 30 23:17:26 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SOxyG-0006cK-DY for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Apr 2012 23:17:24 +0200 Original-Received: from localhost ([::1]:60412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOxyF-0006x0-No for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Apr 2012 17:17:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOxxa-0006qR-JZ for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 17:16:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOxxX-0006XC-GR for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 17:16:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOxxX-0006X2-9U for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 17:16:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SOxys-0004lk-1r for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 17:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: James Dennett Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Apr 2012 21:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11386 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133582063918277 (code B ref -1); Mon, 30 Apr 2012 21:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Apr 2012 21:17:19 +0000 Original-Received: from localhost ([127.0.0.1]:59359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SOxyA-0004kj-5j for submit@debbugs.gnu.org; Mon, 30 Apr 2012 17:17:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56352) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SOxoH-0004WC-Ng for submit@debbugs.gnu.org; Mon, 30 Apr 2012 17:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOxmq-0003UU-7o for submit@debbugs.gnu.org; Mon, 30 Apr 2012 17:05:37 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:38678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOxmq-0003UQ-1t for submit@debbugs.gnu.org; Mon, 30 Apr 2012 17:05:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOxmo-0004pe-Dv for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 17:05:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOxmm-0003UD-JA for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 17:05:33 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:52289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOxmm-0003Tl-AZ for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2012 17:05:32 -0400 Original-Received: by iajr24 with SMTP id r24so5916503iaj.0 for ; Mon, 30 Apr 2012 14:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlers.com; s=googlers; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding:x-system-of-record; bh=F/s2zkDaaOOjhXeKUJiNhYNEiLOMDM6zOjV2MhxjFl0=; b=YSMppEet1wl5nBQj8KmcfxVoG+sFKf2AXqg3EkqOVf1ewu/KRUf6y3GzDilQ2BQsPk kLrwSjKRIH9ZhFTuXNEjAxpCFYpQXh+yiWlviRsuBYrI3Qdb5VFN42wiOBo1WfF3My05 LzDdhSK0lkZAY3BrSP7mO6KLWq380UMmN/cnI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding:x-system-of-record:x-gm-message-state; bh=F/s2zkDaaOOjhXeKUJiNhYNEiLOMDM6zOjV2MhxjFl0=; b=fvDNuhdlOlBP4BXOG5+/daCOKUTQZ7Ix8mkrgKijE5PjbirkWYXWSfyTS6VUD869Fx s72LWz+2IVcKdkeMSjPpjdfXjmJ8k6JJkx+cnpGF2kmonwgs4oQwhghEYmEB+Uqj598l dMg+7ocvp3DjIluWFDPDWENyF26/uVaOIIFtd7iCF7skkf+9EgdSdU54gDhB8ZppDZgl lDdCja4WDWBouTU25Cm0ob1oDCAMxdh2YPwRVUNOmk0InIPQLhjhm8reOoxAYgN2eA6s kSmj2/coJkwMzz5PW75MuXmNAn1gctDcpjfcYJlKxkURpxoU3g6DnRl8GNg3AP7D8lIC y3Tg== Original-Received: by 10.50.187.137 with SMTP id fs9mr11666852igc.50.1335819929497; Mon, 30 Apr 2012 14:05:29 -0700 (PDT) Original-Received: by 10.50.187.137 with SMTP id fs9mr11666848igc.50.1335819929425; Mon, 30 Apr 2012 14:05:29 -0700 (PDT) Original-Received: by 10.231.187.169 with HTTP; Mon, 30 Apr 2012 14:05:29 -0700 (PDT) X-System-Of-Record: true X-Gm-Message-State: ALoCoQkl4QwEnoayl5jNeWoTom/XaWC1i7GyEHAuM/4x4jeDnVpVrUrX0YgOMEhCrcGQEtUlPqsL1Kh8M5LvbEnKtqheQxnZ3i5dpuGrFJJpri7I5sBENefVRSUyAkmGeY3+mqwTSEmn446GYTKbs9WzQC9rJ967vg== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 30 Apr 2012 17:17:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 30 Apr 2012 17:17:21 -0400 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59658 Archived-At: C++ mode gets confused if C++98 code is updated to omit the (now unnecessary) space between the closing ">" angle brackets in template argument lists. To reproduce: Start by typing the following (C++98) code: int foo() { =A0 vector > temp; } So far, so good. Now go back and remove the extra space between the closing angle brackets. =A0This will cause the closing } to not match the opening { (according to emacs), so if you then add another function below foo, you'll get something like: int foo() { =A0 vector> temp; =A0 return 0; } =A0 =A0 =A0 int bar() { =A0 } where the indentation of everything after the function foo() is broken. Matching of the angle brackets is also broken. The buffer can be restored to a good state by erasing and retyping the inner "<" in the type. =A0Adding the extra space and removing it will put the buffer back in a bad state. =A0Reading the code from file (with or without the extra space) also leaves the buffer in a good state.