From 63d93efda6fb229d18a750436d52396ceecd68d9 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 9 Feb 2014 18:37:43 -0800 Subject: [PATCH] * text.texi (User-Level Deletion): Document `delete-trailing-whitespace'. Fixes: debbugs:15309 --- doc/lispref/ChangeLog | 5 +++++ doc/lispref/text.texi | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 47be7082fc7..cf4cef30e0e 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2014-02-10 Lars Ingebrigtsen + + * text.texi (User-Level Deletion): Document + `delete-trailing-whitespace' (bug#15309). + 2014-02-09 Lars Ingebrigtsen * text.texi (Changing Properties): Clarify `propertize' (bug#9825). diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 76b65e9d7e0..18701465d0f 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -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 -- 2.39.2