From owner-cvs-all@FreeBSD.ORG Sun Mar 30 23:27:34 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 208931065670; Sun, 30 Mar 2008 23:27:34 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (trang.nuxi.org [74.95.12.85]) by mx1.freebsd.org (Postfix) with ESMTP id E0E9D8FC17; Sun, 30 Mar 2008 23:27:33 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (obrien@localhost [127.0.0.1]) by dragon.nuxi.org (8.14.1/8.14.1) with ESMTP id m2UNRBiq026796; Sun, 30 Mar 2008 16:27:11 -0700 (PDT) (envelope-from obrien@dragon.nuxi.org) Received: (from obrien@localhost) by dragon.nuxi.org (8.14.2/8.14.1/Submit) id m2UNRA2e026795; Sun, 30 Mar 2008 16:27:10 -0700 (PDT) (envelope-from obrien) Date: Sun, 30 Mar 2008 16:27:10 -0700 From: "David O'Brien" To: Dag-Erling =?unknown-8bit?B?U23DuHJncmF2?= Message-ID: <20080330232710.GA26455@dragon.NUXI.org> References: <200803131852.m2DIqkw3095857@repoman.freebsd.org> <20080314003205.GA94057@dragon.NUXI.org> <20080319133906.GA3872@fnop.net> <867ifoaulz.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <867ifoaulz.fsf@ds4.des.no> X-Operating-System: FreeBSD 8.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Rui Paulo , cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, "Sean C. Farley" Subject: Re: cvs commit: src/tools/tools/editing freebsd.vim X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2008 23:27:34 -0000 On Thu, Mar 27, 2008 at 07:29:28PM +0100, Dag-Erling Smrgrav wrote: > > I think this should be mentioned in the developer's handbook because, > > IIRC, the sample .emacs file in there is bogus and doesn't really > > respect style(9). DES, This is what should be committed? Index: freebsd.el =================================================================== RCS file: /home/ncvs/src/tools/tools/editing/freebsd.el,v retrieving revision 1.1 diff -u -p -r1.1 freebsd.el --- freebsd.el 15 Dec 1998 16:51:49 -0000 1.1 +++ freebsd.el 30 Mar 2008 23:26:42 -0000 @@ -22,7 +22,7 @@ ;;; As long as you don't have this in the c-mode hook you can edit GNU ;;; and BSD style C sources within one emacs session with no problem. ;;; -;;; Please report problems and additions directly to cracauer@freebsd.org +;;; Please report problems and additions via 'send-pr' (defun bsd () (interactive) (c-set-style "bsd") @@ -34,7 +34,22 @@ (c-set-offset 'statement-case-intro 8) (c-set-offset 'substatement-open 4) (c-set-offset 'substatement 8) - (c-set-offset 'arglist-cont-nonempty 4) (c-set-offset 'inclass 8) (c-set-offset 'knr-argdecl-intro 8) + + ;; Basic indent is 8 spaces + (setq c-basic-offset 8) + (setq tab-width 8) + + ;; Continuation lines are indented 4 spaces + (c-set-offset 'arglist-cont 4) + (c-set-offset 'arglist-cont-nonempty 4) + (c-set-offset 'statement-cont 4) + (c-set-offset 'cpp-macro-cont 8) + + ;; Labels are flush to the left + (c-set-offset 'label [0]) + + ;; Fill column + (setq fill-column 74)) )