emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC


From: Eli Zaretskii
Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478.
Date: Mon, 24 Mar 2014 19:19:02 +0200

> From: Dmitry Gutov <address@hidden>
> Date: Mon, 24 Mar 2014 11:08:43 +0200
> Cc: Alan Mackenzie <address@hidden>, Stefan <address@hidden>,
>       address@hidden
> 
> FWIW, effectively doing `reindent-then-newline-and-indent' on RET also
> seems gratuitous to me. When I reach the end of a line, usually text on
> that line is already indented correctly (automatically, or through me
> typing TAB manually), so the first `reindent' does nothing, unless the
> indentation function was wrong about the current line in the first
> place, and I had to adjust it manually.

This might be mostly true, but not always.  E.g., what if you delete a
character whose electricity caused the line to be indented in some
special way, when that character was inserted earlier?  After deleting
that character, the line might no longer be indented correctly.



reply via email to

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