[Top][All Lists]

[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: Dmitry Gutov
Subject: bug#20322: 25.0.50; indent-tabs-mode should default to nil
Date: Wed, 15 Apr 2015 01:17:40 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0

On 04/15/2015 12:43 AM, Stefan Monnier wrote:

This doesn't seem to talk about the same thing as what indent-tabs-mode does.
I haven't looked at the code they use, but at least the example they
give is:
    function foo() {
      return "bar";


    function foo() {
        // use tab for indentation
        return "bar";

whereas indent-tabs-mode does not influence which column is used, only
which chars are used to get there.

The examples are admittedly bad (not sure why; maybe because the author found it non-trivial to insert a tab in the middle of a string literal, in their editor). Also see the Ruby one, where both sides of the comparison use 2-space offset.

However, the implementation seems to do the right thing:


Anyway, the results seem to coincide with what's I've seen in practice.

If they can actually change someone's position, we can double-check them, run the analysis ourselves, look for other statistics, etc.

reply via email to

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