From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Darrington Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.bugs Subject: CC Mode 5.28 (C); struct braces are not indented in GNU style Date: Wed, 29 Nov 2006 12:56:04 +0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164776318 15096 80.91.229.2 (29 Nov 2006 04:58:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 04:58:38 +0000 (UTC) Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Wed Nov 29 05:58:36 2006 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpHWc-0001Yb-1c for sf-cc-mode-help@m.gmane.org; Wed, 29 Nov 2006 05:58:26 +0100 Original-Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id 57B95120C3; Tue, 28 Nov 2006 20:58:25 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1GpHWY-00040b-JF for cc-mode-help@lists.sourceforge.net; Tue, 28 Nov 2006 20:58:23 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1GpHWY-0000xT-2n for cc-mode-help@lists.sourceforge.net; Tue, 28 Nov 2006 20:58:22 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.52) id 1GpHWS-0001Zn-3Y for bug-cc-mode@gnu.org; Tue, 28 Nov 2006 23:58:16 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.52) id 1GpHWM-0005O8-Dx for bug-cc-mode@gnu.org; Tue, 28 Nov 2006 23:58:16 -0500 Original-Received: from [130.95.128.59] (helo=asclepius2.uwa.edu.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GpHWL-0005Ml-Hy; Tue, 28 Nov 2006 23:58:10 -0500 Original-Received: from panacea.kas (localhost.localdomain [127.0.0.1]) by panacea.uwa.edu.au (Postfix) with SMTP id 846C34C1A0; Wed, 29 Nov 2006 12:58:01 +0800 (WST) Original-Received: from panacea (localhost.localdomain [127.0.0.1]) by panacea.prekas (Postfix) with ESMTP id 0BE654C064; Wed, 29 Nov 2006 12:58:01 +0800 (WST) X-UWA-Client-IP: 130.95.1.11 (UWA) Original-Received: from postfix.csse.uwa.edu.au (postfix.csse.uwa.edu.au [130.95.1.11]) by panacea.input (Postfix) with ESMTP id 7A30F4BFDA; Wed, 29 Nov 2006 12:56:05 +0800 (WST) Original-Received: from pc-188 (pc188 [130.95.1.188]) by postfix.csse.uwa.edu.au (Postfix) with ESMTP id E986280013; Wed, 29 Nov 2006 12:56:03 +0800 (WST) Original-Received: from jmd by pc-188 with local (Exim 4.63) (envelope-from ) id 1GpHUK-000140-Lc; Wed, 29 Nov 2006 12:56:04 +0800 Original-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.10/RELEASE, bases: 29112006 #232614, status: clean X-SpamTest-Info: Profile: Formal (775/061128) X-SpamTest-Info: Profile: Detect Hard [UCS 2006-10-25] X-SpamTest-Info: Profile: SysLog X-SpamTest-Info: Profile: Marking Spam - Subject (UCS) [2006-10-25] X-SpamTest-Status: Not detected X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on monty-python X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:4140 gmane.emacs.bugs:15438 Archived-At: GNU coding standards say: "It is important to put the open-brace that starts the body of a C function in column one, and avoid putting any other open-brace or open-parenthesis or open-bracket in column one" But given a code snippet like: struct foobar { int x; }; indent-region reformats it as: struct foobar { int x; }; which is contrary to the second clause of this sentence. Emacs : GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2006-10-25 on raven, modified by Debian Package: CC Mode 5.28 (C) Buffer Style: gnu c-emacs-features: (1-bit) current state: ============== (setq c-basic-offset 2 c-comment-only-line-offset '(0 . 0) c-block-comment-prefix "" c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (other . "//+\\|\\**")) c-cleanup-list '(scope-operator) c-hanging-braces-alist '((brace-list-open) (brace-entry-open) (substatement-open after) (block-close . c-snug-do-while) (extern-lang-open after) (inexpr-class-open after) (inexpr-class-close before)) c-hanging-colons-alist nil c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist) c-backslash-column 48 c-label-minimum-indentation 1 c-offsets-alist '((string . c-lineup-dont-change) (c . c-lineup-C-comments) (defun-open . 0) (defun-close . 0) (defun-block-intro . +) (class-open . 0) (class-close . 0) (inline-close . 0) (func-decl-cont . +) (knr-argdecl . 0) (topmost-intro . 0) (topmost-intro-cont . 0) (member-init-intro . +) (member-init-cont . c-lineup-multi-inher) (inher-intro . +) (inher-cont . c-lineup-multi-inher) (block-open . 0) (block-close . 0) (brace-list-close . 0) (brace-list-intro . +) (brace-list-entry . 0) (brace-entry-open . 0) (statement . 0) (statement-case-intro . +) (substatement . +) (case-label . 0) (access-label . -) (do-while-closure . 0) (else-clause . 0) (catch-clause . 0) (comment-intro . c-lineup-comment) (arglist-cont . 0) (arglist-cont-nonempty . c-lineup-arglist) (stream-op . c-lineup-streamop) (inclass . +) (cpp-macro . [0]) (cpp-macro-cont . c-lineup-dont-change) (friend . 0) (objc-method-intro . [0]) (objc-method-args-cont . c-lineup-ObjC-method-args) (objc-method-call-cont . c-lineup-ObjC-method-call) (extern-lang-open . 0) (extern-lang-close . 0) (inextern-lang . +) (namespace-open . 0) (namespace-close . 0) (innamespace . +) (template-args-cont c-lineup-template-args +) (inlambda . c-lineup-inexpr-block) (lambda-intro-cont . +) (inexpr-statement . 0) (inexpr-class . +) (statement-block-intro . +) (knr-argdecl-intro . 5) (substatement-open . +) (label . 0) (statement-case-open . +) (statement-cont . +) (arglist-intro . c-lineup-arglist-intro-after-paren) (arglist-close . c-lineup-arglist) (inline-open . 0) (brace-list-open . +) ) c-delete-function 'delete-char c-electric-pound-behavior nil c-indent-comments-syntactically-p nil c-tab-always-indent t defun-prompt-regexp nil tab-width 8 comment-column 32 parse-sexp-ignore-comments t auto-fill-function nil comment-multi-line t comment-start-skip "/\\*+ *\\|//+ *" fill-prefix nil paragraph-start "[ ]*\\(//+\\|\\**\\)[ ]*$\\|^\f" adaptive-fill-mode t adaptive-fill-regexp "[ ]*\\(//+\\|\\**\\)[ ]*\\([ ]*\\([-|#;>*]+[ ]*\\|(?[0-9]+[.)][ ]*\\)*\\)" ) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV