From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#5570: Emacs 23.1.91.1 C++ mode "ESC C-q" and TAB indenting issue. Date: Thu, 18 Feb 2010 15:12:50 +0000 Message-ID: <20100218151250.GD2671@muc.de> References: <000301caac36$0fc0b760$2f422620$@net> <87pr494md5.fsf@stupidchicken.com> <000e01caad1e$dcbfc560$963f5020$@net> <876360s8rw.fsf@stupidchicken.com> <20100214201006.GA6169@muc.de> <000001caae62$638af6c0$2aa0e440$@net> <20100216163923.GB3456@muc.de> <000301caaf36$d5f86100$81e92300$@net> <20100217094652.GC2392@muc.de> <000301caafef$f64d3520$e2e79f60$@net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266506602 21282 80.91.229.12 (18 Feb 2010 15:23:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 15:23:22 +0000 (UTC) Cc: 'Chong Yidong' , 5570@debbugs.gnu.org To: Bob Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 16:23:20 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 1Ni8Dl-0002oY-Pv for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 16:23:18 +0100 Original-Received: from localhost ([127.0.0.1]:49020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni8Dk-00043w-Md for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 10:23:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni8DR-0003uN-2i for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:22:57 -0500 Original-Received: from [140.186.70.92] (port=33801 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni8DQ-0003tm-3e for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:22:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni8DN-00080p-Ot for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:22:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50515) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni8DN-00080j-EL for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:22:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ni7x5-00034R-2L; Thu, 18 Feb 2010 10:06:03 -0500 X-Loop: bug-gnu-emacs@gnu.org 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 Resent-Date: Thu, 18 Feb 2010 15:06:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5570 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Original-Received: via spool by 5570-submit@debbugs.gnu.org id=B5570.126650554011787 (code B ref 5570); Thu, 18 Feb 2010 15:06:02 +0000 Original-Received: (at 5570) by debbugs.gnu.org; 18 Feb 2010 15:05:40 +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 1Ni7wh-000344-3Q for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:05:39 -0500 Original-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 1Ni7wf-00033z-Bp for 5570@debbugs.gnu.org; Thu, 18 Feb 2010 10:05:38 -0500 Original-Received: (qmail 1559 invoked by uid 3782); 18 Feb 2010 15:05:31 -0000 Original-Received: from acm.muc.de (pD9E2231A.dip.t-dialin.net [217.226.35.26]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 18 Feb 2010 16:05:29 +0100 Original-Received: (qmail 7771 invoked by uid 1000); 18 Feb 2010 15:12:50 -0000 Content-Disposition: inline In-Reply-To: <000301caafef$f64d3520$e2e79f60$@net> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 18 Feb 2010 10:06:03 -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:35172 Archived-At: Hi, Bob, On Wed, Feb 17, 2010 at 08:40:36AM -0800, Bob wrote: > Alan, > Attached is "Foo.cpp" and "dribble" (if I did it correctly, dribble recorded > what I typed). > It illustrates a case where indentation is one level deeper than it should > be. (The other case we've been working on is one level shallower than it > should be). Maybe they are related? I suspect not, but who knows? :-( However, I can reproduce this bug; the dribble file and your CC Mode configuration file were utterly essential to my doing so. Thanks! > visit-file "Foo.cpp", note indentation for "class Bar" is too deep. Now, TAB > on the "class Bar" line the indentation corrects. If you reconstruct the > file from "dribble" you should see TAB on the "class Bar" line incorrectly > indents too deep. Yes. > My ".emacs" file sets indentation to 2 spaces. I would guess there is an > issue where > the default (I think 4 spaces) is being used instead of my setting. No, that's not it. In the course of creating this file, as per your dribble, some "text properties" (deep in the bowels of CC Mode) are being spuriously applied to certain characters in the buffer. I'll track down exactly which keystroke provoked this, and hopefully be able to fix it sometime soonish. Thanks for taking all this trouble to help me reproduce the bug. > Bob -- Alan Mackenzie (Nuremberg, Germany).