unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Elusive indentation problem in CC Mode
Date: Fri, 16 Mar 2012 11:43:40 +0200	[thread overview]
Message-ID: <83ty1ovq2b.fsf@gnu.org> (raw)

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



             reply	other threads:[~2012-03-16  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16  9:43 Eli Zaretskii [this message]
2012-03-16 14:32 ` Elusive indentation problem in CC Mode Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ty1ovq2b.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).