From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Newsgroups: gmane.emacs.bugs Subject: bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs Date: Wed, 03 Nov 2010 17:25:07 -0600 Message-ID: <86y69a9ei4.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288835096 31974 80.91.229.12 (4 Nov 2010 01:44:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2010 01:44:56 +0000 (UTC) To: 7327@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 04 02:44:50 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PDosk-0005DM-Ii for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Nov 2010 02:44:50 +0100 Original-Received: from localhost ([127.0.0.1]:59198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDosj-0006aA-TJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Nov 2010 21:44:50 -0400 Original-Received: from [140.186.70.92] (port=45923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDosT-0006Vf-GV for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 21:44:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDosR-0001hw-Cu for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 21:44:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDosR-0001hr-6z for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 21:44:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PDojH-0005Ua-Ch; Wed, 03 Nov 2010 21:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christoph Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Nov 2010 01:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7327 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128883450021098 (code B ref -1); Thu, 04 Nov 2010 01:35:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2010 01:35:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PDojD-0005UF-Q7 for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:35:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PDojB-0005U8-Qw for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDonN-000810-9P for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:39:24 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:34662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDonN-00080s-6e for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:39:17 -0400 Original-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@gnu.org; Wed, 03 Nov 2010 21:39:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDmhf-0002hc-2B for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 19:25:16 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:39946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDmhe-0002hX-VD for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 19:25:15 -0400 Original-Received: by gyd8 with SMTP id 8so583286gyd.0 for ; 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= Original-Received: by 10.100.111.10 with SMTP id j10mr2557843anc.222.1288826712802; Wed, 03 Nov 2010 16:25:12 -0700 (PDT) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 03 Nov 2010 21:35:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41381 Archived-At: 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 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)