Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jun 2005 07:36:17 +0900
From:      JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= <jinmei@isl.rdc.toshiba.co.jp>
To:        "Li, Qing" <qing.li@bluecoat.com>
Cc:        freebsd-net@freebsd.org, Andre Oppermann <andre@freebsd.org>
Subject:   Re: issue with route
Message-ID:  <y7vll5rt6e6.wl%jinmei@isl.rdc.toshiba.co.jp>
In-Reply-To: <48D44BB27BDE3840BDF18E59CB169A5C010AF92D@bcs-mail3.internal.cacheflow.com>
References:  <48D44BB27BDE3840BDF18E59CB169A5C010AF92D@bcs-mail3.internal.cacheflow.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Thu, 2 Jun 2005 16:01:40 -0700, 
>>>>> "Li, Qing" <qing.li@bluecoat.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y7vll5rt6e6.wl%jinmei>