From owner-cvs-all Fri Jul 20 9:36:52 2001 Delivered-To: cvs-all@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 5AA9E37B401; Fri, 20 Jul 2001 09:36:43 -0700 (PDT) (envelope-from gshapiro@gshapiro.net) Received: from horsey.gshapiro.net (gshapiro@localhost [127.0.0.1]) by horsey.gshapiro.net (8.12.0.Beta14/8.12.0.Beta14) with ESMTP id f6KGagMn082013 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 20 Jul 2001 09:36:42 -0700 (PDT) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.0.Beta14/8.12.0.Beta14) id f6KGagOU082010; Fri, 20 Jul 2001 09:36:42 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15192.24090.270882.792561@horsey.gshapiro.net> Date: Fri, 20 Jul 2001 09:36:42 -0700 From: Gregory Neil Shapiro To: Warner Losh Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 style.9 In-Reply-To: <200107201623.f6KGNno66864@harmony.village.org> References: <20010720113310.C30828@sunbay.com> <200107191803.f6JI3he58920@freefall.freebsd.org> <20010719152744.A37403@sneakerz.org> <200107201623.f6KGNno66864@harmony.village.org> X-Mailer: VM 6.92 under 21.5 (beta1) "anise" XEmacs Lucid Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG imp> I don't think it is better. If nothing else, emacs will have a harder imp> time doing that because you are indenting 4 spaces most of the time, imp> and 11 in this case. :-( Personally, I prefer indenting to match the '(' in the if as that is the coding style for sendmail. emacs wouldn't have a hard time at all if configured properly. The code below configures c-mode to use sendmail coding style which matches the FreeBSD coding style except for the brace placement. sendmail uses: if (short_test && another) { /* do nothing */ nothing = 1; } else if (checking_a_long_variable && calling_a_long_function_name() && overflows_line) { /* Do something */ something(); } Here are the settings (for those who might want them): (add-hook 'c-mode-hook 'gns-c-mode-hook) (defconst gns-c-style '((c-basic-offset . 8) (c-cleanup-list . (scope-operator empty-defun-braces defun-close-semi)) (c-comment-only-line-offset . 0) (c-echo-syntactic-information-p . t) (c-electric-pound-behavior '(alignleft)) (c-hanging-braces-alist . ((block-open after) (brace-list-open))) (c-hanging-colons-alist . ((member-init-intro before) (inher-intro) (case-label after) (label after) (access-key after))) (c-offsets-alist . ((arglist-close . c-lineup-arglist) ;; (arglist-cont-nonempty . +) (case-label . 2) (knr-argdecl-intro . +) (label . 0) (statement-block-intro . +) (statement-case-intro . 6) (statement-cont . +) (substatement-open . 0) (topmost-intro-cont . 0))))) (setq c-style-variables-are-local-p t) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message