Chuck, 
like Ian said it works fine if you set the tab width to 8 instead of 
4. This is the default, in fact.  The problem then, however, is that 
the line wrapping is totally screwed up.  

This wouldn't be such a problem (and we wouldn't complain so much) if 
several other conventions were followed in the Webware codebase:

* Try to wrap lines at 80 columns (1 tab = 8 columns)

* Absolutely wrap lines before 90 (particularly docstrings).  The 
current codebase is absolutely full of run on lines.  

* Always """ instead of ''' for docstrings.  

* Include a blank line before and after every docstring.  This makes 
it much easier to re-wrap the docstrings when the content changes.

* If a method of function has lots of args list them one or two 
per-line, instead of having a huge run-on line.

If these conventions were followed religously, and there was an 
automatic test to make sure a file was all tabs or all spaces upon 
CVS checkin, I'd shut up about SpacesNotTabs and happily work with 
whatever the original author of the module used. In fact, we really 
should be dealing with the line-wrapping rather than about tabs ;)

On the other hand there is something to be said for consistency.  We 
could make a transition to spaces in less than a minute:

python Tabcleaner.py -S -i4 .

That would be much easier than adding editor specific comments to 
every single file and remembering to do it on new files as well.

Tavis


On Friday 07 December 2001 13:38, Chuck Esterbrook wrote:
> Okay, on more positive note without getting into flamewars again, I
> have been thinking the following, but need help from emacs users in
> the answers:
>
> - Recently, I saw a text file where someone included special
> comments that apparently emacs picked up automatically and used for
> configuration. Is that possible?
>
> If so, are there settings to get emacs to behave well with Webware
> source code? eg, indentation = either tabs OR (and this is what I
> like about other editors) whatever characters were used on the
> previous line. and maybe tabwidth=4 although that's entirely
> personal preference.
>
> If so, could those settings be put in an .emacsrc in the source
> directories? eg, will emacs also pick up settings from
> FILEDIR/.emacsrc?

Attachment: Tabcleaner.py
Description: application/python

Reply via email to