aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/fill.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 88a685c2562..5609eef944d 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -52,10 +52,10 @@ A value of nil means that any change in indentation starts a new paragraph."
52If the function returns nil, then `fill-paragraph' does its normal work.") 52If the function returns nil, then `fill-paragraph' does its normal work.")
53 53
54(defvar enable-kinsoku t 54(defvar enable-kinsoku t
55 "*Non-nil means enable `kinsoku' processing on filling paragraph. 55 "*Non-nil means enable \"kinsoku\" processing on filling paragraph.
56`Kinsoku' processing is to prohibit specific characters to be placed 56Kinsoku processing is designed to prevent certain characters from being
57at beginning or end of line. See the documentation of kinsoku for 57placed at the beginning or end of a line by filling.
58 more detail.") 58See the documentation of `kinsoku' for more information.")
59 59
60(defun set-fill-prefix () 60(defun set-fill-prefix ()
61 "Set the fill prefix to the current line up to point. 61 "Set the fill prefix to the current line up to point.
@@ -450,7 +450,11 @@ space does not end a sentence, so don't break a line there."
450 ;; Normally, move back over the single space between the words. 450 ;; Normally, move back over the single space between the words.
451 (if (= (preceding-char) ?\ ) (forward-char -1)) 451 (if (= (preceding-char) ?\ ) (forward-char -1))
452 ;; Do KINSOKU processing. 452 ;; Do KINSOKU processing.
453 (if (and enable-multibyte-characters enable-kinsoku) 453 (if (and enable-multibyte-characters enable-kinsoku
454 (save-excursion
455 (goto-char from)
456 (skip-chars-forward "\0-\177" to)
457 (/= (point) to)))
454 (kinsoku linebeg))) 458 (kinsoku linebeg)))
455 459
456 ;; If the left margin and fill prefix by themselves 460 ;; If the left margin and fill prefix by themselves