annotate mule-doc/TAB.jp @ 161:28f395d8dc7a r20-3b7

Import from CVS: tag r20-3b7
author cvs
date Mon, 13 Aug 2007 09:42:26 +0200
parents 131b0175ea99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
1 Date: Wed, 8 Apr 92 18:51:54 JST
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
2 From: gniibe@mri.co.jp (NIIBE Yutaka)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
3 Return-Path: <gniibe@mri.co.jp>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
4 To: handa@etl.go.jp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
5 Subject: note on indent.h, indent.c, and xdisp.c
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
6
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
7 $B:G8e$KKM$N$d$C$?=$@5$K4X$7$F(B, $B3P=q$rAw$j$^$9!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
8 --
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
9 GniiBE
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
10 ================ FROM HERE ==============
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
11 compute_motion (), display_text_string () $B$K4X$9$k3P=q(B ; -*- Indented-Text -*-
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
12 Tue Apr 7 09:35:41 1992
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
13 Wed Apr 8 18:26:26 1992
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
14 GniiBE <gniibe@mri.co.jp>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
15
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
16 column $B$r85$K(B tab $B$N7W;;$O9T$J$o$l$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
17
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
18 multi width (multi column $B$GESCf$G3d$k$3$H$N$G$-$J$$(B) character
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
19 ($B4A;z$J$I(B)$B$,$"$k>l9g(B, $B0l9T$O0lDj$N(B column $B$G$"$k$H$O8B$i$J$$!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
20
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
21 ----------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
22 $B$3$s$J>l(B\\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
23 $B9g$,$"$k(B\\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
24 $B$s$G$9!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
25 ----------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
26
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 $BK\2H$N(B emacs $B$O!V0l9T$O0lDj$N(B column $B$G$"$k!W$H2>Dj$7$F$$$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28 $B$3$NItJ,$r=$@5$9$kI,MW$,$"$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30 struct position $B$K(B tab_offset $B$H$$$&(B member $B$rDI2C$7(B, $B$=$3$K(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31 tab_offset $B$NCM$rJ];}$9$k$3$H$G$3$N=$@5$r$*$3$J$&!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33 $B$3$3$G(B, tab_offset $B$H(B hpos, column $B$N4V$K$O(B,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 tab_offset + hpos = column
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37 $B$H$$$&4X78$,$"$k!#$^(B, $BAa$$OC$7$,(B column $B$r$$$A$$$A7W;;$7$J$$$G3P$((B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 $B$H$3$C$H$H$$$&$b$s$G$7$g$&!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41 * indent.h (struct position):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 tab_offset $B$H$$$&(B member $B$rDI2C$7$?!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44 * indent.c (compute_motion):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
45 truncate, lastpos $B$rDI2C!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
46 $B7W;;$NJ}K!$rJQ$($k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
47 emacs $B$N(B bug $B=$@5!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
48
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49 for ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 (1) $B%-%c%i%/%?$,$I$l$@$1?J$`$+7W;;(B;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52 (2) width $B$rD6$($k$s$@$C$?$i$=$N=hM}(B;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
55 $B$N(B (2) $B$N!VD6$($A$c$&!W$N>r7o$r!VD6$($A$c$C$?!W$KJQ99$9(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56 $B$k!#0J2<$N$h$&$K$J$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58 for ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60 (1) $B%-%c%i%/%?$,$I$l$@$1?J$`$+7W;;(B;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 (2) width $B$rD6$A$c$C$?$i$=$N=hM}(B;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 (3-1) $B1[$($A$c$&$G=hM}$5$l$?$O$:$N=hM}(B($B0l$DLa$9(B);
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 (3-2) $B1[$($A$c$&$N=hM}(B;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67 (**) pos : buffer $B>e$N0LCV(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 (**) (hpos, vpos) : $B2hLL>e$N0LCV(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
69
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70 compute_motion $B$O(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71 (i) $B$"$k(B (hpos, vpos) $B$^$GI=<($9$k$K$O$I$N(B pos $B$,BP1~$9$k$+(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72 (ii) $B$"$k(B pos $B$^$GI=<($7$?$i$I$3$N(B (hpos, vpos) $B$K$J$k$+(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73 $B$NFsDL$j$N7W;;$K;H$o$l$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75 $B$=$7$F(B, loop $B$N=*N;>r7o$O(B, (i) $B$N>l9g(B (hpos, vpos), (ii) $B$N>l9g(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 pos $B$K$J$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
78 $B$=$l$G(B,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
79
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 ---------- ($B;29M(B) ----------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81 abcdefgh\\ abcdefgh\\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 $B4A(B ^----(a) 333 ^---- cursor $B$O$3$3$K$/$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
83 ^---- (b) cursor $B$O$3$3$K$/$k!#(B ^---- $B<!$O$3$3!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84 ^---- (c) $B<!$O$3$3!#(B ----------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85 ---------- multi column character $B$N>l9g!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 multi width char. $B$N>l9g!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88 ----------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89 abcdefghi\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
90 j ^---- (a)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
91 ^---(b)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
92 ^-----(c)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
93 ----------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
94 $BIaDL$N(B char. $B$N>l9g!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
95
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
96 (i) $B$KBP$7$F(B, (3-1) $B$N=hM}$O(B, (c) $B$G9T$r1[$($?$H;W$C$F$$$k$H$3$m(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
97 $B$r(B, $B$=$NA0$G1[$($F$$$?$H(B (b) $B$K(B (hpos, vpos) $B$rLa$7(B, pos $B$b0l$DLa(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
98 $B$9=hM}$r$9$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
99
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
100 (ii) $B$KBP$7$F(B, (3-2) $B$N=hM}$O(B, (a) $B$K(B (hpos, vpos) $B$,$"$k$H;W$C$F(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
101 $B$$$k$N$r(B (b) $B$K0\$9!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
102
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
103 * indent.c (pos_tab_offset):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
104 $BK\2H$N(B pos_tab_offset $B$O!V0l9T$O0lDj$N(B column(s) $B$G$"$k!W(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
105 $B$3$H$r2>Dj$7(B, current_column $B$G(B column $B$r5a$a$F(B, $B$=$l$G(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
106 width $B$G(B % $B$H$C$?$j$7$F$$$k!#$^$:$$$N$G(B, $B=q$-D>$7!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
107
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
108 * indent.c (vmotion):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
109 pos.vpos * width $B$H$$$&!V0l9T$O0lDj$N(B column(s) $B$G$"$k!W(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
110 $B$3$H$r2>Dj$7$F$"$kItJ,$r=$@5(B, pos.tab_offset $B$rMQ$$$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
111
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
112 * xdisp.c (redisplay):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
113
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
114 -------- --------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
115 $B$3$s$J(Ba\ DEL $B$3$s$J(B\\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
116 $B>l9g(B ==> $B>l9g(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
117 ^^ ^^
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
118 -------- --------
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
119
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
120 $B$r=hM}$9$k$h$&$K(B, goto cancel $B$K$J$k>r7o$r$D$1$k!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
121
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
122 * xdisp.c (try_window):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
123 tab_offset $B$N=hM}!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
124
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
125 * xdisp.c (try_window_id):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
126 emacs $B$N(B bug $B=$@5!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
127 tab_offset $B$N=hM}!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
128
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
129 * xdisp.c (display_text_line):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
130 tab_offset $B$N=hM}!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
131 $B9TKv$N(B truncate, multi width char. $B$N>l9g(B, $$ $B$N=hM}!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
132 emacs $B$N(B bug $B=$@5!#(B
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
133