[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33197: 26.1; cc-mode enum indentation
From: |
Lars Ingebrigtsen |
Subject: |
bug#33197: 26.1; cc-mode enum indentation |
Date: |
Thu, 26 Nov 2020 14:00:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Ota, Takaaki" <Takaaki.Ota@sony.com> writes:
> The enum indentation in cc-mode used to look like this.
>
> enum {
> pDlen = sizeof pD - 1,
> pIlen = sizeof pI - 1,
> pMlen = sizeof pMd - 2
> };
> enum {
> no_modifier, long_modifier, pD_modifier, pI_modifier, pM_modifier
> } length_modifier = no_modifier;
>
> This is a portion of doprnt.c in the current 26.1 source code. But
> now the 26.1 cc-mode indents like this
>
> enum {
> pDlen = sizeof pD - 1,
> pIlen = sizeof pI - 1,
> pMlen = sizeof pMd - 2
> };
I tested this in Emacs 27.1 and Emacs 28, and they both indent this code
like in the first example.
Are you still seeing this issue in Emacs 27?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#33197: 26.1; cc-mode enum indentation,
Lars Ingebrigtsen <=