]> code.delx.au - gnu-emacs/commitdiff
(Basic Indent): C-j deletes trailing whitespace before the newline.
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 2006 18:23:03 +0000 (18:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 2006 18:23:03 +0000 (18:23 +0000)
man/ChangeLog
man/programs.texi

index a7888a682da579bb5671d38f6981d0be3bd204ef..f7d5f35b5b0132fba239b81119b6a4a1af82f3d3 100644 (file)
@@ -2,6 +2,7 @@
 
        * programs.texi (Comments, Comment Commands, Options for Comments)
        (Multi-Line Comments): "Align", not "indent".
+       (Basic Indent): C-j deletes trailing whitespace before the newline.
 
 2006-04-06  Richard Stallman  <rms@gnu.org>
 
index 5cd769446aee512aff11787a9cec4ffbbe21a657..59ea979399dee4e2a2dc1471c04f78fee7da4b0c 100644 (file)
@@ -387,9 +387,10 @@ the characters around it.
 @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