[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: perlstyle and portability
Tom Christiansen <tchrist@chthon.perl.com> writes:
>> Post that religious drivel elsewhere.
> I see you've disregarded your own advice.
He does have a bit of a point, though. If people really did intentionally
choose the mixed space/tab intendentation style, then more power to them,
but I bet a lot of it is just due to the rather odd defaults of emacs.
Pure space indentation looks better in diffs and stands less chance of
accidental corruption by mailers and the like. Pure tabs at least adds
some consistency. The mixed style is a touch annoying and ends up doing
surprising things.
Anyway, for those who were unaware that their emacs was doing this to
their code, you may want to consider:
;; Use only spaces when indenting or centering, no tabs.
(setq-default indent-tabs-mode nil)
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
- Follow-Ups from:
-
Gurusamy Sarathy <gsar@ActiveState.com>
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]