From: Stefan Monnier Date: Fri, 4 Apr 2003 20:56:10 +0000 (+0000) Subject: (fill-delete-newlines): Remove trailing whitespace. X-Git-Tag: ttn-vms-21-2-B4~10643 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=51153542a55ec24051ee1841712a26cee8b8e940;p=emacs.git (fill-delete-newlines): Remove trailing whitespace. --- diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index cce52b0d60b..4f49fcd0a7c 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -450,7 +450,10 @@ Point is moved to just past the fill prefix on the first line." (subst-char-in-region from to ?\n ?\ ) (if (and nosqueeze (not (eq justify 'full))) nil - (canonically-space-region (or squeeze-after (point)) to)) + (canonically-space-region (or squeeze-after (point)) to) + ;; Remove trailing whitespace. + ;; Maybe canonically-space-region should do that. + (goto-char to) (delete-horizontal-space)) (goto-char from)) (defun fill-move-to-break-point (linebeg)