diff options
| author | Kenichi Handa | 2004-01-27 07:34:35 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-01-27 07:34:35 +0000 |
| commit | f43a0b9824cfaf3a74beca7e7fb55b62c00e3996 (patch) | |
| tree | f6f28c1107a7aeba5e2af7fce5760266c5651c8f /lisp/textmodes | |
| parent | 21a3e65787947884b180b988398817130f731327 (diff) | |
| download | emacs-f43a0b9824cfaf3a74beca7e7fb55b62c00e3996.tar.gz emacs-f43a0b9824cfaf3a74beca7e7fb55b62c00e3996.zip | |
(fill-delete-newlines): Don't add a space if a
setence ends with one of a character in
sentence-end-without-space.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/fill.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 69b17f677ff..5aded4a85e8 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -423,9 +423,13 @@ Point is moved to just past the fill prefix on the first line." | |||
| 423 | ((string-match "\\[[^][]*\\(\\.\\)[^][]*\\]" sentence-end) | 423 | ((string-match "\\[[^][]*\\(\\.\\)[^][]*\\]" sentence-end) |
| 424 | (concat (replace-match ".:" nil nil sentence-end 1) "$")) | 424 | (concat (replace-match ".:" nil nil sentence-end 1) "$")) |
| 425 | ;; Can't find the right spot to insert the colon. | 425 | ;; Can't find the right spot to insert the colon. |
| 426 | (t "[.?!:][])}\"']*$")))) | 426 | (t "[.?!:][])}\"']*$"))) |
| 427 | (sentence-end-without-space-list | ||
| 428 | (string-to-list sentence-end-without-space))) | ||
| 427 | (while (re-search-forward eol-double-space-re to t) | 429 | (while (re-search-forward eol-double-space-re to t) |
| 428 | (or (>= (point) to) (memq (char-before) '(?\t ?\ )) | 430 | (or (>= (point) to) (memq (char-before) '(?\t ?\ )) |
| 431 | (memq (char-after (match-beginning 0)) | ||
| 432 | sentence-end-without-space-list) | ||
| 429 | (insert-and-inherit ?\ )))) | 433 | (insert-and-inherit ?\ )))) |
| 430 | 434 | ||
| 431 | (goto-char from) | 435 | (goto-char from) |