On Wed, 2008-01-09 at 12:33 -0800, Asheesh Laroia wrote: > pmiller has committed an .indent.pro file to the source tree that switches > us to GNU style indenting, which is fine. Curiously, he sets --tab-size0 > rather than giving tabs a width > 0. Why?
Because different people tell their editor to have different tab widths, and then fill their code with tabs. (Some editors fail to distinguish indent steps from tab widths.) This means for them, the code is correctly formatted, but for everyone else who has different tabs, the indenting is wrong, and ugly wrong at that. The only way around it is to not use tabs at all, thus --tab-size0 Those little block comments telling emacs and vi and nedit what to do with the file in C mode can also help, but it doesn't help for other unknown brain dead editors, and you wind up with one per editor, which is no longer a little block comment and looks even uglier. Regards Peter Miller <[EMAIL PROTECTED]> /\/\* http://miller.emu.id.au/pmiller/ PGP public key ID: 1024D/D0EDB64D fingerprint = AD0A C5DF C426 4F03 5D53 2BDB 18D8 A4E2 D0ED B64D See http://www.keyserver.net or any PGP keyserver for public key. "Computer Science is the only discipline in which we view adding a new wing to a building as being maintenance." -- Jim Horning
signature.asc
Description: This is a digitally signed message part
_______________________________________________ cc-devel mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/cc-devel
