GNU bug report logs - #7327
24.0.50; cc-mode: default indentation inconsistent with typedefs

Previous Next

Packages: cc-mode, emacs;

Reported by: Christoph <cschol2112 <at> googlemail.com>

Date: Thu, 4 Nov 2010 01:35:03 UTC

Severity: normal

Tags: wontfix

Found in version 24.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alex <agrambot <at> gmail.com>
To: Christoph <cschol2112 <at> googlemail.com>
Cc: 7327 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>
Subject: bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs
Date: Wed, 07 Sep 2016 22:57:32 -0600
tags found 24.5 25.1
quit

Christoph <cschol2112 <at> googlemail.com> writes:

> Start with `emacs -Q'. Start new .c file.
>
> Type `typedef enum' then hit `C-j', then `{'.
>
> The code is indented like this:
>
> typedef enum
>   {
>     blabla
>
> Then try `typedef struct', `C-j', '{'.
>
> The code is indented like this:
>
> typedef struct
> {
>   blabla
>
> This happens in 24.0.50, bzr revision 102241 and also 23.2.1.
>
> I don't know which one is right, but I think the indentation should by
> default be consistent.

This behaviour is still present in Emacs 25.1; is it intentional?




This bug report was last modified 3 years and 351 days ago.

Previous Next


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