From owner-freebsd-net@FreeBSD.ORG Fri Jun 3 22:35:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFBA416A41C; Fri, 3 Jun 2005 22:35:25 +0000 (GMT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 711E443D1F; Fri, 3 Jun 2005 22:35:22 +0000 (GMT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from ocean.jinmei.org (unknown [2001:4f8:3:bb:780b:f29b:bfac:bc60]) by shuttle.wide.toshiba.co.jp (Postfix) with ESMTP id 3611C1521A; Sat, 4 Jun 2005 07:38:26 +0900 (JST) Date: Sat, 04 Jun 2005 07:36:17 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: "Li, Qing" In-Reply-To: <48D44BB27BDE3840BDF18E59CB169A5C010AF92D@bcs-mail3.internal.cacheflow.com> References: <48D44BB27BDE3840BDF18E59CB169A5C010AF92D@bcs-mail3.internal.cacheflow.com> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-net@freebsd.org, Andre Oppermann Subject: Re: issue with route X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 22:35:25 -0000 >>>>> On Thu, 2 Jun 2005 16:01:40 -0700, >>>>> "Li, Qing" said: >> Then please send me your final patch including proposed >> commit message for final review again. After that, when no >> more issues arise, you can go ahead and commit the change. >> >> Oh, BTW. Don't be afraid when you get brucified. Bruce' > Does anyone have a good .emacs that conforms to style(9) > that could share with me? > That might just save me a lot of pain from the > inevitable brucifixion. I believe the built-in "bsd" style should meet most of the style requirements (with GNU Emacs 21). Try (c-set-style "bsd") on your .[ch] buffers (and put it in the c-mode-common-hook if it works). The only hard part I can see with the bsd style is the "four-space indentation" rule for the 2nd level: ============================================================================= Indentation is an 8 character tab. Second level indents are four spaces. If you have to wrap a long statement, put the operator at the end of the line. while (cnt < 20 && this_variable_name_is_too_long && ep != NULL) z = a + really + long + statement + that + needs + two + lines + gets + indented + four + spaces + on + the + second + and + subsequent + lines; ============================================================================= The bsd style would indent these lines as follows: ============================================================================= while (cnt < 20 && this_variable_name_is_too_long && ep != NULL) z = a + really + long + statement + that + needs + two + lines + gets + indented + four + spaces + on + the + second + and + subsequent + lines; ============================================================================= Are you perhaps asking for .emacs setting which conforms to this (the four-space) style? JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp