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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: Christoph <cschol2112@HIDDEN>; dated Thu, 4 Nov 2010 01:35:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 7327 <at> debbugs.gnu.org:


Received: (at 7327) by debbugs.gnu.org; 8 Sep 2016 04:57:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 08 00:57:42 2016
Received: from localhost ([127.0.0.1]:53088 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bhrPB-0000jz-Qu
	for submit <at> debbugs.gnu.org; Thu, 08 Sep 2016 00:57:42 -0400
Received: from mail-it0-f44.google.com ([209.85.214.44]:34752)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <agrambot@HIDDEN>)
 id 1bhrP9-0000jf-Va; Thu, 08 Sep 2016 00:57:40 -0400
Received: by mail-it0-f44.google.com with SMTP id i184so2727937itf.1;
 Wed, 07 Sep 2016 21:57:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=tO0/Vl4EefJiQuo5I7od4/8aEq8lTxwEQxwwP7l2UtE=;
 b=bxZMJvACvCpvhwwLkeIpKcL9kBTNpshRUycd1ezUvdCq2C/bKhdNT4a/fBY7n23QJC
 urb3WT+W6OWhD7QZCz+da2ILWMCQ9JT75qKjRZUxivT1OI7tmpq4M7+v0P7F/mkTc720
 GqQWvC6+wvKlmOz49/68O47I4mlk/xbRTY3PZeRnLDgWkR1SXdSrLab0LUkwtGS7BDaO
 2lIEiSOwiRrZ7g+9q+4q2V1gvpm3P1/yqwh8/cERwNZ7RMy79lIfPPAHN3IMXMiRuHBE
 ogdK+Kmi6OCx9iBlbBT9yStrqpj9iBgRPt5Fkz1IszXUxQEY68pP95/PcRkcoi+gTPGE
 6avA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=tO0/Vl4EefJiQuo5I7od4/8aEq8lTxwEQxwwP7l2UtE=;
 b=GH57k04A35xUVDewzj5ztlOX57Bi5ukXAamtlNZN5tWPU1rvUwL2D6Gqy2TmNM8kb+
 GpQEpqSmkiSOh9XWTJLiAxonOIPyiGxWRSpRPpXxDiRL4r4evjBV7REwYOWBnQpj2R82
 edIPOVCcfu3N/N5x9l4RIXOA1PoC/ZKOTncz2bC2jtSh90tzHkrQmUmRTOnB2Y9Owst8
 quPpw6qEHmKttLnSGJSAI8gHe2ISZ2eN1IPoT5MqlldWFhS2jfoDmqEmtLkbp23ArMOi
 qZ0NXqeQTE1Fvc3i7NZRmZ/hRasm+dH6LEA4BQK2D5KgPYwvyRR6T6OGEhptpgs+CuWh
 0E4Q==
X-Gm-Message-State: AE9vXwMy3IUZMAIJFXJ6YCMOIxSKUe34YjPYFc/rTECKUJrdMB0MzpN8ql8NkIeZKngl1Q==
X-Received: by 10.36.253.3 with SMTP id m3mr12430801ith.6.1473310654347;
 Wed, 07 Sep 2016 21:57:34 -0700 (PDT)
Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88])
 by smtp.gmail.com with ESMTPSA id g78sm5640911itb.12.2016.09.07.21.57.33
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 07 Sep 2016 21:57:34 -0700 (PDT)
From: Alex <agrambot@HIDDEN>
To: Christoph <cschol2112@HIDDEN>
Subject: Re: bug#7327: 24.0.50;
 cc-mode: default indentation inconsistent with typedefs
References: <86y69a9ei4.fsf@HIDDEN>
Date: Wed, 07 Sep 2016 22:57:32 -0600
In-Reply-To: <86y69a9ei4.fsf@HIDDEN> (Christoph's message of "Wed, 03 Nov
 2010 17:25:07 -0600")
Message-ID: <87twdr7zur.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.7 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: tags found 24.5 25.1 quit Christoph 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. [...] 
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at http://www.dnswl.org/, low
 trust [209.85.214.44 listed in list.dnswl.org]
 2.4 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source
 [209.85.214.44 listed in dnsbl.sorbs.net]
 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
 (agrambot[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
 [209.85.214.44 listed in wl.mailspike.net]
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
 0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid
X-Debbugs-Envelope-To: 7327
Cc: 7327 <at> debbugs.gnu.org, Alan Mackenzie <acm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.7 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  tags found 24.5 25.1 quit Christoph 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. [...] 
 
 Content analysis details:   (1.7 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at http://www.dnswl.org/, low
                             trust
                             [209.85.214.44 listed in list.dnswl.org]
  2.4 RCVD_IN_SORBS_SPAM     RBL: SORBS: sender is a spam source
                             [209.85.214.44 listed in dnsbl.sorbs.net]
 -0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
                             [209.85.214.44 listed in wl.mailspike.net]
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail provider
                             (agrambot[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
  0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid

tags found 24.5 25.1
quit

Christoph <cschol2112@HIDDEN> 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?




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#7327; Package emacs,cc-mode. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Nov 2010 01:35:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 03 21:35:00 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PDojD-0005UF-Q7
	for submit <at> debbugs.gnu.org; Wed, 03 Nov 2010 21:35:00 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <cschol2112@HIDDEN>) id 1PDojB-0005U8-Qw
	for submit <at> debbugs.gnu.org; Wed, 03 Nov 2010 21:34:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cschol2112@HIDDEN>) id 1PDonN-000810-9P
	for submit <at> debbugs.gnu.org; Wed, 03 Nov 2010 21:39:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,
	FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
	T_DKIM_INVALID, 
	T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:34662)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cschol2112@HIDDEN>) id 1PDonN-00080s-6e
	for submit <at> debbugs.gnu.org; Wed, 03 Nov 2010 21:39:17 -0400
Received: from [140.186.70.92] (port=53188 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PDonH-0002Ds-Ax
	for bug-gnu-emacs@HIDDEN; Wed, 03 Nov 2010 21:39:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cschol2112@HIDDEN>) id 1PDmhf-0002hc-2B
	for bug-gnu-emacs@HIDDEN; Wed, 03 Nov 2010 19:25:16 -0400
Received: from mail-gy0-f169.google.com ([209.85.160.169]:39946)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cschol2112@HIDDEN>) id 1PDmhe-0002hX-VD
	for bug-gnu-emacs@HIDDEN; Wed, 03 Nov 2010 19:25:15 -0400
Received: by gyd8 with SMTP id 8so583286gyd.0
	for <bug-gnu-emacs@HIDDEN>; Wed, 03 Nov 2010 16:25:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:received:received:from:to:subject:date
	:message-id:mime-version:content-type;
	bh=qxuSCDTpgteawTxbE97sE1Mv6HGnW9bm0jq9ahdDqf8=;
	b=GSB5755HQkiIX9EKrMa1lqpRmMLaFHeNUvLd0GGPzPLtiXWDnuHsZk28pnLOKYHPLP
	0olomksjh7n1Ir2GlCTZHYR1+dlnYmvU6dX9nI52miCSrVx8Fig9QsbmGCZNKhjEAOEV
	RlUJSBi7vy/mt4aDf+6USj+RecQXOu8F9R3mQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=from:to:subject:date:message-id:mime-version:content-type;
	b=Zji6bMe4UR0fodjfnIcJlr+f0oe5ssdnr/DARAvRMF9/0quk5El47z3tmjN+jiy0ez
	i8D1ZeIyY0aVUYuwkD2ZsM3by5Trx5tcpO2UmIWxYrsrXi+yrfkpLoewqTYKg1sLLnnl
	TegBq/WR2ro4VV2BwzaAEWW8m/P41hyQ3YC04=
Received: by 10.100.111.10 with SMTP id j10mr2557843anc.222.1288826712802;
	Wed, 03 Nov 2010 16:25:12 -0700 (PDT)
Received: from localhost (71-208-193-55.hlrn.qwest.net [71.208.193.55])
	by mx.google.com with ESMTPS id w32sm5950846ana.17.2010.11.03.16.25.08
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Wed, 03 Nov 2010 16:25:09 -0700 (PDT)
From: Christoph <cschol2112@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.50; cc-mode: default indentation inconsistent with typedefs
Date: Wed, 03 Nov 2010 17:25:07 -0600
Message-ID: <86y69a9ei4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.0 (-----)

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.


In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600)
 of 2010-11-03 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7600
configured using `configure --with-gcc (4.5) --cflags -IC:/Progra~2/GnuWin32/include -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5.8/src'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  ido-everywhere: t
  yas/global-mode: t
  yas/minor-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t

Recent input:
C-x RET r e p o r t <tab> <return>

Recent messages:
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/windows.el (source)...done
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins.el (source)...
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins/color-theme/themes/color-theme-example.el (source)...done
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins/color-theme/themes/color-theme-library.el (source)...done
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins/zenburn.el (source)...done
Ido mode enabled
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/anything-c-adaptive-history...done
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins.el (source)...done
Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/custom.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug
server js2-mode-autoloads rainbow-mode-autoloads package re-builder
dired+ dired-x ediff-merg ediff-diff ediff-wind ediff-mult ediff-help
ediff-init ediff-util dired-aux ibuffer nav nav-tags python-21 python
nav-bufs anything-config warnings browse-url semantic/util-modes
semantic/util semantic semantic/tag semantic/lex semantic/fw loaddefs
eieio byte-opt bytecomp byte-compile mode-local cedet imenu bookmark pp
dired rx ffap thingatpt anything google-c-style cc-mode cc-fonts
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
grep-o-matic grep compile comint browse-kill-ring+ browse-kill-ring
second-sel ido yasnippet dropdown-list derived easy-mmode assoc
etags-table etags ring remember zenburn color-theme edmacro kmacro
wid-edit cl sendmail regexp-opt reporter easymenu uniquify advice
help-fns advice-preload autorevert tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files
text-properties overlay md5 base64 format env code-pages mule custom
widget hashtable-print-readable backquote make-network-process multi-tty
emacs)




Acknowledgement sent to Christoph <cschol2112@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7327; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 8 Sep 2016 05:00:02 UTC

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