diff options
| author | Stefan Monnier | 2001-11-02 03:10:46 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-11-02 03:10:46 +0000 |
| commit | 2d78d3e878e0b64f13fe51a2b1cb1105b0ed6aae (patch) | |
| tree | 22184809916d45043c3d3382d745d43463d6739d | |
| parent | cc22748950893fe8251726da4f37c5af6635d67f (diff) | |
| download | emacs-2d78d3e878e0b64f13fe51a2b1cb1105b0ed6aae.tar.gz emacs-2d78d3e878e0b64f13fe51a2b1cb1105b0ed6aae.zip | |
(fill-region-as-paragraph): Don't forget to skip
over current whitespace before looking for a preceding space.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 404c3c1f546..d590fca893d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-11-01 Stefan Monnier <monnier@rum.cs.yale.edu> | ||
| 2 | |||
| 3 | * fill.el (fill-region-as-paragraph): Don't forget to skip | ||
| 4 | over current whitespace before looking for a preceding space. | ||
| 5 | |||
| 1 | 2001-11-01 Richard M. Stallman <rms@gnu.org> | 6 | 2001-11-01 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * files.el (find-file-noselect): Offer to change buffer-read-only | 8 | * files.el (find-file-noselect): Offer to change buffer-read-only |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 48a4de776cf..afe493b5591 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -565,7 +565,9 @@ space does not end a sentence, so don't break a line there." | |||
| 565 | ;; further fills will assume it ends a sentence. | 565 | ;; further fills will assume it ends a sentence. |
| 566 | ;; If we now know it does not end a sentence, | 566 | ;; If we now know it does not end a sentence, |
| 567 | ;; avoid putting it at the end of the line. | 567 | ;; avoid putting it at the end of the line. |
| 568 | (while (and (> (point) linebeg) (fill-nobreak-p)) | 568 | (while (and (> (point) linebeg) |
| 569 | (fill-nobreak-p) | ||
| 570 | (skip-chars-backward " \t")) | ||
| 569 | (if (re-search-backward " \\|\\c|.\\|.\\c|" linebeg 0) | 571 | (if (re-search-backward " \\|\\c|.\\|.\\c|" linebeg 0) |
| 570 | (forward-char 1))) | 572 | (forward-char 1))) |
| 571 | ;; If the left margin and fill prefix by themselves | 573 | ;; If the left margin and fill prefix by themselves |