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>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Marcel Weißenbach <mweissenbach <at> ikaros.space>
Subject: bug#79025: closed (Re: bug#79025: Indention falls apart when
 using C23 type feature on enum)
Date: Wed, 16 Jul 2025 11:14:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#79025: Indention falls apart when using C23 type feature on enum

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 79025 <at> debbugs.gnu.org.

-- 
79025: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79025
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Marcel Weißenbach <mweissenbach <at> ikaros.space>
Cc: 79025-done <at> debbugs.gnu.org, Stephen Berman <stephen.berman <at> gmx.net>
Subject: Re: bug#79025: Indention falls apart when using C23 type feature on
 enum
Date: Wed, 16 Jul 2025 14:12:13 +0300
> From: Marcel Weißenbach <mweissenbach <at> ikaros.space>
> Cc: 79025 <at> debbugs.gnu.org
> Date: Tue, 15 Jul 2025 15:08:42 +0000
> 
> "Eli Zaretskii" eliz <at> gnu.org – 2025年7月15日 22:57
> > > From: Marcel Weißenbach <mweissenbach <at> ikaros.space>
> > > Date: Tue, 15 Jul 2025 04:07:48 +0000
> > > 
> > > 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 cannot reproduce this. In what version of Emacs did you try it, and
> > with what major mode?
> > 
> > IOW, would you mind providing a detailed recipe, starting from "emacs -Q",
> > and telling us which version of Emacs are you using and on what OS?
> > 
> >
>  
> Hi there, thanks for the fast reply.
>  
> I am using Emacs 30.1 on Gentoo or better said, i just started using Emacs, so the error might be on my side as i am an very beginner.
>  
> All i do is type "emacs ." in the directory of the source and then select the .c (or .h) file and start working on it.
>  
> I attached the file that triggers this for me. When i go inside the enum and press tab in the later elements, it starts to indent them. I also attached my config.
>  
> When i remove the : Uint8, it no longer indents them.

Thanks.  As Stephen says, this problem is already fixed on the master
branch of the Emacs Git repository, which will eventually become Emacs
31.  So it means we already fixed this problem for the future versions
of Emacs.

I'm therefore closing this bug.

[Message part 3 (message/rfc822, inline)]
From: Marcel Weißenbach <mweissenbach <at> ikaros.space>
To: bug-gnu-emacs <at> gnu.org
Subject: Indention falls apart when using C23 type feature on enum
Date: Tue, 15 Jul 2025 04:07:48 +0000
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,
                }
 
 
 
Best Regards
 
Marcel



This bug report was last modified 4 days ago.

Previous Next


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