+2014-02-10 Lars Ingebrigtsen <larsi@gnus.org>
+
+ * text.texi (User-Level Deletion): Document
+ `delete-trailing-whitespace' (bug#15309).
+
2014-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* text.texi (Changing Properties): Clarify `propertize' (bug#9825).
@code{delete-blank-lines} returns @code{nil}.
@end deffn
+@deffn Command delete-trailing-whitespace start end
+Delete trailing whitespace in the region defined by @var{start} and
+@var{end}.
+
+This command deletes whitespace characters after the last
+non-whitespace character in each line in the region.
+
+If this command acts on the entire buffer (i.e. if called
+interactively with the mark inactive, or called from Lisp with
+@var{end} nil), it also deletes all trailing lines at the end of the
+buffer if the variable @code{delete-trailing-lines} is non-@code{nil}.
+@end deffn
+
@node The Kill Ring
@section The Kill Ring
@cindex kill ring