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

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

bug#15478: cc-mode does not obey electric-indent-mode


From: Andreas Röhler
Subject: bug#15478: cc-mode does not obey electric-indent-mode
Date: Thu, 03 Oct 2013 19:45:27 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Am 03.10.2013 11:45, schrieb Alan Mackenzie:
On Thu, Oct 03, 2013 at 12:10:16AM -0400, Stefan Monnier wrote:
That's because *you* like electric-indent-mode.  Not because C is special.
Electric indentation is more useful in a language like C than it is in
something like Python --- C has a richer set of brace characters.

Right: Python is indeed special because fully automatic indentation is
not really possible.  But C is not special in this respect.

I.e., electric indentation needs to be off in Python.

cc-mode's sophisticated syntactic indentation is an Emacs "killer feature".

The "sophisticated syntactic indentation" is also a killer feature for
Octave users, SML users, Lisp users, Javascript users, ...

I.e., electric indentation needs to be on in C, Octave, .....

Anyway, we should be showcasing it by default, using electric
indentation, instead of hiding it behind configuration because users
might want to lobotomize their indentation by rebinding <tab>.

That's arguing for changing the global default of electric-indent-mode.

The global default should be On for C and Off for Python.


Agreed, learned this for now, thanks all,

Andreas






reply via email to

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