GNU bug report logs - #64133
CC Mode 5.35.2 (C/*l); incorrect indentation for an arrays of structs.

Previous Next

Package: emacs;

Reported by: Jeff Norden <norden.jeff <at> gmail.com>

Date: Sat, 17 Jun 2023 15:05:01 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jeff Norden <norden.jeff <at> gmail.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 64133 <at> debbugs.gnu.org
Subject: bug#64133: CC Mode 5.35.2 (C/*l); incorrect indentation for an arrays of structs.
Date: Mon, 19 Jun 2023 09:30:48 -0500
On Mon, Jun 19, 2023 at 6:46 AM Alan Mackenzie <acm <at> muc.de> wrote:
> No, I think it really is the cache bug I mentioned in my last post.

I agree.  In fact, a "brute force" fix is to use advice-add to reset
c-laomib-cache to nil before each call to c-indent-line.  What puzzled
me is that certain buffer changes also fix the issue, and that timing
makes a difference in when and how that happens.  I'm now guessing
that the bug is triggered by calls from the fontification system.  If
I start "emacs -Q", and do `M-x global-font-lock-mode' to turn all
fontifcation off, then "C-c C-s" shows correct syntax when I open the
example file.

Thanks again,
-Jeff




This bug report was last modified 1 year and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.