GNU bug report logs - #23775
25.0.95.2; c-mode: Incorrect indentation and function bundery detection

Previous Next

Packages: cc-mode, emacs;

Reported by: Rolf Ade <rolf <at> pointsman.de>

Date: Thu, 16 Jun 2016 01:07:02 UTC

Severity: minor

Tags: wontfix

Found in version 25.0.95.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #18 received at 23775 <at> debbugs.gnu.org (full text, mbox):

From: Rolf Ade <rolf <at> pointsman.de>
To: Alan Mackenzie <acm <at> muc.de>, 23775 <at> debbugs.gnu.org
Subject: Re: bug#23775: 25.0.95.2; c-mode: Incorrect indentation and function
 bundery detection
Date: Wed, 22 Jun 2016 01:16:00 +0200
Hello Alan,

Am 06/16/2016 11:18 AM, Alan Mackenzie wrote:
> [...]
> I tried once before to solve this problem, but didn't get very far.  What
> was obvious, at the time, was that a solution would slow CC Mode down,
> possibly quite a bit.
>
> So, we've collectively decided that this bug, although real, won't be
> fixed.  The best advice we can give is to arrange the C code such that
> unbalanced braces in #if arms don't happen.
>
> Sorry.

Just for the record: I stumbled about that in the wild. This function:
http://core.tcl.tk/tdom/artifact/3a53ac985a15644d?ln=2142-2535
triggers the bug.

I stripped down to a minimal example from that, not from the idea to
do "preprocessor tricks" to fool c-mode.






This bug report was last modified 9 years and 24 days ago.

Previous Next


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