From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bob" Newsgroups: gmane.emacs.bugs Subject: bug#5570: Emacs 23.1.91.1 C++ mode "ESC C-q" and TAB indenting issue. Date: Fri, 12 Feb 2010 14:52:31 -0800 Message-ID: <000301caac36$0fc0b760$2f422620$@net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01CAABF3.019D7760" X-Trace: ger.gmane.org 1266016963 17879 80.91.229.12 (12 Feb 2010 23:22:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2010 23:22:43 +0000 (UTC) To: 5570@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 13 00:22:40 2010 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 1Ng4qN-0000RH-Nv for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Feb 2010 00:22:40 +0100 Original-Received: from localhost ([127.0.0.1]:59856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng4qN-0000p8-4u for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Feb 2010 18:22:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ng4qH-0000oC-Jj for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 18:22:33 -0500 Original-Received: from [140.186.70.92] (port=43662 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng4qF-0000nY-Q2 for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 18:22:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ng4qF-0004mp-DS for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 18:22:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43502) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng4qF-0004mk-A9 for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 18:22:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ng4Ni-00069q-0U; Fri, 12 Feb 2010 17:53:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: "Bob" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Feb 2010 22:53:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5570 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: "'Emacs bug Tracking System'" Original-Received: via spool by submit@debbugs.gnu.org id=B.126601515023650 (code B ref -1); Fri, 12 Feb 2010 22:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2010 22:52:30 +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 1Ng4NC-00069P-6m for submit@debbugs.gnu.org; Fri, 12 Feb 2010 17:52:30 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng4NA-00069H-Ka for submit@debbugs.gnu.org; Fri, 12 Feb 2010 17:52:28 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:56975) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng4N9-00045j-3R for submit@debbugs.gnu.org; Fri, 12 Feb 2010 17:52:27 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ng4N7-0008VB-91 for submit@debbugs.gnu.org; Fri, 12 Feb 2010 17:52:26 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:48032) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ng4N7-0008V7-3t for submit@debbugs.gnu.org; Fri, 12 Feb 2010 17:52:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ng4N6-0007jM-Kg for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 17:52:24 -0500 Original-Received: from [140.186.70.92] (port=43371 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng4N6-0007jE-2y for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 17:52:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ng4N5-0002c7-Ek for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 17:52:23 -0500 Original-Received: from qmta01.emeryville.ca.mail.comcast.net ([76.96.30.16]:46321) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng4N5-0002c1-2X for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2010 17:52:23 -0500 Original-Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta01.emeryville.ca.mail.comcast.net with comcast id h8XM1d0021smiN4A1AsL4n; Fri, 12 Feb 2010 22:52:20 +0000 Original-Received: from Cache ([71.202.16.94]) by omta20.emeryville.ca.mail.comcast.net with comcast id hAsK1d00321mHQP8gAsKsM; Fri, 12 Feb 2010 22:52:19 +0000 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcqsNg8ZkRNqaHRpTr6xx6bbdf3w0w== Content-Language: en-us X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 12 Feb 2010 17:53:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:35076 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0004_01CAABF3.019D7760 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit As I work with text in C++ mode the indentation begins to deteriorate. For example, TAB on the class line wrongly indents it: template class Build I work-around the problem by writing the buffer, killing the buffer, then visiting the file and re-indenting with TAB on the class line to get the expected indentation: template class Build Same thing happens with ESC C-q. My impression is there is internal state which doesn't get cleared as I work the text toward a syntax correct unit, causing incorrect indentation. The bad state is ultimately cleared by re-visiting the file. Sorry I can't come up with something reproducible. Has anyone else seen this issue? ------=_NextPart_000_0004_01CAABF3.019D7760 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

As I work with text in C++ mode the indentation = begins to deteriorate. For example, TAB on the class line wrongly indents = it:

 

    template<class = _Enum>

      class Build<TL::End,_Enum>

 

I work-around the problem by writing the buffer, = killing the buffer, then visiting the file and re-indenting with TAB on the class = line to get the expected indentation:

 

    template<class = _Enum>

    class = Build<TL::End,_Enum>

 

Same thing happens with ESC C-q.

 

My impression is there is internal state which = doesn't get cleared as I work the text toward a syntax correct unit, causing = incorrect indentation.  The bad state is ultimately cleared by re-visiting = the file.

 

Sorry I can't come up with something reproducible. =  

 

Has anyone else seen this issue?

 

 

     

------=_NextPart_000_0004_01CAABF3.019D7760--