aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/international/kinsoku.el
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>1998-10-19 00:40:10 +0000
committerKenichi Handa <[email protected]>1998-10-19 00:40:10 +0000
commit11e60d924c1be9151f1307d349304eee8894d7eb (patch)
treeae8371033deac5119dd2f0bb628932952b6ebacc /lisp/international/kinsoku.el
parent22c47bc5ff6bbf1ecb9a72a19820d5930b733798 (diff)
(kinsoku): Check the variable enable-kinsoku.
Diffstat (limited to 'lisp/international/kinsoku.el')
-rw-r--r--lisp/international/kinsoku.el23
1 files changed, 12 insertions, 11 deletions
diff --git a/lisp/international/kinsoku.el b/lisp/international/kinsoku.el
index 3aec1a0f1b..b845774fe5 100644
--- a/lisp/international/kinsoku.el
+++ b/lisp/international/kinsoku.el
@@ -157,16 +157,17 @@ shorter.
`Kinsoku' is a Japanese word which originally means ordering to stay
in one place, and is used for the text processing described above in
the context of text formatting."
- (if (or (and
- ;; The character after point can't be placed at beginning
- ;; of line.
- (aref (char-category-set (following-char)) ?>)
- ;; We at first try to dissolve this situation by making a
- ;; line longer. If it fails, then try making a line
- ;; shorter.
- (not (kinsoku-longer)))
- ;; The character before point can't be placed at end of line.
- (aref (char-category-set (preceding-char)) ?<))
- (kinsoku-shorter linebeg)))
+ (if enable-kinsoku
+ (if (or (and
+ ;; The character after point can't be placed at beginning
+ ;; of line.
+ (aref (char-category-set (following-char)) ?>)
+ ;; We at first try to dissolve this situation by making a
+ ;; line longer. If it fails, then try making a line
+ ;; shorter.
+ (not (kinsoku-longer)))
+ ;; The character before point can't be placed at end of line.
+ (aref (char-category-set (preceding-char)) ?<))
+ (kinsoku-shorter linebeg))))
;; kinsoku.el ends here