]> git.eshelyaron.com Git - emacs.git/commitdiff
* text.texi (User-Level Deletion): Document `delete-trailing-whitespace'.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 10 Feb 2014 02:37:43 +0000 (18:37 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 10 Feb 2014 02:37:43 +0000 (18:37 -0800)
Fixes: debbugs:15309
doc/lispref/ChangeLog
doc/lispref/text.texi

index 47be7082fc732b0dbc90091af9a35dfb2d636a01..cf4cef30e0ef1ad532724bba7bb09674f81113ff 100644 (file)
@@ -1,3 +1,8 @@
+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).
index 76b65e9d7e03a2bc441dd0cc7295be1c91fa0c2a..18701465d0f84a7c2e9d0664628824127d559004 100644 (file)
@@ -787,6 +787,19 @@ A blank line is defined as a line containing only tabs and spaces.
 @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