Sync up with r21-4-11-chise-0_21-=gb2312.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
4         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
5         `chinese-gb2312'.
6         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
7         `=gb2312'.
8
9 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
10
11         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
12         (syms_of_mule_charset): Add new symbol `=big5' instead of
13         `chinese-big5'.
14         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
15
16 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
19         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
20         `korean-ksc5601'.
21         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
22         `=ks-x1001'.
23
24 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
25
26         * mule-charset.c (Qmap_jis_x0212): Renamed from
27         `Qjapanese_jisx0212'.
28         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
29         `japanese-jisx0212'.
30         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
31         `=jis-x0212'.
32
33 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
34
35         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
36         `Qjapanese_jisx0208'.
37         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
38         of `japanese-jisx0208'.
39         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
40         `=jis-x0208-1983'.
41
42 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
45         `Qjapanese_jisx0208_1978'.
46         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
47         of `japanese-jisx0208-1978'.
48         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
49         `=jis-x0208-1978'.
50
51 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
52
53         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
54         only for XEmacs CHISE.
55
56 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
57
58         * char-ucs.h: Compact non-ISO-IR charset-ids.
59         (LEADING_BYTE_UCS): Changed to -177.
60         (LEADING_BYTE_CONTROL_1): Changed to -77.
61         (LEADING_BYTE_UCS_BMP): Changed to -176.
62         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
63
64 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * mule-charset.c (Qiso_ir): New variable.
67         (Fmake_charset): Recognise new property `iso-ir'.
68         (syms_of_mule_charset): Add new symbol `iso-ir'.
69
70 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
71
72         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
73         n to -n; charset-id of non ISO-IR sets are changed to positive
74         numbers.
75
76 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
77
78         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
79         of `ucs'.
80         (Qmap_ucs): New variable.
81         (syms_of_mule_charset): Add new symbol `=ucs'.
82         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
83
84         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
85
86         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
87
88         * char-ucs.h (Qmap_ucs): New extern variable.
89
90 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
93         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
94         don't define it when UTF2000 is not defined.
95         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
96         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
97         when UTF2000 is not defined.
98         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
99         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
100
101 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
104
105         * mule-charset.c (Vcharset_ucs_gb): Deleted.
106         (Qucs_gb): Deleted.
107         (syms_of_mule_charset): Delete `ucs-gb'.
108         (complex_vars_of_mule_charset): Likewise.
109
110 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
111
112         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
113
114         * mule-charset.c (Vcharset_ucs_cns): Deleted.
115         (Qucs_cns): Deleted.
116         (syms_of_mule_charset): Delete `ucs-cns'.
117         (complex_vars_of_mule_charset): Likewise.
118
119 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
122
123         * mule-charset.c (Vcharset_ucs_jis): Deleted.
124         (Qucs_jis): Deleted.
125         (syms_of_mule_charset): Delete `ucs-jis'.
126         (complex_vars_of_mule_charset): Likewise.
127
128 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
129
130         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
131
132         * mule-charset.c (Vcharset_ucs_ks): Deleted.
133         (Qucs_ks): Deleted.
134         (syms_of_mule_charset): Delete `ucs-ks'.
135         (complex_vars_of_mule_charset): Likewise.
136
137 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
138
139         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
140         (Qideograph_daikanwa_2): Deleted.
141         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
142         (complex_vars_of_mule_charset): Likewise.
143
144         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
145         (LEADING_BYTE_DAIKANWA_1): Deleted.
146         (LEADING_BYTE_DAIKANWA_2): Deleted.
147         (MIN_CHAR_DAIKANWA): Deleted.
148         (MAX_CHAR_DAIKANWA): Deleted.
149
150 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
151
152         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
153         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
154         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
155
156         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
157         (Vcharset_ideograph_daikanwa): Deleted.
158         (Qideograph_hanziku_{1..12}): Deleted.
159         (Qideograph_daikanwa): Deleted.
160         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
161         Vcharset_ideograph_daikanwa.
162         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
163         `ideograph-hanziku-{1..12}'.
164         (complex_vars_of_mule_charset): Likewise.
165
166 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
167
168         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
169
170         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
171         (Qideograph_gt_pj_{1..11}): Deleted.
172         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
173         (complex_vars_of_mule_charset): Likewise.
174
175 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * mule-charset.c (Vcharset_ucs_big5): Deleted.
178         (Vcharset_ideograph_gt): Deleted.
179         (Qucs_big5): Deleted.
180         (Qideograph_gt): Deleted.
181         (syms_of_mule_charset): Delete symbol `ucs-big5' and
182         `ideograph-gt'.
183         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
184         and `ideograph-gt'.
185
186         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
187         (LEADING_BYTE_GT): Deleted.
188         (GC_CHARSETP): Deleted.
189         (MIN_CHAR_GT): Deleted.
190         (MAX_CHAR_GT): Deleted.
191
192 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
195
196 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
197
198         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
199         (Qideograph_cbeta): Deleted.
200         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
201         (complex_vars_of_mule_charset): Likewise.
202
203         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
204         (MIN_CHAR_CBETA): Comment out.
205         (MAX_CHAR_CBETA): Likewise.
206
207 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
208
209         * mule-charset.c (charset_lookup_description_1): Use
210         `NUM_LEADING_BYTES' in UTF-2000.
211
212 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * mule-charset.c (Vcharset_china3_jef): Deleted.
215         (Qchina3_jef): Deleted.
216         (syms_of_mule_charset): Don't define `china3-jef'.
217         (complex_vars_of_mule_charset): Likewise.
218
219         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
220         (MIN_CHAR_CHINA3_JEF): Comment out.
221         (MAX_CHAR_CHINA3_JEF): Comment out.
222
223 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * mule-charset.c (Vcharset_ucs_gb): New variable.
226         (Qucs_gb): New variable.
227         (syms_of_mule_charset): Add new symbol `ucs-gb'.
228         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
229
230         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
231
232 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * mule-charset.c (charset_code_point): if a coded-charset has a
235         final-byte, don't inherit the builtin range of the mother CCS.
236
237 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
238
239         * mule-charset.c (charset_code_point): Fix problem about
240         inheritance.
241
242 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
243
244         * mule-charset.c (decode_builtin_char): Reorganized.
245
246 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * text-coding.c (char_encode_shift_jis): Modify for
249         `charset_code_point'.
250         (char_encode_big5): Likewise.
251         (char_encode_utf8): Likewise.
252         (char_encode_iso2022): Likewise.
253
254         * mule-charset.c (charset_code_point): Add new argument
255         `defined_only'.
256         (Fencode_char): Add new optional argument `defined_only'.
257
258         * chartab.c (put_char_table): Modify for `charset_code_point'.
259         (map_char_table): Likewise.
260
261         * char-ucs.h (charset_code_point): Add new argument
262         `defined_only'.
263         (encode_char_1): Modify for `charset_code_point'.
264
265 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
268         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
269
270 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
273         (Qjis_x0208): Likewise.
274         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
275         XCHARSET_FINAL(charset).
276         (charset_code_point): Modify condition for final-byte based
277         builtin-chars.
278         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
279         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
280         in UTF-2000; specify `=jis-x0208' as the mother of
281         `japanese-jisx0208-1978', `japanese-jisx0208' and
282         `japanese-jisx0208-1990' in UTF-2000.
283
284 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
285
286         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
287
288 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
291         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
292         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
293         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
294         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
295         CONVERSION_96x96x96x96 are introduced.
296         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
297         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
298         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
299
300         * char-ucs.h (CONVERSION_94): New macro.
301         (CONVERSION_96): New macro.
302         (CONVERSION_94x94): New macro.
303         (CONVERSION_96x96): New macro.
304         (CONVERSION_94x94x94): New macro.
305         (CONVERSION_96x96x96): New macro.
306         (CONVERSION_94x94x94x60): New macro.
307         (CONVERSION_94x94x94x94): New macro.
308         (CONVERSION_96x96x96x96): New macro.
309
310 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
311
312         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
313
314         * fns.c (Qideographic_structure): New variable.
315         (Qkeyword_char): New variable.
316         (ids_format_unit): New function.
317         (Fideographic_structure_to_ids): New function.
318         (syms_of_fns): Add new symbols `ideographic-structure' and
319         `:char'; add new builtin function `ideographic-structure-to-ids'.
320
321         * data.c (Fchar_ref_p): New function.
322         (syms_of_data): Add new builtin function `char-ref-p'.
323
324         * chartab.h: Add an EXFUN for `Ffind_char'.
325
326 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
327
328         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
329         and `COMPOSE_ADD_CHAR'.
330         (decode_coding_iso2022): Use `decode_flush_er_chars'.
331
332 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
333
334         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
335         instead of `DECODE_ADD_UCS_CHAR'.
336         (COMPOSE_ADD_CHAR): Likewise.
337
338 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
339
340         * text-coding.c (decode_flush_er_chars): New inline function.
341         (decode_add_er_char): New function.
342         (decode_coding_utf8): Use `decode_flush_er_chars' and
343         `decode_add_er_char'.
344
345 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
346
347         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
348         done before `decode_output_utf8_partial_char'.
349
350         * mule-charset.c (complex_vars_of_mule_charset): Specify
351         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
352         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
353
354 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * mule-charset.c (decode_defined_char): New function; search
357         mother.
358         (decode_builtin_char): Don't search mother if
359         XCHARSET_MAX_CODE(charset) == 0.
360         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
361         == 0 even if code >= XCHARSET_MAX_CODE(charset).
362         (Fdecode_char): Use `decode_defined_char' instead of
363         `DECODE_DEFINED_CHAR'.
364         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
365         mother of `Vcharset_ucs_jis'.
366
367         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
368         instead of `DECODE_DEFINED_CHAR'.
369
370         * char-ucs.h (decode_defined_char): Renamed from
371         `DECODE_DEFINED_CHAR'; changed to normal function.
372         (DECODE_CHAR): Use `decode_defined_char' instead of
373         `DECODE_DEFINED_CHAR'.
374
375         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
376
377 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
380
381         * text-coding.c (Vcoded_charset_entity_reference_alist): New
382         variable.
383         (Quse_entity_reference): New variable.
384         (Qd): New variable.
385         (Qx): New variable.
386         (QX): New variable.
387         (coding_system_description): Add description for
388         `ccs_priority_list'.
389         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
390         (allocate_coding_system): Initialize `ccs_priority_list' in
391         UTF-2000.
392         (Fmake_coding_system): Add description about
393         'use-entity-reference; setup
394         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
395         (Fcoding_system_property): Accept `disable-composition' and
396         `use-entity-reference' in UTF-2000.
397         (struct decoding_stream): Add new member `er_counter' and `er_buf'
398         in UTF-2000.
399         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
400         (decode_coding_utf8): Decode entity-reference if
401         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
402         (char_encode_utf8): Encode non-Unicode characters as
403         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
404         (str->codesys).
405         (syms_of_file_coding): Add new symbols `use-entity-reference',
406         `d', `x', `X'.
407         (vars_of_file_coding): Add new variable
408         `coded-charset-entity-reference-alist'.
409         (complex_vars_of_file_coding): Declare `disable-composition' and
410         `use-entity-reference' to be coding-system-properties in UTF-2000.
411
412         * file-coding.h (struct Lisp_Coding_System): Add new member
413         `use_entity_reference' and `ccs_priority_list'.
414         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
415         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
416         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
417
418 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
419
420         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
421
422 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
423
424         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
425         `XCHARSET_GRAPHIC(ccs)'.
426
427 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
428
429         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
430         for decoding-table.
431
432 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
433
434         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
435         instead of `XCHARSET_CHARS'.
436
437 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
438
439         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
440         (XCHARSET_BYTE_SIZE): Likewise.
441
442         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
443         mule-charset.c].
444         (XCHARSET_BYTE_SIZE): Likewise.
445
446 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * char-ucs.h (decoding_table_check_elements): Delete prototype.
449         (get_ccs_octet_table): New inline function.
450         (put_ccs_octet_table): Likewise.
451         (decoding_table_put_char): Use `get_ccs_octet_table' and
452         `put_ccs_octet_table'.
453         (decoding_table_remove_char): Use `decoding_table_put_char'.
454         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
455
456         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
457         into encoding_table.
458         (make_charset): Use Qunbound instead Qnil as initial value of
459         decoding_table.
460
461 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * mule-charset.c (put_char_ccs_code_point): Modify for
464         `decoding_table_remove_char' and `decoding_table_put_char'.
465         (remove_char_ccs): Modify for `decoding_table_remove_char'.
466
467         * char-ucs.h (decoding_table_remove_char): Change arguments to
468         hide decoding_table vector.
469         (decoding_table_put_char): Likewise.
470
471 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * mule-charset.c (decoding_table_remove_char): Moved to
474         char-ucs.h.
475         (decoding_table_put_char): Likewise.
476
477         * char-ucs.h (decoding_table_check_elements): New prototype [moved
478         from mule-charset.c].
479         (decoding_table_remove_char): New inline function [moved from
480         mule-charset.c].
481         (decoding_table_put_char): Likewise.
482
483 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
486         instead of `DECODE_CHAR' for mother; don't use special code for
487         chinese-big5 to use code space of chinese-big5-1 and
488         chinese-big5-2.
489         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
490         `MAX_CHAR_BIG5_CDP' for chinese-big5.
491
492         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
493         (MAX_CHAR_BIG5_CDP): Revival.
494
495 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
496
497         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
498         the XLFD registry-encoding name of `chinese-big5'.
499
500 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
501
502         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
503         (Qchinese_big5_cdp): Deleted.
504         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
505         (complex_vars_of_mule_charset): Delete coded-charset
506         `chinese-big5-cdp'.
507
508         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
509         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
510         `CHARSET_ID_OFFSET - n' for private CCS.
511         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
512         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
513         of `MIN_LEADING_BYTE'.
514         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
515         `(CHARSET_ID_OFFSET - 97)'.
516         (MIN_CHAR_BIG5_CDP): Deleted.
517         (MAX_CHAR_BIG5_CDP): Deleted.
518
519 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
522         extension.
523
524 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
525
526         * mule-charset.c (decode_builtin_char): Support mother charsets.
527
528 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
529
530         * mule-charset.c (Q94x94x60): New variable.
531         (charset_code_point): Support conversion `94x94x60'.
532         (Fmake_charset): Likewise.
533         (syms_of_mule_charset): Add new symbol `94x94x60'.
534
535         * char-ucs.h (CONVERSION_94x94x60): New macro.
536
537 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
538
539         * mule-charset.c (charset_code_point): Unify code about
540         `code-offset'.
541
542 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * mule-charset.c (charset_code_point): Merge code about builtin
545         characters into code about mother charsets; don't use
546         `range_charset_code_point'.
547         (range_charset_code_point): Deleted.
548
549 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * mule-charset.c (Qcode_offset): New variable.
552         (Fmake_charset): Use `XUINT' to get value of `min-code' and
553         `max-code'; accept new property `code-offset'.
554         (syms_of_mule_charset): Add new symbol `code-offset'.
555
556 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * mule-charset.c (range_charset_code_point): Fixed.
559
560 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * mule-charset.c (decode_builtin_char): Change semantics of
563         code-offset of coded-charset.
564         (charset_code_point): Likewise.
565         (range_charset_code_point): Likewise.
566         (complex_vars_of_mule_charset): Modify for the change.
567
568 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * mule-charset.c (Fencode_char): Reverse arguments.
571
572         * mule-charset.c (charset_code_point): Fixed.
573
574 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
575
576         * mule-charset.c (Vcharset_mojikyo): Deleted.
577         (Vcharset_mojikyo_2022_1): Deleted.
578         (Vcharset_mojikyo_pj_{1..21}): Deleted.
579         (Qmin_code): New variable in UTF-2000.
580         (Qmax_code): Likewise.
581         (Qmother): Likewise.
582         (Qconversion): Likewise.
583         (Q94x60): Likewise.
584         (Qmojikyo): Deleted.
585         (Qmojikyo_2022_1): Deleted.
586         (Qmojikyo_pj_{1..22}): Deleted.
587         (mark_charset): Mark `cs->mother'.
588         (charset_description): Add description for `mother'.
589         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
590         new arguments `mother' and `conversion'; use
591         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
592         (charset_code_point): Moved from char-ucs.h; support `mother'
593         charset feature.
594         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
595         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
596         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
597         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
598         allow 2 as the value of `graphic' in UTF-2000; add new properties
599         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
600         require `final' in UTF-2000; modify for `make_charset'.
601         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
602         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
603         (Fcharset_property): Support `mother', `min-code' and `max-code'.
604         (Fencode_char): New function.
605         (syms_of_mule_charset): Add new builtin function `encode-char' in
606         UTF-2000; add new symbols `min-code', `max-code', `mother',
607         `conversion' and `94x60'; delete symbols `mojikyo',
608         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
609         (complex_vars_of_mule_charset): Modify for `make_charset' change;
610         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
611         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
612
613         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
614         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
615
616         * char-ucs.h (Vcharset_mojikyo): Deleted.
617         (Vcharset_mojikyo_2022_1): Deleted.
618         (LEADING_BYTE_MOJIKYO): Deleted.
619         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
620         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
621         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
622         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
623         add new member `mother'; add new member `conversion'.
624         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
625         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
626         (CHARSET_MOTHER): New macro.
627         (CHARSET_CONVERSION): New macro.
628         (CONVERSION_IDENTICAL): New macro.
629         (CONVERSION_94x60): New macro.
630         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
631         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
632         (XCHARSET_MOTHER): New macro.
633         (XCHARSET_CONVERSION): New macro.
634         (MIN_CHAR_MOJIKYO): Deleted.
635         (MAX_CHAR_MOJIKYO): Deleted.
636         (DECODE_MOJIKYO_2022): Deleted.
637         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
638         (charset_code_point): Changed to non-inline function.
639         (encode_char_1): Use `charset_code_point'.
640         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
641
642 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * lread.c (read_compiled_function): Fix prototype.
645         (read_vector): Likewise.
646
647 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * lrecord.h (struct lrecord_header): Delete `older'.
650         (set_lheader_implementation): Delete code for `older'.
651         (set_lheader_older_implementation): Deleted.
652         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
653         (OLDER_RECORD_P): Deleted.
654         (OLDER_RECORD_HEADER_P): Deleted.
655         (alloc_older_lcrecord): Deleted.
656         (alloc_older_lcrecord_type): Deleted.
657
658         * alloc.c (all_older_lcrecords): Deleted.
659         (alloc_older_lcrecord): Deleted.
660         (disksave_object_finalization_1): Delete code for older objects.
661         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
662         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
663
664 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * mule-charset.c (decoding_table_put_char): Use `make_vector'
667         instead of `make_older_vector'.
668         (put_char_ccs_code_point): Likewise.
669         (mark_charset): Mark `cs->decoding_table'.
670         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
671
672         * lisp.h (make_older_vector): Deleted.
673         (make_vector_newer): Deleted.
674
675         * config.h.in (HAVE_GGC): Deleted.
676
677         * alloc.c (make_older_vector): Deleted.
678         (make_vector_newer_1): Deleted.
679         (make_vector_newer): Deleted.
680
681 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
682
683         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
684         (Qideograph_daikanwa_2): New variable.
685         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
686         (complex_vars_of_mule_charset): Add new coded-charset
687         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
688         `LEADING_BYTE_DAIKANWA'.
689
690         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
691         (LEADING_BYTE_DAIKANWA_1): New macro.
692         (LEADING_BYTE_DAIKANWA_2): New macro.
693         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
694
695 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
696
697         * mule-charset.c (complex_vars_of_mule_charset): Change
698         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
699         the second revised version.
700
701 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
702
703         * mule-charset.c (Vcharset_ucs_smp): New variable.
704         (Vcharset_ucs_sip): New variable.
705         (Qucs_smp): New variable.
706         (Qucs_sip): New variable.
707         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
708         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
709         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
710         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
711         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
712         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
713
714         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
715         (LEADING_BYTE_UCS_SIP): New macro.
716         (MIN_CHAR_SMP): New macro.
717         (MAX_CHAR_SMP): New macro.
718         (MIN_CHAR_SIP): New macro.
719         (MAX_CHAR_SIP): New macro.
720
721 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
722
723         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
724         utf-2000.
725
726 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
729         value; don't store value into `encoding_table' of `Lisp_Charset'.
730         (mark_charset): `encoding_table' was deleted.
731         (charset_description): Likewise.
732         (make_charset): Likewise.
733         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
734         `put_char_ccs_code_point'.
735
736         * chartab.h (Fput_char_attribute): New EXFUN.
737
738         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
739         is unified with normal symbol space.
740         (Fget_char_attribute): Likewise.
741         (Fput_char_attribute): Likewise; behavior of
742         `put_char_ccs_code_point' is changed.
743
744         * char-ucs.h: Include "elhash.h".
745         (Vchar_attribute_hash_table): New external variable.
746         (struct Lisp_Charset): Delete `encoding_table'.
747         (CHARSET_ENCODING_TABLE): New implementation; refer
748         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
749         `Lisp_Charset'.
750
751 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
752
753         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
754         (cs) == 0.
755
756 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * text-coding.c (char_encode_big5): Prefer charset-g1 than
759         `chinese-big5'.
760
761 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * chartab.c (uint8_byte_table_description): New constant.
764         (uint8-byte-table): Use `uint8_byte_table_description'.
765         (uint16_byte_table_description): New constant.
766         (uint16-byte-table): Use `uint16_byte_table_description'.
767
768 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
769
770         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
771         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
772
773 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * mule-charset.c (Vcharset_ucs_ks): New variable.
776         (Qucs_ks): New variable.
777         (syms_of_mule_charset): Add new symbol `ucs-ks'.
778         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
779
780         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
781
782 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
785         (Fdecode_char): Likewise.
786
787         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
788         chartab.h.
789         (Fdefine_char): Modify for Fdecode_char.
790         (Ffind_char): Likewise.
791
792         * mule-charset.c (Fdecode_char): Add new optional argument
793         `defined-only'.
794         (Fdecode_builtin_char): Modify for `Fdecode_char'.
795
796 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
799         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
800         (allocate_coding_system): Initialize initial-charsets of
801         CODESYS_BIG5 in XEmacs UTF-2000.
802         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
803         CODESYS_BIG5 in XEmacs UTF-2000.
804         (decode_coding_big5): Use initial-charset-g0 and -g1 of
805         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
806
807         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
808         variables.
809         (Qideograph_hanziku_{1 .. 12}): Likewise.
810         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
811         .. 12}'.
812         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
813         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
814         `ideograph-hanziku-{1 .. 12}'.
815
816         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
817         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
818         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
819         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
820         (DECODE_DEFINED_CHAR): New inline function.
821         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
822
823 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * mule-charset.c (Vcharset_china3_jef): Renamed from
826         `Vcharset_japanese_jef_china3'.
827         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
828         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
829         `{MIN|MAX}_CHAR_JEF_CHINA3'..
830         (syms_of_mule_charset): Rename `china3-jef' from
831         `japanese-jef-china3'.
832         (complex_vars_of_mule_charset): Likewise; rename
833         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
834
835         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
836         `LEADING_BYTE_JEF_CHINA3'.
837         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
838         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
839
840 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * mule-charset.c (encode_builtin_char_1): Comment out special code
843         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
844
845         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
846         (MAX_CHAR_MOJIKYO_0): Comment out.
847         (MIN_CHAR_CBETA): Changed to 0x00E20000.
848         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
849         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
850         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
851
852 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
853
854         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
855         (Qideograph_cbeta): New variable.
856         (encode_builtin_char_1): Comment out special code for
857         coded-charset `mojikyo' and `japanese-jef-china3'.
858         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
859         (complex_vars_of_mule_charset): Add new coded-charset
860         `ideograph-cbeta'.
861
862         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
863         (MIN_CHAR_CBETA): New macro.
864         (MAX_CHAR_CBETA): New macro.
865
866 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
867
868         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
869         (LEADING_BYTE_JEF_CHINA3): New macro.
870         (MIN_CHAR_JEF_CHINA3): New macro.
871         (MAX_CHAR_JEF_CHINA3): Likewise.
872         (DECODE_CHAR): Fixed.
873
874 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
875
876         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
877         (Qjapanese_jef_china3): New variable.
878         (encode_builtin_char_1): Support `japanese-jef-china3'.
879         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
880         (complex_vars_of_mule_charset): Add new coded-charset
881         `japanese-jef-china3'.
882
883 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
884
885         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
886         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
887         94^4, 96^3, 96^4, 128^n and 256^n set.
888         (put_char_table): Use `XCHARSET_CELL_RANGE'.
889         (map_char_table): Likewise.
890
891 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
894         UTF-2000.
895
896 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * chartab.h (get_char_id_table): New inline function.
899
900         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
901         function.
902
903 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * chartab.h (decode_char_table_range): New prototype in XEmacs
906         UTF-2000.
907         (put_char_id_table): New inline function in XEmacs UTF-2000.
908
909         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
910         function.
911         (decode_char_table_range): Delete static declaration in XEmacs
912         UTF-2000.
913
914 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
915
916         * chartab.c (put_char_id_table): Use `put_char_table'.
917
918 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
921         (map_over_uint16_byte_table): Likewise.
922         (map_over_byte_table): Likewise.
923         (map_char_table): Modify for `map_over_uint8_byte_table',
924         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
925         UTF-2000.
926
927 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * chartab.c (struct map_char_table_for_charset_arg): New
930         structure.
931         (map_char_table_for_charset_fun): New function.
932         (map_char_table): Use `map_char_table' for encoding_table of
933         `range->charset'.
934
935 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
936
937         * chartab.c (map_char_table): Check a character is found in
938         range->charset instead of non default value is defined in
939         char-table when range is CHARTAB_RANGE_ROW.
940
941 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
942
943         * chartab.c (map_char_id_table): Deleted.
944         (Fmap_char_attribute): Use `map_char_table' instead of
945         `map_char_id_table'.
946
947 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
948
949         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
950         UTF-2000.
951         (update_syntax_table): Deleted in XEmacs UTF-2000.
952
953         * syntax.c (find_defun_start): Use `syntax_table' instead of
954         `mirror_syntax_table' in XEmacs UTF-2000.
955         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
956         UTF-2000.
957         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
958         XEmacs UTF-2000.
959         (Fmatching_paren): Likewise.
960         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
961         in XEmacs UTF-2000.
962         (find_start_of_comment): Likewise.
963         (find_end_of_comment): Likewise.
964         (Fforward_comment): Likewise.
965         (scan_lists): Likewise.
966         (char_quoted): Likewise.
967         (Fbackward_prefix_chars): Likewise.
968         (scan_sexps_forward): Likewise.
969         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
970         (update_syntax_table): Likewise.
971
972         * search.c (skip_chars): Use `syntax_table' instead of
973         `mirror_syntax_table' in XEmacs UTF-2000.
974         (wordify): Likewise.
975         (Freplace_match): Likewise.
976
977         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
978         `mirror_syntax_table' in XEmacs UTF-2000.
979         (WORDCHAR_P_UNSAFE): Likewise.
980         (re_match_2_internal): Likewise.
981
982         * font-lock.c (find_context): Use `buf->syntax_table' instead of
983         `buf->mirror_syntax_table' in XEmacs UTF-2000.
984
985         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
986         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
987
988         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
989         XEmacs UTF-2000.
990
991         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
992         UTF-2000.
993         (print_char_table): Print `default_value' in XEmacs UTF-2000.
994         (char_table_description): Delete `mirror_table' in XEmacs
995         UTF-2000.
996         (fill_char_table): Don't call `update_syntax_table' in XEmacs
997         UTF-2000.
998         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
999         (Fcopy_char_table): Likewise.
1000         (put_char_table): Don't call `update_syntax_table' in XEmacs
1001         UTF-2000.
1002
1003         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1004         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1005         (casify_region_internal): Likewise.
1006
1007         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1008
1009         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1010         `mirror_syntax_table' in XEmacs UTF-2000.
1011
1012         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1013         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1014         (Fexpand_abbrev): Likewise.
1015
1016 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017
1018         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1019
1020 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1023         (map_over_uint16_byte_table): Likewise.
1024         (map_over_byte_table): Likewise.
1025         (get_char_id_table): Refer `cit->default_value'.
1026         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1027         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1028         of character-id ranges.
1029         (mark_char_table): Mark `ct->default_value'.
1030         (char_table_description): Add `default_value'.
1031         (fill_char_table): Use `default_value'.
1032         (decode_char_table_range): Decode `nil' as
1033         `CHARTAB_RANGE_DEFAULT'.
1034         (get_char_id_table): Refer `cit->default_value'.
1035         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1036         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1037         temporary hack; check value of char-table is bound or not.
1038         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1039
1040         * chartab.h (struct Lisp_Char_Table): Add new member
1041         `default_value' in XEmacs UTF-2000.
1042         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1043         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1044         UTF-2000.
1045
1046 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047
1048         * chartab.h (Lisp_Char_ID_Table): Deleted.
1049
1050         * chartab.c (char_table_description): Fix typo.
1051         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1052         `Lisp_Char_ID_Table'.
1053
1054 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055
1056         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1057         `CHAR_ID_TABLE_P'.
1058
1059         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1060         `CHAR_ID_TABLE_P'.
1061
1062         * chartab.h (XCHAR_ID_TABLE): Deleted.
1063         (XSETCHAR_ID_TABLE): Deleted.
1064         (CHAR_ID_TABLE_P): Deleted.
1065
1066         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1067         `CHAR_ID_TABLE_P'.
1068         (Fget_composite_char): Likewise.
1069         (put_char_table): Likewise.
1070         (add_char_attribute_alist_mapper): Fixed.
1071         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1072         `CHAR_ID_TABLE_P'.
1073         (Fget_char_attribute): Likewise.
1074         (Fget_char_attribute): Likewise.
1075         (Fmap_char_attribute): Likewise.
1076
1077         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1078         `CHAR_ID_TABLE_P'.
1079         (encode_char_1): Likewise.
1080
1081 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082
1083         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1084         `XCHAR_ID_TABLE'.
1085
1086         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1087         instead of `XCHAR_ID_TABLE'.
1088         (remove_char_ccs): Likewise.
1089
1090         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1091         `XCHAR_ID_TABLE'.
1092         (Fget_composite_char): Likewise.
1093         (Fchar_variants): Likewise.
1094         (put_char_table): Likewise.
1095         (add_char_attribute_alist_mapper): Likewise.
1096         (Fchar_attribute_alist): Likewise.
1097         (Fget_char_attribute): Likewise.
1098         (Fput_char_attribute): Likewise.
1099         (Fmap_char_attribute): Likewise.
1100         (Fmap_char_attribute): Likewise.
1101
1102         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1103         `XCHAR_ID_TABLE'.
1104         (encode_char_1): Likewise.
1105
1106 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1107
1108         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1109         `Lisp_Char_ID_Table'.
1110         (mark_char_id_table): Deleted.
1111         (print_char_id_table): Likewise.
1112         (char_id_table_equal): Likewise.
1113         (char_id_table_hash): Likewise.
1114         (char_id_table_description): Likewise.
1115         (char_id_table): Likewise.
1116         (make_char_id_table): Use `Fmake_char_table' and
1117         `fill_char_table'.
1118         (get_char_id_table): Use `Lisp_Char_Table' instead of
1119         `Lisp_Char_ID_Table'.
1120         (put_char_id_table): Likewise.
1121         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1122         `XCHAR_ID_TABLE'.
1123         (Fremove_char_attribute): Likewise.
1124         (syms_of_chartab): Don't define type `char-id-table'.
1125
1126         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1127         (char_id_table): Likewise.
1128         (GC_CHAR_ID_TABLE_P): Likewise.
1129         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1130         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1131         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1132         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1133         (get_char_id_table): Use `Lisp_Char_Table' instead of
1134         `Lisp_Char_ID_Table'.
1135         (put_char_id_table_0): Likewise.
1136         (put_char_id_table): Likewise.
1137
1138 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1139
1140         * chartab.h: Lisp_Byte_Table related codes are moved from
1141         chartab.h.
1142
1143         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1144
1145 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1146
1147         * chartab.h: Don't include "chartab.h".
1148         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1149         (Lisp_Char_ID_Table): Likewise.
1150         (char_id_table): Likewise.
1151         (XCHAR_ID_TABLE): Likewise.
1152         (XSETCHAR_ID_TABLE): Likewise.
1153         (CHAR_ID_TABLE_P): Likewise.
1154         (GC_CHAR_ID_TABLE_P): Likewise.
1155         (get_char_id_table): Likewise.
1156
1157         * char-ucs.h: Include "chartab.h".
1158         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1159         (Lisp_Char_ID_Table): Likewise.
1160         (char_id_table): Likewise.
1161         (XCHAR_ID_TABLE): Likewise.
1162         (XSETCHAR_ID_TABLE): Likewise.
1163         (CHAR_ID_TABLE_P): Likewise.
1164         (GC_CHAR_ID_TABLE_P): Likewise.
1165         (get_char_id_table): Likewise.
1166
1167 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1168
1169         * chartab.c (copy_uint8_byte_table): New function.
1170         (copy_uint16_byte_table): New function.
1171         (copy_byte_table): New function.
1172         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1173         characters to call.
1174         (map_over_uint16_byte_table): Likewise.
1175         (map_over_byte_table): Likewise.
1176         (get_byte_table): Move prototype to chartab.h.
1177         (put_byte_table): Likewise.
1178         (put_char_id_table_0): Moved to chartab.h.
1179         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1180         (char_table_entry_equal): Likewise.
1181         (char_table_entry_hash): Likewise.
1182         (char_table_entry_description): Likewise.
1183         (char_table_entry): Likewise.
1184         (make_char_table_entry): Likewise.
1185         (copy_char_table_entry): Likewise.
1186         (get_non_ascii_char_table_value): Likewise.
1187         (map_over_charset_ascii): Likewise.
1188         (map_over_charset_control_1): Likewise.
1189         (map_over_charset_row): Likewise.
1190         (map_over_other_charset): Likewise.
1191         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1192         (print_char_table): Likewise.
1193         (char_table_equal): Likewise.
1194         (char_table_hash): Likewise.
1195         (char_table_description): Likewise.
1196         (fill_char_table): Likewise.
1197         (Fcopy_char_table): Likewise.
1198         (get_char_table): Likewise.
1199         (Fget_range_char_table): Likewise.
1200         (put_char_table): Likewise.
1201         (map_char_table): Likewise.
1202         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1203         UTF-2000.
1204
1205 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1206
1207         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1208         `Vauto_fill_chars' in XEmacs UTF-2000.
1209
1210         * chartab.h (get_byte_table): New prototype [moved from
1211         chartab.c].
1212         (put_byte_table): Likewise [moved from chartab.c].
1213         (put_char_id_table_0): New inline function [moved from chartab.c].
1214         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1215         (Lisp_Char_Table_Entry): Likewise.
1216         (char_table_entry): Likewise.
1217         (XCHAR_TABLE_ENTRY): Likewise.
1218         (XSETCHAR_TABLE_ENTRY): Likewise.
1219         (CHAR_TABLE_ENTRYP): Likewise.
1220         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1221         (NUM_ASCII_CHARS): Likewise.
1222         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1223         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1224
1225 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * chartab.c (get_char_id_table): Change interface.
1228         (put_char_id_table_0): New function.
1229         (put_char_id_table): Change interface; new implementation.
1230         (Fget_composite_char): Modify for interface change of
1231         `get_char_id_table'.
1232         (Fchar_variants): Likewise.
1233         (add_char_attribute_alist_mapper): Likewise.
1234         (Fchar_attribute_alist): Likewise.
1235         (Fget_char_attribute): Likewise.
1236         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1237         as same as character as the first argument like `put-char-table';
1238         modify for interface change of `put_char_id_table'.
1239         (Fremove_char_attribute): Modify for interface change of
1240         `put_char_id_table'.
1241
1242 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * text-coding.c: Sync up with XEmacs 21.2.41.
1245         (COMPOSE_ADD_CHAR): Modify for interface change of
1246         `get_char_id_table'.
1247
1248         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1249         change of `put_char_id_table'.
1250         (remove_char_ccs): Likewise.
1251
1252         * chartab.h (put_char_id_table): Change interface.
1253
1254         * char-ucs.h (get_char_id_table): Change interface.
1255         (charset_code_point): Modify for interface change of
1256         `get_char_id_table'.
1257         (encode_char_1): Likewise.
1258
1259 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1260
1261         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1262         argument `ccs'.
1263         (map_over_uint16_byte_table): Likewise.
1264         (map_over_byte_table): Likewise.
1265         (map_char_id_table): Add new argument `range' like
1266         `map_char_table'.
1267         (Fmap_char_attribute): Add new argument `range' like
1268         `Fmap_char_table'.
1269
1270 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1271
1272         * chartab.c (map_over_uint8_byte_table): Change interface of
1273         mapping function to use struct chartab_range instead of Emchar.
1274         (map_over_uint16_byte_table): Likewise.
1275         (map_over_byte_table): Likewise.
1276         (map_char_id_table): Likewise.
1277         (struct slow_map_char_id_table_arg): Deleted.
1278         (slow_map_char_id_table_fun): Deleted.
1279         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1280         function `slow_map_char_table_fun' instead of struct
1281         `slow_map_char_id_table_arg' and function
1282         `slow_map_char_id_table_fun'.
1283
1284 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285
1286         * mule-charset.c: Move char-it-table related codes to chartab.c.
1287         (Vutf_2000_version): Moved to chartab.c.
1288         (Fdefine_char): Likewise.
1289         (Ffind_char): Likewise.
1290         (syms_of_mule_charset): Move types `uint8-byte-table',
1291         `uint16-byte-table', `byte-table' and `char-id-table' to
1292         chartab.c; move functions `char_attribute_list,
1293         `find_char_attribute_table, `char_attribute_alist,
1294         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1295         `map_char_attribute, `define_char, `find_char, `char_variants and
1296         `get_composite_char to chartab.c; move symbols `=>ucs',
1297         `->decomposition', `compat', `isolated', `initial', `medial',
1298         `final', `vertical', `noBreak', `fraction', `super', `sub',
1299         `circle', `square', `wide', `narrow', `small' and `font' to
1300         chartab.c.
1301         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1302         setting codes for `Vcharacter_composition_table' and
1303         `Vcharacter_variant_table' to chartab.c.
1304         (complex_vars_of_mule_charset): Move setting code for
1305         `Vchar_attribute_hash_table' to chartab.c.
1306
1307         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1308         (make_char_id_table): New prototype.
1309         (put_char_id_table): Likewise.
1310         (Fget_char_attribute): Likewise.
1311
1312         * chartab.c: Move char-id-table related code from mule-charset.c.
1313         (Vutf_2000_version): Moved from mule-charset.c.
1314
1315         * char-ucs.h (Qucs): New external variable.
1316         (put_char_ccs_code_point): New prototype.
1317         (remove_char_ccs): Likewise.
1318
1319 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1320
1321         * mule-charset.c (Vcharset_ucs_jis): New variable.
1322         (Qucs_jis): Likewise.
1323         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1324         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1325
1326         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1327
1328 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * mule-charset.c (map_over_uint8_byte_table): New function.
1331         (map_over_uint16_byte_table): Likewise.
1332         (map_over_byte_table): Likewise.
1333         (map_char_id_table): Likewise.
1334         (slow_map_char_id_table_fun): Likewise.
1335         (Fmap_char_attribute): Likewise.
1336         (syms_of_mule_charset): Add new function `map-char-attribute'.
1337
1338 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339
1340         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1341         (syms_of_mule_charset): Add new function `find-char'.
1342
1343 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1344
1345         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1346         XEmacs UTF-2000.
1347         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1348         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1349         XEmacs UTF-2000.
1350         (complex_vars_of_mule_charset): Add new coded-charset
1351         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1352         `ideograph-gt-pj-*'.
1353
1354         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1355
1356 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * mule-charset.c (encode_builtin_char_1): Purge codes about
1359         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1360         {MIN|MAX}_CHAR_HEBREW.
1361         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1362         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1363
1364         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1365         (MAX_CHAR_GREEK): Purged.
1366         (MIN_CHAR_CYRILLIC): Purged.
1367         (MAX_CHAR_CYRILLIC): Purged.
1368         (MIN_CHAR_HEBREW): Commented out.
1369         (MAX_CHAR_HEBREW): Likewise.
1370
1371 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372
1373         * mule-charset.c (Qto_ucs): New variable.
1374         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1375         (Fdefine_char): Likewise.
1376         (syms_of_mule_charset): Add new symbol `=>ucs'.
1377
1378 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * mule-charset.c (Fdecode_char): Fixed.
1381
1382 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1385         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1386         "tcvn5712-1".
1387
1388 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1389
1390         * mule-charset.c (Vcharset_ucs_big5): New variable.
1391         (Qucs_big5): Likewise.
1392         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1393         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1394
1395         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1396
1397 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * mule-charset.c (decode_builtin_char): Check Big5 code range
1400         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1401
1402 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1405         (Qchinese_gb12345): Likewise.
1406         (Fdecode_builtin_char): Fixed.
1407         (syms_of_mule_charset): Add `chinese-gb12345'.
1408         (complex_vars_of_mule_charset): Add coded-charset
1409         `chinese-gb12345'.
1410
1411         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1412         (LEADING_BYTE_CHINESE_GB12345): New macro.
1413
1414 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1415
1416         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1417         and `latin-viscii-upper' for `latin-viscii'.
1418
1419 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420
1421         * mule-charset.c (Fdecode_builtin_char): Comment out
1422         regularization code for ISO-IR GR representation.
1423
1424 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425
1426         * mule-charset.c (decode_builtin_char): New function; renamed from
1427         `make_builtin_char'; return -1 instead of signal.
1428         (Fdecode_builtin_char): Use `decode_builtin_char'.
1429
1430         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1431         `make_builtin_char'.
1432         (DECODE_CHAR): Use `decode_builtin_char' instead of
1433         `make_builtin_char'; use mapping table of `chinese-big5' for
1434         `chinese-big5-{1,2}'.
1435
1436 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * text-coding.c (char_encode_big5): New function.
1439         (char_finish_big5): Likewise.
1440         (reset_encoding_stream): Use `char_encode_big5' and
1441         `char_finish_big5' for CODESYS_BIG5.
1442         (mule_encode): Don't use `encode_coding_big5'.
1443         (encode_coding_big5): Deleted.
1444
1445 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446
1447         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1448         0x81- in XEmacs UTF-2000.
1449         (detect_coding_big5): Likewise.
1450
1451 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1452
1453         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1454         generate character-id if the CCS property does not have
1455         corresponding predefined character.
1456         (make_builtin_char): Return -1 if corresponding predefined
1457         character is not found.
1458         (Fdecode_char): Return nil if corresponding character is not
1459         found.
1460         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1461         don't map to builtin ucs space.
1462
1463 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1464
1465         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1466         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1467
1468 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1471         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1472         (Qideograph_gt): Likewise.
1473         (Qideograph_gt_pj_{1..11}): Likewise.
1474         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1475         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1476         `ideograph-gt-pj-11'.
1477         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1478         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1479         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1480
1481         * char-ucs.h (LEADING_BYTE_GT): New macro.
1482         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1483         (MIN_CHAR_GT): Likewise.
1484         (MAX_CHAR_GT): Likewise.
1485
1486 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1487
1488         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1489         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1490
1491         * doprnt.c (unsigned_int_converters): Add `c'.
1492         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1493
1494         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1495         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1496         `MIN_CHAR_MOJIKYO'.
1497         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1498         (MAX_CHAR_MOJIKYO_0): New macro.
1499         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1500
1501 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * mule-charset.c (Fdefine_char): Delete cemented out code.
1504         (encode_builtin_char_1): Modify for new allocation of builtin
1505         Mojikyo characters.
1506
1507         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1508
1509 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * mule-charset.c (Vcharset_ucs_cns): New variable.
1512         (Qucs_cns): New variable.
1513         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1514         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1515
1516 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1517
1518         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1519
1520 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1521
1522         * search.c (search_buffer): Make `charset_base_code' as
1523         character-id >> 6 to eliminate the corresponding last byte in
1524         UTF-8 representation [I'm not sure it is right thing].
1525         (boyer_moore): Likewise.
1526
1527 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1528
1529         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1530         representation in MULE.
1531
1532 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * text-coding.c (Fmake_coding_system): Use
1535         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1536         `EXTERNAL_PROPERTY_LIST_LOOP'.
1537
1538 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * text-coding.c (decode_output_utf8_partial_char): New function.
1541         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1542
1543 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * text-coding.c (decode_coding_utf8): Output original byte
1546         sequence if it is broken; change order of conditions.
1547
1548         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1549         of conditions.
1550
1551         * mb-multibyte.h (BYTE_ASCII_P):
1552         Use bit ops for char-signedness safety.
1553         (BYTE_C0_P): Use bit ops for char-signedness safety.
1554         (BYTE_C1_P): Use bit ops for char-signedness safety.
1555
1556         * character.h: (XCHAR_OR_CHAR_INT):
1557         Always use inline function.
1558         Remove redundant type checking assert() - XINT will abort quite
1559         nicely.
1560
1561 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562
1563         * text-coding.c: (Fencode_shift_jis_char):
1564         (Fencode_big5_char):
1565         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1566         Replace 0 with '\0' when working with bytes.
1567         Replace initial "(" with "\(" in docstrings.
1568
1569         (Fmake_coding_system):
1570         When type is ccl and value is vector, register it with a proper
1571         symbol.  And checks whether the given ccl program is valid.
1572         (mule_decode): When calling ccl_driver, if src indicates
1573         NULL pointer, set an empty string instead.
1574         (mule_encode): Likewise.
1575
1576         (detect_eol_type):
1577         (detect_coding_sjis):
1578         (decode_coding_sjis):
1579         (detect_coding_big5):
1580         (decode_coding_big5):
1581         (detect_coding_ucs4):
1582         (decode_coding_ucs4):
1583         (detect_coding_utf8):
1584         (decode_coding_utf8):
1585         (detect_coding_iso2022):
1586         (decode_coding_iso2022):
1587         (decode_coding_no_conversion):
1588         (mule_decode):
1589         Make all detecting and decoding functions take an Extbyte * arg.
1590         (text_encode_generic):
1591         (encode_coding_big5):
1592         (encode_coding_no_conversion):
1593         (mule_encode):
1594         Make all encoding functions take a Bufbyte * arg.
1595         Use size_t instead of unsigned int for memory sizes.
1596         Only cast to unsigned char whenever dereferencing Extbyte *.
1597
1598         (struct lrecord_description fcd_description_1): Use countof.
1599         (complex_vars_of_file_coding):
1600         Use countof instead of sizeof.
1601         Use CHECK_NATNUM instead of CHECK_INT.
1602
1603 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1604
1605         * mule-charset.c (Fget_char_attribute): Add new optional argument
1606         `default-value'.
1607         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1608         (remove_char_ccs): Likewise.
1609
1610 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611
1612         * text-coding.c (char_encode_shift_jis): New implementation in
1613         UTF-2000.
1614         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1615         ...)'.
1616
1617         * mule-charset.c (Vcharset_chinese_big5): New variable in
1618         UTF-2000.
1619         (Qchinese_big5): New variable in UTF-2000.
1620         (BIG5_SAME_ROW): New macro in UTF-2000.
1621         (make_builtin_char): Use builtin characters of
1622         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1623         characters of `Vcharset_chinese_big5'.
1624         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1625         (complex_vars_of_mule_charset): Add new coded-charset
1626         `chinese-big5' in UTF-2000.
1627
1628         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1629         (Vcharset_chinese_big5): New external variable declaration.
1630         (Vcharset_japanese_jisx0208_1990): Likewise.
1631
1632 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1633
1634         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1635         function.
1636         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1637
1638 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1639
1640         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1641         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1642         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1643         `mojikyo-pj-*'.
1644
1645 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1646
1647         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1648
1649 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1650
1651         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1652         to 0.17.
1653
1654 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1655
1656         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1657         for `CHARSET_BY_ATTRIBUTES'.
1658         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1659         `CHARSET_BY_ATTRIBUTES'.
1660
1661         * text-coding.c (struct decoding_stream): Rename member `CH' to
1662         `CPOS'.
1663         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1664         (decode_coding_sjis): Likewise.
1665         (decode_coding_big5): Likewise.
1666         (decode_coding_ucs4): Likewise.
1667         (decode_coding_utf8): Likewise.
1668         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1669         `CHARSET_BY_ATTRIBUTES'.
1670         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1671         `str->counter'; decode 3, 4 bytes sets.
1672         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1673         sets.
1674         (decode_coding_no_conversion): Use `str->cpos' instead of
1675         `str->ch'.
1676
1677         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1678         (Qmojikyo_2022_1): New variable.
1679         (make_charset): Don't use `CHARSET_TYPE_*'.
1680         (range_charset_code_point): Support coded-charset
1681         `mojikyo-2022-1'.
1682         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1683         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1684         `CHARSET_BY_ATTRIBUTES'.
1685         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1686         `CHARSET_BY_ATTRIBUTES'.
1687         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1688         (complex_vars_of_mule_charset): Add new coded-charset
1689         `mojikyo-2022-1'.
1690
1691         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1692         interface; changed to inline function.
1693
1694         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1695         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1696         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1697         (CHARSET_TYPE_94): Deleted.
1698         (CHARSET_TYPE_94X94): Deleted.
1699         (CHARSET_TYPE_96): Deleted.
1700         (CHARSET_TYPE_96X96): Deleted.
1701         (CHARSET_TYPE_128): Deleted.
1702         (CHARSET_TYPE_128X128): Deleted.
1703         (CHARSET_TYPE_256): Deleted.
1704         (CHARSET_TYPE_256X256): Deleted.
1705         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1706         to inline function.
1707         (DECODE_MOJIKYO_2022): New inline function.
1708         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1709         `Vcharset_mojikyo_2022_1'.
1710
1711 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1712
1713         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1714         instead of `EQ'.
1715         (put_byte_table): Likewise.
1716         (char_id_table_equal): Use `get_byte_table' [new implementation].
1717
1718 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1719
1720         * mule-charset.c: Include <limits.h> in UTF-2000.
1721         (BT_UINT8_MIN): New macro in UTF-2000.
1722         (BT_UINT8_MAX): New macro in UTF-2000.
1723         (BT_UINT8_t): New macro in UTF-2000.
1724         (BT_UINT8_nil): New macro in UTF-2000.
1725         (BT_UINT8_unbound): New macro in UTF-2000.
1726         (INT_UINT8_P): New inline function in UTF-2000.
1727         (UINT8_VALUE_P): New inline function in UTF-2000.
1728         (UINT8_ENCODE): New inline function in UTF-2000.
1729         (UINT8_DECODE): New inline function in UTF-2000.
1730         (mark_uint8_byte_table): New function in UTF-2000.
1731         (print_uint8_byte_table): New function in UTF-2000.
1732         (uint8_byte_table_equal): New function in UTF-2000.
1733         (uint8_byte_table_hash): New function in UTF-2000.
1734         (make_uint8_byte_table): New function in UTF-2000.
1735         (uint8_byte_table_same_value_p): New function in UTF-2000.
1736         (BT_UINT16_MIN): New macro in UTF-2000.
1737         (BT_UINT16_MAX): New macro in UTF-2000.
1738         (BT_UINT16_t): New macro in UTF-2000.
1739         (BT_UINT16_nil): New macro in UTF-2000.
1740         (BT_UINT16_unbound): New macro in UTF-2000.
1741         (INT_UINT16_P): New inline function in UTF-2000.
1742         (UINT16_VALUE_P): New inline function in UTF-2000.
1743         (UINT16_ENCODE): New inline function in UTF-2000.
1744         (UINT16_DECODE): New inline function in UTF-2000.
1745         (UINT8_TO_UINT16): New inline function in UTF-2000.
1746         (mark_uint16_byte_table): New function in UTF-2000.
1747         (print_uint16_byte_table): New function in UTF-2000.
1748         (uint16_byte_table_equal): New function in UTF-2000.
1749         (uint16_byte_table_hash): New function in UTF-2000.
1750         (make_uint16_byte_table): New function in UTF-2000.
1751         (uint16_byte_table_same_value_p): New function in UTF-2000.
1752         (print_byte_table): New function in UTF-2000.
1753         (byte-table): Use `print_byte_table' as printer.
1754         (make_byte_table): Delete second argument `older'.
1755         (byte_table_same_value_p): New function in UTF-2000.
1756         (copy_byte_table): Deleted.
1757         (get_byte_table): New function in UTF-2000.
1758         (put_byte_table): New function in UTF-2000.
1759         (print_char_id_table): New function in UTF-2000.
1760         (char-id-table): Use `print_char_id_table' as printer.
1761         (make_char_id_table): Delete second argument `older'.
1762         (get_char_id_table): Use `get_byte_table [new implementation].
1763         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1764         implementation].
1765         (Ffind_char_attribute_table): New function in UTF-2000.
1766         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1767         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1768         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1769         (syms_of_mule_charset): Add new function
1770         `find-char-attribute-table' in UTF-2000.
1771
1772         * lrecord.h (enum lrecord_type): Add
1773         `lrecord_type_uint16_byte_table' and
1774         `lrecord_type_uint8_byte_table'.
1775
1776         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1777         (Lisp_Uint8_Byte_Table): New type.
1778         (XUINT8_BYTE_TABLE): New macro.
1779         (XSETUINT8_BYTE_TABLE): New macro.
1780         (UINT8_BYTE_TABLE_P): New macro.
1781         (GC_UINT8_BYTE_TABLE_P): New macro.
1782         (struct Lisp_Uint16_Byte_Table): New structure.
1783         (Lisp_Uint16_Byte_Table): New type.
1784         (XUINT16_BYTE_TABLE): New macro.
1785         (XSETUINT16_BYTE_TABLE): New macro.
1786         (UINT16_BYTE_TABLE_P): New macro.
1787         (GC_UINT16_BYTE_TABLE_P): New macro.
1788
1789 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790
1791         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1792         (Vcharacter_ideographic_strokes_table): Deleted.
1793         (Vcharacter_total_strokes_table): Deleted.
1794         (Vcharacter_morohashi_daikanwa_table): Deleted.
1795         (Vcharacter_decomposition_table): Deleted.
1796         (Qname): Deleted because it is duplicated.
1797         (Qideographic_radical): Deleted.
1798         (Qideographic_strokes): Deleted.
1799         (Qtotal_strokes): Deleted.
1800         (Qmorohashi_daikanwa): Deleted.
1801         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1802         `ideographic-radical', `ideographic-strokes', `total-strokes',
1803         `morohashi-daikanwa' and `->decomposition'.
1804         (Fget_char_attribute): Likewise.
1805         (Fput_char_attribute): Likewise; use `make-vector' instead of
1806         `make_older_vector' for `->decomposition' value.
1807         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1808         `ideograph-daikanwa'.
1809         (syms_of_mule_charset): Delete builtin symbols `name',
1810         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1811         `morohashi-daikanwa'.
1812         (vars_of_mule_charset): Don't setup
1813         `Vcharacter_ideographic_radical_table',
1814         `Vcharacter_ideographic_strokes_table',
1815         `Vcharacter_total_strokes_table',
1816         `Vcharacter_morohashi_daikanwa_table' and
1817         `Vcharacter_decomposition_table'.
1818
1819 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1822         `make_older_vector', `make_vector_newer_1' and
1823         `make_vector_newer'.
1824
1825         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1826         `make_older_vector' and `make_vector_newer'.
1827
1828         * config.h.in (HAVE_GGC): New macro.
1829
1830 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1831
1832         * mule-charset.c (struct char_attribute_list_closure): New
1833         structure in UTF-2000.
1834         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1835         (Fchar_attribute_list): Likewise.
1836         (Fset_charset_mapping_table): Use `make_vector_newer'.
1837         (Fdecode_builtin_char): New function in UTF-2000.
1838         (syms_of_mule_charset): Add new function `char-attribute-list' and
1839         `decode-builtin-char' in UTF-2000.
1840
1841         * lisp.h (make_vector_newer): New prototype.
1842
1843         * alloc.c (make_vector_newer_1): New function.
1844         (make_vector_newer): New function.
1845
1846 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1847
1848         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1849         50100)'.
1850
1851 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1854         (Vcharacter_attribute_table): Deleted.
1855         (Vcharacter_name_table): Deleted.
1856         (put_char_attribute): Deleted.
1857         (remove_char_attribute): Deleted.
1858         (struct char_attribute_alist_closure): New structure.
1859         (add_char_attribute_alist_mapper): New function.
1860         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1861         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1862         (Fget_char_attribute): Likewise.
1863         (Fput_char_attribute): Likewise.
1864         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1865         of `remove_char_attribute'.
1866         (Fdefine_char): Return character.
1867         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1868         and `Vcharacter_name_table'.
1869         (complex_vars_of_mule_charset): Likewise
1870         `Vchar_attribute_hash_table'.
1871
1872 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1873
1874         * character.h (CHARC_CHARSET): New macro.
1875         (CHARC_CHARSET_ID): New macro.
1876         (CHARC_CODE_POINT): New macro.
1877         (CHARC_COLUMNS): New macro.
1878         (CHARC_TO_CHAR): New inline function.
1879         (CHARC_EQ): New inline function.
1880         (CHARC_ASCII_EQ): New inline function.
1881         (CHARC_IS_SPACE): New inline function.
1882         (ASCII_TO_CHARC): New inline function.
1883
1884         * char-ucs.h (encode_char_2): Deleted.
1885         (ENCODE_CHAR): Use `encode_char_1' again.
1886         (breakup_char_1): Likewise.
1887         (CHAR_TO_CHARC): New inline function.
1888
1889         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1890
1891 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892
1893         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1894         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1895         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1896         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1897         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1898         `CHARC_IS_SPACE'.
1899         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1900
1901         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1902         `CHARC_CODE_POINT'.
1903         (x_output_display_block): Use `CHARC_CHARSET' and
1904         `CHARC_ASCII_EQ'.
1905
1906         * redisplay-tty.c (tty_output_display_block): Use
1907         `CHARC_ASCII_EQ'.
1908         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1909
1910         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1911
1912         * insdel.c (find_charsets_in_charc_string): Use
1913         `CHARC_CHARSET_ID'.
1914         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1915         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1916         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1917         (convert_charc_string_into_malloced_string): Likewise.
1918
1919 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1920
1921         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1922         instead of <Emchar_dynarr *> for buf; use
1923         `convert_bufbyte_string_into_charc_dynarr' instead of
1924         `convert_bufbyte_string_into_emchar_dynarr'; use
1925         `find_charsets_in_charc_string' instead of
1926         `find_charsets_in_emchar_string'.
1927
1928         * redisplay.h:
1929         - Include "character.h".
1930         (struct rune): New member `cglyph'; delete member `chr'.
1931
1932         * redisplay.c (redisplay_text_width_charc_string): New function;
1933         delete `redisplay_text_width_emchar_string'.
1934         (rtw_charc_dynarr): New variable; renamed from
1935         `rtw_emchar_dynarr'.
1936         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1937         `rtw_emchar_dynarr'; use
1938         `convert_bufbyte_string_into_charc_dynarr' instead of
1939         `convert_bufbyte_string_into_emchar_dynarr'; use
1940         `redisplay_text_width_charc_string' instead of
1941         `redisplay_text_width_emchar_string'.
1942         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1943         instead of `rtw_emchar_dynarr'; use
1944         `convert_bufbyte_string_into_charc_dynarr' instead of
1945         `convert_bufbyte_string_into_emchar_dynarr'.
1946         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1947         `redisplay_text_width_charc_string' instead of
1948         `redisplay_text_width_emchar_string'.
1949         (create_text_block): Modify for <struct rune> change.
1950         (generate_formatted_string_db): Likewise.
1951         (create_string_text_block): Likewise.
1952         (pixel_to_glyph_translation): Likewise.
1953
1954         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1955         instead of <const Emchar *>.
1956         (x_text_width): Likewise.
1957         (x_output_display_block): Use <Charc_dynarr *> instead
1958         <Emchar_dynarr *>; modify for <structure rune> change.
1959         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1960         *>.
1961
1962         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1963         <const Emchar *>; use `charc_string_displayed_columns' instead of
1964         `emchar_string_displayed_columns'.
1965         (tty_output_display_block): Use <Charc_dynarr *> instead of
1966         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1967         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1968         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1969         `tty_output_emchar_dynarr_dynarr'.
1970         (tty_output_charc_dynarr): New function; delete
1971         `tty_output_charc_dynarr'.
1972
1973         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1974         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1975         <Emchar_dynarr *> for buf; use
1976         `convert_bufbyte_string_into_charc_dynarr' instead of
1977         `convert_bufbyte_string_into_emchar_dynarr'.
1978
1979         * frame.c (title_string_charc_dynarr): New variable; renamed from
1980         `title_string_emchar_dynarr'.
1981         (generate_title_string): Use `title_string_charc_dynarr' instead
1982         of `title_string_emchar_dynarr'; use
1983         `convert_charc_string_into_malloced_string' instead of
1984         `convert_emchar_string_into_malloced_string'.
1985         (init_frame): Use `title_string_charc_dynarr' instead of
1986         `title_string_emchar_dynarr'.
1987
1988         * console.h:
1989         - Include "character.h".
1990         (struct console_methods): Use <const Charc *> instead of <const
1991         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1992         <Emchar_dynarr *> in output_string_method.
1993
1994         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1995         <Emchar_dynarr *>.
1996
1997         * console-stream.c (stream_text_width): Use <const Charc *>
1998         instead of <const Emchar *>.
1999
2000         * character.h (Charc_dynarr): New type.
2001
2002         * char-ucs.h (structure Charc): New structure; define new type
2003         `Charc'.
2004
2005         * char-lb.h (DECODE_CHAR): New inline function.
2006         (encode_char_1): New inline function.
2007         (ENCODE_CHAR): New macro.
2008         (structure Charc): New structure; define new type `Charc'.
2009
2010         * char-1byte.h (Vcharset_control_1): New macro.
2011         (Vcharset_latin_iso8859_1): New macro.
2012         (DECODE_CHAR): New inline function.
2013         (encode_char_1): New inline function.
2014         (ENCODE_CHAR): New macro.
2015         (structure Charc): New structure; define new type `Charc'.
2016
2017         * insdel.c (find_charsets_in_charc_string): New function; delete
2018         `find_charsets_in_emchar_string'.
2019         (charc_string_displayed_columns): New function; delete
2020         `emchar_string_displayed_columns'.
2021         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2022         `convert_bufbyte_string_into_emchar_dynarr'.
2023         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2024         `convert_charc_string_into_bufbyte_dynarr'.
2025         (convert_charc_string_into_malloced_string): New function; delete
2026         `convert_charc_string_into_malloced_string'.
2027
2028         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2029         `find_charsets_in_emchar_string'.
2030         (charc_string_displayed_columns): New prototype; delete
2031         `emchar_string_displayed_columns'.
2032         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2033         `convert_charc_string_into_bufbyte_dynarr'.
2034         (convert_charc_string_into_malloced_string): New prototype; delete
2035         `convert_charc_string_into_malloced_string'.
2036
2037 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2040
2041 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2042
2043         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2044
2045         * char-ucs.h: Use <short> for <Charset_ID>.
2046
2047         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2048         <Charset_ID>.
2049
2050 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2051
2052         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2053         to 0.16.
2054
2055 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056
2057         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2058         variable.
2059         (Qmorohashi_daikanwa): New variable.
2060         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2061         for `morohashi-daikanwa' attribute.
2062         (Fget_char_attribute): Likewise.
2063         (Fput_char_attribute): Likewise.
2064         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2065         has the same value of `ideograph-daikanwa'.
2066         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2067         (vars_of_mule_charset): Setup
2068         `Vcharacter_morohashi_daikanwa_table'.
2069
2070 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2071
2072         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2073         attributes.
2074         (add_charset_to_list_mapper): Add `key' instead of
2075         `XCHARSET_NAME (value)' to return aliases.
2076
2077 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2080         variable.
2081         (Vcharacter_ideographic_strokes_table): New variable.
2082         (Qideographic_radical): New variable.
2083         (Qideographic_strokes): New variable.
2084         (Fchar_attribute_alist): Use
2085         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2086         attribute; use `Vcharacter_ideographic_strokes_table' for
2087         `ideographic-strokes' attribute.
2088         (Fget_char_attribute): Likewise.
2089         (Fput_char_attribute): Likewise.
2090         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2091         `ideographic-strokes'.
2092         (vars_of_mule_charset): Setup
2093         `Vcharacter_ideographic_radical_table' and
2094         `Vcharacter_ideographic_strokes_table'.
2095
2096 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2097
2098         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2099         (Qtotal_strokes): New variable.
2100         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2101         `total-strokes' attribute.
2102         (Fget_char_attribute): Likewise.
2103         (Fput_char_attribute): Likewise.
2104         (syms_of_mule_charset): Add new symbol `total-strokes'.
2105         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2106
2107 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108
2109         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2110         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2111         are found.
2112         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2113         `->decomposition' attribute.
2114         (Fput_char_attribute): Likewise.
2115         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2116
2117 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * mule-charset.c (decoding_table_check_elements): New function.
2120         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2121
2122 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * mule-charset.c (Fset_charset_mapping_table): Use
2125         `put_char_ccs_code_point'.
2126
2127 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * mule-charset.c (decoding_table_put_char): New inline function.
2130         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2131
2132 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2135         (XCHARSET_BYTE_SIZE): New macro.
2136         (decoding_table_remove_char): New inline function.
2137         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2138         `decoding_table_remove_char'.
2139         (remove_char_ccs): Use `decoding_table_remove_char'.
2140         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2141
2142 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2143
2144         * mule-charset.c (Vcharacter_name_table): New variable.
2145         (Qname): New variable.
2146         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2147         attribute.
2148         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2149         `Vcharacter_name_table' for `name' attribute.
2150         (Fremove_char_attribute): Use function `remove_char_ccs'.
2151         (put_char_ccs_code_point): New function.
2152         (remove_char_ccs): New function.
2153         (syms_of_mule_charset): Add new symbol `name'.
2154         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2155
2156 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2157
2158         * mule-charset.c (make_byte_table): Add new argument `older'.
2159         (make_char_id_table): Likewise.
2160         (copy_char_id_table): Comment out because it is not used.
2161         (put_char_id_table): Modify for `make_byte_table'.
2162         (Fput_char_attribute): Make encoding_table as older object;
2163         inherit older bit of `Vcharacter_composition_table'.
2164         (mark_charset): Don't mark `cs->encoding_table'.
2165         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2166         normal object; make `Vcharacter_composition_table' as an older
2167         object; delete staticpro for `Vcharacter_composition_table'; make
2168         `Vcharacter_variant_table' as a normal object.
2169
2170         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2171         (mark_object): Don't check older object in UTF-2000.
2172
2173         * lrecord.h (struct lrecord_header): Add new member `older' in
2174         UTF-2000.
2175         (set_lheader_implementation): Setup `SLI_header->older' in
2176         UTF-2000.
2177         (set_lheader_older_implementation): New macro in UTF-2000.
2178         (OLDER_RECORD_P): New macro in UTF-2000.
2179         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2180         (alloc_older_lcrecord): New prototype in UTF-2000.
2181         (alloc_older_lcrecord_type): New macro in UTF-2000.
2182
2183 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184
2185         * mule-charset.c (byte_table_description): Use
2186         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2187         (char_id_table_description): Delete bogus `, 1'.
2188         (Fget_char_attribute): Refer encoding_table of each coded-charset
2189         to get value of coded-charset attribute of a character.
2190         (Fput_char_attribute): Use `make_older_vector' instead of
2191         `make_vector'; use encoding_table of each coded-charset to store
2192         value of coded-charset attribute of a character.
2193         (Fremove_char_attribute): Use encoding_table of each coded-charset
2194         to store value of coded-charset attribute of a character.
2195         (mark_charset): Mark `cs->encoding_table'; don't mark
2196         `cs->decoding_table'.
2197         (charset_description): Add description of new member
2198         `encoding_table'.
2199         (make_charset): Initialize `encoding_table'.
2200
2201         * char-ucs.h (struct Lisp_Charset): Add new member
2202         `encoding_table'.
2203         (CHARSET_ENCODING_TABLE): New macro.
2204         (XCHARSET_ENCODING_TABLE): New macro.
2205         (charset_code_point): New implementation.
2206         (encode_char_1): Likewise.
2207
2208         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2209         (disksave_object_finalization_1): Call finalizers of
2210         `all_older_lcrecords' in UTF-2000.
2211         (make_older_vector): New function in UTF-2000.
2212         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2213         UTF-2000.
2214
2215         * lisp.h (make_older_vector): New prototype in UTF-2000.
2216
2217 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2218
2219         * lrecord.h (enum lrecord_type): Rename
2220         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2221
2222         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2223         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2224         `get_char_code_table'.
2225
2226         * mule-charset.c (mark_char_id_table): Renamed from
2227         `mark_char_code_table'.
2228         (char_id_table_equal): Renamed from `char_code_table_equal'.
2229         (char_id_table_hash): Renamed from `char_code_table_hash'.
2230         (make_char_id_table): Renamed from `make_char_code_table'.
2231         (copy_char_id_table): Renamed from `copy_char_code_table'.
2232         (get_char_id_table): Renamed from `get_char_code_table'.
2233         (put_char_id_table): Renamed from `put_char_code_table'.
2234         (to_char_id): Renamed from `to_char_code'.
2235
2236         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2237         `Lisp_Char_Code_Table'.
2238         (char_id_table): Renamed from `char_code_table'.
2239         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2240         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2241         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2242         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2243         (get_char_id_table): Renamed from `get_char_code_table'.
2244
2245 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * lrecord.h (enum lrecord_type): Rename
2248         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2249
2250         * mule-charset.c (mark_byte_table): Renamed from
2251         `mark_char_byte_table'.
2252         (byte_table_equal): Renamed from `char_byte_table_equal'.
2253         (byte_table_hash): Renamed from `byte_table_hash'.
2254         (make_byte_table): Renamed from `make_byte_table'.
2255         (copy_byte_table): Renamed from `copy_char_byte_table'.
2256
2257         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2258         `Lisp_Char_Byte_Table'.
2259         (byte_table): Renamed from `char_byte_table'.
2260         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2261         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2262         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2263         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2264
2265 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2268         (dfc_convert_to_internal_format): Likewise.
2269         
2270         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2271         * text-coding.c (Fcoding_system_alias_p): New function.
2272         * text-coding.c (Fcoding_system_aliasee): New function.
2273         * text-coding.c (append_suffix_to_symbol): New function.
2274         * text-coding.c (dangling_coding_system_alias_p): New function.
2275         * text-coding.c (Ffind_coding_system):
2276         * text-coding.c (Fcopy_coding_system):
2277         * text-coding.c (encode_coding_no_conversion):
2278         * text-coding.c (syms_of_file_coding):
2279         * text-coding.c (vars_of_file_coding):
2280         Rewrite coding system alias code.
2281         Allow nested aliases, like symbolic links.
2282         Allow redefinition of coding system aliases.
2283         Prevent existence of dangling coding system aliases.
2284         Eliminate convert_to_external_format.
2285         Eliminate convert_to_internal_format.
2286         
2287         * text-coding.c: Change enum eol_type to eol_type_t.
2288
2289 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2290
2291         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2292         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2293
2294         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2295         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2296
2297 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2298
2299         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2300         `ideograph-daikanwa'.
2301
2302         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2303         (Vcharset_ucs_bmp): Likewise.
2304         (Vcharset_mojikyo): Add new extern variable definition.
2305         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2306         (Vcharset_latin_iso8859_3): Likewise.
2307         (Vcharset_latin_iso8859_4): Likewise.
2308         (Vcharset_latin_iso8859_9): Likewise.
2309         (Vcharset_latin_viscii_lower): Likewise.
2310         (Vcharset_latin_viscii_upper): Likewise.
2311         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2312         `mojikyo' code-point is used to decode.
2313         (encode_char_2): New function [to convert `mojikyo' code-point to
2314         Mojikyo font encoding].
2315         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2316         (breakup_char_1): Likewise.
2317         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2318
2319 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * text-coding.c (Fmake_coding_system): Add document about
2322         `disable-composition' property.
2323
2324 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * text-coding.c (Qdisable_composition): New variable; delete
2327         `Qcomposite'.
2328         (Fmake_coding_system): Add new property `disable-composite';
2329         delete property `composite'.
2330         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2331         instead of `!CODING_SYSTEM_COMPOSITE'.
2332         (syms_of_file_coding): Add new symbol `disable-composition';
2333         delete symbol `composite'.
2334
2335         * file-coding.h (struct Lisp_Coding_System): Add
2336         `disable_composition'; delete `enable_composition'.
2337         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2338         `CODING_SYSTEM_COMPOSITE'.
2339         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2340         `XCODING_SYSTEM_COMPOSITE'.
2341
2342 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2343
2344         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2345         to 0.15.
2346
2347 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2348
2349         * text-coding.c (Qcomposite): New variable.
2350         (Fmake_coding_system): Add new property `composite'.
2351         (struct decoding_stream): Add `combined_char_count',
2352         `combined_chars' and `combining_table' in UTF-2000.
2353         (COMPOSE_FLUSH_CHARS): New macro.
2354         (COMPOSE_ADD_CHAR): New macro.
2355         (reset_decoding_stream): Reset `str->combined_char_count' and
2356         `str->combining_table' in UTF-2000.
2357         (decode_coding_iso2022): Modify for character-decomposition.
2358         (syms_of_file_coding): Add new symbol `composite'.
2359
2360 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2361
2362         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2363         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2364         of `Vcharacter_composition_table' if `->decomposition' property
2365         has only 1 element.
2366         (Qlatin_tcvn5712): New variable.
2367         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2368         (complex_vars_of_mule_charset): Add new coded-charset
2369         `latin-tcvn5712'.
2370
2371         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2372
2373 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * file-coding.h (struct Lisp_Coding_System): Add
2376         `enable_composition'.
2377         (CODING_SYSTEM_COMPOSITE): New macro.
2378         (XCODING_SYSTEM_COMPOSITE): New macro.
2379
2380 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2381
2382         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2383
2384 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2385
2386         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2387         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2388
2389 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2390
2391         * mule-charset.c (Vcharset_mojikyo): New variable.
2392         (Fdefine_char): Don't use coded-charset which does not have
2393         non-builtin character range to allocate character-id.
2394         (Qmojikyo): New variable.
2395         (syms_of_mule_charset): Add new symbol `mojikyo'.
2396         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2397
2398         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2399         (LEADING_BYTE_MOJIKYO): New macro.
2400         (MIN_CHAR_MOJIKYO): New macro.
2401         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2402         (MAX_CHAR_MOJIKYO): New macro.
2403
2404 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2405
2406         * mule-charset.c (remove_char_attribute): Fixed.
2407
2408 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2409
2410         * mule-charset.c (remove_char_attribute): New function.
2411         (Fremove_char_attribute): New function.
2412         (encode_builtin_char_1): Comment out builtin-support for
2413         greek-iso8859-7 and cyrillic-iso8859-5.
2414         (Fdecode_char): Check `code' is an integer.
2415         (syms_of_mule_charset): Add `remove-char-attribute'.
2416         (MIN_CHAR_GREEK): Deleted.
2417         (MAX_CHAR_GREEK): Likewise.
2418         (MIN_CHAR_CYRILLIC): Likewise.
2419         (MAX_CHAR_CYRILLIC): Likewise.
2420         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2421         MAX_CHAR_GREEK for `greek-iso8859-7'.
2422
2423         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2424         (MAX_CHAR_GREEK): Likewise.
2425         (MIN_CHAR_CYRILLIC): Likewise.
2426         (MAX_CHAR_CYRILLIC): Likewise.
2427
2428 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2429
2430         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2431         format is used without `ucs' property.
2432         (Fdecode_char): Fix problem with GR representation.
2433         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2434         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2435
2436 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2437
2438         * mule-charset.c (make_builtin_char): New function.
2439         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2440         (Fset_charset_mapping_table): Modify for new representation of
2441         code-point.
2442         (Fdecode_char): New function.
2443         (syms_of_mule_charset): Add new builtin function `decode-char' in
2444         UTF-2000.
2445
2446         * char-ucs.h (make_builtin_char): New prototype.
2447         (DECODE_CHAR): New inline function.
2448         (MAKE_CHAR): Use `DECODE_CHAR'.
2449
2450 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2451
2452         * text-coding.c (parse_charset_conversion_specs): Use
2453         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2454         `XCHARSET_TYPE'.
2455         (iso2022_designate): Likewise.
2456
2457         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2458         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2459
2460         * mule-charset.c (Vcharset_ucs): New variable.
2461         (print_charset): Change design; use `CHARSET_CHARS' and
2462         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2463         (make_charset): Change signature to specify `chars' and
2464         `dimension' instead of `type'.
2465         (range_charset_code_point): Modify for 256^n-set.
2466         (encode_builtin_char_1): Encode as `ucs' in default.
2467         (Fmake_charset): Modify for `make_charset'.
2468         (Fmake_reverse_direction_charset): Likewise.
2469         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2470         UTF-2000.
2471         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2472         for `make_charset'.
2473
2474         * char-ucs.h (Vcharset_ucs): New variable.
2475         (LEADING_BYTE_UCS): New macro.
2476         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2477         and `chars' to `unsigned short' from `unsigned int'.
2478         (CHARSET_TYPE): Deleted.
2479         (XCHARSET_TYPE): Deleted.
2480
2481 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2482
2483         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2484
2485         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2486         (ENCODE_CHAR): New macro.
2487
2488 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2489
2490         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2491         to 0.14 (Kawachi-Katakami).
2492
2493 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2494
2495         * text-coding.c (char_encode_shift_jis): Modify for
2496         `charset_code_point'.
2497         (char_encode_iso2022): Likewise.
2498
2499         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2500         (integer) instead of list of <Lisp_Object>s (integers) as the
2501         format of code-point of a coded-charset.
2502         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2503         (encode_builtin_char_1): New function; delete
2504         `split_builtin_char'.
2505         (charset_code_point): Return <int> instead of <Lisp_Object>.
2506         (Fsplit_char): Don't use `SPLIT_CHAR'.
2507
2508         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2509         prototype for `split_builtin_char'.
2510         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2511         (charset_code_point): Likewise.
2512         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2513         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2514
2515 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2516
2517         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2518         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2519
2520 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2521
2522         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2523
2524         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2525         (MAX_CHAR_OBS_94x94): Deleted.
2526
2527 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2528
2529         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2530
2531         * char-ucs.h (MAX_CHAR_BMP): New macro.
2532
2533 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2534
2535         * text-coding.c: Sync with r21-2-24.
2536
2537 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2538
2539         * file-coding.c: Modify for UTF-2000.
2540
2541 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2542
2543         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2544         to 0.13 (Takaida).
2545
2546 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2547
2548         * mule-charset.c (split_builtin_char): Delete builtin support for
2549         `katakana-jisx0201'.
2550         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2551         BMP area in builtin representation.
2552
2553         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2554         `Vcharset_katakana_jisx0201'.
2555
2556 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2557
2558         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2559         (Qisolated): New variable.
2560         (Qinitial): New variable.
2561         (Qmedial): New variable.
2562         (Qfinal): New variable.
2563         (Qvertical): New variable.
2564         (Qsmall): New variable.
2565         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2566         `Qvertical' and `Qsmall'.
2567         (Qmojikyo_pj_[1 .. 21]): New variable.
2568         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2569         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2570         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2571         .. 21]'.
2572
2573 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2574
2575         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2576         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2577         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2578
2579 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2580
2581         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2582         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2583         BMP.
2584         (Qjapanese_jisx0208_1990): New variable.
2585         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2586         (complex_vars_of_mule_charset): Add new coded-charset
2587         `japanese-jisx0208-1990'.
2588
2589         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2590         (MIN_CHAR_JIS_X0208_1990): New macro.
2591         (MAX_CHAR_JIS_X0208_1990): New macro.
2592
2593 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2594
2595         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2596         coded-charset is not found.
2597
2598 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2599
2600         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2601         (Fdefine_char): Use `Fmake_char'.
2602
2603 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2604
2605         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2606         (Vcharset_hiragana_jisx0208): Deleted.
2607         (Vcharset_katakana_jisx0208): Deleted.
2608         (Qideograph_daikanwa): New variable.
2609         (Qhiragana_jisx0208): Deleted.
2610         (Qkatakana_jisx0208): Deleted.
2611         (split_builtin_char): Split `ideograph-daikanwa'.
2612         (Fsplit_char): New implementation for UTF-2000.
2613         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2614         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2615         (complex_vars_of_mule_charset): Add new coded-charset
2616         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2617         `katakana-jisx0208'.
2618
2619         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2620         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2621         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2622         (MIN_CHAR_DAIKANWA): New macro.
2623         (MAX_CHAR_DAIKANWA): New macro.
2624
2625 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2626
2627         * data.c (Fstring_to_number): Don't recognize floating point if
2628         base is not 10.
2629
2630 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2631
2632         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2633
2634 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2635
2636         * mule-charset.c (Qsquare): New variable.
2637         (to_char_code): Add `Qsquare'.
2638         (syms_of_mule_charset): Add new symbol `square'.
2639
2640 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2641
2642         * mule-charset.c (Qcircle): New variable.
2643         (to_char_code): Add `Qcircle'.
2644         (syms_of_mule_charset): Add new symbol `circle'.
2645
2646 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2647
2648         * mule-charset.c (Qfont): New variable.
2649         (to_char_code): Add `Qfont'.
2650         (syms_of_mule_charset): Add new symbol `font'.
2651
2652 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2653
2654         * mule-charset.c (Qsub): New variable.
2655         (to_char_code): Add `Qsub'.
2656         (syms_of_mule_charset): Add new symbol `sub'.
2657
2658 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2659
2660         * mule-charset.c (Fput_char_attribute): Convert each element of
2661         VALUE to GL position if ATTRIBUTE is a GR-set,
2662
2663 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2664
2665         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2666         coded-charset is a GR-set.
2667
2668 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2669
2670         * mule-charset.c (Fput_char_attribute): Check each element of
2671         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2672
2673 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2674
2675         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2676         UTF-2000.
2677         (Qethiopic_ucs): New variable in UTF-2000.
2678         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2679         (complex_vars_of_mule_charset): Add new coded-charset
2680         `ethiopic-ucs' in UTF-2000.
2681
2682         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2683         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2684         9)'.
2685         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2686         10)'.
2687         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2688
2689 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2690
2691         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2692         `ascii'.
2693
2694 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2695
2696         * mule-charset.c (Vcharacter_variant_table): New variable.
2697         (Q_ucs): New variable.
2698         (Fchar_variants): New function.
2699         (Fput_char_attribute): Register `->ucs' value to
2700         `Vcharacter_variant_table'.
2701         (syms_of_mule_charset): Add new function `char-variants' and new
2702         symbol `->ucs'.
2703         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2704
2705 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2706
2707         * mule-charset.c (get_char_code_table): Allow negative character
2708         code.
2709         (put_char_code_table): Likewise.
2710         (Vcharacter_composition_table): New variable.
2711         (Q_decomposition): New variable.
2712         (Qwide): New variable.
2713         (Qnarrow): New variable.
2714         (Qcompat): New variable.
2715         (QnoBreak): New variable.
2716         (Qsuper): New variable.
2717         (Qfraction): New variable.
2718         (to_char_code): New function.
2719         (Fget_composite_char): New function.
2720         (Fput_char_attribute): Register `->decomposition' value to
2721         `Vcharacter_composition_table'.
2722         (syms_of_mule_charset): Add new function `get-composite-char', new
2723         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2724         `super' and `fraction'.
2725         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2726
2727 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2728
2729         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2730         character; copy the return value.
2731
2732 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2733
2734         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2735
2736         * mule-charset.c (range_charset_code_point): Must use make_int.
2737         (split_builtin_char): New function.
2738
2739 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2740
2741         * mule-charset.c (char_byte_table): Change name from
2742         "char-code-table" to "char-byte-table".
2743         (mark_char_code_table): New function.
2744         (char_code_table_equal): New function.
2745         (char_code_table_hash): New function.
2746         (char_code_table_description): New constant.
2747         (char_code_table): New type.
2748         (make_char_code_table): New function.
2749         (copy_char_code_table): New function.
2750         (get_char_code_table): Modify for `char_code_table' type.
2751         (put_char_code_table): Likewise.
2752         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2753         (Kashiwara).
2754
2755         * char-ucs.h (char_code_table): New type.
2756         (XCHAR_CODE_TABLE): New macro.
2757         (XSETCHAR_CODE_TABLE): New macro.
2758         (CHAR_CODE_TABLE_P): New macro.
2759         (GC_CHAR_CODE_TABLE_P): New macro.
2760         (struct Lisp_Char_Code_Table): New structure.
2761
2762 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2763
2764         * mule-charset.c (Fmake_charset): Setup byte_offset for
2765         {94|96}^n-set.
2766
2767 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2768
2769         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2770         character.
2771
2772 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2773
2774         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2775         is found.
2776
2777 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2778
2779         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2780         charset, it is regarded as a charset.
2781         (put_char_attribute): New function in UTF-2000.
2782         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2783         charset, mapping-table of the charset is modified.
2784         (Fdefine_char): New function in UTF-2000.
2785         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2786         `Fput_char_attribute'.
2787         (syms_of_mule_charset): Add new function `define-char' and new
2788         symbol `ucs' in UTF-2000.
2789         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2790
2791 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2792
2793         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2794         non-UTF-2000 configuration.
2795
2796 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2797
2798         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2799         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2800
2801         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2802         deleted.
2803         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2804         (Fset_charset_mapping_table): Likewise.
2805
2806         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2807         (CHARSET_ENCODING_TABLE): Delete.
2808         (XCHARSET_ENCODING_TABLE): Delete.
2809         (charset_code_point): New interface.
2810
2811 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2812
2813         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2814         instead of `charset_get_byte1' and `charset_get_byte2'.
2815
2816         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2817         (charset_get_byte2): Deleted.
2818
2819 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2820
2821         * char-ucs.h (SPLIT_CHAR): New inline function.
2822         (breakup_char_1): Use `SPLIT_CHAR'.
2823
2824         * mule-charset.c (range_charset_code_point): New function.
2825         (charset_code_point): New function.
2826
2827         * char-ucs.h (range_charset_code_point): New interface.
2828         (breakup_char_1): Use `range_charset_code_point'.
2829
2830 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2831
2832         * mule-charset.c (Fmake_charset): Delete unused local variable
2833         `code_offset'.
2834
2835         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2836         (breakup_char_1): Find a charset and code-point in
2837         `Vcharacter_attribute_table'.
2838
2839 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2840
2841         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2842         to 0.10 (Yao).
2843
2844 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2845
2846         * mule-charset.c (Vcharacter_attribute_table): New variable.
2847         (Fchar_attribute_alist): New function.
2848         (Fget_char_attribute): New function.
2849         (Fput_char_attribute): New function.
2850         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2851         too.
2852         (syms_of_mule_charset): Add new function `char-attribute-alist',
2853         `get-char-attribute' and `put-char-attribute'.
2854         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2855
2856 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2857
2858         * mule-charset.c (Fmake_charset): Just use
2859         `get_unallocated_leading_byte'.
2860
2861         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2862         sets; don't use final-byte based number for private sets.
2863
2864 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2865
2866         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2867         integer.
2868
2869 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2870
2871         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2872         to 0.9.
2873
2874 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2875
2876         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2877         of `CHAR_LEADING_BYTE' in UTF-2000.
2878
2879         * insdel.c (find_charsets_in_bufbyte_string): Use
2880         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2881         (find_charsets_in_emchar_string): Likewise.
2882
2883         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2884         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2885
2886         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2887         (CHAR_CHARSET_ID): New macro.
2888
2889 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2890
2891         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2892         charset-id - MIN_LEADING_BYTE.
2893         (put_char_table): Likewise.
2894
2895 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2896
2897         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2898         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2899         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2900         (CHARSET_ID_OFFSET): New macro.
2901         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2902         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2903         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2904         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2905         4).
2906         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2907         5).
2908         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2909         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2910         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2911         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2912         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2913
2914 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2915
2916         * mule-charset.c (next_allocated_leading_byte): New variable in
2917         UTF-2000.
2918         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2919         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2920         (get_unallocated_leading_byte): Simply use
2921         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2922         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2923         UTF-2000.
2924
2925         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2926         (MAX_LEADING_BYTE_PRIVATE): New macro.
2927         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2928         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2929
2930 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2931
2932         * mule-charset.c (Fmake_charset): Allocate final-byte based
2933         charset-id for 94-set, 96-set and 94x94-set.
2934
2935 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2936
2937         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2938         ambiguous `else'.
2939         (Fmake_charset): Likewise.
2940         (complex_vars_of_mule_charset): Modify the font registry of
2941         `ucs-bmp' not to match `Ethiopic-Unicode'.
2942
2943 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2944
2945         * mule-charset.c (complex_vars_of_mule_charset): Add font
2946         registory of `ucs-bmp'.
2947
2948 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2949
2950         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2951         coded-charsets in `default-coded-charset-priority-list' when
2952         breaking up a character.
2953
2954         * mule-charset.c (Vcharset_latin_viscii): New variable.
2955         (Qlatin_viscii): New variable.
2956         (make_charset): Don't use `decoding_table'.
2957         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2958         byte_offset.
2959         (Fset_charset_mapping_table): New implementation.
2960         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2961         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2962         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2963         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2964         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2965         charset `latin_viscii'.
2966
2967         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2968         (CHARSET_TYPE_94X94): Change to 1 from 2.
2969         (CHARSET_TYPE_96): Change to 2 from 1.
2970         (CHARSET_TYPE_128): New macro.
2971         (CHARSET_TYPE_128X128): Change to 5 from 4.
2972         (CHARSET_TYPE_256): New macro.
2973         (CHARSET_TYPE_256X256): Change to 7 from 5.
2974         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2975
2976 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2977
2978         * text-coding.c (char_encode_shift_jis): Refer
2979         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2980         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2981
2982         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2983         (char_byte_table_equal): New function in UTF-2000.
2984         (char_byte_table_hash): New function in UTF-2000.
2985         (char_byte_table_description): New constant in UTF-2000.
2986         (char_byte_table): New type in UTF-2000.
2987         (make_char_byte_table): New function in UTF-2000.
2988         (copy_char_byte_table): New function in UTF-2000.
2989         (make_char_code_table): New macro in UTF-2000.
2990         (get_char_code_table): New function in UTF-2000.
2991         (put_char_code_table): New function in UTF-2000.
2992         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2993         (charset_description): Add setting in UTF-2000.
2994         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2995         `CHARSET_TO_BYTE1_TABLE(cs)'.
2996         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2997         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2998         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2999         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3000         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3001         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3002         `CHARSET_TO_BYTE2_TABLE(cs)'.
3003
3004         * char-ucs.h (char_byte_table): New type.
3005         (XCHAR_BYTE_TABLE): New macro.
3006         (XSETCHAR_BYTE_TABLE): New macro.
3007         (CHAR_BYTE_TABLE_P): New macro.
3008         (GC_CHAR_BYTE_TABLE_P): New macro.
3009         (struct Lisp_Char_Byte_Table): New structure.
3010         (get_char_code_table): New interface.
3011         (Emchar_to_byte_table): Deleted.
3012         (get_byte_from_character_table): Deleted.
3013         (struct Lisp_Charset): Add `encoding_table'; delete
3014         `to_byte1_table' and `to_byte2_table'.
3015         (CHARSET_ENCODING_TABLE): New macro.
3016         (CHARSET_TO_BYTE1_TABLE): Deleted.
3017         (CHARSET_TO_BYTE2_TABLE): Deleted.
3018         (XCHARSET_ENCODING_TABLE): New macro.
3019         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3020         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3021
3022 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3023
3024         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3025         `vietnamese-viscii-*'.
3026
3027 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3028
3029         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3030         (Qvietnamese_viscii_upper): New variable.
3031         (Fdefine_charset_alias): New function.
3032         (syms_of_mule_charset): Add new function `define-charset-alias'.
3033         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3034         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3035         `latin-viscii-*'.
3036
3037 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3038
3039         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3040         (MAX_CHAR_OBS_94x94): New macro.
3041         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3042         for 94x94 sets.
3043
3044         * mule-charset.c (put_byte_from_character_table): Change unit size
3045         from 128 to 256.
3046         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3047         not defined.
3048         (Fmake_reverse_direction_charset): Modify dummy argument of
3049         `make_charset' for non-UTF-2000 environment.
3050
3051 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3052
3053         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3054
3055         * mule-charset.c (destroy_byte_from_character_table): New macro.
3056         (latin_jisx0201_to_ucs): Deleted.
3057         (latin_iso8859_2_to_ucs): Deleted.
3058         (latin_iso8859_3_to_ucs): Deleted.
3059         (latin_iso8859_4_to_ucs): Deleted.
3060         (latin_iso8859_9_to_ucs): Deleted.
3061         (latin_viscii_lower_to_ucs): Deleted.
3062         (latin_viscii_upper_to_ucs): Deleted.
3063         (mark_charset): Mark `cs->decoding_table'.
3064         (Fcharset_mapping_table): Fix DOC-string.
3065         (Fset_charset_mapping_table): New function.
3066         (syms_of_mule_charset): Add nwe function
3067         `set-charset-mapping-table'.
3068         (complex_vars_of_mule_charset): Don't setup and use
3069         `latin_*_to_ucs'.
3070
3071 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3072
3073         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3074         charset.
3075
3076 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3077
3078         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3079         (Vcharset_katakana_jisx0208): New variable.
3080         (Qhiragana_jisx0208): New variable.
3081         (Qkatakana_jisx0208): New variable.
3082         (make_charset): Add new argument `byte_offset'.
3083         (charset_get_byte1): Modify for new coded-charset definition; use
3084         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3085         `XCHARSET_BYTE_OFFSET'.
3086         (Fmake_charset): Modify for `make_charset'.
3087         (Fmake_reverse_direction_charset): Likewise.
3088         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3089         `katakana-jisx0208'.
3090         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3091         `.'  in font registry of charset `katakana-jisx0201',
3092         `latin-jisx0201', `vietnamese-viscii-lower' and
3093         `vietnamese-viscii-upper'; modify DOC-string of charset
3094         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3095         registry of charset `japanese-jisx0208' not to use font for JIS
3096         X0208:1990; add new charset `hiragana-jisx0208' and
3097         `katakana-jisx0208'.
3098
3099         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3100         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3101         (struct Lisp_Charset): Add `byte_offset'.
3102         (CHARSET_BYTE_OFFSET): New macro.
3103         (XCHARSET_UCS_MIN): New macro.
3104         (XCHARSET_UCS_MAX): New macro.
3105         (XCHARSET_CODE_OFFSET): New macro.
3106         (XCHARSET_BYTE_OFFSET): New macro.
3107         (MIN_CHAR_HIRAGANA): New macro.
3108         (MAX_CHAR_HIRAGANA): New macro.
3109         (MIN_CHAR_KATAKANA): New macro.
3110         (MAX_CHAR_KATAKANA): New macro.
3111         (MAKE_CHAR): Modify for new coded-charset definition; use
3112         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3113         `XCHARSET_BYTE_OFFSET'.
3114
3115 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3116
3117         * mule-charset.c (CHAR96): Deleted.
3118         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3119         <Lisp_Object>.
3120         (latin_iso8859_2_to_ucs): Likewise.
3121         (latin_iso8859_3_to_ucs): Likewise.
3122         (latin_iso8859_4_to_ucs): Likewise.
3123         (latin_iso8859_9_to_ucs): Likewise.
3124         (latin_viscii_lower_to_ucs): Likewise.
3125         (latin_viscii_upper_to_ucs): Likewise.
3126         (latin_tcvn5712_to_ucs): Commented out.
3127         (make_charset): Change type of argument `decoding_table' from
3128         <Emchar*> to <Lisp_Object> [vector of characters].
3129         (Fmake_charset): Modify for `make_charset'.
3130         (Fmake_reverse_direction_charset): Likewise.
3131         (Fcharset_mapping_table): New function in UTF-2000.
3132         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3133         UTF-2000.
3134         (complex_vars_of_mule_charset): Modify for type change of
3135         `*_to_ucs'; modify for `make_charset'.
3136
3137         * char-ucs.h (struct Lisp_Charset): Change type of
3138         `decoding_table' from <Emchar*> to <Lisp_Object>.
3139         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3140
3141 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3142
3143         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3144         error with non-UTF-2000-Mule.
3145
3146 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3147
3148         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3149         in lisp again].
3150         (Vcharset_chinese_cns11643_4): Likewise.
3151         (Vcharset_chinese_cns11643_5): Likewise.
3152         (Vcharset_chinese_cns11643_6): Likewise.
3153         (Vcharset_chinese_cns11643_7): Likewise.
3154         (Qchinese_cns11643_3): Likewise.
3155         (Qchinese_cns11643_4): Likewise.
3156         (Qchinese_cns11643_5): Likewise.
3157         (Qchinese_cns11643_6): Likewise.
3158         (Qchinese_cns11643_7): Likewise.
3159         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3160         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3161         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3162         (complex_vars_of_mule_charset): Likewise.
3163
3164 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3165
3166         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3167         96-set.
3168         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3169         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3170
3171 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3172
3173         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3174         0xFF60.
3175         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3176         (breakup_char_1): Likewise.
3177
3178         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3179         one of them includes the specified character.
3180
3181 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3182
3183         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3184
3185 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3186
3187         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3188
3189 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3190
3191         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3192         definition for non-UTF-2000 Mule.
3193         (latin_iso8859_3_to_ucs): Likewise.
3194         (latin_iso8859_4_to_ucs): Likewise.
3195         (latin_iso8859_9_to_ucs): Likewise.
3196         (latin_jisx0201_to_ucs): Likewise.
3197         (MIN_CHAR_THAI): Likewise.
3198         (MAX_CHAR_THAI): Likewise.
3199         (MIN_CHAR_GREEK): Likewise.
3200         (MAX_CHAR_GREEK): Likewise.
3201         (MIN_CHAR_HEBREW): Likewise.
3202         (MAX_CHAR_HEBREW): Likewise.
3203         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3204         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3205         (MIN_CHAR_CYRILLIC): Likewise.
3206         (MAX_CHAR_CYRILLIC): Likewise.
3207
3208 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3209
3210         * char-ucs.h (breakup_char_1): Use
3211         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3212         thai-tis620 and katakana-jisx0201 area.
3213
3214 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3215
3216         * char-ucs.h (breakup_char_1): Use
3217         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3218         area.
3219
3220         * text-coding.c (reset_encoding_stream): Fixed.
3221         (char_encode_ucs4): Delete `& 255'.
3222
3223         * char-ucs.h (breakup_char_1): Use
3224         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3225
3226 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3227
3228         * file-coding.c (Fmake_coding_system): Don't set up
3229         `codesys->fixed.size'.
3230         (encode_coding_no_conversion): Don't refer
3231         `str->codesys->fixed.size'.
3232
3233 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3234
3235         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3236         (latin_a_char_to_byte1): Deleted.
3237         (latin_a_char_to_byte2): Deleted.
3238
3239 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3240
3241         * mule-charset.c (make_charset): Add new argument `ucs_min',
3242         `ucs_max' and `code_offset'.
3243         (charset_get_byte1): New implementation [delete specific charset
3244         depended implementations].
3245         (Fmake_charset): Modify for `make_charset'.
3246         (Fmake_reverse_direction_charset): Likewise.
3247         (complex_vars_of_mule_charset): Likewise.
3248
3249         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3250         `code_offset'.
3251         (CHARSET_UCS_MIN): New macro.
3252         (CHARSET_UCS_MAX): New macro.
3253         (CHARSET_CODE_OFFSET): New macro.
3254         (MAKE_CHAR): Delete charset depended definitions [except
3255         katakana-jisx0201].
3256
3257 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3258
3259         * char-ucs.h (breakup_char_1): Use
3260         `Vdefault_coded_charset_priority_list' for C0-Controls,
3261         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3262
3263 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3264
3265         * char-ucs.h (charset_get_byte1): New function.
3266         (XCHARSET_GET_BYTE1): Deleted.
3267         (charset_get_byte2): New function.
3268         (XCHARSET_GET_BYTE2): Deleted.
3269         (Vdefault_coded_charset_priority_list): New external variable.
3270         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3271         `Vdefault_preferred_coded_charset_list'.
3272
3273         * mule-charset.c (charset_get_byte1): New function.
3274         (charset_get_byte2): New function.
3275         (Vdefault_coded_charset_priority_list): New variable.
3276         (vars_of_mule_charset): Add new variable
3277         `default-coded-charset-priority-list'.
3278
3279 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3280
3281         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3282         (XCHARSET_GET_BYTE2): New inline function.
3283         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3284         `XCHARSET_GET_BYTE2'.
3285
3286 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3287
3288         * mule-charset.c (make_charset): Initialize
3289         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3290         NULL if table is not defined.
3291
3292 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3293
3294         * text-coding.c (char_encode_shift_jis): Use
3295         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3296         `ucs_to_latin_jisx0201'.
3297
3298         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3299         (ucs_to_latin_iso8859_2): Deleted.
3300         (ucs_to_latin_iso8859_3): Deleted.
3301         (ucs_to_latin_iso8859_4): Deleted.
3302         (ucs_to_latin_iso8859_9): Deleted.
3303         (ucs_to_latin_viscii_lower): Deleted.
3304         (ucs_to_latin_viscii_upper): Deleted.
3305         (ucs_to_latin_tcvn5712): Deleted.
3306         (make_charset): Add new argument `decoding_table'; set up
3307         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3308         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3309         `decoding_table' is defined in UTF-2000.
3310         (Fmake_charset): Modify for `make_charset'.
3311         (Fmake_reverse_direction_charset): Likewise.
3312         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3313         and `GENERATE_96_SET'.
3314
3315         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3316         (ucs_to_latin_jisx0201): Deleted.
3317         (latin_iso8859_2_to_ucs): Deleted.
3318         (ucs_to_latin_iso8859_2): Deleted.
3319         (latin_iso8859_3_to_ucs): Deleted.
3320         (ucs_to_latin_iso8859_3): Deleted.
3321         (latin_iso8859_4_to_ucs): Deleted.
3322         (ucs_to_latin_iso8859_4): Deleted.
3323         (latin_iso8859_9_to_ucs): Deleted.
3324         (ucs_to_latin_iso8859_9): Deleted.
3325         (latin_viscii_lower_to_ucs): Deleted.
3326         (ucs_to_latin_viscii_lower): Deleted.
3327         (latin_viscii_upper_to_ucs): Deleted.
3328         (ucs_to_latin_viscii_upper): Deleted.
3329         (struct Lisp_Charset): Renamed `encoding_table' to
3330         `to_byte1_table'; add `to_byte2_table'.
3331         (CHARSET_DECODING_TABLE): New macro.
3332         (CHARSET_TO_BYTE1_TABLE): New macro.
3333         (CHARSET_TO_BYTE2_TABLE): New macro.
3334         (XCHARSET_DECODING_TABLE): New macro.
3335         (XCHARSET_TO_BYTE1_TABLE): New macro.
3336         (XCHARSET_TO_BYTE2_TABLE): New macro.
3337         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3338         tables.
3339         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3340         don't use `ucs_to_*' tables.
3341
3342 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3343
3344         * text-coding.c (Fmake_coding_system): Don't set up
3345         `codesys->fixed.size'.
3346         (encode_coding_no_conversion): Use `if' instead of `switch'.
3347
3348         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3349
3350 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3351
3352         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3353         (Fmake_charset): Modify for `make_charset'.
3354         (Fmake_reverse_direction_charset): Likewise.
3355         (complex_vars_of_mule_charset): Likewise.
3356
3357 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3358
3359         * text-coding.c (char_encode_shift_jis): Use table
3360         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3361
3362 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3363
3364         * text-coding.c (text_encode_generic): Use `if' instead of
3365         `switch'.
3366         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3367         decode JIS-Latin.
3368
3369 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3370
3371         * text-coding.c (encode_coding_sjis): Deleted.
3372         (char_encode_shift_jis): New function.
3373         (char_finish_shift_jis): New function.
3374         (reset_encoding_stream): Set up `encode_char' and `finish' for
3375         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3376         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3377         (char_encode_utf8): Treat `eol_type'.
3378
3379 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3380
3381         * file-coding.c (decode_coding_iso2022): Use
3382         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3383
3384 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3385
3386         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3387         to 0.7 (Hirano).
3388
3389 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3390
3391         * char-lb.h (CHAR_COLUMNS): New macro.
3392
3393 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3394
3395         * text-coding.c (char_encode_ucs4): New function.
3396         (char_finish_ucs4): New function.
3397         (encode_coding_ucs4): Deleted.
3398         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3399         (text_encode_generic): Delete local variable `charset' and `half'.
3400         (ucs_to_mule_table): Deleted.
3401         (mule_to_ucs_table): Deleted.
3402         (Fset_ucs_char): Deleted.
3403         (ucs_to_char): Deleted.
3404         (Fucs_char): Deleted.
3405         (Fset_char_ucs): Deleted.
3406         (Fchar_ucs): Deleted.
3407         (decode_ucs4): Deleted.
3408         (mule_char_to_ucs4): Deleted.
3409         (encode_ucs4): Deleted.
3410         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3411         (decode_coding_utf8): Likewise.
3412         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3413         (char_encode_iso2022): Fixed.
3414         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3415         `Fset_char_ucs' and `Fchar_ucs'.
3416         (complex_vars_of_file_coding): Don't initialize
3417         `ucs_to_mule_table'.
3418
3419         * objects-tty.c (tty_initialize_font_instance): Don't use
3420         `XCHARSET_COLUMNS'.
3421
3422         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3423         UTF-2000.
3424
3425         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3426         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3427
3428         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3429         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3430         (emchar_string_displayed_columns): Likewise.
3431
3432         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3433         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3434         (string_column_at_point): Likewise.
3435         (Fmove_to_column): Likewise.
3436
3437         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3438         `encoding_table' and `decoding_table'.
3439         (CHARSET_REP_BYTES): Deleted.
3440         (XCHARSET_REP_BYTES): Deleted.
3441         (XCHARSET_COLUMNS): Deleted.
3442         (CHAR_COLUMNS): New macro.
3443         (lookup_composite_char): Deleted unconditionally.
3444         (composite_char_string): Likewise.
3445
3446 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3447
3448         * char-ucs.h (Emchar_to_byte_table): New type.
3449         (get_byte_from_character_table): New function interface.
3450         (Vcharset_latin_jisx0201): New variable.
3451         (latin_jisx0201_to_ucs): New variable.
3452         (ucs_to_latin_jisx0201): New variable.
3453         (Vcharset_latin_iso8859_2): New variable.
3454         (latin_iso8859_2_to_ucs): New variable.
3455         (ucs_to_latin_iso8859_2): New variable.
3456         (Vcharset_latin_iso8859_3): New variable.
3457         (latin_iso8859_3_to_ucs): New variable.
3458         (ucs_to_latin_iso8859_3): New variable.
3459         (Vcharset_latin_iso8859_4): New variable.
3460         (latin_iso8859_4_to_ucs): New variable.
3461         (ucs_to_latin_iso8859_4): New variable.
3462         (Vcharset_latin_iso8859_9): New variable.
3463         (latin_iso8859_9_to_ucs): New variable.
3464         (ucs_to_latin_iso8859_9): New variable.
3465         (Vcharset_latin_viscii_lower): New variable.
3466         (latin_viscii_lower_to_ucs): New variable.
3467         (ucs_to_latin_viscii_lower): New variable.
3468         (Vcharset_latin_viscii_upper): New variable.
3469         (latin_viscii_upper_to_ucs): New variable.
3470         (ucs_to_latin_viscii_upper): New variable.
3471         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3472         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3473         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3474         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3475         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3476         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3477         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3478         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3479         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3480         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3481
3482         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3483         (Vcharset_latin_viscii_upper): New variable.
3484         (make_byte_from_character_table): New function.
3485         (put_byte_from_character_table): New function.
3486         (get_byte_from_character_table): New function.
3487         (CHAR96): New macro.
3488         (ucs_to_latin_jisx0201): New variable.
3489         (latin_jisx0201_to_ucs): New variable.
3490         (ucs_to_latin_iso8859_2): New variable.
3491         (latin_iso8859_2_to_ucs): New variable.
3492         (ucs_to_latin_iso8859_3): New variable.
3493         (latin_iso8859_3_to_ucs): New variable.
3494         (ucs_to_latin_iso8859_4): New variable.
3495         (latin_iso8859_4_to_ucs): New variable.
3496         (ucs_to_latin_iso8859_9): New variable.
3497         (latin_iso8859_9_to_ucs): New variable.
3498         (ucs_to_latin_viscii_lower): New variable.
3499         (latin_viscii_lower_to_ucs): New variable.
3500         (ucs_to_latin_viscii_upper): New variable.
3501         (latin_viscii_upper_to_ucs): New variable.
3502         (ucs_to_latin_tcvn5712): New variable.
3503         (latin_tcvn5712_to_ucs): New variable.
3504         (Qlatin_viscii_lower): New variable.
3505         (Qlatin_viscii_upper): New variable.
3506         (syms_of_mule_charset): Set up new symbol
3507         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3508         (complex_vars_of_mule_charset): Set up new charset
3509         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3510         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3511         `ucs_to_<CHARSET>' tables.
3512
3513 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3514
3515         * text-coding.c: New file.
3516
3517 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3518
3519         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3520
3521         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3522         (MAKE_CHAR): Modify for `ucs-bmp'.
3523         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3524         non-MULE characters of BMP.
3525
3526 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3527
3528         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3529         to 0.6.
3530
3531 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3532
3533         * lstream.h:
3534         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3535         - Include character.h for `CHAR_ASCII_P'.
3536
3537         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3538
3539         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3540         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3541
3542         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3543         (BYTE_C0_P): Likewise.
3544         (BYTE_C1_P): Likewise.
3545         (Lstream_get_emchar_1): Likewise.
3546         (Lstream_fput_emchar): Likewise.
3547         (Lstream_funget_emchar): Likewise.
3548         (copy_internal_to_external): Likewise.
3549         (copy_external_to_internal): Likewise.
3550
3551         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3552         (BYTE_C0_P): Likewise.
3553         (BYTE_C1_P): Likewise.
3554         (Lstream_get_emchar_1): Likewise.
3555         (Lstream_fput_emchar): Likewise.
3556         (Lstream_funget_emchar): Likewise.
3557         (copy_internal_to_external): Likewise.
3558         (copy_external_to_internal): Likewise.
3559
3560         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3561         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3562
3563         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3564         (BYTE_ASCII_P): Moved to mb-1byte.h.
3565
3566 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3567
3568         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3569
3570         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3571         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3572         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3573         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3574         (VALIDATE_CHARPTR_FORWARD): Likewise.
3575         (simple_charptr_emchar): Moved to mb-multibyte.h.
3576         (simple_set_charptr_emchar): Likewise.
3577         (simple_charptr_copy_char): Likewise.
3578         (non_ascii_charptr_emchar): Likewise.
3579         (non_ascii_set_charptr_emchar): Likewise.
3580         (non_ascii_charptr_copy_char): Likewise.
3581         (charptr_emchar): Moved to mb-*byte.h.
3582         (set_charptr_emchar): Likewise.
3583         (charptr_copy_char): Likewise.
3584
3585         * mb-1byte.h, mb-multibyte.h: New files.
3586
3587 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3588
3589         * mb-utf-8.h (MULTIBYTE): New macro.
3590         (MAX_EMCHAR_LEN): Moved from buffer.h.
3591         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3592
3593         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3594
3595         * mb-lb.h, multibyte.h: New files.
3596
3597         * char-1byte.h (Charset_ID): Moved from buffer.h.
3598         (MIN_LEADING_BYTE): Likewise.
3599         (LEADING_BYTE_ASCII): Likewise.
3600         (NUM_LEADING_BYTES): Likewise.
3601         (CHARSETP): Likewise.
3602         (CHARSET_BY_LEADING_BYTE): Likewise.
3603         (XCHARSET_LEADING_BYTE): Likewise.
3604         (XCHARSET_GRAPHIC): Likewise.
3605         (XCHARSET_COLUMNS): Likewise.
3606         (XCHARSET_DIMENSION): Likewise.
3607         (CHAR_CHARSET): Likewise.
3608         (CHAR_LEADING_BYTE): Likewise.
3609         (BREAKUP_CHAR): Likewise.
3610         (Vcharset_ascii): Likewise.
3611
3612         * buffer.h: Include multibyte.h unconditionally.
3613         (VALID_CHARPTR_P): Moved to multibyte.h.
3614         (ASSERT_VALID_CHARPTR): Likewise.
3615         (REAL_INC_CHARPTR): Likewise.
3616         (REAL_INC_CHARBYTIND): Likewise.
3617         (REAL_DEC_CHARPTR): Likewise.
3618         (INC_CHARPTR): Likewise.
3619         (INC_CHARBYTIND): Likewise.
3620         (DEC_CHARPTR): Likewise.
3621         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3622         (VALIDATE_CHARPTR_FORWARD): Likewise.
3623         (charptr_n_addr): Likewise.
3624         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3625         (simple_charptr_emchar): Moved to multibyte.h.
3626         (simple_set_charptr_emchar): Likewise.
3627         (simple_charptr_copy_char): Likewise.
3628         (non_ascii_charptr_emchar): Likewise.
3629         (non_ascii_set_charptr_emchar): Likewise.
3630         (non_ascii_charptr_copy_char): Likewise.
3631         (charptr_emchar): Likewise.
3632         (set_charptr_emchar): Likewise.
3633         (charptr_copy_char): Likewise.
3634         (charptr_emchar_n): Likewise.
3635         (Charset_ID): Moved to char-1byte.h.
3636         (Vcharset_ascii): Likewise.
3637         (CHAR_CHARSET): Likewise.
3638         (CHAR_LEADING_BYTE): Likewise.
3639         (LEADING_BYTE_ASCII): Likewise.
3640         (NUM_LEADING_BYTES): Likewise.
3641         (MIN_LEADING_BYTE): Likewise.
3642         (CHARSETP): Likewise.
3643         (CHARSET_BY_LEADING_BYTE): Likewise.
3644         (XCHARSET_LEADING_BYTE): Likewise.
3645         (XCHARSET_GRAPHIC): Likewise.
3646         (XCHARSET_COLUMNS): Likewise.
3647         (XCHARSET_DIMENSION): Likewise.
3648         (BREAKUP_CHAR): Likewise.
3649
3650 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3651
3652         * character.h: Add document about interface for characters.
3653
3654         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3655         (MAKE_CHAR): Delete comment about
3656         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3657         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3658         (BREAKUP_CHAR): Modify name of arguments.
3659         (CHAR_CHARSET): Modify name of argument.
3660
3661         * buffer.h: Delete document about Emchar accessors.
3662
3663 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3664
3665         * character.h (CHAR_INTP): Moved from buffer.h
3666         (CHAR_OR_CHAR_INTP): Likewise.
3667         (XCHAR_OR_CHAR_INT): Likewise.
3668         (CHECK_CHAR_COERCE_INT): Likewise.
3669
3670         * buffer.h (CHAR_INTP): Moved to character.h
3671         (CHAR_OR_CHAR_INTP): Likewise.
3672         (XCHAR_OR_CHAR_INT): Likewise.
3673         (CHECK_CHAR_COERCE_INT): Likewise.
3674
3675 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3676
3677         * character.h:
3678         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3679         - Include char-1byte.h, char-lb.h or char-ucs.h.
3680
3681         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3682
3683         * buffer.h: Include character unconditionally.
3684         (valid_char_p): Moved to char-*.h.
3685         (non_ascii_valid_char_p): Moved to char-lb.h.
3686
3687         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3688
3689 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3690
3691         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3692         in UTF-2000 because it is not ported yet and not to use
3693         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3694         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3695         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3696
3697         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3698         (CHAR_ASCII_P): Moved from character.h.
3699
3700         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3701         (CHAR_ASCII_P): Likewise.
3702         (CHAR_FIELD1_MASK): Deleted.
3703         (CHAR_FIELD2_MASK): Deleted.
3704         (CHAR_FIELD3_MASK): Deleted.
3705         (MAX_CHAR_BASIC_LATIN): New macro.
3706         (CHAR_FIELD1): Deleted.
3707         (CHAR_FIELD2_INTERNAL): Deleted.
3708         (CHAR_FIELD3_INTERNAL): Deleted.
3709         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3710         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3711         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3712         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3713         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3714         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3715         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3716         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3717         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3718         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3719         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3720         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3721         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3722         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3723         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3724         (MIN_CHAR_COMPOSITION): Deleted.
3725         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3726         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3727
3728 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3729
3730         * buffer.h: Include mb-utf-8.h in UTF-2000.
3731
3732         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3733
3734         * mb-utf-8.h: New file.
3735
3736 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3737
3738         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3739         instead of `int'.
3740
3741         * mule-charset.h, buffer.h (Charset_ID): New type.
3742
3743 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3744
3745         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3746         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3747         instead of `MULE_CHAR_PRIVATE_OFFSET',
3748         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3749         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3750         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3751
3752         * character.h (Vcharset_japanese_jisx0212): New variable
3753         definition.
3754
3755 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3756
3757         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3758         (charset_by_attributes): Delete array about direction.
3759         (latin_a_char_to_charset): New variable in UTF-2000.
3760         (latin_a_char_to_byte1): New variable in UTF-2000.
3761         (latin_a_char_to_byte2): New variable in UTF-2000.
3762         (Qucs_bmp): New variable.
3763         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3764         `Bufbyte'.
3765         (next_allocated_2_byte_leading_byte): Likewise.
3766         (non_ascii_set_charptr_emchar): Likewise.
3767         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3768         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3769         `charset_by_attributes'.
3770         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3771         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3772         and `CHARSET_BY_LEADING_BYTE'.
3773         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3774         `utf-2000-version' to `vars_of_mule_charset'.
3775         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3776         define `leading-code-private-11' in UTF-2000; move setting of
3777         `utf-2000-version' from `syms_of_mule_charset'.
3778         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3779         UTF-2000.
3780
3781         * character.h (Charset_ID): New type.
3782         (LEADING_BYTE_UCS_BMP): New macro.
3783         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3784         (CHARSET_ID_OFFSET_94): New macro.
3785         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3786         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3787         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3788         final-byte.
3789         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3790         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3791         (CHARSET_ID_OFFSET_96): New macro.
3792         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3793         CHARSET_ID_OFFSET_96 and final-byte.
3794         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3795         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3796         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3797         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3798         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3799         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3800         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3801         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3802         (LEADING_BYTE_THAI_TIS620): Likewise.
3803         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3804         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3805         (CHARSET_ID_OFFSET_94x94): New macro.
3806         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3807         CHARSET_ID_OFFSET_94x94 and final-byte.
3808         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3809         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3810         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3811         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3812         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3813         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3814         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3815         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3816         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3817         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3818         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3819         (CHARSET_TYPE_128X128): New macro.
3820         (CHARSET_TYPE_256X256): New macro.
3821         (XCHARSET_PRIVATE_P): Delete unconditionally.
3822         (charset_by_attributes): Delete array about direction.
3823         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3824         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3825         (MIN_CHAR_94): New macro.
3826         (MAX_CHAR_94): New macro.
3827         (MIN_CHAR_96): New macro.
3828         (MAX_CHAR_96): New macro.
3829         (MIN_CHAR_94x94): New macro.
3830         (MAX_CHAR_94x94): New macro.
3831         (MIN_CHAR_96x96): New macro.
3832         (MAX_CHAR_96x96): New macro.
3833         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3834         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3835         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3836         - 32)'.
3837         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3838         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3839         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3840         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3841         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3842         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3843         `XCHARSET_LEADING_BYTE' to make code-point.
3844         (latin_a_char_to_charset): New variable.
3845         (latin_a_char_to_byte1): New variable.
3846         (latin_a_char_to_byte2): New variable.
3847         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3848         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3849         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3850
3851         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3852         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3853         (find_charsets_in_emchar_string): Likewise.
3854         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3855
3856         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3857         `int'.
3858         (decode_coding_iso2022): Likewise.
3859
3860         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3861         of `unsigned char'.
3862
3863         * redisplay.c (redisplay_text_width_emchar_string): Use
3864         `Charset_ID' instead of `unsigned char'.
3865         (redisplay_frame_text_width_string): Likewise.
3866
3867         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3868         `unsigned char'.
3869
3870         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3871         instead of `unsigned char'.
3872         (face_cachel_charset_font_metric_info): Likewise.
3873
3874         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3875         (get_non_ascii_char_table_value): Likewise.
3876         (get_char_table): Likewise.
3877         (put_char_table): Likewise.
3878         (map_over_other_charset): Likewise.
3879         (map_char_table): Likewise.
3880
3881         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3882         instead of `unsigned char'.
3883
3884 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3885
3886         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3887         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3888
3889         * mule-charset.c (leading_code_private_11): Don't define in
3890         UTF-2000.
3891
3892         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3893         in UTF-2000 because it is not ported yet and not to use
3894         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3895
3896 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3897
3898         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3899
3900 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3901
3902         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3903         in UTF-2000.
3904
3905         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3906         of unsigned char to store leading-byte.
3907
3908         * chartab.c (get_non_ascii_char_table_value): Don't use
3909         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3910
3911         * file-coding.c (encode_coding_big5): Delete bogus implementation
3912         in UTF2000.
3913
3914         * character.h (LEADING_BYTE_*): Delete definition for
3915         non-UTF-2000.
3916         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3917         (LEADING_BYTE_PREFIX_P): Deleted.
3918         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3919         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3920         (BUFBYTE_LEADING_BYTE_P): Deleted.
3921         (CHARSET_PRIVATE_P): Deleted unconditionally.
3922         (rep_bytes_by_first_byte): Deleted unconditionally.
3923         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3924         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3925         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3926         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3927         (CHAR_FIELD2): Deleted.
3928         (CHAR_FIELD3): Deleted.
3929         (MAKE_CHAR): Delete definition for non-UTF-2000.
3930         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3931         (breakup_char_1): New implementation.
3932         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3933         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3934
3935 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3936
3937         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3938         condition.
3939
3940 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3941
3942         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3943         (CHARSET_PRIVATE_P): Likewise.
3944         (XCHARSET_PRIVATE_P): Likewise.
3945         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3946
3947         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3948         UTF2000.
3949         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3950
3951 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3952
3953         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3954         (NUM_LEADING_BYTES): Changed from 128 to 256.
3955         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3956         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3957         UTF2000.
3958         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3959
3960         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3961         UTF2000.
3962         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3963         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3964         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3965         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3966         (Qchinese_cns11643_3): New variable in UTF2000.
3967         (Qchinese_cns11643_4): New variable in UTF2000.
3968         (Qchinese_cns11643_5): New variable in UTF2000.
3969         (Qchinese_cns11643_6): New variable in UTF2000.
3970         (Qchinese_cns11643_7): New variable in UTF2000.
3971         (syms_of_mule_charset): Define `chinese-cns11643-3',
3972         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3973         and `chinese-cns11643-7' in UTF2000.
3974         (vars_of_mule_charset): Initialize
3975         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3976         + 1 in UTF2000.
3977         (complex_vars_of_mule_charset): Setup charset
3978         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3979         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3980
3981 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * mule-charset.c: Move setting for `leading-code-private-11' from
3984         `syms_of_mule_charset' to `vars_of_mule_charset'.
3985
3986 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3987
3988         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3989         and `NUM_LEADING_BYTES' in assert.
3990
3991 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3992
3993         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3994         instead of 128.
3995         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3996         `NUM_LEADING_BYTES' instead of 128.
3997
3998 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3999
4000         * mule-charset.h (charset_by_leading_byte): Use
4001         `NUM_LEADING_BYTES' instead of 128.
4002         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4003
4004         * mule-charset.c (charset_by_leading_byte): Use
4005         `NUM_LEADING_BYTES' instead of 128.
4006         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4007
4008         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4009         128.
4010
4011 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4012
4013         * mule-charset.c (syms_of_mule_charset): Update to
4014         0.4 (Shin-Imamiya).
4015
4016 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4017
4018         * file-coding.c (encode_coding_sjis): New implementation for
4019         UTF2000.  (decode_coding_sjis): Ditto.
4020
4021 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4022
4023         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4024         Don't define in UTF2000.
4025
4026         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4027         defined.
4028
4029         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4030         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4031         MULE.
4032
4033 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4034
4035         * config.h.in (CHAR_IS_UCS4): New macro.
4036
4037         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4038         conventional MULE representation.
4039         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4040
4041         * mule-charset.h: Reverted to original.
4042
4043         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4044         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4045         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4046
4047         * character.h: New file.
4048
4049         * file-coding.c (Fmake_coding_system): Set 1 to
4050         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4051         defined.
4052         (encode_coding_no_conversion): New implementation for UTF2000.
4053
4054         * file-coding.h (struct Lisp_Coding_System): Add new member
4055         `fixed.size'.
4056
4057 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4058
4059         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4060         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4061         (encode_coding_iso2022): New implementation for UTF2000.
4062
4063 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4064
4065         * mule-canna.c (c2mu): New implementation for UTF2000.
4066         (m2c): Likewise.
4067
4068 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4069
4070         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4071
4072 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4073
4074         * file-coding.c (reset_encoding_stream): Set 0 to
4075         `str->iso2022.current_char_boundary' in UTF2000.
4076         (encode_utf8): Don't define in UTF2000.
4077         (encode_coding_utf8): New implementation for UTF-8 representation
4078         of UTF2000.
4079         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4080
4081 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4082
4083         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4084
4085         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4086         UTF2000.
4087         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4088
4089         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4090
4091         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4092         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4093         as UTF-8 in UTF2000.
4094         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4095         (non_ascii_valid_char_p): Don't define in UTF2000.
4096         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4097         (Lstream_get_emchar_1): Likewise.
4098         (utf-2000-version): New variable in UTF2000.
4099
4100         * lread.c (read_escape): Add new reader `u'.
4101
4102         * insdel.c (three_to_one_table): Don't define in UTF2000.
4103         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4104         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4105         UTF2000.
4106         (bytind_to_bufpos_func): Likewise.
4107         (buffer_mule_signal_inserted_region): Likewise.
4108         (vars_of_insdel): Don't initialize `three_to_one_table'.
4109         (init_buffer_text): Use `buf->text->mule_size' instead of
4110         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4111         UTF2000.
4112
4113         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4114         UTF-8 representation in UTF2000.
4115         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4116         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4117         (decode_coding_iso2022): Don't define local variable `lb' in
4118         UTF2000; don't use LEADING_BYTE in UTF2000; use
4119         `DECODE_ADD_UCS_CHAR' in UTF2000.
4120         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4121
4122         * config.h.in (UTF2000): New macro.
4123
4124         * buffer.h (struct buffer_text): Add new member `mule_size' and
4125         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4126         (valid_char_p): Return always 1 in UTF2000.
4127         (MAX_EMCHAR_LEN): 6 in UTF2000.
4128         (three_to_one_table): Don't define in UTF2000.
4129         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4130         UTF2000.
4131         (real_bytind_to_bufpos): Likewise.
4132
4133         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4134
4135 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4136
4137         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4138         representation change.
4139         (Vutf_2000_version): New variable.
4140         (leading_code_private_11): New variable.
4141         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4142         `leading-code-private-11'.
4143
4144         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4145         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4146         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4147         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4148         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4149         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4150         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4151         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4152         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4153         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4154         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4155         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4156         (MIN_CHAR_GREEK): New macro.
4157         (MAX_CHAR_GREEK): New macro.
4158         (MIN_CHAR_CYRILLIC): New macro.
4159         (MAX_CHAR_CYRILLIC): New macro.
4160         (MIN_CHAR_HEBREW): New macro.
4161         (MAX_CHAR_HEBREW): New macro.
4162         (MIN_CHAR_THAI): New macro.
4163         (MAX_CHAR_THAI): New macro.
4164         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4165         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4166         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4167         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4168         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4169         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4170         (CHAR_FIELD2): New inline function.
4171         (CHAR_FIELD3): New inline function.
4172         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4173         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4174         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4175         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4176         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4177         (MIN_CHAR_COMPOSITION): Likewise.
4178         (CHAR_LEADING_BYTE): Modified for character representation change.
4179         (MAKE_CHAR): Likewise.
4180
4181         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4182         (Vcharset_greek_iso8859_7): Likewise.
4183         (Vcharset_cyrillic_iso8859_5): Likewise.
4184         (Vcharset_hebrew_iso8859_8): Likewise.
4185         (Vcharset_thai_tis620): Likewise.
4186         (Vcharset_katakana_jisx0201): Likewise.
4187
4188 2001-02-08  Martin Buchholz <martin@xemacs.org>
4189
4190         * XEmacs 21.2.44 "Thalia" is released.
4191
4192 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4193
4194         Fixes crashes in kill-emacs on some systems.
4195         * process-unix.c (unix_kill_child_process):
4196         It's OK for kill() to fail with ESRCH.
4197
4198 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4199
4200         Contortions to make .gdbinit tricks work on most systems.
4201         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4202         * alloc.c (dbg_valmask): Make non-const.
4203         * alloc.c (dbg_typemask): Make non-const.
4204         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4205         * alloc.c (dbg_valbits): Make non-const.
4206         * alloc.c (dbg_gctypebits): Make non-const.
4207         * .gdbinit (decode_object): Make it work with AIX cc.
4208
4209 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4210
4211         * elhash.c (make_general_lisp_hash_table):
4212         Use simpler and more efficient calloc to clear entries.
4213
4214 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4215
4216         * window.c (window_scroll): Work around an AIX C compiler bug.
4217         Fixes 'scroll-up' does nothing problem with xlC.
4218
4219 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4220
4221         * .gdbinit: Remove obsolete comment.
4222
4223 2001-01-31  Mike Alexander  <mta@arbortext.com>
4224
4225         * select.c (Fown_selection_internal): Set owned_p for device
4226         method correctly.
4227
4228 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4229
4230         Port to g++ 2.97.
4231         "not" cannot be used as a macro name as it is an operator in C++
4232         * config.h.in: Stop #defining `not'.
4233         * chartab.c (check_category_char): not ==> not_p
4234         * chartab.h: Likewise.
4235         * regex.c (re_match_2_internal): Likewise.
4236
4237 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4238
4239         * lisp-disunion.h: Fix up comments.
4240
4241 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4242
4243         * keymap.c (define_key_check_and_coerce_keysym):
4244         (syms_of_keymap):
4245         Support mouse-6 and mouse-7 bindings in the obvious way.
4246
4247 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4248
4249         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4250
4251 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4252
4253         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4254         Previous patch missed DEFVAR_INT_MAGIC.
4255         Make sure future DEFVAR_foo use correct types.
4256         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4257         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4258         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4259         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4260         * (DEFVAR_INT): Likewise.
4261         * redisplay.c (vertical_clip): Should be of type Fixnum.
4262         * redisplay.c (horizontal_clip): Likewise.
4263         * lisp.h (dump_add_opaque_int): New.
4264         (dump_add_opaque_fixnum): New.
4265
4266 2001-01-29  Andy Piper  <andy@xemacs.org>
4267
4268         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4269         since they can be eval'ed
4270
4271 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4272
4273         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4274         Oops, XEmacs redefines `class'.  Use `typename' instead.
4275
4276 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4277
4278         * dumper.c: Fix C++ compile errors.
4279
4280 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4281
4282         * tparam.c: Use correct prototypes.
4283
4284 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4285
4286         * sysproc.h: #include util.h for NetBSD's openpty.
4287
4288 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4289
4290         More 64-bit correctness.
4291         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4292         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4293         Fix up comments.
4294         This finally finishes the 64-bit SGI port.
4295         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4296         * symbols.c: Fix up comments and type casts.
4297         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4298         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4299         * symeval.h (Fixnum): New type.
4300         * symeval.h (symbol_value_type): Fix up comment.
4301
4302         * commands.h:
4303         * nt.c:
4304         * emacs.c:
4305         * data.c:
4306         * redisplay.c:
4307         * abbrev.c:
4308         * dired-msw.c:
4309         * event-Xt.c:
4310         * eldap.c:
4311         * window.c:
4312         * sound.c:
4313         * event-stream.c:
4314         * eval.c:
4315         * buffer.c:
4316         * mule-canna.c: A million DEFVAR_INTs here...
4317         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4318         * extents.c:
4319         * cmdloop.c:
4320         * lisp.h:
4321         * select-x.c:
4322         * console-x.h:
4323         * event-msw.c:
4324         * mule-wnnfns.c:
4325         * hpplay.c:
4326         * ralloc.c:
4327         * alloc.c:
4328         * keymap.c:
4329         * profile.c:
4330         s/int/Fixnum/g in DEFVAR_INT declarations.
4331
4332 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4333
4334         Port pdump to SGI alignment-sensitive environment.
4335         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4336         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4337         properly aligned.
4338         Define and use aligned reading and writing macros.
4339         Use buffered stdio instead of posix i/o for faster dumping.
4340         Eliminate kludgy 256 byte space for header.
4341         Read and write from dump file using structs for alignment safety.
4342         * dumper.c (pdump_align_stream): New.
4343         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4344         * dumper.c (PDUMP_READ_ALIGNED): New.
4345         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4346         * dumper.c (pdump_static_Lisp_Object): New struct.
4347         * dumper.c (pdump_static_pointer): New struct.
4348         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4349         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4350         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4351         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4352
4353         * dumper.c (pdump_backtrace):
4354         * dumper.c (pdump_get_indirect_count):
4355         * dumper.c (pdump_register_object):
4356         * dumper.c (pdump_register_struct):
4357         * dumper.c (pdump_reloc_one):
4358         * dumper.c (pdump_scan_by_alignment):
4359         * dumper.c (pdump_dump_from_root_struct_ptrs):
4360         * dumper.c (pdump_dump_opaques):
4361         * dumper.c (pdump_dump_rtables):
4362         * dumper.c (pdump_dump_from_root_objects):
4363         * dumper.c (pdump):
4364         * dumper.c (pdump_load_finish):
4365         Use aligned reading and writing.
4366
4367         * dumper.c (pdump_free): Make static.
4368         * dumper.c (pdump_hFile): Likewise.
4369         * dumper.c (pdump_hMap): Likewise.
4370
4371 2001-01-26  Martin Buchholz <martin@xemacs.org>
4372
4373         * XEmacs 21.2.43 "Terspichore" is released.
4374
4375 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4376
4377         Type fiddling for window_config.saved_windows_count
4378         * window.c (struct window_config): 
4379         Make saved_windows_count member unsigned.
4380         * window.c (sizeof_window_config_for_n_windows): 
4381         Make parameter unsigned.
4382         * window.c (mark_window_config):
4383         * window.c (window_config_equal):
4384         * window.c (free_window_configuration):
4385         * window.c (Fset_window_configuration):
4386         * window.c (count_windows):
4387         * window.c (Fcurrent_window_configuration):
4388         * window.c (reinit_vars_of_window):
4389         Update all callers and users.
4390
4391 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4392
4393         Alignment correctness for flexible arrays.
4394         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4395         Make alignment-correct. Add interesting comments.
4396         * alloc.c (size_vector):
4397         * alloc.c (make_vector_internal):
4398         * alloc.c (make_bit_vector_internal):
4399         * alloc.c (sweep_bit_vectors_1):
4400         * fns.c (size_bit_vector):
4401         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4402         * window.c (sizeof_window_config_for_n_windows): 
4403         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4404
4405 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4406
4407         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4408
4409 2001-01-23  Andy Piper  <andy@xemacs.org>
4410
4411         * select.c (Fown_selection_internal): pass owned_p
4412
4413         * select-msw.c (mswindows_own_selection): New Signature.
4414
4415         * console.h (struct console_methods): add owned_p to
4416         _own_selection.
4417
4418         * select-x.c (x_own_selection): pass owned_p
4419         (hack_motif_clipboard_selection): use owned_p
4420         (vars_of_select_x): new variable -
4421         x_selection_strict_motif_ownership.
4422
4423 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4424
4425         * specifier.h (specifier_data_offset): Remove pointless parens.
4426         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4427
4428 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4429
4430         Make Lisp_Object sizeof methods be alignment-correct.
4431         pdump must restore objects to the same alignment as the C compiler
4432         assumes.  It really matters on SGIs.
4433         * lstream.c (aligned_sizeof_lstream): New.
4434         (sizeof_lstream): Use aligned_sizeof_lstream.
4435         (Lstream_new): Likewise.
4436         * opaque.c (aligned_sizeof_opaque): New.
4437         (sizeof_opaque): Use aligned_sizeof_opaque.
4438         (make_opaque): Likewise.
4439         * specifier.c (aligned_sizeof_specifier): New.
4440         (sizeof_specifier): Use aligned_sizeof_specifier.
4441         (make_specifier_internal): Likewise.
4442
4443 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4444
4445         * lstream.h (struct lstream): Use max_align_t for trailing data.
4446         * specifier.h (struct Lisp_Specifier): Likewise.
4447
4448 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4449
4450         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4451         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4452         (CCL_SUSPEND): Likewise.
4453         (CCL_INVALID_CMD): Likewise.
4454         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4455         (ccl_driver): Likewise.
4456         (CCL_WRITE_CHAR): Macro hygiene.
4457         (CCL_WRITE_STRING): Macro hygiene.
4458
4459 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4460
4461         Port "portable" dumper to SunOS 4 and HP-UX.
4462         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4463         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4464         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4465
4466 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4467
4468         * lisp.h (ALIGNOF): A better definition for C++.
4469
4470 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4471
4472         Macro hygiene.
4473         Fix printf warnings: int format, long int arg.
4474         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4475         (PUSH_FAILURE_POINT): Use correct printf formats.
4476         (POP_FAILURE_POINT): Use correct printf formats.  
4477         Use do {...} while (0)
4478
4479 2001-01-20  Martin Buchholz <martin@xemacs.org>
4480
4481         * XEmacs 21.2.42 "Poseidon" is released.
4482
4483 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4484
4485         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4486
4487 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4488
4489         De-kludgify FIXED_TYPE free list frobbing.
4490         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4491         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4492         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4493         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4494         * alloc.c (LRECORD_FREE_P): New.
4495         * alloc.c (MARK_LRECORD_AS_FREE): New.
4496         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4497         * alloc.c (STRUCT_FREE_P): Deleted.
4498         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4499         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4500         * alloc.c (STRING_CHARS_FREE_P): New.
4501         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4502         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4503         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4504         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4505         * alloc.c (resize_string): Use new definitions.
4506         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4507         * alloc.c (verify_string_chars_integrity): Use new definitions.
4508         * alloc.c (compact_string_chars): Use new definitions.
4509         * alloc.c: Update monster comments.
4510         * lrecord.h (lrecord_type): Add some new lrecord types for
4511         alloc.c's use.
4512
4513 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4514
4515         Improve alignment hackery.
4516         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4517         (max_align_t): Moved from opaque.h - general purpose.
4518         (ALIGN_PTR): Use size_t, not long.
4519         * opaque.h (max_align_t): Move to lisp.h.
4520
4521 2001-01-18  Norbert Koch  <nk@LF.net>
4522
4523         * gui.h: Fix and add prototypes to fix build problems.
4524
4525 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4526
4527         temacs is going away, so `dump-temacs' is now a bad name.
4528         * .dbxrc (dump-temacs): Rename to `dmp'.
4529         * .gdbinit (dump-temacs): Rename to `dmp'.
4530
4531 2001-01-17  Andy Piper  <andy@xemacs.org>
4532
4533         * glyphs.c (print_image_instance): comment to make martin happy.
4534
4535         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4536         change.
4537
4538         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4539         activation.
4540         (mswindows_tab_control_redisplay): warning suppression.
4541
4542         * glyphs-widget.c (widget_update): re-write to cope with updated
4543         items.
4544         (widget_instantiate): use new gui_item functions.
4545         (tab_control_update): deleted.
4546         (progress_gauge_update): deleted.
4547         (image_instantiator_progress_guage): take out update reference.
4548         (image_instantiator_tree_view): ditto.
4549         (image_instantiator_tab_control): ditto.
4550
4551         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4552         Right the new way.
4553         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4554         return whether anything was changed.
4555         (update_gui_item_keywords): as it sounds.
4556
4557         * gui.h: declare widget_gui_parse_item_keywords.
4558
4559         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4560         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4561
4562 2001-01-17  Martin Buchholz <martin@xemacs.org>
4563
4564         * XEmacs 21.2.41 "Polyhymnia" is released.
4565
4566 2001-01-16  Didier Verna  <didier@xemacs.org>
4567
4568         * glyphs.c (image_instantiate): don't use fallbacks when
4569         instantiating a face's background pixmap by inheritance.
4570
4571 2001-01-14  Mike Sperber <mike@xemacs.org>
4572
4573         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4574         Conditionalize accordingly.
4575
4576 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4577
4578         * dumper.c (pdump_file_get): Fix a compiler warning.
4579
4580 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4581
4582         Make Purify happy when pdumping.
4583         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4584         iniitalizing all bits of new lisp object memory.
4585         * symbols.c (Fmake_local_variable): Likewise.
4586         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4587         * symbols.c (Fdefvaralias): Likewise.
4588         * mule-charset.c (vars_of_mule_charset): Likewise.
4589
4590 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4591         Add the `-nd' flag when running pre-dump operations under the debugger.
4592         * .dbxrc (run-temacs): Add `-nd'.
4593         * .dbxrc (update-elc): Likewise.
4594         * .dbxrc (dump-temacs): Likewise.
4595         * .gdbinit (run-temacs): Likewise.
4596         * .gdbinit (check-temacs): Likewise.
4597         * .gdbinit (update-elc): Likewise.
4598         * .gdbinit (dump-temacs): Likewise.
4599
4600 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4601
4602         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4603         export OBJECT_MODE=64
4604         configure --pdump --use-union-type=no
4605         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4606         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4607
4608         * miscplay.c (sndcnv8U_2mono):
4609         Avoid two uses of `++' in the same expression.
4610         Suppresses a GCC warning.
4611
4612 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4613
4614         Make sure future compilers don't miscompile alloc.c.
4615         * alloc.c:
4616         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4617         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4618
4619 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4620
4621         * dumper.c: A little post-pdump-rename comment fixup.
4622
4623 2001-01-09  Jerry James  <james@eecs.ku.edu>
4624
4625         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4626
4627 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4628
4629         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4630         script:
4631         #!/bin/sh
4632         replace_symbol () {
4633           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4634         }
4635
4636         replace_symbol pdump_wire_lists pdump_weak_object_chains
4637         replace_symbol pdump_wire_list dump_add_weak_object_chain
4638
4639         replace_symbol pdump_wires pdump_root_objects
4640         replace_symbol pdump_wire dump_add_root_object
4641
4642         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4643         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4644
4645         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4646         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4647         replace_symbol dumpstructinfo pdump_root_struct_ptr
4648         replace_symbol dumpstruct dump_add_root_struct_ptr
4649
4650         replace_symbol dumpopaque dump_add_opaque
4651         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4652         replace_symbol dumpopaqueinfos pdump_opaques
4653         replace_symbol dumpopaqueinfo pdump_opaque
4654
4655         replace_symbol nb_structdump nb_root_struct_ptrs
4656         replace_symbol nb_opaquedump nb_opaques
4657
4658         replace_symbol align_table pdump_align_table
4659         replace_symbol dump_header pdump_header
4660
4661         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4662         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4663
4664
4665 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4666
4667         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4668         optimizing bytecount_to_charcount().
4669
4670 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4671
4672         * config.h.in:
4673         (HAVE_DLFCN_H): Removed.
4674         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4675
4676 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4677
4678         Portable dumper maintainability improvements.
4679         * alloc.c (staticpro):
4680         * alloc.c (staticpro_nodump):
4681         * alloc.c (garbage_collect_1):
4682         * alloc.c (reinit_alloc_once_early):
4683         * alloc.c (init_alloc_once_early):
4684         * alloc.c: Move dumper functions to alloc.c.
4685         * dumper.c (pdump_backtrace):
4686         * dumper.c (pdump_dump_structs):
4687         * dumper.c (pdump_dump_opaques):
4688         * dumper.c (pdump_dump_rtables):
4689         * dumper.c (pdump_dump_wired):
4690         * dumper.c (pdump):
4691         * dumper.c (pdump_load_check):
4692         * dumper.c (pdump_load_finish):
4693         * dumper.c (pdump_file_unmap):
4694         * dumper.c (pdump_file_get):
4695         * dumper.c (pdump_resource_free):
4696         * dumper.c (pdump_resource_get):
4697         * dumper.c (pdump_file_free):
4698         * dumper.c (pdump_file_try):
4699         * dumper.c (pdump_load):
4700         Remove fixed size limits on staticpro(), staticpro_nodump(),
4701         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4702         Remove custom code for dumping lrecord_implementations_table - use
4703         dumpopaque instead.
4704         Remove (most of the) custom code for dumping staticpros - dump it
4705         like any other dynarr.
4706
4707         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4708         * dumper.c: Moved functions from alloc.c.
4709         * alloc.c (dumpstruct): Moved to dumper.c.
4710         * alloc.c (dumpopaque): Likewise.
4711         * alloc.c (pdump_wire): Likewise.
4712         * alloc.c (pdump_wire_list): Likewise.
4713
4714         * lisp.h (Dynarr_sizeof): New.
4715         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4716         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4717         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4718
4719         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4720         * lisp.h (dumpopaque): ditto.
4721         * lisp.h (pdump_wire): ditto.
4722         * lisp.h (pdump_wire_list): ditto.
4723
4724 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4725
4726         * make-src-depend (PrintPatternDeps):
4727         Use `sort' to make output independent of perl version.
4728
4729 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4730
4731         Port to Netbsd 1.5.
4732         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4733         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4734
4735 2001-01-03  Didier Verna  <didier@xemacs.org>
4736
4737         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4738         that `focus_frame' is alive before thinking of calling
4739         `redisplay_redraw_cursor' on it.
4740
4741 2001-01-08  Martin Buchholz <martin@xemacs.org>
4742
4743         * XEmacs 21.2.40 is released.
4744
4745 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4746
4747         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4748
4749 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4750
4751         * alloc.c (dbg_valmask): Make const.
4752         * alloc.c (dbg_typemask): Make const.
4753         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4754         * alloc.c (dbg_valbits): Make const.
4755         * alloc.c (dbg_gctypebits): Make const.
4756
4757 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4758
4759         * redisplay-x.c (x_bevel_area):
4760         redisplay.h (struct rune):
4761         Typo fixes in comments.
4762
4763 2001-01-05  Andy Piper  <andy@xemacs.org>
4764
4765         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4766         adjustment.
4767
4768         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4769
4770 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4771
4772         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4773
4774         * mule-ccl.c (stack_idx_of_map_multiple):
4775         Non const global data must not be initialized!
4776         Found by MIYASHITA Hisashi.
4777
4778 2001-01-02  Andy Piper  <andy@xemacs.org>
4779
4780         * frame.c (change_frame_size): make sure frame size is always
4781         marked as changed.
4782
4783         * glyphs.c (image_instance_layout): minor code reuse.
4784
4785         * window.c (Fcurrent_window_configuration): revert previous
4786         change.
4787
4788 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4789
4790         * glyphs.h:
4791         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4792
4793 2000-12-31  Andy Piper  <andy@xemacs.org>
4794
4795         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4796         when widget gets unmapped.
4797
4798         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4799         function. Make sure widgets losing focus don't just drop it.
4800         (handle_focus_event_1): record the widget with focus.
4801
4802 2000-12-31  Andy Piper  <andy@xemacs.org>
4803
4804         * window.c (allocate_window): use
4805         make_image_instance_cache_hash_table.
4806         (make_dummy_parent): ditto.
4807         (Fset_window_configuration): ditto.
4808
4809         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4810
4811         * glyphs.c (process_image_string_instantiator): use
4812         INSTANTIATOR_TYPE.
4813         (get_image_instantiator_governing_domain): ditto.
4814         (normalize_image_instantiator): ditto.
4815         (instantiate_image_instantiator): ditto.
4816         (make_image_instance_1): ditto.
4817         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4818         (instantiator_eq_equal): new function for use with instance hash
4819         tables.
4820         (instantiator_eq_hash): ditto.
4821         (make_image_instance_cache_hash_table): create a suitable hash
4822         table for storing image instances.
4823
4824         * elhash.h (hash_table_weakness): new internal weakness type
4825         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4826         declare new functions.
4827
4828         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4829         another weakness type for glyphs.
4830         (make_standard_lisp_hash_table): new function split out from
4831         make_general_lisp_hash_table.
4832         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4833         (hash_table_instantiate): ditto.
4834         (Fmake_hash_table): ditto.
4835
4836 2000-12-31  Martin Buchholz <martin@xemacs.org>
4837
4838         * XEmacs 21.2.39 is released.
4839
4840 2000-12-29  Andy Piper  <andy@xemacs.org>
4841
4842         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4843
4844         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4845         the frame has changed so that we pick up geometry changes such as
4846         menubar visibility.
4847
4848 2000-12-28  Andy Piper  <andy@xemacs.org>
4849
4850         * lastfile.c (my_ebss): make a char array so we can pad the
4851         bss. Fixes cygwin unexec.
4852
4853         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4854
4855 2000-12-26  Andy Piper  <andy@xemacs.org>
4856
4857         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4858         comments and try and be more precise about a non-/SIGIO world.
4859         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4860         SIGIO.
4861
4862         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4863         we don't normalize to zero width or height.
4864
4865 2000-12-24  Andy Piper  <andy@xemacs.org>
4866
4867         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4868
4869 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4870
4871         * s/sco5.h: SCO 5 has pty support.
4872
4873 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4874
4875         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4876         input-method-xlib.c contains whole contents of input-method-xfs.c,
4877         so we can use input-method-xlib.c's code for USE_XFONTSET
4878         using #ifdefs.
4879         * input-method-xfs.c: removed.
4880
4881 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4882
4883         * file-coding.h (enum coding_category_type): reorder enumerators to
4884         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4885         (now one greater than largest real coding_category_type enumerator).
4886         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4887         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4888         Fcoding_category_list, Fset_coding_priority_list,
4889         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4890         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4891
4892 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4893
4894         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4895         * redisplay-output.c (redisplay_output_window): Clear top of window
4896         when face is changed.
4897         * redisplay-x.c (x_redraw_exposed_window): Call
4898         redisplay_clear_top_of_window.
4899         * redisplay.h: Publish redisplay_clear_top_of_window.
4900
4901 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4902
4903         * buffer.c (Fkill_buffer): Map over all devices.
4904         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4905         (list_windows): New function.
4906         (list_all_windows): Ditto.
4907         (Freplace_buffer_in_windows): Use them.
4908
4909 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4910
4911         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4912         (Fopen_database): Use `db_create' instead of `db_open'.
4913         (syms_of_database): Initialize Qqueue.
4914
4915 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4916
4917         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4918         buffer_local_face_property.
4919         * buffer.h (struct buffer): New member buffer_local_face_property.
4920         * window.c (Fset_window_buffer):  Mark window's face as changed
4921         when buffer has buffer local face.
4922         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4923         * objects.c (color_after_change): Set buffer_local_face_property
4924         when locale of face specifier is buffer.
4925         * objects.c (font_after_change): Ditto.
4926         * objects.c (face_boolean_after_change): Ditto.
4927         * glyphs.c (image_after_change): Ditto.
4928
4929 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4930
4931         * nt.c (mswindows_fstat): Report file permissions, volume serial
4932         number, etc. Code adapted from FSF Emacs 20.7.
4933
4934 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4935
4936         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4937         of stat when we don't have symbolic links, to make sure
4938         mswindows_stat is called on mswindows.
4939
4940 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4941
4942         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4943
4944 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4945
4946         * doprnt.c (emacs_doprnt_1): More printing fixes.
4947         Make printing of numbers compatible with libc and FSF Emacs.
4948         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4949         Use the system printf to do most of the hard work of formatting,
4950         instead of doprnt_1().
4951         Calculate memory to allocate for format string.
4952         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4953         (doprnt_1): Cleaner code and documentation.
4954
4955 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4956
4957         * Makefile.in.in: Use the loop variable to install headers.
4958
4959 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4960
4961         * window.c (Fsplit_window): Don't invalidate face cache.
4962
4963 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4964
4965         * minibuf.c (Fall_completions): Undo the previous change
4966         which removed checking elements start with space.
4967
4968 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4969
4970         * mule-canna.c: Didier suppression.
4971
4972 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4973
4974         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4975         (warning suppression).  Add English comment translations.
4976
4977 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4978
4979         * unexelfsgi.c (unexec): Better test for mmap failure.
4980
4981 2000-12-05  Martin Buchholz <martin@xemacs.org>
4982
4983         * XEmacs 21.2.38 is released.
4984
4985 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4986
4987         * redisplay.c (bar-cursor): Make a user variable.
4988
4989         * symsinit.h: Add init_postgresql_from_environment.
4990
4991 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4992
4993         * regex.c: Convert to clean C.
4994
4995 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4996
4997         * realpath.c:
4998         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4999         initialization.
5000         (sys_readlink): renamed to system_readlink to avoid conflict with
5001         the other sys_readlink.
5002
5003 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
5004
5005         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5006
5007 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
5008
5009         * postgresql.c (init_postgresql_from_environment): new function.
5010         (vars_of_postgresql): Move code initializing Lisp variables out and
5011         into init_postgresql_from_environment.
5012         emacs.c (main_1): Call init_postgresql_from_environment if and only
5013         if running a dumped XEmacs.
5014
5015 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5016
5017         * buffer.c: Make find-file-compare-truenames default to true on
5018         windows.
5019
5020         * realpath.c (win32_abs_start):
5021         (cygwin_readlink):
5022         (win32_readlink): New functions.
5023         (xrealpath): Return really real filenames on windows.
5024
5025         * fileio.c (Ffile_truename): Make file-truename work on windows.
5026
5027 2000-11-29  Didier Verna  <didier@xemacs.org>
5028
5029         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5030         * faces.c (update_face_cachel_data): use it.
5031         * faces.c (add_face_cachel): use it. Complete background pixmap
5032         frobbing in face cache if `update_face_cachel_data' has not done so.
5033
5034 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5035
5036         * search.c (string_match_1): Don't set last_thing_searched
5037         when search failed.
5038
5039 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5040
5041         * buffer.c: Include casetab.h
5042         (common_init_complex_vars_of_buffer): Use new case-table object.
5043         * buffer.h: Include casetab.h
5044         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5045         (DOWNCASE_TABLE_OF): Ditto.
5046         * bufslots.h: Remove char-tables and add case-table.
5047         * casetab.c: Include casetab.h
5048         (CASE_TABLE_P): Removed.
5049         (mark_case_table): New function.
5050         (allocate_case_table): New function.
5051         (Fcase_table_p): Use new case-table.
5052         (case_table_char): New function.
5053         (Fget_case_table): Ditto.
5054         (Fput_case_table): Ditto.
5055         (Fput_case_table_pair): Ditto.
5056         (Fcopy_case_table): Ditto.
5057         (Fcurrent_case_table): Return case-table.
5058         (Fstandard_case_table): Return case-table.
5059         (Fset_case_table): Fix doc-string.
5060         (set_case_table): Use case-table
5061         (syms_of_casetab): DEFSUBR new functions.
5062         (complex_vars_of_casetab): Set up standard case-table.
5063         * casetab.h: New file.
5064         * editfns.c: Include casetab.h
5065         (Fcompare_buffer_substrings): Use case-table.
5066         * inline.c: Include casetab.h
5067         * lisp.h: Remove bogus extern.
5068         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5069         * search.c: Include casetab.h
5070         (TRANSLATE_ASCII): Removed.
5071         (TRANSLATE): Unconditionally translate character.
5072         (looking_at_1): Use case-table.
5073         (string_match_1): Ditto.
5074         (fast_string_match): Ditto.
5075         (search_command): Ditto.
5076         (search_buffer): Separate boyer_moore.  Check whether
5077         boyer_moore is possible.
5078         (simple_search): New function.
5079         (boyer_moore): Separated from search_buffer. Translate char.
5080
5081 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5082
5083         * regex.c (RE_TR_ASCII): Removed.
5084         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5085         (PATFETCH): Call PATFETCH_RAW.
5086         (PATFETCH_RAW): Fetch Emchar.
5087         (PATUNFETCH): Decrement charptr.
5088         (GET_BUFFER_SPACE): Rename b to buf_end.
5089         (BUF_PUSH): Ditto.
5090         (BUF_PUSH_2): Ditto.
5091         (BUF_PUSH_3): Ditto.
5092         (EXTEND_BUFFER): Ditto.
5093         (SET_LIST_BIT): Ditto.
5094         (regex_compile): Ditto.  Translate non ASCII char.
5095         (compile_range): Ditto.
5096         (re_search_2): Ditto.
5097         (re_match_2_internal): Compare Emchar.
5098         (bcmp_translate): Ditto.
5099
5100 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5101
5102         * lisp.h (basic char/int typedefs):  comment improvement.
5103
5104 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5105
5106         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5107         unstomp inhibit_site_lisp.  Improve comments.
5108
5109 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5110
5111         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5112
5113 2000-11-28  Andy Piper  <andy@xemacs.org>
5114
5115         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5116         clipped display for windows in the gutter also.
5117         (redisplay_display_boxes_in_window_p): change semantics of return
5118         codes to be more intuitive.
5119
5120         * gutter.h: declare display_boxes_in_gutter_p.
5121
5122         * gutter.c (display_boxes_in_gutter_p): new function for
5123         redisplay.
5124
5125 2000-11-22  Andy Piper  <andy@xemacs.org>
5126
5127         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5128         autodetect domain.
5129
5130 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5131
5132         * callproc.c (Fold_call_process_internal):
5133         * gpm.c (Freceive_gpm_event):
5134         (tty_get_foreign_selection): Might be just warning supression.
5135         * fileio.c (Fwrite_region_internal):
5136         (Fset_visited_file_modtime):
5137         * keymap.c (event_matches_key_specifier_p):
5138         Initialize GCPROed variable.
5139
5140         * menubar-x.c (command_builder_find_menu_accelerator):
5141         Initialize before use.
5142
5143 2000-11-23  Andy Piper  <andy@xemacs.org>
5144
5145         * unexcw.c (unexec): make the resulting executable executable.
5146
5147 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5148
5149         * doc.c (get_doc_string):
5150         Use size_t, not int, for result of XSTRING_LENGTH.
5151
5152         * cmds.c (Fdelete_char):
5153         * cmds.c (Fpoint_at_eol):
5154         * cmds.c (Fself_insert_command):
5155         Use EMACS_INT, not int, for result of XINT.
5156         Someday, someone will want to insert more than 2**31 identical characters.
5157
5158         * cmds.c (Fdelete_char):
5159         * cmds.c (Fdelete_backward_char):
5160         * syntax.c (Fforward_word):
5161         * syntax.c (Fforward_comment):
5162         Make COUNT argument optional, for consistency with forward-char et al.
5163
5164 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5165
5166         * lisp.h:
5167         * print.c (long_to_string):
5168         Return a useful value: the pointer at end of data written.
5169
5170         * doprnt.c:
5171         Use `static const char * const' for constant strings.
5172         (union printf_arg): Delete `i', `ui' members.
5173         (get_doprnt_args):
5174         (emacs_doprnt_1):
5175         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5176         Do all printf-ing via the `l' specifier.
5177         Use EMACS_INT instead of int.
5178         Optimize.
5179
5180 2000-11-20  Didier Verna  <didier@xemacs.org>
5181
5182         * faces.c (update_face_cachel_data): don't frob the background
5183         pixmap when the window is being created. The face is needed but
5184         does not exist yet.
5185
5186 2000-11-20  Andy Piper  <andy@xemacs.org>
5187
5188         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5189         messing with a debug environment.
5190
5191 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5192
5193         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5194
5195 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5196
5197         * casetab.c (Fcase_table_p): Fix compile error and crash.
5198
5199 2000-11-18  Philip Aston  <philipa@mail.com>
5200
5201         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5202
5203 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5204
5205         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5206         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5207
5208 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5209
5210         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5211         * unexelf.c: Use HAVE_ELF_H.
5212         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5213         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5214         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5215         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5216         for testing.
5217         So this is an unexelfsgi.c from a different line of development.
5218
5219 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5220
5221         * regex.c (RE_TR_ASCII): New function.
5222         (RE_TRANSLATE): Call it.
5223
5224 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5225
5226         * buffer.h (TRT_TABLE_OF): Remove assert.
5227         (IN_TRT_TABLE_DOMAIN): Removed.
5228
5229 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5230
5231         * free-hook.c (log_gcpro):
5232         (show_gcprohist): Add support for GCPRO5.
5233
5234 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5235
5236         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5237
5238 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5239
5240         * symeval.h: Declare flush_all_buffer_local_cache.
5241
5242         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5243         (flush_buffer_local_cache): Added.
5244         (flush_all_buffer_local_cache): Added.
5245
5246         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5247
5248         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5249         (pdump_dump_data): Ditto.
5250         (pdump_reloc_one): Ditto.
5251         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5252         before dumping.
5253
5254
5255 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5256
5257         * buffer.c: Remove if 0'ed entry.
5258         * buffer.h: Rewrite TRT to use char-table.
5259         * bufslots.h: Remove mirror tables.
5260         * casetab.c: Remove mirror tables.
5261         (CASE_TABLE_P): New macro.
5262         (Fcase_table_p): Element of a case table is string or char-table.
5263         (make_mirror_trt_table): Removed.
5264         (set_case_table): Setup char-table from strings for backward
5265         compatibility.
5266         * dired.c (Fdirectory_files):
5267         * dired-msw.c: (mswindows_get_files):
5268         * lisp.h: Change prototype of re_pattern_buffer.
5269         * regex.c: (RE_TRANSLATE): New macro.
5270         (TRANSLATE_P): Ditto.
5271         Change translate to type RE_TRANSLATE_TYPE.
5272         * regex.h: Define RE_TRANSLATE_TYPE
5273         * search.c (TRANSLATE): New macro.
5274         (TRANSLATE_ASCII): New macro.
5275         Translate table is changed to Lisp_Object.
5276         (signal_failure): Inhibit return.
5277
5278 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5279
5280         * device-msw.c:
5281         * eldap.c:
5282         * event-Xt.c:
5283         * event-stream.c:
5284         * print.c:
5285         Do UNGCPRO before return.
5286
5287 2000-11-14  Martin Buchholz <martin@xemacs.org>
5288
5289         * XEmacs 21.2.37 is released.
5290
5291 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5292
5293         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5294         Add comments about discarded return value.
5295
5296 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5297
5298         * callint.c:
5299         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5300
5301 2000-10-27  Andy Piper  <andy@xemacs.org>
5302
5303         * gutter.c (Fset_default_gutter_position): default left and right
5304         gutters to visible.
5305         (calculate_gutter_size): calculate resonable heuristic for left
5306         and right gutter sizes.
5307         (specifier_vars_of_gutter): change left and right gutter sizes to
5308         autodetect.
5309         (calculate_gutter_size_from_display_lines): new function.
5310         (output_gutter): check for resizing on left and right gutters.
5311         (clear_gutter): don't special case top and left gutters.
5312         (specifier_vars_of_gutter): use new signature for
5313         set_specifier_caching.
5314
5315         * glyphs-x.c (x_redisplay_widget): spelling fix.
5316         * glyphs.c (specifier_vars_of_glyphs):
5317         * menubar.c (specifier_vars_of_menubar):
5318         * redisplay.c (specifier_vars_of_redisplay):
5319         * toolbar.c (specifier_vars_of_toolbar):
5320         * window.c (specifier_vars_of_window):
5321         * scrollbar.c (specifier_vars_of_scrollbar):
5322         (complex_vars_of_scrollbar): use new signature for
5323         set_specifier_caching.
5324
5325         * specifier.c (set_specifier_caching): include recompute flag.
5326         (recompute_one_cached_specifier_in_window): always recompute if
5327         flag set.
5328         (recompute_one_cached_specifier_in_frame): ditto.
5329
5330         * specifier.h (struct specifier_caching): add recompute flag.
5331
5332 2000-10-24  Andy Piper  <andy@xemacs.org>
5333
5334         * unexcw.c (copy_executable_and_dump_data_section): add new
5335         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5336         5.0 happy.
5337
5338 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5339
5340         * console-x.h (x_device): New member modifier_release_time.
5341         * event-Xt.c (x_handle_sticky_modifiers):
5342         Bound interval modifier keys are sticky.
5343         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5344         * events.h: extern it.
5345
5346 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5347
5348         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5349
5350 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5351
5352         * event-stream.c (execute_command_event): Preserve current_events
5353         and the like when event is misc-user-event.
5354         Inhibit quit during the call to maybe_echo_keys.
5355
5356 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5357
5358         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5359         symlink when buffer is killed.
5360         (inhibit_clash_detection): New variable.
5361
5362 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5363
5364         * console.c (Fset_input_method): Trigger redisplay on tty.
5365
5366 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5367
5368         * process.c (Fprocess_status): Revert to previous behavior:
5369         (process-status "nosuchprocess") ==> nil
5370
5371 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5372
5373         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5374         Work around another GCC 2.95.2 optimizer bug.
5375
5376 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5377
5378         * process.c (Fget_process): Use LIST_LOOP_2.
5379         (kill_buffer_processes): Use LIST_LOOP_2.
5380
5381         * minibuf.c (Fall_completions):
5382         Delete old non-functional code for FSF fourth argument.
5383
5384         * frame.c (frame_matches_frame_spec):
5385         Renamed from `frame_matches_frametype'.  Update all callers.
5386         (device_matches_device_spec):
5387         Renamed from 'device_matches_console_spec'.  Update all callers.
5388
5389         * doc.c (Fsubstitute_command_keys):
5390         Remove buffer overflow crash.  Small code cleanups.
5391
5392         * casetab.c (check_case_table): Simpler code.
5393
5394         * window.c (Freplace_buffer_in_windows):
5395         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5396         (and similar implementation) as Fdelete_windows_on.
5397         Update all callers.
5398
5399         * alloc.c (Fmake_list):
5400         * alloc.c (make_vector):
5401         * alloc.c (Fmake_vector):
5402         * alloc.c (make_bit_vector):
5403         * alloc.c (Fmake_bit_vector):
5404         * alloc.c (Fbit_vector):
5405         * alloc.c (Fmake_string):
5406         * alloc.c (Fpurecopy):
5407         * alloc.c (Fmemory_limit):
5408         * buffer.c:
5409         * buffer.c (Fget_buffer):
5410         * buffer.c (Fkill_buffer):
5411         * buffer.c (complex_vars_of_buffer):
5412         * bytecode.c (Fcompiled_function_stack_depth):
5413         * callint.c (Fprefix_numeric_value):
5414         * event-stream.c:
5415         * event-stream.c (Fread_key_sequence):
5416         * casetab.c:
5417         * casetab.c (Fcase_table_p):
5418         * casetab.c (check_case_table):
5419         * casetab.c (Fset_case_table):
5420         * casetab.c (Fset_standard_case_table):
5421         * chartab.c:
5422         * chartab.c (Fchar_table_type):
5423         * chartab.c (Freset_char_table):
5424         * chartab.c (Fget_char_table):
5425         * chartab.c (Fget_range_char_table):
5426         * chartab.c (Fput_char_table):
5427         * chartab.c (Fmap_char_table):
5428         * chartab.c (Fcategory_table_p):
5429         * chartab.c (Fcheck_category_at):
5430         * chartab.c (Fchar_in_category_p):
5431         * chartab.c (Fcategory_table):
5432         * chartab.c (Fcopy_category_table):
5433         * chartab.c (Fset_category_table):
5434         * chartab.c (Fcategory_designator_p):
5435         * chartab.c (Fcategory_table_value_p):
5436         * cmds.c (Fdelete_char):
5437         * cmds.c (Fdelete_backward_char):
5438         * cmds.c (Fself_insert_command):
5439         * cmds.c (Fself_insert_internal):
5440         * console.c (Fvalid_console_type_p):
5441         * console.c (Fcdfw_console):
5442         * console.c (Fconsole_type):
5443         * console.c (Fconsole_name):
5444         * console.c (Fconsole_device_list):
5445         * console.c (Fconsole_on_window_system_p):
5446         * data.c:
5447         * data.c (Feq):
5448         * data.c (Fold_eq):
5449         * data.c (Fsubr_interactive):
5450         * data.c (Fchar_to_int):
5451         * data.c (Fint_to_char):
5452         * data.c (Fsetcar):
5453         * data.c (Fsetcdr):
5454         * data.c (Fnumber_to_string):
5455         * data.c (Fstring_to_number):
5456         * data.c (Frem):
5457         * database.c (mark_database):
5458         * database.c (finalize_database):
5459         * database.c (Fdatabase_live_p):
5460         * database.c (Fdatabasep):
5461         * device-x.c (Fx_get_resource):
5462         * device.c (Fdfw_device):
5463         * dired.c:
5464         * dired.c (Ffile_name_completion):
5465         * dired.c (Ffile_name_all_completions):
5466         * dired.c (Fuser_name_completion):
5467         * dired.c (Fuser_name_completion_1):
5468         * dired.c (Fuser_name_all_completions):
5469         * doc.c (Fdocumentation):
5470         * doc.c (Fdocumentation_property):
5471         * doc.c (Fsubstitute_command_keys):
5472         * editfns.c:
5473         * editfns.c (Fchar_to_string):
5474         * editfns.c (Fstring_to_char):
5475         * editfns.c (Ftemp_directory):
5476         * editfns.c (Finsert_char):
5477         * editfns.c (Fbuffer_substring_no_properties):
5478         * editfns.c (Fnarrow_to_region):
5479         * editfns.c (Fchar_equal):
5480         * editfns.c (Fchar_Equal):
5481         * editfns.c (Ftranspose_regions):
5482         * emacs.c (Fdump_emacs):
5483         * eval.c (Fthrow):
5484         * eval.c (Fcommand_execute):
5485         * eval.c (Fautoload):
5486         * eval.c (Fbacktrace):
5487         * eval.c (Fbacktrace_frame):
5488         * events.c:
5489         * events.c (Fcopy_event):
5490         * events.c (Fcharacter_to_event):
5491         * events.c (Fevent_button):
5492         * events.c (Fevent_process):
5493         * extents.c:
5494         * extents.c (Fnext_extent_change):
5495         * extents.c (Fextent_property):
5496         * faces.c (Ffacep):
5497         * faces.c (Fmake_face):
5498         * file-coding.c:
5499         * file-coding.c (Fencode_shift_jis_char):
5500         * file-coding.c (Fencode_big5_char):
5501         * fileio.c (Ffile_name_directory):
5502         * fileio.c (Ffile_name_nondirectory):
5503         * fileio.c (Ffile_name_as_directory):
5504         * fileio.c (Fdirectory_file_name):
5505         * fileio.c (Ffile_truename):
5506         * fileio.c (Fsubstitute_in_file_name):
5507         * fileio.c (Ffile_modes):
5508         * fileio.c (Fset_file_modes):
5509         * fileio.c (Fset_default_file_modes):
5510         * fileio.c (Fverify_visited_file_modtime):
5511         * floatfns.c (Facos):
5512         * floatfns.c (Fasin):
5513         * floatfns.c (Fatan):
5514         * floatfns.c (Fcos):
5515         * floatfns.c (Fsin):
5516         * floatfns.c (Ftan):
5517         * floatfns.c (Fbessel_j0):
5518         * floatfns.c (Fbessel_j1):
5519         * floatfns.c (Fbessel_jn):
5520         * floatfns.c (Fbessel_y0):
5521         * floatfns.c (Fbessel_y1):
5522         * floatfns.c (Fbessel_yn):
5523         * floatfns.c (Ferf):
5524         * floatfns.c (Ferfc):
5525         * floatfns.c (Flog_gamma):
5526         * floatfns.c (Fexp):
5527         * floatfns.c (Fexpt):
5528         * floatfns.c (Flog):
5529         * floatfns.c (Flog10):
5530         * floatfns.c (Fsqrt):
5531         * floatfns.c (Fcube_root):
5532         * floatfns.c (Facosh):
5533         * floatfns.c (Fasinh):
5534         * floatfns.c (Fatanh):
5535         * floatfns.c (Fcosh):
5536         * floatfns.c (Fsinh):
5537         * floatfns.c (Ftanh):
5538         * floatfns.c (Fabs):
5539         * floatfns.c (Ffloat):
5540         * floatfns.c (Flogb):
5541         * floatfns.c (Fceiling):
5542         * floatfns.c (Ffloor):
5543         * floatfns.c (Fround):
5544         * floatfns.c (Ftruncate):
5545         * floatfns.c (Ffceiling):
5546         * floatfns.c (Fffloor):
5547         * floatfns.c (Ffround):
5548         * floatfns.c (Fftruncate):
5549         * fns.c (Fstring_equal):
5550         * fns.c (Fstring_lessp):
5551         * fns.c (concat2):
5552         * fns.c (concat3):
5553         * fns.c (vconcat2):
5554         * fns.c (vconcat3):
5555         * fns.c (Fsubstring):
5556         * fns.c (Fassoc):
5557         * fns.c (Fold_assoc):
5558         * fns.c (assoc_no_quit):
5559         * fns.c (Fassq):
5560         * fns.c (Fold_assq):
5561         * fns.c (assq_no_quit):
5562         * fns.c (Frassoc):
5563         * fns.c (Fold_rassoc):
5564         * fns.c (Frassq):
5565         * fns.c (Fold_rassq):
5566         * fns.c (rassq_no_quit):
5567         * fns.c (Fremassoc):
5568         * fns.c (remassoc_no_quit):
5569         * fns.c (Fremassq):
5570         * fns.c (remassq_no_quit):
5571         * fns.c (Fremrassoc):
5572         * fns.c (Fremrassq):
5573         * fns.c (remrassq_no_quit):
5574         * fns.c (Fsort):
5575         * fns.c (Fplist_get):
5576         * fns.c (Fplist_put):
5577         * fns.c (Fplist_remprop):
5578         * fns.c (Fplist_member):
5579         * fns.c (Flax_plist_get):
5580         * fns.c (Flax_plist_put):
5581         * fns.c (Flax_plist_remprop):
5582         * fns.c (Flax_plist_member):
5583         * fns.c (Fequal):
5584         * fns.c (Fold_equal):
5585         * fns.c (Frequire):
5586         * fns.c (Fbase64_encode_region):
5587         * fns.c (Fbase64_encode_string):
5588         * fns.c (Fbase64_decode_region):
5589         * frame.c:
5590         * frame.c (frame_matches_frame_spec):
5591         * frame.c (device_matches_device_spec):
5592         * frame.c (next_frame):
5593         * frame.c (previous_frame):
5594         * frame.c (Fnext_frame):
5595         * frame.c (Fprevious_frame):
5596         * frame.c (Fframe_property):
5597         * frame.c (Fset_frame_height):
5598         * frame.c (Fset_frame_size):
5599         * frame.h:
5600         * glyphs.c:
5601         * glyphs.c (if):
5602         * glyphs.c (decode_error_behavior_flag):
5603         * glyphs.c (Fmake_image_instance):
5604         * indent.c (Findent_to):
5605         * intl.c (Fignore_defer_gettext):
5606         * keymap.c (Fkeymapp):
5607         * keymap.c (Flookup_key):
5608         * lread.c:
5609         * lread.c (Fload_internal):
5610         * lread.c (Feval_buffer):
5611         * lread.c (Feval_region):
5612         * macros.c (Fexecute_kbd_macro):
5613         * marker.c (set_marker_internal):
5614         * marker.c (Fset_marker):
5615         * marker.c (set_marker_restricted):
5616         * marker.c (Fcopy_marker):
5617         * marker.c (noseeum_copy_marker):
5618         * menubar.c:
5619         * menubar.c (Fpopup_menu):
5620         * minibuf.c:
5621         * mule-charset.c (Fcharset_name):
5622         * mule-charset.c (Fchar_charset):
5623         * mule-charset.c (Fchar_octet):
5624         * mule-charset.c (Fsplit_char):
5625         * mule-wnnfns.c (Fwnn_open):
5626         * mule-wnnfns.c (Fwnn_dict_comment):
5627         * mule-wnnfns.c (Fwnn_quit_henkan):
5628         * mule-wnnfns.c (Fwnn_word_toroku):
5629         * mule-wnnfns.c (Fwnn_word_sakujo):
5630         * mule-wnnfns.c (Fwnn_word_use):
5631         * mule-wnnfns.c (Fwnn_hindo_set):
5632         * objects.c:
5633         * objects.c (Fmake_color_instance):
5634         * objects.c (Fmake_font_instance):
5635         * print.c (Fwrite_char):
5636         * process.c:
5637         * process.c (mark_process):
5638         * process.c (print_process):
5639         * process.c (get_process_from_usid):
5640         * process.c (Fprocessp):
5641         * process.c (Fprocess_live_p):
5642         * process.c (Fget_process):
5643         * process.c (Fget_buffer_process):
5644         * process.c (get_process):
5645         * process.c (Fprocess_id):
5646         * process.c (Fprocess_name):
5647         * process.c (Fprocess_command):
5648         * process.c (init_process_io_handles):
5649         * process.c (start_process_unwind):
5650         * process.c (Fstart_process_internal):
5651         * process.c (Fopen_multicast_group_internal):
5652         * process.c (Fset_process_window_size):
5653         * process.c (read_process_output):
5654         * process.c (send_process):
5655         * process.c (Fprocess_tty_name):
5656         * process.c (Fset_process_buffer):
5657         * process.c (Fprocess_buffer):
5658         * process.c (Fprocess_mark):
5659         * process.c (set_process_filter):
5660         * process.c (Fset_process_filter):
5661         * process.c (Fprocess_filter):
5662         * process.c (Fprocess_send_region):
5663         * process.c (Fprocess_send_string):
5664         * process.c (exec_sentinel):
5665         * process.c (Fset_process_sentinel):
5666         * process.c (Fprocess_sentinel):
5667         * process.c (status_notify):
5668         * process.c (Fprocess_status):
5669         * process.c (Fprocess_exit_status):
5670         * process.c (process_send_signal):
5671         * process.c (Fprocess_send_eof):
5672         * process.c (deactivate_process):
5673         * process.c (remove_process):
5674         * process.c (Fdelete_process):
5675         * process.c (kill_buffer_processes):
5676         * process.c (Fprocess_kill_without_query):
5677         * process.c (Fprocess_kill_without_query_p):
5678         * rangetab.c:
5679         * rangetab.c (Fget_range_table):
5680         * rangetab.c (Fput_range_table):
5681         * rangetab.c (Fremove_range_table):
5682         * rangetab.c (Fclear_range_table):
5683         * search.c:
5684         * search.c (Fskip_chars_forward):
5685         * search.c (Fskip_chars_backward):
5686         * search.c (Fskip_syntax_forward):
5687         * search.c (Fskip_syntax_backward):
5688         * search.c (search_command):
5689         * search.c (Freplace_match):
5690         * search.c (Fregexp_quote):
5691         * select.c (Fown_selection_internal):
5692         * select.c (Fselection_owner_p):
5693         * select.c (Fselection_exists_p):
5694         * select.c (Fget_selection_internal):
5695         * specifier.c:
5696         * symbols.c:
5697         * symbols.c (Fintern):
5698         * symbols.c (Fintern_soft):
5699         * symbols.c (Funintern):
5700         * symbols.c (Fapropos_internal):
5701         * symbols.c (Fset_default):
5702         * syntax.c:
5703         * syntax.c (Fsyntax_table_p):
5704         * syntax.c (Fcopy_syntax_table):
5705         * syntax.c (Fset_syntax_table):
5706         * syntax.c (Fchar_syntax):
5707         * syntax.c (syntax_match):
5708         * syntax.c (Fmatching_paren):
5709         * syntax.c (Fforward_word):
5710         * syntax.c (scan_lists):
5711         * syntax.c (Fscan_lists):
5712         * syntax.c (Fscan_sexps):
5713         * syntax.c (Fparse_partial_sexp):
5714         * toolbar.c (Fcheck_toolbar_button_syntax):
5715         * tooltalk.doc:
5716         * window.c:
5717         * window.c (Fwindowp):
5718         * window.c (Fwindow_live_p):
5719         * window.c (Fwindow_point):
5720         * window.c (Fdelete_window):
5721         * window.c (Fnext_window):
5722         * window.c (Fprevious_window):
5723         * window.c (Fother_window):
5724         * window.c (window_loop):
5725         * window.c (Fget_lru_window):
5726         * window.c (Fsplit_window):
5727         * window.c (Fenlarge_window):
5728         * window.c (Fenlarge_window_pixels):
5729         * window.c (Fshrink_window):
5730         * window.c (Fshrink_window_pixels):
5731         * window.c (change_window_height):
5732         * window.c (Fwindow_configuration_p):
5733         * window.c (Fcurrent_window_configuration):
5734         * window.h:
5735         * casefiddle.c (casify_object):
5736         * casefiddle.c (Fupcase):
5737         * casefiddle.c (Fdowncase):
5738         * casefiddle.c (Fcapitalize):
5739         * casefiddle.c (Fupcase_initials):
5740         * casefiddle.c (casify_region_internal):
5741         * casefiddle.c (casify_region):
5742         * casefiddle.c (Fupcase_region):
5743         * casefiddle.c (Fdowncase_region):
5744         * casefiddle.c (Fcapitalize_region):
5745         * casefiddle.c (Fupcase_initials_region):
5746         * casefiddle.c (Fupcase_word):
5747         * casefiddle.c (Fdowncase_word):
5748         * casefiddle.c (Fcapitalize_word):
5749         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5750         Replace 0 with '\0' when working with bytes.
5751         Replace initial "(" with "\(" in docstrings.
5752
5753 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5754
5755         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5756
5757         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5758
5759 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5760
5761         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5762
5763 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5764
5765         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5766         correctly.
5767
5768 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5769
5770         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5771         (inhibit_auto_save_session): New variable.
5772         (vars_of_fileio): Declare and initialize them.
5773         * fileio.c (Fdo_auto_save): Don't create session file if
5774         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5775
5776 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5777
5778         * sgiplay.c (play_internal): C++ compilability.
5779         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5780         * callproc.c (Fold_call_process_internal):
5781         Remove unused vars `env', `first'.
5782         * scrollbar.c (update_scrollbar_instance):
5783         #### unused var `current_window'.
5784         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5785         etc. within #ifdef NOT_YET.
5786         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5787         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5788         * specifier.c (specifier_instance):
5789         #### unused var `tag'.
5790         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5791
5792 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5793
5794         * fns.c (Fbutlast):
5795         * fns.c (list_sort):
5796         * fns.c (Ffillarray):
5797         * fns.c (bytecode_nconc2):
5798         * fns.c (Fnconc):
5799         * fns.c (mapcar1):
5800         * fns.c (Fmapconcat):
5801         Be pedantically 64-bit correct.  For the time when someone will
5802         want to have a list with length > 2**32.
5803
5804         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5805         Work around MIPSpro compiler bug.
5806
5807         * process-unix.c (unix_kill_child_process): Add snarky comment.
5808         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5809
5810         * config.h.in: Oops, _getpt ==> _getpty
5811
5812 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5813
5814         * config.h.in:
5815         * regex.c:
5816         Use void*, not char*, as return type of alloca().
5817
5818         * alloc.c (free_marker): Side effect inside assert expression!
5819
5820 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5821
5822         * mule-charset.c (Fset_charset_ccl_program): To check
5823         if the given ccl program is valid, use setup_ccl_program()
5824         instead of CHECK_VECTOR().
5825         (Fmake_charset): Likewise.
5826
5827 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5828
5829         * faces.c (get_extent_fragment_face_cache_index):
5830         Fix cachel.merged_faces memory leak.
5831
5832 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5833
5834         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5835         Reset MSB of octets obtained by DECODE_SJIS
5836         because of the incompatibility with Emacs.
5837         (ccl_driver)<CCL_ENCODE_SJIS>:
5838         Set MSB of octets before passing them to
5839         ENCODE_SJIS because of the incompatibility
5840         with Emacs.
5841
5842 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5843
5844         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5845         (DECLARE_LRECORD): Undo the last change.
5846         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5847
5848 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5849
5850         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5851         the implementation to lrecord_implementations_table.
5852
5853 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5854
5855         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5856         initial value of `lrecord_type_##c_name' and
5857         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5858         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5859         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5860         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5861         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5862
5863 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5864
5865         * miscplay.c (sndcnv8S_2mono):
5866         (sndcnv2monounsigned):
5867         (sndcnvULaw_2linear):
5868         (sndcnv16swap):
5869         Remove implementation-defined behavior.
5870
5871 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5872
5873         * input-method-xlib.c: Warning suppression.
5874
5875 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5876
5877         * mule-ccl.c: Sync up with Emacs 21.0.90.
5878         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5879         Do nothing.
5880         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5881         Likewise.
5882         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5883         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5884         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5885         leading char belongs to official 2-dimensional charset.
5886         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5887         write the given character as is.  Otherwise,
5888         if it is a multibyte char, convert it by
5889         non_ascii_set_charptr_emchar, then write it.
5890         (CCL_WRITE_STRING): Likewise.
5891         (ccl_get_compiled_code): New function.
5892         (setup_ccl_program): When ccl_prog is invalid,
5893         return -1.
5894         (Fregister_code_conversion_map): New function.
5895         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5896
5897         * mule-ccl.h: Sync up with Emacs 21.0.90.
5898         (Fregister_ccl_program): export it.
5899
5900         * redisplay-msw.c (separate_textual_runs):
5901         If ccl program is not valid, don't do ccl conversion.
5902
5903         * redisplay-x.c (separate_textual_runs): Ditto.
5904
5905         * file-coding.c (Fmake_coding_system):
5906         When type is ccl and value is vector, register it
5907         with a proper symbol.  And checks whether the
5908         given ccl program is valid.
5909         (mule_decode): When calling ccl_driver, if src indicates
5910         NULL pointer, set an empty string instead.
5911         (mule_encode): Likewise.
5912
5913 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5914
5915         The following large batch of changes gets us back to a state of
5916         C++ compilability.  Extbyte is now a char, which means that
5917         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5918
5919         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5920
5921         * sound.c (Fplay_sound): Type correctness.
5922
5923         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5924         (x_get_window_property): Type correctness.
5925         (receive_incremental_selection): unsigned char ==> Extbyte
5926         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5927         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5928         (Fx_store_cutbuffer_internal): Type correctness.
5929
5930         * process-unix.c (try_to_initialize_subtty): Type correctness.
5931
5932         * objects-x.c (x_print_color_instance): Type correctness.
5933         (x_print_font_instance): Type correctness.
5934         (x_list_fonts): SExtbyte ==> Extbyte.
5935         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5936         (x_find_charset_font): SExtbyte ==> Extbyte.
5937         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5938         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5939         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5940         Use bufbyte_strcmp.
5941
5942         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5943         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5944         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5945         (BYTE_C0_P): Use bit ops for char-signedness safety.
5946         (BYTE_C1_P): Use bit ops for char-signedness safety.
5947         (CHARSET_BY_LEADING_BYTE):
5948         (CHARSET_BY_ATTRIBUTES):
5949         Always use inline function.
5950         Use type_checking_assert.
5951         Hide chlook.
5952
5953         * mule-charset.c (non_ascii_charptr_copy_char):
5954         Modify to work with both ASCII and non-ASCII characters.
5955         Improve docs and variable names.
5956         Replace over-clever fall-through switch with a simple loop.
5957         (Lstream_get_emchar_1):
5958         Replace over-clever fall-through switch with a simple loop.
5959
5960         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5961         Warning suppression.
5962
5963         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5964         the return value of Lstream_getc, which could be EOF as well.
5965
5966         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5967
5968         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5969         APIs can be used on Extbytes without casts.  Risky!
5970         (SExtbyte): Remove.
5971         (UExtbyte): Remove.
5972
5973         * input-method-xlib.c (XIM_init_device):
5974         Use Xlib.h instead of IntrinsicP.h.
5975         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5976         which will break in X11R7.
5977         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5978         to call XRegisterIMInstantiateCallback with correct types.
5979
5980         * gui-x.c (button_item_to_widget_value): Type correctness.
5981
5982         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5983
5984         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5985         (xbm_instantiate_1): Type correctness.
5986         (BUILD_GLYPH_INST):  Type correctness.
5987
5988         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5989
5990         * file-coding.c:
5991         (decode_coding_sjis):
5992         (decode_coding_big5):
5993         (decode_coding_ucs4):
5994         (decode_coding_utf8):
5995         (decode_coding_iso2022):
5996         (decode_coding_no_conversion):
5997         Make all decoding functions take an Extbyte * arg.
5998         (encode_coding_sjis):
5999         (encode_coding_big5):
6000         (encode_coding_ucs4):
6001         (encode_coding_utf8):
6002         (encode_coding_iso2022):
6003         (encode_coding_no_conversion):
6004         Make all encoding functions take a Bufbyte * arg.
6005         Use size_t instead of unsigned int for memory sizes.
6006         Only cast to unsigned char whenever dereferencing Extbyte *.
6007
6008         * doc.c (unparesseuxify_doc_string): Type correctness.
6009
6010         * console-x.c (split_up_display_spec):
6011         Rewrite without using details of internal string representation.
6012         (x_semi_canonicalize_device_connection): Type correctness.
6013
6014         * config.h.in:
6015         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6016         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6017         (HAVE_XFREE386): Removed.
6018
6019         * buffer.h (DEC_CHARPTR): `const' correctness.
6020         (bufbyte_strcmp): New.
6021         (bufbyte_memcmp): New.
6022
6023         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6024
6025         * buffer.h (XCHAR_OR_CHAR_INT):
6026         Always use inline function.
6027         Remove redundant type checking assert() - XINT will abort quite nicely.
6028
6029 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6030
6031         * search.c (Freplace_match): Set newtext to an empty string.
6032
6033 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6034
6035         * s/decosf1-3.h: Remove #include of stropts.h
6036         * s/ptx.h: Remove #include of stropts.h
6037         * s/usg5-4.h: Remove #include of stropts.h
6038         * sysproc.h:
6039         * config.h.in:
6040         Use stropts.h, not sys/stropts.h.
6041         Use strtio.h, not sys/strtio.h.
6042
6043 2000-10-04  Martin Buchholz <martin@xemacs.org>
6044
6045         * XEmacs 21.2.36 is released.
6046
6047 2000-09-21  Andy Piper  <andy@xemacs.org>
6048
6049         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6050         changes still involve copying the widget tree.
6051         (update_widget_face): make sure a change is register in the widget
6052         tree. Call update_tab_widget_face appropriately.
6053         (update_tab_widget_face): ditto.
6054         (x_tab_control_redisplay): make sure non-structural changes still
6055         involve copying the widget tree.
6056
6057 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6058
6059         * lread.c (locate_file): Check the path element is non-nil.
6060
6061 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6062
6063         * lisp.h: Warning suppression for SCO compilers.
6064
6065         * redisplay-tty.c (reset_tty_modes): Fix crash.
6066         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6067
6068 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6069
6070         Big signal/process handling overhaul.  Bugs fixed:
6071         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6072         M-x comint-kill-subjob should work for both values nil and t of
6073         process-connection-type. It was broken on most platforms.
6074         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6075         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6076         * process-unix.c: Signal/Process handling overhaul.
6077         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6078         (allocate_pty): Use all available modern methods of allocating
6079         ptys, falling back to old style BSD allocation as a last resort.
6080         Use allegedly more secure Unix98 pty allocation by default.
6081         (allocate_pty_the_old_fashioned_way): New. the last resort.
6082         (unix_create_process): Push ptem, ldterm, ttcompat where
6083         available.  Autoconfiscate.
6084         (try_to_initialize_subtty): New.
6085         (unix_kill_child_process): Proper signal handling for ptys on most
6086         platforms, using special knowledge of AIX, BSD, etc...
6087         (unix_create_process): Always disconnect_controlling_terminal() for
6088         subprocesses, whether using ptys or not.
6089         * process.h: Remove old getpt-dependent PTY code.
6090         * process.c (Fprocess_send_signal): New, obvious generic function.
6091         (decode_signal): New.
6092         (Finterrupt_process):
6093         (Fkill_process):
6094         (Fquit_process):
6095         (Fstop_process):
6096         (Fcontinue_process):
6097         (Fsignal_process): Use decode_signal.
6098         (process_send_signal):
6099         Many docstring corrections.
6100         Allow any signal to be sent to a process object.
6101         * config.h.in: Add symbols for big signal/process overhaul.
6102         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6103         * sysproc.h: Include process-related headers, where available:
6104         sys/stropts.h sys/strtio.h pty.h libutil.h
6105         * s/irix4-0.h:
6106         * s/irix5-0.h:
6107         * s/cygwin32.h:
6108         * s/gnu.h:
6109         * s/linux.h:
6110         * s/hpux.h:
6111         * s/aix3-1.h:
6112         Remove old S&M pty stuff.
6113         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6114         * systty.h: Simplify cpp hackery, improve comments.
6115         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6116
6117         * editfns.c (Fformat_time_string):
6118         Be a little more paranoid with the return value of ctime.
6119
6120         * fileio.c (check_executable):
6121         (check_writable):
6122         Use symbolic constants X_OK, W_OK.
6123
6124         * console-x.c (split_up_display_spec): Fix a warning.
6125
6126 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6127
6128         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6129         * ntproc.c (sys_spawnve): make_string ==> build_string
6130         Small clarity improvements.
6131
6132 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6133
6134         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6135
6136         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6137
6138         * config.h.in (HAVE_STRCASECMP): Remove.
6139
6140 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6141
6142         * redisplay-output.c (redisplay_output_pixmap):
6143         Cleaner and possibly more 64-bit correct code.
6144
6145 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6146
6147         * dumper.c (pdump_load_finish): move restoration of
6148         `noninteractive1' to emacs.c (main_1).
6149         * emacs.c (main_1): protect LISP-visible command-line flags
6150         from pdump_load().
6151
6152 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6153
6154         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6155         DUMP_TARGET instead of literal program names.
6156
6157 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6158
6159         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6160
6161 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6162
6163         * *: Spelling mega-patch
6164
6165 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6166
6167         * fns.c (bad_bad_turtle):
6168         Delete "Eek!" comment, since we fixed the bug to which it refers.
6169
6170 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6171
6172         * alloca.c: Replace REGISTER with register.
6173
6174 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6175
6176         * file-coding.c (ucs_to_char): Use countof.
6177
6178 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6179
6180         * file-coding.c: (ucs_to_char):
6181         (complex_vars_of_file_coding):
6182         Use countof instead of sizeof.
6183         Use CHECK_NATNUM instead of CHECK_INT.
6184
6185         * sysdep.c (strcasecmp): Remove.
6186         * device-x.c (ascii_strcasecmp): New.
6187         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6188         Avoid using non-standard non-portable strcasecmp.
6189
6190 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6191
6192         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6193         * font-lock.c: remove reference to emacsfns.h.
6194         * search.c: small doc improvement.
6195         * event-Xt.c: correct file names in comments.
6196         * console-x.h Correct file names in comments.
6197         * frame.c: Correct file names in comments.
6198         * event-stream.c: remove Energize from comments.
6199
6200 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6201
6202         * symeval.h (DEFERROR_STANDARD):
6203         (DEFERROR):
6204         (DEFSYMBOL):
6205         (DEFSYMBOL_NO_DUMP):
6206         (DEFSYMBOL_MULTIWORD_PREDICATE):
6207         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6208         (DEFKEYWORD):
6209         The construct &##name is not sensible C.
6210         Fixes compilation errors with Unixware native compiler.
6211
6212 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6213
6214         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6215         (next_frame_internal): Removed.  We now just have next_frame.
6216         (next_frame):
6217         Write a simpler and cleaner one-pass algorithm.
6218         Remove called_from_delete_device arg and #ifdefed-out code.
6219         (previous_frame):
6220         Renamed from prev_frame.  Update callers.
6221         Cleaned up to have an analogous implementation to next_frame.
6222         (other_visible_frames_internal): Remove the
6223         called_from_delete_device bogus arg, and hence, remove this
6224         function.  Just use other_visible_frames().
6225
6226         * window.c (Fnext_window):
6227         Prettify docstring.
6228         Since next_frame() is guaranteed to return a frame, remove check
6229         for nil inserted in previous patch.
6230         (Fprevious_window):
6231         Prettify docstring.
6232         Make code look more like Fnext_window.
6233         (window_loop):
6234         Respect the `console' arg when iterating through windows.
6235         Fixes bug: (get-buffer-window buffer t device) not respecting
6236         the `device' arg.
6237         This function needs more work, as others have pointed out.
6238
6239         * frame.h: Rename prev_frame to previous_frame.
6240         device_matches_console_spec no longer takes a `frame' arg.
6241
6242         * s/gnu.h:
6243         * s/linux.h:
6244         * s/hpux.h:
6245         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6246         From "Golubev I. N." <gin@mo.msk.ru>.
6247
6248         * make-src-depend: Fix typo.
6249
6250 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6251
6252         * window.c (Fnext_window):
6253         next_frame() might return nil, not a frame.
6254         Fixes this crash:
6255         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6256
6257         * frame.c (next_frame_internal):
6258         We've passed a frame if we've passed its device.
6259         Fixes this crash:
6260         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6261 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6262
6263 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6264
6265         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6266         Allow option to suppress accelerators in menu/dialog items.
6267         (populate_or_checksum_helper): Pass dialog title through above.
6268
6269 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6270
6271         * event-msw.c (mswindows_key_to_emacs_keysym):
6272         Add "pause" key, fix "menu" key.
6273
6274 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6275
6276         * eval.c (reinit_vars_of_eval):
6277         Increase max_lisp_eval_depth to 1000,
6278         required for thai-xtis.el to byte-compile under some circumstances.
6279
6280 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6281
6282         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6283         From Kenichi Handa.
6284
6285 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6286
6287         * make-src-depend: Make the generated Makefiles smaller.
6288
6289         * s/hpux.h (SETUP_SLAVE_PTY):
6290         Provide a %d in the format string for the errno argument.
6291
6292         * editfns.c (Ftemp_directory):
6293         Warning fix.
6294         Avoid buffer overrun on very long file name.
6295
6296         * input-method-xlib.c (XIM_init_device):
6297         6th parameter of XRegisterIMInstantiateCallback has different
6298         pointer types on different OSes, so simply cast to (void *).
6299
6300         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6301
6302         * sysdll.c (dll_open):
6303         shl_load will hang hard if passed a NULL filename.
6304         Simply return NULL for compatibility with dlopen.
6305         * sysdll.c: Conform to XEmacs coding standards.
6306
6307         * sysdep.c (get_pty_max_bytes):
6308         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6309
6310 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6311
6312         * tooltalk.c: Add #include <syssignal.h>
6313
6314 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6315
6316         * s/hpux.h: Don't use undefined function sigunblock().
6317
6318 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6319
6320         * config.h.in: Add HAVE_BALLOON_HELP.
6321         * emacs.c: Use HAVE_BALLOON_HELP.
6322         * Makefile.in.in (x_objs):
6323         Make Balloon Help conditional on finding shape.h.
6324
6325 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6326
6327         * syntax.c (regex_emacs_buffer_p): New variable.
6328         * syntax.h (regex_emacs_buffer_p): extern.
6329         * search.c (looking_at_1):
6330         (string_match_1):
6331         (fast_string_match):
6332         (search_buffer): Set regex_emacs_buffer_p.
6333         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6334         when before_dot, at_dot, after_dot.
6335
6336 2000-08-23  Andy Piper  <andy@xemacs.org>
6337
6338         * gui-x.c (popup_selection_callback): Only set action_occurred
6339         when we really have an image instance.
6340         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6341
6342 2000-08-23  Andy Piper  <andy@xemacs.org>
6343
6344         * gui-msw.c (mswindows_handle_gui_wm_command): set
6345         action_occurred.
6346         * gui-x.c (popup_selection_callback): ditto.
6347
6348         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6349         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6350         (struct Lisp_Image_Instance): add action_occurred flag.
6351
6352         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6353         (image_instance_changed): ditto.
6354         (reset_frame_subwindow_instance_cache): only unmap windows - do
6355         not remove them from the cache also.
6356
6357         * glyphs-widget.c (tab_control_update): better debug.
6358         (progress_gauge_update): ditto.
6359         (layout_update): ditto.
6360         (layout_instantiate): ditto.
6361         (tab_control_order_only_changed): cope with null pending items.
6362
6363         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6364         debug. Force selection of an item when an action occurred. Cope
6365         with null pending_items.
6366         (mswindows_progress_gauge_redisplay): better debug.
6367         * glyphs-x.c (x_tab_control_redisplay): ditto.
6368
6369         * redisplay.c (redisplay_frame): reset the frame cache if the
6370         frame is garbaged.
6371
6372         * window.c (Fset_window_configuration): potentially re-enable
6373         frame cache reset.
6374         (window_unmap_subwindows): need to finalize instances here since
6375         it is only used in mark_window_as_deleted.
6376
6377 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6378
6379         * nas.c (SndOpenDataForReading):
6380         nas.c (WaveOpenDataForReading):
6381         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6382         Somehow escaped from the 2000-08-14 patch.
6383
6384 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6385
6386         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6387         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6388
6389 2000-08-21  Andy Piper  <andy@xemacs.org>
6390
6391         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6392         window if it is not already displayed.
6393
6394         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6395         it is not already displayed.
6396
6397         * window.c (Fset_window_configuration): don't reset the frame
6398         cache.
6399
6400         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6401         instances from the frame cache if we are actually finalizing them.
6402         (reset_frame_subwindow_instance_cache): reset frame cache only
6403         after unmapping everything.
6404         (map_subwindow): set displayed flag after mapping.
6405
6406 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6407
6408         * data.c (indirect_function):
6409         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6410
6411         * eval.c (function_argcount):
6412         Use original function when signaling errors.
6413
6414 2000-08-18  Andy Piper  <andy@xemacs.org>
6415
6416         * frame.c (delete_frame_internal): use new
6417         free_frame_subwindow_instances name.
6418
6419         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6420         (add_tab_item): make return type correct.
6421         (mswindows_tab_control_instantiate): assert index of tab.
6422         (mswindows_tab_control_redisplay): Re-code to use
6423         gui_item_equal_sans_selected and gui_item_list_find_selected.
6424
6425         * glyphs-widget.c (tab_control_update): Correct comment.
6426
6427         * window.c (window_unmap_subwindows): use new
6428         unmap_subwindow_instance_cache_mapper.
6429         (window_unmap_subwindows_cache_mapper): deleted.
6430         (Fset_window_configuration): comparisons should now be with
6431         EQ. Preserve the subwindow instance cache across configuration
6432         changes.
6433         (allocate_window): ditto.
6434         (make_dummy_parent): ditto.
6435
6436         * glyphs.c (free_frame_subwindow_instances): rename from
6437         free_frame_subwindow_instance_cache. finalize all instances rather
6438         than just those in the display cache.
6439         (finalize_all_subwindow_instances): walk windows unmapping and
6440         finalizing subwindows.
6441         (unmap_subwindow_instance_cache_mapper): moved from
6442         window.c. Allow finalization as well as unmapping.
6443
6444         * gui.c (gui_item_list_find_selected): new function.
6445
6446         * gui.h (gui_item_list_find_selected): declare.
6447
6448         * glyphs-x.c (x_tab_control_redisplay): pick tab
6449         explicitly. Re-code to use gui_item_equal_sans_selected and
6450         gui_item_list_find_selected.
6451
6452         * glyphs-x.h: add lwlib-utils.h
6453
6454         * buffer.c (Frecord_buffer): undo previous change.
6455
6456 2000-08-09  Vin Shelton  <acs@xemacs.org>
6457
6458         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6459         possible.  Create temporary files more securely.  The patch was
6460         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6461         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6462         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6463         for details.
6464
6465 2000-08-07  Ben Wing  <ben@xemacs.org>
6466
6467         * getloadavg.c: remove duplicate (and windows-breaking)
6468         includes of fcntl.h and sys/file.h.
6469
6470         * nt.c: remove duplicate getloadavg() definition.
6471
6472         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6473         encodings.
6474
6475 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6476
6477         * eval.c (function_argcount): If function needs to be autoloaded
6478         actually use the loaded definition.
6479         GCPRO function.
6480
6481 2000-08-05  Ben Wing  <ben@xemacs.org>
6482
6483         * getloadavg.c: add prototype for getloadavg().  remove
6484         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6485         of the code).  remove duplicate header includes.
6486
6487         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6488
6489         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6490         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6491         useful load average.
6492
6493         * alloc.c (reinit_alloc_once_early): removed references to
6494         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6495         the lisp vars are the only things referencing the malloc_sbrk_*
6496         vars, and they were already if 0'd out.  these vars only exist
6497         in the older malloc.c, which is basically unused, and they're
6498         only for informational purposes.
6499
6500         * m\*.h: removed useless VIRT_ADDR_VARIES.
6501
6502         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6503
6504 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6505
6506         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6507         color if the image is a mono pixmap.
6508
6509 2000-07-30  Ben Wing  <ben@xemacs.org>
6510
6511         * Makefile.in.in (release):
6512         Remove stray @.
6513
6514         * buffer.c (directory_is_current_directory):
6515         * dired-msw.c (mswindows_get_files):
6516         * dired.c:
6517         * dired.c (Fdirectory_files):
6518         * dired.c (file_name_completion_stat):
6519         * dired.c (Ffile_attributes):
6520         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6521         preprocessor tricks, to avoid problems on some machines
6522         (e.g. SCO).
6523
6524         * callproc.c (egetenv): GC docs.
6525
6526         * console-msw.h:
6527         * console-msw.h (struct mswindows_dialog_id):
6528         * lrecord.h (lrecord_type):
6529         New object for use with MSW dialogs.
6530
6531         * console.h (struct console_methods):
6532         New enable/disable frame methods, for proper modal dialogs.
6533
6534         * device-msw.c (msprinter_default_printer): Fix to follow
6535         proper Mule conventions.
6536
6537         * device-msw.c:
6538         * device-msw.c (signal_open_printer_error):
6539         * device-msw.c (msprinter_init_device):
6540         * device-msw.c (ensure_not_printing):
6541         * device-msw.c (plist_get_margin):
6542         * device-msw.c (Fmsprinter_select_settings):
6543         * device-msw.c (finalize_devmode):
6544         * device-msw.c (Fmsprinter_settings_despecialize):
6545         * device-msw.c (signal_enum_priner_error):
6546         * extents.c (decode_extent):
6547         * extents.c (decode_map_extents_flags):
6548         * extents.c (decode_extent_at_flag):
6549         * extents.c (Fextent_at):
6550         * extents.c (Fextents_at):
6551         * extents.c (symbol_to_glyph_layout):
6552         [[[[2]]]] Use structured errors.
6553
6554         * dialog-msw.c:
6555         * dialog-msw.c (mswindows_is_dialog_msg):
6556         * dialog-msw.c (mark_mswindows_dialog_id):
6557         * dialog-msw.c (dialog_proc):
6558         * dialog-msw.c (handle_question_dialog_box):
6559         * dialog-msw.c (syms_of_dialog_mswindows):
6560         Define new object to clean up marking; use it as a dialog identifier.
6561         Call new delete-dialog-box-hook.
6562
6563         * dialog-x.c (dbox_selection_callback):
6564         * dialog-x.c (dbox_descriptor_to_widget_value):
6565         * dialog-x.c (x_make_dialog_box_internal):
6566         Call new delete-dialog-box-hook.
6567         Return an id.
6568
6569         * dialog.c:
6570         * dialog.c (syms_of_dialog):
6571         * dialog.c (vars_of_dialog):
6572         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6573
6574         * eval.c:
6575         * eval.c (signal_call_debugger):
6576         when noninteractive, output stack traces on the console instead
6577         of in a (never-seen) buffer.
6578
6579         * eval.c (signal_type_error):
6580         * eval.c (invalid_argument_2):
6581         * lisp.h:
6582         new funs for use w/structured errors.
6583
6584         * event-Xt.c:
6585         * event-Xt.c (x_to_emacs_keysym):
6586         * event-Xt.c (describe_event):
6587         * event-Xt.c (emacs_Xt_event_handler):
6588         * event-Xt.c (vars_of_event_Xt):
6589         * event-msw.c:
6590         * event-msw.c (mswindows_wnd_proc):
6591         * event-msw.c (vars_of_event_mswindows):
6592         rename {x,mswindows}-debug-events to debug-{}-events for
6593         consistency with other debug-foo variables.
6594
6595         * event-stream.c:
6596         document next-event more clearly.
6597
6598         * fileio.c (Ffile_name_directory):
6599         * fileio.c (Ffile_name_nondirectory):
6600         * fileio.c (Funhandled_file_name_directory):
6601         * fileio.c (file_name_as_directory):
6602         * fileio.c (Ffile_name_as_directory):
6603         * fileio.c (directory_file_name):
6604         * fileio.c (Fdirectory_file_name):
6605         * fileio.c (Fmake_temp_name):
6606         * fileio.c (Ffile_truename):
6607         * fileio.c (Fsubstitute_in_file_name):
6608         * fileio.c (expand_and_dir_to_file):
6609         * fileio.c (barf_or_query_if_file_exists):
6610         * fileio.c (check_executable):
6611         * fileio.c (Ffile_exists_p):
6612         * fileio.c (Ffile_writable_p):
6613         * fileio.c (Ffile_directory_p):
6614         * fileio.c (Ffile_regular_p):
6615         * fileio.c (Ffile_modes):
6616         * fileio.c (Ffile_newer_than_file_p):
6617         * fileio.c (Fverify_visited_file_modtime):
6618         * fileio.c (Fset_visited_file_modtime):
6619         * fileio.c (auto_save_1):
6620         (1). (2).
6621         fix up gcpro's.
6622
6623         * frame-msw.c:
6624         * frame-msw.c (mswindows_init_frame_1):
6625         * frame-msw.c (mswindows_enable_frame):
6626         * frame-msw.c (error_frame_unsizable):
6627         * frame-msw.c (msprinter_init_frame_1):
6628         * frame-msw.c (msprinter_init_frame_3):
6629         * frame-msw.c (console_type_create_frame_mswindows):
6630         (2).
6631         implement new enable/disable frame methods.
6632
6633         * frame-x.c:
6634         * frame-x.c (x_enable_frame):
6635         * frame-x.c (console_type_create_frame_x):
6636         implement new enable/disable frame methods.
6637
6638         * frame.c:
6639         * frame.c (Fdisable_frame):
6640         * frame.c (syms_of_frame):
6641         * frame.h (struct frame):
6642         implement new enable/disable frame methods/functions.
6643
6644         * general-slots.h:
6645         add initial-focus.
6646
6647         * glyphs-msw.c (mswindows_widget_instantiate):
6648         comment that initial-focus should be implemented.
6649
6650         * glyphs-widget.c:
6651         * glyphs-widget.c (check_valid_instantiator):
6652         * glyphs-widget.c (check_valid_orientation):
6653         * glyphs-widget.c (check_valid_tab_orientation):
6654         * glyphs-widget.c (check_valid_justification):
6655         * glyphs-widget.c (check_valid_border):
6656         * glyphs-widget.c (check_valid_callback):
6657         * glyphs-widget.c (check_valid_int_or_function):
6658         * glyphs-widget.c (check_valid_string_or_vector):
6659         * glyphs-widget.c (check_valid_item_list_1):
6660         * glyphs-widget.c (widget_validate):
6661         * glyphs-widget.c (combo_box_validate):
6662         * glyphs-widget.c (widget_instantiate):
6663         * glyphs-widget.c (syms_of_glyphs_widget):
6664         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6665         * glyphs-widget.c (image_instantiator_combo_box):
6666         * glyphs-widget.c (image_instantiator_scrollbar):
6667         * glyphs-widget.c (image_instantiator_tab_control):
6668         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6669         (2).
6670         support (unimplemented) keyword initial-focus.
6671         reindent long macros.
6672
6673         * glyphs-x.c (x_redisplay_widget):
6674         * glyphs-x.c (x_button_instantiate):
6675         * glyphs-x.c (x_button_redisplay):
6676         * glyphs-x.c (x_progress_gauge_instantiate):
6677         * glyphs-x.c (x_edit_field_instantiate):
6678         * glyphs-x.c (x_combo_box_instantiate):
6679         * glyphs-x.c (x_tab_control_instantiate):
6680         * glyphs-x.c (x_label_instantiate):
6681         * gui-x.c:
6682         * gui-x.c (button_item_to_widget_value):
6683         * gui-x.c (gui_items_to_widget_values_1):
6684         * gui-x.c (gui_item_children_to_widget_values):
6685         * gui-x.c (gui_items_to_widget_values):
6686         * gui-x.h:
6687         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6688         add new flag to gui-parsing routines to indicate whether
6689         accelerator specs should be supported.
6690
6691         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6692
6693         * glyphs.h (struct Lisp_Image_Instance):
6694         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6695         add initial-focus flag.
6696
6697         * gui.c:
6698         * gui.c (syms_of_gui):
6699         * gui.c (vars_of_gui):
6700         clean up menu-no-selection-hook.
6701
6702         * gui.h:
6703         support delete-dialog-box-hook.
6704
6705         * lread.c (Fload_internal):
6706         * lread.c (locate_file_in_directory_mapper):
6707         (1).
6708
6709         * lrecord.h:
6710         * lrecord.h (struct toolbar_button):
6711         * lrecord.h (syms_of_toolbar):
6712         document how to create a new object.
6713
6714         * menubar-msw.c (mswindows_char_is_accelerator):
6715         may be called on frames w/o menus.
6716
6717         * menubar.c (vars_of_menubar):
6718         clean up :filter docs.
6719
6720         * nt.c (readdir):
6721         * ntproc.c:
6722         (1).
6723
6724         * process-nt.c:
6725         * process-nt.c (validate_signal_number):
6726         * process-nt.c (signal_cannot_launch):
6727         * process-nt.c (nt_create_process):
6728         * process-nt.c (nt_send_process):
6729         * process-nt.c (nt_kill_child_process):
6730         * process-nt.c (nt_open_network_stream):
6731         * process-nt.c (syms_of_process_nt):
6732         (2).
6733         delete quote-handling.  call new lisp code that does it better.
6734
6735         * process-unix.c (connect_to_file_descriptor):
6736         * process-unix.c (allocate_pty):
6737         * process-unix.c (unix_send_process):
6738         * process-unix.c (unix_kill_child_process):
6739         * process-unix.c (unix_open_network_stream):
6740         * process-unix.c (unix_open_multicast_group):
6741         (1). (2).
6742
6743         * process.c:
6744         * process.c (Fstart_process_internal):
6745         (2).  need to canonicalize process path even if absolute.
6746
6747         * select-msw.c (symbol_to_ms_cf):
6748         * select-msw.c (ms_cf_to_symbol):
6749         * select-msw.c (cf_is_autofreed):
6750         * select-msw.c (mswindows_destroy_selection):
6751         * select.c:
6752         * select.c (syms_of_select):
6753         * select.h:
6754         support dibv5, fix bugs. (from Mike Alexander)
6755
6756         * select.c (Fget_selection_internal):
6757         * select.c (select_convert_out):
6758
6759         * sysdep.c:
6760         * sysdep.c (xemacs_stat):
6761         renamed.
6762
6763         * sysdep.c (mkdir):
6764         * sysdep.c (rmdir):
6765         but keep original stat() here because we provide encapsulation
6766         around these funs.
6767
6768         * sysfile.h:
6769         * sysfile.h (fstat):
6770         remove stat garbage.
6771
6772         * syswindows.h:
6773         fix X/MSW conflict.
6774         don't include tchar.h.  it's inappropriate because it makes
6775         compile-time distinctions when we want runtime distinctions.
6776         (we provide our own tchar replacements)
6777
6778         * toolbar.c:
6779         use default object printer for toolbar-button.
6780
6781         * unexcw.c:
6782         make sure we don't encapsulate.
6783
6784         * window.c (vars_of_window):
6785         emphasize that temp-buffer-show-hook is obsolete.
6786
6787 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6788
6789         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6790         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6791
6792         * events.c (Fevent_timestamp_lessp):
6793         Not 64-bit clean.  Use EMACS_INT, not int.
6794
6795 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6796
6797         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6798         unsigned int and changed the last enum to
6799         lrecord_type_last_built_in_type.
6800         (lrecord_implementations_table): changed prototype to know how
6801         long the array is supposed to be.
6802         (lrecord_type_count): new unsigned int to keep track of the
6803         current number of lisp lrecord types.
6804         (DEFINE_EXTERNAL_LRECORD):
6805         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6806         dynamic-modules to declare new lisp types. They are the same
6807         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6808         int for each new type, and increment lrecord_type_count by 1.
6809
6810         * alloc.c (lrecord_implementations_table): Changed to reference
6811         lrecord_type_last_built_in_type for the size of the array.
6812         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6813
6814 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6815
6816         * glyphs.h (check_valid_item_list): Renamed from
6817         check_valid_item_list_1.
6818
6819 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6820
6821         * select.c (Qselect_coerce): New.
6822         * select.c (Vselection_coercion_alist): New.
6823         * select.c (syms_of_select): Declare.
6824         * select.c (get-selection-internal): Use it.
6825         Use the new select-coerce functionality.
6826
6827         * select.c (select_coerce): New.
6828         * select.h (select_coerce): Declare.
6829         New function to coerce one type of data into another.
6830
6831 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6832
6833         * callproc.c (Fcall_process_internal):
6834         (Fcall_process_internal):
6835         * process-unix.c (unix_create_process):
6836         Save and restore the value of errno, so that error messages are accurate.
6837
6838 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6839
6840         * elhash.c (print_hash_table):
6841         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6842         Prettify docstrings and indentation.
6843
6844 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6845
6846         * window.c (Fwindow_pixel_edges): Subtract frame border and
6847         gutter size.
6848
6849 2000-07-31  Andy Piper  <andy@xemacs.org>
6850
6851         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6852         will acknowledge the change.
6853
6854         * glyphs.h: declare tab_control_order_only_changed.
6855
6856         * glyphs-x.c (x_tab_control_redisplay): use
6857         tab_control_order_only_changed.
6858
6859         * glyphs-widget.c (tab_control_order_only_changed): new function.
6860
6861         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6862         tab_control_order_only_changed.
6863
6864         * gui.c (gui_item_equal_sans_selected): new function.
6865         (gui_item_equal): use it.
6866
6867         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6868         :properties in favor of :items..
6869
6870         * glyphs-widget.c (check_valid_item_list): rename from
6871         check_valid_item_list_1.
6872         (check_valid_item_list_1): renamed.
6873         (combo_box_validate): deprecate :properties in favor of :items.
6874         (widget_instantiate): ditto.
6875         (tab_control_update): ditto.
6876         (image_instantiator_combo_box): ditto.
6877         (image_instantiator_tree_view): ditto.
6878         (image_instantiator_tab_control): ditto.
6879         (layout_post_instantiate): remove dead code.
6880
6881         * print.c (debug_print_no_newline): only write to debugger if in
6882         WIN32_NATIVE.
6883
6884         * elhash.c (Fmake_hash_table): update doc string.
6885
6886         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6887         messages whilst in GC. This at least stops XEmacs crashing but has
6888         the potential for wierd behaviour.
6889
6890 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6891
6892         * config.h.in:
6893         Make existence of s&m files optional.
6894
6895         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6896         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6897         * s/gnu.h: Remove HAVE_GETLOADAVG.
6898         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6899         * s/sol2.h: Remove HAVE_GETLOADAVG.
6900         * lisp.h: Remove getloadavg() declaration.
6901         * fns.c:
6902         Include <sys/loadavg.h> if available.
6903         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6904         * config.h.in:  Group together getloadavg()-related macros.
6905         Use only configure-time tests to detect getloadavg().
6906
6907 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6908
6909         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6910
6911 2000-07-25  Andy Piper  <andy@xemacs.org>
6912
6913         * syswindows.h: add tchar.h for native builds.
6914
6915         * frame.c (syms_of_frame): remove set-glyph-image.
6916
6917         * general-slots.h: add Qset_glyph_image.
6918
6919         * glyphs-widget.c (layout_update): add domain arg to
6920         set-glyph-image.
6921         (syms_of_glyphs_widget): remove set-glyph-image.
6922
6923 2000-07-23  Ben Wing  <ben@xemacs.org>
6924
6925         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6926         Vpopup_frame_list.
6927
6928 2000-07-22  Andy Piper  <andy@xemacs.org>
6929
6930         * symsinit.h: add syms_of_win32().
6931
6932         * gui-msw.c (syms_of_gui_mswindows): remove
6933         Fmswindows_shell_execute.
6934         (Fmswindows_shell_execute): moved to win32.c.
6935
6936         * emacs.c (main_1): add syms_of_win32 ().
6937
6938         * win32.c (init_potentially_nonexistent_functions): rewrite in
6939         compiler-friendly terms.
6940         (Fmswindows_shell_execute): move here from gui-msw.c.
6941         (syms_of_win32): new.
6942
6943         * device-msw.c (Fmswindows_printer_list): clean up args to
6944         EnumPrinters.
6945         Don't include tchar under cygwin or mingw.
6946         (msprinter_default_printer): make cygwin-friendly.
6947
6948 2000-07-21  Andy Piper  <andy@xemacs.org>
6949
6950         * glyphs-widget.c (image_instantiator_tree_view): use tab
6951         control's update function.
6952         (layout_property): new function. Retrieve items.
6953
6954         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6955         function. Re-populate the tree view from the pending items.
6956
6957         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6958         is designated the parent if the domain is an image instance. This
6959         is needed so that dirtiness can be cascade up the hierarchy and
6960         thus for layout children to be redisplayed correctly.
6961         (allocate_image_instance): rename glyph -> parent.
6962
6963         * redisplay.h: change redisplay_output_layout signature.
6964
6965         * redisplay-msw.c (mswindows_output_display_block): use domain
6966         arg.
6967
6968         * redisplay-x.c (x_output_display_block): use domain arg.
6969
6970 2000-07-10  Andy Piper  <andy@xemacs.org>
6971
6972         * window.c (Fset_window_configuration): add comment.
6973
6974         * redisplay-output.c (compare_runes):
6975         (redisplay_output_subwindow): redisplay rather than update subwindow.
6976         (redisplay_output_layout): ditto.
6977
6978         * redisplay-msw.c (mswindows_frame_output_end):
6979         (mswindows_frame_output_end): make defer window pos optional.
6980
6981         * lisp.h: add Flast.
6982
6983         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6984         normalize method. Change update method to be for changed
6985         instantiators. Add redisplay method. Change signature of layout
6986         method.
6987         (struct Lisp_Image_Instance): add instantiator.
6988         (IMAGE_INSTANCE_INSTANTIATOR): new.
6989         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6990         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6991         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6992
6993         * glyphs.c:
6994         (find_instantiator_differences): new function.
6995         (Fset_instantiator_property): new convenience function.
6996         (check_image_instance_structure): strictly check for vector
6997         instantiators.
6998         (normalize_image_instantiator): make non-static.
6999         (instantiate_image_instantiator): pass on dest_mask and use new
7000         signatures for image_instance_layout and friends.
7001         (mark_image_instance): mark the instantiator. Mark the subwindow
7002         face not the widget face.
7003         (image_instance_equal): add instantiator.
7004         (image_instance_hash): ditto.
7005         (allocate_image_instance): ditto.
7006         (Fset_image_instance_property): removed.
7007         (Fimage_instance_file_name): ditto.
7008         (Fcolorize_image_instance): ditto.
7009         (image_instance_layout): add offsets to be set.
7010         (update_image_instance): new function. update an image instance
7011         from its changed instantiator.
7012         (inherit_normalize): add dest_mask.
7013         (xbm_normalize): ditto.
7014         (xface_normalize): ditto.
7015         (xpm_normalize): ditto.
7016         (text_update): set_property -> update.
7017         (image_instantiate): use the glyph identity as a hash key, not the
7018         instantiator.
7019         (glyph_width): use new image_instance_layout signature.
7020         (glyph_ascent): ditto.
7021         (glyph_descent): ditto.
7022         (glyph_height): ditto.
7023         (glyph_query_geometry): ressurrect.
7024         (glyph_layout): ditto.
7025         (redisplay_subwindow): update -> redisplay.
7026         (syms_of_glyphs): add Fset_instantiator_property.
7027         (image_instantiator_format_create): set_property -> update.
7028
7029         * glyphs-x.c:
7030         (autodetect_normalize): add dest_maks to signature.
7031         (x_redisplay_subwindow): update -> redisplay.
7032         (x_redisplay_widget): ditto.
7033         (x_button_redisplay): ditto.
7034         (x_progress_gauge_redisplay): ditto.
7035         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7036         stacking order.
7037         (console_type_create_glyphs_x): update -> redisplay.
7038         (image_instantiator_format_create_glyphs_x): ditto.
7039
7040         * glyphs-widget.c:
7041         (check_valid_instantiator): disallow glyphs in the instantiator,
7042         they must now be vectors.
7043         (check_valid_instantiator_list): ditto.
7044         (glyph_instantiator_to_glyph): use internal symbol rather than
7045         intern.
7046         (widget_update): renamed from widget_set_property. Call cascaded
7047         update methods.
7048         (redisplay_widget): renamed from update_widget.
7049         (widget_layout): image_instance_layout now takes position as well
7050         as size.
7051         (widget_normalize): ditto.
7052         (widget_instantiate): ditto.
7053         (tab_control_query_geometry) ditto.:
7054         (tab_control_update): renamed from tab_control_set_property.
7055         (progress_gauge_update): set_property -> update.
7056         (layout_normalize): rewrite so that child instantiators are
7057         normalized also.
7058         (layout_update): new function. Create glyphs from the normalized
7059         children and cope with any other layout keywords. We do not
7060         instantiate children here that will be take care of by
7061         redisplay_output_layout.
7062         (layout_instantiate): call layout_update and not much else.
7063         (layout_post_instantiate): not sure whether this is needed
7064         anymore.
7065         (layout_query_geometry): query glyph geometry rather than
7066         image_instance geometry.
7067         (layout_layout): set offsets from pass in parameters. Use glyph
7068         geometry and layout functions rather than image instance ones.
7069         (native_layout_layout): ditto.
7070         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7071         (image_instantiator_widget): set_property -> update.
7072         (image_instantiator_buttons): ditto.
7073         (image_instantiator_progress_guage): ditto.
7074         (image_instantiator_tab_control): ditto.
7075         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7076         (image_instantiator_layout): add update method.
7077
7078         * glyphs-msw.c (bmp_normalize):
7079         (mswindows_resource_normalize): add dest_mask so that it can be
7080         proprogated by layout_normalize.
7081         (begin_defer_window_pos): make optional because it may not be the
7082         right thing to do and it introduces differences with X.
7083         (mswindows_unmap_subwindow): ditto.
7084         (mswindows_map_subwindow): ditto.
7085         (mswindows_redisplay_subwindow): renamed from
7086         mswindows_update_subwindow.
7087         (mswindows_redisplay_widget): ditto.
7088         (mswindows_button_redisplay): renamed from
7089         mswindows_button_update. Update is now what the instantiation
7090         function does for a changed instantiator.
7091         (mswindows_progress_gauge_instantiate): set the progress value
7092         here if appropriate.
7093         (mswindows_tab_control_redisplay): cope with re-ordering of the
7094         members of the tab widget by simply selecting the new top
7095         widget. This makes things appear ok if you click on a tab.
7096         (mswindows_combo_box_instantiate): image_instance_layout now takes
7097         position as well as size.
7098         (mswindows_progress_gauge_redisplay): renamed from
7099         mswindows_progress_gauge_update.
7100         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7101         (image_instantiator_format_create_glyphs_mswindows): ditto.
7102
7103         * glyphs-eimage.c (jpeg_normalize):
7104         (gif_normalize):
7105         (png_normalize):
7106         (tiff_normalize): add dest_mask so that it can be proprogated by
7107         layout_normalize.
7108
7109         * elhash.c:
7110         (print_hash_table):
7111         (hash_table_weakness_validate):
7112         (decode_hash_table_weakness):
7113         (Fhash_table_weakness):
7114         (Fhash_table_type):
7115         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7116
7117         * console.h (struct console_methods): move update_* to
7118         redisplay_*.
7119
7120 2000-07-20  Ben Wing  <ben@xemacs.org>
7121
7122         * *.[ch] (XSETOBJ): remove unused middle argument.
7123         lisp-disunion.h: correct wrap_object() to one argument.
7124
7125 2000-07-15  Ben Wing  <ben@xemacs.org>
7126
7127         * s/cygwin32.h:
7128         * s/cygwin32.h (CYGWIN_CONV_PATH):
7129         Add missing logb prototype for v1.1.
7130         Use post-b20 names and alias to pre-b20 names when pre-b20.
7131
7132         * s/windowsnt.h: [5].
7133
7134 2000-07-15  Ben Wing  <ben@xemacs.org>
7135
7136         * Makefile.in.in (x_objs):
7137         * Makefile.in.in (sheap_objs):
7138         * Makefile.in.in (objs):
7139         added win32.o, cosmetic cleanups.
7140
7141         * alloc.c (Fmake_byte_code):
7142         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7143         etc. macros which declare their own args now.
7144
7145         * alloc.c (syms_of_alloc):
7146         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7147
7148         * buffer.c:
7149         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7150
7151         * buffer.c (Fget_file_buffer):
7152         Fixed GCPRO problem.
7153
7154         * buffer.c (get_truename_buffer):
7155         Fixed comment about GC checking.
7156
7157         * buffer.c (syms_of_buffer):
7158         Undeclared those dedicated frame funs.
7159         [2].
7160
7161         * buffer.h:
7162         Define convenience macros for internal/external conversions.
7163         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7164         and Qenvironment_variable_encoding for cleaner code.
7165
7166         * bufslots.h:
7167         Remove dedicated-frame; in lisp.
7168
7169         * bytecode.c (funcall_compiled_function):
7170         [1].
7171
7172         * bytecode.c (syms_of_bytecode):
7173         [2].
7174
7175         * console-msw.c:
7176         * console-msw.c (mswindows_show_console): Rewrote.
7177
7178         * console-msw.c (Fmswindows_debugging_output): New.
7179         Sends to OutputDebugString (special MSWin debugger interface).
7180
7181         * console-msw.c (Fmswindows_message_box):
7182         Fixed stupid bugs so it works when called from kill-emacs.
7183
7184         * console-msw.c (syms_of_console_mswindows):
7185         Declare Fmswindows_debugging_output.
7186
7187         * console-msw.h:
7188         New MSWin prototypes.
7189
7190         * console-msw.h (struct mswindows_frame):
7191         New entry last-click-mods for improved button-modifier support.
7192
7193         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7194         New struct entry `popup' with corresponding accessor.
7195
7196         * console-x.c:
7197         * console-x.c (split_up_display_spec):
7198         * console-x.c (get_display_arg_connection):
7199         * console-x.c (x_semi_canonicalize_console_connection):
7200         * console-x.c (x_canonicalize_device_connection):
7201         [[[6]]]: Change char to more specific type.
7202         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7203
7204         * console-x.c (x_semi_canonicalize_console_connection):
7205         * console-x.c (x_canonicalize_device_connection):
7206         [[[9]]]: Fix up error signalling to use new structured error system.
7207
7208         * console-x.h:
7209         [[[4]]]: Define codesys aliases:
7210         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7211         Qx_color_name_encoding, Qx_display_name_encoding.
7212
7213         * console.h (struct console_methods):
7214         New method make_dialog_box_internal supersedes older
7215         popup_dialog_box method.
7216
7217         * data.c:
7218         Define many new errors, part of new structured errors.
7219
7220         * data.c (init_errors_once_early):
7221         * data.c (syms_of_data):
7222         [2].
7223
7224         * device-msw.c (mswindows_init_device):
7225         [[[5]]]: Cleanup to support NT 3.51.
7226
7227         * device-msw.c (decode_devmode): Cleanup.
7228
7229         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7230         * device-msw.c (mswindows_handle_print_dialog_box):
7231         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7232         * device-msw.c (syms_of_device_mswindows):
7233         Delete the dialog box primitives recently introduced by Kirill and
7234         instead interface to general dialog box interface.
7235
7236         * device-x.c:
7237         * device-x.c (compute_x_app_name):
7238         * device-x.c (x_init_device):
7239         * device-x.c (Fx_valid_keysym_name_p):
7240         * device-x.c (Fx_set_font_path):
7241         [6].
7242         [7].
7243
7244         * device.h (wrap_device): New.
7245         First of its kind; meant to replace XSETDEVICE.
7246
7247         * dialog-msw.c: Many file-dialog symbols.
7248
7249         * dialog-msw.c (mswindows_register_popup_frame): New.
7250         * dialog-msw.c (mswindows_is_dialog_msg): New.
7251         For supporting kbd traversal in dialog boxes.
7252
7253         * dialog-msw.c (dialog_proc):
7254         Support hitting ESC in dialogs.
7255
7256         * dialog-msw.c (struct):
7257         Common dialog box errors.
7258
7259         * dialog-msw.c (handle_file_dialog_box): New.
7260         Add file dialog code.
7261
7262         * dialog-msw.c (handle_question_dialog_box):
7263         Redo existing code to support new question dialog syntax.
7264
7265         * dialog-msw.c (console_type_create_dialog_mswindows):
7266         We support new dialog console method.
7267
7268         * dialog-msw.c (syms_of_dialog_mswindows):
7269         * dialog-msw.c (vars_of_dialog_mswindows):
7270         New file dialog symbols, vars.
7271
7272         * dialog-x.c:
7273         * dialog-x.c (maybe_run_dbox_text_callback):
7274         * dialog-x.c (dbox_descriptor_to_widget_value):
7275         * dialog-x.c (x_make_dialog_box_internal):
7276         * dialog-x.c (console_type_create_dialog_x):
7277         Mule-ize entire file.
7278         Redo to support question dialog syntax.
7279         [6].
7280
7281         * dialog.c:
7282         * dialog.c (Fmake_dialog_box_internal):
7283         * dialog.c (syms_of_dialog):
7284         Kill old popup-dialog-box, replace with new primitive.
7285         Just call device method or signal error.
7286
7287         * eldap.c (Fldap_open):
7288         * eldap.c (Fldap_search_basic):
7289         * eldap.c (Fldap_add):
7290         * eldap.c (Fldap_modify):
7291         [1].
7292         [7].
7293
7294         * emacs.c:
7295         * emacs.c (make_arg_list_1):
7296         * emacs.c (make_arg_list):
7297         Mule-ize call to dll_init().
7298         [6].
7299         [8].
7300
7301         * emacs.c (make_argc_argv):
7302         * emacs.c (free_argc_argv):
7303         * emacs.c (init_cmdargs):
7304         * emacs.c (main_1):
7305         * emacs.c (Fkill_emacs):
7306         * emacs.c (Fdump_emacs):
7307         Update comments about what can be used in syms_* etc.
7308         Call init_win32() when necessary.
7309         Fix up MS Win dialog box in kill-buffer to actually work right.
7310         [7].
7311
7312         * eval.c:
7313         * eval.c (For):
7314         * eval.c (Fand):
7315         * eval.c (Fprogn):
7316         * eval.c (Fprog1):
7317         * eval.c (Fprog2):
7318         * eval.c (FletX):
7319         * eval.c (Flet):
7320         * eval.c (condition_case_3):
7321         * eval.c (Feval):
7322         * eval.c (function_argcount):
7323         * eval.c (funcall_lambda):
7324         [1].
7325
7326         * eval.c (type_error): New.
7327         * eval.c (maybe_type_error): New.
7328         * eval.c (continuable_type_error): New.
7329         * eval.c (maybe_continuable_type_error): New.
7330         * eval.c (type_error_with_frob): New.
7331         * eval.c (maybe_type_error_with_frob): New.
7332         * eval.c (continuable_type_error_with_frob): New.
7333         * eval.c (maybe_continuable_type_error_with_frob): New.
7334         New functions for use with structured errors.
7335
7336         * event-Xt.c:
7337         * event-Xt.c (x_event_to_emacs_event):
7338         Buttons are now modifiers too.
7339
7340         * event-Xt.c (emacs_Xt_current_event_timestamp):
7341         Implement new event method.
7342         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7343
7344         * event-msw.c:
7345         * event-msw.c (ntpipe_shove_writer): [5].
7346         * event-msw.c (mswindows_enqueue_mouse_button_event):
7347         * event-msw.c (mswindows_drain_windows_queue):
7348         * event-msw.c (mswindows_wnd_proc): [7].
7349         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7350         * event-msw.c (mswindows_modifier_state):
7351         Throughout: support new button modifiers.
7352
7353         * event-msw.c (emacs_mswindows_current_event_timestamp):
7354         Implement new event method.
7355         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7356
7357         * event-stream.c:
7358         * event-stream.c (event_stream_current_event_timestamp): New.
7359         * event-stream.c (maybe_kbd_translate): New functionality.
7360         * event-stream.c (vars_of_event_stream):
7361         Document new kbd-translate-table functionality.
7362
7363         * event-stream.c (Fcurrent_event_timestamp): New.
7364         New primitive for use in fabricated events.
7365         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7366
7367         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7368
7369         * events.c:
7370         * events.c (Fmake_event):
7371         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7372         [1].
7373         [9].
7374
7375         * events.c (format_event_object): fix gcc warnings.
7376
7377         * events.c (Fevent_timestamp): Document new primitives.
7378
7379         * events.c (TIMESTAMP_HALFSPACE): New.
7380
7381         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7382         comparing timestamps correctly (half-space algorithm).
7383
7384         * events.c (Fevent_modifier_bits): Doc fix.
7385
7386         * events.c (Fevent_modifiers): Major doc addition.
7387         * events.c (event_x_y_pixel_internal): Typo fix.
7388         * events.c (syms_of_events): Declare new primitives.
7389
7390         * events.h:
7391         Update long comment for button modifiers, timestamps.
7392
7393         * events.h (struct event_stream):
7394         New current_event_timestamp method.
7395
7396         * extents.c:
7397         * extents.c (extent_in_region_p):
7398         * extents.c (decode_extent):
7399         * extents.c (Fset_extent_parent):
7400         * extents.c (decode_map_extents_flags):
7401         Fix gcc warnings.
7402         [9].
7403
7404         * extents.c (struct extent_at_arg):
7405         * extents.c (decode_extent_at_flag):
7406         * extents.c (extent_at_mapper):
7407         * extents.c (extent_at_bytind):
7408         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7409         * extents.c (Fextents_at): New primitive. [9].
7410         * extents.c (symbol_to_glyph_layout): [9].
7411         Support new primitive `extents-at'.
7412
7413
7414         * extents.c (get_text_property_bytind):
7415         extent_at_bytind has another arg.
7416         [9].
7417
7418         * extents.c (syms_of_extents): New primitive.
7419
7420         * file-coding.c (Fmake_coding_system): [1].
7421         * file-coding.c (subsidiary_coding_system): fix gcc warning
7422         * file-coding.c (syms_of_file_coding): [2].
7423
7424         * fileio.c (Fexpand_file_name):
7425         * fileio.c (Fsysnetunam):
7426         * fileio.c (Ffile_exists_p):
7427         * fileio.c (Ffile_executable_p):
7428         * fileio.c (Fverify_visited_file_modtime):
7429         Clean up GCPROing.
7430
7431         * fileio.c (syms_of_fileio): [2].
7432
7433         * filelock.c (lock_file_1):
7434         * filelock.c (current_lock_owner):
7435         * filelock.c (lock_if_free):
7436         * filelock.c (lock_file):
7437         * filelock.c (unlock_file):
7438         Clean up GCPROing.
7439
7440         * fns.c (concat): Fix gcc warning.
7441
7442         * fns.c (Fmember):
7443         * fns.c (Fold_member):
7444         * fns.c (Fmemq):
7445         * fns.c (Fold_memq):
7446         * fns.c (memq_no_quit):
7447         * fns.c (Fassoc):
7448         * fns.c (Fold_assoc):
7449         * fns.c (Fassq):
7450         * fns.c (Fold_assq):
7451         * fns.c (assq_no_quit):
7452         * fns.c (Frassoc):
7453         * fns.c (Fold_rassoc):
7454         * fns.c (Frassq):
7455         * fns.c (Fold_rassq):
7456         * fns.c (rassq_no_quit):
7457         * fns.c (Fdelete):
7458         * fns.c (Fold_delete):
7459         * fns.c (Fdelq):
7460         * fns.c (Fold_delq):
7461         * fns.c (delq_no_quit):
7462         * fns.c (Fremassoc):
7463         * fns.c (Fremassq):
7464         * fns.c (remassq_no_quit):
7465         * fns.c (Fremrassoc):
7466         * fns.c (Fremrassq):
7467         * fns.c (remrassq_no_quit):
7468         * fns.c (Freverse):
7469         * fns.c (mapcar1):
7470         [1].
7471
7472         * frame-msw.c (mswindows_init_frame_1):
7473         * frame-msw.c (mswindows_delete_frame):
7474         Register popups with dialog code so keyboard traversing works.
7475
7476         * frame-tty.c (tty_raise_frame_no_select): [1].
7477
7478         * frame-x.c:
7479         * frame-x.c (x_set_frame_text_value):
7480         * frame-x.c (x_set_frame_properties):
7481         * frame-x.c (x_create_widgets):
7482         [7].
7483
7484         * frame.c:
7485         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7486
7487         * frame.h (wrap_frame): New.
7488         Macro like wrap_device.
7489
7490         * general.c:
7491         * general.c (SYMBOL):
7492         * general.c (syms_of_general):
7493         Major reorg.  This is now just a wrapper and symbols themselves
7494         are listed in general-slots.h.
7495
7496         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7497         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7498
7499         * glyphs-msw.c (mswindows_native_layout_instantiate):
7500         Add DS_CONTROL so keyboard traversal will work.
7501
7502         * glyphs-widget.c:
7503         * glyphs-widget.c (syms_of_glyphs_widget):
7504         Move some symbols to general-slots.h.
7505
7506         * glyphs-x.c:
7507         * glyphs-x.c (xbm_instantiate_1):
7508         * glyphs-x.c (x_xbm_instantiate):
7509         * glyphs-x.c (x_xface_instantiate):
7510         * glyphs-x.c (autodetect_instantiate):
7511         * glyphs-x.c (cursor_font_instantiate):
7512         * glyphs-x.c (x_update_widget):
7513         * glyphs-x.c (x_widget_instantiate):
7514         * glyphs.c (bitmap_to_lisp_data):
7515         * glyphs.c (pixmap_to_lisp_data):
7516         [7].
7517
7518         * glyphs.c (syms_of_glyphs):
7519         [2].
7520
7521         * gui-x.c:
7522         * gui-x.c (print_widget_value):
7523         * gui-x.c (menu_separator_style_and_to_external):
7524         * gui-x.c (add_accel_and_to_external):
7525         * gui-x.c (button_item_to_widget_value):
7526         * gui-x.c (gui_items_to_widget_values_1):
7527         * gui-x.c (gui_items_to_widget_values):
7528         * gui-x.c (syms_of_gui_x):
7529         * gui-x.c (vars_of_gui_x):
7530         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7531         [9].
7532
7533         * gui-x.h:
7534         Muleize, prototype changes matching gui-x.c.
7535
7536         * gui.c:
7537         * gui.c (separator_string_p):
7538         * gui.c (gui_item_add_keyval_pair):
7539         * gui.c (make_gui_item_from_keywords_internal):
7540         * gui.c (signal_too_long_error):
7541         * gui.c (parse_gui_item_tree_item):
7542         * gui.c (syms_of_gui):
7543         * gui.c (vars_of_gui):
7544         * gui.h:
7545         menu-no-selection-hook moved here (used by MSWin).
7546         Move some symbols to general-slots.h.
7547         [6].
7548         [9].
7549
7550         * insdel.c (get_buffer_pos_char):
7551         * insdel.c (get_buffer_range_char):
7552         Add GC comments.
7553
7554         * keymap.c (keymap_lookup_directly):
7555         * keymap.c (keymap_store):
7556         * keymap.c (ensure_meta_prefix_char_keymapp):
7557         * keymap.c (describe_map):
7558         * keymap.h:
7559         Support new button modifiers.
7560
7561         * lisp-disunion.h (wrap_object):
7562         * lisp-disunion.h (XSETOBJ):
7563         Rename make_obj to wrap_object.
7564
7565         * lisp-union.h:
7566         * lisp-union.h (make_int):
7567         * lisp-union.h (make_char):
7568         Support wrap_object.
7569
7570         * lisp.h:
7571         * lisp.h (LIST_LOOP):
7572         * lisp.h (EXTERNAL_LIST_LOOP):
7573         * lisp.h (LIST_LOOP_2):
7574         * lisp.h (EXTERNAL_LIST_LOOP_1):
7575         * lisp.h (EXTERNAL_LIST_LOOP_2):
7576         * lisp.h (EXTERNAL_LIST_LOOP_3):
7577         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7578         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7579         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7580         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7581         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7582         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7583         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7584         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7585         * lisp.h (struct Lisp_Symbol):
7586         * lisp.h (maybe_continuable_error_with_frob):
7587         Fix up section comments.
7588         Add new types for char to indicate usage.
7589         Delete symbols auto-generated from general-slots.h.
7590         Add prototypes for structured error functions.
7591         Add long comments describing looping macros and change interface
7592         so that lvalues are automatically declared.
7593         Add NO_DECLARE macro in case callers want to declare lvalues
7594         themselves.
7595
7596         * lread.c (read_syntax_error):
7597         * lread.c (continuable_read_syntax_error):
7598         * lread.c (read_structure):
7599         * lread.c (sequence_reader):
7600         * lread.c (read_list_conser):
7601         * lread.c (read_compiled_function):
7602         Rename syntax_error and continuable_syntax_error to avoid clash
7603         with same-named structured error functions.
7604
7605         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7606         * menubar-msw.c (populate_menu_add_item):
7607         * menubar-msw.c (populate_or_checksum_helper):
7608         [5].
7609         [9].
7610
7611         * menubar-x.c:
7612         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7613         Mule-ize whole file.
7614
7615         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7616
7617         * mule-charset.c (Fmake_charset):
7618         * mule-wnnfns.c (Fwnn_set_param):
7619         [1].
7620
7621         * ntproc.c (create_child):
7622         * ntproc.c (Fwin32_set_current_locale):
7623         Add comments portending doom.
7624
7625         * objects-msw.c:
7626         * objects-msw.c (old_font_enum_callback_2):
7627         * objects-msw.c (font_enum_callback_1):
7628         * objects-msw.c (mswindows_enumerate_fonts):
7629         [5].
7630
7631         * objects-x.c:
7632         * objects-x.c (allocate_nearest_color):
7633         * objects-x.c (x_parse_nearest_color):
7634         * objects-x.c (x_initialize_color_instance):
7635         * objects-x.c (x_print_color_instance):
7636         * objects-x.c (x_finalize_color_instance):
7637         * objects-x.c (x_valid_color_name_p):
7638         * objects-x.c (x_initialize_font_instance):
7639         * objects-x.c (x_print_font_instance):
7640         * objects-x.c (valid_x_font_name_p):
7641         * objects-x.c (truename_via_FONT_prop):
7642         * objects-x.c (truename_via_random_props):
7643         * objects-x.c (truename_via_XListFonts):
7644         * objects-x.c (x_font_truename):
7645         * objects-x.c (x_font_instance_truename):
7646         * objects-x.c (x_font_instance_properties):
7647         * objects-x.c (x_list_fonts):
7648         * objects-x.c (x_find_charset_font):
7649         Mule-ize entire file.
7650         [7].
7651
7652         * objects-x.h:
7653         Mule-verify.
7654
7655         * print.c:
7656         * print.c (std_handle_out_external):
7657         * print.c (debug_print_no_newline):
7658         * print.c (syms_of_print):
7659         Output to all debugger kinds in debug-print.
7660         Fix console-output code under MSWin to actually work.
7661
7662         * process-nt.c (send_signal):
7663         * process-nt.c (nt_create_process):
7664         Use newer Unicode macros.
7665
7666         * process-unix.c (unix_create_process):
7667         * process-unix.c (unix_canonicalize_host_name):
7668         * process-unix.c (unix_open_network_stream):
7669         [7].
7670
7671         * scrollbar-x.c:
7672         Mule-verify.
7673
7674         * search.c (syms_of_search):
7675         [2].
7676
7677         * select-msw.c (mswindows_destroy_selection):
7678         Use LIST_LOOP_2.
7679
7680         * select-x.c (symbol_to_x_atom):
7681         [7].
7682
7683         * select.c (syms_of_select):
7684         [2].
7685
7686         * sound.c (Fplay_sound_file):
7687         [7].
7688
7689         * specifier.c:
7690         * specifier.c (decode_specifier_type):
7691         * specifier.c (Fvalid_specifier_locale_type_p):
7692         * specifier.c (check_valid_locale_or_locale_type):
7693         * specifier.c (decode_locale):
7694         * specifier.c (decode_locale_type):
7695         * specifier.c (decode_locale_list):
7696         * specifier.c (check_valid_domain):
7697         * specifier.c (decode_specifier_tag_set):
7698         * specifier.c (Fcanonicalize_tag_set):
7699         * specifier.c (Fdefine_specifier_tag):
7700         * specifier.c (Fspecifier_tag_predicate):
7701         * specifier.c (check_valid_inst_list):
7702         * specifier.c (check_valid_spec_list):
7703         * specifier.c (decode_how_to_add_specification):
7704         * specifier.c (check_modifiable_specifier):
7705         * specifier.c (specifier_add_spec):
7706         * specifier.c (boolean_validate):
7707         * specifier.c (display_table_validate):
7708         [9].
7709
7710         * specifier.c (syms_of_specifier):
7711         Move some symbols to general-slots.h.
7712         [2].
7713
7714         * symbols.c:
7715         * symbols.c (Fmapatoms):
7716         * symbols.c (Fapropos_internal):
7717         Add GCPROs.
7718
7719         * symbols.c (set_default_buffer_slot_variable):
7720         * symbols.c (set_default_console_slot_variable):
7721         [1].
7722
7723         * symbols.c (defsymbol_massage_name_1):
7724         * symbols.c (defkeyword_massage_name):
7725         * symbols.c (deferror_1):
7726         * symbols.c (deferror):
7727         * symbols.c (deferror_massage_name_and_message):
7728         * symeval.h:
7729         * symeval.h (DEFSYMBOL):
7730         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7731
7732         * symbols.c (syms_of_symbols):
7733         [2].
7734
7735         * symsinit.h:
7736         * symsinit.h (init_win32): New.
7737         Also new is syms_of_dialog_mswindows.
7738
7739         * syswindows.h:
7740         Add new Unicode macros, missing Cygwin wide-char functions,
7741         convenience conversion macros for Qmswindows_tstr, macros for
7742         encapsulating required MSWin <-> Cygwin filename conversions,
7743         prototype for dynamically-extracted (not in NT 3.51) functions.
7744
7745         * toolbar-x.c:
7746         Mule-verify.
7747
7748         * tooltalk.c (Fadd_tooltalk_message_arg):
7749         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7750         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7751         [7].
7752
7753         * tooltalk.c (syms_of_tooltalk):
7754         [2].
7755
7756         * unexnt.c:
7757         * unexnt.c (unexec):
7758         Fix up headers, declaration of unexec() to be more standard.
7759
7760 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7761
7762         * offix.h: Revert change to guard macros - they're used in offix.c!
7763
7764 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7765
7766         * lisp.h: Defsubred Fdelete.
7767
7768         * console-msw.h:  (msprinter_default_printer): Added.
7769
7770         * console-msw.c (msprinter_canonicalize_console_connection):
7771         (msprinter_canonicalize_device_connection): Added.
7772
7773         * device-msw.c (msprinter_default_printer):
7774         (Fmswingows_get_default_printer):
7775         (signal_enum_priner_error):
7776         (Fmswingows_printer_list): Added.
7777
7778 2000-07-19  Martin Buchholz <martin@xemacs.org>
7779
7780         * XEmacs 21.2.35 is released.
7781
7782 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7783
7784         * select-x.c (x_handle_selection_request):
7785         Text selected in xemacs and pasted into xterm failed to appear.
7786         Spelling fixes and cosmetic changes.
7787
7788 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7789
7790         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7791         XEmacs frame (fix for doubling chars in dialog boxes).
7792
7793 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7794
7795         * select.c (select_convert_in, select_convert_out):
7796         Don't call intern() every time.
7797
7798         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7799         * select.c (vars_of_select): Initialise them.
7800
7801 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7802
7803         * select.c (selection-coercible-types): New.
7804
7805         * select.c (own-selection-internal):
7806         * select.c (get-selection-internal):
7807         MULE bug fix - these should default to COMPOUND_TEXT and not
7808         STRING for MULE. I think.
7809
7810         * select.c (select_convert_out): Use selection-coercible-types
7811         to find types that we can attempt to perform coercions on.
7812
7813 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7814
7815         * mule-wnnfns.c:
7816         * mule-canna.c:
7817         Add coding: cookie to identify encoding.
7818
7819         * mule-canna.c (CANNA_mode_keys): make static.
7820         Use proper prototypes, even for functions of no arguments.
7821         Remove external prototype for Fding().
7822
7823         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7824
7825         * select.c (syms_of_select): Add missing DEFSUBR.
7826
7827 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7828
7829         * select.c (get_selection_internal, own_selection_internal):
7830         Make the type default to STRING, rather than placing a nil type
7831         into Vselection_alist.
7832
7833 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7834
7835         * gpmevent.c (tty_selection_exists_p):
7836         * gpmevent.c (tty_own_selection):
7837         Updated parameter lists.
7838
7839 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7840
7841         * select.h (selection-alist): Removed declaration.
7842
7843         * select.h (get_local_selection):
7844         * select.c (get_local_selection):
7845         Made static.
7846
7847         * select.h (convert_selection): Removed declaration.
7848         * select.c (convert_selection): Removed.
7849         This function belongs in Lisp.
7850
7851         * select.h (select_convert_in): Declare.
7852         * select.h (select_convert_out): Declare.
7853         * select.c (select_convert_in): New.
7854         * select.c (select_convert_out): New.
7855         New conversion functions for other files to call.
7856
7857         * select.h (select_notify_buffer_kill): Declare.
7858         * select.c (select_notify_buffer_kill): New.
7859         New functions that get called from kill-buffer.
7860
7861         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7862         X-specific lisp code.
7863
7864         * select.h: Declare some of the lisp-visible functions for
7865         external use.
7866
7867         * select.c (clean_local_selection_data): Removed. This was
7868         a disgusting function, and previously should have been in
7869         select-x.c in any case. The functionality is now provided
7870         in select-convert-from-integer (select.el).
7871
7872         * select.c (available-selection-types): Fixed stupidity where
7873         INTEGER and ATOM got added twice. Also add STRING when we see an
7874         extent.
7875
7876         * select.c (get-selection-internal): Removed symbol stripping. No
7877         longer causes conversion when data comes from the internal cache.
7878
7879         * select.c (syms_of_select): Added new functions.
7880
7881         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7882         error checking - previously this called abort!
7883
7884         * select-x.c (x_own_selection): Changed comment.
7885
7886         * select-x.c (x_handle_selection_request): Use select_convert_out.
7887         Don't mess with selection-alist; it's an internal variable of select.c.
7888
7889         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7890
7891         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7892         rather than messing with selection-alist.
7893
7894         * select-msw.c (mswindows_get_foreign_selection):
7895         Use TO_INTERNAL_FORMAT rather than hacking.
7896
7897 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7898
7899         * process-unix.c (unix_open_multicast_group):
7900         (unix_open_multicast_group): Remove useless casts.
7901
7902 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7903
7904         * sound.c (Fplay_sound): Fix `unused variable' warning.
7905
7906         * emacs.c (main): Use correct type for _environ on SCO5.
7907
7908 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7909
7910         * console.h (own_selection_method):
7911         * console.h (selection_exists_p_method):
7912         * console.h (available_selection_types_method): New.
7913         * console.h (register_selection_data_type_method): New.
7914         * console.h (selection_data_type_name): New.
7915
7916         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7917         function & alist to track GlobalAlloc()'d handles that need
7918         releasing when the clipboard data gets replaced or emptied.
7919
7920         * event-msw.c (mswindows_wnd_proc): Call it.
7921
7922         * lisp.h, general.c (Qappend): New symbol representing a
7923         `how-to-add' mode.
7924
7925         * select.c (own-selection-internal):
7926         * select.c (selection-exists-p):
7927         * select.c (available-selection-types): New.
7928         * select.c (register-selection-data-type): New.
7929         * select.c (selection-data-type-name): New.  New functions to deal
7930         with device-specific selection data formats.
7931         * select.c (selection-converter-out-alist): Renamed.
7932         * select.c (selection-converter-in-alist): New.
7933         * select.c (selection-appender-alist): New.  Added new alists.
7934         * select.c (syms_of_select, vars_of_select): Added new symbols &
7935         variables.
7936         * select.c (get_local_selection): Split.
7937         * select.c: Removed spurious type checking - selections may now be
7938         of any type, not just strings.
7939         * select.c (own-selection-internal):
7940
7941         * select.h, select.c (convert_selection): New. Created
7942         convert_selection() function based on get_local_selection().
7943         * select.h, select.c (QCF_*): New symbols representing mswindows
7944         clipboard formats.
7945         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7946         symbols representing `how-to-add' modes.
7947
7948         * select-msw.c (x_sym_p): New.
7949         * select-msw.c (symbol_to_ms_cf): New.
7950         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7951         symbols & clipboard formats. Can also handle string names.
7952         * select-msw.c (mswindows_own_selection):
7953         * select-msw.c (mswindows_selection_exists_p):
7954         Added `data-type' parameter. Use it.
7955         * select-msw.c (mswindows_available_selection_types): New.
7956         * select-msw.c (mswindows_register_selection_data_type): New.
7957         * select-msw.c (mswindows_selection_data_type_name): New.
7958         * select-msw.c (mswindows_own_selection):
7959         * select-msw.c (mswindows_get_foreign_selection):
7960         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7961         * select-msw.c (console_create_select_mswindows): Added new methods.
7962         * select-msw.c (mswindows_destroy_selection): New.
7963         * select-msw.c (Vhandle_alist): New list.
7964         * select-msw.c (mswindows_own_selection):
7965
7966         * select-x.c (x_own_selection):
7967         * select-x.c (x_selection_exists_p):
7968         * select-x.c: Added some comments about maybe using new
7969         functionality.
7970         * select-x.c (x_own_selection):
7971
7972         * specifier.c: Remove definition of Qappend (now in general.c)
7973         * specifier.c (syms_of_specifier): Remove Qappend.
7974
7975 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7976
7977         * config.h.in: Add socklen_t.
7978
7979         * s/decosf4-0.h: No special compiler flags needed or desired.
7980         In particular, undefine _BSD for DEC OSF 4.0.
7981
7982 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7983
7984         * redisplay-msw.c (msprinter_frame_output_end): Added.
7985         (console_type_create_redisplay_mswindows): Referred the above.
7986
7987         * frame.c (setup_frame_without_minibuffer): Do not create a
7988         default minibuffer frame on a printer device.
7989
7990         * frame-msw.c (apply_dc_geometry): Added.
7991         (msprinter_start_page):
7992         (msprinter_init_frame_3):
7993         (msprinter_eject_page): Use it.
7994
7995         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7996         and removed residual duplex and orientation properties.
7997
7998 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7999
8000         * eval.c (function_argcount): Work around a DEC CC compiler bug.
8001
8002         * unexalpha.c: Remove system prototypes from C sources!
8003
8004 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
8005
8006         * eval.c: Remove references to M-x edit-options in DEFUNs for
8007         `defvar' and `defconst'.
8008
8009 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8010
8011         * config.h.in: Remove SMART_INCLUDE hackery.
8012
8013         PostgreSQL hacking:
8014         * config.h.in: Don't use SMART_INCLUDE.
8015
8016         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8017         * inline.c: Simply #include "postgresql.h"
8018         * postgresql.c:
8019         - Don't use SMART_INCLUDE
8020         - Use simply "const".
8021         - Use standard doc string conventions.
8022         - Use correct type for result of PQstatus.
8023
8024 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8025
8026         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8027
8028         C++ compilation changes.
8029         * config.h.in (EXTERN_C): Define.
8030         * config.h.in (not): This is also a C++ keyword.
8031         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8032         * cm.c: Use EXTERN_C.
8033         * redisplay-tty.c: Use EXTERN_C.
8034         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8035
8036 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8037
8038         * general.c: Remove duplicate definition for Qfunction.
8039
8040 2000-07-08  Ben Wing  <ben@xemacs.org>
8041
8042         * device-msw.c (msprinter_init_device):
8043         * device-msw.c (sync_printer_with_devmode):
8044         * device-msw.c (handle_devmode_changes):
8045         * device-msw.c (print_dialog_worker):
8046         * device-msw.c (Fmsprinter_apply_settings):
8047         * device-msw.c (hash_devmode):
8048         * device-msw.c (Fmsprinter_settings_despecialize):
8049         use Qmswindows_tstr, not Qctext.
8050
8051         * vm-limit.c (check_memory_limits):
8052         avoid infinite loop printing warning messages.
8053
8054 2000-07-05  Craig Lanning  <lanning@scra.org>
8055
8056         * Makefile.in.in: Add support for including the Windows resources
8057         when building with the cygwin and mingw targets.
8058
8059         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8060         not set or not correct.
8061         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8062         (init_initial_directory): Don't try to use $PWD on the
8063         WIN32_NATIVE target.
8064
8065         * s\cygwin32.h:
8066         [[Add -mwindows to eliminate console window.]] not required --ben
8067         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8068         (MAIL_USE_POP): removed; now handled by configure.
8069
8070         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8071         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8072         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8073         (MAIL_USE_POP): removed; now handled by configure.
8074         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8075         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8076         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8077         constant string.
8078         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8079         up from <winsock.h> via systime.h.
8080         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8081         (getpagesize): from Dan Holmsand, added.
8082         Added #endif which was left dangling by Ben's mega patch; added
8083         comment to help prevent this in the future.
8084
8085         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8086
8087 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8088
8089         * console-msw.h (struct mswindows_device): Removed unnecessary
8090         cached device geometry values.
8091         Added update_tick and an accessor macro.
8092         (Lisp_Devmode): Added lrecord declaration.
8093         (struct msprinter_device): Contain devmode as a Lisp object.
8094         Added mswindows_get_selected_frame_hwnd();
8095
8096         * console.h (struct console_methods): Indentation nitpicking.
8097
8098         * device-msw.c (mswindows_init_device): Do not initialize geometry
8099         cache. Initialize update tick.
8100         (mswindows_device_system_metrics): Ask the device for its geometry.
8101         (global_free_2_maybe):
8102         (devmode_to_hglobal):
8103         (handle_printer_changes):
8104         (ensure_not_printing):
8105         (print_dialog_worker):
8106         (Fmsprinter_print_setup_dialog):
8107         (Fmsprinter_print_dialog):
8108         (plist_get_margin):
8109         (plist_set_margin):
8110         (Fmsprinter_page_setup_dialog): Added functions.
8111         (sync_printer_with_devmode):
8112         (handle_devmode_changes):
8113         (Fmsprinter_get_settings):
8114         (Fmsprinter_select_settings):
8115         (Fmsprinter_apply_settings):
8116         (allocate_devmode):
8117         (Fmsprinter_settings_copy):
8118         (Fmsprinter_settings_despecialize):
8119         (print_devmode):
8120         (finalize_devmode):
8121         (equal_devmode):
8122         (hash_devmode): Added functions
8123         (syms_of_device_mswindows): Init devmode lrecord class.
8124
8125         * device.h: Added an exfun for find-device.
8126
8127         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8128         geometry; although, recreate the device compatible DC.
8129
8130         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8131         (msprinter_init_frame_3):
8132         (msprinter_frame_property):
8133         (msprinter_internal_frame_property_p):
8134         (msprinter_frame_properties):
8135         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8136         print job properties (will move to device settings).
8137
8138         * lisp.h: Added symbols.
8139
8140         * general.c (syms_of_general): Declared them.
8141
8142         * hash.c (string_hash): Added.
8143
8144         * lrecord.h (lrecord_type): Added devmode lrecord type.
8145
8146 2000-07-02  Mike Sperber <mike@xemacs.org>
8147
8148         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8149         FreeBSD 4.0.
8150
8151 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8152
8153         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8154         integer.
8155
8156 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8157
8158         * data.c (Fstring_to_number): Don't recognize floating point if
8159         base is not 10.
8160
8161 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8162
8163         * glyphs-widget.c (tab_control_query_geometry):
8164         (widget_query_geometry):
8165         (button_query_geometry):
8166         * glyphs.c (text_query_geometry):
8167         Enforce type correctness.
8168
8169 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8170
8171         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8172         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8173
8174 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8175
8176         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8177         conflicts with gcc's fixincluded version of FOO.h.
8178
8179         * glyphs.h (image_instance_geometry): Remove trailing `,'
8180
8181 2000-06-08  Mike Alexander  <mta@arbortext.com>
8182
8183         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8184         (shove_thread): Don't write the same output twice
8185         (make_ntpipe_output_stream): Increase priority of shove thread
8186         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8187         chance to run
8188         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8189         it.
8190
8191 2000-06-12  Ben Wing  <ben@xemacs.org>
8192
8193         * s\mingw32.h (sigset):
8194         * s\windowsnt.h (sigset):
8195         rename msw_ to mswindows_ for consistency with general convention.
8196
8197 2000-06-12  Ben Wing  <ben@xemacs.org>
8198
8199         * console-msw.c:
8200         * console-msw.c (mswindows_get_console_hwnd):
8201         * console-msw.c (mswindows_ensure_console_allocated):
8202         * console-msw.c (mswindows_hide_console):
8203         * console-msw.c (mswindows_show_console):
8204         * console-msw.c (mswindows_ensure_console_buffered):
8205         * console-msw.c (mswindows_output_console_string):
8206         * console-msw.c (mswindows_windows9x_p):
8207         * console-msw.h:
8208         * device-msw.c (mswindows_get_workspace_coords):
8209         * device-msw.c (mswindows_device_system_metrics):
8210         * dialog-msw.c (mswindows_popup_dialog_box):
8211         * event-msw.c (mswindows_wnd_proc):
8212         * frame-msw.c (mswindows_size_frame_internal):
8213         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8214         * menubar-msw.c (displayable_menu_item):
8215         * menubar-msw.c (mswindows_char_is_accelerator):
8216         * nt.c:
8217         * nt.c (mswindows_sigset):
8218         * nt.c (mswindows_sigrelse):
8219         * nt.c (mswindows_sigpause):
8220         * nt.c (mswindows_raise):
8221         * nt.c (timer_proc):
8222         * ntproc.c:
8223         * ntproc.c (find_child_console):
8224         * ntproc.c (sys_kill):
8225         * print.c:
8226         * print.c (std_handle_out_external):
8227         * process-nt.c (find_child_console):
8228         * process-nt.c (send_signal_the_95_way):
8229         * process-nt.c (ensure_console_window_exists):
8230         * process-nt.c (nt_create_process):
8231         * syssignal.h:
8232         rename msw_ to mswindows_ for consistency with general convention.
8233
8234         * emacs.c:
8235         * dumper.c:
8236         include nt.h, not syswindows.h.
8237
8238         * nt.c (mswindows_fstat):
8239         * nt.c (mswindows_stat):
8240         prefix mswindows_ instead of attempting to directly override the
8241         library functions.  fix declarations.
8242
8243         * nt.h:
8244         include syswindows.h.  move some sysdep.h stuff here.
8245
8246         * ntheap.h:
8247         include syswindows.h, not <windows.h>.
8248
8249         * ntplay.c:
8250         clean up headers.
8251
8252         * sysdep.c:
8253         clean up headers.
8254
8255         * sysdep.c (sys_fstat):
8256         * sysdep.c (sys_stat):
8257         call mswindows versions when appropriate.
8258
8259         * sysdep.h:
8260         move mswin decls to nt.h.
8261
8262         * syswindows.h:
8263         add long comment describing appropriate use of the various windows
8264         headers.
8265
8266 2000-06-11  Ben Wing  <ben@xemacs.org>
8267
8268         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8269
8270 2000-06-10  Ben Wing  <ben@xemacs.org>
8271
8272         * Makefile.in.in (release):
8273         Correction to make sure xemacs.exe always dumped when correct.
8274
8275         * alloca.c:
8276         * balloon_help.c:
8277         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8278
8279         * buffer.c (set_buffer_internal):
8280         [[[[2]]]]: Remove HAVE_FEP code.
8281
8282         * buffer.c (init_initial_directory):
8283         [3].
8284
8285         * bytecode.c:
8286         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8287         individual files.
8288
8289         * callproc.c:
8290         * callproc.c (call_process_cleanup):
8291         * callproc.c (Fold_call_process_internal):
8292         * callproc.c (child_setup):
8293         * callproc.c (getenv_internal):
8294         * callproc.c (init_callproc):
8295         * callproc.c (vars_of_callproc):
8296         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8297         __CYGWIN32__ -> CYGWIN.
8298         DOS_NT -> WIN32_NATIVE.
8299         Remove MSDOS support/references, converting to WIN32_NATIVE
8300           where correct.
8301         __MINGW32__ -> MINGW.
8302         Fix windows.h includes.
8303         Remove bogus HAVE_NTGUI.
8304
8305         * config.h.in:
8306         [2].
8307
8308         * console-msw.c:
8309         mswindows_message_outputted added for use in allowing startup
8310         errors on the console to be seen.
8311
8312         * console-msw.c (msw_ensure_console_allocated):
8313         * console-msw.c (msw_output_console_string):
8314         * console-msw.c (DHEADER):
8315         * console-msw.c (DOPAQUE_DATA):
8316         * console-msw.c (DEVENT):
8317         * console-msw.c (DCONS):
8318         * console-msw.c (DCONSCDR):
8319         * console-msw.c (DSTRING):
8320         * console-msw.c (DVECTOR):
8321         * console-msw.c (DSYMBOL):
8322         * console-msw.c (DSYMNAME):
8323         Fix warnings.
8324
8325         * console-stream.c (stream_init_console):
8326         Fix text/binary problems.
8327
8328         * device-msw.c:
8329         * device-msw.c (mswindows_finish_init_device):
8330         * device-msw.c (mswindows_delete_device):
8331         [1].
8332
8333         * device.c (handle_asynch_device_change):
8334         [3].
8335
8336         * dgif_lib.c:
8337         * dgif_lib.c (DGifOpenFileName):
8338         * dgif_lib.c (DGifOpenFileHandle):
8339         * dgif_lib.c (DGifGetLine):
8340         * dgif_lib.c (DGifGetPixel):
8341         Added config.h/lisp.h, fix up includes.
8342         [1].
8343
8344         * dired-msw.c:
8345         [4].
8346
8347         * dired.c:
8348         * dired.c (file_name_completion):
8349         * dired.c (Ffile_attributes):
8350         * dired.c (syms_of_dired):
8351         [1].
8352
8353         * dumper.c:
8354         * dumper.c (pdump_file_unmap):
8355         * dumper.c (pdump_load):
8356         [1].
8357
8358         * editfns.c:
8359         * editfns.c (Ftemp_directory):
8360         * editfns.c (user_login_name):
8361         * editfns.c (Fuser_real_login_name):
8362         * editfns.c (get_home_directory):
8363         [1].
8364
8365         * elhash.c (finish_marking_weak_hash_tables):
8366         [[[[5]]]]: Fix GCC warnings.
8367
8368         * emacs.c:
8369         * emacs.c (mswindows_handle_hardware_exceptions):
8370         * emacs.c (make_arg_list_1):
8371         * emacs.c (main_1):
8372         * emacs.c (Fkill_emacs):
8373         * emacs.c (Fdump_emacs):
8374         [1].
8375         Fix problems with nested crashes, add long comment.
8376
8377         * event-Xt.c (init_event_Xt_late):
8378         [1].
8379
8380         * event-msw.c:
8381         * event-msw.c (mswindows_dde_callback):
8382         * event-msw.c (mswindows_handle_sticky_modifiers):
8383         * event-msw.c (mswindows_wnd_proc):
8384         [1].
8385         [5].
8386
8387         * events.c (character_to_event):
8388         [1].
8389
8390         * fileio.c:
8391         * fileio.c (Ffile_name_directory):
8392         * fileio.c (Ffile_name_nondirectory):
8393         * fileio.c (directory_file_name):
8394         * fileio.c (Fexpand_file_name):
8395         * fileio.c (Fsubstitute_in_file_name):
8396         * fileio.c (Ffile_name_absolute_p):
8397         * fileio.c (check_executable):
8398         * fileio.c (Ffile_readable_p):
8399         * fileio.c (Ffile_accessible_directory_p):
8400         * fileio.c (Ffile_modes):
8401         * fileio.c (Funix_sync):
8402         * fileio.c (vars_of_fileio):
8403         [1]. [4].
8404
8405         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8406
8407         Expand getdefdir defn.
8408         Fix bogus rename() comment.
8409
8410         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8411         to use standard XEmacs include files, e.g. sysfile.h, rather
8412         than system-specific includes.
8413
8414         * fns.c:
8415         * fns.c (Fsubseq):
8416         [5]. [6].
8417
8418         * frame.c (vars_of_frame):
8419         [1].
8420
8421         * getloadavg.c:
8422         * getloadavg.c (getloadavg):
8423         [1]. [6].
8424         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8425         (We don't use it elsewhere in the code; just add a comment.)
8426
8427         * gif_io.c:
8428         [6].
8429         Add config.h.
8430
8431         * glyphs-msw.c:
8432         * glyphs-msw.c (mswindows_resource_instantiate):
8433         [1].
8434
8435         * glyphs-x.c (x_native_layout_instantiate):
8436         [5].
8437
8438         * gui-msw.c (Fmswindows_shell_execute):
8439         [1].
8440
8441         * insdel.c:
8442         [4].
8443
8444         * lisp.h:
8445         [4]. [5].
8446
8447         * lread.c (locate_file_in_directory_mapper):
8448         [1].
8449
8450         * lstream.c:
8451         [4].
8452
8453         * mem-limits.h:
8454         * mem-limits.h (get_lim_data):
8455         [1].
8456
8457         * menubar-msw.c:
8458         [4].
8459
8460         * ndir.h:
8461         [1].
8462
8463         * nt.c:
8464         * nt.c (getwd):
8465         * nt.c (closedir):
8466         * nt.c (rva_to_section):
8467         * nt.c (mswindows_executable_type):
8468         [1]. [6].
8469         Fix closedir() defn.
8470
8471         * nt.h:
8472         [[[[8]]]]: *_OK defs moved to sysfile.h.
8473
8474         * ntproc.c:
8475         [6]. [7].
8476
8477         * objects-x.c:
8478         [4].
8479
8480         * print.c:
8481         * print.c (std_handle_out_external):
8482         [1]. [4].
8483
8484         * process-nt.c:
8485         * process-nt.c (nt_create_process):
8486         [6].
8487         try to fix process quoting somewhat.
8488
8489         * process-unix.c (unix_create_process):
8490         [1].
8491
8492         * process.c:
8493         * process.c (vars_of_process):
8494         Add Vnull_device.
8495
8496         * process.h:
8497         [1].
8498
8499         * realpath.c:
8500         * realpath.c (xrealpath):
8501         [1].
8502
8503         * redisplay-tty.c (init_tty_for_redisplay):
8504         [3].
8505
8506         * redisplay.c:
8507         [4]. [6].
8508
8509         * scrollbar-msw.c:
8510         [4].
8511
8512         * sheap.c:
8513         * sheap.c (more_static_core):
8514         * sheap.c (report_sheap_usage):
8515         [5]. [6].
8516
8517         * signal.c:
8518         * signal.c (alarm_signal):
8519         [1]. [6].
8520
8521         * sound.c:
8522         [6].
8523
8524         * strftime.c:
8525         * strftime.c (zone_name):
8526         [1]. [5].
8527
8528         * symsinit.h (init_sunpro):
8529         [1].
8530
8531         * syscommctrl.h:
8532         commctrl.h not in Cygwin b20.1.
8533
8534         * sysdep.c:
8535         * sysdep.c (endif):
8536         * sysdep.c (sys_subshell):
8537         * sysdep.c (init_baud_rate):
8538         * sysdep.c (emacs_get_tty):
8539         * sysdep.c (emacs_set_tty):
8540         * sysdep.c (tty_init_sys_modes_on_device):
8541         * sysdep.c (init_system_name):
8542         * sysdep.c (sys_open):
8543         * sysdep.c (interruptible_open):
8544         * sysdep.c (sys_fopen):
8545         * sysdep.c (sys_mkdir):
8546         * sysdep.c (sys_rename):
8547         * sysdep.c (get_process_times_1):
8548         [1]. [6].
8549
8550         * sysdep.h:
8551         [1].
8552
8553         * sysdir.h:
8554         * sysdir.h (DIRENTRY_NONEMPTY):
8555         [1]. [6].
8556
8557         * sysdll.c (dll_init):
8558         * sysdll.h:
8559         [1].
8560
8561         * sysfile.h:
8562         [1]. [6]. [8].
8563         added text/binary defs.
8564
8565         * sysfloat.h:
8566         [1].
8567
8568         * sysproc.h:
8569         * sysproc.h (EDESTADDRREQ):
8570         * sysproc.h (poll_fds_for_input):
8571         [1]. [6].
8572
8573         * syspwd.h:
8574         [6].
8575
8576         * syssignal.h:
8577         [1].
8578
8579         * systime.h:
8580         [1]. [6].
8581
8582         * systty.h:
8583         [1].
8584
8585         * syswindows.h:
8586         [1].
8587         Always define WIN32_LEAN_AND_MEAN.
8588
8589         * unexcw.c (unexec):
8590         [5].
8591
8592         * unexec.c:
8593         * unexec.c (copy_text_and_data):
8594         * unexec.c (adjust_lnnoptrs):
8595         [1].
8596
8597         * unexnt.c:
8598         * unexnt.c (_start):
8599         [1].
8600
8601 2000-06-07  Ben Wing  <ben@xemacs.org>
8602
8603         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8604         was used only as a model.  We've long since extracted any useful
8605         logic or code out of this. (I just did an exhaustive search.)
8606
8607         * s\msdos.h: Removed.
8608
8609         * s\windows95.h: Removed.
8610
8611 2000-06-10  Ben Wing  <ben@xemacs.org>
8612
8613         * s\cygwin32.h:
8614         [1]. [5].
8615         Don't use extern with fun defs.
8616
8617         * s\mingw32.h:
8618         [1]. [7].
8619         Remove nt\inc include.
8620         Remove getdisk, getdefdir. (The former is unused, the latter
8621         expanded in fileio.h.)
8622
8623         * s\windowsnt.h:
8624         * s\windowsnt.h (WIN32_NATIVE):
8625         * s\windowsnt.h (HAVE_STRCASECMP):
8626         [1]. [7].
8627         Add long comment about preprocessor changes.
8628         Remove getdisk, getdefdir. (The former is unused, the latter
8629         expanded in fileio.h.)
8630
8631 2000-06-10  Ben Wing  <ben@xemacs.org>
8632
8633         * m\arm.h:
8634         * m\delta.h:
8635         * m\intel386.h:
8636         * m\sequent.h:
8637         * m\template.h:
8638         * m\windowsnt.h:
8639         [1].
8640         Remove bogus/unused NO_SOCK_SIGIO.
8641
8642 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8643
8644         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8645         not an Emchar.
8646
8647 2000-06-04  Mike Sperber <mike@xemacs.org>
8648
8649         * casetab.c (set_case_table): For `set-standard-case-table',
8650         actually deposit the new case tables where the rest of XEmacs can
8651         see them.
8652
8653 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8654
8655         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8656
8657 2000-06-05  Ben Wing  <ben@xemacs.org>
8658
8659         * callproc.c (child_setup): Don't do close_load_descs() under
8660         MS Windows.  Put in a comment explaining why.
8661
8662 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8663
8664         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8665         Toolkit shell" which breaks `kill-compilation' on Windows NT
8666         native, retaining STDERR handling improvements.
8667
8668 2000-06-01  Andreas Jaeger  <aj@suse.de>
8669
8670         * s/s390.h: Support for S390, based on a patch by Martin
8671         Schwidefsky <schwidefsky@de.ibm.com>.
8672
8673 2000-05-30  Andy Piper  <andy@xemacs.org>
8674
8675         * window.c (allocate_window):
8676         (make_dummy_parent):
8677         (Fset_window_configuration): use new hashtable type.
8678
8679         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8680         (struct image_instantiator_methods):
8681         (struct Lisp_Image_Instance): make instance geometry signed.
8682
8683         * glyphs.c (instantiate_image_instantiator):
8684         (image_instance_query_geometry):
8685         (image_instance_layout):
8686         (image_instance_layout):
8687         (query_string_geometry):
8688         (text_query_geometry):
8689         (image_instantiate):
8690         (image_instantiate):
8691         (cache_subwindow_instance_in_frame_maybe):
8692         (subwindow_query_geometry): make instance geometry signed.
8693
8694         * glyphs-widget.c (widget_query_geometry):
8695         (widget_layout):
8696         (button_query_geometry):
8697         (tree_view_query_geometry):
8698         (tab_control_query_geometry):
8699         (layout_query_geometry):
8700         (layout_layout):
8701         (native_layout_layout): make instance geometry signed.
8702
8703 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8704
8705         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8706         constant.
8707
8708         * general.c (syms_of_general): Add Qfull_assoc symbol.
8709
8710         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8711         correctly.
8712         (decode_weak_list_type): Decode full-assoc type.
8713         (encode_weak_list_type): Encode full-assoc type.
8714         (Fmake_weak_list): Update doc string.
8715
8716 2000-05-30  Andy Piper  <andy@xemacs.org>
8717
8718         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8719
8720         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8721         (decode_hash_table_weakness): ditto.
8722         (Fhash_table_weakness): ditto.
8723         (Fhash_table_type): ditto.
8724         (finish_marking_weak_hash_tables): ditto.
8725         (hash_table_weakness_validate): ditto.
8726         (syms_of_elhash): ditto.
8727
8728 2000-05-28  Martin Buchholz <martin@xemacs.org>
8729
8730         * XEmacs 21.2.34 is released.
8731
8732 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8733
8734         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8735         start cache.
8736         (updating_line_start_cache): Gone.
8737         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8738         generic code to force a minimum of 1 line laid out in the
8739         CMOTION_DISP case.
8740
8741 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8742
8743         * glyphs.c (instantiate_image_instantiator): Check for initialized
8744         height & width no longer special cases IMAGE_NOTHING.
8745         (nothing_instantiate): Set height and width of instance.
8746
8747 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8748
8749         * unexelf.c (unexec): Search for ".data" section.
8750         Initialize new_data2_offset from old_data_index.
8751         Remove redundant check for ElfW.
8752
8753 2000-05-23  Andy Piper  <andy@xemacs.org>
8754
8755         * glyphs.c (get_image_instantiator_governing_domain): allow more
8756         specific domains as the governing domain rather than expecting an
8757         exact match. This fixes problems with layouts.
8758
8759 2000-05-22  Andy Piper  <andy@xemacs.org>
8760
8761         * redisplay-output.c (compare_runes): check for non-images
8762
8763         * glyphs.c (set_glyph_dirty_p): ditto.
8764         (update_glyph_cachel_data): ditto.
8765
8766         * glyphs-widget.c (layout_post_instantiate): ditto.
8767         (layout_post_instantiate): ditto.
8768
8769         * event-msw.c (mswindows_wnd_proc): warning removal.
8770
8771 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8772
8773         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8774
8775         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8776
8777         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8778
8779         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8780         (mswindows_executable_type): mingw32 now has enough headers for
8781         this to work.
8782
8783 2000-05-20  Andy Piper  <andy@xemacs.org>
8784
8785         * console-msw.c (mswindows_output_last_error): ; -> ,
8786
8787 2000-05-12  Andy Piper  <andy@xemacs.org>
8788
8789         * console-msw.c (FROB): compare ints with ints.
8790
8791 2000-05-11  Andy Piper  <andy@xemacs.org>
8792
8793         * glyphs-x.c (x_finalize_image_instance): make minimal build
8794         happy.
8795
8796 2000-05-20  Ben Wing  <ben@xemacs.org>
8797
8798         * event-Xt.c:
8799         * event-Xt.c (vars_of_event_Xt):
8800         move modifier-keys-are-sticky to event-stream.c.
8801
8802         * event-msw.c:
8803         * event-msw.c (mswindows_enqueue_mouse_button_event):
8804         * event-msw.c (key_needs_default_processing_p):
8805         * event-msw.c (XEMSW_LCONTROL):
8806         * event-msw.c (mswindows_handle_sticky_modifiers):
8807         * event-msw.c (FROB):
8808         * event-msw.c (clear_sticky_modifiers):
8809         * event-msw.c (output_modifier_keyboard_state):
8810         * event-msw.c (output_alt_keyboard_state):
8811         * event-msw.c (mswindows_wnd_proc):
8812         * event-msw.c (mswindows_modifier_state):
8813         * event-msw.c (emacs_mswindows_handle_magic_event):
8814         implement sticky modifiers.
8815
8816         * event-stream.c:
8817         * event-stream.c (vars_of_event_stream):
8818         move modifier-keys-are-sticky here.
8819
8820         * lisp.h:
8821         add CHECK_FUNCTION.
8822
8823         * rangetab.c:
8824         implement map-range-table.
8825
8826
8827 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8828
8829         * redisplay-tty.c (reset_tty_modes):
8830         (tty_redisplay_shutdown): Adjust argument type to
8831         tty_frame_output_end.
8832
8833 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8834
8835         * eval.c (Fbacktrace): Don't output a line with only right
8836         parenthesis.
8837
8838 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8839
8840         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8841         (Fpq_reset_poll): Ditto.
8842
8843 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8844
8845         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8846
8847 2000-05-16  Ben Wing  <ben@xemacs.org>
8848
8849         * buffer.c:
8850         * buffer.c (dfc_convert_to/from_internal_format):
8851         * buffer.c (reinit_vars_of_buffer):
8852         Fix conversion functions to allow reentrancy.
8853
8854         * console-msw.c:
8855         * console-msw.c (mswindows_output_last_error):
8856         New fun, generally useful -- output a human-readable
8857         version of GetLastError() on the console.
8858
8859         * console-msw.h:
8860         * console-msw.h (struct mswindows_frame):
8861         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8862
8863         * console-stream.c (stream_output_begin):
8864         * console-stream.c (stream_output_end):
8865         * console-stream.c (stream_output_vertical_divider):
8866         * console-stream.c (stream_clear_region):
8867         * console-stream.c (stream_flash):
8868         * console-stream.c (console_type_create_stream):
8869         Delete blank stream methods, not needed.
8870
8871         * console.h (struct console_methods):
8872         Split begin/end methods into window and frame.
8873
8874         * event-msw.c:
8875         * event-msw.c (mswindows_handle_paint):
8876         * event-msw.c (output_alt_keyboard_state):
8877         * event-msw.c (mswindows_wnd_proc):
8878         * event-msw.c (vars_of_event_mswindows):
8879         Comment about problems with ignored-expose.
8880         Define mswindows-debug-events; not really implemented.
8881
8882         * frame-msw.c (mswindows_init_frame_1):
8883         random cleanups.
8884
8885         * glyphs-msw.c:
8886         * glyphs-msw.c (begin_defer_window_pos):
8887         * glyphs-msw.c (mswindows_unmap_subwindow):
8888         * glyphs-msw.c (mswindows_map_subwindow):
8889         * glyphs-msw.c (mswindows_resize_subwindow):
8890         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8891
8892         * glyphs.c (make_image_instance_1):
8893         Fix crash.
8894
8895         * gutter.c (Fredisplay_gutter_area):
8896         Use new begin/end methods.
8897
8898         * lisp.h (Dynarr_new2):
8899         New creation fun.
8900
8901         * redisplay-msw.c:
8902         * redisplay-msw.c (mswindows_frame_output_begin):
8903         * redisplay-msw.c (mswindows_frame_output_end):
8904         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8905         New begin/end methods -- handle DeferWindowPos.
8906
8907         * redisplay-output.c (redisplay_move_cursor):
8908         * redisplay-output.c (redraw_cursor_in_window):
8909         * redisplay-output.c (redisplay_update_line):
8910         * redisplay-output.c (redisplay_output_window):
8911         New begin/end methods.
8912
8913         * redisplay-tty.c:
8914         * redisplay-tty.c (tty_frame_output_begin):
8915         * redisplay-tty.c (tty_frame_output_end):
8916         * redisplay-tty.c (console_type_create_redisplay_tty):
8917         New begin/end methods.
8918
8919         * redisplay-x.c:
8920         * redisplay-x.c (x_window_output_begin):
8921         * redisplay-x.c (x_window_output_end):
8922         * redisplay-x.c (console_type_create_redisplay_x):
8923         New begin/end methods.
8924
8925         * redisplay.c (redisplay_frame):
8926         * redisplay.c (Fredisplay_echo_area):
8927         New begin/end methods.
8928         use MAYBE_DEVMETH for clear_frame; it may not exist.
8929
8930         * window.h (WINDOW_XFRAME):
8931         WINDOW_XFOO macros -- get locale and decode struct pointer.
8932
8933
8934 2000-05-12  Ben Wing  <ben@xemacs.org>
8935
8936         * emacs.c:
8937         * emacs.c (ensure_no_quitting_from_now_on):
8938         * emacs.c (fatal_error_signal):
8939         * emacs.c (mswindows_handle_hardware_exceptions):
8940         * emacs.c (main):
8941         * emacs.c (Fkill_emacs):
8942         * emacs.c (shut_down_emacs):
8943         * emacs.c (assert_failed):
8944         various improvements in fatal error handling.
8945
8946         * eval.c:
8947         move preparing_for_armageddon to emacs.c.
8948
8949         * lisp.h:
8950         declare fatal_error_in_progress.
8951
8952         * print.c:
8953         * print.c (std_handle_out_external):
8954         * print.c (std_handle_out_va):
8955         * print.c (stderr_out):
8956         * print.c (stdout_out):
8957         use console under mswin when no standard output.
8958         don't do code conversion during fatal error.
8959
8960         * scrollbar.c (Fscrollbar_page_up):
8961         * scrollbar.c (Fscrollbar_page_down):
8962         fix missing else.  reindent.
8963
8964 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8965
8966         Emergency fix.
8967
8968         * glyphs.h (GLYPH_CACHEL_DESCENT):
8969         (GLYPH_CACHEL_DESCENT):
8970         (GLYPH_CACHEL_DESCENT):
8971         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8972         used in case these are inline functions.
8973         Use more absurd values to error check.
8974
8975         include window.h for error check functions.
8976
8977 2000-05-11  Ben Wing  <ben@xemacs.org>
8978
8979         * cmdloop.c (Freally_early_error_handler):
8980         Display message box under windows; otherwise, message will disappear
8981         before it can be viewed.
8982
8983         * console-msw.c:
8984         * console-msw.c (Fmswindows_message_box):
8985         * console-msw.c (FROB):
8986         * console-msw.c (syms_of_console_mswindows):
8987         Define new fun `mswindows-message-box'.
8988         #### I will merge this into `popup-dialog-box'; just give me
8989         a bit of time.
8990
8991         * general.c:
8992         * general.c (syms_of_general):
8993         Some new symbols used in `mswindows-message-box'.
8994
8995         * glyphs.c:
8996         * glyphs.c (Fset_image_instance_property):
8997         put warning in this fun.
8998
8999         * glyphs.h:
9000         * glyphs.h (GLYPH_CACHEL_WIDTH):
9001         * glyphs.h (GLYPH_CACHEL_ASCENT):
9002         * glyphs.h (GLYPH_CACHEL):
9003         * glyphs.h (GLYPH_CACHEL_GLYPH):
9004         define error-checking versions to try to catch a bug i've seen --
9005         redisplay gets in an infinite loop because the glyph width of the
9006         continuation glyph is 65535.
9007
9008         * lisp.h:
9009         Extern message-box stuff.
9010
9011         * window.c (allocate_window):
9012         * window.c (make_dummy_parent):
9013         * window.c (Fset_window_configuration):
9014         Use EQUAL not EQ for subwindow caches to make them work a bit
9015         better. (Something is still very broken.)
9016
9017
9018 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9019
9020         * glyphs.c (image_instantiate): Suppress gcc warnings.
9021         (Fmake_image_instance): Fix doc string.
9022         * specifier.c (Fmake_specifier): Ditto.
9023
9024 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9025
9026         * paths.h.in (PATH_LOCK): Removed.
9027         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9028         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9029
9030 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9031
9032         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9033         Document (featurep '(and xemacs 21.02)).
9034
9035 2000-05-09  Ben Wing  <ben@xemacs.org>
9036
9037         * buffer.c (complex_vars_of_buffer):
9038         update modeline-format doc.
9039
9040         * device.h:
9041         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9042
9043         * emacs.c:
9044         timeline of all released versions of Emacs, for use in creating
9045         authorship comments and in synching up.
9046
9047         * glyphs-widget.c (image_instantiator_buttons):
9048         * glyphs-widget.c (image_instantiator_edit_fields):
9049         * glyphs-widget.c (image_instantiator_combo_box):
9050         * glyphs-widget.c (image_instantiator_scrollbar):
9051         * glyphs-widget.c (image_instantiator_progress_guage):
9052         * glyphs-widget.c (image_instantiator_tree_view):
9053         * glyphs-widget.c (image_instantiator_tab_control):
9054         * glyphs-widget.c (image_instantiator_labels):
9055         * glyphs-widget.c (image_instantiator_layout):
9056         * glyphs-widget.c (image_instantiator_native_layout):
9057         rename decode_domain method to governing_domain.
9058
9059         * glyphs.c:
9060         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9061         * glyphs.c (add_entry_to_device_ii_format_list):
9062         make sure we don't put an entry more than once into the list.
9063         * glyphs.c (check_instance_cache_mapper):
9064         *************************************************************
9065         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9066         HAVE BEEN GETTING.
9067         *************************************************************
9068         * glyphs.c (get_image_instantiator_governing_domain):
9069         clean up, expand on new concept of governing domain.
9070         * glyphs.c (instantiate_image_instantiator):
9071         * glyphs.c (allocate_image_instance):
9072         use governing_domain instead of cache_domain in naming.
9073         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9074         * glyphs.c (make_image_instance_1):
9075         * glyphs.c (Fmake_image_instance):
9076         allow for any domain (not just device), and process the
9077         governing domain correctly.  very big doc fix.
9078         * glyphs.c (Fimage_instance_domain):
9079         new primitive, to retrieve the governing domain of an image instance.
9080         * glyphs.c (image_instantiate):
9081         use new governing_domain stuff.  this fixes a crash you could get
9082         by instantiating certain widget glyphs in frame locales. (should
9083         signal an error instead of crashing.)
9084         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9085         * glyphs.c (Fglyphp): clean up doc.
9086         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9087         * glyphs.c (syms_of_glyphs):
9088         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9089         * glyphs.c (image_instantiator_format_create): add some comments about
9090         bogus code.
9091         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9092         for current-display-table. (Apparently Hrjove implemented in 1998 a
9093         design I wrote up in 1996, but didn't update the doc string.)
9094
9095         * glyphs.h: clean up a doc string.
9096         * glyphs.h (governing_domain):
9097         * glyphs.h (struct image_instantiator_methods):
9098         changes for governing_domain stuff.
9099
9100         * gutter.c:
9101         * gutter.c (Fgutter_specifier_p):
9102         * gutter.c (Fgutter_size_specifier_p):
9103         * gutter.c (Fgutter_visible_specifier_p):
9104         * objects.c:
9105         * objects.c (Fcolor_specifier_p):
9106         * objects.c (Ffont_specifier_p):
9107         * objects.c (Fface_boolean_specifier_p):
9108         doc strings moved to make-*-specifier.
9109
9110         * redisplay.c (add_disp_table_entry_runes_1):
9111         * redisplay.c (generate_fstring_runes):
9112         * redisplay.c (screen):
9113         add random comments and doc strings.
9114
9115         * specifier.c:
9116         * specifier.c (Fmake_specifier):
9117         major overhaul of this doc string.
9118
9119         * specifier.c (Fvalid_specifier_domain_p):
9120         comment about the bogosity of image instances being domains.
9121         * specifier.c (decode_domain):
9122         now non-static, used in glyphs.c.
9123         * specifier.c (specifier_instance):
9124         comment about the bogosity of image instances being domains.
9125         * specifier.c (Fgeneric_specifier_p):
9126         move doc string to make-generic-specifier.
9127         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9128         rebackslashify.
9129
9130         * specifier.h:
9131         * specifier.h (DOMAIN_FRAME):
9132         * specifier.h (DOMAIN_LIVE_P):
9133         * specifier.h (DOMAIN_XDEVICE):
9134         rebackslashify.
9135         add comments about problems with these macros.
9136         prototype for decode_domain.
9137
9138         * toolbar.c:
9139         * toolbar.c (Ftoolbar_specifier_p):
9140         move doc string to `make-toolbar-specifier'.
9141
9142         * window.c (window_unmap_subwindows_cache_mapper):
9143         *************************************************************
9144         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9145         HAVE BEEN GETTING.
9146         *************************************************************
9147
9148 2000-05-09  Andy Piper  <andy@xemacs.org>
9149
9150         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9151
9152         * window.c (Fset_window_configuration): reset the frame subwindow
9153         cache and re-initialize the window subwindow caches.
9154
9155         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9156
9157 2000-05-09  Ben Wing  <ben@xemacs.org>
9158
9159         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9160         DWORD.
9161
9162 2000-04-26  Mike Woolley  <mike@bulsara.com>
9163
9164         * ntheap.c: Changed recreate_heap to limit the amount reserved
9165         for the heap to that which is actually available. Also now
9166         displays a message box (with some dignostics) in the event that
9167         it still can't start.
9168
9169 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9170
9171         * callproc.c (Fold_call_process_internal): GCPRO path
9172
9173 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9174
9175         Patch by Bill Perry.
9176
9177         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9178         back data instead of #ifdef.
9179         (Fscrollbar_page_down): ditto.
9180
9181 2000-05-07  Ben Wing  <ben@xemacs.org>
9182
9183         * buffer.h:
9184         Kludge for defining Qmswindows_tstr.
9185
9186         * nt.c:
9187         * nt.c (open_input_file):
9188         * nt.c (open_output_file):
9189         * nt.c (rva_to_section):
9190         * nt.c (mswindows_executable_type):
9191         Move all memory-mapped-file routines here (some were in unexnt.c,
9192         which is bad because they are used by process-nt.c, and unexnt
9193         won't be around when portable dumping).  Synched the above routines
9194         with FSF 20.6.
9195
9196         * nt.h:
9197         Removed ifdef'd out bogus code.
9198         Fixed some prototypes.
9199
9200         * nt.h (file_data):
9201         * nt.h (OFFSET_TO_RVA):
9202         * nt.h (RVA_TO_OFFSET):
9203         * nt.h (RVA_TO_PTR):
9204         Moved the memory-mapped-file structures, macros and prototypes
9205         here, to parallel nt.c.  ntheap.h should really be removed
9206         entirely, and it's a non-portable-dumper specific file.
9207
9208         * ntheap.h (round_to_next):
9209         Moved the memory-mapped-file structures, macros and prototypes
9210         to nt.h.
9211
9212         * ntproc.c (compare_env):
9213         Moved rva_to_section and mswindows_executable_type to nt.c.
9214         Moved compare_env to process-nt.c.
9215         ntproc.c will die, one day.
9216
9217         * ntproc.c (sys_spawnve):
9218         Account for win32_ -> mswindows_.
9219
9220         * process-nt.c:
9221         * process-nt.c (struct nt_process_data):
9222         * process-nt.c (ensure_console_window_exists):
9223         * process-nt.c (compare_env):
9224         * process-nt.c (nt_create_process):
9225         * process-nt.c (nt_kill_process_by_pid):
9226         * process-nt.c (syms_of_process_nt):
9227         * process-nt.c (vars_of_process_nt):
9228         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9229         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9230         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9231         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9232         Move compare_env here from ntproc.c.
9233
9234         * process.c (Fprocess_send_region):
9235         Takes an optional fourth argument, BUFFER, which should fix some
9236         problems with call-process.
9237
9238         * syscommctrl.h:
9239         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9240
9241         * syswindows.h:
9242         Move ICC_BAR_CLASSES to syscommctrl.h.
9243         Add preliminary macros for MSWindows/Mule.  More to come.
9244
9245         * unexnt.c:
9246         * unexnt.c (unexec):
9247         open_output_file moved to nt.c.
9248
9249
9250 2000-05-05  Andy Piper  <andy@xemacs.org>
9251
9252         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9253         instance from the frame cache also since GC may catch up too late
9254         to make frame deletion sane.
9255
9256 2000-05-04  Andy Piper  <andy@xemacs.org>
9257
9258         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9259         (x_finalize_image_instance): ungcpro on deletion.
9260
9261         * glyphs.c (image_instantiator_format_create): give pointers a
9262         query geometry method so that the geometry is at least set.
9263
9264         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9265         initialize layouts if using widgets.
9266
9267 2000-05-03  Andy Piper  <andy@xemacs.org>
9268
9269         * nt.c: remove bogus reference to sysmmsystem.h
9270
9271         * gui-x.c (popup_selection_callback): fix no selection abort.
9272
9273 2000-05-02  Andy Piper  <andy@xemacs.org>
9274
9275         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9276         (mswindows_widget_instantiate): ditto.
9277
9278         * glyphs-widget.c (initialize_widget_image_instance): initialize
9279         children correctly.
9280         (widget_instantiate): cope with children and items in the same
9281         instance.
9282
9283         * glyphs.c (mark_image_instance): cope with children as a first
9284         class member.
9285         (image_instance_equal): ditto.
9286         (image_instance_hash): ditto.
9287         (image_instance_changed): ditto.
9288
9289 2000-04-30  Andy Piper  <andy@xemacs.org>
9290
9291         * glyphs.c (subwindow_query_geometry): new function. Return some
9292         defaults.
9293         (subwindow_instantiate): don't assign dimensions if none have been
9294         given.
9295         (image_instantiator_format_create): add subwindow_query_geometry.
9296         (print_image_instance): cope with layouts as widgets.
9297
9298 2000-04-29  Andy Piper  <andy@xemacs.org>
9299
9300         * frame.c (delete_frame_internal): call
9301         free_frame_subwindow_instance_cache so that all subwindows are
9302         finalized before their parent.
9303         (mark_frame): remove subwindow_cachels.
9304         (Fmake_frame): remove subwindow_cachel manipulation.
9305         (allocate_frame_core): subwindow_instance_cache is a weak list.
9306         (delete_frame_internal): set subwindow_instance_cache to nil.
9307
9308         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9309         finalization safe.
9310         (mswindows_finalize_image_instance): use the device
9311         not the domain as the domain may have died already.
9312
9313         * glyphs-x.c (x_finalize_image_instance): ditto.
9314         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9315         HEIGHT.
9316
9317         * redisplay-output.c (redisplay_unmap_subwindows): update for
9318         subwindow instance cache as a weak list.
9319         (redisplay_unmap_subwindows_maybe): ditto.
9320         (redisplay_unmap_subwindows_except_us): ditto.
9321
9322         * glyphs.c (unmap_subwindow): error checking will check the domain
9323         so don't deal with it here. Don't use cachels anymore.
9324         (map_subwindow): ditto.
9325         (update_subwindow_cachel_data): remove old accessor names.
9326         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9327         (Fresize_subwindow): don't update cachel.
9328         (mark_subwindow_cachels):
9329         (update_subwindow_cachel_data):
9330         (add_subwindow_cachel):
9331         (get_subwindow_cachel_index):
9332         (update_subwindow_cachel):
9333         (reset_subwindow_cachels):
9334         (mark_subwindow_cachels_as_not_updated): deleted.
9335         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9336         subwindow instance to the frame cache.
9337         (find_matching_subwindow): update for subwindow instance cache as
9338         a weak list.
9339         (update_widget_instances): ditto.
9340         (image_instance_type_to_mask):inlined.
9341         (free_frame_subwindow_instance_cache): new function. finalize all
9342         subwindows that are instantiated.
9343
9344         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9345         of cachel information.
9346         (IMAGE_INSTANCE_DISPLAY_X):
9347         (IMAGE_INSTANCE_DISPLAY_Y):
9348         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9349         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9350         (XIMAGE_INSTANCE_DISPLAY_X):
9351         (XIMAGE_INSTANCE_DISPLAY_Y):
9352         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9353         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9354         remove subwindow_cachel structure and function references.
9355         (image_instance_type_to_mask): inline from glyphs.c
9356
9357         * redisplay.c (redisplay_frame): remove subwindow_cachel
9358         references.
9359
9360         * frame.h (struct frame): remove subwindow_cachels.
9361         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9362
9363         * frameslots.h: add subwindow_instance_cache.
9364
9365         * window.c (replace_window): check subwindow cache of replacement.
9366         (window_unmap_subwindows_cache_mapper):
9367         (window_unmap_subwindows): new functions. Unmap all subwindows
9368         cached on this window.
9369         (mark_window_as_deleted): unmap all subwindows.
9370
9371 2000-04-27  Andy Piper  <andy@xemacs.org>
9372
9373         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9374
9375         * glyphs-widget.c (widget_layout): return something.
9376         (layout_layout): return something. Fail if not initialized.
9377         (layout_query_geometry): ditto.
9378         (image_instantiator_native_layout): new function. Initialized the
9379         native layout type.
9380         (widget_instantiate): don't do layout stuff here.
9381
9382         * glyphs.c (instantiate_image_instantiator): reorded calling or
9383         instantiate and post_instantiate with layout in between.
9384         (image_instance_layout): be more selective about deciding whether
9385         the layout has been done or not.
9386
9387         * glyphs.h (struct image_instantiator_methods): return a value
9388         from layout_method.
9389
9390 2000-04-26  Andy Piper  <andy@xemacs.org>
9391
9392         * glyphs.c (allocate_image_instance): make initial width and
9393         height unspecified. Set initialized to 0.
9394
9395         * syscommctrl.h new file. Encapsulates commctrl.h.
9396
9397         * syswindows.h new file. Encapsulates windows.h.
9398
9399         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9400         * nt.c: ditto.
9401         * console-msw.h: ditto.
9402
9403         * redisplay-tty.c (tty_output_display_block): remove layout references.
9404
9405         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9406         window handle rather than just the frame.
9407
9408         * glyphs.c (mark_image_instance): remove layout references.
9409         (print_image_instance): ditto.
9410         (image_instance_equal): ditto.
9411         (image_instance_hash): ditto.
9412         (decode_image_instance_type): ditto.
9413         (encode_image_instance_type): ditto.
9414         (image_instantiate): ditto.
9415         (allocate_glyph): ditto.
9416         (Fimage_instance_height): ditto.
9417         (Fimage_instance_width): ditto.
9418         (update_subwindow): ditto.
9419
9420         * redisplay-x.c (x_output_display_block): recode for layouts as
9421         widgets.
9422
9423         * redisplay-output.c (redisplay_output_layout): recode for layouts
9424         as widgets.
9425         (compare_runes): remove layout references.
9426
9427         * redisplay-msw.c (mswindows_output_display_block): recode for
9428         layouts as widgets.
9429
9430         * glyphs-widget.c (image_instantiator_layout): remove
9431         layout_possible_dest_types.
9432         (layout_possible_dest_types): deleted.
9433
9434         * glyphs.h (image_instance_type): remove layout references.
9435         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9436         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9437         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9438
9439 2000-04-25  Andy Piper  <andy@xemacs.org>
9440
9441         * glyphs-widget.c (image_instantiator_buttons):
9442         (image_instantiator_edit_fields):
9443         (image_instantiator_combo_box):
9444         (image_instantiator_scrollbar):
9445         (image_instantiator_progress_guage):
9446         (image_instantiator_tree_view):
9447         (image_instantiator_tab_control):
9448         (image_instantiator_labels):
9449         (image_instantiator_layout): call default post_instantiate method.
9450         (widget_post_instantiate): new function. Simply lays out the
9451         widgets.
9452
9453         * glyphs.h (struct image_instantiator_methods): add
9454         post_instantiate method.
9455
9456         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9457         method calls.
9458
9459 2000-04-23  Andy Piper  <andy@xemacs.org>
9460
9461         * glyphs.h (struct image_instantiator_methods): add
9462         decode_domain_method.
9463         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9464         derived from the domain.
9465         (IMAGE_INSTANCE_FRAME): new accessor.
9466         (XIMAGE_INSTANCE_FRAME): ditto.
9467
9468         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9469         instead of _SUBWINDOW_FRAME.
9470         (finalize_image_instance): ditto.
9471         (Fimage_instance_foreground): ditto.
9472         (Fimage_instance_background): ditto.
9473         (image_instantiate): ditto.
9474         (update_subwindow_cachel): ditto.
9475         (update_subwindow): ditto.
9476         (unmap_subwindow): ditto.
9477         (map_subwindow): ditto
9478         (subwindow_instantiate): ditto.
9479         * glyphs-msw.c (mswindows_update_widget): ditto.
9480         (mswindows_progress_gauge_instantiate): ditto.
9481         (mswindows_tab_control_update): ditto.
9482         * glyphs-x.c (x_update_widget): ditto.
9483         (x_widget_instantiate): ditto.
9484         (x_tab_control_instantiate): ditto.
9485         (x_tab_control_update): ditto.
9486         * event-msw.c (mswindows_wnd_proc): ditto
9487
9488         * glyphs-widget.c (image_instantiator_layout): use
9489         subwindow_decode_domain.
9490         (image_instantiator_buttons): ditto.
9491         (image_instantiator_edit_fields): ditto.
9492         (image_instantiator_combo_box): ditto.
9493         (image_instantiator_scrollbar): ditto.
9494         (image_instantiator_progress_guage): ditto.
9495         (image_instantiator_tree_view): ditto.
9496         (image_instantiator_tab_control): ditto.
9497         (image_instantiator_labels): ditto.
9498         (image_instantiator_layout): ditto.
9499
9500         * glyphs.c: add instance error checking to many functions.
9501         (instantiate_image_instantiator): decode device from cache_domain.
9502         (image_instantiate): partially rewrite by using
9503         decode_image_instantiator_domain to determine what domain the
9504         instance needs to be cached in.
9505         (decode_image_instantiator_domain): new function. Determine what
9506         domain the image needs to be cached in.
9507         (check_window_subwindow_cache): new error checking function.
9508         (check_instance_cache_mapper): ditto.
9509         (check_image_instance_structure): ditto.
9510         (subwindow_decode_domain): new function. Encodes a window as a
9511         subwindow's cache domain.
9512         (image_instantiator_format_create): use it for text and
9513         subwindows.
9514
9515 2000-04-21  Andy Piper  <andy@xemacs.org>
9516
9517         * glyphs.c (image_instance_device): new function.
9518         (image_instance_frame): new function.
9519         (image_instance_window): new function.
9520         (image_instance_live_p): new function.
9521
9522         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9523         cache to nil.
9524
9525         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9526         (IMAGE_INSTANCE_DOMAIN): new accessor.
9527         (XIMAGE_INSTANCE_DOMAIN): ditto.
9528
9529         * glyphs-x.c (x_finalize_image_instance): device->domain.
9530
9531         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9532         (mswindows_finalize_image_instance): ditto.
9533
9534         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9535         (gif_instantiate): ditto.
9536         (png_instantiate): ditto.
9537         (tiff_instantiate): ditto.
9538
9539         * glyphs.c (instantiate_image_instantiator): use domain rather
9540         than device.
9541         (mark_image_instance): device -> domain.
9542         (print_image_instance): ditto.
9543         (finalize_image_instance): ditto.
9544         (image_instance_equal): ditto.
9545         (allocate_image_instance): ditto.
9546         (Fcolorize_image_instance): ditto.
9547         (query_string_geometry): ditto.
9548         (image_instantiate): ditto
9549         (query_string_font): ditto.
9550         (image_instantiate): ditto.
9551         (update_subwindow): ditto.
9552         (unmap_subwindow): ditto.
9553         (map_subwindow): ditto.
9554         (subwindow_instantiate): ditto.
9555
9556         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9557         (DOMAIN_FRAME): ditto.
9558         (DOMAIN_WINDOW): ditto.
9559         (DOMAIN_LIVE_P): ditto.
9560         (XDOMAIN_DEVICE): ditto.
9561         (XDOMAIN_FRAME): ditto.
9562         (XDOMAIN_WINDOW): ditto.
9563
9564         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9565         a valid specifier domain.
9566
9567 2000-04-19  Andy Piper  <andy@xemacs.org>
9568
9569         * glyphs-widget.c (syms_of_glyphs_widget): remove
9570         widget-callback-current-channel.
9571         (vars_of_glyphs_widget): ditto.
9572         * glyphs.h: ditto
9573
9574         * gui.c (get_gui_callback): revert to previous behaviour.
9575
9576 2000-04-18  Andy Piper  <andy@xemacs.org>
9577
9578         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9579         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9580         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9581
9582         * glyphs.c (image_instance_equal): add margin_width.
9583         (image_instance_hash): ditto.
9584
9585         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9586         (layout_query_geometry): ditto.
9587         (layout_layout): ditto.
9588         (syms_of_glyphs_widget): add margin-width.
9589         (image_instantiator_layout): allow margin-width.
9590
9591         * glyphs.c (update_widget_instances): make a normal function.
9592         (syms_of_glyphs): remove Qupdate_widget_instances.
9593         * glyphs.h: ditto.
9594
9595         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9596         so that we don't corrupt ideas about the last event or
9597         command. Remove widget-callback-current-channel fiddling.
9598         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9599
9600 2000-05-01  Martin Buchholz <martin@xemacs.org>
9601
9602         * XEmacs 21.2.33 is released.
9603
9604 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9605
9606         * make-src-depend: Allow dots in header file name.
9607
9608 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9609
9610         * mule-charset.h (struct charset_lookup): Add
9611         next_allocated_1_byte_leading_byte and
9612         next_allocated_2_byte_leading_byte.
9613         * mule-charset.c: Move above two variables so that those values
9614         will be dumped.
9615
9616 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9617
9618         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9619         when string length is zero.
9620         (find_charsets_in_emchar_string): Ditto.
9621
9622 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9623
9624         * lisp.h: extern Qdialog and Qmenubar.
9625
9626         * gui-x.c: added events.h.
9627                 also fixed typo which made the file uncompilable.
9628
9629         * general.c: Added Qmenubar and Qdialog
9630
9631 2000-04-28  Ben Wing  <ben@xemacs.org>
9632
9633         * frame-msw.c (mswindows_init_frame_1):
9634         * frame-msw.c (mswindows_mark_frame):
9635         * event-msw.c (mswindows_enqueue_dispatch_event):
9636         * console-msw.h:
9637         * console-msw.h (struct mswindows_frame):
9638         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9639         there are now three hash tables for callbacks.
9640         mswindows_enqueue_dispatch_event is no longer static.
9641
9642         * dialog-x.c (maybe_run_dbox_text_callback):
9643         * dialog-x.c (dbox_descriptor_to_widget_value):
9644         switch to new cons3 form for callbacks.
9645
9646         * glyphs-msw.c (mswindows_register_gui_item):
9647         * glyphs-msw.c (mswindows_widget_instantiate):
9648         * glyphs-msw.c (add_tree_item):
9649         * glyphs-msw.c (add_tab_item):
9650         new image instance parameter, so it can be passed to callback-ex.
9651         respect :callback-ex as well as :callback.
9652
9653         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9654         add :callback-ex.
9655
9656         * glyphs.c (print_image_instance):
9657         prettify, e.g. now prints widget type.
9658
9659         * gui-x.h:
9660         certain funs have new image instance parameter.
9661
9662         * gui.c:
9663         * gui.c (get_gui_callback):
9664         * gui.c (gui_item_add_keyval_pair):
9665         * gui.c (gui_item_init):
9666         * gui.c (gui_add_item_keywords_to_plist):
9667         * gui.c (mark_gui_item):
9668         * gui.c (gui_item_hash):
9669         * gui.c (gui_item_equal):
9670         * gui.c (copy_gui_item):
9671         * gui.c (syms_of_gui):
9672         recognize callback-ex in a number of places.
9673         also, fix the annoying "can't get out of yes-no dialog" bug.
9674
9675         * gui.h:
9676         * gui.h (struct Lisp_Gui_Item):
9677         recognize callback-ex in a number of places.
9678
9679         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9680         new parameter in button_item_to_widget_value.
9681
9682         * glyphs-x.c (x_update_widget):
9683         * glyphs-x.c (x_button_instantiate):
9684         * glyphs-x.c (x_button_update):
9685         * glyphs-x.c (x_progress_gauge_instantiate):
9686         * glyphs-x.c (x_edit_field_instantiate):
9687         * glyphs-x.c (x_combo_box_instantiate):
9688         * glyphs-x.c (x_tab_control_instantiate):
9689         * glyphs-x.c (x_label_instantiate):
9690         new image instance parameter in various places.
9691
9692         * event-Xt.c:
9693         * event-Xt.c (enqueue_Xt_dispatch_event):
9694         this fun gets exported.
9695
9696         * gui-msw.c:
9697         * gui-msw.c (mswindows_handle_gui_wm_command):
9698         handle both :callback and :callback-ex, and generate our own
9699         event because it's one of the callback-ex arguments.
9700
9701         * gui-x.c:
9702         * gui-x.c (popup_selection_callback):
9703         handle both :callback and :callback-ex, and generate our own
9704         event because it's one of the callback-ex arguments.
9705         * gui-x.c (button_item_to_widget_value):
9706         * gui-x.c (gui_items_to_widget_values_1):
9707         * gui-x.c (gui_item_children_to_widget_values):
9708         * gui-x.c (gui_items_to_widget_values):
9709         new image instance parameter in various places.
9710
9711         * fns.c (Freplace_list):
9712         fix small typo in doc string.
9713
9714         * lisp.h:
9715         declare enqueue_Xt_dispatch_event.
9716
9717 2000-04-28  Ben Wing  <ben@xemacs.org>
9718
9719         * buffer.c:
9720         * buffer.c (Frecord_buffer):
9721         * buffer.c (syms_of_buffer):
9722         delete record-buffer-hook.
9723
9724         * fns.c:
9725         * fns.c (Freplace_list):
9726         * fns.c (syms_of_fns):
9727         new primitive replace-list.
9728
9729         * frameslots.h:
9730         slot for old buffer-alist.
9731
9732         * lisp.h:
9733         exfun replace-list.
9734
9735         * redisplay.c:
9736         * redisplay.c (redisplay_frame):
9737         * redisplay.c (syms_of_redisplay):
9738         * redisplay.c (vars_of_redisplay):
9739         new hook buffer-list-changed-hook.
9740         call it.
9741
9742 2000-04-27  Ben Wing  <ben@xemacs.org>
9743
9744         * extents.h: extern in_modeline_generation.
9745
9746         * redisplay.c (generate_formatted_string_db): set
9747         in_modeline_generation.
9748
9749         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9750         flags if in modeline generation.  otherwise frame-modified-tick
9751         is ticked far too often.
9752         Declare in_modeline_generation.
9753
9754 2000-04-26  Ben Wing  <ben@xemacs.org>
9755
9756         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9757         option.
9758         (vars_of_emacs): add quick-build as an error-checking option.
9759         A bit kludgy, but there doesn't seem much point in creating
9760         a real var for this.
9761
9762         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9763
9764 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9765
9766         * redisplay.h (struct display_line): Add a new variable,
9767         line_continuation.
9768
9769         * redisplay.c (create_text_block): Set dl->line_continuation if
9770         the line continues.
9771         (create_string_text_block): Ditto.
9772         (regenerate_window_incrementally): Use line_continuation instead
9773         of searching continuation glyph.
9774         (add_margin_runes): Call add_glyph_rune.
9775         (add_glyph_rune): Handle margin glyph.
9776
9777 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9778
9779         * filelock.c (fill_in_lock_file_name):
9780         ANSIfy.
9781         Check for IS_ANY_SEP instead of '/'.
9782         (lock_file_1):
9783         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9784         Never check errno without first seeing that system call failed.
9785         (unlock_file): Add GCPRO.
9786         (Flock_buffer): Fix docstring.
9787         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9788
9789 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9790
9791         * sysdep.c (get_pty_max_bytes):
9792         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9793         strings longer than 252 bytes.
9794
9795         * md5.c: Unconditionally include ANSI header <limits.h>
9796
9797         * glyphs-x.c (convert_EImage_to_XImage):
9798         * lisp-union.h (union Lisp_Object):
9799         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9800
9801 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9802
9803         * filelock.c (current_lock_owner): Remove unused variable o, p.
9804
9805 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9806
9807         * callint.c: Remove multiply defined symbol Qlet
9808         (syms_of_callint): ditto.
9809
9810 2000-04-14  Andy Piper  <andy@xemacs.org>
9811
9812         * general.c (syms_of_general): add last-command, this-command, let
9813         and funcall.
9814
9815         * lisp.h: declare various symbols.
9816
9817         * glyphs.h: declare Qwidget_callback_current_channel;
9818
9819         * glyphs-widget.c (syms_of_glyphs_widget): add
9820         Qgui_callback_current_channel.
9821         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9822
9823         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9824         widget-callback-current-channel when invoking the interactive
9825         arg. Also bind last-command and next-command when invoking the
9826         widget updates.
9827         * gui-x.c (popup_selection_callback): ditto.
9828
9829         * gui.c (get_gui_callback): massage args so that we are always
9830         calling eval. This allows us to add our own variable bindings
9831         outside.
9832
9833         * glyphs-x.c (x_button_instantiate): use
9834         gui_items_to_widget_values since this is GC safe.
9835         (x_progress_gauge_instantiate): ditto.
9836         (x_edit_field_instantiate): ditto.
9837         (x_label_instantiate): ditto.
9838
9839         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9840         (emacs_Xt_event_widget_focus_out): new function
9841         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9842         focus.
9843         (emacs_Xt_event_add_widget_actions): new function. add focus
9844         functions as actions.
9845         (init_event_Xt_late): use it.
9846
9847 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9848
9849         * event-stream.c (Fdispatch_event): Doc fix.
9850
9851 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9852
9853         * postgresql.c: Remove all references to PQsetenv*.
9854
9855         * postgresql.h: Remove references to PGsetenvHandler object.
9856         * lrecord.h (lrecord_type): Ditto.
9857
9858 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9859
9860         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9861         real_heigh and real_width members, and accessor macros for these.
9862
9863         * glyphs-msw.c (init_image_instance_geometry): New function.
9864         (init_image_instance_from_dibitmap): Use it.
9865         (mswindows_resource_instantiate): Use it.
9866         (init_image_instance_from_xbm_inline): Use it.
9867         (mswindows_initialize_image_instance_mask): Use real bitmap
9868         geometry.
9869         (mswindows_create_resized_bitmap): Ditto.
9870         (mswindows_create_resized_mask): Ditto.
9871
9872         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9873         and bitmap to their surface size.
9874
9875 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9876
9877         * process-unix.c (unix_send_process): Guard against process MIA
9878         after Faccept_process_output.
9879
9880 2000-04-11  Ben Wing  <ben@xemacs.org>
9881
9882         * eval.c (unbind_to_hairy): fix brokenness introduced by
9883         nanosecond speed improvements.
9884
9885 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9886
9887         * sunplay.c (init_device): To play sounds correctly, the device
9888         apparently needs to be initialized at least once by XEmacs.  Make
9889         it so.
9890
9891 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9892
9893         * redisplay.c (add_margin_runes): Add text image glyph
9894           handling.
9895
9896 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9897
9898         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9899         gcc is newer than 2.5.
9900
9901 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9902
9903         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9904
9905         * fns.c (size_bit_vector):
9906         * alloc.c (size_vector):
9907         (make_vector_internal):
9908         (make_bit_vector_internal):
9909         (sweep_bit_vectors_1):
9910         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9911
9912 2000-04-06  Andy Piper  <andy@xemacs.org>
9913
9914         * gmalloc.c (malloc): undo previous change.
9915         (malloc): ditto.
9916         (free): ditto.
9917         (realloc): ditto.
9918
9919 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9920
9921         * line-number.c (buffer_line_number): Revert to former version.
9922
9923 2000-04-06  Andy Piper  <andy@xemacs.org>
9924
9925         * gmalloc.c (malloc): add error checking.
9926         (malloc): ditto.
9927         (free): ditto.
9928         (realloc): ditto.
9929
9930         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9931         button_item_to_widget_value arg.
9932
9933         * glyphs-x.c (x_button_instantiate): add extra
9934         button_item_to_widget_value arg.
9935         (x_progress_gauge_instantiate): ditto.
9936         (x_edit_field_instantiate): ditto.
9937         (x_label_instantiate): ditto.
9938
9939         * gui-x.c (gui_items_to_widget_values_1): add extra
9940         button_item_to_widget_value arg.
9941         (button_item_to_widget_value): add extra menu_item_p arg.
9942
9943         * gui-x.h: change signature of button_item_to_widget_value.
9944
9945         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9946         button_item_to_widget_value arg.
9947
9948 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9949
9950         * buffer.h (struct buffer): auto_save_modified should be long.
9951
9952 2000-04-05  Andy Piper  <andy@xemacs.org>
9953
9954         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9955         type.
9956         (button_query_geometry): give a little more room so that athena
9957         buttons fit.
9958
9959 2000-04-05  Andy Piper  <andy@xemacs.org>
9960
9961         * faces.c (complex_vars_of_faces): The widget face should inherit
9962         the font of the gui-element face.
9963
9964 2000-04-04  Andy Piper  <andy@xemacs.org>
9965
9966         * glyphs-x.c (x_button_update): new function. unconditionally
9967         update a button's state when the instance is dirty.
9968         (image_instantiator_format_create_glyphs_x): add x_button_update.
9969         (x_widget_instantiate): remove old resize cruft.
9970
9971 2000-04-02  Andy Piper  <andy@xemacs.org>
9972
9973         * frame.c (change_frame_size_1): The introduction of gutters means
9974         that we need to allow 0 as a potential frame dimension.
9975
9976 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9977
9978         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9979         image glyph if allow_cursor.
9980         (add_hscroll_rune): Don't allow cursor to border glyph.
9981         (create_text_block): Ditto.
9982
9983         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9984         text not in buffer.
9985         (redisplay_output_layout): Call ensure_face_cachel_complete for
9986         text image glyph.
9987
9988
9989 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9990
9991         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9992
9993         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9994         not in buffer
9995
9996         * redisplay-tty.c (tty_output_display_block): Delete the routine
9997         for text image glyph
9998         * redisplay-x.c (x_output_display_block): ditto
9999         * redisplay-msw.c (mswindows_output_display_block): ditto
10000
10001 2000-02-02  Mike Alexander  <mta@arbortext.com>
10002
10003         Note: Some of these were committed by accident as part of other
10004         patches.
10005
10006         * regex.c (regex_compile): Avoid compiler warnings.
10007
10008         * ntproc.c (sys_spawnve): Avoid compiler warnings.
10009
10010         * nt.h: Declare term_ntproc correctly.
10011
10012         * nt.c: Remove incorrect declaration of get_home_directory which
10013         is declared correctly in lisp.h.
10014
10015         * keymap.c (get_keyelt): Avoid compiler warnings.
10016         (raw_lookup_key_mapper): Avoid compiler warnings.
10017
10018         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10019
10020         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10021
10022         * filemode.c (mode_string): Avoid compiler warnings.
10023
10024         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10025         avoid warning.
10026
10027         * events-mod.h: Undef some things that winuser.h defines differently.
10028
10029         * data.c (Faset): Avoid compiler warnings.
10030
10031         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10032
10033 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10034
10035         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10036         Fall through to simple beep on error.
10037         Replace "extern" by real header file.
10038
10039         * linuxplay.c: Use nativesound.h
10040         (play_sound_data): Return error code. Be less verbose on error.
10041
10042         * sunplay.c: Use nativesound.h
10043         (play_sound_data): Return error code. Be less verbose on error.
10044
10045         * ntplay.c: Use nativesound.h
10046         (play_sound_data): Return fake error code
10047
10048         * sgiplay.c: Use nativesound.h
10049         (play_sound_data): Return error code
10050
10051         * hpplay.c: Use nativesound.h, partially implement
10052         new error code. Break compilation until finished.
10053         (play_sound_data): error code.
10054
10055         * nativesound.h (play_sound_file):
10056           (play_sound_data): Prototype in new header.
10057
10058 2000-03-31  Andy Piper  <andy@xemacs.org>
10059
10060         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10061         for toggle and radio buttons.
10062         (image_instantiator_buttons): use it.
10063
10064 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10065
10066         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10067         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10068         found. Scrollbar event probably belonged to some old config.
10069
10070 2000-03-31  Andy Piper  <andy@xemacs.org>
10071
10072         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10073         than 1.
10074         (initialize_widget_image_instance): default layout to
10075         LAYOUT_HORIZONTAL rather than 0.
10076         (widget_instantiate): reverse the item list at the end rather than
10077         every iteration.
10078         (layout_layout): re-code for the border text at the front of the
10079         item list rather than at the end.
10080         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10081         provided by the user.
10082         (widget_query_geometry): comment.
10083
10084 2000-03-30  Andy Piper  <andy@xemacs.org>
10085
10086         * glyphs-widget.c (image_instantiator_layout): allow standard
10087         widget keywords in layouts.
10088
10089         * gutter.c (output_gutter): cope with nil gutter contents.
10090
10091         * frame.c (Fset_frame_properties): add gutter docs.
10092
10093 2000-03-29  Andy Piper  <andy@xemacs.org>
10094
10095         * toolbar-msw.c (TBSTYLE_FLAT): add.
10096         (mswindows_output_toolbar): minor fiddling.
10097
10098 2000-03-29  Andy Piper  <andy@xemacs.org>
10099
10100         * gutter.c (output_gutter): force gutter size recalculation if
10101         what we are trying to display won't fit.
10102         (update_gutter_geometry): new function. A per-gutter version of
10103         update_frame_gutter_geometry.
10104         (update_frame_gutter_geometry): use it.
10105         (redraw_exposed_gutter): add extra debugging output.
10106
10107 2000-03-28  Mike Alexander  <mta@arbortext.com>
10108
10109         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10110         (pdump_file_unmap): Implement it on Windows
10111         (pdump_file_get): Save alocated handles for pdump_file_unmap
10112
10113 2000-03-28  Andy Piper  <andy@xemacs.org>
10114
10115         * gui.c (get_gui_callback): treat Quit specially.
10116
10117 2000-03-27  Andy Piper  <andy@xemacs.org>
10118
10119         * glyphs.c (image_instantiate): be careful to check in the same
10120         way we assigned.
10121
10122 2000-03-27  Didier Verna  <didier@xemacs.org>
10123
10124         * config.h.in: define the proper SMART_INCLUDE macro.
10125         handle renaming of `foo_h_path' to `foo_h_file'.
10126
10127         * database.c: ditto.
10128
10129         * emacs.c: ditto.
10130
10131         * linuxplay.c: ditto.
10132
10133         * terminfo.c: ditto.
10134
10135         * tooltalk.h: ditto.
10136
10137 2000-03-27  Andy Piper  <andy@xemacs.org>
10138
10139         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10140         gets updated whenever the face might have changed.
10141
10142 2000-03-26  Mike Alexander  <mta@arbortext.com>
10143
10144         * dumper.c (pdump_resource_free): Fix the comment.
10145
10146 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10147
10148         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10149
10150 2000-03-22  Mike Alexander  <mta@arbortext.com>
10151
10152         * dumper.c: Include Windows headers on Windows
10153         (pdump_resource_free): Add a body to the function
10154         (pdump_load): exe_name -> exe_path and add some comments.
10155
10156 2000-03-25  Mike Alexander  <mta@arbortext.com>
10157
10158         * gui.c (copy_gui_item_tree): Return a value in all cases
10159
10160 2000-03-21  Didier Verna  <didier@xemacs.org>
10161
10162         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10163         lwlib/config.h.in.
10164         (SMART_INCLUDE): new macro.
10165         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10166         the proper location.
10167
10168         * postgresql.c: use it.
10169
10170         * inline.c: ditto.
10171
10172 2000-03-24  Andy Piper  <andy@xemacs.org>
10173
10174         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10175         do this.
10176
10177 2000-03-24  Andy Piper  <andy@xemacs.org>
10178
10179         * redisplay-output.c (compare_runes): use image_instance_changed
10180         to detect changes. Do not depend on glyphs_changed, only depend on
10181         dirtiness.
10182          (redisplay_output_layout): add debug messages.
10183         (compare_runes): ditto.
10184
10185         * glyphs.h: declare new functions.
10186         (struct Lisp_Image_Instance): remove percent and associated
10187         accessors.
10188
10189         * gui.h: declare new copying functions.
10190
10191         * gui.c (copy_gui_item_tree): new function.
10192         (copy_gui_item): new function.
10193         (gui_item_id_hash): revert to standard hash.
10194         (gui_item_hash): ditto.
10195         (gui_item_hash_internal): deleted.
10196         (mark_gui_item): mark value.
10197         (gui_item_add_keyval_pair): add value.
10198         (gui_item_init): ditto.
10199         (gui_add_item_keywords_to_plist): ditto.
10200         (gui_item_equal): ditto.
10201         (syms_of_gui): add Q_value.
10202
10203         * glyphs-x.c (x_progress_gauge_update): use pending items and
10204         value for setting the state.
10205         (x_update_widget): don't set items from pending here.
10206
10207         * glyphs-widget.c (update_widget): update items here.
10208         (progress_gauge_set_property): use items for storing value. Put
10209         new value in pending items.
10210
10211         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10212         items for new value. Convert percent -> value.
10213         (mswindows_tab_control_update): don't update items here.
10214
10215         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10216         (update_subwindow): ditto.
10217         (image_instance_changed): new function. Compare hash values and
10218         past and present widget items.
10219         (image_instantiate): We more careful about where we instantiate
10220         things.
10221         (image_instantiate): add error checking.
10222
10223         * gutter.c (syms_of_gutter): use -hook.
10224
10225 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10226
10227         * console-tty.c (Fset_console_tty_input_coding_system): Use
10228         Qkeyboard.
10229         (Fset_console_tty_output_coding_system): Use Qterminal.
10230         (tty_init_console): Use Qkeyboard and Qterminal.
10231
10232 2000-03-21  Ben Wing  <ben@xemacs.org>
10233
10234         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10235         From Mike Alexander <mta@arbortext.com>.
10236
10237 2000-03-21  Ben Wing  <ben@xemacs.org>
10238
10239         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10240         process brokenness.  Proper implementation to come.
10241         * callproc.c:
10242         Rename call-process-internal to old-call-process-internal.
10243         New impl. in process.el.
10244
10245 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10246
10247         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10248
10249 2000-03-20  Andy Piper  <andy@xemacs.org>
10250
10251         * glyphs.c (full_list_hash): make hashes of the same elements in
10252         different orders return different values.
10253
10254 2000-03-20  Martin Buchholz <martin@xemacs.org>
10255
10256         * XEmacs 21.2.32 is released.
10257
10258 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10259
10260         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10261         (DFC_MALLOC_USE_CONVERTED_DATA):
10262         Add aliasing-safe casts to allow use with char* or unsigned char*
10263         lvalues.
10264
10265         * eldap.c (Fldap_open):
10266         (Fldap_search_basic):
10267         (Fldap_add):
10268         (Fldap_modify):
10269         Make C++-compilable.
10270         Make sure GCPRO'ed variables are initialized.
10271         Use temp variables to avoid repeated calls to Flength.
10272
10273 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10274
10275         * sysfile.h:
10276         Make sure PATH_MAX is always defined.
10277         Include limits.h for PATH_MAX.
10278         Deprecate use of MAXPATHLEN.
10279
10280 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10281
10282         * emacs.c: Add reinit_vars_of_fileio.
10283         * symsinit.h: Add reinit_vars_of_fileio.
10284         * fileio.c (reinit_vars_of_fileio): New.
10285         * fileio.c (Fmake_temp_name):
10286         Initialize temp_name random number from microseconds to make
10287         collisions even less likely.  Initialize always at process startup
10288         time.  (make-temp-name) used to return the same file name twice in
10289         a row when PDUMP.
10290         Random stylistic fiddling.
10291         Comment fixes.
10292
10293 2000-03-20  Andy Piper  <andy@xemacs.org>
10294
10295         * glyphs.c (image_instantiate): allow text glyphs to be
10296         instantiated in the minibuffer window.
10297
10298 2000-03-19  Andy Piper  <andy@xemacs.org>
10299
10300         * glyphs.c (image_instance_hash): be careful about which items we
10301         hash on.
10302
10303         * glyphs-widget.c (tab_control_set_property): record into pending
10304         items rather than the actual items.
10305
10306         * glyphs-x.c (x_update_widget): use pending items to update with.
10307
10308         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10309         to update with.
10310
10311         * glyphs.c (mark_image_instance): mark pending items.
10312
10313         * window.c (Fset_window_configuration): record the buffer.
10314         (Fselect_window): totally revert previous change which breaks many
10315         things.
10316
10317 2000-03-18  Andy Piper  <andy@xemacs.org>
10318
10319         * glyphs-msw.c (mswindows_tab_control_update): force selected
10320         item.
10321
10322         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10323         window domain cache, otherwise we get inconsistencies at
10324         startup. There is something fishy at startup which can lead to the
10325         minibuffer being the selected window when the gutter content is
10326         instantiated.
10327
10328         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10329         gcpros.
10330         (parse_gui_item_tree_children): ditto.
10331         (parse_gui_item_tree_item): ditto.
10332
10333         * glyphs.c (Fupdate_widget_instances): return something.
10334
10335 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10336
10337         * window.c (Fselect_window): Undo 2000-03-17 change.
10338
10339 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10340
10341         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10342         against v7.0 libraries.  Insta-coredump city until the postgres
10343         folks fix it.
10344
10345 2000-03-17  Andy Piper  <andy@xemacs.org>
10346
10347         * faces.c (complex_vars_of_faces): don't give the widget face an
10348         inherited background pixmap.
10349
10350         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10351         selected item.
10352
10353         * event-stream.c (Fdispatch_non_command_events): return something.
10354
10355         * gutter.c (output_gutter): use widget face.
10356         (clear_gutter): ditto.
10357
10358         * NEWS: adjust again.
10359
10360         * window.c (Fselect_window): make sure this runs to completion to
10361         avoid oddities with Fset_window_configuration.
10362         (Fcurrent_window_configuration): in general do not save the
10363         minibuffer as the selected window.
10364
10365         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10366
10367 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10368
10369         * emacs.c (Frunning_temacs_p): Revert previous patch.
10370         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10371
10372 2000-03-16  Andy Piper  <andy@xemacs.org>
10373
10374         * glyphs-x.c (x_tab_control_update): if no widget values then
10375         return.
10376
10377         * NEWS: update for new features.
10378
10379         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10380         synthetic event to the native system.
10381         (reinit_vars_of_event_Xt): set force_event_pending to
10382         emacs_Xt_force_event_pending.
10383
10384         * events.h (struct event_stream): add force_event_pending.
10385
10386         * specifier.c (recompute_one_cached_specifier_in_window): add
10387         comment.
10388
10389         * redisplay.c (redisplay_frame): don't call
10390         update_frame_subwindows. Reset subwindow cachels when
10391         subwindows_changed, removing this was an optimization too far.
10392
10393         * redisplay-output.c (compare_runes): reorganize so that we catch
10394         glyph changes when we want them. Set optimize_output when this
10395         would help layouts.
10396         (redisplay_output_layout): remove frame_really_changed, use
10397         optimize_output instead.
10398
10399         * redisplay-msw.c (mswindows_output_display_block): reset
10400         optimize_output after outputting a glyph.
10401         * redisplay-x.c (x_output_display_block): ditto.
10402         * redisplay-tty.c (tty_output_display_block): ditto.
10403
10404         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10405         functions.
10406         (gutter_specs_changed): do specific gutter positions.
10407         (top_gutter_specs_changed): new function. Only update the
10408         specified gutter specs.
10409         (bottom_gutter_specs_changed): ditto.
10410         (left_gutter_specs_changed): ditto.
10411         (right_gutter_specs_changed): ditto.
10412
10413         * gui.c (gui_item_hash_internal): new function, does a real hash.
10414         (gui_item_id_hash): use it.
10415         (gui_item_hash): hash the eval'ed gui_item.
10416
10417         * gui-x.c (popup_selection_callback): send an eval event to call
10418         Fupdate_widget_instances.
10419
10420         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10421         to call Fupdate_widget_instances.
10422
10423         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10424         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10425
10426         * glyphs.c: (update_frame_subwindows): deleted.
10427         (Fupdate_widget_instances): new function for updating the dirty
10428         state of widgets that might have changed.
10429         (syms_of_glyphs): add Qupdate_widget_instances.
10430         (full_list_hash): hash a list completely.
10431         (image_instance_hash): use it for items and properties.
10432
10433         * frame-msw.c (mswindows_size_frame_internal): remove unused
10434         variable.
10435
10436         * faces.h (struct face_cachel): fix comment.
10437
10438         * event-stream.c (Fdispatch_non_command_events): new
10439         function. Process non-command events, forcing an event cycle
10440         beforehand.
10441         (syms_of_event_stream): declare.
10442         (event_stream_force_event_pending): new function. Force an event
10443         on the native event queue so that an event cycle will occur next
10444         time we check.
10445
10446         * event-msw.c:
10447         (struct ntpipe_shove_stream):
10448         (mswindows_enqueue_dispatch_event):
10449         (mswindows_dequeue_dispatch_event):
10450         (mswindows_cancel_dispatch_event):
10451         (mswindows_pump_outstanding_events):
10452         (mswindows_drain_windows_queue):
10453         (mswindows_handle_paint):
10454         (mswindows_wnd_proc):
10455         (mswindows_key_to_emacs_keysym):
10456         (get_process_input_waitable):
10457         (emacs_mswindows_delete_stream_pair): re-indent file.
10458         (mswindows_need_event): do not process further fds if the windows
10459         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10460         fixes the 100% cpu problem.
10461         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10462
10463 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10464
10465         * alloc.h: New.
10466         * dumper.h: New.
10467         * dumper.c: New.
10468
10469         * emacs.c: Moved dump file searching to dumper.c.
10470         (Frunning_temacs_p): Fixed.
10471
10472         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10473         last_lrecord_type_index_assigned.
10474
10475 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10476
10477         * symsinit.h: Added reinit parameter to init_console_stream
10478         declaration.
10479
10480         * lisp.h: Added file parameter to pdump_load declaration.
10481
10482         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10483         support.  Added dump file searching.
10484
10485         * config.h.in: Added EMACS_PROGNAME.
10486
10487         * console-stream.c (init_console_stream): Fix reinitialisation
10488         when running from temacs.
10489
10490         * alloc.c (pdump): Add id support.
10491         (pdump_load): Add file parameter and signature/id support.
10492
10493         * Makefile.in.in: Add full pdump support.
10494
10495 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10496
10497         * postgresql.c: Update documentation to reflect latest code
10498         status.
10499         (print_result): Show tuple counts in printed representation when
10500         appropriate.
10501         (Fpq_put_nbytes): MULE-ize.
10502         (Fpq_get_line_async): Ditto.
10503
10504 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10505
10506         * postgresql.c (Fpq_lo_import): Fix return value.
10507         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10508
10509 2000-03-13  Ben Wing  <ben@xemacs.org>
10510
10511         * alloc.c (pdump_load):
10512         Fix compile warning under mswin.
10513
10514 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10515
10516         * postgresql.c: Mule-ization, bug fixes.
10517         Use PG_CODING to encapsulate coding system name changes.
10518         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10519         (pg-coding-system): Create.
10520
10521         (Fpq_conn_defaults): Mule-ize.
10522         (Fpq_connectdb): Mule-ize & bug fix.
10523         (Fpq_connect_start): Mule-ize.
10524         (Fpq_set_client_encoding): Mule-ize.
10525         (Fpq_finish): Document `DEAD' connection status.
10526         (Fpq_clear): Ditto.
10527         (Fpq_pgconn): Mule-ize.
10528         (Fpq_exec): Mule-ize & bug fix.
10529         (Fpq_send_query): Ditto.
10530         (Fpq_get_result): Ditto.
10531         (Fpq_res_status): Mule-ize.
10532         (Fpq_result_error_message): Mule-ize.
10533         (Fpq_ntuples): fix comments.
10534         (Fpq_fname): Mule-ize.
10535         (Fpq_fnumber): Mule-ize.
10536         (Fpq_ftype): fix comments.
10537         (Fpq_get_value): Mule-ize.
10538         (Fpq_cmd_status): Ditto.
10539         (Fpq_cmd_tuples): Ditto.
10540         (Fpq_oid_value): Ditto.
10541         (Fpq_notifies): Ditto.
10542         (Fpq_lo_import): Ditto.
10543         (Fpq_lo_export): Ditto.
10544         (Fpq_get_line): Ditto.
10545         (Fpq_put_line): Mule-ize and bug fix.
10546         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10547
10548 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10549
10550         * postgresql.c (vars_of_postgresql): Mule-ize.
10551         (Fpq_conn_defaults): Ditto.
10552
10553 2000-03-12  Ben Wing  <ben@xemacs.org>
10554
10555         * alloc.c (Fmake_byte_code):
10556         * alloc.c (debug_string_purity_print):
10557         * alloc.c (pdump_backtrace):
10558         * alloc.c (pdump_get_indirect_count):
10559         * alloc.c (pdump_register_sub):
10560         * alloc.c (pdump_register_object):
10561         * alloc.c (pdump_register_struct):
10562         * alloc.c (pdump_dump_data):
10563         * alloc.c (pdump_reloc_one):
10564         Minor cleanups.
10565
10566         * console-msw.c:
10567         * console-msw.c (GetConsoleHwnd):
10568         * console-msw.c (msw_hide_console):
10569         * console-msw.c (msw_show_console):
10570         * console-msw.c (msw_ensure_console_buffered):
10571         * console-msw.c (msw_output_console_string):
10572         * console-msw.c (console_type_create_mswindows):
10573
10574         a) Added functions to manipulate the console window for use with
10575         shell support.
10576
10577         b) Added support for writing text to the console, which is now
10578         used under Windows when xemacs is not being run non-interactively,
10579         to write text that would otherwise be destined for stdout because
10580         under these circumstances, text written to stdout tends to
10581         disappear and not be seen.
10582
10583         * console-msw.h:
10584         * event-Xt.c:
10585         * event-Xt.c (x_event_to_emacs_event):
10586         * event-Xt.c (describe_event_window):
10587         * events-mod.h (XEMACS_MOD_CONTROL):
10588         * events.c:
10589         * events.c (Fmake_event):
10590         * events.c (character_to_event):
10591         * events.c (event_to_character):
10592         * events.c (format_event_object):
10593         * events.c (Fevent_modifiers):
10594         * events.h:
10595         * events.h (struct key_data):
10596         * events.h (struct button_data):
10597         * events.h (struct misc_user_data):
10598         * frame-x.c (Fcde_start_drag_internal):
10599         * frame-x.c (Foffix_start_drag_internal):
10600         * gpmevent.c (Freceive_gpm_event):
10601         * keymap.c:
10602         * keymap.c (bucky_sym_to_bucky_bit):
10603         * keymap.c (control_meta_superify):
10604         * keymap.c (make_key_description):
10605         * keymap.c (keymap_lookup_directly):
10606         * keymap.c (create_bucky_submap):
10607         * keymap.c (keymap_store):
10608         * keymap.c (define_key_check_and_coerce_keysym):
10609         * keymap.c (define_key_parser):
10610         * keymap.c (define_key_alternate_name):
10611         * keymap.c (Fdefine_key):
10612         * keymap.c (raw_lookup_key_mapper):
10613         * keymap.c (struct map_keymap_unsorted_closure):
10614         * keymap.c (map_keymap_unsorted_mapper):
10615         * keymap.c (map_keymap_sort_predicate):
10616         * keymap.c (map_keymap_sorted):
10617         * keymap.c (accessible_keymaps_mapper_1):
10618         * keymap.c (where_is_recursive_mapper):
10619         * keymap.c (describe_map_mapper):
10620         * keymap.c (describe_map_sort_predicate):
10621         * keymap.c (describe_map):
10622         * keymap.c (complex_vars_of_keymap):
10623         And a number of other files, the key modifier preprocessor
10624         constants that xemacs uses have names that conflict with constants
10625         defined under MS Windows for other purposes, so they were renamed
10626         to begin with the prefix XEMACS_. The variables that hold such
10627         modifiers were changed to consistently be of type int to fix
10628         various compile warnings.
10629
10630         * console.c (complex_vars_of_console):
10631         * device.c:
10632         * device-msw.c:
10633         * device-msw.c (mswindows_finish_init_device):
10634         * device-msw.c (msw_get_workspace_coords):
10635         * device-msw.c (mswindows_device_system_metrics):
10636         and various other files, added support for a new
10637         device property called offset-workspace which returns the position
10638         of the upper left corner of the workspace area and goes along with
10639         the existing size-workspace property.
10640
10641         * dialog-msw.c:
10642         * dialog-msw.c (push_bufbyte_string_as_unicode):
10643         * dialog-msw.c (mswindows_popup_dialog_box):
10644         Added support for XEmacs-style accelerator specifications in
10645         button text.  Note: I didn't add support for this under X Windows,
10646         and somebody needs to do this.
10647
10648         * dialog.c:
10649         * dialog.c (Fpopup_dialog_box):
10650         Documented the support for accelerators that was just mentioned.
10651
10652         editfns.c (get_home_directory): Changed behavior under Windows
10653         when HOME not defined; former behavior was irretrievably broken.
10654
10655         * emacs.c:
10656         * emacs.c (main_1):
10657         * emacs.c (main):
10658         * minibuf.c (clear_echo_area_internal):
10659         * minibuf.c (echo_area_append):
10660         * print.c:
10661         * print.c (std_handle_out_external):
10662         * print.c (std_handle_out_va):
10663         * print.c (fatal):
10664         * print.c (write_string_to_stdio_stream):
10665         * print.c (output_string):
10666         * print.c (debug_print):
10667         * print.c (debug_backtrace):
10668         * print.c (debug_short_backtrace):
10669         Cleaned up the code that prints text to stdout so that this can be
10670         changed to output into a console window instead under MS Windows,
10671         as described above.
10672
10673         * eval.c:
10674         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10675         * eval.c (internal_catch):
10676         * eval.c (unwind_to_catch):
10677         * eval.c (throw_or_bomb_out):
10678         * eval.c (condition_case_1):
10679         * eval.c (signal_1):
10680         * eval.c (check_error_state_sanity):
10681         * eval.c (call_with_suspended_errors_1):
10682         * eval.c (call_with_suspended_errors):
10683         * eval.c (reinit_vars_of_eval):
10684         Added code to catch throw loops and check for a pesky bug that may
10685         be gone now.
10686
10687         * event-msw.c:
10688         * event-msw.c (key_needs_default_processing_p):
10689         * event-msw.c (mswindows_wnd_proc):
10690         * event-msw.c (mswindows_modifier_state):
10691         * event-msw.c (emacs_mswindows_quit_p):
10692         * event-msw.c (vars_of_event_mswindows):
10693         a) Added support for using the alt key to select menu items as is
10694         standard under MS Windows.  This is controlled using the variable
10695         menu-accelerator-enabled, just like under X Windows.  There is an
10696         option on the options menu to turn this support on.  I really
10697         think that it should be on by default under Windows, but I'm not
10698         going to make this change yet.
10699
10700         b)  Added support for dynamic display size changes under Windows.
10701
10702         * event-stream.c:
10703         * event-stream.c (maybe_echo_keys):
10704         * event-stream.c (Fnext_event):
10705         * event-stream.c (command_builder_find_leaf):
10706         * event-stream.c (lookup_command_event):
10707         * event-stream.c (execute_command_event):
10708         * event-stream.c (pre_command_hook):
10709         * event-stream.c (post_command_hook):
10710         * event-stream.c (syms_of_event_stream):
10711         * event-stream.c (vars_of_event_stream):
10712         * event-stream.c (complex_vars_of_event_stream):
10713         * events.h (struct command_builder):
10714
10715         a) Tried to clean up a little bit the horribly written x-specific
10716         accelerator code that crept into this file.  I moved this code
10717         into menubar-x.c where it belongs. I also needed to move the
10718         command builder structure into the file events.h because it is
10719         accessed directly by this accelerator code.  What I didn't do, but
10720         which should be done at some point, is to properly abstract this
10721         code using device methods instead of the kludgy way that it
10722         currently hooks into the event code.
10723
10724         b) Added the lisp variables this-command-properties and
10725         last-command- properties, which should be used to synchronize two
10726         adjacent commands in preference to playing games with the variable
10727         this-command, which is typically what happens.
10728
10729         c) Added some slightly nasty code to hook into the lisp support
10730         for shifted- motion-key selection.  This is actually necessary for
10731         somewhat complicated reasons, which are described in
10732         simple.el. (NB: I think the proper thing would be to have the code
10733         that calls the pre and post command hooks also call out to generic
10734         lisp functions in simple.el, where all built-in stuff could be
10735         added.  I will think about this more.)
10736
10737         * event-unixoid.c (poll_fds_for_input):
10738         * lread.c (readchar):
10739         * redisplay-tty.c (tty_clear_frame):
10740         * redisplay-x.c (x_get_gc):
10741         * signal.c (interrupt_signal):
10742         And a whole bunch of other files: fixed up places that printed
10743         directly to stderr to instead call the function stderr_out so that
10744         the changes I made under Windows work correctly.
10745
10746         * filemode.c (mode_string):
10747         Warning fixes.
10748
10749         * frame-msw.c:
10750         * frame-msw.c (mswindows_size_frame_internal):
10751         Fixed the computation of frame size and position to keep the frame
10752         within the workspace area, rather than within the physical
10753         dimensions of the screen, so that the frame doesn't overlap window
10754         manager decorations, such as the start menu and toolbar, typically
10755         at the bottom of the screen.
10756
10757         * frame.c (vars_of_frame):
10758         Changed the default frame title format under MS Windows to consist
10759         of buffername-XEmacs, which is standard under MS Windows.  I think
10760         it might be a good idea to change this everywhere because I think
10761         it is superior to the current frame title format, but this is the
10762         kind of change that is likely to cause some people to get annoyed,
10763         so I'm not making it.
10764
10765         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10766
10767         * gui-msw.c (mswindows_handle_gui_wm_command):
10768         Fixed compile warnings.
10769
10770         * gui-x.c:
10771         * gui-x.c (strdup_and_add_accel):
10772         * gui-x.c (button_item_to_widget_value):
10773         * gui-x.h:
10774         Added code to automatically put an accelerator onto the beginning
10775         of menu items that don't have one as is now the standard, and is
10776         described more later.  Also fixed things so that the menu item
10777         name can be an evaluated expression, again a new standard.
10778
10779         * gui.c:
10780         * gui.c (gui_item_add_keyval_pair):
10781         * gui.c (make_gui_item_from_keywords_internal):
10782         * gui.c (gui_add_item_keywords_to_plist):
10783         * gui.c (gui_item_accelerator):
10784         * gui.c (gui_name_accelerator):
10785         * gui.c (gui_item_included_p):
10786         * gui.c (gui_item_display_flush_left):
10787         * gui.c (gui_item_display_flush_right):
10788         * gui.c (parse_gui_item_tree_item):
10789         * gui.c (parse_gui_item_tree_children):
10790         * gui.c (parse_gui_item_tree_list):
10791         Mule-ized.  Cleanup.  GCPRO addition.
10792
10793         * line-number.c (buffer_line_number):
10794         * lisp.h:
10795         * lisp.h (EMACS_INT_MAX):
10796         Added the manifest constant EMACS_INT_MIN corresponding to the
10797         existing constant EMACS_INT_MAX.  This is partially to fix compile
10798         warnings under Windows, and partly for cleanliness.
10799
10800         * menubar-msw.c:
10801         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10802         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10803         * menubar-msw.c (displayable_menu_item):
10804         * menubar-msw.c (populate_menu_add_item):
10805         * menubar-msw.c (populate_or_checksum_helper):
10806         * menubar-msw.c (populate_menu):
10807         * menubar-msw.c (update_frame_menubar_maybe):
10808         * menubar-msw.c (prune_menubar):
10809         * menubar-msw.c (msw_char_is_accelerator):
10810         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10811         * menubar-msw.c (mswindows_handle_wm_command):
10812         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10813         * menubar-msw.c (mswindows_handle_wm_initmenu):
10814         * menubar-msw.c (mswindows_update_frame_menubars):
10815         * menubar-msw.c (mswindows_free_frame_menubars):
10816         * menubar-msw.c (mswindows_popup_menu):
10817         Fixed a bug in handling accelerators where an extra character
10818         would be displayed in the menu item.  Also generalized the
10819         function displayable_menu_item because it is now used by the
10820         dialog box code as well.  And finally, added code in the functions
10821         that create the menubar to extract a list of accelerators for the
10822         top level menubar, which is used in the event code to determine
10823         whether a particular alt-key combination should be used to invoke
10824         a menu item, or should be passed through to access the standard
10825         XEmacs keymap binding for this key combination.
10826
10827         Much needed GCPROing.
10828
10829         * menubar-x.c:
10830         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10831         * menubar-x.c (menu_item_descriptor_to_widget_value):
10832         * menubar-x.c (restore_in_menu_callback):
10833         * menubar-x.c (x_popup_menu):
10834         * menubar-x.c (menu_move_up):
10835         * menubar-x.c (menu_move_down):
10836         * menubar-x.c (menu_move_left):
10837         * menubar-x.c (menu_move_right):
10838         * menubar-x.c (menu_select_item):
10839         * menubar-x.c (command_builder_operate_menu_accelerator):
10840         * menubar-x.c (menu_accelerator_junk_on_error):
10841         * menubar-x.c (command_builder_find_menu_accelerator):
10842         * menubar-x.c (Faccelerate_menu):
10843         * menubar.h:
10844         Moved a whole bunch of code here that was previously in
10845         event-stream.c as described above.  There is also code connected
10846         to the new standard of adding an accelerator to the beginning of
10847         menu items that don't have one as described above and below.
10848
10849         * menubar.c:
10850         * menubar.c (menu_parse_submenu_keywords):
10851         * menubar.c (Fmenu_find_real_submenu):
10852         * menubar.c (Fnormalize_menu_item_name):
10853         * menubar.c (syms_of_menubar):
10854         * menubar.c (vars_of_menubar):
10855         * menubar.c (complex_vars_of_menubar):
10856
10857         a) Cleaned up a bunch of documentation and improved it.
10858
10859         b) XEmacs now automatically adds an accelerator onto the beginning
10860         of any menu items that don't have one.  I did this because there
10861         will inevitably be some menu items on the main menubar that don't
10862         have accelerators on them because the package that adds that
10863         particular menu item hasn't yet been fixed up to have accelerators
10864         in them and it looked rather strange to have some items with and
10865         some items without accelerators, especially since even in items
10866         without accelerators, you can, at least under windows, still
10867         access the item through an accelerator corresponding to the first
10868         character in the item's name.  If people don't like this behavior,
10869         I can add a variable to turn it off optionally, but I'm not sure
10870         this is a good idea because we really do need to have accelerators
10871         on all of the menu items, and if a package doesn't like the
10872         accelerators being put on the first character, then it should put
10873         the accelerators where they belong.
10874
10875         c) I made a behavior change, which is that the descriptor that
10876         specifies the text of the menu item, which formerly was just a
10877         string, can now also be an evaluated expression.  This makes this
10878         descriptor parallel with all of the others, which could also be
10879         evaluated expressions.  This also obviates the need for the
10880         keyword :label, which was previously listed in the documentation
10881         as unimplemented, and which was for the same purpose.
10882
10883         d) GCPROing.
10884
10885         * ntproc.c:
10886         * ntproc.c (new_child):
10887         * ntproc.c (sys_spawnve):
10888         * ntproc.c (find_child_console):
10889         * ntproc.c (sys_kill):
10890         Fixed compile warnings.  By the way, this file should really go
10891         away entirely, and this will happen as soon as Kirill makes his
10892         final round of process cleanups, which affect the function
10893         call-process.
10894
10895         * process-nt.c:
10896         * process-nt.c (struct nt_process_data):
10897         * process-nt.c (find_process_from_pid):
10898         * process-nt.c (send_signal_the_nt_way):
10899         * process-nt.c (enable_child_signals):
10900         * process-nt.c (find_child_console):
10901         * process-nt.c (send_signal_the_95_way):
10902         * process-nt.c (nt_finalize_process_data):
10903         * process-nt.c (ensure_console_window_exists):
10904         * process-nt.c (nt_create_process):
10905         * process-nt.c (nt_kill_child_process):
10906         * process-nt.c (nt_kill_process_by_pid):
10907         * process-nt.c (nt_open_network_stream):
10908         * process-nt.c (vars_of_process_nt):
10909         Copied over code from Emacs 20.5 to correctly send signals to sub-
10910         processes under Windows 95.  Also added code to automatically
10911         create and hide console window when a sub-process is created under
10912         Windows 95, which obviates the need for the separate runemacs.exe
10913         executable, and finally implemented some variables that were
10914         implemented in Emacs 20.5, but previously not in XEmacs.  These
10915         include mswindows- start-process-share-console and
10916         mswindows-start-process-inherit-error-mode. (Both of these only
10917         apply to Windows 95.)
10918
10919         * regex.c (regex_compile): Fixed a compile warning.
10920
10921         * select-msw.c:
10922         * select-msw.c (mswindows_own_selection):
10923         * select-msw.c (mswindows_get_foreign_selection):
10924         * select-msw.c (mswindows_disown_selection):
10925         * select-msw.c (console_type_create_select_mswindows):
10926         * select-msw.c (syms_of_select_mswindows):
10927         Cleaned up the file and implemented the device method
10928         selection_exists_p, which had accidentally been left out.  Also
10929         removed four lisp functions that were remnants from before the
10930         time when the selection code was properly device abstracted.
10931         These functions are no longer needed because there are generic
10932         equivalents, and because they were added recently and don't exist
10933         in FSF Emacs, I don't think there's any problem with just deleting
10934         them.
10935
10936         * sysdep.c:
10937         * sysdep.c (sys_subshell):
10938         Fixed a compile warning, although in this case there's probably
10939         something wrong with this code, and it ought to be looked into
10940         more thoroughly by somebody who understands it.
10941
10942         * window.c:
10943         * window.c (Fwindow_text_area_height):
10944         * window.c (Fwindow_width):
10945         * window.c (Fwindow_full_width):
10946         * window.c (Fwindow_pixel_width):
10947         * window.c (debug_print_window):
10948         * window.c (syms_of_window):
10949         Added functions window-text-area-height and window-full-width,
10950         which are functions for returning various width and height
10951         characteristics of a window. (One of these functions is necessary
10952         for making the file dialog box work correctly, and the other one
10953         was added for completeness.)  Also added a table to the
10954         documentation for window-height which describes the entire scheme
10955         for accessing width and height characteristics of a window.
10956
10957 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10958
10959         * nt.c (fstat): Added a comment for another problem with
10960         non-encapsulated [f]stat(), reported by Adrian Aichner
10961         <aichner@ecf.teradyne.com>.
10962
10963 2000-03-11  Andy Piper  <andy@xemacs.org>
10964
10965         * window.c (make_dummy_parent): initialize subwindow instance
10966         cache.
10967         (Fset_window_configuration): zero extent_modiff.
10968
10969 2000-03-10  Andy Piper  <andy@xemacs.org>
10970
10971         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10972         more changes can be triggered.
10973         (Fredisplay_frame): ditto.
10974         (Fredraw_device): ditto.
10975         (Fredisplay_device): ditto.
10976         (redisplay_frame): make non-static.
10977         (redisplay_frame): call update_frame_gutter_geometry outside of
10978         display proper.
10979
10980         * gutter.h: declare update_frame_gutter_geometry.
10981
10982         * redisplay.h: declare redisplay_frame.
10983
10984         * gutter.c (update_frame_gutter_geometry): move geometry changes
10985         in update_frame_gutters here. Geometry changes can only occur
10986         outside of redisplay.
10987         (update_frame_gutters): remove geometry change code.
10988         (Fredisplay_gutter_area): make sure that we are in display when we
10989         update and that we have flushed any size changes.
10990
10991 2000-03-11  Andy Piper  <andy@xemacs.org>
10992
10993         * alloc.c (pdump_dump_data): remove i & count shadows.
10994
10995 2000-02-27  Mike Alexander  <mta@arbortext.com>
10996
10997         * sysdep.h: Declare pdump_read_file
10998
10999         * sysdep.c (pdump_read_file): New function
11000
11001         * alloc.c (pdump_load): Call pdump_read_file to get the portable
11002         dump data
11003
11004 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11005
11006         * lrecord.h: add `lrecord_type_pgsetenv'.
11007
11008 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
11009
11010         * symsinit.h: declare (vars|syms)_of* functions.
11011         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11012
11013 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
11014
11015         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11016
11017         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11018         GCCs.
11019
11020         * emacs.c (main_1): Call postgres initialization code.
11021
11022         * postgresql.h: New file.  PostgreSQL RDBMS support.
11023         * postgresql.c: New file.
11024
11025 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11026
11027         * redisplay-output.c (redisplay_output_display_block): Disable
11028         redundant code.
11029
11030 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11031
11032         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11033         (Fcanna_henkan_next): Ditto.
11034         (Fcanna_bunsetu_henkou): Ditto.
11035         (Fcanna_henkan_kakutei): Ditto.
11036         (Fcanna_henkan_end): Ditto.
11037         (Fcanna_henkan_quit): Ditto.
11038         (Fcanna_henkan_next): Set retun value correctly.
11039         (c2mu): Use unsigned char instead of signed char.
11040
11041 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11042
11043         * emacs.c (main_1): Always call syms_of_gui.
11044         * inline.c: include gui.h
11045
11046 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11047
11048         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11049         converted to Lisp_Object.
11050         (Qtop_bottom): New variable.
11051         (syms_of_redisplay): Initialize it.
11052         * redisplay.h (Vvisible_bell): Ditto.
11053         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11054         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11055         only flash top and bottom.
11056
11057 2000-03-08  Andy Piper  <andy@xemacs.org>
11058
11059         * buffer.c (Frename_buffer): record new buffer name the right way.
11060
11061 2000-03-08  Andy Piper  <andy@xemacs.org>
11062
11063         * glyphs.c (update_subwindow): increase hash depth so that widget
11064         items get picked up properly.
11065
11066         * redisplay-output.c (compare_runes): increase hash depth so that
11067         widget items get picked up properly.
11068
11069 2000-03-08  Andy Piper  <andy@xemacs.org>
11070
11071         * gutter.c (output_gutter): add some debug.
11072
11073         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11074         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11075         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11076
11077         * redisplay-output.c (compare_runes): use display_hash to
11078         determine if glyphs really are not the same.
11079
11080         * glyphs.c (update_subwindow): check display_hash to see if
11081         anything really needs to be updated. If not then do
11082         nothing. Record the display_hash after updating.
11083         (image_instance_equal): compare the image_instance face also.
11084
11085 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11086
11087         * redisplay.h: Fix comment style.
11088
11089 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11090
11091         * consle-msw.h (struct mswindows_frame):
11092         Added new member paint_pending to indicate whether a WM_PAINT
11093         magic event has been queued for this frame.
11094
11095         * event-msw.c (mswindows_drain_windows_queue):
11096         Don't queue a WM_PAINT magic event if one is already queued.
11097         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11098
11099         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11100
11101 2000-03-07  Didier Verna  <didier@xemacs.org>
11102
11103         * dired.c: #include `regex.h' after `sysfile.h'.
11104
11105 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11106
11107         * sound.c (init_nas_sound): Fix compiler warning.
11108
11109         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11110         (FREE_STRUCT_P):
11111         (MARK_STRUCT_AS_FREE):
11112         (MARK_STRUCT_AS_NOT_FREE):
11113         Make `gcc -fstrict-aliasing' work properly.
11114
11115 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11116
11117         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11118         (mswindows_delete_device): Call CoUnnitialize().
11119
11120         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11121
11122 2000-02-25    <CraigL@DyCon.com>
11123
11124         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11125         <errno.h>.
11126
11127         * sysdep.c: This extern declaration for environ prevents MinGW
11128         from finding the variable in CRTDLL.DLL.
11129
11130         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11131         windows headers.
11132         (SHGFI_EXETYPE): ..
11133         (WM_MOUSEWHEEL): ..
11134         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11135         definitions.
11136         (MMRESULT): Removed, now defined in cygwin's windows headers.
11137         (TIMECAPS): ..
11138         (uid_t,gid_t,pid_t,ssize_t): ..
11139         (_timeb): Removed, MinGW defines both _timeb and timeb.
11140         (HAVE_H_ERRNO): Added.
11141         (HAVE_TZNAME): Added, configure is not detecting this.
11142
11143 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11144
11145         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11146         * syntax.c (syntax_match): Use it.
11147
11148         * cmds.c: Import auto-fill-chars from FSF Emacs.
11149         (Vauto_fill_chars): New variables.
11150         (internal_self_insert): Check Vauto_fill_chars.
11151         (vars_of_cmds):
11152         Declare auto-fill-chars as a Lisp variable and initialize it.
11153
11154 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11155
11156         * fileio.c (Fmake_symbolic_link):
11157         (Ffile_symlink_p):
11158         Run handlers even if local machine doesn't have symlinks.
11159
11160 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11161
11162         * event-msw.c (mswindows_drain_windows_queue):
11163         Don't generate paint magic events for non-XEmacs frames.
11164
11165 2000-03-05  Andy Piper  <andy@xemacs.org>
11166
11167         * redisplay.c (redisplay_frame): generate_displayable_area and
11168         friends assumes that we are not in GC, we therefore have to make
11169         sure that this doesn't happen.
11170
11171         * gutter.c (calculate_gutter_size): generate_displayable_area
11172         assumes that we are not in GC, we therefore have to make sure that
11173         this doesn't happen.
11174
11175 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11176
11177         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11178
11179 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11180
11181         * redisplay.c (regenerate_window): Make sure we set a sane value
11182         for end_pos even if we jump out of the loop.
11183         (regenerate_window): Answer Ben's question :-).
11184         (start_end_of_last_line): Add may_error argument.
11185         (start_of_last_line):
11186         (end_of_last_line): Pass may_error = 0.
11187         (end_of_last_line_may_error): New function.
11188         (pixel_to_glyph_translation): Use it, so we don't crash in
11189         event_to_glyph.
11190
11191 2000-03-04  Andy Piper  <andy@xemacs.org>
11192
11193         * window.h (struct window): add gutter_extent_modiff.
11194
11195         * window.c (allocate_window): zero out gutter_extent_modiff.
11196
11197         * redisplay.h: declare sync_display_line_structs.
11198
11199         * redisplay.c (add_glyph_rune): add a better comment.
11200
11201         * redisplay-output.c (sync_display_line_structs): made non-static.
11202         (compare_runes): remove unneccesary glyph cachel access.
11203
11204         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11205
11206         * gutter.c (output_gutter): don't output the gutter if extent
11207         changes only involve extents in buffers. use 4 sets of display
11208         lines.
11209         (gutter_extent_signal_changed_region_maybe): new function. Mark
11210         extents in gutters as changed.
11211         (update_frame_gutters): use 4 sets of display lines.
11212         (reset_gutter_display_lines): ditto.
11213         (free_frame_gutters): ditto.
11214         (redraw_exposed_gutter): force output of gutters.
11215
11216         * frame.h (struct frame): add 4 sets of gutter display lines.
11217
11218         * extents.c: (extent_changed_for_redisplay): signal changes to
11219         extents in strings in the gutter as well as extents in buffers.
11220
11221 2000-03-02  Andy Piper  <andy@xemacs.org>
11222
11223         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11224
11225         * frame.c (Fmake_frame): make sure the gutters get initialized
11226         after the frame is visible.
11227         (set_frame_selected_window): re-arrange compilation macros a
11228         little.
11229         (change_frame_size_1): mark gutters changed.
11230
11231         * device.c (Fset_device_class): mark gutters changed.
11232
11233 2000-03-01  Andy Piper  <andy@xemacs.org>
11234
11235         * window.c (window_top_frame_gutter_height): deleted.
11236         (window_bottom_frame_gutter_height): ditto.
11237         (window_left_frame_gutter_height): ditto.
11238         (window_right_frame_gutter_height): ditto.
11239         (window_top_gutter_height): don't use them.
11240         (window_bottom_gutter_height): ditto.
11241         (window_left_gutter_width): ditto.
11242         (window_right_gutter_width): ditto.
11243         (Fsplit_window): ditto.
11244         (Fwindow_pixel_edges): don't use border dimensions here.
11245
11246         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11247         (update_scrollbar_instance): ditto.
11248
11249         * redisplay.c (generate_modeline): don't take gutters into account.
11250         (generate_modeline): ditto.
11251         (redisplay_frame): small gutter display optimization.
11252
11253         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11254
11255         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11256         gutters into account.
11257
11258         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11259         for window position and type.
11260
11261         * gutter.c (get_gutter_coords): fix for frame gutters.
11262         (update_frame_gutters): update frame geometry if the gutters have
11263         changed.
11264         (init_frame_gutters): record current gutter geometries.
11265
11266         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11267         var.
11268         (mswindows_widget_instantiate): ditto.
11269
11270         * frame.h (struct frame): add current_gutter_bounds.
11271
11272         * frame.c (change_frame_size_1): position window and minibuffer
11273         appropriately taking into account the frame gutters.
11274
11275         * frame-x.c: (x_initialize_frame_size): take into account the
11276         frame gutters.
11277
11278 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11279
11280         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11281
11282 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11283
11284         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11285
11286 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11287
11288         * file-coding.c (reset_decoding_stream): Clear previous
11289         detection state when autodetect.
11290
11291 2000-02-29  Didier Verna  <didier@xemacs.org>
11292
11293         * extents.c (set_extent_glyph_1): don't require extents to be
11294         attached.
11295
11296 2000-02-27  Andy Piper  <andy@xemacs.org>
11297
11298         * gutter.c (Fset_default_gutter_position): don't default left and
11299         right gutter visibility to t.
11300         (Fset_default_gutter_position): run
11301         default-gutter-position-changed-hook.
11302         (syms_of_gutter): add default-gutter-position-changed-hook.
11303
11304 2000-02-26  Andy Piper  <andy@xemacs.org>
11305
11306         * specifier.c (Fmake_specifier): add gutter references.
11307
11308         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11309
11310         * lisp.h: declare Fvalid_plist_p.
11311
11312         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11313         as changed.
11314         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11315         well as its visibility so that it gets reconstructed.
11316         (construct_window_gutter_spec): new function. Construct a string
11317         to be displayed in the gutter from a plist of strings. Take care
11318         to only use elements that are declared as visible.
11319         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11320         WINDOW_GUTTER.
11321         (gutter_validate): allow plists of strings in the specifier.
11322         (gutter_specs_changed): construct the real_gutter from the gutter
11323         specs using construct_window_gutter_spec.
11324         (gutter_visible_validate): gutter-visible is a new specifier type.
11325         (Fgutter_visible_specifier_p): new function for the new specifier.
11326         (syms_of_gutter): declare gutter-visible and
11327         Fgutter_visible_specifier_p.
11328         (specifier_type_create_gutter): intitalize new gutter-visible
11329         specifier.
11330         (reinit_specifier_type_create_gutter): ditto.
11331         (specifier_vars_of_gutter): use new specifier type for gutter
11332         visibility.
11333         (init_frame_gutters): construct real_gutter correctly.
11334         (Fgutter_specifier_p): beef up documentation.
11335         (Fgutter_size_specifier_p): ditto.
11336
11337         * winslots.h: add real_gutter slots.
11338
11339 2000-02-25  Andy Piper  <andy@xemacs.org>
11340
11341         * device-msw.c: Be kind to older cygwin versions. From Raymond
11342         Toy <toy@rtp.ericsson.se>.
11343
11344         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11345         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11346
11347 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11348
11349         * elhash.c (MARK_OBJ): Practice macro hygiene.
11350
11351 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11352
11353         * miscplay.c: s/__inline__/inline/g;
11354         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11355         (get_device_compdc): INLINE ==> static inline
11356         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11357         find -name '*.h' | \
11358         xargs global-replace \
11359         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11360
11361 2000-02-25  Andy Piper  <andy@xemacs.org>
11362
11363         * window.c (window_top_frame_gutter_height): new function.
11364         (window_top_window_gutter_height): ditto.
11365         (window_top_gutter_height): use them.
11366         (window_bottom_frame_gutter_height): new function.
11367         (window_bottom_window_gutter_height): ditto.
11368         (window_bottom_gutter_height): use them.
11369         (window_left_window_gutter_width): new function.
11370         (window_left_frame_gutter_width): ditto.
11371         (window_left_gutter_width): use them.
11372         (window_right_window_gutter_width): new function.
11373         (window_right_frame_gutter_width): ditto.
11374         (window_right_gutter_width): use them.
11375         (window_pixel_height): new function. calulate window pixel height
11376         with frame gutter involvement.
11377         (Fsplit_window): calculate new sizes taking frame gutters into
11378         account.
11379         (window_char_height_to_pixel_height): don't include frame gutters.
11380         (window_char_height): use window_pixel_height.
11381         (window_pixheight): rename from window_pixel_height.
11382         (change_window_height): use it.
11383         (window_pixel_height_to_char_height): don't include frame gutters.
11384         (window_char_width_to_pixel_width): ditto.
11385
11386 2000-02-25  Andy Piper  <andy@xemacs.org>
11387
11388         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11389         if it is.
11390
11391 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11392
11393         * alloc.c (staticpro):
11394         (staticpro_nodump):
11395         (dumpstruct):
11396         (dumpopaque):
11397         (pdump_wire):
11398         (pdump_wire_list):
11399         (compact_string_chars):
11400         (pdump_dump_wired):
11401         Convert:  if (foo) abort();  ==>  assert (! foo);
11402
11403         * eldap.c (Fldap_search_basic):
11404         (Fldap_add):
11405         (Fldap_modify):
11406         (Fldap_delete):
11407         Fix compiler warnings, and possible crashes if (random) return
11408         value were to be used.
11409
11410 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11411
11412         * device-msw.c: Workaround ResetDC failure.
11413
11414         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11415         applying a devmode.
11416
11417         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11418         (mswindows_text_width): Do not start printer page.
11419
11420         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11421
11422         * glyphs-msw.c: Added image methods to msprinter console and
11423         msprinter-specific image instantiation.
11424
11425 2000-02-20  Mike Alexander  <mta@arbortext.com>
11426
11427         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11428         to avoid crashes when selection-sets-clipboard is on
11429         (mswindows_own_selection): ditto
11430
11431 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11432
11433         * glyphs-msw.c:
11434         * redisplay-msw.c (get_frame_dc):
11435         (get_frame_compdc):
11436         * console-msw.h:
11437         * device-msw.c (mswindows_init_device):
11438         (mswindows_delete_device):
11439         (msprinter_init_device):
11440         (msprinter_delete_device):
11441         * frame-msw.c (mswindows_init_frame_1):
11442         (mswindows_delete_frame):
11443         (msprinter_init_frame_3):
11444         (msprinter_delete_frame): Move compatible DC to device object from
11445         frame object, for both mswindows and msprinter. Only one at a time
11446         is needed, it is a real waste to have one per frame!
11447
11448 2000-02-23  Andy Piper  <andy@xemacs.org>
11449
11450         * glyphs.c: add dynamic width and height elements.
11451         (image_instance_equal): ditto.
11452
11453         * glyphs-widget.c (widget_query_geometry): calculate width and
11454         height dynamically if required.
11455         (initialize_widget_image_instance): initialize dynamic dimensions.
11456         (widget_instantiate): pick-up dynamic dimensions.
11457
11458         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11459         dynamic determination. Add appropriate macros.
11460
11461         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11462         dimensions safe.
11463         (WINDOW_GUTTER_SIZE): ditto.
11464         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11465
11466         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11467         inline.
11468         (get_frame_dc): ditto.
11469
11470         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11471         here.
11472
11473 2000-02-23  Martin Buchholz <martin@xemacs.org>
11474
11475         * XEmacs 21.2.31 is released.
11476
11477 2000-02-22  Ben Wing <ben@xemacs.org>
11478
11479         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11480
11481 2000-02-22  Andy Piper  <andy@xemacs.org>
11482
11483         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11484
11485 2000-02-21  Mike Sperber <mike@xemacs.org>
11486
11487         * .dbxrc:
11488         * .gdbinit:
11489         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11490         variables.
11491
11492 2000-02-21  Mike Sperber <mike@xemacs.org>
11493
11494         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11495
11496 2000-02-21  Martin Buchholz <martin@xemacs.org>
11497
11498         * XEmacs 21.2.30 is released.
11499
11500 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11501
11502         Performance hacking.
11503         * *.c (syms_of_*):
11504         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11505         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11506         * emacs.c (main_1):
11507         * lisp.h (DEFUN):
11508         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11509         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11510         * symeval.h (DEFVAR_SYMVAL_FWD):
11511         * symbols.c (guts_of_unbound_marker):
11512         Make all c_readonly objects also lisp_readonly and marked for life.
11513         * lrecord.h (struct lrecord_implementation):
11514         Document flags better.
11515         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11516         * lrecord.h (DECLARE_LRECORD):
11517         * lrecord.h (XSETRECORD):
11518         * lrecord.h (RECORDP):
11519         * lrecord.h (RECORD_TYPEP):
11520         * lrecord.h (RECORD_MARKER): New.
11521         * lrecord.h (error_check_*):
11522         * lrecord.h (CONCHECK_NONRECORD):
11523         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11524         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11525         * lrecord.h (set_lheader_implementation):
11526         * lrecord.h (enum lrecord_type): New.
11527         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11528         * alloc.c (disksave_object_finalization_1):
11529         * alloc.c (mark_object):
11530         * alloc.c (lrecord_type_index):
11531         * alloc.c (tick_lcrecord_stats):
11532         * alloc.c (Fgarbage_collect):
11533         * alloc.c (init_alloc_once_early):
11534         * alloc.c (pdump_load):
11535         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11536         * alloc.c (lrecord_type_index): Delete.
11537         Make lisp object type indexes be constant.
11538           Makes (byte-compile) 5% faster.
11539         Put all marker functions into their own array.
11540           Makes (garbage-collect) 5% faster.
11541         Optimize SYMBOL_VALUE_MAGIC_P.
11542           Makes (byte-compile) 2-3% faster.
11543         * config.h.in (gc_checking_assert): New.
11544         * alloc.c: Use gc_checking_assert().
11545         * .dbxrc: Make compatible with new object type implementation.
11546         * .gdbinit: Make compatible with new object type implementation.
11547         * alloc.c: Delete all symbols defined only for debugging, such as
11548         Lisp_Type_Vector and lrecord_charset.
11549
11550 2000-02-21  Andy Piper  <andy@xemacs.org>
11551
11552         * gui-msw.c (Fmswindows_shell_execute): fix file location
11553         problems.
11554
11555         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11556         unshowing so that set_window_buffer doesn't undo
11557         kill_buffer_hook's hard work.
11558
11559         * glyphs-widget.c (tab_control_query_geometry): don't count the
11560         first item when calculating geometry.
11561
11562         * glyphs.c (map_subwindow): remove redundant code.
11563         (update_frame_subwindows): be more circumspect about when to
11564         update subwindows.
11565
11566         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11567         when items haven't changed. Update faces if faces have changed as
11568         well as just the widget face.
11569         (x_tab_control_update): Update faces if faces have changed as well
11570         as just the widget face.
11571
11572 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11573
11574         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11575         registration.
11576         (build_syscolor_string): Use mswindows_color_to_string to try to
11577         get a named color.
11578         (mswindows_device_system_metrics): Reverse the foreground and
11579         background colors so that they match the documentation.
11580
11581         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11582         they match the default Windows palette.
11583         (mswindows_color_to_string): New function.
11584
11585 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11586
11587         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11588
11589 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11590
11591         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11592         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11593
11594         * symbols.c (init_symbols_once_early): Removed obsolete
11595         DATA_SEG_BITS related kludge.
11596         (defvar_magic): Ditto.
11597
11598         * malloc.c: Removed obsolete DATA_SEG_BITS
11599         * ralloc.c: Ditto.
11600         * mem-limits.h: Ditto.
11601
11602         * Makefile.in.in: Removed obsolete HAVE_SHM
11603         * emacs.c: Ditto.
11604
11605 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11606
11607         *  device-msw.c (mswindows_delete_device): Free DDE string
11608         handles.
11609
11610 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11611
11612         * keymap.c (get_keyelt):
11613         * unexnt.c (unexec):
11614         * vm-limit.c (memory_warnings):
11615         * ntheap.c (recreate_heap):
11616         * ntheap.h (UNINIT_PTR):
11617         * select-msw.c (Fmswindows_get_clipboard):
11618         (Fmswindows_set_clipboard):
11619         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11620         * objects-msw.c:
11621         * menubar-msw.c (displayable_menu_item):
11622         * glyphs-msw.c:
11623         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11624         * sysdep.c (sys_subshell):
11625         * process-nt.c (nt_create_process):
11626         * nt.c (normalize_filename):
11627         (dostounix_filename):
11628         (unixtodos_filename):
11629         * ntproc.c (win32_executable_type):
11630         * ntplay.c (play_sound_data_1):
11631         (play_sound_file):
11632         * editfns.c (get_home_directory):
11633         * event-msw.c (struct winsock_stream):
11634         (mswindows_dde_callback):
11635         * device-msw.c (msprinter_init_device):
11636         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11637
11638         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11639         mswindows_clear_toolbar were swapped!
11640
11641         * objects-msw.c:(colormap_t):
11642         (fontmap_t):
11643         * emacs.c (struct standard_args): Fixed const jumble.
11644
11645         * glyphs-widget.c (update_widget): Fixed comparison notation.
11646
11647         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11648
11649         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11650         __declspec(noreturn) syntax.
11651
11652 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11653
11654         * eldap.c (Fldap_open):
11655         (Fldap_search_basic):
11656         (Fldap_add):
11657         (Fldap_modify):
11658         Use new coding system conversion macros.
11659
11660 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11661
11662         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11663
11664 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11665
11666         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11667         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11668
11669         * eldap.c (Qadd, Qreplace): New constant symbols
11670         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11671         interruptions by XEmacs signals
11672         Remove unnecessary calls to slow_down_interrupts and
11673         speed_up_interrupts
11674         (Fldap_search_basic): Renamed from Fldap_search_internal
11675         Added new optional parameter VERBOSE that triggers the
11676         display of progress messages
11677         Remove unnecessary calls to slow_down_interrupts and
11678         speed_up_interrupts
11679         LDAP result code analysis rewritten
11680         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11681         (syms_of_eldap): Define the new symbols and functions
11682
11683
11684 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11685
11686         * realpath.c: Determine PATH_MAX maximally portably.
11687
11688         * insdel.c (bytecount_to_charcount): Optimize.
11689         The function used to be optimized for entirely ASCII sequences.
11690         Now it is optimized for successive characters from the same
11691         charset.  This also wins big for _mostly_ ASCII sequences.
11692
11693         * fileio.c (Ffile_truename): convert return from realpath() using
11694         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11695         - Rewrite GCPROing slightly.
11696
11697         * sysdep.c (sys_open): Do filename conversion, like all other
11698         sys_* functions.  Fixes bug:
11699         (let ((file-name-coding-system 'iso-8859-2))
11700            (write-region x y latin2-name))
11701         ==> writes filename using internal encoding.
11702
11703 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11704
11705         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11706         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11707         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11708         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11709         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11710         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11711         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11712         (CONST_IF_NOT_DEBUG): Delete.
11713         * alloc.c (this_one_is_unmarkable): Delete.
11714         (mark_object): Don't check for this_one_is_unmarkable. Use the
11715         c_readonly flag instead.
11716         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11717
11718 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11719
11720         * event-msw.c (mswindows_drain_windows_queue):
11721         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11722         away redundant repaint events.
11723
11724 2000-02-17  Andy Piper  <andy@xemacs.org>
11725
11726         * redisplay.h: declare mark_redisplay_structs.
11727
11728         * redisplay.c (redisplay_window):
11729         (redisplay_frame): don't check subwindows_state_changed.
11730         (mark_redisplay): mark gutters here.
11731
11732         * glyphs.c: (instantiate_image_instantiator): always layout if we
11733         haven't done so already.
11734         (allocate_image_instance): don't mark as dirty.
11735         (update_subwindow): bind inhibit_quit.
11736
11737         * gutter.c (mark_gutters): new function.
11738
11739         * glyphs-x.c (x_update_widget): Always resize to get round a
11740         widget bug.
11741
11742         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11743         breaking absolutely everything.
11744
11745         * gutter.h: declare mark_gutters.
11746
11747 2000-02-16  Martin Buchholz <martin@xemacs.org>
11748
11749         * XEmacs 21.2.29 is released.
11750
11751 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11752
11753         * fns.c (size_bit_vector): Fix computation of the size.
11754
11755 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11756
11757         * *.[ch]: Change CONST to const globally.
11758         find -name '*.[ch]' | \
11759         xargs global-replace \
11760         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11761         - Remove vestigial references to CONST_IS_LOSING
11762
11763 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11764
11765         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11766         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11767         events instead of dispatching them directly.
11768         (mswindows_handle_paint): New function to do repainting.
11769         (mswindows_wnd_proc):
11770         (emacs_mswindows_handle_magic_event): Call above function.
11771
11772 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11773
11774         * objects-msw.c (mswindows_create_font_variant): Return the new
11775         font handle.
11776         (initialize_font_instance): Get font metrics from the underlined
11777         variant of the font to cope with the case where the underlined
11778         font has a bigger descent.
11779
11780 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11781
11782         * gui.c (gui_item_accelerator): Return the first underlined
11783         character in item name.
11784
11785 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11786
11787         * lisp.h: Added Qprinter.
11788
11789         * general.c (syms_of_general): Initialized it.
11790
11791         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11792         (get_frame_dc):
11793         (get_frame_compdc): Made inline.
11794
11795         * console.h (struct console_methods): Added eject_page method.
11796
11797         * frame.h: Added FRAME_DISPLAY_P and friends.
11798         Aligned backslahes in many macros in more readable fashion.
11799         Added page_number to struct frame, and an accessor macro
11800         for it.
11801
11802         * defice.h: Added DEVICE_DISPLAY_P and friends.
11803
11804         * device.c (Fdevice_printer_p): Used these.
11805
11806         * frame.c (allocate_frame_core): Initialize page number.
11807         (Fprint_job_page_number):
11808         (Fprint_job_eject_page): Implemented.
11809
11810         * frame-msw.c (msprinter_eject_page): Added method.
11811         (msprinter_start_page): Added.
11812
11813         * window.c (Fwindow_truncated_p): Fixed docstring.
11814         (Fwindow_last_line_visible_height): Implemented.
11815
11816 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11817
11818         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11819
11820 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11821
11822         * syntax.c (scan_words): Always advance at least one character.
11823
11824 2000-02-13  Andy Piper  <andy@xemacs.org>
11825
11826         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11827         to make sure the glyph is in the cachels.
11828
11829         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11830         global image instance flag.
11831         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11832         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11833
11834         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11835         (Fset_image_instance_property): mark layout as changed.
11836         (invalidate_glyph_geometry_maybe): mark layout as changed.
11837         (glyph_width): use new NEEDS_LAYOUT macro.
11838         (glyph_ascent): ditto.
11839         (glyph_descent): ditto.
11840         (glyph_height): ditto.
11841         (image_instance_layout): mark layout as clean after laying out.
11842         (update_subwindow): don't mark layout as clean here.
11843
11844         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11845         should no longer be needed.
11846
11847         * glyphs-x.c (x_update_widget): sanitize asserts.
11848         (x_finalize_image_instance): sanitize assignment to widgets.
11849
11850         * glyphs-widget.c (widget_instantiate): don't need to clear the
11851         layout flag here.
11852
11853 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11854
11855         * sysdep.c (getcwd): Use standard prototype.
11856         * sysdep.h (getcwd): Use standard prototype.
11857
11858         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11859         (sequence, start, end).
11860         Remove redundant type checking.
11861         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11862         view of `caller-protects') to avoid a crash where the real fix was
11863         found elsewhere.
11864
11865 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11866
11867         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11868
11869         * s/sol2.h: Remove feature macro initialization.
11870
11871         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11872         (vector_hash): New.  Code from internal_hash.
11873         * lrecord.h:
11874         Fix up allocation subsystem comments.
11875
11876         * config.h.in: Add __EXTENSIONS__ for Solaris.
11877
11878         * systime.h (EMACS_GETTIMEOFDAY): New.
11879         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11880         Remove Solaris-specific code.
11881         Use void* for the (ignored) second arg for gettimeofday().
11882
11883         * elhash.c (hash_table_hash): Implement it, finally.
11884         * elhash.c:  Use hashcode_t.
11885
11886         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11887         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11888
11889         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11890         * fns.c (size_bit_vector):
11891         * alloc.c (size_vector):
11892         (make_vector_internal):
11893         (make_bit_vector_internal):
11894         (sweep_bit_vectors_1):
11895         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11896
11897 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11898
11899         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11900         Include strings.h to avoid warnings for bzero and strcasecmp.
11901
11902 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11903
11904         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11905         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11906
11907         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11908         sequence.
11909
11910 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11911
11912         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11913         use a value field instead.
11914         (symbol_value_forward_forward): Use value field.
11915         (DEFVAR_SYMVAL_FWD): Use value field.
11916         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11917         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11918         (DEFVAR_CONST_INT): Ditto.
11919         (DEFVAR_BOOL): Ditto.
11920         (DEFVAR_CONST_BOOL): Ditto.
11921         (DEFVAR_INT_MAGIC): Ditto.
11922         (DEFVAR_BOOL_MAGIC): Ditto.
11923
11924         * symbols.c (guts_of_unbound_marker): Use value field.
11925         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11926         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11927
11928         * lisp.h: Declare dumpopaque and noninteractive1.
11929
11930         * alloc.c (dumpopaque): Added.
11931         (pdump_dump_opaquevec): Added.
11932         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11933         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11934         noninteractive.
11935
11936 2000-02-10  Andy Piper  <andy@xemacs.org>
11937
11938         * glyphs.c (image_instance_layout): if the size changes, mark it
11939         as such.
11940
11941         * redisplay-output.c (redisplay_output_layout): Update the
11942         subwindow here.
11943         (redisplay_output_subwindow): ditto.
11944
11945         * glyphs.c (update_subwindow): make sure we reset flags for
11946         layouts as well as everything else.
11947
11948         * glyphs-widget.c (layout_layout): don't need to set the instances
11949         dimensions here.
11950
11951 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11952
11953         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11954         not HAVE_DLOPEN, which is a lower-level thing.
11955
11956         * .cvsignore: Ignore gmon.out
11957
11958 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11959
11960         * .cvsignore: Ignore portable dumper xemacs.dmp file
11961
11962 2000-02-09  Andy Piper  <andy@xemacs.org>
11963
11964         * redisplay-output.c (redisplay_output_layout): be more clever
11965         about when we output based on the changed flags.
11966
11967         * glyphs.h (struct image_instantiator_methods): add update_method.
11968         (struct Lisp_Image_Instance): add changed flags. Declare new
11969         macros for manipulating them.
11970
11971         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11972         (image_instance_parent_glyph): find an image_instance's parent
11973         glyph or image_instance.
11974         (image_instance_layout): mark the size as changed.
11975         (set_image_instance_dirty_p): new function. mark an image
11976         instance, plus all of its parents, as dirty.
11977         (Fset_image_instance_property): use it.
11978         (Fglyph_animated_timeout_handler): use it.
11979         (update_subwindow): call update_widget and device methods for
11980         update_subwindow. Mark all changed flags as clean.
11981         (Fresize_subwindow): mark size as changed.
11982
11983         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11984         failures.
11985         (x_update_subwindow): only resize subwindows here.
11986         (x_update_widget): new function. Update all changed properties of
11987         a widget.
11988         (x_resize_subwindow): deleted.
11989         (x_widget_set_property): deleted.
11990         (x_progress_gauge_set_property): deleted.
11991         (x_progress_gauge_update): new function. Implement recorded
11992         changes.
11993         (x_tab_control_update): ditto.
11994         (x_tab_control_set_property): deleted.
11995         (console_type_create_glyphs_x): declare new functions.
11996         (image_instantiator_format_create_glyphs_x): ditto.
11997
11998         * glyphs-widget.c (widget_set_property): mark text changed.
11999         (update_widget): new function. Update properties of a widget.
12000         (widget_instantiate): for layouts make sure we set their
12001         children's parent correctly.
12002         (tab_control_set_property): new function. Record changes that will
12003         take place under redisplay's control.
12004         (progress_gauge_set_property): ditto.
12005         (image_instantiator_progress_guage): declare new functions.
12006         (image_instantiator_tab_control): ditto.
12007
12008         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12009         now.
12010         (mswindows_update_widget): new function. Update all properties on
12011         a widget that have changed.
12012         (mswindows_button_update): new function. Update a button's set
12013         state.
12014         (mswindows_tab_control_update): new function. Update the items in
12015         a tab.
12016         (mswindows_tab_control_set_property): deleted.
12017         (mswindows_progress_gauge_update): new function. Update the
12018         progress gauge's progress.
12019         (mswindows_widget_set_property): deleted. This is all done
12020         asynchronously now.
12021         (mswindows_progress_gauge_set_property): ditto.
12022         (console_type_create_glyphs_mswindows): declare new methods.
12023         (image_instantiator_format_create_glyphs_mswindows): ditto.
12024
12025         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12026         (msprinter_set_frame_properties): ditto.
12027
12028         * console.h (struct console_methods): Add update_widget_method.
12029
12030 2000-02-09  Andy Piper  <andy@xemacs.org>
12031
12032         * gui-msw.c (Fmswindows_shell_execute): Make
12033         mswindows-shell-execute industrial strength.
12034
12035 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12036
12037         * lrecord.h: Make macro argument `props' match member function `plist'.
12038         * fns.c (Fget):
12039         * fns.c (Fput):
12040         * fns.c (Fremprop):
12041         * fns.c (Fobject_plist):
12042         * alloc.c:
12043         * symbols.c:
12044         Object property list frobbing cleanup.
12045         - Allow any lisp object (compared with `eq'), not just symbols, as
12046           keys in object plists.
12047         - Move symbol plist frobbing into symbols.c, where it belongs.
12048         - Move string plist frobbing into alloc.c, where it belongs.
12049         - Everything's an lrecord now, so no need to test for symbolp, etc.
12050         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12051
12052         * extents.c: Reorder code to remove declarations.
12053
12054         * frame.h (store_in_alist): Remove useless declaration.
12055
12056 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12057
12058         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12059         * config.h.in: Add HAVE_XCONVERTCASE.
12060
12061 2000-02-07  Andy Piper  <andy@xemacs.org>
12062
12063         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12064         it breaks many things.
12065
12066 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12067
12068         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12069         actually can start a common comment type.
12070         * src/syntax.h (SYNTAX_END_P): ditto for end.
12071
12072 2000-02-07  Martin Buchholz <martin@xemacs.org>
12073
12074         * XEmacs 21.2.28 is released.
12075
12076 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12077
12078         * event-Xt.c (x_keysym_to_character): New.
12079         (maybe_define_x_key_as_self_inserting_character): New.
12080         (x_has_keysym): New.
12081         Auto-define all keys on the keyboard as self-insert-key.
12082
12083 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12084
12085         * menubar.c (vars_of_menubar): A small code simplification.
12086
12087         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12088
12089         * ExternalShell.c:
12090         * ExternalClient.c:
12091         * EmacsShell-sub.c:
12092         * EmacsManager.c:
12093         * EmacsFrame.c:
12094         Use consistent style for specifying X resources.
12095
12096         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12097         This makes (dontusethis-set-symbol-value-handler) actually usable.
12098
12099         * lrecord.h (lrecord_decription_type):
12100         * alloc.c (pdump_register_sub):
12101         (pdump_dump_data):
12102         (pdump_reloc_one):
12103         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12104         Comply with XEmacs coding style.
12105         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12106         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12107
12108         * keymap.c (Faccessible_keymaps):
12109         Make (accessible-keymaps map "\C-h") do the Right Thing.
12110         Make (accessible-keymaps map []) do the Right Thing.
12111         Make (accessible-keymaps map "") do the Right Thing.
12112         (check_keymap_definition_loop): New function.
12113         (keymap_store_internal): Keep luser from shooting self in foot,
12114           via (define-key ctl-x-4-map "p" global-map).
12115         Remove fullness slot from struct Lisp_Keymap, since hash tables
12116         are now reliable.
12117         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12118
12119 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12120
12121         * redisplay.c (init_redisplay): Fix small memory leak.
12122         * elhash.h:
12123         * elhash.c (pdump_reorganize_hash_table):
12124         Rename from reorganize_hash_table. Change prototype.
12125         Reuse the original memory for hentries.  Save 100k.
12126         * alloc.c (PDUMP_READ): new macro.
12127         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12128         * alloc.c: No need to #ifndef before #undef.
12129
12130         * print.c: Allow debug_print() to print readably by modifying
12131         debug_print_readably.  Use consistent variable names.
12132
12133         * .dbxrc: Try to get things to work even if stopped in a function
12134         without source available by explicitly specifying source files.
12135 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12136
12137         * unexnt.c (_start): Removed bogus code which caused loading heap
12138         from differrent executable file.
12139         Removed bogus assignment to _fmode, which caused inconsistencies.
12140
12141 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12142
12143         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12144         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12145         Do not preliminary `#define signal sigset'.
12146
12147         * systime.h: Do not prototype environ on windows nt and cygwin,
12148         this conflicts with system header.
12149
12150         * syssignal.h: Use correct define for WINDOWSNT
12151
12152         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12153         with system header.
12154
12155         * sysdep.c (near start of file): Fixed commentary and rearranged
12156         ifdefs in readable order.
12157         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12158         (start_of_text):
12159         (end_of_text):
12160         (end_of_data): Do not compile in if using PDUMP.
12161
12162         * symsinit.h: Prototyped vars_of_nt().
12163
12164         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12165         (find_child_console): Use it.
12166         (sys_kill): Use it.
12167
12168         * ntheap.h: Do not extern os_subtype.
12169
12170         * ntheap.c (cache_system_info): Do not cache unneeded:
12171         nt_major_version, nt_minor_version and os_subtype.
12172         (recreate_heap): Do not compile in when PDUMPing.
12173
12174         * nt.c (geteuid and friends): Use the new varibale
12175         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12176         (init_user_info): Removed the above mentioned hackery.
12177         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12178         stat has been fixed in the C runtime.
12179         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12180
12181         * file-coding.c (struct file_coding_dump): Do not define
12182         ucs_to_mule_table in the struct if not MULE.
12183         (struct struct lrecord_description fcd_description_1): Do not dump
12184         the above.
12185
12186         * emacs.c (main_1): Call vars_of_nt().
12187         (right before Fdump_emacs_data): Don't need lastfile if using both
12188         portabe dumper and system malloc.
12189
12190         * alloc.c (Fmemory_limit): Conditionalized out.
12191         (pdump): Use OPEN_BINARY for the portable dump file.
12192         (pdump_load): Ditto.
12193
12194 2000-02-02  Mike Alexander  <mta@arbortext.com>
12195
12196         * nt.c (convert_time): Set tm_isdst before calling mktime and
12197         avoid calling it at all if the compiler supports 64 bit integers.
12198         Also initialize utc_base_ft before using it.
12199
12200 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12201
12202         * frame.c (change_frame_size_1): Take f->internal_border_width
12203         into consideration when calculating the width of the frame.
12204
12205 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12206
12207         * window.c (frame_min_height):
12208         (frame_size_valid_p):
12209         (frame_pixsize_valid_p): Added.
12210         (check_frame_size): Generalized.
12211
12212         * window.h: Prototyped the above.
12213
12214         * lisp.h:
12215         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12216         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12217         Deleted Vwin32_* and Vbinary_process_* unused variables.
12218
12219         * device-msw.c (msprinter_init_device): Do not get printer font
12220         list; Added DEVMODE functions.
12221
12222         * frame-msw.c: Added lots of printer code.
12223
12224         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12225         general.c.
12226
12227         * console-msw.h: Added more msprinter device private slots.
12228
12229 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12230
12231         * event-msw.c (key_needs_default_processing_p): Added.
12232         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12233
12234 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12235
12236         * glyphs.c (image_instance_layout): Mark image instance as clean
12237         after layout.
12238         (glyph_dirty_p): Removed redundant function.
12239         (invalidate_glyph_geometry_maybe): Added.
12240         (update_glyph_cachel_data): Call it.
12241
12242         * glyphs.h: Prototyped it.
12243
12244         * redisplay.c (add_glyph_rune): Call it.
12245         (redisplay_window): Reset glyphs cachels when frame faces have
12246         changed, thus forcing recomputation of built-in border glyphs.
12247
12248 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12249
12250         * Makefile.in.in: Make portable dumper and purify play well together.
12251         Add imperfect, but better than nothing, support for pdump.
12252         Remove xemacs.dmp when temacs is re-generated.
12253         Don't ignore errors when dumping xemacs.
12254
12255         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12256
12257 2000-01-28  Andy Piper  <andy@xemacs.org>
12258
12259         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12260         (setup_normal_frame): ditto.
12261         (setup_frame_without_minibuffer): ditto.
12262         (setup_minibuffer_frame): ditto.
12263         (delete_frame_internal): ditto.
12264         (Fmake_frame_invisible): ditto.
12265         (Ficonify_frame): ditto.
12266
12267         * window.h: change Fset_window_buffer signature.
12268
12269         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12270         (Fset_window_buffer): allow recording of buffer if the window is
12271         the selected window.
12272         (window_loop): Use new Fset_window signature.
12273
12274 2000-01-23  Daniel Pittman  <daniel@danann.net>
12275
12276         * config.h.in: Added template for `HAVE_ATHENA_3D'
12277
12278 2000-01-29  Andy Piper  <andy@xemacs.org>
12279
12280         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12281
12282         * gutter.c (output_gutter): Don't output if the window isn't live.
12283
12284 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12285
12286         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12287         of 01/12/00: Moved SetFocus back here where it belongs.
12288
12289 2000-01-23  Andy Piper  <andy@xemacs.org>
12290
12291         * s/cygwin32.h: declare printer things.
12292
12293 2000-01-26  Andy Piper  <andy@xemacs.org>
12294
12295         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12296         Alexander.
12297
12298 2000-01-24  Andy Piper  <andy@xemacs.org>
12299
12300         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12301         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12302
12303         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12304
12305         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12306
12307         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12308
12309         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12310         (mswindows_output_display_block): Avoid local shadows.
12311
12312         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12313         (mswindows_enqueue_mouse_button_event): ditto.
12314         (mswindows_handle_gui_wm_command): remove declaration.
12315
12316         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12317         warnings.
12318
12319         * console-msw.h: Avoid shadows.
12320         (mswindows_get_toolbar_button_text):
12321         (emacs_mswindows_create_stream_pair):
12322         (emacs_mswindows_delete_stream_pair):
12323         (mswindows_handle_toolbar_wm_command): declare.
12324
12325         * device-msw.c (build_syscolor_string): Avoid shadows.
12326
12327 2000-01-23  Andy Piper  <andy@xemacs.org>
12328
12329         * glyphs-widget.c (widget_instantiate): reverse the items for
12330         layouts so that children are in the expected order.
12331
12332 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12333
12334         * ralloc.c: safe_bcopy ==> memmove
12335         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12336         * s/msdos.h: Remove BCOPY macros.
12337         * insdel.c (gap_right): Remove BCOPY conditional code.
12338         * insdel.c (gap_left): Remove BCOPY conditional code.
12339         XEmacs demands a working ANSI C compiler - hence memmove.
12340
12341         * regex.c (regex_compile): Remove accidental use of trigraphs.
12342
12343 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12344
12345         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12346         event timestamp.
12347
12348 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12349
12350         * event-msw.c (mswindows_drain_windows_queue): Added the
12351         parameter.
12352         (mswindows_need_event): Commented the call to
12353         mswindows_drain_windows_queue().
12354         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12355         only.
12356
12357         * console-msw.h: Moved a few function prototypes here from
12358         event-msw.c.
12359
12360         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12361         parameter from unsigned short to unsigned long.
12362         (Fmswindows_shell_execute): Added return value.
12363
12364 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12365
12366         * sysdep.c (init_system_name):
12367           process-unix.c (unix_canonicalized_host_name):
12368         Don't call freeaddrinfo() if getaddrinfo() fails.
12369
12370         * process-unix.c (unix_open_unix_network_stream):
12371         Moved the code to get a port # into address loop.
12372
12373 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12374
12375         * buffer.c (reinit_vars_of_buffer):
12376         The right place to initialize conversion_in_dynarr and
12377         conversion_out_dynarr.
12378
12379         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12380
12381         * process-unix.c (unix_canonicalize_host_name): Muleize.
12382         (unix_open_network_stream): Muleize.
12383
12384         * buffer.h: Fix up prototypes for ralloc.c functions.
12385
12386 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12387         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12388         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12389                 instead of gethostbyname()
12390         * process-unix.c: In unix_canonicalize_host_name() and
12391                 unix_open_network_stream(), add code to use getaddrinfo()
12392                 instead of gethostbyname().
12393
12394 2000-01-27  Daniel Pittman <daniel@danann.net>
12395
12396         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12397         libs when built with flat Athena.
12398
12399 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12400
12401         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12402         Use coding standards for function prototypes.
12403
12404 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12405
12406         * dialog-msw.c (push_lisp_string_as_unicode):
12407         * doc.c (unparesseuxify_doc_string):
12408         * dired.c (Fuser_name_completion_1):
12409         * dired.c (Fuser_name_all_completions):
12410         * dired.c (free_user_cache):
12411         * dired.c (user_name_completion):
12412         * console-x.c (get_display_arg_connection):
12413         * minibuf.c (clear_echo_area_internal):
12414         * minibuf.c (echo_area_append):
12415         * eldap.c (Fldap_open):
12416         * eldap.c (Fldap_search_internal):
12417         * frame-x.c (x_set_frame_text_value):
12418         * frame-x.c (x_set_frame_properties):
12419         * frame-x.c (x_create_widgets):
12420         * redisplay-tty.c (term_get_fkeys_1):
12421         * objects-x.c (x_parse_nearest_color):
12422         * objects-x.c (x_valid_color_name_p):
12423         * objects-x.c (x_initialize_font_instance):
12424         * objects-x.c (x_list_fonts):
12425         * objects-x.c (x_find_charset_font):
12426         * tooltalk.c (Fadd_tooltalk_message_arg):
12427         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12428         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12429         * process-unix.c (unix_create_process):
12430         * ntproc.c (sys_spawnve):
12431         * sound.c (Fplay_sound_file):
12432         * sound.c (Fplay_sound):
12433         * buffer.c (init_initial_directory):
12434         * buffer.c (init_buffer):
12435         * editfns.c (init_editfns):
12436         * editfns.c (Ftemp_directory):
12437         * editfns.c (Fuser_full_name):
12438         * editfns.c (uncache_home_directory):
12439         * editfns.c (get_home_directory):
12440         * editfns.c (Fuser_home_directory):
12441         * editfns.c (Fformat_time_string):
12442         * editfns.c (Fcurrent_time_string):
12443         * gui-x.c (button_item_to_widget_value):
12444         * database.c (Fopen_database):
12445         * event-Xt.c (x_to_emacs_keysym):
12446         * event-Xt.c (x_event_to_emacs_event):
12447         * event-Xt.c (describe_event_window):
12448         * event-msw.c (mswindows_wnd_proc):
12449         * glyphs-eimage.c (jpeg_instantiate):
12450         * glyphs-eimage.c (gif_instantiate):
12451         * glyphs-eimage.c (png_instantiate):
12452         * glyphs-eimage.c (tiff_instantiate):
12453         * glyphs-x.c (xbm_instantiate_1):
12454         * glyphs-x.c (x_xbm_instantiate):
12455         * glyphs-x.c (x_xface_instantiate):
12456         * glyphs-x.c (autodetect_instantiate):
12457         * glyphs-x.c (cursor_font_instantiate):
12458         * glyphs-x.c (x_widget_instantiate):
12459         * glyphs-x.c (x_widget_set_property):
12460         * glyphs-x.c (x_widget_property):
12461         * glyphs-x.c (BUILD_GLYPH_INST):
12462         * print.c (write_string_to_stdio_stream):
12463         * print.c (output_string):
12464         * print.c (Falternate_debugging_output):
12465         * print.c (Fexternal_debugging_output):
12466         * glyphs-msw.c (extract_xpm_color_names):
12467         * glyphs-msw.c (mswindows_xpm_instantiate):
12468         * glyphs-msw.c (bmp_instantiate):
12469         * glyphs-msw.c (resource_name_to_resource):
12470         * glyphs-msw.c (mswindows_resource_instantiate):
12471         * glyphs-msw.c (xbm_instantiate_1):
12472         * glyphs-msw.c (mswindows_xbm_instantiate):
12473         * glyphs-msw.c (mswindows_xface_instantiate):
12474         * glyphs-msw.c (mswindows_widget_instantiate):
12475         * glyphs-msw.c (add_tree_item):
12476         * glyphs-msw.c (add_tab_item):
12477         * glyphs-msw.c (mswindows_combo_box_instantiate):
12478         * glyphs-msw.c (mswindows_widget_property):
12479         * glyphs-msw.c (mswindows_combo_box_property):
12480         * glyphs-msw.c (mswindows_widget_set_property):
12481         * console.c (stuff_buffered_input):
12482         * objects-msw.c (mswindows_initialize_color_instance):
12483         * objects-msw.c (mswindows_valid_color_name_p):
12484         * objects-msw.c (mswindows_list_fonts):
12485         * objects-msw.c (mswindows_font_instance_truename):
12486         * bytecode.c (optimize_compiled_function):
12487         * select-x.c (symbol_to_x_atom):
12488         * select-x.c (x_atom_to_symbol):
12489         * select-x.c (hack_motif_clipboard_selection):
12490         * select-x.c (selection_data_to_lisp_data):
12491         * select-x.c (lisp_data_to_selection_data):
12492         * select-x.c (Fx_get_cutbuffer_internal):
12493         * select-x.c (Fx_store_cutbuffer_internal):
12494         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12495         * buffer.h (TO_INTERNAL_FORMAT): New function.
12496         * emacs.c (make_arg_list_1):
12497         * emacs.c (make_argc_argv):
12498         * emacs.c (main_1):
12499         * emacs.c (Fdump_emacs):
12500         * emacs.c (split_string_by_emchar_1):
12501         * file-coding.h:
12502         * lisp.h:
12503         * lstream.h:
12504         * symsinit.h:
12505         * device-x.c (x_init_device):
12506         * device-x.c (Fx_valid_keysym_name_p):
12507         * device-x.c (Fx_get_font_path):
12508         * device-x.c (Fx_set_font_path):
12509         * glyphs.c (bitmap_to_lisp_data):
12510         * glyphs.c (pixmap_to_lisp_data):
12511         * alloc.c (make_ext_string): Use coding system arguments.  Update
12512         all callers.
12513         * alloc.c (build_string):
12514         * callproc.c (child_setup):
12515         * callproc.c (init_callproc):
12516         * fileio.c (lisp_strerror):
12517         * fileio.c (directory_file_name):
12518         * fileio.c (Fexpand_file_name):
12519         * fileio.c (Ffile_truename):
12520         * fileio.c (Fsysnetunam):
12521         * fileio.c (Fdo_auto_save):
12522         * sysdep.c (sys_readdir):
12523         * tests.c: New file.  Allow adding C tests.
12524         Replace GET_* macros with a more comprehensible and flexible
12525         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12526         Modify all calls.
12527         Any coding system can be used to do format conversion.
12528         Eliminate enum external_data_format.
12529         Eliminate convert_to_external_format.
12530         Eliminate convert_to_internal_format.
12531         Make sure file-name, keyboard, terminal, and ctext are always
12532         defined as coding systems or aliases.  Make
12533         file-name-coding-system, terminal-coding-system, and
12534         keyboard-coding-system magical variables that are equivalent to
12535         defining the corresponding coding system aliases.
12536
12537         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12538         * file-coding.c (Fcoding_system_alias_p): New function.
12539         * file-coding.c (Fcoding_system_aliasee): New function.
12540         * file-coding.c (append_suffix_to_symbol): New function.
12541         * file-coding.c (dangling_coding_system_alias_p): New function.
12542         * file-coding.c (Ffind_coding_system):
12543         * file-coding.c (Fcopy_coding_system):
12544         * file-coding.c (encode_coding_no_conversion):
12545         * file-coding.c (syms_of_file_coding):
12546         * file-coding.c (vars_of_file_coding):
12547         Rewrite coding system alias code.
12548         Allow nested aliases, like symbolic links.
12549         Allow redefinition of coding system aliases.
12550         Prevent existence of dangling coding system aliases.
12551
12552         * dired.c (Fuser_name_completion_1):
12553         * dired.c (Fuser_name_all_completions):
12554         A crash would happen if user did QUIT in the middle of building
12555         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12556
12557         * lisp.h:
12558         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12559
12560         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12561         an unsigned char *.  Update all callers.
12562
12563 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12564
12565         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12566
12567 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12568
12569         * elhash.c (hentry_description): Use more portable definition.
12570         (resize_hash_table): Initialize new hentries using
12571         xnew_array_and_zero, thereby simplifying the code.
12572
12573         * mule-charset.c (make_charset): Make sure entire object is
12574         initialized, to avoid Purify warnings.
12575
12576         * alloc.c (resize_string): Fix unlikely crash with big strings.
12577
12578 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12579
12580         * realpath.c (xrealpath):
12581         Don't call getwd().
12582
12583 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12584
12585         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12586
12587 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12588
12589         * unexelfsgi.c (unexec): Change the way we decide which segment
12590         should be extended.
12591
12592         Assumption that .bss section should be outside the PT_LOADable
12593         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12594         it's present) is inside the 'data' segment. This would fail the
12595         test which was used to find a segment to grow and cover new
12596         heap. Instead of this assumption, I created another one - on IRIX
12597         the segment to grow should start below .bss and it's address
12598         should extent above the end of .bss. Once this segment is
12599         identified, it's grown to accommodate the new heap and new
12600         zero-length .bss section is added at the end of .data2.
12601
12602 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12603
12604         * eval.c (Feval): Wrong number of arguments should use original
12605         function, not the indirect_function version of it.
12606
12607 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12608
12609         * glyphs-x.c (x_button_instantiate): Don't add image if
12610         it is not a pixmap.
12611         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12612         is relative.
12613
12614 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12615
12616         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12617         declaration.
12618         (DEFVAR_INT_MAGIC): Ditto.
12619         (DEFVAR_BOOL_MAGIC): Ditto.
12620         * glyphs.h: Reindent backslash.
12621
12622 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12623
12624         * glyphs-widget.c (layout_query_geometry):
12625         (layout_layout): Use correct types for gheight, gwidth.
12626
12627 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12628
12629         * EmacsManager.c (QueryGeometry): Purified.
12630
12631 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12632
12633         * alloc.c (make_float): Make sure entire object is initialized, to
12634         avoid Purify warnings.
12635         (pdump_register_sub): Remove useless assignment.
12636         (pdump): Use xmalloc, not malloc.
12637         (pdump_load): Use xmalloc, not malloc.
12638
12639 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12640
12641         * callproc.c:
12642         * dired-msw.c:
12643         * fileio.c:
12644         * process-nt.c:
12645         * redisplay-msw.c:
12646         * sysdep.c: Removed redundant #include <windows.h>
12647
12648 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12649
12650         * frame.c (delete_frame_internal): Do not delete device when its
12651         implementation so declares.
12652         (delete_frame_internal): Set device selected frame to nil when
12653         last frame goes away.
12654
12655         * device-msw.c (msprinter_device_system_metrics): Implemented.
12656         (mswindows_device_system_metrics): Added 'device-dpi property.
12657
12658         * device.c: (Fdevice_printer_p): Added.
12659         Added 'offset-workspace device metric.
12660
12661         * console.h (device_metrics): Declared DM_offset_workspace.
12662
12663 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12664
12665         * fileio.c (Ffile_truename): Remove pointless and confusing
12666         initialization of elen.
12667
12668         * glyphs-widget.c: Compiler warning fixes.
12669
12670 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12671
12672         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12673         instead of a Lisp_Object as argument to make it consistent with
12674         the other LIVE_P macros.
12675         (CHECK_LIVE_PROCESS): New macro.
12676
12677         * process.c: Declare Qprocess_live_p.
12678         (Fprocess_live_p): New function.
12679         (create_process): Use PROCESS_LIVE_P.
12680         (read_process_output): Ditto.
12681         (set_process_filter): Ditto.
12682         (Fdelete_process): Ditto.
12683         (kill_buffer_processes): Ditto
12684         (process_send_signal): Use CHECK_LIVE_PROCESS.
12685         (Fprocess_input_coding_system): Check whether process is still
12686         alive (fix PR#1061).
12687         (Fprocess_output_coding_system): Ditto.
12688         (Fprocess_coding_system): Ditto.
12689         (Fset_process_input_coding_system): Ditto.
12690         (Fset_process_output_coding_system): Ditto.
12691
12692 2000-01-23  Andy Piper  <andy@xemacs.org>
12693
12694         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12695         layout and widget.
12696
12697         * glyphs.c (mark_image_instance): take into account changed
12698         image_instance format.
12699         (image_instance_equal): ditto.
12700         (image_instance_hash): ditto.
12701
12702         * glyphs-widget.c (widget_instantiate): Incorporate layout
12703         instantiation here. Delay layout of the layout until later.
12704         (layout_instantiate): deleted.
12705         (layout_query_geometry): new function. get the geometry of a
12706         layout.
12707         (layout_layout): layout a layout dynamically.
12708         (image_instantiator_widget): New function - splitting up
12709         image_instantiator_format_create_glyphs_widget for netwinder
12710         compilation.
12711         (image_instantiator_buttons):
12712         (image_instantiator_edit_fields):
12713         (image_instantiator_combo_box):
12714         (image_instantiator_scrollbar):
12715         (image_instantiator_progress_guage):
12716         (image_instantiator_tree_view):
12717         (image_instantiator_tab_control):
12718         (image_instantiator_labels):
12719         (image_instantiator_layout): ditto.
12720         (image_instantiator_format_create_glyphs_widget): Call preceding
12721         functions.
12722
12723 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12724
12725         * process.c (Fset_process_coding_system):
12726         * device-x.c (Fx_keysym_hash_table):
12727         Docstring fixes.
12728
12729         * lstream.c (Lstream_write): Return documented value, not 0.
12730
12731         * fileio.c (directory_file_name):
12732         (Fsubstitute_in_file_name):
12733         (Fsubstitute_insert_file_contents_internal):
12734         (Fwrite_region_internal):
12735         * emacs.c:
12736         * sysdep.c:
12737         * getloadavg.c:
12738         * systty.h:
12739         Remove vestigial APOLLO-conditional code.
12740
12741 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12742
12743         * getpagesize.h: Add guard macros.
12744         * libsst.h: Add guard macros.
12745         * libst.h: Add guard macros.
12746         * line-number.h: Add guard macros.
12747         * ndir.h: Add guard macros.
12748         * sysfloat.h: Add guard macros.
12749         * sysfile.h: Add guard macros.
12750         * sysproc.h: Add guard macros.
12751         * syswait.h: Add guard macros.
12752         * xintrinsic.h: Add guard macros.
12753         * xintrinsicp.h: Add guard macros.
12754         * xmmanager.h: Add guard macros.
12755         * xmmanagerp.h: Add guard macros.
12756         * xmprimitive.h: Add guard macros.
12757         * xmu.h: Add guard macros.
12758         * gpmevent.h: Add copyright statement. Add guard macros.
12759         * miscplay.h: Add guard macros.
12760         * *.h: Use consistent C-standards-approved guard macro names.
12761
12762         * opaque.c (make_opaque): Switch parameter order.
12763         * opaque.h (make_opaque): Switch parameter order.
12764         Update all callers.
12765         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12766
12767         * config.h.in (type_checking_assert): Added.
12768         (bufpos_checking_assert): Added.
12769
12770 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12771
12772         * alloc.c: Harmless pdump changes.
12773         - Use countof().
12774         - spell alignment correctly.
12775         * sysdep.c: Use countof()
12776
12777 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12778
12779         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12780         initially_selected_for_input() console method, default to 0.
12781         (semi_canonicalize_console_connection): Try to delegate to
12782         canonicalize_console_connection if no such console method.
12783         (canonicalize_console_connection): Vice versa.
12784         (print_console): Do not print nil connection.
12785
12786         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12787         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12788         (XDEVIMPF_FRAMELESS_OK): Added.
12789         (CONSOLE_INHERITS_METHOD): Added.
12790
12791         * console-msw.c (mswindows_canonicalize_console_connection):
12792         Added.
12793         (mswindows_canonicalize_device_connection): Added.
12794
12795         * console-msw.h (struct msprinter_device): Added this struct and
12796         accessor macros.
12797         (mswindows_device): Made fontlist a lisp object.
12798
12799         * device.c (semi_canonicalize_device_connection):  Try to delegate
12800         to canonicalize_device_connection if no such console method.
12801         (canonicalize_device_connection): Vice versa.
12802         (print_device): Do not print nil connection.
12803
12804         * device-msw.c (mswindows_init_device): Call InitCommonControls
12805         when have widgets.
12806         (mswindows_delete_device): Removed fontlist deallocation.
12807         (mswindows_mark_device): Added.
12808
12809         * events.c (event_equal): Added abort() at unreached code.
12810         (event_hash): Ditto.
12811
12812         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12813         fallback tags of Windows devices.
12814
12815         * general.c (syms_of_general): Initialized Qmsprinter.
12816
12817         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12818         of fallback tags of Windows devices.
12819
12820         * lisp.h: Declared Qmsprinter.
12821
12822         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12823         of strings.
12824         (mswindows_list_fonts): Ditto.
12825         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12826         that it can be used by both mswindows and msprinter devices.
12827         (initialize_font_instance): Added.
12828         (mswindows_initialize_font_instance): Use it.
12829         (msprinter_initialize_font_instance): Added.
12830
12831         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12832         and implementation flags check.
12833         (redisplay_without_hooks): Changed the call to the above.
12834         (Fredraw_device): Ditto.
12835         (Fredisplay_device): Ditto.
12836
12837         * redisplay-msw.c (get_frame_dc): Implemented.
12838         (get_frame_compdc): Implemented.
12839         (many functions): Use the two functions above to get device
12840         contexts, ether for a window or a printer.
12841
12842 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12843
12844         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12845         initialization here.
12846         (init_symbols_once_early): Call it.
12847         * emacs.c (main_1): Call it.
12848         * symsinit.h: Declare it.
12849
12850 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12851
12852         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12853         Lisp_Object.
12854         (pdump_backtrace): Ditto.
12855         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12856         (pdump_get_entry): Abort if trying to register a null pointer.
12857         (pdump_dump_data): Cleanup types when relocating.
12858         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12859         (pdump_dump_rtables): Remove bad casts.
12860         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12861         Lisp_Object instead of a EMACS_INT for the hashtable
12862         reorganization.
12863
12864 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12865
12866         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12867
12868         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12869
12870         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12871
12872         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12873
12874 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12875
12876         * faces.h (FACE_STRIKETHRU_P): Added.
12877
12878         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12879         of font variants.
12880
12881         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12882         (mswindows_set_dc_font): New function, aware of font variants,
12883         separated from mswindows_update_dc.
12884
12885         * objects-msw.h (struct mswindows_font_instance_data): Added
12886         definition.
12887
12888         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12889         cached fonts and the data structure.
12890         (mswindows_initialize_font_instance): Added creation of font data
12891         structure.
12892         (mswindows_print_font_instance): Print at least something.
12893         (mswindows_create_font_variant): Implemented.
12894         (mswindows_get_hfont): Implemented.
12895
12896 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12897
12898         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12899         prototyping problem with msvc.
12900
12901         * emacs.c (main_1): added syms_of_gui_mswindows() call
12902
12903         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12904         syms_of_gui_mswindows() function
12905
12906         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12907
12908 2000-01-18  Martin Buchholz <martin@xemacs.org>
12909
12910         * XEmacs 21.2.27 is released.
12911
12912 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12913
12914         * glyphs-eimage.c (struct tiff_error_struct):
12915         (tiff_error_func):
12916         (tiff_warning_func):
12917         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12918
12919         * unexmips.c:
12920         * unexhp9k3.c:
12921         * unexfreebsd.c:
12922         * unexec.c: Remove vestigial Lucid C code.
12923         * unexalpha.c:
12924         * unexaix.c:
12925         * termcap.c:
12926         * libsst.c: Ansify.
12927         Remove declarations of errno and strerror().
12928
12929         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12930
12931         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12932
12933 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12934
12935         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12936         Optimize.
12937
12938 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12939
12940         * md5.c:
12941         * file-coding.c:
12942         * file-coding.h:
12943         Change enum eol_type to eol_type_t.
12944
12945 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12946
12947         * gui.c (get_gui_callback): Check cons before accessing car.
12948
12949 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12950
12951         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12952         (XSETSPECIFIER_TYPE): Ditto.
12953
12954 2000-01-17  Didier Verna  <didier@xemacs.org>
12955
12956         * redisplay.c (generate_fstring_runes): compute string size in
12957         characters, not bytes.
12958
12959 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12960
12961         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12962
12963 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12964
12965         * print.c (print_error_message): Call print_prepare().
12966
12967 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12968
12969         * .dbxrc: Renamed from dbxrc.
12970
12971         * events.c (event_to_character):
12972         Use `assert (foo)' instead of `if (!foo) abort()'
12973
12974         * .gdbinit (xtype): Add documentation.
12975         * .gdbinit (check-temacs): New function.
12976         * .gdbinit (check-xemacs): New function.
12977         * dbxrc (check-xemacs): New function.
12978         * dbxrc (check-xemacs): New function.
12979
12980 2000-01-14  Andy Piper  <andy@xemacs.org>
12981
12982         * glyphs-widget.c (widget_query_geometry): Make sure that we
12983         calculate default dimensions correctly.
12984
12985 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12986
12987         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12988
12989         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12990         pdump_wire'd variable.
12991
12992         * emacs.c: (main_1): Conditionalized calls to
12993         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12994
12995 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12996
12997         * window.c (Fset_window_configuration):
12998         * sysdep.c (_start):
12999         * input-method-motif.c (res):
13000         * event-Xt.c (Xt_process_to_emacs_event):
13001         Simple compiler warning fixes.
13002
13003         * bytecode.c (funcall_compiled_function): Use the original
13004         function symbol on the backtrace list in preference to the
13005         compiled_function object in error messages.
13006
13007 2000-01-13  Andy Piper  <andy@xemacs.org>
13008
13009         * glyphs-x.c (update_widget_face): Make sure we update the widget
13010         background as well as foreground.
13011
13012 2000-01-13  Andy Piper  <andy@xemacs.org>
13013
13014         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13015         fields to subwindow.
13016         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13017         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13018         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13019         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13020
13021         * glyphs-widget.c (check_valid_tab_orientation): new function.
13022         (initialize_widget_image_instance): zero orientation and
13023         justification.
13024         (widget_instantiate): pick up orientation.
13025         (tab_control_query_geometry): return appropriate values for
13026         vertical tabs.
13027
13028         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13029         appropriate creation flags for left, right and bottom tabs.
13030
13031         * s/cygwin32.h: add tab definitions.
13032
13033 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13034
13035         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13036         frame upon hiding a subwindow.
13037         (mswindows_button_instantiate): Changed the push button style to
13038         BS_PUSHBUTTON.
13039         (mswindows_button_instantiate): Removed button BS_NOTIFY
13040         style.
13041         (mswindows_button_instantiate): Removed redundant check for
13042         a disabled gui item.
13043         (mswindows_button_instantiate): Made use of WS_TABSTOP
13044         consistent: "operable" controls (edit, button, tree, scroll) have
13045         this style, "display-only" ones (static, progress gauge) do
13046         not. This style is currently ignored by XEmacs though. Also,
13047         removed the WS_EX_CONTROLPARENT style - it is not for children,
13048         it is for their parents!
13049         (mswindows_edit_field_instantiate): Ditto.
13050         (mswindows_progress_gauge_instantiate): Ditto.
13051         (mswindows_tree_view_instantiate): Ditto.
13052         (mswindows_tab_control_instantiate): Ditto.
13053         (mswindows_scrollbar_instantiate): Ditto.
13054         (mswindows_combo_box_instantiate): Ditto.
13055         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13056         style to the "clip" window.
13057         (mswindows_button_instantiate): Removed compilation warning by
13058         equally typing terms of the ?: operator.
13059
13060 2000-01-12  Didier Verna  <didier@xemacs.org>
13061
13062         * redisplay.c (generate_fstring_runes): new parameter holding the
13063         last modeline-format extent.
13064         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13065         extent, fill the glyph block with it.
13066         (generate_fstring_runes): handle these parameters.
13067         (generate_formatted_string_db): ditto.
13068
13069         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13070         glyphs'extents in the modeline.
13071
13072 1999-01-11  Mike Woolley  <mike@bulsara.com>
13073
13074         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13075         256Mb, as a workaround for the non-starting problem many people
13076         have experienced.
13077
13078 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13079
13080         * console-tty.c (Fset_console_tty_output_coding_system):
13081         Force redrawing tty frame.
13082
13083 2000-01-10  Didier Verna  <didier@xemacs.org>
13084
13085         * redisplay.c (generate_fstring_runes): fix size computation bug.
13086
13087 2000-01-09  William M. Perry <wmperry@aventail.com>
13088
13089         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13090
13091 2000-01-09  Andy Piper  <andy@xemacs.org>
13092
13093         * glyphs-msw.c: index -> i to avoid shadows.
13094         (xbm_create_bitmap_from_data): make static.
13095         (check_valid_string_or_int): deleted.
13096         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13097
13098         * glyphs-x.c (x_update_subwindow): remove unused args.
13099
13100         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13101         back pointer - this is done in allocate_image_instance.
13102         (query_string_font): return Qnil to make the compiler happy.
13103         (unmap_subwindow): set to ~0 to make the compiler happy.
13104         (glyph_query_geometry): comment out until used.
13105         (glyph_layout): ditto.
13106
13107 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13108
13109         * insdel.c (signal_after_change): Remove extraneous unbind_to().