annotate lisp/mule/kinsoku.el @ 5940:c608d4b0b75e cygwin64 tip

rescue lost branch from 64bit.backup
author Henry Thompson <ht@markup.co.uk>
date Thu, 16 Dec 2021 18:48:58 +0000
parents 4dee0387b9de
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
502
7039e6323819 [xemacs-hg @ 2001-05-04 22:41:46 by ben]
ben
parents: 333
diff changeset
1 ;; kinsoku.el -- Kinsoku (line wrap) processing for XEmacs/Mule -*- coding: iso-2022-7bit; -*-
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
4 ;; This file is part of Mule (MULtilingual Enhancement of XEmacs).
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
5 ;; This file contains Japanese and Chinese characters.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
6
5404
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
7 ;; XEmacs is free software: you can redistribute it and/or modify it
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
8 ;; under the terms of the GNU General Public License as published by the
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
9 ;; Free Software Foundation, either version 3 of the License, or (at your
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
10 ;; option) any later version.
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
11
5404
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
12 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
13 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
14 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
91b3aa59f49b Convert lisp/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 908
diff changeset
15 ;; for more details.
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
16
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
17 ;; Written by Jareth Hein (jhod@po.iijnet.or.jp) based off of
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
18 ;; code by S.Tomura, Electrotechnical Lab. (tomura@etl.go.jp) from
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
19 ;; Mule-2.3
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
20
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
21 ;;; Special characters for JIS code
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
22 ;;; "$B!!!"!#!$!%!&!'!'!(!)!*!+!,!-!.!/(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
23 ;;; "$B!0!1!2!3!4!5!6!7!8!9!:!;!<!=!>!?(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
24 ;;; "$B!@!A!B!C!D!E!F!G!H!I!J!K!L!M!N!O(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
25 ;;; "$B!P!Q!R!S!T!U!V!W!X!Y!Z![!\!]!^!_(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
26 ;;; "$B!`!a!b!c!d!e!f!g!h!i!j!k!l!m!n!o(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
27 ;;; "$B!p!q!r!s!t!u!v!w!x!y!z!{!|!}!~(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
28 ;;; "$B"!"""#"$"%"&"'"(")"*"+","-".(B "
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
29 ;;; "$B&!&"&#&$&%&&&'&(&)&*&+&,&-&.&/(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
30 ;;; "$B&0&1&2&3&4&5&6&7&8(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
31 ;;; "$B&A&B&C&D&E&F&G&H&I&J&K&L&M&N&O(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
32 ;;; "$B&P&Q&R&S&T&U&V&W&X(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
33 ;;; "$B'!'"'#'$'%'&'''(')'*'+','-'.'/(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
34 ;;; "$B'0'1'2'3'4'5'6'7'8'9':';'<'='>'?(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
35 ;;; "$B'@'A(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
36 ;;; "$B'Q'R'S'T'U'V'W'X'Y'Z'['\']'^'_!I(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
37 ;;; "$B'`'a'b'c'd'e'f'g'h'i'j'k'l'm'n'o(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
38 ;;; "$B'p'q(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
39 ;;; $B#0#1#2#3#4#5#6#7#8#9#A#B#C#D#E#F(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
40 ;;; "$B$!$#$%$'$)$C$c$e$g$n(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
41 ;;; "$B%!%#%%%'%)%C%c%e%g%n%u%v(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
42
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
43 ;;; Special characters for GB
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
44 ;;;
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
45 ;;; $A!!!"!#!$!%!&!'!(!)!*!+!,!-!.!/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
46 ;;;$A!0!1!2!3!4!5!6!7!8!9!:!;!<!=!>!?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
47 ;;;$A!@!A!B!C!D!E!F!G!H!I!J!K!L!M!N!O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
48 ;;;$A!P!Q!R!S!T!U!V!W!X!Y!Z![!\!]!^!_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
49 ;;;$A!`!a!b!c!d!e!f!g!h!i!j!k!l!m!n!o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
50 ;;;$A!p!q!r!s!t!u!v!w!x!y!z!{!|!}!~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
51 ;;; $A"1"2"3"4"5"6"7"8"9":";"<"=">"?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
52 ;;;$A"@"A"B"C"D"E"F"G"H"I"J"K"L"M"N"O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
53 ;;;$A"P"Q"R"S"T"U"V"W"X"Y"Z"["\"]"^"_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
54 ;;;$A"`"a"b"c"d"e"f"g"h"i"j"k"l"m"n"o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
55 ;;;$A"p"q"r"s"t"u"v"w"x"y"z"{"|"}"~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
56 ;;; $A#!#"###$#%#&#'#(#)#*#+#,#-#.#/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
57 ;;;$A#0#1#2#3#4#5#6#7#8#9#:#;#<#=#>#?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
58 ;;;$A#@#A#B#C#D#E#F#G#H#I#J#K#L#M#N#O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
59 ;;;$A#P#Q#R#S#T#U#V#W#X#Y#Z#[#\#]#^#_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
60 ;;;$A#`#a#b#c#d#e#f#g#h#i#j#k#l#m#n#o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
61 ;;;$A#p#q#r#s#t#u#v#w#x#y#z#{#|#}#~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
62 ;;; $A$!$"$#$$$%$&$'$($)$*$+$,$-$.$/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
63 ;;;$A$0$1$2$3$4$5$6$7$8$9$:$;$<$=$>$?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
64 ;;;$A$@$A$B$C$D$E$F$G$H$I$J$K$L$M$N$O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
65 ;;;$A$P$Q$R$S$T$U$V$W$X$Y$Z$[$\$]$^$_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
66 ;;;$A$`$a$b$c$d$e$f$g$h$i$j$k$l$m$n$o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
67 ;;;$A$p$q$r$s$t$u$v$w$x$y$z${$|$}$~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
68 ;;; $A%!%"%#%$%%%&%'%(%)%*%+%,%-%.%/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
69 ;;;$A%0%1%2%3%4%5%6%7%8%9%:%;%<%=%>%?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
70 ;;;$A%@%A%B%C%D%E%F%G%H%I%J%K%L%M%N%O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
71 ;;;$A%P%Q%R%S%T%U%V%W%X%Y%Z%[%\%]%^%_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
72 ;;;$A%`%a%b%c%d%e%f%g%h%i%j%k%l%m%n%o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
73 ;;;$A%p%q%r%s%t%u%v%w%x%y%z%{%|%}%~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
74 ;;; $A&!&"&#&$&%&&&'&(&)&*&+&,&-&.&/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
75 ;;;$A&0&1&2&3&4&5&6&7&8&9&:&;&<&=&>&?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
76 ;;;$A&@&A&B&C&D&E&F&G&H&I&J&K&L&M&N&O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
77 ;;;$A&P&Q&R&S&T&U&V&W&X&Y&Z&[&\&]&^&_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
78 ;;;$A&`&a&b&c&d&e&f&g&h&i&j&k&l&m&n&o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
79 ;;;$A&p&q&r&s&t&u&v&w&x&y&z&{&|&}&~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
80 ;;; $A'!'"'#'$'%'&'''(')'*'+','-'.'/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
81 ;;;$A'0'1'2'3'4'5'6'7'8'9':';'<'='>'?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
82 ;;;$A'@'A'B'C'D'E'F'G'H'I'J'K'L'M'N'O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
83 ;;;$A'P'Q'R'S'T'U'V'W'X'Y'Z'['\']'^'_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
84 ;;;$A'`'a'b'c'd'e'f'g'h'i'j'k'l'm'n'o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
85 ;;;$A'p'q'r's't'u'v'w'x'y'z'{'|'}'~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
86 ;;; $A(!("(#($(%(&('((()(*(+(,(-(.(/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
87 ;;;$A(0(1(2(3(4(5(6(7(8(9(:(;(<(=(>(?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
88 ;;;$A(@(A(B(C(D(E(F(G(H(I(J(K(L(M(N(O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
89 ;;;$A(P(Q(R(S(T(U(V(W(X(Y(Z([(\(](^(_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
90 ;;;$A(`(a(b(c(d(e(f(g(h(i(j(k(l(m(n(o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
91
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
92 ;;; Special characters for BIG5
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
93 ;;;
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
94 ;;; $(0!!!"!#!$!%!&!'!(!)!*!+!,!-!.!/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
95 ;;;$(0!0!1!2!3!4!5!6!7!8!9!:!;!<!=!>!?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
96 ;;;$(0!@!A!B!C!D!E!F!G!H!I!J!K!L!M!N!O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
97 ;;;$(0!P!Q!R!S!T!U!V!W!X!Y!Z![!\!]!^!_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
98 ;;;$(0!`!a!b!c!d!e!f!g!h!i!j!k!l!m!n!o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
99 ;;;$(0!p!q!r!s!t!u!v!w!x!y!z!{!|!}!~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
100 ;;; $(0"!"""#"$"%"&"'"(")"*"+","-"."/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
101 ;;;$(0"0"1"2"3"4"5"6"7"8"9":";"<"=">"?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
102 ;;;$(0"@"A"B"C"D"E"F"G"H"I"J"K"L"M"N"O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
103 ;;;$(0"P"Q"R"S"T"U"V"W"X"Y"Z"["\"]"^"_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
104 ;;;$(0"`"a"b"c"d"e"f"g"h"i"j"k"l"m"n"o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
105 ;;;$(0"p"q"r"s"t"u"v"w"x"y"z"{"|"}"~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
106 ;;; $(0#!#"###$#%#&#'#(#)#*#+#,#-#.#/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
107 ;;;$(0#0#1#2#3#4#5#6#7#8#9#:#;#<#=#>#?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
108 ;;;$(0#@#A#B#C#D#E#F#G#H#I#J#K#L#M#N#O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
109 ;;;$(0#P#Q#R#S#T#U#V#W#X#Y#Z#[#\#]#^#_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
110 ;;;$(0#`#a#b#c#d#e#f#g#h#i#j#k#l#m#n#o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
111 ;;;$(0#p#q#r#s#t#u#v#w#x#y#z#{#|#}#~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
112 ;;; $(0$!$"$#$$$%$&$'$($)$*$+$,$-$.$/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
113 ;;;$(0$0$1$2$3$4$5$6$7$8$9$:$;$<$=$>$?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
114 ;;;$(0$@$A$B$C$D$E$F$G$H$I$J$K$L$M$N$O(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
115 ;;;$(0$P$Q$R$S$T$U$V$W$X$Y$Z$[$\$]$^$_(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
116 ;;;$(0$`$a$b$c$d$e$f$g$h$i$j$k$l$m$n$o(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
117 ;;;$(0$p$q$r$s$t$u$v$w$x$y$z${$|$}$~(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
118 ;;; $(0%!%"%#%$%%%&%'%(%)%*%+%,%-%.%/(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
119 ;;;$(0%0%1%2%3%4%5%6%7%8%9%:%;%<%=%>%?(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
120
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
121 (defvar kinsoku-ascii nil "Do kinsoku-processing for ASCII.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
122 (make-variable-buffer-local 'kinsoku-ascii)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
123 (set-default 'kinsoku-ascii nil)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
124 (defvar kinsoku-jis t "Do kinsoku-processing for JISX0208.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
125 (make-variable-buffer-local 'kinsoku-jis)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
126 (set-default 'kinsoku-jis t)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
127 (defvar kinsoku-gb t "Do kinsoku-processing for GB2312.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
128 (make-variable-buffer-local 'kinsoku-gb)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
129 (set-default 'kinsoku-gb t)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
130 (defvar kinsoku-big5 t "Do kinsoku-processing for Big5..")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
131 (make-variable-buffer-local 'kinsoku-big5)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
132 (set-default 'kinsoku-big5 t)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
133
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
134 (defvar kinsoku-ascii-bol "!)-_~}]:;',.?" "BOL kinsoku for ASCII.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
135 (defvar kinsoku-ascii-eol "({[" "EOL kinsoku for ASCII.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
136 (defvar kinsoku-jis-bol
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
137 (concat "$B!"!#!$!%!&!'!(!)!*!+!,!-!.!/!0!1!2!3!4!5!6!7!8!9!:!;!<!=!>(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
138 "$B!?!@!A!B!C!D!E!G!I!K!M!O!Q!S!U!W!Y![!k!l!m!n(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
139 "$B$!$#$%$'$)$C$c$e$g$n%!%#%%%'%)%C%c%e%g%n%u%v(B")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
140 "BOL kinsoku for JISX0208.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
141 (defvar kinsoku-jis-eol
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
142 "$B!F!H!J!L!N!P!R!T!V!X!Z!k!l!m!n!w!x(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
143 "EOL kinsoku for JISX0208.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
144 (defvar kinsoku-gb-bol
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
145 (concat "$A!"!##.#,!$!%!&!'!(!)!*!+!,!-!/!1#)!3!5!7!9!;!=(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
146 "$A!?#;#:#?#!!@!A!B!C!c!d!e!f#/#\#"#_#~#|(e(B")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
147 "BOL kinsoku for GB2312.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
148 (defvar kinsoku-gb-eol
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
149 (concat "$A!.!0#"#(!2!4!6!8!:!<!>!c!d!e#@!f!l(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
150 "$A(E(F(G(H(I(J(K(L(M(N(O(P(Q(R(S(T(U(V(W(X(Y(h(B")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
151 "EOL kinsoku for GB2312.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
152 (defvar kinsoku-big5-bol
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
153 (concat "$(0!"!#!$!%!&!'!(!)!*!+!,!-!.!/!0!1!2(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
154 "$(0!3!4!5!6!7!8!9!:!;!<!=!?!A!C!E!G!I!K(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
155 "$(0!M!O!Q(B $(0!S!U!W!Y![!]!_!a!c!e!g!i!k!q(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
156 "$(0"#"$"%"&"'"(")"*"+","2"3"4"j"k"l"x%7(B")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
157 "BOL kinsoku for BIG5.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
158 (defvar kinsoku-big5-eol
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
159 (concat "$(0!>!@!B!D!F!H!J!L!N!P!R!T!V!X!Z!\!^!`!b(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
160 "$(0!d!f!h!j!k!q!p"i"j"k"n"x$u$v$w$x$y$z${(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
161 "$(0$|$}$~%!%"%#%$%%%&%'%(%)%*%+%:(B")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
162 "EOL kinsoku for BIG5.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
163
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
164 (define-category ?s "Kinsoku forbidden start of line characters")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
165 (define-category ?e "Kinsoku forbidden end of line characters")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
166
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
167 ;; kinsoku ascii
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 502
diff changeset
168 (loop for char in (string-to-list kinsoku-ascii-bol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
169 do (modify-category-entry char ?s))
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
170 (loop for char in (string-to-list kinsoku-ascii-eol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
171 do (modify-category-entry char ?e))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
172 ;; kinsoku-jis
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 502
diff changeset
173 (loop for char in (string-to-list kinsoku-jis-bol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
174 do (modify-category-entry char ?s))
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 502
diff changeset
175 (loop for char in (string-to-list kinsoku-jis-eol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
176 do (modify-category-entry char ?e))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
177 ;; kinsoku-gb
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
178 (loop for char in (string-to-list kinsoku-gb-bol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
179 do (modify-category-entry char ?s))
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
180 (loop for char in (string-to-list kinsoku-gb-eol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
181 do (modify-category-entry char ?e))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
182 ;; kinsoku-big5
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
183 (loop for char in (string-to-list kinsoku-big5-bol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
184 do (modify-category-entry char ?s))
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
185 (loop for char in (string-to-list kinsoku-big5-eol)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
186 do (modify-category-entry char ?e))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
187
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
188 (defun kinsoku-bol-p ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
189 "Check if point would break forbidden beginning-of-line rules
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
190 Uses category \'s\' to check.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
191 point$B$G2~9T$9$k$H9TF,6XB'$K?($l$k$+$I$&$+$r$+$($9!#(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
192 $B9TF,6XB'J8;z$O(B\'s\'$B$N(Bcategory$B$G;XDj$9$k!#(B"
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
193 (let ((before (char-before))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
194 (after (char-after)))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
195 (if (and after
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
196 (or
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
197 (and kinsoku-ascii (char-in-category-p after ?a))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
198 (and kinsoku-jis (or (char-in-category-p after ?j)
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
199 (and before
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
200 (char-in-category-p before ?j))))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
201 (and kinsoku-gb (or (char-in-category-p after ?c)
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
202 (and before
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
203 (char-in-category-p before ?c))))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
204 (and kinsoku-big5 (or (char-in-category-p after ?t)
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
205 (and before
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
206 (char-in-category-p before ?t))))))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
207 (char-in-category-p after ?s)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
208 nil)))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
209
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
210 (defun kinsoku-eol-p ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
211 "Check if point would break forbidden end-of-line rules
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
212 Uses category \'e\' to check.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
213 point$B$G2~9T$9$k$H9TKv6XB'$K?($l$k$+$I$&$+$r$+$($9!#(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
214 $B9TKv6XB'J8;z$O(B\'s\'$B$N(Bcategory$B$G;XDj$9$k!#(B"
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
215 (let ((before (char-before))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
216 (after (char-after)))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
217 (if (and before
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
218 (or
908
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
219 (and kinsoku-ascii (char-in-category-p before ?a))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
220 (and kinsoku-jis (or (char-in-category-p before ?j)
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
221 (and after
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
222 (char-in-category-p after ?j))))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
223 (and kinsoku-gb (or (char-in-category-p before ?c)
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
224 (and after
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
225 (char-in-category-p after ?c))))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
226 (and kinsoku-big5 (or (char-in-category-p before ?t)
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
227 (and after
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
228 (char-in-category-p after ?t))))))
aa5bf79c0076 [xemacs-hg @ 2002-07-09 09:36:53 by stephent]
stephent
parents: 771
diff changeset
229 (char-in-category-p before ?e)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
230 nil)))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
231
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
232 (defvar kinsoku-extend-limit nil
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
233 "Defines how many characters kinsoku will search forward before giving up.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
234 A value of nil equates to infinity.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
235 $B6XB'=hM}$G9T$r?-$P$7$FNI$$H>3QJ8;z?t$r;XDj$9$k!#(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
236 $BHsIi@0?t0J30$N>l9g$OL58BBg$r0UL#$9$k!#(B")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
237
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
238 (defun kinsoku-process ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
239 "Move to a point that will not break forbidden line break rules.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
240 $B6XB'$K?($l$J$$E@$X0\F0$9$k!#(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
241 point$B$,9TF,6XB'$K?($l$k>l9g$O9T$r?-$P$7$F!"6XB'$K?($l$J$$E@$rC5$9!#(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
242 point$B$,9TKv6XB'$K?($l$k>l9g$O9T$r=L$a$F!"6XB'$K?($l$J$$E@$rC5$9!#(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
243 $B$?$@$7!"9T?-$P$7H>3QJ8;z?t$,(Bkinsoku-extend-limit$B$r1[$($k$H!"(B
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
244 $B9T$r=L$a$F6XB'$K?($l$J$$E@$rC5$9!#(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
245 (let ((bol-kin nil) (eol-kin nil))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
246 (if (and (not (bolp))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
247 (not (eolp))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
248 (or (setq bol-kin (kinsoku-bol-p))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
249 (setq eol-kin (kinsoku-eol-p))))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
250 (cond(bol-kin (kinsoku-process-extend))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
251 (eol-kin (kinsoku-process-shrink))))))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
252
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
253 (defun kinsoku-process-extend ()
5384
3889ef128488 Fix misspelled words, and some grammar, across the entire source tree.
Jerry James <james@xemacs.org>
parents: 5287
diff changeset
254 "Move point forward to a point permissible for line-breaking.
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
255 $B9T$r?-$P$7$F6XB'$K?($l$J$$E@$X0\F0$9$k!#(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
256 (let ((max-column (+ fill-column
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
257 (if (and (numberp kinsoku-extend-limit)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
258 (>= kinsoku-extend-limit 0))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
259 kinsoku-extend-limit
5384
3889ef128488 Fix misspelled words, and some grammar, across the entire source tree.
Jerry James <james@xemacs.org>
parents: 5287
diff changeset
260 10000))) ;;; 10000 is deliberately unreasonably large
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
261 ch1 ch2)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
262 (while (and (setq ch1 (char-after))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
263 (<= (+ (current-column)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
264 (char-width ch1 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
265 max-column)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
266 (not (bolp))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
267 (not (eolp))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
268 (or (kinsoku-eol-p)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
269 (kinsoku-bol-p)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
270 ;;; don't break in the middle of an English word
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
271 (and (char-in-category-p ch1 ?a)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
272 (setq ch2 (char-before))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
273 (char-in-category-p ch2 ?a)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
274 (= ?w (char-syntax ch2))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
275 (= ?w (char-syntax ch1)))))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
276 (forward-char))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
277 (if (or (kinsoku-eol-p) (kinsoku-bol-p))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
278 (kinsoku-process-shrink))))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
279
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
280 (defun kinsoku-process-shrink ()
5384
3889ef128488 Fix misspelled words, and some grammar, across the entire source tree.
Jerry James <james@xemacs.org>
parents: 5287
diff changeset
281 "Move point backward to a point permissible for line-breaking.
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
282 $B9T$r=L$a$F6XB'$K?($l$J$$E@$X0\F0$9$k!#(B"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
283 (let (ch1 ch2)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
284 (while (and (not (bolp))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
285 (not (eolp))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
286 (or (kinsoku-bol-p)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
287 (kinsoku-eol-p)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
288 ;;; don't break in the middle of an English word
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
289 (and
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
290 (char-in-category-p (setq ch1 (following-char)) ?a)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
291 (char-in-category-p (setq ch2 (preceding-char)) ?a)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
292 (= ?w (char-syntax ch2))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
293 (= ?w (char-syntax ch1)))))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
294 (backward-char))))