Sync up with r21-4-11-chise-0_21-=ks-x1001.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
4         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
5         `korean-ksc5601'.
6         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
7         `=ks-x1001'.
8
9 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
10
11         * mule-charset.c (Qmap_jis_x0212): Renamed from
12         `Qjapanese_jisx0212'.
13         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
14         `japanese-jisx0212'.
15         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
16         `=jis-x0212'.
17
18 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
19
20         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
21         `Qjapanese_jisx0208'.
22         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
23         of `japanese-jisx0208'.
24         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
25         `=jis-x0208-1983'.
26
27 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
30         `Qjapanese_jisx0208_1978'.
31         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
32         of `japanese-jisx0208-1978'.
33         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
34         `=jis-x0208-1978'.
35
36 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
37
38         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
39         only for XEmacs CHISE.
40
41 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
42
43         * char-ucs.h: Compact non-ISO-IR charset-ids.
44         (LEADING_BYTE_UCS): Changed to -177.
45         (LEADING_BYTE_CONTROL_1): Changed to -77.
46         (LEADING_BYTE_UCS_BMP): Changed to -176.
47         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
48
49 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * mule-charset.c (Qiso_ir): New variable.
52         (Fmake_charset): Recognise new property `iso-ir'.
53         (syms_of_mule_charset): Add new symbol `iso-ir'.
54
55 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
56
57         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
58         n to -n; charset-id of non ISO-IR sets are changed to positive
59         numbers.
60
61 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
62
63         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
64         of `ucs'.
65         (Qmap_ucs): New variable.
66         (syms_of_mule_charset): Add new symbol `=ucs'.
67         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
68
69         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
70
71         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
72
73         * char-ucs.h (Qmap_ucs): New extern variable.
74
75 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
78         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
79         don't define it when UTF2000 is not defined.
80         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
81         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
82         when UTF2000 is not defined.
83         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
84         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
85
86 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
89
90         * mule-charset.c (Vcharset_ucs_gb): Deleted.
91         (Qucs_gb): Deleted.
92         (syms_of_mule_charset): Delete `ucs-gb'.
93         (complex_vars_of_mule_charset): Likewise.
94
95 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
96
97         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
98
99         * mule-charset.c (Vcharset_ucs_cns): Deleted.
100         (Qucs_cns): Deleted.
101         (syms_of_mule_charset): Delete `ucs-cns'.
102         (complex_vars_of_mule_charset): Likewise.
103
104 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
107
108         * mule-charset.c (Vcharset_ucs_jis): Deleted.
109         (Qucs_jis): Deleted.
110         (syms_of_mule_charset): Delete `ucs-jis'.
111         (complex_vars_of_mule_charset): Likewise.
112
113 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
114
115         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
116
117         * mule-charset.c (Vcharset_ucs_ks): Deleted.
118         (Qucs_ks): Deleted.
119         (syms_of_mule_charset): Delete `ucs-ks'.
120         (complex_vars_of_mule_charset): Likewise.
121
122 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
123
124         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
125         (Qideograph_daikanwa_2): Deleted.
126         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
127         (complex_vars_of_mule_charset): Likewise.
128
129         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
130         (LEADING_BYTE_DAIKANWA_1): Deleted.
131         (LEADING_BYTE_DAIKANWA_2): Deleted.
132         (MIN_CHAR_DAIKANWA): Deleted.
133         (MAX_CHAR_DAIKANWA): Deleted.
134
135 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
136
137         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
138         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
139         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
140
141         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
142         (Vcharset_ideograph_daikanwa): Deleted.
143         (Qideograph_hanziku_{1..12}): Deleted.
144         (Qideograph_daikanwa): Deleted.
145         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
146         Vcharset_ideograph_daikanwa.
147         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
148         `ideograph-hanziku-{1..12}'.
149         (complex_vars_of_mule_charset): Likewise.
150
151 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
152
153         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
154
155         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
156         (Qideograph_gt_pj_{1..11}): Deleted.
157         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
158         (complex_vars_of_mule_charset): Likewise.
159
160 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * mule-charset.c (Vcharset_ucs_big5): Deleted.
163         (Vcharset_ideograph_gt): Deleted.
164         (Qucs_big5): Deleted.
165         (Qideograph_gt): Deleted.
166         (syms_of_mule_charset): Delete symbol `ucs-big5' and
167         `ideograph-gt'.
168         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
169         and `ideograph-gt'.
170
171         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
172         (LEADING_BYTE_GT): Deleted.
173         (GC_CHARSETP): Deleted.
174         (MIN_CHAR_GT): Deleted.
175         (MAX_CHAR_GT): Deleted.
176
177 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
180
181 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
182
183         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
184         (Qideograph_cbeta): Deleted.
185         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
186         (complex_vars_of_mule_charset): Likewise.
187
188         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
189         (MIN_CHAR_CBETA): Comment out.
190         (MAX_CHAR_CBETA): Likewise.
191
192 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * mule-charset.c (charset_lookup_description_1): Use
195         `NUM_LEADING_BYTES' in UTF-2000.
196
197 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * mule-charset.c (Vcharset_china3_jef): Deleted.
200         (Qchina3_jef): Deleted.
201         (syms_of_mule_charset): Don't define `china3-jef'.
202         (complex_vars_of_mule_charset): Likewise.
203
204         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
205         (MIN_CHAR_CHINA3_JEF): Comment out.
206         (MAX_CHAR_CHINA3_JEF): Comment out.
207
208 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * mule-charset.c (Vcharset_ucs_gb): New variable.
211         (Qucs_gb): New variable.
212         (syms_of_mule_charset): Add new symbol `ucs-gb'.
213         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
214
215         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
216
217 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
218
219         * mule-charset.c (charset_code_point): if a coded-charset has a
220         final-byte, don't inherit the builtin range of the mother CCS.
221
222 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * mule-charset.c (charset_code_point): Fix problem about
225         inheritance.
226
227 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
228
229         * mule-charset.c (decode_builtin_char): Reorganized.
230
231 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * text-coding.c (char_encode_shift_jis): Modify for
234         `charset_code_point'.
235         (char_encode_big5): Likewise.
236         (char_encode_utf8): Likewise.
237         (char_encode_iso2022): Likewise.
238
239         * mule-charset.c (charset_code_point): Add new argument
240         `defined_only'.
241         (Fencode_char): Add new optional argument `defined_only'.
242
243         * chartab.c (put_char_table): Modify for `charset_code_point'.
244         (map_char_table): Likewise.
245
246         * char-ucs.h (charset_code_point): Add new argument
247         `defined_only'.
248         (encode_char_1): Modify for `charset_code_point'.
249
250 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
253         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
254
255 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
258         (Qjis_x0208): Likewise.
259         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
260         XCHARSET_FINAL(charset).
261         (charset_code_point): Modify condition for final-byte based
262         builtin-chars.
263         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
264         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
265         in UTF-2000; specify `=jis-x0208' as the mother of
266         `japanese-jisx0208-1978', `japanese-jisx0208' and
267         `japanese-jisx0208-1990' in UTF-2000.
268
269 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
270
271         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
272
273 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
274
275         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
276         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
277         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
278         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
279         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
280         CONVERSION_96x96x96x96 are introduced.
281         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
282         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
283         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
284
285         * char-ucs.h (CONVERSION_94): New macro.
286         (CONVERSION_96): New macro.
287         (CONVERSION_94x94): New macro.
288         (CONVERSION_96x96): New macro.
289         (CONVERSION_94x94x94): New macro.
290         (CONVERSION_96x96x96): New macro.
291         (CONVERSION_94x94x94x60): New macro.
292         (CONVERSION_94x94x94x94): New macro.
293         (CONVERSION_96x96x96x96): New macro.
294
295 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
296
297         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
298
299         * fns.c (Qideographic_structure): New variable.
300         (Qkeyword_char): New variable.
301         (ids_format_unit): New function.
302         (Fideographic_structure_to_ids): New function.
303         (syms_of_fns): Add new symbols `ideographic-structure' and
304         `:char'; add new builtin function `ideographic-structure-to-ids'.
305
306         * data.c (Fchar_ref_p): New function.
307         (syms_of_data): Add new builtin function `char-ref-p'.
308
309         * chartab.h: Add an EXFUN for `Ffind_char'.
310
311 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
312
313         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
314         and `COMPOSE_ADD_CHAR'.
315         (decode_coding_iso2022): Use `decode_flush_er_chars'.
316
317 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
318
319         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
320         instead of `DECODE_ADD_UCS_CHAR'.
321         (COMPOSE_ADD_CHAR): Likewise.
322
323 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
324
325         * text-coding.c (decode_flush_er_chars): New inline function.
326         (decode_add_er_char): New function.
327         (decode_coding_utf8): Use `decode_flush_er_chars' and
328         `decode_add_er_char'.
329
330 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
331
332         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
333         done before `decode_output_utf8_partial_char'.
334
335         * mule-charset.c (complex_vars_of_mule_charset): Specify
336         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
337         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
338
339 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
340
341         * mule-charset.c (decode_defined_char): New function; search
342         mother.
343         (decode_builtin_char): Don't search mother if
344         XCHARSET_MAX_CODE(charset) == 0.
345         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
346         == 0 even if code >= XCHARSET_MAX_CODE(charset).
347         (Fdecode_char): Use `decode_defined_char' instead of
348         `DECODE_DEFINED_CHAR'.
349         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
350         mother of `Vcharset_ucs_jis'.
351
352         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
353         instead of `DECODE_DEFINED_CHAR'.
354
355         * char-ucs.h (decode_defined_char): Renamed from
356         `DECODE_DEFINED_CHAR'; changed to normal function.
357         (DECODE_CHAR): Use `decode_defined_char' instead of
358         `DECODE_DEFINED_CHAR'.
359
360         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
361
362 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
363
364         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
365
366         * text-coding.c (Vcoded_charset_entity_reference_alist): New
367         variable.
368         (Quse_entity_reference): New variable.
369         (Qd): New variable.
370         (Qx): New variable.
371         (QX): New variable.
372         (coding_system_description): Add description for
373         `ccs_priority_list'.
374         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
375         (allocate_coding_system): Initialize `ccs_priority_list' in
376         UTF-2000.
377         (Fmake_coding_system): Add description about
378         'use-entity-reference; setup
379         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
380         (Fcoding_system_property): Accept `disable-composition' and
381         `use-entity-reference' in UTF-2000.
382         (struct decoding_stream): Add new member `er_counter' and `er_buf'
383         in UTF-2000.
384         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
385         (decode_coding_utf8): Decode entity-reference if
386         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
387         (char_encode_utf8): Encode non-Unicode characters as
388         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
389         (str->codesys).
390         (syms_of_file_coding): Add new symbols `use-entity-reference',
391         `d', `x', `X'.
392         (vars_of_file_coding): Add new variable
393         `coded-charset-entity-reference-alist'.
394         (complex_vars_of_file_coding): Declare `disable-composition' and
395         `use-entity-reference' to be coding-system-properties in UTF-2000.
396
397         * file-coding.h (struct Lisp_Coding_System): Add new member
398         `use_entity_reference' and `ccs_priority_list'.
399         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
400         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
401         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
402
403 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
404
405         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
406
407 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
408
409         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
410         `XCHARSET_GRAPHIC(ccs)'.
411
412 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
413
414         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
415         for decoding-table.
416
417 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
418
419         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
420         instead of `XCHARSET_CHARS'.
421
422 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
423
424         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
425         (XCHARSET_BYTE_SIZE): Likewise.
426
427         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
428         mule-charset.c].
429         (XCHARSET_BYTE_SIZE): Likewise.
430
431 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * char-ucs.h (decoding_table_check_elements): Delete prototype.
434         (get_ccs_octet_table): New inline function.
435         (put_ccs_octet_table): Likewise.
436         (decoding_table_put_char): Use `get_ccs_octet_table' and
437         `put_ccs_octet_table'.
438         (decoding_table_remove_char): Use `decoding_table_put_char'.
439         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
440
441         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
442         into encoding_table.
443         (make_charset): Use Qunbound instead Qnil as initial value of
444         decoding_table.
445
446 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * mule-charset.c (put_char_ccs_code_point): Modify for
449         `decoding_table_remove_char' and `decoding_table_put_char'.
450         (remove_char_ccs): Modify for `decoding_table_remove_char'.
451
452         * char-ucs.h (decoding_table_remove_char): Change arguments to
453         hide decoding_table vector.
454         (decoding_table_put_char): Likewise.
455
456 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * mule-charset.c (decoding_table_remove_char): Moved to
459         char-ucs.h.
460         (decoding_table_put_char): Likewise.
461
462         * char-ucs.h (decoding_table_check_elements): New prototype [moved
463         from mule-charset.c].
464         (decoding_table_remove_char): New inline function [moved from
465         mule-charset.c].
466         (decoding_table_put_char): Likewise.
467
468 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
469
470         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
471         instead of `DECODE_CHAR' for mother; don't use special code for
472         chinese-big5 to use code space of chinese-big5-1 and
473         chinese-big5-2.
474         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
475         `MAX_CHAR_BIG5_CDP' for chinese-big5.
476
477         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
478         (MAX_CHAR_BIG5_CDP): Revival.
479
480 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
483         the XLFD registry-encoding name of `chinese-big5'.
484
485 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
486
487         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
488         (Qchinese_big5_cdp): Deleted.
489         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
490         (complex_vars_of_mule_charset): Delete coded-charset
491         `chinese-big5-cdp'.
492
493         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
494         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
495         `CHARSET_ID_OFFSET - n' for private CCS.
496         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
497         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
498         of `MIN_LEADING_BYTE'.
499         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
500         `(CHARSET_ID_OFFSET - 97)'.
501         (MIN_CHAR_BIG5_CDP): Deleted.
502         (MAX_CHAR_BIG5_CDP): Deleted.
503
504 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
505
506         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
507         extension.
508
509 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
510
511         * mule-charset.c (decode_builtin_char): Support mother charsets.
512
513 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
514
515         * mule-charset.c (Q94x94x60): New variable.
516         (charset_code_point): Support conversion `94x94x60'.
517         (Fmake_charset): Likewise.
518         (syms_of_mule_charset): Add new symbol `94x94x60'.
519
520         * char-ucs.h (CONVERSION_94x94x60): New macro.
521
522 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
523
524         * mule-charset.c (charset_code_point): Unify code about
525         `code-offset'.
526
527 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
528
529         * mule-charset.c (charset_code_point): Merge code about builtin
530         characters into code about mother charsets; don't use
531         `range_charset_code_point'.
532         (range_charset_code_point): Deleted.
533
534 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * mule-charset.c (Qcode_offset): New variable.
537         (Fmake_charset): Use `XUINT' to get value of `min-code' and
538         `max-code'; accept new property `code-offset'.
539         (syms_of_mule_charset): Add new symbol `code-offset'.
540
541 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * mule-charset.c (range_charset_code_point): Fixed.
544
545 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * mule-charset.c (decode_builtin_char): Change semantics of
548         code-offset of coded-charset.
549         (charset_code_point): Likewise.
550         (range_charset_code_point): Likewise.
551         (complex_vars_of_mule_charset): Modify for the change.
552
553 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * mule-charset.c (Fencode_char): Reverse arguments.
556
557         * mule-charset.c (charset_code_point): Fixed.
558
559 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * mule-charset.c (Vcharset_mojikyo): Deleted.
562         (Vcharset_mojikyo_2022_1): Deleted.
563         (Vcharset_mojikyo_pj_{1..21}): Deleted.
564         (Qmin_code): New variable in UTF-2000.
565         (Qmax_code): Likewise.
566         (Qmother): Likewise.
567         (Qconversion): Likewise.
568         (Q94x60): Likewise.
569         (Qmojikyo): Deleted.
570         (Qmojikyo_2022_1): Deleted.
571         (Qmojikyo_pj_{1..22}): Deleted.
572         (mark_charset): Mark `cs->mother'.
573         (charset_description): Add description for `mother'.
574         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
575         new arguments `mother' and `conversion'; use
576         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
577         (charset_code_point): Moved from char-ucs.h; support `mother'
578         charset feature.
579         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
580         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
581         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
582         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
583         allow 2 as the value of `graphic' in UTF-2000; add new properties
584         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
585         require `final' in UTF-2000; modify for `make_charset'.
586         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
587         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
588         (Fcharset_property): Support `mother', `min-code' and `max-code'.
589         (Fencode_char): New function.
590         (syms_of_mule_charset): Add new builtin function `encode-char' in
591         UTF-2000; add new symbols `min-code', `max-code', `mother',
592         `conversion' and `94x60'; delete symbols `mojikyo',
593         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
594         (complex_vars_of_mule_charset): Modify for `make_charset' change;
595         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
596         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
597
598         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
599         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
600
601         * char-ucs.h (Vcharset_mojikyo): Deleted.
602         (Vcharset_mojikyo_2022_1): Deleted.
603         (LEADING_BYTE_MOJIKYO): Deleted.
604         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
605         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
606         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
607         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
608         add new member `mother'; add new member `conversion'.
609         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
610         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
611         (CHARSET_MOTHER): New macro.
612         (CHARSET_CONVERSION): New macro.
613         (CONVERSION_IDENTICAL): New macro.
614         (CONVERSION_94x60): New macro.
615         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
616         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
617         (XCHARSET_MOTHER): New macro.
618         (XCHARSET_CONVERSION): New macro.
619         (MIN_CHAR_MOJIKYO): Deleted.
620         (MAX_CHAR_MOJIKYO): Deleted.
621         (DECODE_MOJIKYO_2022): Deleted.
622         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
623         (charset_code_point): Changed to non-inline function.
624         (encode_char_1): Use `charset_code_point'.
625         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
626
627 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * lread.c (read_compiled_function): Fix prototype.
630         (read_vector): Likewise.
631
632 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * lrecord.h (struct lrecord_header): Delete `older'.
635         (set_lheader_implementation): Delete code for `older'.
636         (set_lheader_older_implementation): Deleted.
637         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
638         (OLDER_RECORD_P): Deleted.
639         (OLDER_RECORD_HEADER_P): Deleted.
640         (alloc_older_lcrecord): Deleted.
641         (alloc_older_lcrecord_type): Deleted.
642
643         * alloc.c (all_older_lcrecords): Deleted.
644         (alloc_older_lcrecord): Deleted.
645         (disksave_object_finalization_1): Delete code for older objects.
646         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
647         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
648
649 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
650
651         * mule-charset.c (decoding_table_put_char): Use `make_vector'
652         instead of `make_older_vector'.
653         (put_char_ccs_code_point): Likewise.
654         (mark_charset): Mark `cs->decoding_table'.
655         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
656
657         * lisp.h (make_older_vector): Deleted.
658         (make_vector_newer): Deleted.
659
660         * config.h.in (HAVE_GGC): Deleted.
661
662         * alloc.c (make_older_vector): Deleted.
663         (make_vector_newer_1): Deleted.
664         (make_vector_newer): Deleted.
665
666 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
669         (Qideograph_daikanwa_2): New variable.
670         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
671         (complex_vars_of_mule_charset): Add new coded-charset
672         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
673         `LEADING_BYTE_DAIKANWA'.
674
675         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
676         (LEADING_BYTE_DAIKANWA_1): New macro.
677         (LEADING_BYTE_DAIKANWA_2): New macro.
678         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
679
680 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * mule-charset.c (complex_vars_of_mule_charset): Change
683         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
684         the second revised version.
685
686 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * mule-charset.c (Vcharset_ucs_smp): New variable.
689         (Vcharset_ucs_sip): New variable.
690         (Qucs_smp): New variable.
691         (Qucs_sip): New variable.
692         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
693         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
694         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
695         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
696         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
697         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
698
699         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
700         (LEADING_BYTE_UCS_SIP): New macro.
701         (MIN_CHAR_SMP): New macro.
702         (MAX_CHAR_SMP): New macro.
703         (MIN_CHAR_SIP): New macro.
704         (MAX_CHAR_SIP): New macro.
705
706 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
707
708         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
709         utf-2000.
710
711 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
714         value; don't store value into `encoding_table' of `Lisp_Charset'.
715         (mark_charset): `encoding_table' was deleted.
716         (charset_description): Likewise.
717         (make_charset): Likewise.
718         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
719         `put_char_ccs_code_point'.
720
721         * chartab.h (Fput_char_attribute): New EXFUN.
722
723         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
724         is unified with normal symbol space.
725         (Fget_char_attribute): Likewise.
726         (Fput_char_attribute): Likewise; behavior of
727         `put_char_ccs_code_point' is changed.
728
729         * char-ucs.h: Include "elhash.h".
730         (Vchar_attribute_hash_table): New external variable.
731         (struct Lisp_Charset): Delete `encoding_table'.
732         (CHARSET_ENCODING_TABLE): New implementation; refer
733         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
734         `Lisp_Charset'.
735
736 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
739         (cs) == 0.
740
741 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * text-coding.c (char_encode_big5): Prefer charset-g1 than
744         `chinese-big5'.
745
746 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
747
748         * chartab.c (uint8_byte_table_description): New constant.
749         (uint8-byte-table): Use `uint8_byte_table_description'.
750         (uint16_byte_table_description): New constant.
751         (uint16-byte-table): Use `uint16_byte_table_description'.
752
753 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
754
755         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
756         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
757
758 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
759
760         * mule-charset.c (Vcharset_ucs_ks): New variable.
761         (Qucs_ks): New variable.
762         (syms_of_mule_charset): Add new symbol `ucs-ks'.
763         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
764
765         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
766
767 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
768
769         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
770         (Fdecode_char): Likewise.
771
772         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
773         chartab.h.
774         (Fdefine_char): Modify for Fdecode_char.
775         (Ffind_char): Likewise.
776
777         * mule-charset.c (Fdecode_char): Add new optional argument
778         `defined-only'.
779         (Fdecode_builtin_char): Modify for `Fdecode_char'.
780
781 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
784         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
785         (allocate_coding_system): Initialize initial-charsets of
786         CODESYS_BIG5 in XEmacs UTF-2000.
787         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
788         CODESYS_BIG5 in XEmacs UTF-2000.
789         (decode_coding_big5): Use initial-charset-g0 and -g1 of
790         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
791
792         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
793         variables.
794         (Qideograph_hanziku_{1 .. 12}): Likewise.
795         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
796         .. 12}'.
797         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
798         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
799         `ideograph-hanziku-{1 .. 12}'.
800
801         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
802         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
803         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
804         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
805         (DECODE_DEFINED_CHAR): New inline function.
806         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
807
808 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
809
810         * mule-charset.c (Vcharset_china3_jef): Renamed from
811         `Vcharset_japanese_jef_china3'.
812         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
813         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
814         `{MIN|MAX}_CHAR_JEF_CHINA3'..
815         (syms_of_mule_charset): Rename `china3-jef' from
816         `japanese-jef-china3'.
817         (complex_vars_of_mule_charset): Likewise; rename
818         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
819
820         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
821         `LEADING_BYTE_JEF_CHINA3'.
822         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
823         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
824
825 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * mule-charset.c (encode_builtin_char_1): Comment out special code
828         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
829
830         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
831         (MAX_CHAR_MOJIKYO_0): Comment out.
832         (MIN_CHAR_CBETA): Changed to 0x00E20000.
833         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
834         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
835         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
836
837 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
838
839         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
840         (Qideograph_cbeta): New variable.
841         (encode_builtin_char_1): Comment out special code for
842         coded-charset `mojikyo' and `japanese-jef-china3'.
843         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
844         (complex_vars_of_mule_charset): Add new coded-charset
845         `ideograph-cbeta'.
846
847         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
848         (MIN_CHAR_CBETA): New macro.
849         (MAX_CHAR_CBETA): New macro.
850
851 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
854         (LEADING_BYTE_JEF_CHINA3): New macro.
855         (MIN_CHAR_JEF_CHINA3): New macro.
856         (MAX_CHAR_JEF_CHINA3): Likewise.
857         (DECODE_CHAR): Fixed.
858
859 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
862         (Qjapanese_jef_china3): New variable.
863         (encode_builtin_char_1): Support `japanese-jef-china3'.
864         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
865         (complex_vars_of_mule_charset): Add new coded-charset
866         `japanese-jef-china3'.
867
868 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
871         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
872         94^4, 96^3, 96^4, 128^n and 256^n set.
873         (put_char_table): Use `XCHARSET_CELL_RANGE'.
874         (map_char_table): Likewise.
875
876 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
877
878         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
879         UTF-2000.
880
881 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * chartab.h (get_char_id_table): New inline function.
884
885         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
886         function.
887
888 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
889
890         * chartab.h (decode_char_table_range): New prototype in XEmacs
891         UTF-2000.
892         (put_char_id_table): New inline function in XEmacs UTF-2000.
893
894         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
895         function.
896         (decode_char_table_range): Delete static declaration in XEmacs
897         UTF-2000.
898
899 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * chartab.c (put_char_id_table): Use `put_char_table'.
902
903 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
906         (map_over_uint16_byte_table): Likewise.
907         (map_over_byte_table): Likewise.
908         (map_char_table): Modify for `map_over_uint8_byte_table',
909         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
910         UTF-2000.
911
912 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
913
914         * chartab.c (struct map_char_table_for_charset_arg): New
915         structure.
916         (map_char_table_for_charset_fun): New function.
917         (map_char_table): Use `map_char_table' for encoding_table of
918         `range->charset'.
919
920 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * chartab.c (map_char_table): Check a character is found in
923         range->charset instead of non default value is defined in
924         char-table when range is CHARTAB_RANGE_ROW.
925
926 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * chartab.c (map_char_id_table): Deleted.
929         (Fmap_char_attribute): Use `map_char_table' instead of
930         `map_char_id_table'.
931
932 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
933
934         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
935         UTF-2000.
936         (update_syntax_table): Deleted in XEmacs UTF-2000.
937
938         * syntax.c (find_defun_start): Use `syntax_table' instead of
939         `mirror_syntax_table' in XEmacs UTF-2000.
940         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
941         UTF-2000.
942         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
943         XEmacs UTF-2000.
944         (Fmatching_paren): Likewise.
945         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
946         in XEmacs UTF-2000.
947         (find_start_of_comment): Likewise.
948         (find_end_of_comment): Likewise.
949         (Fforward_comment): Likewise.
950         (scan_lists): Likewise.
951         (char_quoted): Likewise.
952         (Fbackward_prefix_chars): Likewise.
953         (scan_sexps_forward): Likewise.
954         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
955         (update_syntax_table): Likewise.
956
957         * search.c (skip_chars): Use `syntax_table' instead of
958         `mirror_syntax_table' in XEmacs UTF-2000.
959         (wordify): Likewise.
960         (Freplace_match): Likewise.
961
962         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
963         `mirror_syntax_table' in XEmacs UTF-2000.
964         (WORDCHAR_P_UNSAFE): Likewise.
965         (re_match_2_internal): Likewise.
966
967         * font-lock.c (find_context): Use `buf->syntax_table' instead of
968         `buf->mirror_syntax_table' in XEmacs UTF-2000.
969
970         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
971         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
972
973         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
974         XEmacs UTF-2000.
975
976         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
977         UTF-2000.
978         (print_char_table): Print `default_value' in XEmacs UTF-2000.
979         (char_table_description): Delete `mirror_table' in XEmacs
980         UTF-2000.
981         (fill_char_table): Don't call `update_syntax_table' in XEmacs
982         UTF-2000.
983         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
984         (Fcopy_char_table): Likewise.
985         (put_char_table): Don't call `update_syntax_table' in XEmacs
986         UTF-2000.
987
988         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
989         `buf->mirror_syntax_table' in XEmacs UTF-2000.
990         (casify_region_internal): Likewise.
991
992         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
993
994         * buffer.c (common_init_complex_vars_of_buffer): Don't use
995         `mirror_syntax_table' in XEmacs UTF-2000.
996
997         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
998         `buf->mirror_syntax_table' in XEmacs UTF-2000.
999         (Fexpand_abbrev): Likewise.
1000
1001 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1002
1003         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1004
1005 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1008         (map_over_uint16_byte_table): Likewise.
1009         (map_over_byte_table): Likewise.
1010         (get_char_id_table): Refer `cit->default_value'.
1011         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1012         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1013         of character-id ranges.
1014         (mark_char_table): Mark `ct->default_value'.
1015         (char_table_description): Add `default_value'.
1016         (fill_char_table): Use `default_value'.
1017         (decode_char_table_range): Decode `nil' as
1018         `CHARTAB_RANGE_DEFAULT'.
1019         (get_char_id_table): Refer `cit->default_value'.
1020         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1021         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1022         temporary hack; check value of char-table is bound or not.
1023         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1024
1025         * chartab.h (struct Lisp_Char_Table): Add new member
1026         `default_value' in XEmacs UTF-2000.
1027         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1028         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1029         UTF-2000.
1030
1031 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * chartab.h (Lisp_Char_ID_Table): Deleted.
1034
1035         * chartab.c (char_table_description): Fix typo.
1036         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1037         `Lisp_Char_ID_Table'.
1038
1039 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1040
1041         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1042         `CHAR_ID_TABLE_P'.
1043
1044         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1045         `CHAR_ID_TABLE_P'.
1046
1047         * chartab.h (XCHAR_ID_TABLE): Deleted.
1048         (XSETCHAR_ID_TABLE): Deleted.
1049         (CHAR_ID_TABLE_P): Deleted.
1050
1051         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1052         `CHAR_ID_TABLE_P'.
1053         (Fget_composite_char): Likewise.
1054         (put_char_table): Likewise.
1055         (add_char_attribute_alist_mapper): Fixed.
1056         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1057         `CHAR_ID_TABLE_P'.
1058         (Fget_char_attribute): Likewise.
1059         (Fget_char_attribute): Likewise.
1060         (Fmap_char_attribute): Likewise.
1061
1062         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1063         `CHAR_ID_TABLE_P'.
1064         (encode_char_1): Likewise.
1065
1066 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067
1068         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1069         `XCHAR_ID_TABLE'.
1070
1071         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1072         instead of `XCHAR_ID_TABLE'.
1073         (remove_char_ccs): Likewise.
1074
1075         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1076         `XCHAR_ID_TABLE'.
1077         (Fget_composite_char): Likewise.
1078         (Fchar_variants): Likewise.
1079         (put_char_table): Likewise.
1080         (add_char_attribute_alist_mapper): Likewise.
1081         (Fchar_attribute_alist): Likewise.
1082         (Fget_char_attribute): Likewise.
1083         (Fput_char_attribute): Likewise.
1084         (Fmap_char_attribute): Likewise.
1085         (Fmap_char_attribute): Likewise.
1086
1087         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1088         `XCHAR_ID_TABLE'.
1089         (encode_char_1): Likewise.
1090
1091 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1094         `Lisp_Char_ID_Table'.
1095         (mark_char_id_table): Deleted.
1096         (print_char_id_table): Likewise.
1097         (char_id_table_equal): Likewise.
1098         (char_id_table_hash): Likewise.
1099         (char_id_table_description): Likewise.
1100         (char_id_table): Likewise.
1101         (make_char_id_table): Use `Fmake_char_table' and
1102         `fill_char_table'.
1103         (get_char_id_table): Use `Lisp_Char_Table' instead of
1104         `Lisp_Char_ID_Table'.
1105         (put_char_id_table): Likewise.
1106         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1107         `XCHAR_ID_TABLE'.
1108         (Fremove_char_attribute): Likewise.
1109         (syms_of_chartab): Don't define type `char-id-table'.
1110
1111         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1112         (char_id_table): Likewise.
1113         (GC_CHAR_ID_TABLE_P): Likewise.
1114         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1115         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1116         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1117         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1118         (get_char_id_table): Use `Lisp_Char_Table' instead of
1119         `Lisp_Char_ID_Table'.
1120         (put_char_id_table_0): Likewise.
1121         (put_char_id_table): Likewise.
1122
1123 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1124
1125         * chartab.h: Lisp_Byte_Table related codes are moved from
1126         chartab.h.
1127
1128         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1129
1130 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1131
1132         * chartab.h: Don't include "chartab.h".
1133         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1134         (Lisp_Char_ID_Table): Likewise.
1135         (char_id_table): Likewise.
1136         (XCHAR_ID_TABLE): Likewise.
1137         (XSETCHAR_ID_TABLE): Likewise.
1138         (CHAR_ID_TABLE_P): Likewise.
1139         (GC_CHAR_ID_TABLE_P): Likewise.
1140         (get_char_id_table): Likewise.
1141
1142         * char-ucs.h: Include "chartab.h".
1143         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1144         (Lisp_Char_ID_Table): Likewise.
1145         (char_id_table): Likewise.
1146         (XCHAR_ID_TABLE): Likewise.
1147         (XSETCHAR_ID_TABLE): Likewise.
1148         (CHAR_ID_TABLE_P): Likewise.
1149         (GC_CHAR_ID_TABLE_P): Likewise.
1150         (get_char_id_table): Likewise.
1151
1152 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1153
1154         * chartab.c (copy_uint8_byte_table): New function.
1155         (copy_uint16_byte_table): New function.
1156         (copy_byte_table): New function.
1157         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1158         characters to call.
1159         (map_over_uint16_byte_table): Likewise.
1160         (map_over_byte_table): Likewise.
1161         (get_byte_table): Move prototype to chartab.h.
1162         (put_byte_table): Likewise.
1163         (put_char_id_table_0): Moved to chartab.h.
1164         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1165         (char_table_entry_equal): Likewise.
1166         (char_table_entry_hash): Likewise.
1167         (char_table_entry_description): Likewise.
1168         (char_table_entry): Likewise.
1169         (make_char_table_entry): Likewise.
1170         (copy_char_table_entry): Likewise.
1171         (get_non_ascii_char_table_value): Likewise.
1172         (map_over_charset_ascii): Likewise.
1173         (map_over_charset_control_1): Likewise.
1174         (map_over_charset_row): Likewise.
1175         (map_over_other_charset): Likewise.
1176         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1177         (print_char_table): Likewise.
1178         (char_table_equal): Likewise.
1179         (char_table_hash): Likewise.
1180         (char_table_description): Likewise.
1181         (fill_char_table): Likewise.
1182         (Fcopy_char_table): Likewise.
1183         (get_char_table): Likewise.
1184         (Fget_range_char_table): Likewise.
1185         (put_char_table): Likewise.
1186         (map_char_table): Likewise.
1187         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1188         UTF-2000.
1189
1190 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1193         `Vauto_fill_chars' in XEmacs UTF-2000.
1194
1195         * chartab.h (get_byte_table): New prototype [moved from
1196         chartab.c].
1197         (put_byte_table): Likewise [moved from chartab.c].
1198         (put_char_id_table_0): New inline function [moved from chartab.c].
1199         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1200         (Lisp_Char_Table_Entry): Likewise.
1201         (char_table_entry): Likewise.
1202         (XCHAR_TABLE_ENTRY): Likewise.
1203         (XSETCHAR_TABLE_ENTRY): Likewise.
1204         (CHAR_TABLE_ENTRYP): Likewise.
1205         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1206         (NUM_ASCII_CHARS): Likewise.
1207         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1208         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1209
1210 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211
1212         * chartab.c (get_char_id_table): Change interface.
1213         (put_char_id_table_0): New function.
1214         (put_char_id_table): Change interface; new implementation.
1215         (Fget_composite_char): Modify for interface change of
1216         `get_char_id_table'.
1217         (Fchar_variants): Likewise.
1218         (add_char_attribute_alist_mapper): Likewise.
1219         (Fchar_attribute_alist): Likewise.
1220         (Fget_char_attribute): Likewise.
1221         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1222         as same as character as the first argument like `put-char-table';
1223         modify for interface change of `put_char_id_table'.
1224         (Fremove_char_attribute): Modify for interface change of
1225         `put_char_id_table'.
1226
1227 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * text-coding.c: Sync up with XEmacs 21.2.41.
1230         (COMPOSE_ADD_CHAR): Modify for interface change of
1231         `get_char_id_table'.
1232
1233         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1234         change of `put_char_id_table'.
1235         (remove_char_ccs): Likewise.
1236
1237         * chartab.h (put_char_id_table): Change interface.
1238
1239         * char-ucs.h (get_char_id_table): Change interface.
1240         (charset_code_point): Modify for interface change of
1241         `get_char_id_table'.
1242         (encode_char_1): Likewise.
1243
1244 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1245
1246         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1247         argument `ccs'.
1248         (map_over_uint16_byte_table): Likewise.
1249         (map_over_byte_table): Likewise.
1250         (map_char_id_table): Add new argument `range' like
1251         `map_char_table'.
1252         (Fmap_char_attribute): Add new argument `range' like
1253         `Fmap_char_table'.
1254
1255 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1256
1257         * chartab.c (map_over_uint8_byte_table): Change interface of
1258         mapping function to use struct chartab_range instead of Emchar.
1259         (map_over_uint16_byte_table): Likewise.
1260         (map_over_byte_table): Likewise.
1261         (map_char_id_table): Likewise.
1262         (struct slow_map_char_id_table_arg): Deleted.
1263         (slow_map_char_id_table_fun): Deleted.
1264         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1265         function `slow_map_char_table_fun' instead of struct
1266         `slow_map_char_id_table_arg' and function
1267         `slow_map_char_id_table_fun'.
1268
1269 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270
1271         * mule-charset.c: Move char-it-table related codes to chartab.c.
1272         (Vutf_2000_version): Moved to chartab.c.
1273         (Fdefine_char): Likewise.
1274         (Ffind_char): Likewise.
1275         (syms_of_mule_charset): Move types `uint8-byte-table',
1276         `uint16-byte-table', `byte-table' and `char-id-table' to
1277         chartab.c; move functions `char_attribute_list,
1278         `find_char_attribute_table, `char_attribute_alist,
1279         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1280         `map_char_attribute, `define_char, `find_char, `char_variants and
1281         `get_composite_char to chartab.c; move symbols `=>ucs',
1282         `->decomposition', `compat', `isolated', `initial', `medial',
1283         `final', `vertical', `noBreak', `fraction', `super', `sub',
1284         `circle', `square', `wide', `narrow', `small' and `font' to
1285         chartab.c.
1286         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1287         setting codes for `Vcharacter_composition_table' and
1288         `Vcharacter_variant_table' to chartab.c.
1289         (complex_vars_of_mule_charset): Move setting code for
1290         `Vchar_attribute_hash_table' to chartab.c.
1291
1292         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1293         (make_char_id_table): New prototype.
1294         (put_char_id_table): Likewise.
1295         (Fget_char_attribute): Likewise.
1296
1297         * chartab.c: Move char-id-table related code from mule-charset.c.
1298         (Vutf_2000_version): Moved from mule-charset.c.
1299
1300         * char-ucs.h (Qucs): New external variable.
1301         (put_char_ccs_code_point): New prototype.
1302         (remove_char_ccs): Likewise.
1303
1304 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1305
1306         * mule-charset.c (Vcharset_ucs_jis): New variable.
1307         (Qucs_jis): Likewise.
1308         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1309         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1310
1311         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1312
1313 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1314
1315         * mule-charset.c (map_over_uint8_byte_table): New function.
1316         (map_over_uint16_byte_table): Likewise.
1317         (map_over_byte_table): Likewise.
1318         (map_char_id_table): Likewise.
1319         (slow_map_char_id_table_fun): Likewise.
1320         (Fmap_char_attribute): Likewise.
1321         (syms_of_mule_charset): Add new function `map-char-attribute'.
1322
1323 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324
1325         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1326         (syms_of_mule_charset): Add new function `find-char'.
1327
1328 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1331         XEmacs UTF-2000.
1332         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1333         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1334         XEmacs UTF-2000.
1335         (complex_vars_of_mule_charset): Add new coded-charset
1336         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1337         `ideograph-gt-pj-*'.
1338
1339         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1340
1341 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342
1343         * mule-charset.c (encode_builtin_char_1): Purge codes about
1344         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1345         {MIN|MAX}_CHAR_HEBREW.
1346         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1347         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1348
1349         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1350         (MAX_CHAR_GREEK): Purged.
1351         (MIN_CHAR_CYRILLIC): Purged.
1352         (MAX_CHAR_CYRILLIC): Purged.
1353         (MIN_CHAR_HEBREW): Commented out.
1354         (MAX_CHAR_HEBREW): Likewise.
1355
1356 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * mule-charset.c (Qto_ucs): New variable.
1359         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1360         (Fdefine_char): Likewise.
1361         (syms_of_mule_charset): Add new symbol `=>ucs'.
1362
1363 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * mule-charset.c (Fdecode_char): Fixed.
1366
1367 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1370         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1371         "tcvn5712-1".
1372
1373 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * mule-charset.c (Vcharset_ucs_big5): New variable.
1376         (Qucs_big5): Likewise.
1377         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1378         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1379
1380         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1381
1382 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * mule-charset.c (decode_builtin_char): Check Big5 code range
1385         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1386
1387 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1390         (Qchinese_gb12345): Likewise.
1391         (Fdecode_builtin_char): Fixed.
1392         (syms_of_mule_charset): Add `chinese-gb12345'.
1393         (complex_vars_of_mule_charset): Add coded-charset
1394         `chinese-gb12345'.
1395
1396         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1397         (LEADING_BYTE_CHINESE_GB12345): New macro.
1398
1399 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1400
1401         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1402         and `latin-viscii-upper' for `latin-viscii'.
1403
1404 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * mule-charset.c (Fdecode_builtin_char): Comment out
1407         regularization code for ISO-IR GR representation.
1408
1409 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * mule-charset.c (decode_builtin_char): New function; renamed from
1412         `make_builtin_char'; return -1 instead of signal.
1413         (Fdecode_builtin_char): Use `decode_builtin_char'.
1414
1415         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1416         `make_builtin_char'.
1417         (DECODE_CHAR): Use `decode_builtin_char' instead of
1418         `make_builtin_char'; use mapping table of `chinese-big5' for
1419         `chinese-big5-{1,2}'.
1420
1421 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1422
1423         * text-coding.c (char_encode_big5): New function.
1424         (char_finish_big5): Likewise.
1425         (reset_encoding_stream): Use `char_encode_big5' and
1426         `char_finish_big5' for CODESYS_BIG5.
1427         (mule_encode): Don't use `encode_coding_big5'.
1428         (encode_coding_big5): Deleted.
1429
1430 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1431
1432         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1433         0x81- in XEmacs UTF-2000.
1434         (detect_coding_big5): Likewise.
1435
1436 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1439         generate character-id if the CCS property does not have
1440         corresponding predefined character.
1441         (make_builtin_char): Return -1 if corresponding predefined
1442         character is not found.
1443         (Fdecode_char): Return nil if corresponding character is not
1444         found.
1445         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1446         don't map to builtin ucs space.
1447
1448 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1449
1450         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1451         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1452
1453 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454
1455         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1456         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1457         (Qideograph_gt): Likewise.
1458         (Qideograph_gt_pj_{1..11}): Likewise.
1459         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1460         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1461         `ideograph-gt-pj-11'.
1462         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1463         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1464         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1465
1466         * char-ucs.h (LEADING_BYTE_GT): New macro.
1467         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1468         (MIN_CHAR_GT): Likewise.
1469         (MAX_CHAR_GT): Likewise.
1470
1471 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1472
1473         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1474         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1475
1476         * doprnt.c (unsigned_int_converters): Add `c'.
1477         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1478
1479         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1480         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1481         `MIN_CHAR_MOJIKYO'.
1482         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1483         (MAX_CHAR_MOJIKYO_0): New macro.
1484         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1485
1486 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1487
1488         * mule-charset.c (Fdefine_char): Delete cemented out code.
1489         (encode_builtin_char_1): Modify for new allocation of builtin
1490         Mojikyo characters.
1491
1492         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1493
1494 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1495
1496         * mule-charset.c (Vcharset_ucs_cns): New variable.
1497         (Qucs_cns): New variable.
1498         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1499         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1500
1501 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1504
1505 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1506
1507         * search.c (search_buffer): Make `charset_base_code' as
1508         character-id >> 6 to eliminate the corresponding last byte in
1509         UTF-8 representation [I'm not sure it is right thing].
1510         (boyer_moore): Likewise.
1511
1512 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1513
1514         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1515         representation in MULE.
1516
1517 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1518
1519         * text-coding.c (Fmake_coding_system): Use
1520         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1521         `EXTERNAL_PROPERTY_LIST_LOOP'.
1522
1523 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1524
1525         * text-coding.c (decode_output_utf8_partial_char): New function.
1526         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1527
1528 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1529
1530         * text-coding.c (decode_coding_utf8): Output original byte
1531         sequence if it is broken; change order of conditions.
1532
1533         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1534         of conditions.
1535
1536         * mb-multibyte.h (BYTE_ASCII_P):
1537         Use bit ops for char-signedness safety.
1538         (BYTE_C0_P): Use bit ops for char-signedness safety.
1539         (BYTE_C1_P): Use bit ops for char-signedness safety.
1540
1541         * character.h: (XCHAR_OR_CHAR_INT):
1542         Always use inline function.
1543         Remove redundant type checking assert() - XINT will abort quite
1544         nicely.
1545
1546 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547
1548         * text-coding.c: (Fencode_shift_jis_char):
1549         (Fencode_big5_char):
1550         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1551         Replace 0 with '\0' when working with bytes.
1552         Replace initial "(" with "\(" in docstrings.
1553
1554         (Fmake_coding_system):
1555         When type is ccl and value is vector, register it with a proper
1556         symbol.  And checks whether the given ccl program is valid.
1557         (mule_decode): When calling ccl_driver, if src indicates
1558         NULL pointer, set an empty string instead.
1559         (mule_encode): Likewise.
1560
1561         (detect_eol_type):
1562         (detect_coding_sjis):
1563         (decode_coding_sjis):
1564         (detect_coding_big5):
1565         (decode_coding_big5):
1566         (detect_coding_ucs4):
1567         (decode_coding_ucs4):
1568         (detect_coding_utf8):
1569         (decode_coding_utf8):
1570         (detect_coding_iso2022):
1571         (decode_coding_iso2022):
1572         (decode_coding_no_conversion):
1573         (mule_decode):
1574         Make all detecting and decoding functions take an Extbyte * arg.
1575         (text_encode_generic):
1576         (encode_coding_big5):
1577         (encode_coding_no_conversion):
1578         (mule_encode):
1579         Make all encoding functions take a Bufbyte * arg.
1580         Use size_t instead of unsigned int for memory sizes.
1581         Only cast to unsigned char whenever dereferencing Extbyte *.
1582
1583         (struct lrecord_description fcd_description_1): Use countof.
1584         (complex_vars_of_file_coding):
1585         Use countof instead of sizeof.
1586         Use CHECK_NATNUM instead of CHECK_INT.
1587
1588 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589
1590         * mule-charset.c (Fget_char_attribute): Add new optional argument
1591         `default-value'.
1592         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1593         (remove_char_ccs): Likewise.
1594
1595 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * text-coding.c (char_encode_shift_jis): New implementation in
1598         UTF-2000.
1599         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1600         ...)'.
1601
1602         * mule-charset.c (Vcharset_chinese_big5): New variable in
1603         UTF-2000.
1604         (Qchinese_big5): New variable in UTF-2000.
1605         (BIG5_SAME_ROW): New macro in UTF-2000.
1606         (make_builtin_char): Use builtin characters of
1607         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1608         characters of `Vcharset_chinese_big5'.
1609         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1610         (complex_vars_of_mule_charset): Add new coded-charset
1611         `chinese-big5' in UTF-2000.
1612
1613         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1614         (Vcharset_chinese_big5): New external variable declaration.
1615         (Vcharset_japanese_jisx0208_1990): Likewise.
1616
1617 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1618
1619         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1620         function.
1621         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1622
1623 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1624
1625         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1626         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1627         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1628         `mojikyo-pj-*'.
1629
1630 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631
1632         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1633
1634 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635
1636         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1637         to 0.17.
1638
1639 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640
1641         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1642         for `CHARSET_BY_ATTRIBUTES'.
1643         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1644         `CHARSET_BY_ATTRIBUTES'.
1645
1646         * text-coding.c (struct decoding_stream): Rename member `CH' to
1647         `CPOS'.
1648         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1649         (decode_coding_sjis): Likewise.
1650         (decode_coding_big5): Likewise.
1651         (decode_coding_ucs4): Likewise.
1652         (decode_coding_utf8): Likewise.
1653         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1654         `CHARSET_BY_ATTRIBUTES'.
1655         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1656         `str->counter'; decode 3, 4 bytes sets.
1657         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1658         sets.
1659         (decode_coding_no_conversion): Use `str->cpos' instead of
1660         `str->ch'.
1661
1662         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1663         (Qmojikyo_2022_1): New variable.
1664         (make_charset): Don't use `CHARSET_TYPE_*'.
1665         (range_charset_code_point): Support coded-charset
1666         `mojikyo-2022-1'.
1667         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1668         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1669         `CHARSET_BY_ATTRIBUTES'.
1670         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1671         `CHARSET_BY_ATTRIBUTES'.
1672         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1673         (complex_vars_of_mule_charset): Add new coded-charset
1674         `mojikyo-2022-1'.
1675
1676         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1677         interface; changed to inline function.
1678
1679         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1680         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1681         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1682         (CHARSET_TYPE_94): Deleted.
1683         (CHARSET_TYPE_94X94): Deleted.
1684         (CHARSET_TYPE_96): Deleted.
1685         (CHARSET_TYPE_96X96): Deleted.
1686         (CHARSET_TYPE_128): Deleted.
1687         (CHARSET_TYPE_128X128): Deleted.
1688         (CHARSET_TYPE_256): Deleted.
1689         (CHARSET_TYPE_256X256): Deleted.
1690         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1691         to inline function.
1692         (DECODE_MOJIKYO_2022): New inline function.
1693         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1694         `Vcharset_mojikyo_2022_1'.
1695
1696 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1697
1698         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1699         instead of `EQ'.
1700         (put_byte_table): Likewise.
1701         (char_id_table_equal): Use `get_byte_table' [new implementation].
1702
1703 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1704
1705         * mule-charset.c: Include <limits.h> in UTF-2000.
1706         (BT_UINT8_MIN): New macro in UTF-2000.
1707         (BT_UINT8_MAX): New macro in UTF-2000.
1708         (BT_UINT8_t): New macro in UTF-2000.
1709         (BT_UINT8_nil): New macro in UTF-2000.
1710         (BT_UINT8_unbound): New macro in UTF-2000.
1711         (INT_UINT8_P): New inline function in UTF-2000.
1712         (UINT8_VALUE_P): New inline function in UTF-2000.
1713         (UINT8_ENCODE): New inline function in UTF-2000.
1714         (UINT8_DECODE): New inline function in UTF-2000.
1715         (mark_uint8_byte_table): New function in UTF-2000.
1716         (print_uint8_byte_table): New function in UTF-2000.
1717         (uint8_byte_table_equal): New function in UTF-2000.
1718         (uint8_byte_table_hash): New function in UTF-2000.
1719         (make_uint8_byte_table): New function in UTF-2000.
1720         (uint8_byte_table_same_value_p): New function in UTF-2000.
1721         (BT_UINT16_MIN): New macro in UTF-2000.
1722         (BT_UINT16_MAX): New macro in UTF-2000.
1723         (BT_UINT16_t): New macro in UTF-2000.
1724         (BT_UINT16_nil): New macro in UTF-2000.
1725         (BT_UINT16_unbound): New macro in UTF-2000.
1726         (INT_UINT16_P): New inline function in UTF-2000.
1727         (UINT16_VALUE_P): New inline function in UTF-2000.
1728         (UINT16_ENCODE): New inline function in UTF-2000.
1729         (UINT16_DECODE): New inline function in UTF-2000.
1730         (UINT8_TO_UINT16): New inline function in UTF-2000.
1731         (mark_uint16_byte_table): New function in UTF-2000.
1732         (print_uint16_byte_table): New function in UTF-2000.
1733         (uint16_byte_table_equal): New function in UTF-2000.
1734         (uint16_byte_table_hash): New function in UTF-2000.
1735         (make_uint16_byte_table): New function in UTF-2000.
1736         (uint16_byte_table_same_value_p): New function in UTF-2000.
1737         (print_byte_table): New function in UTF-2000.
1738         (byte-table): Use `print_byte_table' as printer.
1739         (make_byte_table): Delete second argument `older'.
1740         (byte_table_same_value_p): New function in UTF-2000.
1741         (copy_byte_table): Deleted.
1742         (get_byte_table): New function in UTF-2000.
1743         (put_byte_table): New function in UTF-2000.
1744         (print_char_id_table): New function in UTF-2000.
1745         (char-id-table): Use `print_char_id_table' as printer.
1746         (make_char_id_table): Delete second argument `older'.
1747         (get_char_id_table): Use `get_byte_table [new implementation].
1748         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1749         implementation].
1750         (Ffind_char_attribute_table): New function in UTF-2000.
1751         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1752         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1753         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1754         (syms_of_mule_charset): Add new function
1755         `find-char-attribute-table' in UTF-2000.
1756
1757         * lrecord.h (enum lrecord_type): Add
1758         `lrecord_type_uint16_byte_table' and
1759         `lrecord_type_uint8_byte_table'.
1760
1761         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1762         (Lisp_Uint8_Byte_Table): New type.
1763         (XUINT8_BYTE_TABLE): New macro.
1764         (XSETUINT8_BYTE_TABLE): New macro.
1765         (UINT8_BYTE_TABLE_P): New macro.
1766         (GC_UINT8_BYTE_TABLE_P): New macro.
1767         (struct Lisp_Uint16_Byte_Table): New structure.
1768         (Lisp_Uint16_Byte_Table): New type.
1769         (XUINT16_BYTE_TABLE): New macro.
1770         (XSETUINT16_BYTE_TABLE): New macro.
1771         (UINT16_BYTE_TABLE_P): New macro.
1772         (GC_UINT16_BYTE_TABLE_P): New macro.
1773
1774 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1777         (Vcharacter_ideographic_strokes_table): Deleted.
1778         (Vcharacter_total_strokes_table): Deleted.
1779         (Vcharacter_morohashi_daikanwa_table): Deleted.
1780         (Vcharacter_decomposition_table): Deleted.
1781         (Qname): Deleted because it is duplicated.
1782         (Qideographic_radical): Deleted.
1783         (Qideographic_strokes): Deleted.
1784         (Qtotal_strokes): Deleted.
1785         (Qmorohashi_daikanwa): Deleted.
1786         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1787         `ideographic-radical', `ideographic-strokes', `total-strokes',
1788         `morohashi-daikanwa' and `->decomposition'.
1789         (Fget_char_attribute): Likewise.
1790         (Fput_char_attribute): Likewise; use `make-vector' instead of
1791         `make_older_vector' for `->decomposition' value.
1792         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1793         `ideograph-daikanwa'.
1794         (syms_of_mule_charset): Delete builtin symbols `name',
1795         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1796         `morohashi-daikanwa'.
1797         (vars_of_mule_charset): Don't setup
1798         `Vcharacter_ideographic_radical_table',
1799         `Vcharacter_ideographic_strokes_table',
1800         `Vcharacter_total_strokes_table',
1801         `Vcharacter_morohashi_daikanwa_table' and
1802         `Vcharacter_decomposition_table'.
1803
1804 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1805
1806         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1807         `make_older_vector', `make_vector_newer_1' and
1808         `make_vector_newer'.
1809
1810         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1811         `make_older_vector' and `make_vector_newer'.
1812
1813         * config.h.in (HAVE_GGC): New macro.
1814
1815 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816
1817         * mule-charset.c (struct char_attribute_list_closure): New
1818         structure in UTF-2000.
1819         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1820         (Fchar_attribute_list): Likewise.
1821         (Fset_charset_mapping_table): Use `make_vector_newer'.
1822         (Fdecode_builtin_char): New function in UTF-2000.
1823         (syms_of_mule_charset): Add new function `char-attribute-list' and
1824         `decode-builtin-char' in UTF-2000.
1825
1826         * lisp.h (make_vector_newer): New prototype.
1827
1828         * alloc.c (make_vector_newer_1): New function.
1829         (make_vector_newer): New function.
1830
1831 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1834         50100)'.
1835
1836 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1837
1838         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1839         (Vcharacter_attribute_table): Deleted.
1840         (Vcharacter_name_table): Deleted.
1841         (put_char_attribute): Deleted.
1842         (remove_char_attribute): Deleted.
1843         (struct char_attribute_alist_closure): New structure.
1844         (add_char_attribute_alist_mapper): New function.
1845         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1846         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1847         (Fget_char_attribute): Likewise.
1848         (Fput_char_attribute): Likewise.
1849         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1850         of `remove_char_attribute'.
1851         (Fdefine_char): Return character.
1852         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1853         and `Vcharacter_name_table'.
1854         (complex_vars_of_mule_charset): Likewise
1855         `Vchar_attribute_hash_table'.
1856
1857 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1858
1859         * character.h (CHARC_CHARSET): New macro.
1860         (CHARC_CHARSET_ID): New macro.
1861         (CHARC_CODE_POINT): New macro.
1862         (CHARC_COLUMNS): New macro.
1863         (CHARC_TO_CHAR): New inline function.
1864         (CHARC_EQ): New inline function.
1865         (CHARC_ASCII_EQ): New inline function.
1866         (CHARC_IS_SPACE): New inline function.
1867         (ASCII_TO_CHARC): New inline function.
1868
1869         * char-ucs.h (encode_char_2): Deleted.
1870         (ENCODE_CHAR): Use `encode_char_1' again.
1871         (breakup_char_1): Likewise.
1872         (CHAR_TO_CHARC): New inline function.
1873
1874         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1875
1876 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1879         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1880         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1881         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1882         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1883         `CHARC_IS_SPACE'.
1884         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1885
1886         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1887         `CHARC_CODE_POINT'.
1888         (x_output_display_block): Use `CHARC_CHARSET' and
1889         `CHARC_ASCII_EQ'.
1890
1891         * redisplay-tty.c (tty_output_display_block): Use
1892         `CHARC_ASCII_EQ'.
1893         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1894
1895         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1896
1897         * insdel.c (find_charsets_in_charc_string): Use
1898         `CHARC_CHARSET_ID'.
1899         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1900         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1901         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1902         (convert_charc_string_into_malloced_string): Likewise.
1903
1904 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1907         instead of <Emchar_dynarr *> for buf; use
1908         `convert_bufbyte_string_into_charc_dynarr' instead of
1909         `convert_bufbyte_string_into_emchar_dynarr'; use
1910         `find_charsets_in_charc_string' instead of
1911         `find_charsets_in_emchar_string'.
1912
1913         * redisplay.h:
1914         - Include "character.h".
1915         (struct rune): New member `cglyph'; delete member `chr'.
1916
1917         * redisplay.c (redisplay_text_width_charc_string): New function;
1918         delete `redisplay_text_width_emchar_string'.
1919         (rtw_charc_dynarr): New variable; renamed from
1920         `rtw_emchar_dynarr'.
1921         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1922         `rtw_emchar_dynarr'; use
1923         `convert_bufbyte_string_into_charc_dynarr' instead of
1924         `convert_bufbyte_string_into_emchar_dynarr'; use
1925         `redisplay_text_width_charc_string' instead of
1926         `redisplay_text_width_emchar_string'.
1927         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1928         instead of `rtw_emchar_dynarr'; use
1929         `convert_bufbyte_string_into_charc_dynarr' instead of
1930         `convert_bufbyte_string_into_emchar_dynarr'.
1931         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1932         `redisplay_text_width_charc_string' instead of
1933         `redisplay_text_width_emchar_string'.
1934         (create_text_block): Modify for <struct rune> change.
1935         (generate_formatted_string_db): Likewise.
1936         (create_string_text_block): Likewise.
1937         (pixel_to_glyph_translation): Likewise.
1938
1939         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1940         instead of <const Emchar *>.
1941         (x_text_width): Likewise.
1942         (x_output_display_block): Use <Charc_dynarr *> instead
1943         <Emchar_dynarr *>; modify for <structure rune> change.
1944         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1945         *>.
1946
1947         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1948         <const Emchar *>; use `charc_string_displayed_columns' instead of
1949         `emchar_string_displayed_columns'.
1950         (tty_output_display_block): Use <Charc_dynarr *> instead of
1951         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1952         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1953         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1954         `tty_output_emchar_dynarr_dynarr'.
1955         (tty_output_charc_dynarr): New function; delete
1956         `tty_output_charc_dynarr'.
1957
1958         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1959         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1960         <Emchar_dynarr *> for buf; use
1961         `convert_bufbyte_string_into_charc_dynarr' instead of
1962         `convert_bufbyte_string_into_emchar_dynarr'.
1963
1964         * frame.c (title_string_charc_dynarr): New variable; renamed from
1965         `title_string_emchar_dynarr'.
1966         (generate_title_string): Use `title_string_charc_dynarr' instead
1967         of `title_string_emchar_dynarr'; use
1968         `convert_charc_string_into_malloced_string' instead of
1969         `convert_emchar_string_into_malloced_string'.
1970         (init_frame): Use `title_string_charc_dynarr' instead of
1971         `title_string_emchar_dynarr'.
1972
1973         * console.h:
1974         - Include "character.h".
1975         (struct console_methods): Use <const Charc *> instead of <const
1976         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1977         <Emchar_dynarr *> in output_string_method.
1978
1979         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1980         <Emchar_dynarr *>.
1981
1982         * console-stream.c (stream_text_width): Use <const Charc *>
1983         instead of <const Emchar *>.
1984
1985         * character.h (Charc_dynarr): New type.
1986
1987         * char-ucs.h (structure Charc): New structure; define new type
1988         `Charc'.
1989
1990         * char-lb.h (DECODE_CHAR): New inline function.
1991         (encode_char_1): New inline function.
1992         (ENCODE_CHAR): New macro.
1993         (structure Charc): New structure; define new type `Charc'.
1994
1995         * char-1byte.h (Vcharset_control_1): New macro.
1996         (Vcharset_latin_iso8859_1): New macro.
1997         (DECODE_CHAR): New inline function.
1998         (encode_char_1): New inline function.
1999         (ENCODE_CHAR): New macro.
2000         (structure Charc): New structure; define new type `Charc'.
2001
2002         * insdel.c (find_charsets_in_charc_string): New function; delete
2003         `find_charsets_in_emchar_string'.
2004         (charc_string_displayed_columns): New function; delete
2005         `emchar_string_displayed_columns'.
2006         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2007         `convert_bufbyte_string_into_emchar_dynarr'.
2008         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2009         `convert_charc_string_into_bufbyte_dynarr'.
2010         (convert_charc_string_into_malloced_string): New function; delete
2011         `convert_charc_string_into_malloced_string'.
2012
2013         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2014         `find_charsets_in_emchar_string'.
2015         (charc_string_displayed_columns): New prototype; delete
2016         `emchar_string_displayed_columns'.
2017         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2018         `convert_charc_string_into_bufbyte_dynarr'.
2019         (convert_charc_string_into_malloced_string): New prototype; delete
2020         `convert_charc_string_into_malloced_string'.
2021
2022 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023
2024         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2025
2026 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027
2028         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2029
2030         * char-ucs.h: Use <short> for <Charset_ID>.
2031
2032         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2033         <Charset_ID>.
2034
2035 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2038         to 0.16.
2039
2040 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2043         variable.
2044         (Qmorohashi_daikanwa): New variable.
2045         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2046         for `morohashi-daikanwa' attribute.
2047         (Fget_char_attribute): Likewise.
2048         (Fput_char_attribute): Likewise.
2049         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2050         has the same value of `ideograph-daikanwa'.
2051         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2052         (vars_of_mule_charset): Setup
2053         `Vcharacter_morohashi_daikanwa_table'.
2054
2055 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056
2057         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2058         attributes.
2059         (add_charset_to_list_mapper): Add `key' instead of
2060         `XCHARSET_NAME (value)' to return aliases.
2061
2062 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2063
2064         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2065         variable.
2066         (Vcharacter_ideographic_strokes_table): New variable.
2067         (Qideographic_radical): New variable.
2068         (Qideographic_strokes): New variable.
2069         (Fchar_attribute_alist): Use
2070         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2071         attribute; use `Vcharacter_ideographic_strokes_table' for
2072         `ideographic-strokes' attribute.
2073         (Fget_char_attribute): Likewise.
2074         (Fput_char_attribute): Likewise.
2075         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2076         `ideographic-strokes'.
2077         (vars_of_mule_charset): Setup
2078         `Vcharacter_ideographic_radical_table' and
2079         `Vcharacter_ideographic_strokes_table'.
2080
2081 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2082
2083         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2084         (Qtotal_strokes): New variable.
2085         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2086         `total-strokes' attribute.
2087         (Fget_char_attribute): Likewise.
2088         (Fput_char_attribute): Likewise.
2089         (syms_of_mule_charset): Add new symbol `total-strokes'.
2090         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2091
2092 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2095         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2096         are found.
2097         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2098         `->decomposition' attribute.
2099         (Fput_char_attribute): Likewise.
2100         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2101
2102 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2103
2104         * mule-charset.c (decoding_table_check_elements): New function.
2105         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2106
2107 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108
2109         * mule-charset.c (Fset_charset_mapping_table): Use
2110         `put_char_ccs_code_point'.
2111
2112 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113
2114         * mule-charset.c (decoding_table_put_char): New inline function.
2115         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2116
2117 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2120         (XCHARSET_BYTE_SIZE): New macro.
2121         (decoding_table_remove_char): New inline function.
2122         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2123         `decoding_table_remove_char'.
2124         (remove_char_ccs): Use `decoding_table_remove_char'.
2125         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2126
2127 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * mule-charset.c (Vcharacter_name_table): New variable.
2130         (Qname): New variable.
2131         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2132         attribute.
2133         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2134         `Vcharacter_name_table' for `name' attribute.
2135         (Fremove_char_attribute): Use function `remove_char_ccs'.
2136         (put_char_ccs_code_point): New function.
2137         (remove_char_ccs): New function.
2138         (syms_of_mule_charset): Add new symbol `name'.
2139         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2140
2141 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2142
2143         * mule-charset.c (make_byte_table): Add new argument `older'.
2144         (make_char_id_table): Likewise.
2145         (copy_char_id_table): Comment out because it is not used.
2146         (put_char_id_table): Modify for `make_byte_table'.
2147         (Fput_char_attribute): Make encoding_table as older object;
2148         inherit older bit of `Vcharacter_composition_table'.
2149         (mark_charset): Don't mark `cs->encoding_table'.
2150         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2151         normal object; make `Vcharacter_composition_table' as an older
2152         object; delete staticpro for `Vcharacter_composition_table'; make
2153         `Vcharacter_variant_table' as a normal object.
2154
2155         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2156         (mark_object): Don't check older object in UTF-2000.
2157
2158         * lrecord.h (struct lrecord_header): Add new member `older' in
2159         UTF-2000.
2160         (set_lheader_implementation): Setup `SLI_header->older' in
2161         UTF-2000.
2162         (set_lheader_older_implementation): New macro in UTF-2000.
2163         (OLDER_RECORD_P): New macro in UTF-2000.
2164         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2165         (alloc_older_lcrecord): New prototype in UTF-2000.
2166         (alloc_older_lcrecord_type): New macro in UTF-2000.
2167
2168 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2169
2170         * mule-charset.c (byte_table_description): Use
2171         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2172         (char_id_table_description): Delete bogus `, 1'.
2173         (Fget_char_attribute): Refer encoding_table of each coded-charset
2174         to get value of coded-charset attribute of a character.
2175         (Fput_char_attribute): Use `make_older_vector' instead of
2176         `make_vector'; use encoding_table of each coded-charset to store
2177         value of coded-charset attribute of a character.
2178         (Fremove_char_attribute): Use encoding_table of each coded-charset
2179         to store value of coded-charset attribute of a character.
2180         (mark_charset): Mark `cs->encoding_table'; don't mark
2181         `cs->decoding_table'.
2182         (charset_description): Add description of new member
2183         `encoding_table'.
2184         (make_charset): Initialize `encoding_table'.
2185
2186         * char-ucs.h (struct Lisp_Charset): Add new member
2187         `encoding_table'.
2188         (CHARSET_ENCODING_TABLE): New macro.
2189         (XCHARSET_ENCODING_TABLE): New macro.
2190         (charset_code_point): New implementation.
2191         (encode_char_1): Likewise.
2192
2193         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2194         (disksave_object_finalization_1): Call finalizers of
2195         `all_older_lcrecords' in UTF-2000.
2196         (make_older_vector): New function in UTF-2000.
2197         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2198         UTF-2000.
2199
2200         * lisp.h (make_older_vector): New prototype in UTF-2000.
2201
2202 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2203
2204         * lrecord.h (enum lrecord_type): Rename
2205         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2206
2207         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2208         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2209         `get_char_code_table'.
2210
2211         * mule-charset.c (mark_char_id_table): Renamed from
2212         `mark_char_code_table'.
2213         (char_id_table_equal): Renamed from `char_code_table_equal'.
2214         (char_id_table_hash): Renamed from `char_code_table_hash'.
2215         (make_char_id_table): Renamed from `make_char_code_table'.
2216         (copy_char_id_table): Renamed from `copy_char_code_table'.
2217         (get_char_id_table): Renamed from `get_char_code_table'.
2218         (put_char_id_table): Renamed from `put_char_code_table'.
2219         (to_char_id): Renamed from `to_char_code'.
2220
2221         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2222         `Lisp_Char_Code_Table'.
2223         (char_id_table): Renamed from `char_code_table'.
2224         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2225         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2226         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2227         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2228         (get_char_id_table): Renamed from `get_char_code_table'.
2229
2230 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * lrecord.h (enum lrecord_type): Rename
2233         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2234
2235         * mule-charset.c (mark_byte_table): Renamed from
2236         `mark_char_byte_table'.
2237         (byte_table_equal): Renamed from `char_byte_table_equal'.
2238         (byte_table_hash): Renamed from `byte_table_hash'.
2239         (make_byte_table): Renamed from `make_byte_table'.
2240         (copy_byte_table): Renamed from `copy_char_byte_table'.
2241
2242         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2243         `Lisp_Char_Byte_Table'.
2244         (byte_table): Renamed from `char_byte_table'.
2245         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2246         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2247         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2248         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2249
2250 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251
2252         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2253         (dfc_convert_to_internal_format): Likewise.
2254         
2255         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2256         * text-coding.c (Fcoding_system_alias_p): New function.
2257         * text-coding.c (Fcoding_system_aliasee): New function.
2258         * text-coding.c (append_suffix_to_symbol): New function.
2259         * text-coding.c (dangling_coding_system_alias_p): New function.
2260         * text-coding.c (Ffind_coding_system):
2261         * text-coding.c (Fcopy_coding_system):
2262         * text-coding.c (encode_coding_no_conversion):
2263         * text-coding.c (syms_of_file_coding):
2264         * text-coding.c (vars_of_file_coding):
2265         Rewrite coding system alias code.
2266         Allow nested aliases, like symbolic links.
2267         Allow redefinition of coding system aliases.
2268         Prevent existence of dangling coding system aliases.
2269         Eliminate convert_to_external_format.
2270         Eliminate convert_to_internal_format.
2271         
2272         * text-coding.c: Change enum eol_type to eol_type_t.
2273
2274 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2277         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2278
2279         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2280         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2281
2282 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2283
2284         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2285         `ideograph-daikanwa'.
2286
2287         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2288         (Vcharset_ucs_bmp): Likewise.
2289         (Vcharset_mojikyo): Add new extern variable definition.
2290         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2291         (Vcharset_latin_iso8859_3): Likewise.
2292         (Vcharset_latin_iso8859_4): Likewise.
2293         (Vcharset_latin_iso8859_9): Likewise.
2294         (Vcharset_latin_viscii_lower): Likewise.
2295         (Vcharset_latin_viscii_upper): Likewise.
2296         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2297         `mojikyo' code-point is used to decode.
2298         (encode_char_2): New function [to convert `mojikyo' code-point to
2299         Mojikyo font encoding].
2300         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2301         (breakup_char_1): Likewise.
2302         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2303
2304 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2305
2306         * text-coding.c (Fmake_coding_system): Add document about
2307         `disable-composition' property.
2308
2309 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310
2311         * text-coding.c (Qdisable_composition): New variable; delete
2312         `Qcomposite'.
2313         (Fmake_coding_system): Add new property `disable-composite';
2314         delete property `composite'.
2315         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2316         instead of `!CODING_SYSTEM_COMPOSITE'.
2317         (syms_of_file_coding): Add new symbol `disable-composition';
2318         delete symbol `composite'.
2319
2320         * file-coding.h (struct Lisp_Coding_System): Add
2321         `disable_composition'; delete `enable_composition'.
2322         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2323         `CODING_SYSTEM_COMPOSITE'.
2324         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2325         `XCODING_SYSTEM_COMPOSITE'.
2326
2327 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2330         to 0.15.
2331
2332 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * text-coding.c (Qcomposite): New variable.
2335         (Fmake_coding_system): Add new property `composite'.
2336         (struct decoding_stream): Add `combined_char_count',
2337         `combined_chars' and `combining_table' in UTF-2000.
2338         (COMPOSE_FLUSH_CHARS): New macro.
2339         (COMPOSE_ADD_CHAR): New macro.
2340         (reset_decoding_stream): Reset `str->combined_char_count' and
2341         `str->combining_table' in UTF-2000.
2342         (decode_coding_iso2022): Modify for character-decomposition.
2343         (syms_of_file_coding): Add new symbol `composite'.
2344
2345 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2346
2347         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2348         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2349         of `Vcharacter_composition_table' if `->decomposition' property
2350         has only 1 element.
2351         (Qlatin_tcvn5712): New variable.
2352         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2353         (complex_vars_of_mule_charset): Add new coded-charset
2354         `latin-tcvn5712'.
2355
2356         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2357
2358 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2359
2360         * file-coding.h (struct Lisp_Coding_System): Add
2361         `enable_composition'.
2362         (CODING_SYSTEM_COMPOSITE): New macro.
2363         (XCODING_SYSTEM_COMPOSITE): New macro.
2364
2365 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2366
2367         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2368
2369 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2370
2371         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2372         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2373
2374 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2375
2376         * mule-charset.c (Vcharset_mojikyo): New variable.
2377         (Fdefine_char): Don't use coded-charset which does not have
2378         non-builtin character range to allocate character-id.
2379         (Qmojikyo): New variable.
2380         (syms_of_mule_charset): Add new symbol `mojikyo'.
2381         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2382
2383         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2384         (LEADING_BYTE_MOJIKYO): New macro.
2385         (MIN_CHAR_MOJIKYO): New macro.
2386         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2387         (MAX_CHAR_MOJIKYO): New macro.
2388
2389 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2390
2391         * mule-charset.c (remove_char_attribute): Fixed.
2392
2393 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2394
2395         * mule-charset.c (remove_char_attribute): New function.
2396         (Fremove_char_attribute): New function.
2397         (encode_builtin_char_1): Comment out builtin-support for
2398         greek-iso8859-7 and cyrillic-iso8859-5.
2399         (Fdecode_char): Check `code' is an integer.
2400         (syms_of_mule_charset): Add `remove-char-attribute'.
2401         (MIN_CHAR_GREEK): Deleted.
2402         (MAX_CHAR_GREEK): Likewise.
2403         (MIN_CHAR_CYRILLIC): Likewise.
2404         (MAX_CHAR_CYRILLIC): Likewise.
2405         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2406         MAX_CHAR_GREEK for `greek-iso8859-7'.
2407
2408         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2409         (MAX_CHAR_GREEK): Likewise.
2410         (MIN_CHAR_CYRILLIC): Likewise.
2411         (MAX_CHAR_CYRILLIC): Likewise.
2412
2413 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2414
2415         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2416         format is used without `ucs' property.
2417         (Fdecode_char): Fix problem with GR representation.
2418         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2419         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2420
2421 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2422
2423         * mule-charset.c (make_builtin_char): New function.
2424         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2425         (Fset_charset_mapping_table): Modify for new representation of
2426         code-point.
2427         (Fdecode_char): New function.
2428         (syms_of_mule_charset): Add new builtin function `decode-char' in
2429         UTF-2000.
2430
2431         * char-ucs.h (make_builtin_char): New prototype.
2432         (DECODE_CHAR): New inline function.
2433         (MAKE_CHAR): Use `DECODE_CHAR'.
2434
2435 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2436
2437         * text-coding.c (parse_charset_conversion_specs): Use
2438         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2439         `XCHARSET_TYPE'.
2440         (iso2022_designate): Likewise.
2441
2442         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2443         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2444
2445         * mule-charset.c (Vcharset_ucs): New variable.
2446         (print_charset): Change design; use `CHARSET_CHARS' and
2447         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2448         (make_charset): Change signature to specify `chars' and
2449         `dimension' instead of `type'.
2450         (range_charset_code_point): Modify for 256^n-set.
2451         (encode_builtin_char_1): Encode as `ucs' in default.
2452         (Fmake_charset): Modify for `make_charset'.
2453         (Fmake_reverse_direction_charset): Likewise.
2454         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2455         UTF-2000.
2456         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2457         for `make_charset'.
2458
2459         * char-ucs.h (Vcharset_ucs): New variable.
2460         (LEADING_BYTE_UCS): New macro.
2461         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2462         and `chars' to `unsigned short' from `unsigned int'.
2463         (CHARSET_TYPE): Deleted.
2464         (XCHARSET_TYPE): Deleted.
2465
2466 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2467
2468         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2469
2470         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2471         (ENCODE_CHAR): New macro.
2472
2473 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2474
2475         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2476         to 0.14 (Kawachi-Katakami).
2477
2478 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2479
2480         * text-coding.c (char_encode_shift_jis): Modify for
2481         `charset_code_point'.
2482         (char_encode_iso2022): Likewise.
2483
2484         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2485         (integer) instead of list of <Lisp_Object>s (integers) as the
2486         format of code-point of a coded-charset.
2487         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2488         (encode_builtin_char_1): New function; delete
2489         `split_builtin_char'.
2490         (charset_code_point): Return <int> instead of <Lisp_Object>.
2491         (Fsplit_char): Don't use `SPLIT_CHAR'.
2492
2493         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2494         prototype for `split_builtin_char'.
2495         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2496         (charset_code_point): Likewise.
2497         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2498         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2499
2500 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2501
2502         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2503         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2504
2505 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2506
2507         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2508
2509         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2510         (MAX_CHAR_OBS_94x94): Deleted.
2511
2512 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2513
2514         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2515
2516         * char-ucs.h (MAX_CHAR_BMP): New macro.
2517
2518 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2519
2520         * text-coding.c: Sync with r21-2-24.
2521
2522 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2523
2524         * file-coding.c: Modify for UTF-2000.
2525
2526 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2527
2528         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2529         to 0.13 (Takaida).
2530
2531 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2532
2533         * mule-charset.c (split_builtin_char): Delete builtin support for
2534         `katakana-jisx0201'.
2535         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2536         BMP area in builtin representation.
2537
2538         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2539         `Vcharset_katakana_jisx0201'.
2540
2541 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2542
2543         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2544         (Qisolated): New variable.
2545         (Qinitial): New variable.
2546         (Qmedial): New variable.
2547         (Qfinal): New variable.
2548         (Qvertical): New variable.
2549         (Qsmall): New variable.
2550         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2551         `Qvertical' and `Qsmall'.
2552         (Qmojikyo_pj_[1 .. 21]): New variable.
2553         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2554         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2555         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2556         .. 21]'.
2557
2558 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2559
2560         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2561         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2562         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2563
2564 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2565
2566         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2567         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2568         BMP.
2569         (Qjapanese_jisx0208_1990): New variable.
2570         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2571         (complex_vars_of_mule_charset): Add new coded-charset
2572         `japanese-jisx0208-1990'.
2573
2574         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2575         (MIN_CHAR_JIS_X0208_1990): New macro.
2576         (MAX_CHAR_JIS_X0208_1990): New macro.
2577
2578 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2579
2580         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2581         coded-charset is not found.
2582
2583 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2584
2585         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2586         (Fdefine_char): Use `Fmake_char'.
2587
2588 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2589
2590         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2591         (Vcharset_hiragana_jisx0208): Deleted.
2592         (Vcharset_katakana_jisx0208): Deleted.
2593         (Qideograph_daikanwa): New variable.
2594         (Qhiragana_jisx0208): Deleted.
2595         (Qkatakana_jisx0208): Deleted.
2596         (split_builtin_char): Split `ideograph-daikanwa'.
2597         (Fsplit_char): New implementation for UTF-2000.
2598         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2599         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2600         (complex_vars_of_mule_charset): Add new coded-charset
2601         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2602         `katakana-jisx0208'.
2603
2604         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2605         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2606         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2607         (MIN_CHAR_DAIKANWA): New macro.
2608         (MAX_CHAR_DAIKANWA): New macro.
2609
2610 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2611
2612         * data.c (Fstring_to_number): Don't recognize floating point if
2613         base is not 10.
2614
2615 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2616
2617         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2618
2619 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2620
2621         * mule-charset.c (Qsquare): New variable.
2622         (to_char_code): Add `Qsquare'.
2623         (syms_of_mule_charset): Add new symbol `square'.
2624
2625 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2626
2627         * mule-charset.c (Qcircle): New variable.
2628         (to_char_code): Add `Qcircle'.
2629         (syms_of_mule_charset): Add new symbol `circle'.
2630
2631 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2632
2633         * mule-charset.c (Qfont): New variable.
2634         (to_char_code): Add `Qfont'.
2635         (syms_of_mule_charset): Add new symbol `font'.
2636
2637 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2638
2639         * mule-charset.c (Qsub): New variable.
2640         (to_char_code): Add `Qsub'.
2641         (syms_of_mule_charset): Add new symbol `sub'.
2642
2643 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2644
2645         * mule-charset.c (Fput_char_attribute): Convert each element of
2646         VALUE to GL position if ATTRIBUTE is a GR-set,
2647
2648 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2649
2650         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2651         coded-charset is a GR-set.
2652
2653 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2654
2655         * mule-charset.c (Fput_char_attribute): Check each element of
2656         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2657
2658 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2659
2660         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2661         UTF-2000.
2662         (Qethiopic_ucs): New variable in UTF-2000.
2663         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2664         (complex_vars_of_mule_charset): Add new coded-charset
2665         `ethiopic-ucs' in UTF-2000.
2666
2667         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2668         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2669         9)'.
2670         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2671         10)'.
2672         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2673
2674 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2675
2676         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2677         `ascii'.
2678
2679 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2680
2681         * mule-charset.c (Vcharacter_variant_table): New variable.
2682         (Q_ucs): New variable.
2683         (Fchar_variants): New function.
2684         (Fput_char_attribute): Register `->ucs' value to
2685         `Vcharacter_variant_table'.
2686         (syms_of_mule_charset): Add new function `char-variants' and new
2687         symbol `->ucs'.
2688         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2689
2690 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2691
2692         * mule-charset.c (get_char_code_table): Allow negative character
2693         code.
2694         (put_char_code_table): Likewise.
2695         (Vcharacter_composition_table): New variable.
2696         (Q_decomposition): New variable.
2697         (Qwide): New variable.
2698         (Qnarrow): New variable.
2699         (Qcompat): New variable.
2700         (QnoBreak): New variable.
2701         (Qsuper): New variable.
2702         (Qfraction): New variable.
2703         (to_char_code): New function.
2704         (Fget_composite_char): New function.
2705         (Fput_char_attribute): Register `->decomposition' value to
2706         `Vcharacter_composition_table'.
2707         (syms_of_mule_charset): Add new function `get-composite-char', new
2708         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2709         `super' and `fraction'.
2710         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2711
2712 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2713
2714         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2715         character; copy the return value.
2716
2717 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2718
2719         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2720
2721         * mule-charset.c (range_charset_code_point): Must use make_int.
2722         (split_builtin_char): New function.
2723
2724 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2725
2726         * mule-charset.c (char_byte_table): Change name from
2727         "char-code-table" to "char-byte-table".
2728         (mark_char_code_table): New function.
2729         (char_code_table_equal): New function.
2730         (char_code_table_hash): New function.
2731         (char_code_table_description): New constant.
2732         (char_code_table): New type.
2733         (make_char_code_table): New function.
2734         (copy_char_code_table): New function.
2735         (get_char_code_table): Modify for `char_code_table' type.
2736         (put_char_code_table): Likewise.
2737         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2738         (Kashiwara).
2739
2740         * char-ucs.h (char_code_table): New type.
2741         (XCHAR_CODE_TABLE): New macro.
2742         (XSETCHAR_CODE_TABLE): New macro.
2743         (CHAR_CODE_TABLE_P): New macro.
2744         (GC_CHAR_CODE_TABLE_P): New macro.
2745         (struct Lisp_Char_Code_Table): New structure.
2746
2747 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2748
2749         * mule-charset.c (Fmake_charset): Setup byte_offset for
2750         {94|96}^n-set.
2751
2752 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2753
2754         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2755         character.
2756
2757 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2758
2759         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2760         is found.
2761
2762 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2763
2764         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2765         charset, it is regarded as a charset.
2766         (put_char_attribute): New function in UTF-2000.
2767         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2768         charset, mapping-table of the charset is modified.
2769         (Fdefine_char): New function in UTF-2000.
2770         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2771         `Fput_char_attribute'.
2772         (syms_of_mule_charset): Add new function `define-char' and new
2773         symbol `ucs' in UTF-2000.
2774         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2775
2776 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2777
2778         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2779         non-UTF-2000 configuration.
2780
2781 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2782
2783         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2784         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2785
2786         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2787         deleted.
2788         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2789         (Fset_charset_mapping_table): Likewise.
2790
2791         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2792         (CHARSET_ENCODING_TABLE): Delete.
2793         (XCHARSET_ENCODING_TABLE): Delete.
2794         (charset_code_point): New interface.
2795
2796 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2797
2798         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2799         instead of `charset_get_byte1' and `charset_get_byte2'.
2800
2801         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2802         (charset_get_byte2): Deleted.
2803
2804 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2805
2806         * char-ucs.h (SPLIT_CHAR): New inline function.
2807         (breakup_char_1): Use `SPLIT_CHAR'.
2808
2809         * mule-charset.c (range_charset_code_point): New function.
2810         (charset_code_point): New function.
2811
2812         * char-ucs.h (range_charset_code_point): New interface.
2813         (breakup_char_1): Use `range_charset_code_point'.
2814
2815 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2816
2817         * mule-charset.c (Fmake_charset): Delete unused local variable
2818         `code_offset'.
2819
2820         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2821         (breakup_char_1): Find a charset and code-point in
2822         `Vcharacter_attribute_table'.
2823
2824 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2825
2826         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2827         to 0.10 (Yao).
2828
2829 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2830
2831         * mule-charset.c (Vcharacter_attribute_table): New variable.
2832         (Fchar_attribute_alist): New function.
2833         (Fget_char_attribute): New function.
2834         (Fput_char_attribute): New function.
2835         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2836         too.
2837         (syms_of_mule_charset): Add new function `char-attribute-alist',
2838         `get-char-attribute' and `put-char-attribute'.
2839         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2840
2841 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2842
2843         * mule-charset.c (Fmake_charset): Just use
2844         `get_unallocated_leading_byte'.
2845
2846         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2847         sets; don't use final-byte based number for private sets.
2848
2849 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2850
2851         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2852         integer.
2853
2854 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2855
2856         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2857         to 0.9.
2858
2859 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2860
2861         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2862         of `CHAR_LEADING_BYTE' in UTF-2000.
2863
2864         * insdel.c (find_charsets_in_bufbyte_string): Use
2865         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2866         (find_charsets_in_emchar_string): Likewise.
2867
2868         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2869         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2870
2871         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2872         (CHAR_CHARSET_ID): New macro.
2873
2874 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2875
2876         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2877         charset-id - MIN_LEADING_BYTE.
2878         (put_char_table): Likewise.
2879
2880 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2881
2882         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2883         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2884         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2885         (CHARSET_ID_OFFSET): New macro.
2886         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2887         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2888         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2889         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2890         4).
2891         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2892         5).
2893         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2894         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2895         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2896         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2897         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2898
2899 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2900
2901         * mule-charset.c (next_allocated_leading_byte): New variable in
2902         UTF-2000.
2903         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2904         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2905         (get_unallocated_leading_byte): Simply use
2906         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2907         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2908         UTF-2000.
2909
2910         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2911         (MAX_LEADING_BYTE_PRIVATE): New macro.
2912         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2913         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2914
2915 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2916
2917         * mule-charset.c (Fmake_charset): Allocate final-byte based
2918         charset-id for 94-set, 96-set and 94x94-set.
2919
2920 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2921
2922         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2923         ambiguous `else'.
2924         (Fmake_charset): Likewise.
2925         (complex_vars_of_mule_charset): Modify the font registry of
2926         `ucs-bmp' not to match `Ethiopic-Unicode'.
2927
2928 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2929
2930         * mule-charset.c (complex_vars_of_mule_charset): Add font
2931         registory of `ucs-bmp'.
2932
2933 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2934
2935         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2936         coded-charsets in `default-coded-charset-priority-list' when
2937         breaking up a character.
2938
2939         * mule-charset.c (Vcharset_latin_viscii): New variable.
2940         (Qlatin_viscii): New variable.
2941         (make_charset): Don't use `decoding_table'.
2942         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2943         byte_offset.
2944         (Fset_charset_mapping_table): New implementation.
2945         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2946         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2947         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2948         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2949         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2950         charset `latin_viscii'.
2951
2952         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2953         (CHARSET_TYPE_94X94): Change to 1 from 2.
2954         (CHARSET_TYPE_96): Change to 2 from 1.
2955         (CHARSET_TYPE_128): New macro.
2956         (CHARSET_TYPE_128X128): Change to 5 from 4.
2957         (CHARSET_TYPE_256): New macro.
2958         (CHARSET_TYPE_256X256): Change to 7 from 5.
2959         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2960
2961 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2962
2963         * text-coding.c (char_encode_shift_jis): Refer
2964         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2965         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2966
2967         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2968         (char_byte_table_equal): New function in UTF-2000.
2969         (char_byte_table_hash): New function in UTF-2000.
2970         (char_byte_table_description): New constant in UTF-2000.
2971         (char_byte_table): New type in UTF-2000.
2972         (make_char_byte_table): New function in UTF-2000.
2973         (copy_char_byte_table): New function in UTF-2000.
2974         (make_char_code_table): New macro in UTF-2000.
2975         (get_char_code_table): New function in UTF-2000.
2976         (put_char_code_table): New function in UTF-2000.
2977         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2978         (charset_description): Add setting in UTF-2000.
2979         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2980         `CHARSET_TO_BYTE1_TABLE(cs)'.
2981         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2982         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2983         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2984         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2985         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2986         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2987         `CHARSET_TO_BYTE2_TABLE(cs)'.
2988
2989         * char-ucs.h (char_byte_table): New type.
2990         (XCHAR_BYTE_TABLE): New macro.
2991         (XSETCHAR_BYTE_TABLE): New macro.
2992         (CHAR_BYTE_TABLE_P): New macro.
2993         (GC_CHAR_BYTE_TABLE_P): New macro.
2994         (struct Lisp_Char_Byte_Table): New structure.
2995         (get_char_code_table): New interface.
2996         (Emchar_to_byte_table): Deleted.
2997         (get_byte_from_character_table): Deleted.
2998         (struct Lisp_Charset): Add `encoding_table'; delete
2999         `to_byte1_table' and `to_byte2_table'.
3000         (CHARSET_ENCODING_TABLE): New macro.
3001         (CHARSET_TO_BYTE1_TABLE): Deleted.
3002         (CHARSET_TO_BYTE2_TABLE): Deleted.
3003         (XCHARSET_ENCODING_TABLE): New macro.
3004         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3005         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3006
3007 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3008
3009         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3010         `vietnamese-viscii-*'.
3011
3012 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3013
3014         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3015         (Qvietnamese_viscii_upper): New variable.
3016         (Fdefine_charset_alias): New function.
3017         (syms_of_mule_charset): Add new function `define-charset-alias'.
3018         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3019         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3020         `latin-viscii-*'.
3021
3022 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3023
3024         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3025         (MAX_CHAR_OBS_94x94): New macro.
3026         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3027         for 94x94 sets.
3028
3029         * mule-charset.c (put_byte_from_character_table): Change unit size
3030         from 128 to 256.
3031         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3032         not defined.
3033         (Fmake_reverse_direction_charset): Modify dummy argument of
3034         `make_charset' for non-UTF-2000 environment.
3035
3036 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3037
3038         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3039
3040         * mule-charset.c (destroy_byte_from_character_table): New macro.
3041         (latin_jisx0201_to_ucs): Deleted.
3042         (latin_iso8859_2_to_ucs): Deleted.
3043         (latin_iso8859_3_to_ucs): Deleted.
3044         (latin_iso8859_4_to_ucs): Deleted.
3045         (latin_iso8859_9_to_ucs): Deleted.
3046         (latin_viscii_lower_to_ucs): Deleted.
3047         (latin_viscii_upper_to_ucs): Deleted.
3048         (mark_charset): Mark `cs->decoding_table'.
3049         (Fcharset_mapping_table): Fix DOC-string.
3050         (Fset_charset_mapping_table): New function.
3051         (syms_of_mule_charset): Add nwe function
3052         `set-charset-mapping-table'.
3053         (complex_vars_of_mule_charset): Don't setup and use
3054         `latin_*_to_ucs'.
3055
3056 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3057
3058         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3059         charset.
3060
3061 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3062
3063         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3064         (Vcharset_katakana_jisx0208): New variable.
3065         (Qhiragana_jisx0208): New variable.
3066         (Qkatakana_jisx0208): New variable.
3067         (make_charset): Add new argument `byte_offset'.
3068         (charset_get_byte1): Modify for new coded-charset definition; use
3069         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3070         `XCHARSET_BYTE_OFFSET'.
3071         (Fmake_charset): Modify for `make_charset'.
3072         (Fmake_reverse_direction_charset): Likewise.
3073         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3074         `katakana-jisx0208'.
3075         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3076         `.'  in font registry of charset `katakana-jisx0201',
3077         `latin-jisx0201', `vietnamese-viscii-lower' and
3078         `vietnamese-viscii-upper'; modify DOC-string of charset
3079         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3080         registry of charset `japanese-jisx0208' not to use font for JIS
3081         X0208:1990; add new charset `hiragana-jisx0208' and
3082         `katakana-jisx0208'.
3083
3084         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3085         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3086         (struct Lisp_Charset): Add `byte_offset'.
3087         (CHARSET_BYTE_OFFSET): New macro.
3088         (XCHARSET_UCS_MIN): New macro.
3089         (XCHARSET_UCS_MAX): New macro.
3090         (XCHARSET_CODE_OFFSET): New macro.
3091         (XCHARSET_BYTE_OFFSET): New macro.
3092         (MIN_CHAR_HIRAGANA): New macro.
3093         (MAX_CHAR_HIRAGANA): New macro.
3094         (MIN_CHAR_KATAKANA): New macro.
3095         (MAX_CHAR_KATAKANA): New macro.
3096         (MAKE_CHAR): Modify for new coded-charset definition; use
3097         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3098         `XCHARSET_BYTE_OFFSET'.
3099
3100 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3101
3102         * mule-charset.c (CHAR96): Deleted.
3103         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3104         <Lisp_Object>.
3105         (latin_iso8859_2_to_ucs): Likewise.
3106         (latin_iso8859_3_to_ucs): Likewise.
3107         (latin_iso8859_4_to_ucs): Likewise.
3108         (latin_iso8859_9_to_ucs): Likewise.
3109         (latin_viscii_lower_to_ucs): Likewise.
3110         (latin_viscii_upper_to_ucs): Likewise.
3111         (latin_tcvn5712_to_ucs): Commented out.
3112         (make_charset): Change type of argument `decoding_table' from
3113         <Emchar*> to <Lisp_Object> [vector of characters].
3114         (Fmake_charset): Modify for `make_charset'.
3115         (Fmake_reverse_direction_charset): Likewise.
3116         (Fcharset_mapping_table): New function in UTF-2000.
3117         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3118         UTF-2000.
3119         (complex_vars_of_mule_charset): Modify for type change of
3120         `*_to_ucs'; modify for `make_charset'.
3121
3122         * char-ucs.h (struct Lisp_Charset): Change type of
3123         `decoding_table' from <Emchar*> to <Lisp_Object>.
3124         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3125
3126 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3127
3128         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3129         error with non-UTF-2000-Mule.
3130
3131 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3132
3133         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3134         in lisp again].
3135         (Vcharset_chinese_cns11643_4): Likewise.
3136         (Vcharset_chinese_cns11643_5): Likewise.
3137         (Vcharset_chinese_cns11643_6): Likewise.
3138         (Vcharset_chinese_cns11643_7): Likewise.
3139         (Qchinese_cns11643_3): Likewise.
3140         (Qchinese_cns11643_4): Likewise.
3141         (Qchinese_cns11643_5): Likewise.
3142         (Qchinese_cns11643_6): Likewise.
3143         (Qchinese_cns11643_7): Likewise.
3144         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3145         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3146         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3147         (complex_vars_of_mule_charset): Likewise.
3148
3149 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3150
3151         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3152         96-set.
3153         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3154         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3155
3156 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3157
3158         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3159         0xFF60.
3160         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3161         (breakup_char_1): Likewise.
3162
3163         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3164         one of them includes the specified character.
3165
3166 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3167
3168         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3169
3170 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3171
3172         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3173
3174 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3175
3176         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3177         definition for non-UTF-2000 Mule.
3178         (latin_iso8859_3_to_ucs): Likewise.
3179         (latin_iso8859_4_to_ucs): Likewise.
3180         (latin_iso8859_9_to_ucs): Likewise.
3181         (latin_jisx0201_to_ucs): Likewise.
3182         (MIN_CHAR_THAI): Likewise.
3183         (MAX_CHAR_THAI): Likewise.
3184         (MIN_CHAR_GREEK): Likewise.
3185         (MAX_CHAR_GREEK): Likewise.
3186         (MIN_CHAR_HEBREW): Likewise.
3187         (MAX_CHAR_HEBREW): Likewise.
3188         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3189         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3190         (MIN_CHAR_CYRILLIC): Likewise.
3191         (MAX_CHAR_CYRILLIC): Likewise.
3192
3193 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3194
3195         * char-ucs.h (breakup_char_1): Use
3196         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3197         thai-tis620 and katakana-jisx0201 area.
3198
3199 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3200
3201         * char-ucs.h (breakup_char_1): Use
3202         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3203         area.
3204
3205         * text-coding.c (reset_encoding_stream): Fixed.
3206         (char_encode_ucs4): Delete `& 255'.
3207
3208         * char-ucs.h (breakup_char_1): Use
3209         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3210
3211 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3212
3213         * file-coding.c (Fmake_coding_system): Don't set up
3214         `codesys->fixed.size'.
3215         (encode_coding_no_conversion): Don't refer
3216         `str->codesys->fixed.size'.
3217
3218 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3219
3220         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3221         (latin_a_char_to_byte1): Deleted.
3222         (latin_a_char_to_byte2): Deleted.
3223
3224 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3225
3226         * mule-charset.c (make_charset): Add new argument `ucs_min',
3227         `ucs_max' and `code_offset'.
3228         (charset_get_byte1): New implementation [delete specific charset
3229         depended implementations].
3230         (Fmake_charset): Modify for `make_charset'.
3231         (Fmake_reverse_direction_charset): Likewise.
3232         (complex_vars_of_mule_charset): Likewise.
3233
3234         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3235         `code_offset'.
3236         (CHARSET_UCS_MIN): New macro.
3237         (CHARSET_UCS_MAX): New macro.
3238         (CHARSET_CODE_OFFSET): New macro.
3239         (MAKE_CHAR): Delete charset depended definitions [except
3240         katakana-jisx0201].
3241
3242 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3243
3244         * char-ucs.h (breakup_char_1): Use
3245         `Vdefault_coded_charset_priority_list' for C0-Controls,
3246         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3247
3248 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3249
3250         * char-ucs.h (charset_get_byte1): New function.
3251         (XCHARSET_GET_BYTE1): Deleted.
3252         (charset_get_byte2): New function.
3253         (XCHARSET_GET_BYTE2): Deleted.
3254         (Vdefault_coded_charset_priority_list): New external variable.
3255         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3256         `Vdefault_preferred_coded_charset_list'.
3257
3258         * mule-charset.c (charset_get_byte1): New function.
3259         (charset_get_byte2): New function.
3260         (Vdefault_coded_charset_priority_list): New variable.
3261         (vars_of_mule_charset): Add new variable
3262         `default-coded-charset-priority-list'.
3263
3264 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3265
3266         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3267         (XCHARSET_GET_BYTE2): New inline function.
3268         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3269         `XCHARSET_GET_BYTE2'.
3270
3271 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3272
3273         * mule-charset.c (make_charset): Initialize
3274         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3275         NULL if table is not defined.
3276
3277 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3278
3279         * text-coding.c (char_encode_shift_jis): Use
3280         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3281         `ucs_to_latin_jisx0201'.
3282
3283         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3284         (ucs_to_latin_iso8859_2): Deleted.
3285         (ucs_to_latin_iso8859_3): Deleted.
3286         (ucs_to_latin_iso8859_4): Deleted.
3287         (ucs_to_latin_iso8859_9): Deleted.
3288         (ucs_to_latin_viscii_lower): Deleted.
3289         (ucs_to_latin_viscii_upper): Deleted.
3290         (ucs_to_latin_tcvn5712): Deleted.
3291         (make_charset): Add new argument `decoding_table'; set up
3292         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3293         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3294         `decoding_table' is defined in UTF-2000.
3295         (Fmake_charset): Modify for `make_charset'.
3296         (Fmake_reverse_direction_charset): Likewise.
3297         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3298         and `GENERATE_96_SET'.
3299
3300         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3301         (ucs_to_latin_jisx0201): Deleted.
3302         (latin_iso8859_2_to_ucs): Deleted.
3303         (ucs_to_latin_iso8859_2): Deleted.
3304         (latin_iso8859_3_to_ucs): Deleted.
3305         (ucs_to_latin_iso8859_3): Deleted.
3306         (latin_iso8859_4_to_ucs): Deleted.
3307         (ucs_to_latin_iso8859_4): Deleted.
3308         (latin_iso8859_9_to_ucs): Deleted.
3309         (ucs_to_latin_iso8859_9): Deleted.
3310         (latin_viscii_lower_to_ucs): Deleted.
3311         (ucs_to_latin_viscii_lower): Deleted.
3312         (latin_viscii_upper_to_ucs): Deleted.
3313         (ucs_to_latin_viscii_upper): Deleted.
3314         (struct Lisp_Charset): Renamed `encoding_table' to
3315         `to_byte1_table'; add `to_byte2_table'.
3316         (CHARSET_DECODING_TABLE): New macro.
3317         (CHARSET_TO_BYTE1_TABLE): New macro.
3318         (CHARSET_TO_BYTE2_TABLE): New macro.
3319         (XCHARSET_DECODING_TABLE): New macro.
3320         (XCHARSET_TO_BYTE1_TABLE): New macro.
3321         (XCHARSET_TO_BYTE2_TABLE): New macro.
3322         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3323         tables.
3324         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3325         don't use `ucs_to_*' tables.
3326
3327 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3328
3329         * text-coding.c (Fmake_coding_system): Don't set up
3330         `codesys->fixed.size'.
3331         (encode_coding_no_conversion): Use `if' instead of `switch'.
3332
3333         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3334
3335 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3336
3337         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3338         (Fmake_charset): Modify for `make_charset'.
3339         (Fmake_reverse_direction_charset): Likewise.
3340         (complex_vars_of_mule_charset): Likewise.
3341
3342 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3343
3344         * text-coding.c (char_encode_shift_jis): Use table
3345         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3346
3347 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3348
3349         * text-coding.c (text_encode_generic): Use `if' instead of
3350         `switch'.
3351         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3352         decode JIS-Latin.
3353
3354 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3355
3356         * text-coding.c (encode_coding_sjis): Deleted.
3357         (char_encode_shift_jis): New function.
3358         (char_finish_shift_jis): New function.
3359         (reset_encoding_stream): Set up `encode_char' and `finish' for
3360         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3361         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3362         (char_encode_utf8): Treat `eol_type'.
3363
3364 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3365
3366         * file-coding.c (decode_coding_iso2022): Use
3367         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3368
3369 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3370
3371         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3372         to 0.7 (Hirano).
3373
3374 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3375
3376         * char-lb.h (CHAR_COLUMNS): New macro.
3377
3378 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3379
3380         * text-coding.c (char_encode_ucs4): New function.
3381         (char_finish_ucs4): New function.
3382         (encode_coding_ucs4): Deleted.
3383         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3384         (text_encode_generic): Delete local variable `charset' and `half'.
3385         (ucs_to_mule_table): Deleted.
3386         (mule_to_ucs_table): Deleted.
3387         (Fset_ucs_char): Deleted.
3388         (ucs_to_char): Deleted.
3389         (Fucs_char): Deleted.
3390         (Fset_char_ucs): Deleted.
3391         (Fchar_ucs): Deleted.
3392         (decode_ucs4): Deleted.
3393         (mule_char_to_ucs4): Deleted.
3394         (encode_ucs4): Deleted.
3395         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3396         (decode_coding_utf8): Likewise.
3397         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3398         (char_encode_iso2022): Fixed.
3399         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3400         `Fset_char_ucs' and `Fchar_ucs'.
3401         (complex_vars_of_file_coding): Don't initialize
3402         `ucs_to_mule_table'.
3403
3404         * objects-tty.c (tty_initialize_font_instance): Don't use
3405         `XCHARSET_COLUMNS'.
3406
3407         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3408         UTF-2000.
3409
3410         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3411         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3412
3413         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3414         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3415         (emchar_string_displayed_columns): Likewise.
3416
3417         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3418         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3419         (string_column_at_point): Likewise.
3420         (Fmove_to_column): Likewise.
3421
3422         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3423         `encoding_table' and `decoding_table'.
3424         (CHARSET_REP_BYTES): Deleted.
3425         (XCHARSET_REP_BYTES): Deleted.
3426         (XCHARSET_COLUMNS): Deleted.
3427         (CHAR_COLUMNS): New macro.
3428         (lookup_composite_char): Deleted unconditionally.
3429         (composite_char_string): Likewise.
3430
3431 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3432
3433         * char-ucs.h (Emchar_to_byte_table): New type.
3434         (get_byte_from_character_table): New function interface.
3435         (Vcharset_latin_jisx0201): New variable.
3436         (latin_jisx0201_to_ucs): New variable.
3437         (ucs_to_latin_jisx0201): New variable.
3438         (Vcharset_latin_iso8859_2): New variable.
3439         (latin_iso8859_2_to_ucs): New variable.
3440         (ucs_to_latin_iso8859_2): New variable.
3441         (Vcharset_latin_iso8859_3): New variable.
3442         (latin_iso8859_3_to_ucs): New variable.
3443         (ucs_to_latin_iso8859_3): New variable.
3444         (Vcharset_latin_iso8859_4): New variable.
3445         (latin_iso8859_4_to_ucs): New variable.
3446         (ucs_to_latin_iso8859_4): New variable.
3447         (Vcharset_latin_iso8859_9): New variable.
3448         (latin_iso8859_9_to_ucs): New variable.
3449         (ucs_to_latin_iso8859_9): New variable.
3450         (Vcharset_latin_viscii_lower): New variable.
3451         (latin_viscii_lower_to_ucs): New variable.
3452         (ucs_to_latin_viscii_lower): New variable.
3453         (Vcharset_latin_viscii_upper): New variable.
3454         (latin_viscii_upper_to_ucs): New variable.
3455         (ucs_to_latin_viscii_upper): New variable.
3456         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3457         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3458         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3459         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3460         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3461         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3462         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3463         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3464         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3465         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3466
3467         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3468         (Vcharset_latin_viscii_upper): New variable.
3469         (make_byte_from_character_table): New function.
3470         (put_byte_from_character_table): New function.
3471         (get_byte_from_character_table): New function.
3472         (CHAR96): New macro.
3473         (ucs_to_latin_jisx0201): New variable.
3474         (latin_jisx0201_to_ucs): New variable.
3475         (ucs_to_latin_iso8859_2): New variable.
3476         (latin_iso8859_2_to_ucs): New variable.
3477         (ucs_to_latin_iso8859_3): New variable.
3478         (latin_iso8859_3_to_ucs): New variable.
3479         (ucs_to_latin_iso8859_4): New variable.
3480         (latin_iso8859_4_to_ucs): New variable.
3481         (ucs_to_latin_iso8859_9): New variable.
3482         (latin_iso8859_9_to_ucs): New variable.
3483         (ucs_to_latin_viscii_lower): New variable.
3484         (latin_viscii_lower_to_ucs): New variable.
3485         (ucs_to_latin_viscii_upper): New variable.
3486         (latin_viscii_upper_to_ucs): New variable.
3487         (ucs_to_latin_tcvn5712): New variable.
3488         (latin_tcvn5712_to_ucs): New variable.
3489         (Qlatin_viscii_lower): New variable.
3490         (Qlatin_viscii_upper): New variable.
3491         (syms_of_mule_charset): Set up new symbol
3492         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3493         (complex_vars_of_mule_charset): Set up new charset
3494         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3495         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3496         `ucs_to_<CHARSET>' tables.
3497
3498 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3499
3500         * text-coding.c: New file.
3501
3502 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3503
3504         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3505
3506         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3507         (MAKE_CHAR): Modify for `ucs-bmp'.
3508         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3509         non-MULE characters of BMP.
3510
3511 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3512
3513         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3514         to 0.6.
3515
3516 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3517
3518         * lstream.h:
3519         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3520         - Include character.h for `CHAR_ASCII_P'.
3521
3522         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3523
3524         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3525         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3526
3527         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3528         (BYTE_C0_P): Likewise.
3529         (BYTE_C1_P): Likewise.
3530         (Lstream_get_emchar_1): Likewise.
3531         (Lstream_fput_emchar): Likewise.
3532         (Lstream_funget_emchar): Likewise.
3533         (copy_internal_to_external): Likewise.
3534         (copy_external_to_internal): Likewise.
3535
3536         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3537         (BYTE_C0_P): Likewise.
3538         (BYTE_C1_P): Likewise.
3539         (Lstream_get_emchar_1): Likewise.
3540         (Lstream_fput_emchar): Likewise.
3541         (Lstream_funget_emchar): Likewise.
3542         (copy_internal_to_external): Likewise.
3543         (copy_external_to_internal): Likewise.
3544
3545         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3546         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3547
3548         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3549         (BYTE_ASCII_P): Moved to mb-1byte.h.
3550
3551 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3552
3553         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3554
3555         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3556         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3557         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3558         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3559         (VALIDATE_CHARPTR_FORWARD): Likewise.
3560         (simple_charptr_emchar): Moved to mb-multibyte.h.
3561         (simple_set_charptr_emchar): Likewise.
3562         (simple_charptr_copy_char): Likewise.
3563         (non_ascii_charptr_emchar): Likewise.
3564         (non_ascii_set_charptr_emchar): Likewise.
3565         (non_ascii_charptr_copy_char): Likewise.
3566         (charptr_emchar): Moved to mb-*byte.h.
3567         (set_charptr_emchar): Likewise.
3568         (charptr_copy_char): Likewise.
3569
3570         * mb-1byte.h, mb-multibyte.h: New files.
3571
3572 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3573
3574         * mb-utf-8.h (MULTIBYTE): New macro.
3575         (MAX_EMCHAR_LEN): Moved from buffer.h.
3576         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3577
3578         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3579
3580         * mb-lb.h, multibyte.h: New files.
3581
3582         * char-1byte.h (Charset_ID): Moved from buffer.h.
3583         (MIN_LEADING_BYTE): Likewise.
3584         (LEADING_BYTE_ASCII): Likewise.
3585         (NUM_LEADING_BYTES): Likewise.
3586         (CHARSETP): Likewise.
3587         (CHARSET_BY_LEADING_BYTE): Likewise.
3588         (XCHARSET_LEADING_BYTE): Likewise.
3589         (XCHARSET_GRAPHIC): Likewise.
3590         (XCHARSET_COLUMNS): Likewise.
3591         (XCHARSET_DIMENSION): Likewise.
3592         (CHAR_CHARSET): Likewise.
3593         (CHAR_LEADING_BYTE): Likewise.
3594         (BREAKUP_CHAR): Likewise.
3595         (Vcharset_ascii): Likewise.
3596
3597         * buffer.h: Include multibyte.h unconditionally.
3598         (VALID_CHARPTR_P): Moved to multibyte.h.
3599         (ASSERT_VALID_CHARPTR): Likewise.
3600         (REAL_INC_CHARPTR): Likewise.
3601         (REAL_INC_CHARBYTIND): Likewise.
3602         (REAL_DEC_CHARPTR): Likewise.
3603         (INC_CHARPTR): Likewise.
3604         (INC_CHARBYTIND): Likewise.
3605         (DEC_CHARPTR): Likewise.
3606         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3607         (VALIDATE_CHARPTR_FORWARD): Likewise.
3608         (charptr_n_addr): Likewise.
3609         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3610         (simple_charptr_emchar): Moved to multibyte.h.
3611         (simple_set_charptr_emchar): Likewise.
3612         (simple_charptr_copy_char): Likewise.
3613         (non_ascii_charptr_emchar): Likewise.
3614         (non_ascii_set_charptr_emchar): Likewise.
3615         (non_ascii_charptr_copy_char): Likewise.
3616         (charptr_emchar): Likewise.
3617         (set_charptr_emchar): Likewise.
3618         (charptr_copy_char): Likewise.
3619         (charptr_emchar_n): Likewise.
3620         (Charset_ID): Moved to char-1byte.h.
3621         (Vcharset_ascii): Likewise.
3622         (CHAR_CHARSET): Likewise.
3623         (CHAR_LEADING_BYTE): Likewise.
3624         (LEADING_BYTE_ASCII): Likewise.
3625         (NUM_LEADING_BYTES): Likewise.
3626         (MIN_LEADING_BYTE): Likewise.
3627         (CHARSETP): Likewise.
3628         (CHARSET_BY_LEADING_BYTE): Likewise.
3629         (XCHARSET_LEADING_BYTE): Likewise.
3630         (XCHARSET_GRAPHIC): Likewise.
3631         (XCHARSET_COLUMNS): Likewise.
3632         (XCHARSET_DIMENSION): Likewise.
3633         (BREAKUP_CHAR): Likewise.
3634
3635 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3636
3637         * character.h: Add document about interface for characters.
3638
3639         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3640         (MAKE_CHAR): Delete comment about
3641         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3642         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3643         (BREAKUP_CHAR): Modify name of arguments.
3644         (CHAR_CHARSET): Modify name of argument.
3645
3646         * buffer.h: Delete document about Emchar accessors.
3647
3648 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3649
3650         * character.h (CHAR_INTP): Moved from buffer.h
3651         (CHAR_OR_CHAR_INTP): Likewise.
3652         (XCHAR_OR_CHAR_INT): Likewise.
3653         (CHECK_CHAR_COERCE_INT): Likewise.
3654
3655         * buffer.h (CHAR_INTP): Moved to character.h
3656         (CHAR_OR_CHAR_INTP): Likewise.
3657         (XCHAR_OR_CHAR_INT): Likewise.
3658         (CHECK_CHAR_COERCE_INT): Likewise.
3659
3660 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3661
3662         * character.h:
3663         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3664         - Include char-1byte.h, char-lb.h or char-ucs.h.
3665
3666         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3667
3668         * buffer.h: Include character unconditionally.
3669         (valid_char_p): Moved to char-*.h.
3670         (non_ascii_valid_char_p): Moved to char-lb.h.
3671
3672         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3673
3674 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3675
3676         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3677         in UTF-2000 because it is not ported yet and not to use
3678         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3679         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3680         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3681
3682         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3683         (CHAR_ASCII_P): Moved from character.h.
3684
3685         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3686         (CHAR_ASCII_P): Likewise.
3687         (CHAR_FIELD1_MASK): Deleted.
3688         (CHAR_FIELD2_MASK): Deleted.
3689         (CHAR_FIELD3_MASK): Deleted.
3690         (MAX_CHAR_BASIC_LATIN): New macro.
3691         (CHAR_FIELD1): Deleted.
3692         (CHAR_FIELD2_INTERNAL): Deleted.
3693         (CHAR_FIELD3_INTERNAL): Deleted.
3694         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3695         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3696         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3697         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3698         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3699         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3700         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3701         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3702         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3703         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3704         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3705         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3706         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3707         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3708         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3709         (MIN_CHAR_COMPOSITION): Deleted.
3710         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3711         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3712
3713 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3714
3715         * buffer.h: Include mb-utf-8.h in UTF-2000.
3716
3717         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3718
3719         * mb-utf-8.h: New file.
3720
3721 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3722
3723         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3724         instead of `int'.
3725
3726         * mule-charset.h, buffer.h (Charset_ID): New type.
3727
3728 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3729
3730         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3731         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3732         instead of `MULE_CHAR_PRIVATE_OFFSET',
3733         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3734         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3735         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3736
3737         * character.h (Vcharset_japanese_jisx0212): New variable
3738         definition.
3739
3740 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3741
3742         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3743         (charset_by_attributes): Delete array about direction.
3744         (latin_a_char_to_charset): New variable in UTF-2000.
3745         (latin_a_char_to_byte1): New variable in UTF-2000.
3746         (latin_a_char_to_byte2): New variable in UTF-2000.
3747         (Qucs_bmp): New variable.
3748         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3749         `Bufbyte'.
3750         (next_allocated_2_byte_leading_byte): Likewise.
3751         (non_ascii_set_charptr_emchar): Likewise.
3752         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3753         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3754         `charset_by_attributes'.
3755         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3756         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3757         and `CHARSET_BY_LEADING_BYTE'.
3758         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3759         `utf-2000-version' to `vars_of_mule_charset'.
3760         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3761         define `leading-code-private-11' in UTF-2000; move setting of
3762         `utf-2000-version' from `syms_of_mule_charset'.
3763         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3764         UTF-2000.
3765
3766         * character.h (Charset_ID): New type.
3767         (LEADING_BYTE_UCS_BMP): New macro.
3768         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3769         (CHARSET_ID_OFFSET_94): New macro.
3770         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3771         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3772         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3773         final-byte.
3774         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3775         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3776         (CHARSET_ID_OFFSET_96): New macro.
3777         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3778         CHARSET_ID_OFFSET_96 and final-byte.
3779         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3780         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3781         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3782         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3783         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3784         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3785         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3786         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3787         (LEADING_BYTE_THAI_TIS620): Likewise.
3788         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3789         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3790         (CHARSET_ID_OFFSET_94x94): New macro.
3791         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3792         CHARSET_ID_OFFSET_94x94 and final-byte.
3793         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3794         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3795         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3796         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3797         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3798         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3799         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3800         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3801         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3802         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3803         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3804         (CHARSET_TYPE_128X128): New macro.
3805         (CHARSET_TYPE_256X256): New macro.
3806         (XCHARSET_PRIVATE_P): Delete unconditionally.
3807         (charset_by_attributes): Delete array about direction.
3808         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3809         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3810         (MIN_CHAR_94): New macro.
3811         (MAX_CHAR_94): New macro.
3812         (MIN_CHAR_96): New macro.
3813         (MAX_CHAR_96): New macro.
3814         (MIN_CHAR_94x94): New macro.
3815         (MAX_CHAR_94x94): New macro.
3816         (MIN_CHAR_96x96): New macro.
3817         (MAX_CHAR_96x96): New macro.
3818         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3819         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3820         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3821         - 32)'.
3822         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3823         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3824         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3825         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3826         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3827         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3828         `XCHARSET_LEADING_BYTE' to make code-point.
3829         (latin_a_char_to_charset): New variable.
3830         (latin_a_char_to_byte1): New variable.
3831         (latin_a_char_to_byte2): New variable.
3832         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3833         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3834         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3835
3836         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3837         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3838         (find_charsets_in_emchar_string): Likewise.
3839         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3840
3841         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3842         `int'.
3843         (decode_coding_iso2022): Likewise.
3844
3845         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3846         of `unsigned char'.
3847
3848         * redisplay.c (redisplay_text_width_emchar_string): Use
3849         `Charset_ID' instead of `unsigned char'.
3850         (redisplay_frame_text_width_string): Likewise.
3851
3852         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3853         `unsigned char'.
3854
3855         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3856         instead of `unsigned char'.
3857         (face_cachel_charset_font_metric_info): Likewise.
3858
3859         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3860         (get_non_ascii_char_table_value): Likewise.
3861         (get_char_table): Likewise.
3862         (put_char_table): Likewise.
3863         (map_over_other_charset): Likewise.
3864         (map_char_table): Likewise.
3865
3866         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3867         instead of `unsigned char'.
3868
3869 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3870
3871         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3872         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3873
3874         * mule-charset.c (leading_code_private_11): Don't define in
3875         UTF-2000.
3876
3877         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3878         in UTF-2000 because it is not ported yet and not to use
3879         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3880
3881 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3882
3883         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3884
3885 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3886
3887         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3888         in UTF-2000.
3889
3890         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3891         of unsigned char to store leading-byte.
3892
3893         * chartab.c (get_non_ascii_char_table_value): Don't use
3894         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3895
3896         * file-coding.c (encode_coding_big5): Delete bogus implementation
3897         in UTF2000.
3898
3899         * character.h (LEADING_BYTE_*): Delete definition for
3900         non-UTF-2000.
3901         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3902         (LEADING_BYTE_PREFIX_P): Deleted.
3903         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3904         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3905         (BUFBYTE_LEADING_BYTE_P): Deleted.
3906         (CHARSET_PRIVATE_P): Deleted unconditionally.
3907         (rep_bytes_by_first_byte): Deleted unconditionally.
3908         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3909         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3910         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3911         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3912         (CHAR_FIELD2): Deleted.
3913         (CHAR_FIELD3): Deleted.
3914         (MAKE_CHAR): Delete definition for non-UTF-2000.
3915         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3916         (breakup_char_1): New implementation.
3917         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3918         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3919
3920 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3921
3922         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3923         condition.
3924
3925 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3926
3927         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3928         (CHARSET_PRIVATE_P): Likewise.
3929         (XCHARSET_PRIVATE_P): Likewise.
3930         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3931
3932         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3933         UTF2000.
3934         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3935
3936 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3937
3938         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3939         (NUM_LEADING_BYTES): Changed from 128 to 256.
3940         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3941         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3942         UTF2000.
3943         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3944
3945         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3946         UTF2000.
3947         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3948         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3949         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3950         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3951         (Qchinese_cns11643_3): New variable in UTF2000.
3952         (Qchinese_cns11643_4): New variable in UTF2000.
3953         (Qchinese_cns11643_5): New variable in UTF2000.
3954         (Qchinese_cns11643_6): New variable in UTF2000.
3955         (Qchinese_cns11643_7): New variable in UTF2000.
3956         (syms_of_mule_charset): Define `chinese-cns11643-3',
3957         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3958         and `chinese-cns11643-7' in UTF2000.
3959         (vars_of_mule_charset): Initialize
3960         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3961         + 1 in UTF2000.
3962         (complex_vars_of_mule_charset): Setup charset
3963         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3964         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3965
3966 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3967
3968         * mule-charset.c: Move setting for `leading-code-private-11' from
3969         `syms_of_mule_charset' to `vars_of_mule_charset'.
3970
3971 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3972
3973         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3974         and `NUM_LEADING_BYTES' in assert.
3975
3976 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3977
3978         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3979         instead of 128.
3980         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3981         `NUM_LEADING_BYTES' instead of 128.
3982
3983 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3984
3985         * mule-charset.h (charset_by_leading_byte): Use
3986         `NUM_LEADING_BYTES' instead of 128.
3987         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3988
3989         * mule-charset.c (charset_by_leading_byte): Use
3990         `NUM_LEADING_BYTES' instead of 128.
3991         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3992
3993         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3994         128.
3995
3996 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3997
3998         * mule-charset.c (syms_of_mule_charset): Update to
3999         0.4 (Shin-Imamiya).
4000
4001 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4002
4003         * file-coding.c (encode_coding_sjis): New implementation for
4004         UTF2000.  (decode_coding_sjis): Ditto.
4005
4006 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4007
4008         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4009         Don't define in UTF2000.
4010
4011         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4012         defined.
4013
4014         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4015         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4016         MULE.
4017
4018 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4019
4020         * config.h.in (CHAR_IS_UCS4): New macro.
4021
4022         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4023         conventional MULE representation.
4024         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4025
4026         * mule-charset.h: Reverted to original.
4027
4028         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4029         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4030         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4031
4032         * character.h: New file.
4033
4034         * file-coding.c (Fmake_coding_system): Set 1 to
4035         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4036         defined.
4037         (encode_coding_no_conversion): New implementation for UTF2000.
4038
4039         * file-coding.h (struct Lisp_Coding_System): Add new member
4040         `fixed.size'.
4041
4042 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4043
4044         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4045         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4046         (encode_coding_iso2022): New implementation for UTF2000.
4047
4048 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4049
4050         * mule-canna.c (c2mu): New implementation for UTF2000.
4051         (m2c): Likewise.
4052
4053 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4054
4055         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4056
4057 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4058
4059         * file-coding.c (reset_encoding_stream): Set 0 to
4060         `str->iso2022.current_char_boundary' in UTF2000.
4061         (encode_utf8): Don't define in UTF2000.
4062         (encode_coding_utf8): New implementation for UTF-8 representation
4063         of UTF2000.
4064         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4065
4066 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4067
4068         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4069
4070         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4071         UTF2000.
4072         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4073
4074         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4075
4076         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4077         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4078         as UTF-8 in UTF2000.
4079         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4080         (non_ascii_valid_char_p): Don't define in UTF2000.
4081         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4082         (Lstream_get_emchar_1): Likewise.
4083         (utf-2000-version): New variable in UTF2000.
4084
4085         * lread.c (read_escape): Add new reader `u'.
4086
4087         * insdel.c (three_to_one_table): Don't define in UTF2000.
4088         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4089         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4090         UTF2000.
4091         (bytind_to_bufpos_func): Likewise.
4092         (buffer_mule_signal_inserted_region): Likewise.
4093         (vars_of_insdel): Don't initialize `three_to_one_table'.
4094         (init_buffer_text): Use `buf->text->mule_size' instead of
4095         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4096         UTF2000.
4097
4098         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4099         UTF-8 representation in UTF2000.
4100         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4101         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4102         (decode_coding_iso2022): Don't define local variable `lb' in
4103         UTF2000; don't use LEADING_BYTE in UTF2000; use
4104         `DECODE_ADD_UCS_CHAR' in UTF2000.
4105         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4106
4107         * config.h.in (UTF2000): New macro.
4108
4109         * buffer.h (struct buffer_text): Add new member `mule_size' and
4110         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4111         (valid_char_p): Return always 1 in UTF2000.
4112         (MAX_EMCHAR_LEN): 6 in UTF2000.
4113         (three_to_one_table): Don't define in UTF2000.
4114         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4115         UTF2000.
4116         (real_bytind_to_bufpos): Likewise.
4117
4118         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4119
4120 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4121
4122         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4123         representation change.
4124         (Vutf_2000_version): New variable.
4125         (leading_code_private_11): New variable.
4126         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4127         `leading-code-private-11'.
4128
4129         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4130         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4131         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4132         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4133         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4134         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4135         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4136         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4137         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4138         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4139         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4140         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4141         (MIN_CHAR_GREEK): New macro.
4142         (MAX_CHAR_GREEK): New macro.
4143         (MIN_CHAR_CYRILLIC): New macro.
4144         (MAX_CHAR_CYRILLIC): New macro.
4145         (MIN_CHAR_HEBREW): New macro.
4146         (MAX_CHAR_HEBREW): New macro.
4147         (MIN_CHAR_THAI): New macro.
4148         (MAX_CHAR_THAI): New macro.
4149         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4150         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4151         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4152         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4153         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4154         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4155         (CHAR_FIELD2): New inline function.
4156         (CHAR_FIELD3): New inline function.
4157         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4158         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4159         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4160         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4161         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4162         (MIN_CHAR_COMPOSITION): Likewise.
4163         (CHAR_LEADING_BYTE): Modified for character representation change.
4164         (MAKE_CHAR): Likewise.
4165
4166         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4167         (Vcharset_greek_iso8859_7): Likewise.
4168         (Vcharset_cyrillic_iso8859_5): Likewise.
4169         (Vcharset_hebrew_iso8859_8): Likewise.
4170         (Vcharset_thai_tis620): Likewise.
4171         (Vcharset_katakana_jisx0201): Likewise.
4172
4173 2001-02-08  Martin Buchholz <martin@xemacs.org>
4174
4175         * XEmacs 21.2.44 "Thalia" is released.
4176
4177 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4178
4179         Fixes crashes in kill-emacs on some systems.
4180         * process-unix.c (unix_kill_child_process):
4181         It's OK for kill() to fail with ESRCH.
4182
4183 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4184
4185         Contortions to make .gdbinit tricks work on most systems.
4186         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4187         * alloc.c (dbg_valmask): Make non-const.
4188         * alloc.c (dbg_typemask): Make non-const.
4189         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4190         * alloc.c (dbg_valbits): Make non-const.
4191         * alloc.c (dbg_gctypebits): Make non-const.
4192         * .gdbinit (decode_object): Make it work with AIX cc.
4193
4194 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4195
4196         * elhash.c (make_general_lisp_hash_table):
4197         Use simpler and more efficient calloc to clear entries.
4198
4199 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4200
4201         * window.c (window_scroll): Work around an AIX C compiler bug.
4202         Fixes 'scroll-up' does nothing problem with xlC.
4203
4204 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4205
4206         * .gdbinit: Remove obsolete comment.
4207
4208 2001-01-31  Mike Alexander  <mta@arbortext.com>
4209
4210         * select.c (Fown_selection_internal): Set owned_p for device
4211         method correctly.
4212
4213 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4214
4215         Port to g++ 2.97.
4216         "not" cannot be used as a macro name as it is an operator in C++
4217         * config.h.in: Stop #defining `not'.
4218         * chartab.c (check_category_char): not ==> not_p
4219         * chartab.h: Likewise.
4220         * regex.c (re_match_2_internal): Likewise.
4221
4222 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4223
4224         * lisp-disunion.h: Fix up comments.
4225
4226 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4227
4228         * keymap.c (define_key_check_and_coerce_keysym):
4229         (syms_of_keymap):
4230         Support mouse-6 and mouse-7 bindings in the obvious way.
4231
4232 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4233
4234         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4235
4236 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4237
4238         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4239         Previous patch missed DEFVAR_INT_MAGIC.
4240         Make sure future DEFVAR_foo use correct types.
4241         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4242         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4243         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4244         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4245         * (DEFVAR_INT): Likewise.
4246         * redisplay.c (vertical_clip): Should be of type Fixnum.
4247         * redisplay.c (horizontal_clip): Likewise.
4248         * lisp.h (dump_add_opaque_int): New.
4249         (dump_add_opaque_fixnum): New.
4250
4251 2001-01-29  Andy Piper  <andy@xemacs.org>
4252
4253         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4254         since they can be eval'ed
4255
4256 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4257
4258         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4259         Oops, XEmacs redefines `class'.  Use `typename' instead.
4260
4261 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4262
4263         * dumper.c: Fix C++ compile errors.
4264
4265 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4266
4267         * tparam.c: Use correct prototypes.
4268
4269 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4270
4271         * sysproc.h: #include util.h for NetBSD's openpty.
4272
4273 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4274
4275         More 64-bit correctness.
4276         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4277         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4278         Fix up comments.
4279         This finally finishes the 64-bit SGI port.
4280         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4281         * symbols.c: Fix up comments and type casts.
4282         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4283         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4284         * symeval.h (Fixnum): New type.
4285         * symeval.h (symbol_value_type): Fix up comment.
4286
4287         * commands.h:
4288         * nt.c:
4289         * emacs.c:
4290         * data.c:
4291         * redisplay.c:
4292         * abbrev.c:
4293         * dired-msw.c:
4294         * event-Xt.c:
4295         * eldap.c:
4296         * window.c:
4297         * sound.c:
4298         * event-stream.c:
4299         * eval.c:
4300         * buffer.c:
4301         * mule-canna.c: A million DEFVAR_INTs here...
4302         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4303         * extents.c:
4304         * cmdloop.c:
4305         * lisp.h:
4306         * select-x.c:
4307         * console-x.h:
4308         * event-msw.c:
4309         * mule-wnnfns.c:
4310         * hpplay.c:
4311         * ralloc.c:
4312         * alloc.c:
4313         * keymap.c:
4314         * profile.c:
4315         s/int/Fixnum/g in DEFVAR_INT declarations.
4316
4317 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4318
4319         Port pdump to SGI alignment-sensitive environment.
4320         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4321         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4322         properly aligned.
4323         Define and use aligned reading and writing macros.
4324         Use buffered stdio instead of posix i/o for faster dumping.
4325         Eliminate kludgy 256 byte space for header.
4326         Read and write from dump file using structs for alignment safety.
4327         * dumper.c (pdump_align_stream): New.
4328         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4329         * dumper.c (PDUMP_READ_ALIGNED): New.
4330         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4331         * dumper.c (pdump_static_Lisp_Object): New struct.
4332         * dumper.c (pdump_static_pointer): New struct.
4333         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4334         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4335         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4336         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4337
4338         * dumper.c (pdump_backtrace):
4339         * dumper.c (pdump_get_indirect_count):
4340         * dumper.c (pdump_register_object):
4341         * dumper.c (pdump_register_struct):
4342         * dumper.c (pdump_reloc_one):
4343         * dumper.c (pdump_scan_by_alignment):
4344         * dumper.c (pdump_dump_from_root_struct_ptrs):
4345         * dumper.c (pdump_dump_opaques):
4346         * dumper.c (pdump_dump_rtables):
4347         * dumper.c (pdump_dump_from_root_objects):
4348         * dumper.c (pdump):
4349         * dumper.c (pdump_load_finish):
4350         Use aligned reading and writing.
4351
4352         * dumper.c (pdump_free): Make static.
4353         * dumper.c (pdump_hFile): Likewise.
4354         * dumper.c (pdump_hMap): Likewise.
4355
4356 2001-01-26  Martin Buchholz <martin@xemacs.org>
4357
4358         * XEmacs 21.2.43 "Terspichore" is released.
4359
4360 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4361
4362         Type fiddling for window_config.saved_windows_count
4363         * window.c (struct window_config): 
4364         Make saved_windows_count member unsigned.
4365         * window.c (sizeof_window_config_for_n_windows): 
4366         Make parameter unsigned.
4367         * window.c (mark_window_config):
4368         * window.c (window_config_equal):
4369         * window.c (free_window_configuration):
4370         * window.c (Fset_window_configuration):
4371         * window.c (count_windows):
4372         * window.c (Fcurrent_window_configuration):
4373         * window.c (reinit_vars_of_window):
4374         Update all callers and users.
4375
4376 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4377
4378         Alignment correctness for flexible arrays.
4379         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4380         Make alignment-correct. Add interesting comments.
4381         * alloc.c (size_vector):
4382         * alloc.c (make_vector_internal):
4383         * alloc.c (make_bit_vector_internal):
4384         * alloc.c (sweep_bit_vectors_1):
4385         * fns.c (size_bit_vector):
4386         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4387         * window.c (sizeof_window_config_for_n_windows): 
4388         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4389
4390 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4391
4392         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4393
4394 2001-01-23  Andy Piper  <andy@xemacs.org>
4395
4396         * select.c (Fown_selection_internal): pass owned_p
4397
4398         * select-msw.c (mswindows_own_selection): New Signature.
4399
4400         * console.h (struct console_methods): add owned_p to
4401         _own_selection.
4402
4403         * select-x.c (x_own_selection): pass owned_p
4404         (hack_motif_clipboard_selection): use owned_p
4405         (vars_of_select_x): new variable -
4406         x_selection_strict_motif_ownership.
4407
4408 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4409
4410         * specifier.h (specifier_data_offset): Remove pointless parens.
4411         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4412
4413 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4414
4415         Make Lisp_Object sizeof methods be alignment-correct.
4416         pdump must restore objects to the same alignment as the C compiler
4417         assumes.  It really matters on SGIs.
4418         * lstream.c (aligned_sizeof_lstream): New.
4419         (sizeof_lstream): Use aligned_sizeof_lstream.
4420         (Lstream_new): Likewise.
4421         * opaque.c (aligned_sizeof_opaque): New.
4422         (sizeof_opaque): Use aligned_sizeof_opaque.
4423         (make_opaque): Likewise.
4424         * specifier.c (aligned_sizeof_specifier): New.
4425         (sizeof_specifier): Use aligned_sizeof_specifier.
4426         (make_specifier_internal): Likewise.
4427
4428 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4429
4430         * lstream.h (struct lstream): Use max_align_t for trailing data.
4431         * specifier.h (struct Lisp_Specifier): Likewise.
4432
4433 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4434
4435         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4436         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4437         (CCL_SUSPEND): Likewise.
4438         (CCL_INVALID_CMD): Likewise.
4439         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4440         (ccl_driver): Likewise.
4441         (CCL_WRITE_CHAR): Macro hygiene.
4442         (CCL_WRITE_STRING): Macro hygiene.
4443
4444 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4445
4446         Port "portable" dumper to SunOS 4 and HP-UX.
4447         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4448         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4449         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4450
4451 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4452
4453         * lisp.h (ALIGNOF): A better definition for C++.
4454
4455 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4456
4457         Macro hygiene.
4458         Fix printf warnings: int format, long int arg.
4459         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4460         (PUSH_FAILURE_POINT): Use correct printf formats.
4461         (POP_FAILURE_POINT): Use correct printf formats.  
4462         Use do {...} while (0)
4463
4464 2001-01-20  Martin Buchholz <martin@xemacs.org>
4465
4466         * XEmacs 21.2.42 "Poseidon" is released.
4467
4468 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4469
4470         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4471
4472 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4473
4474         De-kludgify FIXED_TYPE free list frobbing.
4475         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4476         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4477         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4478         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4479         * alloc.c (LRECORD_FREE_P): New.
4480         * alloc.c (MARK_LRECORD_AS_FREE): New.
4481         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4482         * alloc.c (STRUCT_FREE_P): Deleted.
4483         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4484         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4485         * alloc.c (STRING_CHARS_FREE_P): New.
4486         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4487         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4488         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4489         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4490         * alloc.c (resize_string): Use new definitions.
4491         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4492         * alloc.c (verify_string_chars_integrity): Use new definitions.
4493         * alloc.c (compact_string_chars): Use new definitions.
4494         * alloc.c: Update monster comments.
4495         * lrecord.h (lrecord_type): Add some new lrecord types for
4496         alloc.c's use.
4497
4498 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4499
4500         Improve alignment hackery.
4501         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4502         (max_align_t): Moved from opaque.h - general purpose.
4503         (ALIGN_PTR): Use size_t, not long.
4504         * opaque.h (max_align_t): Move to lisp.h.
4505
4506 2001-01-18  Norbert Koch  <nk@LF.net>
4507
4508         * gui.h: Fix and add prototypes to fix build problems.
4509
4510 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4511
4512         temacs is going away, so `dump-temacs' is now a bad name.
4513         * .dbxrc (dump-temacs): Rename to `dmp'.
4514         * .gdbinit (dump-temacs): Rename to `dmp'.
4515
4516 2001-01-17  Andy Piper  <andy@xemacs.org>
4517
4518         * glyphs.c (print_image_instance): comment to make martin happy.
4519
4520         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4521         change.
4522
4523         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4524         activation.
4525         (mswindows_tab_control_redisplay): warning suppression.
4526
4527         * glyphs-widget.c (widget_update): re-write to cope with updated
4528         items.
4529         (widget_instantiate): use new gui_item functions.
4530         (tab_control_update): deleted.
4531         (progress_gauge_update): deleted.
4532         (image_instantiator_progress_guage): take out update reference.
4533         (image_instantiator_tree_view): ditto.
4534         (image_instantiator_tab_control): ditto.
4535
4536         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4537         Right the new way.
4538         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4539         return whether anything was changed.
4540         (update_gui_item_keywords): as it sounds.
4541
4542         * gui.h: declare widget_gui_parse_item_keywords.
4543
4544         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4545         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4546
4547 2001-01-17  Martin Buchholz <martin@xemacs.org>
4548
4549         * XEmacs 21.2.41 "Polyhymnia" is released.
4550
4551 2001-01-16  Didier Verna  <didier@xemacs.org>
4552
4553         * glyphs.c (image_instantiate): don't use fallbacks when
4554         instantiating a face's background pixmap by inheritance.
4555
4556 2001-01-14  Mike Sperber <mike@xemacs.org>
4557
4558         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4559         Conditionalize accordingly.
4560
4561 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4562
4563         * dumper.c (pdump_file_get): Fix a compiler warning.
4564
4565 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4566
4567         Make Purify happy when pdumping.
4568         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4569         iniitalizing all bits of new lisp object memory.
4570         * symbols.c (Fmake_local_variable): Likewise.
4571         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4572         * symbols.c (Fdefvaralias): Likewise.
4573         * mule-charset.c (vars_of_mule_charset): Likewise.
4574
4575 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4576         Add the `-nd' flag when running pre-dump operations under the debugger.
4577         * .dbxrc (run-temacs): Add `-nd'.
4578         * .dbxrc (update-elc): Likewise.
4579         * .dbxrc (dump-temacs): Likewise.
4580         * .gdbinit (run-temacs): Likewise.
4581         * .gdbinit (check-temacs): Likewise.
4582         * .gdbinit (update-elc): Likewise.
4583         * .gdbinit (dump-temacs): Likewise.
4584
4585 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4586
4587         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4588         export OBJECT_MODE=64
4589         configure --pdump --use-union-type=no
4590         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4591         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4592
4593         * miscplay.c (sndcnv8U_2mono):
4594         Avoid two uses of `++' in the same expression.
4595         Suppresses a GCC warning.
4596
4597 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4598
4599         Make sure future compilers don't miscompile alloc.c.
4600         * alloc.c:
4601         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4602         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4603
4604 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4605
4606         * dumper.c: A little post-pdump-rename comment fixup.
4607
4608 2001-01-09  Jerry James  <james@eecs.ku.edu>
4609
4610         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4611
4612 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4613
4614         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4615         script:
4616         #!/bin/sh
4617         replace_symbol () {
4618           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4619         }
4620
4621         replace_symbol pdump_wire_lists pdump_weak_object_chains
4622         replace_symbol pdump_wire_list dump_add_weak_object_chain
4623
4624         replace_symbol pdump_wires pdump_root_objects
4625         replace_symbol pdump_wire dump_add_root_object
4626
4627         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4628         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4629
4630         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4631         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4632         replace_symbol dumpstructinfo pdump_root_struct_ptr
4633         replace_symbol dumpstruct dump_add_root_struct_ptr
4634
4635         replace_symbol dumpopaque dump_add_opaque
4636         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4637         replace_symbol dumpopaqueinfos pdump_opaques
4638         replace_symbol dumpopaqueinfo pdump_opaque
4639
4640         replace_symbol nb_structdump nb_root_struct_ptrs
4641         replace_symbol nb_opaquedump nb_opaques
4642
4643         replace_symbol align_table pdump_align_table
4644         replace_symbol dump_header pdump_header
4645
4646         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4647         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4648
4649
4650 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4651
4652         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4653         optimizing bytecount_to_charcount().
4654
4655 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4656
4657         * config.h.in:
4658         (HAVE_DLFCN_H): Removed.
4659         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4660
4661 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4662
4663         Portable dumper maintainability improvements.
4664         * alloc.c (staticpro):
4665         * alloc.c (staticpro_nodump):
4666         * alloc.c (garbage_collect_1):
4667         * alloc.c (reinit_alloc_once_early):
4668         * alloc.c (init_alloc_once_early):
4669         * alloc.c: Move dumper functions to alloc.c.
4670         * dumper.c (pdump_backtrace):
4671         * dumper.c (pdump_dump_structs):
4672         * dumper.c (pdump_dump_opaques):
4673         * dumper.c (pdump_dump_rtables):
4674         * dumper.c (pdump_dump_wired):
4675         * dumper.c (pdump):
4676         * dumper.c (pdump_load_check):
4677         * dumper.c (pdump_load_finish):
4678         * dumper.c (pdump_file_unmap):
4679         * dumper.c (pdump_file_get):
4680         * dumper.c (pdump_resource_free):
4681         * dumper.c (pdump_resource_get):
4682         * dumper.c (pdump_file_free):
4683         * dumper.c (pdump_file_try):
4684         * dumper.c (pdump_load):
4685         Remove fixed size limits on staticpro(), staticpro_nodump(),
4686         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4687         Remove custom code for dumping lrecord_implementations_table - use
4688         dumpopaque instead.
4689         Remove (most of the) custom code for dumping staticpros - dump it
4690         like any other dynarr.
4691
4692         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4693         * dumper.c: Moved functions from alloc.c.
4694         * alloc.c (dumpstruct): Moved to dumper.c.
4695         * alloc.c (dumpopaque): Likewise.
4696         * alloc.c (pdump_wire): Likewise.
4697         * alloc.c (pdump_wire_list): Likewise.
4698
4699         * lisp.h (Dynarr_sizeof): New.
4700         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4701         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4702         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4703
4704         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4705         * lisp.h (dumpopaque): ditto.
4706         * lisp.h (pdump_wire): ditto.
4707         * lisp.h (pdump_wire_list): ditto.
4708
4709 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4710
4711         * make-src-depend (PrintPatternDeps):
4712         Use `sort' to make output independent of perl version.
4713
4714 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4715
4716         Port to Netbsd 1.5.
4717         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4718         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4719
4720 2001-01-03  Didier Verna  <didier@xemacs.org>
4721
4722         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4723         that `focus_frame' is alive before thinking of calling
4724         `redisplay_redraw_cursor' on it.
4725
4726 2001-01-08  Martin Buchholz <martin@xemacs.org>
4727
4728         * XEmacs 21.2.40 is released.
4729
4730 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4731
4732         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4733
4734 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4735
4736         * alloc.c (dbg_valmask): Make const.
4737         * alloc.c (dbg_typemask): Make const.
4738         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4739         * alloc.c (dbg_valbits): Make const.
4740         * alloc.c (dbg_gctypebits): Make const.
4741
4742 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4743
4744         * redisplay-x.c (x_bevel_area):
4745         redisplay.h (struct rune):
4746         Typo fixes in comments.
4747
4748 2001-01-05  Andy Piper  <andy@xemacs.org>
4749
4750         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4751         adjustment.
4752
4753         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4754
4755 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4756
4757         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4758
4759         * mule-ccl.c (stack_idx_of_map_multiple):
4760         Non const global data must not be initialized!
4761         Found by MIYASHITA Hisashi.
4762
4763 2001-01-02  Andy Piper  <andy@xemacs.org>
4764
4765         * frame.c (change_frame_size): make sure frame size is always
4766         marked as changed.
4767
4768         * glyphs.c (image_instance_layout): minor code reuse.
4769
4770         * window.c (Fcurrent_window_configuration): revert previous
4771         change.
4772
4773 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4774
4775         * glyphs.h:
4776         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4777
4778 2000-12-31  Andy Piper  <andy@xemacs.org>
4779
4780         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4781         when widget gets unmapped.
4782
4783         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4784         function. Make sure widgets losing focus don't just drop it.
4785         (handle_focus_event_1): record the widget with focus.
4786
4787 2000-12-31  Andy Piper  <andy@xemacs.org>
4788
4789         * window.c (allocate_window): use
4790         make_image_instance_cache_hash_table.
4791         (make_dummy_parent): ditto.
4792         (Fset_window_configuration): ditto.
4793
4794         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4795
4796         * glyphs.c (process_image_string_instantiator): use
4797         INSTANTIATOR_TYPE.
4798         (get_image_instantiator_governing_domain): ditto.
4799         (normalize_image_instantiator): ditto.
4800         (instantiate_image_instantiator): ditto.
4801         (make_image_instance_1): ditto.
4802         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4803         (instantiator_eq_equal): new function for use with instance hash
4804         tables.
4805         (instantiator_eq_hash): ditto.
4806         (make_image_instance_cache_hash_table): create a suitable hash
4807         table for storing image instances.
4808
4809         * elhash.h (hash_table_weakness): new internal weakness type
4810         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4811         declare new functions.
4812
4813         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4814         another weakness type for glyphs.
4815         (make_standard_lisp_hash_table): new function split out from
4816         make_general_lisp_hash_table.
4817         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4818         (hash_table_instantiate): ditto.
4819         (Fmake_hash_table): ditto.
4820
4821 2000-12-31  Martin Buchholz <martin@xemacs.org>
4822
4823         * XEmacs 21.2.39 is released.
4824
4825 2000-12-29  Andy Piper  <andy@xemacs.org>
4826
4827         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4828
4829         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4830         the frame has changed so that we pick up geometry changes such as
4831         menubar visibility.
4832
4833 2000-12-28  Andy Piper  <andy@xemacs.org>
4834
4835         * lastfile.c (my_ebss): make a char array so we can pad the
4836         bss. Fixes cygwin unexec.
4837
4838         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4839
4840 2000-12-26  Andy Piper  <andy@xemacs.org>
4841
4842         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4843         comments and try and be more precise about a non-/SIGIO world.
4844         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4845         SIGIO.
4846
4847         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4848         we don't normalize to zero width or height.
4849
4850 2000-12-24  Andy Piper  <andy@xemacs.org>
4851
4852         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4853
4854 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4855
4856         * s/sco5.h: SCO 5 has pty support.
4857
4858 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4859
4860         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4861         input-method-xlib.c contains whole contents of input-method-xfs.c,
4862         so we can use input-method-xlib.c's code for USE_XFONTSET
4863         using #ifdefs.
4864         * input-method-xfs.c: removed.
4865
4866 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4867
4868         * file-coding.h (enum coding_category_type): reorder enumerators to
4869         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4870         (now one greater than largest real coding_category_type enumerator).
4871         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4872         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4873         Fcoding_category_list, Fset_coding_priority_list,
4874         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4875         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4876
4877 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4878
4879         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4880         * redisplay-output.c (redisplay_output_window): Clear top of window
4881         when face is changed.
4882         * redisplay-x.c (x_redraw_exposed_window): Call
4883         redisplay_clear_top_of_window.
4884         * redisplay.h: Publish redisplay_clear_top_of_window.
4885
4886 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4887
4888         * buffer.c (Fkill_buffer): Map over all devices.
4889         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4890         (list_windows): New function.
4891         (list_all_windows): Ditto.
4892         (Freplace_buffer_in_windows): Use them.
4893
4894 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4895
4896         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4897         (Fopen_database): Use `db_create' instead of `db_open'.
4898         (syms_of_database): Initialize Qqueue.
4899
4900 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4901
4902         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4903         buffer_local_face_property.
4904         * buffer.h (struct buffer): New member buffer_local_face_property.
4905         * window.c (Fset_window_buffer):  Mark window's face as changed
4906         when buffer has buffer local face.
4907         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4908         * objects.c (color_after_change): Set buffer_local_face_property
4909         when locale of face specifier is buffer.
4910         * objects.c (font_after_change): Ditto.
4911         * objects.c (face_boolean_after_change): Ditto.
4912         * glyphs.c (image_after_change): Ditto.
4913
4914 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4915
4916         * nt.c (mswindows_fstat): Report file permissions, volume serial
4917         number, etc. Code adapted from FSF Emacs 20.7.
4918
4919 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4920
4921         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4922         of stat when we don't have symbolic links, to make sure
4923         mswindows_stat is called on mswindows.
4924
4925 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4926
4927         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4928
4929 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4930
4931         * doprnt.c (emacs_doprnt_1): More printing fixes.
4932         Make printing of numbers compatible with libc and FSF Emacs.
4933         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4934         Use the system printf to do most of the hard work of formatting,
4935         instead of doprnt_1().
4936         Calculate memory to allocate for format string.
4937         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4938         (doprnt_1): Cleaner code and documentation.
4939
4940 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4941
4942         * Makefile.in.in: Use the loop variable to install headers.
4943
4944 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4945
4946         * window.c (Fsplit_window): Don't invalidate face cache.
4947
4948 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4949
4950         * minibuf.c (Fall_completions): Undo the previous change
4951         which removed checking elements start with space.
4952
4953 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4954
4955         * mule-canna.c: Didier suppression.
4956
4957 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4958
4959         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4960         (warning suppression).  Add English comment translations.
4961
4962 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4963
4964         * unexelfsgi.c (unexec): Better test for mmap failure.
4965
4966 2000-12-05  Martin Buchholz <martin@xemacs.org>
4967
4968         * XEmacs 21.2.38 is released.
4969
4970 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4971
4972         * redisplay.c (bar-cursor): Make a user variable.
4973
4974         * symsinit.h: Add init_postgresql_from_environment.
4975
4976 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4977
4978         * regex.c: Convert to clean C.
4979
4980 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4981
4982         * realpath.c:
4983         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4984         initialization.
4985         (sys_readlink): renamed to system_readlink to avoid conflict with
4986         the other sys_readlink.
4987
4988 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4989
4990         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4991
4992 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4993
4994         * postgresql.c (init_postgresql_from_environment): new function.
4995         (vars_of_postgresql): Move code initializing Lisp variables out and
4996         into init_postgresql_from_environment.
4997         emacs.c (main_1): Call init_postgresql_from_environment if and only
4998         if running a dumped XEmacs.
4999
5000 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5001
5002         * buffer.c: Make find-file-compare-truenames default to true on
5003         windows.
5004
5005         * realpath.c (win32_abs_start):
5006         (cygwin_readlink):
5007         (win32_readlink): New functions.
5008         (xrealpath): Return really real filenames on windows.
5009
5010         * fileio.c (Ffile_truename): Make file-truename work on windows.
5011
5012 2000-11-29  Didier Verna  <didier@xemacs.org>
5013
5014         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5015         * faces.c (update_face_cachel_data): use it.
5016         * faces.c (add_face_cachel): use it. Complete background pixmap
5017         frobbing in face cache if `update_face_cachel_data' has not done so.
5018
5019 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5020
5021         * search.c (string_match_1): Don't set last_thing_searched
5022         when search failed.
5023
5024 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5025
5026         * buffer.c: Include casetab.h
5027         (common_init_complex_vars_of_buffer): Use new case-table object.
5028         * buffer.h: Include casetab.h
5029         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5030         (DOWNCASE_TABLE_OF): Ditto.
5031         * bufslots.h: Remove char-tables and add case-table.
5032         * casetab.c: Include casetab.h
5033         (CASE_TABLE_P): Removed.
5034         (mark_case_table): New function.
5035         (allocate_case_table): New function.
5036         (Fcase_table_p): Use new case-table.
5037         (case_table_char): New function.
5038         (Fget_case_table): Ditto.
5039         (Fput_case_table): Ditto.
5040         (Fput_case_table_pair): Ditto.
5041         (Fcopy_case_table): Ditto.
5042         (Fcurrent_case_table): Return case-table.
5043         (Fstandard_case_table): Return case-table.
5044         (Fset_case_table): Fix doc-string.
5045         (set_case_table): Use case-table
5046         (syms_of_casetab): DEFSUBR new functions.
5047         (complex_vars_of_casetab): Set up standard case-table.
5048         * casetab.h: New file.
5049         * editfns.c: Include casetab.h
5050         (Fcompare_buffer_substrings): Use case-table.
5051         * inline.c: Include casetab.h
5052         * lisp.h: Remove bogus extern.
5053         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5054         * search.c: Include casetab.h
5055         (TRANSLATE_ASCII): Removed.
5056         (TRANSLATE): Unconditionally translate character.
5057         (looking_at_1): Use case-table.
5058         (string_match_1): Ditto.
5059         (fast_string_match): Ditto.
5060         (search_command): Ditto.
5061         (search_buffer): Separate boyer_moore.  Check whether
5062         boyer_moore is possible.
5063         (simple_search): New function.
5064         (boyer_moore): Separated from search_buffer. Translate char.
5065
5066 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5067
5068         * regex.c (RE_TR_ASCII): Removed.
5069         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5070         (PATFETCH): Call PATFETCH_RAW.
5071         (PATFETCH_RAW): Fetch Emchar.
5072         (PATUNFETCH): Decrement charptr.
5073         (GET_BUFFER_SPACE): Rename b to buf_end.
5074         (BUF_PUSH): Ditto.
5075         (BUF_PUSH_2): Ditto.
5076         (BUF_PUSH_3): Ditto.
5077         (EXTEND_BUFFER): Ditto.
5078         (SET_LIST_BIT): Ditto.
5079         (regex_compile): Ditto.  Translate non ASCII char.
5080         (compile_range): Ditto.
5081         (re_search_2): Ditto.
5082         (re_match_2_internal): Compare Emchar.
5083         (bcmp_translate): Ditto.
5084
5085 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5086
5087         * lisp.h (basic char/int typedefs):  comment improvement.
5088
5089 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5090
5091         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5092         unstomp inhibit_site_lisp.  Improve comments.
5093
5094 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5095
5096         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5097
5098 2000-11-28  Andy Piper  <andy@xemacs.org>
5099
5100         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5101         clipped display for windows in the gutter also.
5102         (redisplay_display_boxes_in_window_p): change semantics of return
5103         codes to be more intuitive.
5104
5105         * gutter.h: declare display_boxes_in_gutter_p.
5106
5107         * gutter.c (display_boxes_in_gutter_p): new function for
5108         redisplay.
5109
5110 2000-11-22  Andy Piper  <andy@xemacs.org>
5111
5112         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5113         autodetect domain.
5114
5115 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5116
5117         * callproc.c (Fold_call_process_internal):
5118         * gpm.c (Freceive_gpm_event):
5119         (tty_get_foreign_selection): Might be just warning supression.
5120         * fileio.c (Fwrite_region_internal):
5121         (Fset_visited_file_modtime):
5122         * keymap.c (event_matches_key_specifier_p):
5123         Initialize GCPROed variable.
5124
5125         * menubar-x.c (command_builder_find_menu_accelerator):
5126         Initialize before use.
5127
5128 2000-11-23  Andy Piper  <andy@xemacs.org>
5129
5130         * unexcw.c (unexec): make the resulting executable executable.
5131
5132 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5133
5134         * doc.c (get_doc_string):
5135         Use size_t, not int, for result of XSTRING_LENGTH.
5136
5137         * cmds.c (Fdelete_char):
5138         * cmds.c (Fpoint_at_eol):
5139         * cmds.c (Fself_insert_command):
5140         Use EMACS_INT, not int, for result of XINT.
5141         Someday, someone will want to insert more than 2**31 identical characters.
5142
5143         * cmds.c (Fdelete_char):
5144         * cmds.c (Fdelete_backward_char):
5145         * syntax.c (Fforward_word):
5146         * syntax.c (Fforward_comment):
5147         Make COUNT argument optional, for consistency with forward-char et al.
5148
5149 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5150
5151         * lisp.h:
5152         * print.c (long_to_string):
5153         Return a useful value: the pointer at end of data written.
5154
5155         * doprnt.c:
5156         Use `static const char * const' for constant strings.
5157         (union printf_arg): Delete `i', `ui' members.
5158         (get_doprnt_args):
5159         (emacs_doprnt_1):
5160         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5161         Do all printf-ing via the `l' specifier.
5162         Use EMACS_INT instead of int.
5163         Optimize.
5164
5165 2000-11-20  Didier Verna  <didier@xemacs.org>
5166
5167         * faces.c (update_face_cachel_data): don't frob the background
5168         pixmap when the window is being created. The face is needed but
5169         does not exist yet.
5170
5171 2000-11-20  Andy Piper  <andy@xemacs.org>
5172
5173         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5174         messing with a debug environment.
5175
5176 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5177
5178         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5179
5180 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5181
5182         * casetab.c (Fcase_table_p): Fix compile error and crash.
5183
5184 2000-11-18  Philip Aston  <philipa@mail.com>
5185
5186         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5187
5188 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5189
5190         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5191         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5192
5193 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5194
5195         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5196         * unexelf.c: Use HAVE_ELF_H.
5197         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5198         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5199         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5200         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5201         for testing.
5202         So this is an unexelfsgi.c from a different line of development.
5203
5204 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5205
5206         * regex.c (RE_TR_ASCII): New function.
5207         (RE_TRANSLATE): Call it.
5208
5209 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5210
5211         * buffer.h (TRT_TABLE_OF): Remove assert.
5212         (IN_TRT_TABLE_DOMAIN): Removed.
5213
5214 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5215
5216         * free-hook.c (log_gcpro):
5217         (show_gcprohist): Add support for GCPRO5.
5218
5219 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5220
5221         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5222
5223 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5224
5225         * symeval.h: Declare flush_all_buffer_local_cache.
5226
5227         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5228         (flush_buffer_local_cache): Added.
5229         (flush_all_buffer_local_cache): Added.
5230
5231         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5232
5233         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5234         (pdump_dump_data): Ditto.
5235         (pdump_reloc_one): Ditto.
5236         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5237         before dumping.
5238
5239
5240 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5241
5242         * buffer.c: Remove if 0'ed entry.
5243         * buffer.h: Rewrite TRT to use char-table.
5244         * bufslots.h: Remove mirror tables.
5245         * casetab.c: Remove mirror tables.
5246         (CASE_TABLE_P): New macro.
5247         (Fcase_table_p): Element of a case table is string or char-table.
5248         (make_mirror_trt_table): Removed.
5249         (set_case_table): Setup char-table from strings for backward
5250         compatibility.
5251         * dired.c (Fdirectory_files):
5252         * dired-msw.c: (mswindows_get_files):
5253         * lisp.h: Change prototype of re_pattern_buffer.
5254         * regex.c: (RE_TRANSLATE): New macro.
5255         (TRANSLATE_P): Ditto.
5256         Change translate to type RE_TRANSLATE_TYPE.
5257         * regex.h: Define RE_TRANSLATE_TYPE
5258         * search.c (TRANSLATE): New macro.
5259         (TRANSLATE_ASCII): New macro.
5260         Translate table is changed to Lisp_Object.
5261         (signal_failure): Inhibit return.
5262
5263 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5264
5265         * device-msw.c:
5266         * eldap.c:
5267         * event-Xt.c:
5268         * event-stream.c:
5269         * print.c:
5270         Do UNGCPRO before return.
5271
5272 2000-11-14  Martin Buchholz <martin@xemacs.org>
5273
5274         * XEmacs 21.2.37 is released.
5275
5276 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5277
5278         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5279         Add comments about discarded return value.
5280
5281 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5282
5283         * callint.c:
5284         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5285
5286 2000-10-27  Andy Piper  <andy@xemacs.org>
5287
5288         * gutter.c (Fset_default_gutter_position): default left and right
5289         gutters to visible.
5290         (calculate_gutter_size): calculate resonable heuristic for left
5291         and right gutter sizes.
5292         (specifier_vars_of_gutter): change left and right gutter sizes to
5293         autodetect.
5294         (calculate_gutter_size_from_display_lines): new function.
5295         (output_gutter): check for resizing on left and right gutters.
5296         (clear_gutter): don't special case top and left gutters.
5297         (specifier_vars_of_gutter): use new signature for
5298         set_specifier_caching.
5299
5300         * glyphs-x.c (x_redisplay_widget): spelling fix.
5301         * glyphs.c (specifier_vars_of_glyphs):
5302         * menubar.c (specifier_vars_of_menubar):
5303         * redisplay.c (specifier_vars_of_redisplay):
5304         * toolbar.c (specifier_vars_of_toolbar):
5305         * window.c (specifier_vars_of_window):
5306         * scrollbar.c (specifier_vars_of_scrollbar):
5307         (complex_vars_of_scrollbar): use new signature for
5308         set_specifier_caching.
5309
5310         * specifier.c (set_specifier_caching): include recompute flag.
5311         (recompute_one_cached_specifier_in_window): always recompute if
5312         flag set.
5313         (recompute_one_cached_specifier_in_frame): ditto.
5314
5315         * specifier.h (struct specifier_caching): add recompute flag.
5316
5317 2000-10-24  Andy Piper  <andy@xemacs.org>
5318
5319         * unexcw.c (copy_executable_and_dump_data_section): add new
5320         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5321         5.0 happy.
5322
5323 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5324
5325         * console-x.h (x_device): New member modifier_release_time.
5326         * event-Xt.c (x_handle_sticky_modifiers):
5327         Bound interval modifier keys are sticky.
5328         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5329         * events.h: extern it.
5330
5331 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5332
5333         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5334
5335 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5336
5337         * event-stream.c (execute_command_event): Preserve current_events
5338         and the like when event is misc-user-event.
5339         Inhibit quit during the call to maybe_echo_keys.
5340
5341 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5342
5343         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5344         symlink when buffer is killed.
5345         (inhibit_clash_detection): New variable.
5346
5347 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5348
5349         * console.c (Fset_input_method): Trigger redisplay on tty.
5350
5351 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5352
5353         * process.c (Fprocess_status): Revert to previous behavior:
5354         (process-status "nosuchprocess") ==> nil
5355
5356 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5357
5358         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5359         Work around another GCC 2.95.2 optimizer bug.
5360
5361 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5362
5363         * process.c (Fget_process): Use LIST_LOOP_2.
5364         (kill_buffer_processes): Use LIST_LOOP_2.
5365
5366         * minibuf.c (Fall_completions):
5367         Delete old non-functional code for FSF fourth argument.
5368
5369         * frame.c (frame_matches_frame_spec):
5370         Renamed from `frame_matches_frametype'.  Update all callers.
5371         (device_matches_device_spec):
5372         Renamed from 'device_matches_console_spec'.  Update all callers.
5373
5374         * doc.c (Fsubstitute_command_keys):
5375         Remove buffer overflow crash.  Small code cleanups.
5376
5377         * casetab.c (check_case_table): Simpler code.
5378
5379         * window.c (Freplace_buffer_in_windows):
5380         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5381         (and similar implementation) as Fdelete_windows_on.
5382         Update all callers.
5383
5384         * alloc.c (Fmake_list):
5385         * alloc.c (make_vector):
5386         * alloc.c (Fmake_vector):
5387         * alloc.c (make_bit_vector):
5388         * alloc.c (Fmake_bit_vector):
5389         * alloc.c (Fbit_vector):
5390         * alloc.c (Fmake_string):
5391         * alloc.c (Fpurecopy):
5392         * alloc.c (Fmemory_limit):
5393         * buffer.c:
5394         * buffer.c (Fget_buffer):
5395         * buffer.c (Fkill_buffer):
5396         * buffer.c (complex_vars_of_buffer):
5397         * bytecode.c (Fcompiled_function_stack_depth):
5398         * callint.c (Fprefix_numeric_value):
5399         * event-stream.c:
5400         * event-stream.c (Fread_key_sequence):
5401         * casetab.c:
5402         * casetab.c (Fcase_table_p):
5403         * casetab.c (check_case_table):
5404         * casetab.c (Fset_case_table):
5405         * casetab.c (Fset_standard_case_table):
5406         * chartab.c:
5407         * chartab.c (Fchar_table_type):
5408         * chartab.c (Freset_char_table):
5409         * chartab.c (Fget_char_table):
5410         * chartab.c (Fget_range_char_table):
5411         * chartab.c (Fput_char_table):
5412         * chartab.c (Fmap_char_table):
5413         * chartab.c (Fcategory_table_p):
5414         * chartab.c (Fcheck_category_at):
5415         * chartab.c (Fchar_in_category_p):
5416         * chartab.c (Fcategory_table):
5417         * chartab.c (Fcopy_category_table):
5418         * chartab.c (Fset_category_table):
5419         * chartab.c (Fcategory_designator_p):
5420         * chartab.c (Fcategory_table_value_p):
5421         * cmds.c (Fdelete_char):
5422         * cmds.c (Fdelete_backward_char):
5423         * cmds.c (Fself_insert_command):
5424         * cmds.c (Fself_insert_internal):
5425         * console.c (Fvalid_console_type_p):
5426         * console.c (Fcdfw_console):
5427         * console.c (Fconsole_type):
5428         * console.c (Fconsole_name):
5429         * console.c (Fconsole_device_list):
5430         * console.c (Fconsole_on_window_system_p):
5431         * data.c:
5432         * data.c (Feq):
5433         * data.c (Fold_eq):
5434         * data.c (Fsubr_interactive):
5435         * data.c (Fchar_to_int):
5436         * data.c (Fint_to_char):
5437         * data.c (Fsetcar):
5438         * data.c (Fsetcdr):
5439         * data.c (Fnumber_to_string):
5440         * data.c (Fstring_to_number):
5441         * data.c (Frem):
5442         * database.c (mark_database):
5443         * database.c (finalize_database):
5444         * database.c (Fdatabase_live_p):
5445         * database.c (Fdatabasep):
5446         * device-x.c (Fx_get_resource):
5447         * device.c (Fdfw_device):
5448         * dired.c:
5449         * dired.c (Ffile_name_completion):
5450         * dired.c (Ffile_name_all_completions):
5451         * dired.c (Fuser_name_completion):
5452         * dired.c (Fuser_name_completion_1):
5453         * dired.c (Fuser_name_all_completions):
5454         * doc.c (Fdocumentation):
5455         * doc.c (Fdocumentation_property):
5456         * doc.c (Fsubstitute_command_keys):
5457         * editfns.c:
5458         * editfns.c (Fchar_to_string):
5459         * editfns.c (Fstring_to_char):
5460         * editfns.c (Ftemp_directory):
5461         * editfns.c (Finsert_char):
5462         * editfns.c (Fbuffer_substring_no_properties):
5463         * editfns.c (Fnarrow_to_region):
5464         * editfns.c (Fchar_equal):
5465         * editfns.c (Fchar_Equal):
5466         * editfns.c (Ftranspose_regions):
5467         * emacs.c (Fdump_emacs):
5468         * eval.c (Fthrow):
5469         * eval.c (Fcommand_execute):
5470         * eval.c (Fautoload):
5471         * eval.c (Fbacktrace):
5472         * eval.c (Fbacktrace_frame):
5473         * events.c:
5474         * events.c (Fcopy_event):
5475         * events.c (Fcharacter_to_event):
5476         * events.c (Fevent_button):
5477         * events.c (Fevent_process):
5478         * extents.c:
5479         * extents.c (Fnext_extent_change):
5480         * extents.c (Fextent_property):
5481         * faces.c (Ffacep):
5482         * faces.c (Fmake_face):
5483         * file-coding.c:
5484         * file-coding.c (Fencode_shift_jis_char):
5485         * file-coding.c (Fencode_big5_char):
5486         * fileio.c (Ffile_name_directory):
5487         * fileio.c (Ffile_name_nondirectory):
5488         * fileio.c (Ffile_name_as_directory):
5489         * fileio.c (Fdirectory_file_name):
5490         * fileio.c (Ffile_truename):
5491         * fileio.c (Fsubstitute_in_file_name):
5492         * fileio.c (Ffile_modes):
5493         * fileio.c (Fset_file_modes):
5494         * fileio.c (Fset_default_file_modes):
5495         * fileio.c (Fverify_visited_file_modtime):
5496         * floatfns.c (Facos):
5497         * floatfns.c (Fasin):
5498         * floatfns.c (Fatan):
5499         * floatfns.c (Fcos):
5500         * floatfns.c (Fsin):
5501         * floatfns.c (Ftan):
5502         * floatfns.c (Fbessel_j0):
5503         * floatfns.c (Fbessel_j1):
5504         * floatfns.c (Fbessel_jn):
5505         * floatfns.c (Fbessel_y0):
5506         * floatfns.c (Fbessel_y1):
5507         * floatfns.c (Fbessel_yn):
5508         * floatfns.c (Ferf):
5509         * floatfns.c (Ferfc):
5510         * floatfns.c (Flog_gamma):
5511         * floatfns.c (Fexp):
5512         * floatfns.c (Fexpt):
5513         * floatfns.c (Flog):
5514         * floatfns.c (Flog10):
5515         * floatfns.c (Fsqrt):
5516         * floatfns.c (Fcube_root):
5517         * floatfns.c (Facosh):
5518         * floatfns.c (Fasinh):
5519         * floatfns.c (Fatanh):
5520         * floatfns.c (Fcosh):
5521         * floatfns.c (Fsinh):
5522         * floatfns.c (Ftanh):
5523         * floatfns.c (Fabs):
5524         * floatfns.c (Ffloat):
5525         * floatfns.c (Flogb):
5526         * floatfns.c (Fceiling):
5527         * floatfns.c (Ffloor):
5528         * floatfns.c (Fround):
5529         * floatfns.c (Ftruncate):
5530         * floatfns.c (Ffceiling):
5531         * floatfns.c (Fffloor):
5532         * floatfns.c (Ffround):
5533         * floatfns.c (Fftruncate):
5534         * fns.c (Fstring_equal):
5535         * fns.c (Fstring_lessp):
5536         * fns.c (concat2):
5537         * fns.c (concat3):
5538         * fns.c (vconcat2):
5539         * fns.c (vconcat3):
5540         * fns.c (Fsubstring):
5541         * fns.c (Fassoc):
5542         * fns.c (Fold_assoc):
5543         * fns.c (assoc_no_quit):
5544         * fns.c (Fassq):
5545         * fns.c (Fold_assq):
5546         * fns.c (assq_no_quit):
5547         * fns.c (Frassoc):
5548         * fns.c (Fold_rassoc):
5549         * fns.c (Frassq):
5550         * fns.c (Fold_rassq):
5551         * fns.c (rassq_no_quit):
5552         * fns.c (Fremassoc):
5553         * fns.c (remassoc_no_quit):
5554         * fns.c (Fremassq):
5555         * fns.c (remassq_no_quit):
5556         * fns.c (Fremrassoc):
5557         * fns.c (Fremrassq):
5558         * fns.c (remrassq_no_quit):
5559         * fns.c (Fsort):
5560         * fns.c (Fplist_get):
5561         * fns.c (Fplist_put):
5562         * fns.c (Fplist_remprop):
5563         * fns.c (Fplist_member):
5564         * fns.c (Flax_plist_get):
5565         * fns.c (Flax_plist_put):
5566         * fns.c (Flax_plist_remprop):
5567         * fns.c (Flax_plist_member):
5568         * fns.c (Fequal):
5569         * fns.c (Fold_equal):
5570         * fns.c (Frequire):
5571         * fns.c (Fbase64_encode_region):
5572         * fns.c (Fbase64_encode_string):
5573         * fns.c (Fbase64_decode_region):
5574         * frame.c:
5575         * frame.c (frame_matches_frame_spec):
5576         * frame.c (device_matches_device_spec):
5577         * frame.c (next_frame):
5578         * frame.c (previous_frame):
5579         * frame.c (Fnext_frame):
5580         * frame.c (Fprevious_frame):
5581         * frame.c (Fframe_property):
5582         * frame.c (Fset_frame_height):
5583         * frame.c (Fset_frame_size):
5584         * frame.h:
5585         * glyphs.c:
5586         * glyphs.c (if):
5587         * glyphs.c (decode_error_behavior_flag):
5588         * glyphs.c (Fmake_image_instance):
5589         * indent.c (Findent_to):
5590         * intl.c (Fignore_defer_gettext):
5591         * keymap.c (Fkeymapp):
5592         * keymap.c (Flookup_key):
5593         * lread.c:
5594         * lread.c (Fload_internal):
5595         * lread.c (Feval_buffer):
5596         * lread.c (Feval_region):
5597         * macros.c (Fexecute_kbd_macro):
5598         * marker.c (set_marker_internal):
5599         * marker.c (Fset_marker):
5600         * marker.c (set_marker_restricted):
5601         * marker.c (Fcopy_marker):
5602         * marker.c (noseeum_copy_marker):
5603         * menubar.c:
5604         * menubar.c (Fpopup_menu):
5605         * minibuf.c:
5606         * mule-charset.c (Fcharset_name):
5607         * mule-charset.c (Fchar_charset):
5608         * mule-charset.c (Fchar_octet):
5609         * mule-charset.c (Fsplit_char):
5610         * mule-wnnfns.c (Fwnn_open):
5611         * mule-wnnfns.c (Fwnn_dict_comment):
5612         * mule-wnnfns.c (Fwnn_quit_henkan):
5613         * mule-wnnfns.c (Fwnn_word_toroku):
5614         * mule-wnnfns.c (Fwnn_word_sakujo):
5615         * mule-wnnfns.c (Fwnn_word_use):
5616         * mule-wnnfns.c (Fwnn_hindo_set):
5617         * objects.c:
5618         * objects.c (Fmake_color_instance):
5619         * objects.c (Fmake_font_instance):
5620         * print.c (Fwrite_char):
5621         * process.c:
5622         * process.c (mark_process):
5623         * process.c (print_process):
5624         * process.c (get_process_from_usid):
5625         * process.c (Fprocessp):
5626         * process.c (Fprocess_live_p):
5627         * process.c (Fget_process):
5628         * process.c (Fget_buffer_process):
5629         * process.c (get_process):
5630         * process.c (Fprocess_id):
5631         * process.c (Fprocess_name):
5632         * process.c (Fprocess_command):
5633         * process.c (init_process_io_handles):
5634         * process.c (start_process_unwind):
5635         * process.c (Fstart_process_internal):
5636         * process.c (Fopen_multicast_group_internal):
5637         * process.c (Fset_process_window_size):
5638         * process.c (read_process_output):
5639         * process.c (send_process):
5640         * process.c (Fprocess_tty_name):
5641         * process.c (Fset_process_buffer):
5642         * process.c (Fprocess_buffer):
5643         * process.c (Fprocess_mark):
5644         * process.c (set_process_filter):
5645         * process.c (Fset_process_filter):
5646         * process.c (Fprocess_filter):
5647         * process.c (Fprocess_send_region):
5648         * process.c (Fprocess_send_string):
5649         * process.c (exec_sentinel):
5650         * process.c (Fset_process_sentinel):
5651         * process.c (Fprocess_sentinel):
5652         * process.c (status_notify):
5653         * process.c (Fprocess_status):
5654         * process.c (Fprocess_exit_status):
5655         * process.c (process_send_signal):
5656         * process.c (Fprocess_send_eof):
5657         * process.c (deactivate_process):
5658         * process.c (remove_process):
5659         * process.c (Fdelete_process):
5660         * process.c (kill_buffer_processes):
5661         * process.c (Fprocess_kill_without_query):
5662         * process.c (Fprocess_kill_without_query_p):
5663         * rangetab.c:
5664         * rangetab.c (Fget_range_table):
5665         * rangetab.c (Fput_range_table):
5666         * rangetab.c (Fremove_range_table):
5667         * rangetab.c (Fclear_range_table):
5668         * search.c:
5669         * search.c (Fskip_chars_forward):
5670         * search.c (Fskip_chars_backward):
5671         * search.c (Fskip_syntax_forward):
5672         * search.c (Fskip_syntax_backward):
5673         * search.c (search_command):
5674         * search.c (Freplace_match):
5675         * search.c (Fregexp_quote):
5676         * select.c (Fown_selection_internal):
5677         * select.c (Fselection_owner_p):
5678         * select.c (Fselection_exists_p):
5679         * select.c (Fget_selection_internal):
5680         * specifier.c:
5681         * symbols.c:
5682         * symbols.c (Fintern):
5683         * symbols.c (Fintern_soft):
5684         * symbols.c (Funintern):
5685         * symbols.c (Fapropos_internal):
5686         * symbols.c (Fset_default):
5687         * syntax.c:
5688         * syntax.c (Fsyntax_table_p):
5689         * syntax.c (Fcopy_syntax_table):
5690         * syntax.c (Fset_syntax_table):
5691         * syntax.c (Fchar_syntax):
5692         * syntax.c (syntax_match):
5693         * syntax.c (Fmatching_paren):
5694         * syntax.c (Fforward_word):
5695         * syntax.c (scan_lists):
5696         * syntax.c (Fscan_lists):
5697         * syntax.c (Fscan_sexps):
5698         * syntax.c (Fparse_partial_sexp):
5699         * toolbar.c (Fcheck_toolbar_button_syntax):
5700         * tooltalk.doc:
5701         * window.c:
5702         * window.c (Fwindowp):
5703         * window.c (Fwindow_live_p):
5704         * window.c (Fwindow_point):
5705         * window.c (Fdelete_window):
5706         * window.c (Fnext_window):
5707         * window.c (Fprevious_window):
5708         * window.c (Fother_window):
5709         * window.c (window_loop):
5710         * window.c (Fget_lru_window):
5711         * window.c (Fsplit_window):
5712         * window.c (Fenlarge_window):
5713         * window.c (Fenlarge_window_pixels):
5714         * window.c (Fshrink_window):
5715         * window.c (Fshrink_window_pixels):
5716         * window.c (change_window_height):
5717         * window.c (Fwindow_configuration_p):
5718         * window.c (Fcurrent_window_configuration):
5719         * window.h:
5720         * casefiddle.c (casify_object):
5721         * casefiddle.c (Fupcase):
5722         * casefiddle.c (Fdowncase):
5723         * casefiddle.c (Fcapitalize):
5724         * casefiddle.c (Fupcase_initials):
5725         * casefiddle.c (casify_region_internal):
5726         * casefiddle.c (casify_region):
5727         * casefiddle.c (Fupcase_region):
5728         * casefiddle.c (Fdowncase_region):
5729         * casefiddle.c (Fcapitalize_region):
5730         * casefiddle.c (Fupcase_initials_region):
5731         * casefiddle.c (Fupcase_word):
5732         * casefiddle.c (Fdowncase_word):
5733         * casefiddle.c (Fcapitalize_word):
5734         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5735         Replace 0 with '\0' when working with bytes.
5736         Replace initial "(" with "\(" in docstrings.
5737
5738 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5739
5740         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5741
5742         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5743
5744 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5745
5746         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5747
5748 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5749
5750         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5751         correctly.
5752
5753 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5754
5755         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5756         (inhibit_auto_save_session): New variable.
5757         (vars_of_fileio): Declare and initialize them.
5758         * fileio.c (Fdo_auto_save): Don't create session file if
5759         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5760
5761 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5762
5763         * sgiplay.c (play_internal): C++ compilability.
5764         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5765         * callproc.c (Fold_call_process_internal):
5766         Remove unused vars `env', `first'.
5767         * scrollbar.c (update_scrollbar_instance):
5768         #### unused var `current_window'.
5769         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5770         etc. within #ifdef NOT_YET.
5771         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5772         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5773         * specifier.c (specifier_instance):
5774         #### unused var `tag'.
5775         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5776
5777 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5778
5779         * fns.c (Fbutlast):
5780         * fns.c (list_sort):
5781         * fns.c (Ffillarray):
5782         * fns.c (bytecode_nconc2):
5783         * fns.c (Fnconc):
5784         * fns.c (mapcar1):
5785         * fns.c (Fmapconcat):
5786         Be pedantically 64-bit correct.  For the time when someone will
5787         want to have a list with length > 2**32.
5788
5789         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5790         Work around MIPSpro compiler bug.
5791
5792         * process-unix.c (unix_kill_child_process): Add snarky comment.
5793         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5794
5795         * config.h.in: Oops, _getpt ==> _getpty
5796
5797 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5798
5799         * config.h.in:
5800         * regex.c:
5801         Use void*, not char*, as return type of alloca().
5802
5803         * alloc.c (free_marker): Side effect inside assert expression!
5804
5805 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5806
5807         * mule-charset.c (Fset_charset_ccl_program): To check
5808         if the given ccl program is valid, use setup_ccl_program()
5809         instead of CHECK_VECTOR().
5810         (Fmake_charset): Likewise.
5811
5812 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5813
5814         * faces.c (get_extent_fragment_face_cache_index):
5815         Fix cachel.merged_faces memory leak.
5816
5817 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5818
5819         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5820         Reset MSB of octets obtained by DECODE_SJIS
5821         because of the incompatibility with Emacs.
5822         (ccl_driver)<CCL_ENCODE_SJIS>:
5823         Set MSB of octets before passing them to
5824         ENCODE_SJIS because of the incompatibility
5825         with Emacs.
5826
5827 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5828
5829         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5830         (DECLARE_LRECORD): Undo the last change.
5831         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5832
5833 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5834
5835         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5836         the implementation to lrecord_implementations_table.
5837
5838 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5839
5840         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5841         initial value of `lrecord_type_##c_name' and
5842         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5843         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5844         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5845         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5846         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5847
5848 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5849
5850         * miscplay.c (sndcnv8S_2mono):
5851         (sndcnv2monounsigned):
5852         (sndcnvULaw_2linear):
5853         (sndcnv16swap):
5854         Remove implementation-defined behavior.
5855
5856 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5857
5858         * input-method-xlib.c: Warning suppression.
5859
5860 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5861
5862         * mule-ccl.c: Sync up with Emacs 21.0.90.
5863         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5864         Do nothing.
5865         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5866         Likewise.
5867         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5868         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5869         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5870         leading char belongs to official 2-dimensional charset.
5871         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5872         write the given character as is.  Otherwise,
5873         if it is a multibyte char, convert it by
5874         non_ascii_set_charptr_emchar, then write it.
5875         (CCL_WRITE_STRING): Likewise.
5876         (ccl_get_compiled_code): New function.
5877         (setup_ccl_program): When ccl_prog is invalid,
5878         return -1.
5879         (Fregister_code_conversion_map): New function.
5880         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5881
5882         * mule-ccl.h: Sync up with Emacs 21.0.90.
5883         (Fregister_ccl_program): export it.
5884
5885         * redisplay-msw.c (separate_textual_runs):
5886         If ccl program is not valid, don't do ccl conversion.
5887
5888         * redisplay-x.c (separate_textual_runs): Ditto.
5889
5890         * file-coding.c (Fmake_coding_system):
5891         When type is ccl and value is vector, register it
5892         with a proper symbol.  And checks whether the
5893         given ccl program is valid.
5894         (mule_decode): When calling ccl_driver, if src indicates
5895         NULL pointer, set an empty string instead.
5896         (mule_encode): Likewise.
5897
5898 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5899
5900         The following large batch of changes gets us back to a state of
5901         C++ compilability.  Extbyte is now a char, which means that
5902         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5903
5904         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5905
5906         * sound.c (Fplay_sound): Type correctness.
5907
5908         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5909         (x_get_window_property): Type correctness.
5910         (receive_incremental_selection): unsigned char ==> Extbyte
5911         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5912         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5913         (Fx_store_cutbuffer_internal): Type correctness.
5914
5915         * process-unix.c (try_to_initialize_subtty): Type correctness.
5916
5917         * objects-x.c (x_print_color_instance): Type correctness.
5918         (x_print_font_instance): Type correctness.
5919         (x_list_fonts): SExtbyte ==> Extbyte.
5920         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5921         (x_find_charset_font): SExtbyte ==> Extbyte.
5922         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5923         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5924         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5925         Use bufbyte_strcmp.
5926
5927         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5928         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5929         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5930         (BYTE_C0_P): Use bit ops for char-signedness safety.
5931         (BYTE_C1_P): Use bit ops for char-signedness safety.
5932         (CHARSET_BY_LEADING_BYTE):
5933         (CHARSET_BY_ATTRIBUTES):
5934         Always use inline function.
5935         Use type_checking_assert.
5936         Hide chlook.
5937
5938         * mule-charset.c (non_ascii_charptr_copy_char):
5939         Modify to work with both ASCII and non-ASCII characters.
5940         Improve docs and variable names.
5941         Replace over-clever fall-through switch with a simple loop.
5942         (Lstream_get_emchar_1):
5943         Replace over-clever fall-through switch with a simple loop.
5944
5945         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5946         Warning suppression.
5947
5948         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5949         the return value of Lstream_getc, which could be EOF as well.
5950
5951         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5952
5953         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5954         APIs can be used on Extbytes without casts.  Risky!
5955         (SExtbyte): Remove.
5956         (UExtbyte): Remove.
5957
5958         * input-method-xlib.c (XIM_init_device):
5959         Use Xlib.h instead of IntrinsicP.h.
5960         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5961         which will break in X11R7.
5962         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5963         to call XRegisterIMInstantiateCallback with correct types.
5964
5965         * gui-x.c (button_item_to_widget_value): Type correctness.
5966
5967         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5968
5969         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5970         (xbm_instantiate_1): Type correctness.
5971         (BUILD_GLYPH_INST):  Type correctness.
5972
5973         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5974
5975         * file-coding.c:
5976         (decode_coding_sjis):
5977         (decode_coding_big5):
5978         (decode_coding_ucs4):
5979         (decode_coding_utf8):
5980         (decode_coding_iso2022):
5981         (decode_coding_no_conversion):
5982         Make all decoding functions take an Extbyte * arg.
5983         (encode_coding_sjis):
5984         (encode_coding_big5):
5985         (encode_coding_ucs4):
5986         (encode_coding_utf8):
5987         (encode_coding_iso2022):
5988         (encode_coding_no_conversion):
5989         Make all encoding functions take a Bufbyte * arg.
5990         Use size_t instead of unsigned int for memory sizes.
5991         Only cast to unsigned char whenever dereferencing Extbyte *.
5992
5993         * doc.c (unparesseuxify_doc_string): Type correctness.
5994
5995         * console-x.c (split_up_display_spec):
5996         Rewrite without using details of internal string representation.
5997         (x_semi_canonicalize_device_connection): Type correctness.
5998
5999         * config.h.in:
6000         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6001         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6002         (HAVE_XFREE386): Removed.
6003
6004         * buffer.h (DEC_CHARPTR): `const' correctness.
6005         (bufbyte_strcmp): New.
6006         (bufbyte_memcmp): New.
6007
6008         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6009
6010         * buffer.h (XCHAR_OR_CHAR_INT):
6011         Always use inline function.
6012         Remove redundant type checking assert() - XINT will abort quite nicely.
6013
6014 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6015
6016         * search.c (Freplace_match): Set newtext to an empty string.
6017
6018 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6019
6020         * s/decosf1-3.h: Remove #include of stropts.h
6021         * s/ptx.h: Remove #include of stropts.h
6022         * s/usg5-4.h: Remove #include of stropts.h
6023         * sysproc.h:
6024         * config.h.in:
6025         Use stropts.h, not sys/stropts.h.
6026         Use strtio.h, not sys/strtio.h.
6027
6028 2000-10-04  Martin Buchholz <martin@xemacs.org>
6029
6030         * XEmacs 21.2.36 is released.
6031
6032 2000-09-21  Andy Piper  <andy@xemacs.org>
6033
6034         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6035         changes still involve copying the widget tree.
6036         (update_widget_face): make sure a change is register in the widget
6037         tree. Call update_tab_widget_face appropriately.
6038         (update_tab_widget_face): ditto.
6039         (x_tab_control_redisplay): make sure non-structural changes still
6040         involve copying the widget tree.
6041
6042 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6043
6044         * lread.c (locate_file): Check the path element is non-nil.
6045
6046 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6047
6048         * lisp.h: Warning suppression for SCO compilers.
6049
6050         * redisplay-tty.c (reset_tty_modes): Fix crash.
6051         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6052
6053 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6054
6055         Big signal/process handling overhaul.  Bugs fixed:
6056         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6057         M-x comint-kill-subjob should work for both values nil and t of
6058         process-connection-type. It was broken on most platforms.
6059         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6060         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6061         * process-unix.c: Signal/Process handling overhaul.
6062         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6063         (allocate_pty): Use all available modern methods of allocating
6064         ptys, falling back to old style BSD allocation as a last resort.
6065         Use allegedly more secure Unix98 pty allocation by default.
6066         (allocate_pty_the_old_fashioned_way): New. the last resort.
6067         (unix_create_process): Push ptem, ldterm, ttcompat where
6068         available.  Autoconfiscate.
6069         (try_to_initialize_subtty): New.
6070         (unix_kill_child_process): Proper signal handling for ptys on most
6071         platforms, using special knowledge of AIX, BSD, etc...
6072         (unix_create_process): Always disconnect_controlling_terminal() for
6073         subprocesses, whether using ptys or not.
6074         * process.h: Remove old getpt-dependent PTY code.
6075         * process.c (Fprocess_send_signal): New, obvious generic function.
6076         (decode_signal): New.
6077         (Finterrupt_process):
6078         (Fkill_process):
6079         (Fquit_process):
6080         (Fstop_process):
6081         (Fcontinue_process):
6082         (Fsignal_process): Use decode_signal.
6083         (process_send_signal):
6084         Many docstring corrections.
6085         Allow any signal to be sent to a process object.
6086         * config.h.in: Add symbols for big signal/process overhaul.
6087         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6088         * sysproc.h: Include process-related headers, where available:
6089         sys/stropts.h sys/strtio.h pty.h libutil.h
6090         * s/irix4-0.h:
6091         * s/irix5-0.h:
6092         * s/cygwin32.h:
6093         * s/gnu.h:
6094         * s/linux.h:
6095         * s/hpux.h:
6096         * s/aix3-1.h:
6097         Remove old S&M pty stuff.
6098         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6099         * systty.h: Simplify cpp hackery, improve comments.
6100         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6101
6102         * editfns.c (Fformat_time_string):
6103         Be a little more paranoid with the return value of ctime.
6104
6105         * fileio.c (check_executable):
6106         (check_writable):
6107         Use symbolic constants X_OK, W_OK.
6108
6109         * console-x.c (split_up_display_spec): Fix a warning.
6110
6111 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6112
6113         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6114         * ntproc.c (sys_spawnve): make_string ==> build_string
6115         Small clarity improvements.
6116
6117 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6118
6119         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6120
6121         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6122
6123         * config.h.in (HAVE_STRCASECMP): Remove.
6124
6125 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6126
6127         * redisplay-output.c (redisplay_output_pixmap):
6128         Cleaner and possibly more 64-bit correct code.
6129
6130 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6131
6132         * dumper.c (pdump_load_finish): move restoration of
6133         `noninteractive1' to emacs.c (main_1).
6134         * emacs.c (main_1): protect LISP-visible command-line flags
6135         from pdump_load().
6136
6137 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6138
6139         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6140         DUMP_TARGET instead of literal program names.
6141
6142 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6143
6144         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6145
6146 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6147
6148         * *: Spelling mega-patch
6149
6150 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6151
6152         * fns.c (bad_bad_turtle):
6153         Delete "Eek!" comment, since we fixed the bug to which it refers.
6154
6155 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6156
6157         * alloca.c: Replace REGISTER with register.
6158
6159 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6160
6161         * file-coding.c (ucs_to_char): Use countof.
6162
6163 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6164
6165         * file-coding.c: (ucs_to_char):
6166         (complex_vars_of_file_coding):
6167         Use countof instead of sizeof.
6168         Use CHECK_NATNUM instead of CHECK_INT.
6169
6170         * sysdep.c (strcasecmp): Remove.
6171         * device-x.c (ascii_strcasecmp): New.
6172         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6173         Avoid using non-standard non-portable strcasecmp.
6174
6175 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6176
6177         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6178         * font-lock.c: remove reference to emacsfns.h.
6179         * search.c: small doc improvement.
6180         * event-Xt.c: correct file names in comments.
6181         * console-x.h Correct file names in comments.
6182         * frame.c: Correct file names in comments.
6183         * event-stream.c: remove Energize from comments.
6184
6185 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6186
6187         * symeval.h (DEFERROR_STANDARD):
6188         (DEFERROR):
6189         (DEFSYMBOL):
6190         (DEFSYMBOL_NO_DUMP):
6191         (DEFSYMBOL_MULTIWORD_PREDICATE):
6192         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6193         (DEFKEYWORD):
6194         The construct &##name is not sensible C.
6195         Fixes compilation errors with Unixware native compiler.
6196
6197 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6198
6199         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6200         (next_frame_internal): Removed.  We now just have next_frame.
6201         (next_frame):
6202         Write a simpler and cleaner one-pass algorithm.
6203         Remove called_from_delete_device arg and #ifdefed-out code.
6204         (previous_frame):
6205         Renamed from prev_frame.  Update callers.
6206         Cleaned up to have an analogous implementation to next_frame.
6207         (other_visible_frames_internal): Remove the
6208         called_from_delete_device bogus arg, and hence, remove this
6209         function.  Just use other_visible_frames().
6210
6211         * window.c (Fnext_window):
6212         Prettify docstring.
6213         Since next_frame() is guaranteed to return a frame, remove check
6214         for nil inserted in previous patch.
6215         (Fprevious_window):
6216         Prettify docstring.
6217         Make code look more like Fnext_window.
6218         (window_loop):
6219         Respect the `console' arg when iterating through windows.
6220         Fixes bug: (get-buffer-window buffer t device) not respecting
6221         the `device' arg.
6222         This function needs more work, as others have pointed out.
6223
6224         * frame.h: Rename prev_frame to previous_frame.
6225         device_matches_console_spec no longer takes a `frame' arg.
6226
6227         * s/gnu.h:
6228         * s/linux.h:
6229         * s/hpux.h:
6230         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6231         From "Golubev I. N." <gin@mo.msk.ru>.
6232
6233         * make-src-depend: Fix typo.
6234
6235 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6236
6237         * window.c (Fnext_window):
6238         next_frame() might return nil, not a frame.
6239         Fixes this crash:
6240         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6241
6242         * frame.c (next_frame_internal):
6243         We've passed a frame if we've passed its device.
6244         Fixes this crash:
6245         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6246 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6247
6248 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6249
6250         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6251         Allow option to suppress accelerators in menu/dialog items.
6252         (populate_or_checksum_helper): Pass dialog title through above.
6253
6254 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6255
6256         * event-msw.c (mswindows_key_to_emacs_keysym):
6257         Add "pause" key, fix "menu" key.
6258
6259 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6260
6261         * eval.c (reinit_vars_of_eval):
6262         Increase max_lisp_eval_depth to 1000,
6263         required for thai-xtis.el to byte-compile under some circumstances.
6264
6265 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6266
6267         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6268         From Kenichi Handa.
6269
6270 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6271
6272         * make-src-depend: Make the generated Makefiles smaller.
6273
6274         * s/hpux.h (SETUP_SLAVE_PTY):
6275         Provide a %d in the format string for the errno argument.
6276
6277         * editfns.c (Ftemp_directory):
6278         Warning fix.
6279         Avoid buffer overrun on very long file name.
6280
6281         * input-method-xlib.c (XIM_init_device):
6282         6th parameter of XRegisterIMInstantiateCallback has different
6283         pointer types on different OSes, so simply cast to (void *).
6284
6285         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6286
6287         * sysdll.c (dll_open):
6288         shl_load will hang hard if passed a NULL filename.
6289         Simply return NULL for compatibility with dlopen.
6290         * sysdll.c: Conform to XEmacs coding standards.
6291
6292         * sysdep.c (get_pty_max_bytes):
6293         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6294
6295 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6296
6297         * tooltalk.c: Add #include <syssignal.h>
6298
6299 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6300
6301         * s/hpux.h: Don't use undefined function sigunblock().
6302
6303 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6304
6305         * config.h.in: Add HAVE_BALLOON_HELP.
6306         * emacs.c: Use HAVE_BALLOON_HELP.
6307         * Makefile.in.in (x_objs):
6308         Make Balloon Help conditional on finding shape.h.
6309
6310 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6311
6312         * syntax.c (regex_emacs_buffer_p): New variable.
6313         * syntax.h (regex_emacs_buffer_p): extern.
6314         * search.c (looking_at_1):
6315         (string_match_1):
6316         (fast_string_match):
6317         (search_buffer): Set regex_emacs_buffer_p.
6318         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6319         when before_dot, at_dot, after_dot.
6320
6321 2000-08-23  Andy Piper  <andy@xemacs.org>
6322
6323         * gui-x.c (popup_selection_callback): Only set action_occurred
6324         when we really have an image instance.
6325         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6326
6327 2000-08-23  Andy Piper  <andy@xemacs.org>
6328
6329         * gui-msw.c (mswindows_handle_gui_wm_command): set
6330         action_occurred.
6331         * gui-x.c (popup_selection_callback): ditto.
6332
6333         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6334         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6335         (struct Lisp_Image_Instance): add action_occurred flag.
6336
6337         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6338         (image_instance_changed): ditto.
6339         (reset_frame_subwindow_instance_cache): only unmap windows - do
6340         not remove them from the cache also.
6341
6342         * glyphs-widget.c (tab_control_update): better debug.
6343         (progress_gauge_update): ditto.
6344         (layout_update): ditto.
6345         (layout_instantiate): ditto.
6346         (tab_control_order_only_changed): cope with null pending items.
6347
6348         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6349         debug. Force selection of an item when an action occurred. Cope
6350         with null pending_items.
6351         (mswindows_progress_gauge_redisplay): better debug.
6352         * glyphs-x.c (x_tab_control_redisplay): ditto.
6353
6354         * redisplay.c (redisplay_frame): reset the frame cache if the
6355         frame is garbaged.
6356
6357         * window.c (Fset_window_configuration): potentially re-enable
6358         frame cache reset.
6359         (window_unmap_subwindows): need to finalize instances here since
6360         it is only used in mark_window_as_deleted.
6361
6362 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6363
6364         * nas.c (SndOpenDataForReading):
6365         nas.c (WaveOpenDataForReading):
6366         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6367         Somehow escaped from the 2000-08-14 patch.
6368
6369 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6370
6371         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6372         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6373
6374 2000-08-21  Andy Piper  <andy@xemacs.org>
6375
6376         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6377         window if it is not already displayed.
6378
6379         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6380         it is not already displayed.
6381
6382         * window.c (Fset_window_configuration): don't reset the frame
6383         cache.
6384
6385         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6386         instances from the frame cache if we are actually finalizing them.
6387         (reset_frame_subwindow_instance_cache): reset frame cache only
6388         after unmapping everything.
6389         (map_subwindow): set displayed flag after mapping.
6390
6391 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6392
6393         * data.c (indirect_function):
6394         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6395
6396         * eval.c (function_argcount):
6397         Use original function when signaling errors.
6398
6399 2000-08-18  Andy Piper  <andy@xemacs.org>
6400
6401         * frame.c (delete_frame_internal): use new
6402         free_frame_subwindow_instances name.
6403
6404         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6405         (add_tab_item): make return type correct.
6406         (mswindows_tab_control_instantiate): assert index of tab.
6407         (mswindows_tab_control_redisplay): Re-code to use
6408         gui_item_equal_sans_selected and gui_item_list_find_selected.
6409
6410         * glyphs-widget.c (tab_control_update): Correct comment.
6411
6412         * window.c (window_unmap_subwindows): use new
6413         unmap_subwindow_instance_cache_mapper.
6414         (window_unmap_subwindows_cache_mapper): deleted.
6415         (Fset_window_configuration): comparisons should now be with
6416         EQ. Preserve the subwindow instance cache across configuration
6417         changes.
6418         (allocate_window): ditto.
6419         (make_dummy_parent): ditto.
6420
6421         * glyphs.c (free_frame_subwindow_instances): rename from
6422         free_frame_subwindow_instance_cache. finalize all instances rather
6423         than just those in the display cache.
6424         (finalize_all_subwindow_instances): walk windows unmapping and
6425         finalizing subwindows.
6426         (unmap_subwindow_instance_cache_mapper): moved from
6427         window.c. Allow finalization as well as unmapping.
6428
6429         * gui.c (gui_item_list_find_selected): new function.
6430
6431         * gui.h (gui_item_list_find_selected): declare.
6432
6433         * glyphs-x.c (x_tab_control_redisplay): pick tab
6434         explicitly. Re-code to use gui_item_equal_sans_selected and
6435         gui_item_list_find_selected.
6436
6437         * glyphs-x.h: add lwlib-utils.h
6438
6439         * buffer.c (Frecord_buffer): undo previous change.
6440
6441 2000-08-09  Vin Shelton  <acs@xemacs.org>
6442
6443         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6444         possible.  Create temporary files more securely.  The patch was
6445         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6446         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6447         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6448         for details.
6449
6450 2000-08-07  Ben Wing  <ben@xemacs.org>
6451
6452         * getloadavg.c: remove duplicate (and windows-breaking)
6453         includes of fcntl.h and sys/file.h.
6454
6455         * nt.c: remove duplicate getloadavg() definition.
6456
6457         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6458         encodings.
6459
6460 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6461
6462         * eval.c (function_argcount): If function needs to be autoloaded
6463         actually use the loaded definition.
6464         GCPRO function.
6465
6466 2000-08-05  Ben Wing  <ben@xemacs.org>
6467
6468         * getloadavg.c: add prototype for getloadavg().  remove
6469         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6470         of the code).  remove duplicate header includes.
6471
6472         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6473
6474         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6475         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6476         useful load average.
6477
6478         * alloc.c (reinit_alloc_once_early): removed references to
6479         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6480         the lisp vars are the only things referencing the malloc_sbrk_*
6481         vars, and they were already if 0'd out.  these vars only exist
6482         in the older malloc.c, which is basically unused, and they're
6483         only for informational purposes.
6484
6485         * m\*.h: removed useless VIRT_ADDR_VARIES.
6486
6487         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6488
6489 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6490
6491         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6492         color if the image is a mono pixmap.
6493
6494 2000-07-30  Ben Wing  <ben@xemacs.org>
6495
6496         * Makefile.in.in (release):
6497         Remove stray @.
6498
6499         * buffer.c (directory_is_current_directory):
6500         * dired-msw.c (mswindows_get_files):
6501         * dired.c:
6502         * dired.c (Fdirectory_files):
6503         * dired.c (file_name_completion_stat):
6504         * dired.c (Ffile_attributes):
6505         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6506         preprocessor tricks, to avoid problems on some machines
6507         (e.g. SCO).
6508
6509         * callproc.c (egetenv): GC docs.
6510
6511         * console-msw.h:
6512         * console-msw.h (struct mswindows_dialog_id):
6513         * lrecord.h (lrecord_type):
6514         New object for use with MSW dialogs.
6515
6516         * console.h (struct console_methods):
6517         New enable/disable frame methods, for proper modal dialogs.
6518
6519         * device-msw.c (msprinter_default_printer): Fix to follow
6520         proper Mule conventions.
6521
6522         * device-msw.c:
6523         * device-msw.c (signal_open_printer_error):
6524         * device-msw.c (msprinter_init_device):
6525         * device-msw.c (ensure_not_printing):
6526         * device-msw.c (plist_get_margin):
6527         * device-msw.c (Fmsprinter_select_settings):
6528         * device-msw.c (finalize_devmode):
6529         * device-msw.c (Fmsprinter_settings_despecialize):
6530         * device-msw.c (signal_enum_priner_error):
6531         * extents.c (decode_extent):
6532         * extents.c (decode_map_extents_flags):
6533         * extents.c (decode_extent_at_flag):
6534         * extents.c (Fextent_at):
6535         * extents.c (Fextents_at):
6536         * extents.c (symbol_to_glyph_layout):
6537         [[[[2]]]] Use structured errors.
6538
6539         * dialog-msw.c:
6540         * dialog-msw.c (mswindows_is_dialog_msg):
6541         * dialog-msw.c (mark_mswindows_dialog_id):
6542         * dialog-msw.c (dialog_proc):
6543         * dialog-msw.c (handle_question_dialog_box):
6544         * dialog-msw.c (syms_of_dialog_mswindows):
6545         Define new object to clean up marking; use it as a dialog identifier.
6546         Call new delete-dialog-box-hook.
6547
6548         * dialog-x.c (dbox_selection_callback):
6549         * dialog-x.c (dbox_descriptor_to_widget_value):
6550         * dialog-x.c (x_make_dialog_box_internal):
6551         Call new delete-dialog-box-hook.
6552         Return an id.
6553
6554         * dialog.c:
6555         * dialog.c (syms_of_dialog):
6556         * dialog.c (vars_of_dialog):
6557         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6558
6559         * eval.c:
6560         * eval.c (signal_call_debugger):
6561         when noninteractive, output stack traces on the console instead
6562         of in a (never-seen) buffer.
6563
6564         * eval.c (signal_type_error):
6565         * eval.c (invalid_argument_2):
6566         * lisp.h:
6567         new funs for use w/structured errors.
6568
6569         * event-Xt.c:
6570         * event-Xt.c (x_to_emacs_keysym):
6571         * event-Xt.c (describe_event):
6572         * event-Xt.c (emacs_Xt_event_handler):
6573         * event-Xt.c (vars_of_event_Xt):
6574         * event-msw.c:
6575         * event-msw.c (mswindows_wnd_proc):
6576         * event-msw.c (vars_of_event_mswindows):
6577         rename {x,mswindows}-debug-events to debug-{}-events for
6578         consistency with other debug-foo variables.
6579
6580         * event-stream.c:
6581         document next-event more clearly.
6582
6583         * fileio.c (Ffile_name_directory):
6584         * fileio.c (Ffile_name_nondirectory):
6585         * fileio.c (Funhandled_file_name_directory):
6586         * fileio.c (file_name_as_directory):
6587         * fileio.c (Ffile_name_as_directory):
6588         * fileio.c (directory_file_name):
6589         * fileio.c (Fdirectory_file_name):
6590         * fileio.c (Fmake_temp_name):
6591         * fileio.c (Ffile_truename):
6592         * fileio.c (Fsubstitute_in_file_name):
6593         * fileio.c (expand_and_dir_to_file):
6594         * fileio.c (barf_or_query_if_file_exists):
6595         * fileio.c (check_executable):
6596         * fileio.c (Ffile_exists_p):
6597         * fileio.c (Ffile_writable_p):
6598         * fileio.c (Ffile_directory_p):
6599         * fileio.c (Ffile_regular_p):
6600         * fileio.c (Ffile_modes):
6601         * fileio.c (Ffile_newer_than_file_p):
6602         * fileio.c (Fverify_visited_file_modtime):
6603         * fileio.c (Fset_visited_file_modtime):
6604         * fileio.c (auto_save_1):
6605         (1). (2).
6606         fix up gcpro's.
6607
6608         * frame-msw.c:
6609         * frame-msw.c (mswindows_init_frame_1):
6610         * frame-msw.c (mswindows_enable_frame):
6611         * frame-msw.c (error_frame_unsizable):
6612         * frame-msw.c (msprinter_init_frame_1):
6613         * frame-msw.c (msprinter_init_frame_3):
6614         * frame-msw.c (console_type_create_frame_mswindows):
6615         (2).
6616         implement new enable/disable frame methods.
6617
6618         * frame-x.c:
6619         * frame-x.c (x_enable_frame):
6620         * frame-x.c (console_type_create_frame_x):
6621         implement new enable/disable frame methods.
6622
6623         * frame.c:
6624         * frame.c (Fdisable_frame):
6625         * frame.c (syms_of_frame):
6626         * frame.h (struct frame):
6627         implement new enable/disable frame methods/functions.
6628
6629         * general-slots.h:
6630         add initial-focus.
6631
6632         * glyphs-msw.c (mswindows_widget_instantiate):
6633         comment that initial-focus should be implemented.
6634
6635         * glyphs-widget.c:
6636         * glyphs-widget.c (check_valid_instantiator):
6637         * glyphs-widget.c (check_valid_orientation):
6638         * glyphs-widget.c (check_valid_tab_orientation):
6639         * glyphs-widget.c (check_valid_justification):
6640         * glyphs-widget.c (check_valid_border):
6641         * glyphs-widget.c (check_valid_callback):
6642         * glyphs-widget.c (check_valid_int_or_function):
6643         * glyphs-widget.c (check_valid_string_or_vector):
6644         * glyphs-widget.c (check_valid_item_list_1):
6645         * glyphs-widget.c (widget_validate):
6646         * glyphs-widget.c (combo_box_validate):
6647         * glyphs-widget.c (widget_instantiate):
6648         * glyphs-widget.c (syms_of_glyphs_widget):
6649         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6650         * glyphs-widget.c (image_instantiator_combo_box):
6651         * glyphs-widget.c (image_instantiator_scrollbar):
6652         * glyphs-widget.c (image_instantiator_tab_control):
6653         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6654         (2).
6655         support (unimplemented) keyword initial-focus.
6656         reindent long macros.
6657
6658         * glyphs-x.c (x_redisplay_widget):
6659         * glyphs-x.c (x_button_instantiate):
6660         * glyphs-x.c (x_button_redisplay):
6661         * glyphs-x.c (x_progress_gauge_instantiate):
6662         * glyphs-x.c (x_edit_field_instantiate):
6663         * glyphs-x.c (x_combo_box_instantiate):
6664         * glyphs-x.c (x_tab_control_instantiate):
6665         * glyphs-x.c (x_label_instantiate):
6666         * gui-x.c:
6667         * gui-x.c (button_item_to_widget_value):
6668         * gui-x.c (gui_items_to_widget_values_1):
6669         * gui-x.c (gui_item_children_to_widget_values):
6670         * gui-x.c (gui_items_to_widget_values):
6671         * gui-x.h:
6672         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6673         add new flag to gui-parsing routines to indicate whether
6674         accelerator specs should be supported.
6675
6676         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6677
6678         * glyphs.h (struct Lisp_Image_Instance):
6679         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6680         add initial-focus flag.
6681
6682         * gui.c:
6683         * gui.c (syms_of_gui):
6684         * gui.c (vars_of_gui):
6685         clean up menu-no-selection-hook.
6686
6687         * gui.h:
6688         support delete-dialog-box-hook.
6689
6690         * lread.c (Fload_internal):
6691         * lread.c (locate_file_in_directory_mapper):
6692         (1).
6693
6694         * lrecord.h:
6695         * lrecord.h (struct toolbar_button):
6696         * lrecord.h (syms_of_toolbar):
6697         document how to create a new object.
6698
6699         * menubar-msw.c (mswindows_char_is_accelerator):
6700         may be called on frames w/o menus.
6701
6702         * menubar.c (vars_of_menubar):
6703         clean up :filter docs.
6704
6705         * nt.c (readdir):
6706         * ntproc.c:
6707         (1).
6708
6709         * process-nt.c:
6710         * process-nt.c (validate_signal_number):
6711         * process-nt.c (signal_cannot_launch):
6712         * process-nt.c (nt_create_process):
6713         * process-nt.c (nt_send_process):
6714         * process-nt.c (nt_kill_child_process):
6715         * process-nt.c (nt_open_network_stream):
6716         * process-nt.c (syms_of_process_nt):
6717         (2).
6718         delete quote-handling.  call new lisp code that does it better.
6719
6720         * process-unix.c (connect_to_file_descriptor):
6721         * process-unix.c (allocate_pty):
6722         * process-unix.c (unix_send_process):
6723         * process-unix.c (unix_kill_child_process):
6724         * process-unix.c (unix_open_network_stream):
6725         * process-unix.c (unix_open_multicast_group):
6726         (1). (2).
6727
6728         * process.c:
6729         * process.c (Fstart_process_internal):
6730         (2).  need to canonicalize process path even if absolute.
6731
6732         * select-msw.c (symbol_to_ms_cf):
6733         * select-msw.c (ms_cf_to_symbol):
6734         * select-msw.c (cf_is_autofreed):
6735         * select-msw.c (mswindows_destroy_selection):
6736         * select.c:
6737         * select.c (syms_of_select):
6738         * select.h:
6739         support dibv5, fix bugs. (from Mike Alexander)
6740
6741         * select.c (Fget_selection_internal):
6742         * select.c (select_convert_out):
6743
6744         * sysdep.c:
6745         * sysdep.c (xemacs_stat):
6746         renamed.
6747
6748         * sysdep.c (mkdir):
6749         * sysdep.c (rmdir):
6750         but keep original stat() here because we provide encapsulation
6751         around these funs.
6752
6753         * sysfile.h:
6754         * sysfile.h (fstat):
6755         remove stat garbage.
6756
6757         * syswindows.h:
6758         fix X/MSW conflict.
6759         don't include tchar.h.  it's inappropriate because it makes
6760         compile-time distinctions when we want runtime distinctions.
6761         (we provide our own tchar replacements)
6762
6763         * toolbar.c:
6764         use default object printer for toolbar-button.
6765
6766         * unexcw.c:
6767         make sure we don't encapsulate.
6768
6769         * window.c (vars_of_window):
6770         emphasize that temp-buffer-show-hook is obsolete.
6771
6772 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6773
6774         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6775         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6776
6777         * events.c (Fevent_timestamp_lessp):
6778         Not 64-bit clean.  Use EMACS_INT, not int.
6779
6780 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6781
6782         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6783         unsigned int and changed the last enum to
6784         lrecord_type_last_built_in_type.
6785         (lrecord_implementations_table): changed prototype to know how
6786         long the array is supposed to be.
6787         (lrecord_type_count): new unsigned int to keep track of the
6788         current number of lisp lrecord types.
6789         (DEFINE_EXTERNAL_LRECORD):
6790         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6791         dynamic-modules to declare new lisp types. They are the same
6792         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6793         int for each new type, and increment lrecord_type_count by 1.
6794
6795         * alloc.c (lrecord_implementations_table): Changed to reference
6796         lrecord_type_last_built_in_type for the size of the array.
6797         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6798
6799 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6800
6801         * glyphs.h (check_valid_item_list): Renamed from
6802         check_valid_item_list_1.
6803
6804 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6805
6806         * select.c (Qselect_coerce): New.
6807         * select.c (Vselection_coercion_alist): New.
6808         * select.c (syms_of_select): Declare.
6809         * select.c (get-selection-internal): Use it.
6810         Use the new select-coerce functionality.
6811
6812         * select.c (select_coerce): New.
6813         * select.h (select_coerce): Declare.
6814         New function to coerce one type of data into another.
6815
6816 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6817
6818         * callproc.c (Fcall_process_internal):
6819         (Fcall_process_internal):
6820         * process-unix.c (unix_create_process):
6821         Save and restore the value of errno, so that error messages are accurate.
6822
6823 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6824
6825         * elhash.c (print_hash_table):
6826         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6827         Prettify docstrings and indentation.
6828
6829 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6830
6831         * window.c (Fwindow_pixel_edges): Subtract frame border and
6832         gutter size.
6833
6834 2000-07-31  Andy Piper  <andy@xemacs.org>
6835
6836         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6837         will acknowledge the change.
6838
6839         * glyphs.h: declare tab_control_order_only_changed.
6840
6841         * glyphs-x.c (x_tab_control_redisplay): use
6842         tab_control_order_only_changed.
6843
6844         * glyphs-widget.c (tab_control_order_only_changed): new function.
6845
6846         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6847         tab_control_order_only_changed.
6848
6849         * gui.c (gui_item_equal_sans_selected): new function.
6850         (gui_item_equal): use it.
6851
6852         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6853         :properties in favor of :items..
6854
6855         * glyphs-widget.c (check_valid_item_list): rename from
6856         check_valid_item_list_1.
6857         (check_valid_item_list_1): renamed.
6858         (combo_box_validate): deprecate :properties in favor of :items.
6859         (widget_instantiate): ditto.
6860         (tab_control_update): ditto.
6861         (image_instantiator_combo_box): ditto.
6862         (image_instantiator_tree_view): ditto.
6863         (image_instantiator_tab_control): ditto.
6864         (layout_post_instantiate): remove dead code.
6865
6866         * print.c (debug_print_no_newline): only write to debugger if in
6867         WIN32_NATIVE.
6868
6869         * elhash.c (Fmake_hash_table): update doc string.
6870
6871         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6872         messages whilst in GC. This at least stops XEmacs crashing but has
6873         the potential for wierd behaviour.
6874
6875 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6876
6877         * config.h.in:
6878         Make existence of s&m files optional.
6879
6880         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6881         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6882         * s/gnu.h: Remove HAVE_GETLOADAVG.
6883         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6884         * s/sol2.h: Remove HAVE_GETLOADAVG.
6885         * lisp.h: Remove getloadavg() declaration.
6886         * fns.c:
6887         Include <sys/loadavg.h> if available.
6888         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6889         * config.h.in:  Group together getloadavg()-related macros.
6890         Use only configure-time tests to detect getloadavg().
6891
6892 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6893
6894         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6895
6896 2000-07-25  Andy Piper  <andy@xemacs.org>
6897
6898         * syswindows.h: add tchar.h for native builds.
6899
6900         * frame.c (syms_of_frame): remove set-glyph-image.
6901
6902         * general-slots.h: add Qset_glyph_image.
6903
6904         * glyphs-widget.c (layout_update): add domain arg to
6905         set-glyph-image.
6906         (syms_of_glyphs_widget): remove set-glyph-image.
6907
6908 2000-07-23  Ben Wing  <ben@xemacs.org>
6909
6910         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6911         Vpopup_frame_list.
6912
6913 2000-07-22  Andy Piper  <andy@xemacs.org>
6914
6915         * symsinit.h: add syms_of_win32().
6916
6917         * gui-msw.c (syms_of_gui_mswindows): remove
6918         Fmswindows_shell_execute.
6919         (Fmswindows_shell_execute): moved to win32.c.
6920
6921         * emacs.c (main_1): add syms_of_win32 ().
6922
6923         * win32.c (init_potentially_nonexistent_functions): rewrite in
6924         compiler-friendly terms.
6925         (Fmswindows_shell_execute): move here from gui-msw.c.
6926         (syms_of_win32): new.
6927
6928         * device-msw.c (Fmswindows_printer_list): clean up args to
6929         EnumPrinters.
6930         Don't include tchar under cygwin or mingw.
6931         (msprinter_default_printer): make cygwin-friendly.
6932
6933 2000-07-21  Andy Piper  <andy@xemacs.org>
6934
6935         * glyphs-widget.c (image_instantiator_tree_view): use tab
6936         control's update function.
6937         (layout_property): new function. Retrieve items.
6938
6939         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6940         function. Re-populate the tree view from the pending items.
6941
6942         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6943         is designated the parent if the domain is an image instance. This
6944         is needed so that dirtiness can be cascade up the hierarchy and
6945         thus for layout children to be redisplayed correctly.
6946         (allocate_image_instance): rename glyph -> parent.
6947
6948         * redisplay.h: change redisplay_output_layout signature.
6949
6950         * redisplay-msw.c (mswindows_output_display_block): use domain
6951         arg.
6952
6953         * redisplay-x.c (x_output_display_block): use domain arg.
6954
6955 2000-07-10  Andy Piper  <andy@xemacs.org>
6956
6957         * window.c (Fset_window_configuration): add comment.
6958
6959         * redisplay-output.c (compare_runes):
6960         (redisplay_output_subwindow): redisplay rather than update subwindow.
6961         (redisplay_output_layout): ditto.
6962
6963         * redisplay-msw.c (mswindows_frame_output_end):
6964         (mswindows_frame_output_end): make defer window pos optional.
6965
6966         * lisp.h: add Flast.
6967
6968         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6969         normalize method. Change update method to be for changed
6970         instantiators. Add redisplay method. Change signature of layout
6971         method.
6972         (struct Lisp_Image_Instance): add instantiator.
6973         (IMAGE_INSTANCE_INSTANTIATOR): new.
6974         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6975         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6976         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6977
6978         * glyphs.c:
6979         (find_instantiator_differences): new function.
6980         (Fset_instantiator_property): new convenience function.
6981         (check_image_instance_structure): strictly check for vector
6982         instantiators.
6983         (normalize_image_instantiator): make non-static.
6984         (instantiate_image_instantiator): pass on dest_mask and use new
6985         signatures for image_instance_layout and friends.
6986         (mark_image_instance): mark the instantiator. Mark the subwindow
6987         face not the widget face.
6988         (image_instance_equal): add instantiator.
6989         (image_instance_hash): ditto.
6990         (allocate_image_instance): ditto.
6991         (Fset_image_instance_property): removed.
6992         (Fimage_instance_file_name): ditto.
6993         (Fcolorize_image_instance): ditto.
6994         (image_instance_layout): add offsets to be set.
6995         (update_image_instance): new function. update an image instance
6996         from its changed instantiator.
6997         (inherit_normalize): add dest_mask.
6998         (xbm_normalize): ditto.
6999         (xface_normalize): ditto.
7000         (xpm_normalize): ditto.
7001         (text_update): set_property -> update.
7002         (image_instantiate): use the glyph identity as a hash key, not the
7003         instantiator.
7004         (glyph_width): use new image_instance_layout signature.
7005         (glyph_ascent): ditto.
7006         (glyph_descent): ditto.
7007         (glyph_height): ditto.
7008         (glyph_query_geometry): ressurrect.
7009         (glyph_layout): ditto.
7010         (redisplay_subwindow): update -> redisplay.
7011         (syms_of_glyphs): add Fset_instantiator_property.
7012         (image_instantiator_format_create): set_property -> update.
7013
7014         * glyphs-x.c:
7015         (autodetect_normalize): add dest_maks to signature.
7016         (x_redisplay_subwindow): update -> redisplay.
7017         (x_redisplay_widget): ditto.
7018         (x_button_redisplay): ditto.
7019         (x_progress_gauge_redisplay): ditto.
7020         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7021         stacking order.
7022         (console_type_create_glyphs_x): update -> redisplay.
7023         (image_instantiator_format_create_glyphs_x): ditto.
7024
7025         * glyphs-widget.c:
7026         (check_valid_instantiator): disallow glyphs in the instantiator,
7027         they must now be vectors.
7028         (check_valid_instantiator_list): ditto.
7029         (glyph_instantiator_to_glyph): use internal symbol rather than
7030         intern.
7031         (widget_update): renamed from widget_set_property. Call cascaded
7032         update methods.
7033         (redisplay_widget): renamed from update_widget.
7034         (widget_layout): image_instance_layout now takes position as well
7035         as size.
7036         (widget_normalize): ditto.
7037         (widget_instantiate): ditto.
7038         (tab_control_query_geometry) ditto.:
7039         (tab_control_update): renamed from tab_control_set_property.
7040         (progress_gauge_update): set_property -> update.
7041         (layout_normalize): rewrite so that child instantiators are
7042         normalized also.
7043         (layout_update): new function. Create glyphs from the normalized
7044         children and cope with any other layout keywords. We do not
7045         instantiate children here that will be take care of by
7046         redisplay_output_layout.
7047         (layout_instantiate): call layout_update and not much else.
7048         (layout_post_instantiate): not sure whether this is needed
7049         anymore.
7050         (layout_query_geometry): query glyph geometry rather than
7051         image_instance geometry.
7052         (layout_layout): set offsets from pass in parameters. Use glyph
7053         geometry and layout functions rather than image instance ones.
7054         (native_layout_layout): ditto.
7055         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7056         (image_instantiator_widget): set_property -> update.
7057         (image_instantiator_buttons): ditto.
7058         (image_instantiator_progress_guage): ditto.
7059         (image_instantiator_tab_control): ditto.
7060         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7061         (image_instantiator_layout): add update method.
7062
7063         * glyphs-msw.c (bmp_normalize):
7064         (mswindows_resource_normalize): add dest_mask so that it can be
7065         proprogated by layout_normalize.
7066         (begin_defer_window_pos): make optional because it may not be the
7067         right thing to do and it introduces differences with X.
7068         (mswindows_unmap_subwindow): ditto.
7069         (mswindows_map_subwindow): ditto.
7070         (mswindows_redisplay_subwindow): renamed from
7071         mswindows_update_subwindow.
7072         (mswindows_redisplay_widget): ditto.
7073         (mswindows_button_redisplay): renamed from
7074         mswindows_button_update. Update is now what the instantiation
7075         function does for a changed instantiator.
7076         (mswindows_progress_gauge_instantiate): set the progress value
7077         here if appropriate.
7078         (mswindows_tab_control_redisplay): cope with re-ordering of the
7079         members of the tab widget by simply selecting the new top
7080         widget. This makes things appear ok if you click on a tab.
7081         (mswindows_combo_box_instantiate): image_instance_layout now takes
7082         position as well as size.
7083         (mswindows_progress_gauge_redisplay): renamed from
7084         mswindows_progress_gauge_update.
7085         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7086         (image_instantiator_format_create_glyphs_mswindows): ditto.
7087
7088         * glyphs-eimage.c (jpeg_normalize):
7089         (gif_normalize):
7090         (png_normalize):
7091         (tiff_normalize): add dest_mask so that it can be proprogated by
7092         layout_normalize.
7093
7094         * elhash.c:
7095         (print_hash_table):
7096         (hash_table_weakness_validate):
7097         (decode_hash_table_weakness):
7098         (Fhash_table_weakness):
7099         (Fhash_table_type):
7100         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7101
7102         * console.h (struct console_methods): move update_* to
7103         redisplay_*.
7104
7105 2000-07-20  Ben Wing  <ben@xemacs.org>
7106
7107         * *.[ch] (XSETOBJ): remove unused middle argument.
7108         lisp-disunion.h: correct wrap_object() to one argument.
7109
7110 2000-07-15  Ben Wing  <ben@xemacs.org>
7111
7112         * s/cygwin32.h:
7113         * s/cygwin32.h (CYGWIN_CONV_PATH):
7114         Add missing logb prototype for v1.1.
7115         Use post-b20 names and alias to pre-b20 names when pre-b20.
7116
7117         * s/windowsnt.h: [5].
7118
7119 2000-07-15  Ben Wing  <ben@xemacs.org>
7120
7121         * Makefile.in.in (x_objs):
7122         * Makefile.in.in (sheap_objs):
7123         * Makefile.in.in (objs):
7124         added win32.o, cosmetic cleanups.
7125
7126         * alloc.c (Fmake_byte_code):
7127         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7128         etc. macros which declare their own args now.
7129
7130         * alloc.c (syms_of_alloc):
7131         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7132
7133         * buffer.c:
7134         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7135
7136         * buffer.c (Fget_file_buffer):
7137         Fixed GCPRO problem.
7138
7139         * buffer.c (get_truename_buffer):
7140         Fixed comment about GC checking.
7141
7142         * buffer.c (syms_of_buffer):
7143         Undeclared those dedicated frame funs.
7144         [2].
7145
7146         * buffer.h:
7147         Define convenience macros for internal/external conversions.
7148         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7149         and Qenvironment_variable_encoding for cleaner code.
7150
7151         * bufslots.h:
7152         Remove dedicated-frame; in lisp.
7153
7154         * bytecode.c (funcall_compiled_function):
7155         [1].
7156
7157         * bytecode.c (syms_of_bytecode):
7158         [2].
7159
7160         * console-msw.c:
7161         * console-msw.c (mswindows_show_console): Rewrote.
7162
7163         * console-msw.c (Fmswindows_debugging_output): New.
7164         Sends to OutputDebugString (special MSWin debugger interface).
7165
7166         * console-msw.c (Fmswindows_message_box):
7167         Fixed stupid bugs so it works when called from kill-emacs.
7168
7169         * console-msw.c (syms_of_console_mswindows):
7170         Declare Fmswindows_debugging_output.
7171
7172         * console-msw.h:
7173         New MSWin prototypes.
7174
7175         * console-msw.h (struct mswindows_frame):
7176         New entry last-click-mods for improved button-modifier support.
7177
7178         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7179         New struct entry `popup' with corresponding accessor.
7180
7181         * console-x.c:
7182         * console-x.c (split_up_display_spec):
7183         * console-x.c (get_display_arg_connection):
7184         * console-x.c (x_semi_canonicalize_console_connection):
7185         * console-x.c (x_canonicalize_device_connection):
7186         [[[6]]]: Change char to more specific type.
7187         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7188
7189         * console-x.c (x_semi_canonicalize_console_connection):
7190         * console-x.c (x_canonicalize_device_connection):
7191         [[[9]]]: Fix up error signalling to use new structured error system.
7192
7193         * console-x.h:
7194         [[[4]]]: Define codesys aliases:
7195         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7196         Qx_color_name_encoding, Qx_display_name_encoding.
7197
7198         * console.h (struct console_methods):
7199         New method make_dialog_box_internal supersedes older
7200         popup_dialog_box method.
7201
7202         * data.c:
7203         Define many new errors, part of new structured errors.
7204
7205         * data.c (init_errors_once_early):
7206         * data.c (syms_of_data):
7207         [2].
7208
7209         * device-msw.c (mswindows_init_device):
7210         [[[5]]]: Cleanup to support NT 3.51.
7211
7212         * device-msw.c (decode_devmode): Cleanup.
7213
7214         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7215         * device-msw.c (mswindows_handle_print_dialog_box):
7216         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7217         * device-msw.c (syms_of_device_mswindows):
7218         Delete the dialog box primitives recently introduced by Kirill and
7219         instead interface to general dialog box interface.
7220
7221         * device-x.c:
7222         * device-x.c (compute_x_app_name):
7223         * device-x.c (x_init_device):
7224         * device-x.c (Fx_valid_keysym_name_p):
7225         * device-x.c (Fx_set_font_path):
7226         [6].
7227         [7].
7228
7229         * device.h (wrap_device): New.
7230         First of its kind; meant to replace XSETDEVICE.
7231
7232         * dialog-msw.c: Many file-dialog symbols.
7233
7234         * dialog-msw.c (mswindows_register_popup_frame): New.
7235         * dialog-msw.c (mswindows_is_dialog_msg): New.
7236         For supporting kbd traversal in dialog boxes.
7237
7238         * dialog-msw.c (dialog_proc):
7239         Support hitting ESC in dialogs.
7240
7241         * dialog-msw.c (struct):
7242         Common dialog box errors.
7243
7244         * dialog-msw.c (handle_file_dialog_box): New.
7245         Add file dialog code.
7246
7247         * dialog-msw.c (handle_question_dialog_box):
7248         Redo existing code to support new question dialog syntax.
7249
7250         * dialog-msw.c (console_type_create_dialog_mswindows):
7251         We support new dialog console method.
7252
7253         * dialog-msw.c (syms_of_dialog_mswindows):
7254         * dialog-msw.c (vars_of_dialog_mswindows):
7255         New file dialog symbols, vars.
7256
7257         * dialog-x.c:
7258         * dialog-x.c (maybe_run_dbox_text_callback):
7259         * dialog-x.c (dbox_descriptor_to_widget_value):
7260         * dialog-x.c (x_make_dialog_box_internal):
7261         * dialog-x.c (console_type_create_dialog_x):
7262         Mule-ize entire file.
7263         Redo to support question dialog syntax.
7264         [6].
7265
7266         * dialog.c:
7267         * dialog.c (Fmake_dialog_box_internal):
7268         * dialog.c (syms_of_dialog):
7269         Kill old popup-dialog-box, replace with new primitive.
7270         Just call device method or signal error.
7271
7272         * eldap.c (Fldap_open):
7273         * eldap.c (Fldap_search_basic):
7274         * eldap.c (Fldap_add):
7275         * eldap.c (Fldap_modify):
7276         [1].
7277         [7].
7278
7279         * emacs.c:
7280         * emacs.c (make_arg_list_1):
7281         * emacs.c (make_arg_list):
7282         Mule-ize call to dll_init().
7283         [6].
7284         [8].
7285
7286         * emacs.c (make_argc_argv):
7287         * emacs.c (free_argc_argv):
7288         * emacs.c (init_cmdargs):
7289         * emacs.c (main_1):
7290         * emacs.c (Fkill_emacs):
7291         * emacs.c (Fdump_emacs):
7292         Update comments about what can be used in syms_* etc.
7293         Call init_win32() when necessary.
7294         Fix up MS Win dialog box in kill-buffer to actually work right.
7295         [7].
7296
7297         * eval.c:
7298         * eval.c (For):
7299         * eval.c (Fand):
7300         * eval.c (Fprogn):
7301         * eval.c (Fprog1):
7302         * eval.c (Fprog2):
7303         * eval.c (FletX):
7304         * eval.c (Flet):
7305         * eval.c (condition_case_3):
7306         * eval.c (Feval):
7307         * eval.c (function_argcount):
7308         * eval.c (funcall_lambda):
7309         [1].
7310
7311         * eval.c (type_error): New.
7312         * eval.c (maybe_type_error): New.
7313         * eval.c (continuable_type_error): New.
7314         * eval.c (maybe_continuable_type_error): New.
7315         * eval.c (type_error_with_frob): New.
7316         * eval.c (maybe_type_error_with_frob): New.
7317         * eval.c (continuable_type_error_with_frob): New.
7318         * eval.c (maybe_continuable_type_error_with_frob): New.
7319         New functions for use with structured errors.
7320
7321         * event-Xt.c:
7322         * event-Xt.c (x_event_to_emacs_event):
7323         Buttons are now modifiers too.
7324
7325         * event-Xt.c (emacs_Xt_current_event_timestamp):
7326         Implement new event method.
7327         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7328
7329         * event-msw.c:
7330         * event-msw.c (ntpipe_shove_writer): [5].
7331         * event-msw.c (mswindows_enqueue_mouse_button_event):
7332         * event-msw.c (mswindows_drain_windows_queue):
7333         * event-msw.c (mswindows_wnd_proc): [7].
7334         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7335         * event-msw.c (mswindows_modifier_state):
7336         Throughout: support new button modifiers.
7337
7338         * event-msw.c (emacs_mswindows_current_event_timestamp):
7339         Implement new event method.
7340         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7341
7342         * event-stream.c:
7343         * event-stream.c (event_stream_current_event_timestamp): New.
7344         * event-stream.c (maybe_kbd_translate): New functionality.
7345         * event-stream.c (vars_of_event_stream):
7346         Document new kbd-translate-table functionality.
7347
7348         * event-stream.c (Fcurrent_event_timestamp): New.
7349         New primitive for use in fabricated events.
7350         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7351
7352         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7353
7354         * events.c:
7355         * events.c (Fmake_event):
7356         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7357         [1].
7358         [9].
7359
7360         * events.c (format_event_object): fix gcc warnings.
7361
7362         * events.c (Fevent_timestamp): Document new primitives.
7363
7364         * events.c (TIMESTAMP_HALFSPACE): New.
7365
7366         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7367         comparing timestamps correctly (half-space algorithm).
7368
7369         * events.c (Fevent_modifier_bits): Doc fix.
7370
7371         * events.c (Fevent_modifiers): Major doc addition.
7372         * events.c (event_x_y_pixel_internal): Typo fix.
7373         * events.c (syms_of_events): Declare new primitives.
7374
7375         * events.h:
7376         Update long comment for button modifiers, timestamps.
7377
7378         * events.h (struct event_stream):
7379         New current_event_timestamp method.
7380
7381         * extents.c:
7382         * extents.c (extent_in_region_p):
7383         * extents.c (decode_extent):
7384         * extents.c (Fset_extent_parent):
7385         * extents.c (decode_map_extents_flags):
7386         Fix gcc warnings.
7387         [9].
7388
7389         * extents.c (struct extent_at_arg):
7390         * extents.c (decode_extent_at_flag):
7391         * extents.c (extent_at_mapper):
7392         * extents.c (extent_at_bytind):
7393         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7394         * extents.c (Fextents_at): New primitive. [9].
7395         * extents.c (symbol_to_glyph_layout): [9].
7396         Support new primitive `extents-at'.
7397
7398
7399         * extents.c (get_text_property_bytind):
7400         extent_at_bytind has another arg.
7401         [9].
7402
7403         * extents.c (syms_of_extents): New primitive.
7404
7405         * file-coding.c (Fmake_coding_system): [1].
7406         * file-coding.c (subsidiary_coding_system): fix gcc warning
7407         * file-coding.c (syms_of_file_coding): [2].
7408
7409         * fileio.c (Fexpand_file_name):
7410         * fileio.c (Fsysnetunam):
7411         * fileio.c (Ffile_exists_p):
7412         * fileio.c (Ffile_executable_p):
7413         * fileio.c (Fverify_visited_file_modtime):
7414         Clean up GCPROing.
7415
7416         * fileio.c (syms_of_fileio): [2].
7417
7418         * filelock.c (lock_file_1):
7419         * filelock.c (current_lock_owner):
7420         * filelock.c (lock_if_free):
7421         * filelock.c (lock_file):
7422         * filelock.c (unlock_file):
7423         Clean up GCPROing.
7424
7425         * fns.c (concat): Fix gcc warning.
7426
7427         * fns.c (Fmember):
7428         * fns.c (Fold_member):
7429         * fns.c (Fmemq):
7430         * fns.c (Fold_memq):
7431         * fns.c (memq_no_quit):
7432         * fns.c (Fassoc):
7433         * fns.c (Fold_assoc):
7434         * fns.c (Fassq):
7435         * fns.c (Fold_assq):
7436         * fns.c (assq_no_quit):
7437         * fns.c (Frassoc):
7438         * fns.c (Fold_rassoc):
7439         * fns.c (Frassq):
7440         * fns.c (Fold_rassq):
7441         * fns.c (rassq_no_quit):
7442         * fns.c (Fdelete):
7443         * fns.c (Fold_delete):
7444         * fns.c (Fdelq):
7445         * fns.c (Fold_delq):
7446         * fns.c (delq_no_quit):
7447         * fns.c (Fremassoc):
7448         * fns.c (Fremassq):
7449         * fns.c (remassq_no_quit):
7450         * fns.c (Fremrassoc):
7451         * fns.c (Fremrassq):
7452         * fns.c (remrassq_no_quit):
7453         * fns.c (Freverse):
7454         * fns.c (mapcar1):
7455         [1].
7456
7457         * frame-msw.c (mswindows_init_frame_1):
7458         * frame-msw.c (mswindows_delete_frame):
7459         Register popups with dialog code so keyboard traversing works.
7460
7461         * frame-tty.c (tty_raise_frame_no_select): [1].
7462
7463         * frame-x.c:
7464         * frame-x.c (x_set_frame_text_value):
7465         * frame-x.c (x_set_frame_properties):
7466         * frame-x.c (x_create_widgets):
7467         [7].
7468
7469         * frame.c:
7470         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7471
7472         * frame.h (wrap_frame): New.
7473         Macro like wrap_device.
7474
7475         * general.c:
7476         * general.c (SYMBOL):
7477         * general.c (syms_of_general):
7478         Major reorg.  This is now just a wrapper and symbols themselves
7479         are listed in general-slots.h.
7480
7481         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7482         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7483
7484         * glyphs-msw.c (mswindows_native_layout_instantiate):
7485         Add DS_CONTROL so keyboard traversal will work.
7486
7487         * glyphs-widget.c:
7488         * glyphs-widget.c (syms_of_glyphs_widget):
7489         Move some symbols to general-slots.h.
7490
7491         * glyphs-x.c:
7492         * glyphs-x.c (xbm_instantiate_1):
7493         * glyphs-x.c (x_xbm_instantiate):
7494         * glyphs-x.c (x_xface_instantiate):
7495         * glyphs-x.c (autodetect_instantiate):
7496         * glyphs-x.c (cursor_font_instantiate):
7497         * glyphs-x.c (x_update_widget):
7498         * glyphs-x.c (x_widget_instantiate):
7499         * glyphs.c (bitmap_to_lisp_data):
7500         * glyphs.c (pixmap_to_lisp_data):
7501         [7].
7502
7503         * glyphs.c (syms_of_glyphs):
7504         [2].
7505
7506         * gui-x.c:
7507         * gui-x.c (print_widget_value):
7508         * gui-x.c (menu_separator_style_and_to_external):
7509         * gui-x.c (add_accel_and_to_external):
7510         * gui-x.c (button_item_to_widget_value):
7511         * gui-x.c (gui_items_to_widget_values_1):
7512         * gui-x.c (gui_items_to_widget_values):
7513         * gui-x.c (syms_of_gui_x):
7514         * gui-x.c (vars_of_gui_x):
7515         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7516         [9].
7517
7518         * gui-x.h:
7519         Muleize, prototype changes matching gui-x.c.
7520
7521         * gui.c:
7522         * gui.c (separator_string_p):
7523         * gui.c (gui_item_add_keyval_pair):
7524         * gui.c (make_gui_item_from_keywords_internal):
7525         * gui.c (signal_too_long_error):
7526         * gui.c (parse_gui_item_tree_item):
7527         * gui.c (syms_of_gui):
7528         * gui.c (vars_of_gui):
7529         * gui.h:
7530         menu-no-selection-hook moved here (used by MSWin).
7531         Move some symbols to general-slots.h.
7532         [6].
7533         [9].
7534
7535         * insdel.c (get_buffer_pos_char):
7536         * insdel.c (get_buffer_range_char):
7537         Add GC comments.
7538
7539         * keymap.c (keymap_lookup_directly):
7540         * keymap.c (keymap_store):
7541         * keymap.c (ensure_meta_prefix_char_keymapp):
7542         * keymap.c (describe_map):
7543         * keymap.h:
7544         Support new button modifiers.
7545
7546         * lisp-disunion.h (wrap_object):
7547         * lisp-disunion.h (XSETOBJ):
7548         Rename make_obj to wrap_object.
7549
7550         * lisp-union.h:
7551         * lisp-union.h (make_int):
7552         * lisp-union.h (make_char):
7553         Support wrap_object.
7554
7555         * lisp.h:
7556         * lisp.h (LIST_LOOP):
7557         * lisp.h (EXTERNAL_LIST_LOOP):
7558         * lisp.h (LIST_LOOP_2):
7559         * lisp.h (EXTERNAL_LIST_LOOP_1):
7560         * lisp.h (EXTERNAL_LIST_LOOP_2):
7561         * lisp.h (EXTERNAL_LIST_LOOP_3):
7562         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7563         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7564         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7565         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7566         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7567         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7568         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7569         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7570         * lisp.h (struct Lisp_Symbol):
7571         * lisp.h (maybe_continuable_error_with_frob):
7572         Fix up section comments.
7573         Add new types for char to indicate usage.
7574         Delete symbols auto-generated from general-slots.h.
7575         Add prototypes for structured error functions.
7576         Add long comments describing looping macros and change interface
7577         so that lvalues are automatically declared.
7578         Add NO_DECLARE macro in case callers want to declare lvalues
7579         themselves.
7580
7581         * lread.c (read_syntax_error):
7582         * lread.c (continuable_read_syntax_error):
7583         * lread.c (read_structure):
7584         * lread.c (sequence_reader):
7585         * lread.c (read_list_conser):
7586         * lread.c (read_compiled_function):
7587         Rename syntax_error and continuable_syntax_error to avoid clash
7588         with same-named structured error functions.
7589
7590         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7591         * menubar-msw.c (populate_menu_add_item):
7592         * menubar-msw.c (populate_or_checksum_helper):
7593         [5].
7594         [9].
7595
7596         * menubar-x.c:
7597         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7598         Mule-ize whole file.
7599
7600         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7601
7602         * mule-charset.c (Fmake_charset):
7603         * mule-wnnfns.c (Fwnn_set_param):
7604         [1].
7605
7606         * ntproc.c (create_child):
7607         * ntproc.c (Fwin32_set_current_locale):
7608         Add comments portending doom.
7609
7610         * objects-msw.c:
7611         * objects-msw.c (old_font_enum_callback_2):
7612         * objects-msw.c (font_enum_callback_1):
7613         * objects-msw.c (mswindows_enumerate_fonts):
7614         [5].
7615
7616         * objects-x.c:
7617         * objects-x.c (allocate_nearest_color):
7618         * objects-x.c (x_parse_nearest_color):
7619         * objects-x.c (x_initialize_color_instance):
7620         * objects-x.c (x_print_color_instance):
7621         * objects-x.c (x_finalize_color_instance):
7622         * objects-x.c (x_valid_color_name_p):
7623         * objects-x.c (x_initialize_font_instance):
7624         * objects-x.c (x_print_font_instance):
7625         * objects-x.c (valid_x_font_name_p):
7626         * objects-x.c (truename_via_FONT_prop):
7627         * objects-x.c (truename_via_random_props):
7628         * objects-x.c (truename_via_XListFonts):
7629         * objects-x.c (x_font_truename):
7630         * objects-x.c (x_font_instance_truename):
7631         * objects-x.c (x_font_instance_properties):
7632         * objects-x.c (x_list_fonts):
7633         * objects-x.c (x_find_charset_font):
7634         Mule-ize entire file.
7635         [7].
7636
7637         * objects-x.h:
7638         Mule-verify.
7639
7640         * print.c:
7641         * print.c (std_handle_out_external):
7642         * print.c (debug_print_no_newline):
7643         * print.c (syms_of_print):
7644         Output to all debugger kinds in debug-print.
7645         Fix console-output code under MSWin to actually work.
7646
7647         * process-nt.c (send_signal):
7648         * process-nt.c (nt_create_process):
7649         Use newer Unicode macros.
7650
7651         * process-unix.c (unix_create_process):
7652         * process-unix.c (unix_canonicalize_host_name):
7653         * process-unix.c (unix_open_network_stream):
7654         [7].
7655
7656         * scrollbar-x.c:
7657         Mule-verify.
7658
7659         * search.c (syms_of_search):
7660         [2].
7661
7662         * select-msw.c (mswindows_destroy_selection):
7663         Use LIST_LOOP_2.
7664
7665         * select-x.c (symbol_to_x_atom):
7666         [7].
7667
7668         * select.c (syms_of_select):
7669         [2].
7670
7671         * sound.c (Fplay_sound_file):
7672         [7].
7673
7674         * specifier.c:
7675         * specifier.c (decode_specifier_type):
7676         * specifier.c (Fvalid_specifier_locale_type_p):
7677         * specifier.c (check_valid_locale_or_locale_type):
7678         * specifier.c (decode_locale):
7679         * specifier.c (decode_locale_type):
7680         * specifier.c (decode_locale_list):
7681         * specifier.c (check_valid_domain):
7682         * specifier.c (decode_specifier_tag_set):
7683         * specifier.c (Fcanonicalize_tag_set):
7684         * specifier.c (Fdefine_specifier_tag):
7685         * specifier.c (Fspecifier_tag_predicate):
7686         * specifier.c (check_valid_inst_list):
7687         * specifier.c (check_valid_spec_list):
7688         * specifier.c (decode_how_to_add_specification):
7689         * specifier.c (check_modifiable_specifier):
7690         * specifier.c (specifier_add_spec):
7691         * specifier.c (boolean_validate):
7692         * specifier.c (display_table_validate):
7693         [9].
7694
7695         * specifier.c (syms_of_specifier):
7696         Move some symbols to general-slots.h.
7697         [2].
7698
7699         * symbols.c:
7700         * symbols.c (Fmapatoms):
7701         * symbols.c (Fapropos_internal):
7702         Add GCPROs.
7703
7704         * symbols.c (set_default_buffer_slot_variable):
7705         * symbols.c (set_default_console_slot_variable):
7706         [1].
7707
7708         * symbols.c (defsymbol_massage_name_1):
7709         * symbols.c (defkeyword_massage_name):
7710         * symbols.c (deferror_1):
7711         * symbols.c (deferror):
7712         * symbols.c (deferror_massage_name_and_message):
7713         * symeval.h:
7714         * symeval.h (DEFSYMBOL):
7715         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7716
7717         * symbols.c (syms_of_symbols):
7718         [2].
7719
7720         * symsinit.h:
7721         * symsinit.h (init_win32): New.
7722         Also new is syms_of_dialog_mswindows.
7723
7724         * syswindows.h:
7725         Add new Unicode macros, missing Cygwin wide-char functions,
7726         convenience conversion macros for Qmswindows_tstr, macros for
7727         encapsulating required MSWin <-> Cygwin filename conversions,
7728         prototype for dynamically-extracted (not in NT 3.51) functions.
7729
7730         * toolbar-x.c:
7731         Mule-verify.
7732
7733         * tooltalk.c (Fadd_tooltalk_message_arg):
7734         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7735         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7736         [7].
7737
7738         * tooltalk.c (syms_of_tooltalk):
7739         [2].
7740
7741         * unexnt.c:
7742         * unexnt.c (unexec):
7743         Fix up headers, declaration of unexec() to be more standard.
7744
7745 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7746
7747         * offix.h: Revert change to guard macros - they're used in offix.c!
7748
7749 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7750
7751         * lisp.h: Defsubred Fdelete.
7752
7753         * console-msw.h:  (msprinter_default_printer): Added.
7754
7755         * console-msw.c (msprinter_canonicalize_console_connection):
7756         (msprinter_canonicalize_device_connection): Added.
7757
7758         * device-msw.c (msprinter_default_printer):
7759         (Fmswingows_get_default_printer):
7760         (signal_enum_priner_error):
7761         (Fmswingows_printer_list): Added.
7762
7763 2000-07-19  Martin Buchholz <martin@xemacs.org>
7764
7765         * XEmacs 21.2.35 is released.
7766
7767 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7768
7769         * select-x.c (x_handle_selection_request):
7770         Text selected in xemacs and pasted into xterm failed to appear.
7771         Spelling fixes and cosmetic changes.
7772
7773 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7774
7775         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7776         XEmacs frame (fix for doubling chars in dialog boxes).
7777
7778 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7779
7780         * select.c (select_convert_in, select_convert_out):
7781         Don't call intern() every time.
7782
7783         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7784         * select.c (vars_of_select): Initialise them.
7785
7786 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7787
7788         * select.c (selection-coercible-types): New.
7789
7790         * select.c (own-selection-internal):
7791         * select.c (get-selection-internal):
7792         MULE bug fix - these should default to COMPOUND_TEXT and not
7793         STRING for MULE. I think.
7794
7795         * select.c (select_convert_out): Use selection-coercible-types
7796         to find types that we can attempt to perform coercions on.
7797
7798 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7799
7800         * mule-wnnfns.c:
7801         * mule-canna.c:
7802         Add coding: cookie to identify encoding.
7803
7804         * mule-canna.c (CANNA_mode_keys): make static.
7805         Use proper prototypes, even for functions of no arguments.
7806         Remove external prototype for Fding().
7807
7808         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7809
7810         * select.c (syms_of_select): Add missing DEFSUBR.
7811
7812 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7813
7814         * select.c (get_selection_internal, own_selection_internal):
7815         Make the type default to STRING, rather than placing a nil type
7816         into Vselection_alist.
7817
7818 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7819
7820         * gpmevent.c (tty_selection_exists_p):
7821         * gpmevent.c (tty_own_selection):
7822         Updated parameter lists.
7823
7824 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7825
7826         * select.h (selection-alist): Removed declaration.
7827
7828         * select.h (get_local_selection):
7829         * select.c (get_local_selection):
7830         Made static.
7831
7832         * select.h (convert_selection): Removed declaration.
7833         * select.c (convert_selection): Removed.
7834         This function belongs in Lisp.
7835
7836         * select.h (select_convert_in): Declare.
7837         * select.h (select_convert_out): Declare.
7838         * select.c (select_convert_in): New.
7839         * select.c (select_convert_out): New.
7840         New conversion functions for other files to call.
7841
7842         * select.h (select_notify_buffer_kill): Declare.
7843         * select.c (select_notify_buffer_kill): New.
7844         New functions that get called from kill-buffer.
7845
7846         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7847         X-specific lisp code.
7848
7849         * select.h: Declare some of the lisp-visible functions for
7850         external use.
7851
7852         * select.c (clean_local_selection_data): Removed. This was
7853         a disgusting function, and previously should have been in
7854         select-x.c in any case. The functionality is now provided
7855         in select-convert-from-integer (select.el).
7856
7857         * select.c (available-selection-types): Fixed stupidity where
7858         INTEGER and ATOM got added twice. Also add STRING when we see an
7859         extent.
7860
7861         * select.c (get-selection-internal): Removed symbol stripping. No
7862         longer causes conversion when data comes from the internal cache.
7863
7864         * select.c (syms_of_select): Added new functions.
7865
7866         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7867         error checking - previously this called abort!
7868
7869         * select-x.c (x_own_selection): Changed comment.
7870
7871         * select-x.c (x_handle_selection_request): Use select_convert_out.
7872         Don't mess with selection-alist; it's an internal variable of select.c.
7873
7874         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7875
7876         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7877         rather than messing with selection-alist.
7878
7879         * select-msw.c (mswindows_get_foreign_selection):
7880         Use TO_INTERNAL_FORMAT rather than hacking.
7881
7882 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7883
7884         * process-unix.c (unix_open_multicast_group):
7885         (unix_open_multicast_group): Remove useless casts.
7886
7887 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7888
7889         * sound.c (Fplay_sound): Fix `unused variable' warning.
7890
7891         * emacs.c (main): Use correct type for _environ on SCO5.
7892
7893 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7894
7895         * console.h (own_selection_method):
7896         * console.h (selection_exists_p_method):
7897         * console.h (available_selection_types_method): New.
7898         * console.h (register_selection_data_type_method): New.
7899         * console.h (selection_data_type_name): New.
7900
7901         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7902         function & alist to track GlobalAlloc()'d handles that need
7903         releasing when the clipboard data gets replaced or emptied.
7904
7905         * event-msw.c (mswindows_wnd_proc): Call it.
7906
7907         * lisp.h, general.c (Qappend): New symbol representing a
7908         `how-to-add' mode.
7909
7910         * select.c (own-selection-internal):
7911         * select.c (selection-exists-p):
7912         * select.c (available-selection-types): New.
7913         * select.c (register-selection-data-type): New.
7914         * select.c (selection-data-type-name): New.  New functions to deal
7915         with device-specific selection data formats.
7916         * select.c (selection-converter-out-alist): Renamed.
7917         * select.c (selection-converter-in-alist): New.
7918         * select.c (selection-appender-alist): New.  Added new alists.
7919         * select.c (syms_of_select, vars_of_select): Added new symbols &
7920         variables.
7921         * select.c (get_local_selection): Split.
7922         * select.c: Removed spurious type checking - selections may now be
7923         of any type, not just strings.
7924         * select.c (own-selection-internal):
7925
7926         * select.h, select.c (convert_selection): New. Created
7927         convert_selection() function based on get_local_selection().
7928         * select.h, select.c (QCF_*): New symbols representing mswindows
7929         clipboard formats.
7930         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7931         symbols representing `how-to-add' modes.
7932
7933         * select-msw.c (x_sym_p): New.
7934         * select-msw.c (symbol_to_ms_cf): New.
7935         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7936         symbols & clipboard formats. Can also handle string names.
7937         * select-msw.c (mswindows_own_selection):
7938         * select-msw.c (mswindows_selection_exists_p):
7939         Added `data-type' parameter. Use it.
7940         * select-msw.c (mswindows_available_selection_types): New.
7941         * select-msw.c (mswindows_register_selection_data_type): New.
7942         * select-msw.c (mswindows_selection_data_type_name): New.
7943         * select-msw.c (mswindows_own_selection):
7944         * select-msw.c (mswindows_get_foreign_selection):
7945         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7946         * select-msw.c (console_create_select_mswindows): Added new methods.
7947         * select-msw.c (mswindows_destroy_selection): New.
7948         * select-msw.c (Vhandle_alist): New list.
7949         * select-msw.c (mswindows_own_selection):
7950
7951         * select-x.c (x_own_selection):
7952         * select-x.c (x_selection_exists_p):
7953         * select-x.c: Added some comments about maybe using new
7954         functionality.
7955         * select-x.c (x_own_selection):
7956
7957         * specifier.c: Remove definition of Qappend (now in general.c)
7958         * specifier.c (syms_of_specifier): Remove Qappend.
7959
7960 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7961
7962         * config.h.in: Add socklen_t.
7963
7964         * s/decosf4-0.h: No special compiler flags needed or desired.
7965         In particular, undefine _BSD for DEC OSF 4.0.
7966
7967 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7968
7969         * redisplay-msw.c (msprinter_frame_output_end): Added.
7970         (console_type_create_redisplay_mswindows): Referred the above.
7971
7972         * frame.c (setup_frame_without_minibuffer): Do not create a
7973         default minibuffer frame on a printer device.
7974
7975         * frame-msw.c (apply_dc_geometry): Added.
7976         (msprinter_start_page):
7977         (msprinter_init_frame_3):
7978         (msprinter_eject_page): Use it.
7979
7980         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7981         and removed residual duplex and orientation properties.
7982
7983 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7984
7985         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7986
7987         * unexalpha.c: Remove system prototypes from C sources!
7988
7989 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7990
7991         * eval.c: Remove references to M-x edit-options in DEFUNs for
7992         `defvar' and `defconst'.
7993
7994 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7995
7996         * config.h.in: Remove SMART_INCLUDE hackery.
7997
7998         PostgreSQL hacking:
7999         * config.h.in: Don't use SMART_INCLUDE.
8000
8001         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8002         * inline.c: Simply #include "postgresql.h"
8003         * postgresql.c:
8004         - Don't use SMART_INCLUDE
8005         - Use simply "const".
8006         - Use standard doc string conventions.
8007         - Use correct type for result of PQstatus.
8008
8009 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8010
8011         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8012
8013         C++ compilation changes.
8014         * config.h.in (EXTERN_C): Define.
8015         * config.h.in (not): This is also a C++ keyword.
8016         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8017         * cm.c: Use EXTERN_C.
8018         * redisplay-tty.c: Use EXTERN_C.
8019         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8020
8021 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8022
8023         * general.c: Remove duplicate definition for Qfunction.
8024
8025 2000-07-08  Ben Wing  <ben@xemacs.org>
8026
8027         * device-msw.c (msprinter_init_device):
8028         * device-msw.c (sync_printer_with_devmode):
8029         * device-msw.c (handle_devmode_changes):
8030         * device-msw.c (print_dialog_worker):
8031         * device-msw.c (Fmsprinter_apply_settings):
8032         * device-msw.c (hash_devmode):
8033         * device-msw.c (Fmsprinter_settings_despecialize):
8034         use Qmswindows_tstr, not Qctext.
8035
8036         * vm-limit.c (check_memory_limits):
8037         avoid infinite loop printing warning messages.
8038
8039 2000-07-05  Craig Lanning  <lanning@scra.org>
8040
8041         * Makefile.in.in: Add support for including the Windows resources
8042         when building with the cygwin and mingw targets.
8043
8044         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8045         not set or not correct.
8046         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8047         (init_initial_directory): Don't try to use $PWD on the
8048         WIN32_NATIVE target.
8049
8050         * s\cygwin32.h:
8051         [[Add -mwindows to eliminate console window.]] not required --ben
8052         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8053         (MAIL_USE_POP): removed; now handled by configure.
8054
8055         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8056         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8057         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8058         (MAIL_USE_POP): removed; now handled by configure.
8059         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8060         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8061         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8062         constant string.
8063         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8064         up from <winsock.h> via systime.h.
8065         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8066         (getpagesize): from Dan Holmsand, added.
8067         Added #endif which was left dangling by Ben's mega patch; added
8068         comment to help prevent this in the future.
8069
8070         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8071
8072 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8073
8074         * console-msw.h (struct mswindows_device): Removed unnecessary
8075         cached device geometry values.
8076         Added update_tick and an accessor macro.
8077         (Lisp_Devmode): Added lrecord declaration.
8078         (struct msprinter_device): Contain devmode as a Lisp object.
8079         Added mswindows_get_selected_frame_hwnd();
8080
8081         * console.h (struct console_methods): Indentation nitpicking.
8082
8083         * device-msw.c (mswindows_init_device): Do not initialize geometry
8084         cache. Initialize update tick.
8085         (mswindows_device_system_metrics): Ask the device for its geometry.
8086         (global_free_2_maybe):
8087         (devmode_to_hglobal):
8088         (handle_printer_changes):
8089         (ensure_not_printing):
8090         (print_dialog_worker):
8091         (Fmsprinter_print_setup_dialog):
8092         (Fmsprinter_print_dialog):
8093         (plist_get_margin):
8094         (plist_set_margin):
8095         (Fmsprinter_page_setup_dialog): Added functions.
8096         (sync_printer_with_devmode):
8097         (handle_devmode_changes):
8098         (Fmsprinter_get_settings):
8099         (Fmsprinter_select_settings):
8100         (Fmsprinter_apply_settings):
8101         (allocate_devmode):
8102         (Fmsprinter_settings_copy):
8103         (Fmsprinter_settings_despecialize):
8104         (print_devmode):
8105         (finalize_devmode):
8106         (equal_devmode):
8107         (hash_devmode): Added functions
8108         (syms_of_device_mswindows): Init devmode lrecord class.
8109
8110         * device.h: Added an exfun for find-device.
8111
8112         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8113         geometry; although, recreate the device compatible DC.
8114
8115         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8116         (msprinter_init_frame_3):
8117         (msprinter_frame_property):
8118         (msprinter_internal_frame_property_p):
8119         (msprinter_frame_properties):
8120         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8121         print job properties (will move to device settings).
8122
8123         * lisp.h: Added symbols.
8124
8125         * general.c (syms_of_general): Declared them.
8126
8127         * hash.c (string_hash): Added.
8128
8129         * lrecord.h (lrecord_type): Added devmode lrecord type.
8130
8131 2000-07-02  Mike Sperber <mike@xemacs.org>
8132
8133         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8134         FreeBSD 4.0.
8135
8136 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8137
8138         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8139         integer.
8140
8141 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8142
8143         * data.c (Fstring_to_number): Don't recognize floating point if
8144         base is not 10.
8145
8146 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8147
8148         * glyphs-widget.c (tab_control_query_geometry):
8149         (widget_query_geometry):
8150         (button_query_geometry):
8151         * glyphs.c (text_query_geometry):
8152         Enforce type correctness.
8153
8154 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8155
8156         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8157         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8158
8159 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8160
8161         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8162         conflicts with gcc's fixincluded version of FOO.h.
8163
8164         * glyphs.h (image_instance_geometry): Remove trailing `,'
8165
8166 2000-06-08  Mike Alexander  <mta@arbortext.com>
8167
8168         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8169         (shove_thread): Don't write the same output twice
8170         (make_ntpipe_output_stream): Increase priority of shove thread
8171         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8172         chance to run
8173         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8174         it.
8175
8176 2000-06-12  Ben Wing  <ben@xemacs.org>
8177
8178         * s\mingw32.h (sigset):
8179         * s\windowsnt.h (sigset):
8180         rename msw_ to mswindows_ for consistency with general convention.
8181
8182 2000-06-12  Ben Wing  <ben@xemacs.org>
8183
8184         * console-msw.c:
8185         * console-msw.c (mswindows_get_console_hwnd):
8186         * console-msw.c (mswindows_ensure_console_allocated):
8187         * console-msw.c (mswindows_hide_console):
8188         * console-msw.c (mswindows_show_console):
8189         * console-msw.c (mswindows_ensure_console_buffered):
8190         * console-msw.c (mswindows_output_console_string):
8191         * console-msw.c (mswindows_windows9x_p):
8192         * console-msw.h:
8193         * device-msw.c (mswindows_get_workspace_coords):
8194         * device-msw.c (mswindows_device_system_metrics):
8195         * dialog-msw.c (mswindows_popup_dialog_box):
8196         * event-msw.c (mswindows_wnd_proc):
8197         * frame-msw.c (mswindows_size_frame_internal):
8198         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8199         * menubar-msw.c (displayable_menu_item):
8200         * menubar-msw.c (mswindows_char_is_accelerator):
8201         * nt.c:
8202         * nt.c (mswindows_sigset):
8203         * nt.c (mswindows_sigrelse):
8204         * nt.c (mswindows_sigpause):
8205         * nt.c (mswindows_raise):
8206         * nt.c (timer_proc):
8207         * ntproc.c:
8208         * ntproc.c (find_child_console):
8209         * ntproc.c (sys_kill):
8210         * print.c:
8211         * print.c (std_handle_out_external):
8212         * process-nt.c (find_child_console):
8213         * process-nt.c (send_signal_the_95_way):
8214         * process-nt.c (ensure_console_window_exists):
8215         * process-nt.c (nt_create_process):
8216         * syssignal.h:
8217         rename msw_ to mswindows_ for consistency with general convention.
8218
8219         * emacs.c:
8220         * dumper.c:
8221         include nt.h, not syswindows.h.
8222
8223         * nt.c (mswindows_fstat):
8224         * nt.c (mswindows_stat):
8225         prefix mswindows_ instead of attempting to directly override the
8226         library functions.  fix declarations.
8227
8228         * nt.h:
8229         include syswindows.h.  move some sysdep.h stuff here.
8230
8231         * ntheap.h:
8232         include syswindows.h, not <windows.h>.
8233
8234         * ntplay.c:
8235         clean up headers.
8236
8237         * sysdep.c:
8238         clean up headers.
8239
8240         * sysdep.c (sys_fstat):
8241         * sysdep.c (sys_stat):
8242         call mswindows versions when appropriate.
8243
8244         * sysdep.h:
8245         move mswin decls to nt.h.
8246
8247         * syswindows.h:
8248         add long comment describing appropriate use of the various windows
8249         headers.
8250
8251 2000-06-11  Ben Wing  <ben@xemacs.org>
8252
8253         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8254
8255 2000-06-10  Ben Wing  <ben@xemacs.org>
8256
8257         * Makefile.in.in (release):
8258         Correction to make sure xemacs.exe always dumped when correct.
8259
8260         * alloca.c:
8261         * balloon_help.c:
8262         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8263
8264         * buffer.c (set_buffer_internal):
8265         [[[[2]]]]: Remove HAVE_FEP code.
8266
8267         * buffer.c (init_initial_directory):
8268         [3].
8269
8270         * bytecode.c:
8271         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8272         individual files.
8273
8274         * callproc.c:
8275         * callproc.c (call_process_cleanup):
8276         * callproc.c (Fold_call_process_internal):
8277         * callproc.c (child_setup):
8278         * callproc.c (getenv_internal):
8279         * callproc.c (init_callproc):
8280         * callproc.c (vars_of_callproc):
8281         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8282         __CYGWIN32__ -> CYGWIN.
8283         DOS_NT -> WIN32_NATIVE.
8284         Remove MSDOS support/references, converting to WIN32_NATIVE
8285           where correct.
8286         __MINGW32__ -> MINGW.
8287         Fix windows.h includes.
8288         Remove bogus HAVE_NTGUI.
8289
8290         * config.h.in:
8291         [2].
8292
8293         * console-msw.c:
8294         mswindows_message_outputted added for use in allowing startup
8295         errors on the console to be seen.
8296
8297         * console-msw.c (msw_ensure_console_allocated):
8298         * console-msw.c (msw_output_console_string):
8299         * console-msw.c (DHEADER):
8300         * console-msw.c (DOPAQUE_DATA):
8301         * console-msw.c (DEVENT):
8302         * console-msw.c (DCONS):
8303         * console-msw.c (DCONSCDR):
8304         * console-msw.c (DSTRING):
8305         * console-msw.c (DVECTOR):
8306         * console-msw.c (DSYMBOL):
8307         * console-msw.c (DSYMNAME):
8308         Fix warnings.
8309
8310         * console-stream.c (stream_init_console):
8311         Fix text/binary problems.
8312
8313         * device-msw.c:
8314         * device-msw.c (mswindows_finish_init_device):
8315         * device-msw.c (mswindows_delete_device):
8316         [1].
8317
8318         * device.c (handle_asynch_device_change):
8319         [3].
8320
8321         * dgif_lib.c:
8322         * dgif_lib.c (DGifOpenFileName):
8323         * dgif_lib.c (DGifOpenFileHandle):
8324         * dgif_lib.c (DGifGetLine):
8325         * dgif_lib.c (DGifGetPixel):
8326         Added config.h/lisp.h, fix up includes.
8327         [1].
8328
8329         * dired-msw.c:
8330         [4].
8331
8332         * dired.c:
8333         * dired.c (file_name_completion):
8334         * dired.c (Ffile_attributes):
8335         * dired.c (syms_of_dired):
8336         [1].
8337
8338         * dumper.c:
8339         * dumper.c (pdump_file_unmap):
8340         * dumper.c (pdump_load):
8341         [1].
8342
8343         * editfns.c:
8344         * editfns.c (Ftemp_directory):
8345         * editfns.c (user_login_name):
8346         * editfns.c (Fuser_real_login_name):
8347         * editfns.c (get_home_directory):
8348         [1].
8349
8350         * elhash.c (finish_marking_weak_hash_tables):
8351         [[[[5]]]]: Fix GCC warnings.
8352
8353         * emacs.c:
8354         * emacs.c (mswindows_handle_hardware_exceptions):
8355         * emacs.c (make_arg_list_1):
8356         * emacs.c (main_1):
8357         * emacs.c (Fkill_emacs):
8358         * emacs.c (Fdump_emacs):
8359         [1].
8360         Fix problems with nested crashes, add long comment.
8361
8362         * event-Xt.c (init_event_Xt_late):
8363         [1].
8364
8365         * event-msw.c:
8366         * event-msw.c (mswindows_dde_callback):
8367         * event-msw.c (mswindows_handle_sticky_modifiers):
8368         * event-msw.c (mswindows_wnd_proc):
8369         [1].
8370         [5].
8371
8372         * events.c (character_to_event):
8373         [1].
8374
8375         * fileio.c:
8376         * fileio.c (Ffile_name_directory):
8377         * fileio.c (Ffile_name_nondirectory):
8378         * fileio.c (directory_file_name):
8379         * fileio.c (Fexpand_file_name):
8380         * fileio.c (Fsubstitute_in_file_name):
8381         * fileio.c (Ffile_name_absolute_p):
8382         * fileio.c (check_executable):
8383         * fileio.c (Ffile_readable_p):
8384         * fileio.c (Ffile_accessible_directory_p):
8385         * fileio.c (Ffile_modes):
8386         * fileio.c (Funix_sync):
8387         * fileio.c (vars_of_fileio):
8388         [1]. [4].
8389
8390         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8391
8392         Expand getdefdir defn.
8393         Fix bogus rename() comment.
8394
8395         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8396         to use standard XEmacs include files, e.g. sysfile.h, rather
8397         than system-specific includes.
8398
8399         * fns.c:
8400         * fns.c (Fsubseq):
8401         [5]. [6].
8402
8403         * frame.c (vars_of_frame):
8404         [1].
8405
8406         * getloadavg.c:
8407         * getloadavg.c (getloadavg):
8408         [1]. [6].
8409         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8410         (We don't use it elsewhere in the code; just add a comment.)
8411
8412         * gif_io.c:
8413         [6].
8414         Add config.h.
8415
8416         * glyphs-msw.c:
8417         * glyphs-msw.c (mswindows_resource_instantiate):
8418         [1].
8419
8420         * glyphs-x.c (x_native_layout_instantiate):
8421         [5].
8422
8423         * gui-msw.c (Fmswindows_shell_execute):
8424         [1].
8425
8426         * insdel.c:
8427         [4].
8428
8429         * lisp.h:
8430         [4]. [5].
8431
8432         * lread.c (locate_file_in_directory_mapper):
8433         [1].
8434
8435         * lstream.c:
8436         [4].
8437
8438         * mem-limits.h:
8439         * mem-limits.h (get_lim_data):
8440         [1].
8441
8442         * menubar-msw.c:
8443         [4].
8444
8445         * ndir.h:
8446         [1].
8447
8448         * nt.c:
8449         * nt.c (getwd):
8450         * nt.c (closedir):
8451         * nt.c (rva_to_section):
8452         * nt.c (mswindows_executable_type):
8453         [1]. [6].
8454         Fix closedir() defn.
8455
8456         * nt.h:
8457         [[[[8]]]]: *_OK defs moved to sysfile.h.
8458
8459         * ntproc.c:
8460         [6]. [7].
8461
8462         * objects-x.c:
8463         [4].
8464
8465         * print.c:
8466         * print.c (std_handle_out_external):
8467         [1]. [4].
8468
8469         * process-nt.c:
8470         * process-nt.c (nt_create_process):
8471         [6].
8472         try to fix process quoting somewhat.
8473
8474         * process-unix.c (unix_create_process):
8475         [1].
8476
8477         * process.c:
8478         * process.c (vars_of_process):
8479         Add Vnull_device.
8480
8481         * process.h:
8482         [1].
8483
8484         * realpath.c:
8485         * realpath.c (xrealpath):
8486         [1].
8487
8488         * redisplay-tty.c (init_tty_for_redisplay):
8489         [3].
8490
8491         * redisplay.c:
8492         [4]. [6].
8493
8494         * scrollbar-msw.c:
8495         [4].
8496
8497         * sheap.c:
8498         * sheap.c (more_static_core):
8499         * sheap.c (report_sheap_usage):
8500         [5]. [6].
8501
8502         * signal.c:
8503         * signal.c (alarm_signal):
8504         [1]. [6].
8505
8506         * sound.c:
8507         [6].
8508
8509         * strftime.c:
8510         * strftime.c (zone_name):
8511         [1]. [5].
8512
8513         * symsinit.h (init_sunpro):
8514         [1].
8515
8516         * syscommctrl.h:
8517         commctrl.h not in Cygwin b20.1.
8518
8519         * sysdep.c:
8520         * sysdep.c (endif):
8521         * sysdep.c (sys_subshell):
8522         * sysdep.c (init_baud_rate):
8523         * sysdep.c (emacs_get_tty):
8524         * sysdep.c (emacs_set_tty):
8525         * sysdep.c (tty_init_sys_modes_on_device):
8526         * sysdep.c (init_system_name):
8527         * sysdep.c (sys_open):
8528         * sysdep.c (interruptible_open):
8529         * sysdep.c (sys_fopen):
8530         * sysdep.c (sys_mkdir):
8531         * sysdep.c (sys_rename):
8532         * sysdep.c (get_process_times_1):
8533         [1]. [6].
8534
8535         * sysdep.h:
8536         [1].
8537
8538         * sysdir.h:
8539         * sysdir.h (DIRENTRY_NONEMPTY):
8540         [1]. [6].
8541
8542         * sysdll.c (dll_init):
8543         * sysdll.h:
8544         [1].
8545
8546         * sysfile.h:
8547         [1]. [6]. [8].
8548         added text/binary defs.
8549
8550         * sysfloat.h:
8551         [1].
8552
8553         * sysproc.h:
8554         * sysproc.h (EDESTADDRREQ):
8555         * sysproc.h (poll_fds_for_input):
8556         [1]. [6].
8557
8558         * syspwd.h:
8559         [6].
8560
8561         * syssignal.h:
8562         [1].
8563
8564         * systime.h:
8565         [1]. [6].
8566
8567         * systty.h:
8568         [1].
8569
8570         * syswindows.h:
8571         [1].
8572         Always define WIN32_LEAN_AND_MEAN.
8573
8574         * unexcw.c (unexec):
8575         [5].
8576
8577         * unexec.c:
8578         * unexec.c (copy_text_and_data):
8579         * unexec.c (adjust_lnnoptrs):
8580         [1].
8581
8582         * unexnt.c:
8583         * unexnt.c (_start):
8584         [1].
8585
8586 2000-06-07  Ben Wing  <ben@xemacs.org>
8587
8588         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8589         was used only as a model.  We've long since extracted any useful
8590         logic or code out of this. (I just did an exhaustive search.)
8591
8592         * s\msdos.h: Removed.
8593
8594         * s\windows95.h: Removed.
8595
8596 2000-06-10  Ben Wing  <ben@xemacs.org>
8597
8598         * s\cygwin32.h:
8599         [1]. [5].
8600         Don't use extern with fun defs.
8601
8602         * s\mingw32.h:
8603         [1]. [7].
8604         Remove nt\inc include.
8605         Remove getdisk, getdefdir. (The former is unused, the latter
8606         expanded in fileio.h.)
8607
8608         * s\windowsnt.h:
8609         * s\windowsnt.h (WIN32_NATIVE):
8610         * s\windowsnt.h (HAVE_STRCASECMP):
8611         [1]. [7].
8612         Add long comment about preprocessor changes.
8613         Remove getdisk, getdefdir. (The former is unused, the latter
8614         expanded in fileio.h.)
8615
8616 2000-06-10  Ben Wing  <ben@xemacs.org>
8617
8618         * m\arm.h:
8619         * m\delta.h:
8620         * m\intel386.h:
8621         * m\sequent.h:
8622         * m\template.h:
8623         * m\windowsnt.h:
8624         [1].
8625         Remove bogus/unused NO_SOCK_SIGIO.
8626
8627 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8628
8629         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8630         not an Emchar.
8631
8632 2000-06-04  Mike Sperber <mike@xemacs.org>
8633
8634         * casetab.c (set_case_table): For `set-standard-case-table',
8635         actually deposit the new case tables where the rest of XEmacs can
8636         see them.
8637
8638 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8639
8640         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8641
8642 2000-06-05  Ben Wing  <ben@xemacs.org>
8643
8644         * callproc.c (child_setup): Don't do close_load_descs() under
8645         MS Windows.  Put in a comment explaining why.
8646
8647 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8648
8649         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8650         Toolkit shell" which breaks `kill-compilation' on Windows NT
8651         native, retaining STDERR handling improvements.
8652
8653 2000-06-01  Andreas Jaeger  <aj@suse.de>
8654
8655         * s/s390.h: Support for S390, based on a patch by Martin
8656         Schwidefsky <schwidefsky@de.ibm.com>.
8657
8658 2000-05-30  Andy Piper  <andy@xemacs.org>
8659
8660         * window.c (allocate_window):
8661         (make_dummy_parent):
8662         (Fset_window_configuration): use new hashtable type.
8663
8664         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8665         (struct image_instantiator_methods):
8666         (struct Lisp_Image_Instance): make instance geometry signed.
8667
8668         * glyphs.c (instantiate_image_instantiator):
8669         (image_instance_query_geometry):
8670         (image_instance_layout):
8671         (image_instance_layout):
8672         (query_string_geometry):
8673         (text_query_geometry):
8674         (image_instantiate):
8675         (image_instantiate):
8676         (cache_subwindow_instance_in_frame_maybe):
8677         (subwindow_query_geometry): make instance geometry signed.
8678
8679         * glyphs-widget.c (widget_query_geometry):
8680         (widget_layout):
8681         (button_query_geometry):
8682         (tree_view_query_geometry):
8683         (tab_control_query_geometry):
8684         (layout_query_geometry):
8685         (layout_layout):
8686         (native_layout_layout): make instance geometry signed.
8687
8688 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8689
8690         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8691         constant.
8692
8693         * general.c (syms_of_general): Add Qfull_assoc symbol.
8694
8695         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8696         correctly.
8697         (decode_weak_list_type): Decode full-assoc type.
8698         (encode_weak_list_type): Encode full-assoc type.
8699         (Fmake_weak_list): Update doc string.
8700
8701 2000-05-30  Andy Piper  <andy@xemacs.org>
8702
8703         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8704
8705         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8706         (decode_hash_table_weakness): ditto.
8707         (Fhash_table_weakness): ditto.
8708         (Fhash_table_type): ditto.
8709         (finish_marking_weak_hash_tables): ditto.
8710         (hash_table_weakness_validate): ditto.
8711         (syms_of_elhash): ditto.
8712
8713 2000-05-28  Martin Buchholz <martin@xemacs.org>
8714
8715         * XEmacs 21.2.34 is released.
8716
8717 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8718
8719         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8720         start cache.
8721         (updating_line_start_cache): Gone.
8722         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8723         generic code to force a minimum of 1 line laid out in the
8724         CMOTION_DISP case.
8725
8726 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8727
8728         * glyphs.c (instantiate_image_instantiator): Check for initialized
8729         height & width no longer special cases IMAGE_NOTHING.
8730         (nothing_instantiate): Set height and width of instance.
8731
8732 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8733
8734         * unexelf.c (unexec): Search for ".data" section.
8735         Initialize new_data2_offset from old_data_index.
8736         Remove redundant check for ElfW.
8737
8738 2000-05-23  Andy Piper  <andy@xemacs.org>
8739
8740         * glyphs.c (get_image_instantiator_governing_domain): allow more
8741         specific domains as the governing domain rather than expecting an
8742         exact match. This fixes problems with layouts.
8743
8744 2000-05-22  Andy Piper  <andy@xemacs.org>
8745
8746         * redisplay-output.c (compare_runes): check for non-images
8747
8748         * glyphs.c (set_glyph_dirty_p): ditto.
8749         (update_glyph_cachel_data): ditto.
8750
8751         * glyphs-widget.c (layout_post_instantiate): ditto.
8752         (layout_post_instantiate): ditto.
8753
8754         * event-msw.c (mswindows_wnd_proc): warning removal.
8755
8756 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8757
8758         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8759
8760         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8761
8762         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8763
8764         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8765         (mswindows_executable_type): mingw32 now has enough headers for
8766         this to work.
8767
8768 2000-05-20  Andy Piper  <andy@xemacs.org>
8769
8770         * console-msw.c (mswindows_output_last_error): ; -> ,
8771
8772 2000-05-12  Andy Piper  <andy@xemacs.org>
8773
8774         * console-msw.c (FROB): compare ints with ints.
8775
8776 2000-05-11  Andy Piper  <andy@xemacs.org>
8777
8778         * glyphs-x.c (x_finalize_image_instance): make minimal build
8779         happy.
8780
8781 2000-05-20  Ben Wing  <ben@xemacs.org>
8782
8783         * event-Xt.c:
8784         * event-Xt.c (vars_of_event_Xt):
8785         move modifier-keys-are-sticky to event-stream.c.
8786
8787         * event-msw.c:
8788         * event-msw.c (mswindows_enqueue_mouse_button_event):
8789         * event-msw.c (key_needs_default_processing_p):
8790         * event-msw.c (XEMSW_LCONTROL):
8791         * event-msw.c (mswindows_handle_sticky_modifiers):
8792         * event-msw.c (FROB):
8793         * event-msw.c (clear_sticky_modifiers):
8794         * event-msw.c (output_modifier_keyboard_state):
8795         * event-msw.c (output_alt_keyboard_state):
8796         * event-msw.c (mswindows_wnd_proc):
8797         * event-msw.c (mswindows_modifier_state):
8798         * event-msw.c (emacs_mswindows_handle_magic_event):
8799         implement sticky modifiers.
8800
8801         * event-stream.c:
8802         * event-stream.c (vars_of_event_stream):
8803         move modifier-keys-are-sticky here.
8804
8805         * lisp.h:
8806         add CHECK_FUNCTION.
8807
8808         * rangetab.c:
8809         implement map-range-table.
8810
8811
8812 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8813
8814         * redisplay-tty.c (reset_tty_modes):
8815         (tty_redisplay_shutdown): Adjust argument type to
8816         tty_frame_output_end.
8817
8818 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8819
8820         * eval.c (Fbacktrace): Don't output a line with only right
8821         parenthesis.
8822
8823 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8824
8825         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8826         (Fpq_reset_poll): Ditto.
8827
8828 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8829
8830         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8831
8832 2000-05-16  Ben Wing  <ben@xemacs.org>
8833
8834         * buffer.c:
8835         * buffer.c (dfc_convert_to/from_internal_format):
8836         * buffer.c (reinit_vars_of_buffer):
8837         Fix conversion functions to allow reentrancy.
8838
8839         * console-msw.c:
8840         * console-msw.c (mswindows_output_last_error):
8841         New fun, generally useful -- output a human-readable
8842         version of GetLastError() on the console.
8843
8844         * console-msw.h:
8845         * console-msw.h (struct mswindows_frame):
8846         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8847
8848         * console-stream.c (stream_output_begin):
8849         * console-stream.c (stream_output_end):
8850         * console-stream.c (stream_output_vertical_divider):
8851         * console-stream.c (stream_clear_region):
8852         * console-stream.c (stream_flash):
8853         * console-stream.c (console_type_create_stream):
8854         Delete blank stream methods, not needed.
8855
8856         * console.h (struct console_methods):
8857         Split begin/end methods into window and frame.
8858
8859         * event-msw.c:
8860         * event-msw.c (mswindows_handle_paint):
8861         * event-msw.c (output_alt_keyboard_state):
8862         * event-msw.c (mswindows_wnd_proc):
8863         * event-msw.c (vars_of_event_mswindows):
8864         Comment about problems with ignored-expose.
8865         Define mswindows-debug-events; not really implemented.
8866
8867         * frame-msw.c (mswindows_init_frame_1):
8868         random cleanups.
8869
8870         * glyphs-msw.c:
8871         * glyphs-msw.c (begin_defer_window_pos):
8872         * glyphs-msw.c (mswindows_unmap_subwindow):
8873         * glyphs-msw.c (mswindows_map_subwindow):
8874         * glyphs-msw.c (mswindows_resize_subwindow):
8875         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8876
8877         * glyphs.c (make_image_instance_1):
8878         Fix crash.
8879
8880         * gutter.c (Fredisplay_gutter_area):
8881         Use new begin/end methods.
8882
8883         * lisp.h (Dynarr_new2):
8884         New creation fun.
8885
8886         * redisplay-msw.c:
8887         * redisplay-msw.c (mswindows_frame_output_begin):
8888         * redisplay-msw.c (mswindows_frame_output_end):
8889         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8890         New begin/end methods -- handle DeferWindowPos.
8891
8892         * redisplay-output.c (redisplay_move_cursor):
8893         * redisplay-output.c (redraw_cursor_in_window):
8894         * redisplay-output.c (redisplay_update_line):
8895         * redisplay-output.c (redisplay_output_window):
8896         New begin/end methods.
8897
8898         * redisplay-tty.c:
8899         * redisplay-tty.c (tty_frame_output_begin):
8900         * redisplay-tty.c (tty_frame_output_end):
8901         * redisplay-tty.c (console_type_create_redisplay_tty):
8902         New begin/end methods.
8903
8904         * redisplay-x.c:
8905         * redisplay-x.c (x_window_output_begin):
8906         * redisplay-x.c (x_window_output_end):
8907         * redisplay-x.c (console_type_create_redisplay_x):
8908         New begin/end methods.
8909
8910         * redisplay.c (redisplay_frame):
8911         * redisplay.c (Fredisplay_echo_area):
8912         New begin/end methods.
8913         use MAYBE_DEVMETH for clear_frame; it may not exist.
8914
8915         * window.h (WINDOW_XFRAME):
8916         WINDOW_XFOO macros -- get locale and decode struct pointer.
8917
8918
8919 2000-05-12  Ben Wing  <ben@xemacs.org>
8920
8921         * emacs.c:
8922         * emacs.c (ensure_no_quitting_from_now_on):
8923         * emacs.c (fatal_error_signal):
8924         * emacs.c (mswindows_handle_hardware_exceptions):
8925         * emacs.c (main):
8926         * emacs.c (Fkill_emacs):
8927         * emacs.c (shut_down_emacs):
8928         * emacs.c (assert_failed):
8929         various improvements in fatal error handling.
8930
8931         * eval.c:
8932         move preparing_for_armageddon to emacs.c.
8933
8934         * lisp.h:
8935         declare fatal_error_in_progress.
8936
8937         * print.c:
8938         * print.c (std_handle_out_external):
8939         * print.c (std_handle_out_va):
8940         * print.c (stderr_out):
8941         * print.c (stdout_out):
8942         use console under mswin when no standard output.
8943         don't do code conversion during fatal error.
8944
8945         * scrollbar.c (Fscrollbar_page_up):
8946         * scrollbar.c (Fscrollbar_page_down):
8947         fix missing else.  reindent.
8948
8949 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8950
8951         Emergency fix.
8952
8953         * glyphs.h (GLYPH_CACHEL_DESCENT):
8954         (GLYPH_CACHEL_DESCENT):
8955         (GLYPH_CACHEL_DESCENT):
8956         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8957         used in case these are inline functions.
8958         Use more absurd values to error check.
8959
8960         include window.h for error check functions.
8961
8962 2000-05-11  Ben Wing  <ben@xemacs.org>
8963
8964         * cmdloop.c (Freally_early_error_handler):
8965         Display message box under windows; otherwise, message will disappear
8966         before it can be viewed.
8967
8968         * console-msw.c:
8969         * console-msw.c (Fmswindows_message_box):
8970         * console-msw.c (FROB):
8971         * console-msw.c (syms_of_console_mswindows):
8972         Define new fun `mswindows-message-box'.
8973         #### I will merge this into `popup-dialog-box'; just give me
8974         a bit of time.
8975
8976         * general.c:
8977         * general.c (syms_of_general):
8978         Some new symbols used in `mswindows-message-box'.
8979
8980         * glyphs.c:
8981         * glyphs.c (Fset_image_instance_property):
8982         put warning in this fun.
8983
8984         * glyphs.h:
8985         * glyphs.h (GLYPH_CACHEL_WIDTH):
8986         * glyphs.h (GLYPH_CACHEL_ASCENT):
8987         * glyphs.h (GLYPH_CACHEL):
8988         * glyphs.h (GLYPH_CACHEL_GLYPH):
8989         define error-checking versions to try to catch a bug i've seen --
8990         redisplay gets in an infinite loop because the glyph width of the
8991         continuation glyph is 65535.
8992
8993         * lisp.h:
8994         Extern message-box stuff.
8995
8996         * window.c (allocate_window):
8997         * window.c (make_dummy_parent):
8998         * window.c (Fset_window_configuration):
8999         Use EQUAL not EQ for subwindow caches to make them work a bit
9000         better. (Something is still very broken.)
9001
9002
9003 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9004
9005         * glyphs.c (image_instantiate): Suppress gcc warnings.
9006         (Fmake_image_instance): Fix doc string.
9007         * specifier.c (Fmake_specifier): Ditto.
9008
9009 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9010
9011         * paths.h.in (PATH_LOCK): Removed.
9012         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9013         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9014
9015 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9016
9017         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9018         Document (featurep '(and xemacs 21.02)).
9019
9020 2000-05-09  Ben Wing  <ben@xemacs.org>
9021
9022         * buffer.c (complex_vars_of_buffer):
9023         update modeline-format doc.
9024
9025         * device.h:
9026         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9027
9028         * emacs.c:
9029         timeline of all released versions of Emacs, for use in creating
9030         authorship comments and in synching up.
9031
9032         * glyphs-widget.c (image_instantiator_buttons):
9033         * glyphs-widget.c (image_instantiator_edit_fields):
9034         * glyphs-widget.c (image_instantiator_combo_box):
9035         * glyphs-widget.c (image_instantiator_scrollbar):
9036         * glyphs-widget.c (image_instantiator_progress_guage):
9037         * glyphs-widget.c (image_instantiator_tree_view):
9038         * glyphs-widget.c (image_instantiator_tab_control):
9039         * glyphs-widget.c (image_instantiator_labels):
9040         * glyphs-widget.c (image_instantiator_layout):
9041         * glyphs-widget.c (image_instantiator_native_layout):
9042         rename decode_domain method to governing_domain.
9043
9044         * glyphs.c:
9045         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9046         * glyphs.c (add_entry_to_device_ii_format_list):
9047         make sure we don't put an entry more than once into the list.
9048         * glyphs.c (check_instance_cache_mapper):
9049         *************************************************************
9050         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9051         HAVE BEEN GETTING.
9052         *************************************************************
9053         * glyphs.c (get_image_instantiator_governing_domain):
9054         clean up, expand on new concept of governing domain.
9055         * glyphs.c (instantiate_image_instantiator):
9056         * glyphs.c (allocate_image_instance):
9057         use governing_domain instead of cache_domain in naming.
9058         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9059         * glyphs.c (make_image_instance_1):
9060         * glyphs.c (Fmake_image_instance):
9061         allow for any domain (not just device), and process the
9062         governing domain correctly.  very big doc fix.
9063         * glyphs.c (Fimage_instance_domain):
9064         new primitive, to retrieve the governing domain of an image instance.
9065         * glyphs.c (image_instantiate):
9066         use new governing_domain stuff.  this fixes a crash you could get
9067         by instantiating certain widget glyphs in frame locales. (should
9068         signal an error instead of crashing.)
9069         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9070         * glyphs.c (Fglyphp): clean up doc.
9071         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9072         * glyphs.c (syms_of_glyphs):
9073         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9074         * glyphs.c (image_instantiator_format_create): add some comments about
9075         bogus code.
9076         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9077         for current-display-table. (Apparently Hrjove implemented in 1998 a
9078         design I wrote up in 1996, but didn't update the doc string.)
9079
9080         * glyphs.h: clean up a doc string.
9081         * glyphs.h (governing_domain):
9082         * glyphs.h (struct image_instantiator_methods):
9083         changes for governing_domain stuff.
9084
9085         * gutter.c:
9086         * gutter.c (Fgutter_specifier_p):
9087         * gutter.c (Fgutter_size_specifier_p):
9088         * gutter.c (Fgutter_visible_specifier_p):
9089         * objects.c:
9090         * objects.c (Fcolor_specifier_p):
9091         * objects.c (Ffont_specifier_p):
9092         * objects.c (Fface_boolean_specifier_p):
9093         doc strings moved to make-*-specifier.
9094
9095         * redisplay.c (add_disp_table_entry_runes_1):
9096         * redisplay.c (generate_fstring_runes):
9097         * redisplay.c (screen):
9098         add random comments and doc strings.
9099
9100         * specifier.c:
9101         * specifier.c (Fmake_specifier):
9102         major overhaul of this doc string.
9103
9104         * specifier.c (Fvalid_specifier_domain_p):
9105         comment about the bogosity of image instances being domains.
9106         * specifier.c (decode_domain):
9107         now non-static, used in glyphs.c.
9108         * specifier.c (specifier_instance):
9109         comment about the bogosity of image instances being domains.
9110         * specifier.c (Fgeneric_specifier_p):
9111         move doc string to make-generic-specifier.
9112         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9113         rebackslashify.
9114
9115         * specifier.h:
9116         * specifier.h (DOMAIN_FRAME):
9117         * specifier.h (DOMAIN_LIVE_P):
9118         * specifier.h (DOMAIN_XDEVICE):
9119         rebackslashify.
9120         add comments about problems with these macros.
9121         prototype for decode_domain.
9122
9123         * toolbar.c:
9124         * toolbar.c (Ftoolbar_specifier_p):
9125         move doc string to `make-toolbar-specifier'.
9126
9127         * window.c (window_unmap_subwindows_cache_mapper):
9128         *************************************************************
9129         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9130         HAVE BEEN GETTING.
9131         *************************************************************
9132
9133 2000-05-09  Andy Piper  <andy@xemacs.org>
9134
9135         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9136
9137         * window.c (Fset_window_configuration): reset the frame subwindow
9138         cache and re-initialize the window subwindow caches.
9139
9140         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9141
9142 2000-05-09  Ben Wing  <ben@xemacs.org>
9143
9144         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9145         DWORD.
9146
9147 2000-04-26  Mike Woolley  <mike@bulsara.com>
9148
9149         * ntheap.c: Changed recreate_heap to limit the amount reserved
9150         for the heap to that which is actually available. Also now
9151         displays a message box (with some dignostics) in the event that
9152         it still can't start.
9153
9154 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9155
9156         * callproc.c (Fold_call_process_internal): GCPRO path
9157
9158 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9159
9160         Patch by Bill Perry.
9161
9162         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9163         back data instead of #ifdef.
9164         (Fscrollbar_page_down): ditto.
9165
9166 2000-05-07  Ben Wing  <ben@xemacs.org>
9167
9168         * buffer.h:
9169         Kludge for defining Qmswindows_tstr.
9170
9171         * nt.c:
9172         * nt.c (open_input_file):
9173         * nt.c (open_output_file):
9174         * nt.c (rva_to_section):
9175         * nt.c (mswindows_executable_type):
9176         Move all memory-mapped-file routines here (some were in unexnt.c,
9177         which is bad because they are used by process-nt.c, and unexnt
9178         won't be around when portable dumping).  Synched the above routines
9179         with FSF 20.6.
9180
9181         * nt.h:
9182         Removed ifdef'd out bogus code.
9183         Fixed some prototypes.
9184
9185         * nt.h (file_data):
9186         * nt.h (OFFSET_TO_RVA):
9187         * nt.h (RVA_TO_OFFSET):
9188         * nt.h (RVA_TO_PTR):
9189         Moved the memory-mapped-file structures, macros and prototypes
9190         here, to parallel nt.c.  ntheap.h should really be removed
9191         entirely, and it's a non-portable-dumper specific file.
9192
9193         * ntheap.h (round_to_next):
9194         Moved the memory-mapped-file structures, macros and prototypes
9195         to nt.h.
9196
9197         * ntproc.c (compare_env):
9198         Moved rva_to_section and mswindows_executable_type to nt.c.
9199         Moved compare_env to process-nt.c.
9200         ntproc.c will die, one day.
9201
9202         * ntproc.c (sys_spawnve):
9203         Account for win32_ -> mswindows_.
9204
9205         * process-nt.c:
9206         * process-nt.c (struct nt_process_data):
9207         * process-nt.c (ensure_console_window_exists):
9208         * process-nt.c (compare_env):
9209         * process-nt.c (nt_create_process):
9210         * process-nt.c (nt_kill_process_by_pid):
9211         * process-nt.c (syms_of_process_nt):
9212         * process-nt.c (vars_of_process_nt):
9213         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9214         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9215         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9216         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9217         Move compare_env here from ntproc.c.
9218
9219         * process.c (Fprocess_send_region):
9220         Takes an optional fourth argument, BUFFER, which should fix some
9221         problems with call-process.
9222
9223         * syscommctrl.h:
9224         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9225
9226         * syswindows.h:
9227         Move ICC_BAR_CLASSES to syscommctrl.h.
9228         Add preliminary macros for MSWindows/Mule.  More to come.
9229
9230         * unexnt.c:
9231         * unexnt.c (unexec):
9232         open_output_file moved to nt.c.
9233
9234
9235 2000-05-05  Andy Piper  <andy@xemacs.org>
9236
9237         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9238         instance from the frame cache also since GC may catch up too late
9239         to make frame deletion sane.
9240
9241 2000-05-04  Andy Piper  <andy@xemacs.org>
9242
9243         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9244         (x_finalize_image_instance): ungcpro on deletion.
9245
9246         * glyphs.c (image_instantiator_format_create): give pointers a
9247         query geometry method so that the geometry is at least set.
9248
9249         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9250         initialize layouts if using widgets.
9251
9252 2000-05-03  Andy Piper  <andy@xemacs.org>
9253
9254         * nt.c: remove bogus reference to sysmmsystem.h
9255
9256         * gui-x.c (popup_selection_callback): fix no selection abort.
9257
9258 2000-05-02  Andy Piper  <andy@xemacs.org>
9259
9260         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9261         (mswindows_widget_instantiate): ditto.
9262
9263         * glyphs-widget.c (initialize_widget_image_instance): initialize
9264         children correctly.
9265         (widget_instantiate): cope with children and items in the same
9266         instance.
9267
9268         * glyphs.c (mark_image_instance): cope with children as a first
9269         class member.
9270         (image_instance_equal): ditto.
9271         (image_instance_hash): ditto.
9272         (image_instance_changed): ditto.
9273
9274 2000-04-30  Andy Piper  <andy@xemacs.org>
9275
9276         * glyphs.c (subwindow_query_geometry): new function. Return some
9277         defaults.
9278         (subwindow_instantiate): don't assign dimensions if none have been
9279         given.
9280         (image_instantiator_format_create): add subwindow_query_geometry.
9281         (print_image_instance): cope with layouts as widgets.
9282
9283 2000-04-29  Andy Piper  <andy@xemacs.org>
9284
9285         * frame.c (delete_frame_internal): call
9286         free_frame_subwindow_instance_cache so that all subwindows are
9287         finalized before their parent.
9288         (mark_frame): remove subwindow_cachels.
9289         (Fmake_frame): remove subwindow_cachel manipulation.
9290         (allocate_frame_core): subwindow_instance_cache is a weak list.
9291         (delete_frame_internal): set subwindow_instance_cache to nil.
9292
9293         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9294         finalization safe.
9295         (mswindows_finalize_image_instance): use the device
9296         not the domain as the domain may have died already.
9297
9298         * glyphs-x.c (x_finalize_image_instance): ditto.
9299         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9300         HEIGHT.
9301
9302         * redisplay-output.c (redisplay_unmap_subwindows): update for
9303         subwindow instance cache as a weak list.
9304         (redisplay_unmap_subwindows_maybe): ditto.
9305         (redisplay_unmap_subwindows_except_us): ditto.
9306
9307         * glyphs.c (unmap_subwindow): error checking will check the domain
9308         so don't deal with it here. Don't use cachels anymore.
9309         (map_subwindow): ditto.
9310         (update_subwindow_cachel_data): remove old accessor names.
9311         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9312         (Fresize_subwindow): don't update cachel.
9313         (mark_subwindow_cachels):
9314         (update_subwindow_cachel_data):
9315         (add_subwindow_cachel):
9316         (get_subwindow_cachel_index):
9317         (update_subwindow_cachel):
9318         (reset_subwindow_cachels):
9319         (mark_subwindow_cachels_as_not_updated): deleted.
9320         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9321         subwindow instance to the frame cache.
9322         (find_matching_subwindow): update for subwindow instance cache as
9323         a weak list.
9324         (update_widget_instances): ditto.
9325         (image_instance_type_to_mask):inlined.
9326         (free_frame_subwindow_instance_cache): new function. finalize all
9327         subwindows that are instantiated.
9328
9329         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9330         of cachel information.
9331         (IMAGE_INSTANCE_DISPLAY_X):
9332         (IMAGE_INSTANCE_DISPLAY_Y):
9333         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9334         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9335         (XIMAGE_INSTANCE_DISPLAY_X):
9336         (XIMAGE_INSTANCE_DISPLAY_Y):
9337         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9338         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9339         remove subwindow_cachel structure and function references.
9340         (image_instance_type_to_mask): inline from glyphs.c
9341
9342         * redisplay.c (redisplay_frame): remove subwindow_cachel
9343         references.
9344
9345         * frame.h (struct frame): remove subwindow_cachels.
9346         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9347
9348         * frameslots.h: add subwindow_instance_cache.
9349
9350         * window.c (replace_window): check subwindow cache of replacement.
9351         (window_unmap_subwindows_cache_mapper):
9352         (window_unmap_subwindows): new functions. Unmap all subwindows
9353         cached on this window.
9354         (mark_window_as_deleted): unmap all subwindows.
9355
9356 2000-04-27  Andy Piper  <andy@xemacs.org>
9357
9358         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9359
9360         * glyphs-widget.c (widget_layout): return something.
9361         (layout_layout): return something. Fail if not initialized.
9362         (layout_query_geometry): ditto.
9363         (image_instantiator_native_layout): new function. Initialized the
9364         native layout type.
9365         (widget_instantiate): don't do layout stuff here.
9366
9367         * glyphs.c (instantiate_image_instantiator): reorded calling or
9368         instantiate and post_instantiate with layout in between.
9369         (image_instance_layout): be more selective about deciding whether
9370         the layout has been done or not.
9371
9372         * glyphs.h (struct image_instantiator_methods): return a value
9373         from layout_method.
9374
9375 2000-04-26  Andy Piper  <andy@xemacs.org>
9376
9377         * glyphs.c (allocate_image_instance): make initial width and
9378         height unspecified. Set initialized to 0.
9379
9380         * syscommctrl.h new file. Encapsulates commctrl.h.
9381
9382         * syswindows.h new file. Encapsulates windows.h.
9383
9384         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9385         * nt.c: ditto.
9386         * console-msw.h: ditto.
9387
9388         * redisplay-tty.c (tty_output_display_block): remove layout references.
9389
9390         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9391         window handle rather than just the frame.
9392
9393         * glyphs.c (mark_image_instance): remove layout references.
9394         (print_image_instance): ditto.
9395         (image_instance_equal): ditto.
9396         (image_instance_hash): ditto.
9397         (decode_image_instance_type): ditto.
9398         (encode_image_instance_type): ditto.
9399         (image_instantiate): ditto.
9400         (allocate_glyph): ditto.
9401         (Fimage_instance_height): ditto.
9402         (Fimage_instance_width): ditto.
9403         (update_subwindow): ditto.
9404
9405         * redisplay-x.c (x_output_display_block): recode for layouts as
9406         widgets.
9407
9408         * redisplay-output.c (redisplay_output_layout): recode for layouts
9409         as widgets.
9410         (compare_runes): remove layout references.
9411
9412         * redisplay-msw.c (mswindows_output_display_block): recode for
9413         layouts as widgets.
9414
9415         * glyphs-widget.c (image_instantiator_layout): remove
9416         layout_possible_dest_types.
9417         (layout_possible_dest_types): deleted.
9418
9419         * glyphs.h (image_instance_type): remove layout references.
9420         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9421         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9422         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9423
9424 2000-04-25  Andy Piper  <andy@xemacs.org>
9425
9426         * glyphs-widget.c (image_instantiator_buttons):
9427         (image_instantiator_edit_fields):
9428         (image_instantiator_combo_box):
9429         (image_instantiator_scrollbar):
9430         (image_instantiator_progress_guage):
9431         (image_instantiator_tree_view):
9432         (image_instantiator_tab_control):
9433         (image_instantiator_labels):
9434         (image_instantiator_layout): call default post_instantiate method.
9435         (widget_post_instantiate): new function. Simply lays out the
9436         widgets.
9437
9438         * glyphs.h (struct image_instantiator_methods): add
9439         post_instantiate method.
9440
9441         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9442         method calls.
9443
9444 2000-04-23  Andy Piper  <andy@xemacs.org>
9445
9446         * glyphs.h (struct image_instantiator_methods): add
9447         decode_domain_method.
9448         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9449         derived from the domain.
9450         (IMAGE_INSTANCE_FRAME): new accessor.
9451         (XIMAGE_INSTANCE_FRAME): ditto.
9452
9453         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9454         instead of _SUBWINDOW_FRAME.
9455         (finalize_image_instance): ditto.
9456         (Fimage_instance_foreground): ditto.
9457         (Fimage_instance_background): ditto.
9458         (image_instantiate): ditto.
9459         (update_subwindow_cachel): ditto.
9460         (update_subwindow): ditto.
9461         (unmap_subwindow): ditto.
9462         (map_subwindow): ditto
9463         (subwindow_instantiate): ditto.
9464         * glyphs-msw.c (mswindows_update_widget): ditto.
9465         (mswindows_progress_gauge_instantiate): ditto.
9466         (mswindows_tab_control_update): ditto.
9467         * glyphs-x.c (x_update_widget): ditto.
9468         (x_widget_instantiate): ditto.
9469         (x_tab_control_instantiate): ditto.
9470         (x_tab_control_update): ditto.
9471         * event-msw.c (mswindows_wnd_proc): ditto
9472
9473         * glyphs-widget.c (image_instantiator_layout): use
9474         subwindow_decode_domain.
9475         (image_instantiator_buttons): ditto.
9476         (image_instantiator_edit_fields): ditto.
9477         (image_instantiator_combo_box): ditto.
9478         (image_instantiator_scrollbar): ditto.
9479         (image_instantiator_progress_guage): ditto.
9480         (image_instantiator_tree_view): ditto.
9481         (image_instantiator_tab_control): ditto.
9482         (image_instantiator_labels): ditto.
9483         (image_instantiator_layout): ditto.
9484
9485         * glyphs.c: add instance error checking to many functions.
9486         (instantiate_image_instantiator): decode device from cache_domain.
9487         (image_instantiate): partially rewrite by using
9488         decode_image_instantiator_domain to determine what domain the
9489         instance needs to be cached in.
9490         (decode_image_instantiator_domain): new function. Determine what
9491         domain the image needs to be cached in.
9492         (check_window_subwindow_cache): new error checking function.
9493         (check_instance_cache_mapper): ditto.
9494         (check_image_instance_structure): ditto.
9495         (subwindow_decode_domain): new function. Encodes a window as a
9496         subwindow's cache domain.
9497         (image_instantiator_format_create): use it for text and
9498         subwindows.
9499
9500 2000-04-21  Andy Piper  <andy@xemacs.org>
9501
9502         * glyphs.c (image_instance_device): new function.
9503         (image_instance_frame): new function.
9504         (image_instance_window): new function.
9505         (image_instance_live_p): new function.
9506
9507         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9508         cache to nil.
9509
9510         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9511         (IMAGE_INSTANCE_DOMAIN): new accessor.
9512         (XIMAGE_INSTANCE_DOMAIN): ditto.
9513
9514         * glyphs-x.c (x_finalize_image_instance): device->domain.
9515
9516         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9517         (mswindows_finalize_image_instance): ditto.
9518
9519         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9520         (gif_instantiate): ditto.
9521         (png_instantiate): ditto.
9522         (tiff_instantiate): ditto.
9523
9524         * glyphs.c (instantiate_image_instantiator): use domain rather
9525         than device.
9526         (mark_image_instance): device -> domain.
9527         (print_image_instance): ditto.
9528         (finalize_image_instance): ditto.
9529         (image_instance_equal): ditto.
9530         (allocate_image_instance): ditto.
9531         (Fcolorize_image_instance): ditto.
9532         (query_string_geometry): ditto.
9533         (image_instantiate): ditto
9534         (query_string_font): ditto.
9535         (image_instantiate): ditto.
9536         (update_subwindow): ditto.
9537         (unmap_subwindow): ditto.
9538         (map_subwindow): ditto.
9539         (subwindow_instantiate): ditto.
9540
9541         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9542         (DOMAIN_FRAME): ditto.
9543         (DOMAIN_WINDOW): ditto.
9544         (DOMAIN_LIVE_P): ditto.
9545         (XDOMAIN_DEVICE): ditto.
9546         (XDOMAIN_FRAME): ditto.
9547         (XDOMAIN_WINDOW): ditto.
9548
9549         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9550         a valid specifier domain.
9551
9552 2000-04-19  Andy Piper  <andy@xemacs.org>
9553
9554         * glyphs-widget.c (syms_of_glyphs_widget): remove
9555         widget-callback-current-channel.
9556         (vars_of_glyphs_widget): ditto.
9557         * glyphs.h: ditto
9558
9559         * gui.c (get_gui_callback): revert to previous behaviour.
9560
9561 2000-04-18  Andy Piper  <andy@xemacs.org>
9562
9563         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9564         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9565         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9566
9567         * glyphs.c (image_instance_equal): add margin_width.
9568         (image_instance_hash): ditto.
9569
9570         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9571         (layout_query_geometry): ditto.
9572         (layout_layout): ditto.
9573         (syms_of_glyphs_widget): add margin-width.
9574         (image_instantiator_layout): allow margin-width.
9575
9576         * glyphs.c (update_widget_instances): make a normal function.
9577         (syms_of_glyphs): remove Qupdate_widget_instances.
9578         * glyphs.h: ditto.
9579
9580         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9581         so that we don't corrupt ideas about the last event or
9582         command. Remove widget-callback-current-channel fiddling.
9583         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9584
9585 2000-05-01  Martin Buchholz <martin@xemacs.org>
9586
9587         * XEmacs 21.2.33 is released.
9588
9589 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9590
9591         * make-src-depend: Allow dots in header file name.
9592
9593 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9594
9595         * mule-charset.h (struct charset_lookup): Add
9596         next_allocated_1_byte_leading_byte and
9597         next_allocated_2_byte_leading_byte.
9598         * mule-charset.c: Move above two variables so that those values
9599         will be dumped.
9600
9601 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9602
9603         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9604         when string length is zero.
9605         (find_charsets_in_emchar_string): Ditto.
9606
9607 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9608
9609         * lisp.h: extern Qdialog and Qmenubar.
9610
9611         * gui-x.c: added events.h.
9612                 also fixed typo which made the file uncompilable.
9613
9614         * general.c: Added Qmenubar and Qdialog
9615
9616 2000-04-28  Ben Wing  <ben@xemacs.org>
9617
9618         * frame-msw.c (mswindows_init_frame_1):
9619         * frame-msw.c (mswindows_mark_frame):
9620         * event-msw.c (mswindows_enqueue_dispatch_event):
9621         * console-msw.h:
9622         * console-msw.h (struct mswindows_frame):
9623         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9624         there are now three hash tables for callbacks.
9625         mswindows_enqueue_dispatch_event is no longer static.
9626
9627         * dialog-x.c (maybe_run_dbox_text_callback):
9628         * dialog-x.c (dbox_descriptor_to_widget_value):
9629         switch to new cons3 form for callbacks.
9630
9631         * glyphs-msw.c (mswindows_register_gui_item):
9632         * glyphs-msw.c (mswindows_widget_instantiate):
9633         * glyphs-msw.c (add_tree_item):
9634         * glyphs-msw.c (add_tab_item):
9635         new image instance parameter, so it can be passed to callback-ex.
9636         respect :callback-ex as well as :callback.
9637
9638         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9639         add :callback-ex.
9640
9641         * glyphs.c (print_image_instance):
9642         prettify, e.g. now prints widget type.
9643
9644         * gui-x.h:
9645         certain funs have new image instance parameter.
9646
9647         * gui.c:
9648         * gui.c (get_gui_callback):
9649         * gui.c (gui_item_add_keyval_pair):
9650         * gui.c (gui_item_init):
9651         * gui.c (gui_add_item_keywords_to_plist):
9652         * gui.c (mark_gui_item):
9653         * gui.c (gui_item_hash):
9654         * gui.c (gui_item_equal):
9655         * gui.c (copy_gui_item):
9656         * gui.c (syms_of_gui):
9657         recognize callback-ex in a number of places.
9658         also, fix the annoying "can't get out of yes-no dialog" bug.
9659
9660         * gui.h:
9661         * gui.h (struct Lisp_Gui_Item):
9662         recognize callback-ex in a number of places.
9663
9664         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9665         new parameter in button_item_to_widget_value.
9666
9667         * glyphs-x.c (x_update_widget):
9668         * glyphs-x.c (x_button_instantiate):
9669         * glyphs-x.c (x_button_update):
9670         * glyphs-x.c (x_progress_gauge_instantiate):
9671         * glyphs-x.c (x_edit_field_instantiate):
9672         * glyphs-x.c (x_combo_box_instantiate):
9673         * glyphs-x.c (x_tab_control_instantiate):
9674         * glyphs-x.c (x_label_instantiate):
9675         new image instance parameter in various places.
9676
9677         * event-Xt.c:
9678         * event-Xt.c (enqueue_Xt_dispatch_event):
9679         this fun gets exported.
9680
9681         * gui-msw.c:
9682         * gui-msw.c (mswindows_handle_gui_wm_command):
9683         handle both :callback and :callback-ex, and generate our own
9684         event because it's one of the callback-ex arguments.
9685
9686         * gui-x.c:
9687         * gui-x.c (popup_selection_callback):
9688         handle both :callback and :callback-ex, and generate our own
9689         event because it's one of the callback-ex arguments.
9690         * gui-x.c (button_item_to_widget_value):
9691         * gui-x.c (gui_items_to_widget_values_1):
9692         * gui-x.c (gui_item_children_to_widget_values):
9693         * gui-x.c (gui_items_to_widget_values):
9694         new image instance parameter in various places.
9695
9696         * fns.c (Freplace_list):
9697         fix small typo in doc string.
9698
9699         * lisp.h:
9700         declare enqueue_Xt_dispatch_event.
9701
9702 2000-04-28  Ben Wing  <ben@xemacs.org>
9703
9704         * buffer.c:
9705         * buffer.c (Frecord_buffer):
9706         * buffer.c (syms_of_buffer):
9707         delete record-buffer-hook.
9708
9709         * fns.c:
9710         * fns.c (Freplace_list):
9711         * fns.c (syms_of_fns):
9712         new primitive replace-list.
9713
9714         * frameslots.h:
9715         slot for old buffer-alist.
9716
9717         * lisp.h:
9718         exfun replace-list.
9719
9720         * redisplay.c:
9721         * redisplay.c (redisplay_frame):
9722         * redisplay.c (syms_of_redisplay):
9723         * redisplay.c (vars_of_redisplay):
9724         new hook buffer-list-changed-hook.
9725         call it.
9726
9727 2000-04-27  Ben Wing  <ben@xemacs.org>
9728
9729         * extents.h: extern in_modeline_generation.
9730
9731         * redisplay.c (generate_formatted_string_db): set
9732         in_modeline_generation.
9733
9734         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9735         flags if in modeline generation.  otherwise frame-modified-tick
9736         is ticked far too often.
9737         Declare in_modeline_generation.
9738
9739 2000-04-26  Ben Wing  <ben@xemacs.org>
9740
9741         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9742         option.
9743         (vars_of_emacs): add quick-build as an error-checking option.
9744         A bit kludgy, but there doesn't seem much point in creating
9745         a real var for this.
9746
9747         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9748
9749 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9750
9751         * redisplay.h (struct display_line): Add a new variable,
9752         line_continuation.
9753
9754         * redisplay.c (create_text_block): Set dl->line_continuation if
9755         the line continues.
9756         (create_string_text_block): Ditto.
9757         (regenerate_window_incrementally): Use line_continuation instead
9758         of searching continuation glyph.
9759         (add_margin_runes): Call add_glyph_rune.
9760         (add_glyph_rune): Handle margin glyph.
9761
9762 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9763
9764         * filelock.c (fill_in_lock_file_name):
9765         ANSIfy.
9766         Check for IS_ANY_SEP instead of '/'.
9767         (lock_file_1):
9768         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9769         Never check errno without first seeing that system call failed.
9770         (unlock_file): Add GCPRO.
9771         (Flock_buffer): Fix docstring.
9772         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9773
9774 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9775
9776         * sysdep.c (get_pty_max_bytes):
9777         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9778         strings longer than 252 bytes.
9779
9780         * md5.c: Unconditionally include ANSI header <limits.h>
9781
9782         * glyphs-x.c (convert_EImage_to_XImage):
9783         * lisp-union.h (union Lisp_Object):
9784         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9785
9786 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9787
9788         * filelock.c (current_lock_owner): Remove unused variable o, p.
9789
9790 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9791
9792         * callint.c: Remove multiply defined symbol Qlet
9793         (syms_of_callint): ditto.
9794
9795 2000-04-14  Andy Piper  <andy@xemacs.org>
9796
9797         * general.c (syms_of_general): add last-command, this-command, let
9798         and funcall.
9799
9800         * lisp.h: declare various symbols.
9801
9802         * glyphs.h: declare Qwidget_callback_current_channel;
9803
9804         * glyphs-widget.c (syms_of_glyphs_widget): add
9805         Qgui_callback_current_channel.
9806         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9807
9808         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9809         widget-callback-current-channel when invoking the interactive
9810         arg. Also bind last-command and next-command when invoking the
9811         widget updates.
9812         * gui-x.c (popup_selection_callback): ditto.
9813
9814         * gui.c (get_gui_callback): massage args so that we are always
9815         calling eval. This allows us to add our own variable bindings
9816         outside.
9817
9818         * glyphs-x.c (x_button_instantiate): use
9819         gui_items_to_widget_values since this is GC safe.
9820         (x_progress_gauge_instantiate): ditto.
9821         (x_edit_field_instantiate): ditto.
9822         (x_label_instantiate): ditto.
9823
9824         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9825         (emacs_Xt_event_widget_focus_out): new function
9826         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9827         focus.
9828         (emacs_Xt_event_add_widget_actions): new function. add focus
9829         functions as actions.
9830         (init_event_Xt_late): use it.
9831
9832 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9833
9834         * event-stream.c (Fdispatch_event): Doc fix.
9835
9836 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9837
9838         * postgresql.c: Remove all references to PQsetenv*.
9839
9840         * postgresql.h: Remove references to PGsetenvHandler object.
9841         * lrecord.h (lrecord_type): Ditto.
9842
9843 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9844
9845         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9846         real_heigh and real_width members, and accessor macros for these.
9847
9848         * glyphs-msw.c (init_image_instance_geometry): New function.
9849         (init_image_instance_from_dibitmap): Use it.
9850         (mswindows_resource_instantiate): Use it.
9851         (init_image_instance_from_xbm_inline): Use it.
9852         (mswindows_initialize_image_instance_mask): Use real bitmap
9853         geometry.
9854         (mswindows_create_resized_bitmap): Ditto.
9855         (mswindows_create_resized_mask): Ditto.
9856
9857         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9858         and bitmap to their surface size.
9859
9860 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9861
9862         * process-unix.c (unix_send_process): Guard against process MIA
9863         after Faccept_process_output.
9864
9865 2000-04-11  Ben Wing  <ben@xemacs.org>
9866
9867         * eval.c (unbind_to_hairy): fix brokenness introduced by
9868         nanosecond speed improvements.
9869
9870 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9871
9872         * sunplay.c (init_device): To play sounds correctly, the device
9873         apparently needs to be initialized at least once by XEmacs.  Make
9874         it so.
9875
9876 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9877
9878         * redisplay.c (add_margin_runes): Add text image glyph
9879           handling.
9880
9881 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9882
9883         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9884         gcc is newer than 2.5.
9885
9886 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9887
9888         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9889
9890         * fns.c (size_bit_vector):
9891         * alloc.c (size_vector):
9892         (make_vector_internal):
9893         (make_bit_vector_internal):
9894         (sweep_bit_vectors_1):
9895         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9896
9897 2000-04-06  Andy Piper  <andy@xemacs.org>
9898
9899         * gmalloc.c (malloc): undo previous change.
9900         (malloc): ditto.
9901         (free): ditto.
9902         (realloc): ditto.
9903
9904 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9905
9906         * line-number.c (buffer_line_number): Revert to former version.
9907
9908 2000-04-06  Andy Piper  <andy@xemacs.org>
9909
9910         * gmalloc.c (malloc): add error checking.
9911         (malloc): ditto.
9912         (free): ditto.
9913         (realloc): ditto.
9914
9915         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9916         button_item_to_widget_value arg.
9917
9918         * glyphs-x.c (x_button_instantiate): add extra
9919         button_item_to_widget_value arg.
9920         (x_progress_gauge_instantiate): ditto.
9921         (x_edit_field_instantiate): ditto.
9922         (x_label_instantiate): ditto.
9923
9924         * gui-x.c (gui_items_to_widget_values_1): add extra
9925         button_item_to_widget_value arg.
9926         (button_item_to_widget_value): add extra menu_item_p arg.
9927
9928         * gui-x.h: change signature of button_item_to_widget_value.
9929
9930         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9931         button_item_to_widget_value arg.
9932
9933 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9934
9935         * buffer.h (struct buffer): auto_save_modified should be long.
9936
9937 2000-04-05  Andy Piper  <andy@xemacs.org>
9938
9939         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9940         type.
9941         (button_query_geometry): give a little more room so that athena
9942         buttons fit.
9943
9944 2000-04-05  Andy Piper  <andy@xemacs.org>
9945
9946         * faces.c (complex_vars_of_faces): The widget face should inherit
9947         the font of the gui-element face.
9948
9949 2000-04-04  Andy Piper  <andy@xemacs.org>
9950
9951         * glyphs-x.c (x_button_update): new function. unconditionally
9952         update a button's state when the instance is dirty.
9953         (image_instantiator_format_create_glyphs_x): add x_button_update.
9954         (x_widget_instantiate): remove old resize cruft.
9955
9956 2000-04-02  Andy Piper  <andy@xemacs.org>
9957
9958         * frame.c (change_frame_size_1): The introduction of gutters means
9959         that we need to allow 0 as a potential frame dimension.
9960
9961 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9962
9963         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9964         image glyph if allow_cursor.
9965         (add_hscroll_rune): Don't allow cursor to border glyph.
9966         (create_text_block): Ditto.
9967
9968         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9969         text not in buffer.
9970         (redisplay_output_layout): Call ensure_face_cachel_complete for
9971         text image glyph.
9972
9973
9974 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9975
9976         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9977
9978         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9979         not in buffer
9980
9981         * redisplay-tty.c (tty_output_display_block): Delete the routine
9982         for text image glyph
9983         * redisplay-x.c (x_output_display_block): ditto
9984         * redisplay-msw.c (mswindows_output_display_block): ditto
9985
9986 2000-02-02  Mike Alexander  <mta@arbortext.com>
9987
9988         Note: Some of these were committed by accident as part of other
9989         patches.
9990
9991         * regex.c (regex_compile): Avoid compiler warnings.
9992
9993         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9994
9995         * nt.h: Declare term_ntproc correctly.
9996
9997         * nt.c: Remove incorrect declaration of get_home_directory which
9998         is declared correctly in lisp.h.
9999
10000         * keymap.c (get_keyelt): Avoid compiler warnings.
10001         (raw_lookup_key_mapper): Avoid compiler warnings.
10002
10003         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10004
10005         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10006
10007         * filemode.c (mode_string): Avoid compiler warnings.
10008
10009         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10010         avoid warning.
10011
10012         * events-mod.h: Undef some things that winuser.h defines differently.
10013
10014         * data.c (Faset): Avoid compiler warnings.
10015
10016         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10017
10018 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10019
10020         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10021         Fall through to simple beep on error.
10022         Replace "extern" by real header file.
10023
10024         * linuxplay.c: Use nativesound.h
10025         (play_sound_data): Return error code. Be less verbose on error.
10026
10027         * sunplay.c: Use nativesound.h
10028         (play_sound_data): Return error code. Be less verbose on error.
10029
10030         * ntplay.c: Use nativesound.h
10031         (play_sound_data): Return fake error code
10032
10033         * sgiplay.c: Use nativesound.h
10034         (play_sound_data): Return error code
10035
10036         * hpplay.c: Use nativesound.h, partially implement
10037         new error code. Break compilation until finished.
10038         (play_sound_data): error code.
10039
10040         * nativesound.h (play_sound_file):
10041           (play_sound_data): Prototype in new header.
10042
10043 2000-03-31  Andy Piper  <andy@xemacs.org>
10044
10045         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10046         for toggle and radio buttons.
10047         (image_instantiator_buttons): use it.
10048
10049 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10050
10051         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10052         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10053         found. Scrollbar event probably belonged to some old config.
10054
10055 2000-03-31  Andy Piper  <andy@xemacs.org>
10056
10057         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10058         than 1.
10059         (initialize_widget_image_instance): default layout to
10060         LAYOUT_HORIZONTAL rather than 0.
10061         (widget_instantiate): reverse the item list at the end rather than
10062         every iteration.
10063         (layout_layout): re-code for the border text at the front of the
10064         item list rather than at the end.
10065         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10066         provided by the user.
10067         (widget_query_geometry): comment.
10068
10069 2000-03-30  Andy Piper  <andy@xemacs.org>
10070
10071         * glyphs-widget.c (image_instantiator_layout): allow standard
10072         widget keywords in layouts.
10073
10074         * gutter.c (output_gutter): cope with nil gutter contents.
10075
10076         * frame.c (Fset_frame_properties): add gutter docs.
10077
10078 2000-03-29  Andy Piper  <andy@xemacs.org>
10079
10080         * toolbar-msw.c (TBSTYLE_FLAT): add.
10081         (mswindows_output_toolbar): minor fiddling.
10082
10083 2000-03-29  Andy Piper  <andy@xemacs.org>
10084
10085         * gutter.c (output_gutter): force gutter size recalculation if
10086         what we are trying to display won't fit.
10087         (update_gutter_geometry): new function. A per-gutter version of
10088         update_frame_gutter_geometry.
10089         (update_frame_gutter_geometry): use it.
10090         (redraw_exposed_gutter): add extra debugging output.
10091
10092 2000-03-28  Mike Alexander  <mta@arbortext.com>
10093
10094         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10095         (pdump_file_unmap): Implement it on Windows
10096         (pdump_file_get): Save alocated handles for pdump_file_unmap
10097
10098 2000-03-28  Andy Piper  <andy@xemacs.org>
10099
10100         * gui.c (get_gui_callback): treat Quit specially.
10101
10102 2000-03-27  Andy Piper  <andy@xemacs.org>
10103
10104         * glyphs.c (image_instantiate): be careful to check in the same
10105         way we assigned.
10106
10107 2000-03-27  Didier Verna  <didier@xemacs.org>
10108
10109         * config.h.in: define the proper SMART_INCLUDE macro.
10110         handle renaming of `foo_h_path' to `foo_h_file'.
10111
10112         * database.c: ditto.
10113
10114         * emacs.c: ditto.
10115
10116         * linuxplay.c: ditto.
10117
10118         * terminfo.c: ditto.
10119
10120         * tooltalk.h: ditto.
10121
10122 2000-03-27  Andy Piper  <andy@xemacs.org>
10123
10124         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10125         gets updated whenever the face might have changed.
10126
10127 2000-03-26  Mike Alexander  <mta@arbortext.com>
10128
10129         * dumper.c (pdump_resource_free): Fix the comment.
10130
10131 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10132
10133         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10134
10135 2000-03-22  Mike Alexander  <mta@arbortext.com>
10136
10137         * dumper.c: Include Windows headers on Windows
10138         (pdump_resource_free): Add a body to the function
10139         (pdump_load): exe_name -> exe_path and add some comments.
10140
10141 2000-03-25  Mike Alexander  <mta@arbortext.com>
10142
10143         * gui.c (copy_gui_item_tree): Return a value in all cases
10144
10145 2000-03-21  Didier Verna  <didier@xemacs.org>
10146
10147         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10148         lwlib/config.h.in.
10149         (SMART_INCLUDE): new macro.
10150         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10151         the proper location.
10152
10153         * postgresql.c: use it.
10154
10155         * inline.c: ditto.
10156
10157 2000-03-24  Andy Piper  <andy@xemacs.org>
10158
10159         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10160         do this.
10161
10162 2000-03-24  Andy Piper  <andy@xemacs.org>
10163
10164         * redisplay-output.c (compare_runes): use image_instance_changed
10165         to detect changes. Do not depend on glyphs_changed, only depend on
10166         dirtiness.
10167          (redisplay_output_layout): add debug messages.
10168         (compare_runes): ditto.
10169
10170         * glyphs.h: declare new functions.
10171         (struct Lisp_Image_Instance): remove percent and associated
10172         accessors.
10173
10174         * gui.h: declare new copying functions.
10175
10176         * gui.c (copy_gui_item_tree): new function.
10177         (copy_gui_item): new function.
10178         (gui_item_id_hash): revert to standard hash.
10179         (gui_item_hash): ditto.
10180         (gui_item_hash_internal): deleted.
10181         (mark_gui_item): mark value.
10182         (gui_item_add_keyval_pair): add value.
10183         (gui_item_init): ditto.
10184         (gui_add_item_keywords_to_plist): ditto.
10185         (gui_item_equal): ditto.
10186         (syms_of_gui): add Q_value.
10187
10188         * glyphs-x.c (x_progress_gauge_update): use pending items and
10189         value for setting the state.
10190         (x_update_widget): don't set items from pending here.
10191
10192         * glyphs-widget.c (update_widget): update items here.
10193         (progress_gauge_set_property): use items for storing value. Put
10194         new value in pending items.
10195
10196         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10197         items for new value. Convert percent -> value.
10198         (mswindows_tab_control_update): don't update items here.
10199
10200         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10201         (update_subwindow): ditto.
10202         (image_instance_changed): new function. Compare hash values and
10203         past and present widget items.
10204         (image_instantiate): We more careful about where we instantiate
10205         things.
10206         (image_instantiate): add error checking.
10207
10208         * gutter.c (syms_of_gutter): use -hook.
10209
10210 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10211
10212         * console-tty.c (Fset_console_tty_input_coding_system): Use
10213         Qkeyboard.
10214         (Fset_console_tty_output_coding_system): Use Qterminal.
10215         (tty_init_console): Use Qkeyboard and Qterminal.
10216
10217 2000-03-21  Ben Wing  <ben@xemacs.org>
10218
10219         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10220         From Mike Alexander <mta@arbortext.com>.
10221
10222 2000-03-21  Ben Wing  <ben@xemacs.org>
10223
10224         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10225         process brokenness.  Proper implementation to come.
10226         * callproc.c:
10227         Rename call-process-internal to old-call-process-internal.
10228         New impl. in process.el.
10229
10230 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10231
10232         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10233
10234 2000-03-20  Andy Piper  <andy@xemacs.org>
10235
10236         * glyphs.c (full_list_hash): make hashes of the same elements in
10237         different orders return different values.
10238
10239 2000-03-20  Martin Buchholz <martin@xemacs.org>
10240
10241         * XEmacs 21.2.32 is released.
10242
10243 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10244
10245         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10246         (DFC_MALLOC_USE_CONVERTED_DATA):
10247         Add aliasing-safe casts to allow use with char* or unsigned char*
10248         lvalues.
10249
10250         * eldap.c (Fldap_open):
10251         (Fldap_search_basic):
10252         (Fldap_add):
10253         (Fldap_modify):
10254         Make C++-compilable.
10255         Make sure GCPRO'ed variables are initialized.
10256         Use temp variables to avoid repeated calls to Flength.
10257
10258 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10259
10260         * sysfile.h:
10261         Make sure PATH_MAX is always defined.
10262         Include limits.h for PATH_MAX.
10263         Deprecate use of MAXPATHLEN.
10264
10265 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10266
10267         * emacs.c: Add reinit_vars_of_fileio.
10268         * symsinit.h: Add reinit_vars_of_fileio.
10269         * fileio.c (reinit_vars_of_fileio): New.
10270         * fileio.c (Fmake_temp_name):
10271         Initialize temp_name random number from microseconds to make
10272         collisions even less likely.  Initialize always at process startup
10273         time.  (make-temp-name) used to return the same file name twice in
10274         a row when PDUMP.
10275         Random stylistic fiddling.
10276         Comment fixes.
10277
10278 2000-03-20  Andy Piper  <andy@xemacs.org>
10279
10280         * glyphs.c (image_instantiate): allow text glyphs to be
10281         instantiated in the minibuffer window.
10282
10283 2000-03-19  Andy Piper  <andy@xemacs.org>
10284
10285         * glyphs.c (image_instance_hash): be careful about which items we
10286         hash on.
10287
10288         * glyphs-widget.c (tab_control_set_property): record into pending
10289         items rather than the actual items.
10290
10291         * glyphs-x.c (x_update_widget): use pending items to update with.
10292
10293         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10294         to update with.
10295
10296         * glyphs.c (mark_image_instance): mark pending items.
10297
10298         * window.c (Fset_window_configuration): record the buffer.
10299         (Fselect_window): totally revert previous change which breaks many
10300         things.
10301
10302 2000-03-18  Andy Piper  <andy@xemacs.org>
10303
10304         * glyphs-msw.c (mswindows_tab_control_update): force selected
10305         item.
10306
10307         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10308         window domain cache, otherwise we get inconsistencies at
10309         startup. There is something fishy at startup which can lead to the
10310         minibuffer being the selected window when the gutter content is
10311         instantiated.
10312
10313         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10314         gcpros.
10315         (parse_gui_item_tree_children): ditto.
10316         (parse_gui_item_tree_item): ditto.
10317
10318         * glyphs.c (Fupdate_widget_instances): return something.
10319
10320 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10321
10322         * window.c (Fselect_window): Undo 2000-03-17 change.
10323
10324 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10325
10326         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10327         against v7.0 libraries.  Insta-coredump city until the postgres
10328         folks fix it.
10329
10330 2000-03-17  Andy Piper  <andy@xemacs.org>
10331
10332         * faces.c (complex_vars_of_faces): don't give the widget face an
10333         inherited background pixmap.
10334
10335         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10336         selected item.
10337
10338         * event-stream.c (Fdispatch_non_command_events): return something.
10339
10340         * gutter.c (output_gutter): use widget face.
10341         (clear_gutter): ditto.
10342
10343         * NEWS: adjust again.
10344
10345         * window.c (Fselect_window): make sure this runs to completion to
10346         avoid oddities with Fset_window_configuration.
10347         (Fcurrent_window_configuration): in general do not save the
10348         minibuffer as the selected window.
10349
10350         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10351
10352 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10353
10354         * emacs.c (Frunning_temacs_p): Revert previous patch.
10355         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10356
10357 2000-03-16  Andy Piper  <andy@xemacs.org>
10358
10359         * glyphs-x.c (x_tab_control_update): if no widget values then
10360         return.
10361
10362         * NEWS: update for new features.
10363
10364         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10365         synthetic event to the native system.
10366         (reinit_vars_of_event_Xt): set force_event_pending to
10367         emacs_Xt_force_event_pending.
10368
10369         * events.h (struct event_stream): add force_event_pending.
10370
10371         * specifier.c (recompute_one_cached_specifier_in_window): add
10372         comment.
10373
10374         * redisplay.c (redisplay_frame): don't call
10375         update_frame_subwindows. Reset subwindow cachels when
10376         subwindows_changed, removing this was an optimization too far.
10377
10378         * redisplay-output.c (compare_runes): reorganize so that we catch
10379         glyph changes when we want them. Set optimize_output when this
10380         would help layouts.
10381         (redisplay_output_layout): remove frame_really_changed, use
10382         optimize_output instead.
10383
10384         * redisplay-msw.c (mswindows_output_display_block): reset
10385         optimize_output after outputting a glyph.
10386         * redisplay-x.c (x_output_display_block): ditto.
10387         * redisplay-tty.c (tty_output_display_block): ditto.
10388
10389         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10390         functions.
10391         (gutter_specs_changed): do specific gutter positions.
10392         (top_gutter_specs_changed): new function. Only update the
10393         specified gutter specs.
10394         (bottom_gutter_specs_changed): ditto.
10395         (left_gutter_specs_changed): ditto.
10396         (right_gutter_specs_changed): ditto.
10397
10398         * gui.c (gui_item_hash_internal): new function, does a real hash.
10399         (gui_item_id_hash): use it.
10400         (gui_item_hash): hash the eval'ed gui_item.
10401
10402         * gui-x.c (popup_selection_callback): send an eval event to call
10403         Fupdate_widget_instances.
10404
10405         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10406         to call Fupdate_widget_instances.
10407
10408         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10409         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10410
10411         * glyphs.c: (update_frame_subwindows): deleted.
10412         (Fupdate_widget_instances): new function for updating the dirty
10413         state of widgets that might have changed.
10414         (syms_of_glyphs): add Qupdate_widget_instances.
10415         (full_list_hash): hash a list completely.
10416         (image_instance_hash): use it for items and properties.
10417
10418         * frame-msw.c (mswindows_size_frame_internal): remove unused
10419         variable.
10420
10421         * faces.h (struct face_cachel): fix comment.
10422
10423         * event-stream.c (Fdispatch_non_command_events): new
10424         function. Process non-command events, forcing an event cycle
10425         beforehand.
10426         (syms_of_event_stream): declare.
10427         (event_stream_force_event_pending): new function. Force an event
10428         on the native event queue so that an event cycle will occur next
10429         time we check.
10430
10431         * event-msw.c:
10432         (struct ntpipe_shove_stream):
10433         (mswindows_enqueue_dispatch_event):
10434         (mswindows_dequeue_dispatch_event):
10435         (mswindows_cancel_dispatch_event):
10436         (mswindows_pump_outstanding_events):
10437         (mswindows_drain_windows_queue):
10438         (mswindows_handle_paint):
10439         (mswindows_wnd_proc):
10440         (mswindows_key_to_emacs_keysym):
10441         (get_process_input_waitable):
10442         (emacs_mswindows_delete_stream_pair): re-indent file.
10443         (mswindows_need_event): do not process further fds if the windows
10444         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10445         fixes the 100% cpu problem.
10446         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10447
10448 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10449
10450         * alloc.h: New.
10451         * dumper.h: New.
10452         * dumper.c: New.
10453
10454         * emacs.c: Moved dump file searching to dumper.c.
10455         (Frunning_temacs_p): Fixed.
10456
10457         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10458         last_lrecord_type_index_assigned.
10459
10460 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10461
10462         * symsinit.h: Added reinit parameter to init_console_stream
10463         declaration.
10464
10465         * lisp.h: Added file parameter to pdump_load declaration.
10466
10467         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10468         support.  Added dump file searching.
10469
10470         * config.h.in: Added EMACS_PROGNAME.
10471
10472         * console-stream.c (init_console_stream): Fix reinitialisation
10473         when running from temacs.
10474
10475         * alloc.c (pdump): Add id support.
10476         (pdump_load): Add file parameter and signature/id support.
10477
10478         * Makefile.in.in: Add full pdump support.
10479
10480 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10481
10482         * postgresql.c: Update documentation to reflect latest code
10483         status.
10484         (print_result): Show tuple counts in printed representation when
10485         appropriate.
10486         (Fpq_put_nbytes): MULE-ize.
10487         (Fpq_get_line_async): Ditto.
10488
10489 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10490
10491         * postgresql.c (Fpq_lo_import): Fix return value.
10492         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10493
10494 2000-03-13  Ben Wing  <ben@xemacs.org>
10495
10496         * alloc.c (pdump_load):
10497         Fix compile warning under mswin.
10498
10499 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10500
10501         * postgresql.c: Mule-ization, bug fixes.
10502         Use PG_CODING to encapsulate coding system name changes.
10503         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10504         (pg-coding-system): Create.
10505
10506         (Fpq_conn_defaults): Mule-ize.
10507         (Fpq_connectdb): Mule-ize & bug fix.
10508         (Fpq_connect_start): Mule-ize.
10509         (Fpq_set_client_encoding): Mule-ize.
10510         (Fpq_finish): Document `DEAD' connection status.
10511         (Fpq_clear): Ditto.
10512         (Fpq_pgconn): Mule-ize.
10513         (Fpq_exec): Mule-ize & bug fix.
10514         (Fpq_send_query): Ditto.
10515         (Fpq_get_result): Ditto.
10516         (Fpq_res_status): Mule-ize.
10517         (Fpq_result_error_message): Mule-ize.
10518         (Fpq_ntuples): fix comments.
10519         (Fpq_fname): Mule-ize.
10520         (Fpq_fnumber): Mule-ize.
10521         (Fpq_ftype): fix comments.
10522         (Fpq_get_value): Mule-ize.
10523         (Fpq_cmd_status): Ditto.
10524         (Fpq_cmd_tuples): Ditto.
10525         (Fpq_oid_value): Ditto.
10526         (Fpq_notifies): Ditto.
10527         (Fpq_lo_import): Ditto.
10528         (Fpq_lo_export): Ditto.
10529         (Fpq_get_line): Ditto.
10530         (Fpq_put_line): Mule-ize and bug fix.
10531         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10532
10533 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10534
10535         * postgresql.c (vars_of_postgresql): Mule-ize.
10536         (Fpq_conn_defaults): Ditto.
10537
10538 2000-03-12  Ben Wing  <ben@xemacs.org>
10539
10540         * alloc.c (Fmake_byte_code):
10541         * alloc.c (debug_string_purity_print):
10542         * alloc.c (pdump_backtrace):
10543         * alloc.c (pdump_get_indirect_count):
10544         * alloc.c (pdump_register_sub):
10545         * alloc.c (pdump_register_object):
10546         * alloc.c (pdump_register_struct):
10547         * alloc.c (pdump_dump_data):
10548         * alloc.c (pdump_reloc_one):
10549         Minor cleanups.
10550
10551         * console-msw.c:
10552         * console-msw.c (GetConsoleHwnd):
10553         * console-msw.c (msw_hide_console):
10554         * console-msw.c (msw_show_console):
10555         * console-msw.c (msw_ensure_console_buffered):
10556         * console-msw.c (msw_output_console_string):
10557         * console-msw.c (console_type_create_mswindows):
10558
10559         a) Added functions to manipulate the console window for use with
10560         shell support.
10561
10562         b) Added support for writing text to the console, which is now
10563         used under Windows when xemacs is not being run non-interactively,
10564         to write text that would otherwise be destined for stdout because
10565         under these circumstances, text written to stdout tends to
10566         disappear and not be seen.
10567
10568         * console-msw.h:
10569         * event-Xt.c:
10570         * event-Xt.c (x_event_to_emacs_event):
10571         * event-Xt.c (describe_event_window):
10572         * events-mod.h (XEMACS_MOD_CONTROL):
10573         * events.c:
10574         * events.c (Fmake_event):
10575         * events.c (character_to_event):
10576         * events.c (event_to_character):
10577         * events.c (format_event_object):
10578         * events.c (Fevent_modifiers):
10579         * events.h:
10580         * events.h (struct key_data):
10581         * events.h (struct button_data):
10582         * events.h (struct misc_user_data):
10583         * frame-x.c (Fcde_start_drag_internal):
10584         * frame-x.c (Foffix_start_drag_internal):
10585         * gpmevent.c (Freceive_gpm_event):
10586         * keymap.c:
10587         * keymap.c (bucky_sym_to_bucky_bit):
10588         * keymap.c (control_meta_superify):
10589         * keymap.c (make_key_description):
10590         * keymap.c (keymap_lookup_directly):
10591         * keymap.c (create_bucky_submap):
10592         * keymap.c (keymap_store):
10593         * keymap.c (define_key_check_and_coerce_keysym):
10594         * keymap.c (define_key_parser):
10595         * keymap.c (define_key_alternate_name):
10596         * keymap.c (Fdefine_key):
10597         * keymap.c (raw_lookup_key_mapper):
10598         * keymap.c (struct map_keymap_unsorted_closure):
10599         * keymap.c (map_keymap_unsorted_mapper):
10600         * keymap.c (map_keymap_sort_predicate):
10601         * keymap.c (map_keymap_sorted):
10602         * keymap.c (accessible_keymaps_mapper_1):
10603         * keymap.c (where_is_recursive_mapper):
10604         * keymap.c (describe_map_mapper):
10605         * keymap.c (describe_map_sort_predicate):
10606         * keymap.c (describe_map):
10607         * keymap.c (complex_vars_of_keymap):
10608         And a number of other files, the key modifier preprocessor
10609         constants that xemacs uses have names that conflict with constants
10610         defined under MS Windows for other purposes, so they were renamed
10611         to begin with the prefix XEMACS_. The variables that hold such
10612         modifiers were changed to consistently be of type int to fix
10613         various compile warnings.
10614
10615         * console.c (complex_vars_of_console):
10616         * device.c:
10617         * device-msw.c:
10618         * device-msw.c (mswindows_finish_init_device):
10619         * device-msw.c (msw_get_workspace_coords):
10620         * device-msw.c (mswindows_device_system_metrics):
10621         and various other files, added support for a new
10622         device property called offset-workspace which returns the position
10623         of the upper left corner of the workspace area and goes along with
10624         the existing size-workspace property.
10625
10626         * dialog-msw.c:
10627         * dialog-msw.c (push_bufbyte_string_as_unicode):
10628         * dialog-msw.c (mswindows_popup_dialog_box):
10629         Added support for XEmacs-style accelerator specifications in
10630         button text.  Note: I didn't add support for this under X Windows,
10631         and somebody needs to do this.
10632
10633         * dialog.c:
10634         * dialog.c (Fpopup_dialog_box):
10635         Documented the support for accelerators that was just mentioned.
10636
10637         editfns.c (get_home_directory): Changed behavior under Windows
10638         when HOME not defined; former behavior was irretrievably broken.
10639
10640         * emacs.c:
10641         * emacs.c (main_1):
10642         * emacs.c (main):
10643         * minibuf.c (clear_echo_area_internal):
10644         * minibuf.c (echo_area_append):
10645         * print.c:
10646         * print.c (std_handle_out_external):
10647         * print.c (std_handle_out_va):
10648         * print.c (fatal):
10649         * print.c (write_string_to_stdio_stream):
10650         * print.c (output_string):
10651         * print.c (debug_print):
10652         * print.c (debug_backtrace):
10653         * print.c (debug_short_backtrace):
10654         Cleaned up the code that prints text to stdout so that this can be
10655         changed to output into a console window instead under MS Windows,
10656         as described above.
10657
10658         * eval.c:
10659         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10660         * eval.c (internal_catch):
10661         * eval.c (unwind_to_catch):
10662         * eval.c (throw_or_bomb_out):
10663         * eval.c (condition_case_1):
10664         * eval.c (signal_1):
10665         * eval.c (check_error_state_sanity):
10666         * eval.c (call_with_suspended_errors_1):
10667         * eval.c (call_with_suspended_errors):
10668         * eval.c (reinit_vars_of_eval):
10669         Added code to catch throw loops and check for a pesky bug that may
10670         be gone now.
10671
10672         * event-msw.c:
10673         * event-msw.c (key_needs_default_processing_p):
10674         * event-msw.c (mswindows_wnd_proc):
10675         * event-msw.c (mswindows_modifier_state):
10676         * event-msw.c (emacs_mswindows_quit_p):
10677         * event-msw.c (vars_of_event_mswindows):
10678         a) Added support for using the alt key to select menu items as is
10679         standard under MS Windows.  This is controlled using the variable
10680         menu-accelerator-enabled, just like under X Windows.  There is an
10681         option on the options menu to turn this support on.  I really
10682         think that it should be on by default under Windows, but I'm not
10683         going to make this change yet.
10684
10685         b)  Added support for dynamic display size changes under Windows.
10686
10687         * event-stream.c:
10688         * event-stream.c (maybe_echo_keys):
10689         * event-stream.c (Fnext_event):
10690         * event-stream.c (command_builder_find_leaf):
10691         * event-stream.c (lookup_command_event):
10692         * event-stream.c (execute_command_event):
10693         * event-stream.c (pre_command_hook):
10694         * event-stream.c (post_command_hook):
10695         * event-stream.c (syms_of_event_stream):
10696         * event-stream.c (vars_of_event_stream):
10697         * event-stream.c (complex_vars_of_event_stream):
10698         * events.h (struct command_builder):
10699
10700         a) Tried to clean up a little bit the horribly written x-specific
10701         accelerator code that crept into this file.  I moved this code
10702         into menubar-x.c where it belongs. I also needed to move the
10703         command builder structure into the file events.h because it is
10704         accessed directly by this accelerator code.  What I didn't do, but
10705         which should be done at some point, is to properly abstract this
10706         code using device methods instead of the kludgy way that it
10707         currently hooks into the event code.
10708
10709         b) Added the lisp variables this-command-properties and
10710         last-command- properties, which should be used to synchronize two
10711         adjacent commands in preference to playing games with the variable
10712         this-command, which is typically what happens.
10713
10714         c) Added some slightly nasty code to hook into the lisp support
10715         for shifted- motion-key selection.  This is actually necessary for
10716         somewhat complicated reasons, which are described in
10717         simple.el. (NB: I think the proper thing would be to have the code
10718         that calls the pre and post command hooks also call out to generic
10719         lisp functions in simple.el, where all built-in stuff could be
10720         added.  I will think about this more.)
10721
10722         * event-unixoid.c (poll_fds_for_input):
10723         * lread.c (readchar):
10724         * redisplay-tty.c (tty_clear_frame):
10725         * redisplay-x.c (x_get_gc):
10726         * signal.c (interrupt_signal):
10727         And a whole bunch of other files: fixed up places that printed
10728         directly to stderr to instead call the function stderr_out so that
10729         the changes I made under Windows work correctly.
10730
10731         * filemode.c (mode_string):
10732         Warning fixes.
10733
10734         * frame-msw.c:
10735         * frame-msw.c (mswindows_size_frame_internal):
10736         Fixed the computation of frame size and position to keep the frame
10737         within the workspace area, rather than within the physical
10738         dimensions of the screen, so that the frame doesn't overlap window
10739         manager decorations, such as the start menu and toolbar, typically
10740         at the bottom of the screen.
10741
10742         * frame.c (vars_of_frame):
10743         Changed the default frame title format under MS Windows to consist
10744         of buffername-XEmacs, which is standard under MS Windows.  I think
10745         it might be a good idea to change this everywhere because I think
10746         it is superior to the current frame title format, but this is the
10747         kind of change that is likely to cause some people to get annoyed,
10748         so I'm not making it.
10749
10750         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10751
10752         * gui-msw.c (mswindows_handle_gui_wm_command):
10753         Fixed compile warnings.
10754
10755         * gui-x.c:
10756         * gui-x.c (strdup_and_add_accel):
10757         * gui-x.c (button_item_to_widget_value):
10758         * gui-x.h:
10759         Added code to automatically put an accelerator onto the beginning
10760         of menu items that don't have one as is now the standard, and is
10761         described more later.  Also fixed things so that the menu item
10762         name can be an evaluated expression, again a new standard.
10763
10764         * gui.c:
10765         * gui.c (gui_item_add_keyval_pair):
10766         * gui.c (make_gui_item_from_keywords_internal):
10767         * gui.c (gui_add_item_keywords_to_plist):
10768         * gui.c (gui_item_accelerator):
10769         * gui.c (gui_name_accelerator):
10770         * gui.c (gui_item_included_p):
10771         * gui.c (gui_item_display_flush_left):
10772         * gui.c (gui_item_display_flush_right):
10773         * gui.c (parse_gui_item_tree_item):
10774         * gui.c (parse_gui_item_tree_children):
10775         * gui.c (parse_gui_item_tree_list):
10776         Mule-ized.  Cleanup.  GCPRO addition.
10777
10778         * line-number.c (buffer_line_number):
10779         * lisp.h:
10780         * lisp.h (EMACS_INT_MAX):
10781         Added the manifest constant EMACS_INT_MIN corresponding to the
10782         existing constant EMACS_INT_MAX.  This is partially to fix compile
10783         warnings under Windows, and partly for cleanliness.
10784
10785         * menubar-msw.c:
10786         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10787         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10788         * menubar-msw.c (displayable_menu_item):
10789         * menubar-msw.c (populate_menu_add_item):
10790         * menubar-msw.c (populate_or_checksum_helper):
10791         * menubar-msw.c (populate_menu):
10792         * menubar-msw.c (update_frame_menubar_maybe):
10793         * menubar-msw.c (prune_menubar):
10794         * menubar-msw.c (msw_char_is_accelerator):
10795         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10796         * menubar-msw.c (mswindows_handle_wm_command):
10797         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10798         * menubar-msw.c (mswindows_handle_wm_initmenu):
10799         * menubar-msw.c (mswindows_update_frame_menubars):
10800         * menubar-msw.c (mswindows_free_frame_menubars):
10801         * menubar-msw.c (mswindows_popup_menu):
10802         Fixed a bug in handling accelerators where an extra character
10803         would be displayed in the menu item.  Also generalized the
10804         function displayable_menu_item because it is now used by the
10805         dialog box code as well.  And finally, added code in the functions
10806         that create the menubar to extract a list of accelerators for the
10807         top level menubar, which is used in the event code to determine
10808         whether a particular alt-key combination should be used to invoke
10809         a menu item, or should be passed through to access the standard
10810         XEmacs keymap binding for this key combination.
10811
10812         Much needed GCPROing.
10813
10814         * menubar-x.c:
10815         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10816         * menubar-x.c (menu_item_descriptor_to_widget_value):
10817         * menubar-x.c (restore_in_menu_callback):
10818         * menubar-x.c (x_popup_menu):
10819         * menubar-x.c (menu_move_up):
10820         * menubar-x.c (menu_move_down):
10821         * menubar-x.c (menu_move_left):
10822         * menubar-x.c (menu_move_right):
10823         * menubar-x.c (menu_select_item):
10824         * menubar-x.c (command_builder_operate_menu_accelerator):
10825         * menubar-x.c (menu_accelerator_junk_on_error):
10826         * menubar-x.c (command_builder_find_menu_accelerator):
10827         * menubar-x.c (Faccelerate_menu):
10828         * menubar.h:
10829         Moved a whole bunch of code here that was previously in
10830         event-stream.c as described above.  There is also code connected
10831         to the new standard of adding an accelerator to the beginning of
10832         menu items that don't have one as described above and below.
10833
10834         * menubar.c:
10835         * menubar.c (menu_parse_submenu_keywords):
10836         * menubar.c (Fmenu_find_real_submenu):
10837         * menubar.c (Fnormalize_menu_item_name):
10838         * menubar.c (syms_of_menubar):
10839         * menubar.c (vars_of_menubar):
10840         * menubar.c (complex_vars_of_menubar):
10841
10842         a) Cleaned up a bunch of documentation and improved it.
10843
10844         b) XEmacs now automatically adds an accelerator onto the beginning
10845         of any menu items that don't have one.  I did this because there
10846         will inevitably be some menu items on the main menubar that don't
10847         have accelerators on them because the package that adds that
10848         particular menu item hasn't yet been fixed up to have accelerators
10849         in them and it looked rather strange to have some items with and
10850         some items without accelerators, especially since even in items
10851         without accelerators, you can, at least under windows, still
10852         access the item through an accelerator corresponding to the first
10853         character in the item's name.  If people don't like this behavior,
10854         I can add a variable to turn it off optionally, but I'm not sure
10855         this is a good idea because we really do need to have accelerators
10856         on all of the menu items, and if a package doesn't like the
10857         accelerators being put on the first character, then it should put
10858         the accelerators where they belong.
10859
10860         c) I made a behavior change, which is that the descriptor that
10861         specifies the text of the menu item, which formerly was just a
10862         string, can now also be an evaluated expression.  This makes this
10863         descriptor parallel with all of the others, which could also be
10864         evaluated expressions.  This also obviates the need for the
10865         keyword :label, which was previously listed in the documentation
10866         as unimplemented, and which was for the same purpose.
10867
10868         d) GCPROing.
10869
10870         * ntproc.c:
10871         * ntproc.c (new_child):
10872         * ntproc.c (sys_spawnve):
10873         * ntproc.c (find_child_console):
10874         * ntproc.c (sys_kill):
10875         Fixed compile warnings.  By the way, this file should really go
10876         away entirely, and this will happen as soon as Kirill makes his
10877         final round of process cleanups, which affect the function
10878         call-process.
10879
10880         * process-nt.c:
10881         * process-nt.c (struct nt_process_data):
10882         * process-nt.c (find_process_from_pid):
10883         * process-nt.c (send_signal_the_nt_way):
10884         * process-nt.c (enable_child_signals):
10885         * process-nt.c (find_child_console):
10886         * process-nt.c (send_signal_the_95_way):
10887         * process-nt.c (nt_finalize_process_data):
10888         * process-nt.c (ensure_console_window_exists):
10889         * process-nt.c (nt_create_process):
10890         * process-nt.c (nt_kill_child_process):
10891         * process-nt.c (nt_kill_process_by_pid):
10892         * process-nt.c (nt_open_network_stream):
10893         * process-nt.c (vars_of_process_nt):
10894         Copied over code from Emacs 20.5 to correctly send signals to sub-
10895         processes under Windows 95.  Also added code to automatically
10896         create and hide console window when a sub-process is created under
10897         Windows 95, which obviates the need for the separate runemacs.exe
10898         executable, and finally implemented some variables that were
10899         implemented in Emacs 20.5, but previously not in XEmacs.  These
10900         include mswindows- start-process-share-console and
10901         mswindows-start-process-inherit-error-mode. (Both of these only
10902         apply to Windows 95.)
10903
10904         * regex.c (regex_compile): Fixed a compile warning.
10905
10906         * select-msw.c:
10907         * select-msw.c (mswindows_own_selection):
10908         * select-msw.c (mswindows_get_foreign_selection):
10909         * select-msw.c (mswindows_disown_selection):
10910         * select-msw.c (console_type_create_select_mswindows):
10911         * select-msw.c (syms_of_select_mswindows):
10912         Cleaned up the file and implemented the device method
10913         selection_exists_p, which had accidentally been left out.  Also
10914         removed four lisp functions that were remnants from before the
10915         time when the selection code was properly device abstracted.
10916         These functions are no longer needed because there are generic
10917         equivalents, and because they were added recently and don't exist
10918         in FSF Emacs, I don't think there's any problem with just deleting
10919         them.
10920
10921         * sysdep.c:
10922         * sysdep.c (sys_subshell):
10923         Fixed a compile warning, although in this case there's probably
10924         something wrong with this code, and it ought to be looked into
10925         more thoroughly by somebody who understands it.
10926
10927         * window.c:
10928         * window.c (Fwindow_text_area_height):
10929         * window.c (Fwindow_width):
10930         * window.c (Fwindow_full_width):
10931         * window.c (Fwindow_pixel_width):
10932         * window.c (debug_print_window):
10933         * window.c (syms_of_window):
10934         Added functions window-text-area-height and window-full-width,
10935         which are functions for returning various width and height
10936         characteristics of a window. (One of these functions is necessary
10937         for making the file dialog box work correctly, and the other one
10938         was added for completeness.)  Also added a table to the
10939         documentation for window-height which describes the entire scheme
10940         for accessing width and height characteristics of a window.
10941
10942 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10943
10944         * nt.c (fstat): Added a comment for another problem with
10945         non-encapsulated [f]stat(), reported by Adrian Aichner
10946         <aichner@ecf.teradyne.com>.
10947
10948 2000-03-11  Andy Piper  <andy@xemacs.org>
10949
10950         * window.c (make_dummy_parent): initialize subwindow instance
10951         cache.
10952         (Fset_window_configuration): zero extent_modiff.
10953
10954 2000-03-10  Andy Piper  <andy@xemacs.org>
10955
10956         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10957         more changes can be triggered.
10958         (Fredisplay_frame): ditto.
10959         (Fredraw_device): ditto.
10960         (Fredisplay_device): ditto.
10961         (redisplay_frame): make non-static.
10962         (redisplay_frame): call update_frame_gutter_geometry outside of
10963         display proper.
10964
10965         * gutter.h: declare update_frame_gutter_geometry.
10966
10967         * redisplay.h: declare redisplay_frame.
10968
10969         * gutter.c (update_frame_gutter_geometry): move geometry changes
10970         in update_frame_gutters here. Geometry changes can only occur
10971         outside of redisplay.
10972         (update_frame_gutters): remove geometry change code.
10973         (Fredisplay_gutter_area): make sure that we are in display when we
10974         update and that we have flushed any size changes.
10975
10976 2000-03-11  Andy Piper  <andy@xemacs.org>
10977
10978         * alloc.c (pdump_dump_data): remove i & count shadows.
10979
10980 2000-02-27  Mike Alexander  <mta@arbortext.com>
10981
10982         * sysdep.h: Declare pdump_read_file
10983
10984         * sysdep.c (pdump_read_file): New function
10985
10986         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10987         dump data
10988
10989 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10990
10991         * lrecord.h: add `lrecord_type_pgsetenv'.
10992
10993 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10994
10995         * symsinit.h: declare (vars|syms)_of* functions.
10996         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10997
10998 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10999
11000         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11001
11002         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11003         GCCs.
11004
11005         * emacs.c (main_1): Call postgres initialization code.
11006
11007         * postgresql.h: New file.  PostgreSQL RDBMS support.
11008         * postgresql.c: New file.
11009
11010 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11011
11012         * redisplay-output.c (redisplay_output_display_block): Disable
11013         redundant code.
11014
11015 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11016
11017         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11018         (Fcanna_henkan_next): Ditto.
11019         (Fcanna_bunsetu_henkou): Ditto.
11020         (Fcanna_henkan_kakutei): Ditto.
11021         (Fcanna_henkan_end): Ditto.
11022         (Fcanna_henkan_quit): Ditto.
11023         (Fcanna_henkan_next): Set retun value correctly.
11024         (c2mu): Use unsigned char instead of signed char.
11025
11026 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11027
11028         * emacs.c (main_1): Always call syms_of_gui.
11029         * inline.c: include gui.h
11030
11031 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11032
11033         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11034         converted to Lisp_Object.
11035         (Qtop_bottom): New variable.
11036         (syms_of_redisplay): Initialize it.
11037         * redisplay.h (Vvisible_bell): Ditto.
11038         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11039         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11040         only flash top and bottom.
11041
11042 2000-03-08  Andy Piper  <andy@xemacs.org>
11043
11044         * buffer.c (Frename_buffer): record new buffer name the right way.
11045
11046 2000-03-08  Andy Piper  <andy@xemacs.org>
11047
11048         * glyphs.c (update_subwindow): increase hash depth so that widget
11049         items get picked up properly.
11050
11051         * redisplay-output.c (compare_runes): increase hash depth so that
11052         widget items get picked up properly.
11053
11054 2000-03-08  Andy Piper  <andy@xemacs.org>
11055
11056         * gutter.c (output_gutter): add some debug.
11057
11058         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11059         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11060         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11061
11062         * redisplay-output.c (compare_runes): use display_hash to
11063         determine if glyphs really are not the same.
11064
11065         * glyphs.c (update_subwindow): check display_hash to see if
11066         anything really needs to be updated. If not then do
11067         nothing. Record the display_hash after updating.
11068         (image_instance_equal): compare the image_instance face also.
11069
11070 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11071
11072         * redisplay.h: Fix comment style.
11073
11074 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11075
11076         * consle-msw.h (struct mswindows_frame):
11077         Added new member paint_pending to indicate whether a WM_PAINT
11078         magic event has been queued for this frame.
11079
11080         * event-msw.c (mswindows_drain_windows_queue):
11081         Don't queue a WM_PAINT magic event if one is already queued.
11082         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11083
11084         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11085
11086 2000-03-07  Didier Verna  <didier@xemacs.org>
11087
11088         * dired.c: #include `regex.h' after `sysfile.h'.
11089
11090 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11091
11092         * sound.c (init_nas_sound): Fix compiler warning.
11093
11094         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11095         (FREE_STRUCT_P):
11096         (MARK_STRUCT_AS_FREE):
11097         (MARK_STRUCT_AS_NOT_FREE):
11098         Make `gcc -fstrict-aliasing' work properly.
11099
11100 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11101
11102         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11103         (mswindows_delete_device): Call CoUnnitialize().
11104
11105         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11106
11107 2000-02-25    <CraigL@DyCon.com>
11108
11109         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11110         <errno.h>.
11111
11112         * sysdep.c: This extern declaration for environ prevents MinGW
11113         from finding the variable in CRTDLL.DLL.
11114
11115         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11116         windows headers.
11117         (SHGFI_EXETYPE): ..
11118         (WM_MOUSEWHEEL): ..
11119         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11120         definitions.
11121         (MMRESULT): Removed, now defined in cygwin's windows headers.
11122         (TIMECAPS): ..
11123         (uid_t,gid_t,pid_t,ssize_t): ..
11124         (_timeb): Removed, MinGW defines both _timeb and timeb.
11125         (HAVE_H_ERRNO): Added.
11126         (HAVE_TZNAME): Added, configure is not detecting this.
11127
11128 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11129
11130         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11131         * syntax.c (syntax_match): Use it.
11132
11133         * cmds.c: Import auto-fill-chars from FSF Emacs.
11134         (Vauto_fill_chars): New variables.
11135         (internal_self_insert): Check Vauto_fill_chars.
11136         (vars_of_cmds):
11137         Declare auto-fill-chars as a Lisp variable and initialize it.
11138
11139 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11140
11141         * fileio.c (Fmake_symbolic_link):
11142         (Ffile_symlink_p):
11143         Run handlers even if local machine doesn't have symlinks.
11144
11145 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11146
11147         * event-msw.c (mswindows_drain_windows_queue):
11148         Don't generate paint magic events for non-XEmacs frames.
11149
11150 2000-03-05  Andy Piper  <andy@xemacs.org>
11151
11152         * redisplay.c (redisplay_frame): generate_displayable_area and
11153         friends assumes that we are not in GC, we therefore have to make
11154         sure that this doesn't happen.
11155
11156         * gutter.c (calculate_gutter_size): generate_displayable_area
11157         assumes that we are not in GC, we therefore have to make sure that
11158         this doesn't happen.
11159
11160 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11161
11162         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11163
11164 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11165
11166         * redisplay.c (regenerate_window): Make sure we set a sane value
11167         for end_pos even if we jump out of the loop.
11168         (regenerate_window): Answer Ben's question :-).
11169         (start_end_of_last_line): Add may_error argument.
11170         (start_of_last_line):
11171         (end_of_last_line): Pass may_error = 0.
11172         (end_of_last_line_may_error): New function.
11173         (pixel_to_glyph_translation): Use it, so we don't crash in
11174         event_to_glyph.
11175
11176 2000-03-04  Andy Piper  <andy@xemacs.org>
11177
11178         * window.h (struct window): add gutter_extent_modiff.
11179
11180         * window.c (allocate_window): zero out gutter_extent_modiff.
11181
11182         * redisplay.h: declare sync_display_line_structs.
11183
11184         * redisplay.c (add_glyph_rune): add a better comment.
11185
11186         * redisplay-output.c (sync_display_line_structs): made non-static.
11187         (compare_runes): remove unneccesary glyph cachel access.
11188
11189         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11190
11191         * gutter.c (output_gutter): don't output the gutter if extent
11192         changes only involve extents in buffers. use 4 sets of display
11193         lines.
11194         (gutter_extent_signal_changed_region_maybe): new function. Mark
11195         extents in gutters as changed.
11196         (update_frame_gutters): use 4 sets of display lines.
11197         (reset_gutter_display_lines): ditto.
11198         (free_frame_gutters): ditto.
11199         (redraw_exposed_gutter): force output of gutters.
11200
11201         * frame.h (struct frame): add 4 sets of gutter display lines.
11202
11203         * extents.c: (extent_changed_for_redisplay): signal changes to
11204         extents in strings in the gutter as well as extents in buffers.
11205
11206 2000-03-02  Andy Piper  <andy@xemacs.org>
11207
11208         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11209
11210         * frame.c (Fmake_frame): make sure the gutters get initialized
11211         after the frame is visible.
11212         (set_frame_selected_window): re-arrange compilation macros a
11213         little.
11214         (change_frame_size_1): mark gutters changed.
11215
11216         * device.c (Fset_device_class): mark gutters changed.
11217
11218 2000-03-01  Andy Piper  <andy@xemacs.org>
11219
11220         * window.c (window_top_frame_gutter_height): deleted.
11221         (window_bottom_frame_gutter_height): ditto.
11222         (window_left_frame_gutter_height): ditto.
11223         (window_right_frame_gutter_height): ditto.
11224         (window_top_gutter_height): don't use them.
11225         (window_bottom_gutter_height): ditto.
11226         (window_left_gutter_width): ditto.
11227         (window_right_gutter_width): ditto.
11228         (Fsplit_window): ditto.
11229         (Fwindow_pixel_edges): don't use border dimensions here.
11230
11231         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11232         (update_scrollbar_instance): ditto.
11233
11234         * redisplay.c (generate_modeline): don't take gutters into account.
11235         (generate_modeline): ditto.
11236         (redisplay_frame): small gutter display optimization.
11237
11238         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11239
11240         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11241         gutters into account.
11242
11243         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11244         for window position and type.
11245
11246         * gutter.c (get_gutter_coords): fix for frame gutters.
11247         (update_frame_gutters): update frame geometry if the gutters have
11248         changed.
11249         (init_frame_gutters): record current gutter geometries.
11250
11251         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11252         var.
11253         (mswindows_widget_instantiate): ditto.
11254
11255         * frame.h (struct frame): add current_gutter_bounds.
11256
11257         * frame.c (change_frame_size_1): position window and minibuffer
11258         appropriately taking into account the frame gutters.
11259
11260         * frame-x.c: (x_initialize_frame_size): take into account the
11261         frame gutters.
11262
11263 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11264
11265         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11266
11267 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11268
11269         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11270
11271 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11272
11273         * file-coding.c (reset_decoding_stream): Clear previous
11274         detection state when autodetect.
11275
11276 2000-02-29  Didier Verna  <didier@xemacs.org>
11277
11278         * extents.c (set_extent_glyph_1): don't require extents to be
11279         attached.
11280
11281 2000-02-27  Andy Piper  <andy@xemacs.org>
11282
11283         * gutter.c (Fset_default_gutter_position): don't default left and
11284         right gutter visibility to t.
11285         (Fset_default_gutter_position): run
11286         default-gutter-position-changed-hook.
11287         (syms_of_gutter): add default-gutter-position-changed-hook.
11288
11289 2000-02-26  Andy Piper  <andy@xemacs.org>
11290
11291         * specifier.c (Fmake_specifier): add gutter references.
11292
11293         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11294
11295         * lisp.h: declare Fvalid_plist_p.
11296
11297         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11298         as changed.
11299         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11300         well as its visibility so that it gets reconstructed.
11301         (construct_window_gutter_spec): new function. Construct a string
11302         to be displayed in the gutter from a plist of strings. Take care
11303         to only use elements that are declared as visible.
11304         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11305         WINDOW_GUTTER.
11306         (gutter_validate): allow plists of strings in the specifier.
11307         (gutter_specs_changed): construct the real_gutter from the gutter
11308         specs using construct_window_gutter_spec.
11309         (gutter_visible_validate): gutter-visible is a new specifier type.
11310         (Fgutter_visible_specifier_p): new function for the new specifier.
11311         (syms_of_gutter): declare gutter-visible and
11312         Fgutter_visible_specifier_p.
11313         (specifier_type_create_gutter): intitalize new gutter-visible
11314         specifier.
11315         (reinit_specifier_type_create_gutter): ditto.
11316         (specifier_vars_of_gutter): use new specifier type for gutter
11317         visibility.
11318         (init_frame_gutters): construct real_gutter correctly.
11319         (Fgutter_specifier_p): beef up documentation.
11320         (Fgutter_size_specifier_p): ditto.
11321
11322         * winslots.h: add real_gutter slots.
11323
11324 2000-02-25  Andy Piper  <andy@xemacs.org>
11325
11326         * device-msw.c: Be kind to older cygwin versions. From Raymond
11327         Toy <toy@rtp.ericsson.se>.
11328
11329         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11330         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11331
11332 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11333
11334         * elhash.c (MARK_OBJ): Practice macro hygiene.
11335
11336 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11337
11338         * miscplay.c: s/__inline__/inline/g;
11339         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11340         (get_device_compdc): INLINE ==> static inline
11341         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11342         find -name '*.h' | \
11343         xargs global-replace \
11344         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11345
11346 2000-02-25  Andy Piper  <andy@xemacs.org>
11347
11348         * window.c (window_top_frame_gutter_height): new function.
11349         (window_top_window_gutter_height): ditto.
11350         (window_top_gutter_height): use them.
11351         (window_bottom_frame_gutter_height): new function.
11352         (window_bottom_window_gutter_height): ditto.
11353         (window_bottom_gutter_height): use them.
11354         (window_left_window_gutter_width): new function.
11355         (window_left_frame_gutter_width): ditto.
11356         (window_left_gutter_width): use them.
11357         (window_right_window_gutter_width): new function.
11358         (window_right_frame_gutter_width): ditto.
11359         (window_right_gutter_width): use them.
11360         (window_pixel_height): new function. calulate window pixel height
11361         with frame gutter involvement.
11362         (Fsplit_window): calculate new sizes taking frame gutters into
11363         account.
11364         (window_char_height_to_pixel_height): don't include frame gutters.
11365         (window_char_height): use window_pixel_height.
11366         (window_pixheight): rename from window_pixel_height.
11367         (change_window_height): use it.
11368         (window_pixel_height_to_char_height): don't include frame gutters.
11369         (window_char_width_to_pixel_width): ditto.
11370
11371 2000-02-25  Andy Piper  <andy@xemacs.org>
11372
11373         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11374         if it is.
11375
11376 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11377
11378         * alloc.c (staticpro):
11379         (staticpro_nodump):
11380         (dumpstruct):
11381         (dumpopaque):
11382         (pdump_wire):
11383         (pdump_wire_list):
11384         (compact_string_chars):
11385         (pdump_dump_wired):
11386         Convert:  if (foo) abort();  ==>  assert (! foo);
11387
11388         * eldap.c (Fldap_search_basic):
11389         (Fldap_add):
11390         (Fldap_modify):
11391         (Fldap_delete):
11392         Fix compiler warnings, and possible crashes if (random) return
11393         value were to be used.
11394
11395 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11396
11397         * device-msw.c: Workaround ResetDC failure.
11398
11399         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11400         applying a devmode.
11401
11402         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11403         (mswindows_text_width): Do not start printer page.
11404
11405         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11406
11407         * glyphs-msw.c: Added image methods to msprinter console and
11408         msprinter-specific image instantiation.
11409
11410 2000-02-20  Mike Alexander  <mta@arbortext.com>
11411
11412         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11413         to avoid crashes when selection-sets-clipboard is on
11414         (mswindows_own_selection): ditto
11415
11416 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11417
11418         * glyphs-msw.c:
11419         * redisplay-msw.c (get_frame_dc):
11420         (get_frame_compdc):
11421         * console-msw.h:
11422         * device-msw.c (mswindows_init_device):
11423         (mswindows_delete_device):
11424         (msprinter_init_device):
11425         (msprinter_delete_device):
11426         * frame-msw.c (mswindows_init_frame_1):
11427         (mswindows_delete_frame):
11428         (msprinter_init_frame_3):
11429         (msprinter_delete_frame): Move compatible DC to device object from
11430         frame object, for both mswindows and msprinter. Only one at a time
11431         is needed, it is a real waste to have one per frame!
11432
11433 2000-02-23  Andy Piper  <andy@xemacs.org>
11434
11435         * glyphs.c: add dynamic width and height elements.
11436         (image_instance_equal): ditto.
11437
11438         * glyphs-widget.c (widget_query_geometry): calculate width and
11439         height dynamically if required.
11440         (initialize_widget_image_instance): initialize dynamic dimensions.
11441         (widget_instantiate): pick-up dynamic dimensions.
11442
11443         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11444         dynamic determination. Add appropriate macros.
11445
11446         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11447         dimensions safe.
11448         (WINDOW_GUTTER_SIZE): ditto.
11449         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11450
11451         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11452         inline.
11453         (get_frame_dc): ditto.
11454
11455         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11456         here.
11457
11458 2000-02-23  Martin Buchholz <martin@xemacs.org>
11459
11460         * XEmacs 21.2.31 is released.
11461
11462 2000-02-22  Ben Wing <ben@xemacs.org>
11463
11464         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11465
11466 2000-02-22  Andy Piper  <andy@xemacs.org>
11467
11468         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11469
11470 2000-02-21  Mike Sperber <mike@xemacs.org>
11471
11472         * .dbxrc:
11473         * .gdbinit:
11474         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11475         variables.
11476
11477 2000-02-21  Mike Sperber <mike@xemacs.org>
11478
11479         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11480
11481 2000-02-21  Martin Buchholz <martin@xemacs.org>
11482
11483         * XEmacs 21.2.30 is released.
11484
11485 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11486
11487         Performance hacking.
11488         * *.c (syms_of_*):
11489         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11490         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11491         * emacs.c (main_1):
11492         * lisp.h (DEFUN):
11493         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11494         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11495         * symeval.h (DEFVAR_SYMVAL_FWD):
11496         * symbols.c (guts_of_unbound_marker):
11497         Make all c_readonly objects also lisp_readonly and marked for life.
11498         * lrecord.h (struct lrecord_implementation):
11499         Document flags better.
11500         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11501         * lrecord.h (DECLARE_LRECORD):
11502         * lrecord.h (XSETRECORD):
11503         * lrecord.h (RECORDP):
11504         * lrecord.h (RECORD_TYPEP):
11505         * lrecord.h (RECORD_MARKER): New.
11506         * lrecord.h (error_check_*):
11507         * lrecord.h (CONCHECK_NONRECORD):
11508         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11509         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11510         * lrecord.h (set_lheader_implementation):
11511         * lrecord.h (enum lrecord_type): New.
11512         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11513         * alloc.c (disksave_object_finalization_1):
11514         * alloc.c (mark_object):
11515         * alloc.c (lrecord_type_index):
11516         * alloc.c (tick_lcrecord_stats):
11517         * alloc.c (Fgarbage_collect):
11518         * alloc.c (init_alloc_once_early):
11519         * alloc.c (pdump_load):
11520         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11521         * alloc.c (lrecord_type_index): Delete.
11522         Make lisp object type indexes be constant.
11523           Makes (byte-compile) 5% faster.
11524         Put all marker functions into their own array.
11525           Makes (garbage-collect) 5% faster.
11526         Optimize SYMBOL_VALUE_MAGIC_P.
11527           Makes (byte-compile) 2-3% faster.
11528         * config.h.in (gc_checking_assert): New.
11529         * alloc.c: Use gc_checking_assert().
11530         * .dbxrc: Make compatible with new object type implementation.
11531         * .gdbinit: Make compatible with new object type implementation.
11532         * alloc.c: Delete all symbols defined only for debugging, such as
11533         Lisp_Type_Vector and lrecord_charset.
11534
11535 2000-02-21  Andy Piper  <andy@xemacs.org>
11536
11537         * gui-msw.c (Fmswindows_shell_execute): fix file location
11538         problems.
11539
11540         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11541         unshowing so that set_window_buffer doesn't undo
11542         kill_buffer_hook's hard work.
11543
11544         * glyphs-widget.c (tab_control_query_geometry): don't count the
11545         first item when calculating geometry.
11546
11547         * glyphs.c (map_subwindow): remove redundant code.
11548         (update_frame_subwindows): be more circumspect about when to
11549         update subwindows.
11550
11551         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11552         when items haven't changed. Update faces if faces have changed as
11553         well as just the widget face.
11554         (x_tab_control_update): Update faces if faces have changed as well
11555         as just the widget face.
11556
11557 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11558
11559         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11560         registration.
11561         (build_syscolor_string): Use mswindows_color_to_string to try to
11562         get a named color.
11563         (mswindows_device_system_metrics): Reverse the foreground and
11564         background colors so that they match the documentation.
11565
11566         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11567         they match the default Windows palette.
11568         (mswindows_color_to_string): New function.
11569
11570 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11571
11572         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11573
11574 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11575
11576         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11577         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11578
11579         * symbols.c (init_symbols_once_early): Removed obsolete
11580         DATA_SEG_BITS related kludge.
11581         (defvar_magic): Ditto.
11582
11583         * malloc.c: Removed obsolete DATA_SEG_BITS
11584         * ralloc.c: Ditto.
11585         * mem-limits.h: Ditto.
11586
11587         * Makefile.in.in: Removed obsolete HAVE_SHM
11588         * emacs.c: Ditto.
11589
11590 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11591
11592         *  device-msw.c (mswindows_delete_device): Free DDE string
11593         handles.
11594
11595 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11596
11597         * keymap.c (get_keyelt):
11598         * unexnt.c (unexec):
11599         * vm-limit.c (memory_warnings):
11600         * ntheap.c (recreate_heap):
11601         * ntheap.h (UNINIT_PTR):
11602         * select-msw.c (Fmswindows_get_clipboard):
11603         (Fmswindows_set_clipboard):
11604         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11605         * objects-msw.c:
11606         * menubar-msw.c (displayable_menu_item):
11607         * glyphs-msw.c:
11608         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11609         * sysdep.c (sys_subshell):
11610         * process-nt.c (nt_create_process):
11611         * nt.c (normalize_filename):
11612         (dostounix_filename):
11613         (unixtodos_filename):
11614         * ntproc.c (win32_executable_type):
11615         * ntplay.c (play_sound_data_1):
11616         (play_sound_file):
11617         * editfns.c (get_home_directory):
11618         * event-msw.c (struct winsock_stream):
11619         (mswindows_dde_callback):
11620         * device-msw.c (msprinter_init_device):
11621         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11622
11623         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11624         mswindows_clear_toolbar were swapped!
11625
11626         * objects-msw.c:(colormap_t):
11627         (fontmap_t):
11628         * emacs.c (struct standard_args): Fixed const jumble.
11629
11630         * glyphs-widget.c (update_widget): Fixed comparison notation.
11631
11632         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11633
11634         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11635         __declspec(noreturn) syntax.
11636
11637 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11638
11639         * eldap.c (Fldap_open):
11640         (Fldap_search_basic):
11641         (Fldap_add):
11642         (Fldap_modify):
11643         Use new coding system conversion macros.
11644
11645 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11646
11647         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11648
11649 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11650
11651         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11652         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11653
11654         * eldap.c (Qadd, Qreplace): New constant symbols
11655         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11656         interruptions by XEmacs signals
11657         Remove unnecessary calls to slow_down_interrupts and
11658         speed_up_interrupts
11659         (Fldap_search_basic): Renamed from Fldap_search_internal
11660         Added new optional parameter VERBOSE that triggers the
11661         display of progress messages
11662         Remove unnecessary calls to slow_down_interrupts and
11663         speed_up_interrupts
11664         LDAP result code analysis rewritten
11665         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11666         (syms_of_eldap): Define the new symbols and functions
11667
11668
11669 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11670
11671         * realpath.c: Determine PATH_MAX maximally portably.
11672
11673         * insdel.c (bytecount_to_charcount): Optimize.
11674         The function used to be optimized for entirely ASCII sequences.
11675         Now it is optimized for successive characters from the same
11676         charset.  This also wins big for _mostly_ ASCII sequences.
11677
11678         * fileio.c (Ffile_truename): convert return from realpath() using
11679         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11680         - Rewrite GCPROing slightly.
11681
11682         * sysdep.c (sys_open): Do filename conversion, like all other
11683         sys_* functions.  Fixes bug:
11684         (let ((file-name-coding-system 'iso-8859-2))
11685            (write-region x y latin2-name))
11686         ==> writes filename using internal encoding.
11687
11688 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11689
11690         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11691         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11692         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11693         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11694         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11695         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11696         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11697         (CONST_IF_NOT_DEBUG): Delete.
11698         * alloc.c (this_one_is_unmarkable): Delete.
11699         (mark_object): Don't check for this_one_is_unmarkable. Use the
11700         c_readonly flag instead.
11701         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11702
11703 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11704
11705         * event-msw.c (mswindows_drain_windows_queue):
11706         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11707         away redundant repaint events.
11708
11709 2000-02-17  Andy Piper  <andy@xemacs.org>
11710
11711         * redisplay.h: declare mark_redisplay_structs.
11712
11713         * redisplay.c (redisplay_window):
11714         (redisplay_frame): don't check subwindows_state_changed.
11715         (mark_redisplay): mark gutters here.
11716
11717         * glyphs.c: (instantiate_image_instantiator): always layout if we
11718         haven't done so already.
11719         (allocate_image_instance): don't mark as dirty.
11720         (update_subwindow): bind inhibit_quit.
11721
11722         * gutter.c (mark_gutters): new function.
11723
11724         * glyphs-x.c (x_update_widget): Always resize to get round a
11725         widget bug.
11726
11727         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11728         breaking absolutely everything.
11729
11730         * gutter.h: declare mark_gutters.
11731
11732 2000-02-16  Martin Buchholz <martin@xemacs.org>
11733
11734         * XEmacs 21.2.29 is released.
11735
11736 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11737
11738         * fns.c (size_bit_vector): Fix computation of the size.
11739
11740 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11741
11742         * *.[ch]: Change CONST to const globally.
11743         find -name '*.[ch]' | \
11744         xargs global-replace \
11745         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11746         - Remove vestigial references to CONST_IS_LOSING
11747
11748 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11749
11750         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11751         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11752         events instead of dispatching them directly.
11753         (mswindows_handle_paint): New function to do repainting.
11754         (mswindows_wnd_proc):
11755         (emacs_mswindows_handle_magic_event): Call above function.
11756
11757 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11758
11759         * objects-msw.c (mswindows_create_font_variant): Return the new
11760         font handle.
11761         (initialize_font_instance): Get font metrics from the underlined
11762         variant of the font to cope with the case where the underlined
11763         font has a bigger descent.
11764
11765 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11766
11767         * gui.c (gui_item_accelerator): Return the first underlined
11768         character in item name.
11769
11770 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11771
11772         * lisp.h: Added Qprinter.
11773
11774         * general.c (syms_of_general): Initialized it.
11775
11776         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11777         (get_frame_dc):
11778         (get_frame_compdc): Made inline.
11779
11780         * console.h (struct console_methods): Added eject_page method.
11781
11782         * frame.h: Added FRAME_DISPLAY_P and friends.
11783         Aligned backslahes in many macros in more readable fashion.
11784         Added page_number to struct frame, and an accessor macro
11785         for it.
11786
11787         * defice.h: Added DEVICE_DISPLAY_P and friends.
11788
11789         * device.c (Fdevice_printer_p): Used these.
11790
11791         * frame.c (allocate_frame_core): Initialize page number.
11792         (Fprint_job_page_number):
11793         (Fprint_job_eject_page): Implemented.
11794
11795         * frame-msw.c (msprinter_eject_page): Added method.
11796         (msprinter_start_page): Added.
11797
11798         * window.c (Fwindow_truncated_p): Fixed docstring.
11799         (Fwindow_last_line_visible_height): Implemented.
11800
11801 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11802
11803         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11804
11805 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11806
11807         * syntax.c (scan_words): Always advance at least one character.
11808
11809 2000-02-13  Andy Piper  <andy@xemacs.org>
11810
11811         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11812         to make sure the glyph is in the cachels.
11813
11814         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11815         global image instance flag.
11816         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11817         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11818
11819         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11820         (Fset_image_instance_property): mark layout as changed.
11821         (invalidate_glyph_geometry_maybe): mark layout as changed.
11822         (glyph_width): use new NEEDS_LAYOUT macro.
11823         (glyph_ascent): ditto.
11824         (glyph_descent): ditto.
11825         (glyph_height): ditto.
11826         (image_instance_layout): mark layout as clean after laying out.
11827         (update_subwindow): don't mark layout as clean here.
11828
11829         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11830         should no longer be needed.
11831
11832         * glyphs-x.c (x_update_widget): sanitize asserts.
11833         (x_finalize_image_instance): sanitize assignment to widgets.
11834
11835         * glyphs-widget.c (widget_instantiate): don't need to clear the
11836         layout flag here.
11837
11838 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11839
11840         * sysdep.c (getcwd): Use standard prototype.
11841         * sysdep.h (getcwd): Use standard prototype.
11842
11843         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11844         (sequence, start, end).
11845         Remove redundant type checking.
11846         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11847         view of `caller-protects') to avoid a crash where the real fix was
11848         found elsewhere.
11849
11850 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11851
11852         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11853
11854         * s/sol2.h: Remove feature macro initialization.
11855
11856         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11857         (vector_hash): New.  Code from internal_hash.
11858         * lrecord.h:
11859         Fix up allocation subsystem comments.
11860
11861         * config.h.in: Add __EXTENSIONS__ for Solaris.
11862
11863         * systime.h (EMACS_GETTIMEOFDAY): New.
11864         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11865         Remove Solaris-specific code.
11866         Use void* for the (ignored) second arg for gettimeofday().
11867
11868         * elhash.c (hash_table_hash): Implement it, finally.
11869         * elhash.c:  Use hashcode_t.
11870
11871         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11872         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11873
11874         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11875         * fns.c (size_bit_vector):
11876         * alloc.c (size_vector):
11877         (make_vector_internal):
11878         (make_bit_vector_internal):
11879         (sweep_bit_vectors_1):
11880         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11881
11882 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11883
11884         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11885         Include strings.h to avoid warnings for bzero and strcasecmp.
11886
11887 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11888
11889         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11890         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11891
11892         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11893         sequence.
11894
11895 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11896
11897         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11898         use a value field instead.
11899         (symbol_value_forward_forward): Use value field.
11900         (DEFVAR_SYMVAL_FWD): Use value field.
11901         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11902         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11903         (DEFVAR_CONST_INT): Ditto.
11904         (DEFVAR_BOOL): Ditto.
11905         (DEFVAR_CONST_BOOL): Ditto.
11906         (DEFVAR_INT_MAGIC): Ditto.
11907         (DEFVAR_BOOL_MAGIC): Ditto.
11908
11909         * symbols.c (guts_of_unbound_marker): Use value field.
11910         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11911         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11912
11913         * lisp.h: Declare dumpopaque and noninteractive1.
11914
11915         * alloc.c (dumpopaque): Added.
11916         (pdump_dump_opaquevec): Added.
11917         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11918         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11919         noninteractive.
11920
11921 2000-02-10  Andy Piper  <andy@xemacs.org>
11922
11923         * glyphs.c (image_instance_layout): if the size changes, mark it
11924         as such.
11925
11926         * redisplay-output.c (redisplay_output_layout): Update the
11927         subwindow here.
11928         (redisplay_output_subwindow): ditto.
11929
11930         * glyphs.c (update_subwindow): make sure we reset flags for
11931         layouts as well as everything else.
11932
11933         * glyphs-widget.c (layout_layout): don't need to set the instances
11934         dimensions here.
11935
11936 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11937
11938         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11939         not HAVE_DLOPEN, which is a lower-level thing.
11940
11941         * .cvsignore: Ignore gmon.out
11942
11943 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11944
11945         * .cvsignore: Ignore portable dumper xemacs.dmp file
11946
11947 2000-02-09  Andy Piper  <andy@xemacs.org>
11948
11949         * redisplay-output.c (redisplay_output_layout): be more clever
11950         about when we output based on the changed flags.
11951
11952         * glyphs.h (struct image_instantiator_methods): add update_method.
11953         (struct Lisp_Image_Instance): add changed flags. Declare new
11954         macros for manipulating them.
11955
11956         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11957         (image_instance_parent_glyph): find an image_instance's parent
11958         glyph or image_instance.
11959         (image_instance_layout): mark the size as changed.
11960         (set_image_instance_dirty_p): new function. mark an image
11961         instance, plus all of its parents, as dirty.
11962         (Fset_image_instance_property): use it.
11963         (Fglyph_animated_timeout_handler): use it.
11964         (update_subwindow): call update_widget and device methods for
11965         update_subwindow. Mark all changed flags as clean.
11966         (Fresize_subwindow): mark size as changed.
11967
11968         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11969         failures.
11970         (x_update_subwindow): only resize subwindows here.
11971         (x_update_widget): new function. Update all changed properties of
11972         a widget.
11973         (x_resize_subwindow): deleted.
11974         (x_widget_set_property): deleted.
11975         (x_progress_gauge_set_property): deleted.
11976         (x_progress_gauge_update): new function. Implement recorded
11977         changes.
11978         (x_tab_control_update): ditto.
11979         (x_tab_control_set_property): deleted.
11980         (console_type_create_glyphs_x): declare new functions.
11981         (image_instantiator_format_create_glyphs_x): ditto.
11982
11983         * glyphs-widget.c (widget_set_property): mark text changed.
11984         (update_widget): new function. Update properties of a widget.
11985         (widget_instantiate): for layouts make sure we set their
11986         children's parent correctly.
11987         (tab_control_set_property): new function. Record changes that will
11988         take place under redisplay's control.
11989         (progress_gauge_set_property): ditto.
11990         (image_instantiator_progress_guage): declare new functions.
11991         (image_instantiator_tab_control): ditto.
11992
11993         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11994         now.
11995         (mswindows_update_widget): new function. Update all properties on
11996         a widget that have changed.
11997         (mswindows_button_update): new function. Update a button's set
11998         state.
11999         (mswindows_tab_control_update): new function. Update the items in
12000         a tab.
12001         (mswindows_tab_control_set_property): deleted.
12002         (mswindows_progress_gauge_update): new function. Update the
12003         progress gauge's progress.
12004         (mswindows_widget_set_property): deleted. This is all done
12005         asynchronously now.
12006         (mswindows_progress_gauge_set_property): ditto.
12007         (console_type_create_glyphs_mswindows): declare new methods.
12008         (image_instantiator_format_create_glyphs_mswindows): ditto.
12009
12010         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12011         (msprinter_set_frame_properties): ditto.
12012
12013         * console.h (struct console_methods): Add update_widget_method.
12014
12015 2000-02-09  Andy Piper  <andy@xemacs.org>
12016
12017         * gui-msw.c (Fmswindows_shell_execute): Make
12018         mswindows-shell-execute industrial strength.
12019
12020 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12021
12022         * lrecord.h: Make macro argument `props' match member function `plist'.
12023         * fns.c (Fget):
12024         * fns.c (Fput):
12025         * fns.c (Fremprop):
12026         * fns.c (Fobject_plist):
12027         * alloc.c:
12028         * symbols.c:
12029         Object property list frobbing cleanup.
12030         - Allow any lisp object (compared with `eq'), not just symbols, as
12031           keys in object plists.
12032         - Move symbol plist frobbing into symbols.c, where it belongs.
12033         - Move string plist frobbing into alloc.c, where it belongs.
12034         - Everything's an lrecord now, so no need to test for symbolp, etc.
12035         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12036
12037         * extents.c: Reorder code to remove declarations.
12038
12039         * frame.h (store_in_alist): Remove useless declaration.
12040
12041 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12042
12043         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12044         * config.h.in: Add HAVE_XCONVERTCASE.
12045
12046 2000-02-07  Andy Piper  <andy@xemacs.org>
12047
12048         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12049         it breaks many things.
12050
12051 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12052
12053         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12054         actually can start a common comment type.
12055         * src/syntax.h (SYNTAX_END_P): ditto for end.
12056
12057 2000-02-07  Martin Buchholz <martin@xemacs.org>
12058
12059         * XEmacs 21.2.28 is released.
12060
12061 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12062
12063         * event-Xt.c (x_keysym_to_character): New.
12064         (maybe_define_x_key_as_self_inserting_character): New.
12065         (x_has_keysym): New.
12066         Auto-define all keys on the keyboard as self-insert-key.
12067
12068 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12069
12070         * menubar.c (vars_of_menubar): A small code simplification.
12071
12072         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12073
12074         * ExternalShell.c:
12075         * ExternalClient.c:
12076         * EmacsShell-sub.c:
12077         * EmacsManager.c:
12078         * EmacsFrame.c:
12079         Use consistent style for specifying X resources.
12080
12081         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12082         This makes (dontusethis-set-symbol-value-handler) actually usable.
12083
12084         * lrecord.h (lrecord_decription_type):
12085         * alloc.c (pdump_register_sub):
12086         (pdump_dump_data):
12087         (pdump_reloc_one):
12088         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12089         Comply with XEmacs coding style.
12090         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12091         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12092
12093         * keymap.c (Faccessible_keymaps):
12094         Make (accessible-keymaps map "\C-h") do the Right Thing.
12095         Make (accessible-keymaps map []) do the Right Thing.
12096         Make (accessible-keymaps map "") do the Right Thing.
12097         (check_keymap_definition_loop): New function.
12098         (keymap_store_internal): Keep luser from shooting self in foot,
12099           via (define-key ctl-x-4-map "p" global-map).
12100         Remove fullness slot from struct Lisp_Keymap, since hash tables
12101         are now reliable.
12102         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12103
12104 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12105
12106         * redisplay.c (init_redisplay): Fix small memory leak.
12107         * elhash.h:
12108         * elhash.c (pdump_reorganize_hash_table):
12109         Rename from reorganize_hash_table. Change prototype.
12110         Reuse the original memory for hentries.  Save 100k.
12111         * alloc.c (PDUMP_READ): new macro.
12112         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12113         * alloc.c: No need to #ifndef before #undef.
12114
12115         * print.c: Allow debug_print() to print readably by modifying
12116         debug_print_readably.  Use consistent variable names.
12117
12118         * .dbxrc: Try to get things to work even if stopped in a function
12119         without source available by explicitly specifying source files.
12120 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12121
12122         * unexnt.c (_start): Removed bogus code which caused loading heap
12123         from differrent executable file.
12124         Removed bogus assignment to _fmode, which caused inconsistencies.
12125
12126 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12127
12128         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12129         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12130         Do not preliminary `#define signal sigset'.
12131
12132         * systime.h: Do not prototype environ on windows nt and cygwin,
12133         this conflicts with system header.
12134
12135         * syssignal.h: Use correct define for WINDOWSNT
12136
12137         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12138         with system header.
12139
12140         * sysdep.c (near start of file): Fixed commentary and rearranged
12141         ifdefs in readable order.
12142         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12143         (start_of_text):
12144         (end_of_text):
12145         (end_of_data): Do not compile in if using PDUMP.
12146
12147         * symsinit.h: Prototyped vars_of_nt().
12148
12149         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12150         (find_child_console): Use it.
12151         (sys_kill): Use it.
12152
12153         * ntheap.h: Do not extern os_subtype.
12154
12155         * ntheap.c (cache_system_info): Do not cache unneeded:
12156         nt_major_version, nt_minor_version and os_subtype.
12157         (recreate_heap): Do not compile in when PDUMPing.
12158
12159         * nt.c (geteuid and friends): Use the new varibale
12160         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12161         (init_user_info): Removed the above mentioned hackery.
12162         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12163         stat has been fixed in the C runtime.
12164         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12165
12166         * file-coding.c (struct file_coding_dump): Do not define
12167         ucs_to_mule_table in the struct if not MULE.
12168         (struct struct lrecord_description fcd_description_1): Do not dump
12169         the above.
12170
12171         * emacs.c (main_1): Call vars_of_nt().
12172         (right before Fdump_emacs_data): Don't need lastfile if using both
12173         portabe dumper and system malloc.
12174
12175         * alloc.c (Fmemory_limit): Conditionalized out.
12176         (pdump): Use OPEN_BINARY for the portable dump file.
12177         (pdump_load): Ditto.
12178
12179 2000-02-02  Mike Alexander  <mta@arbortext.com>
12180
12181         * nt.c (convert_time): Set tm_isdst before calling mktime and
12182         avoid calling it at all if the compiler supports 64 bit integers.
12183         Also initialize utc_base_ft before using it.
12184
12185 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12186
12187         * frame.c (change_frame_size_1): Take f->internal_border_width
12188         into consideration when calculating the width of the frame.
12189
12190 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12191
12192         * window.c (frame_min_height):
12193         (frame_size_valid_p):
12194         (frame_pixsize_valid_p): Added.
12195         (check_frame_size): Generalized.
12196
12197         * window.h: Prototyped the above.
12198
12199         * lisp.h:
12200         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12201         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12202         Deleted Vwin32_* and Vbinary_process_* unused variables.
12203
12204         * device-msw.c (msprinter_init_device): Do not get printer font
12205         list; Added DEVMODE functions.
12206
12207         * frame-msw.c: Added lots of printer code.
12208
12209         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12210         general.c.
12211
12212         * console-msw.h: Added more msprinter device private slots.
12213
12214 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12215
12216         * event-msw.c (key_needs_default_processing_p): Added.
12217         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12218
12219 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12220
12221         * glyphs.c (image_instance_layout): Mark image instance as clean
12222         after layout.
12223         (glyph_dirty_p): Removed redundant function.
12224         (invalidate_glyph_geometry_maybe): Added.
12225         (update_glyph_cachel_data): Call it.
12226
12227         * glyphs.h: Prototyped it.
12228
12229         * redisplay.c (add_glyph_rune): Call it.
12230         (redisplay_window): Reset glyphs cachels when frame faces have
12231         changed, thus forcing recomputation of built-in border glyphs.
12232
12233 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12234
12235         * Makefile.in.in: Make portable dumper and purify play well together.
12236         Add imperfect, but better than nothing, support for pdump.
12237         Remove xemacs.dmp when temacs is re-generated.
12238         Don't ignore errors when dumping xemacs.
12239
12240         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12241
12242 2000-01-28  Andy Piper  <andy@xemacs.org>
12243
12244         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12245         (setup_normal_frame): ditto.
12246         (setup_frame_without_minibuffer): ditto.
12247         (setup_minibuffer_frame): ditto.
12248         (delete_frame_internal): ditto.
12249         (Fmake_frame_invisible): ditto.
12250         (Ficonify_frame): ditto.
12251
12252         * window.h: change Fset_window_buffer signature.
12253
12254         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12255         (Fset_window_buffer): allow recording of buffer if the window is
12256         the selected window.
12257         (window_loop): Use new Fset_window signature.
12258
12259 2000-01-23  Daniel Pittman  <daniel@danann.net>
12260
12261         * config.h.in: Added template for `HAVE_ATHENA_3D'
12262
12263 2000-01-29  Andy Piper  <andy@xemacs.org>
12264
12265         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12266
12267         * gutter.c (output_gutter): Don't output if the window isn't live.
12268
12269 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12270
12271         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12272         of 01/12/00: Moved SetFocus back here where it belongs.
12273
12274 2000-01-23  Andy Piper  <andy@xemacs.org>
12275
12276         * s/cygwin32.h: declare printer things.
12277
12278 2000-01-26  Andy Piper  <andy@xemacs.org>
12279
12280         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12281         Alexander.
12282
12283 2000-01-24  Andy Piper  <andy@xemacs.org>
12284
12285         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12286         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12287
12288         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12289
12290         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12291
12292         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12293
12294         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12295         (mswindows_output_display_block): Avoid local shadows.
12296
12297         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12298         (mswindows_enqueue_mouse_button_event): ditto.
12299         (mswindows_handle_gui_wm_command): remove declaration.
12300
12301         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12302         warnings.
12303
12304         * console-msw.h: Avoid shadows.
12305         (mswindows_get_toolbar_button_text):
12306         (emacs_mswindows_create_stream_pair):
12307         (emacs_mswindows_delete_stream_pair):
12308         (mswindows_handle_toolbar_wm_command): declare.
12309
12310         * device-msw.c (build_syscolor_string): Avoid shadows.
12311
12312 2000-01-23  Andy Piper  <andy@xemacs.org>
12313
12314         * glyphs-widget.c (widget_instantiate): reverse the items for
12315         layouts so that children are in the expected order.
12316
12317 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12318
12319         * ralloc.c: safe_bcopy ==> memmove
12320         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12321         * s/msdos.h: Remove BCOPY macros.
12322         * insdel.c (gap_right): Remove BCOPY conditional code.
12323         * insdel.c (gap_left): Remove BCOPY conditional code.
12324         XEmacs demands a working ANSI C compiler - hence memmove.
12325
12326         * regex.c (regex_compile): Remove accidental use of trigraphs.
12327
12328 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12329
12330         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12331         event timestamp.
12332
12333 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12334
12335         * event-msw.c (mswindows_drain_windows_queue): Added the
12336         parameter.
12337         (mswindows_need_event): Commented the call to
12338         mswindows_drain_windows_queue().
12339         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12340         only.
12341
12342         * console-msw.h: Moved a few function prototypes here from
12343         event-msw.c.
12344
12345         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12346         parameter from unsigned short to unsigned long.
12347         (Fmswindows_shell_execute): Added return value.
12348
12349 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12350
12351         * sysdep.c (init_system_name):
12352           process-unix.c (unix_canonicalized_host_name):
12353         Don't call freeaddrinfo() if getaddrinfo() fails.
12354
12355         * process-unix.c (unix_open_unix_network_stream):
12356         Moved the code to get a port # into address loop.
12357
12358 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12359
12360         * buffer.c (reinit_vars_of_buffer):
12361         The right place to initialize conversion_in_dynarr and
12362         conversion_out_dynarr.
12363
12364         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12365
12366         * process-unix.c (unix_canonicalize_host_name): Muleize.
12367         (unix_open_network_stream): Muleize.
12368
12369         * buffer.h: Fix up prototypes for ralloc.c functions.
12370
12371 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12372         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12373         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12374                 instead of gethostbyname()
12375         * process-unix.c: In unix_canonicalize_host_name() and
12376                 unix_open_network_stream(), add code to use getaddrinfo()
12377                 instead of gethostbyname().
12378
12379 2000-01-27  Daniel Pittman <daniel@danann.net>
12380
12381         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12382         libs when built with flat Athena.
12383
12384 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12385
12386         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12387         Use coding standards for function prototypes.
12388
12389 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12390
12391         * dialog-msw.c (push_lisp_string_as_unicode):
12392         * doc.c (unparesseuxify_doc_string):
12393         * dired.c (Fuser_name_completion_1):
12394         * dired.c (Fuser_name_all_completions):
12395         * dired.c (free_user_cache):
12396         * dired.c (user_name_completion):
12397         * console-x.c (get_display_arg_connection):
12398         * minibuf.c (clear_echo_area_internal):
12399         * minibuf.c (echo_area_append):
12400         * eldap.c (Fldap_open):
12401         * eldap.c (Fldap_search_internal):
12402         * frame-x.c (x_set_frame_text_value):
12403         * frame-x.c (x_set_frame_properties):
12404         * frame-x.c (x_create_widgets):
12405         * redisplay-tty.c (term_get_fkeys_1):
12406         * objects-x.c (x_parse_nearest_color):
12407         * objects-x.c (x_valid_color_name_p):
12408         * objects-x.c (x_initialize_font_instance):
12409         * objects-x.c (x_list_fonts):
12410         * objects-x.c (x_find_charset_font):
12411         * tooltalk.c (Fadd_tooltalk_message_arg):
12412         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12413         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12414         * process-unix.c (unix_create_process):
12415         * ntproc.c (sys_spawnve):
12416         * sound.c (Fplay_sound_file):
12417         * sound.c (Fplay_sound):
12418         * buffer.c (init_initial_directory):
12419         * buffer.c (init_buffer):
12420         * editfns.c (init_editfns):
12421         * editfns.c (Ftemp_directory):
12422         * editfns.c (Fuser_full_name):
12423         * editfns.c (uncache_home_directory):
12424         * editfns.c (get_home_directory):
12425         * editfns.c (Fuser_home_directory):
12426         * editfns.c (Fformat_time_string):
12427         * editfns.c (Fcurrent_time_string):
12428         * gui-x.c (button_item_to_widget_value):
12429         * database.c (Fopen_database):
12430         * event-Xt.c (x_to_emacs_keysym):
12431         * event-Xt.c (x_event_to_emacs_event):
12432         * event-Xt.c (describe_event_window):
12433         * event-msw.c (mswindows_wnd_proc):
12434         * glyphs-eimage.c (jpeg_instantiate):
12435         * glyphs-eimage.c (gif_instantiate):
12436         * glyphs-eimage.c (png_instantiate):
12437         * glyphs-eimage.c (tiff_instantiate):
12438         * glyphs-x.c (xbm_instantiate_1):
12439         * glyphs-x.c (x_xbm_instantiate):
12440         * glyphs-x.c (x_xface_instantiate):
12441         * glyphs-x.c (autodetect_instantiate):
12442         * glyphs-x.c (cursor_font_instantiate):
12443         * glyphs-x.c (x_widget_instantiate):
12444         * glyphs-x.c (x_widget_set_property):
12445         * glyphs-x.c (x_widget_property):
12446         * glyphs-x.c (BUILD_GLYPH_INST):
12447         * print.c (write_string_to_stdio_stream):
12448         * print.c (output_string):
12449         * print.c (Falternate_debugging_output):
12450         * print.c (Fexternal_debugging_output):
12451         * glyphs-msw.c (extract_xpm_color_names):
12452         * glyphs-msw.c (mswindows_xpm_instantiate):
12453         * glyphs-msw.c (bmp_instantiate):
12454         * glyphs-msw.c (resource_name_to_resource):
12455         * glyphs-msw.c (mswindows_resource_instantiate):
12456         * glyphs-msw.c (xbm_instantiate_1):
12457         * glyphs-msw.c (mswindows_xbm_instantiate):
12458         * glyphs-msw.c (mswindows_xface_instantiate):
12459         * glyphs-msw.c (mswindows_widget_instantiate):
12460         * glyphs-msw.c (add_tree_item):
12461         * glyphs-msw.c (add_tab_item):
12462         * glyphs-msw.c (mswindows_combo_box_instantiate):
12463         * glyphs-msw.c (mswindows_widget_property):
12464         * glyphs-msw.c (mswindows_combo_box_property):
12465         * glyphs-msw.c (mswindows_widget_set_property):
12466         * console.c (stuff_buffered_input):
12467         * objects-msw.c (mswindows_initialize_color_instance):
12468         * objects-msw.c (mswindows_valid_color_name_p):
12469         * objects-msw.c (mswindows_list_fonts):
12470         * objects-msw.c (mswindows_font_instance_truename):
12471         * bytecode.c (optimize_compiled_function):
12472         * select-x.c (symbol_to_x_atom):
12473         * select-x.c (x_atom_to_symbol):
12474         * select-x.c (hack_motif_clipboard_selection):
12475         * select-x.c (selection_data_to_lisp_data):
12476         * select-x.c (lisp_data_to_selection_data):
12477         * select-x.c (Fx_get_cutbuffer_internal):
12478         * select-x.c (Fx_store_cutbuffer_internal):
12479         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12480         * buffer.h (TO_INTERNAL_FORMAT): New function.
12481         * emacs.c (make_arg_list_1):
12482         * emacs.c (make_argc_argv):
12483         * emacs.c (main_1):
12484         * emacs.c (Fdump_emacs):
12485         * emacs.c (split_string_by_emchar_1):
12486         * file-coding.h:
12487         * lisp.h:
12488         * lstream.h:
12489         * symsinit.h:
12490         * device-x.c (x_init_device):
12491         * device-x.c (Fx_valid_keysym_name_p):
12492         * device-x.c (Fx_get_font_path):
12493         * device-x.c (Fx_set_font_path):
12494         * glyphs.c (bitmap_to_lisp_data):
12495         * glyphs.c (pixmap_to_lisp_data):
12496         * alloc.c (make_ext_string): Use coding system arguments.  Update
12497         all callers.
12498         * alloc.c (build_string):
12499         * callproc.c (child_setup):
12500         * callproc.c (init_callproc):
12501         * fileio.c (lisp_strerror):
12502         * fileio.c (directory_file_name):
12503         * fileio.c (Fexpand_file_name):
12504         * fileio.c (Ffile_truename):
12505         * fileio.c (Fsysnetunam):
12506         * fileio.c (Fdo_auto_save):
12507         * sysdep.c (sys_readdir):
12508         * tests.c: New file.  Allow adding C tests.
12509         Replace GET_* macros with a more comprehensible and flexible
12510         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12511         Modify all calls.
12512         Any coding system can be used to do format conversion.
12513         Eliminate enum external_data_format.
12514         Eliminate convert_to_external_format.
12515         Eliminate convert_to_internal_format.
12516         Make sure file-name, keyboard, terminal, and ctext are always
12517         defined as coding systems or aliases.  Make
12518         file-name-coding-system, terminal-coding-system, and
12519         keyboard-coding-system magical variables that are equivalent to
12520         defining the corresponding coding system aliases.
12521
12522         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12523         * file-coding.c (Fcoding_system_alias_p): New function.
12524         * file-coding.c (Fcoding_system_aliasee): New function.
12525         * file-coding.c (append_suffix_to_symbol): New function.
12526         * file-coding.c (dangling_coding_system_alias_p): New function.
12527         * file-coding.c (Ffind_coding_system):
12528         * file-coding.c (Fcopy_coding_system):
12529         * file-coding.c (encode_coding_no_conversion):
12530         * file-coding.c (syms_of_file_coding):
12531         * file-coding.c (vars_of_file_coding):
12532         Rewrite coding system alias code.
12533         Allow nested aliases, like symbolic links.
12534         Allow redefinition of coding system aliases.
12535         Prevent existence of dangling coding system aliases.
12536
12537         * dired.c (Fuser_name_completion_1):
12538         * dired.c (Fuser_name_all_completions):
12539         A crash would happen if user did QUIT in the middle of building
12540         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12541
12542         * lisp.h:
12543         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12544
12545         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12546         an unsigned char *.  Update all callers.
12547
12548 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12549
12550         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12551
12552 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12553
12554         * elhash.c (hentry_description): Use more portable definition.
12555         (resize_hash_table): Initialize new hentries using
12556         xnew_array_and_zero, thereby simplifying the code.
12557
12558         * mule-charset.c (make_charset): Make sure entire object is
12559         initialized, to avoid Purify warnings.
12560
12561         * alloc.c (resize_string): Fix unlikely crash with big strings.
12562
12563 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12564
12565         * realpath.c (xrealpath):
12566         Don't call getwd().
12567
12568 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12569
12570         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12571
12572 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12573
12574         * unexelfsgi.c (unexec): Change the way we decide which segment
12575         should be extended.
12576
12577         Assumption that .bss section should be outside the PT_LOADable
12578         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12579         it's present) is inside the 'data' segment. This would fail the
12580         test which was used to find a segment to grow and cover new
12581         heap. Instead of this assumption, I created another one - on IRIX
12582         the segment to grow should start below .bss and it's address
12583         should extent above the end of .bss. Once this segment is
12584         identified, it's grown to accommodate the new heap and new
12585         zero-length .bss section is added at the end of .data2.
12586
12587 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12588
12589         * eval.c (Feval): Wrong number of arguments should use original
12590         function, not the indirect_function version of it.
12591
12592 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12593
12594         * glyphs-x.c (x_button_instantiate): Don't add image if
12595         it is not a pixmap.
12596         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12597         is relative.
12598
12599 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12600
12601         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12602         declaration.
12603         (DEFVAR_INT_MAGIC): Ditto.
12604         (DEFVAR_BOOL_MAGIC): Ditto.
12605         * glyphs.h: Reindent backslash.
12606
12607 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12608
12609         * glyphs-widget.c (layout_query_geometry):
12610         (layout_layout): Use correct types for gheight, gwidth.
12611
12612 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12613
12614         * EmacsManager.c (QueryGeometry): Purified.
12615
12616 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12617
12618         * alloc.c (make_float): Make sure entire object is initialized, to
12619         avoid Purify warnings.
12620         (pdump_register_sub): Remove useless assignment.
12621         (pdump): Use xmalloc, not malloc.
12622         (pdump_load): Use xmalloc, not malloc.
12623
12624 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12625
12626         * callproc.c:
12627         * dired-msw.c:
12628         * fileio.c:
12629         * process-nt.c:
12630         * redisplay-msw.c:
12631         * sysdep.c: Removed redundant #include <windows.h>
12632
12633 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12634
12635         * frame.c (delete_frame_internal): Do not delete device when its
12636         implementation so declares.
12637         (delete_frame_internal): Set device selected frame to nil when
12638         last frame goes away.
12639
12640         * device-msw.c (msprinter_device_system_metrics): Implemented.
12641         (mswindows_device_system_metrics): Added 'device-dpi property.
12642
12643         * device.c: (Fdevice_printer_p): Added.
12644         Added 'offset-workspace device metric.
12645
12646         * console.h (device_metrics): Declared DM_offset_workspace.
12647
12648 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12649
12650         * fileio.c (Ffile_truename): Remove pointless and confusing
12651         initialization of elen.
12652
12653         * glyphs-widget.c: Compiler warning fixes.
12654
12655 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12656
12657         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12658         instead of a Lisp_Object as argument to make it consistent with
12659         the other LIVE_P macros.
12660         (CHECK_LIVE_PROCESS): New macro.
12661
12662         * process.c: Declare Qprocess_live_p.
12663         (Fprocess_live_p): New function.
12664         (create_process): Use PROCESS_LIVE_P.
12665         (read_process_output): Ditto.
12666         (set_process_filter): Ditto.
12667         (Fdelete_process): Ditto.
12668         (kill_buffer_processes): Ditto
12669         (process_send_signal): Use CHECK_LIVE_PROCESS.
12670         (Fprocess_input_coding_system): Check whether process is still
12671         alive (fix PR#1061).
12672         (Fprocess_output_coding_system): Ditto.
12673         (Fprocess_coding_system): Ditto.
12674         (Fset_process_input_coding_system): Ditto.
12675         (Fset_process_output_coding_system): Ditto.
12676
12677 2000-01-23  Andy Piper  <andy@xemacs.org>
12678
12679         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12680         layout and widget.
12681
12682         * glyphs.c (mark_image_instance): take into account changed
12683         image_instance format.
12684         (image_instance_equal): ditto.
12685         (image_instance_hash): ditto.
12686
12687         * glyphs-widget.c (widget_instantiate): Incorporate layout
12688         instantiation here. Delay layout of the layout until later.
12689         (layout_instantiate): deleted.
12690         (layout_query_geometry): new function. get the geometry of a
12691         layout.
12692         (layout_layout): layout a layout dynamically.
12693         (image_instantiator_widget): New function - splitting up
12694         image_instantiator_format_create_glyphs_widget for netwinder
12695         compilation.
12696         (image_instantiator_buttons):
12697         (image_instantiator_edit_fields):
12698         (image_instantiator_combo_box):
12699         (image_instantiator_scrollbar):
12700         (image_instantiator_progress_guage):
12701         (image_instantiator_tree_view):
12702         (image_instantiator_tab_control):
12703         (image_instantiator_labels):
12704         (image_instantiator_layout): ditto.
12705         (image_instantiator_format_create_glyphs_widget): Call preceding
12706         functions.
12707
12708 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12709
12710         * process.c (Fset_process_coding_system):
12711         * device-x.c (Fx_keysym_hash_table):
12712         Docstring fixes.
12713
12714         * lstream.c (Lstream_write): Return documented value, not 0.
12715
12716         * fileio.c (directory_file_name):
12717         (Fsubstitute_in_file_name):
12718         (Fsubstitute_insert_file_contents_internal):
12719         (Fwrite_region_internal):
12720         * emacs.c:
12721         * sysdep.c:
12722         * getloadavg.c:
12723         * systty.h:
12724         Remove vestigial APOLLO-conditional code.
12725
12726 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12727
12728         * getpagesize.h: Add guard macros.
12729         * libsst.h: Add guard macros.
12730         * libst.h: Add guard macros.
12731         * line-number.h: Add guard macros.
12732         * ndir.h: Add guard macros.
12733         * sysfloat.h: Add guard macros.
12734         * sysfile.h: Add guard macros.
12735         * sysproc.h: Add guard macros.
12736         * syswait.h: Add guard macros.
12737         * xintrinsic.h: Add guard macros.
12738         * xintrinsicp.h: Add guard macros.
12739         * xmmanager.h: Add guard macros.
12740         * xmmanagerp.h: Add guard macros.
12741         * xmprimitive.h: Add guard macros.
12742         * xmu.h: Add guard macros.
12743         * gpmevent.h: Add copyright statement. Add guard macros.
12744         * miscplay.h: Add guard macros.
12745         * *.h: Use consistent C-standards-approved guard macro names.
12746
12747         * opaque.c (make_opaque): Switch parameter order.
12748         * opaque.h (make_opaque): Switch parameter order.
12749         Update all callers.
12750         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12751
12752         * config.h.in (type_checking_assert): Added.
12753         (bufpos_checking_assert): Added.
12754
12755 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12756
12757         * alloc.c: Harmless pdump changes.
12758         - Use countof().
12759         - spell alignment correctly.
12760         * sysdep.c: Use countof()
12761
12762 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12763
12764         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12765         initially_selected_for_input() console method, default to 0.
12766         (semi_canonicalize_console_connection): Try to delegate to
12767         canonicalize_console_connection if no such console method.
12768         (canonicalize_console_connection): Vice versa.
12769         (print_console): Do not print nil connection.
12770
12771         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12772         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12773         (XDEVIMPF_FRAMELESS_OK): Added.
12774         (CONSOLE_INHERITS_METHOD): Added.
12775
12776         * console-msw.c (mswindows_canonicalize_console_connection):
12777         Added.
12778         (mswindows_canonicalize_device_connection): Added.
12779
12780         * console-msw.h (struct msprinter_device): Added this struct and
12781         accessor macros.
12782         (mswindows_device): Made fontlist a lisp object.
12783
12784         * device.c (semi_canonicalize_device_connection):  Try to delegate
12785         to canonicalize_device_connection if no such console method.
12786         (canonicalize_device_connection): Vice versa.
12787         (print_device): Do not print nil connection.
12788
12789         * device-msw.c (mswindows_init_device): Call InitCommonControls
12790         when have widgets.
12791         (mswindows_delete_device): Removed fontlist deallocation.
12792         (mswindows_mark_device): Added.
12793
12794         * events.c (event_equal): Added abort() at unreached code.
12795         (event_hash): Ditto.
12796
12797         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12798         fallback tags of Windows devices.
12799
12800         * general.c (syms_of_general): Initialized Qmsprinter.
12801
12802         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12803         of fallback tags of Windows devices.
12804
12805         * lisp.h: Declared Qmsprinter.
12806
12807         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12808         of strings.
12809         (mswindows_list_fonts): Ditto.
12810         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12811         that it can be used by both mswindows and msprinter devices.
12812         (initialize_font_instance): Added.
12813         (mswindows_initialize_font_instance): Use it.
12814         (msprinter_initialize_font_instance): Added.
12815
12816         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12817         and implementation flags check.
12818         (redisplay_without_hooks): Changed the call to the above.
12819         (Fredraw_device): Ditto.
12820         (Fredisplay_device): Ditto.
12821
12822         * redisplay-msw.c (get_frame_dc): Implemented.
12823         (get_frame_compdc): Implemented.
12824         (many functions): Use the two functions above to get device
12825         contexts, ether for a window or a printer.
12826
12827 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12828
12829         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12830         initialization here.
12831         (init_symbols_once_early): Call it.
12832         * emacs.c (main_1): Call it.
12833         * symsinit.h: Declare it.
12834
12835 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12836
12837         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12838         Lisp_Object.
12839         (pdump_backtrace): Ditto.
12840         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12841         (pdump_get_entry): Abort if trying to register a null pointer.
12842         (pdump_dump_data): Cleanup types when relocating.
12843         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12844         (pdump_dump_rtables): Remove bad casts.
12845         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12846         Lisp_Object instead of a EMACS_INT for the hashtable
12847         reorganization.
12848
12849 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12850
12851         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12852
12853         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12854
12855         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12856
12857         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12858
12859 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12860
12861         * faces.h (FACE_STRIKETHRU_P): Added.
12862
12863         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12864         of font variants.
12865
12866         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12867         (mswindows_set_dc_font): New function, aware of font variants,
12868         separated from mswindows_update_dc.
12869
12870         * objects-msw.h (struct mswindows_font_instance_data): Added
12871         definition.
12872
12873         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12874         cached fonts and the data structure.
12875         (mswindows_initialize_font_instance): Added creation of font data
12876         structure.
12877         (mswindows_print_font_instance): Print at least something.
12878         (mswindows_create_font_variant): Implemented.
12879         (mswindows_get_hfont): Implemented.
12880
12881 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12882
12883         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12884         prototyping problem with msvc.
12885
12886         * emacs.c (main_1): added syms_of_gui_mswindows() call
12887
12888         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12889         syms_of_gui_mswindows() function
12890
12891         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12892
12893 2000-01-18  Martin Buchholz <martin@xemacs.org>
12894
12895         * XEmacs 21.2.27 is released.
12896
12897 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12898
12899         * glyphs-eimage.c (struct tiff_error_struct):
12900         (tiff_error_func):
12901         (tiff_warning_func):
12902         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12903
12904         * unexmips.c:
12905         * unexhp9k3.c:
12906         * unexfreebsd.c:
12907         * unexec.c: Remove vestigial Lucid C code.
12908         * unexalpha.c:
12909         * unexaix.c:
12910         * termcap.c:
12911         * libsst.c: Ansify.
12912         Remove declarations of errno and strerror().
12913
12914         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12915
12916         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12917
12918 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12919
12920         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12921         Optimize.
12922
12923 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12924
12925         * md5.c:
12926         * file-coding.c:
12927         * file-coding.h:
12928         Change enum eol_type to eol_type_t.
12929
12930 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12931
12932         * gui.c (get_gui_callback): Check cons before accessing car.
12933
12934 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12935
12936         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12937         (XSETSPECIFIER_TYPE): Ditto.
12938
12939 2000-01-17  Didier Verna  <didier@xemacs.org>
12940
12941         * redisplay.c (generate_fstring_runes): compute string size in
12942         characters, not bytes.
12943
12944 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12945
12946         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12947
12948 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12949
12950         * print.c (print_error_message): Call print_prepare().
12951
12952 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12953
12954         * .dbxrc: Renamed from dbxrc.
12955
12956         * events.c (event_to_character):
12957         Use `assert (foo)' instead of `if (!foo) abort()'
12958
12959         * .gdbinit (xtype): Add documentation.
12960         * .gdbinit (check-temacs): New function.
12961         * .gdbinit (check-xemacs): New function.
12962         * dbxrc (check-xemacs): New function.
12963         * dbxrc (check-xemacs): New function.
12964
12965 2000-01-14  Andy Piper  <andy@xemacs.org>
12966
12967         * glyphs-widget.c (widget_query_geometry): Make sure that we
12968         calculate default dimensions correctly.
12969
12970 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12971
12972         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12973
12974         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12975         pdump_wire'd variable.
12976
12977         * emacs.c: (main_1): Conditionalized calls to
12978         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12979
12980 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12981
12982         * window.c (Fset_window_configuration):
12983         * sysdep.c (_start):
12984         * input-method-motif.c (res):
12985         * event-Xt.c (Xt_process_to_emacs_event):
12986         Simple compiler warning fixes.
12987
12988         * bytecode.c (funcall_compiled_function): Use the original
12989         function symbol on the backtrace list in preference to the
12990         compiled_function object in error messages.
12991
12992 2000-01-13  Andy Piper  <andy@xemacs.org>
12993
12994         * glyphs-x.c (update_widget_face): Make sure we update the widget
12995         background as well as foreground.
12996
12997 2000-01-13  Andy Piper  <andy@xemacs.org>
12998
12999         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13000         fields to subwindow.
13001         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13002         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13003         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13004         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13005
13006         * glyphs-widget.c (check_valid_tab_orientation): new function.
13007         (initialize_widget_image_instance): zero orientation and
13008         justification.
13009         (widget_instantiate): pick up orientation.
13010         (tab_control_query_geometry): return appropriate values for
13011         vertical tabs.
13012
13013         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13014         appropriate creation flags for left, right and bottom tabs.
13015
13016         * s/cygwin32.h: add tab definitions.
13017
13018 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13019
13020         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13021         frame upon hiding a subwindow.
13022         (mswindows_button_instantiate): Changed the push button style to
13023         BS_PUSHBUTTON.
13024         (mswindows_button_instantiate): Removed button BS_NOTIFY
13025         style.
13026         (mswindows_button_instantiate): Removed redundant check for
13027         a disabled gui item.
13028         (mswindows_button_instantiate): Made use of WS_TABSTOP
13029         consistent: "operable" controls (edit, button, tree, scroll) have
13030         this style, "display-only" ones (static, progress gauge) do
13031         not. This style is currently ignored by XEmacs though. Also,
13032         removed the WS_EX_CONTROLPARENT style - it is not for children,
13033         it is for their parents!
13034         (mswindows_edit_field_instantiate): Ditto.
13035         (mswindows_progress_gauge_instantiate): Ditto.
13036         (mswindows_tree_view_instantiate): Ditto.
13037         (mswindows_tab_control_instantiate): Ditto.
13038         (mswindows_scrollbar_instantiate): Ditto.
13039         (mswindows_combo_box_instantiate): Ditto.
13040         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13041         style to the "clip" window.
13042         (mswindows_button_instantiate): Removed compilation warning by
13043         equally typing terms of the ?: operator.
13044
13045 2000-01-12  Didier Verna  <didier@xemacs.org>
13046
13047         * redisplay.c (generate_fstring_runes): new parameter holding the
13048         last modeline-format extent.
13049         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13050         extent, fill the glyph block with it.
13051         (generate_fstring_runes): handle these parameters.
13052         (generate_formatted_string_db): ditto.
13053
13054         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13055         glyphs'extents in the modeline.
13056
13057 1999-01-11  Mike Woolley  <mike@bulsara.com>
13058
13059         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13060         256Mb, as a workaround for the non-starting problem many people
13061         have experienced.
13062
13063 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13064
13065         * console-tty.c (Fset_console_tty_output_coding_system):
13066         Force redrawing tty frame.
13067
13068 2000-01-10  Didier Verna  <didier@xemacs.org>
13069
13070         * redisplay.c (generate_fstring_runes): fix size computation bug.
13071
13072 2000-01-09  William M. Perry <wmperry@aventail.com>
13073
13074         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13075
13076 2000-01-09  Andy Piper  <andy@xemacs.org>
13077
13078         * glyphs-msw.c: index -> i to avoid shadows.
13079         (xbm_create_bitmap_from_data): make static.
13080         (check_valid_string_or_int): deleted.
13081         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13082
13083         * glyphs-x.c (x_update_subwindow): remove unused args.
13084
13085         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13086         back pointer - this is done in allocate_image_instance.
13087         (query_string_font): return Qnil to make the compiler happy.
13088         (unmap_subwindow): set to ~0 to make the compiler happy.
13089         (glyph_query_geometry): comment out until used.
13090         (glyph_layout): ditto.
13091
13092 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13093
13094         * insdel.c (signal_after_change): Remove extraneous unbind_to().