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

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

bug#28124: 24.5; fundamental-mode has electric-indent-mode on by default


From: Noam Postavsky
Subject: bug#28124: 24.5; fundamental-mode has electric-indent-mode on by default
Date: Wed, 13 Dec 2017 07:48:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

# intended behaviour
tags 28124 notabug wontfix
close 28124
quit

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Matthias Meixner <Matthias.Meixner@VERIFONE.com>
>> Date: Thu, 17 Aug 2017 07:56:39 +0000
>> 
>> Fundamental-mode has electric-indent-mode on by default. As a result when 
>> pressing return leading
>> whitespace is removed which is highly unexpected in fundamental-mode.
>
> Yes, and this is a feature.
>
>> Globally disabling electric-indent-mode is not an option, since that would 
>> also disable it for other
>> modes, where it should be available (e.g. C/C++ mode).
>
> You can disable the mode locally in the current buffer:
>
>   M-x electric-indent-local-mode RET
>
> (This is mentioned in the doc string of electric-indent-mode.)

Therefore closing as wontfix.





reply via email to

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