aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-04-21 16:22:08 +0000
committerStefan Monnier2003-04-21 16:22:08 +0000
commit9bcdf9a8fdae9bf6128fd45454ff1f0c785d5da2 (patch)
tree31f217458099f278190b034f882b1624b9244093
parentd0e07261a2aaab0d38306ea0b753eb67fc729334 (diff)
downloademacs-9bcdf9a8fdae9bf6128fd45454ff1f0c785d5da2.tar.gz
emacs-9bcdf9a8fdae9bf6128fd45454ff1f0c785d5da2.zip
(fill-region-as-paragraph): Fix "last line goes to fill-column+1" problem.
-rw-r--r--lisp/textmodes/fill.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 4faa89ae724..a8a98524838 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -660,9 +660,10 @@ space does not end a sentence, so don't break a line there."
660 (let (linebeg) 660 (let (linebeg)
661 (while (< (point) to) 661 (while (< (point) to)
662 (setq linebeg (point)) 662 (setq linebeg (point))
663 (move-to-column (1+ (current-fill-column))) 663 (move-to-column (current-fill-column))
664 (if (when (< (point) to) 664 (if (when (< (point) to)
665 ;; Find the position where we'll break the line. 665 ;; Find the position where we'll break the line.
666 (forward-char 1) ;Use an immediately following space, if any.
666 (fill-move-to-break-point linebeg) 667 (fill-move-to-break-point linebeg)
667 ;; Check again to see if we got to the end of 668 ;; Check again to see if we got to the end of
668 ;; the paragraph. 669 ;; the paragraph.