Sync up with r21-4-11-chise-0_21-=jis-x0208-1983.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
4         `Qjapanese_jisx0208'.
5         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
6         of `japanese-jisx0208'.
7         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
8         `=jis-x0208-1983'.
9
10 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
13         `Qjapanese_jisx0208_1978'.
14         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
15         of `japanese-jisx0208-1978'.
16         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
17         `=jis-x0208-1978'.
18
19 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
22         only for XEmacs CHISE.
23
24 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
25
26         * char-ucs.h: Compact non-ISO-IR charset-ids.
27         (LEADING_BYTE_UCS): Changed to -177.
28         (LEADING_BYTE_CONTROL_1): Changed to -77.
29         (LEADING_BYTE_UCS_BMP): Changed to -176.
30         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
31
32 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * mule-charset.c (Qiso_ir): New variable.
35         (Fmake_charset): Recognise new property `iso-ir'.
36         (syms_of_mule_charset): Add new symbol `iso-ir'.
37
38 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
39
40         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
41         n to -n; charset-id of non ISO-IR sets are changed to positive
42         numbers.
43
44 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
45
46         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
47         of `ucs'.
48         (Qmap_ucs): New variable.
49         (syms_of_mule_charset): Add new symbol `=ucs'.
50         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
51
52         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
53
54         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
55
56         * char-ucs.h (Qmap_ucs): New extern variable.
57
58 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
61         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
62         don't define it when UTF2000 is not defined.
63         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
64         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
65         when UTF2000 is not defined.
66         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
67         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
68
69 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
72
73         * mule-charset.c (Vcharset_ucs_gb): Deleted.
74         (Qucs_gb): Deleted.
75         (syms_of_mule_charset): Delete `ucs-gb'.
76         (complex_vars_of_mule_charset): Likewise.
77
78 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
79
80         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
81
82         * mule-charset.c (Vcharset_ucs_cns): Deleted.
83         (Qucs_cns): Deleted.
84         (syms_of_mule_charset): Delete `ucs-cns'.
85         (complex_vars_of_mule_charset): Likewise.
86
87 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
90
91         * mule-charset.c (Vcharset_ucs_jis): Deleted.
92         (Qucs_jis): Deleted.
93         (syms_of_mule_charset): Delete `ucs-jis'.
94         (complex_vars_of_mule_charset): Likewise.
95
96 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
97
98         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
99
100         * mule-charset.c (Vcharset_ucs_ks): Deleted.
101         (Qucs_ks): Deleted.
102         (syms_of_mule_charset): Delete `ucs-ks'.
103         (complex_vars_of_mule_charset): Likewise.
104
105 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
106
107         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
108         (Qideograph_daikanwa_2): Deleted.
109         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
110         (complex_vars_of_mule_charset): Likewise.
111
112         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
113         (LEADING_BYTE_DAIKANWA_1): Deleted.
114         (LEADING_BYTE_DAIKANWA_2): Deleted.
115         (MIN_CHAR_DAIKANWA): Deleted.
116         (MAX_CHAR_DAIKANWA): Deleted.
117
118 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
119
120         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
121         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
122         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
123
124         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
125         (Vcharset_ideograph_daikanwa): Deleted.
126         (Qideograph_hanziku_{1..12}): Deleted.
127         (Qideograph_daikanwa): Deleted.
128         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
129         Vcharset_ideograph_daikanwa.
130         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
131         `ideograph-hanziku-{1..12}'.
132         (complex_vars_of_mule_charset): Likewise.
133
134 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
135
136         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
137
138         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
139         (Qideograph_gt_pj_{1..11}): Deleted.
140         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
141         (complex_vars_of_mule_charset): Likewise.
142
143 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * mule-charset.c (Vcharset_ucs_big5): Deleted.
146         (Vcharset_ideograph_gt): Deleted.
147         (Qucs_big5): Deleted.
148         (Qideograph_gt): Deleted.
149         (syms_of_mule_charset): Delete symbol `ucs-big5' and
150         `ideograph-gt'.
151         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
152         and `ideograph-gt'.
153
154         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
155         (LEADING_BYTE_GT): Deleted.
156         (GC_CHARSETP): Deleted.
157         (MIN_CHAR_GT): Deleted.
158         (MAX_CHAR_GT): Deleted.
159
160 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
163
164 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
165
166         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
167         (Qideograph_cbeta): Deleted.
168         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
169         (complex_vars_of_mule_charset): Likewise.
170
171         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
172         (MIN_CHAR_CBETA): Comment out.
173         (MAX_CHAR_CBETA): Likewise.
174
175 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
176
177         * mule-charset.c (charset_lookup_description_1): Use
178         `NUM_LEADING_BYTES' in UTF-2000.
179
180 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
181
182         * mule-charset.c (Vcharset_china3_jef): Deleted.
183         (Qchina3_jef): Deleted.
184         (syms_of_mule_charset): Don't define `china3-jef'.
185         (complex_vars_of_mule_charset): Likewise.
186
187         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
188         (MIN_CHAR_CHINA3_JEF): Comment out.
189         (MAX_CHAR_CHINA3_JEF): Comment out.
190
191 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * mule-charset.c (Vcharset_ucs_gb): New variable.
194         (Qucs_gb): New variable.
195         (syms_of_mule_charset): Add new symbol `ucs-gb'.
196         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
197
198         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
199
200 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * mule-charset.c (charset_code_point): if a coded-charset has a
203         final-byte, don't inherit the builtin range of the mother CCS.
204
205 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * mule-charset.c (charset_code_point): Fix problem about
208         inheritance.
209
210 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
211
212         * mule-charset.c (decode_builtin_char): Reorganized.
213
214 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * text-coding.c (char_encode_shift_jis): Modify for
217         `charset_code_point'.
218         (char_encode_big5): Likewise.
219         (char_encode_utf8): Likewise.
220         (char_encode_iso2022): Likewise.
221
222         * mule-charset.c (charset_code_point): Add new argument
223         `defined_only'.
224         (Fencode_char): Add new optional argument `defined_only'.
225
226         * chartab.c (put_char_table): Modify for `charset_code_point'.
227         (map_char_table): Likewise.
228
229         * char-ucs.h (charset_code_point): Add new argument
230         `defined_only'.
231         (encode_char_1): Modify for `charset_code_point'.
232
233 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
236         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
237
238 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
241         (Qjis_x0208): Likewise.
242         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
243         XCHARSET_FINAL(charset).
244         (charset_code_point): Modify condition for final-byte based
245         builtin-chars.
246         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
247         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
248         in UTF-2000; specify `=jis-x0208' as the mother of
249         `japanese-jisx0208-1978', `japanese-jisx0208' and
250         `japanese-jisx0208-1990' in UTF-2000.
251
252 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
253
254         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
255
256 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
257
258         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
259         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
260         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
261         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
262         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
263         CONVERSION_96x96x96x96 are introduced.
264         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
265         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
266         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
267
268         * char-ucs.h (CONVERSION_94): New macro.
269         (CONVERSION_96): New macro.
270         (CONVERSION_94x94): New macro.
271         (CONVERSION_96x96): New macro.
272         (CONVERSION_94x94x94): New macro.
273         (CONVERSION_96x96x96): New macro.
274         (CONVERSION_94x94x94x60): New macro.
275         (CONVERSION_94x94x94x94): New macro.
276         (CONVERSION_96x96x96x96): New macro.
277
278 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
279
280         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
281
282         * fns.c (Qideographic_structure): New variable.
283         (Qkeyword_char): New variable.
284         (ids_format_unit): New function.
285         (Fideographic_structure_to_ids): New function.
286         (syms_of_fns): Add new symbols `ideographic-structure' and
287         `:char'; add new builtin function `ideographic-structure-to-ids'.
288
289         * data.c (Fchar_ref_p): New function.
290         (syms_of_data): Add new builtin function `char-ref-p'.
291
292         * chartab.h: Add an EXFUN for `Ffind_char'.
293
294 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
295
296         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
297         and `COMPOSE_ADD_CHAR'.
298         (decode_coding_iso2022): Use `decode_flush_er_chars'.
299
300 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
301
302         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
303         instead of `DECODE_ADD_UCS_CHAR'.
304         (COMPOSE_ADD_CHAR): Likewise.
305
306 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
307
308         * text-coding.c (decode_flush_er_chars): New inline function.
309         (decode_add_er_char): New function.
310         (decode_coding_utf8): Use `decode_flush_er_chars' and
311         `decode_add_er_char'.
312
313 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
314
315         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
316         done before `decode_output_utf8_partial_char'.
317
318         * mule-charset.c (complex_vars_of_mule_charset): Specify
319         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
320         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
321
322 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * mule-charset.c (decode_defined_char): New function; search
325         mother.
326         (decode_builtin_char): Don't search mother if
327         XCHARSET_MAX_CODE(charset) == 0.
328         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
329         == 0 even if code >= XCHARSET_MAX_CODE(charset).
330         (Fdecode_char): Use `decode_defined_char' instead of
331         `DECODE_DEFINED_CHAR'.
332         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
333         mother of `Vcharset_ucs_jis'.
334
335         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
336         instead of `DECODE_DEFINED_CHAR'.
337
338         * char-ucs.h (decode_defined_char): Renamed from
339         `DECODE_DEFINED_CHAR'; changed to normal function.
340         (DECODE_CHAR): Use `decode_defined_char' instead of
341         `DECODE_DEFINED_CHAR'.
342
343         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
344
345 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
348
349         * text-coding.c (Vcoded_charset_entity_reference_alist): New
350         variable.
351         (Quse_entity_reference): New variable.
352         (Qd): New variable.
353         (Qx): New variable.
354         (QX): New variable.
355         (coding_system_description): Add description for
356         `ccs_priority_list'.
357         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
358         (allocate_coding_system): Initialize `ccs_priority_list' in
359         UTF-2000.
360         (Fmake_coding_system): Add description about
361         'use-entity-reference; setup
362         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
363         (Fcoding_system_property): Accept `disable-composition' and
364         `use-entity-reference' in UTF-2000.
365         (struct decoding_stream): Add new member `er_counter' and `er_buf'
366         in UTF-2000.
367         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
368         (decode_coding_utf8): Decode entity-reference if
369         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
370         (char_encode_utf8): Encode non-Unicode characters as
371         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
372         (str->codesys).
373         (syms_of_file_coding): Add new symbols `use-entity-reference',
374         `d', `x', `X'.
375         (vars_of_file_coding): Add new variable
376         `coded-charset-entity-reference-alist'.
377         (complex_vars_of_file_coding): Declare `disable-composition' and
378         `use-entity-reference' to be coding-system-properties in UTF-2000.
379
380         * file-coding.h (struct Lisp_Coding_System): Add new member
381         `use_entity_reference' and `ccs_priority_list'.
382         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
383         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
384         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
385
386 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
387
388         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
389
390 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
391
392         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
393         `XCHARSET_GRAPHIC(ccs)'.
394
395 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
396
397         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
398         for decoding-table.
399
400 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
401
402         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
403         instead of `XCHARSET_CHARS'.
404
405 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
406
407         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
408         (XCHARSET_BYTE_SIZE): Likewise.
409
410         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
411         mule-charset.c].
412         (XCHARSET_BYTE_SIZE): Likewise.
413
414 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * char-ucs.h (decoding_table_check_elements): Delete prototype.
417         (get_ccs_octet_table): New inline function.
418         (put_ccs_octet_table): Likewise.
419         (decoding_table_put_char): Use `get_ccs_octet_table' and
420         `put_ccs_octet_table'.
421         (decoding_table_remove_char): Use `decoding_table_put_char'.
422         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
423
424         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
425         into encoding_table.
426         (make_charset): Use Qunbound instead Qnil as initial value of
427         decoding_table.
428
429 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * mule-charset.c (put_char_ccs_code_point): Modify for
432         `decoding_table_remove_char' and `decoding_table_put_char'.
433         (remove_char_ccs): Modify for `decoding_table_remove_char'.
434
435         * char-ucs.h (decoding_table_remove_char): Change arguments to
436         hide decoding_table vector.
437         (decoding_table_put_char): Likewise.
438
439 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * mule-charset.c (decoding_table_remove_char): Moved to
442         char-ucs.h.
443         (decoding_table_put_char): Likewise.
444
445         * char-ucs.h (decoding_table_check_elements): New prototype [moved
446         from mule-charset.c].
447         (decoding_table_remove_char): New inline function [moved from
448         mule-charset.c].
449         (decoding_table_put_char): Likewise.
450
451 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
454         instead of `DECODE_CHAR' for mother; don't use special code for
455         chinese-big5 to use code space of chinese-big5-1 and
456         chinese-big5-2.
457         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
458         `MAX_CHAR_BIG5_CDP' for chinese-big5.
459
460         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
461         (MAX_CHAR_BIG5_CDP): Revival.
462
463 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
466         the XLFD registry-encoding name of `chinese-big5'.
467
468 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
469
470         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
471         (Qchinese_big5_cdp): Deleted.
472         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
473         (complex_vars_of_mule_charset): Delete coded-charset
474         `chinese-big5-cdp'.
475
476         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
477         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
478         `CHARSET_ID_OFFSET - n' for private CCS.
479         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
480         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
481         of `MIN_LEADING_BYTE'.
482         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
483         `(CHARSET_ID_OFFSET - 97)'.
484         (MIN_CHAR_BIG5_CDP): Deleted.
485         (MAX_CHAR_BIG5_CDP): Deleted.
486
487 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
488
489         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
490         extension.
491
492 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
493
494         * mule-charset.c (decode_builtin_char): Support mother charsets.
495
496 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
497
498         * mule-charset.c (Q94x94x60): New variable.
499         (charset_code_point): Support conversion `94x94x60'.
500         (Fmake_charset): Likewise.
501         (syms_of_mule_charset): Add new symbol `94x94x60'.
502
503         * char-ucs.h (CONVERSION_94x94x60): New macro.
504
505 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
506
507         * mule-charset.c (charset_code_point): Unify code about
508         `code-offset'.
509
510 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
511
512         * mule-charset.c (charset_code_point): Merge code about builtin
513         characters into code about mother charsets; don't use
514         `range_charset_code_point'.
515         (range_charset_code_point): Deleted.
516
517 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * mule-charset.c (Qcode_offset): New variable.
520         (Fmake_charset): Use `XUINT' to get value of `min-code' and
521         `max-code'; accept new property `code-offset'.
522         (syms_of_mule_charset): Add new symbol `code-offset'.
523
524 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * mule-charset.c (range_charset_code_point): Fixed.
527
528 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (decode_builtin_char): Change semantics of
531         code-offset of coded-charset.
532         (charset_code_point): Likewise.
533         (range_charset_code_point): Likewise.
534         (complex_vars_of_mule_charset): Modify for the change.
535
536 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * mule-charset.c (Fencode_char): Reverse arguments.
539
540         * mule-charset.c (charset_code_point): Fixed.
541
542 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
543
544         * mule-charset.c (Vcharset_mojikyo): Deleted.
545         (Vcharset_mojikyo_2022_1): Deleted.
546         (Vcharset_mojikyo_pj_{1..21}): Deleted.
547         (Qmin_code): New variable in UTF-2000.
548         (Qmax_code): Likewise.
549         (Qmother): Likewise.
550         (Qconversion): Likewise.
551         (Q94x60): Likewise.
552         (Qmojikyo): Deleted.
553         (Qmojikyo_2022_1): Deleted.
554         (Qmojikyo_pj_{1..22}): Deleted.
555         (mark_charset): Mark `cs->mother'.
556         (charset_description): Add description for `mother'.
557         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
558         new arguments `mother' and `conversion'; use
559         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
560         (charset_code_point): Moved from char-ucs.h; support `mother'
561         charset feature.
562         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
563         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
564         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
565         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
566         allow 2 as the value of `graphic' in UTF-2000; add new properties
567         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
568         require `final' in UTF-2000; modify for `make_charset'.
569         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
570         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
571         (Fcharset_property): Support `mother', `min-code' and `max-code'.
572         (Fencode_char): New function.
573         (syms_of_mule_charset): Add new builtin function `encode-char' in
574         UTF-2000; add new symbols `min-code', `max-code', `mother',
575         `conversion' and `94x60'; delete symbols `mojikyo',
576         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
577         (complex_vars_of_mule_charset): Modify for `make_charset' change;
578         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
579         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
580
581         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
582         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
583
584         * char-ucs.h (Vcharset_mojikyo): Deleted.
585         (Vcharset_mojikyo_2022_1): Deleted.
586         (LEADING_BYTE_MOJIKYO): Deleted.
587         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
588         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
589         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
590         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
591         add new member `mother'; add new member `conversion'.
592         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
593         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
594         (CHARSET_MOTHER): New macro.
595         (CHARSET_CONVERSION): New macro.
596         (CONVERSION_IDENTICAL): New macro.
597         (CONVERSION_94x60): New macro.
598         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
599         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
600         (XCHARSET_MOTHER): New macro.
601         (XCHARSET_CONVERSION): New macro.
602         (MIN_CHAR_MOJIKYO): Deleted.
603         (MAX_CHAR_MOJIKYO): Deleted.
604         (DECODE_MOJIKYO_2022): Deleted.
605         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
606         (charset_code_point): Changed to non-inline function.
607         (encode_char_1): Use `charset_code_point'.
608         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
609
610 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
611
612         * lread.c (read_compiled_function): Fix prototype.
613         (read_vector): Likewise.
614
615 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * lrecord.h (struct lrecord_header): Delete `older'.
618         (set_lheader_implementation): Delete code for `older'.
619         (set_lheader_older_implementation): Deleted.
620         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
621         (OLDER_RECORD_P): Deleted.
622         (OLDER_RECORD_HEADER_P): Deleted.
623         (alloc_older_lcrecord): Deleted.
624         (alloc_older_lcrecord_type): Deleted.
625
626         * alloc.c (all_older_lcrecords): Deleted.
627         (alloc_older_lcrecord): Deleted.
628         (disksave_object_finalization_1): Delete code for older objects.
629         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
630         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
631
632 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * mule-charset.c (decoding_table_put_char): Use `make_vector'
635         instead of `make_older_vector'.
636         (put_char_ccs_code_point): Likewise.
637         (mark_charset): Mark `cs->decoding_table'.
638         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
639
640         * lisp.h (make_older_vector): Deleted.
641         (make_vector_newer): Deleted.
642
643         * config.h.in (HAVE_GGC): Deleted.
644
645         * alloc.c (make_older_vector): Deleted.
646         (make_vector_newer_1): Deleted.
647         (make_vector_newer): Deleted.
648
649 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
650
651         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
652         (Qideograph_daikanwa_2): New variable.
653         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
654         (complex_vars_of_mule_charset): Add new coded-charset
655         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
656         `LEADING_BYTE_DAIKANWA'.
657
658         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
659         (LEADING_BYTE_DAIKANWA_1): New macro.
660         (LEADING_BYTE_DAIKANWA_2): New macro.
661         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
662
663 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * mule-charset.c (complex_vars_of_mule_charset): Change
666         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
667         the second revised version.
668
669 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * mule-charset.c (Vcharset_ucs_smp): New variable.
672         (Vcharset_ucs_sip): New variable.
673         (Qucs_smp): New variable.
674         (Qucs_sip): New variable.
675         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
676         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
677         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
678         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
679         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
680         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
681
682         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
683         (LEADING_BYTE_UCS_SIP): New macro.
684         (MIN_CHAR_SMP): New macro.
685         (MAX_CHAR_SMP): New macro.
686         (MIN_CHAR_SIP): New macro.
687         (MAX_CHAR_SIP): New macro.
688
689 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
690
691         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
692         utf-2000.
693
694 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
697         value; don't store value into `encoding_table' of `Lisp_Charset'.
698         (mark_charset): `encoding_table' was deleted.
699         (charset_description): Likewise.
700         (make_charset): Likewise.
701         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
702         `put_char_ccs_code_point'.
703
704         * chartab.h (Fput_char_attribute): New EXFUN.
705
706         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
707         is unified with normal symbol space.
708         (Fget_char_attribute): Likewise.
709         (Fput_char_attribute): Likewise; behavior of
710         `put_char_ccs_code_point' is changed.
711
712         * char-ucs.h: Include "elhash.h".
713         (Vchar_attribute_hash_table): New external variable.
714         (struct Lisp_Charset): Delete `encoding_table'.
715         (CHARSET_ENCODING_TABLE): New implementation; refer
716         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
717         `Lisp_Charset'.
718
719 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
720
721         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
722         (cs) == 0.
723
724 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * text-coding.c (char_encode_big5): Prefer charset-g1 than
727         `chinese-big5'.
728
729 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * chartab.c (uint8_byte_table_description): New constant.
732         (uint8-byte-table): Use `uint8_byte_table_description'.
733         (uint16_byte_table_description): New constant.
734         (uint16-byte-table): Use `uint16_byte_table_description'.
735
736 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
739         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
740
741 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * mule-charset.c (Vcharset_ucs_ks): New variable.
744         (Qucs_ks): New variable.
745         (syms_of_mule_charset): Add new symbol `ucs-ks'.
746         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
747
748         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
749
750 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
753         (Fdecode_char): Likewise.
754
755         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
756         chartab.h.
757         (Fdefine_char): Modify for Fdecode_char.
758         (Ffind_char): Likewise.
759
760         * mule-charset.c (Fdecode_char): Add new optional argument
761         `defined-only'.
762         (Fdecode_builtin_char): Modify for `Fdecode_char'.
763
764 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
765
766         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
767         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
768         (allocate_coding_system): Initialize initial-charsets of
769         CODESYS_BIG5 in XEmacs UTF-2000.
770         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
771         CODESYS_BIG5 in XEmacs UTF-2000.
772         (decode_coding_big5): Use initial-charset-g0 and -g1 of
773         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
774
775         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
776         variables.
777         (Qideograph_hanziku_{1 .. 12}): Likewise.
778         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
779         .. 12}'.
780         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
781         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
782         `ideograph-hanziku-{1 .. 12}'.
783
784         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
785         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
786         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
787         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
788         (DECODE_DEFINED_CHAR): New inline function.
789         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
790
791 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * mule-charset.c (Vcharset_china3_jef): Renamed from
794         `Vcharset_japanese_jef_china3'.
795         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
796         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
797         `{MIN|MAX}_CHAR_JEF_CHINA3'..
798         (syms_of_mule_charset): Rename `china3-jef' from
799         `japanese-jef-china3'.
800         (complex_vars_of_mule_charset): Likewise; rename
801         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
802
803         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
804         `LEADING_BYTE_JEF_CHINA3'.
805         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
806         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
807
808 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
809
810         * mule-charset.c (encode_builtin_char_1): Comment out special code
811         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
812
813         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
814         (MAX_CHAR_MOJIKYO_0): Comment out.
815         (MIN_CHAR_CBETA): Changed to 0x00E20000.
816         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
817         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
818         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
819
820 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
821
822         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
823         (Qideograph_cbeta): New variable.
824         (encode_builtin_char_1): Comment out special code for
825         coded-charset `mojikyo' and `japanese-jef-china3'.
826         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
827         (complex_vars_of_mule_charset): Add new coded-charset
828         `ideograph-cbeta'.
829
830         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
831         (MIN_CHAR_CBETA): New macro.
832         (MAX_CHAR_CBETA): New macro.
833
834 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
835
836         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
837         (LEADING_BYTE_JEF_CHINA3): New macro.
838         (MIN_CHAR_JEF_CHINA3): New macro.
839         (MAX_CHAR_JEF_CHINA3): Likewise.
840         (DECODE_CHAR): Fixed.
841
842 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
845         (Qjapanese_jef_china3): New variable.
846         (encode_builtin_char_1): Support `japanese-jef-china3'.
847         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
848         (complex_vars_of_mule_charset): Add new coded-charset
849         `japanese-jef-china3'.
850
851 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
854         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
855         94^4, 96^3, 96^4, 128^n and 256^n set.
856         (put_char_table): Use `XCHARSET_CELL_RANGE'.
857         (map_char_table): Likewise.
858
859 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
862         UTF-2000.
863
864 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * chartab.h (get_char_id_table): New inline function.
867
868         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
869         function.
870
871 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
872
873         * chartab.h (decode_char_table_range): New prototype in XEmacs
874         UTF-2000.
875         (put_char_id_table): New inline function in XEmacs UTF-2000.
876
877         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
878         function.
879         (decode_char_table_range): Delete static declaration in XEmacs
880         UTF-2000.
881
882 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * chartab.c (put_char_id_table): Use `put_char_table'.
885
886 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
887
888         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
889         (map_over_uint16_byte_table): Likewise.
890         (map_over_byte_table): Likewise.
891         (map_char_table): Modify for `map_over_uint8_byte_table',
892         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
893         UTF-2000.
894
895 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * chartab.c (struct map_char_table_for_charset_arg): New
898         structure.
899         (map_char_table_for_charset_fun): New function.
900         (map_char_table): Use `map_char_table' for encoding_table of
901         `range->charset'.
902
903 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * chartab.c (map_char_table): Check a character is found in
906         range->charset instead of non default value is defined in
907         char-table when range is CHARTAB_RANGE_ROW.
908
909 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
910
911         * chartab.c (map_char_id_table): Deleted.
912         (Fmap_char_attribute): Use `map_char_table' instead of
913         `map_char_id_table'.
914
915 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
916
917         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
918         UTF-2000.
919         (update_syntax_table): Deleted in XEmacs UTF-2000.
920
921         * syntax.c (find_defun_start): Use `syntax_table' instead of
922         `mirror_syntax_table' in XEmacs UTF-2000.
923         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
924         UTF-2000.
925         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
926         XEmacs UTF-2000.
927         (Fmatching_paren): Likewise.
928         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
929         in XEmacs UTF-2000.
930         (find_start_of_comment): Likewise.
931         (find_end_of_comment): Likewise.
932         (Fforward_comment): Likewise.
933         (scan_lists): Likewise.
934         (char_quoted): Likewise.
935         (Fbackward_prefix_chars): Likewise.
936         (scan_sexps_forward): Likewise.
937         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
938         (update_syntax_table): Likewise.
939
940         * search.c (skip_chars): Use `syntax_table' instead of
941         `mirror_syntax_table' in XEmacs UTF-2000.
942         (wordify): Likewise.
943         (Freplace_match): Likewise.
944
945         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
946         `mirror_syntax_table' in XEmacs UTF-2000.
947         (WORDCHAR_P_UNSAFE): Likewise.
948         (re_match_2_internal): Likewise.
949
950         * font-lock.c (find_context): Use `buf->syntax_table' instead of
951         `buf->mirror_syntax_table' in XEmacs UTF-2000.
952
953         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
954         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
955
956         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
957         XEmacs UTF-2000.
958
959         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
960         UTF-2000.
961         (print_char_table): Print `default_value' in XEmacs UTF-2000.
962         (char_table_description): Delete `mirror_table' in XEmacs
963         UTF-2000.
964         (fill_char_table): Don't call `update_syntax_table' in XEmacs
965         UTF-2000.
966         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
967         (Fcopy_char_table): Likewise.
968         (put_char_table): Don't call `update_syntax_table' in XEmacs
969         UTF-2000.
970
971         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
972         `buf->mirror_syntax_table' in XEmacs UTF-2000.
973         (casify_region_internal): Likewise.
974
975         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
976
977         * buffer.c (common_init_complex_vars_of_buffer): Don't use
978         `mirror_syntax_table' in XEmacs UTF-2000.
979
980         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
981         `buf->mirror_syntax_table' in XEmacs UTF-2000.
982         (Fexpand_abbrev): Likewise.
983
984 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
985
986         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
987
988 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
989
990         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
991         (map_over_uint16_byte_table): Likewise.
992         (map_over_byte_table): Likewise.
993         (get_char_id_table): Refer `cit->default_value'.
994         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
995         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
996         of character-id ranges.
997         (mark_char_table): Mark `ct->default_value'.
998         (char_table_description): Add `default_value'.
999         (fill_char_table): Use `default_value'.
1000         (decode_char_table_range): Decode `nil' as
1001         `CHARTAB_RANGE_DEFAULT'.
1002         (get_char_id_table): Refer `cit->default_value'.
1003         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1004         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1005         temporary hack; check value of char-table is bound or not.
1006         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1007
1008         * chartab.h (struct Lisp_Char_Table): Add new member
1009         `default_value' in XEmacs UTF-2000.
1010         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1011         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1012         UTF-2000.
1013
1014 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1015
1016         * chartab.h (Lisp_Char_ID_Table): Deleted.
1017
1018         * chartab.c (char_table_description): Fix typo.
1019         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1020         `Lisp_Char_ID_Table'.
1021
1022 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1023
1024         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1025         `CHAR_ID_TABLE_P'.
1026
1027         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1028         `CHAR_ID_TABLE_P'.
1029
1030         * chartab.h (XCHAR_ID_TABLE): Deleted.
1031         (XSETCHAR_ID_TABLE): Deleted.
1032         (CHAR_ID_TABLE_P): Deleted.
1033
1034         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1035         `CHAR_ID_TABLE_P'.
1036         (Fget_composite_char): Likewise.
1037         (put_char_table): Likewise.
1038         (add_char_attribute_alist_mapper): Fixed.
1039         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1040         `CHAR_ID_TABLE_P'.
1041         (Fget_char_attribute): Likewise.
1042         (Fget_char_attribute): Likewise.
1043         (Fmap_char_attribute): Likewise.
1044
1045         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1046         `CHAR_ID_TABLE_P'.
1047         (encode_char_1): Likewise.
1048
1049 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050
1051         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1052         `XCHAR_ID_TABLE'.
1053
1054         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1055         instead of `XCHAR_ID_TABLE'.
1056         (remove_char_ccs): Likewise.
1057
1058         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1059         `XCHAR_ID_TABLE'.
1060         (Fget_composite_char): Likewise.
1061         (Fchar_variants): Likewise.
1062         (put_char_table): Likewise.
1063         (add_char_attribute_alist_mapper): Likewise.
1064         (Fchar_attribute_alist): Likewise.
1065         (Fget_char_attribute): Likewise.
1066         (Fput_char_attribute): Likewise.
1067         (Fmap_char_attribute): Likewise.
1068         (Fmap_char_attribute): Likewise.
1069
1070         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1071         `XCHAR_ID_TABLE'.
1072         (encode_char_1): Likewise.
1073
1074 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075
1076         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1077         `Lisp_Char_ID_Table'.
1078         (mark_char_id_table): Deleted.
1079         (print_char_id_table): Likewise.
1080         (char_id_table_equal): Likewise.
1081         (char_id_table_hash): Likewise.
1082         (char_id_table_description): Likewise.
1083         (char_id_table): Likewise.
1084         (make_char_id_table): Use `Fmake_char_table' and
1085         `fill_char_table'.
1086         (get_char_id_table): Use `Lisp_Char_Table' instead of
1087         `Lisp_Char_ID_Table'.
1088         (put_char_id_table): Likewise.
1089         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1090         `XCHAR_ID_TABLE'.
1091         (Fremove_char_attribute): Likewise.
1092         (syms_of_chartab): Don't define type `char-id-table'.
1093
1094         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1095         (char_id_table): Likewise.
1096         (GC_CHAR_ID_TABLE_P): Likewise.
1097         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1098         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1099         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1100         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1101         (get_char_id_table): Use `Lisp_Char_Table' instead of
1102         `Lisp_Char_ID_Table'.
1103         (put_char_id_table_0): Likewise.
1104         (put_char_id_table): Likewise.
1105
1106 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1107
1108         * chartab.h: Lisp_Byte_Table related codes are moved from
1109         chartab.h.
1110
1111         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1112
1113 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1114
1115         * chartab.h: Don't include "chartab.h".
1116         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1117         (Lisp_Char_ID_Table): Likewise.
1118         (char_id_table): Likewise.
1119         (XCHAR_ID_TABLE): Likewise.
1120         (XSETCHAR_ID_TABLE): Likewise.
1121         (CHAR_ID_TABLE_P): Likewise.
1122         (GC_CHAR_ID_TABLE_P): Likewise.
1123         (get_char_id_table): Likewise.
1124
1125         * char-ucs.h: Include "chartab.h".
1126         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1127         (Lisp_Char_ID_Table): Likewise.
1128         (char_id_table): Likewise.
1129         (XCHAR_ID_TABLE): Likewise.
1130         (XSETCHAR_ID_TABLE): Likewise.
1131         (CHAR_ID_TABLE_P): Likewise.
1132         (GC_CHAR_ID_TABLE_P): Likewise.
1133         (get_char_id_table): Likewise.
1134
1135 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1136
1137         * chartab.c (copy_uint8_byte_table): New function.
1138         (copy_uint16_byte_table): New function.
1139         (copy_byte_table): New function.
1140         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1141         characters to call.
1142         (map_over_uint16_byte_table): Likewise.
1143         (map_over_byte_table): Likewise.
1144         (get_byte_table): Move prototype to chartab.h.
1145         (put_byte_table): Likewise.
1146         (put_char_id_table_0): Moved to chartab.h.
1147         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1148         (char_table_entry_equal): Likewise.
1149         (char_table_entry_hash): Likewise.
1150         (char_table_entry_description): Likewise.
1151         (char_table_entry): Likewise.
1152         (make_char_table_entry): Likewise.
1153         (copy_char_table_entry): Likewise.
1154         (get_non_ascii_char_table_value): Likewise.
1155         (map_over_charset_ascii): Likewise.
1156         (map_over_charset_control_1): Likewise.
1157         (map_over_charset_row): Likewise.
1158         (map_over_other_charset): Likewise.
1159         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1160         (print_char_table): Likewise.
1161         (char_table_equal): Likewise.
1162         (char_table_hash): Likewise.
1163         (char_table_description): Likewise.
1164         (fill_char_table): Likewise.
1165         (Fcopy_char_table): Likewise.
1166         (get_char_table): Likewise.
1167         (Fget_range_char_table): Likewise.
1168         (put_char_table): Likewise.
1169         (map_char_table): Likewise.
1170         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1171         UTF-2000.
1172
1173 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1176         `Vauto_fill_chars' in XEmacs UTF-2000.
1177
1178         * chartab.h (get_byte_table): New prototype [moved from
1179         chartab.c].
1180         (put_byte_table): Likewise [moved from chartab.c].
1181         (put_char_id_table_0): New inline function [moved from chartab.c].
1182         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1183         (Lisp_Char_Table_Entry): Likewise.
1184         (char_table_entry): Likewise.
1185         (XCHAR_TABLE_ENTRY): Likewise.
1186         (XSETCHAR_TABLE_ENTRY): Likewise.
1187         (CHAR_TABLE_ENTRYP): Likewise.
1188         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1189         (NUM_ASCII_CHARS): Likewise.
1190         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1191         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1192
1193 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194
1195         * chartab.c (get_char_id_table): Change interface.
1196         (put_char_id_table_0): New function.
1197         (put_char_id_table): Change interface; new implementation.
1198         (Fget_composite_char): Modify for interface change of
1199         `get_char_id_table'.
1200         (Fchar_variants): Likewise.
1201         (add_char_attribute_alist_mapper): Likewise.
1202         (Fchar_attribute_alist): Likewise.
1203         (Fget_char_attribute): Likewise.
1204         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1205         as same as character as the first argument like `put-char-table';
1206         modify for interface change of `put_char_id_table'.
1207         (Fremove_char_attribute): Modify for interface change of
1208         `put_char_id_table'.
1209
1210 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211
1212         * text-coding.c: Sync up with XEmacs 21.2.41.
1213         (COMPOSE_ADD_CHAR): Modify for interface change of
1214         `get_char_id_table'.
1215
1216         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1217         change of `put_char_id_table'.
1218         (remove_char_ccs): Likewise.
1219
1220         * chartab.h (put_char_id_table): Change interface.
1221
1222         * char-ucs.h (get_char_id_table): Change interface.
1223         (charset_code_point): Modify for interface change of
1224         `get_char_id_table'.
1225         (encode_char_1): Likewise.
1226
1227 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1230         argument `ccs'.
1231         (map_over_uint16_byte_table): Likewise.
1232         (map_over_byte_table): Likewise.
1233         (map_char_id_table): Add new argument `range' like
1234         `map_char_table'.
1235         (Fmap_char_attribute): Add new argument `range' like
1236         `Fmap_char_table'.
1237
1238 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1239
1240         * chartab.c (map_over_uint8_byte_table): Change interface of
1241         mapping function to use struct chartab_range instead of Emchar.
1242         (map_over_uint16_byte_table): Likewise.
1243         (map_over_byte_table): Likewise.
1244         (map_char_id_table): Likewise.
1245         (struct slow_map_char_id_table_arg): Deleted.
1246         (slow_map_char_id_table_fun): Deleted.
1247         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1248         function `slow_map_char_table_fun' instead of struct
1249         `slow_map_char_id_table_arg' and function
1250         `slow_map_char_id_table_fun'.
1251
1252 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * mule-charset.c: Move char-it-table related codes to chartab.c.
1255         (Vutf_2000_version): Moved to chartab.c.
1256         (Fdefine_char): Likewise.
1257         (Ffind_char): Likewise.
1258         (syms_of_mule_charset): Move types `uint8-byte-table',
1259         `uint16-byte-table', `byte-table' and `char-id-table' to
1260         chartab.c; move functions `char_attribute_list,
1261         `find_char_attribute_table, `char_attribute_alist,
1262         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1263         `map_char_attribute, `define_char, `find_char, `char_variants and
1264         `get_composite_char to chartab.c; move symbols `=>ucs',
1265         `->decomposition', `compat', `isolated', `initial', `medial',
1266         `final', `vertical', `noBreak', `fraction', `super', `sub',
1267         `circle', `square', `wide', `narrow', `small' and `font' to
1268         chartab.c.
1269         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1270         setting codes for `Vcharacter_composition_table' and
1271         `Vcharacter_variant_table' to chartab.c.
1272         (complex_vars_of_mule_charset): Move setting code for
1273         `Vchar_attribute_hash_table' to chartab.c.
1274
1275         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1276         (make_char_id_table): New prototype.
1277         (put_char_id_table): Likewise.
1278         (Fget_char_attribute): Likewise.
1279
1280         * chartab.c: Move char-id-table related code from mule-charset.c.
1281         (Vutf_2000_version): Moved from mule-charset.c.
1282
1283         * char-ucs.h (Qucs): New external variable.
1284         (put_char_ccs_code_point): New prototype.
1285         (remove_char_ccs): Likewise.
1286
1287 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1288
1289         * mule-charset.c (Vcharset_ucs_jis): New variable.
1290         (Qucs_jis): Likewise.
1291         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1292         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1293
1294         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1295
1296 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * mule-charset.c (map_over_uint8_byte_table): New function.
1299         (map_over_uint16_byte_table): Likewise.
1300         (map_over_byte_table): Likewise.
1301         (map_char_id_table): Likewise.
1302         (slow_map_char_id_table_fun): Likewise.
1303         (Fmap_char_attribute): Likewise.
1304         (syms_of_mule_charset): Add new function `map-char-attribute'.
1305
1306 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1309         (syms_of_mule_charset): Add new function `find-char'.
1310
1311 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312
1313         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1314         XEmacs UTF-2000.
1315         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1316         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1317         XEmacs UTF-2000.
1318         (complex_vars_of_mule_charset): Add new coded-charset
1319         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1320         `ideograph-gt-pj-*'.
1321
1322         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1323
1324 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * mule-charset.c (encode_builtin_char_1): Purge codes about
1327         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1328         {MIN|MAX}_CHAR_HEBREW.
1329         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1330         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1331
1332         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1333         (MAX_CHAR_GREEK): Purged.
1334         (MIN_CHAR_CYRILLIC): Purged.
1335         (MAX_CHAR_CYRILLIC): Purged.
1336         (MIN_CHAR_HEBREW): Commented out.
1337         (MAX_CHAR_HEBREW): Likewise.
1338
1339 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1340
1341         * mule-charset.c (Qto_ucs): New variable.
1342         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1343         (Fdefine_char): Likewise.
1344         (syms_of_mule_charset): Add new symbol `=>ucs'.
1345
1346 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347
1348         * mule-charset.c (Fdecode_char): Fixed.
1349
1350 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1353         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1354         "tcvn5712-1".
1355
1356 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * mule-charset.c (Vcharset_ucs_big5): New variable.
1359         (Qucs_big5): Likewise.
1360         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1361         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1362
1363         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1364
1365 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1366
1367         * mule-charset.c (decode_builtin_char): Check Big5 code range
1368         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1369
1370 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1371
1372         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1373         (Qchinese_gb12345): Likewise.
1374         (Fdecode_builtin_char): Fixed.
1375         (syms_of_mule_charset): Add `chinese-gb12345'.
1376         (complex_vars_of_mule_charset): Add coded-charset
1377         `chinese-gb12345'.
1378
1379         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1380         (LEADING_BYTE_CHINESE_GB12345): New macro.
1381
1382 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1385         and `latin-viscii-upper' for `latin-viscii'.
1386
1387 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * mule-charset.c (Fdecode_builtin_char): Comment out
1390         regularization code for ISO-IR GR representation.
1391
1392 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * mule-charset.c (decode_builtin_char): New function; renamed from
1395         `make_builtin_char'; return -1 instead of signal.
1396         (Fdecode_builtin_char): Use `decode_builtin_char'.
1397
1398         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1399         `make_builtin_char'.
1400         (DECODE_CHAR): Use `decode_builtin_char' instead of
1401         `make_builtin_char'; use mapping table of `chinese-big5' for
1402         `chinese-big5-{1,2}'.
1403
1404 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * text-coding.c (char_encode_big5): New function.
1407         (char_finish_big5): Likewise.
1408         (reset_encoding_stream): Use `char_encode_big5' and
1409         `char_finish_big5' for CODESYS_BIG5.
1410         (mule_encode): Don't use `encode_coding_big5'.
1411         (encode_coding_big5): Deleted.
1412
1413 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1416         0x81- in XEmacs UTF-2000.
1417         (detect_coding_big5): Likewise.
1418
1419 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420
1421         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1422         generate character-id if the CCS property does not have
1423         corresponding predefined character.
1424         (make_builtin_char): Return -1 if corresponding predefined
1425         character is not found.
1426         (Fdecode_char): Return nil if corresponding character is not
1427         found.
1428         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1429         don't map to builtin ucs space.
1430
1431 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1432
1433         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1434         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1435
1436 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1439         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1440         (Qideograph_gt): Likewise.
1441         (Qideograph_gt_pj_{1..11}): Likewise.
1442         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1443         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1444         `ideograph-gt-pj-11'.
1445         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1446         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1447         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1448
1449         * char-ucs.h (LEADING_BYTE_GT): New macro.
1450         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1451         (MIN_CHAR_GT): Likewise.
1452         (MAX_CHAR_GT): Likewise.
1453
1454 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1457         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1458
1459         * doprnt.c (unsigned_int_converters): Add `c'.
1460         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1461
1462         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1463         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1464         `MIN_CHAR_MOJIKYO'.
1465         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1466         (MAX_CHAR_MOJIKYO_0): New macro.
1467         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1468
1469 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1470
1471         * mule-charset.c (Fdefine_char): Delete cemented out code.
1472         (encode_builtin_char_1): Modify for new allocation of builtin
1473         Mojikyo characters.
1474
1475         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1476
1477 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1478
1479         * mule-charset.c (Vcharset_ucs_cns): New variable.
1480         (Qucs_cns): New variable.
1481         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1482         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1483
1484 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1485
1486         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1487
1488 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1489
1490         * search.c (search_buffer): Make `charset_base_code' as
1491         character-id >> 6 to eliminate the corresponding last byte in
1492         UTF-8 representation [I'm not sure it is right thing].
1493         (boyer_moore): Likewise.
1494
1495 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1496
1497         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1498         representation in MULE.
1499
1500 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1501
1502         * text-coding.c (Fmake_coding_system): Use
1503         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1504         `EXTERNAL_PROPERTY_LIST_LOOP'.
1505
1506 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1507
1508         * text-coding.c (decode_output_utf8_partial_char): New function.
1509         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1510
1511 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512
1513         * text-coding.c (decode_coding_utf8): Output original byte
1514         sequence if it is broken; change order of conditions.
1515
1516         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1517         of conditions.
1518
1519         * mb-multibyte.h (BYTE_ASCII_P):
1520         Use bit ops for char-signedness safety.
1521         (BYTE_C0_P): Use bit ops for char-signedness safety.
1522         (BYTE_C1_P): Use bit ops for char-signedness safety.
1523
1524         * character.h: (XCHAR_OR_CHAR_INT):
1525         Always use inline function.
1526         Remove redundant type checking assert() - XINT will abort quite
1527         nicely.
1528
1529 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530
1531         * text-coding.c: (Fencode_shift_jis_char):
1532         (Fencode_big5_char):
1533         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1534         Replace 0 with '\0' when working with bytes.
1535         Replace initial "(" with "\(" in docstrings.
1536
1537         (Fmake_coding_system):
1538         When type is ccl and value is vector, register it with a proper
1539         symbol.  And checks whether the given ccl program is valid.
1540         (mule_decode): When calling ccl_driver, if src indicates
1541         NULL pointer, set an empty string instead.
1542         (mule_encode): Likewise.
1543
1544         (detect_eol_type):
1545         (detect_coding_sjis):
1546         (decode_coding_sjis):
1547         (detect_coding_big5):
1548         (decode_coding_big5):
1549         (detect_coding_ucs4):
1550         (decode_coding_ucs4):
1551         (detect_coding_utf8):
1552         (decode_coding_utf8):
1553         (detect_coding_iso2022):
1554         (decode_coding_iso2022):
1555         (decode_coding_no_conversion):
1556         (mule_decode):
1557         Make all detecting and decoding functions take an Extbyte * arg.
1558         (text_encode_generic):
1559         (encode_coding_big5):
1560         (encode_coding_no_conversion):
1561         (mule_encode):
1562         Make all encoding functions take a Bufbyte * arg.
1563         Use size_t instead of unsigned int for memory sizes.
1564         Only cast to unsigned char whenever dereferencing Extbyte *.
1565
1566         (struct lrecord_description fcd_description_1): Use countof.
1567         (complex_vars_of_file_coding):
1568         Use countof instead of sizeof.
1569         Use CHECK_NATNUM instead of CHECK_INT.
1570
1571 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572
1573         * mule-charset.c (Fget_char_attribute): Add new optional argument
1574         `default-value'.
1575         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1576         (remove_char_ccs): Likewise.
1577
1578 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1579
1580         * text-coding.c (char_encode_shift_jis): New implementation in
1581         UTF-2000.
1582         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1583         ...)'.
1584
1585         * mule-charset.c (Vcharset_chinese_big5): New variable in
1586         UTF-2000.
1587         (Qchinese_big5): New variable in UTF-2000.
1588         (BIG5_SAME_ROW): New macro in UTF-2000.
1589         (make_builtin_char): Use builtin characters of
1590         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1591         characters of `Vcharset_chinese_big5'.
1592         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1593         (complex_vars_of_mule_charset): Add new coded-charset
1594         `chinese-big5' in UTF-2000.
1595
1596         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1597         (Vcharset_chinese_big5): New external variable declaration.
1598         (Vcharset_japanese_jisx0208_1990): Likewise.
1599
1600 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1603         function.
1604         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1605
1606 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1607
1608         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1609         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1610         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1611         `mojikyo-pj-*'.
1612
1613 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614
1615         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1616
1617 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1618
1619         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1620         to 0.17.
1621
1622 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1623
1624         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1625         for `CHARSET_BY_ATTRIBUTES'.
1626         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1627         `CHARSET_BY_ATTRIBUTES'.
1628
1629         * text-coding.c (struct decoding_stream): Rename member `CH' to
1630         `CPOS'.
1631         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1632         (decode_coding_sjis): Likewise.
1633         (decode_coding_big5): Likewise.
1634         (decode_coding_ucs4): Likewise.
1635         (decode_coding_utf8): Likewise.
1636         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1637         `CHARSET_BY_ATTRIBUTES'.
1638         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1639         `str->counter'; decode 3, 4 bytes sets.
1640         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1641         sets.
1642         (decode_coding_no_conversion): Use `str->cpos' instead of
1643         `str->ch'.
1644
1645         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1646         (Qmojikyo_2022_1): New variable.
1647         (make_charset): Don't use `CHARSET_TYPE_*'.
1648         (range_charset_code_point): Support coded-charset
1649         `mojikyo-2022-1'.
1650         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1651         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1652         `CHARSET_BY_ATTRIBUTES'.
1653         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1654         `CHARSET_BY_ATTRIBUTES'.
1655         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1656         (complex_vars_of_mule_charset): Add new coded-charset
1657         `mojikyo-2022-1'.
1658
1659         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1660         interface; changed to inline function.
1661
1662         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1663         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1664         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1665         (CHARSET_TYPE_94): Deleted.
1666         (CHARSET_TYPE_94X94): Deleted.
1667         (CHARSET_TYPE_96): Deleted.
1668         (CHARSET_TYPE_96X96): Deleted.
1669         (CHARSET_TYPE_128): Deleted.
1670         (CHARSET_TYPE_128X128): Deleted.
1671         (CHARSET_TYPE_256): Deleted.
1672         (CHARSET_TYPE_256X256): Deleted.
1673         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1674         to inline function.
1675         (DECODE_MOJIKYO_2022): New inline function.
1676         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1677         `Vcharset_mojikyo_2022_1'.
1678
1679 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680
1681         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1682         instead of `EQ'.
1683         (put_byte_table): Likewise.
1684         (char_id_table_equal): Use `get_byte_table' [new implementation].
1685
1686 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1687
1688         * mule-charset.c: Include <limits.h> in UTF-2000.
1689         (BT_UINT8_MIN): New macro in UTF-2000.
1690         (BT_UINT8_MAX): New macro in UTF-2000.
1691         (BT_UINT8_t): New macro in UTF-2000.
1692         (BT_UINT8_nil): New macro in UTF-2000.
1693         (BT_UINT8_unbound): New macro in UTF-2000.
1694         (INT_UINT8_P): New inline function in UTF-2000.
1695         (UINT8_VALUE_P): New inline function in UTF-2000.
1696         (UINT8_ENCODE): New inline function in UTF-2000.
1697         (UINT8_DECODE): New inline function in UTF-2000.
1698         (mark_uint8_byte_table): New function in UTF-2000.
1699         (print_uint8_byte_table): New function in UTF-2000.
1700         (uint8_byte_table_equal): New function in UTF-2000.
1701         (uint8_byte_table_hash): New function in UTF-2000.
1702         (make_uint8_byte_table): New function in UTF-2000.
1703         (uint8_byte_table_same_value_p): New function in UTF-2000.
1704         (BT_UINT16_MIN): New macro in UTF-2000.
1705         (BT_UINT16_MAX): New macro in UTF-2000.
1706         (BT_UINT16_t): New macro in UTF-2000.
1707         (BT_UINT16_nil): New macro in UTF-2000.
1708         (BT_UINT16_unbound): New macro in UTF-2000.
1709         (INT_UINT16_P): New inline function in UTF-2000.
1710         (UINT16_VALUE_P): New inline function in UTF-2000.
1711         (UINT16_ENCODE): New inline function in UTF-2000.
1712         (UINT16_DECODE): New inline function in UTF-2000.
1713         (UINT8_TO_UINT16): New inline function in UTF-2000.
1714         (mark_uint16_byte_table): New function in UTF-2000.
1715         (print_uint16_byte_table): New function in UTF-2000.
1716         (uint16_byte_table_equal): New function in UTF-2000.
1717         (uint16_byte_table_hash): New function in UTF-2000.
1718         (make_uint16_byte_table): New function in UTF-2000.
1719         (uint16_byte_table_same_value_p): New function in UTF-2000.
1720         (print_byte_table): New function in UTF-2000.
1721         (byte-table): Use `print_byte_table' as printer.
1722         (make_byte_table): Delete second argument `older'.
1723         (byte_table_same_value_p): New function in UTF-2000.
1724         (copy_byte_table): Deleted.
1725         (get_byte_table): New function in UTF-2000.
1726         (put_byte_table): New function in UTF-2000.
1727         (print_char_id_table): New function in UTF-2000.
1728         (char-id-table): Use `print_char_id_table' as printer.
1729         (make_char_id_table): Delete second argument `older'.
1730         (get_char_id_table): Use `get_byte_table [new implementation].
1731         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1732         implementation].
1733         (Ffind_char_attribute_table): New function in UTF-2000.
1734         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1735         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1736         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1737         (syms_of_mule_charset): Add new function
1738         `find-char-attribute-table' in UTF-2000.
1739
1740         * lrecord.h (enum lrecord_type): Add
1741         `lrecord_type_uint16_byte_table' and
1742         `lrecord_type_uint8_byte_table'.
1743
1744         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1745         (Lisp_Uint8_Byte_Table): New type.
1746         (XUINT8_BYTE_TABLE): New macro.
1747         (XSETUINT8_BYTE_TABLE): New macro.
1748         (UINT8_BYTE_TABLE_P): New macro.
1749         (GC_UINT8_BYTE_TABLE_P): New macro.
1750         (struct Lisp_Uint16_Byte_Table): New structure.
1751         (Lisp_Uint16_Byte_Table): New type.
1752         (XUINT16_BYTE_TABLE): New macro.
1753         (XSETUINT16_BYTE_TABLE): New macro.
1754         (UINT16_BYTE_TABLE_P): New macro.
1755         (GC_UINT16_BYTE_TABLE_P): New macro.
1756
1757 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1758
1759         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1760         (Vcharacter_ideographic_strokes_table): Deleted.
1761         (Vcharacter_total_strokes_table): Deleted.
1762         (Vcharacter_morohashi_daikanwa_table): Deleted.
1763         (Vcharacter_decomposition_table): Deleted.
1764         (Qname): Deleted because it is duplicated.
1765         (Qideographic_radical): Deleted.
1766         (Qideographic_strokes): Deleted.
1767         (Qtotal_strokes): Deleted.
1768         (Qmorohashi_daikanwa): Deleted.
1769         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1770         `ideographic-radical', `ideographic-strokes', `total-strokes',
1771         `morohashi-daikanwa' and `->decomposition'.
1772         (Fget_char_attribute): Likewise.
1773         (Fput_char_attribute): Likewise; use `make-vector' instead of
1774         `make_older_vector' for `->decomposition' value.
1775         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1776         `ideograph-daikanwa'.
1777         (syms_of_mule_charset): Delete builtin symbols `name',
1778         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1779         `morohashi-daikanwa'.
1780         (vars_of_mule_charset): Don't setup
1781         `Vcharacter_ideographic_radical_table',
1782         `Vcharacter_ideographic_strokes_table',
1783         `Vcharacter_total_strokes_table',
1784         `Vcharacter_morohashi_daikanwa_table' and
1785         `Vcharacter_decomposition_table'.
1786
1787 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1788
1789         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1790         `make_older_vector', `make_vector_newer_1' and
1791         `make_vector_newer'.
1792
1793         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1794         `make_older_vector' and `make_vector_newer'.
1795
1796         * config.h.in (HAVE_GGC): New macro.
1797
1798 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799
1800         * mule-charset.c (struct char_attribute_list_closure): New
1801         structure in UTF-2000.
1802         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1803         (Fchar_attribute_list): Likewise.
1804         (Fset_charset_mapping_table): Use `make_vector_newer'.
1805         (Fdecode_builtin_char): New function in UTF-2000.
1806         (syms_of_mule_charset): Add new function `char-attribute-list' and
1807         `decode-builtin-char' in UTF-2000.
1808
1809         * lisp.h (make_vector_newer): New prototype.
1810
1811         * alloc.c (make_vector_newer_1): New function.
1812         (make_vector_newer): New function.
1813
1814 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1817         50100)'.
1818
1819 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1822         (Vcharacter_attribute_table): Deleted.
1823         (Vcharacter_name_table): Deleted.
1824         (put_char_attribute): Deleted.
1825         (remove_char_attribute): Deleted.
1826         (struct char_attribute_alist_closure): New structure.
1827         (add_char_attribute_alist_mapper): New function.
1828         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1829         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1830         (Fget_char_attribute): Likewise.
1831         (Fput_char_attribute): Likewise.
1832         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1833         of `remove_char_attribute'.
1834         (Fdefine_char): Return character.
1835         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1836         and `Vcharacter_name_table'.
1837         (complex_vars_of_mule_charset): Likewise
1838         `Vchar_attribute_hash_table'.
1839
1840 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1841
1842         * character.h (CHARC_CHARSET): New macro.
1843         (CHARC_CHARSET_ID): New macro.
1844         (CHARC_CODE_POINT): New macro.
1845         (CHARC_COLUMNS): New macro.
1846         (CHARC_TO_CHAR): New inline function.
1847         (CHARC_EQ): New inline function.
1848         (CHARC_ASCII_EQ): New inline function.
1849         (CHARC_IS_SPACE): New inline function.
1850         (ASCII_TO_CHARC): New inline function.
1851
1852         * char-ucs.h (encode_char_2): Deleted.
1853         (ENCODE_CHAR): Use `encode_char_1' again.
1854         (breakup_char_1): Likewise.
1855         (CHAR_TO_CHARC): New inline function.
1856
1857         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1858
1859 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860
1861         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1862         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1863         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1864         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1865         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1866         `CHARC_IS_SPACE'.
1867         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1868
1869         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1870         `CHARC_CODE_POINT'.
1871         (x_output_display_block): Use `CHARC_CHARSET' and
1872         `CHARC_ASCII_EQ'.
1873
1874         * redisplay-tty.c (tty_output_display_block): Use
1875         `CHARC_ASCII_EQ'.
1876         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1877
1878         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1879
1880         * insdel.c (find_charsets_in_charc_string): Use
1881         `CHARC_CHARSET_ID'.
1882         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1883         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1884         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1885         (convert_charc_string_into_malloced_string): Likewise.
1886
1887 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1890         instead of <Emchar_dynarr *> for buf; use
1891         `convert_bufbyte_string_into_charc_dynarr' instead of
1892         `convert_bufbyte_string_into_emchar_dynarr'; use
1893         `find_charsets_in_charc_string' instead of
1894         `find_charsets_in_emchar_string'.
1895
1896         * redisplay.h:
1897         - Include "character.h".
1898         (struct rune): New member `cglyph'; delete member `chr'.
1899
1900         * redisplay.c (redisplay_text_width_charc_string): New function;
1901         delete `redisplay_text_width_emchar_string'.
1902         (rtw_charc_dynarr): New variable; renamed from
1903         `rtw_emchar_dynarr'.
1904         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1905         `rtw_emchar_dynarr'; use
1906         `convert_bufbyte_string_into_charc_dynarr' instead of
1907         `convert_bufbyte_string_into_emchar_dynarr'; use
1908         `redisplay_text_width_charc_string' instead of
1909         `redisplay_text_width_emchar_string'.
1910         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1911         instead of `rtw_emchar_dynarr'; use
1912         `convert_bufbyte_string_into_charc_dynarr' instead of
1913         `convert_bufbyte_string_into_emchar_dynarr'.
1914         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1915         `redisplay_text_width_charc_string' instead of
1916         `redisplay_text_width_emchar_string'.
1917         (create_text_block): Modify for <struct rune> change.
1918         (generate_formatted_string_db): Likewise.
1919         (create_string_text_block): Likewise.
1920         (pixel_to_glyph_translation): Likewise.
1921
1922         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1923         instead of <const Emchar *>.
1924         (x_text_width): Likewise.
1925         (x_output_display_block): Use <Charc_dynarr *> instead
1926         <Emchar_dynarr *>; modify for <structure rune> change.
1927         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1928         *>.
1929
1930         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1931         <const Emchar *>; use `charc_string_displayed_columns' instead of
1932         `emchar_string_displayed_columns'.
1933         (tty_output_display_block): Use <Charc_dynarr *> instead of
1934         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1935         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1936         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1937         `tty_output_emchar_dynarr_dynarr'.
1938         (tty_output_charc_dynarr): New function; delete
1939         `tty_output_charc_dynarr'.
1940
1941         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1942         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1943         <Emchar_dynarr *> for buf; use
1944         `convert_bufbyte_string_into_charc_dynarr' instead of
1945         `convert_bufbyte_string_into_emchar_dynarr'.
1946
1947         * frame.c (title_string_charc_dynarr): New variable; renamed from
1948         `title_string_emchar_dynarr'.
1949         (generate_title_string): Use `title_string_charc_dynarr' instead
1950         of `title_string_emchar_dynarr'; use
1951         `convert_charc_string_into_malloced_string' instead of
1952         `convert_emchar_string_into_malloced_string'.
1953         (init_frame): Use `title_string_charc_dynarr' instead of
1954         `title_string_emchar_dynarr'.
1955
1956         * console.h:
1957         - Include "character.h".
1958         (struct console_methods): Use <const Charc *> instead of <const
1959         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1960         <Emchar_dynarr *> in output_string_method.
1961
1962         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1963         <Emchar_dynarr *>.
1964
1965         * console-stream.c (stream_text_width): Use <const Charc *>
1966         instead of <const Emchar *>.
1967
1968         * character.h (Charc_dynarr): New type.
1969
1970         * char-ucs.h (structure Charc): New structure; define new type
1971         `Charc'.
1972
1973         * char-lb.h (DECODE_CHAR): New inline function.
1974         (encode_char_1): New inline function.
1975         (ENCODE_CHAR): New macro.
1976         (structure Charc): New structure; define new type `Charc'.
1977
1978         * char-1byte.h (Vcharset_control_1): New macro.
1979         (Vcharset_latin_iso8859_1): New macro.
1980         (DECODE_CHAR): New inline function.
1981         (encode_char_1): New inline function.
1982         (ENCODE_CHAR): New macro.
1983         (structure Charc): New structure; define new type `Charc'.
1984
1985         * insdel.c (find_charsets_in_charc_string): New function; delete
1986         `find_charsets_in_emchar_string'.
1987         (charc_string_displayed_columns): New function; delete
1988         `emchar_string_displayed_columns'.
1989         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1990         `convert_bufbyte_string_into_emchar_dynarr'.
1991         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1992         `convert_charc_string_into_bufbyte_dynarr'.
1993         (convert_charc_string_into_malloced_string): New function; delete
1994         `convert_charc_string_into_malloced_string'.
1995
1996         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1997         `find_charsets_in_emchar_string'.
1998         (charc_string_displayed_columns): New prototype; delete
1999         `emchar_string_displayed_columns'.
2000         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2001         `convert_charc_string_into_bufbyte_dynarr'.
2002         (convert_charc_string_into_malloced_string): New prototype; delete
2003         `convert_charc_string_into_malloced_string'.
2004
2005 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006
2007         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2008
2009 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2012
2013         * char-ucs.h: Use <short> for <Charset_ID>.
2014
2015         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2016         <Charset_ID>.
2017
2018 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019
2020         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2021         to 0.16.
2022
2023 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2024
2025         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2026         variable.
2027         (Qmorohashi_daikanwa): New variable.
2028         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2029         for `morohashi-daikanwa' attribute.
2030         (Fget_char_attribute): Likewise.
2031         (Fput_char_attribute): Likewise.
2032         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2033         has the same value of `ideograph-daikanwa'.
2034         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2035         (vars_of_mule_charset): Setup
2036         `Vcharacter_morohashi_daikanwa_table'.
2037
2038 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2041         attributes.
2042         (add_charset_to_list_mapper): Add `key' instead of
2043         `XCHARSET_NAME (value)' to return aliases.
2044
2045 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2046
2047         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2048         variable.
2049         (Vcharacter_ideographic_strokes_table): New variable.
2050         (Qideographic_radical): New variable.
2051         (Qideographic_strokes): New variable.
2052         (Fchar_attribute_alist): Use
2053         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2054         attribute; use `Vcharacter_ideographic_strokes_table' for
2055         `ideographic-strokes' attribute.
2056         (Fget_char_attribute): Likewise.
2057         (Fput_char_attribute): Likewise.
2058         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2059         `ideographic-strokes'.
2060         (vars_of_mule_charset): Setup
2061         `Vcharacter_ideographic_radical_table' and
2062         `Vcharacter_ideographic_strokes_table'.
2063
2064 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2067         (Qtotal_strokes): New variable.
2068         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2069         `total-strokes' attribute.
2070         (Fget_char_attribute): Likewise.
2071         (Fput_char_attribute): Likewise.
2072         (syms_of_mule_charset): Add new symbol `total-strokes'.
2073         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2074
2075 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2076
2077         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2078         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2079         are found.
2080         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2081         `->decomposition' attribute.
2082         (Fput_char_attribute): Likewise.
2083         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2084
2085 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2086
2087         * mule-charset.c (decoding_table_check_elements): New function.
2088         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2089
2090 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2091
2092         * mule-charset.c (Fset_charset_mapping_table): Use
2093         `put_char_ccs_code_point'.
2094
2095 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096
2097         * mule-charset.c (decoding_table_put_char): New inline function.
2098         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2099
2100 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2103         (XCHARSET_BYTE_SIZE): New macro.
2104         (decoding_table_remove_char): New inline function.
2105         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2106         `decoding_table_remove_char'.
2107         (remove_char_ccs): Use `decoding_table_remove_char'.
2108         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2109
2110 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2111
2112         * mule-charset.c (Vcharacter_name_table): New variable.
2113         (Qname): New variable.
2114         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2115         attribute.
2116         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2117         `Vcharacter_name_table' for `name' attribute.
2118         (Fremove_char_attribute): Use function `remove_char_ccs'.
2119         (put_char_ccs_code_point): New function.
2120         (remove_char_ccs): New function.
2121         (syms_of_mule_charset): Add new symbol `name'.
2122         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2123
2124 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (make_byte_table): Add new argument `older'.
2127         (make_char_id_table): Likewise.
2128         (copy_char_id_table): Comment out because it is not used.
2129         (put_char_id_table): Modify for `make_byte_table'.
2130         (Fput_char_attribute): Make encoding_table as older object;
2131         inherit older bit of `Vcharacter_composition_table'.
2132         (mark_charset): Don't mark `cs->encoding_table'.
2133         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2134         normal object; make `Vcharacter_composition_table' as an older
2135         object; delete staticpro for `Vcharacter_composition_table'; make
2136         `Vcharacter_variant_table' as a normal object.
2137
2138         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2139         (mark_object): Don't check older object in UTF-2000.
2140
2141         * lrecord.h (struct lrecord_header): Add new member `older' in
2142         UTF-2000.
2143         (set_lheader_implementation): Setup `SLI_header->older' in
2144         UTF-2000.
2145         (set_lheader_older_implementation): New macro in UTF-2000.
2146         (OLDER_RECORD_P): New macro in UTF-2000.
2147         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2148         (alloc_older_lcrecord): New prototype in UTF-2000.
2149         (alloc_older_lcrecord_type): New macro in UTF-2000.
2150
2151 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * mule-charset.c (byte_table_description): Use
2154         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2155         (char_id_table_description): Delete bogus `, 1'.
2156         (Fget_char_attribute): Refer encoding_table of each coded-charset
2157         to get value of coded-charset attribute of a character.
2158         (Fput_char_attribute): Use `make_older_vector' instead of
2159         `make_vector'; use encoding_table of each coded-charset to store
2160         value of coded-charset attribute of a character.
2161         (Fremove_char_attribute): Use encoding_table of each coded-charset
2162         to store value of coded-charset attribute of a character.
2163         (mark_charset): Mark `cs->encoding_table'; don't mark
2164         `cs->decoding_table'.
2165         (charset_description): Add description of new member
2166         `encoding_table'.
2167         (make_charset): Initialize `encoding_table'.
2168
2169         * char-ucs.h (struct Lisp_Charset): Add new member
2170         `encoding_table'.
2171         (CHARSET_ENCODING_TABLE): New macro.
2172         (XCHARSET_ENCODING_TABLE): New macro.
2173         (charset_code_point): New implementation.
2174         (encode_char_1): Likewise.
2175
2176         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2177         (disksave_object_finalization_1): Call finalizers of
2178         `all_older_lcrecords' in UTF-2000.
2179         (make_older_vector): New function in UTF-2000.
2180         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2181         UTF-2000.
2182
2183         * lisp.h (make_older_vector): New prototype in UTF-2000.
2184
2185 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2186
2187         * lrecord.h (enum lrecord_type): Rename
2188         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2189
2190         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2191         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2192         `get_char_code_table'.
2193
2194         * mule-charset.c (mark_char_id_table): Renamed from
2195         `mark_char_code_table'.
2196         (char_id_table_equal): Renamed from `char_code_table_equal'.
2197         (char_id_table_hash): Renamed from `char_code_table_hash'.
2198         (make_char_id_table): Renamed from `make_char_code_table'.
2199         (copy_char_id_table): Renamed from `copy_char_code_table'.
2200         (get_char_id_table): Renamed from `get_char_code_table'.
2201         (put_char_id_table): Renamed from `put_char_code_table'.
2202         (to_char_id): Renamed from `to_char_code'.
2203
2204         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2205         `Lisp_Char_Code_Table'.
2206         (char_id_table): Renamed from `char_code_table'.
2207         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2208         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2209         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2210         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2211         (get_char_id_table): Renamed from `get_char_code_table'.
2212
2213 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214
2215         * lrecord.h (enum lrecord_type): Rename
2216         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2217
2218         * mule-charset.c (mark_byte_table): Renamed from
2219         `mark_char_byte_table'.
2220         (byte_table_equal): Renamed from `char_byte_table_equal'.
2221         (byte_table_hash): Renamed from `byte_table_hash'.
2222         (make_byte_table): Renamed from `make_byte_table'.
2223         (copy_byte_table): Renamed from `copy_char_byte_table'.
2224
2225         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2226         `Lisp_Char_Byte_Table'.
2227         (byte_table): Renamed from `char_byte_table'.
2228         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2229         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2230         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2231         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2232
2233 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2236         (dfc_convert_to_internal_format): Likewise.
2237         
2238         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2239         * text-coding.c (Fcoding_system_alias_p): New function.
2240         * text-coding.c (Fcoding_system_aliasee): New function.
2241         * text-coding.c (append_suffix_to_symbol): New function.
2242         * text-coding.c (dangling_coding_system_alias_p): New function.
2243         * text-coding.c (Ffind_coding_system):
2244         * text-coding.c (Fcopy_coding_system):
2245         * text-coding.c (encode_coding_no_conversion):
2246         * text-coding.c (syms_of_file_coding):
2247         * text-coding.c (vars_of_file_coding):
2248         Rewrite coding system alias code.
2249         Allow nested aliases, like symbolic links.
2250         Allow redefinition of coding system aliases.
2251         Prevent existence of dangling coding system aliases.
2252         Eliminate convert_to_external_format.
2253         Eliminate convert_to_internal_format.
2254         
2255         * text-coding.c: Change enum eol_type to eol_type_t.
2256
2257 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258
2259         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2260         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2261
2262         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2263         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2264
2265 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2268         `ideograph-daikanwa'.
2269
2270         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2271         (Vcharset_ucs_bmp): Likewise.
2272         (Vcharset_mojikyo): Add new extern variable definition.
2273         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2274         (Vcharset_latin_iso8859_3): Likewise.
2275         (Vcharset_latin_iso8859_4): Likewise.
2276         (Vcharset_latin_iso8859_9): Likewise.
2277         (Vcharset_latin_viscii_lower): Likewise.
2278         (Vcharset_latin_viscii_upper): Likewise.
2279         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2280         `mojikyo' code-point is used to decode.
2281         (encode_char_2): New function [to convert `mojikyo' code-point to
2282         Mojikyo font encoding].
2283         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2284         (breakup_char_1): Likewise.
2285         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2286
2287 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2288
2289         * text-coding.c (Fmake_coding_system): Add document about
2290         `disable-composition' property.
2291
2292 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293
2294         * text-coding.c (Qdisable_composition): New variable; delete
2295         `Qcomposite'.
2296         (Fmake_coding_system): Add new property `disable-composite';
2297         delete property `composite'.
2298         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2299         instead of `!CODING_SYSTEM_COMPOSITE'.
2300         (syms_of_file_coding): Add new symbol `disable-composition';
2301         delete symbol `composite'.
2302
2303         * file-coding.h (struct Lisp_Coding_System): Add
2304         `disable_composition'; delete `enable_composition'.
2305         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2306         `CODING_SYSTEM_COMPOSITE'.
2307         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2308         `XCODING_SYSTEM_COMPOSITE'.
2309
2310 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2313         to 0.15.
2314
2315 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * text-coding.c (Qcomposite): New variable.
2318         (Fmake_coding_system): Add new property `composite'.
2319         (struct decoding_stream): Add `combined_char_count',
2320         `combined_chars' and `combining_table' in UTF-2000.
2321         (COMPOSE_FLUSH_CHARS): New macro.
2322         (COMPOSE_ADD_CHAR): New macro.
2323         (reset_decoding_stream): Reset `str->combined_char_count' and
2324         `str->combining_table' in UTF-2000.
2325         (decode_coding_iso2022): Modify for character-decomposition.
2326         (syms_of_file_coding): Add new symbol `composite'.
2327
2328 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2329
2330         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2331         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2332         of `Vcharacter_composition_table' if `->decomposition' property
2333         has only 1 element.
2334         (Qlatin_tcvn5712): New variable.
2335         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2336         (complex_vars_of_mule_charset): Add new coded-charset
2337         `latin-tcvn5712'.
2338
2339         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2340
2341 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2342
2343         * file-coding.h (struct Lisp_Coding_System): Add
2344         `enable_composition'.
2345         (CODING_SYSTEM_COMPOSITE): New macro.
2346         (XCODING_SYSTEM_COMPOSITE): New macro.
2347
2348 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2349
2350         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2351
2352 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2353
2354         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2355         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2356
2357 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2358
2359         * mule-charset.c (Vcharset_mojikyo): New variable.
2360         (Fdefine_char): Don't use coded-charset which does not have
2361         non-builtin character range to allocate character-id.
2362         (Qmojikyo): New variable.
2363         (syms_of_mule_charset): Add new symbol `mojikyo'.
2364         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2365
2366         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2367         (LEADING_BYTE_MOJIKYO): New macro.
2368         (MIN_CHAR_MOJIKYO): New macro.
2369         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2370         (MAX_CHAR_MOJIKYO): New macro.
2371
2372 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2373
2374         * mule-charset.c (remove_char_attribute): Fixed.
2375
2376 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2377
2378         * mule-charset.c (remove_char_attribute): New function.
2379         (Fremove_char_attribute): New function.
2380         (encode_builtin_char_1): Comment out builtin-support for
2381         greek-iso8859-7 and cyrillic-iso8859-5.
2382         (Fdecode_char): Check `code' is an integer.
2383         (syms_of_mule_charset): Add `remove-char-attribute'.
2384         (MIN_CHAR_GREEK): Deleted.
2385         (MAX_CHAR_GREEK): Likewise.
2386         (MIN_CHAR_CYRILLIC): Likewise.
2387         (MAX_CHAR_CYRILLIC): Likewise.
2388         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2389         MAX_CHAR_GREEK for `greek-iso8859-7'.
2390
2391         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2392         (MAX_CHAR_GREEK): Likewise.
2393         (MIN_CHAR_CYRILLIC): Likewise.
2394         (MAX_CHAR_CYRILLIC): Likewise.
2395
2396 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2397
2398         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2399         format is used without `ucs' property.
2400         (Fdecode_char): Fix problem with GR representation.
2401         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2402         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2403
2404 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2405
2406         * mule-charset.c (make_builtin_char): New function.
2407         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2408         (Fset_charset_mapping_table): Modify for new representation of
2409         code-point.
2410         (Fdecode_char): New function.
2411         (syms_of_mule_charset): Add new builtin function `decode-char' in
2412         UTF-2000.
2413
2414         * char-ucs.h (make_builtin_char): New prototype.
2415         (DECODE_CHAR): New inline function.
2416         (MAKE_CHAR): Use `DECODE_CHAR'.
2417
2418 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2419
2420         * text-coding.c (parse_charset_conversion_specs): Use
2421         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2422         `XCHARSET_TYPE'.
2423         (iso2022_designate): Likewise.
2424
2425         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2426         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2427
2428         * mule-charset.c (Vcharset_ucs): New variable.
2429         (print_charset): Change design; use `CHARSET_CHARS' and
2430         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2431         (make_charset): Change signature to specify `chars' and
2432         `dimension' instead of `type'.
2433         (range_charset_code_point): Modify for 256^n-set.
2434         (encode_builtin_char_1): Encode as `ucs' in default.
2435         (Fmake_charset): Modify for `make_charset'.
2436         (Fmake_reverse_direction_charset): Likewise.
2437         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2438         UTF-2000.
2439         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2440         for `make_charset'.
2441
2442         * char-ucs.h (Vcharset_ucs): New variable.
2443         (LEADING_BYTE_UCS): New macro.
2444         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2445         and `chars' to `unsigned short' from `unsigned int'.
2446         (CHARSET_TYPE): Deleted.
2447         (XCHARSET_TYPE): Deleted.
2448
2449 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2450
2451         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2452
2453         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2454         (ENCODE_CHAR): New macro.
2455
2456 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2457
2458         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2459         to 0.14 (Kawachi-Katakami).
2460
2461 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2462
2463         * text-coding.c (char_encode_shift_jis): Modify for
2464         `charset_code_point'.
2465         (char_encode_iso2022): Likewise.
2466
2467         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2468         (integer) instead of list of <Lisp_Object>s (integers) as the
2469         format of code-point of a coded-charset.
2470         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2471         (encode_builtin_char_1): New function; delete
2472         `split_builtin_char'.
2473         (charset_code_point): Return <int> instead of <Lisp_Object>.
2474         (Fsplit_char): Don't use `SPLIT_CHAR'.
2475
2476         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2477         prototype for `split_builtin_char'.
2478         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2479         (charset_code_point): Likewise.
2480         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2481         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2482
2483 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2484
2485         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2486         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2487
2488 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2489
2490         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2491
2492         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2493         (MAX_CHAR_OBS_94x94): Deleted.
2494
2495 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2496
2497         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2498
2499         * char-ucs.h (MAX_CHAR_BMP): New macro.
2500
2501 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2502
2503         * text-coding.c: Sync with r21-2-24.
2504
2505 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2506
2507         * file-coding.c: Modify for UTF-2000.
2508
2509 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2510
2511         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2512         to 0.13 (Takaida).
2513
2514 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2515
2516         * mule-charset.c (split_builtin_char): Delete builtin support for
2517         `katakana-jisx0201'.
2518         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2519         BMP area in builtin representation.
2520
2521         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2522         `Vcharset_katakana_jisx0201'.
2523
2524 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2525
2526         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2527         (Qisolated): New variable.
2528         (Qinitial): New variable.
2529         (Qmedial): New variable.
2530         (Qfinal): New variable.
2531         (Qvertical): New variable.
2532         (Qsmall): New variable.
2533         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2534         `Qvertical' and `Qsmall'.
2535         (Qmojikyo_pj_[1 .. 21]): New variable.
2536         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2537         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2538         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2539         .. 21]'.
2540
2541 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2542
2543         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2544         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2545         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2546
2547 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2548
2549         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2550         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2551         BMP.
2552         (Qjapanese_jisx0208_1990): New variable.
2553         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2554         (complex_vars_of_mule_charset): Add new coded-charset
2555         `japanese-jisx0208-1990'.
2556
2557         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2558         (MIN_CHAR_JIS_X0208_1990): New macro.
2559         (MAX_CHAR_JIS_X0208_1990): New macro.
2560
2561 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2562
2563         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2564         coded-charset is not found.
2565
2566 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2567
2568         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2569         (Fdefine_char): Use `Fmake_char'.
2570
2571 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2572
2573         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2574         (Vcharset_hiragana_jisx0208): Deleted.
2575         (Vcharset_katakana_jisx0208): Deleted.
2576         (Qideograph_daikanwa): New variable.
2577         (Qhiragana_jisx0208): Deleted.
2578         (Qkatakana_jisx0208): Deleted.
2579         (split_builtin_char): Split `ideograph-daikanwa'.
2580         (Fsplit_char): New implementation for UTF-2000.
2581         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2582         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2583         (complex_vars_of_mule_charset): Add new coded-charset
2584         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2585         `katakana-jisx0208'.
2586
2587         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2588         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2589         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2590         (MIN_CHAR_DAIKANWA): New macro.
2591         (MAX_CHAR_DAIKANWA): New macro.
2592
2593 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2594
2595         * data.c (Fstring_to_number): Don't recognize floating point if
2596         base is not 10.
2597
2598 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2599
2600         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2601
2602 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2603
2604         * mule-charset.c (Qsquare): New variable.
2605         (to_char_code): Add `Qsquare'.
2606         (syms_of_mule_charset): Add new symbol `square'.
2607
2608 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2609
2610         * mule-charset.c (Qcircle): New variable.
2611         (to_char_code): Add `Qcircle'.
2612         (syms_of_mule_charset): Add new symbol `circle'.
2613
2614 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2615
2616         * mule-charset.c (Qfont): New variable.
2617         (to_char_code): Add `Qfont'.
2618         (syms_of_mule_charset): Add new symbol `font'.
2619
2620 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2621
2622         * mule-charset.c (Qsub): New variable.
2623         (to_char_code): Add `Qsub'.
2624         (syms_of_mule_charset): Add new symbol `sub'.
2625
2626 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2627
2628         * mule-charset.c (Fput_char_attribute): Convert each element of
2629         VALUE to GL position if ATTRIBUTE is a GR-set,
2630
2631 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2632
2633         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2634         coded-charset is a GR-set.
2635
2636 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2637
2638         * mule-charset.c (Fput_char_attribute): Check each element of
2639         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2640
2641 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2642
2643         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2644         UTF-2000.
2645         (Qethiopic_ucs): New variable in UTF-2000.
2646         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2647         (complex_vars_of_mule_charset): Add new coded-charset
2648         `ethiopic-ucs' in UTF-2000.
2649
2650         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2651         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2652         9)'.
2653         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2654         10)'.
2655         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2656
2657 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2658
2659         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2660         `ascii'.
2661
2662 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2663
2664         * mule-charset.c (Vcharacter_variant_table): New variable.
2665         (Q_ucs): New variable.
2666         (Fchar_variants): New function.
2667         (Fput_char_attribute): Register `->ucs' value to
2668         `Vcharacter_variant_table'.
2669         (syms_of_mule_charset): Add new function `char-variants' and new
2670         symbol `->ucs'.
2671         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2672
2673 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2674
2675         * mule-charset.c (get_char_code_table): Allow negative character
2676         code.
2677         (put_char_code_table): Likewise.
2678         (Vcharacter_composition_table): New variable.
2679         (Q_decomposition): New variable.
2680         (Qwide): New variable.
2681         (Qnarrow): New variable.
2682         (Qcompat): New variable.
2683         (QnoBreak): New variable.
2684         (Qsuper): New variable.
2685         (Qfraction): New variable.
2686         (to_char_code): New function.
2687         (Fget_composite_char): New function.
2688         (Fput_char_attribute): Register `->decomposition' value to
2689         `Vcharacter_composition_table'.
2690         (syms_of_mule_charset): Add new function `get-composite-char', new
2691         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2692         `super' and `fraction'.
2693         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2694
2695 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2696
2697         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2698         character; copy the return value.
2699
2700 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2701
2702         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2703
2704         * mule-charset.c (range_charset_code_point): Must use make_int.
2705         (split_builtin_char): New function.
2706
2707 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2708
2709         * mule-charset.c (char_byte_table): Change name from
2710         "char-code-table" to "char-byte-table".
2711         (mark_char_code_table): New function.
2712         (char_code_table_equal): New function.
2713         (char_code_table_hash): New function.
2714         (char_code_table_description): New constant.
2715         (char_code_table): New type.
2716         (make_char_code_table): New function.
2717         (copy_char_code_table): New function.
2718         (get_char_code_table): Modify for `char_code_table' type.
2719         (put_char_code_table): Likewise.
2720         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2721         (Kashiwara).
2722
2723         * char-ucs.h (char_code_table): New type.
2724         (XCHAR_CODE_TABLE): New macro.
2725         (XSETCHAR_CODE_TABLE): New macro.
2726         (CHAR_CODE_TABLE_P): New macro.
2727         (GC_CHAR_CODE_TABLE_P): New macro.
2728         (struct Lisp_Char_Code_Table): New structure.
2729
2730 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2731
2732         * mule-charset.c (Fmake_charset): Setup byte_offset for
2733         {94|96}^n-set.
2734
2735 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2736
2737         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2738         character.
2739
2740 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2741
2742         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2743         is found.
2744
2745 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2746
2747         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2748         charset, it is regarded as a charset.
2749         (put_char_attribute): New function in UTF-2000.
2750         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2751         charset, mapping-table of the charset is modified.
2752         (Fdefine_char): New function in UTF-2000.
2753         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2754         `Fput_char_attribute'.
2755         (syms_of_mule_charset): Add new function `define-char' and new
2756         symbol `ucs' in UTF-2000.
2757         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2758
2759 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2760
2761         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2762         non-UTF-2000 configuration.
2763
2764 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2765
2766         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2767         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2768
2769         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2770         deleted.
2771         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2772         (Fset_charset_mapping_table): Likewise.
2773
2774         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2775         (CHARSET_ENCODING_TABLE): Delete.
2776         (XCHARSET_ENCODING_TABLE): Delete.
2777         (charset_code_point): New interface.
2778
2779 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2780
2781         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2782         instead of `charset_get_byte1' and `charset_get_byte2'.
2783
2784         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2785         (charset_get_byte2): Deleted.
2786
2787 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2788
2789         * char-ucs.h (SPLIT_CHAR): New inline function.
2790         (breakup_char_1): Use `SPLIT_CHAR'.
2791
2792         * mule-charset.c (range_charset_code_point): New function.
2793         (charset_code_point): New function.
2794
2795         * char-ucs.h (range_charset_code_point): New interface.
2796         (breakup_char_1): Use `range_charset_code_point'.
2797
2798 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2799
2800         * mule-charset.c (Fmake_charset): Delete unused local variable
2801         `code_offset'.
2802
2803         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2804         (breakup_char_1): Find a charset and code-point in
2805         `Vcharacter_attribute_table'.
2806
2807 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2808
2809         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2810         to 0.10 (Yao).
2811
2812 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2813
2814         * mule-charset.c (Vcharacter_attribute_table): New variable.
2815         (Fchar_attribute_alist): New function.
2816         (Fget_char_attribute): New function.
2817         (Fput_char_attribute): New function.
2818         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2819         too.
2820         (syms_of_mule_charset): Add new function `char-attribute-alist',
2821         `get-char-attribute' and `put-char-attribute'.
2822         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2823
2824 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2825
2826         * mule-charset.c (Fmake_charset): Just use
2827         `get_unallocated_leading_byte'.
2828
2829         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2830         sets; don't use final-byte based number for private sets.
2831
2832 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2833
2834         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2835         integer.
2836
2837 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2838
2839         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2840         to 0.9.
2841
2842 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2843
2844         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2845         of `CHAR_LEADING_BYTE' in UTF-2000.
2846
2847         * insdel.c (find_charsets_in_bufbyte_string): Use
2848         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2849         (find_charsets_in_emchar_string): Likewise.
2850
2851         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2852         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2853
2854         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2855         (CHAR_CHARSET_ID): New macro.
2856
2857 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2858
2859         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2860         charset-id - MIN_LEADING_BYTE.
2861         (put_char_table): Likewise.
2862
2863 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2864
2865         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2866         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2867         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2868         (CHARSET_ID_OFFSET): New macro.
2869         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2870         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2871         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2872         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2873         4).
2874         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2875         5).
2876         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2877         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2878         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2879         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2880         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2881
2882 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2883
2884         * mule-charset.c (next_allocated_leading_byte): New variable in
2885         UTF-2000.
2886         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2887         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2888         (get_unallocated_leading_byte): Simply use
2889         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2890         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2891         UTF-2000.
2892
2893         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2894         (MAX_LEADING_BYTE_PRIVATE): New macro.
2895         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2896         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2897
2898 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2899
2900         * mule-charset.c (Fmake_charset): Allocate final-byte based
2901         charset-id for 94-set, 96-set and 94x94-set.
2902
2903 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2904
2905         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2906         ambiguous `else'.
2907         (Fmake_charset): Likewise.
2908         (complex_vars_of_mule_charset): Modify the font registry of
2909         `ucs-bmp' not to match `Ethiopic-Unicode'.
2910
2911 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2912
2913         * mule-charset.c (complex_vars_of_mule_charset): Add font
2914         registory of `ucs-bmp'.
2915
2916 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2917
2918         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2919         coded-charsets in `default-coded-charset-priority-list' when
2920         breaking up a character.
2921
2922         * mule-charset.c (Vcharset_latin_viscii): New variable.
2923         (Qlatin_viscii): New variable.
2924         (make_charset): Don't use `decoding_table'.
2925         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2926         byte_offset.
2927         (Fset_charset_mapping_table): New implementation.
2928         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2929         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2930         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2931         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2932         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2933         charset `latin_viscii'.
2934
2935         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2936         (CHARSET_TYPE_94X94): Change to 1 from 2.
2937         (CHARSET_TYPE_96): Change to 2 from 1.
2938         (CHARSET_TYPE_128): New macro.
2939         (CHARSET_TYPE_128X128): Change to 5 from 4.
2940         (CHARSET_TYPE_256): New macro.
2941         (CHARSET_TYPE_256X256): Change to 7 from 5.
2942         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2943
2944 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2945
2946         * text-coding.c (char_encode_shift_jis): Refer
2947         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2948         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2949
2950         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2951         (char_byte_table_equal): New function in UTF-2000.
2952         (char_byte_table_hash): New function in UTF-2000.
2953         (char_byte_table_description): New constant in UTF-2000.
2954         (char_byte_table): New type in UTF-2000.
2955         (make_char_byte_table): New function in UTF-2000.
2956         (copy_char_byte_table): New function in UTF-2000.
2957         (make_char_code_table): New macro in UTF-2000.
2958         (get_char_code_table): New function in UTF-2000.
2959         (put_char_code_table): New function in UTF-2000.
2960         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2961         (charset_description): Add setting in UTF-2000.
2962         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2963         `CHARSET_TO_BYTE1_TABLE(cs)'.
2964         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2965         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2966         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2967         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2968         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2969         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2970         `CHARSET_TO_BYTE2_TABLE(cs)'.
2971
2972         * char-ucs.h (char_byte_table): New type.
2973         (XCHAR_BYTE_TABLE): New macro.
2974         (XSETCHAR_BYTE_TABLE): New macro.
2975         (CHAR_BYTE_TABLE_P): New macro.
2976         (GC_CHAR_BYTE_TABLE_P): New macro.
2977         (struct Lisp_Char_Byte_Table): New structure.
2978         (get_char_code_table): New interface.
2979         (Emchar_to_byte_table): Deleted.
2980         (get_byte_from_character_table): Deleted.
2981         (struct Lisp_Charset): Add `encoding_table'; delete
2982         `to_byte1_table' and `to_byte2_table'.
2983         (CHARSET_ENCODING_TABLE): New macro.
2984         (CHARSET_TO_BYTE1_TABLE): Deleted.
2985         (CHARSET_TO_BYTE2_TABLE): Deleted.
2986         (XCHARSET_ENCODING_TABLE): New macro.
2987         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2988         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2989
2990 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2991
2992         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2993         `vietnamese-viscii-*'.
2994
2995 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2996
2997         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2998         (Qvietnamese_viscii_upper): New variable.
2999         (Fdefine_charset_alias): New function.
3000         (syms_of_mule_charset): Add new function `define-charset-alias'.
3001         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3002         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3003         `latin-viscii-*'.
3004
3005 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3006
3007         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3008         (MAX_CHAR_OBS_94x94): New macro.
3009         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3010         for 94x94 sets.
3011
3012         * mule-charset.c (put_byte_from_character_table): Change unit size
3013         from 128 to 256.
3014         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3015         not defined.
3016         (Fmake_reverse_direction_charset): Modify dummy argument of
3017         `make_charset' for non-UTF-2000 environment.
3018
3019 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3020
3021         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3022
3023         * mule-charset.c (destroy_byte_from_character_table): New macro.
3024         (latin_jisx0201_to_ucs): Deleted.
3025         (latin_iso8859_2_to_ucs): Deleted.
3026         (latin_iso8859_3_to_ucs): Deleted.
3027         (latin_iso8859_4_to_ucs): Deleted.
3028         (latin_iso8859_9_to_ucs): Deleted.
3029         (latin_viscii_lower_to_ucs): Deleted.
3030         (latin_viscii_upper_to_ucs): Deleted.
3031         (mark_charset): Mark `cs->decoding_table'.
3032         (Fcharset_mapping_table): Fix DOC-string.
3033         (Fset_charset_mapping_table): New function.
3034         (syms_of_mule_charset): Add nwe function
3035         `set-charset-mapping-table'.
3036         (complex_vars_of_mule_charset): Don't setup and use
3037         `latin_*_to_ucs'.
3038
3039 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3040
3041         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3042         charset.
3043
3044 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3045
3046         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3047         (Vcharset_katakana_jisx0208): New variable.
3048         (Qhiragana_jisx0208): New variable.
3049         (Qkatakana_jisx0208): New variable.
3050         (make_charset): Add new argument `byte_offset'.
3051         (charset_get_byte1): Modify for new coded-charset definition; use
3052         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3053         `XCHARSET_BYTE_OFFSET'.
3054         (Fmake_charset): Modify for `make_charset'.
3055         (Fmake_reverse_direction_charset): Likewise.
3056         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3057         `katakana-jisx0208'.
3058         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3059         `.'  in font registry of charset `katakana-jisx0201',
3060         `latin-jisx0201', `vietnamese-viscii-lower' and
3061         `vietnamese-viscii-upper'; modify DOC-string of charset
3062         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3063         registry of charset `japanese-jisx0208' not to use font for JIS
3064         X0208:1990; add new charset `hiragana-jisx0208' and
3065         `katakana-jisx0208'.
3066
3067         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3068         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3069         (struct Lisp_Charset): Add `byte_offset'.
3070         (CHARSET_BYTE_OFFSET): New macro.
3071         (XCHARSET_UCS_MIN): New macro.
3072         (XCHARSET_UCS_MAX): New macro.
3073         (XCHARSET_CODE_OFFSET): New macro.
3074         (XCHARSET_BYTE_OFFSET): New macro.
3075         (MIN_CHAR_HIRAGANA): New macro.
3076         (MAX_CHAR_HIRAGANA): New macro.
3077         (MIN_CHAR_KATAKANA): New macro.
3078         (MAX_CHAR_KATAKANA): New macro.
3079         (MAKE_CHAR): Modify for new coded-charset definition; use
3080         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3081         `XCHARSET_BYTE_OFFSET'.
3082
3083 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3084
3085         * mule-charset.c (CHAR96): Deleted.
3086         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3087         <Lisp_Object>.
3088         (latin_iso8859_2_to_ucs): Likewise.
3089         (latin_iso8859_3_to_ucs): Likewise.
3090         (latin_iso8859_4_to_ucs): Likewise.
3091         (latin_iso8859_9_to_ucs): Likewise.
3092         (latin_viscii_lower_to_ucs): Likewise.
3093         (latin_viscii_upper_to_ucs): Likewise.
3094         (latin_tcvn5712_to_ucs): Commented out.
3095         (make_charset): Change type of argument `decoding_table' from
3096         <Emchar*> to <Lisp_Object> [vector of characters].
3097         (Fmake_charset): Modify for `make_charset'.
3098         (Fmake_reverse_direction_charset): Likewise.
3099         (Fcharset_mapping_table): New function in UTF-2000.
3100         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3101         UTF-2000.
3102         (complex_vars_of_mule_charset): Modify for type change of
3103         `*_to_ucs'; modify for `make_charset'.
3104
3105         * char-ucs.h (struct Lisp_Charset): Change type of
3106         `decoding_table' from <Emchar*> to <Lisp_Object>.
3107         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3108
3109 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3110
3111         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3112         error with non-UTF-2000-Mule.
3113
3114 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3115
3116         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3117         in lisp again].
3118         (Vcharset_chinese_cns11643_4): Likewise.
3119         (Vcharset_chinese_cns11643_5): Likewise.
3120         (Vcharset_chinese_cns11643_6): Likewise.
3121         (Vcharset_chinese_cns11643_7): Likewise.
3122         (Qchinese_cns11643_3): Likewise.
3123         (Qchinese_cns11643_4): Likewise.
3124         (Qchinese_cns11643_5): Likewise.
3125         (Qchinese_cns11643_6): Likewise.
3126         (Qchinese_cns11643_7): Likewise.
3127         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3128         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3129         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3130         (complex_vars_of_mule_charset): Likewise.
3131
3132 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3133
3134         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3135         96-set.
3136         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3137         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3138
3139 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3140
3141         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3142         0xFF60.
3143         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3144         (breakup_char_1): Likewise.
3145
3146         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3147         one of them includes the specified character.
3148
3149 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3150
3151         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3152
3153 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3154
3155         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3156
3157 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3158
3159         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3160         definition for non-UTF-2000 Mule.
3161         (latin_iso8859_3_to_ucs): Likewise.
3162         (latin_iso8859_4_to_ucs): Likewise.
3163         (latin_iso8859_9_to_ucs): Likewise.
3164         (latin_jisx0201_to_ucs): Likewise.
3165         (MIN_CHAR_THAI): Likewise.
3166         (MAX_CHAR_THAI): Likewise.
3167         (MIN_CHAR_GREEK): Likewise.
3168         (MAX_CHAR_GREEK): Likewise.
3169         (MIN_CHAR_HEBREW): Likewise.
3170         (MAX_CHAR_HEBREW): Likewise.
3171         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3172         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3173         (MIN_CHAR_CYRILLIC): Likewise.
3174         (MAX_CHAR_CYRILLIC): Likewise.
3175
3176 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3177
3178         * char-ucs.h (breakup_char_1): Use
3179         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3180         thai-tis620 and katakana-jisx0201 area.
3181
3182 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3183
3184         * char-ucs.h (breakup_char_1): Use
3185         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3186         area.
3187
3188         * text-coding.c (reset_encoding_stream): Fixed.
3189         (char_encode_ucs4): Delete `& 255'.
3190
3191         * char-ucs.h (breakup_char_1): Use
3192         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3193
3194 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3195
3196         * file-coding.c (Fmake_coding_system): Don't set up
3197         `codesys->fixed.size'.
3198         (encode_coding_no_conversion): Don't refer
3199         `str->codesys->fixed.size'.
3200
3201 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3202
3203         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3204         (latin_a_char_to_byte1): Deleted.
3205         (latin_a_char_to_byte2): Deleted.
3206
3207 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3208
3209         * mule-charset.c (make_charset): Add new argument `ucs_min',
3210         `ucs_max' and `code_offset'.
3211         (charset_get_byte1): New implementation [delete specific charset
3212         depended implementations].
3213         (Fmake_charset): Modify for `make_charset'.
3214         (Fmake_reverse_direction_charset): Likewise.
3215         (complex_vars_of_mule_charset): Likewise.
3216
3217         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3218         `code_offset'.
3219         (CHARSET_UCS_MIN): New macro.
3220         (CHARSET_UCS_MAX): New macro.
3221         (CHARSET_CODE_OFFSET): New macro.
3222         (MAKE_CHAR): Delete charset depended definitions [except
3223         katakana-jisx0201].
3224
3225 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3226
3227         * char-ucs.h (breakup_char_1): Use
3228         `Vdefault_coded_charset_priority_list' for C0-Controls,
3229         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3230
3231 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3232
3233         * char-ucs.h (charset_get_byte1): New function.
3234         (XCHARSET_GET_BYTE1): Deleted.
3235         (charset_get_byte2): New function.
3236         (XCHARSET_GET_BYTE2): Deleted.
3237         (Vdefault_coded_charset_priority_list): New external variable.
3238         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3239         `Vdefault_preferred_coded_charset_list'.
3240
3241         * mule-charset.c (charset_get_byte1): New function.
3242         (charset_get_byte2): New function.
3243         (Vdefault_coded_charset_priority_list): New variable.
3244         (vars_of_mule_charset): Add new variable
3245         `default-coded-charset-priority-list'.
3246
3247 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3248
3249         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3250         (XCHARSET_GET_BYTE2): New inline function.
3251         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3252         `XCHARSET_GET_BYTE2'.
3253
3254 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3255
3256         * mule-charset.c (make_charset): Initialize
3257         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3258         NULL if table is not defined.
3259
3260 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3261
3262         * text-coding.c (char_encode_shift_jis): Use
3263         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3264         `ucs_to_latin_jisx0201'.
3265
3266         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3267         (ucs_to_latin_iso8859_2): Deleted.
3268         (ucs_to_latin_iso8859_3): Deleted.
3269         (ucs_to_latin_iso8859_4): Deleted.
3270         (ucs_to_latin_iso8859_9): Deleted.
3271         (ucs_to_latin_viscii_lower): Deleted.
3272         (ucs_to_latin_viscii_upper): Deleted.
3273         (ucs_to_latin_tcvn5712): Deleted.
3274         (make_charset): Add new argument `decoding_table'; set up
3275         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3276         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3277         `decoding_table' is defined in UTF-2000.
3278         (Fmake_charset): Modify for `make_charset'.
3279         (Fmake_reverse_direction_charset): Likewise.
3280         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3281         and `GENERATE_96_SET'.
3282
3283         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3284         (ucs_to_latin_jisx0201): Deleted.
3285         (latin_iso8859_2_to_ucs): Deleted.
3286         (ucs_to_latin_iso8859_2): Deleted.
3287         (latin_iso8859_3_to_ucs): Deleted.
3288         (ucs_to_latin_iso8859_3): Deleted.
3289         (latin_iso8859_4_to_ucs): Deleted.
3290         (ucs_to_latin_iso8859_4): Deleted.
3291         (latin_iso8859_9_to_ucs): Deleted.
3292         (ucs_to_latin_iso8859_9): Deleted.
3293         (latin_viscii_lower_to_ucs): Deleted.
3294         (ucs_to_latin_viscii_lower): Deleted.
3295         (latin_viscii_upper_to_ucs): Deleted.
3296         (ucs_to_latin_viscii_upper): Deleted.
3297         (struct Lisp_Charset): Renamed `encoding_table' to
3298         `to_byte1_table'; add `to_byte2_table'.
3299         (CHARSET_DECODING_TABLE): New macro.
3300         (CHARSET_TO_BYTE1_TABLE): New macro.
3301         (CHARSET_TO_BYTE2_TABLE): New macro.
3302         (XCHARSET_DECODING_TABLE): New macro.
3303         (XCHARSET_TO_BYTE1_TABLE): New macro.
3304         (XCHARSET_TO_BYTE2_TABLE): New macro.
3305         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3306         tables.
3307         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3308         don't use `ucs_to_*' tables.
3309
3310 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3311
3312         * text-coding.c (Fmake_coding_system): Don't set up
3313         `codesys->fixed.size'.
3314         (encode_coding_no_conversion): Use `if' instead of `switch'.
3315
3316         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3317
3318 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3319
3320         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3321         (Fmake_charset): Modify for `make_charset'.
3322         (Fmake_reverse_direction_charset): Likewise.
3323         (complex_vars_of_mule_charset): Likewise.
3324
3325 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3326
3327         * text-coding.c (char_encode_shift_jis): Use table
3328         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3329
3330 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3331
3332         * text-coding.c (text_encode_generic): Use `if' instead of
3333         `switch'.
3334         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3335         decode JIS-Latin.
3336
3337 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3338
3339         * text-coding.c (encode_coding_sjis): Deleted.
3340         (char_encode_shift_jis): New function.
3341         (char_finish_shift_jis): New function.
3342         (reset_encoding_stream): Set up `encode_char' and `finish' for
3343         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3344         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3345         (char_encode_utf8): Treat `eol_type'.
3346
3347 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3348
3349         * file-coding.c (decode_coding_iso2022): Use
3350         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3351
3352 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3353
3354         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3355         to 0.7 (Hirano).
3356
3357 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3358
3359         * char-lb.h (CHAR_COLUMNS): New macro.
3360
3361 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3362
3363         * text-coding.c (char_encode_ucs4): New function.
3364         (char_finish_ucs4): New function.
3365         (encode_coding_ucs4): Deleted.
3366         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3367         (text_encode_generic): Delete local variable `charset' and `half'.
3368         (ucs_to_mule_table): Deleted.
3369         (mule_to_ucs_table): Deleted.
3370         (Fset_ucs_char): Deleted.
3371         (ucs_to_char): Deleted.
3372         (Fucs_char): Deleted.
3373         (Fset_char_ucs): Deleted.
3374         (Fchar_ucs): Deleted.
3375         (decode_ucs4): Deleted.
3376         (mule_char_to_ucs4): Deleted.
3377         (encode_ucs4): Deleted.
3378         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3379         (decode_coding_utf8): Likewise.
3380         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3381         (char_encode_iso2022): Fixed.
3382         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3383         `Fset_char_ucs' and `Fchar_ucs'.
3384         (complex_vars_of_file_coding): Don't initialize
3385         `ucs_to_mule_table'.
3386
3387         * objects-tty.c (tty_initialize_font_instance): Don't use
3388         `XCHARSET_COLUMNS'.
3389
3390         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3391         UTF-2000.
3392
3393         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3394         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3395
3396         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3397         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3398         (emchar_string_displayed_columns): Likewise.
3399
3400         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3401         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3402         (string_column_at_point): Likewise.
3403         (Fmove_to_column): Likewise.
3404
3405         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3406         `encoding_table' and `decoding_table'.
3407         (CHARSET_REP_BYTES): Deleted.
3408         (XCHARSET_REP_BYTES): Deleted.
3409         (XCHARSET_COLUMNS): Deleted.
3410         (CHAR_COLUMNS): New macro.
3411         (lookup_composite_char): Deleted unconditionally.
3412         (composite_char_string): Likewise.
3413
3414 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3415
3416         * char-ucs.h (Emchar_to_byte_table): New type.
3417         (get_byte_from_character_table): New function interface.
3418         (Vcharset_latin_jisx0201): New variable.
3419         (latin_jisx0201_to_ucs): New variable.
3420         (ucs_to_latin_jisx0201): New variable.
3421         (Vcharset_latin_iso8859_2): New variable.
3422         (latin_iso8859_2_to_ucs): New variable.
3423         (ucs_to_latin_iso8859_2): New variable.
3424         (Vcharset_latin_iso8859_3): New variable.
3425         (latin_iso8859_3_to_ucs): New variable.
3426         (ucs_to_latin_iso8859_3): New variable.
3427         (Vcharset_latin_iso8859_4): New variable.
3428         (latin_iso8859_4_to_ucs): New variable.
3429         (ucs_to_latin_iso8859_4): New variable.
3430         (Vcharset_latin_iso8859_9): New variable.
3431         (latin_iso8859_9_to_ucs): New variable.
3432         (ucs_to_latin_iso8859_9): New variable.
3433         (Vcharset_latin_viscii_lower): New variable.
3434         (latin_viscii_lower_to_ucs): New variable.
3435         (ucs_to_latin_viscii_lower): New variable.
3436         (Vcharset_latin_viscii_upper): New variable.
3437         (latin_viscii_upper_to_ucs): New variable.
3438         (ucs_to_latin_viscii_upper): New variable.
3439         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3440         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3441         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3442         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3443         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3444         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3445         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3446         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3447         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3448         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3449
3450         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3451         (Vcharset_latin_viscii_upper): New variable.
3452         (make_byte_from_character_table): New function.
3453         (put_byte_from_character_table): New function.
3454         (get_byte_from_character_table): New function.
3455         (CHAR96): New macro.
3456         (ucs_to_latin_jisx0201): New variable.
3457         (latin_jisx0201_to_ucs): New variable.
3458         (ucs_to_latin_iso8859_2): New variable.
3459         (latin_iso8859_2_to_ucs): New variable.
3460         (ucs_to_latin_iso8859_3): New variable.
3461         (latin_iso8859_3_to_ucs): New variable.
3462         (ucs_to_latin_iso8859_4): New variable.
3463         (latin_iso8859_4_to_ucs): New variable.
3464         (ucs_to_latin_iso8859_9): New variable.
3465         (latin_iso8859_9_to_ucs): New variable.
3466         (ucs_to_latin_viscii_lower): New variable.
3467         (latin_viscii_lower_to_ucs): New variable.
3468         (ucs_to_latin_viscii_upper): New variable.
3469         (latin_viscii_upper_to_ucs): New variable.
3470         (ucs_to_latin_tcvn5712): New variable.
3471         (latin_tcvn5712_to_ucs): New variable.
3472         (Qlatin_viscii_lower): New variable.
3473         (Qlatin_viscii_upper): New variable.
3474         (syms_of_mule_charset): Set up new symbol
3475         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3476         (complex_vars_of_mule_charset): Set up new charset
3477         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3478         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3479         `ucs_to_<CHARSET>' tables.
3480
3481 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3482
3483         * text-coding.c: New file.
3484
3485 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3486
3487         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3488
3489         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3490         (MAKE_CHAR): Modify for `ucs-bmp'.
3491         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3492         non-MULE characters of BMP.
3493
3494 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3495
3496         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3497         to 0.6.
3498
3499 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3500
3501         * lstream.h:
3502         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3503         - Include character.h for `CHAR_ASCII_P'.
3504
3505         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3506
3507         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3508         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3509
3510         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3511         (BYTE_C0_P): Likewise.
3512         (BYTE_C1_P): Likewise.
3513         (Lstream_get_emchar_1): Likewise.
3514         (Lstream_fput_emchar): Likewise.
3515         (Lstream_funget_emchar): Likewise.
3516         (copy_internal_to_external): Likewise.
3517         (copy_external_to_internal): Likewise.
3518
3519         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3520         (BYTE_C0_P): Likewise.
3521         (BYTE_C1_P): Likewise.
3522         (Lstream_get_emchar_1): Likewise.
3523         (Lstream_fput_emchar): Likewise.
3524         (Lstream_funget_emchar): Likewise.
3525         (copy_internal_to_external): Likewise.
3526         (copy_external_to_internal): Likewise.
3527
3528         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3529         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3530
3531         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3532         (BYTE_ASCII_P): Moved to mb-1byte.h.
3533
3534 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3535
3536         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3537
3538         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3539         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3540         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3541         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3542         (VALIDATE_CHARPTR_FORWARD): Likewise.
3543         (simple_charptr_emchar): Moved to mb-multibyte.h.
3544         (simple_set_charptr_emchar): Likewise.
3545         (simple_charptr_copy_char): Likewise.
3546         (non_ascii_charptr_emchar): Likewise.
3547         (non_ascii_set_charptr_emchar): Likewise.
3548         (non_ascii_charptr_copy_char): Likewise.
3549         (charptr_emchar): Moved to mb-*byte.h.
3550         (set_charptr_emchar): Likewise.
3551         (charptr_copy_char): Likewise.
3552
3553         * mb-1byte.h, mb-multibyte.h: New files.
3554
3555 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3556
3557         * mb-utf-8.h (MULTIBYTE): New macro.
3558         (MAX_EMCHAR_LEN): Moved from buffer.h.
3559         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3560
3561         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3562
3563         * mb-lb.h, multibyte.h: New files.
3564
3565         * char-1byte.h (Charset_ID): Moved from buffer.h.
3566         (MIN_LEADING_BYTE): Likewise.
3567         (LEADING_BYTE_ASCII): Likewise.
3568         (NUM_LEADING_BYTES): Likewise.
3569         (CHARSETP): Likewise.
3570         (CHARSET_BY_LEADING_BYTE): Likewise.
3571         (XCHARSET_LEADING_BYTE): Likewise.
3572         (XCHARSET_GRAPHIC): Likewise.
3573         (XCHARSET_COLUMNS): Likewise.
3574         (XCHARSET_DIMENSION): Likewise.
3575         (CHAR_CHARSET): Likewise.
3576         (CHAR_LEADING_BYTE): Likewise.
3577         (BREAKUP_CHAR): Likewise.
3578         (Vcharset_ascii): Likewise.
3579
3580         * buffer.h: Include multibyte.h unconditionally.
3581         (VALID_CHARPTR_P): Moved to multibyte.h.
3582         (ASSERT_VALID_CHARPTR): Likewise.
3583         (REAL_INC_CHARPTR): Likewise.
3584         (REAL_INC_CHARBYTIND): Likewise.
3585         (REAL_DEC_CHARPTR): Likewise.
3586         (INC_CHARPTR): Likewise.
3587         (INC_CHARBYTIND): Likewise.
3588         (DEC_CHARPTR): Likewise.
3589         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3590         (VALIDATE_CHARPTR_FORWARD): Likewise.
3591         (charptr_n_addr): Likewise.
3592         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3593         (simple_charptr_emchar): Moved to multibyte.h.
3594         (simple_set_charptr_emchar): Likewise.
3595         (simple_charptr_copy_char): Likewise.
3596         (non_ascii_charptr_emchar): Likewise.
3597         (non_ascii_set_charptr_emchar): Likewise.
3598         (non_ascii_charptr_copy_char): Likewise.
3599         (charptr_emchar): Likewise.
3600         (set_charptr_emchar): Likewise.
3601         (charptr_copy_char): Likewise.
3602         (charptr_emchar_n): Likewise.
3603         (Charset_ID): Moved to char-1byte.h.
3604         (Vcharset_ascii): Likewise.
3605         (CHAR_CHARSET): Likewise.
3606         (CHAR_LEADING_BYTE): Likewise.
3607         (LEADING_BYTE_ASCII): Likewise.
3608         (NUM_LEADING_BYTES): Likewise.
3609         (MIN_LEADING_BYTE): Likewise.
3610         (CHARSETP): Likewise.
3611         (CHARSET_BY_LEADING_BYTE): Likewise.
3612         (XCHARSET_LEADING_BYTE): Likewise.
3613         (XCHARSET_GRAPHIC): Likewise.
3614         (XCHARSET_COLUMNS): Likewise.
3615         (XCHARSET_DIMENSION): Likewise.
3616         (BREAKUP_CHAR): Likewise.
3617
3618 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3619
3620         * character.h: Add document about interface for characters.
3621
3622         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3623         (MAKE_CHAR): Delete comment about
3624         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3625         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3626         (BREAKUP_CHAR): Modify name of arguments.
3627         (CHAR_CHARSET): Modify name of argument.
3628
3629         * buffer.h: Delete document about Emchar accessors.
3630
3631 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3632
3633         * character.h (CHAR_INTP): Moved from buffer.h
3634         (CHAR_OR_CHAR_INTP): Likewise.
3635         (XCHAR_OR_CHAR_INT): Likewise.
3636         (CHECK_CHAR_COERCE_INT): Likewise.
3637
3638         * buffer.h (CHAR_INTP): Moved to character.h
3639         (CHAR_OR_CHAR_INTP): Likewise.
3640         (XCHAR_OR_CHAR_INT): Likewise.
3641         (CHECK_CHAR_COERCE_INT): Likewise.
3642
3643 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3644
3645         * character.h:
3646         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3647         - Include char-1byte.h, char-lb.h or char-ucs.h.
3648
3649         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3650
3651         * buffer.h: Include character unconditionally.
3652         (valid_char_p): Moved to char-*.h.
3653         (non_ascii_valid_char_p): Moved to char-lb.h.
3654
3655         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3656
3657 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3658
3659         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3660         in UTF-2000 because it is not ported yet and not to use
3661         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3662         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3663         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3664
3665         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3666         (CHAR_ASCII_P): Moved from character.h.
3667
3668         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3669         (CHAR_ASCII_P): Likewise.
3670         (CHAR_FIELD1_MASK): Deleted.
3671         (CHAR_FIELD2_MASK): Deleted.
3672         (CHAR_FIELD3_MASK): Deleted.
3673         (MAX_CHAR_BASIC_LATIN): New macro.
3674         (CHAR_FIELD1): Deleted.
3675         (CHAR_FIELD2_INTERNAL): Deleted.
3676         (CHAR_FIELD3_INTERNAL): Deleted.
3677         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3678         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3679         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3680         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3681         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3682         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3683         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3684         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3685         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3686         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3687         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3688         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3689         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3690         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3691         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3692         (MIN_CHAR_COMPOSITION): Deleted.
3693         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3694         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3695
3696 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3697
3698         * buffer.h: Include mb-utf-8.h in UTF-2000.
3699
3700         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3701
3702         * mb-utf-8.h: New file.
3703
3704 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3705
3706         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3707         instead of `int'.
3708
3709         * mule-charset.h, buffer.h (Charset_ID): New type.
3710
3711 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3712
3713         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3714         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3715         instead of `MULE_CHAR_PRIVATE_OFFSET',
3716         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3717         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3718         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3719
3720         * character.h (Vcharset_japanese_jisx0212): New variable
3721         definition.
3722
3723 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3724
3725         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3726         (charset_by_attributes): Delete array about direction.
3727         (latin_a_char_to_charset): New variable in UTF-2000.
3728         (latin_a_char_to_byte1): New variable in UTF-2000.
3729         (latin_a_char_to_byte2): New variable in UTF-2000.
3730         (Qucs_bmp): New variable.
3731         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3732         `Bufbyte'.
3733         (next_allocated_2_byte_leading_byte): Likewise.
3734         (non_ascii_set_charptr_emchar): Likewise.
3735         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3736         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3737         `charset_by_attributes'.
3738         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3739         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3740         and `CHARSET_BY_LEADING_BYTE'.
3741         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3742         `utf-2000-version' to `vars_of_mule_charset'.
3743         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3744         define `leading-code-private-11' in UTF-2000; move setting of
3745         `utf-2000-version' from `syms_of_mule_charset'.
3746         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3747         UTF-2000.
3748
3749         * character.h (Charset_ID): New type.
3750         (LEADING_BYTE_UCS_BMP): New macro.
3751         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3752         (CHARSET_ID_OFFSET_94): New macro.
3753         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3754         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3755         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3756         final-byte.
3757         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3758         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3759         (CHARSET_ID_OFFSET_96): New macro.
3760         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3761         CHARSET_ID_OFFSET_96 and final-byte.
3762         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3763         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3764         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3765         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3766         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3767         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3768         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3769         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3770         (LEADING_BYTE_THAI_TIS620): Likewise.
3771         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3772         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3773         (CHARSET_ID_OFFSET_94x94): New macro.
3774         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3775         CHARSET_ID_OFFSET_94x94 and final-byte.
3776         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3777         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3778         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3779         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3780         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3781         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3782         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3783         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3784         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3785         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3786         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3787         (CHARSET_TYPE_128X128): New macro.
3788         (CHARSET_TYPE_256X256): New macro.
3789         (XCHARSET_PRIVATE_P): Delete unconditionally.
3790         (charset_by_attributes): Delete array about direction.
3791         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3792         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3793         (MIN_CHAR_94): New macro.
3794         (MAX_CHAR_94): New macro.
3795         (MIN_CHAR_96): New macro.
3796         (MAX_CHAR_96): New macro.
3797         (MIN_CHAR_94x94): New macro.
3798         (MAX_CHAR_94x94): New macro.
3799         (MIN_CHAR_96x96): New macro.
3800         (MAX_CHAR_96x96): New macro.
3801         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3802         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3803         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3804         - 32)'.
3805         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3806         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3807         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3808         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3809         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3810         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3811         `XCHARSET_LEADING_BYTE' to make code-point.
3812         (latin_a_char_to_charset): New variable.
3813         (latin_a_char_to_byte1): New variable.
3814         (latin_a_char_to_byte2): New variable.
3815         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3816         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3817         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3818
3819         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3820         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3821         (find_charsets_in_emchar_string): Likewise.
3822         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3823
3824         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3825         `int'.
3826         (decode_coding_iso2022): Likewise.
3827
3828         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3829         of `unsigned char'.
3830
3831         * redisplay.c (redisplay_text_width_emchar_string): Use
3832         `Charset_ID' instead of `unsigned char'.
3833         (redisplay_frame_text_width_string): Likewise.
3834
3835         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3836         `unsigned char'.
3837
3838         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3839         instead of `unsigned char'.
3840         (face_cachel_charset_font_metric_info): Likewise.
3841
3842         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3843         (get_non_ascii_char_table_value): Likewise.
3844         (get_char_table): Likewise.
3845         (put_char_table): Likewise.
3846         (map_over_other_charset): Likewise.
3847         (map_char_table): Likewise.
3848
3849         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3850         instead of `unsigned char'.
3851
3852 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3853
3854         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3855         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3856
3857         * mule-charset.c (leading_code_private_11): Don't define in
3858         UTF-2000.
3859
3860         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3861         in UTF-2000 because it is not ported yet and not to use
3862         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3863
3864 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3865
3866         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3867
3868 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3869
3870         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3871         in UTF-2000.
3872
3873         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3874         of unsigned char to store leading-byte.
3875
3876         * chartab.c (get_non_ascii_char_table_value): Don't use
3877         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3878
3879         * file-coding.c (encode_coding_big5): Delete bogus implementation
3880         in UTF2000.
3881
3882         * character.h (LEADING_BYTE_*): Delete definition for
3883         non-UTF-2000.
3884         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3885         (LEADING_BYTE_PREFIX_P): Deleted.
3886         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3887         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3888         (BUFBYTE_LEADING_BYTE_P): Deleted.
3889         (CHARSET_PRIVATE_P): Deleted unconditionally.
3890         (rep_bytes_by_first_byte): Deleted unconditionally.
3891         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3892         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3893         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3894         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3895         (CHAR_FIELD2): Deleted.
3896         (CHAR_FIELD3): Deleted.
3897         (MAKE_CHAR): Delete definition for non-UTF-2000.
3898         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3899         (breakup_char_1): New implementation.
3900         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3901         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3902
3903 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3904
3905         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3906         condition.
3907
3908 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3909
3910         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3911         (CHARSET_PRIVATE_P): Likewise.
3912         (XCHARSET_PRIVATE_P): Likewise.
3913         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3914
3915         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3916         UTF2000.
3917         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3918
3919 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3920
3921         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3922         (NUM_LEADING_BYTES): Changed from 128 to 256.
3923         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3924         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3925         UTF2000.
3926         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3927
3928         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3929         UTF2000.
3930         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3931         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3932         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3933         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3934         (Qchinese_cns11643_3): New variable in UTF2000.
3935         (Qchinese_cns11643_4): New variable in UTF2000.
3936         (Qchinese_cns11643_5): New variable in UTF2000.
3937         (Qchinese_cns11643_6): New variable in UTF2000.
3938         (Qchinese_cns11643_7): New variable in UTF2000.
3939         (syms_of_mule_charset): Define `chinese-cns11643-3',
3940         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3941         and `chinese-cns11643-7' in UTF2000.
3942         (vars_of_mule_charset): Initialize
3943         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3944         + 1 in UTF2000.
3945         (complex_vars_of_mule_charset): Setup charset
3946         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3947         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3948
3949 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3950
3951         * mule-charset.c: Move setting for `leading-code-private-11' from
3952         `syms_of_mule_charset' to `vars_of_mule_charset'.
3953
3954 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3955
3956         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3957         and `NUM_LEADING_BYTES' in assert.
3958
3959 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3960
3961         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3962         instead of 128.
3963         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3964         `NUM_LEADING_BYTES' instead of 128.
3965
3966 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3967
3968         * mule-charset.h (charset_by_leading_byte): Use
3969         `NUM_LEADING_BYTES' instead of 128.
3970         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3971
3972         * mule-charset.c (charset_by_leading_byte): Use
3973         `NUM_LEADING_BYTES' instead of 128.
3974         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3975
3976         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3977         128.
3978
3979 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3980
3981         * mule-charset.c (syms_of_mule_charset): Update to
3982         0.4 (Shin-Imamiya).
3983
3984 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3985
3986         * file-coding.c (encode_coding_sjis): New implementation for
3987         UTF2000.  (decode_coding_sjis): Ditto.
3988
3989 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3992         Don't define in UTF2000.
3993
3994         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3995         defined.
3996
3997         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3998         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3999         MULE.
4000
4001 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4002
4003         * config.h.in (CHAR_IS_UCS4): New macro.
4004
4005         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4006         conventional MULE representation.
4007         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4008
4009         * mule-charset.h: Reverted to original.
4010
4011         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4012         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4013         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4014
4015         * character.h: New file.
4016
4017         * file-coding.c (Fmake_coding_system): Set 1 to
4018         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4019         defined.
4020         (encode_coding_no_conversion): New implementation for UTF2000.
4021
4022         * file-coding.h (struct Lisp_Coding_System): Add new member
4023         `fixed.size'.
4024
4025 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4026
4027         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4028         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4029         (encode_coding_iso2022): New implementation for UTF2000.
4030
4031 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * mule-canna.c (c2mu): New implementation for UTF2000.
4034         (m2c): Likewise.
4035
4036 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4037
4038         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4039
4040 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4041
4042         * file-coding.c (reset_encoding_stream): Set 0 to
4043         `str->iso2022.current_char_boundary' in UTF2000.
4044         (encode_utf8): Don't define in UTF2000.
4045         (encode_coding_utf8): New implementation for UTF-8 representation
4046         of UTF2000.
4047         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4048
4049 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4050
4051         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4052
4053         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4054         UTF2000.
4055         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4056
4057         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4058
4059         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4060         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4061         as UTF-8 in UTF2000.
4062         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4063         (non_ascii_valid_char_p): Don't define in UTF2000.
4064         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4065         (Lstream_get_emchar_1): Likewise.
4066         (utf-2000-version): New variable in UTF2000.
4067
4068         * lread.c (read_escape): Add new reader `u'.
4069
4070         * insdel.c (three_to_one_table): Don't define in UTF2000.
4071         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4072         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4073         UTF2000.
4074         (bytind_to_bufpos_func): Likewise.
4075         (buffer_mule_signal_inserted_region): Likewise.
4076         (vars_of_insdel): Don't initialize `three_to_one_table'.
4077         (init_buffer_text): Use `buf->text->mule_size' instead of
4078         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4079         UTF2000.
4080
4081         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4082         UTF-8 representation in UTF2000.
4083         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4084         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4085         (decode_coding_iso2022): Don't define local variable `lb' in
4086         UTF2000; don't use LEADING_BYTE in UTF2000; use
4087         `DECODE_ADD_UCS_CHAR' in UTF2000.
4088         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4089
4090         * config.h.in (UTF2000): New macro.
4091
4092         * buffer.h (struct buffer_text): Add new member `mule_size' and
4093         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4094         (valid_char_p): Return always 1 in UTF2000.
4095         (MAX_EMCHAR_LEN): 6 in UTF2000.
4096         (three_to_one_table): Don't define in UTF2000.
4097         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4098         UTF2000.
4099         (real_bytind_to_bufpos): Likewise.
4100
4101         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4102
4103 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4104
4105         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4106         representation change.
4107         (Vutf_2000_version): New variable.
4108         (leading_code_private_11): New variable.
4109         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4110         `leading-code-private-11'.
4111
4112         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4113         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4114         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4115         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4116         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4117         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4118         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4119         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4120         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4121         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4122         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4123         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4124         (MIN_CHAR_GREEK): New macro.
4125         (MAX_CHAR_GREEK): New macro.
4126         (MIN_CHAR_CYRILLIC): New macro.
4127         (MAX_CHAR_CYRILLIC): New macro.
4128         (MIN_CHAR_HEBREW): New macro.
4129         (MAX_CHAR_HEBREW): New macro.
4130         (MIN_CHAR_THAI): New macro.
4131         (MAX_CHAR_THAI): New macro.
4132         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4133         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4134         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4135         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4136         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4137         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4138         (CHAR_FIELD2): New inline function.
4139         (CHAR_FIELD3): New inline function.
4140         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4141         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4142         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4143         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4144         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4145         (MIN_CHAR_COMPOSITION): Likewise.
4146         (CHAR_LEADING_BYTE): Modified for character representation change.
4147         (MAKE_CHAR): Likewise.
4148
4149         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4150         (Vcharset_greek_iso8859_7): Likewise.
4151         (Vcharset_cyrillic_iso8859_5): Likewise.
4152         (Vcharset_hebrew_iso8859_8): Likewise.
4153         (Vcharset_thai_tis620): Likewise.
4154         (Vcharset_katakana_jisx0201): Likewise.
4155
4156 2001-02-08  Martin Buchholz <martin@xemacs.org>
4157
4158         * XEmacs 21.2.44 "Thalia" is released.
4159
4160 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4161
4162         Fixes crashes in kill-emacs on some systems.
4163         * process-unix.c (unix_kill_child_process):
4164         It's OK for kill() to fail with ESRCH.
4165
4166 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4167
4168         Contortions to make .gdbinit tricks work on most systems.
4169         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4170         * alloc.c (dbg_valmask): Make non-const.
4171         * alloc.c (dbg_typemask): Make non-const.
4172         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4173         * alloc.c (dbg_valbits): Make non-const.
4174         * alloc.c (dbg_gctypebits): Make non-const.
4175         * .gdbinit (decode_object): Make it work with AIX cc.
4176
4177 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4178
4179         * elhash.c (make_general_lisp_hash_table):
4180         Use simpler and more efficient calloc to clear entries.
4181
4182 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4183
4184         * window.c (window_scroll): Work around an AIX C compiler bug.
4185         Fixes 'scroll-up' does nothing problem with xlC.
4186
4187 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4188
4189         * .gdbinit: Remove obsolete comment.
4190
4191 2001-01-31  Mike Alexander  <mta@arbortext.com>
4192
4193         * select.c (Fown_selection_internal): Set owned_p for device
4194         method correctly.
4195
4196 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4197
4198         Port to g++ 2.97.
4199         "not" cannot be used as a macro name as it is an operator in C++
4200         * config.h.in: Stop #defining `not'.
4201         * chartab.c (check_category_char): not ==> not_p
4202         * chartab.h: Likewise.
4203         * regex.c (re_match_2_internal): Likewise.
4204
4205 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4206
4207         * lisp-disunion.h: Fix up comments.
4208
4209 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4210
4211         * keymap.c (define_key_check_and_coerce_keysym):
4212         (syms_of_keymap):
4213         Support mouse-6 and mouse-7 bindings in the obvious way.
4214
4215 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4216
4217         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4218
4219 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4220
4221         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4222         Previous patch missed DEFVAR_INT_MAGIC.
4223         Make sure future DEFVAR_foo use correct types.
4224         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4225         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4226         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4227         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4228         * (DEFVAR_INT): Likewise.
4229         * redisplay.c (vertical_clip): Should be of type Fixnum.
4230         * redisplay.c (horizontal_clip): Likewise.
4231         * lisp.h (dump_add_opaque_int): New.
4232         (dump_add_opaque_fixnum): New.
4233
4234 2001-01-29  Andy Piper  <andy@xemacs.org>
4235
4236         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4237         since they can be eval'ed
4238
4239 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4240
4241         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4242         Oops, XEmacs redefines `class'.  Use `typename' instead.
4243
4244 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4245
4246         * dumper.c: Fix C++ compile errors.
4247
4248 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4249
4250         * tparam.c: Use correct prototypes.
4251
4252 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4253
4254         * sysproc.h: #include util.h for NetBSD's openpty.
4255
4256 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4257
4258         More 64-bit correctness.
4259         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4260         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4261         Fix up comments.
4262         This finally finishes the 64-bit SGI port.
4263         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4264         * symbols.c: Fix up comments and type casts.
4265         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4266         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4267         * symeval.h (Fixnum): New type.
4268         * symeval.h (symbol_value_type): Fix up comment.
4269
4270         * commands.h:
4271         * nt.c:
4272         * emacs.c:
4273         * data.c:
4274         * redisplay.c:
4275         * abbrev.c:
4276         * dired-msw.c:
4277         * event-Xt.c:
4278         * eldap.c:
4279         * window.c:
4280         * sound.c:
4281         * event-stream.c:
4282         * eval.c:
4283         * buffer.c:
4284         * mule-canna.c: A million DEFVAR_INTs here...
4285         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4286         * extents.c:
4287         * cmdloop.c:
4288         * lisp.h:
4289         * select-x.c:
4290         * console-x.h:
4291         * event-msw.c:
4292         * mule-wnnfns.c:
4293         * hpplay.c:
4294         * ralloc.c:
4295         * alloc.c:
4296         * keymap.c:
4297         * profile.c:
4298         s/int/Fixnum/g in DEFVAR_INT declarations.
4299
4300 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4301
4302         Port pdump to SGI alignment-sensitive environment.
4303         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4304         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4305         properly aligned.
4306         Define and use aligned reading and writing macros.
4307         Use buffered stdio instead of posix i/o for faster dumping.
4308         Eliminate kludgy 256 byte space for header.
4309         Read and write from dump file using structs for alignment safety.
4310         * dumper.c (pdump_align_stream): New.
4311         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4312         * dumper.c (PDUMP_READ_ALIGNED): New.
4313         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4314         * dumper.c (pdump_static_Lisp_Object): New struct.
4315         * dumper.c (pdump_static_pointer): New struct.
4316         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4317         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4318         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4319         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4320
4321         * dumper.c (pdump_backtrace):
4322         * dumper.c (pdump_get_indirect_count):
4323         * dumper.c (pdump_register_object):
4324         * dumper.c (pdump_register_struct):
4325         * dumper.c (pdump_reloc_one):
4326         * dumper.c (pdump_scan_by_alignment):
4327         * dumper.c (pdump_dump_from_root_struct_ptrs):
4328         * dumper.c (pdump_dump_opaques):
4329         * dumper.c (pdump_dump_rtables):
4330         * dumper.c (pdump_dump_from_root_objects):
4331         * dumper.c (pdump):
4332         * dumper.c (pdump_load_finish):
4333         Use aligned reading and writing.
4334
4335         * dumper.c (pdump_free): Make static.
4336         * dumper.c (pdump_hFile): Likewise.
4337         * dumper.c (pdump_hMap): Likewise.
4338
4339 2001-01-26  Martin Buchholz <martin@xemacs.org>
4340
4341         * XEmacs 21.2.43 "Terspichore" is released.
4342
4343 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4344
4345         Type fiddling for window_config.saved_windows_count
4346         * window.c (struct window_config): 
4347         Make saved_windows_count member unsigned.
4348         * window.c (sizeof_window_config_for_n_windows): 
4349         Make parameter unsigned.
4350         * window.c (mark_window_config):
4351         * window.c (window_config_equal):
4352         * window.c (free_window_configuration):
4353         * window.c (Fset_window_configuration):
4354         * window.c (count_windows):
4355         * window.c (Fcurrent_window_configuration):
4356         * window.c (reinit_vars_of_window):
4357         Update all callers and users.
4358
4359 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4360
4361         Alignment correctness for flexible arrays.
4362         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4363         Make alignment-correct. Add interesting comments.
4364         * alloc.c (size_vector):
4365         * alloc.c (make_vector_internal):
4366         * alloc.c (make_bit_vector_internal):
4367         * alloc.c (sweep_bit_vectors_1):
4368         * fns.c (size_bit_vector):
4369         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4370         * window.c (sizeof_window_config_for_n_windows): 
4371         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4372
4373 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4374
4375         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4376
4377 2001-01-23  Andy Piper  <andy@xemacs.org>
4378
4379         * select.c (Fown_selection_internal): pass owned_p
4380
4381         * select-msw.c (mswindows_own_selection): New Signature.
4382
4383         * console.h (struct console_methods): add owned_p to
4384         _own_selection.
4385
4386         * select-x.c (x_own_selection): pass owned_p
4387         (hack_motif_clipboard_selection): use owned_p
4388         (vars_of_select_x): new variable -
4389         x_selection_strict_motif_ownership.
4390
4391 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4392
4393         * specifier.h (specifier_data_offset): Remove pointless parens.
4394         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4395
4396 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4397
4398         Make Lisp_Object sizeof methods be alignment-correct.
4399         pdump must restore objects to the same alignment as the C compiler
4400         assumes.  It really matters on SGIs.
4401         * lstream.c (aligned_sizeof_lstream): New.
4402         (sizeof_lstream): Use aligned_sizeof_lstream.
4403         (Lstream_new): Likewise.
4404         * opaque.c (aligned_sizeof_opaque): New.
4405         (sizeof_opaque): Use aligned_sizeof_opaque.
4406         (make_opaque): Likewise.
4407         * specifier.c (aligned_sizeof_specifier): New.
4408         (sizeof_specifier): Use aligned_sizeof_specifier.
4409         (make_specifier_internal): Likewise.
4410
4411 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4412
4413         * lstream.h (struct lstream): Use max_align_t for trailing data.
4414         * specifier.h (struct Lisp_Specifier): Likewise.
4415
4416 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4417
4418         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4419         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4420         (CCL_SUSPEND): Likewise.
4421         (CCL_INVALID_CMD): Likewise.
4422         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4423         (ccl_driver): Likewise.
4424         (CCL_WRITE_CHAR): Macro hygiene.
4425         (CCL_WRITE_STRING): Macro hygiene.
4426
4427 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4428
4429         Port "portable" dumper to SunOS 4 and HP-UX.
4430         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4431         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4432         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4433
4434 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4435
4436         * lisp.h (ALIGNOF): A better definition for C++.
4437
4438 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4439
4440         Macro hygiene.
4441         Fix printf warnings: int format, long int arg.
4442         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4443         (PUSH_FAILURE_POINT): Use correct printf formats.
4444         (POP_FAILURE_POINT): Use correct printf formats.  
4445         Use do {...} while (0)
4446
4447 2001-01-20  Martin Buchholz <martin@xemacs.org>
4448
4449         * XEmacs 21.2.42 "Poseidon" is released.
4450
4451 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4452
4453         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4454
4455 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4456
4457         De-kludgify FIXED_TYPE free list frobbing.
4458         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4459         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4460         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4461         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4462         * alloc.c (LRECORD_FREE_P): New.
4463         * alloc.c (MARK_LRECORD_AS_FREE): New.
4464         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4465         * alloc.c (STRUCT_FREE_P): Deleted.
4466         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4467         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4468         * alloc.c (STRING_CHARS_FREE_P): New.
4469         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4470         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4471         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4472         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4473         * alloc.c (resize_string): Use new definitions.
4474         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4475         * alloc.c (verify_string_chars_integrity): Use new definitions.
4476         * alloc.c (compact_string_chars): Use new definitions.
4477         * alloc.c: Update monster comments.
4478         * lrecord.h (lrecord_type): Add some new lrecord types for
4479         alloc.c's use.
4480
4481 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4482
4483         Improve alignment hackery.
4484         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4485         (max_align_t): Moved from opaque.h - general purpose.
4486         (ALIGN_PTR): Use size_t, not long.
4487         * opaque.h (max_align_t): Move to lisp.h.
4488
4489 2001-01-18  Norbert Koch  <nk@LF.net>
4490
4491         * gui.h: Fix and add prototypes to fix build problems.
4492
4493 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4494
4495         temacs is going away, so `dump-temacs' is now a bad name.
4496         * .dbxrc (dump-temacs): Rename to `dmp'.
4497         * .gdbinit (dump-temacs): Rename to `dmp'.
4498
4499 2001-01-17  Andy Piper  <andy@xemacs.org>
4500
4501         * glyphs.c (print_image_instance): comment to make martin happy.
4502
4503         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4504         change.
4505
4506         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4507         activation.
4508         (mswindows_tab_control_redisplay): warning suppression.
4509
4510         * glyphs-widget.c (widget_update): re-write to cope with updated
4511         items.
4512         (widget_instantiate): use new gui_item functions.
4513         (tab_control_update): deleted.
4514         (progress_gauge_update): deleted.
4515         (image_instantiator_progress_guage): take out update reference.
4516         (image_instantiator_tree_view): ditto.
4517         (image_instantiator_tab_control): ditto.
4518
4519         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4520         Right the new way.
4521         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4522         return whether anything was changed.
4523         (update_gui_item_keywords): as it sounds.
4524
4525         * gui.h: declare widget_gui_parse_item_keywords.
4526
4527         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4528         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4529
4530 2001-01-17  Martin Buchholz <martin@xemacs.org>
4531
4532         * XEmacs 21.2.41 "Polyhymnia" is released.
4533
4534 2001-01-16  Didier Verna  <didier@xemacs.org>
4535
4536         * glyphs.c (image_instantiate): don't use fallbacks when
4537         instantiating a face's background pixmap by inheritance.
4538
4539 2001-01-14  Mike Sperber <mike@xemacs.org>
4540
4541         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4542         Conditionalize accordingly.
4543
4544 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4545
4546         * dumper.c (pdump_file_get): Fix a compiler warning.
4547
4548 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4549
4550         Make Purify happy when pdumping.
4551         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4552         iniitalizing all bits of new lisp object memory.
4553         * symbols.c (Fmake_local_variable): Likewise.
4554         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4555         * symbols.c (Fdefvaralias): Likewise.
4556         * mule-charset.c (vars_of_mule_charset): Likewise.
4557
4558 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4559         Add the `-nd' flag when running pre-dump operations under the debugger.
4560         * .dbxrc (run-temacs): Add `-nd'.
4561         * .dbxrc (update-elc): Likewise.
4562         * .dbxrc (dump-temacs): Likewise.
4563         * .gdbinit (run-temacs): Likewise.
4564         * .gdbinit (check-temacs): Likewise.
4565         * .gdbinit (update-elc): Likewise.
4566         * .gdbinit (dump-temacs): Likewise.
4567
4568 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4569
4570         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4571         export OBJECT_MODE=64
4572         configure --pdump --use-union-type=no
4573         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4574         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4575
4576         * miscplay.c (sndcnv8U_2mono):
4577         Avoid two uses of `++' in the same expression.
4578         Suppresses a GCC warning.
4579
4580 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4581
4582         Make sure future compilers don't miscompile alloc.c.
4583         * alloc.c:
4584         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4585         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4586
4587 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4588
4589         * dumper.c: A little post-pdump-rename comment fixup.
4590
4591 2001-01-09  Jerry James  <james@eecs.ku.edu>
4592
4593         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4594
4595 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4596
4597         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4598         script:
4599         #!/bin/sh
4600         replace_symbol () {
4601           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4602         }
4603
4604         replace_symbol pdump_wire_lists pdump_weak_object_chains
4605         replace_symbol pdump_wire_list dump_add_weak_object_chain
4606
4607         replace_symbol pdump_wires pdump_root_objects
4608         replace_symbol pdump_wire dump_add_root_object
4609
4610         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4611         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4612
4613         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4614         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4615         replace_symbol dumpstructinfo pdump_root_struct_ptr
4616         replace_symbol dumpstruct dump_add_root_struct_ptr
4617
4618         replace_symbol dumpopaque dump_add_opaque
4619         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4620         replace_symbol dumpopaqueinfos pdump_opaques
4621         replace_symbol dumpopaqueinfo pdump_opaque
4622
4623         replace_symbol nb_structdump nb_root_struct_ptrs
4624         replace_symbol nb_opaquedump nb_opaques
4625
4626         replace_symbol align_table pdump_align_table
4627         replace_symbol dump_header pdump_header
4628
4629         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4630         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4631
4632
4633 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4634
4635         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4636         optimizing bytecount_to_charcount().
4637
4638 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4639
4640         * config.h.in:
4641         (HAVE_DLFCN_H): Removed.
4642         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4643
4644 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4645
4646         Portable dumper maintainability improvements.
4647         * alloc.c (staticpro):
4648         * alloc.c (staticpro_nodump):
4649         * alloc.c (garbage_collect_1):
4650         * alloc.c (reinit_alloc_once_early):
4651         * alloc.c (init_alloc_once_early):
4652         * alloc.c: Move dumper functions to alloc.c.
4653         * dumper.c (pdump_backtrace):
4654         * dumper.c (pdump_dump_structs):
4655         * dumper.c (pdump_dump_opaques):
4656         * dumper.c (pdump_dump_rtables):
4657         * dumper.c (pdump_dump_wired):
4658         * dumper.c (pdump):
4659         * dumper.c (pdump_load_check):
4660         * dumper.c (pdump_load_finish):
4661         * dumper.c (pdump_file_unmap):
4662         * dumper.c (pdump_file_get):
4663         * dumper.c (pdump_resource_free):
4664         * dumper.c (pdump_resource_get):
4665         * dumper.c (pdump_file_free):
4666         * dumper.c (pdump_file_try):
4667         * dumper.c (pdump_load):
4668         Remove fixed size limits on staticpro(), staticpro_nodump(),
4669         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4670         Remove custom code for dumping lrecord_implementations_table - use
4671         dumpopaque instead.
4672         Remove (most of the) custom code for dumping staticpros - dump it
4673         like any other dynarr.
4674
4675         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4676         * dumper.c: Moved functions from alloc.c.
4677         * alloc.c (dumpstruct): Moved to dumper.c.
4678         * alloc.c (dumpopaque): Likewise.
4679         * alloc.c (pdump_wire): Likewise.
4680         * alloc.c (pdump_wire_list): Likewise.
4681
4682         * lisp.h (Dynarr_sizeof): New.
4683         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4684         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4685         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4686
4687         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4688         * lisp.h (dumpopaque): ditto.
4689         * lisp.h (pdump_wire): ditto.
4690         * lisp.h (pdump_wire_list): ditto.
4691
4692 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4693
4694         * make-src-depend (PrintPatternDeps):
4695         Use `sort' to make output independent of perl version.
4696
4697 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4698
4699         Port to Netbsd 1.5.
4700         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4701         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4702
4703 2001-01-03  Didier Verna  <didier@xemacs.org>
4704
4705         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4706         that `focus_frame' is alive before thinking of calling
4707         `redisplay_redraw_cursor' on it.
4708
4709 2001-01-08  Martin Buchholz <martin@xemacs.org>
4710
4711         * XEmacs 21.2.40 is released.
4712
4713 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4714
4715         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4716
4717 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4718
4719         * alloc.c (dbg_valmask): Make const.
4720         * alloc.c (dbg_typemask): Make const.
4721         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4722         * alloc.c (dbg_valbits): Make const.
4723         * alloc.c (dbg_gctypebits): Make const.
4724
4725 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4726
4727         * redisplay-x.c (x_bevel_area):
4728         redisplay.h (struct rune):
4729         Typo fixes in comments.
4730
4731 2001-01-05  Andy Piper  <andy@xemacs.org>
4732
4733         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4734         adjustment.
4735
4736         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4737
4738 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4739
4740         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4741
4742         * mule-ccl.c (stack_idx_of_map_multiple):
4743         Non const global data must not be initialized!
4744         Found by MIYASHITA Hisashi.
4745
4746 2001-01-02  Andy Piper  <andy@xemacs.org>
4747
4748         * frame.c (change_frame_size): make sure frame size is always
4749         marked as changed.
4750
4751         * glyphs.c (image_instance_layout): minor code reuse.
4752
4753         * window.c (Fcurrent_window_configuration): revert previous
4754         change.
4755
4756 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4757
4758         * glyphs.h:
4759         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4760
4761 2000-12-31  Andy Piper  <andy@xemacs.org>
4762
4763         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4764         when widget gets unmapped.
4765
4766         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4767         function. Make sure widgets losing focus don't just drop it.
4768         (handle_focus_event_1): record the widget with focus.
4769
4770 2000-12-31  Andy Piper  <andy@xemacs.org>
4771
4772         * window.c (allocate_window): use
4773         make_image_instance_cache_hash_table.
4774         (make_dummy_parent): ditto.
4775         (Fset_window_configuration): ditto.
4776
4777         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4778
4779         * glyphs.c (process_image_string_instantiator): use
4780         INSTANTIATOR_TYPE.
4781         (get_image_instantiator_governing_domain): ditto.
4782         (normalize_image_instantiator): ditto.
4783         (instantiate_image_instantiator): ditto.
4784         (make_image_instance_1): ditto.
4785         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4786         (instantiator_eq_equal): new function for use with instance hash
4787         tables.
4788         (instantiator_eq_hash): ditto.
4789         (make_image_instance_cache_hash_table): create a suitable hash
4790         table for storing image instances.
4791
4792         * elhash.h (hash_table_weakness): new internal weakness type
4793         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4794         declare new functions.
4795
4796         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4797         another weakness type for glyphs.
4798         (make_standard_lisp_hash_table): new function split out from
4799         make_general_lisp_hash_table.
4800         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4801         (hash_table_instantiate): ditto.
4802         (Fmake_hash_table): ditto.
4803
4804 2000-12-31  Martin Buchholz <martin@xemacs.org>
4805
4806         * XEmacs 21.2.39 is released.
4807
4808 2000-12-29  Andy Piper  <andy@xemacs.org>
4809
4810         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4811
4812         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4813         the frame has changed so that we pick up geometry changes such as
4814         menubar visibility.
4815
4816 2000-12-28  Andy Piper  <andy@xemacs.org>
4817
4818         * lastfile.c (my_ebss): make a char array so we can pad the
4819         bss. Fixes cygwin unexec.
4820
4821         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4822
4823 2000-12-26  Andy Piper  <andy@xemacs.org>
4824
4825         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4826         comments and try and be more precise about a non-/SIGIO world.
4827         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4828         SIGIO.
4829
4830         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4831         we don't normalize to zero width or height.
4832
4833 2000-12-24  Andy Piper  <andy@xemacs.org>
4834
4835         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4836
4837 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4838
4839         * s/sco5.h: SCO 5 has pty support.
4840
4841 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4842
4843         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4844         input-method-xlib.c contains whole contents of input-method-xfs.c,
4845         so we can use input-method-xlib.c's code for USE_XFONTSET
4846         using #ifdefs.
4847         * input-method-xfs.c: removed.
4848
4849 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4850
4851         * file-coding.h (enum coding_category_type): reorder enumerators to
4852         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4853         (now one greater than largest real coding_category_type enumerator).
4854         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4855         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4856         Fcoding_category_list, Fset_coding_priority_list,
4857         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4858         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4859
4860 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4861
4862         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4863         * redisplay-output.c (redisplay_output_window): Clear top of window
4864         when face is changed.
4865         * redisplay-x.c (x_redraw_exposed_window): Call
4866         redisplay_clear_top_of_window.
4867         * redisplay.h: Publish redisplay_clear_top_of_window.
4868
4869 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4870
4871         * buffer.c (Fkill_buffer): Map over all devices.
4872         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4873         (list_windows): New function.
4874         (list_all_windows): Ditto.
4875         (Freplace_buffer_in_windows): Use them.
4876
4877 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4878
4879         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4880         (Fopen_database): Use `db_create' instead of `db_open'.
4881         (syms_of_database): Initialize Qqueue.
4882
4883 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4884
4885         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4886         buffer_local_face_property.
4887         * buffer.h (struct buffer): New member buffer_local_face_property.
4888         * window.c (Fset_window_buffer):  Mark window's face as changed
4889         when buffer has buffer local face.
4890         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4891         * objects.c (color_after_change): Set buffer_local_face_property
4892         when locale of face specifier is buffer.
4893         * objects.c (font_after_change): Ditto.
4894         * objects.c (face_boolean_after_change): Ditto.
4895         * glyphs.c (image_after_change): Ditto.
4896
4897 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4898
4899         * nt.c (mswindows_fstat): Report file permissions, volume serial
4900         number, etc. Code adapted from FSF Emacs 20.7.
4901
4902 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4903
4904         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4905         of stat when we don't have symbolic links, to make sure
4906         mswindows_stat is called on mswindows.
4907
4908 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4909
4910         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4911
4912 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4913
4914         * doprnt.c (emacs_doprnt_1): More printing fixes.
4915         Make printing of numbers compatible with libc and FSF Emacs.
4916         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4917         Use the system printf to do most of the hard work of formatting,
4918         instead of doprnt_1().
4919         Calculate memory to allocate for format string.
4920         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4921         (doprnt_1): Cleaner code and documentation.
4922
4923 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4924
4925         * Makefile.in.in: Use the loop variable to install headers.
4926
4927 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4928
4929         * window.c (Fsplit_window): Don't invalidate face cache.
4930
4931 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4932
4933         * minibuf.c (Fall_completions): Undo the previous change
4934         which removed checking elements start with space.
4935
4936 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4937
4938         * mule-canna.c: Didier suppression.
4939
4940 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4941
4942         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4943         (warning suppression).  Add English comment translations.
4944
4945 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4946
4947         * unexelfsgi.c (unexec): Better test for mmap failure.
4948
4949 2000-12-05  Martin Buchholz <martin@xemacs.org>
4950
4951         * XEmacs 21.2.38 is released.
4952
4953 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4954
4955         * redisplay.c (bar-cursor): Make a user variable.
4956
4957         * symsinit.h: Add init_postgresql_from_environment.
4958
4959 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4960
4961         * regex.c: Convert to clean C.
4962
4963 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4964
4965         * realpath.c:
4966         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4967         initialization.
4968         (sys_readlink): renamed to system_readlink to avoid conflict with
4969         the other sys_readlink.
4970
4971 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4972
4973         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4974
4975 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4976
4977         * postgresql.c (init_postgresql_from_environment): new function.
4978         (vars_of_postgresql): Move code initializing Lisp variables out and
4979         into init_postgresql_from_environment.
4980         emacs.c (main_1): Call init_postgresql_from_environment if and only
4981         if running a dumped XEmacs.
4982
4983 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4984
4985         * buffer.c: Make find-file-compare-truenames default to true on
4986         windows.
4987
4988         * realpath.c (win32_abs_start):
4989         (cygwin_readlink):
4990         (win32_readlink): New functions.
4991         (xrealpath): Return really real filenames on windows.
4992
4993         * fileio.c (Ffile_truename): Make file-truename work on windows.
4994
4995 2000-11-29  Didier Verna  <didier@xemacs.org>
4996
4997         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4998         * faces.c (update_face_cachel_data): use it.
4999         * faces.c (add_face_cachel): use it. Complete background pixmap
5000         frobbing in face cache if `update_face_cachel_data' has not done so.
5001
5002 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5003
5004         * search.c (string_match_1): Don't set last_thing_searched
5005         when search failed.
5006
5007 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5008
5009         * buffer.c: Include casetab.h
5010         (common_init_complex_vars_of_buffer): Use new case-table object.
5011         * buffer.h: Include casetab.h
5012         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5013         (DOWNCASE_TABLE_OF): Ditto.
5014         * bufslots.h: Remove char-tables and add case-table.
5015         * casetab.c: Include casetab.h
5016         (CASE_TABLE_P): Removed.
5017         (mark_case_table): New function.
5018         (allocate_case_table): New function.
5019         (Fcase_table_p): Use new case-table.
5020         (case_table_char): New function.
5021         (Fget_case_table): Ditto.
5022         (Fput_case_table): Ditto.
5023         (Fput_case_table_pair): Ditto.
5024         (Fcopy_case_table): Ditto.
5025         (Fcurrent_case_table): Return case-table.
5026         (Fstandard_case_table): Return case-table.
5027         (Fset_case_table): Fix doc-string.
5028         (set_case_table): Use case-table
5029         (syms_of_casetab): DEFSUBR new functions.
5030         (complex_vars_of_casetab): Set up standard case-table.
5031         * casetab.h: New file.
5032         * editfns.c: Include casetab.h
5033         (Fcompare_buffer_substrings): Use case-table.
5034         * inline.c: Include casetab.h
5035         * lisp.h: Remove bogus extern.
5036         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5037         * search.c: Include casetab.h
5038         (TRANSLATE_ASCII): Removed.
5039         (TRANSLATE): Unconditionally translate character.
5040         (looking_at_1): Use case-table.
5041         (string_match_1): Ditto.
5042         (fast_string_match): Ditto.
5043         (search_command): Ditto.
5044         (search_buffer): Separate boyer_moore.  Check whether
5045         boyer_moore is possible.
5046         (simple_search): New function.
5047         (boyer_moore): Separated from search_buffer. Translate char.
5048
5049 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5050
5051         * regex.c (RE_TR_ASCII): Removed.
5052         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5053         (PATFETCH): Call PATFETCH_RAW.
5054         (PATFETCH_RAW): Fetch Emchar.
5055         (PATUNFETCH): Decrement charptr.
5056         (GET_BUFFER_SPACE): Rename b to buf_end.
5057         (BUF_PUSH): Ditto.
5058         (BUF_PUSH_2): Ditto.
5059         (BUF_PUSH_3): Ditto.
5060         (EXTEND_BUFFER): Ditto.
5061         (SET_LIST_BIT): Ditto.
5062         (regex_compile): Ditto.  Translate non ASCII char.
5063         (compile_range): Ditto.
5064         (re_search_2): Ditto.
5065         (re_match_2_internal): Compare Emchar.
5066         (bcmp_translate): Ditto.
5067
5068 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5069
5070         * lisp.h (basic char/int typedefs):  comment improvement.
5071
5072 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5073
5074         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5075         unstomp inhibit_site_lisp.  Improve comments.
5076
5077 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5078
5079         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5080
5081 2000-11-28  Andy Piper  <andy@xemacs.org>
5082
5083         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5084         clipped display for windows in the gutter also.
5085         (redisplay_display_boxes_in_window_p): change semantics of return
5086         codes to be more intuitive.
5087
5088         * gutter.h: declare display_boxes_in_gutter_p.
5089
5090         * gutter.c (display_boxes_in_gutter_p): new function for
5091         redisplay.
5092
5093 2000-11-22  Andy Piper  <andy@xemacs.org>
5094
5095         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5096         autodetect domain.
5097
5098 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5099
5100         * callproc.c (Fold_call_process_internal):
5101         * gpm.c (Freceive_gpm_event):
5102         (tty_get_foreign_selection): Might be just warning supression.
5103         * fileio.c (Fwrite_region_internal):
5104         (Fset_visited_file_modtime):
5105         * keymap.c (event_matches_key_specifier_p):
5106         Initialize GCPROed variable.
5107
5108         * menubar-x.c (command_builder_find_menu_accelerator):
5109         Initialize before use.
5110
5111 2000-11-23  Andy Piper  <andy@xemacs.org>
5112
5113         * unexcw.c (unexec): make the resulting executable executable.
5114
5115 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5116
5117         * doc.c (get_doc_string):
5118         Use size_t, not int, for result of XSTRING_LENGTH.
5119
5120         * cmds.c (Fdelete_char):
5121         * cmds.c (Fpoint_at_eol):
5122         * cmds.c (Fself_insert_command):
5123         Use EMACS_INT, not int, for result of XINT.
5124         Someday, someone will want to insert more than 2**31 identical characters.
5125
5126         * cmds.c (Fdelete_char):
5127         * cmds.c (Fdelete_backward_char):
5128         * syntax.c (Fforward_word):
5129         * syntax.c (Fforward_comment):
5130         Make COUNT argument optional, for consistency with forward-char et al.
5131
5132 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5133
5134         * lisp.h:
5135         * print.c (long_to_string):
5136         Return a useful value: the pointer at end of data written.
5137
5138         * doprnt.c:
5139         Use `static const char * const' for constant strings.
5140         (union printf_arg): Delete `i', `ui' members.
5141         (get_doprnt_args):
5142         (emacs_doprnt_1):
5143         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5144         Do all printf-ing via the `l' specifier.
5145         Use EMACS_INT instead of int.
5146         Optimize.
5147
5148 2000-11-20  Didier Verna  <didier@xemacs.org>
5149
5150         * faces.c (update_face_cachel_data): don't frob the background
5151         pixmap when the window is being created. The face is needed but
5152         does not exist yet.
5153
5154 2000-11-20  Andy Piper  <andy@xemacs.org>
5155
5156         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5157         messing with a debug environment.
5158
5159 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5160
5161         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5162
5163 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5164
5165         * casetab.c (Fcase_table_p): Fix compile error and crash.
5166
5167 2000-11-18  Philip Aston  <philipa@mail.com>
5168
5169         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5170
5171 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5172
5173         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5174         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5175
5176 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5177
5178         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5179         * unexelf.c: Use HAVE_ELF_H.
5180         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5181         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5182         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5183         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5184         for testing.
5185         So this is an unexelfsgi.c from a different line of development.
5186
5187 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5188
5189         * regex.c (RE_TR_ASCII): New function.
5190         (RE_TRANSLATE): Call it.
5191
5192 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5193
5194         * buffer.h (TRT_TABLE_OF): Remove assert.
5195         (IN_TRT_TABLE_DOMAIN): Removed.
5196
5197 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5198
5199         * free-hook.c (log_gcpro):
5200         (show_gcprohist): Add support for GCPRO5.
5201
5202 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5203
5204         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5205
5206 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5207
5208         * symeval.h: Declare flush_all_buffer_local_cache.
5209
5210         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5211         (flush_buffer_local_cache): Added.
5212         (flush_all_buffer_local_cache): Added.
5213
5214         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5215
5216         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5217         (pdump_dump_data): Ditto.
5218         (pdump_reloc_one): Ditto.
5219         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5220         before dumping.
5221
5222
5223 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5224
5225         * buffer.c: Remove if 0'ed entry.
5226         * buffer.h: Rewrite TRT to use char-table.
5227         * bufslots.h: Remove mirror tables.
5228         * casetab.c: Remove mirror tables.
5229         (CASE_TABLE_P): New macro.
5230         (Fcase_table_p): Element of a case table is string or char-table.
5231         (make_mirror_trt_table): Removed.
5232         (set_case_table): Setup char-table from strings for backward
5233         compatibility.
5234         * dired.c (Fdirectory_files):
5235         * dired-msw.c: (mswindows_get_files):
5236         * lisp.h: Change prototype of re_pattern_buffer.
5237         * regex.c: (RE_TRANSLATE): New macro.
5238         (TRANSLATE_P): Ditto.
5239         Change translate to type RE_TRANSLATE_TYPE.
5240         * regex.h: Define RE_TRANSLATE_TYPE
5241         * search.c (TRANSLATE): New macro.
5242         (TRANSLATE_ASCII): New macro.
5243         Translate table is changed to Lisp_Object.
5244         (signal_failure): Inhibit return.
5245
5246 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5247
5248         * device-msw.c:
5249         * eldap.c:
5250         * event-Xt.c:
5251         * event-stream.c:
5252         * print.c:
5253         Do UNGCPRO before return.
5254
5255 2000-11-14  Martin Buchholz <martin@xemacs.org>
5256
5257         * XEmacs 21.2.37 is released.
5258
5259 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5260
5261         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5262         Add comments about discarded return value.
5263
5264 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5265
5266         * callint.c:
5267         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5268
5269 2000-10-27  Andy Piper  <andy@xemacs.org>
5270
5271         * gutter.c (Fset_default_gutter_position): default left and right
5272         gutters to visible.
5273         (calculate_gutter_size): calculate resonable heuristic for left
5274         and right gutter sizes.
5275         (specifier_vars_of_gutter): change left and right gutter sizes to
5276         autodetect.
5277         (calculate_gutter_size_from_display_lines): new function.
5278         (output_gutter): check for resizing on left and right gutters.
5279         (clear_gutter): don't special case top and left gutters.
5280         (specifier_vars_of_gutter): use new signature for
5281         set_specifier_caching.
5282
5283         * glyphs-x.c (x_redisplay_widget): spelling fix.
5284         * glyphs.c (specifier_vars_of_glyphs):
5285         * menubar.c (specifier_vars_of_menubar):
5286         * redisplay.c (specifier_vars_of_redisplay):
5287         * toolbar.c (specifier_vars_of_toolbar):
5288         * window.c (specifier_vars_of_window):
5289         * scrollbar.c (specifier_vars_of_scrollbar):
5290         (complex_vars_of_scrollbar): use new signature for
5291         set_specifier_caching.
5292
5293         * specifier.c (set_specifier_caching): include recompute flag.
5294         (recompute_one_cached_specifier_in_window): always recompute if
5295         flag set.
5296         (recompute_one_cached_specifier_in_frame): ditto.
5297
5298         * specifier.h (struct specifier_caching): add recompute flag.
5299
5300 2000-10-24  Andy Piper  <andy@xemacs.org>
5301
5302         * unexcw.c (copy_executable_and_dump_data_section): add new
5303         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5304         5.0 happy.
5305
5306 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5307
5308         * console-x.h (x_device): New member modifier_release_time.
5309         * event-Xt.c (x_handle_sticky_modifiers):
5310         Bound interval modifier keys are sticky.
5311         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5312         * events.h: extern it.
5313
5314 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5315
5316         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5317
5318 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5319
5320         * event-stream.c (execute_command_event): Preserve current_events
5321         and the like when event is misc-user-event.
5322         Inhibit quit during the call to maybe_echo_keys.
5323
5324 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5325
5326         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5327         symlink when buffer is killed.
5328         (inhibit_clash_detection): New variable.
5329
5330 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5331
5332         * console.c (Fset_input_method): Trigger redisplay on tty.
5333
5334 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5335
5336         * process.c (Fprocess_status): Revert to previous behavior:
5337         (process-status "nosuchprocess") ==> nil
5338
5339 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5340
5341         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5342         Work around another GCC 2.95.2 optimizer bug.
5343
5344 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5345
5346         * process.c (Fget_process): Use LIST_LOOP_2.
5347         (kill_buffer_processes): Use LIST_LOOP_2.
5348
5349         * minibuf.c (Fall_completions):
5350         Delete old non-functional code for FSF fourth argument.
5351
5352         * frame.c (frame_matches_frame_spec):
5353         Renamed from `frame_matches_frametype'.  Update all callers.
5354         (device_matches_device_spec):
5355         Renamed from 'device_matches_console_spec'.  Update all callers.
5356
5357         * doc.c (Fsubstitute_command_keys):
5358         Remove buffer overflow crash.  Small code cleanups.
5359
5360         * casetab.c (check_case_table): Simpler code.
5361
5362         * window.c (Freplace_buffer_in_windows):
5363         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5364         (and similar implementation) as Fdelete_windows_on.
5365         Update all callers.
5366
5367         * alloc.c (Fmake_list):
5368         * alloc.c (make_vector):
5369         * alloc.c (Fmake_vector):
5370         * alloc.c (make_bit_vector):
5371         * alloc.c (Fmake_bit_vector):
5372         * alloc.c (Fbit_vector):
5373         * alloc.c (Fmake_string):
5374         * alloc.c (Fpurecopy):
5375         * alloc.c (Fmemory_limit):
5376         * buffer.c:
5377         * buffer.c (Fget_buffer):
5378         * buffer.c (Fkill_buffer):
5379         * buffer.c (complex_vars_of_buffer):
5380         * bytecode.c (Fcompiled_function_stack_depth):
5381         * callint.c (Fprefix_numeric_value):
5382         * event-stream.c:
5383         * event-stream.c (Fread_key_sequence):
5384         * casetab.c:
5385         * casetab.c (Fcase_table_p):
5386         * casetab.c (check_case_table):
5387         * casetab.c (Fset_case_table):
5388         * casetab.c (Fset_standard_case_table):
5389         * chartab.c:
5390         * chartab.c (Fchar_table_type):
5391         * chartab.c (Freset_char_table):
5392         * chartab.c (Fget_char_table):
5393         * chartab.c (Fget_range_char_table):
5394         * chartab.c (Fput_char_table):
5395         * chartab.c (Fmap_char_table):
5396         * chartab.c (Fcategory_table_p):
5397         * chartab.c (Fcheck_category_at):
5398         * chartab.c (Fchar_in_category_p):
5399         * chartab.c (Fcategory_table):
5400         * chartab.c (Fcopy_category_table):
5401         * chartab.c (Fset_category_table):
5402         * chartab.c (Fcategory_designator_p):
5403         * chartab.c (Fcategory_table_value_p):
5404         * cmds.c (Fdelete_char):
5405         * cmds.c (Fdelete_backward_char):
5406         * cmds.c (Fself_insert_command):
5407         * cmds.c (Fself_insert_internal):
5408         * console.c (Fvalid_console_type_p):
5409         * console.c (Fcdfw_console):
5410         * console.c (Fconsole_type):
5411         * console.c (Fconsole_name):
5412         * console.c (Fconsole_device_list):
5413         * console.c (Fconsole_on_window_system_p):
5414         * data.c:
5415         * data.c (Feq):
5416         * data.c (Fold_eq):
5417         * data.c (Fsubr_interactive):
5418         * data.c (Fchar_to_int):
5419         * data.c (Fint_to_char):
5420         * data.c (Fsetcar):
5421         * data.c (Fsetcdr):
5422         * data.c (Fnumber_to_string):
5423         * data.c (Fstring_to_number):
5424         * data.c (Frem):
5425         * database.c (mark_database):
5426         * database.c (finalize_database):
5427         * database.c (Fdatabase_live_p):
5428         * database.c (Fdatabasep):
5429         * device-x.c (Fx_get_resource):
5430         * device.c (Fdfw_device):
5431         * dired.c:
5432         * dired.c (Ffile_name_completion):
5433         * dired.c (Ffile_name_all_completions):
5434         * dired.c (Fuser_name_completion):
5435         * dired.c (Fuser_name_completion_1):
5436         * dired.c (Fuser_name_all_completions):
5437         * doc.c (Fdocumentation):
5438         * doc.c (Fdocumentation_property):
5439         * doc.c (Fsubstitute_command_keys):
5440         * editfns.c:
5441         * editfns.c (Fchar_to_string):
5442         * editfns.c (Fstring_to_char):
5443         * editfns.c (Ftemp_directory):
5444         * editfns.c (Finsert_char):
5445         * editfns.c (Fbuffer_substring_no_properties):
5446         * editfns.c (Fnarrow_to_region):
5447         * editfns.c (Fchar_equal):
5448         * editfns.c (Fchar_Equal):
5449         * editfns.c (Ftranspose_regions):
5450         * emacs.c (Fdump_emacs):
5451         * eval.c (Fthrow):
5452         * eval.c (Fcommand_execute):
5453         * eval.c (Fautoload):
5454         * eval.c (Fbacktrace):
5455         * eval.c (Fbacktrace_frame):
5456         * events.c:
5457         * events.c (Fcopy_event):
5458         * events.c (Fcharacter_to_event):
5459         * events.c (Fevent_button):
5460         * events.c (Fevent_process):
5461         * extents.c:
5462         * extents.c (Fnext_extent_change):
5463         * extents.c (Fextent_property):
5464         * faces.c (Ffacep):
5465         * faces.c (Fmake_face):
5466         * file-coding.c:
5467         * file-coding.c (Fencode_shift_jis_char):
5468         * file-coding.c (Fencode_big5_char):
5469         * fileio.c (Ffile_name_directory):
5470         * fileio.c (Ffile_name_nondirectory):
5471         * fileio.c (Ffile_name_as_directory):
5472         * fileio.c (Fdirectory_file_name):
5473         * fileio.c (Ffile_truename):
5474         * fileio.c (Fsubstitute_in_file_name):
5475         * fileio.c (Ffile_modes):
5476         * fileio.c (Fset_file_modes):
5477         * fileio.c (Fset_default_file_modes):
5478         * fileio.c (Fverify_visited_file_modtime):
5479         * floatfns.c (Facos):
5480         * floatfns.c (Fasin):
5481         * floatfns.c (Fatan):
5482         * floatfns.c (Fcos):
5483         * floatfns.c (Fsin):
5484         * floatfns.c (Ftan):
5485         * floatfns.c (Fbessel_j0):
5486         * floatfns.c (Fbessel_j1):
5487         * floatfns.c (Fbessel_jn):
5488         * floatfns.c (Fbessel_y0):
5489         * floatfns.c (Fbessel_y1):
5490         * floatfns.c (Fbessel_yn):
5491         * floatfns.c (Ferf):
5492         * floatfns.c (Ferfc):
5493         * floatfns.c (Flog_gamma):
5494         * floatfns.c (Fexp):
5495         * floatfns.c (Fexpt):
5496         * floatfns.c (Flog):
5497         * floatfns.c (Flog10):
5498         * floatfns.c (Fsqrt):
5499         * floatfns.c (Fcube_root):
5500         * floatfns.c (Facosh):
5501         * floatfns.c (Fasinh):
5502         * floatfns.c (Fatanh):
5503         * floatfns.c (Fcosh):
5504         * floatfns.c (Fsinh):
5505         * floatfns.c (Ftanh):
5506         * floatfns.c (Fabs):
5507         * floatfns.c (Ffloat):
5508         * floatfns.c (Flogb):
5509         * floatfns.c (Fceiling):
5510         * floatfns.c (Ffloor):
5511         * floatfns.c (Fround):
5512         * floatfns.c (Ftruncate):
5513         * floatfns.c (Ffceiling):
5514         * floatfns.c (Fffloor):
5515         * floatfns.c (Ffround):
5516         * floatfns.c (Fftruncate):
5517         * fns.c (Fstring_equal):
5518         * fns.c (Fstring_lessp):
5519         * fns.c (concat2):
5520         * fns.c (concat3):
5521         * fns.c (vconcat2):
5522         * fns.c (vconcat3):
5523         * fns.c (Fsubstring):
5524         * fns.c (Fassoc):
5525         * fns.c (Fold_assoc):
5526         * fns.c (assoc_no_quit):
5527         * fns.c (Fassq):
5528         * fns.c (Fold_assq):
5529         * fns.c (assq_no_quit):
5530         * fns.c (Frassoc):
5531         * fns.c (Fold_rassoc):
5532         * fns.c (Frassq):
5533         * fns.c (Fold_rassq):
5534         * fns.c (rassq_no_quit):
5535         * fns.c (Fremassoc):
5536         * fns.c (remassoc_no_quit):
5537         * fns.c (Fremassq):
5538         * fns.c (remassq_no_quit):
5539         * fns.c (Fremrassoc):
5540         * fns.c (Fremrassq):
5541         * fns.c (remrassq_no_quit):
5542         * fns.c (Fsort):
5543         * fns.c (Fplist_get):
5544         * fns.c (Fplist_put):
5545         * fns.c (Fplist_remprop):
5546         * fns.c (Fplist_member):
5547         * fns.c (Flax_plist_get):
5548         * fns.c (Flax_plist_put):
5549         * fns.c (Flax_plist_remprop):
5550         * fns.c (Flax_plist_member):
5551         * fns.c (Fequal):
5552         * fns.c (Fold_equal):
5553         * fns.c (Frequire):
5554         * fns.c (Fbase64_encode_region):
5555         * fns.c (Fbase64_encode_string):
5556         * fns.c (Fbase64_decode_region):
5557         * frame.c:
5558         * frame.c (frame_matches_frame_spec):
5559         * frame.c (device_matches_device_spec):
5560         * frame.c (next_frame):
5561         * frame.c (previous_frame):
5562         * frame.c (Fnext_frame):
5563         * frame.c (Fprevious_frame):
5564         * frame.c (Fframe_property):
5565         * frame.c (Fset_frame_height):
5566         * frame.c (Fset_frame_size):
5567         * frame.h:
5568         * glyphs.c:
5569         * glyphs.c (if):
5570         * glyphs.c (decode_error_behavior_flag):
5571         * glyphs.c (Fmake_image_instance):
5572         * indent.c (Findent_to):
5573         * intl.c (Fignore_defer_gettext):
5574         * keymap.c (Fkeymapp):
5575         * keymap.c (Flookup_key):
5576         * lread.c:
5577         * lread.c (Fload_internal):
5578         * lread.c (Feval_buffer):
5579         * lread.c (Feval_region):
5580         * macros.c (Fexecute_kbd_macro):
5581         * marker.c (set_marker_internal):
5582         * marker.c (Fset_marker):
5583         * marker.c (set_marker_restricted):
5584         * marker.c (Fcopy_marker):
5585         * marker.c (noseeum_copy_marker):
5586         * menubar.c:
5587         * menubar.c (Fpopup_menu):
5588         * minibuf.c:
5589         * mule-charset.c (Fcharset_name):
5590         * mule-charset.c (Fchar_charset):
5591         * mule-charset.c (Fchar_octet):
5592         * mule-charset.c (Fsplit_char):
5593         * mule-wnnfns.c (Fwnn_open):
5594         * mule-wnnfns.c (Fwnn_dict_comment):
5595         * mule-wnnfns.c (Fwnn_quit_henkan):
5596         * mule-wnnfns.c (Fwnn_word_toroku):
5597         * mule-wnnfns.c (Fwnn_word_sakujo):
5598         * mule-wnnfns.c (Fwnn_word_use):
5599         * mule-wnnfns.c (Fwnn_hindo_set):
5600         * objects.c:
5601         * objects.c (Fmake_color_instance):
5602         * objects.c (Fmake_font_instance):
5603         * print.c (Fwrite_char):
5604         * process.c:
5605         * process.c (mark_process):
5606         * process.c (print_process):
5607         * process.c (get_process_from_usid):
5608         * process.c (Fprocessp):
5609         * process.c (Fprocess_live_p):
5610         * process.c (Fget_process):
5611         * process.c (Fget_buffer_process):
5612         * process.c (get_process):
5613         * process.c (Fprocess_id):
5614         * process.c (Fprocess_name):
5615         * process.c (Fprocess_command):
5616         * process.c (init_process_io_handles):
5617         * process.c (start_process_unwind):
5618         * process.c (Fstart_process_internal):
5619         * process.c (Fopen_multicast_group_internal):
5620         * process.c (Fset_process_window_size):
5621         * process.c (read_process_output):
5622         * process.c (send_process):
5623         * process.c (Fprocess_tty_name):
5624         * process.c (Fset_process_buffer):
5625         * process.c (Fprocess_buffer):
5626         * process.c (Fprocess_mark):
5627         * process.c (set_process_filter):
5628         * process.c (Fset_process_filter):
5629         * process.c (Fprocess_filter):
5630         * process.c (Fprocess_send_region):
5631         * process.c (Fprocess_send_string):
5632         * process.c (exec_sentinel):
5633         * process.c (Fset_process_sentinel):
5634         * process.c (Fprocess_sentinel):
5635         * process.c (status_notify):
5636         * process.c (Fprocess_status):
5637         * process.c (Fprocess_exit_status):
5638         * process.c (process_send_signal):
5639         * process.c (Fprocess_send_eof):
5640         * process.c (deactivate_process):
5641         * process.c (remove_process):
5642         * process.c (Fdelete_process):
5643         * process.c (kill_buffer_processes):
5644         * process.c (Fprocess_kill_without_query):
5645         * process.c (Fprocess_kill_without_query_p):
5646         * rangetab.c:
5647         * rangetab.c (Fget_range_table):
5648         * rangetab.c (Fput_range_table):
5649         * rangetab.c (Fremove_range_table):
5650         * rangetab.c (Fclear_range_table):
5651         * search.c:
5652         * search.c (Fskip_chars_forward):
5653         * search.c (Fskip_chars_backward):
5654         * search.c (Fskip_syntax_forward):
5655         * search.c (Fskip_syntax_backward):
5656         * search.c (search_command):
5657         * search.c (Freplace_match):
5658         * search.c (Fregexp_quote):
5659         * select.c (Fown_selection_internal):
5660         * select.c (Fselection_owner_p):
5661         * select.c (Fselection_exists_p):
5662         * select.c (Fget_selection_internal):
5663         * specifier.c:
5664         * symbols.c:
5665         * symbols.c (Fintern):
5666         * symbols.c (Fintern_soft):
5667         * symbols.c (Funintern):
5668         * symbols.c (Fapropos_internal):
5669         * symbols.c (Fset_default):
5670         * syntax.c:
5671         * syntax.c (Fsyntax_table_p):
5672         * syntax.c (Fcopy_syntax_table):
5673         * syntax.c (Fset_syntax_table):
5674         * syntax.c (Fchar_syntax):
5675         * syntax.c (syntax_match):
5676         * syntax.c (Fmatching_paren):
5677         * syntax.c (Fforward_word):
5678         * syntax.c (scan_lists):
5679         * syntax.c (Fscan_lists):
5680         * syntax.c (Fscan_sexps):
5681         * syntax.c (Fparse_partial_sexp):
5682         * toolbar.c (Fcheck_toolbar_button_syntax):
5683         * tooltalk.doc:
5684         * window.c:
5685         * window.c (Fwindowp):
5686         * window.c (Fwindow_live_p):
5687         * window.c (Fwindow_point):
5688         * window.c (Fdelete_window):
5689         * window.c (Fnext_window):
5690         * window.c (Fprevious_window):
5691         * window.c (Fother_window):
5692         * window.c (window_loop):
5693         * window.c (Fget_lru_window):
5694         * window.c (Fsplit_window):
5695         * window.c (Fenlarge_window):
5696         * window.c (Fenlarge_window_pixels):
5697         * window.c (Fshrink_window):
5698         * window.c (Fshrink_window_pixels):
5699         * window.c (change_window_height):
5700         * window.c (Fwindow_configuration_p):
5701         * window.c (Fcurrent_window_configuration):
5702         * window.h:
5703         * casefiddle.c (casify_object):
5704         * casefiddle.c (Fupcase):
5705         * casefiddle.c (Fdowncase):
5706         * casefiddle.c (Fcapitalize):
5707         * casefiddle.c (Fupcase_initials):
5708         * casefiddle.c (casify_region_internal):
5709         * casefiddle.c (casify_region):
5710         * casefiddle.c (Fupcase_region):
5711         * casefiddle.c (Fdowncase_region):
5712         * casefiddle.c (Fcapitalize_region):
5713         * casefiddle.c (Fupcase_initials_region):
5714         * casefiddle.c (Fupcase_word):
5715         * casefiddle.c (Fdowncase_word):
5716         * casefiddle.c (Fcapitalize_word):
5717         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5718         Replace 0 with '\0' when working with bytes.
5719         Replace initial "(" with "\(" in docstrings.
5720
5721 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5722
5723         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5724
5725         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5726
5727 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5728
5729         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5730
5731 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5732
5733         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5734         correctly.
5735
5736 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5737
5738         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5739         (inhibit_auto_save_session): New variable.
5740         (vars_of_fileio): Declare and initialize them.
5741         * fileio.c (Fdo_auto_save): Don't create session file if
5742         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5743
5744 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5745
5746         * sgiplay.c (play_internal): C++ compilability.
5747         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5748         * callproc.c (Fold_call_process_internal):
5749         Remove unused vars `env', `first'.
5750         * scrollbar.c (update_scrollbar_instance):
5751         #### unused var `current_window'.
5752         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5753         etc. within #ifdef NOT_YET.
5754         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5755         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5756         * specifier.c (specifier_instance):
5757         #### unused var `tag'.
5758         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5759
5760 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5761
5762         * fns.c (Fbutlast):
5763         * fns.c (list_sort):
5764         * fns.c (Ffillarray):
5765         * fns.c (bytecode_nconc2):
5766         * fns.c (Fnconc):
5767         * fns.c (mapcar1):
5768         * fns.c (Fmapconcat):
5769         Be pedantically 64-bit correct.  For the time when someone will
5770         want to have a list with length > 2**32.
5771
5772         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5773         Work around MIPSpro compiler bug.
5774
5775         * process-unix.c (unix_kill_child_process): Add snarky comment.
5776         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5777
5778         * config.h.in: Oops, _getpt ==> _getpty
5779
5780 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5781
5782         * config.h.in:
5783         * regex.c:
5784         Use void*, not char*, as return type of alloca().
5785
5786         * alloc.c (free_marker): Side effect inside assert expression!
5787
5788 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5789
5790         * mule-charset.c (Fset_charset_ccl_program): To check
5791         if the given ccl program is valid, use setup_ccl_program()
5792         instead of CHECK_VECTOR().
5793         (Fmake_charset): Likewise.
5794
5795 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5796
5797         * faces.c (get_extent_fragment_face_cache_index):
5798         Fix cachel.merged_faces memory leak.
5799
5800 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5801
5802         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5803         Reset MSB of octets obtained by DECODE_SJIS
5804         because of the incompatibility with Emacs.
5805         (ccl_driver)<CCL_ENCODE_SJIS>:
5806         Set MSB of octets before passing them to
5807         ENCODE_SJIS because of the incompatibility
5808         with Emacs.
5809
5810 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5811
5812         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5813         (DECLARE_LRECORD): Undo the last change.
5814         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5815
5816 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5817
5818         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5819         the implementation to lrecord_implementations_table.
5820
5821 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5822
5823         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5824         initial value of `lrecord_type_##c_name' and
5825         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5826         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5827         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5828         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5829         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5830
5831 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5832
5833         * miscplay.c (sndcnv8S_2mono):
5834         (sndcnv2monounsigned):
5835         (sndcnvULaw_2linear):
5836         (sndcnv16swap):
5837         Remove implementation-defined behavior.
5838
5839 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5840
5841         * input-method-xlib.c: Warning suppression.
5842
5843 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5844
5845         * mule-ccl.c: Sync up with Emacs 21.0.90.
5846         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5847         Do nothing.
5848         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5849         Likewise.
5850         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5851         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5852         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5853         leading char belongs to official 2-dimensional charset.
5854         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5855         write the given character as is.  Otherwise,
5856         if it is a multibyte char, convert it by
5857         non_ascii_set_charptr_emchar, then write it.
5858         (CCL_WRITE_STRING): Likewise.
5859         (ccl_get_compiled_code): New function.
5860         (setup_ccl_program): When ccl_prog is invalid,
5861         return -1.
5862         (Fregister_code_conversion_map): New function.
5863         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5864
5865         * mule-ccl.h: Sync up with Emacs 21.0.90.
5866         (Fregister_ccl_program): export it.
5867
5868         * redisplay-msw.c (separate_textual_runs):
5869         If ccl program is not valid, don't do ccl conversion.
5870
5871         * redisplay-x.c (separate_textual_runs): Ditto.
5872
5873         * file-coding.c (Fmake_coding_system):
5874         When type is ccl and value is vector, register it
5875         with a proper symbol.  And checks whether the
5876         given ccl program is valid.
5877         (mule_decode): When calling ccl_driver, if src indicates
5878         NULL pointer, set an empty string instead.
5879         (mule_encode): Likewise.
5880
5881 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5882
5883         The following large batch of changes gets us back to a state of
5884         C++ compilability.  Extbyte is now a char, which means that
5885         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5886
5887         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5888
5889         * sound.c (Fplay_sound): Type correctness.
5890
5891         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5892         (x_get_window_property): Type correctness.
5893         (receive_incremental_selection): unsigned char ==> Extbyte
5894         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5895         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5896         (Fx_store_cutbuffer_internal): Type correctness.
5897
5898         * process-unix.c (try_to_initialize_subtty): Type correctness.
5899
5900         * objects-x.c (x_print_color_instance): Type correctness.
5901         (x_print_font_instance): Type correctness.
5902         (x_list_fonts): SExtbyte ==> Extbyte.
5903         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5904         (x_find_charset_font): SExtbyte ==> Extbyte.
5905         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5906         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5907         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5908         Use bufbyte_strcmp.
5909
5910         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5911         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5912         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5913         (BYTE_C0_P): Use bit ops for char-signedness safety.
5914         (BYTE_C1_P): Use bit ops for char-signedness safety.
5915         (CHARSET_BY_LEADING_BYTE):
5916         (CHARSET_BY_ATTRIBUTES):
5917         Always use inline function.
5918         Use type_checking_assert.
5919         Hide chlook.
5920
5921         * mule-charset.c (non_ascii_charptr_copy_char):
5922         Modify to work with both ASCII and non-ASCII characters.
5923         Improve docs and variable names.
5924         Replace over-clever fall-through switch with a simple loop.
5925         (Lstream_get_emchar_1):
5926         Replace over-clever fall-through switch with a simple loop.
5927
5928         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5929         Warning suppression.
5930
5931         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5932         the return value of Lstream_getc, which could be EOF as well.
5933
5934         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5935
5936         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5937         APIs can be used on Extbytes without casts.  Risky!
5938         (SExtbyte): Remove.
5939         (UExtbyte): Remove.
5940
5941         * input-method-xlib.c (XIM_init_device):
5942         Use Xlib.h instead of IntrinsicP.h.
5943         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5944         which will break in X11R7.
5945         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5946         to call XRegisterIMInstantiateCallback with correct types.
5947
5948         * gui-x.c (button_item_to_widget_value): Type correctness.
5949
5950         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5951
5952         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5953         (xbm_instantiate_1): Type correctness.
5954         (BUILD_GLYPH_INST):  Type correctness.
5955
5956         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5957
5958         * file-coding.c:
5959         (decode_coding_sjis):
5960         (decode_coding_big5):
5961         (decode_coding_ucs4):
5962         (decode_coding_utf8):
5963         (decode_coding_iso2022):
5964         (decode_coding_no_conversion):
5965         Make all decoding functions take an Extbyte * arg.
5966         (encode_coding_sjis):
5967         (encode_coding_big5):
5968         (encode_coding_ucs4):
5969         (encode_coding_utf8):
5970         (encode_coding_iso2022):
5971         (encode_coding_no_conversion):
5972         Make all encoding functions take a Bufbyte * arg.
5973         Use size_t instead of unsigned int for memory sizes.
5974         Only cast to unsigned char whenever dereferencing Extbyte *.
5975
5976         * doc.c (unparesseuxify_doc_string): Type correctness.
5977
5978         * console-x.c (split_up_display_spec):
5979         Rewrite without using details of internal string representation.
5980         (x_semi_canonicalize_device_connection): Type correctness.
5981
5982         * config.h.in:
5983         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5984         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5985         (HAVE_XFREE386): Removed.
5986
5987         * buffer.h (DEC_CHARPTR): `const' correctness.
5988         (bufbyte_strcmp): New.
5989         (bufbyte_memcmp): New.
5990
5991         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5992
5993         * buffer.h (XCHAR_OR_CHAR_INT):
5994         Always use inline function.
5995         Remove redundant type checking assert() - XINT will abort quite nicely.
5996
5997 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5998
5999         * search.c (Freplace_match): Set newtext to an empty string.
6000
6001 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6002
6003         * s/decosf1-3.h: Remove #include of stropts.h
6004         * s/ptx.h: Remove #include of stropts.h
6005         * s/usg5-4.h: Remove #include of stropts.h
6006         * sysproc.h:
6007         * config.h.in:
6008         Use stropts.h, not sys/stropts.h.
6009         Use strtio.h, not sys/strtio.h.
6010
6011 2000-10-04  Martin Buchholz <martin@xemacs.org>
6012
6013         * XEmacs 21.2.36 is released.
6014
6015 2000-09-21  Andy Piper  <andy@xemacs.org>
6016
6017         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6018         changes still involve copying the widget tree.
6019         (update_widget_face): make sure a change is register in the widget
6020         tree. Call update_tab_widget_face appropriately.
6021         (update_tab_widget_face): ditto.
6022         (x_tab_control_redisplay): make sure non-structural changes still
6023         involve copying the widget tree.
6024
6025 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6026
6027         * lread.c (locate_file): Check the path element is non-nil.
6028
6029 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6030
6031         * lisp.h: Warning suppression for SCO compilers.
6032
6033         * redisplay-tty.c (reset_tty_modes): Fix crash.
6034         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6035
6036 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6037
6038         Big signal/process handling overhaul.  Bugs fixed:
6039         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6040         M-x comint-kill-subjob should work for both values nil and t of
6041         process-connection-type. It was broken on most platforms.
6042         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6043         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6044         * process-unix.c: Signal/Process handling overhaul.
6045         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6046         (allocate_pty): Use all available modern methods of allocating
6047         ptys, falling back to old style BSD allocation as a last resort.
6048         Use allegedly more secure Unix98 pty allocation by default.
6049         (allocate_pty_the_old_fashioned_way): New. the last resort.
6050         (unix_create_process): Push ptem, ldterm, ttcompat where
6051         available.  Autoconfiscate.
6052         (try_to_initialize_subtty): New.
6053         (unix_kill_child_process): Proper signal handling for ptys on most
6054         platforms, using special knowledge of AIX, BSD, etc...
6055         (unix_create_process): Always disconnect_controlling_terminal() for
6056         subprocesses, whether using ptys or not.
6057         * process.h: Remove old getpt-dependent PTY code.
6058         * process.c (Fprocess_send_signal): New, obvious generic function.
6059         (decode_signal): New.
6060         (Finterrupt_process):
6061         (Fkill_process):
6062         (Fquit_process):
6063         (Fstop_process):
6064         (Fcontinue_process):
6065         (Fsignal_process): Use decode_signal.
6066         (process_send_signal):
6067         Many docstring corrections.
6068         Allow any signal to be sent to a process object.
6069         * config.h.in: Add symbols for big signal/process overhaul.
6070         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6071         * sysproc.h: Include process-related headers, where available:
6072         sys/stropts.h sys/strtio.h pty.h libutil.h
6073         * s/irix4-0.h:
6074         * s/irix5-0.h:
6075         * s/cygwin32.h:
6076         * s/gnu.h:
6077         * s/linux.h:
6078         * s/hpux.h:
6079         * s/aix3-1.h:
6080         Remove old S&M pty stuff.
6081         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6082         * systty.h: Simplify cpp hackery, improve comments.
6083         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6084
6085         * editfns.c (Fformat_time_string):
6086         Be a little more paranoid with the return value of ctime.
6087
6088         * fileio.c (check_executable):
6089         (check_writable):
6090         Use symbolic constants X_OK, W_OK.
6091
6092         * console-x.c (split_up_display_spec): Fix a warning.
6093
6094 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6095
6096         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6097         * ntproc.c (sys_spawnve): make_string ==> build_string
6098         Small clarity improvements.
6099
6100 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6101
6102         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6103
6104         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6105
6106         * config.h.in (HAVE_STRCASECMP): Remove.
6107
6108 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6109
6110         * redisplay-output.c (redisplay_output_pixmap):
6111         Cleaner and possibly more 64-bit correct code.
6112
6113 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6114
6115         * dumper.c (pdump_load_finish): move restoration of
6116         `noninteractive1' to emacs.c (main_1).
6117         * emacs.c (main_1): protect LISP-visible command-line flags
6118         from pdump_load().
6119
6120 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6121
6122         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6123         DUMP_TARGET instead of literal program names.
6124
6125 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6126
6127         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6128
6129 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6130
6131         * *: Spelling mega-patch
6132
6133 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6134
6135         * fns.c (bad_bad_turtle):
6136         Delete "Eek!" comment, since we fixed the bug to which it refers.
6137
6138 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6139
6140         * alloca.c: Replace REGISTER with register.
6141
6142 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6143
6144         * file-coding.c (ucs_to_char): Use countof.
6145
6146 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6147
6148         * file-coding.c: (ucs_to_char):
6149         (complex_vars_of_file_coding):
6150         Use countof instead of sizeof.
6151         Use CHECK_NATNUM instead of CHECK_INT.
6152
6153         * sysdep.c (strcasecmp): Remove.
6154         * device-x.c (ascii_strcasecmp): New.
6155         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6156         Avoid using non-standard non-portable strcasecmp.
6157
6158 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6159
6160         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6161         * font-lock.c: remove reference to emacsfns.h.
6162         * search.c: small doc improvement.
6163         * event-Xt.c: correct file names in comments.
6164         * console-x.h Correct file names in comments.
6165         * frame.c: Correct file names in comments.
6166         * event-stream.c: remove Energize from comments.
6167
6168 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6169
6170         * symeval.h (DEFERROR_STANDARD):
6171         (DEFERROR):
6172         (DEFSYMBOL):
6173         (DEFSYMBOL_NO_DUMP):
6174         (DEFSYMBOL_MULTIWORD_PREDICATE):
6175         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6176         (DEFKEYWORD):
6177         The construct &##name is not sensible C.
6178         Fixes compilation errors with Unixware native compiler.
6179
6180 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6181
6182         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6183         (next_frame_internal): Removed.  We now just have next_frame.
6184         (next_frame):
6185         Write a simpler and cleaner one-pass algorithm.
6186         Remove called_from_delete_device arg and #ifdefed-out code.
6187         (previous_frame):
6188         Renamed from prev_frame.  Update callers.
6189         Cleaned up to have an analogous implementation to next_frame.
6190         (other_visible_frames_internal): Remove the
6191         called_from_delete_device bogus arg, and hence, remove this
6192         function.  Just use other_visible_frames().
6193
6194         * window.c (Fnext_window):
6195         Prettify docstring.
6196         Since next_frame() is guaranteed to return a frame, remove check
6197         for nil inserted in previous patch.
6198         (Fprevious_window):
6199         Prettify docstring.
6200         Make code look more like Fnext_window.
6201         (window_loop):
6202         Respect the `console' arg when iterating through windows.
6203         Fixes bug: (get-buffer-window buffer t device) not respecting
6204         the `device' arg.
6205         This function needs more work, as others have pointed out.
6206
6207         * frame.h: Rename prev_frame to previous_frame.
6208         device_matches_console_spec no longer takes a `frame' arg.
6209
6210         * s/gnu.h:
6211         * s/linux.h:
6212         * s/hpux.h:
6213         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6214         From "Golubev I. N." <gin@mo.msk.ru>.
6215
6216         * make-src-depend: Fix typo.
6217
6218 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6219
6220         * window.c (Fnext_window):
6221         next_frame() might return nil, not a frame.
6222         Fixes this crash:
6223         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6224
6225         * frame.c (next_frame_internal):
6226         We've passed a frame if we've passed its device.
6227         Fixes this crash:
6228         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6229 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6230
6231 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6232
6233         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6234         Allow option to suppress accelerators in menu/dialog items.
6235         (populate_or_checksum_helper): Pass dialog title through above.
6236
6237 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6238
6239         * event-msw.c (mswindows_key_to_emacs_keysym):
6240         Add "pause" key, fix "menu" key.
6241
6242 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6243
6244         * eval.c (reinit_vars_of_eval):
6245         Increase max_lisp_eval_depth to 1000,
6246         required for thai-xtis.el to byte-compile under some circumstances.
6247
6248 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6249
6250         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6251         From Kenichi Handa.
6252
6253 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6254
6255         * make-src-depend: Make the generated Makefiles smaller.
6256
6257         * s/hpux.h (SETUP_SLAVE_PTY):
6258         Provide a %d in the format string for the errno argument.
6259
6260         * editfns.c (Ftemp_directory):
6261         Warning fix.
6262         Avoid buffer overrun on very long file name.
6263
6264         * input-method-xlib.c (XIM_init_device):
6265         6th parameter of XRegisterIMInstantiateCallback has different
6266         pointer types on different OSes, so simply cast to (void *).
6267
6268         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6269
6270         * sysdll.c (dll_open):
6271         shl_load will hang hard if passed a NULL filename.
6272         Simply return NULL for compatibility with dlopen.
6273         * sysdll.c: Conform to XEmacs coding standards.
6274
6275         * sysdep.c (get_pty_max_bytes):
6276         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6277
6278 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6279
6280         * tooltalk.c: Add #include <syssignal.h>
6281
6282 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6283
6284         * s/hpux.h: Don't use undefined function sigunblock().
6285
6286 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6287
6288         * config.h.in: Add HAVE_BALLOON_HELP.
6289         * emacs.c: Use HAVE_BALLOON_HELP.
6290         * Makefile.in.in (x_objs):
6291         Make Balloon Help conditional on finding shape.h.
6292
6293 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6294
6295         * syntax.c (regex_emacs_buffer_p): New variable.
6296         * syntax.h (regex_emacs_buffer_p): extern.
6297         * search.c (looking_at_1):
6298         (string_match_1):
6299         (fast_string_match):
6300         (search_buffer): Set regex_emacs_buffer_p.
6301         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6302         when before_dot, at_dot, after_dot.
6303
6304 2000-08-23  Andy Piper  <andy@xemacs.org>
6305
6306         * gui-x.c (popup_selection_callback): Only set action_occurred
6307         when we really have an image instance.
6308         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6309
6310 2000-08-23  Andy Piper  <andy@xemacs.org>
6311
6312         * gui-msw.c (mswindows_handle_gui_wm_command): set
6313         action_occurred.
6314         * gui-x.c (popup_selection_callback): ditto.
6315
6316         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6317         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6318         (struct Lisp_Image_Instance): add action_occurred flag.
6319
6320         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6321         (image_instance_changed): ditto.
6322         (reset_frame_subwindow_instance_cache): only unmap windows - do
6323         not remove them from the cache also.
6324
6325         * glyphs-widget.c (tab_control_update): better debug.
6326         (progress_gauge_update): ditto.
6327         (layout_update): ditto.
6328         (layout_instantiate): ditto.
6329         (tab_control_order_only_changed): cope with null pending items.
6330
6331         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6332         debug. Force selection of an item when an action occurred. Cope
6333         with null pending_items.
6334         (mswindows_progress_gauge_redisplay): better debug.
6335         * glyphs-x.c (x_tab_control_redisplay): ditto.
6336
6337         * redisplay.c (redisplay_frame): reset the frame cache if the
6338         frame is garbaged.
6339
6340         * window.c (Fset_window_configuration): potentially re-enable
6341         frame cache reset.
6342         (window_unmap_subwindows): need to finalize instances here since
6343         it is only used in mark_window_as_deleted.
6344
6345 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6346
6347         * nas.c (SndOpenDataForReading):
6348         nas.c (WaveOpenDataForReading):
6349         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6350         Somehow escaped from the 2000-08-14 patch.
6351
6352 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6353
6354         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6355         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6356
6357 2000-08-21  Andy Piper  <andy@xemacs.org>
6358
6359         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6360         window if it is not already displayed.
6361
6362         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6363         it is not already displayed.
6364
6365         * window.c (Fset_window_configuration): don't reset the frame
6366         cache.
6367
6368         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6369         instances from the frame cache if we are actually finalizing them.
6370         (reset_frame_subwindow_instance_cache): reset frame cache only
6371         after unmapping everything.
6372         (map_subwindow): set displayed flag after mapping.
6373
6374 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6375
6376         * data.c (indirect_function):
6377         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6378
6379         * eval.c (function_argcount):
6380         Use original function when signaling errors.
6381
6382 2000-08-18  Andy Piper  <andy@xemacs.org>
6383
6384         * frame.c (delete_frame_internal): use new
6385         free_frame_subwindow_instances name.
6386
6387         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6388         (add_tab_item): make return type correct.
6389         (mswindows_tab_control_instantiate): assert index of tab.
6390         (mswindows_tab_control_redisplay): Re-code to use
6391         gui_item_equal_sans_selected and gui_item_list_find_selected.
6392
6393         * glyphs-widget.c (tab_control_update): Correct comment.
6394
6395         * window.c (window_unmap_subwindows): use new
6396         unmap_subwindow_instance_cache_mapper.
6397         (window_unmap_subwindows_cache_mapper): deleted.
6398         (Fset_window_configuration): comparisons should now be with
6399         EQ. Preserve the subwindow instance cache across configuration
6400         changes.
6401         (allocate_window): ditto.
6402         (make_dummy_parent): ditto.
6403
6404         * glyphs.c (free_frame_subwindow_instances): rename from
6405         free_frame_subwindow_instance_cache. finalize all instances rather
6406         than just those in the display cache.
6407         (finalize_all_subwindow_instances): walk windows unmapping and
6408         finalizing subwindows.
6409         (unmap_subwindow_instance_cache_mapper): moved from
6410         window.c. Allow finalization as well as unmapping.
6411
6412         * gui.c (gui_item_list_find_selected): new function.
6413
6414         * gui.h (gui_item_list_find_selected): declare.
6415
6416         * glyphs-x.c (x_tab_control_redisplay): pick tab
6417         explicitly. Re-code to use gui_item_equal_sans_selected and
6418         gui_item_list_find_selected.
6419
6420         * glyphs-x.h: add lwlib-utils.h
6421
6422         * buffer.c (Frecord_buffer): undo previous change.
6423
6424 2000-08-09  Vin Shelton  <acs@xemacs.org>
6425
6426         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6427         possible.  Create temporary files more securely.  The patch was
6428         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6429         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6430         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6431         for details.
6432
6433 2000-08-07  Ben Wing  <ben@xemacs.org>
6434
6435         * getloadavg.c: remove duplicate (and windows-breaking)
6436         includes of fcntl.h and sys/file.h.
6437
6438         * nt.c: remove duplicate getloadavg() definition.
6439
6440         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6441         encodings.
6442
6443 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6444
6445         * eval.c (function_argcount): If function needs to be autoloaded
6446         actually use the loaded definition.
6447         GCPRO function.
6448
6449 2000-08-05  Ben Wing  <ben@xemacs.org>
6450
6451         * getloadavg.c: add prototype for getloadavg().  remove
6452         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6453         of the code).  remove duplicate header includes.
6454
6455         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6456
6457         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6458         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6459         useful load average.
6460
6461         * alloc.c (reinit_alloc_once_early): removed references to
6462         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6463         the lisp vars are the only things referencing the malloc_sbrk_*
6464         vars, and they were already if 0'd out.  these vars only exist
6465         in the older malloc.c, which is basically unused, and they're
6466         only for informational purposes.
6467
6468         * m\*.h: removed useless VIRT_ADDR_VARIES.
6469
6470         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6471
6472 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6473
6474         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6475         color if the image is a mono pixmap.
6476
6477 2000-07-30  Ben Wing  <ben@xemacs.org>
6478
6479         * Makefile.in.in (release):
6480         Remove stray @.
6481
6482         * buffer.c (directory_is_current_directory):
6483         * dired-msw.c (mswindows_get_files):
6484         * dired.c:
6485         * dired.c (Fdirectory_files):
6486         * dired.c (file_name_completion_stat):
6487         * dired.c (Ffile_attributes):
6488         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6489         preprocessor tricks, to avoid problems on some machines
6490         (e.g. SCO).
6491
6492         * callproc.c (egetenv): GC docs.
6493
6494         * console-msw.h:
6495         * console-msw.h (struct mswindows_dialog_id):
6496         * lrecord.h (lrecord_type):
6497         New object for use with MSW dialogs.
6498
6499         * console.h (struct console_methods):
6500         New enable/disable frame methods, for proper modal dialogs.
6501
6502         * device-msw.c (msprinter_default_printer): Fix to follow
6503         proper Mule conventions.
6504
6505         * device-msw.c:
6506         * device-msw.c (signal_open_printer_error):
6507         * device-msw.c (msprinter_init_device):
6508         * device-msw.c (ensure_not_printing):
6509         * device-msw.c (plist_get_margin):
6510         * device-msw.c (Fmsprinter_select_settings):
6511         * device-msw.c (finalize_devmode):
6512         * device-msw.c (Fmsprinter_settings_despecialize):
6513         * device-msw.c (signal_enum_priner_error):
6514         * extents.c (decode_extent):
6515         * extents.c (decode_map_extents_flags):
6516         * extents.c (decode_extent_at_flag):
6517         * extents.c (Fextent_at):
6518         * extents.c (Fextents_at):
6519         * extents.c (symbol_to_glyph_layout):
6520         [[[[2]]]] Use structured errors.
6521
6522         * dialog-msw.c:
6523         * dialog-msw.c (mswindows_is_dialog_msg):
6524         * dialog-msw.c (mark_mswindows_dialog_id):
6525         * dialog-msw.c (dialog_proc):
6526         * dialog-msw.c (handle_question_dialog_box):
6527         * dialog-msw.c (syms_of_dialog_mswindows):
6528         Define new object to clean up marking; use it as a dialog identifier.
6529         Call new delete-dialog-box-hook.
6530
6531         * dialog-x.c (dbox_selection_callback):
6532         * dialog-x.c (dbox_descriptor_to_widget_value):
6533         * dialog-x.c (x_make_dialog_box_internal):
6534         Call new delete-dialog-box-hook.
6535         Return an id.
6536
6537         * dialog.c:
6538         * dialog.c (syms_of_dialog):
6539         * dialog.c (vars_of_dialog):
6540         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6541
6542         * eval.c:
6543         * eval.c (signal_call_debugger):
6544         when noninteractive, output stack traces on the console instead
6545         of in a (never-seen) buffer.
6546
6547         * eval.c (signal_type_error):
6548         * eval.c (invalid_argument_2):
6549         * lisp.h:
6550         new funs for use w/structured errors.
6551
6552         * event-Xt.c:
6553         * event-Xt.c (x_to_emacs_keysym):
6554         * event-Xt.c (describe_event):
6555         * event-Xt.c (emacs_Xt_event_handler):
6556         * event-Xt.c (vars_of_event_Xt):
6557         * event-msw.c:
6558         * event-msw.c (mswindows_wnd_proc):
6559         * event-msw.c (vars_of_event_mswindows):
6560         rename {x,mswindows}-debug-events to debug-{}-events for
6561         consistency with other debug-foo variables.
6562
6563         * event-stream.c:
6564         document next-event more clearly.
6565
6566         * fileio.c (Ffile_name_directory):
6567         * fileio.c (Ffile_name_nondirectory):
6568         * fileio.c (Funhandled_file_name_directory):
6569         * fileio.c (file_name_as_directory):
6570         * fileio.c (Ffile_name_as_directory):
6571         * fileio.c (directory_file_name):
6572         * fileio.c (Fdirectory_file_name):
6573         * fileio.c (Fmake_temp_name):
6574         * fileio.c (Ffile_truename):
6575         * fileio.c (Fsubstitute_in_file_name):
6576         * fileio.c (expand_and_dir_to_file):
6577         * fileio.c (barf_or_query_if_file_exists):
6578         * fileio.c (check_executable):
6579         * fileio.c (Ffile_exists_p):
6580         * fileio.c (Ffile_writable_p):
6581         * fileio.c (Ffile_directory_p):
6582         * fileio.c (Ffile_regular_p):
6583         * fileio.c (Ffile_modes):
6584         * fileio.c (Ffile_newer_than_file_p):
6585         * fileio.c (Fverify_visited_file_modtime):
6586         * fileio.c (Fset_visited_file_modtime):
6587         * fileio.c (auto_save_1):
6588         (1). (2).
6589         fix up gcpro's.
6590
6591         * frame-msw.c:
6592         * frame-msw.c (mswindows_init_frame_1):
6593         * frame-msw.c (mswindows_enable_frame):
6594         * frame-msw.c (error_frame_unsizable):
6595         * frame-msw.c (msprinter_init_frame_1):
6596         * frame-msw.c (msprinter_init_frame_3):
6597         * frame-msw.c (console_type_create_frame_mswindows):
6598         (2).
6599         implement new enable/disable frame methods.
6600
6601         * frame-x.c:
6602         * frame-x.c (x_enable_frame):
6603         * frame-x.c (console_type_create_frame_x):
6604         implement new enable/disable frame methods.
6605
6606         * frame.c:
6607         * frame.c (Fdisable_frame):
6608         * frame.c (syms_of_frame):
6609         * frame.h (struct frame):
6610         implement new enable/disable frame methods/functions.
6611
6612         * general-slots.h:
6613         add initial-focus.
6614
6615         * glyphs-msw.c (mswindows_widget_instantiate):
6616         comment that initial-focus should be implemented.
6617
6618         * glyphs-widget.c:
6619         * glyphs-widget.c (check_valid_instantiator):
6620         * glyphs-widget.c (check_valid_orientation):
6621         * glyphs-widget.c (check_valid_tab_orientation):
6622         * glyphs-widget.c (check_valid_justification):
6623         * glyphs-widget.c (check_valid_border):
6624         * glyphs-widget.c (check_valid_callback):
6625         * glyphs-widget.c (check_valid_int_or_function):
6626         * glyphs-widget.c (check_valid_string_or_vector):
6627         * glyphs-widget.c (check_valid_item_list_1):
6628         * glyphs-widget.c (widget_validate):
6629         * glyphs-widget.c (combo_box_validate):
6630         * glyphs-widget.c (widget_instantiate):
6631         * glyphs-widget.c (syms_of_glyphs_widget):
6632         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6633         * glyphs-widget.c (image_instantiator_combo_box):
6634         * glyphs-widget.c (image_instantiator_scrollbar):
6635         * glyphs-widget.c (image_instantiator_tab_control):
6636         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6637         (2).
6638         support (unimplemented) keyword initial-focus.
6639         reindent long macros.
6640
6641         * glyphs-x.c (x_redisplay_widget):
6642         * glyphs-x.c (x_button_instantiate):
6643         * glyphs-x.c (x_button_redisplay):
6644         * glyphs-x.c (x_progress_gauge_instantiate):
6645         * glyphs-x.c (x_edit_field_instantiate):
6646         * glyphs-x.c (x_combo_box_instantiate):
6647         * glyphs-x.c (x_tab_control_instantiate):
6648         * glyphs-x.c (x_label_instantiate):
6649         * gui-x.c:
6650         * gui-x.c (button_item_to_widget_value):
6651         * gui-x.c (gui_items_to_widget_values_1):
6652         * gui-x.c (gui_item_children_to_widget_values):
6653         * gui-x.c (gui_items_to_widget_values):
6654         * gui-x.h:
6655         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6656         add new flag to gui-parsing routines to indicate whether
6657         accelerator specs should be supported.
6658
6659         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6660
6661         * glyphs.h (struct Lisp_Image_Instance):
6662         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6663         add initial-focus flag.
6664
6665         * gui.c:
6666         * gui.c (syms_of_gui):
6667         * gui.c (vars_of_gui):
6668         clean up menu-no-selection-hook.
6669
6670         * gui.h:
6671         support delete-dialog-box-hook.
6672
6673         * lread.c (Fload_internal):
6674         * lread.c (locate_file_in_directory_mapper):
6675         (1).
6676
6677         * lrecord.h:
6678         * lrecord.h (struct toolbar_button):
6679         * lrecord.h (syms_of_toolbar):
6680         document how to create a new object.
6681
6682         * menubar-msw.c (mswindows_char_is_accelerator):
6683         may be called on frames w/o menus.
6684
6685         * menubar.c (vars_of_menubar):
6686         clean up :filter docs.
6687
6688         * nt.c (readdir):
6689         * ntproc.c:
6690         (1).
6691
6692         * process-nt.c:
6693         * process-nt.c (validate_signal_number):
6694         * process-nt.c (signal_cannot_launch):
6695         * process-nt.c (nt_create_process):
6696         * process-nt.c (nt_send_process):
6697         * process-nt.c (nt_kill_child_process):
6698         * process-nt.c (nt_open_network_stream):
6699         * process-nt.c (syms_of_process_nt):
6700         (2).
6701         delete quote-handling.  call new lisp code that does it better.
6702
6703         * process-unix.c (connect_to_file_descriptor):
6704         * process-unix.c (allocate_pty):
6705         * process-unix.c (unix_send_process):
6706         * process-unix.c (unix_kill_child_process):
6707         * process-unix.c (unix_open_network_stream):
6708         * process-unix.c (unix_open_multicast_group):
6709         (1). (2).
6710
6711         * process.c:
6712         * process.c (Fstart_process_internal):
6713         (2).  need to canonicalize process path even if absolute.
6714
6715         * select-msw.c (symbol_to_ms_cf):
6716         * select-msw.c (ms_cf_to_symbol):
6717         * select-msw.c (cf_is_autofreed):
6718         * select-msw.c (mswindows_destroy_selection):
6719         * select.c:
6720         * select.c (syms_of_select):
6721         * select.h:
6722         support dibv5, fix bugs. (from Mike Alexander)
6723
6724         * select.c (Fget_selection_internal):
6725         * select.c (select_convert_out):
6726
6727         * sysdep.c:
6728         * sysdep.c (xemacs_stat):
6729         renamed.
6730
6731         * sysdep.c (mkdir):
6732         * sysdep.c (rmdir):
6733         but keep original stat() here because we provide encapsulation
6734         around these funs.
6735
6736         * sysfile.h:
6737         * sysfile.h (fstat):
6738         remove stat garbage.
6739
6740         * syswindows.h:
6741         fix X/MSW conflict.
6742         don't include tchar.h.  it's inappropriate because it makes
6743         compile-time distinctions when we want runtime distinctions.
6744         (we provide our own tchar replacements)
6745
6746         * toolbar.c:
6747         use default object printer for toolbar-button.
6748
6749         * unexcw.c:
6750         make sure we don't encapsulate.
6751
6752         * window.c (vars_of_window):
6753         emphasize that temp-buffer-show-hook is obsolete.
6754
6755 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6756
6757         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6758         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6759
6760         * events.c (Fevent_timestamp_lessp):
6761         Not 64-bit clean.  Use EMACS_INT, not int.
6762
6763 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6764
6765         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6766         unsigned int and changed the last enum to
6767         lrecord_type_last_built_in_type.
6768         (lrecord_implementations_table): changed prototype to know how
6769         long the array is supposed to be.
6770         (lrecord_type_count): new unsigned int to keep track of the
6771         current number of lisp lrecord types.
6772         (DEFINE_EXTERNAL_LRECORD):
6773         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6774         dynamic-modules to declare new lisp types. They are the same
6775         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6776         int for each new type, and increment lrecord_type_count by 1.
6777
6778         * alloc.c (lrecord_implementations_table): Changed to reference
6779         lrecord_type_last_built_in_type for the size of the array.
6780         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6781
6782 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6783
6784         * glyphs.h (check_valid_item_list): Renamed from
6785         check_valid_item_list_1.
6786
6787 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6788
6789         * select.c (Qselect_coerce): New.
6790         * select.c (Vselection_coercion_alist): New.
6791         * select.c (syms_of_select): Declare.
6792         * select.c (get-selection-internal): Use it.
6793         Use the new select-coerce functionality.
6794
6795         * select.c (select_coerce): New.
6796         * select.h (select_coerce): Declare.
6797         New function to coerce one type of data into another.
6798
6799 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6800
6801         * callproc.c (Fcall_process_internal):
6802         (Fcall_process_internal):
6803         * process-unix.c (unix_create_process):
6804         Save and restore the value of errno, so that error messages are accurate.
6805
6806 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6807
6808         * elhash.c (print_hash_table):
6809         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6810         Prettify docstrings and indentation.
6811
6812 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6813
6814         * window.c (Fwindow_pixel_edges): Subtract frame border and
6815         gutter size.
6816
6817 2000-07-31  Andy Piper  <andy@xemacs.org>
6818
6819         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6820         will acknowledge the change.
6821
6822         * glyphs.h: declare tab_control_order_only_changed.
6823
6824         * glyphs-x.c (x_tab_control_redisplay): use
6825         tab_control_order_only_changed.
6826
6827         * glyphs-widget.c (tab_control_order_only_changed): new function.
6828
6829         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6830         tab_control_order_only_changed.
6831
6832         * gui.c (gui_item_equal_sans_selected): new function.
6833         (gui_item_equal): use it.
6834
6835         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6836         :properties in favor of :items..
6837
6838         * glyphs-widget.c (check_valid_item_list): rename from
6839         check_valid_item_list_1.
6840         (check_valid_item_list_1): renamed.
6841         (combo_box_validate): deprecate :properties in favor of :items.
6842         (widget_instantiate): ditto.
6843         (tab_control_update): ditto.
6844         (image_instantiator_combo_box): ditto.
6845         (image_instantiator_tree_view): ditto.
6846         (image_instantiator_tab_control): ditto.
6847         (layout_post_instantiate): remove dead code.
6848
6849         * print.c (debug_print_no_newline): only write to debugger if in
6850         WIN32_NATIVE.
6851
6852         * elhash.c (Fmake_hash_table): update doc string.
6853
6854         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6855         messages whilst in GC. This at least stops XEmacs crashing but has
6856         the potential for wierd behaviour.
6857
6858 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6859
6860         * config.h.in:
6861         Make existence of s&m files optional.
6862
6863         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6864         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6865         * s/gnu.h: Remove HAVE_GETLOADAVG.
6866         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6867         * s/sol2.h: Remove HAVE_GETLOADAVG.
6868         * lisp.h: Remove getloadavg() declaration.
6869         * fns.c:
6870         Include <sys/loadavg.h> if available.
6871         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6872         * config.h.in:  Group together getloadavg()-related macros.
6873         Use only configure-time tests to detect getloadavg().
6874
6875 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6876
6877         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6878
6879 2000-07-25  Andy Piper  <andy@xemacs.org>
6880
6881         * syswindows.h: add tchar.h for native builds.
6882
6883         * frame.c (syms_of_frame): remove set-glyph-image.
6884
6885         * general-slots.h: add Qset_glyph_image.
6886
6887         * glyphs-widget.c (layout_update): add domain arg to
6888         set-glyph-image.
6889         (syms_of_glyphs_widget): remove set-glyph-image.
6890
6891 2000-07-23  Ben Wing  <ben@xemacs.org>
6892
6893         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6894         Vpopup_frame_list.
6895
6896 2000-07-22  Andy Piper  <andy@xemacs.org>
6897
6898         * symsinit.h: add syms_of_win32().
6899
6900         * gui-msw.c (syms_of_gui_mswindows): remove
6901         Fmswindows_shell_execute.
6902         (Fmswindows_shell_execute): moved to win32.c.
6903
6904         * emacs.c (main_1): add syms_of_win32 ().
6905
6906         * win32.c (init_potentially_nonexistent_functions): rewrite in
6907         compiler-friendly terms.
6908         (Fmswindows_shell_execute): move here from gui-msw.c.
6909         (syms_of_win32): new.
6910
6911         * device-msw.c (Fmswindows_printer_list): clean up args to
6912         EnumPrinters.
6913         Don't include tchar under cygwin or mingw.
6914         (msprinter_default_printer): make cygwin-friendly.
6915
6916 2000-07-21  Andy Piper  <andy@xemacs.org>
6917
6918         * glyphs-widget.c (image_instantiator_tree_view): use tab
6919         control's update function.
6920         (layout_property): new function. Retrieve items.
6921
6922         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6923         function. Re-populate the tree view from the pending items.
6924
6925         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6926         is designated the parent if the domain is an image instance. This
6927         is needed so that dirtiness can be cascade up the hierarchy and
6928         thus for layout children to be redisplayed correctly.
6929         (allocate_image_instance): rename glyph -> parent.
6930
6931         * redisplay.h: change redisplay_output_layout signature.
6932
6933         * redisplay-msw.c (mswindows_output_display_block): use domain
6934         arg.
6935
6936         * redisplay-x.c (x_output_display_block): use domain arg.
6937
6938 2000-07-10  Andy Piper  <andy@xemacs.org>
6939
6940         * window.c (Fset_window_configuration): add comment.
6941
6942         * redisplay-output.c (compare_runes):
6943         (redisplay_output_subwindow): redisplay rather than update subwindow.
6944         (redisplay_output_layout): ditto.
6945
6946         * redisplay-msw.c (mswindows_frame_output_end):
6947         (mswindows_frame_output_end): make defer window pos optional.
6948
6949         * lisp.h: add Flast.
6950
6951         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6952         normalize method. Change update method to be for changed
6953         instantiators. Add redisplay method. Change signature of layout
6954         method.
6955         (struct Lisp_Image_Instance): add instantiator.
6956         (IMAGE_INSTANCE_INSTANTIATOR): new.
6957         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6958         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6959         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6960
6961         * glyphs.c:
6962         (find_instantiator_differences): new function.
6963         (Fset_instantiator_property): new convenience function.
6964         (check_image_instance_structure): strictly check for vector
6965         instantiators.
6966         (normalize_image_instantiator): make non-static.
6967         (instantiate_image_instantiator): pass on dest_mask and use new
6968         signatures for image_instance_layout and friends.
6969         (mark_image_instance): mark the instantiator. Mark the subwindow
6970         face not the widget face.
6971         (image_instance_equal): add instantiator.
6972         (image_instance_hash): ditto.
6973         (allocate_image_instance): ditto.
6974         (Fset_image_instance_property): removed.
6975         (Fimage_instance_file_name): ditto.
6976         (Fcolorize_image_instance): ditto.
6977         (image_instance_layout): add offsets to be set.
6978         (update_image_instance): new function. update an image instance
6979         from its changed instantiator.
6980         (inherit_normalize): add dest_mask.
6981         (xbm_normalize): ditto.
6982         (xface_normalize): ditto.
6983         (xpm_normalize): ditto.
6984         (text_update): set_property -> update.
6985         (image_instantiate): use the glyph identity as a hash key, not the
6986         instantiator.
6987         (glyph_width): use new image_instance_layout signature.
6988         (glyph_ascent): ditto.
6989         (glyph_descent): ditto.
6990         (glyph_height): ditto.
6991         (glyph_query_geometry): ressurrect.
6992         (glyph_layout): ditto.
6993         (redisplay_subwindow): update -> redisplay.
6994         (syms_of_glyphs): add Fset_instantiator_property.
6995         (image_instantiator_format_create): set_property -> update.
6996
6997         * glyphs-x.c:
6998         (autodetect_normalize): add dest_maks to signature.
6999         (x_redisplay_subwindow): update -> redisplay.
7000         (x_redisplay_widget): ditto.
7001         (x_button_redisplay): ditto.
7002         (x_progress_gauge_redisplay): ditto.
7003         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7004         stacking order.
7005         (console_type_create_glyphs_x): update -> redisplay.
7006         (image_instantiator_format_create_glyphs_x): ditto.
7007
7008         * glyphs-widget.c:
7009         (check_valid_instantiator): disallow glyphs in the instantiator,
7010         they must now be vectors.
7011         (check_valid_instantiator_list): ditto.
7012         (glyph_instantiator_to_glyph): use internal symbol rather than
7013         intern.
7014         (widget_update): renamed from widget_set_property. Call cascaded
7015         update methods.
7016         (redisplay_widget): renamed from update_widget.
7017         (widget_layout): image_instance_layout now takes position as well
7018         as size.
7019         (widget_normalize): ditto.
7020         (widget_instantiate): ditto.
7021         (tab_control_query_geometry) ditto.:
7022         (tab_control_update): renamed from tab_control_set_property.
7023         (progress_gauge_update): set_property -> update.
7024         (layout_normalize): rewrite so that child instantiators are
7025         normalized also.
7026         (layout_update): new function. Create glyphs from the normalized
7027         children and cope with any other layout keywords. We do not
7028         instantiate children here that will be take care of by
7029         redisplay_output_layout.
7030         (layout_instantiate): call layout_update and not much else.
7031         (layout_post_instantiate): not sure whether this is needed
7032         anymore.
7033         (layout_query_geometry): query glyph geometry rather than
7034         image_instance geometry.
7035         (layout_layout): set offsets from pass in parameters. Use glyph
7036         geometry and layout functions rather than image instance ones.
7037         (native_layout_layout): ditto.
7038         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7039         (image_instantiator_widget): set_property -> update.
7040         (image_instantiator_buttons): ditto.
7041         (image_instantiator_progress_guage): ditto.
7042         (image_instantiator_tab_control): ditto.
7043         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7044         (image_instantiator_layout): add update method.
7045
7046         * glyphs-msw.c (bmp_normalize):
7047         (mswindows_resource_normalize): add dest_mask so that it can be
7048         proprogated by layout_normalize.
7049         (begin_defer_window_pos): make optional because it may not be the
7050         right thing to do and it introduces differences with X.
7051         (mswindows_unmap_subwindow): ditto.
7052         (mswindows_map_subwindow): ditto.
7053         (mswindows_redisplay_subwindow): renamed from
7054         mswindows_update_subwindow.
7055         (mswindows_redisplay_widget): ditto.
7056         (mswindows_button_redisplay): renamed from
7057         mswindows_button_update. Update is now what the instantiation
7058         function does for a changed instantiator.
7059         (mswindows_progress_gauge_instantiate): set the progress value
7060         here if appropriate.
7061         (mswindows_tab_control_redisplay): cope with re-ordering of the
7062         members of the tab widget by simply selecting the new top
7063         widget. This makes things appear ok if you click on a tab.
7064         (mswindows_combo_box_instantiate): image_instance_layout now takes
7065         position as well as size.
7066         (mswindows_progress_gauge_redisplay): renamed from
7067         mswindows_progress_gauge_update.
7068         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7069         (image_instantiator_format_create_glyphs_mswindows): ditto.
7070
7071         * glyphs-eimage.c (jpeg_normalize):
7072         (gif_normalize):
7073         (png_normalize):
7074         (tiff_normalize): add dest_mask so that it can be proprogated by
7075         layout_normalize.
7076
7077         * elhash.c:
7078         (print_hash_table):
7079         (hash_table_weakness_validate):
7080         (decode_hash_table_weakness):
7081         (Fhash_table_weakness):
7082         (Fhash_table_type):
7083         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7084
7085         * console.h (struct console_methods): move update_* to
7086         redisplay_*.
7087
7088 2000-07-20  Ben Wing  <ben@xemacs.org>
7089
7090         * *.[ch] (XSETOBJ): remove unused middle argument.
7091         lisp-disunion.h: correct wrap_object() to one argument.
7092
7093 2000-07-15  Ben Wing  <ben@xemacs.org>
7094
7095         * s/cygwin32.h:
7096         * s/cygwin32.h (CYGWIN_CONV_PATH):
7097         Add missing logb prototype for v1.1.
7098         Use post-b20 names and alias to pre-b20 names when pre-b20.
7099
7100         * s/windowsnt.h: [5].
7101
7102 2000-07-15  Ben Wing  <ben@xemacs.org>
7103
7104         * Makefile.in.in (x_objs):
7105         * Makefile.in.in (sheap_objs):
7106         * Makefile.in.in (objs):
7107         added win32.o, cosmetic cleanups.
7108
7109         * alloc.c (Fmake_byte_code):
7110         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7111         etc. macros which declare their own args now.
7112
7113         * alloc.c (syms_of_alloc):
7114         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7115
7116         * buffer.c:
7117         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7118
7119         * buffer.c (Fget_file_buffer):
7120         Fixed GCPRO problem.
7121
7122         * buffer.c (get_truename_buffer):
7123         Fixed comment about GC checking.
7124
7125         * buffer.c (syms_of_buffer):
7126         Undeclared those dedicated frame funs.
7127         [2].
7128
7129         * buffer.h:
7130         Define convenience macros for internal/external conversions.
7131         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7132         and Qenvironment_variable_encoding for cleaner code.
7133
7134         * bufslots.h:
7135         Remove dedicated-frame; in lisp.
7136
7137         * bytecode.c (funcall_compiled_function):
7138         [1].
7139
7140         * bytecode.c (syms_of_bytecode):
7141         [2].
7142
7143         * console-msw.c:
7144         * console-msw.c (mswindows_show_console): Rewrote.
7145
7146         * console-msw.c (Fmswindows_debugging_output): New.
7147         Sends to OutputDebugString (special MSWin debugger interface).
7148
7149         * console-msw.c (Fmswindows_message_box):
7150         Fixed stupid bugs so it works when called from kill-emacs.
7151
7152         * console-msw.c (syms_of_console_mswindows):
7153         Declare Fmswindows_debugging_output.
7154
7155         * console-msw.h:
7156         New MSWin prototypes.
7157
7158         * console-msw.h (struct mswindows_frame):
7159         New entry last-click-mods for improved button-modifier support.
7160
7161         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7162         New struct entry `popup' with corresponding accessor.
7163
7164         * console-x.c:
7165         * console-x.c (split_up_display_spec):
7166         * console-x.c (get_display_arg_connection):
7167         * console-x.c (x_semi_canonicalize_console_connection):
7168         * console-x.c (x_canonicalize_device_connection):
7169         [[[6]]]: Change char to more specific type.
7170         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7171
7172         * console-x.c (x_semi_canonicalize_console_connection):
7173         * console-x.c (x_canonicalize_device_connection):
7174         [[[9]]]: Fix up error signalling to use new structured error system.
7175
7176         * console-x.h:
7177         [[[4]]]: Define codesys aliases:
7178         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7179         Qx_color_name_encoding, Qx_display_name_encoding.
7180
7181         * console.h (struct console_methods):
7182         New method make_dialog_box_internal supersedes older
7183         popup_dialog_box method.
7184
7185         * data.c:
7186         Define many new errors, part of new structured errors.
7187
7188         * data.c (init_errors_once_early):
7189         * data.c (syms_of_data):
7190         [2].
7191
7192         * device-msw.c (mswindows_init_device):
7193         [[[5]]]: Cleanup to support NT 3.51.
7194
7195         * device-msw.c (decode_devmode): Cleanup.
7196
7197         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7198         * device-msw.c (mswindows_handle_print_dialog_box):
7199         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7200         * device-msw.c (syms_of_device_mswindows):
7201         Delete the dialog box primitives recently introduced by Kirill and
7202         instead interface to general dialog box interface.
7203
7204         * device-x.c:
7205         * device-x.c (compute_x_app_name):
7206         * device-x.c (x_init_device):
7207         * device-x.c (Fx_valid_keysym_name_p):
7208         * device-x.c (Fx_set_font_path):
7209         [6].
7210         [7].
7211
7212         * device.h (wrap_device): New.
7213         First of its kind; meant to replace XSETDEVICE.
7214
7215         * dialog-msw.c: Many file-dialog symbols.
7216
7217         * dialog-msw.c (mswindows_register_popup_frame): New.
7218         * dialog-msw.c (mswindows_is_dialog_msg): New.
7219         For supporting kbd traversal in dialog boxes.
7220
7221         * dialog-msw.c (dialog_proc):
7222         Support hitting ESC in dialogs.
7223
7224         * dialog-msw.c (struct):
7225         Common dialog box errors.
7226
7227         * dialog-msw.c (handle_file_dialog_box): New.
7228         Add file dialog code.
7229
7230         * dialog-msw.c (handle_question_dialog_box):
7231         Redo existing code to support new question dialog syntax.
7232
7233         * dialog-msw.c (console_type_create_dialog_mswindows):
7234         We support new dialog console method.
7235
7236         * dialog-msw.c (syms_of_dialog_mswindows):
7237         * dialog-msw.c (vars_of_dialog_mswindows):
7238         New file dialog symbols, vars.
7239
7240         * dialog-x.c:
7241         * dialog-x.c (maybe_run_dbox_text_callback):
7242         * dialog-x.c (dbox_descriptor_to_widget_value):
7243         * dialog-x.c (x_make_dialog_box_internal):
7244         * dialog-x.c (console_type_create_dialog_x):
7245         Mule-ize entire file.
7246         Redo to support question dialog syntax.
7247         [6].
7248
7249         * dialog.c:
7250         * dialog.c (Fmake_dialog_box_internal):
7251         * dialog.c (syms_of_dialog):
7252         Kill old popup-dialog-box, replace with new primitive.
7253         Just call device method or signal error.
7254
7255         * eldap.c (Fldap_open):
7256         * eldap.c (Fldap_search_basic):
7257         * eldap.c (Fldap_add):
7258         * eldap.c (Fldap_modify):
7259         [1].
7260         [7].
7261
7262         * emacs.c:
7263         * emacs.c (make_arg_list_1):
7264         * emacs.c (make_arg_list):
7265         Mule-ize call to dll_init().
7266         [6].
7267         [8].
7268
7269         * emacs.c (make_argc_argv):
7270         * emacs.c (free_argc_argv):
7271         * emacs.c (init_cmdargs):
7272         * emacs.c (main_1):
7273         * emacs.c (Fkill_emacs):
7274         * emacs.c (Fdump_emacs):
7275         Update comments about what can be used in syms_* etc.
7276         Call init_win32() when necessary.
7277         Fix up MS Win dialog box in kill-buffer to actually work right.
7278         [7].
7279
7280         * eval.c:
7281         * eval.c (For):
7282         * eval.c (Fand):
7283         * eval.c (Fprogn):
7284         * eval.c (Fprog1):
7285         * eval.c (Fprog2):
7286         * eval.c (FletX):
7287         * eval.c (Flet):
7288         * eval.c (condition_case_3):
7289         * eval.c (Feval):
7290         * eval.c (function_argcount):
7291         * eval.c (funcall_lambda):
7292         [1].
7293
7294         * eval.c (type_error): New.
7295         * eval.c (maybe_type_error): New.
7296         * eval.c (continuable_type_error): New.
7297         * eval.c (maybe_continuable_type_error): New.
7298         * eval.c (type_error_with_frob): New.
7299         * eval.c (maybe_type_error_with_frob): New.
7300         * eval.c (continuable_type_error_with_frob): New.
7301         * eval.c (maybe_continuable_type_error_with_frob): New.
7302         New functions for use with structured errors.
7303
7304         * event-Xt.c:
7305         * event-Xt.c (x_event_to_emacs_event):
7306         Buttons are now modifiers too.
7307
7308         * event-Xt.c (emacs_Xt_current_event_timestamp):
7309         Implement new event method.
7310         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7311
7312         * event-msw.c:
7313         * event-msw.c (ntpipe_shove_writer): [5].
7314         * event-msw.c (mswindows_enqueue_mouse_button_event):
7315         * event-msw.c (mswindows_drain_windows_queue):
7316         * event-msw.c (mswindows_wnd_proc): [7].
7317         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7318         * event-msw.c (mswindows_modifier_state):
7319         Throughout: support new button modifiers.
7320
7321         * event-msw.c (emacs_mswindows_current_event_timestamp):
7322         Implement new event method.
7323         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7324
7325         * event-stream.c:
7326         * event-stream.c (event_stream_current_event_timestamp): New.
7327         * event-stream.c (maybe_kbd_translate): New functionality.
7328         * event-stream.c (vars_of_event_stream):
7329         Document new kbd-translate-table functionality.
7330
7331         * event-stream.c (Fcurrent_event_timestamp): New.
7332         New primitive for use in fabricated events.
7333         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7334
7335         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7336
7337         * events.c:
7338         * events.c (Fmake_event):
7339         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7340         [1].
7341         [9].
7342
7343         * events.c (format_event_object): fix gcc warnings.
7344
7345         * events.c (Fevent_timestamp): Document new primitives.
7346
7347         * events.c (TIMESTAMP_HALFSPACE): New.
7348
7349         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7350         comparing timestamps correctly (half-space algorithm).
7351
7352         * events.c (Fevent_modifier_bits): Doc fix.
7353
7354         * events.c (Fevent_modifiers): Major doc addition.
7355         * events.c (event_x_y_pixel_internal): Typo fix.
7356         * events.c (syms_of_events): Declare new primitives.
7357
7358         * events.h:
7359         Update long comment for button modifiers, timestamps.
7360
7361         * events.h (struct event_stream):
7362         New current_event_timestamp method.
7363
7364         * extents.c:
7365         * extents.c (extent_in_region_p):
7366         * extents.c (decode_extent):
7367         * extents.c (Fset_extent_parent):
7368         * extents.c (decode_map_extents_flags):
7369         Fix gcc warnings.
7370         [9].
7371
7372         * extents.c (struct extent_at_arg):
7373         * extents.c (decode_extent_at_flag):
7374         * extents.c (extent_at_mapper):
7375         * extents.c (extent_at_bytind):
7376         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7377         * extents.c (Fextents_at): New primitive. [9].
7378         * extents.c (symbol_to_glyph_layout): [9].
7379         Support new primitive `extents-at'.
7380
7381
7382         * extents.c (get_text_property_bytind):
7383         extent_at_bytind has another arg.
7384         [9].
7385
7386         * extents.c (syms_of_extents): New primitive.
7387
7388         * file-coding.c (Fmake_coding_system): [1].
7389         * file-coding.c (subsidiary_coding_system): fix gcc warning
7390         * file-coding.c (syms_of_file_coding): [2].
7391
7392         * fileio.c (Fexpand_file_name):
7393         * fileio.c (Fsysnetunam):
7394         * fileio.c (Ffile_exists_p):
7395         * fileio.c (Ffile_executable_p):
7396         * fileio.c (Fverify_visited_file_modtime):
7397         Clean up GCPROing.
7398
7399         * fileio.c (syms_of_fileio): [2].
7400
7401         * filelock.c (lock_file_1):
7402         * filelock.c (current_lock_owner):
7403         * filelock.c (lock_if_free):
7404         * filelock.c (lock_file):
7405         * filelock.c (unlock_file):
7406         Clean up GCPROing.
7407
7408         * fns.c (concat): Fix gcc warning.
7409
7410         * fns.c (Fmember):
7411         * fns.c (Fold_member):
7412         * fns.c (Fmemq):
7413         * fns.c (Fold_memq):
7414         * fns.c (memq_no_quit):
7415         * fns.c (Fassoc):
7416         * fns.c (Fold_assoc):
7417         * fns.c (Fassq):
7418         * fns.c (Fold_assq):
7419         * fns.c (assq_no_quit):
7420         * fns.c (Frassoc):
7421         * fns.c (Fold_rassoc):
7422         * fns.c (Frassq):
7423         * fns.c (Fold_rassq):
7424         * fns.c (rassq_no_quit):
7425         * fns.c (Fdelete):
7426         * fns.c (Fold_delete):
7427         * fns.c (Fdelq):
7428         * fns.c (Fold_delq):
7429         * fns.c (delq_no_quit):
7430         * fns.c (Fremassoc):
7431         * fns.c (Fremassq):
7432         * fns.c (remassq_no_quit):
7433         * fns.c (Fremrassoc):
7434         * fns.c (Fremrassq):
7435         * fns.c (remrassq_no_quit):
7436         * fns.c (Freverse):
7437         * fns.c (mapcar1):
7438         [1].
7439
7440         * frame-msw.c (mswindows_init_frame_1):
7441         * frame-msw.c (mswindows_delete_frame):
7442         Register popups with dialog code so keyboard traversing works.
7443
7444         * frame-tty.c (tty_raise_frame_no_select): [1].
7445
7446         * frame-x.c:
7447         * frame-x.c (x_set_frame_text_value):
7448         * frame-x.c (x_set_frame_properties):
7449         * frame-x.c (x_create_widgets):
7450         [7].
7451
7452         * frame.c:
7453         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7454
7455         * frame.h (wrap_frame): New.
7456         Macro like wrap_device.
7457
7458         * general.c:
7459         * general.c (SYMBOL):
7460         * general.c (syms_of_general):
7461         Major reorg.  This is now just a wrapper and symbols themselves
7462         are listed in general-slots.h.
7463
7464         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7465         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7466
7467         * glyphs-msw.c (mswindows_native_layout_instantiate):
7468         Add DS_CONTROL so keyboard traversal will work.
7469
7470         * glyphs-widget.c:
7471         * glyphs-widget.c (syms_of_glyphs_widget):
7472         Move some symbols to general-slots.h.
7473
7474         * glyphs-x.c:
7475         * glyphs-x.c (xbm_instantiate_1):
7476         * glyphs-x.c (x_xbm_instantiate):
7477         * glyphs-x.c (x_xface_instantiate):
7478         * glyphs-x.c (autodetect_instantiate):
7479         * glyphs-x.c (cursor_font_instantiate):
7480         * glyphs-x.c (x_update_widget):
7481         * glyphs-x.c (x_widget_instantiate):
7482         * glyphs.c (bitmap_to_lisp_data):
7483         * glyphs.c (pixmap_to_lisp_data):
7484         [7].
7485
7486         * glyphs.c (syms_of_glyphs):
7487         [2].
7488
7489         * gui-x.c:
7490         * gui-x.c (print_widget_value):
7491         * gui-x.c (menu_separator_style_and_to_external):
7492         * gui-x.c (add_accel_and_to_external):
7493         * gui-x.c (button_item_to_widget_value):
7494         * gui-x.c (gui_items_to_widget_values_1):
7495         * gui-x.c (gui_items_to_widget_values):
7496         * gui-x.c (syms_of_gui_x):
7497         * gui-x.c (vars_of_gui_x):
7498         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7499         [9].
7500
7501         * gui-x.h:
7502         Muleize, prototype changes matching gui-x.c.
7503
7504         * gui.c:
7505         * gui.c (separator_string_p):
7506         * gui.c (gui_item_add_keyval_pair):
7507         * gui.c (make_gui_item_from_keywords_internal):
7508         * gui.c (signal_too_long_error):
7509         * gui.c (parse_gui_item_tree_item):
7510         * gui.c (syms_of_gui):
7511         * gui.c (vars_of_gui):
7512         * gui.h:
7513         menu-no-selection-hook moved here (used by MSWin).
7514         Move some symbols to general-slots.h.
7515         [6].
7516         [9].
7517
7518         * insdel.c (get_buffer_pos_char):
7519         * insdel.c (get_buffer_range_char):
7520         Add GC comments.
7521
7522         * keymap.c (keymap_lookup_directly):
7523         * keymap.c (keymap_store):
7524         * keymap.c (ensure_meta_prefix_char_keymapp):
7525         * keymap.c (describe_map):
7526         * keymap.h:
7527         Support new button modifiers.
7528
7529         * lisp-disunion.h (wrap_object):
7530         * lisp-disunion.h (XSETOBJ):
7531         Rename make_obj to wrap_object.
7532
7533         * lisp-union.h:
7534         * lisp-union.h (make_int):
7535         * lisp-union.h (make_char):
7536         Support wrap_object.
7537
7538         * lisp.h:
7539         * lisp.h (LIST_LOOP):
7540         * lisp.h (EXTERNAL_LIST_LOOP):
7541         * lisp.h (LIST_LOOP_2):
7542         * lisp.h (EXTERNAL_LIST_LOOP_1):
7543         * lisp.h (EXTERNAL_LIST_LOOP_2):
7544         * lisp.h (EXTERNAL_LIST_LOOP_3):
7545         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7546         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7547         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7548         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7549         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7550         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7551         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7552         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7553         * lisp.h (struct Lisp_Symbol):
7554         * lisp.h (maybe_continuable_error_with_frob):
7555         Fix up section comments.
7556         Add new types for char to indicate usage.
7557         Delete symbols auto-generated from general-slots.h.
7558         Add prototypes for structured error functions.
7559         Add long comments describing looping macros and change interface
7560         so that lvalues are automatically declared.
7561         Add NO_DECLARE macro in case callers want to declare lvalues
7562         themselves.
7563
7564         * lread.c (read_syntax_error):
7565         * lread.c (continuable_read_syntax_error):
7566         * lread.c (read_structure):
7567         * lread.c (sequence_reader):
7568         * lread.c (read_list_conser):
7569         * lread.c (read_compiled_function):
7570         Rename syntax_error and continuable_syntax_error to avoid clash
7571         with same-named structured error functions.
7572
7573         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7574         * menubar-msw.c (populate_menu_add_item):
7575         * menubar-msw.c (populate_or_checksum_helper):
7576         [5].
7577         [9].
7578
7579         * menubar-x.c:
7580         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7581         Mule-ize whole file.
7582
7583         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7584
7585         * mule-charset.c (Fmake_charset):
7586         * mule-wnnfns.c (Fwnn_set_param):
7587         [1].
7588
7589         * ntproc.c (create_child):
7590         * ntproc.c (Fwin32_set_current_locale):
7591         Add comments portending doom.
7592
7593         * objects-msw.c:
7594         * objects-msw.c (old_font_enum_callback_2):
7595         * objects-msw.c (font_enum_callback_1):
7596         * objects-msw.c (mswindows_enumerate_fonts):
7597         [5].
7598
7599         * objects-x.c:
7600         * objects-x.c (allocate_nearest_color):
7601         * objects-x.c (x_parse_nearest_color):
7602         * objects-x.c (x_initialize_color_instance):
7603         * objects-x.c (x_print_color_instance):
7604         * objects-x.c (x_finalize_color_instance):
7605         * objects-x.c (x_valid_color_name_p):
7606         * objects-x.c (x_initialize_font_instance):
7607         * objects-x.c (x_print_font_instance):
7608         * objects-x.c (valid_x_font_name_p):
7609         * objects-x.c (truename_via_FONT_prop):
7610         * objects-x.c (truename_via_random_props):
7611         * objects-x.c (truename_via_XListFonts):
7612         * objects-x.c (x_font_truename):
7613         * objects-x.c (x_font_instance_truename):
7614         * objects-x.c (x_font_instance_properties):
7615         * objects-x.c (x_list_fonts):
7616         * objects-x.c (x_find_charset_font):
7617         Mule-ize entire file.
7618         [7].
7619
7620         * objects-x.h:
7621         Mule-verify.
7622
7623         * print.c:
7624         * print.c (std_handle_out_external):
7625         * print.c (debug_print_no_newline):
7626         * print.c (syms_of_print):
7627         Output to all debugger kinds in debug-print.
7628         Fix console-output code under MSWin to actually work.
7629
7630         * process-nt.c (send_signal):
7631         * process-nt.c (nt_create_process):
7632         Use newer Unicode macros.
7633
7634         * process-unix.c (unix_create_process):
7635         * process-unix.c (unix_canonicalize_host_name):
7636         * process-unix.c (unix_open_network_stream):
7637         [7].
7638
7639         * scrollbar-x.c:
7640         Mule-verify.
7641
7642         * search.c (syms_of_search):
7643         [2].
7644
7645         * select-msw.c (mswindows_destroy_selection):
7646         Use LIST_LOOP_2.
7647
7648         * select-x.c (symbol_to_x_atom):
7649         [7].
7650
7651         * select.c (syms_of_select):
7652         [2].
7653
7654         * sound.c (Fplay_sound_file):
7655         [7].
7656
7657         * specifier.c:
7658         * specifier.c (decode_specifier_type):
7659         * specifier.c (Fvalid_specifier_locale_type_p):
7660         * specifier.c (check_valid_locale_or_locale_type):
7661         * specifier.c (decode_locale):
7662         * specifier.c (decode_locale_type):
7663         * specifier.c (decode_locale_list):
7664         * specifier.c (check_valid_domain):
7665         * specifier.c (decode_specifier_tag_set):
7666         * specifier.c (Fcanonicalize_tag_set):
7667         * specifier.c (Fdefine_specifier_tag):
7668         * specifier.c (Fspecifier_tag_predicate):
7669         * specifier.c (check_valid_inst_list):
7670         * specifier.c (check_valid_spec_list):
7671         * specifier.c (decode_how_to_add_specification):
7672         * specifier.c (check_modifiable_specifier):
7673         * specifier.c (specifier_add_spec):
7674         * specifier.c (boolean_validate):
7675         * specifier.c (display_table_validate):
7676         [9].
7677
7678         * specifier.c (syms_of_specifier):
7679         Move some symbols to general-slots.h.
7680         [2].
7681
7682         * symbols.c:
7683         * symbols.c (Fmapatoms):
7684         * symbols.c (Fapropos_internal):
7685         Add GCPROs.
7686
7687         * symbols.c (set_default_buffer_slot_variable):
7688         * symbols.c (set_default_console_slot_variable):
7689         [1].
7690
7691         * symbols.c (defsymbol_massage_name_1):
7692         * symbols.c (defkeyword_massage_name):
7693         * symbols.c (deferror_1):
7694         * symbols.c (deferror):
7695         * symbols.c (deferror_massage_name_and_message):
7696         * symeval.h:
7697         * symeval.h (DEFSYMBOL):
7698         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7699
7700         * symbols.c (syms_of_symbols):
7701         [2].
7702
7703         * symsinit.h:
7704         * symsinit.h (init_win32): New.
7705         Also new is syms_of_dialog_mswindows.
7706
7707         * syswindows.h:
7708         Add new Unicode macros, missing Cygwin wide-char functions,
7709         convenience conversion macros for Qmswindows_tstr, macros for
7710         encapsulating required MSWin <-> Cygwin filename conversions,
7711         prototype for dynamically-extracted (not in NT 3.51) functions.
7712
7713         * toolbar-x.c:
7714         Mule-verify.
7715
7716         * tooltalk.c (Fadd_tooltalk_message_arg):
7717         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7718         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7719         [7].
7720
7721         * tooltalk.c (syms_of_tooltalk):
7722         [2].
7723
7724         * unexnt.c:
7725         * unexnt.c (unexec):
7726         Fix up headers, declaration of unexec() to be more standard.
7727
7728 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7729
7730         * offix.h: Revert change to guard macros - they're used in offix.c!
7731
7732 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7733
7734         * lisp.h: Defsubred Fdelete.
7735
7736         * console-msw.h:  (msprinter_default_printer): Added.
7737
7738         * console-msw.c (msprinter_canonicalize_console_connection):
7739         (msprinter_canonicalize_device_connection): Added.
7740
7741         * device-msw.c (msprinter_default_printer):
7742         (Fmswingows_get_default_printer):
7743         (signal_enum_priner_error):
7744         (Fmswingows_printer_list): Added.
7745
7746 2000-07-19  Martin Buchholz <martin@xemacs.org>
7747
7748         * XEmacs 21.2.35 is released.
7749
7750 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7751
7752         * select-x.c (x_handle_selection_request):
7753         Text selected in xemacs and pasted into xterm failed to appear.
7754         Spelling fixes and cosmetic changes.
7755
7756 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7757
7758         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7759         XEmacs frame (fix for doubling chars in dialog boxes).
7760
7761 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7762
7763         * select.c (select_convert_in, select_convert_out):
7764         Don't call intern() every time.
7765
7766         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7767         * select.c (vars_of_select): Initialise them.
7768
7769 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7770
7771         * select.c (selection-coercible-types): New.
7772
7773         * select.c (own-selection-internal):
7774         * select.c (get-selection-internal):
7775         MULE bug fix - these should default to COMPOUND_TEXT and not
7776         STRING for MULE. I think.
7777
7778         * select.c (select_convert_out): Use selection-coercible-types
7779         to find types that we can attempt to perform coercions on.
7780
7781 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7782
7783         * mule-wnnfns.c:
7784         * mule-canna.c:
7785         Add coding: cookie to identify encoding.
7786
7787         * mule-canna.c (CANNA_mode_keys): make static.
7788         Use proper prototypes, even for functions of no arguments.
7789         Remove external prototype for Fding().
7790
7791         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7792
7793         * select.c (syms_of_select): Add missing DEFSUBR.
7794
7795 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7796
7797         * select.c (get_selection_internal, own_selection_internal):
7798         Make the type default to STRING, rather than placing a nil type
7799         into Vselection_alist.
7800
7801 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7802
7803         * gpmevent.c (tty_selection_exists_p):
7804         * gpmevent.c (tty_own_selection):
7805         Updated parameter lists.
7806
7807 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7808
7809         * select.h (selection-alist): Removed declaration.
7810
7811         * select.h (get_local_selection):
7812         * select.c (get_local_selection):
7813         Made static.
7814
7815         * select.h (convert_selection): Removed declaration.
7816         * select.c (convert_selection): Removed.
7817         This function belongs in Lisp.
7818
7819         * select.h (select_convert_in): Declare.
7820         * select.h (select_convert_out): Declare.
7821         * select.c (select_convert_in): New.
7822         * select.c (select_convert_out): New.
7823         New conversion functions for other files to call.
7824
7825         * select.h (select_notify_buffer_kill): Declare.
7826         * select.c (select_notify_buffer_kill): New.
7827         New functions that get called from kill-buffer.
7828
7829         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7830         X-specific lisp code.
7831
7832         * select.h: Declare some of the lisp-visible functions for
7833         external use.
7834
7835         * select.c (clean_local_selection_data): Removed. This was
7836         a disgusting function, and previously should have been in
7837         select-x.c in any case. The functionality is now provided
7838         in select-convert-from-integer (select.el).
7839
7840         * select.c (available-selection-types): Fixed stupidity where
7841         INTEGER and ATOM got added twice. Also add STRING when we see an
7842         extent.
7843
7844         * select.c (get-selection-internal): Removed symbol stripping. No
7845         longer causes conversion when data comes from the internal cache.
7846
7847         * select.c (syms_of_select): Added new functions.
7848
7849         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7850         error checking - previously this called abort!
7851
7852         * select-x.c (x_own_selection): Changed comment.
7853
7854         * select-x.c (x_handle_selection_request): Use select_convert_out.
7855         Don't mess with selection-alist; it's an internal variable of select.c.
7856
7857         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7858
7859         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7860         rather than messing with selection-alist.
7861
7862         * select-msw.c (mswindows_get_foreign_selection):
7863         Use TO_INTERNAL_FORMAT rather than hacking.
7864
7865 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7866
7867         * process-unix.c (unix_open_multicast_group):
7868         (unix_open_multicast_group): Remove useless casts.
7869
7870 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7871
7872         * sound.c (Fplay_sound): Fix `unused variable' warning.
7873
7874         * emacs.c (main): Use correct type for _environ on SCO5.
7875
7876 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7877
7878         * console.h (own_selection_method):
7879         * console.h (selection_exists_p_method):
7880         * console.h (available_selection_types_method): New.
7881         * console.h (register_selection_data_type_method): New.
7882         * console.h (selection_data_type_name): New.
7883
7884         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7885         function & alist to track GlobalAlloc()'d handles that need
7886         releasing when the clipboard data gets replaced or emptied.
7887
7888         * event-msw.c (mswindows_wnd_proc): Call it.
7889
7890         * lisp.h, general.c (Qappend): New symbol representing a
7891         `how-to-add' mode.
7892
7893         * select.c (own-selection-internal):
7894         * select.c (selection-exists-p):
7895         * select.c (available-selection-types): New.
7896         * select.c (register-selection-data-type): New.
7897         * select.c (selection-data-type-name): New.  New functions to deal
7898         with device-specific selection data formats.
7899         * select.c (selection-converter-out-alist): Renamed.
7900         * select.c (selection-converter-in-alist): New.
7901         * select.c (selection-appender-alist): New.  Added new alists.
7902         * select.c (syms_of_select, vars_of_select): Added new symbols &
7903         variables.
7904         * select.c (get_local_selection): Split.
7905         * select.c: Removed spurious type checking - selections may now be
7906         of any type, not just strings.
7907         * select.c (own-selection-internal):
7908
7909         * select.h, select.c (convert_selection): New. Created
7910         convert_selection() function based on get_local_selection().
7911         * select.h, select.c (QCF_*): New symbols representing mswindows
7912         clipboard formats.
7913         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7914         symbols representing `how-to-add' modes.
7915
7916         * select-msw.c (x_sym_p): New.
7917         * select-msw.c (symbol_to_ms_cf): New.
7918         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7919         symbols & clipboard formats. Can also handle string names.
7920         * select-msw.c (mswindows_own_selection):
7921         * select-msw.c (mswindows_selection_exists_p):
7922         Added `data-type' parameter. Use it.
7923         * select-msw.c (mswindows_available_selection_types): New.
7924         * select-msw.c (mswindows_register_selection_data_type): New.
7925         * select-msw.c (mswindows_selection_data_type_name): New.
7926         * select-msw.c (mswindows_own_selection):
7927         * select-msw.c (mswindows_get_foreign_selection):
7928         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7929         * select-msw.c (console_create_select_mswindows): Added new methods.
7930         * select-msw.c (mswindows_destroy_selection): New.
7931         * select-msw.c (Vhandle_alist): New list.
7932         * select-msw.c (mswindows_own_selection):
7933
7934         * select-x.c (x_own_selection):
7935         * select-x.c (x_selection_exists_p):
7936         * select-x.c: Added some comments about maybe using new
7937         functionality.
7938         * select-x.c (x_own_selection):
7939
7940         * specifier.c: Remove definition of Qappend (now in general.c)
7941         * specifier.c (syms_of_specifier): Remove Qappend.
7942
7943 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7944
7945         * config.h.in: Add socklen_t.
7946
7947         * s/decosf4-0.h: No special compiler flags needed or desired.
7948         In particular, undefine _BSD for DEC OSF 4.0.
7949
7950 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7951
7952         * redisplay-msw.c (msprinter_frame_output_end): Added.
7953         (console_type_create_redisplay_mswindows): Referred the above.
7954
7955         * frame.c (setup_frame_without_minibuffer): Do not create a
7956         default minibuffer frame on a printer device.
7957
7958         * frame-msw.c (apply_dc_geometry): Added.
7959         (msprinter_start_page):
7960         (msprinter_init_frame_3):
7961         (msprinter_eject_page): Use it.
7962
7963         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7964         and removed residual duplex and orientation properties.
7965
7966 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7967
7968         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7969
7970         * unexalpha.c: Remove system prototypes from C sources!
7971
7972 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7973
7974         * eval.c: Remove references to M-x edit-options in DEFUNs for
7975         `defvar' and `defconst'.
7976
7977 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7978
7979         * config.h.in: Remove SMART_INCLUDE hackery.
7980
7981         PostgreSQL hacking:
7982         * config.h.in: Don't use SMART_INCLUDE.
7983
7984         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7985         * inline.c: Simply #include "postgresql.h"
7986         * postgresql.c:
7987         - Don't use SMART_INCLUDE
7988         - Use simply "const".
7989         - Use standard doc string conventions.
7990         - Use correct type for result of PQstatus.
7991
7992 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7993
7994         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7995
7996         C++ compilation changes.
7997         * config.h.in (EXTERN_C): Define.
7998         * config.h.in (not): This is also a C++ keyword.
7999         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8000         * cm.c: Use EXTERN_C.
8001         * redisplay-tty.c: Use EXTERN_C.
8002         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8003
8004 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8005
8006         * general.c: Remove duplicate definition for Qfunction.
8007
8008 2000-07-08  Ben Wing  <ben@xemacs.org>
8009
8010         * device-msw.c (msprinter_init_device):
8011         * device-msw.c (sync_printer_with_devmode):
8012         * device-msw.c (handle_devmode_changes):
8013         * device-msw.c (print_dialog_worker):
8014         * device-msw.c (Fmsprinter_apply_settings):
8015         * device-msw.c (hash_devmode):
8016         * device-msw.c (Fmsprinter_settings_despecialize):
8017         use Qmswindows_tstr, not Qctext.
8018
8019         * vm-limit.c (check_memory_limits):
8020         avoid infinite loop printing warning messages.
8021
8022 2000-07-05  Craig Lanning  <lanning@scra.org>
8023
8024         * Makefile.in.in: Add support for including the Windows resources
8025         when building with the cygwin and mingw targets.
8026
8027         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8028         not set or not correct.
8029         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8030         (init_initial_directory): Don't try to use $PWD on the
8031         WIN32_NATIVE target.
8032
8033         * s\cygwin32.h:
8034         [[Add -mwindows to eliminate console window.]] not required --ben
8035         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8036         (MAIL_USE_POP): removed; now handled by configure.
8037
8038         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8039         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8040         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8041         (MAIL_USE_POP): removed; now handled by configure.
8042         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8043         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8044         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8045         constant string.
8046         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8047         up from <winsock.h> via systime.h.
8048         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8049         (getpagesize): from Dan Holmsand, added.
8050         Added #endif which was left dangling by Ben's mega patch; added
8051         comment to help prevent this in the future.
8052
8053         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8054
8055 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8056
8057         * console-msw.h (struct mswindows_device): Removed unnecessary
8058         cached device geometry values.
8059         Added update_tick and an accessor macro.
8060         (Lisp_Devmode): Added lrecord declaration.
8061         (struct msprinter_device): Contain devmode as a Lisp object.
8062         Added mswindows_get_selected_frame_hwnd();
8063
8064         * console.h (struct console_methods): Indentation nitpicking.
8065
8066         * device-msw.c (mswindows_init_device): Do not initialize geometry
8067         cache. Initialize update tick.
8068         (mswindows_device_system_metrics): Ask the device for its geometry.
8069         (global_free_2_maybe):
8070         (devmode_to_hglobal):
8071         (handle_printer_changes):
8072         (ensure_not_printing):
8073         (print_dialog_worker):
8074         (Fmsprinter_print_setup_dialog):
8075         (Fmsprinter_print_dialog):
8076         (plist_get_margin):
8077         (plist_set_margin):
8078         (Fmsprinter_page_setup_dialog): Added functions.
8079         (sync_printer_with_devmode):
8080         (handle_devmode_changes):
8081         (Fmsprinter_get_settings):
8082         (Fmsprinter_select_settings):
8083         (Fmsprinter_apply_settings):
8084         (allocate_devmode):
8085         (Fmsprinter_settings_copy):
8086         (Fmsprinter_settings_despecialize):
8087         (print_devmode):
8088         (finalize_devmode):
8089         (equal_devmode):
8090         (hash_devmode): Added functions
8091         (syms_of_device_mswindows): Init devmode lrecord class.
8092
8093         * device.h: Added an exfun for find-device.
8094
8095         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8096         geometry; although, recreate the device compatible DC.
8097
8098         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8099         (msprinter_init_frame_3):
8100         (msprinter_frame_property):
8101         (msprinter_internal_frame_property_p):
8102         (msprinter_frame_properties):
8103         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8104         print job properties (will move to device settings).
8105
8106         * lisp.h: Added symbols.
8107
8108         * general.c (syms_of_general): Declared them.
8109
8110         * hash.c (string_hash): Added.
8111
8112         * lrecord.h (lrecord_type): Added devmode lrecord type.
8113
8114 2000-07-02  Mike Sperber <mike@xemacs.org>
8115
8116         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8117         FreeBSD 4.0.
8118
8119 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8120
8121         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8122         integer.
8123
8124 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8125
8126         * data.c (Fstring_to_number): Don't recognize floating point if
8127         base is not 10.
8128
8129 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8130
8131         * glyphs-widget.c (tab_control_query_geometry):
8132         (widget_query_geometry):
8133         (button_query_geometry):
8134         * glyphs.c (text_query_geometry):
8135         Enforce type correctness.
8136
8137 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8138
8139         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8140         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8141
8142 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8143
8144         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8145         conflicts with gcc's fixincluded version of FOO.h.
8146
8147         * glyphs.h (image_instance_geometry): Remove trailing `,'
8148
8149 2000-06-08  Mike Alexander  <mta@arbortext.com>
8150
8151         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8152         (shove_thread): Don't write the same output twice
8153         (make_ntpipe_output_stream): Increase priority of shove thread
8154         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8155         chance to run
8156         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8157         it.
8158
8159 2000-06-12  Ben Wing  <ben@xemacs.org>
8160
8161         * s\mingw32.h (sigset):
8162         * s\windowsnt.h (sigset):
8163         rename msw_ to mswindows_ for consistency with general convention.
8164
8165 2000-06-12  Ben Wing  <ben@xemacs.org>
8166
8167         * console-msw.c:
8168         * console-msw.c (mswindows_get_console_hwnd):
8169         * console-msw.c (mswindows_ensure_console_allocated):
8170         * console-msw.c (mswindows_hide_console):
8171         * console-msw.c (mswindows_show_console):
8172         * console-msw.c (mswindows_ensure_console_buffered):
8173         * console-msw.c (mswindows_output_console_string):
8174         * console-msw.c (mswindows_windows9x_p):
8175         * console-msw.h:
8176         * device-msw.c (mswindows_get_workspace_coords):
8177         * device-msw.c (mswindows_device_system_metrics):
8178         * dialog-msw.c (mswindows_popup_dialog_box):
8179         * event-msw.c (mswindows_wnd_proc):
8180         * frame-msw.c (mswindows_size_frame_internal):
8181         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8182         * menubar-msw.c (displayable_menu_item):
8183         * menubar-msw.c (mswindows_char_is_accelerator):
8184         * nt.c:
8185         * nt.c (mswindows_sigset):
8186         * nt.c (mswindows_sigrelse):
8187         * nt.c (mswindows_sigpause):
8188         * nt.c (mswindows_raise):
8189         * nt.c (timer_proc):
8190         * ntproc.c:
8191         * ntproc.c (find_child_console):
8192         * ntproc.c (sys_kill):
8193         * print.c:
8194         * print.c (std_handle_out_external):
8195         * process-nt.c (find_child_console):
8196         * process-nt.c (send_signal_the_95_way):
8197         * process-nt.c (ensure_console_window_exists):
8198         * process-nt.c (nt_create_process):
8199         * syssignal.h:
8200         rename msw_ to mswindows_ for consistency with general convention.
8201
8202         * emacs.c:
8203         * dumper.c:
8204         include nt.h, not syswindows.h.
8205
8206         * nt.c (mswindows_fstat):
8207         * nt.c (mswindows_stat):
8208         prefix mswindows_ instead of attempting to directly override the
8209         library functions.  fix declarations.
8210
8211         * nt.h:
8212         include syswindows.h.  move some sysdep.h stuff here.
8213
8214         * ntheap.h:
8215         include syswindows.h, not <windows.h>.
8216
8217         * ntplay.c:
8218         clean up headers.
8219
8220         * sysdep.c:
8221         clean up headers.
8222
8223         * sysdep.c (sys_fstat):
8224         * sysdep.c (sys_stat):
8225         call mswindows versions when appropriate.
8226
8227         * sysdep.h:
8228         move mswin decls to nt.h.
8229
8230         * syswindows.h:
8231         add long comment describing appropriate use of the various windows
8232         headers.
8233
8234 2000-06-11  Ben Wing  <ben@xemacs.org>
8235
8236         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8237
8238 2000-06-10  Ben Wing  <ben@xemacs.org>
8239
8240         * Makefile.in.in (release):
8241         Correction to make sure xemacs.exe always dumped when correct.
8242
8243         * alloca.c:
8244         * balloon_help.c:
8245         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8246
8247         * buffer.c (set_buffer_internal):
8248         [[[[2]]]]: Remove HAVE_FEP code.
8249
8250         * buffer.c (init_initial_directory):
8251         [3].
8252
8253         * bytecode.c:
8254         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8255         individual files.
8256
8257         * callproc.c:
8258         * callproc.c (call_process_cleanup):
8259         * callproc.c (Fold_call_process_internal):
8260         * callproc.c (child_setup):
8261         * callproc.c (getenv_internal):
8262         * callproc.c (init_callproc):
8263         * callproc.c (vars_of_callproc):
8264         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8265         __CYGWIN32__ -> CYGWIN.
8266         DOS_NT -> WIN32_NATIVE.
8267         Remove MSDOS support/references, converting to WIN32_NATIVE
8268           where correct.
8269         __MINGW32__ -> MINGW.
8270         Fix windows.h includes.
8271         Remove bogus HAVE_NTGUI.
8272
8273         * config.h.in:
8274         [2].
8275
8276         * console-msw.c:
8277         mswindows_message_outputted added for use in allowing startup
8278         errors on the console to be seen.
8279
8280         * console-msw.c (msw_ensure_console_allocated):
8281         * console-msw.c (msw_output_console_string):
8282         * console-msw.c (DHEADER):
8283         * console-msw.c (DOPAQUE_DATA):
8284         * console-msw.c (DEVENT):
8285         * console-msw.c (DCONS):
8286         * console-msw.c (DCONSCDR):
8287         * console-msw.c (DSTRING):
8288         * console-msw.c (DVECTOR):
8289         * console-msw.c (DSYMBOL):
8290         * console-msw.c (DSYMNAME):
8291         Fix warnings.
8292
8293         * console-stream.c (stream_init_console):
8294         Fix text/binary problems.
8295
8296         * device-msw.c:
8297         * device-msw.c (mswindows_finish_init_device):
8298         * device-msw.c (mswindows_delete_device):
8299         [1].
8300
8301         * device.c (handle_asynch_device_change):
8302         [3].
8303
8304         * dgif_lib.c:
8305         * dgif_lib.c (DGifOpenFileName):
8306         * dgif_lib.c (DGifOpenFileHandle):
8307         * dgif_lib.c (DGifGetLine):
8308         * dgif_lib.c (DGifGetPixel):
8309         Added config.h/lisp.h, fix up includes.
8310         [1].
8311
8312         * dired-msw.c:
8313         [4].
8314
8315         * dired.c:
8316         * dired.c (file_name_completion):
8317         * dired.c (Ffile_attributes):
8318         * dired.c (syms_of_dired):
8319         [1].
8320
8321         * dumper.c:
8322         * dumper.c (pdump_file_unmap):
8323         * dumper.c (pdump_load):
8324         [1].
8325
8326         * editfns.c:
8327         * editfns.c (Ftemp_directory):
8328         * editfns.c (user_login_name):
8329         * editfns.c (Fuser_real_login_name):
8330         * editfns.c (get_home_directory):
8331         [1].
8332
8333         * elhash.c (finish_marking_weak_hash_tables):
8334         [[[[5]]]]: Fix GCC warnings.
8335
8336         * emacs.c:
8337         * emacs.c (mswindows_handle_hardware_exceptions):
8338         * emacs.c (make_arg_list_1):
8339         * emacs.c (main_1):
8340         * emacs.c (Fkill_emacs):
8341         * emacs.c (Fdump_emacs):
8342         [1].
8343         Fix problems with nested crashes, add long comment.
8344
8345         * event-Xt.c (init_event_Xt_late):
8346         [1].
8347
8348         * event-msw.c:
8349         * event-msw.c (mswindows_dde_callback):
8350         * event-msw.c (mswindows_handle_sticky_modifiers):
8351         * event-msw.c (mswindows_wnd_proc):
8352         [1].
8353         [5].
8354
8355         * events.c (character_to_event):
8356         [1].
8357
8358         * fileio.c:
8359         * fileio.c (Ffile_name_directory):
8360         * fileio.c (Ffile_name_nondirectory):
8361         * fileio.c (directory_file_name):
8362         * fileio.c (Fexpand_file_name):
8363         * fileio.c (Fsubstitute_in_file_name):
8364         * fileio.c (Ffile_name_absolute_p):
8365         * fileio.c (check_executable):
8366         * fileio.c (Ffile_readable_p):
8367         * fileio.c (Ffile_accessible_directory_p):
8368         * fileio.c (Ffile_modes):
8369         * fileio.c (Funix_sync):
8370         * fileio.c (vars_of_fileio):
8371         [1]. [4].
8372
8373         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8374
8375         Expand getdefdir defn.
8376         Fix bogus rename() comment.
8377
8378         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8379         to use standard XEmacs include files, e.g. sysfile.h, rather
8380         than system-specific includes.
8381
8382         * fns.c:
8383         * fns.c (Fsubseq):
8384         [5]. [6].
8385
8386         * frame.c (vars_of_frame):
8387         [1].
8388
8389         * getloadavg.c:
8390         * getloadavg.c (getloadavg):
8391         [1]. [6].
8392         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8393         (We don't use it elsewhere in the code; just add a comment.)
8394
8395         * gif_io.c:
8396         [6].
8397         Add config.h.
8398
8399         * glyphs-msw.c:
8400         * glyphs-msw.c (mswindows_resource_instantiate):
8401         [1].
8402
8403         * glyphs-x.c (x_native_layout_instantiate):
8404         [5].
8405
8406         * gui-msw.c (Fmswindows_shell_execute):
8407         [1].
8408
8409         * insdel.c:
8410         [4].
8411
8412         * lisp.h:
8413         [4]. [5].
8414
8415         * lread.c (locate_file_in_directory_mapper):
8416         [1].
8417
8418         * lstream.c:
8419         [4].
8420
8421         * mem-limits.h:
8422         * mem-limits.h (get_lim_data):
8423         [1].
8424
8425         * menubar-msw.c:
8426         [4].
8427
8428         * ndir.h:
8429         [1].
8430
8431         * nt.c:
8432         * nt.c (getwd):
8433         * nt.c (closedir):
8434         * nt.c (rva_to_section):
8435         * nt.c (mswindows_executable_type):
8436         [1]. [6].
8437         Fix closedir() defn.
8438
8439         * nt.h:
8440         [[[[8]]]]: *_OK defs moved to sysfile.h.
8441
8442         * ntproc.c:
8443         [6]. [7].
8444
8445         * objects-x.c:
8446         [4].
8447
8448         * print.c:
8449         * print.c (std_handle_out_external):
8450         [1]. [4].
8451
8452         * process-nt.c:
8453         * process-nt.c (nt_create_process):
8454         [6].
8455         try to fix process quoting somewhat.
8456
8457         * process-unix.c (unix_create_process):
8458         [1].
8459
8460         * process.c:
8461         * process.c (vars_of_process):
8462         Add Vnull_device.
8463
8464         * process.h:
8465         [1].
8466
8467         * realpath.c:
8468         * realpath.c (xrealpath):
8469         [1].
8470
8471         * redisplay-tty.c (init_tty_for_redisplay):
8472         [3].
8473
8474         * redisplay.c:
8475         [4]. [6].
8476
8477         * scrollbar-msw.c:
8478         [4].
8479
8480         * sheap.c:
8481         * sheap.c (more_static_core):
8482         * sheap.c (report_sheap_usage):
8483         [5]. [6].
8484
8485         * signal.c:
8486         * signal.c (alarm_signal):
8487         [1]. [6].
8488
8489         * sound.c:
8490         [6].
8491
8492         * strftime.c:
8493         * strftime.c (zone_name):
8494         [1]. [5].
8495
8496         * symsinit.h (init_sunpro):
8497         [1].
8498
8499         * syscommctrl.h:
8500         commctrl.h not in Cygwin b20.1.
8501
8502         * sysdep.c:
8503         * sysdep.c (endif):
8504         * sysdep.c (sys_subshell):
8505         * sysdep.c (init_baud_rate):
8506         * sysdep.c (emacs_get_tty):
8507         * sysdep.c (emacs_set_tty):
8508         * sysdep.c (tty_init_sys_modes_on_device):
8509         * sysdep.c (init_system_name):
8510         * sysdep.c (sys_open):
8511         * sysdep.c (interruptible_open):
8512         * sysdep.c (sys_fopen):
8513         * sysdep.c (sys_mkdir):
8514         * sysdep.c (sys_rename):
8515         * sysdep.c (get_process_times_1):
8516         [1]. [6].
8517
8518         * sysdep.h:
8519         [1].
8520
8521         * sysdir.h:
8522         * sysdir.h (DIRENTRY_NONEMPTY):
8523         [1]. [6].
8524
8525         * sysdll.c (dll_init):
8526         * sysdll.h:
8527         [1].
8528
8529         * sysfile.h:
8530         [1]. [6]. [8].
8531         added text/binary defs.
8532
8533         * sysfloat.h:
8534         [1].
8535
8536         * sysproc.h:
8537         * sysproc.h (EDESTADDRREQ):
8538         * sysproc.h (poll_fds_for_input):
8539         [1]. [6].
8540
8541         * syspwd.h:
8542         [6].
8543
8544         * syssignal.h:
8545         [1].
8546
8547         * systime.h:
8548         [1]. [6].
8549
8550         * systty.h:
8551         [1].
8552
8553         * syswindows.h:
8554         [1].
8555         Always define WIN32_LEAN_AND_MEAN.
8556
8557         * unexcw.c (unexec):
8558         [5].
8559
8560         * unexec.c:
8561         * unexec.c (copy_text_and_data):
8562         * unexec.c (adjust_lnnoptrs):
8563         [1].
8564
8565         * unexnt.c:
8566         * unexnt.c (_start):
8567         [1].
8568
8569 2000-06-07  Ben Wing  <ben@xemacs.org>
8570
8571         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8572         was used only as a model.  We've long since extracted any useful
8573         logic or code out of this. (I just did an exhaustive search.)
8574
8575         * s\msdos.h: Removed.
8576
8577         * s\windows95.h: Removed.
8578
8579 2000-06-10  Ben Wing  <ben@xemacs.org>
8580
8581         * s\cygwin32.h:
8582         [1]. [5].
8583         Don't use extern with fun defs.
8584
8585         * s\mingw32.h:
8586         [1]. [7].
8587         Remove nt\inc include.
8588         Remove getdisk, getdefdir. (The former is unused, the latter
8589         expanded in fileio.h.)
8590
8591         * s\windowsnt.h:
8592         * s\windowsnt.h (WIN32_NATIVE):
8593         * s\windowsnt.h (HAVE_STRCASECMP):
8594         [1]. [7].
8595         Add long comment about preprocessor changes.
8596         Remove getdisk, getdefdir. (The former is unused, the latter
8597         expanded in fileio.h.)
8598
8599 2000-06-10  Ben Wing  <ben@xemacs.org>
8600
8601         * m\arm.h:
8602         * m\delta.h:
8603         * m\intel386.h:
8604         * m\sequent.h:
8605         * m\template.h:
8606         * m\windowsnt.h:
8607         [1].
8608         Remove bogus/unused NO_SOCK_SIGIO.
8609
8610 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8611
8612         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8613         not an Emchar.
8614
8615 2000-06-04  Mike Sperber <mike@xemacs.org>
8616
8617         * casetab.c (set_case_table): For `set-standard-case-table',
8618         actually deposit the new case tables where the rest of XEmacs can
8619         see them.
8620
8621 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8622
8623         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8624
8625 2000-06-05  Ben Wing  <ben@xemacs.org>
8626
8627         * callproc.c (child_setup): Don't do close_load_descs() under
8628         MS Windows.  Put in a comment explaining why.
8629
8630 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8631
8632         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8633         Toolkit shell" which breaks `kill-compilation' on Windows NT
8634         native, retaining STDERR handling improvements.
8635
8636 2000-06-01  Andreas Jaeger  <aj@suse.de>
8637
8638         * s/s390.h: Support for S390, based on a patch by Martin
8639         Schwidefsky <schwidefsky@de.ibm.com>.
8640
8641 2000-05-30  Andy Piper  <andy@xemacs.org>
8642
8643         * window.c (allocate_window):
8644         (make_dummy_parent):
8645         (Fset_window_configuration): use new hashtable type.
8646
8647         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8648         (struct image_instantiator_methods):
8649         (struct Lisp_Image_Instance): make instance geometry signed.
8650
8651         * glyphs.c (instantiate_image_instantiator):
8652         (image_instance_query_geometry):
8653         (image_instance_layout):
8654         (image_instance_layout):
8655         (query_string_geometry):
8656         (text_query_geometry):
8657         (image_instantiate):
8658         (image_instantiate):
8659         (cache_subwindow_instance_in_frame_maybe):
8660         (subwindow_query_geometry): make instance geometry signed.
8661
8662         * glyphs-widget.c (widget_query_geometry):
8663         (widget_layout):
8664         (button_query_geometry):
8665         (tree_view_query_geometry):
8666         (tab_control_query_geometry):
8667         (layout_query_geometry):
8668         (layout_layout):
8669         (native_layout_layout): make instance geometry signed.
8670
8671 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8672
8673         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8674         constant.
8675
8676         * general.c (syms_of_general): Add Qfull_assoc symbol.
8677
8678         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8679         correctly.
8680         (decode_weak_list_type): Decode full-assoc type.
8681         (encode_weak_list_type): Encode full-assoc type.
8682         (Fmake_weak_list): Update doc string.
8683
8684 2000-05-30  Andy Piper  <andy@xemacs.org>
8685
8686         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8687
8688         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8689         (decode_hash_table_weakness): ditto.
8690         (Fhash_table_weakness): ditto.
8691         (Fhash_table_type): ditto.
8692         (finish_marking_weak_hash_tables): ditto.
8693         (hash_table_weakness_validate): ditto.
8694         (syms_of_elhash): ditto.
8695
8696 2000-05-28  Martin Buchholz <martin@xemacs.org>
8697
8698         * XEmacs 21.2.34 is released.
8699
8700 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8701
8702         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8703         start cache.
8704         (updating_line_start_cache): Gone.
8705         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8706         generic code to force a minimum of 1 line laid out in the
8707         CMOTION_DISP case.
8708
8709 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8710
8711         * glyphs.c (instantiate_image_instantiator): Check for initialized
8712         height & width no longer special cases IMAGE_NOTHING.
8713         (nothing_instantiate): Set height and width of instance.
8714
8715 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8716
8717         * unexelf.c (unexec): Search for ".data" section.
8718         Initialize new_data2_offset from old_data_index.
8719         Remove redundant check for ElfW.
8720
8721 2000-05-23  Andy Piper  <andy@xemacs.org>
8722
8723         * glyphs.c (get_image_instantiator_governing_domain): allow more
8724         specific domains as the governing domain rather than expecting an
8725         exact match. This fixes problems with layouts.
8726
8727 2000-05-22  Andy Piper  <andy@xemacs.org>
8728
8729         * redisplay-output.c (compare_runes): check for non-images
8730
8731         * glyphs.c (set_glyph_dirty_p): ditto.
8732         (update_glyph_cachel_data): ditto.
8733
8734         * glyphs-widget.c (layout_post_instantiate): ditto.
8735         (layout_post_instantiate): ditto.
8736
8737         * event-msw.c (mswindows_wnd_proc): warning removal.
8738
8739 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8740
8741         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8742
8743         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8744
8745         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8746
8747         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8748         (mswindows_executable_type): mingw32 now has enough headers for
8749         this to work.
8750
8751 2000-05-20  Andy Piper  <andy@xemacs.org>
8752
8753         * console-msw.c (mswindows_output_last_error): ; -> ,
8754
8755 2000-05-12  Andy Piper  <andy@xemacs.org>
8756
8757         * console-msw.c (FROB): compare ints with ints.
8758
8759 2000-05-11  Andy Piper  <andy@xemacs.org>
8760
8761         * glyphs-x.c (x_finalize_image_instance): make minimal build
8762         happy.
8763
8764 2000-05-20  Ben Wing  <ben@xemacs.org>
8765
8766         * event-Xt.c:
8767         * event-Xt.c (vars_of_event_Xt):
8768         move modifier-keys-are-sticky to event-stream.c.
8769
8770         * event-msw.c:
8771         * event-msw.c (mswindows_enqueue_mouse_button_event):
8772         * event-msw.c (key_needs_default_processing_p):
8773         * event-msw.c (XEMSW_LCONTROL):
8774         * event-msw.c (mswindows_handle_sticky_modifiers):
8775         * event-msw.c (FROB):
8776         * event-msw.c (clear_sticky_modifiers):
8777         * event-msw.c (output_modifier_keyboard_state):
8778         * event-msw.c (output_alt_keyboard_state):
8779         * event-msw.c (mswindows_wnd_proc):
8780         * event-msw.c (mswindows_modifier_state):
8781         * event-msw.c (emacs_mswindows_handle_magic_event):
8782         implement sticky modifiers.
8783
8784         * event-stream.c:
8785         * event-stream.c (vars_of_event_stream):
8786         move modifier-keys-are-sticky here.
8787
8788         * lisp.h:
8789         add CHECK_FUNCTION.
8790
8791         * rangetab.c:
8792         implement map-range-table.
8793
8794
8795 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8796
8797         * redisplay-tty.c (reset_tty_modes):
8798         (tty_redisplay_shutdown): Adjust argument type to
8799         tty_frame_output_end.
8800
8801 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8802
8803         * eval.c (Fbacktrace): Don't output a line with only right
8804         parenthesis.
8805
8806 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8807
8808         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8809         (Fpq_reset_poll): Ditto.
8810
8811 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8812
8813         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8814
8815 2000-05-16  Ben Wing  <ben@xemacs.org>
8816
8817         * buffer.c:
8818         * buffer.c (dfc_convert_to/from_internal_format):
8819         * buffer.c (reinit_vars_of_buffer):
8820         Fix conversion functions to allow reentrancy.
8821
8822         * console-msw.c:
8823         * console-msw.c (mswindows_output_last_error):
8824         New fun, generally useful -- output a human-readable
8825         version of GetLastError() on the console.
8826
8827         * console-msw.h:
8828         * console-msw.h (struct mswindows_frame):
8829         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8830
8831         * console-stream.c (stream_output_begin):
8832         * console-stream.c (stream_output_end):
8833         * console-stream.c (stream_output_vertical_divider):
8834         * console-stream.c (stream_clear_region):
8835         * console-stream.c (stream_flash):
8836         * console-stream.c (console_type_create_stream):
8837         Delete blank stream methods, not needed.
8838
8839         * console.h (struct console_methods):
8840         Split begin/end methods into window and frame.
8841
8842         * event-msw.c:
8843         * event-msw.c (mswindows_handle_paint):
8844         * event-msw.c (output_alt_keyboard_state):
8845         * event-msw.c (mswindows_wnd_proc):
8846         * event-msw.c (vars_of_event_mswindows):
8847         Comment about problems with ignored-expose.
8848         Define mswindows-debug-events; not really implemented.
8849
8850         * frame-msw.c (mswindows_init_frame_1):
8851         random cleanups.
8852
8853         * glyphs-msw.c:
8854         * glyphs-msw.c (begin_defer_window_pos):
8855         * glyphs-msw.c (mswindows_unmap_subwindow):
8856         * glyphs-msw.c (mswindows_map_subwindow):
8857         * glyphs-msw.c (mswindows_resize_subwindow):
8858         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8859
8860         * glyphs.c (make_image_instance_1):
8861         Fix crash.
8862
8863         * gutter.c (Fredisplay_gutter_area):
8864         Use new begin/end methods.
8865
8866         * lisp.h (Dynarr_new2):
8867         New creation fun.
8868
8869         * redisplay-msw.c:
8870         * redisplay-msw.c (mswindows_frame_output_begin):
8871         * redisplay-msw.c (mswindows_frame_output_end):
8872         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8873         New begin/end methods -- handle DeferWindowPos.
8874
8875         * redisplay-output.c (redisplay_move_cursor):
8876         * redisplay-output.c (redraw_cursor_in_window):
8877         * redisplay-output.c (redisplay_update_line):
8878         * redisplay-output.c (redisplay_output_window):
8879         New begin/end methods.
8880
8881         * redisplay-tty.c:
8882         * redisplay-tty.c (tty_frame_output_begin):
8883         * redisplay-tty.c (tty_frame_output_end):
8884         * redisplay-tty.c (console_type_create_redisplay_tty):
8885         New begin/end methods.
8886
8887         * redisplay-x.c:
8888         * redisplay-x.c (x_window_output_begin):
8889         * redisplay-x.c (x_window_output_end):
8890         * redisplay-x.c (console_type_create_redisplay_x):
8891         New begin/end methods.
8892
8893         * redisplay.c (redisplay_frame):
8894         * redisplay.c (Fredisplay_echo_area):
8895         New begin/end methods.
8896         use MAYBE_DEVMETH for clear_frame; it may not exist.
8897
8898         * window.h (WINDOW_XFRAME):
8899         WINDOW_XFOO macros -- get locale and decode struct pointer.
8900
8901
8902 2000-05-12  Ben Wing  <ben@xemacs.org>
8903
8904         * emacs.c:
8905         * emacs.c (ensure_no_quitting_from_now_on):
8906         * emacs.c (fatal_error_signal):
8907         * emacs.c (mswindows_handle_hardware_exceptions):
8908         * emacs.c (main):
8909         * emacs.c (Fkill_emacs):
8910         * emacs.c (shut_down_emacs):
8911         * emacs.c (assert_failed):
8912         various improvements in fatal error handling.
8913
8914         * eval.c:
8915         move preparing_for_armageddon to emacs.c.
8916
8917         * lisp.h:
8918         declare fatal_error_in_progress.
8919
8920         * print.c:
8921         * print.c (std_handle_out_external):
8922         * print.c (std_handle_out_va):
8923         * print.c (stderr_out):
8924         * print.c (stdout_out):
8925         use console under mswin when no standard output.
8926         don't do code conversion during fatal error.
8927
8928         * scrollbar.c (Fscrollbar_page_up):
8929         * scrollbar.c (Fscrollbar_page_down):
8930         fix missing else.  reindent.
8931
8932 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8933
8934         Emergency fix.
8935
8936         * glyphs.h (GLYPH_CACHEL_DESCENT):
8937         (GLYPH_CACHEL_DESCENT):
8938         (GLYPH_CACHEL_DESCENT):
8939         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8940         used in case these are inline functions.
8941         Use more absurd values to error check.
8942
8943         include window.h for error check functions.
8944
8945 2000-05-11  Ben Wing  <ben@xemacs.org>
8946
8947         * cmdloop.c (Freally_early_error_handler):
8948         Display message box under windows; otherwise, message will disappear
8949         before it can be viewed.
8950
8951         * console-msw.c:
8952         * console-msw.c (Fmswindows_message_box):
8953         * console-msw.c (FROB):
8954         * console-msw.c (syms_of_console_mswindows):
8955         Define new fun `mswindows-message-box'.
8956         #### I will merge this into `popup-dialog-box'; just give me
8957         a bit of time.
8958
8959         * general.c:
8960         * general.c (syms_of_general):
8961         Some new symbols used in `mswindows-message-box'.
8962
8963         * glyphs.c:
8964         * glyphs.c (Fset_image_instance_property):
8965         put warning in this fun.
8966
8967         * glyphs.h:
8968         * glyphs.h (GLYPH_CACHEL_WIDTH):
8969         * glyphs.h (GLYPH_CACHEL_ASCENT):
8970         * glyphs.h (GLYPH_CACHEL):
8971         * glyphs.h (GLYPH_CACHEL_GLYPH):
8972         define error-checking versions to try to catch a bug i've seen --
8973         redisplay gets in an infinite loop because the glyph width of the
8974         continuation glyph is 65535.
8975
8976         * lisp.h:
8977         Extern message-box stuff.
8978
8979         * window.c (allocate_window):
8980         * window.c (make_dummy_parent):
8981         * window.c (Fset_window_configuration):
8982         Use EQUAL not EQ for subwindow caches to make them work a bit
8983         better. (Something is still very broken.)
8984
8985
8986 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8987
8988         * glyphs.c (image_instantiate): Suppress gcc warnings.
8989         (Fmake_image_instance): Fix doc string.
8990         * specifier.c (Fmake_specifier): Ditto.
8991
8992 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8993
8994         * paths.h.in (PATH_LOCK): Removed.
8995         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8996         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8997
8998 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8999
9000         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9001         Document (featurep '(and xemacs 21.02)).
9002
9003 2000-05-09  Ben Wing  <ben@xemacs.org>
9004
9005         * buffer.c (complex_vars_of_buffer):
9006         update modeline-format doc.
9007
9008         * device.h:
9009         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9010
9011         * emacs.c:
9012         timeline of all released versions of Emacs, for use in creating
9013         authorship comments and in synching up.
9014
9015         * glyphs-widget.c (image_instantiator_buttons):
9016         * glyphs-widget.c (image_instantiator_edit_fields):
9017         * glyphs-widget.c (image_instantiator_combo_box):
9018         * glyphs-widget.c (image_instantiator_scrollbar):
9019         * glyphs-widget.c (image_instantiator_progress_guage):
9020         * glyphs-widget.c (image_instantiator_tree_view):
9021         * glyphs-widget.c (image_instantiator_tab_control):
9022         * glyphs-widget.c (image_instantiator_labels):
9023         * glyphs-widget.c (image_instantiator_layout):
9024         * glyphs-widget.c (image_instantiator_native_layout):
9025         rename decode_domain method to governing_domain.
9026
9027         * glyphs.c:
9028         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9029         * glyphs.c (add_entry_to_device_ii_format_list):
9030         make sure we don't put an entry more than once into the list.
9031         * glyphs.c (check_instance_cache_mapper):
9032         *************************************************************
9033         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9034         HAVE BEEN GETTING.
9035         *************************************************************
9036         * glyphs.c (get_image_instantiator_governing_domain):
9037         clean up, expand on new concept of governing domain.
9038         * glyphs.c (instantiate_image_instantiator):
9039         * glyphs.c (allocate_image_instance):
9040         use governing_domain instead of cache_domain in naming.
9041         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9042         * glyphs.c (make_image_instance_1):
9043         * glyphs.c (Fmake_image_instance):
9044         allow for any domain (not just device), and process the
9045         governing domain correctly.  very big doc fix.
9046         * glyphs.c (Fimage_instance_domain):
9047         new primitive, to retrieve the governing domain of an image instance.
9048         * glyphs.c (image_instantiate):
9049         use new governing_domain stuff.  this fixes a crash you could get
9050         by instantiating certain widget glyphs in frame locales. (should
9051         signal an error instead of crashing.)
9052         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9053         * glyphs.c (Fglyphp): clean up doc.
9054         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9055         * glyphs.c (syms_of_glyphs):
9056         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9057         * glyphs.c (image_instantiator_format_create): add some comments about
9058         bogus code.
9059         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9060         for current-display-table. (Apparently Hrjove implemented in 1998 a
9061         design I wrote up in 1996, but didn't update the doc string.)
9062
9063         * glyphs.h: clean up a doc string.
9064         * glyphs.h (governing_domain):
9065         * glyphs.h (struct image_instantiator_methods):
9066         changes for governing_domain stuff.
9067
9068         * gutter.c:
9069         * gutter.c (Fgutter_specifier_p):
9070         * gutter.c (Fgutter_size_specifier_p):
9071         * gutter.c (Fgutter_visible_specifier_p):
9072         * objects.c:
9073         * objects.c (Fcolor_specifier_p):
9074         * objects.c (Ffont_specifier_p):
9075         * objects.c (Fface_boolean_specifier_p):
9076         doc strings moved to make-*-specifier.
9077
9078         * redisplay.c (add_disp_table_entry_runes_1):
9079         * redisplay.c (generate_fstring_runes):
9080         * redisplay.c (screen):
9081         add random comments and doc strings.
9082
9083         * specifier.c:
9084         * specifier.c (Fmake_specifier):
9085         major overhaul of this doc string.
9086
9087         * specifier.c (Fvalid_specifier_domain_p):
9088         comment about the bogosity of image instances being domains.
9089         * specifier.c (decode_domain):
9090         now non-static, used in glyphs.c.
9091         * specifier.c (specifier_instance):
9092         comment about the bogosity of image instances being domains.
9093         * specifier.c (Fgeneric_specifier_p):
9094         move doc string to make-generic-specifier.
9095         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9096         rebackslashify.
9097
9098         * specifier.h:
9099         * specifier.h (DOMAIN_FRAME):
9100         * specifier.h (DOMAIN_LIVE_P):
9101         * specifier.h (DOMAIN_XDEVICE):
9102         rebackslashify.
9103         add comments about problems with these macros.
9104         prototype for decode_domain.
9105
9106         * toolbar.c:
9107         * toolbar.c (Ftoolbar_specifier_p):
9108         move doc string to `make-toolbar-specifier'.
9109
9110         * window.c (window_unmap_subwindows_cache_mapper):
9111         *************************************************************
9112         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9113         HAVE BEEN GETTING.
9114         *************************************************************
9115
9116 2000-05-09  Andy Piper  <andy@xemacs.org>
9117
9118         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9119
9120         * window.c (Fset_window_configuration): reset the frame subwindow
9121         cache and re-initialize the window subwindow caches.
9122
9123         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9124
9125 2000-05-09  Ben Wing  <ben@xemacs.org>
9126
9127         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9128         DWORD.
9129
9130 2000-04-26  Mike Woolley  <mike@bulsara.com>
9131
9132         * ntheap.c: Changed recreate_heap to limit the amount reserved
9133         for the heap to that which is actually available. Also now
9134         displays a message box (with some dignostics) in the event that
9135         it still can't start.
9136
9137 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9138
9139         * callproc.c (Fold_call_process_internal): GCPRO path
9140
9141 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9142
9143         Patch by Bill Perry.
9144
9145         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9146         back data instead of #ifdef.
9147         (Fscrollbar_page_down): ditto.
9148
9149 2000-05-07  Ben Wing  <ben@xemacs.org>
9150
9151         * buffer.h:
9152         Kludge for defining Qmswindows_tstr.
9153
9154         * nt.c:
9155         * nt.c (open_input_file):
9156         * nt.c (open_output_file):
9157         * nt.c (rva_to_section):
9158         * nt.c (mswindows_executable_type):
9159         Move all memory-mapped-file routines here (some were in unexnt.c,
9160         which is bad because they are used by process-nt.c, and unexnt
9161         won't be around when portable dumping).  Synched the above routines
9162         with FSF 20.6.
9163
9164         * nt.h:
9165         Removed ifdef'd out bogus code.
9166         Fixed some prototypes.
9167
9168         * nt.h (file_data):
9169         * nt.h (OFFSET_TO_RVA):
9170         * nt.h (RVA_TO_OFFSET):
9171         * nt.h (RVA_TO_PTR):
9172         Moved the memory-mapped-file structures, macros and prototypes
9173         here, to parallel nt.c.  ntheap.h should really be removed
9174         entirely, and it's a non-portable-dumper specific file.
9175
9176         * ntheap.h (round_to_next):
9177         Moved the memory-mapped-file structures, macros and prototypes
9178         to nt.h.
9179
9180         * ntproc.c (compare_env):
9181         Moved rva_to_section and mswindows_executable_type to nt.c.
9182         Moved compare_env to process-nt.c.
9183         ntproc.c will die, one day.
9184
9185         * ntproc.c (sys_spawnve):
9186         Account for win32_ -> mswindows_.
9187
9188         * process-nt.c:
9189         * process-nt.c (struct nt_process_data):
9190         * process-nt.c (ensure_console_window_exists):
9191         * process-nt.c (compare_env):
9192         * process-nt.c (nt_create_process):
9193         * process-nt.c (nt_kill_process_by_pid):
9194         * process-nt.c (syms_of_process_nt):
9195         * process-nt.c (vars_of_process_nt):
9196         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9197         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9198         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9199         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9200         Move compare_env here from ntproc.c.
9201
9202         * process.c (Fprocess_send_region):
9203         Takes an optional fourth argument, BUFFER, which should fix some
9204         problems with call-process.
9205
9206         * syscommctrl.h:
9207         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9208
9209         * syswindows.h:
9210         Move ICC_BAR_CLASSES to syscommctrl.h.
9211         Add preliminary macros for MSWindows/Mule.  More to come.
9212
9213         * unexnt.c:
9214         * unexnt.c (unexec):
9215         open_output_file moved to nt.c.
9216
9217
9218 2000-05-05  Andy Piper  <andy@xemacs.org>
9219
9220         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9221         instance from the frame cache also since GC may catch up too late
9222         to make frame deletion sane.
9223
9224 2000-05-04  Andy Piper  <andy@xemacs.org>
9225
9226         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9227         (x_finalize_image_instance): ungcpro on deletion.
9228
9229         * glyphs.c (image_instantiator_format_create): give pointers a
9230         query geometry method so that the geometry is at least set.
9231
9232         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9233         initialize layouts if using widgets.
9234
9235 2000-05-03  Andy Piper  <andy@xemacs.org>
9236
9237         * nt.c: remove bogus reference to sysmmsystem.h
9238
9239         * gui-x.c (popup_selection_callback): fix no selection abort.
9240
9241 2000-05-02  Andy Piper  <andy@xemacs.org>
9242
9243         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9244         (mswindows_widget_instantiate): ditto.
9245
9246         * glyphs-widget.c (initialize_widget_image_instance): initialize
9247         children correctly.
9248         (widget_instantiate): cope with children and items in the same
9249         instance.
9250
9251         * glyphs.c (mark_image_instance): cope with children as a first
9252         class member.
9253         (image_instance_equal): ditto.
9254         (image_instance_hash): ditto.
9255         (image_instance_changed): ditto.
9256
9257 2000-04-30  Andy Piper  <andy@xemacs.org>
9258
9259         * glyphs.c (subwindow_query_geometry): new function. Return some
9260         defaults.
9261         (subwindow_instantiate): don't assign dimensions if none have been
9262         given.
9263         (image_instantiator_format_create): add subwindow_query_geometry.
9264         (print_image_instance): cope with layouts as widgets.
9265
9266 2000-04-29  Andy Piper  <andy@xemacs.org>
9267
9268         * frame.c (delete_frame_internal): call
9269         free_frame_subwindow_instance_cache so that all subwindows are
9270         finalized before their parent.
9271         (mark_frame): remove subwindow_cachels.
9272         (Fmake_frame): remove subwindow_cachel manipulation.
9273         (allocate_frame_core): subwindow_instance_cache is a weak list.
9274         (delete_frame_internal): set subwindow_instance_cache to nil.
9275
9276         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9277         finalization safe.
9278         (mswindows_finalize_image_instance): use the device
9279         not the domain as the domain may have died already.
9280
9281         * glyphs-x.c (x_finalize_image_instance): ditto.
9282         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9283         HEIGHT.
9284
9285         * redisplay-output.c (redisplay_unmap_subwindows): update for
9286         subwindow instance cache as a weak list.
9287         (redisplay_unmap_subwindows_maybe): ditto.
9288         (redisplay_unmap_subwindows_except_us): ditto.
9289
9290         * glyphs.c (unmap_subwindow): error checking will check the domain
9291         so don't deal with it here. Don't use cachels anymore.
9292         (map_subwindow): ditto.
9293         (update_subwindow_cachel_data): remove old accessor names.
9294         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9295         (Fresize_subwindow): don't update cachel.
9296         (mark_subwindow_cachels):
9297         (update_subwindow_cachel_data):
9298         (add_subwindow_cachel):
9299         (get_subwindow_cachel_index):
9300         (update_subwindow_cachel):
9301         (reset_subwindow_cachels):
9302         (mark_subwindow_cachels_as_not_updated): deleted.
9303         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9304         subwindow instance to the frame cache.
9305         (find_matching_subwindow): update for subwindow instance cache as
9306         a weak list.
9307         (update_widget_instances): ditto.
9308         (image_instance_type_to_mask):inlined.
9309         (free_frame_subwindow_instance_cache): new function. finalize all
9310         subwindows that are instantiated.
9311
9312         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9313         of cachel information.
9314         (IMAGE_INSTANCE_DISPLAY_X):
9315         (IMAGE_INSTANCE_DISPLAY_Y):
9316         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9317         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9318         (XIMAGE_INSTANCE_DISPLAY_X):
9319         (XIMAGE_INSTANCE_DISPLAY_Y):
9320         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9321         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9322         remove subwindow_cachel structure and function references.
9323         (image_instance_type_to_mask): inline from glyphs.c
9324
9325         * redisplay.c (redisplay_frame): remove subwindow_cachel
9326         references.
9327
9328         * frame.h (struct frame): remove subwindow_cachels.
9329         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9330
9331         * frameslots.h: add subwindow_instance_cache.
9332
9333         * window.c (replace_window): check subwindow cache of replacement.
9334         (window_unmap_subwindows_cache_mapper):
9335         (window_unmap_subwindows): new functions. Unmap all subwindows
9336         cached on this window.
9337         (mark_window_as_deleted): unmap all subwindows.
9338
9339 2000-04-27  Andy Piper  <andy@xemacs.org>
9340
9341         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9342
9343         * glyphs-widget.c (widget_layout): return something.
9344         (layout_layout): return something. Fail if not initialized.
9345         (layout_query_geometry): ditto.
9346         (image_instantiator_native_layout): new function. Initialized the
9347         native layout type.
9348         (widget_instantiate): don't do layout stuff here.
9349
9350         * glyphs.c (instantiate_image_instantiator): reorded calling or
9351         instantiate and post_instantiate with layout in between.
9352         (image_instance_layout): be more selective about deciding whether
9353         the layout has been done or not.
9354
9355         * glyphs.h (struct image_instantiator_methods): return a value
9356         from layout_method.
9357
9358 2000-04-26  Andy Piper  <andy@xemacs.org>
9359
9360         * glyphs.c (allocate_image_instance): make initial width and
9361         height unspecified. Set initialized to 0.
9362
9363         * syscommctrl.h new file. Encapsulates commctrl.h.
9364
9365         * syswindows.h new file. Encapsulates windows.h.
9366
9367         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9368         * nt.c: ditto.
9369         * console-msw.h: ditto.
9370
9371         * redisplay-tty.c (tty_output_display_block): remove layout references.
9372
9373         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9374         window handle rather than just the frame.
9375
9376         * glyphs.c (mark_image_instance): remove layout references.
9377         (print_image_instance): ditto.
9378         (image_instance_equal): ditto.
9379         (image_instance_hash): ditto.
9380         (decode_image_instance_type): ditto.
9381         (encode_image_instance_type): ditto.
9382         (image_instantiate): ditto.
9383         (allocate_glyph): ditto.
9384         (Fimage_instance_height): ditto.
9385         (Fimage_instance_width): ditto.
9386         (update_subwindow): ditto.
9387
9388         * redisplay-x.c (x_output_display_block): recode for layouts as
9389         widgets.
9390
9391         * redisplay-output.c (redisplay_output_layout): recode for layouts
9392         as widgets.
9393         (compare_runes): remove layout references.
9394
9395         * redisplay-msw.c (mswindows_output_display_block): recode for
9396         layouts as widgets.
9397
9398         * glyphs-widget.c (image_instantiator_layout): remove
9399         layout_possible_dest_types.
9400         (layout_possible_dest_types): deleted.
9401
9402         * glyphs.h (image_instance_type): remove layout references.
9403         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9404         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9405         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9406
9407 2000-04-25  Andy Piper  <andy@xemacs.org>
9408
9409         * glyphs-widget.c (image_instantiator_buttons):
9410         (image_instantiator_edit_fields):
9411         (image_instantiator_combo_box):
9412         (image_instantiator_scrollbar):
9413         (image_instantiator_progress_guage):
9414         (image_instantiator_tree_view):
9415         (image_instantiator_tab_control):
9416         (image_instantiator_labels):
9417         (image_instantiator_layout): call default post_instantiate method.
9418         (widget_post_instantiate): new function. Simply lays out the
9419         widgets.
9420
9421         * glyphs.h (struct image_instantiator_methods): add
9422         post_instantiate method.
9423
9424         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9425         method calls.
9426
9427 2000-04-23  Andy Piper  <andy@xemacs.org>
9428
9429         * glyphs.h (struct image_instantiator_methods): add
9430         decode_domain_method.
9431         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9432         derived from the domain.
9433         (IMAGE_INSTANCE_FRAME): new accessor.
9434         (XIMAGE_INSTANCE_FRAME): ditto.
9435
9436         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9437         instead of _SUBWINDOW_FRAME.
9438         (finalize_image_instance): ditto.
9439         (Fimage_instance_foreground): ditto.
9440         (Fimage_instance_background): ditto.
9441         (image_instantiate): ditto.
9442         (update_subwindow_cachel): ditto.
9443         (update_subwindow): ditto.
9444         (unmap_subwindow): ditto.
9445         (map_subwindow): ditto
9446         (subwindow_instantiate): ditto.
9447         * glyphs-msw.c (mswindows_update_widget): ditto.
9448         (mswindows_progress_gauge_instantiate): ditto.
9449         (mswindows_tab_control_update): ditto.
9450         * glyphs-x.c (x_update_widget): ditto.
9451         (x_widget_instantiate): ditto.
9452         (x_tab_control_instantiate): ditto.
9453         (x_tab_control_update): ditto.
9454         * event-msw.c (mswindows_wnd_proc): ditto
9455
9456         * glyphs-widget.c (image_instantiator_layout): use
9457         subwindow_decode_domain.
9458         (image_instantiator_buttons): ditto.
9459         (image_instantiator_edit_fields): ditto.
9460         (image_instantiator_combo_box): ditto.
9461         (image_instantiator_scrollbar): ditto.
9462         (image_instantiator_progress_guage): ditto.
9463         (image_instantiator_tree_view): ditto.
9464         (image_instantiator_tab_control): ditto.
9465         (image_instantiator_labels): ditto.
9466         (image_instantiator_layout): ditto.
9467
9468         * glyphs.c: add instance error checking to many functions.
9469         (instantiate_image_instantiator): decode device from cache_domain.
9470         (image_instantiate): partially rewrite by using
9471         decode_image_instantiator_domain to determine what domain the
9472         instance needs to be cached in.
9473         (decode_image_instantiator_domain): new function. Determine what
9474         domain the image needs to be cached in.
9475         (check_window_subwindow_cache): new error checking function.
9476         (check_instance_cache_mapper): ditto.
9477         (check_image_instance_structure): ditto.
9478         (subwindow_decode_domain): new function. Encodes a window as a
9479         subwindow's cache domain.
9480         (image_instantiator_format_create): use it for text and
9481         subwindows.
9482
9483 2000-04-21  Andy Piper  <andy@xemacs.org>
9484
9485         * glyphs.c (image_instance_device): new function.
9486         (image_instance_frame): new function.
9487         (image_instance_window): new function.
9488         (image_instance_live_p): new function.
9489
9490         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9491         cache to nil.
9492
9493         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9494         (IMAGE_INSTANCE_DOMAIN): new accessor.
9495         (XIMAGE_INSTANCE_DOMAIN): ditto.
9496
9497         * glyphs-x.c (x_finalize_image_instance): device->domain.
9498
9499         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9500         (mswindows_finalize_image_instance): ditto.
9501
9502         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9503         (gif_instantiate): ditto.
9504         (png_instantiate): ditto.
9505         (tiff_instantiate): ditto.
9506
9507         * glyphs.c (instantiate_image_instantiator): use domain rather
9508         than device.
9509         (mark_image_instance): device -> domain.
9510         (print_image_instance): ditto.
9511         (finalize_image_instance): ditto.
9512         (image_instance_equal): ditto.
9513         (allocate_image_instance): ditto.
9514         (Fcolorize_image_instance): ditto.
9515         (query_string_geometry): ditto.
9516         (image_instantiate): ditto
9517         (query_string_font): ditto.
9518         (image_instantiate): ditto.
9519         (update_subwindow): ditto.
9520         (unmap_subwindow): ditto.
9521         (map_subwindow): ditto.
9522         (subwindow_instantiate): ditto.
9523
9524         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9525         (DOMAIN_FRAME): ditto.
9526         (DOMAIN_WINDOW): ditto.
9527         (DOMAIN_LIVE_P): ditto.
9528         (XDOMAIN_DEVICE): ditto.
9529         (XDOMAIN_FRAME): ditto.
9530         (XDOMAIN_WINDOW): ditto.
9531
9532         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9533         a valid specifier domain.
9534
9535 2000-04-19  Andy Piper  <andy@xemacs.org>
9536
9537         * glyphs-widget.c (syms_of_glyphs_widget): remove
9538         widget-callback-current-channel.
9539         (vars_of_glyphs_widget): ditto.
9540         * glyphs.h: ditto
9541
9542         * gui.c (get_gui_callback): revert to previous behaviour.
9543
9544 2000-04-18  Andy Piper  <andy@xemacs.org>
9545
9546         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9547         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9548         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9549
9550         * glyphs.c (image_instance_equal): add margin_width.
9551         (image_instance_hash): ditto.
9552
9553         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9554         (layout_query_geometry): ditto.
9555         (layout_layout): ditto.
9556         (syms_of_glyphs_widget): add margin-width.
9557         (image_instantiator_layout): allow margin-width.
9558
9559         * glyphs.c (update_widget_instances): make a normal function.
9560         (syms_of_glyphs): remove Qupdate_widget_instances.
9561         * glyphs.h: ditto.
9562
9563         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9564         so that we don't corrupt ideas about the last event or
9565         command. Remove widget-callback-current-channel fiddling.
9566         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9567
9568 2000-05-01  Martin Buchholz <martin@xemacs.org>
9569
9570         * XEmacs 21.2.33 is released.
9571
9572 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9573
9574         * make-src-depend: Allow dots in header file name.
9575
9576 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9577
9578         * mule-charset.h (struct charset_lookup): Add
9579         next_allocated_1_byte_leading_byte and
9580         next_allocated_2_byte_leading_byte.
9581         * mule-charset.c: Move above two variables so that those values
9582         will be dumped.
9583
9584 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9585
9586         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9587         when string length is zero.
9588         (find_charsets_in_emchar_string): Ditto.
9589
9590 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9591
9592         * lisp.h: extern Qdialog and Qmenubar.
9593
9594         * gui-x.c: added events.h.
9595                 also fixed typo which made the file uncompilable.
9596
9597         * general.c: Added Qmenubar and Qdialog
9598
9599 2000-04-28  Ben Wing  <ben@xemacs.org>
9600
9601         * frame-msw.c (mswindows_init_frame_1):
9602         * frame-msw.c (mswindows_mark_frame):
9603         * event-msw.c (mswindows_enqueue_dispatch_event):
9604         * console-msw.h:
9605         * console-msw.h (struct mswindows_frame):
9606         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9607         there are now three hash tables for callbacks.
9608         mswindows_enqueue_dispatch_event is no longer static.
9609
9610         * dialog-x.c (maybe_run_dbox_text_callback):
9611         * dialog-x.c (dbox_descriptor_to_widget_value):
9612         switch to new cons3 form for callbacks.
9613
9614         * glyphs-msw.c (mswindows_register_gui_item):
9615         * glyphs-msw.c (mswindows_widget_instantiate):
9616         * glyphs-msw.c (add_tree_item):
9617         * glyphs-msw.c (add_tab_item):
9618         new image instance parameter, so it can be passed to callback-ex.
9619         respect :callback-ex as well as :callback.
9620
9621         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9622         add :callback-ex.
9623
9624         * glyphs.c (print_image_instance):
9625         prettify, e.g. now prints widget type.
9626
9627         * gui-x.h:
9628         certain funs have new image instance parameter.
9629
9630         * gui.c:
9631         * gui.c (get_gui_callback):
9632         * gui.c (gui_item_add_keyval_pair):
9633         * gui.c (gui_item_init):
9634         * gui.c (gui_add_item_keywords_to_plist):
9635         * gui.c (mark_gui_item):
9636         * gui.c (gui_item_hash):
9637         * gui.c (gui_item_equal):
9638         * gui.c (copy_gui_item):
9639         * gui.c (syms_of_gui):
9640         recognize callback-ex in a number of places.
9641         also, fix the annoying "can't get out of yes-no dialog" bug.
9642
9643         * gui.h:
9644         * gui.h (struct Lisp_Gui_Item):
9645         recognize callback-ex in a number of places.
9646
9647         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9648         new parameter in button_item_to_widget_value.
9649
9650         * glyphs-x.c (x_update_widget):
9651         * glyphs-x.c (x_button_instantiate):
9652         * glyphs-x.c (x_button_update):
9653         * glyphs-x.c (x_progress_gauge_instantiate):
9654         * glyphs-x.c (x_edit_field_instantiate):
9655         * glyphs-x.c (x_combo_box_instantiate):
9656         * glyphs-x.c (x_tab_control_instantiate):
9657         * glyphs-x.c (x_label_instantiate):
9658         new image instance parameter in various places.
9659
9660         * event-Xt.c:
9661         * event-Xt.c (enqueue_Xt_dispatch_event):
9662         this fun gets exported.
9663
9664         * gui-msw.c:
9665         * gui-msw.c (mswindows_handle_gui_wm_command):
9666         handle both :callback and :callback-ex, and generate our own
9667         event because it's one of the callback-ex arguments.
9668
9669         * gui-x.c:
9670         * gui-x.c (popup_selection_callback):
9671         handle both :callback and :callback-ex, and generate our own
9672         event because it's one of the callback-ex arguments.
9673         * gui-x.c (button_item_to_widget_value):
9674         * gui-x.c (gui_items_to_widget_values_1):
9675         * gui-x.c (gui_item_children_to_widget_values):
9676         * gui-x.c (gui_items_to_widget_values):
9677         new image instance parameter in various places.
9678
9679         * fns.c (Freplace_list):
9680         fix small typo in doc string.
9681
9682         * lisp.h:
9683         declare enqueue_Xt_dispatch_event.
9684
9685 2000-04-28  Ben Wing  <ben@xemacs.org>
9686
9687         * buffer.c:
9688         * buffer.c (Frecord_buffer):
9689         * buffer.c (syms_of_buffer):
9690         delete record-buffer-hook.
9691
9692         * fns.c:
9693         * fns.c (Freplace_list):
9694         * fns.c (syms_of_fns):
9695         new primitive replace-list.
9696
9697         * frameslots.h:
9698         slot for old buffer-alist.
9699
9700         * lisp.h:
9701         exfun replace-list.
9702
9703         * redisplay.c:
9704         * redisplay.c (redisplay_frame):
9705         * redisplay.c (syms_of_redisplay):
9706         * redisplay.c (vars_of_redisplay):
9707         new hook buffer-list-changed-hook.
9708         call it.
9709
9710 2000-04-27  Ben Wing  <ben@xemacs.org>
9711
9712         * extents.h: extern in_modeline_generation.
9713
9714         * redisplay.c (generate_formatted_string_db): set
9715         in_modeline_generation.
9716
9717         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9718         flags if in modeline generation.  otherwise frame-modified-tick
9719         is ticked far too often.
9720         Declare in_modeline_generation.
9721
9722 2000-04-26  Ben Wing  <ben@xemacs.org>
9723
9724         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9725         option.
9726         (vars_of_emacs): add quick-build as an error-checking option.
9727         A bit kludgy, but there doesn't seem much point in creating
9728         a real var for this.
9729
9730         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9731
9732 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9733
9734         * redisplay.h (struct display_line): Add a new variable,
9735         line_continuation.
9736
9737         * redisplay.c (create_text_block): Set dl->line_continuation if
9738         the line continues.
9739         (create_string_text_block): Ditto.
9740         (regenerate_window_incrementally): Use line_continuation instead
9741         of searching continuation glyph.
9742         (add_margin_runes): Call add_glyph_rune.
9743         (add_glyph_rune): Handle margin glyph.
9744
9745 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9746
9747         * filelock.c (fill_in_lock_file_name):
9748         ANSIfy.
9749         Check for IS_ANY_SEP instead of '/'.
9750         (lock_file_1):
9751         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9752         Never check errno without first seeing that system call failed.
9753         (unlock_file): Add GCPRO.
9754         (Flock_buffer): Fix docstring.
9755         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9756
9757 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9758
9759         * sysdep.c (get_pty_max_bytes):
9760         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9761         strings longer than 252 bytes.
9762
9763         * md5.c: Unconditionally include ANSI header <limits.h>
9764
9765         * glyphs-x.c (convert_EImage_to_XImage):
9766         * lisp-union.h (union Lisp_Object):
9767         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9768
9769 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9770
9771         * filelock.c (current_lock_owner): Remove unused variable o, p.
9772
9773 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9774
9775         * callint.c: Remove multiply defined symbol Qlet
9776         (syms_of_callint): ditto.
9777
9778 2000-04-14  Andy Piper  <andy@xemacs.org>
9779
9780         * general.c (syms_of_general): add last-command, this-command, let
9781         and funcall.
9782
9783         * lisp.h: declare various symbols.
9784
9785         * glyphs.h: declare Qwidget_callback_current_channel;
9786
9787         * glyphs-widget.c (syms_of_glyphs_widget): add
9788         Qgui_callback_current_channel.
9789         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9790
9791         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9792         widget-callback-current-channel when invoking the interactive
9793         arg. Also bind last-command and next-command when invoking the
9794         widget updates.
9795         * gui-x.c (popup_selection_callback): ditto.
9796
9797         * gui.c (get_gui_callback): massage args so that we are always
9798         calling eval. This allows us to add our own variable bindings
9799         outside.
9800
9801         * glyphs-x.c (x_button_instantiate): use
9802         gui_items_to_widget_values since this is GC safe.
9803         (x_progress_gauge_instantiate): ditto.
9804         (x_edit_field_instantiate): ditto.
9805         (x_label_instantiate): ditto.
9806
9807         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9808         (emacs_Xt_event_widget_focus_out): new function
9809         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9810         focus.
9811         (emacs_Xt_event_add_widget_actions): new function. add focus
9812         functions as actions.
9813         (init_event_Xt_late): use it.
9814
9815 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9816
9817         * event-stream.c (Fdispatch_event): Doc fix.
9818
9819 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9820
9821         * postgresql.c: Remove all references to PQsetenv*.
9822
9823         * postgresql.h: Remove references to PGsetenvHandler object.
9824         * lrecord.h (lrecord_type): Ditto.
9825
9826 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9827
9828         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9829         real_heigh and real_width members, and accessor macros for these.
9830
9831         * glyphs-msw.c (init_image_instance_geometry): New function.
9832         (init_image_instance_from_dibitmap): Use it.
9833         (mswindows_resource_instantiate): Use it.
9834         (init_image_instance_from_xbm_inline): Use it.
9835         (mswindows_initialize_image_instance_mask): Use real bitmap
9836         geometry.
9837         (mswindows_create_resized_bitmap): Ditto.
9838         (mswindows_create_resized_mask): Ditto.
9839
9840         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9841         and bitmap to their surface size.
9842
9843 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9844
9845         * process-unix.c (unix_send_process): Guard against process MIA
9846         after Faccept_process_output.
9847
9848 2000-04-11  Ben Wing  <ben@xemacs.org>
9849
9850         * eval.c (unbind_to_hairy): fix brokenness introduced by
9851         nanosecond speed improvements.
9852
9853 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9854
9855         * sunplay.c (init_device): To play sounds correctly, the device
9856         apparently needs to be initialized at least once by XEmacs.  Make
9857         it so.
9858
9859 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9860
9861         * redisplay.c (add_margin_runes): Add text image glyph
9862           handling.
9863
9864 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9865
9866         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9867         gcc is newer than 2.5.
9868
9869 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9870
9871         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9872
9873         * fns.c (size_bit_vector):
9874         * alloc.c (size_vector):
9875         (make_vector_internal):
9876         (make_bit_vector_internal):
9877         (sweep_bit_vectors_1):
9878         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9879
9880 2000-04-06  Andy Piper  <andy@xemacs.org>
9881
9882         * gmalloc.c (malloc): undo previous change.
9883         (malloc): ditto.
9884         (free): ditto.
9885         (realloc): ditto.
9886
9887 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9888
9889         * line-number.c (buffer_line_number): Revert to former version.
9890
9891 2000-04-06  Andy Piper  <andy@xemacs.org>
9892
9893         * gmalloc.c (malloc): add error checking.
9894         (malloc): ditto.
9895         (free): ditto.
9896         (realloc): ditto.
9897
9898         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9899         button_item_to_widget_value arg.
9900
9901         * glyphs-x.c (x_button_instantiate): add extra
9902         button_item_to_widget_value arg.
9903         (x_progress_gauge_instantiate): ditto.
9904         (x_edit_field_instantiate): ditto.
9905         (x_label_instantiate): ditto.
9906
9907         * gui-x.c (gui_items_to_widget_values_1): add extra
9908         button_item_to_widget_value arg.
9909         (button_item_to_widget_value): add extra menu_item_p arg.
9910
9911         * gui-x.h: change signature of button_item_to_widget_value.
9912
9913         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9914         button_item_to_widget_value arg.
9915
9916 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9917
9918         * buffer.h (struct buffer): auto_save_modified should be long.
9919
9920 2000-04-05  Andy Piper  <andy@xemacs.org>
9921
9922         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9923         type.
9924         (button_query_geometry): give a little more room so that athena
9925         buttons fit.
9926
9927 2000-04-05  Andy Piper  <andy@xemacs.org>
9928
9929         * faces.c (complex_vars_of_faces): The widget face should inherit
9930         the font of the gui-element face.
9931
9932 2000-04-04  Andy Piper  <andy@xemacs.org>
9933
9934         * glyphs-x.c (x_button_update): new function. unconditionally
9935         update a button's state when the instance is dirty.
9936         (image_instantiator_format_create_glyphs_x): add x_button_update.
9937         (x_widget_instantiate): remove old resize cruft.
9938
9939 2000-04-02  Andy Piper  <andy@xemacs.org>
9940
9941         * frame.c (change_frame_size_1): The introduction of gutters means
9942         that we need to allow 0 as a potential frame dimension.
9943
9944 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9945
9946         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9947         image glyph if allow_cursor.
9948         (add_hscroll_rune): Don't allow cursor to border glyph.
9949         (create_text_block): Ditto.
9950
9951         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9952         text not in buffer.
9953         (redisplay_output_layout): Call ensure_face_cachel_complete for
9954         text image glyph.
9955
9956
9957 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9958
9959         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9960
9961         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9962         not in buffer
9963
9964         * redisplay-tty.c (tty_output_display_block): Delete the routine
9965         for text image glyph
9966         * redisplay-x.c (x_output_display_block): ditto
9967         * redisplay-msw.c (mswindows_output_display_block): ditto
9968
9969 2000-02-02  Mike Alexander  <mta@arbortext.com>
9970
9971         Note: Some of these were committed by accident as part of other
9972         patches.
9973
9974         * regex.c (regex_compile): Avoid compiler warnings.
9975
9976         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9977
9978         * nt.h: Declare term_ntproc correctly.
9979
9980         * nt.c: Remove incorrect declaration of get_home_directory which
9981         is declared correctly in lisp.h.
9982
9983         * keymap.c (get_keyelt): Avoid compiler warnings.
9984         (raw_lookup_key_mapper): Avoid compiler warnings.
9985
9986         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9987
9988         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9989
9990         * filemode.c (mode_string): Avoid compiler warnings.
9991
9992         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9993         avoid warning.
9994
9995         * events-mod.h: Undef some things that winuser.h defines differently.
9996
9997         * data.c (Faset): Avoid compiler warnings.
9998
9999         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10000
10001 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10002
10003         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10004         Fall through to simple beep on error.
10005         Replace "extern" by real header file.
10006
10007         * linuxplay.c: Use nativesound.h
10008         (play_sound_data): Return error code. Be less verbose on error.
10009
10010         * sunplay.c: Use nativesound.h
10011         (play_sound_data): Return error code. Be less verbose on error.
10012
10013         * ntplay.c: Use nativesound.h
10014         (play_sound_data): Return fake error code
10015
10016         * sgiplay.c: Use nativesound.h
10017         (play_sound_data): Return error code
10018
10019         * hpplay.c: Use nativesound.h, partially implement
10020         new error code. Break compilation until finished.
10021         (play_sound_data): error code.
10022
10023         * nativesound.h (play_sound_file):
10024           (play_sound_data): Prototype in new header.
10025
10026 2000-03-31  Andy Piper  <andy@xemacs.org>
10027
10028         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10029         for toggle and radio buttons.
10030         (image_instantiator_buttons): use it.
10031
10032 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10033
10034         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10035         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10036         found. Scrollbar event probably belonged to some old config.
10037
10038 2000-03-31  Andy Piper  <andy@xemacs.org>
10039
10040         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10041         than 1.
10042         (initialize_widget_image_instance): default layout to
10043         LAYOUT_HORIZONTAL rather than 0.
10044         (widget_instantiate): reverse the item list at the end rather than
10045         every iteration.
10046         (layout_layout): re-code for the border text at the front of the
10047         item list rather than at the end.
10048         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10049         provided by the user.
10050         (widget_query_geometry): comment.
10051
10052 2000-03-30  Andy Piper  <andy@xemacs.org>
10053
10054         * glyphs-widget.c (image_instantiator_layout): allow standard
10055         widget keywords in layouts.
10056
10057         * gutter.c (output_gutter): cope with nil gutter contents.
10058
10059         * frame.c (Fset_frame_properties): add gutter docs.
10060
10061 2000-03-29  Andy Piper  <andy@xemacs.org>
10062
10063         * toolbar-msw.c (TBSTYLE_FLAT): add.
10064         (mswindows_output_toolbar): minor fiddling.
10065
10066 2000-03-29  Andy Piper  <andy@xemacs.org>
10067
10068         * gutter.c (output_gutter): force gutter size recalculation if
10069         what we are trying to display won't fit.
10070         (update_gutter_geometry): new function. A per-gutter version of
10071         update_frame_gutter_geometry.
10072         (update_frame_gutter_geometry): use it.
10073         (redraw_exposed_gutter): add extra debugging output.
10074
10075 2000-03-28  Mike Alexander  <mta@arbortext.com>
10076
10077         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10078         (pdump_file_unmap): Implement it on Windows
10079         (pdump_file_get): Save alocated handles for pdump_file_unmap
10080
10081 2000-03-28  Andy Piper  <andy@xemacs.org>
10082
10083         * gui.c (get_gui_callback): treat Quit specially.
10084
10085 2000-03-27  Andy Piper  <andy@xemacs.org>
10086
10087         * glyphs.c (image_instantiate): be careful to check in the same
10088         way we assigned.
10089
10090 2000-03-27  Didier Verna  <didier@xemacs.org>
10091
10092         * config.h.in: define the proper SMART_INCLUDE macro.
10093         handle renaming of `foo_h_path' to `foo_h_file'.
10094
10095         * database.c: ditto.
10096
10097         * emacs.c: ditto.
10098
10099         * linuxplay.c: ditto.
10100
10101         * terminfo.c: ditto.
10102
10103         * tooltalk.h: ditto.
10104
10105 2000-03-27  Andy Piper  <andy@xemacs.org>
10106
10107         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10108         gets updated whenever the face might have changed.
10109
10110 2000-03-26  Mike Alexander  <mta@arbortext.com>
10111
10112         * dumper.c (pdump_resource_free): Fix the comment.
10113
10114 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10115
10116         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10117
10118 2000-03-22  Mike Alexander  <mta@arbortext.com>
10119
10120         * dumper.c: Include Windows headers on Windows
10121         (pdump_resource_free): Add a body to the function
10122         (pdump_load): exe_name -> exe_path and add some comments.
10123
10124 2000-03-25  Mike Alexander  <mta@arbortext.com>
10125
10126         * gui.c (copy_gui_item_tree): Return a value in all cases
10127
10128 2000-03-21  Didier Verna  <didier@xemacs.org>
10129
10130         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10131         lwlib/config.h.in.
10132         (SMART_INCLUDE): new macro.
10133         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10134         the proper location.
10135
10136         * postgresql.c: use it.
10137
10138         * inline.c: ditto.
10139
10140 2000-03-24  Andy Piper  <andy@xemacs.org>
10141
10142         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10143         do this.
10144
10145 2000-03-24  Andy Piper  <andy@xemacs.org>
10146
10147         * redisplay-output.c (compare_runes): use image_instance_changed
10148         to detect changes. Do not depend on glyphs_changed, only depend on
10149         dirtiness.
10150          (redisplay_output_layout): add debug messages.
10151         (compare_runes): ditto.
10152
10153         * glyphs.h: declare new functions.
10154         (struct Lisp_Image_Instance): remove percent and associated
10155         accessors.
10156
10157         * gui.h: declare new copying functions.
10158
10159         * gui.c (copy_gui_item_tree): new function.
10160         (copy_gui_item): new function.
10161         (gui_item_id_hash): revert to standard hash.
10162         (gui_item_hash): ditto.
10163         (gui_item_hash_internal): deleted.
10164         (mark_gui_item): mark value.
10165         (gui_item_add_keyval_pair): add value.
10166         (gui_item_init): ditto.
10167         (gui_add_item_keywords_to_plist): ditto.
10168         (gui_item_equal): ditto.
10169         (syms_of_gui): add Q_value.
10170
10171         * glyphs-x.c (x_progress_gauge_update): use pending items and
10172         value for setting the state.
10173         (x_update_widget): don't set items from pending here.
10174
10175         * glyphs-widget.c (update_widget): update items here.
10176         (progress_gauge_set_property): use items for storing value. Put
10177         new value in pending items.
10178
10179         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10180         items for new value. Convert percent -> value.
10181         (mswindows_tab_control_update): don't update items here.
10182
10183         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10184         (update_subwindow): ditto.
10185         (image_instance_changed): new function. Compare hash values and
10186         past and present widget items.
10187         (image_instantiate): We more careful about where we instantiate
10188         things.
10189         (image_instantiate): add error checking.
10190
10191         * gutter.c (syms_of_gutter): use -hook.
10192
10193 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10194
10195         * console-tty.c (Fset_console_tty_input_coding_system): Use
10196         Qkeyboard.
10197         (Fset_console_tty_output_coding_system): Use Qterminal.
10198         (tty_init_console): Use Qkeyboard and Qterminal.
10199
10200 2000-03-21  Ben Wing  <ben@xemacs.org>
10201
10202         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10203         From Mike Alexander <mta@arbortext.com>.
10204
10205 2000-03-21  Ben Wing  <ben@xemacs.org>
10206
10207         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10208         process brokenness.  Proper implementation to come.
10209         * callproc.c:
10210         Rename call-process-internal to old-call-process-internal.
10211         New impl. in process.el.
10212
10213 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10214
10215         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10216
10217 2000-03-20  Andy Piper  <andy@xemacs.org>
10218
10219         * glyphs.c (full_list_hash): make hashes of the same elements in
10220         different orders return different values.
10221
10222 2000-03-20  Martin Buchholz <martin@xemacs.org>
10223
10224         * XEmacs 21.2.32 is released.
10225
10226 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10227
10228         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10229         (DFC_MALLOC_USE_CONVERTED_DATA):
10230         Add aliasing-safe casts to allow use with char* or unsigned char*
10231         lvalues.
10232
10233         * eldap.c (Fldap_open):
10234         (Fldap_search_basic):
10235         (Fldap_add):
10236         (Fldap_modify):
10237         Make C++-compilable.
10238         Make sure GCPRO'ed variables are initialized.
10239         Use temp variables to avoid repeated calls to Flength.
10240
10241 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10242
10243         * sysfile.h:
10244         Make sure PATH_MAX is always defined.
10245         Include limits.h for PATH_MAX.
10246         Deprecate use of MAXPATHLEN.
10247
10248 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10249
10250         * emacs.c: Add reinit_vars_of_fileio.
10251         * symsinit.h: Add reinit_vars_of_fileio.
10252         * fileio.c (reinit_vars_of_fileio): New.
10253         * fileio.c (Fmake_temp_name):
10254         Initialize temp_name random number from microseconds to make
10255         collisions even less likely.  Initialize always at process startup
10256         time.  (make-temp-name) used to return the same file name twice in
10257         a row when PDUMP.
10258         Random stylistic fiddling.
10259         Comment fixes.
10260
10261 2000-03-20  Andy Piper  <andy@xemacs.org>
10262
10263         * glyphs.c (image_instantiate): allow text glyphs to be
10264         instantiated in the minibuffer window.
10265
10266 2000-03-19  Andy Piper  <andy@xemacs.org>
10267
10268         * glyphs.c (image_instance_hash): be careful about which items we
10269         hash on.
10270
10271         * glyphs-widget.c (tab_control_set_property): record into pending
10272         items rather than the actual items.
10273
10274         * glyphs-x.c (x_update_widget): use pending items to update with.
10275
10276         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10277         to update with.
10278
10279         * glyphs.c (mark_image_instance): mark pending items.
10280
10281         * window.c (Fset_window_configuration): record the buffer.
10282         (Fselect_window): totally revert previous change which breaks many
10283         things.
10284
10285 2000-03-18  Andy Piper  <andy@xemacs.org>
10286
10287         * glyphs-msw.c (mswindows_tab_control_update): force selected
10288         item.
10289
10290         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10291         window domain cache, otherwise we get inconsistencies at
10292         startup. There is something fishy at startup which can lead to the
10293         minibuffer being the selected window when the gutter content is
10294         instantiated.
10295
10296         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10297         gcpros.
10298         (parse_gui_item_tree_children): ditto.
10299         (parse_gui_item_tree_item): ditto.
10300
10301         * glyphs.c (Fupdate_widget_instances): return something.
10302
10303 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10304
10305         * window.c (Fselect_window): Undo 2000-03-17 change.
10306
10307 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10308
10309         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10310         against v7.0 libraries.  Insta-coredump city until the postgres
10311         folks fix it.
10312
10313 2000-03-17  Andy Piper  <andy@xemacs.org>
10314
10315         * faces.c (complex_vars_of_faces): don't give the widget face an
10316         inherited background pixmap.
10317
10318         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10319         selected item.
10320
10321         * event-stream.c (Fdispatch_non_command_events): return something.
10322
10323         * gutter.c (output_gutter): use widget face.
10324         (clear_gutter): ditto.
10325
10326         * NEWS: adjust again.
10327
10328         * window.c (Fselect_window): make sure this runs to completion to
10329         avoid oddities with Fset_window_configuration.
10330         (Fcurrent_window_configuration): in general do not save the
10331         minibuffer as the selected window.
10332
10333         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10334
10335 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10336
10337         * emacs.c (Frunning_temacs_p): Revert previous patch.
10338         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10339
10340 2000-03-16  Andy Piper  <andy@xemacs.org>
10341
10342         * glyphs-x.c (x_tab_control_update): if no widget values then
10343         return.
10344
10345         * NEWS: update for new features.
10346
10347         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10348         synthetic event to the native system.
10349         (reinit_vars_of_event_Xt): set force_event_pending to
10350         emacs_Xt_force_event_pending.
10351
10352         * events.h (struct event_stream): add force_event_pending.
10353
10354         * specifier.c (recompute_one_cached_specifier_in_window): add
10355         comment.
10356
10357         * redisplay.c (redisplay_frame): don't call
10358         update_frame_subwindows. Reset subwindow cachels when
10359         subwindows_changed, removing this was an optimization too far.
10360
10361         * redisplay-output.c (compare_runes): reorganize so that we catch
10362         glyph changes when we want them. Set optimize_output when this
10363         would help layouts.
10364         (redisplay_output_layout): remove frame_really_changed, use
10365         optimize_output instead.
10366
10367         * redisplay-msw.c (mswindows_output_display_block): reset
10368         optimize_output after outputting a glyph.
10369         * redisplay-x.c (x_output_display_block): ditto.
10370         * redisplay-tty.c (tty_output_display_block): ditto.
10371
10372         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10373         functions.
10374         (gutter_specs_changed): do specific gutter positions.
10375         (top_gutter_specs_changed): new function. Only update the
10376         specified gutter specs.
10377         (bottom_gutter_specs_changed): ditto.
10378         (left_gutter_specs_changed): ditto.
10379         (right_gutter_specs_changed): ditto.
10380
10381         * gui.c (gui_item_hash_internal): new function, does a real hash.
10382         (gui_item_id_hash): use it.
10383         (gui_item_hash): hash the eval'ed gui_item.
10384
10385         * gui-x.c (popup_selection_callback): send an eval event to call
10386         Fupdate_widget_instances.
10387
10388         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10389         to call Fupdate_widget_instances.
10390
10391         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10392         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10393
10394         * glyphs.c: (update_frame_subwindows): deleted.
10395         (Fupdate_widget_instances): new function for updating the dirty
10396         state of widgets that might have changed.
10397         (syms_of_glyphs): add Qupdate_widget_instances.
10398         (full_list_hash): hash a list completely.
10399         (image_instance_hash): use it for items and properties.
10400
10401         * frame-msw.c (mswindows_size_frame_internal): remove unused
10402         variable.
10403
10404         * faces.h (struct face_cachel): fix comment.
10405
10406         * event-stream.c (Fdispatch_non_command_events): new
10407         function. Process non-command events, forcing an event cycle
10408         beforehand.
10409         (syms_of_event_stream): declare.
10410         (event_stream_force_event_pending): new function. Force an event
10411         on the native event queue so that an event cycle will occur next
10412         time we check.
10413
10414         * event-msw.c:
10415         (struct ntpipe_shove_stream):
10416         (mswindows_enqueue_dispatch_event):
10417         (mswindows_dequeue_dispatch_event):
10418         (mswindows_cancel_dispatch_event):
10419         (mswindows_pump_outstanding_events):
10420         (mswindows_drain_windows_queue):
10421         (mswindows_handle_paint):
10422         (mswindows_wnd_proc):
10423         (mswindows_key_to_emacs_keysym):
10424         (get_process_input_waitable):
10425         (emacs_mswindows_delete_stream_pair): re-indent file.
10426         (mswindows_need_event): do not process further fds if the windows
10427         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10428         fixes the 100% cpu problem.
10429         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10430
10431 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10432
10433         * alloc.h: New.
10434         * dumper.h: New.
10435         * dumper.c: New.
10436
10437         * emacs.c: Moved dump file searching to dumper.c.
10438         (Frunning_temacs_p): Fixed.
10439
10440         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10441         last_lrecord_type_index_assigned.
10442
10443 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10444
10445         * symsinit.h: Added reinit parameter to init_console_stream
10446         declaration.
10447
10448         * lisp.h: Added file parameter to pdump_load declaration.
10449
10450         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10451         support.  Added dump file searching.
10452
10453         * config.h.in: Added EMACS_PROGNAME.
10454
10455         * console-stream.c (init_console_stream): Fix reinitialisation
10456         when running from temacs.
10457
10458         * alloc.c (pdump): Add id support.
10459         (pdump_load): Add file parameter and signature/id support.
10460
10461         * Makefile.in.in: Add full pdump support.
10462
10463 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10464
10465         * postgresql.c: Update documentation to reflect latest code
10466         status.
10467         (print_result): Show tuple counts in printed representation when
10468         appropriate.
10469         (Fpq_put_nbytes): MULE-ize.
10470         (Fpq_get_line_async): Ditto.
10471
10472 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10473
10474         * postgresql.c (Fpq_lo_import): Fix return value.
10475         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10476
10477 2000-03-13  Ben Wing  <ben@xemacs.org>
10478
10479         * alloc.c (pdump_load):
10480         Fix compile warning under mswin.
10481
10482 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10483
10484         * postgresql.c: Mule-ization, bug fixes.
10485         Use PG_CODING to encapsulate coding system name changes.
10486         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10487         (pg-coding-system): Create.
10488
10489         (Fpq_conn_defaults): Mule-ize.
10490         (Fpq_connectdb): Mule-ize & bug fix.
10491         (Fpq_connect_start): Mule-ize.
10492         (Fpq_set_client_encoding): Mule-ize.
10493         (Fpq_finish): Document `DEAD' connection status.
10494         (Fpq_clear): Ditto.
10495         (Fpq_pgconn): Mule-ize.
10496         (Fpq_exec): Mule-ize & bug fix.
10497         (Fpq_send_query): Ditto.
10498         (Fpq_get_result): Ditto.
10499         (Fpq_res_status): Mule-ize.
10500         (Fpq_result_error_message): Mule-ize.
10501         (Fpq_ntuples): fix comments.
10502         (Fpq_fname): Mule-ize.
10503         (Fpq_fnumber): Mule-ize.
10504         (Fpq_ftype): fix comments.
10505         (Fpq_get_value): Mule-ize.
10506         (Fpq_cmd_status): Ditto.
10507         (Fpq_cmd_tuples): Ditto.
10508         (Fpq_oid_value): Ditto.
10509         (Fpq_notifies): Ditto.
10510         (Fpq_lo_import): Ditto.
10511         (Fpq_lo_export): Ditto.
10512         (Fpq_get_line): Ditto.
10513         (Fpq_put_line): Mule-ize and bug fix.
10514         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10515
10516 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10517
10518         * postgresql.c (vars_of_postgresql): Mule-ize.
10519         (Fpq_conn_defaults): Ditto.
10520
10521 2000-03-12  Ben Wing  <ben@xemacs.org>
10522
10523         * alloc.c (Fmake_byte_code):
10524         * alloc.c (debug_string_purity_print):
10525         * alloc.c (pdump_backtrace):
10526         * alloc.c (pdump_get_indirect_count):
10527         * alloc.c (pdump_register_sub):
10528         * alloc.c (pdump_register_object):
10529         * alloc.c (pdump_register_struct):
10530         * alloc.c (pdump_dump_data):
10531         * alloc.c (pdump_reloc_one):
10532         Minor cleanups.
10533
10534         * console-msw.c:
10535         * console-msw.c (GetConsoleHwnd):
10536         * console-msw.c (msw_hide_console):
10537         * console-msw.c (msw_show_console):
10538         * console-msw.c (msw_ensure_console_buffered):
10539         * console-msw.c (msw_output_console_string):
10540         * console-msw.c (console_type_create_mswindows):
10541
10542         a) Added functions to manipulate the console window for use with
10543         shell support.
10544
10545         b) Added support for writing text to the console, which is now
10546         used under Windows when xemacs is not being run non-interactively,
10547         to write text that would otherwise be destined for stdout because
10548         under these circumstances, text written to stdout tends to
10549         disappear and not be seen.
10550
10551         * console-msw.h:
10552         * event-Xt.c:
10553         * event-Xt.c (x_event_to_emacs_event):
10554         * event-Xt.c (describe_event_window):
10555         * events-mod.h (XEMACS_MOD_CONTROL):
10556         * events.c:
10557         * events.c (Fmake_event):
10558         * events.c (character_to_event):
10559         * events.c (event_to_character):
10560         * events.c (format_event_object):
10561         * events.c (Fevent_modifiers):
10562         * events.h:
10563         * events.h (struct key_data):
10564         * events.h (struct button_data):
10565         * events.h (struct misc_user_data):
10566         * frame-x.c (Fcde_start_drag_internal):
10567         * frame-x.c (Foffix_start_drag_internal):
10568         * gpmevent.c (Freceive_gpm_event):
10569         * keymap.c:
10570         * keymap.c (bucky_sym_to_bucky_bit):
10571         * keymap.c (control_meta_superify):
10572         * keymap.c (make_key_description):
10573         * keymap.c (keymap_lookup_directly):
10574         * keymap.c (create_bucky_submap):
10575         * keymap.c (keymap_store):
10576         * keymap.c (define_key_check_and_coerce_keysym):
10577         * keymap.c (define_key_parser):
10578         * keymap.c (define_key_alternate_name):
10579         * keymap.c (Fdefine_key):
10580         * keymap.c (raw_lookup_key_mapper):
10581         * keymap.c (struct map_keymap_unsorted_closure):
10582         * keymap.c (map_keymap_unsorted_mapper):
10583         * keymap.c (map_keymap_sort_predicate):
10584         * keymap.c (map_keymap_sorted):
10585         * keymap.c (accessible_keymaps_mapper_1):
10586         * keymap.c (where_is_recursive_mapper):
10587         * keymap.c (describe_map_mapper):
10588         * keymap.c (describe_map_sort_predicate):
10589         * keymap.c (describe_map):
10590         * keymap.c (complex_vars_of_keymap):
10591         And a number of other files, the key modifier preprocessor
10592         constants that xemacs uses have names that conflict with constants
10593         defined under MS Windows for other purposes, so they were renamed
10594         to begin with the prefix XEMACS_. The variables that hold such
10595         modifiers were changed to consistently be of type int to fix
10596         various compile warnings.
10597
10598         * console.c (complex_vars_of_console):
10599         * device.c:
10600         * device-msw.c:
10601         * device-msw.c (mswindows_finish_init_device):
10602         * device-msw.c (msw_get_workspace_coords):
10603         * device-msw.c (mswindows_device_system_metrics):
10604         and various other files, added support for a new
10605         device property called offset-workspace which returns the position
10606         of the upper left corner of the workspace area and goes along with
10607         the existing size-workspace property.
10608
10609         * dialog-msw.c:
10610         * dialog-msw.c (push_bufbyte_string_as_unicode):
10611         * dialog-msw.c (mswindows_popup_dialog_box):
10612         Added support for XEmacs-style accelerator specifications in
10613         button text.  Note: I didn't add support for this under X Windows,
10614         and somebody needs to do this.
10615
10616         * dialog.c:
10617         * dialog.c (Fpopup_dialog_box):
10618         Documented the support for accelerators that was just mentioned.
10619
10620         editfns.c (get_home_directory): Changed behavior under Windows
10621         when HOME not defined; former behavior was irretrievably broken.
10622
10623         * emacs.c:
10624         * emacs.c (main_1):
10625         * emacs.c (main):
10626         * minibuf.c (clear_echo_area_internal):
10627         * minibuf.c (echo_area_append):
10628         * print.c:
10629         * print.c (std_handle_out_external):
10630         * print.c (std_handle_out_va):
10631         * print.c (fatal):
10632         * print.c (write_string_to_stdio_stream):
10633         * print.c (output_string):
10634         * print.c (debug_print):
10635         * print.c (debug_backtrace):
10636         * print.c (debug_short_backtrace):
10637         Cleaned up the code that prints text to stdout so that this can be
10638         changed to output into a console window instead under MS Windows,
10639         as described above.
10640
10641         * eval.c:
10642         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10643         * eval.c (internal_catch):
10644         * eval.c (unwind_to_catch):
10645         * eval.c (throw_or_bomb_out):
10646         * eval.c (condition_case_1):
10647         * eval.c (signal_1):
10648         * eval.c (check_error_state_sanity):
10649         * eval.c (call_with_suspended_errors_1):
10650         * eval.c (call_with_suspended_errors):
10651         * eval.c (reinit_vars_of_eval):
10652         Added code to catch throw loops and check for a pesky bug that may
10653         be gone now.
10654
10655         * event-msw.c:
10656         * event-msw.c (key_needs_default_processing_p):
10657         * event-msw.c (mswindows_wnd_proc):
10658         * event-msw.c (mswindows_modifier_state):
10659         * event-msw.c (emacs_mswindows_quit_p):
10660         * event-msw.c (vars_of_event_mswindows):
10661         a) Added support for using the alt key to select menu items as is
10662         standard under MS Windows.  This is controlled using the variable
10663         menu-accelerator-enabled, just like under X Windows.  There is an
10664         option on the options menu to turn this support on.  I really
10665         think that it should be on by default under Windows, but I'm not
10666         going to make this change yet.
10667
10668         b)  Added support for dynamic display size changes under Windows.
10669
10670         * event-stream.c:
10671         * event-stream.c (maybe_echo_keys):
10672         * event-stream.c (Fnext_event):
10673         * event-stream.c (command_builder_find_leaf):
10674         * event-stream.c (lookup_command_event):
10675         * event-stream.c (execute_command_event):
10676         * event-stream.c (pre_command_hook):
10677         * event-stream.c (post_command_hook):
10678         * event-stream.c (syms_of_event_stream):
10679         * event-stream.c (vars_of_event_stream):
10680         * event-stream.c (complex_vars_of_event_stream):
10681         * events.h (struct command_builder):
10682
10683         a) Tried to clean up a little bit the horribly written x-specific
10684         accelerator code that crept into this file.  I moved this code
10685         into menubar-x.c where it belongs. I also needed to move the
10686         command builder structure into the file events.h because it is
10687         accessed directly by this accelerator code.  What I didn't do, but
10688         which should be done at some point, is to properly abstract this
10689         code using device methods instead of the kludgy way that it
10690         currently hooks into the event code.
10691
10692         b) Added the lisp variables this-command-properties and
10693         last-command- properties, which should be used to synchronize two
10694         adjacent commands in preference to playing games with the variable
10695         this-command, which is typically what happens.
10696
10697         c) Added some slightly nasty code to hook into the lisp support
10698         for shifted- motion-key selection.  This is actually necessary for
10699         somewhat complicated reasons, which are described in
10700         simple.el. (NB: I think the proper thing would be to have the code
10701         that calls the pre and post command hooks also call out to generic
10702         lisp functions in simple.el, where all built-in stuff could be
10703         added.  I will think about this more.)
10704
10705         * event-unixoid.c (poll_fds_for_input):
10706         * lread.c (readchar):
10707         * redisplay-tty.c (tty_clear_frame):
10708         * redisplay-x.c (x_get_gc):
10709         * signal.c (interrupt_signal):
10710         And a whole bunch of other files: fixed up places that printed
10711         directly to stderr to instead call the function stderr_out so that
10712         the changes I made under Windows work correctly.
10713
10714         * filemode.c (mode_string):
10715         Warning fixes.
10716
10717         * frame-msw.c:
10718         * frame-msw.c (mswindows_size_frame_internal):
10719         Fixed the computation of frame size and position to keep the frame
10720         within the workspace area, rather than within the physical
10721         dimensions of the screen, so that the frame doesn't overlap window
10722         manager decorations, such as the start menu and toolbar, typically
10723         at the bottom of the screen.
10724
10725         * frame.c (vars_of_frame):
10726         Changed the default frame title format under MS Windows to consist
10727         of buffername-XEmacs, which is standard under MS Windows.  I think
10728         it might be a good idea to change this everywhere because I think
10729         it is superior to the current frame title format, but this is the
10730         kind of change that is likely to cause some people to get annoyed,
10731         so I'm not making it.
10732
10733         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10734
10735         * gui-msw.c (mswindows_handle_gui_wm_command):
10736         Fixed compile warnings.
10737
10738         * gui-x.c:
10739         * gui-x.c (strdup_and_add_accel):
10740         * gui-x.c (button_item_to_widget_value):
10741         * gui-x.h:
10742         Added code to automatically put an accelerator onto the beginning
10743         of menu items that don't have one as is now the standard, and is
10744         described more later.  Also fixed things so that the menu item
10745         name can be an evaluated expression, again a new standard.
10746
10747         * gui.c:
10748         * gui.c (gui_item_add_keyval_pair):
10749         * gui.c (make_gui_item_from_keywords_internal):
10750         * gui.c (gui_add_item_keywords_to_plist):
10751         * gui.c (gui_item_accelerator):
10752         * gui.c (gui_name_accelerator):
10753         * gui.c (gui_item_included_p):
10754         * gui.c (gui_item_display_flush_left):
10755         * gui.c (gui_item_display_flush_right):
10756         * gui.c (parse_gui_item_tree_item):
10757         * gui.c (parse_gui_item_tree_children):
10758         * gui.c (parse_gui_item_tree_list):
10759         Mule-ized.  Cleanup.  GCPRO addition.
10760
10761         * line-number.c (buffer_line_number):
10762         * lisp.h:
10763         * lisp.h (EMACS_INT_MAX):
10764         Added the manifest constant EMACS_INT_MIN corresponding to the
10765         existing constant EMACS_INT_MAX.  This is partially to fix compile
10766         warnings under Windows, and partly for cleanliness.
10767
10768         * menubar-msw.c:
10769         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10770         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10771         * menubar-msw.c (displayable_menu_item):
10772         * menubar-msw.c (populate_menu_add_item):
10773         * menubar-msw.c (populate_or_checksum_helper):
10774         * menubar-msw.c (populate_menu):
10775         * menubar-msw.c (update_frame_menubar_maybe):
10776         * menubar-msw.c (prune_menubar):
10777         * menubar-msw.c (msw_char_is_accelerator):
10778         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10779         * menubar-msw.c (mswindows_handle_wm_command):
10780         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10781         * menubar-msw.c (mswindows_handle_wm_initmenu):
10782         * menubar-msw.c (mswindows_update_frame_menubars):
10783         * menubar-msw.c (mswindows_free_frame_menubars):
10784         * menubar-msw.c (mswindows_popup_menu):
10785         Fixed a bug in handling accelerators where an extra character
10786         would be displayed in the menu item.  Also generalized the
10787         function displayable_menu_item because it is now used by the
10788         dialog box code as well.  And finally, added code in the functions
10789         that create the menubar to extract a list of accelerators for the
10790         top level menubar, which is used in the event code to determine
10791         whether a particular alt-key combination should be used to invoke
10792         a menu item, or should be passed through to access the standard
10793         XEmacs keymap binding for this key combination.
10794
10795         Much needed GCPROing.
10796
10797         * menubar-x.c:
10798         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10799         * menubar-x.c (menu_item_descriptor_to_widget_value):
10800         * menubar-x.c (restore_in_menu_callback):
10801         * menubar-x.c (x_popup_menu):
10802         * menubar-x.c (menu_move_up):
10803         * menubar-x.c (menu_move_down):
10804         * menubar-x.c (menu_move_left):
10805         * menubar-x.c (menu_move_right):
10806         * menubar-x.c (menu_select_item):
10807         * menubar-x.c (command_builder_operate_menu_accelerator):
10808         * menubar-x.c (menu_accelerator_junk_on_error):
10809         * menubar-x.c (command_builder_find_menu_accelerator):
10810         * menubar-x.c (Faccelerate_menu):
10811         * menubar.h:
10812         Moved a whole bunch of code here that was previously in
10813         event-stream.c as described above.  There is also code connected
10814         to the new standard of adding an accelerator to the beginning of
10815         menu items that don't have one as described above and below.
10816
10817         * menubar.c:
10818         * menubar.c (menu_parse_submenu_keywords):
10819         * menubar.c (Fmenu_find_real_submenu):
10820         * menubar.c (Fnormalize_menu_item_name):
10821         * menubar.c (syms_of_menubar):
10822         * menubar.c (vars_of_menubar):
10823         * menubar.c (complex_vars_of_menubar):
10824
10825         a) Cleaned up a bunch of documentation and improved it.
10826
10827         b) XEmacs now automatically adds an accelerator onto the beginning
10828         of any menu items that don't have one.  I did this because there
10829         will inevitably be some menu items on the main menubar that don't
10830         have accelerators on them because the package that adds that
10831         particular menu item hasn't yet been fixed up to have accelerators
10832         in them and it looked rather strange to have some items with and
10833         some items without accelerators, especially since even in items
10834         without accelerators, you can, at least under windows, still
10835         access the item through an accelerator corresponding to the first
10836         character in the item's name.  If people don't like this behavior,
10837         I can add a variable to turn it off optionally, but I'm not sure
10838         this is a good idea because we really do need to have accelerators
10839         on all of the menu items, and if a package doesn't like the
10840         accelerators being put on the first character, then it should put
10841         the accelerators where they belong.
10842
10843         c) I made a behavior change, which is that the descriptor that
10844         specifies the text of the menu item, which formerly was just a
10845         string, can now also be an evaluated expression.  This makes this
10846         descriptor parallel with all of the others, which could also be
10847         evaluated expressions.  This also obviates the need for the
10848         keyword :label, which was previously listed in the documentation
10849         as unimplemented, and which was for the same purpose.
10850
10851         d) GCPROing.
10852
10853         * ntproc.c:
10854         * ntproc.c (new_child):
10855         * ntproc.c (sys_spawnve):
10856         * ntproc.c (find_child_console):
10857         * ntproc.c (sys_kill):
10858         Fixed compile warnings.  By the way, this file should really go
10859         away entirely, and this will happen as soon as Kirill makes his
10860         final round of process cleanups, which affect the function
10861         call-process.
10862
10863         * process-nt.c:
10864         * process-nt.c (struct nt_process_data):
10865         * process-nt.c (find_process_from_pid):
10866         * process-nt.c (send_signal_the_nt_way):
10867         * process-nt.c (enable_child_signals):
10868         * process-nt.c (find_child_console):
10869         * process-nt.c (send_signal_the_95_way):
10870         * process-nt.c (nt_finalize_process_data):
10871         * process-nt.c (ensure_console_window_exists):
10872         * process-nt.c (nt_create_process):
10873         * process-nt.c (nt_kill_child_process):
10874         * process-nt.c (nt_kill_process_by_pid):
10875         * process-nt.c (nt_open_network_stream):
10876         * process-nt.c (vars_of_process_nt):
10877         Copied over code from Emacs 20.5 to correctly send signals to sub-
10878         processes under Windows 95.  Also added code to automatically
10879         create and hide console window when a sub-process is created under
10880         Windows 95, which obviates the need for the separate runemacs.exe
10881         executable, and finally implemented some variables that were
10882         implemented in Emacs 20.5, but previously not in XEmacs.  These
10883         include mswindows- start-process-share-console and
10884         mswindows-start-process-inherit-error-mode. (Both of these only
10885         apply to Windows 95.)
10886
10887         * regex.c (regex_compile): Fixed a compile warning.
10888
10889         * select-msw.c:
10890         * select-msw.c (mswindows_own_selection):
10891         * select-msw.c (mswindows_get_foreign_selection):
10892         * select-msw.c (mswindows_disown_selection):
10893         * select-msw.c (console_type_create_select_mswindows):
10894         * select-msw.c (syms_of_select_mswindows):
10895         Cleaned up the file and implemented the device method
10896         selection_exists_p, which had accidentally been left out.  Also
10897         removed four lisp functions that were remnants from before the
10898         time when the selection code was properly device abstracted.
10899         These functions are no longer needed because there are generic
10900         equivalents, and because they were added recently and don't exist
10901         in FSF Emacs, I don't think there's any problem with just deleting
10902         them.
10903
10904         * sysdep.c:
10905         * sysdep.c (sys_subshell):
10906         Fixed a compile warning, although in this case there's probably
10907         something wrong with this code, and it ought to be looked into
10908         more thoroughly by somebody who understands it.
10909
10910         * window.c:
10911         * window.c (Fwindow_text_area_height):
10912         * window.c (Fwindow_width):
10913         * window.c (Fwindow_full_width):
10914         * window.c (Fwindow_pixel_width):
10915         * window.c (debug_print_window):
10916         * window.c (syms_of_window):
10917         Added functions window-text-area-height and window-full-width,
10918         which are functions for returning various width and height
10919         characteristics of a window. (One of these functions is necessary
10920         for making the file dialog box work correctly, and the other one
10921         was added for completeness.)  Also added a table to the
10922         documentation for window-height which describes the entire scheme
10923         for accessing width and height characteristics of a window.
10924
10925 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10926
10927         * nt.c (fstat): Added a comment for another problem with
10928         non-encapsulated [f]stat(), reported by Adrian Aichner
10929         <aichner@ecf.teradyne.com>.
10930
10931 2000-03-11  Andy Piper  <andy@xemacs.org>
10932
10933         * window.c (make_dummy_parent): initialize subwindow instance
10934         cache.
10935         (Fset_window_configuration): zero extent_modiff.
10936
10937 2000-03-10  Andy Piper  <andy@xemacs.org>
10938
10939         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10940         more changes can be triggered.
10941         (Fredisplay_frame): ditto.
10942         (Fredraw_device): ditto.
10943         (Fredisplay_device): ditto.
10944         (redisplay_frame): make non-static.
10945         (redisplay_frame): call update_frame_gutter_geometry outside of
10946         display proper.
10947
10948         * gutter.h: declare update_frame_gutter_geometry.
10949
10950         * redisplay.h: declare redisplay_frame.
10951
10952         * gutter.c (update_frame_gutter_geometry): move geometry changes
10953         in update_frame_gutters here. Geometry changes can only occur
10954         outside of redisplay.
10955         (update_frame_gutters): remove geometry change code.
10956         (Fredisplay_gutter_area): make sure that we are in display when we
10957         update and that we have flushed any size changes.
10958
10959 2000-03-11  Andy Piper  <andy@xemacs.org>
10960
10961         * alloc.c (pdump_dump_data): remove i & count shadows.
10962
10963 2000-02-27  Mike Alexander  <mta@arbortext.com>
10964
10965         * sysdep.h: Declare pdump_read_file
10966
10967         * sysdep.c (pdump_read_file): New function
10968
10969         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10970         dump data
10971
10972 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10973
10974         * lrecord.h: add `lrecord_type_pgsetenv'.
10975
10976 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10977
10978         * symsinit.h: declare (vars|syms)_of* functions.
10979         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10980
10981 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10982
10983         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10984
10985         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10986         GCCs.
10987
10988         * emacs.c (main_1): Call postgres initialization code.
10989
10990         * postgresql.h: New file.  PostgreSQL RDBMS support.
10991         * postgresql.c: New file.
10992
10993 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10994
10995         * redisplay-output.c (redisplay_output_display_block): Disable
10996         redundant code.
10997
10998 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10999
11000         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11001         (Fcanna_henkan_next): Ditto.
11002         (Fcanna_bunsetu_henkou): Ditto.
11003         (Fcanna_henkan_kakutei): Ditto.
11004         (Fcanna_henkan_end): Ditto.
11005         (Fcanna_henkan_quit): Ditto.
11006         (Fcanna_henkan_next): Set retun value correctly.
11007         (c2mu): Use unsigned char instead of signed char.
11008
11009 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11010
11011         * emacs.c (main_1): Always call syms_of_gui.
11012         * inline.c: include gui.h
11013
11014 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11015
11016         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11017         converted to Lisp_Object.
11018         (Qtop_bottom): New variable.
11019         (syms_of_redisplay): Initialize it.
11020         * redisplay.h (Vvisible_bell): Ditto.
11021         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11022         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11023         only flash top and bottom.
11024
11025 2000-03-08  Andy Piper  <andy@xemacs.org>
11026
11027         * buffer.c (Frename_buffer): record new buffer name the right way.
11028
11029 2000-03-08  Andy Piper  <andy@xemacs.org>
11030
11031         * glyphs.c (update_subwindow): increase hash depth so that widget
11032         items get picked up properly.
11033
11034         * redisplay-output.c (compare_runes): increase hash depth so that
11035         widget items get picked up properly.
11036
11037 2000-03-08  Andy Piper  <andy@xemacs.org>
11038
11039         * gutter.c (output_gutter): add some debug.
11040
11041         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11042         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11043         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11044
11045         * redisplay-output.c (compare_runes): use display_hash to
11046         determine if glyphs really are not the same.
11047
11048         * glyphs.c (update_subwindow): check display_hash to see if
11049         anything really needs to be updated. If not then do
11050         nothing. Record the display_hash after updating.
11051         (image_instance_equal): compare the image_instance face also.
11052
11053 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11054
11055         * redisplay.h: Fix comment style.
11056
11057 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11058
11059         * consle-msw.h (struct mswindows_frame):
11060         Added new member paint_pending to indicate whether a WM_PAINT
11061         magic event has been queued for this frame.
11062
11063         * event-msw.c (mswindows_drain_windows_queue):
11064         Don't queue a WM_PAINT magic event if one is already queued.
11065         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11066
11067         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11068
11069 2000-03-07  Didier Verna  <didier@xemacs.org>
11070
11071         * dired.c: #include `regex.h' after `sysfile.h'.
11072
11073 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11074
11075         * sound.c (init_nas_sound): Fix compiler warning.
11076
11077         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11078         (FREE_STRUCT_P):
11079         (MARK_STRUCT_AS_FREE):
11080         (MARK_STRUCT_AS_NOT_FREE):
11081         Make `gcc -fstrict-aliasing' work properly.
11082
11083 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11084
11085         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11086         (mswindows_delete_device): Call CoUnnitialize().
11087
11088         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11089
11090 2000-02-25    <CraigL@DyCon.com>
11091
11092         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11093         <errno.h>.
11094
11095         * sysdep.c: This extern declaration for environ prevents MinGW
11096         from finding the variable in CRTDLL.DLL.
11097
11098         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11099         windows headers.
11100         (SHGFI_EXETYPE): ..
11101         (WM_MOUSEWHEEL): ..
11102         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11103         definitions.
11104         (MMRESULT): Removed, now defined in cygwin's windows headers.
11105         (TIMECAPS): ..
11106         (uid_t,gid_t,pid_t,ssize_t): ..
11107         (_timeb): Removed, MinGW defines both _timeb and timeb.
11108         (HAVE_H_ERRNO): Added.
11109         (HAVE_TZNAME): Added, configure is not detecting this.
11110
11111 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11112
11113         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11114         * syntax.c (syntax_match): Use it.
11115
11116         * cmds.c: Import auto-fill-chars from FSF Emacs.
11117         (Vauto_fill_chars): New variables.
11118         (internal_self_insert): Check Vauto_fill_chars.
11119         (vars_of_cmds):
11120         Declare auto-fill-chars as a Lisp variable and initialize it.
11121
11122 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11123
11124         * fileio.c (Fmake_symbolic_link):
11125         (Ffile_symlink_p):
11126         Run handlers even if local machine doesn't have symlinks.
11127
11128 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11129
11130         * event-msw.c (mswindows_drain_windows_queue):
11131         Don't generate paint magic events for non-XEmacs frames.
11132
11133 2000-03-05  Andy Piper  <andy@xemacs.org>
11134
11135         * redisplay.c (redisplay_frame): generate_displayable_area and
11136         friends assumes that we are not in GC, we therefore have to make
11137         sure that this doesn't happen.
11138
11139         * gutter.c (calculate_gutter_size): generate_displayable_area
11140         assumes that we are not in GC, we therefore have to make sure that
11141         this doesn't happen.
11142
11143 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11144
11145         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11146
11147 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11148
11149         * redisplay.c (regenerate_window): Make sure we set a sane value
11150         for end_pos even if we jump out of the loop.
11151         (regenerate_window): Answer Ben's question :-).
11152         (start_end_of_last_line): Add may_error argument.
11153         (start_of_last_line):
11154         (end_of_last_line): Pass may_error = 0.
11155         (end_of_last_line_may_error): New function.
11156         (pixel_to_glyph_translation): Use it, so we don't crash in
11157         event_to_glyph.
11158
11159 2000-03-04  Andy Piper  <andy@xemacs.org>
11160
11161         * window.h (struct window): add gutter_extent_modiff.
11162
11163         * window.c (allocate_window): zero out gutter_extent_modiff.
11164
11165         * redisplay.h: declare sync_display_line_structs.
11166
11167         * redisplay.c (add_glyph_rune): add a better comment.
11168
11169         * redisplay-output.c (sync_display_line_structs): made non-static.
11170         (compare_runes): remove unneccesary glyph cachel access.
11171
11172         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11173
11174         * gutter.c (output_gutter): don't output the gutter if extent
11175         changes only involve extents in buffers. use 4 sets of display
11176         lines.
11177         (gutter_extent_signal_changed_region_maybe): new function. Mark
11178         extents in gutters as changed.
11179         (update_frame_gutters): use 4 sets of display lines.
11180         (reset_gutter_display_lines): ditto.
11181         (free_frame_gutters): ditto.
11182         (redraw_exposed_gutter): force output of gutters.
11183
11184         * frame.h (struct frame): add 4 sets of gutter display lines.
11185
11186         * extents.c: (extent_changed_for_redisplay): signal changes to
11187         extents in strings in the gutter as well as extents in buffers.
11188
11189 2000-03-02  Andy Piper  <andy@xemacs.org>
11190
11191         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11192
11193         * frame.c (Fmake_frame): make sure the gutters get initialized
11194         after the frame is visible.
11195         (set_frame_selected_window): re-arrange compilation macros a
11196         little.
11197         (change_frame_size_1): mark gutters changed.
11198
11199         * device.c (Fset_device_class): mark gutters changed.
11200
11201 2000-03-01  Andy Piper  <andy@xemacs.org>
11202
11203         * window.c (window_top_frame_gutter_height): deleted.
11204         (window_bottom_frame_gutter_height): ditto.
11205         (window_left_frame_gutter_height): ditto.
11206         (window_right_frame_gutter_height): ditto.
11207         (window_top_gutter_height): don't use them.
11208         (window_bottom_gutter_height): ditto.
11209         (window_left_gutter_width): ditto.
11210         (window_right_gutter_width): ditto.
11211         (Fsplit_window): ditto.
11212         (Fwindow_pixel_edges): don't use border dimensions here.
11213
11214         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11215         (update_scrollbar_instance): ditto.
11216
11217         * redisplay.c (generate_modeline): don't take gutters into account.
11218         (generate_modeline): ditto.
11219         (redisplay_frame): small gutter display optimization.
11220
11221         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11222
11223         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11224         gutters into account.
11225
11226         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11227         for window position and type.
11228
11229         * gutter.c (get_gutter_coords): fix for frame gutters.
11230         (update_frame_gutters): update frame geometry if the gutters have
11231         changed.
11232         (init_frame_gutters): record current gutter geometries.
11233
11234         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11235         var.
11236         (mswindows_widget_instantiate): ditto.
11237
11238         * frame.h (struct frame): add current_gutter_bounds.
11239
11240         * frame.c (change_frame_size_1): position window and minibuffer
11241         appropriately taking into account the frame gutters.
11242
11243         * frame-x.c: (x_initialize_frame_size): take into account the
11244         frame gutters.
11245
11246 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11247
11248         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11249
11250 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11251
11252         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11253
11254 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11255
11256         * file-coding.c (reset_decoding_stream): Clear previous
11257         detection state when autodetect.
11258
11259 2000-02-29  Didier Verna  <didier@xemacs.org>
11260
11261         * extents.c (set_extent_glyph_1): don't require extents to be
11262         attached.
11263
11264 2000-02-27  Andy Piper  <andy@xemacs.org>
11265
11266         * gutter.c (Fset_default_gutter_position): don't default left and
11267         right gutter visibility to t.
11268         (Fset_default_gutter_position): run
11269         default-gutter-position-changed-hook.
11270         (syms_of_gutter): add default-gutter-position-changed-hook.
11271
11272 2000-02-26  Andy Piper  <andy@xemacs.org>
11273
11274         * specifier.c (Fmake_specifier): add gutter references.
11275
11276         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11277
11278         * lisp.h: declare Fvalid_plist_p.
11279
11280         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11281         as changed.
11282         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11283         well as its visibility so that it gets reconstructed.
11284         (construct_window_gutter_spec): new function. Construct a string
11285         to be displayed in the gutter from a plist of strings. Take care
11286         to only use elements that are declared as visible.
11287         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11288         WINDOW_GUTTER.
11289         (gutter_validate): allow plists of strings in the specifier.
11290         (gutter_specs_changed): construct the real_gutter from the gutter
11291         specs using construct_window_gutter_spec.
11292         (gutter_visible_validate): gutter-visible is a new specifier type.
11293         (Fgutter_visible_specifier_p): new function for the new specifier.
11294         (syms_of_gutter): declare gutter-visible and
11295         Fgutter_visible_specifier_p.
11296         (specifier_type_create_gutter): intitalize new gutter-visible
11297         specifier.
11298         (reinit_specifier_type_create_gutter): ditto.
11299         (specifier_vars_of_gutter): use new specifier type for gutter
11300         visibility.
11301         (init_frame_gutters): construct real_gutter correctly.
11302         (Fgutter_specifier_p): beef up documentation.
11303         (Fgutter_size_specifier_p): ditto.
11304
11305         * winslots.h: add real_gutter slots.
11306
11307 2000-02-25  Andy Piper  <andy@xemacs.org>
11308
11309         * device-msw.c: Be kind to older cygwin versions. From Raymond
11310         Toy <toy@rtp.ericsson.se>.
11311
11312         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11313         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11314
11315 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11316
11317         * elhash.c (MARK_OBJ): Practice macro hygiene.
11318
11319 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11320
11321         * miscplay.c: s/__inline__/inline/g;
11322         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11323         (get_device_compdc): INLINE ==> static inline
11324         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11325         find -name '*.h' | \
11326         xargs global-replace \
11327         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11328
11329 2000-02-25  Andy Piper  <andy@xemacs.org>
11330
11331         * window.c (window_top_frame_gutter_height): new function.
11332         (window_top_window_gutter_height): ditto.
11333         (window_top_gutter_height): use them.
11334         (window_bottom_frame_gutter_height): new function.
11335         (window_bottom_window_gutter_height): ditto.
11336         (window_bottom_gutter_height): use them.
11337         (window_left_window_gutter_width): new function.
11338         (window_left_frame_gutter_width): ditto.
11339         (window_left_gutter_width): use them.
11340         (window_right_window_gutter_width): new function.
11341         (window_right_frame_gutter_width): ditto.
11342         (window_right_gutter_width): use them.
11343         (window_pixel_height): new function. calulate window pixel height
11344         with frame gutter involvement.
11345         (Fsplit_window): calculate new sizes taking frame gutters into
11346         account.
11347         (window_char_height_to_pixel_height): don't include frame gutters.
11348         (window_char_height): use window_pixel_height.
11349         (window_pixheight): rename from window_pixel_height.
11350         (change_window_height): use it.
11351         (window_pixel_height_to_char_height): don't include frame gutters.
11352         (window_char_width_to_pixel_width): ditto.
11353
11354 2000-02-25  Andy Piper  <andy@xemacs.org>
11355
11356         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11357         if it is.
11358
11359 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11360
11361         * alloc.c (staticpro):
11362         (staticpro_nodump):
11363         (dumpstruct):
11364         (dumpopaque):
11365         (pdump_wire):
11366         (pdump_wire_list):
11367         (compact_string_chars):
11368         (pdump_dump_wired):
11369         Convert:  if (foo) abort();  ==>  assert (! foo);
11370
11371         * eldap.c (Fldap_search_basic):
11372         (Fldap_add):
11373         (Fldap_modify):
11374         (Fldap_delete):
11375         Fix compiler warnings, and possible crashes if (random) return
11376         value were to be used.
11377
11378 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11379
11380         * device-msw.c: Workaround ResetDC failure.
11381
11382         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11383         applying a devmode.
11384
11385         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11386         (mswindows_text_width): Do not start printer page.
11387
11388         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11389
11390         * glyphs-msw.c: Added image methods to msprinter console and
11391         msprinter-specific image instantiation.
11392
11393 2000-02-20  Mike Alexander  <mta@arbortext.com>
11394
11395         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11396         to avoid crashes when selection-sets-clipboard is on
11397         (mswindows_own_selection): ditto
11398
11399 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11400
11401         * glyphs-msw.c:
11402         * redisplay-msw.c (get_frame_dc):
11403         (get_frame_compdc):
11404         * console-msw.h:
11405         * device-msw.c (mswindows_init_device):
11406         (mswindows_delete_device):
11407         (msprinter_init_device):
11408         (msprinter_delete_device):
11409         * frame-msw.c (mswindows_init_frame_1):
11410         (mswindows_delete_frame):
11411         (msprinter_init_frame_3):
11412         (msprinter_delete_frame): Move compatible DC to device object from
11413         frame object, for both mswindows and msprinter. Only one at a time
11414         is needed, it is a real waste to have one per frame!
11415
11416 2000-02-23  Andy Piper  <andy@xemacs.org>
11417
11418         * glyphs.c: add dynamic width and height elements.
11419         (image_instance_equal): ditto.
11420
11421         * glyphs-widget.c (widget_query_geometry): calculate width and
11422         height dynamically if required.
11423         (initialize_widget_image_instance): initialize dynamic dimensions.
11424         (widget_instantiate): pick-up dynamic dimensions.
11425
11426         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11427         dynamic determination. Add appropriate macros.
11428
11429         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11430         dimensions safe.
11431         (WINDOW_GUTTER_SIZE): ditto.
11432         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11433
11434         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11435         inline.
11436         (get_frame_dc): ditto.
11437
11438         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11439         here.
11440
11441 2000-02-23  Martin Buchholz <martin@xemacs.org>
11442
11443         * XEmacs 21.2.31 is released.
11444
11445 2000-02-22  Ben Wing <ben@xemacs.org>
11446
11447         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11448
11449 2000-02-22  Andy Piper  <andy@xemacs.org>
11450
11451         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11452
11453 2000-02-21  Mike Sperber <mike@xemacs.org>
11454
11455         * .dbxrc:
11456         * .gdbinit:
11457         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11458         variables.
11459
11460 2000-02-21  Mike Sperber <mike@xemacs.org>
11461
11462         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11463
11464 2000-02-21  Martin Buchholz <martin@xemacs.org>
11465
11466         * XEmacs 21.2.30 is released.
11467
11468 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11469
11470         Performance hacking.
11471         * *.c (syms_of_*):
11472         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11473         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11474         * emacs.c (main_1):
11475         * lisp.h (DEFUN):
11476         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11477         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11478         * symeval.h (DEFVAR_SYMVAL_FWD):
11479         * symbols.c (guts_of_unbound_marker):
11480         Make all c_readonly objects also lisp_readonly and marked for life.
11481         * lrecord.h (struct lrecord_implementation):
11482         Document flags better.
11483         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11484         * lrecord.h (DECLARE_LRECORD):
11485         * lrecord.h (XSETRECORD):
11486         * lrecord.h (RECORDP):
11487         * lrecord.h (RECORD_TYPEP):
11488         * lrecord.h (RECORD_MARKER): New.
11489         * lrecord.h (error_check_*):
11490         * lrecord.h (CONCHECK_NONRECORD):
11491         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11492         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11493         * lrecord.h (set_lheader_implementation):
11494         * lrecord.h (enum lrecord_type): New.
11495         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11496         * alloc.c (disksave_object_finalization_1):
11497         * alloc.c (mark_object):
11498         * alloc.c (lrecord_type_index):
11499         * alloc.c (tick_lcrecord_stats):
11500         * alloc.c (Fgarbage_collect):
11501         * alloc.c (init_alloc_once_early):
11502         * alloc.c (pdump_load):
11503         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11504         * alloc.c (lrecord_type_index): Delete.
11505         Make lisp object type indexes be constant.
11506           Makes (byte-compile) 5% faster.
11507         Put all marker functions into their own array.
11508           Makes (garbage-collect) 5% faster.
11509         Optimize SYMBOL_VALUE_MAGIC_P.
11510           Makes (byte-compile) 2-3% faster.
11511         * config.h.in (gc_checking_assert): New.
11512         * alloc.c: Use gc_checking_assert().
11513         * .dbxrc: Make compatible with new object type implementation.
11514         * .gdbinit: Make compatible with new object type implementation.
11515         * alloc.c: Delete all symbols defined only for debugging, such as
11516         Lisp_Type_Vector and lrecord_charset.
11517
11518 2000-02-21  Andy Piper  <andy@xemacs.org>
11519
11520         * gui-msw.c (Fmswindows_shell_execute): fix file location
11521         problems.
11522
11523         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11524         unshowing so that set_window_buffer doesn't undo
11525         kill_buffer_hook's hard work.
11526
11527         * glyphs-widget.c (tab_control_query_geometry): don't count the
11528         first item when calculating geometry.
11529
11530         * glyphs.c (map_subwindow): remove redundant code.
11531         (update_frame_subwindows): be more circumspect about when to
11532         update subwindows.
11533
11534         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11535         when items haven't changed. Update faces if faces have changed as
11536         well as just the widget face.
11537         (x_tab_control_update): Update faces if faces have changed as well
11538         as just the widget face.
11539
11540 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11541
11542         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11543         registration.
11544         (build_syscolor_string): Use mswindows_color_to_string to try to
11545         get a named color.
11546         (mswindows_device_system_metrics): Reverse the foreground and
11547         background colors so that they match the documentation.
11548
11549         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11550         they match the default Windows palette.
11551         (mswindows_color_to_string): New function.
11552
11553 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11554
11555         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11556
11557 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11558
11559         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11560         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11561
11562         * symbols.c (init_symbols_once_early): Removed obsolete
11563         DATA_SEG_BITS related kludge.
11564         (defvar_magic): Ditto.
11565
11566         * malloc.c: Removed obsolete DATA_SEG_BITS
11567         * ralloc.c: Ditto.
11568         * mem-limits.h: Ditto.
11569
11570         * Makefile.in.in: Removed obsolete HAVE_SHM
11571         * emacs.c: Ditto.
11572
11573 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11574
11575         *  device-msw.c (mswindows_delete_device): Free DDE string
11576         handles.
11577
11578 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11579
11580         * keymap.c (get_keyelt):
11581         * unexnt.c (unexec):
11582         * vm-limit.c (memory_warnings):
11583         * ntheap.c (recreate_heap):
11584         * ntheap.h (UNINIT_PTR):
11585         * select-msw.c (Fmswindows_get_clipboard):
11586         (Fmswindows_set_clipboard):
11587         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11588         * objects-msw.c:
11589         * menubar-msw.c (displayable_menu_item):
11590         * glyphs-msw.c:
11591         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11592         * sysdep.c (sys_subshell):
11593         * process-nt.c (nt_create_process):
11594         * nt.c (normalize_filename):
11595         (dostounix_filename):
11596         (unixtodos_filename):
11597         * ntproc.c (win32_executable_type):
11598         * ntplay.c (play_sound_data_1):
11599         (play_sound_file):
11600         * editfns.c (get_home_directory):
11601         * event-msw.c (struct winsock_stream):
11602         (mswindows_dde_callback):
11603         * device-msw.c (msprinter_init_device):
11604         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11605
11606         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11607         mswindows_clear_toolbar were swapped!
11608
11609         * objects-msw.c:(colormap_t):
11610         (fontmap_t):
11611         * emacs.c (struct standard_args): Fixed const jumble.
11612
11613         * glyphs-widget.c (update_widget): Fixed comparison notation.
11614
11615         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11616
11617         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11618         __declspec(noreturn) syntax.
11619
11620 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11621
11622         * eldap.c (Fldap_open):
11623         (Fldap_search_basic):
11624         (Fldap_add):
11625         (Fldap_modify):
11626         Use new coding system conversion macros.
11627
11628 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11629
11630         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11631
11632 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11633
11634         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11635         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11636
11637         * eldap.c (Qadd, Qreplace): New constant symbols
11638         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11639         interruptions by XEmacs signals
11640         Remove unnecessary calls to slow_down_interrupts and
11641         speed_up_interrupts
11642         (Fldap_search_basic): Renamed from Fldap_search_internal
11643         Added new optional parameter VERBOSE that triggers the
11644         display of progress messages
11645         Remove unnecessary calls to slow_down_interrupts and
11646         speed_up_interrupts
11647         LDAP result code analysis rewritten
11648         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11649         (syms_of_eldap): Define the new symbols and functions
11650
11651
11652 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11653
11654         * realpath.c: Determine PATH_MAX maximally portably.
11655
11656         * insdel.c (bytecount_to_charcount): Optimize.
11657         The function used to be optimized for entirely ASCII sequences.
11658         Now it is optimized for successive characters from the same
11659         charset.  This also wins big for _mostly_ ASCII sequences.
11660
11661         * fileio.c (Ffile_truename): convert return from realpath() using
11662         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11663         - Rewrite GCPROing slightly.
11664
11665         * sysdep.c (sys_open): Do filename conversion, like all other
11666         sys_* functions.  Fixes bug:
11667         (let ((file-name-coding-system 'iso-8859-2))
11668            (write-region x y latin2-name))
11669         ==> writes filename using internal encoding.
11670
11671 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11672
11673         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11674         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11675         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11676         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11677         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11678         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11679         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11680         (CONST_IF_NOT_DEBUG): Delete.
11681         * alloc.c (this_one_is_unmarkable): Delete.
11682         (mark_object): Don't check for this_one_is_unmarkable. Use the
11683         c_readonly flag instead.
11684         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11685
11686 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11687
11688         * event-msw.c (mswindows_drain_windows_queue):
11689         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11690         away redundant repaint events.
11691
11692 2000-02-17  Andy Piper  <andy@xemacs.org>
11693
11694         * redisplay.h: declare mark_redisplay_structs.
11695
11696         * redisplay.c (redisplay_window):
11697         (redisplay_frame): don't check subwindows_state_changed.
11698         (mark_redisplay): mark gutters here.
11699
11700         * glyphs.c: (instantiate_image_instantiator): always layout if we
11701         haven't done so already.
11702         (allocate_image_instance): don't mark as dirty.
11703         (update_subwindow): bind inhibit_quit.
11704
11705         * gutter.c (mark_gutters): new function.
11706
11707         * glyphs-x.c (x_update_widget): Always resize to get round a
11708         widget bug.
11709
11710         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11711         breaking absolutely everything.
11712
11713         * gutter.h: declare mark_gutters.
11714
11715 2000-02-16  Martin Buchholz <martin@xemacs.org>
11716
11717         * XEmacs 21.2.29 is released.
11718
11719 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11720
11721         * fns.c (size_bit_vector): Fix computation of the size.
11722
11723 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11724
11725         * *.[ch]: Change CONST to const globally.
11726         find -name '*.[ch]' | \
11727         xargs global-replace \
11728         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11729         - Remove vestigial references to CONST_IS_LOSING
11730
11731 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11732
11733         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11734         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11735         events instead of dispatching them directly.
11736         (mswindows_handle_paint): New function to do repainting.
11737         (mswindows_wnd_proc):
11738         (emacs_mswindows_handle_magic_event): Call above function.
11739
11740 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11741
11742         * objects-msw.c (mswindows_create_font_variant): Return the new
11743         font handle.
11744         (initialize_font_instance): Get font metrics from the underlined
11745         variant of the font to cope with the case where the underlined
11746         font has a bigger descent.
11747
11748 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11749
11750         * gui.c (gui_item_accelerator): Return the first underlined
11751         character in item name.
11752
11753 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11754
11755         * lisp.h: Added Qprinter.
11756
11757         * general.c (syms_of_general): Initialized it.
11758
11759         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11760         (get_frame_dc):
11761         (get_frame_compdc): Made inline.
11762
11763         * console.h (struct console_methods): Added eject_page method.
11764
11765         * frame.h: Added FRAME_DISPLAY_P and friends.
11766         Aligned backslahes in many macros in more readable fashion.
11767         Added page_number to struct frame, and an accessor macro
11768         for it.
11769
11770         * defice.h: Added DEVICE_DISPLAY_P and friends.
11771
11772         * device.c (Fdevice_printer_p): Used these.
11773
11774         * frame.c (allocate_frame_core): Initialize page number.
11775         (Fprint_job_page_number):
11776         (Fprint_job_eject_page): Implemented.
11777
11778         * frame-msw.c (msprinter_eject_page): Added method.
11779         (msprinter_start_page): Added.
11780
11781         * window.c (Fwindow_truncated_p): Fixed docstring.
11782         (Fwindow_last_line_visible_height): Implemented.
11783
11784 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11785
11786         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11787
11788 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11789
11790         * syntax.c (scan_words): Always advance at least one character.
11791
11792 2000-02-13  Andy Piper  <andy@xemacs.org>
11793
11794         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11795         to make sure the glyph is in the cachels.
11796
11797         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11798         global image instance flag.
11799         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11800         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11801
11802         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11803         (Fset_image_instance_property): mark layout as changed.
11804         (invalidate_glyph_geometry_maybe): mark layout as changed.
11805         (glyph_width): use new NEEDS_LAYOUT macro.
11806         (glyph_ascent): ditto.
11807         (glyph_descent): ditto.
11808         (glyph_height): ditto.
11809         (image_instance_layout): mark layout as clean after laying out.
11810         (update_subwindow): don't mark layout as clean here.
11811
11812         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11813         should no longer be needed.
11814
11815         * glyphs-x.c (x_update_widget): sanitize asserts.
11816         (x_finalize_image_instance): sanitize assignment to widgets.
11817
11818         * glyphs-widget.c (widget_instantiate): don't need to clear the
11819         layout flag here.
11820
11821 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11822
11823         * sysdep.c (getcwd): Use standard prototype.
11824         * sysdep.h (getcwd): Use standard prototype.
11825
11826         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11827         (sequence, start, end).
11828         Remove redundant type checking.
11829         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11830         view of `caller-protects') to avoid a crash where the real fix was
11831         found elsewhere.
11832
11833 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11834
11835         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11836
11837         * s/sol2.h: Remove feature macro initialization.
11838
11839         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11840         (vector_hash): New.  Code from internal_hash.
11841         * lrecord.h:
11842         Fix up allocation subsystem comments.
11843
11844         * config.h.in: Add __EXTENSIONS__ for Solaris.
11845
11846         * systime.h (EMACS_GETTIMEOFDAY): New.
11847         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11848         Remove Solaris-specific code.
11849         Use void* for the (ignored) second arg for gettimeofday().
11850
11851         * elhash.c (hash_table_hash): Implement it, finally.
11852         * elhash.c:  Use hashcode_t.
11853
11854         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11855         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11856
11857         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11858         * fns.c (size_bit_vector):
11859         * alloc.c (size_vector):
11860         (make_vector_internal):
11861         (make_bit_vector_internal):
11862         (sweep_bit_vectors_1):
11863         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11864
11865 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11866
11867         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11868         Include strings.h to avoid warnings for bzero and strcasecmp.
11869
11870 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11871
11872         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11873         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11874
11875         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11876         sequence.
11877
11878 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11879
11880         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11881         use a value field instead.
11882         (symbol_value_forward_forward): Use value field.
11883         (DEFVAR_SYMVAL_FWD): Use value field.
11884         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11885         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11886         (DEFVAR_CONST_INT): Ditto.
11887         (DEFVAR_BOOL): Ditto.
11888         (DEFVAR_CONST_BOOL): Ditto.
11889         (DEFVAR_INT_MAGIC): Ditto.
11890         (DEFVAR_BOOL_MAGIC): Ditto.
11891
11892         * symbols.c (guts_of_unbound_marker): Use value field.
11893         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11894         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11895
11896         * lisp.h: Declare dumpopaque and noninteractive1.
11897
11898         * alloc.c (dumpopaque): Added.
11899         (pdump_dump_opaquevec): Added.
11900         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11901         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11902         noninteractive.
11903
11904 2000-02-10  Andy Piper  <andy@xemacs.org>
11905
11906         * glyphs.c (image_instance_layout): if the size changes, mark it
11907         as such.
11908
11909         * redisplay-output.c (redisplay_output_layout): Update the
11910         subwindow here.
11911         (redisplay_output_subwindow): ditto.
11912
11913         * glyphs.c (update_subwindow): make sure we reset flags for
11914         layouts as well as everything else.
11915
11916         * glyphs-widget.c (layout_layout): don't need to set the instances
11917         dimensions here.
11918
11919 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11920
11921         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11922         not HAVE_DLOPEN, which is a lower-level thing.
11923
11924         * .cvsignore: Ignore gmon.out
11925
11926 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11927
11928         * .cvsignore: Ignore portable dumper xemacs.dmp file
11929
11930 2000-02-09  Andy Piper  <andy@xemacs.org>
11931
11932         * redisplay-output.c (redisplay_output_layout): be more clever
11933         about when we output based on the changed flags.
11934
11935         * glyphs.h (struct image_instantiator_methods): add update_method.
11936         (struct Lisp_Image_Instance): add changed flags. Declare new
11937         macros for manipulating them.
11938
11939         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11940         (image_instance_parent_glyph): find an image_instance's parent
11941         glyph or image_instance.
11942         (image_instance_layout): mark the size as changed.
11943         (set_image_instance_dirty_p): new function. mark an image
11944         instance, plus all of its parents, as dirty.
11945         (Fset_image_instance_property): use it.
11946         (Fglyph_animated_timeout_handler): use it.
11947         (update_subwindow): call update_widget and device methods for
11948         update_subwindow. Mark all changed flags as clean.
11949         (Fresize_subwindow): mark size as changed.
11950
11951         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11952         failures.
11953         (x_update_subwindow): only resize subwindows here.
11954         (x_update_widget): new function. Update all changed properties of
11955         a widget.
11956         (x_resize_subwindow): deleted.
11957         (x_widget_set_property): deleted.
11958         (x_progress_gauge_set_property): deleted.
11959         (x_progress_gauge_update): new function. Implement recorded
11960         changes.
11961         (x_tab_control_update): ditto.
11962         (x_tab_control_set_property): deleted.
11963         (console_type_create_glyphs_x): declare new functions.
11964         (image_instantiator_format_create_glyphs_x): ditto.
11965
11966         * glyphs-widget.c (widget_set_property): mark text changed.
11967         (update_widget): new function. Update properties of a widget.
11968         (widget_instantiate): for layouts make sure we set their
11969         children's parent correctly.
11970         (tab_control_set_property): new function. Record changes that will
11971         take place under redisplay's control.
11972         (progress_gauge_set_property): ditto.
11973         (image_instantiator_progress_guage): declare new functions.
11974         (image_instantiator_tab_control): ditto.
11975
11976         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11977         now.
11978         (mswindows_update_widget): new function. Update all properties on
11979         a widget that have changed.
11980         (mswindows_button_update): new function. Update a button's set
11981         state.
11982         (mswindows_tab_control_update): new function. Update the items in
11983         a tab.
11984         (mswindows_tab_control_set_property): deleted.
11985         (mswindows_progress_gauge_update): new function. Update the
11986         progress gauge's progress.
11987         (mswindows_widget_set_property): deleted. This is all done
11988         asynchronously now.
11989         (mswindows_progress_gauge_set_property): ditto.
11990         (console_type_create_glyphs_mswindows): declare new methods.
11991         (image_instantiator_format_create_glyphs_mswindows): ditto.
11992
11993         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11994         (msprinter_set_frame_properties): ditto.
11995
11996         * console.h (struct console_methods): Add update_widget_method.
11997
11998 2000-02-09  Andy Piper  <andy@xemacs.org>
11999
12000         * gui-msw.c (Fmswindows_shell_execute): Make
12001         mswindows-shell-execute industrial strength.
12002
12003 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12004
12005         * lrecord.h: Make macro argument `props' match member function `plist'.
12006         * fns.c (Fget):
12007         * fns.c (Fput):
12008         * fns.c (Fremprop):
12009         * fns.c (Fobject_plist):
12010         * alloc.c:
12011         * symbols.c:
12012         Object property list frobbing cleanup.
12013         - Allow any lisp object (compared with `eq'), not just symbols, as
12014           keys in object plists.
12015         - Move symbol plist frobbing into symbols.c, where it belongs.
12016         - Move string plist frobbing into alloc.c, where it belongs.
12017         - Everything's an lrecord now, so no need to test for symbolp, etc.
12018         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12019
12020         * extents.c: Reorder code to remove declarations.
12021
12022         * frame.h (store_in_alist): Remove useless declaration.
12023
12024 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12025
12026         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12027         * config.h.in: Add HAVE_XCONVERTCASE.
12028
12029 2000-02-07  Andy Piper  <andy@xemacs.org>
12030
12031         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12032         it breaks many things.
12033
12034 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12035
12036         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12037         actually can start a common comment type.
12038         * src/syntax.h (SYNTAX_END_P): ditto for end.
12039
12040 2000-02-07  Martin Buchholz <martin@xemacs.org>
12041
12042         * XEmacs 21.2.28 is released.
12043
12044 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12045
12046         * event-Xt.c (x_keysym_to_character): New.
12047         (maybe_define_x_key_as_self_inserting_character): New.
12048         (x_has_keysym): New.
12049         Auto-define all keys on the keyboard as self-insert-key.
12050
12051 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12052
12053         * menubar.c (vars_of_menubar): A small code simplification.
12054
12055         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12056
12057         * ExternalShell.c:
12058         * ExternalClient.c:
12059         * EmacsShell-sub.c:
12060         * EmacsManager.c:
12061         * EmacsFrame.c:
12062         Use consistent style for specifying X resources.
12063
12064         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12065         This makes (dontusethis-set-symbol-value-handler) actually usable.
12066
12067         * lrecord.h (lrecord_decription_type):
12068         * alloc.c (pdump_register_sub):
12069         (pdump_dump_data):
12070         (pdump_reloc_one):
12071         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12072         Comply with XEmacs coding style.
12073         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12074         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12075
12076         * keymap.c (Faccessible_keymaps):
12077         Make (accessible-keymaps map "\C-h") do the Right Thing.
12078         Make (accessible-keymaps map []) do the Right Thing.
12079         Make (accessible-keymaps map "") do the Right Thing.
12080         (check_keymap_definition_loop): New function.
12081         (keymap_store_internal): Keep luser from shooting self in foot,
12082           via (define-key ctl-x-4-map "p" global-map).
12083         Remove fullness slot from struct Lisp_Keymap, since hash tables
12084         are now reliable.
12085         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12086
12087 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12088
12089         * redisplay.c (init_redisplay): Fix small memory leak.
12090         * elhash.h:
12091         * elhash.c (pdump_reorganize_hash_table):
12092         Rename from reorganize_hash_table. Change prototype.
12093         Reuse the original memory for hentries.  Save 100k.
12094         * alloc.c (PDUMP_READ): new macro.
12095         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12096         * alloc.c: No need to #ifndef before #undef.
12097
12098         * print.c: Allow debug_print() to print readably by modifying
12099         debug_print_readably.  Use consistent variable names.
12100
12101         * .dbxrc: Try to get things to work even if stopped in a function
12102         without source available by explicitly specifying source files.
12103 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12104
12105         * unexnt.c (_start): Removed bogus code which caused loading heap
12106         from differrent executable file.
12107         Removed bogus assignment to _fmode, which caused inconsistencies.
12108
12109 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12110
12111         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12112         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12113         Do not preliminary `#define signal sigset'.
12114
12115         * systime.h: Do not prototype environ on windows nt and cygwin,
12116         this conflicts with system header.
12117
12118         * syssignal.h: Use correct define for WINDOWSNT
12119
12120         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12121         with system header.
12122
12123         * sysdep.c (near start of file): Fixed commentary and rearranged
12124         ifdefs in readable order.
12125         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12126         (start_of_text):
12127         (end_of_text):
12128         (end_of_data): Do not compile in if using PDUMP.
12129
12130         * symsinit.h: Prototyped vars_of_nt().
12131
12132         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12133         (find_child_console): Use it.
12134         (sys_kill): Use it.
12135
12136         * ntheap.h: Do not extern os_subtype.
12137
12138         * ntheap.c (cache_system_info): Do not cache unneeded:
12139         nt_major_version, nt_minor_version and os_subtype.
12140         (recreate_heap): Do not compile in when PDUMPing.
12141
12142         * nt.c (geteuid and friends): Use the new varibale
12143         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12144         (init_user_info): Removed the above mentioned hackery.
12145         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12146         stat has been fixed in the C runtime.
12147         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12148
12149         * file-coding.c (struct file_coding_dump): Do not define
12150         ucs_to_mule_table in the struct if not MULE.
12151         (struct struct lrecord_description fcd_description_1): Do not dump
12152         the above.
12153
12154         * emacs.c (main_1): Call vars_of_nt().
12155         (right before Fdump_emacs_data): Don't need lastfile if using both
12156         portabe dumper and system malloc.
12157
12158         * alloc.c (Fmemory_limit): Conditionalized out.
12159         (pdump): Use OPEN_BINARY for the portable dump file.
12160         (pdump_load): Ditto.
12161
12162 2000-02-02  Mike Alexander  <mta@arbortext.com>
12163
12164         * nt.c (convert_time): Set tm_isdst before calling mktime and
12165         avoid calling it at all if the compiler supports 64 bit integers.
12166         Also initialize utc_base_ft before using it.
12167
12168 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12169
12170         * frame.c (change_frame_size_1): Take f->internal_border_width
12171         into consideration when calculating the width of the frame.
12172
12173 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12174
12175         * window.c (frame_min_height):
12176         (frame_size_valid_p):
12177         (frame_pixsize_valid_p): Added.
12178         (check_frame_size): Generalized.
12179
12180         * window.h: Prototyped the above.
12181
12182         * lisp.h:
12183         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12184         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12185         Deleted Vwin32_* and Vbinary_process_* unused variables.
12186
12187         * device-msw.c (msprinter_init_device): Do not get printer font
12188         list; Added DEVMODE functions.
12189
12190         * frame-msw.c: Added lots of printer code.
12191
12192         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12193         general.c.
12194
12195         * console-msw.h: Added more msprinter device private slots.
12196
12197 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12198
12199         * event-msw.c (key_needs_default_processing_p): Added.
12200         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12201
12202 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12203
12204         * glyphs.c (image_instance_layout): Mark image instance as clean
12205         after layout.
12206         (glyph_dirty_p): Removed redundant function.
12207         (invalidate_glyph_geometry_maybe): Added.
12208         (update_glyph_cachel_data): Call it.
12209
12210         * glyphs.h: Prototyped it.
12211
12212         * redisplay.c (add_glyph_rune): Call it.
12213         (redisplay_window): Reset glyphs cachels when frame faces have
12214         changed, thus forcing recomputation of built-in border glyphs.
12215
12216 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12217
12218         * Makefile.in.in: Make portable dumper and purify play well together.
12219         Add imperfect, but better than nothing, support for pdump.
12220         Remove xemacs.dmp when temacs is re-generated.
12221         Don't ignore errors when dumping xemacs.
12222
12223         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12224
12225 2000-01-28  Andy Piper  <andy@xemacs.org>
12226
12227         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12228         (setup_normal_frame): ditto.
12229         (setup_frame_without_minibuffer): ditto.
12230         (setup_minibuffer_frame): ditto.
12231         (delete_frame_internal): ditto.
12232         (Fmake_frame_invisible): ditto.
12233         (Ficonify_frame): ditto.
12234
12235         * window.h: change Fset_window_buffer signature.
12236
12237         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12238         (Fset_window_buffer): allow recording of buffer if the window is
12239         the selected window.
12240         (window_loop): Use new Fset_window signature.
12241
12242 2000-01-23  Daniel Pittman  <daniel@danann.net>
12243
12244         * config.h.in: Added template for `HAVE_ATHENA_3D'
12245
12246 2000-01-29  Andy Piper  <andy@xemacs.org>
12247
12248         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12249
12250         * gutter.c (output_gutter): Don't output if the window isn't live.
12251
12252 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12253
12254         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12255         of 01/12/00: Moved SetFocus back here where it belongs.
12256
12257 2000-01-23  Andy Piper  <andy@xemacs.org>
12258
12259         * s/cygwin32.h: declare printer things.
12260
12261 2000-01-26  Andy Piper  <andy@xemacs.org>
12262
12263         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12264         Alexander.
12265
12266 2000-01-24  Andy Piper  <andy@xemacs.org>
12267
12268         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12269         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12270
12271         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12272
12273         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12274
12275         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12276
12277         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12278         (mswindows_output_display_block): Avoid local shadows.
12279
12280         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12281         (mswindows_enqueue_mouse_button_event): ditto.
12282         (mswindows_handle_gui_wm_command): remove declaration.
12283
12284         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12285         warnings.
12286
12287         * console-msw.h: Avoid shadows.
12288         (mswindows_get_toolbar_button_text):
12289         (emacs_mswindows_create_stream_pair):
12290         (emacs_mswindows_delete_stream_pair):
12291         (mswindows_handle_toolbar_wm_command): declare.
12292
12293         * device-msw.c (build_syscolor_string): Avoid shadows.
12294
12295 2000-01-23  Andy Piper  <andy@xemacs.org>
12296
12297         * glyphs-widget.c (widget_instantiate): reverse the items for
12298         layouts so that children are in the expected order.
12299
12300 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12301
12302         * ralloc.c: safe_bcopy ==> memmove
12303         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12304         * s/msdos.h: Remove BCOPY macros.
12305         * insdel.c (gap_right): Remove BCOPY conditional code.
12306         * insdel.c (gap_left): Remove BCOPY conditional code.
12307         XEmacs demands a working ANSI C compiler - hence memmove.
12308
12309         * regex.c (regex_compile): Remove accidental use of trigraphs.
12310
12311 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12312
12313         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12314         event timestamp.
12315
12316 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12317
12318         * event-msw.c (mswindows_drain_windows_queue): Added the
12319         parameter.
12320         (mswindows_need_event): Commented the call to
12321         mswindows_drain_windows_queue().
12322         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12323         only.
12324
12325         * console-msw.h: Moved a few function prototypes here from
12326         event-msw.c.
12327
12328         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12329         parameter from unsigned short to unsigned long.
12330         (Fmswindows_shell_execute): Added return value.
12331
12332 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12333
12334         * sysdep.c (init_system_name):
12335           process-unix.c (unix_canonicalized_host_name):
12336         Don't call freeaddrinfo() if getaddrinfo() fails.
12337
12338         * process-unix.c (unix_open_unix_network_stream):
12339         Moved the code to get a port # into address loop.
12340
12341 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12342
12343         * buffer.c (reinit_vars_of_buffer):
12344         The right place to initialize conversion_in_dynarr and
12345         conversion_out_dynarr.
12346
12347         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12348
12349         * process-unix.c (unix_canonicalize_host_name): Muleize.
12350         (unix_open_network_stream): Muleize.
12351
12352         * buffer.h: Fix up prototypes for ralloc.c functions.
12353
12354 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12355         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12356         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12357                 instead of gethostbyname()
12358         * process-unix.c: In unix_canonicalize_host_name() and
12359                 unix_open_network_stream(), add code to use getaddrinfo()
12360                 instead of gethostbyname().
12361
12362 2000-01-27  Daniel Pittman <daniel@danann.net>
12363
12364         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12365         libs when built with flat Athena.
12366
12367 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12368
12369         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12370         Use coding standards for function prototypes.
12371
12372 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12373
12374         * dialog-msw.c (push_lisp_string_as_unicode):
12375         * doc.c (unparesseuxify_doc_string):
12376         * dired.c (Fuser_name_completion_1):
12377         * dired.c (Fuser_name_all_completions):
12378         * dired.c (free_user_cache):
12379         * dired.c (user_name_completion):
12380         * console-x.c (get_display_arg_connection):
12381         * minibuf.c (clear_echo_area_internal):
12382         * minibuf.c (echo_area_append):
12383         * eldap.c (Fldap_open):
12384         * eldap.c (Fldap_search_internal):
12385         * frame-x.c (x_set_frame_text_value):
12386         * frame-x.c (x_set_frame_properties):
12387         * frame-x.c (x_create_widgets):
12388         * redisplay-tty.c (term_get_fkeys_1):
12389         * objects-x.c (x_parse_nearest_color):
12390         * objects-x.c (x_valid_color_name_p):
12391         * objects-x.c (x_initialize_font_instance):
12392         * objects-x.c (x_list_fonts):
12393         * objects-x.c (x_find_charset_font):
12394         * tooltalk.c (Fadd_tooltalk_message_arg):
12395         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12396         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12397         * process-unix.c (unix_create_process):
12398         * ntproc.c (sys_spawnve):
12399         * sound.c (Fplay_sound_file):
12400         * sound.c (Fplay_sound):
12401         * buffer.c (init_initial_directory):
12402         * buffer.c (init_buffer):
12403         * editfns.c (init_editfns):
12404         * editfns.c (Ftemp_directory):
12405         * editfns.c (Fuser_full_name):
12406         * editfns.c (uncache_home_directory):
12407         * editfns.c (get_home_directory):
12408         * editfns.c (Fuser_home_directory):
12409         * editfns.c (Fformat_time_string):
12410         * editfns.c (Fcurrent_time_string):
12411         * gui-x.c (button_item_to_widget_value):
12412         * database.c (Fopen_database):
12413         * event-Xt.c (x_to_emacs_keysym):
12414         * event-Xt.c (x_event_to_emacs_event):
12415         * event-Xt.c (describe_event_window):
12416         * event-msw.c (mswindows_wnd_proc):
12417         * glyphs-eimage.c (jpeg_instantiate):
12418         * glyphs-eimage.c (gif_instantiate):
12419         * glyphs-eimage.c (png_instantiate):
12420         * glyphs-eimage.c (tiff_instantiate):
12421         * glyphs-x.c (xbm_instantiate_1):
12422         * glyphs-x.c (x_xbm_instantiate):
12423         * glyphs-x.c (x_xface_instantiate):
12424         * glyphs-x.c (autodetect_instantiate):
12425         * glyphs-x.c (cursor_font_instantiate):
12426         * glyphs-x.c (x_widget_instantiate):
12427         * glyphs-x.c (x_widget_set_property):
12428         * glyphs-x.c (x_widget_property):
12429         * glyphs-x.c (BUILD_GLYPH_INST):
12430         * print.c (write_string_to_stdio_stream):
12431         * print.c (output_string):
12432         * print.c (Falternate_debugging_output):
12433         * print.c (Fexternal_debugging_output):
12434         * glyphs-msw.c (extract_xpm_color_names):
12435         * glyphs-msw.c (mswindows_xpm_instantiate):
12436         * glyphs-msw.c (bmp_instantiate):
12437         * glyphs-msw.c (resource_name_to_resource):
12438         * glyphs-msw.c (mswindows_resource_instantiate):
12439         * glyphs-msw.c (xbm_instantiate_1):
12440         * glyphs-msw.c (mswindows_xbm_instantiate):
12441         * glyphs-msw.c (mswindows_xface_instantiate):
12442         * glyphs-msw.c (mswindows_widget_instantiate):
12443         * glyphs-msw.c (add_tree_item):
12444         * glyphs-msw.c (add_tab_item):
12445         * glyphs-msw.c (mswindows_combo_box_instantiate):
12446         * glyphs-msw.c (mswindows_widget_property):
12447         * glyphs-msw.c (mswindows_combo_box_property):
12448         * glyphs-msw.c (mswindows_widget_set_property):
12449         * console.c (stuff_buffered_input):
12450         * objects-msw.c (mswindows_initialize_color_instance):
12451         * objects-msw.c (mswindows_valid_color_name_p):
12452         * objects-msw.c (mswindows_list_fonts):
12453         * objects-msw.c (mswindows_font_instance_truename):
12454         * bytecode.c (optimize_compiled_function):
12455         * select-x.c (symbol_to_x_atom):
12456         * select-x.c (x_atom_to_symbol):
12457         * select-x.c (hack_motif_clipboard_selection):
12458         * select-x.c (selection_data_to_lisp_data):
12459         * select-x.c (lisp_data_to_selection_data):
12460         * select-x.c (Fx_get_cutbuffer_internal):
12461         * select-x.c (Fx_store_cutbuffer_internal):
12462         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12463         * buffer.h (TO_INTERNAL_FORMAT): New function.
12464         * emacs.c (make_arg_list_1):
12465         * emacs.c (make_argc_argv):
12466         * emacs.c (main_1):
12467         * emacs.c (Fdump_emacs):
12468         * emacs.c (split_string_by_emchar_1):
12469         * file-coding.h:
12470         * lisp.h:
12471         * lstream.h:
12472         * symsinit.h:
12473         * device-x.c (x_init_device):
12474         * device-x.c (Fx_valid_keysym_name_p):
12475         * device-x.c (Fx_get_font_path):
12476         * device-x.c (Fx_set_font_path):
12477         * glyphs.c (bitmap_to_lisp_data):
12478         * glyphs.c (pixmap_to_lisp_data):
12479         * alloc.c (make_ext_string): Use coding system arguments.  Update
12480         all callers.
12481         * alloc.c (build_string):
12482         * callproc.c (child_setup):
12483         * callproc.c (init_callproc):
12484         * fileio.c (lisp_strerror):
12485         * fileio.c (directory_file_name):
12486         * fileio.c (Fexpand_file_name):
12487         * fileio.c (Ffile_truename):
12488         * fileio.c (Fsysnetunam):
12489         * fileio.c (Fdo_auto_save):
12490         * sysdep.c (sys_readdir):
12491         * tests.c: New file.  Allow adding C tests.
12492         Replace GET_* macros with a more comprehensible and flexible
12493         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12494         Modify all calls.
12495         Any coding system can be used to do format conversion.
12496         Eliminate enum external_data_format.
12497         Eliminate convert_to_external_format.
12498         Eliminate convert_to_internal_format.
12499         Make sure file-name, keyboard, terminal, and ctext are always
12500         defined as coding systems or aliases.  Make
12501         file-name-coding-system, terminal-coding-system, and
12502         keyboard-coding-system magical variables that are equivalent to
12503         defining the corresponding coding system aliases.
12504
12505         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12506         * file-coding.c (Fcoding_system_alias_p): New function.
12507         * file-coding.c (Fcoding_system_aliasee): New function.
12508         * file-coding.c (append_suffix_to_symbol): New function.
12509         * file-coding.c (dangling_coding_system_alias_p): New function.
12510         * file-coding.c (Ffind_coding_system):
12511         * file-coding.c (Fcopy_coding_system):
12512         * file-coding.c (encode_coding_no_conversion):
12513         * file-coding.c (syms_of_file_coding):
12514         * file-coding.c (vars_of_file_coding):
12515         Rewrite coding system alias code.
12516         Allow nested aliases, like symbolic links.
12517         Allow redefinition of coding system aliases.
12518         Prevent existence of dangling coding system aliases.
12519
12520         * dired.c (Fuser_name_completion_1):
12521         * dired.c (Fuser_name_all_completions):
12522         A crash would happen if user did QUIT in the middle of building
12523         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12524
12525         * lisp.h:
12526         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12527
12528         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12529         an unsigned char *.  Update all callers.
12530
12531 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12532
12533         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12534
12535 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12536
12537         * elhash.c (hentry_description): Use more portable definition.
12538         (resize_hash_table): Initialize new hentries using
12539         xnew_array_and_zero, thereby simplifying the code.
12540
12541         * mule-charset.c (make_charset): Make sure entire object is
12542         initialized, to avoid Purify warnings.
12543
12544         * alloc.c (resize_string): Fix unlikely crash with big strings.
12545
12546 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12547
12548         * realpath.c (xrealpath):
12549         Don't call getwd().
12550
12551 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12552
12553         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12554
12555 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12556
12557         * unexelfsgi.c (unexec): Change the way we decide which segment
12558         should be extended.
12559
12560         Assumption that .bss section should be outside the PT_LOADable
12561         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12562         it's present) is inside the 'data' segment. This would fail the
12563         test which was used to find a segment to grow and cover new
12564         heap. Instead of this assumption, I created another one - on IRIX
12565         the segment to grow should start below .bss and it's address
12566         should extent above the end of .bss. Once this segment is
12567         identified, it's grown to accommodate the new heap and new
12568         zero-length .bss section is added at the end of .data2.
12569
12570 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12571
12572         * eval.c (Feval): Wrong number of arguments should use original
12573         function, not the indirect_function version of it.
12574
12575 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12576
12577         * glyphs-x.c (x_button_instantiate): Don't add image if
12578         it is not a pixmap.
12579         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12580         is relative.
12581
12582 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12583
12584         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12585         declaration.
12586         (DEFVAR_INT_MAGIC): Ditto.
12587         (DEFVAR_BOOL_MAGIC): Ditto.
12588         * glyphs.h: Reindent backslash.
12589
12590 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12591
12592         * glyphs-widget.c (layout_query_geometry):
12593         (layout_layout): Use correct types for gheight, gwidth.
12594
12595 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12596
12597         * EmacsManager.c (QueryGeometry): Purified.
12598
12599 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12600
12601         * alloc.c (make_float): Make sure entire object is initialized, to
12602         avoid Purify warnings.
12603         (pdump_register_sub): Remove useless assignment.
12604         (pdump): Use xmalloc, not malloc.
12605         (pdump_load): Use xmalloc, not malloc.
12606
12607 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12608
12609         * callproc.c:
12610         * dired-msw.c:
12611         * fileio.c:
12612         * process-nt.c:
12613         * redisplay-msw.c:
12614         * sysdep.c: Removed redundant #include <windows.h>
12615
12616 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12617
12618         * frame.c (delete_frame_internal): Do not delete device when its
12619         implementation so declares.
12620         (delete_frame_internal): Set device selected frame to nil when
12621         last frame goes away.
12622
12623         * device-msw.c (msprinter_device_system_metrics): Implemented.
12624         (mswindows_device_system_metrics): Added 'device-dpi property.
12625
12626         * device.c: (Fdevice_printer_p): Added.
12627         Added 'offset-workspace device metric.
12628
12629         * console.h (device_metrics): Declared DM_offset_workspace.
12630
12631 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12632
12633         * fileio.c (Ffile_truename): Remove pointless and confusing
12634         initialization of elen.
12635
12636         * glyphs-widget.c: Compiler warning fixes.
12637
12638 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12639
12640         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12641         instead of a Lisp_Object as argument to make it consistent with
12642         the other LIVE_P macros.
12643         (CHECK_LIVE_PROCESS): New macro.
12644
12645         * process.c: Declare Qprocess_live_p.
12646         (Fprocess_live_p): New function.
12647         (create_process): Use PROCESS_LIVE_P.
12648         (read_process_output): Ditto.
12649         (set_process_filter): Ditto.
12650         (Fdelete_process): Ditto.
12651         (kill_buffer_processes): Ditto
12652         (process_send_signal): Use CHECK_LIVE_PROCESS.
12653         (Fprocess_input_coding_system): Check whether process is still
12654         alive (fix PR#1061).
12655         (Fprocess_output_coding_system): Ditto.
12656         (Fprocess_coding_system): Ditto.
12657         (Fset_process_input_coding_system): Ditto.
12658         (Fset_process_output_coding_system): Ditto.
12659
12660 2000-01-23  Andy Piper  <andy@xemacs.org>
12661
12662         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12663         layout and widget.
12664
12665         * glyphs.c (mark_image_instance): take into account changed
12666         image_instance format.
12667         (image_instance_equal): ditto.
12668         (image_instance_hash): ditto.
12669
12670         * glyphs-widget.c (widget_instantiate): Incorporate layout
12671         instantiation here. Delay layout of the layout until later.
12672         (layout_instantiate): deleted.
12673         (layout_query_geometry): new function. get the geometry of a
12674         layout.
12675         (layout_layout): layout a layout dynamically.
12676         (image_instantiator_widget): New function - splitting up
12677         image_instantiator_format_create_glyphs_widget for netwinder
12678         compilation.
12679         (image_instantiator_buttons):
12680         (image_instantiator_edit_fields):
12681         (image_instantiator_combo_box):
12682         (image_instantiator_scrollbar):
12683         (image_instantiator_progress_guage):
12684         (image_instantiator_tree_view):
12685         (image_instantiator_tab_control):
12686         (image_instantiator_labels):
12687         (image_instantiator_layout): ditto.
12688         (image_instantiator_format_create_glyphs_widget): Call preceding
12689         functions.
12690
12691 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12692
12693         * process.c (Fset_process_coding_system):
12694         * device-x.c (Fx_keysym_hash_table):
12695         Docstring fixes.
12696
12697         * lstream.c (Lstream_write): Return documented value, not 0.
12698
12699         * fileio.c (directory_file_name):
12700         (Fsubstitute_in_file_name):
12701         (Fsubstitute_insert_file_contents_internal):
12702         (Fwrite_region_internal):
12703         * emacs.c:
12704         * sysdep.c:
12705         * getloadavg.c:
12706         * systty.h:
12707         Remove vestigial APOLLO-conditional code.
12708
12709 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12710
12711         * getpagesize.h: Add guard macros.
12712         * libsst.h: Add guard macros.
12713         * libst.h: Add guard macros.
12714         * line-number.h: Add guard macros.
12715         * ndir.h: Add guard macros.
12716         * sysfloat.h: Add guard macros.
12717         * sysfile.h: Add guard macros.
12718         * sysproc.h: Add guard macros.
12719         * syswait.h: Add guard macros.
12720         * xintrinsic.h: Add guard macros.
12721         * xintrinsicp.h: Add guard macros.
12722         * xmmanager.h: Add guard macros.
12723         * xmmanagerp.h: Add guard macros.
12724         * xmprimitive.h: Add guard macros.
12725         * xmu.h: Add guard macros.
12726         * gpmevent.h: Add copyright statement. Add guard macros.
12727         * miscplay.h: Add guard macros.
12728         * *.h: Use consistent C-standards-approved guard macro names.
12729
12730         * opaque.c (make_opaque): Switch parameter order.
12731         * opaque.h (make_opaque): Switch parameter order.
12732         Update all callers.
12733         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12734
12735         * config.h.in (type_checking_assert): Added.
12736         (bufpos_checking_assert): Added.
12737
12738 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12739
12740         * alloc.c: Harmless pdump changes.
12741         - Use countof().
12742         - spell alignment correctly.
12743         * sysdep.c: Use countof()
12744
12745 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12746
12747         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12748         initially_selected_for_input() console method, default to 0.
12749         (semi_canonicalize_console_connection): Try to delegate to
12750         canonicalize_console_connection if no such console method.
12751         (canonicalize_console_connection): Vice versa.
12752         (print_console): Do not print nil connection.
12753
12754         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12755         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12756         (XDEVIMPF_FRAMELESS_OK): Added.
12757         (CONSOLE_INHERITS_METHOD): Added.
12758
12759         * console-msw.c (mswindows_canonicalize_console_connection):
12760         Added.
12761         (mswindows_canonicalize_device_connection): Added.
12762
12763         * console-msw.h (struct msprinter_device): Added this struct and
12764         accessor macros.
12765         (mswindows_device): Made fontlist a lisp object.
12766
12767         * device.c (semi_canonicalize_device_connection):  Try to delegate
12768         to canonicalize_device_connection if no such console method.
12769         (canonicalize_device_connection): Vice versa.
12770         (print_device): Do not print nil connection.
12771
12772         * device-msw.c (mswindows_init_device): Call InitCommonControls
12773         when have widgets.
12774         (mswindows_delete_device): Removed fontlist deallocation.
12775         (mswindows_mark_device): Added.
12776
12777         * events.c (event_equal): Added abort() at unreached code.
12778         (event_hash): Ditto.
12779
12780         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12781         fallback tags of Windows devices.
12782
12783         * general.c (syms_of_general): Initialized Qmsprinter.
12784
12785         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12786         of fallback tags of Windows devices.
12787
12788         * lisp.h: Declared Qmsprinter.
12789
12790         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12791         of strings.
12792         (mswindows_list_fonts): Ditto.
12793         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12794         that it can be used by both mswindows and msprinter devices.
12795         (initialize_font_instance): Added.
12796         (mswindows_initialize_font_instance): Use it.
12797         (msprinter_initialize_font_instance): Added.
12798
12799         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12800         and implementation flags check.
12801         (redisplay_without_hooks): Changed the call to the above.
12802         (Fredraw_device): Ditto.
12803         (Fredisplay_device): Ditto.
12804
12805         * redisplay-msw.c (get_frame_dc): Implemented.
12806         (get_frame_compdc): Implemented.
12807         (many functions): Use the two functions above to get device
12808         contexts, ether for a window or a printer.
12809
12810 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12811
12812         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12813         initialization here.
12814         (init_symbols_once_early): Call it.
12815         * emacs.c (main_1): Call it.
12816         * symsinit.h: Declare it.
12817
12818 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12819
12820         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12821         Lisp_Object.
12822         (pdump_backtrace): Ditto.
12823         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12824         (pdump_get_entry): Abort if trying to register a null pointer.
12825         (pdump_dump_data): Cleanup types when relocating.
12826         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12827         (pdump_dump_rtables): Remove bad casts.
12828         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12829         Lisp_Object instead of a EMACS_INT for the hashtable
12830         reorganization.
12831
12832 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12833
12834         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12835
12836         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12837
12838         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12839
12840         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12841
12842 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12843
12844         * faces.h (FACE_STRIKETHRU_P): Added.
12845
12846         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12847         of font variants.
12848
12849         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12850         (mswindows_set_dc_font): New function, aware of font variants,
12851         separated from mswindows_update_dc.
12852
12853         * objects-msw.h (struct mswindows_font_instance_data): Added
12854         definition.
12855
12856         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12857         cached fonts and the data structure.
12858         (mswindows_initialize_font_instance): Added creation of font data
12859         structure.
12860         (mswindows_print_font_instance): Print at least something.
12861         (mswindows_create_font_variant): Implemented.
12862         (mswindows_get_hfont): Implemented.
12863
12864 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12865
12866         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12867         prototyping problem with msvc.
12868
12869         * emacs.c (main_1): added syms_of_gui_mswindows() call
12870
12871         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12872         syms_of_gui_mswindows() function
12873
12874         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12875
12876 2000-01-18  Martin Buchholz <martin@xemacs.org>
12877
12878         * XEmacs 21.2.27 is released.
12879
12880 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12881
12882         * glyphs-eimage.c (struct tiff_error_struct):
12883         (tiff_error_func):
12884         (tiff_warning_func):
12885         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12886
12887         * unexmips.c:
12888         * unexhp9k3.c:
12889         * unexfreebsd.c:
12890         * unexec.c: Remove vestigial Lucid C code.
12891         * unexalpha.c:
12892         * unexaix.c:
12893         * termcap.c:
12894         * libsst.c: Ansify.
12895         Remove declarations of errno and strerror().
12896
12897         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12898
12899         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12900
12901 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12902
12903         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12904         Optimize.
12905
12906 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12907
12908         * md5.c:
12909         * file-coding.c:
12910         * file-coding.h:
12911         Change enum eol_type to eol_type_t.
12912
12913 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12914
12915         * gui.c (get_gui_callback): Check cons before accessing car.
12916
12917 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12918
12919         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12920         (XSETSPECIFIER_TYPE): Ditto.
12921
12922 2000-01-17  Didier Verna  <didier@xemacs.org>
12923
12924         * redisplay.c (generate_fstring_runes): compute string size in
12925         characters, not bytes.
12926
12927 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12928
12929         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12930
12931 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12932
12933         * print.c (print_error_message): Call print_prepare().
12934
12935 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12936
12937         * .dbxrc: Renamed from dbxrc.
12938
12939         * events.c (event_to_character):
12940         Use `assert (foo)' instead of `if (!foo) abort()'
12941
12942         * .gdbinit (xtype): Add documentation.
12943         * .gdbinit (check-temacs): New function.
12944         * .gdbinit (check-xemacs): New function.
12945         * dbxrc (check-xemacs): New function.
12946         * dbxrc (check-xemacs): New function.
12947
12948 2000-01-14  Andy Piper  <andy@xemacs.org>
12949
12950         * glyphs-widget.c (widget_query_geometry): Make sure that we
12951         calculate default dimensions correctly.
12952
12953 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12954
12955         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12956
12957         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12958         pdump_wire'd variable.
12959
12960         * emacs.c: (main_1): Conditionalized calls to
12961         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12962
12963 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12964
12965         * window.c (Fset_window_configuration):
12966         * sysdep.c (_start):
12967         * input-method-motif.c (res):
12968         * event-Xt.c (Xt_process_to_emacs_event):
12969         Simple compiler warning fixes.
12970
12971         * bytecode.c (funcall_compiled_function): Use the original
12972         function symbol on the backtrace list in preference to the
12973         compiled_function object in error messages.
12974
12975 2000-01-13  Andy Piper  <andy@xemacs.org>
12976
12977         * glyphs-x.c (update_widget_face): Make sure we update the widget
12978         background as well as foreground.
12979
12980 2000-01-13  Andy Piper  <andy@xemacs.org>
12981
12982         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12983         fields to subwindow.
12984         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12985         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12986         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12987         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12988
12989         * glyphs-widget.c (check_valid_tab_orientation): new function.
12990         (initialize_widget_image_instance): zero orientation and
12991         justification.
12992         (widget_instantiate): pick up orientation.
12993         (tab_control_query_geometry): return appropriate values for
12994         vertical tabs.
12995
12996         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12997         appropriate creation flags for left, right and bottom tabs.
12998
12999         * s/cygwin32.h: add tab definitions.
13000
13001 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13002
13003         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13004         frame upon hiding a subwindow.
13005         (mswindows_button_instantiate): Changed the push button style to
13006         BS_PUSHBUTTON.
13007         (mswindows_button_instantiate): Removed button BS_NOTIFY
13008         style.
13009         (mswindows_button_instantiate): Removed redundant check for
13010         a disabled gui item.
13011         (mswindows_button_instantiate): Made use of WS_TABSTOP
13012         consistent: "operable" controls (edit, button, tree, scroll) have
13013         this style, "display-only" ones (static, progress gauge) do
13014         not. This style is currently ignored by XEmacs though. Also,
13015         removed the WS_EX_CONTROLPARENT style - it is not for children,
13016         it is for their parents!
13017         (mswindows_edit_field_instantiate): Ditto.
13018         (mswindows_progress_gauge_instantiate): Ditto.
13019         (mswindows_tree_view_instantiate): Ditto.
13020         (mswindows_tab_control_instantiate): Ditto.
13021         (mswindows_scrollbar_instantiate): Ditto.
13022         (mswindows_combo_box_instantiate): Ditto.
13023         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13024         style to the "clip" window.
13025         (mswindows_button_instantiate): Removed compilation warning by
13026         equally typing terms of the ?: operator.
13027
13028 2000-01-12  Didier Verna  <didier@xemacs.org>
13029
13030         * redisplay.c (generate_fstring_runes): new parameter holding the
13031         last modeline-format extent.
13032         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13033         extent, fill the glyph block with it.
13034         (generate_fstring_runes): handle these parameters.
13035         (generate_formatted_string_db): ditto.
13036
13037         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13038         glyphs'extents in the modeline.
13039
13040 1999-01-11  Mike Woolley  <mike@bulsara.com>
13041
13042         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13043         256Mb, as a workaround for the non-starting problem many people
13044         have experienced.
13045
13046 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13047
13048         * console-tty.c (Fset_console_tty_output_coding_system):
13049         Force redrawing tty frame.
13050
13051 2000-01-10  Didier Verna  <didier@xemacs.org>
13052
13053         * redisplay.c (generate_fstring_runes): fix size computation bug.
13054
13055 2000-01-09  William M. Perry <wmperry@aventail.com>
13056
13057         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13058
13059 2000-01-09  Andy Piper  <andy@xemacs.org>
13060
13061         * glyphs-msw.c: index -> i to avoid shadows.
13062         (xbm_create_bitmap_from_data): make static.
13063         (check_valid_string_or_int): deleted.
13064         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13065
13066         * glyphs-x.c (x_update_subwindow): remove unused args.
13067
13068         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13069         back pointer - this is done in allocate_image_instance.
13070         (query_string_font): return Qnil to make the compiler happy.
13071         (unmap_subwindow): set to ~0 to make the compiler happy.
13072         (glyph_query_geometry): comment out until used.
13073         (glyph_layout): ditto.
13074
13075 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13076
13077         * insdel.c (signal_after_change): Remove extraneous unbind_to().