aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/fill.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 805a11eceed..47ae163cbcf 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -51,9 +51,11 @@ A value of nil means that any change in indentation starts a new paragraph."
51 "Mode-specific function to fill a paragraph, or nil if there is none. 51 "Mode-specific function to fill a paragraph, or nil if there is none.
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 do-kinsoku t 54(defvar enable-kinsoku t
55 "*Non-nil means do `kinsoku' processing. 55 "*Non-nil means enable `kinsoku' processing on filling paragraph.
56See the document of `kinsoku' for more detail.") 56`Kinsoku' processing is to prohibit specific characters to be placed
57at beginning or end of line. See the documentation of kinsoku for
58 more detail.")
57 59
58(defun set-fill-prefix () 60(defun set-fill-prefix ()
59 "Set the fill prefix to the current line up to point. 61 "Set the fill prefix to the current line up to point.
@@ -391,7 +393,8 @@ space does not end a sentence, so don't break a line there."
391 ;; Normally, move back over the single space between the words. 393 ;; Normally, move back over the single space between the words.
392 (if (= (preceding-char) ?\ ) (forward-char -1)) 394 (if (= (preceding-char) ?\ ) (forward-char -1))
393 ;; Do KINSOKU processing. 395 ;; Do KINSOKU processing.
394 (if do-kinsoku (kinsoku linebeg))) 396 (if (and enable-multibyte-characters enable-kinsoku)
397 (kinsoku linebeg)))
395 398
396 ;; If the left margin and fill prefix by themselves 399 ;; If the left margin and fill prefix by themselves
397 ;; pass the fill-column, keep at least one word. 400 ;; pass the fill-column, keep at least one word.