]> git.eshelyaron.com Git - emacs.git/commitdiff
(fill-delete-newlines): Don't delete past TO.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Apr 2003 21:43:12 +0000 (21:43 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Apr 2003 21:43:12 +0000 (21:43 +0000)
lisp/textmodes/fill.el

index 4c70c40cd432ea32836601291f29d6260b1c8b71..4faa89ae724cbfdaf4a4aa8b06cde3748acb8792 100644 (file)
@@ -453,7 +453,7 @@ Point is moved to just past the fill prefix on the first line."
     (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 to) (delete-char (- (skip-chars-backward " \t"))))
   (goto-char from))
 
 (defun fill-move-to-break-point (linebeg)