GNU bug report logs - #27402
26.0.50; Indentation regression for C99 struct initializers

Previous Next

Packages: cc-mode, emacs;

Reported by: Adam Niederer <adam.niederer <at> gmail.com>

Date: Sat, 17 Jun 2017 06:55:02 UTC

Severity: normal

Found in version 26.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Adam Niederer <adam.niederer <at> gmail.com>
Cc: 27402 <at> debbugs.gnu.org
Subject: Re: bug#27402: 26.0.50; Indentation regression for C99 struct
 initializers
Date: Mon, 30 Nov 2020 12:07:10 +0100
Adam Niederer <adam.niederer <at> gmail.com> writes:

> Emacs 25.2 indents the code as seen above, whereas Emacs 26.0.50 indents
> it as such:
>
> void main() {
>   struct Foo foo = {
>                     .a = 2,
>                     .b = 3
>   };
> }

(This bug report unfortunately got no response at the time.)

I can reproduce this in Emacs 26.1, but not in Emacs 28, so I think this
has been fixed by now, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 266 days ago.

Previous Next


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