From f43a0b9824cfaf3a74beca7e7fb55b62c00e3996 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 27 Jan 2004 07:34:35 +0000 Subject: [PATCH] (fill-delete-newlines): Don't add a space if a setence ends with one of a character in sentence-end-without-space. --- lisp/ChangeLog | 9 +++++++++ lisp/textmodes/fill.el | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8c6ec64fc4f..788231e9210 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,12 @@ +2004-01-27 Kenichi Handa + + * textmodes/paragraphs.el (sentence-end-without-space): New variable. + (sentence-end): Define using sentence-end-without-space. + + * textmodes/fill.el (fill-delete-newlines): Don't add a space if a + setence ends with one of a character in + sentence-end-without-space. + 2004-01-26 Stefan Monnier * font-lock.el (font-lock): Add jit-lock as explicit group member. 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." ((string-match "\\[[^][]*\\(\\.\\)[^][]*\\]" sentence-end) (concat (replace-match ".:" nil nil sentence-end 1) "$")) ;; Can't find the right spot to insert the colon. - (t "[.?!:][])}\"']*$")))) + (t "[.?!:][])}\"']*$"))) + (sentence-end-without-space-list + (string-to-list sentence-end-without-space))) (while (re-search-forward eol-double-space-re to t) (or (>= (point) to) (memq (char-before) '(?\t ?\ )) + (memq (char-after (match-beginning 0)) + sentence-end-without-space-list) (insert-and-inherit ?\ )))) (goto-char from) -- 2.39.2