From owner-freebsd-standards Tue Dec 4 1:10:56 2001 Delivered-To: freebsd-standards@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 6F64337B419 for ; Tue, 4 Dec 2001 01:10:53 -0800 (PST) Received: from a96180.upc-a.chello.nl (postfix@a96180.upc-a.chello.nl [62.163.96.180]) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) with ESMTP id fB49ApG80699 for ; Tue, 4 Dec 2001 04:10:52 -0500 (EST) (envelope-from asmodai@malbolge.dnsalias.net) Received: by a96180.upc-a.chello.nl (Postfix, from userid 1001) id B125C2150; Tue, 4 Dec 2001 10:10:50 +0100 (CET) Date: Tue, 4 Dec 2001 10:10:50 +0100 From: Jeroen Ruigrok/Asmodai To: Wes Peters Cc: freebsd-standards@bostonradio.org Subject: Re: strerror_r() implementation Message-ID: <20011204101050.M6664@daemon.ninth-circle.org> References: <20011202011045.F5026-100000@gamplex.bde.org> <3C0C77B8.26C050B0@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C0C77B8.26C050B0@softweyr.com> User-Agent: Mutt/1.3.23i Organisation: Ninth Circle Enterprises Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -On [20011204 07:15], Wes Peters (wes@softweyr.com) wrote: >Documenting the options to indent(1) that most closely produces style(9) >compliant code would certainly be a starting point. I think you could >easily make the point that FreeBSD's indent should default to style(9) >settings as well, or at least support a flag that does so. The following in vim works wonders for me: augroup cprog " Remove all cprog autocommands autocmd! autocmd BufNewFile,BufRead *.c,*.h set formatoptions=croql autocmd BufNewFile,BufRead *.c,*.h set cindent autocmd BufNewFile,BufRead *.c,*.h set comments=sr:/*,mb:*,el:*/,:// autocmd BufNewFile,BufRead *.c,*.h set cinoptions=t0(0 augroup END [Of course, this works only when you actively edit the document.] -- Jeroen Ruigrok van der Werven / Asmodai / Kita no Mono / xMach coreteam asmodai@[wxs.nl|xmach.org], finger asmodai@ninth-circle.org, www.xmach.org I raise a sunken smile, as I serve the ones who served... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message