[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tabs vs. spaces in source code

From: Peter Chubb
Subject: Re: tabs vs. spaces in source code
Date: Tue, 28 Jul 2009 19:40:08 +1000
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Goj┼Ź) APEL/10.7 MULE XEmacs/21.4 (patch 21) (Educational Television) (i486-linux-gnu)

>>>>> "Carl" == Carl Sorensen <address@hidden> writes:

Carl> On 7/25/09 10:58 AM, "Mark Polesky" <address@hidden>
Carl> wrote:

>> ...tabs in the source code...
>> Werner Lemberg wrote:
>>> I dislike them, too, but there are many editors which handle them
>>> just fine.  I don't see a problem here.
>> But would you be *opposed* to a strict no-tab rule?
>> Carl Sorensen wrote:
>>> The last communication we had about it, Han-Wen was conditionally
>>> in favor and Jan was opposed.
>> Are you sure? What do mean by "conditionally"?
>> And it looks like Jan was also okay with it:

Carl> No, Jan was not in favor of it unless it became a standard for
Carl> GNU coding.  Hence the comment on "first making it a standard"
Carl> (i.e., a GNU standard) and "sending a patch to emacs-devel".

Carl> The current standard is to let tabs and spaces be handled as
Carl> emacs handles them.

>> Does anyone have a script to automate such a process across
>> multiple files? I'm not too clever with such things (I don't know
>> python either). The best I can do is this (using jEdit):

There's a standard Unix cpmmand, `expand' that converts tabs to

Personally I prefer the One True Brace Style (tabs everywhere!)  but
it's really up to the core coders as to what they mandate.  If you
*do* decide to mandate no tabs, then you should provide an Emacs `C'
style that implements what you want, and aa VIM one, etc., etc.  Most
of these auto-indent C/C++ using tabs.
Dr Peter Chubb  peterc AT           ERTOS within National ICT Australia

reply via email to

[Prev in Thread] Current Thread [Next in Thread]