emacs-devel
[Top][All Lists]
Advanced

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

Re: newline-and-indent vs. electric-indent-mode


From: Madhu
Subject: Re: newline-and-indent vs. electric-indent-mode
Date: Mon, 25 Jan 2021 16:15:15 +0530

* Dmitry Gutov <801ef866-4212-5b74-350e-9942953174fe@yandex.ru> :
Wrote on Mon, 25 Jan 2021 04:29:55 +0200:

> On 25.01.2021 03:56, Madhu wrote:
>> I used to be benefit from emacs indentation by binding RET to
>> newline-and-indent and remain in control of indentation.
>
> How was it different?
> newline-and-indent can lead to "spurious whitespace" just the same.

This is true now, and I'm not able to say with certainty what the
difference was 10 years ago (if it indeed was different)

IIRC the way to deal with it was that if the next event after a
newline-and-indent is *not* a self-insert-command, then empty whitespace
on that line should have be cleaned up.





reply via email to

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