all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Elusive indentation problem in CC Mode
Date: Fri, 16 Mar 2012 14:32:43 +0000	[thread overview]
Message-ID: <20120316143243.GE3439@acm.acm> (raw)
In-Reply-To: <83ty1ovq2b.fsf@gnu.org>

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



      reply	other threads:[~2012-03-16 14:32 UTC|newest]

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

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

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

  git send-email \
    --in-reply-to=20120316143243.GE3439@acm.acm \
    --to=acm@muc.de \
    --cc=eliz@gnu.org \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.