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: Eli Zaretskii
Subject: bug#20322: 25.0.50; indent-tabs-mode should default to nil
Date: Tue, 21 Apr 2015 22:47:41 +0300

> Date: Tue, 21 Apr 2015 22:25:23 +0300
> From: Dmitry Gutov <dgutov@yandex.ru>
> Cc: 20322@debbugs.gnu.org
> 
> On 04/21/2015 04:25 AM, Stefan Monnier wrote:
> 
> > That suggests that it might be OK to set indent-tabs-mode to nil in
> > javascript-mode and in elisp-mode.  Maybe even in C++.  But clearly not
> > in C nor in Java.
> 
> C -- seems so.

Please don't make different defaults for C and C++.  These are very
closely related languages, and there are many projects that start as C
and then migrate to C++ (GCC, for example).  It would be confusing to
have the defaults suddenly change under you when that happens.

> Now, provided we agree to default to spaces in the majority of the 
> popular programming languages modes, what's the reasoning not to flip 
> the default?

If you flip the default (I guess in prog-mode?) and then change the
mode switch function to restore the current value, there's no reason
not to flip the default, since doing that will not affect those modes
in any way.





reply via email to

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