From: Eli Zaretskii <eliz@gnu.org>
To: Matthias Meixner <Matthias.Meixner@VERIFONE.com>
Cc: 28124@debbugs.gnu.org
Subject: bug#28124: 24.5; fundamental-mode has electric-indent-mode on by default
Date: Thu, 17 Aug 2017 18:53:29 +0300 [thread overview]
Message-ID: <83ziaydwcm.fsf@gnu.org> (raw)
In-Reply-To: <MWHPR03MB281682196201506950A2132CEE830@MWHPR03MB2816.namprd03.prod.outlook.com> (message from Matthias Meixner on Thu, 17 Aug 2017 07:56:39 +0000)
> 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.)
next prev parent reply other threads:[~2017-08-17 15:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 7:56 bug#28124: 24.5; fundamental-mode has electric-indent-mode on by default Matthias Meixner
2017-08-17 15:53 ` Eli Zaretskii [this message]
2017-12-13 12:48 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ziaydwcm.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=28124@debbugs.gnu.org \
--cc=Matthias.Meixner@VERIFONE.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.