changeset 69842:121db3a5c7ba

(Basic Indent): C-j deletes trailing whitespace before the newline.
author Richard M. Stallman <rms@gnu.org>
date Fri, 07 Apr 2006 18:22:59 +0000
parents 613657f11e8d
children 6ad4218cfb21
files man/programs.texi
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/man/programs.texi	Fri Apr 07 16:52:46 2006 +0000
+++ b/man/programs.texi	Fri Apr 07 18:22:59 2006 +0000
@@ -387,9 +387,10 @@
 @findex newline-and-indent
   When entering lines of new code, use @kbd{C-j}
 (@code{newline-and-indent}), which inserts a newline and then adjusts
-indentation after it.  Thus, @kbd{C-j} at the end of a line creates a
-blank line with appropriate indentation.  In programming language
-modes, it is equivalent to @key{RET} @key{TAB}.
+indentation after it.  (It also deletes any trailing whitespace which
+remains before the new newline.)  Thus, @kbd{C-j} at the end of a line
+creates a blank line with appropriate indentation.  In programming
+language modes, it is equivalent to @key{RET} @key{TAB}.
 
   @key{TAB} indents a line that starts within a parenthetical grouping
 under the preceding line within the grouping, or the text after the