From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Elusive indentation problem in CC Mode Date: Fri, 16 Mar 2012 14:32:43 +0000 Message-ID: <20120316143243.GE3439@acm.acm> References: <83ty1ovq2b.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1331908464 12850 80.91.229.3 (16 Mar 2012 14:34:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Mar 2012 14:34:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 16 15:34:24 2012 Return-path: Envelope-to: ged-emacs-devel@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 1S8YEZ-00067p-O7 for ged-emacs-devel@m.gmane.org; Fri, 16 Mar 2012 15:34:23 +0100 Original-Received: from localhost ([::1]:39267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8YEY-0004Wl-P6 for ged-emacs-devel@m.gmane.org; Fri, 16 Mar 2012 10:34:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8YER-0004Sr-RP for emacs-devel@gnu.org; Fri, 16 Mar 2012 10:34:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8YDz-0002oY-6V for emacs-devel@gnu.org; Fri, 16 Mar 2012 10:34:15 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:27032 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8YDy-0002lM-Ss for emacs-devel@gnu.org; Fri, 16 Mar 2012 10:33:47 -0400 Original-Received: (qmail 82800 invoked by uid 3782); 16 Mar 2012 14:33:44 -0000 Original-Received: from acm.muc.de (pD951A238.dip.t-dialin.net [217.81.162.56]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Mar 2012 15:33:42 +0100 Original-Received: (qmail 5697 invoked by uid 1000); 16 Mar 2012 14:32:43 -0000 Content-Disposition: inline In-Reply-To: <83ty1ovq2b.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149099 Archived-At: Hello, Eli. On Fri, Mar 16, 2012 at 11:43:40AM +0200, Eli Zaretskii wrote: > >>From time to time, I have a strange Heisenbug when editing C source > files: CC Mode computes the indentation level incorrectly. The > problem usually manifests itself by pressing TAB and having the > current line be flushed all the way to the left, as if point is at > toplevel (which it isn't). I know it thinks point is at toplevel > because that's what "C-c C-s" tells me. > The "Heisenbug" part comes into play when I try to figure out which > part of the buffer causes the problem, by selectively deleting some of > the parts around point: after a few deletions, restoring the deleted > parts exactly as they were makes the problem go away. Hopefully the problem is repeatble by reloading the buffer. > This is in Emacs 24.0.94. Is this a known problem, and if so, was it > already fixed since 24.0.94 was released? (Since I don't have a way > of reproducing the problem, I cannot test this in the current trunk.) > If not, I will file a bug report, and please give me instructions for > digging into the problem next time it happens, preferably without > modifying the buffer (which seems to make the problem hide). I think I saw something like this some while ago. The best way of approaching this is edebugging through c-guess-basic-syntax, which is something best done by me. (It's 1466 lines long.) I think it would be best to file a bug report for this. Thanks! > TIA -- Alan Mackenzie (Nuremberg, Germany).