bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#20322: 25.0.50; indent-tabs-mode should default to nil


From: Stefan Monnier
Subject: bug#20322: 25.0.50; indent-tabs-mode should default to nil
Date: Mon, 20 Apr 2015 15:26:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Doing this for the rest of the January would take a few more days, and I'm
> not sure if that's really valuable, considering the above.

> C:     tabs => 1241263, spaces =>   636266
> C++:   tabs =>  466087, spaces =>   926052
> JS:    tabs => 8430336, spaces => 11739058
> Java:  tabs => 7620803, spaces =>  1509610
> Elisp: tabs =>  150071, spaces =>   185015

Ah, so the units are lines?  Indeed, then this can be strongly biased if
people use smaller tab-width than 8.

It seems it would make more sense to count files (or projects), where
each file gets to be counted either as SPC or as TAB depending on
whether it has more lines that use TAB than lines that use either spaces.

This way, the bias only affects a file at a time, which should be
insignificant if we assume that those files should use a consistent
style (i.e. either 99% TABs or 99% SPC).


        Stefan





reply via email to

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