GNU bug report logs -
#18072
24.3; cc-mode indentation is broken
Previous Next
Reported by: Juhani Åhman <juhanipm <at> gmail.com>
Date: Mon, 21 Jul 2014 20:52:03 UTC
Severity: normal
Found in version 24.3
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello, Stefan.
On Sun, Nov 10, 2019 at 22:13:00 +0100, Stefan Kangas wrote:
> Hi Alan,
> Alan Mackenzie <acm <at> muc.de> writes:
> > Is this C++ Mode, by any chance?
> I'm not sure which one to use to reproduce it. I'm hoping Juhani will
> be able to tell us.
> > This looks like having the same cause as bug #37910 "CC Mode 5.33.2
> > (C++//l); CC-mode inconsistently indents everything as topmost-intro
> > after a while".
> > I'm pretty sure it's a defect in a particular CC Mode cache (the "state
> > cache"), which tracks parentheses, braces, and brackets containing and
> > near point. Somehow, it's missing the critical {, believing that
> > foo();, etc., are at top level. A C-c C-s on that line would likely
> > show "topmost-intro".
> Do you think that these two bugs should be merged?
I don't think the evidence is strong enough to do this, yet. Not quite.
In the course of investigating #37910, I discovered a flaw whose effect
would be consistent with what we're seeing in #37910 and the current
bug. I intend to commit a fix to this flaw, soon. However, there's
more to #37910 than just that flaw, so #37910 is where I'm spending my
time at the moment.
> Best regards,
> Stefan Kangas
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 4 years and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.