From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Elusive indentation problem in CC Mode
Date: Fri, 16 Mar 2012 11:43:40 +0200
Message-ID: <83ty1ovq2b.fsf@gnu.org>
Reply-To: Eli Zaretskii <eliz@gnu.org>
NNTP-Posting-Host: plane.gmane.org
X-Trace: dough.gmane.org 1331891057 1167 80.91.229.3 (16 Mar 2012 09:44:17 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Fri, 16 Mar 2012 09:44:17 +0000 (UTC)
Cc: emacs-devel@gnu.org
To: Alan Mackenzie <acm@muc.de>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 16 10:44:16 2012
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1S8Thm-0003ez-MS
	for ged-emacs-devel@m.gmane.org; Fri, 16 Mar 2012 10:44:14 +0100
Original-Received: from localhost ([::1]:59266 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1S8Thm-0003Hh-06
	for ged-emacs-devel@m.gmane.org; Fri, 16 Mar 2012 05:44:14 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:41616)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eliz@gnu.org>) id 1S8ThL-0002PY-83
	for emacs-devel@gnu.org; Fri, 16 Mar 2012 05:44:11 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eliz@gnu.org>) id 1S8ThF-0004cu-4h
	for emacs-devel@gnu.org; Fri, 16 Mar 2012 05:43:46 -0400
Original-Received: from mtaout23.012.net.il ([80.179.55.175]:33722)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@gnu.org>)
	id 1S8ThE-0004cj-TF
	for emacs-devel@gnu.org; Fri, 16 Mar 2012 05:43:41 -0400
Original-Received: from conversion-daemon.a-mtaout23.012.net.il by
	a-mtaout23.012.net.il (HyperSendmail v2007.08) id
	<0M0Z00M001MYIU00@a-mtaout23.012.net.il> for
	emacs-devel@gnu.org; Fri, 16 Mar 2012 11:43:38 +0200 (IST)
Original-Received: from HOME-C4E4A596F7 ([77.124.49.174]) by a-mtaout23.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0M0Z00MGL1OQI620@a-mtaout23.012.net.il>;
	Fri, 16 Mar 2012 11:43:38 +0200 (IST)
X-012-Sender: halo1@inter.net.il
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 80.179.55.175
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=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:149095
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/149095>

>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.

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).

TIA