Re: A small fix for smart placement

Timo Korvola wrote:
On Saturday 10 April 2010 16:42:14 Rafal Kolanski wrote:
Also, I would like to ask, what is the official stance on how wide a
tab is in sawfish sources?

Tab stops are every 8 characters, as has been the de facto industry standard for a few decades now. It is of course different from the block indentation step.

Sigh. This should have been obvious, I don't know why I didn't try 8, my default setup for some people's C code is tab stop 8 soft tab stop 4. Sorry. Setting ts=8 in my editor makes everything align.

I do not recall if we have a policy whether tabs or spaces should be preferred in indentation. Old code tends to use tabs, but generally tabs are a nuisance.

I think policy for these things is good, prevents funny whitespace-only diffs where the text looks identical on the terminal and in your editor, but spaces got swapped with tabs somehow. For all my personal projects, I avoid them (tabs). I recognise, however, that sawfish is not my personal project and I will simply set my editor to conform with whatever the policy is, which currently seems to be "make it look like the rest of the file you're editing" :)



Rafal Kolanski.

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