GNU bug report logs - #79025
Indention falls apart when using C23 type feature on enum

Previous Next

Package: emacs;

Reported by: Marcel Weißenbach <mweissenbach <at> ikaros.space>

Date: Tue, 15 Jul 2025 12:30:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Marcel Weißenbach <mweissenbach <at> ikaros.space>
To: Marcel Weißenbach <mweissenbach <at> ikaros.space>, Stephen
 Berman <stephen.berman <at> gmx.net>
Cc: 79025 <at> debbugs.gnu.org
Subject: Re: bug#79025: Indention falls apart when using C23 type feature on
 enum
Date: Tue, 15 Jul 2025 23:27:15 +0000
 
 
"Stephen Berman" stephen.berman <at> gmx.net – 2025年7月15日 22:35
> On Tue, 15 Jul 2025 04:07:48 +0000 Marcel Weißenbach <mweissenbach <at> ikaros.space> wrote:
> 
> > Hello there,
> >  
> > i assume something simple but
> >  
> > This here does work just fine
> >  
> > typedef enum _IgePlayerState {
> >     IGE_PLAYER_STATE_MOVEABLE,
> >     IGE_PLAYER_STATE_WHATVER,
> > }
> >  
> > This here no longer works
> >  
> > typedef enum _IgePlayerState : Uint8 {
> >         IGE_PLAYER_STATE_MOVEABLE,
> >                 IGE_PLAYER_STATE_WHATVER,
> >                 }
> 
> I see the bad indentation (and also bad fontification) in latter example
> with c-mode in emacs-30, but in current master the indentation (and
> fontification) are the same as in the first example.
> 
> Steve Berman
> 
>
 
Thanks for your reply too!
 
FYI, i discovered the c-guess feature which i ran over my biggest C File and it did produce an style that works exactly how i want it to work including C23 typed enums.
 
That is an more as good workaround for me, so i am in no hurry
 
 
 
Best Regards
 
Marcel




This bug report was last modified 38 days ago.

Previous Next


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