Sync up with r21-4-11-chise-0_21-=jis-x0208-1978.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
4         `Qjapanese_jisx0208_1978'.
5         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
6         of `japanese-jisx0208-1978'.
7         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
8         `=jis-x0208-1978'.
9
10 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
13         only for XEmacs CHISE.
14
15 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
16
17         * char-ucs.h: Compact non-ISO-IR charset-ids.
18         (LEADING_BYTE_UCS): Changed to -177.
19         (LEADING_BYTE_CONTROL_1): Changed to -77.
20         (LEADING_BYTE_UCS_BMP): Changed to -176.
21         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
22
23 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * mule-charset.c (Qiso_ir): New variable.
26         (Fmake_charset): Recognise new property `iso-ir'.
27         (syms_of_mule_charset): Add new symbol `iso-ir'.
28
29 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
30
31         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
32         n to -n; charset-id of non ISO-IR sets are changed to positive
33         numbers.
34
35 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
36
37         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
38         of `ucs'.
39         (Qmap_ucs): New variable.
40         (syms_of_mule_charset): Add new symbol `=ucs'.
41         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
42
43         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
44
45         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
46
47         * char-ucs.h (Qmap_ucs): New extern variable.
48
49 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
52         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
53         don't define it when UTF2000 is not defined.
54         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
55         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
56         when UTF2000 is not defined.
57         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
58         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
59
60 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
63
64         * mule-charset.c (Vcharset_ucs_gb): Deleted.
65         (Qucs_gb): Deleted.
66         (syms_of_mule_charset): Delete `ucs-gb'.
67         (complex_vars_of_mule_charset): Likewise.
68
69 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
70
71         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
72
73         * mule-charset.c (Vcharset_ucs_cns): Deleted.
74         (Qucs_cns): Deleted.
75         (syms_of_mule_charset): Delete `ucs-cns'.
76         (complex_vars_of_mule_charset): Likewise.
77
78 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
79
80         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
81
82         * mule-charset.c (Vcharset_ucs_jis): Deleted.
83         (Qucs_jis): Deleted.
84         (syms_of_mule_charset): Delete `ucs-jis'.
85         (complex_vars_of_mule_charset): Likewise.
86
87 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
88
89         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
90
91         * mule-charset.c (Vcharset_ucs_ks): Deleted.
92         (Qucs_ks): Deleted.
93         (syms_of_mule_charset): Delete `ucs-ks'.
94         (complex_vars_of_mule_charset): Likewise.
95
96 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
97
98         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
99         (Qideograph_daikanwa_2): Deleted.
100         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
101         (complex_vars_of_mule_charset): Likewise.
102
103         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
104         (LEADING_BYTE_DAIKANWA_1): Deleted.
105         (LEADING_BYTE_DAIKANWA_2): Deleted.
106         (MIN_CHAR_DAIKANWA): Deleted.
107         (MAX_CHAR_DAIKANWA): Deleted.
108
109 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
110
111         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
112         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
113         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
114
115         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
116         (Vcharset_ideograph_daikanwa): Deleted.
117         (Qideograph_hanziku_{1..12}): Deleted.
118         (Qideograph_daikanwa): Deleted.
119         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
120         Vcharset_ideograph_daikanwa.
121         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
122         `ideograph-hanziku-{1..12}'.
123         (complex_vars_of_mule_charset): Likewise.
124
125 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
126
127         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
128
129         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
130         (Qideograph_gt_pj_{1..11}): Deleted.
131         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
132         (complex_vars_of_mule_charset): Likewise.
133
134 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * mule-charset.c (Vcharset_ucs_big5): Deleted.
137         (Vcharset_ideograph_gt): Deleted.
138         (Qucs_big5): Deleted.
139         (Qideograph_gt): Deleted.
140         (syms_of_mule_charset): Delete symbol `ucs-big5' and
141         `ideograph-gt'.
142         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
143         and `ideograph-gt'.
144
145         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
146         (LEADING_BYTE_GT): Deleted.
147         (GC_CHARSETP): Deleted.
148         (MIN_CHAR_GT): Deleted.
149         (MAX_CHAR_GT): Deleted.
150
151 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
154
155 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
156
157         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
158         (Qideograph_cbeta): Deleted.
159         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
160         (complex_vars_of_mule_charset): Likewise.
161
162         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
163         (MIN_CHAR_CBETA): Comment out.
164         (MAX_CHAR_CBETA): Likewise.
165
166 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
167
168         * mule-charset.c (charset_lookup_description_1): Use
169         `NUM_LEADING_BYTES' in UTF-2000.
170
171 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * mule-charset.c (Vcharset_china3_jef): Deleted.
174         (Qchina3_jef): Deleted.
175         (syms_of_mule_charset): Don't define `china3-jef'.
176         (complex_vars_of_mule_charset): Likewise.
177
178         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
179         (MIN_CHAR_CHINA3_JEF): Comment out.
180         (MAX_CHAR_CHINA3_JEF): Comment out.
181
182 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * mule-charset.c (Vcharset_ucs_gb): New variable.
185         (Qucs_gb): New variable.
186         (syms_of_mule_charset): Add new symbol `ucs-gb'.
187         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
188
189         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
190
191 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * mule-charset.c (charset_code_point): if a coded-charset has a
194         final-byte, don't inherit the builtin range of the mother CCS.
195
196 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * mule-charset.c (charset_code_point): Fix problem about
199         inheritance.
200
201 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
202
203         * mule-charset.c (decode_builtin_char): Reorganized.
204
205 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * text-coding.c (char_encode_shift_jis): Modify for
208         `charset_code_point'.
209         (char_encode_big5): Likewise.
210         (char_encode_utf8): Likewise.
211         (char_encode_iso2022): Likewise.
212
213         * mule-charset.c (charset_code_point): Add new argument
214         `defined_only'.
215         (Fencode_char): Add new optional argument `defined_only'.
216
217         * chartab.c (put_char_table): Modify for `charset_code_point'.
218         (map_char_table): Likewise.
219
220         * char-ucs.h (charset_code_point): Add new argument
221         `defined_only'.
222         (encode_char_1): Modify for `charset_code_point'.
223
224 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
227         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
228
229 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
232         (Qjis_x0208): Likewise.
233         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
234         XCHARSET_FINAL(charset).
235         (charset_code_point): Modify condition for final-byte based
236         builtin-chars.
237         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
238         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
239         in UTF-2000; specify `=jis-x0208' as the mother of
240         `japanese-jisx0208-1978', `japanese-jisx0208' and
241         `japanese-jisx0208-1990' in UTF-2000.
242
243 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
244
245         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
246
247 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
248
249         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
250         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
251         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
252         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
253         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
254         CONVERSION_96x96x96x96 are introduced.
255         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
256         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
257         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
258
259         * char-ucs.h (CONVERSION_94): New macro.
260         (CONVERSION_96): New macro.
261         (CONVERSION_94x94): New macro.
262         (CONVERSION_96x96): New macro.
263         (CONVERSION_94x94x94): New macro.
264         (CONVERSION_96x96x96): New macro.
265         (CONVERSION_94x94x94x60): New macro.
266         (CONVERSION_94x94x94x94): New macro.
267         (CONVERSION_96x96x96x96): New macro.
268
269 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
270
271         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
272
273         * fns.c (Qideographic_structure): New variable.
274         (Qkeyword_char): New variable.
275         (ids_format_unit): New function.
276         (Fideographic_structure_to_ids): New function.
277         (syms_of_fns): Add new symbols `ideographic-structure' and
278         `:char'; add new builtin function `ideographic-structure-to-ids'.
279
280         * data.c (Fchar_ref_p): New function.
281         (syms_of_data): Add new builtin function `char-ref-p'.
282
283         * chartab.h: Add an EXFUN for `Ffind_char'.
284
285 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
286
287         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
288         and `COMPOSE_ADD_CHAR'.
289         (decode_coding_iso2022): Use `decode_flush_er_chars'.
290
291 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
292
293         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
294         instead of `DECODE_ADD_UCS_CHAR'.
295         (COMPOSE_ADD_CHAR): Likewise.
296
297 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
298
299         * text-coding.c (decode_flush_er_chars): New inline function.
300         (decode_add_er_char): New function.
301         (decode_coding_utf8): Use `decode_flush_er_chars' and
302         `decode_add_er_char'.
303
304 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
305
306         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
307         done before `decode_output_utf8_partial_char'.
308
309         * mule-charset.c (complex_vars_of_mule_charset): Specify
310         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
311         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
312
313 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * mule-charset.c (decode_defined_char): New function; search
316         mother.
317         (decode_builtin_char): Don't search mother if
318         XCHARSET_MAX_CODE(charset) == 0.
319         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
320         == 0 even if code >= XCHARSET_MAX_CODE(charset).
321         (Fdecode_char): Use `decode_defined_char' instead of
322         `DECODE_DEFINED_CHAR'.
323         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
324         mother of `Vcharset_ucs_jis'.
325
326         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
327         instead of `DECODE_DEFINED_CHAR'.
328
329         * char-ucs.h (decode_defined_char): Renamed from
330         `DECODE_DEFINED_CHAR'; changed to normal function.
331         (DECODE_CHAR): Use `decode_defined_char' instead of
332         `DECODE_DEFINED_CHAR'.
333
334         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
335
336 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
339
340         * text-coding.c (Vcoded_charset_entity_reference_alist): New
341         variable.
342         (Quse_entity_reference): New variable.
343         (Qd): New variable.
344         (Qx): New variable.
345         (QX): New variable.
346         (coding_system_description): Add description for
347         `ccs_priority_list'.
348         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
349         (allocate_coding_system): Initialize `ccs_priority_list' in
350         UTF-2000.
351         (Fmake_coding_system): Add description about
352         'use-entity-reference; setup
353         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
354         (Fcoding_system_property): Accept `disable-composition' and
355         `use-entity-reference' in UTF-2000.
356         (struct decoding_stream): Add new member `er_counter' and `er_buf'
357         in UTF-2000.
358         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
359         (decode_coding_utf8): Decode entity-reference if
360         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
361         (char_encode_utf8): Encode non-Unicode characters as
362         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
363         (str->codesys).
364         (syms_of_file_coding): Add new symbols `use-entity-reference',
365         `d', `x', `X'.
366         (vars_of_file_coding): Add new variable
367         `coded-charset-entity-reference-alist'.
368         (complex_vars_of_file_coding): Declare `disable-composition' and
369         `use-entity-reference' to be coding-system-properties in UTF-2000.
370
371         * file-coding.h (struct Lisp_Coding_System): Add new member
372         `use_entity_reference' and `ccs_priority_list'.
373         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
374         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
375         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
376
377 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
378
379         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
380
381 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
382
383         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
384         `XCHARSET_GRAPHIC(ccs)'.
385
386 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
387
388         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
389         for decoding-table.
390
391 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
392
393         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
394         instead of `XCHARSET_CHARS'.
395
396 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
397
398         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
399         (XCHARSET_BYTE_SIZE): Likewise.
400
401         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
402         mule-charset.c].
403         (XCHARSET_BYTE_SIZE): Likewise.
404
405 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
406
407         * char-ucs.h (decoding_table_check_elements): Delete prototype.
408         (get_ccs_octet_table): New inline function.
409         (put_ccs_octet_table): Likewise.
410         (decoding_table_put_char): Use `get_ccs_octet_table' and
411         `put_ccs_octet_table'.
412         (decoding_table_remove_char): Use `decoding_table_put_char'.
413         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
414
415         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
416         into encoding_table.
417         (make_charset): Use Qunbound instead Qnil as initial value of
418         decoding_table.
419
420 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * mule-charset.c (put_char_ccs_code_point): Modify for
423         `decoding_table_remove_char' and `decoding_table_put_char'.
424         (remove_char_ccs): Modify for `decoding_table_remove_char'.
425
426         * char-ucs.h (decoding_table_remove_char): Change arguments to
427         hide decoding_table vector.
428         (decoding_table_put_char): Likewise.
429
430 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * mule-charset.c (decoding_table_remove_char): Moved to
433         char-ucs.h.
434         (decoding_table_put_char): Likewise.
435
436         * char-ucs.h (decoding_table_check_elements): New prototype [moved
437         from mule-charset.c].
438         (decoding_table_remove_char): New inline function [moved from
439         mule-charset.c].
440         (decoding_table_put_char): Likewise.
441
442 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
445         instead of `DECODE_CHAR' for mother; don't use special code for
446         chinese-big5 to use code space of chinese-big5-1 and
447         chinese-big5-2.
448         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
449         `MAX_CHAR_BIG5_CDP' for chinese-big5.
450
451         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
452         (MAX_CHAR_BIG5_CDP): Revival.
453
454 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
455
456         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
457         the XLFD registry-encoding name of `chinese-big5'.
458
459 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
460
461         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
462         (Qchinese_big5_cdp): Deleted.
463         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
464         (complex_vars_of_mule_charset): Delete coded-charset
465         `chinese-big5-cdp'.
466
467         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
468         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
469         `CHARSET_ID_OFFSET - n' for private CCS.
470         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
471         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
472         of `MIN_LEADING_BYTE'.
473         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
474         `(CHARSET_ID_OFFSET - 97)'.
475         (MIN_CHAR_BIG5_CDP): Deleted.
476         (MAX_CHAR_BIG5_CDP): Deleted.
477
478 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
479
480         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
481         extension.
482
483 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
484
485         * mule-charset.c (decode_builtin_char): Support mother charsets.
486
487 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
488
489         * mule-charset.c (Q94x94x60): New variable.
490         (charset_code_point): Support conversion `94x94x60'.
491         (Fmake_charset): Likewise.
492         (syms_of_mule_charset): Add new symbol `94x94x60'.
493
494         * char-ucs.h (CONVERSION_94x94x60): New macro.
495
496 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
497
498         * mule-charset.c (charset_code_point): Unify code about
499         `code-offset'.
500
501 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
502
503         * mule-charset.c (charset_code_point): Merge code about builtin
504         characters into code about mother charsets; don't use
505         `range_charset_code_point'.
506         (range_charset_code_point): Deleted.
507
508 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
509
510         * mule-charset.c (Qcode_offset): New variable.
511         (Fmake_charset): Use `XUINT' to get value of `min-code' and
512         `max-code'; accept new property `code-offset'.
513         (syms_of_mule_charset): Add new symbol `code-offset'.
514
515 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * mule-charset.c (range_charset_code_point): Fixed.
518
519 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
520
521         * mule-charset.c (decode_builtin_char): Change semantics of
522         code-offset of coded-charset.
523         (charset_code_point): Likewise.
524         (range_charset_code_point): Likewise.
525         (complex_vars_of_mule_charset): Modify for the change.
526
527 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * mule-charset.c (Fencode_char): Reverse arguments.
530
531         * mule-charset.c (charset_code_point): Fixed.
532
533 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * mule-charset.c (Vcharset_mojikyo): Deleted.
536         (Vcharset_mojikyo_2022_1): Deleted.
537         (Vcharset_mojikyo_pj_{1..21}): Deleted.
538         (Qmin_code): New variable in UTF-2000.
539         (Qmax_code): Likewise.
540         (Qmother): Likewise.
541         (Qconversion): Likewise.
542         (Q94x60): Likewise.
543         (Qmojikyo): Deleted.
544         (Qmojikyo_2022_1): Deleted.
545         (Qmojikyo_pj_{1..22}): Deleted.
546         (mark_charset): Mark `cs->mother'.
547         (charset_description): Add description for `mother'.
548         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
549         new arguments `mother' and `conversion'; use
550         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
551         (charset_code_point): Moved from char-ucs.h; support `mother'
552         charset feature.
553         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
554         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
555         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
556         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
557         allow 2 as the value of `graphic' in UTF-2000; add new properties
558         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
559         require `final' in UTF-2000; modify for `make_charset'.
560         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
561         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
562         (Fcharset_property): Support `mother', `min-code' and `max-code'.
563         (Fencode_char): New function.
564         (syms_of_mule_charset): Add new builtin function `encode-char' in
565         UTF-2000; add new symbols `min-code', `max-code', `mother',
566         `conversion' and `94x60'; delete symbols `mojikyo',
567         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
568         (complex_vars_of_mule_charset): Modify for `make_charset' change;
569         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
570         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
571
572         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
573         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
574
575         * char-ucs.h (Vcharset_mojikyo): Deleted.
576         (Vcharset_mojikyo_2022_1): Deleted.
577         (LEADING_BYTE_MOJIKYO): Deleted.
578         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
579         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
580         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
581         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
582         add new member `mother'; add new member `conversion'.
583         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
584         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
585         (CHARSET_MOTHER): New macro.
586         (CHARSET_CONVERSION): New macro.
587         (CONVERSION_IDENTICAL): New macro.
588         (CONVERSION_94x60): New macro.
589         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
590         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
591         (XCHARSET_MOTHER): New macro.
592         (XCHARSET_CONVERSION): New macro.
593         (MIN_CHAR_MOJIKYO): Deleted.
594         (MAX_CHAR_MOJIKYO): Deleted.
595         (DECODE_MOJIKYO_2022): Deleted.
596         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
597         (charset_code_point): Changed to non-inline function.
598         (encode_char_1): Use `charset_code_point'.
599         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
600
601 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * lread.c (read_compiled_function): Fix prototype.
604         (read_vector): Likewise.
605
606 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * lrecord.h (struct lrecord_header): Delete `older'.
609         (set_lheader_implementation): Delete code for `older'.
610         (set_lheader_older_implementation): Deleted.
611         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
612         (OLDER_RECORD_P): Deleted.
613         (OLDER_RECORD_HEADER_P): Deleted.
614         (alloc_older_lcrecord): Deleted.
615         (alloc_older_lcrecord_type): Deleted.
616
617         * alloc.c (all_older_lcrecords): Deleted.
618         (alloc_older_lcrecord): Deleted.
619         (disksave_object_finalization_1): Delete code for older objects.
620         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
621         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
622
623 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * mule-charset.c (decoding_table_put_char): Use `make_vector'
626         instead of `make_older_vector'.
627         (put_char_ccs_code_point): Likewise.
628         (mark_charset): Mark `cs->decoding_table'.
629         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
630
631         * lisp.h (make_older_vector): Deleted.
632         (make_vector_newer): Deleted.
633
634         * config.h.in (HAVE_GGC): Deleted.
635
636         * alloc.c (make_older_vector): Deleted.
637         (make_vector_newer_1): Deleted.
638         (make_vector_newer): Deleted.
639
640 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
643         (Qideograph_daikanwa_2): New variable.
644         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
645         (complex_vars_of_mule_charset): Add new coded-charset
646         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
647         `LEADING_BYTE_DAIKANWA'.
648
649         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
650         (LEADING_BYTE_DAIKANWA_1): New macro.
651         (LEADING_BYTE_DAIKANWA_2): New macro.
652         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
653
654 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * mule-charset.c (complex_vars_of_mule_charset): Change
657         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
658         the second revised version.
659
660 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * mule-charset.c (Vcharset_ucs_smp): New variable.
663         (Vcharset_ucs_sip): New variable.
664         (Qucs_smp): New variable.
665         (Qucs_sip): New variable.
666         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
667         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
668         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
669         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
670         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
671         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
672
673         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
674         (LEADING_BYTE_UCS_SIP): New macro.
675         (MIN_CHAR_SMP): New macro.
676         (MAX_CHAR_SMP): New macro.
677         (MIN_CHAR_SIP): New macro.
678         (MAX_CHAR_SIP): New macro.
679
680 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
681
682         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
683         utf-2000.
684
685 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
686
687         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
688         value; don't store value into `encoding_table' of `Lisp_Charset'.
689         (mark_charset): `encoding_table' was deleted.
690         (charset_description): Likewise.
691         (make_charset): Likewise.
692         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
693         `put_char_ccs_code_point'.
694
695         * chartab.h (Fput_char_attribute): New EXFUN.
696
697         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
698         is unified with normal symbol space.
699         (Fget_char_attribute): Likewise.
700         (Fput_char_attribute): Likewise; behavior of
701         `put_char_ccs_code_point' is changed.
702
703         * char-ucs.h: Include "elhash.h".
704         (Vchar_attribute_hash_table): New external variable.
705         (struct Lisp_Charset): Delete `encoding_table'.
706         (CHARSET_ENCODING_TABLE): New implementation; refer
707         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
708         `Lisp_Charset'.
709
710 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
713         (cs) == 0.
714
715 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * text-coding.c (char_encode_big5): Prefer charset-g1 than
718         `chinese-big5'.
719
720 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
721
722         * chartab.c (uint8_byte_table_description): New constant.
723         (uint8-byte-table): Use `uint8_byte_table_description'.
724         (uint16_byte_table_description): New constant.
725         (uint16-byte-table): Use `uint16_byte_table_description'.
726
727 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
730         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
731
732 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * mule-charset.c (Vcharset_ucs_ks): New variable.
735         (Qucs_ks): New variable.
736         (syms_of_mule_charset): Add new symbol `ucs-ks'.
737         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
738
739         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
740
741 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
744         (Fdecode_char): Likewise.
745
746         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
747         chartab.h.
748         (Fdefine_char): Modify for Fdecode_char.
749         (Ffind_char): Likewise.
750
751         * mule-charset.c (Fdecode_char): Add new optional argument
752         `defined-only'.
753         (Fdecode_builtin_char): Modify for `Fdecode_char'.
754
755 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
758         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
759         (allocate_coding_system): Initialize initial-charsets of
760         CODESYS_BIG5 in XEmacs UTF-2000.
761         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
762         CODESYS_BIG5 in XEmacs UTF-2000.
763         (decode_coding_big5): Use initial-charset-g0 and -g1 of
764         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
765
766         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
767         variables.
768         (Qideograph_hanziku_{1 .. 12}): Likewise.
769         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
770         .. 12}'.
771         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
772         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
773         `ideograph-hanziku-{1 .. 12}'.
774
775         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
776         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
777         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
778         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
779         (DECODE_DEFINED_CHAR): New inline function.
780         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
781
782 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * mule-charset.c (Vcharset_china3_jef): Renamed from
785         `Vcharset_japanese_jef_china3'.
786         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
787         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
788         `{MIN|MAX}_CHAR_JEF_CHINA3'..
789         (syms_of_mule_charset): Rename `china3-jef' from
790         `japanese-jef-china3'.
791         (complex_vars_of_mule_charset): Likewise; rename
792         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
793
794         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
795         `LEADING_BYTE_JEF_CHINA3'.
796         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
797         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
798
799 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * mule-charset.c (encode_builtin_char_1): Comment out special code
802         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
803
804         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
805         (MAX_CHAR_MOJIKYO_0): Comment out.
806         (MIN_CHAR_CBETA): Changed to 0x00E20000.
807         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
808         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
809         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
810
811 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
812
813         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
814         (Qideograph_cbeta): New variable.
815         (encode_builtin_char_1): Comment out special code for
816         coded-charset `mojikyo' and `japanese-jef-china3'.
817         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
818         (complex_vars_of_mule_charset): Add new coded-charset
819         `ideograph-cbeta'.
820
821         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
822         (MIN_CHAR_CBETA): New macro.
823         (MAX_CHAR_CBETA): New macro.
824
825 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
828         (LEADING_BYTE_JEF_CHINA3): New macro.
829         (MIN_CHAR_JEF_CHINA3): New macro.
830         (MAX_CHAR_JEF_CHINA3): Likewise.
831         (DECODE_CHAR): Fixed.
832
833 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
834
835         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
836         (Qjapanese_jef_china3): New variable.
837         (encode_builtin_char_1): Support `japanese-jef-china3'.
838         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
839         (complex_vars_of_mule_charset): Add new coded-charset
840         `japanese-jef-china3'.
841
842 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
845         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
846         94^4, 96^3, 96^4, 128^n and 256^n set.
847         (put_char_table): Use `XCHARSET_CELL_RANGE'.
848         (map_char_table): Likewise.
849
850 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
853         UTF-2000.
854
855 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * chartab.h (get_char_id_table): New inline function.
858
859         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
860         function.
861
862 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
863
864         * chartab.h (decode_char_table_range): New prototype in XEmacs
865         UTF-2000.
866         (put_char_id_table): New inline function in XEmacs UTF-2000.
867
868         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
869         function.
870         (decode_char_table_range): Delete static declaration in XEmacs
871         UTF-2000.
872
873 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * chartab.c (put_char_id_table): Use `put_char_table'.
876
877 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
880         (map_over_uint16_byte_table): Likewise.
881         (map_over_byte_table): Likewise.
882         (map_char_table): Modify for `map_over_uint8_byte_table',
883         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
884         UTF-2000.
885
886 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
887
888         * chartab.c (struct map_char_table_for_charset_arg): New
889         structure.
890         (map_char_table_for_charset_fun): New function.
891         (map_char_table): Use `map_char_table' for encoding_table of
892         `range->charset'.
893
894 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
895
896         * chartab.c (map_char_table): Check a character is found in
897         range->charset instead of non default value is defined in
898         char-table when range is CHARTAB_RANGE_ROW.
899
900 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
901
902         * chartab.c (map_char_id_table): Deleted.
903         (Fmap_char_attribute): Use `map_char_table' instead of
904         `map_char_id_table'.
905
906 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
909         UTF-2000.
910         (update_syntax_table): Deleted in XEmacs UTF-2000.
911
912         * syntax.c (find_defun_start): Use `syntax_table' instead of
913         `mirror_syntax_table' in XEmacs UTF-2000.
914         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
915         UTF-2000.
916         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
917         XEmacs UTF-2000.
918         (Fmatching_paren): Likewise.
919         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
920         in XEmacs UTF-2000.
921         (find_start_of_comment): Likewise.
922         (find_end_of_comment): Likewise.
923         (Fforward_comment): Likewise.
924         (scan_lists): Likewise.
925         (char_quoted): Likewise.
926         (Fbackward_prefix_chars): Likewise.
927         (scan_sexps_forward): Likewise.
928         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
929         (update_syntax_table): Likewise.
930
931         * search.c (skip_chars): Use `syntax_table' instead of
932         `mirror_syntax_table' in XEmacs UTF-2000.
933         (wordify): Likewise.
934         (Freplace_match): Likewise.
935
936         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
937         `mirror_syntax_table' in XEmacs UTF-2000.
938         (WORDCHAR_P_UNSAFE): Likewise.
939         (re_match_2_internal): Likewise.
940
941         * font-lock.c (find_context): Use `buf->syntax_table' instead of
942         `buf->mirror_syntax_table' in XEmacs UTF-2000.
943
944         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
945         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
946
947         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
948         XEmacs UTF-2000.
949
950         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
951         UTF-2000.
952         (print_char_table): Print `default_value' in XEmacs UTF-2000.
953         (char_table_description): Delete `mirror_table' in XEmacs
954         UTF-2000.
955         (fill_char_table): Don't call `update_syntax_table' in XEmacs
956         UTF-2000.
957         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
958         (Fcopy_char_table): Likewise.
959         (put_char_table): Don't call `update_syntax_table' in XEmacs
960         UTF-2000.
961
962         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
963         `buf->mirror_syntax_table' in XEmacs UTF-2000.
964         (casify_region_internal): Likewise.
965
966         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
967
968         * buffer.c (common_init_complex_vars_of_buffer): Don't use
969         `mirror_syntax_table' in XEmacs UTF-2000.
970
971         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
972         `buf->mirror_syntax_table' in XEmacs UTF-2000.
973         (Fexpand_abbrev): Likewise.
974
975 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
978
979 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
980
981         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
982         (map_over_uint16_byte_table): Likewise.
983         (map_over_byte_table): Likewise.
984         (get_char_id_table): Refer `cit->default_value'.
985         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
986         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
987         of character-id ranges.
988         (mark_char_table): Mark `ct->default_value'.
989         (char_table_description): Add `default_value'.
990         (fill_char_table): Use `default_value'.
991         (decode_char_table_range): Decode `nil' as
992         `CHARTAB_RANGE_DEFAULT'.
993         (get_char_id_table): Refer `cit->default_value'.
994         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
995         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
996         temporary hack; check value of char-table is bound or not.
997         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
998
999         * chartab.h (struct Lisp_Char_Table): Add new member
1000         `default_value' in XEmacs UTF-2000.
1001         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1002         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1003         UTF-2000.
1004
1005 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * chartab.h (Lisp_Char_ID_Table): Deleted.
1008
1009         * chartab.c (char_table_description): Fix typo.
1010         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1011         `Lisp_Char_ID_Table'.
1012
1013 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1014
1015         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1016         `CHAR_ID_TABLE_P'.
1017
1018         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1019         `CHAR_ID_TABLE_P'.
1020
1021         * chartab.h (XCHAR_ID_TABLE): Deleted.
1022         (XSETCHAR_ID_TABLE): Deleted.
1023         (CHAR_ID_TABLE_P): Deleted.
1024
1025         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1026         `CHAR_ID_TABLE_P'.
1027         (Fget_composite_char): Likewise.
1028         (put_char_table): Likewise.
1029         (add_char_attribute_alist_mapper): Fixed.
1030         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1031         `CHAR_ID_TABLE_P'.
1032         (Fget_char_attribute): Likewise.
1033         (Fget_char_attribute): Likewise.
1034         (Fmap_char_attribute): Likewise.
1035
1036         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1037         `CHAR_ID_TABLE_P'.
1038         (encode_char_1): Likewise.
1039
1040 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1043         `XCHAR_ID_TABLE'.
1044
1045         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1046         instead of `XCHAR_ID_TABLE'.
1047         (remove_char_ccs): Likewise.
1048
1049         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1050         `XCHAR_ID_TABLE'.
1051         (Fget_composite_char): Likewise.
1052         (Fchar_variants): Likewise.
1053         (put_char_table): Likewise.
1054         (add_char_attribute_alist_mapper): Likewise.
1055         (Fchar_attribute_alist): Likewise.
1056         (Fget_char_attribute): Likewise.
1057         (Fput_char_attribute): Likewise.
1058         (Fmap_char_attribute): Likewise.
1059         (Fmap_char_attribute): Likewise.
1060
1061         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1062         `XCHAR_ID_TABLE'.
1063         (encode_char_1): Likewise.
1064
1065 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1066
1067         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1068         `Lisp_Char_ID_Table'.
1069         (mark_char_id_table): Deleted.
1070         (print_char_id_table): Likewise.
1071         (char_id_table_equal): Likewise.
1072         (char_id_table_hash): Likewise.
1073         (char_id_table_description): Likewise.
1074         (char_id_table): Likewise.
1075         (make_char_id_table): Use `Fmake_char_table' and
1076         `fill_char_table'.
1077         (get_char_id_table): Use `Lisp_Char_Table' instead of
1078         `Lisp_Char_ID_Table'.
1079         (put_char_id_table): Likewise.
1080         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1081         `XCHAR_ID_TABLE'.
1082         (Fremove_char_attribute): Likewise.
1083         (syms_of_chartab): Don't define type `char-id-table'.
1084
1085         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1086         (char_id_table): Likewise.
1087         (GC_CHAR_ID_TABLE_P): Likewise.
1088         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1089         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1090         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1091         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1092         (get_char_id_table): Use `Lisp_Char_Table' instead of
1093         `Lisp_Char_ID_Table'.
1094         (put_char_id_table_0): Likewise.
1095         (put_char_id_table): Likewise.
1096
1097 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1098
1099         * chartab.h: Lisp_Byte_Table related codes are moved from
1100         chartab.h.
1101
1102         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1103
1104 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1105
1106         * chartab.h: Don't include "chartab.h".
1107         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1108         (Lisp_Char_ID_Table): Likewise.
1109         (char_id_table): Likewise.
1110         (XCHAR_ID_TABLE): Likewise.
1111         (XSETCHAR_ID_TABLE): Likewise.
1112         (CHAR_ID_TABLE_P): Likewise.
1113         (GC_CHAR_ID_TABLE_P): Likewise.
1114         (get_char_id_table): Likewise.
1115
1116         * char-ucs.h: Include "chartab.h".
1117         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1118         (Lisp_Char_ID_Table): Likewise.
1119         (char_id_table): Likewise.
1120         (XCHAR_ID_TABLE): Likewise.
1121         (XSETCHAR_ID_TABLE): Likewise.
1122         (CHAR_ID_TABLE_P): Likewise.
1123         (GC_CHAR_ID_TABLE_P): Likewise.
1124         (get_char_id_table): Likewise.
1125
1126 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1127
1128         * chartab.c (copy_uint8_byte_table): New function.
1129         (copy_uint16_byte_table): New function.
1130         (copy_byte_table): New function.
1131         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1132         characters to call.
1133         (map_over_uint16_byte_table): Likewise.
1134         (map_over_byte_table): Likewise.
1135         (get_byte_table): Move prototype to chartab.h.
1136         (put_byte_table): Likewise.
1137         (put_char_id_table_0): Moved to chartab.h.
1138         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1139         (char_table_entry_equal): Likewise.
1140         (char_table_entry_hash): Likewise.
1141         (char_table_entry_description): Likewise.
1142         (char_table_entry): Likewise.
1143         (make_char_table_entry): Likewise.
1144         (copy_char_table_entry): Likewise.
1145         (get_non_ascii_char_table_value): Likewise.
1146         (map_over_charset_ascii): Likewise.
1147         (map_over_charset_control_1): Likewise.
1148         (map_over_charset_row): Likewise.
1149         (map_over_other_charset): Likewise.
1150         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1151         (print_char_table): Likewise.
1152         (char_table_equal): Likewise.
1153         (char_table_hash): Likewise.
1154         (char_table_description): Likewise.
1155         (fill_char_table): Likewise.
1156         (Fcopy_char_table): Likewise.
1157         (get_char_table): Likewise.
1158         (Fget_range_char_table): Likewise.
1159         (put_char_table): Likewise.
1160         (map_char_table): Likewise.
1161         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1162         UTF-2000.
1163
1164 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1165
1166         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1167         `Vauto_fill_chars' in XEmacs UTF-2000.
1168
1169         * chartab.h (get_byte_table): New prototype [moved from
1170         chartab.c].
1171         (put_byte_table): Likewise [moved from chartab.c].
1172         (put_char_id_table_0): New inline function [moved from chartab.c].
1173         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1174         (Lisp_Char_Table_Entry): Likewise.
1175         (char_table_entry): Likewise.
1176         (XCHAR_TABLE_ENTRY): Likewise.
1177         (XSETCHAR_TABLE_ENTRY): Likewise.
1178         (CHAR_TABLE_ENTRYP): Likewise.
1179         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1180         (NUM_ASCII_CHARS): Likewise.
1181         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1182         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1183
1184 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * chartab.c (get_char_id_table): Change interface.
1187         (put_char_id_table_0): New function.
1188         (put_char_id_table): Change interface; new implementation.
1189         (Fget_composite_char): Modify for interface change of
1190         `get_char_id_table'.
1191         (Fchar_variants): Likewise.
1192         (add_char_attribute_alist_mapper): Likewise.
1193         (Fchar_attribute_alist): Likewise.
1194         (Fget_char_attribute): Likewise.
1195         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1196         as same as character as the first argument like `put-char-table';
1197         modify for interface change of `put_char_id_table'.
1198         (Fremove_char_attribute): Modify for interface change of
1199         `put_char_id_table'.
1200
1201 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1202
1203         * text-coding.c: Sync up with XEmacs 21.2.41.
1204         (COMPOSE_ADD_CHAR): Modify for interface change of
1205         `get_char_id_table'.
1206
1207         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1208         change of `put_char_id_table'.
1209         (remove_char_ccs): Likewise.
1210
1211         * chartab.h (put_char_id_table): Change interface.
1212
1213         * char-ucs.h (get_char_id_table): Change interface.
1214         (charset_code_point): Modify for interface change of
1215         `get_char_id_table'.
1216         (encode_char_1): Likewise.
1217
1218 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1219
1220         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1221         argument `ccs'.
1222         (map_over_uint16_byte_table): Likewise.
1223         (map_over_byte_table): Likewise.
1224         (map_char_id_table): Add new argument `range' like
1225         `map_char_table'.
1226         (Fmap_char_attribute): Add new argument `range' like
1227         `Fmap_char_table'.
1228
1229 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1230
1231         * chartab.c (map_over_uint8_byte_table): Change interface of
1232         mapping function to use struct chartab_range instead of Emchar.
1233         (map_over_uint16_byte_table): Likewise.
1234         (map_over_byte_table): Likewise.
1235         (map_char_id_table): Likewise.
1236         (struct slow_map_char_id_table_arg): Deleted.
1237         (slow_map_char_id_table_fun): Deleted.
1238         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1239         function `slow_map_char_table_fun' instead of struct
1240         `slow_map_char_id_table_arg' and function
1241         `slow_map_char_id_table_fun'.
1242
1243 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c: Move char-it-table related codes to chartab.c.
1246         (Vutf_2000_version): Moved to chartab.c.
1247         (Fdefine_char): Likewise.
1248         (Ffind_char): Likewise.
1249         (syms_of_mule_charset): Move types `uint8-byte-table',
1250         `uint16-byte-table', `byte-table' and `char-id-table' to
1251         chartab.c; move functions `char_attribute_list,
1252         `find_char_attribute_table, `char_attribute_alist,
1253         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1254         `map_char_attribute, `define_char, `find_char, `char_variants and
1255         `get_composite_char to chartab.c; move symbols `=>ucs',
1256         `->decomposition', `compat', `isolated', `initial', `medial',
1257         `final', `vertical', `noBreak', `fraction', `super', `sub',
1258         `circle', `square', `wide', `narrow', `small' and `font' to
1259         chartab.c.
1260         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1261         setting codes for `Vcharacter_composition_table' and
1262         `Vcharacter_variant_table' to chartab.c.
1263         (complex_vars_of_mule_charset): Move setting code for
1264         `Vchar_attribute_hash_table' to chartab.c.
1265
1266         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1267         (make_char_id_table): New prototype.
1268         (put_char_id_table): Likewise.
1269         (Fget_char_attribute): Likewise.
1270
1271         * chartab.c: Move char-id-table related code from mule-charset.c.
1272         (Vutf_2000_version): Moved from mule-charset.c.
1273
1274         * char-ucs.h (Qucs): New external variable.
1275         (put_char_ccs_code_point): New prototype.
1276         (remove_char_ccs): Likewise.
1277
1278 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1279
1280         * mule-charset.c (Vcharset_ucs_jis): New variable.
1281         (Qucs_jis): Likewise.
1282         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1283         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1284
1285         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1286
1287 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288
1289         * mule-charset.c (map_over_uint8_byte_table): New function.
1290         (map_over_uint16_byte_table): Likewise.
1291         (map_over_byte_table): Likewise.
1292         (map_char_id_table): Likewise.
1293         (slow_map_char_id_table_fun): Likewise.
1294         (Fmap_char_attribute): Likewise.
1295         (syms_of_mule_charset): Add new function `map-char-attribute'.
1296
1297 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298
1299         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1300         (syms_of_mule_charset): Add new function `find-char'.
1301
1302 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303
1304         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1305         XEmacs UTF-2000.
1306         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1307         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1308         XEmacs UTF-2000.
1309         (complex_vars_of_mule_charset): Add new coded-charset
1310         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1311         `ideograph-gt-pj-*'.
1312
1313         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1314
1315 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1316
1317         * mule-charset.c (encode_builtin_char_1): Purge codes about
1318         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1319         {MIN|MAX}_CHAR_HEBREW.
1320         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1321         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1322
1323         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1324         (MAX_CHAR_GREEK): Purged.
1325         (MIN_CHAR_CYRILLIC): Purged.
1326         (MAX_CHAR_CYRILLIC): Purged.
1327         (MIN_CHAR_HEBREW): Commented out.
1328         (MAX_CHAR_HEBREW): Likewise.
1329
1330 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1331
1332         * mule-charset.c (Qto_ucs): New variable.
1333         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1334         (Fdefine_char): Likewise.
1335         (syms_of_mule_charset): Add new symbol `=>ucs'.
1336
1337 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1338
1339         * mule-charset.c (Fdecode_char): Fixed.
1340
1341 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342
1343         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1344         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1345         "tcvn5712-1".
1346
1347 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * mule-charset.c (Vcharset_ucs_big5): New variable.
1350         (Qucs_big5): Likewise.
1351         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1352         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1353
1354         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1355
1356 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * mule-charset.c (decode_builtin_char): Check Big5 code range
1359         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1360
1361 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1364         (Qchinese_gb12345): Likewise.
1365         (Fdecode_builtin_char): Fixed.
1366         (syms_of_mule_charset): Add `chinese-gb12345'.
1367         (complex_vars_of_mule_charset): Add coded-charset
1368         `chinese-gb12345'.
1369
1370         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1371         (LEADING_BYTE_CHINESE_GB12345): New macro.
1372
1373 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1376         and `latin-viscii-upper' for `latin-viscii'.
1377
1378 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * mule-charset.c (Fdecode_builtin_char): Comment out
1381         regularization code for ISO-IR GR representation.
1382
1383 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384
1385         * mule-charset.c (decode_builtin_char): New function; renamed from
1386         `make_builtin_char'; return -1 instead of signal.
1387         (Fdecode_builtin_char): Use `decode_builtin_char'.
1388
1389         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1390         `make_builtin_char'.
1391         (DECODE_CHAR): Use `decode_builtin_char' instead of
1392         `make_builtin_char'; use mapping table of `chinese-big5' for
1393         `chinese-big5-{1,2}'.
1394
1395 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * text-coding.c (char_encode_big5): New function.
1398         (char_finish_big5): Likewise.
1399         (reset_encoding_stream): Use `char_encode_big5' and
1400         `char_finish_big5' for CODESYS_BIG5.
1401         (mule_encode): Don't use `encode_coding_big5'.
1402         (encode_coding_big5): Deleted.
1403
1404 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1407         0x81- in XEmacs UTF-2000.
1408         (detect_coding_big5): Likewise.
1409
1410 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411
1412         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1413         generate character-id if the CCS property does not have
1414         corresponding predefined character.
1415         (make_builtin_char): Return -1 if corresponding predefined
1416         character is not found.
1417         (Fdecode_char): Return nil if corresponding character is not
1418         found.
1419         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1420         don't map to builtin ucs space.
1421
1422 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1423
1424         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1425         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1426
1427 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1430         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1431         (Qideograph_gt): Likewise.
1432         (Qideograph_gt_pj_{1..11}): Likewise.
1433         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1434         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1435         `ideograph-gt-pj-11'.
1436         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1437         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1438         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1439
1440         * char-ucs.h (LEADING_BYTE_GT): New macro.
1441         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1442         (MIN_CHAR_GT): Likewise.
1443         (MAX_CHAR_GT): Likewise.
1444
1445 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446
1447         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1448         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1449
1450         * doprnt.c (unsigned_int_converters): Add `c'.
1451         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1452
1453         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1454         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1455         `MIN_CHAR_MOJIKYO'.
1456         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1457         (MAX_CHAR_MOJIKYO_0): New macro.
1458         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1459
1460 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461
1462         * mule-charset.c (Fdefine_char): Delete cemented out code.
1463         (encode_builtin_char_1): Modify for new allocation of builtin
1464         Mojikyo characters.
1465
1466         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1467
1468 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * mule-charset.c (Vcharset_ucs_cns): New variable.
1471         (Qucs_cns): New variable.
1472         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1473         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1474
1475 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1478
1479 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1480
1481         * search.c (search_buffer): Make `charset_base_code' as
1482         character-id >> 6 to eliminate the corresponding last byte in
1483         UTF-8 representation [I'm not sure it is right thing].
1484         (boyer_moore): Likewise.
1485
1486 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1487
1488         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1489         representation in MULE.
1490
1491 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1492
1493         * text-coding.c (Fmake_coding_system): Use
1494         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1495         `EXTERNAL_PROPERTY_LIST_LOOP'.
1496
1497 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1498
1499         * text-coding.c (decode_output_utf8_partial_char): New function.
1500         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1501
1502 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * text-coding.c (decode_coding_utf8): Output original byte
1505         sequence if it is broken; change order of conditions.
1506
1507         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1508         of conditions.
1509
1510         * mb-multibyte.h (BYTE_ASCII_P):
1511         Use bit ops for char-signedness safety.
1512         (BYTE_C0_P): Use bit ops for char-signedness safety.
1513         (BYTE_C1_P): Use bit ops for char-signedness safety.
1514
1515         * character.h: (XCHAR_OR_CHAR_INT):
1516         Always use inline function.
1517         Remove redundant type checking assert() - XINT will abort quite
1518         nicely.
1519
1520 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * text-coding.c: (Fencode_shift_jis_char):
1523         (Fencode_big5_char):
1524         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1525         Replace 0 with '\0' when working with bytes.
1526         Replace initial "(" with "\(" in docstrings.
1527
1528         (Fmake_coding_system):
1529         When type is ccl and value is vector, register it with a proper
1530         symbol.  And checks whether the given ccl program is valid.
1531         (mule_decode): When calling ccl_driver, if src indicates
1532         NULL pointer, set an empty string instead.
1533         (mule_encode): Likewise.
1534
1535         (detect_eol_type):
1536         (detect_coding_sjis):
1537         (decode_coding_sjis):
1538         (detect_coding_big5):
1539         (decode_coding_big5):
1540         (detect_coding_ucs4):
1541         (decode_coding_ucs4):
1542         (detect_coding_utf8):
1543         (decode_coding_utf8):
1544         (detect_coding_iso2022):
1545         (decode_coding_iso2022):
1546         (decode_coding_no_conversion):
1547         (mule_decode):
1548         Make all detecting and decoding functions take an Extbyte * arg.
1549         (text_encode_generic):
1550         (encode_coding_big5):
1551         (encode_coding_no_conversion):
1552         (mule_encode):
1553         Make all encoding functions take a Bufbyte * arg.
1554         Use size_t instead of unsigned int for memory sizes.
1555         Only cast to unsigned char whenever dereferencing Extbyte *.
1556
1557         (struct lrecord_description fcd_description_1): Use countof.
1558         (complex_vars_of_file_coding):
1559         Use countof instead of sizeof.
1560         Use CHECK_NATNUM instead of CHECK_INT.
1561
1562 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1563
1564         * mule-charset.c (Fget_char_attribute): Add new optional argument
1565         `default-value'.
1566         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1567         (remove_char_ccs): Likewise.
1568
1569 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1570
1571         * text-coding.c (char_encode_shift_jis): New implementation in
1572         UTF-2000.
1573         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1574         ...)'.
1575
1576         * mule-charset.c (Vcharset_chinese_big5): New variable in
1577         UTF-2000.
1578         (Qchinese_big5): New variable in UTF-2000.
1579         (BIG5_SAME_ROW): New macro in UTF-2000.
1580         (make_builtin_char): Use builtin characters of
1581         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1582         characters of `Vcharset_chinese_big5'.
1583         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1584         (complex_vars_of_mule_charset): Add new coded-charset
1585         `chinese-big5' in UTF-2000.
1586
1587         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1588         (Vcharset_chinese_big5): New external variable declaration.
1589         (Vcharset_japanese_jisx0208_1990): Likewise.
1590
1591 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1592
1593         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1594         function.
1595         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1596
1597 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1598
1599         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1600         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1601         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1602         `mojikyo-pj-*'.
1603
1604 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1607
1608 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1609
1610         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1611         to 0.17.
1612
1613 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614
1615         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1616         for `CHARSET_BY_ATTRIBUTES'.
1617         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1618         `CHARSET_BY_ATTRIBUTES'.
1619
1620         * text-coding.c (struct decoding_stream): Rename member `CH' to
1621         `CPOS'.
1622         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1623         (decode_coding_sjis): Likewise.
1624         (decode_coding_big5): Likewise.
1625         (decode_coding_ucs4): Likewise.
1626         (decode_coding_utf8): Likewise.
1627         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1628         `CHARSET_BY_ATTRIBUTES'.
1629         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1630         `str->counter'; decode 3, 4 bytes sets.
1631         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1632         sets.
1633         (decode_coding_no_conversion): Use `str->cpos' instead of
1634         `str->ch'.
1635
1636         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1637         (Qmojikyo_2022_1): New variable.
1638         (make_charset): Don't use `CHARSET_TYPE_*'.
1639         (range_charset_code_point): Support coded-charset
1640         `mojikyo-2022-1'.
1641         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1642         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1643         `CHARSET_BY_ATTRIBUTES'.
1644         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1645         `CHARSET_BY_ATTRIBUTES'.
1646         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1647         (complex_vars_of_mule_charset): Add new coded-charset
1648         `mojikyo-2022-1'.
1649
1650         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1651         interface; changed to inline function.
1652
1653         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1654         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1655         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1656         (CHARSET_TYPE_94): Deleted.
1657         (CHARSET_TYPE_94X94): Deleted.
1658         (CHARSET_TYPE_96): Deleted.
1659         (CHARSET_TYPE_96X96): Deleted.
1660         (CHARSET_TYPE_128): Deleted.
1661         (CHARSET_TYPE_128X128): Deleted.
1662         (CHARSET_TYPE_256): Deleted.
1663         (CHARSET_TYPE_256X256): Deleted.
1664         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1665         to inline function.
1666         (DECODE_MOJIKYO_2022): New inline function.
1667         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1668         `Vcharset_mojikyo_2022_1'.
1669
1670 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1671
1672         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1673         instead of `EQ'.
1674         (put_byte_table): Likewise.
1675         (char_id_table_equal): Use `get_byte_table' [new implementation].
1676
1677 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1678
1679         * mule-charset.c: Include <limits.h> in UTF-2000.
1680         (BT_UINT8_MIN): New macro in UTF-2000.
1681         (BT_UINT8_MAX): New macro in UTF-2000.
1682         (BT_UINT8_t): New macro in UTF-2000.
1683         (BT_UINT8_nil): New macro in UTF-2000.
1684         (BT_UINT8_unbound): New macro in UTF-2000.
1685         (INT_UINT8_P): New inline function in UTF-2000.
1686         (UINT8_VALUE_P): New inline function in UTF-2000.
1687         (UINT8_ENCODE): New inline function in UTF-2000.
1688         (UINT8_DECODE): New inline function in UTF-2000.
1689         (mark_uint8_byte_table): New function in UTF-2000.
1690         (print_uint8_byte_table): New function in UTF-2000.
1691         (uint8_byte_table_equal): New function in UTF-2000.
1692         (uint8_byte_table_hash): New function in UTF-2000.
1693         (make_uint8_byte_table): New function in UTF-2000.
1694         (uint8_byte_table_same_value_p): New function in UTF-2000.
1695         (BT_UINT16_MIN): New macro in UTF-2000.
1696         (BT_UINT16_MAX): New macro in UTF-2000.
1697         (BT_UINT16_t): New macro in UTF-2000.
1698         (BT_UINT16_nil): New macro in UTF-2000.
1699         (BT_UINT16_unbound): New macro in UTF-2000.
1700         (INT_UINT16_P): New inline function in UTF-2000.
1701         (UINT16_VALUE_P): New inline function in UTF-2000.
1702         (UINT16_ENCODE): New inline function in UTF-2000.
1703         (UINT16_DECODE): New inline function in UTF-2000.
1704         (UINT8_TO_UINT16): New inline function in UTF-2000.
1705         (mark_uint16_byte_table): New function in UTF-2000.
1706         (print_uint16_byte_table): New function in UTF-2000.
1707         (uint16_byte_table_equal): New function in UTF-2000.
1708         (uint16_byte_table_hash): New function in UTF-2000.
1709         (make_uint16_byte_table): New function in UTF-2000.
1710         (uint16_byte_table_same_value_p): New function in UTF-2000.
1711         (print_byte_table): New function in UTF-2000.
1712         (byte-table): Use `print_byte_table' as printer.
1713         (make_byte_table): Delete second argument `older'.
1714         (byte_table_same_value_p): New function in UTF-2000.
1715         (copy_byte_table): Deleted.
1716         (get_byte_table): New function in UTF-2000.
1717         (put_byte_table): New function in UTF-2000.
1718         (print_char_id_table): New function in UTF-2000.
1719         (char-id-table): Use `print_char_id_table' as printer.
1720         (make_char_id_table): Delete second argument `older'.
1721         (get_char_id_table): Use `get_byte_table [new implementation].
1722         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1723         implementation].
1724         (Ffind_char_attribute_table): New function in UTF-2000.
1725         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1726         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1727         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1728         (syms_of_mule_charset): Add new function
1729         `find-char-attribute-table' in UTF-2000.
1730
1731         * lrecord.h (enum lrecord_type): Add
1732         `lrecord_type_uint16_byte_table' and
1733         `lrecord_type_uint8_byte_table'.
1734
1735         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1736         (Lisp_Uint8_Byte_Table): New type.
1737         (XUINT8_BYTE_TABLE): New macro.
1738         (XSETUINT8_BYTE_TABLE): New macro.
1739         (UINT8_BYTE_TABLE_P): New macro.
1740         (GC_UINT8_BYTE_TABLE_P): New macro.
1741         (struct Lisp_Uint16_Byte_Table): New structure.
1742         (Lisp_Uint16_Byte_Table): New type.
1743         (XUINT16_BYTE_TABLE): New macro.
1744         (XSETUINT16_BYTE_TABLE): New macro.
1745         (UINT16_BYTE_TABLE_P): New macro.
1746         (GC_UINT16_BYTE_TABLE_P): New macro.
1747
1748 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749
1750         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1751         (Vcharacter_ideographic_strokes_table): Deleted.
1752         (Vcharacter_total_strokes_table): Deleted.
1753         (Vcharacter_morohashi_daikanwa_table): Deleted.
1754         (Vcharacter_decomposition_table): Deleted.
1755         (Qname): Deleted because it is duplicated.
1756         (Qideographic_radical): Deleted.
1757         (Qideographic_strokes): Deleted.
1758         (Qtotal_strokes): Deleted.
1759         (Qmorohashi_daikanwa): Deleted.
1760         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1761         `ideographic-radical', `ideographic-strokes', `total-strokes',
1762         `morohashi-daikanwa' and `->decomposition'.
1763         (Fget_char_attribute): Likewise.
1764         (Fput_char_attribute): Likewise; use `make-vector' instead of
1765         `make_older_vector' for `->decomposition' value.
1766         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1767         `ideograph-daikanwa'.
1768         (syms_of_mule_charset): Delete builtin symbols `name',
1769         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1770         `morohashi-daikanwa'.
1771         (vars_of_mule_charset): Don't setup
1772         `Vcharacter_ideographic_radical_table',
1773         `Vcharacter_ideographic_strokes_table',
1774         `Vcharacter_total_strokes_table',
1775         `Vcharacter_morohashi_daikanwa_table' and
1776         `Vcharacter_decomposition_table'.
1777
1778 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779
1780         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1781         `make_older_vector', `make_vector_newer_1' and
1782         `make_vector_newer'.
1783
1784         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1785         `make_older_vector' and `make_vector_newer'.
1786
1787         * config.h.in (HAVE_GGC): New macro.
1788
1789 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790
1791         * mule-charset.c (struct char_attribute_list_closure): New
1792         structure in UTF-2000.
1793         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1794         (Fchar_attribute_list): Likewise.
1795         (Fset_charset_mapping_table): Use `make_vector_newer'.
1796         (Fdecode_builtin_char): New function in UTF-2000.
1797         (syms_of_mule_charset): Add new function `char-attribute-list' and
1798         `decode-builtin-char' in UTF-2000.
1799
1800         * lisp.h (make_vector_newer): New prototype.
1801
1802         * alloc.c (make_vector_newer_1): New function.
1803         (make_vector_newer): New function.
1804
1805 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1806
1807         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1808         50100)'.
1809
1810 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1813         (Vcharacter_attribute_table): Deleted.
1814         (Vcharacter_name_table): Deleted.
1815         (put_char_attribute): Deleted.
1816         (remove_char_attribute): Deleted.
1817         (struct char_attribute_alist_closure): New structure.
1818         (add_char_attribute_alist_mapper): New function.
1819         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1820         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1821         (Fget_char_attribute): Likewise.
1822         (Fput_char_attribute): Likewise.
1823         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1824         of `remove_char_attribute'.
1825         (Fdefine_char): Return character.
1826         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1827         and `Vcharacter_name_table'.
1828         (complex_vars_of_mule_charset): Likewise
1829         `Vchar_attribute_hash_table'.
1830
1831 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * character.h (CHARC_CHARSET): New macro.
1834         (CHARC_CHARSET_ID): New macro.
1835         (CHARC_CODE_POINT): New macro.
1836         (CHARC_COLUMNS): New macro.
1837         (CHARC_TO_CHAR): New inline function.
1838         (CHARC_EQ): New inline function.
1839         (CHARC_ASCII_EQ): New inline function.
1840         (CHARC_IS_SPACE): New inline function.
1841         (ASCII_TO_CHARC): New inline function.
1842
1843         * char-ucs.h (encode_char_2): Deleted.
1844         (ENCODE_CHAR): Use `encode_char_1' again.
1845         (breakup_char_1): Likewise.
1846         (CHAR_TO_CHARC): New inline function.
1847
1848         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1849
1850 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1851
1852         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1853         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1854         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1855         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1856         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1857         `CHARC_IS_SPACE'.
1858         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1859
1860         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1861         `CHARC_CODE_POINT'.
1862         (x_output_display_block): Use `CHARC_CHARSET' and
1863         `CHARC_ASCII_EQ'.
1864
1865         * redisplay-tty.c (tty_output_display_block): Use
1866         `CHARC_ASCII_EQ'.
1867         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1868
1869         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1870
1871         * insdel.c (find_charsets_in_charc_string): Use
1872         `CHARC_CHARSET_ID'.
1873         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1874         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1875         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1876         (convert_charc_string_into_malloced_string): Likewise.
1877
1878 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1879
1880         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1881         instead of <Emchar_dynarr *> for buf; use
1882         `convert_bufbyte_string_into_charc_dynarr' instead of
1883         `convert_bufbyte_string_into_emchar_dynarr'; use
1884         `find_charsets_in_charc_string' instead of
1885         `find_charsets_in_emchar_string'.
1886
1887         * redisplay.h:
1888         - Include "character.h".
1889         (struct rune): New member `cglyph'; delete member `chr'.
1890
1891         * redisplay.c (redisplay_text_width_charc_string): New function;
1892         delete `redisplay_text_width_emchar_string'.
1893         (rtw_charc_dynarr): New variable; renamed from
1894         `rtw_emchar_dynarr'.
1895         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1896         `rtw_emchar_dynarr'; use
1897         `convert_bufbyte_string_into_charc_dynarr' instead of
1898         `convert_bufbyte_string_into_emchar_dynarr'; use
1899         `redisplay_text_width_charc_string' instead of
1900         `redisplay_text_width_emchar_string'.
1901         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1902         instead of `rtw_emchar_dynarr'; use
1903         `convert_bufbyte_string_into_charc_dynarr' instead of
1904         `convert_bufbyte_string_into_emchar_dynarr'.
1905         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1906         `redisplay_text_width_charc_string' instead of
1907         `redisplay_text_width_emchar_string'.
1908         (create_text_block): Modify for <struct rune> change.
1909         (generate_formatted_string_db): Likewise.
1910         (create_string_text_block): Likewise.
1911         (pixel_to_glyph_translation): Likewise.
1912
1913         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1914         instead of <const Emchar *>.
1915         (x_text_width): Likewise.
1916         (x_output_display_block): Use <Charc_dynarr *> instead
1917         <Emchar_dynarr *>; modify for <structure rune> change.
1918         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1919         *>.
1920
1921         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1922         <const Emchar *>; use `charc_string_displayed_columns' instead of
1923         `emchar_string_displayed_columns'.
1924         (tty_output_display_block): Use <Charc_dynarr *> instead of
1925         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1926         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1927         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1928         `tty_output_emchar_dynarr_dynarr'.
1929         (tty_output_charc_dynarr): New function; delete
1930         `tty_output_charc_dynarr'.
1931
1932         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1933         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1934         <Emchar_dynarr *> for buf; use
1935         `convert_bufbyte_string_into_charc_dynarr' instead of
1936         `convert_bufbyte_string_into_emchar_dynarr'.
1937
1938         * frame.c (title_string_charc_dynarr): New variable; renamed from
1939         `title_string_emchar_dynarr'.
1940         (generate_title_string): Use `title_string_charc_dynarr' instead
1941         of `title_string_emchar_dynarr'; use
1942         `convert_charc_string_into_malloced_string' instead of
1943         `convert_emchar_string_into_malloced_string'.
1944         (init_frame): Use `title_string_charc_dynarr' instead of
1945         `title_string_emchar_dynarr'.
1946
1947         * console.h:
1948         - Include "character.h".
1949         (struct console_methods): Use <const Charc *> instead of <const
1950         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1951         <Emchar_dynarr *> in output_string_method.
1952
1953         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1954         <Emchar_dynarr *>.
1955
1956         * console-stream.c (stream_text_width): Use <const Charc *>
1957         instead of <const Emchar *>.
1958
1959         * character.h (Charc_dynarr): New type.
1960
1961         * char-ucs.h (structure Charc): New structure; define new type
1962         `Charc'.
1963
1964         * char-lb.h (DECODE_CHAR): New inline function.
1965         (encode_char_1): New inline function.
1966         (ENCODE_CHAR): New macro.
1967         (structure Charc): New structure; define new type `Charc'.
1968
1969         * char-1byte.h (Vcharset_control_1): New macro.
1970         (Vcharset_latin_iso8859_1): New macro.
1971         (DECODE_CHAR): New inline function.
1972         (encode_char_1): New inline function.
1973         (ENCODE_CHAR): New macro.
1974         (structure Charc): New structure; define new type `Charc'.
1975
1976         * insdel.c (find_charsets_in_charc_string): New function; delete
1977         `find_charsets_in_emchar_string'.
1978         (charc_string_displayed_columns): New function; delete
1979         `emchar_string_displayed_columns'.
1980         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1981         `convert_bufbyte_string_into_emchar_dynarr'.
1982         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1983         `convert_charc_string_into_bufbyte_dynarr'.
1984         (convert_charc_string_into_malloced_string): New function; delete
1985         `convert_charc_string_into_malloced_string'.
1986
1987         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1988         `find_charsets_in_emchar_string'.
1989         (charc_string_displayed_columns): New prototype; delete
1990         `emchar_string_displayed_columns'.
1991         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1992         `convert_charc_string_into_bufbyte_dynarr'.
1993         (convert_charc_string_into_malloced_string): New prototype; delete
1994         `convert_charc_string_into_malloced_string'.
1995
1996 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1999
2000 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2001
2002         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2003
2004         * char-ucs.h: Use <short> for <Charset_ID>.
2005
2006         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2007         <Charset_ID>.
2008
2009 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2012         to 0.16.
2013
2014 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2017         variable.
2018         (Qmorohashi_daikanwa): New variable.
2019         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2020         for `morohashi-daikanwa' attribute.
2021         (Fget_char_attribute): Likewise.
2022         (Fput_char_attribute): Likewise.
2023         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2024         has the same value of `ideograph-daikanwa'.
2025         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2026         (vars_of_mule_charset): Setup
2027         `Vcharacter_morohashi_daikanwa_table'.
2028
2029 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2032         attributes.
2033         (add_charset_to_list_mapper): Add `key' instead of
2034         `XCHARSET_NAME (value)' to return aliases.
2035
2036 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2037
2038         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2039         variable.
2040         (Vcharacter_ideographic_strokes_table): New variable.
2041         (Qideographic_radical): New variable.
2042         (Qideographic_strokes): New variable.
2043         (Fchar_attribute_alist): Use
2044         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2045         attribute; use `Vcharacter_ideographic_strokes_table' for
2046         `ideographic-strokes' attribute.
2047         (Fget_char_attribute): Likewise.
2048         (Fput_char_attribute): Likewise.
2049         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2050         `ideographic-strokes'.
2051         (vars_of_mule_charset): Setup
2052         `Vcharacter_ideographic_radical_table' and
2053         `Vcharacter_ideographic_strokes_table'.
2054
2055 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056
2057         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2058         (Qtotal_strokes): New variable.
2059         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2060         `total-strokes' attribute.
2061         (Fget_char_attribute): Likewise.
2062         (Fput_char_attribute): Likewise.
2063         (syms_of_mule_charset): Add new symbol `total-strokes'.
2064         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2065
2066 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067
2068         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2069         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2070         are found.
2071         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2072         `->decomposition' attribute.
2073         (Fput_char_attribute): Likewise.
2074         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2075
2076 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2077
2078         * mule-charset.c (decoding_table_check_elements): New function.
2079         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2080
2081 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2082
2083         * mule-charset.c (Fset_charset_mapping_table): Use
2084         `put_char_ccs_code_point'.
2085
2086 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2087
2088         * mule-charset.c (decoding_table_put_char): New inline function.
2089         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2090
2091 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2092
2093         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2094         (XCHARSET_BYTE_SIZE): New macro.
2095         (decoding_table_remove_char): New inline function.
2096         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2097         `decoding_table_remove_char'.
2098         (remove_char_ccs): Use `decoding_table_remove_char'.
2099         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2100
2101 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2102
2103         * mule-charset.c (Vcharacter_name_table): New variable.
2104         (Qname): New variable.
2105         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2106         attribute.
2107         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2108         `Vcharacter_name_table' for `name' attribute.
2109         (Fremove_char_attribute): Use function `remove_char_ccs'.
2110         (put_char_ccs_code_point): New function.
2111         (remove_char_ccs): New function.
2112         (syms_of_mule_charset): Add new symbol `name'.
2113         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2114
2115 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2116
2117         * mule-charset.c (make_byte_table): Add new argument `older'.
2118         (make_char_id_table): Likewise.
2119         (copy_char_id_table): Comment out because it is not used.
2120         (put_char_id_table): Modify for `make_byte_table'.
2121         (Fput_char_attribute): Make encoding_table as older object;
2122         inherit older bit of `Vcharacter_composition_table'.
2123         (mark_charset): Don't mark `cs->encoding_table'.
2124         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2125         normal object; make `Vcharacter_composition_table' as an older
2126         object; delete staticpro for `Vcharacter_composition_table'; make
2127         `Vcharacter_variant_table' as a normal object.
2128
2129         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2130         (mark_object): Don't check older object in UTF-2000.
2131
2132         * lrecord.h (struct lrecord_header): Add new member `older' in
2133         UTF-2000.
2134         (set_lheader_implementation): Setup `SLI_header->older' in
2135         UTF-2000.
2136         (set_lheader_older_implementation): New macro in UTF-2000.
2137         (OLDER_RECORD_P): New macro in UTF-2000.
2138         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2139         (alloc_older_lcrecord): New prototype in UTF-2000.
2140         (alloc_older_lcrecord_type): New macro in UTF-2000.
2141
2142 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2143
2144         * mule-charset.c (byte_table_description): Use
2145         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2146         (char_id_table_description): Delete bogus `, 1'.
2147         (Fget_char_attribute): Refer encoding_table of each coded-charset
2148         to get value of coded-charset attribute of a character.
2149         (Fput_char_attribute): Use `make_older_vector' instead of
2150         `make_vector'; use encoding_table of each coded-charset to store
2151         value of coded-charset attribute of a character.
2152         (Fremove_char_attribute): Use encoding_table of each coded-charset
2153         to store value of coded-charset attribute of a character.
2154         (mark_charset): Mark `cs->encoding_table'; don't mark
2155         `cs->decoding_table'.
2156         (charset_description): Add description of new member
2157         `encoding_table'.
2158         (make_charset): Initialize `encoding_table'.
2159
2160         * char-ucs.h (struct Lisp_Charset): Add new member
2161         `encoding_table'.
2162         (CHARSET_ENCODING_TABLE): New macro.
2163         (XCHARSET_ENCODING_TABLE): New macro.
2164         (charset_code_point): New implementation.
2165         (encode_char_1): Likewise.
2166
2167         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2168         (disksave_object_finalization_1): Call finalizers of
2169         `all_older_lcrecords' in UTF-2000.
2170         (make_older_vector): New function in UTF-2000.
2171         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2172         UTF-2000.
2173
2174         * lisp.h (make_older_vector): New prototype in UTF-2000.
2175
2176 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2177
2178         * lrecord.h (enum lrecord_type): Rename
2179         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2180
2181         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2182         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2183         `get_char_code_table'.
2184
2185         * mule-charset.c (mark_char_id_table): Renamed from
2186         `mark_char_code_table'.
2187         (char_id_table_equal): Renamed from `char_code_table_equal'.
2188         (char_id_table_hash): Renamed from `char_code_table_hash'.
2189         (make_char_id_table): Renamed from `make_char_code_table'.
2190         (copy_char_id_table): Renamed from `copy_char_code_table'.
2191         (get_char_id_table): Renamed from `get_char_code_table'.
2192         (put_char_id_table): Renamed from `put_char_code_table'.
2193         (to_char_id): Renamed from `to_char_code'.
2194
2195         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2196         `Lisp_Char_Code_Table'.
2197         (char_id_table): Renamed from `char_code_table'.
2198         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2199         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2200         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2201         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2202         (get_char_id_table): Renamed from `get_char_code_table'.
2203
2204 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2205
2206         * lrecord.h (enum lrecord_type): Rename
2207         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2208
2209         * mule-charset.c (mark_byte_table): Renamed from
2210         `mark_char_byte_table'.
2211         (byte_table_equal): Renamed from `char_byte_table_equal'.
2212         (byte_table_hash): Renamed from `byte_table_hash'.
2213         (make_byte_table): Renamed from `make_byte_table'.
2214         (copy_byte_table): Renamed from `copy_char_byte_table'.
2215
2216         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2217         `Lisp_Char_Byte_Table'.
2218         (byte_table): Renamed from `char_byte_table'.
2219         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2220         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2221         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2222         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2223
2224 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2227         (dfc_convert_to_internal_format): Likewise.
2228         
2229         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2230         * text-coding.c (Fcoding_system_alias_p): New function.
2231         * text-coding.c (Fcoding_system_aliasee): New function.
2232         * text-coding.c (append_suffix_to_symbol): New function.
2233         * text-coding.c (dangling_coding_system_alias_p): New function.
2234         * text-coding.c (Ffind_coding_system):
2235         * text-coding.c (Fcopy_coding_system):
2236         * text-coding.c (encode_coding_no_conversion):
2237         * text-coding.c (syms_of_file_coding):
2238         * text-coding.c (vars_of_file_coding):
2239         Rewrite coding system alias code.
2240         Allow nested aliases, like symbolic links.
2241         Allow redefinition of coding system aliases.
2242         Prevent existence of dangling coding system aliases.
2243         Eliminate convert_to_external_format.
2244         Eliminate convert_to_internal_format.
2245         
2246         * text-coding.c: Change enum eol_type to eol_type_t.
2247
2248 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2249
2250         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2251         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2252
2253         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2254         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2255
2256 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2259         `ideograph-daikanwa'.
2260
2261         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2262         (Vcharset_ucs_bmp): Likewise.
2263         (Vcharset_mojikyo): Add new extern variable definition.
2264         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2265         (Vcharset_latin_iso8859_3): Likewise.
2266         (Vcharset_latin_iso8859_4): Likewise.
2267         (Vcharset_latin_iso8859_9): Likewise.
2268         (Vcharset_latin_viscii_lower): Likewise.
2269         (Vcharset_latin_viscii_upper): Likewise.
2270         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2271         `mojikyo' code-point is used to decode.
2272         (encode_char_2): New function [to convert `mojikyo' code-point to
2273         Mojikyo font encoding].
2274         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2275         (breakup_char_1): Likewise.
2276         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2277
2278 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2279
2280         * text-coding.c (Fmake_coding_system): Add document about
2281         `disable-composition' property.
2282
2283 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2284
2285         * text-coding.c (Qdisable_composition): New variable; delete
2286         `Qcomposite'.
2287         (Fmake_coding_system): Add new property `disable-composite';
2288         delete property `composite'.
2289         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2290         instead of `!CODING_SYSTEM_COMPOSITE'.
2291         (syms_of_file_coding): Add new symbol `disable-composition';
2292         delete symbol `composite'.
2293
2294         * file-coding.h (struct Lisp_Coding_System): Add
2295         `disable_composition'; delete `enable_composition'.
2296         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2297         `CODING_SYSTEM_COMPOSITE'.
2298         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2299         `XCODING_SYSTEM_COMPOSITE'.
2300
2301 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2302
2303         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2304         to 0.15.
2305
2306 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * text-coding.c (Qcomposite): New variable.
2309         (Fmake_coding_system): Add new property `composite'.
2310         (struct decoding_stream): Add `combined_char_count',
2311         `combined_chars' and `combining_table' in UTF-2000.
2312         (COMPOSE_FLUSH_CHARS): New macro.
2313         (COMPOSE_ADD_CHAR): New macro.
2314         (reset_decoding_stream): Reset `str->combined_char_count' and
2315         `str->combining_table' in UTF-2000.
2316         (decode_coding_iso2022): Modify for character-decomposition.
2317         (syms_of_file_coding): Add new symbol `composite'.
2318
2319 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2322         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2323         of `Vcharacter_composition_table' if `->decomposition' property
2324         has only 1 element.
2325         (Qlatin_tcvn5712): New variable.
2326         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2327         (complex_vars_of_mule_charset): Add new coded-charset
2328         `latin-tcvn5712'.
2329
2330         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2331
2332 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * file-coding.h (struct Lisp_Coding_System): Add
2335         `enable_composition'.
2336         (CODING_SYSTEM_COMPOSITE): New macro.
2337         (XCODING_SYSTEM_COMPOSITE): New macro.
2338
2339 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2340
2341         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2342
2343 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2344
2345         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2346         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2347
2348 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2349
2350         * mule-charset.c (Vcharset_mojikyo): New variable.
2351         (Fdefine_char): Don't use coded-charset which does not have
2352         non-builtin character range to allocate character-id.
2353         (Qmojikyo): New variable.
2354         (syms_of_mule_charset): Add new symbol `mojikyo'.
2355         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2356
2357         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2358         (LEADING_BYTE_MOJIKYO): New macro.
2359         (MIN_CHAR_MOJIKYO): New macro.
2360         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2361         (MAX_CHAR_MOJIKYO): New macro.
2362
2363 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2364
2365         * mule-charset.c (remove_char_attribute): Fixed.
2366
2367 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2368
2369         * mule-charset.c (remove_char_attribute): New function.
2370         (Fremove_char_attribute): New function.
2371         (encode_builtin_char_1): Comment out builtin-support for
2372         greek-iso8859-7 and cyrillic-iso8859-5.
2373         (Fdecode_char): Check `code' is an integer.
2374         (syms_of_mule_charset): Add `remove-char-attribute'.
2375         (MIN_CHAR_GREEK): Deleted.
2376         (MAX_CHAR_GREEK): Likewise.
2377         (MIN_CHAR_CYRILLIC): Likewise.
2378         (MAX_CHAR_CYRILLIC): Likewise.
2379         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2380         MAX_CHAR_GREEK for `greek-iso8859-7'.
2381
2382         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2383         (MAX_CHAR_GREEK): Likewise.
2384         (MIN_CHAR_CYRILLIC): Likewise.
2385         (MAX_CHAR_CYRILLIC): Likewise.
2386
2387 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2388
2389         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2390         format is used without `ucs' property.
2391         (Fdecode_char): Fix problem with GR representation.
2392         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2393         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2394
2395 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2396
2397         * mule-charset.c (make_builtin_char): New function.
2398         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2399         (Fset_charset_mapping_table): Modify for new representation of
2400         code-point.
2401         (Fdecode_char): New function.
2402         (syms_of_mule_charset): Add new builtin function `decode-char' in
2403         UTF-2000.
2404
2405         * char-ucs.h (make_builtin_char): New prototype.
2406         (DECODE_CHAR): New inline function.
2407         (MAKE_CHAR): Use `DECODE_CHAR'.
2408
2409 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2410
2411         * text-coding.c (parse_charset_conversion_specs): Use
2412         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2413         `XCHARSET_TYPE'.
2414         (iso2022_designate): Likewise.
2415
2416         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2417         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2418
2419         * mule-charset.c (Vcharset_ucs): New variable.
2420         (print_charset): Change design; use `CHARSET_CHARS' and
2421         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2422         (make_charset): Change signature to specify `chars' and
2423         `dimension' instead of `type'.
2424         (range_charset_code_point): Modify for 256^n-set.
2425         (encode_builtin_char_1): Encode as `ucs' in default.
2426         (Fmake_charset): Modify for `make_charset'.
2427         (Fmake_reverse_direction_charset): Likewise.
2428         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2429         UTF-2000.
2430         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2431         for `make_charset'.
2432
2433         * char-ucs.h (Vcharset_ucs): New variable.
2434         (LEADING_BYTE_UCS): New macro.
2435         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2436         and `chars' to `unsigned short' from `unsigned int'.
2437         (CHARSET_TYPE): Deleted.
2438         (XCHARSET_TYPE): Deleted.
2439
2440 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2441
2442         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2443
2444         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2445         (ENCODE_CHAR): New macro.
2446
2447 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2448
2449         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2450         to 0.14 (Kawachi-Katakami).
2451
2452 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2453
2454         * text-coding.c (char_encode_shift_jis): Modify for
2455         `charset_code_point'.
2456         (char_encode_iso2022): Likewise.
2457
2458         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2459         (integer) instead of list of <Lisp_Object>s (integers) as the
2460         format of code-point of a coded-charset.
2461         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2462         (encode_builtin_char_1): New function; delete
2463         `split_builtin_char'.
2464         (charset_code_point): Return <int> instead of <Lisp_Object>.
2465         (Fsplit_char): Don't use `SPLIT_CHAR'.
2466
2467         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2468         prototype for `split_builtin_char'.
2469         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2470         (charset_code_point): Likewise.
2471         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2472         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2473
2474 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2475
2476         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2477         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2478
2479 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2480
2481         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2482
2483         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2484         (MAX_CHAR_OBS_94x94): Deleted.
2485
2486 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2487
2488         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2489
2490         * char-ucs.h (MAX_CHAR_BMP): New macro.
2491
2492 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2493
2494         * text-coding.c: Sync with r21-2-24.
2495
2496 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2497
2498         * file-coding.c: Modify for UTF-2000.
2499
2500 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2501
2502         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2503         to 0.13 (Takaida).
2504
2505 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2506
2507         * mule-charset.c (split_builtin_char): Delete builtin support for
2508         `katakana-jisx0201'.
2509         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2510         BMP area in builtin representation.
2511
2512         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2513         `Vcharset_katakana_jisx0201'.
2514
2515 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2516
2517         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2518         (Qisolated): New variable.
2519         (Qinitial): New variable.
2520         (Qmedial): New variable.
2521         (Qfinal): New variable.
2522         (Qvertical): New variable.
2523         (Qsmall): New variable.
2524         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2525         `Qvertical' and `Qsmall'.
2526         (Qmojikyo_pj_[1 .. 21]): New variable.
2527         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2528         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2529         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2530         .. 21]'.
2531
2532 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2533
2534         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2535         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2536         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2537
2538 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2539
2540         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2541         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2542         BMP.
2543         (Qjapanese_jisx0208_1990): New variable.
2544         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2545         (complex_vars_of_mule_charset): Add new coded-charset
2546         `japanese-jisx0208-1990'.
2547
2548         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2549         (MIN_CHAR_JIS_X0208_1990): New macro.
2550         (MAX_CHAR_JIS_X0208_1990): New macro.
2551
2552 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2553
2554         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2555         coded-charset is not found.
2556
2557 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2558
2559         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2560         (Fdefine_char): Use `Fmake_char'.
2561
2562 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2563
2564         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2565         (Vcharset_hiragana_jisx0208): Deleted.
2566         (Vcharset_katakana_jisx0208): Deleted.
2567         (Qideograph_daikanwa): New variable.
2568         (Qhiragana_jisx0208): Deleted.
2569         (Qkatakana_jisx0208): Deleted.
2570         (split_builtin_char): Split `ideograph-daikanwa'.
2571         (Fsplit_char): New implementation for UTF-2000.
2572         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2573         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2574         (complex_vars_of_mule_charset): Add new coded-charset
2575         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2576         `katakana-jisx0208'.
2577
2578         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2579         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2580         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2581         (MIN_CHAR_DAIKANWA): New macro.
2582         (MAX_CHAR_DAIKANWA): New macro.
2583
2584 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2585
2586         * data.c (Fstring_to_number): Don't recognize floating point if
2587         base is not 10.
2588
2589 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2590
2591         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2592
2593 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2594
2595         * mule-charset.c (Qsquare): New variable.
2596         (to_char_code): Add `Qsquare'.
2597         (syms_of_mule_charset): Add new symbol `square'.
2598
2599 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2600
2601         * mule-charset.c (Qcircle): New variable.
2602         (to_char_code): Add `Qcircle'.
2603         (syms_of_mule_charset): Add new symbol `circle'.
2604
2605 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2606
2607         * mule-charset.c (Qfont): New variable.
2608         (to_char_code): Add `Qfont'.
2609         (syms_of_mule_charset): Add new symbol `font'.
2610
2611 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2612
2613         * mule-charset.c (Qsub): New variable.
2614         (to_char_code): Add `Qsub'.
2615         (syms_of_mule_charset): Add new symbol `sub'.
2616
2617 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2618
2619         * mule-charset.c (Fput_char_attribute): Convert each element of
2620         VALUE to GL position if ATTRIBUTE is a GR-set,
2621
2622 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2623
2624         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2625         coded-charset is a GR-set.
2626
2627 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2628
2629         * mule-charset.c (Fput_char_attribute): Check each element of
2630         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2631
2632 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2633
2634         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2635         UTF-2000.
2636         (Qethiopic_ucs): New variable in UTF-2000.
2637         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2638         (complex_vars_of_mule_charset): Add new coded-charset
2639         `ethiopic-ucs' in UTF-2000.
2640
2641         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2642         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2643         9)'.
2644         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2645         10)'.
2646         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2647
2648 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2649
2650         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2651         `ascii'.
2652
2653 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2654
2655         * mule-charset.c (Vcharacter_variant_table): New variable.
2656         (Q_ucs): New variable.
2657         (Fchar_variants): New function.
2658         (Fput_char_attribute): Register `->ucs' value to
2659         `Vcharacter_variant_table'.
2660         (syms_of_mule_charset): Add new function `char-variants' and new
2661         symbol `->ucs'.
2662         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2663
2664 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2665
2666         * mule-charset.c (get_char_code_table): Allow negative character
2667         code.
2668         (put_char_code_table): Likewise.
2669         (Vcharacter_composition_table): New variable.
2670         (Q_decomposition): New variable.
2671         (Qwide): New variable.
2672         (Qnarrow): New variable.
2673         (Qcompat): New variable.
2674         (QnoBreak): New variable.
2675         (Qsuper): New variable.
2676         (Qfraction): New variable.
2677         (to_char_code): New function.
2678         (Fget_composite_char): New function.
2679         (Fput_char_attribute): Register `->decomposition' value to
2680         `Vcharacter_composition_table'.
2681         (syms_of_mule_charset): Add new function `get-composite-char', new
2682         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2683         `super' and `fraction'.
2684         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2685
2686 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2687
2688         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2689         character; copy the return value.
2690
2691 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2692
2693         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2694
2695         * mule-charset.c (range_charset_code_point): Must use make_int.
2696         (split_builtin_char): New function.
2697
2698 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2699
2700         * mule-charset.c (char_byte_table): Change name from
2701         "char-code-table" to "char-byte-table".
2702         (mark_char_code_table): New function.
2703         (char_code_table_equal): New function.
2704         (char_code_table_hash): New function.
2705         (char_code_table_description): New constant.
2706         (char_code_table): New type.
2707         (make_char_code_table): New function.
2708         (copy_char_code_table): New function.
2709         (get_char_code_table): Modify for `char_code_table' type.
2710         (put_char_code_table): Likewise.
2711         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2712         (Kashiwara).
2713
2714         * char-ucs.h (char_code_table): New type.
2715         (XCHAR_CODE_TABLE): New macro.
2716         (XSETCHAR_CODE_TABLE): New macro.
2717         (CHAR_CODE_TABLE_P): New macro.
2718         (GC_CHAR_CODE_TABLE_P): New macro.
2719         (struct Lisp_Char_Code_Table): New structure.
2720
2721 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2722
2723         * mule-charset.c (Fmake_charset): Setup byte_offset for
2724         {94|96}^n-set.
2725
2726 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2727
2728         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2729         character.
2730
2731 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2732
2733         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2734         is found.
2735
2736 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2737
2738         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2739         charset, it is regarded as a charset.
2740         (put_char_attribute): New function in UTF-2000.
2741         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2742         charset, mapping-table of the charset is modified.
2743         (Fdefine_char): New function in UTF-2000.
2744         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2745         `Fput_char_attribute'.
2746         (syms_of_mule_charset): Add new function `define-char' and new
2747         symbol `ucs' in UTF-2000.
2748         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2749
2750 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2751
2752         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2753         non-UTF-2000 configuration.
2754
2755 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2756
2757         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2758         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2759
2760         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2761         deleted.
2762         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2763         (Fset_charset_mapping_table): Likewise.
2764
2765         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2766         (CHARSET_ENCODING_TABLE): Delete.
2767         (XCHARSET_ENCODING_TABLE): Delete.
2768         (charset_code_point): New interface.
2769
2770 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2771
2772         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2773         instead of `charset_get_byte1' and `charset_get_byte2'.
2774
2775         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2776         (charset_get_byte2): Deleted.
2777
2778 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2779
2780         * char-ucs.h (SPLIT_CHAR): New inline function.
2781         (breakup_char_1): Use `SPLIT_CHAR'.
2782
2783         * mule-charset.c (range_charset_code_point): New function.
2784         (charset_code_point): New function.
2785
2786         * char-ucs.h (range_charset_code_point): New interface.
2787         (breakup_char_1): Use `range_charset_code_point'.
2788
2789 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2790
2791         * mule-charset.c (Fmake_charset): Delete unused local variable
2792         `code_offset'.
2793
2794         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2795         (breakup_char_1): Find a charset and code-point in
2796         `Vcharacter_attribute_table'.
2797
2798 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2799
2800         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2801         to 0.10 (Yao).
2802
2803 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2804
2805         * mule-charset.c (Vcharacter_attribute_table): New variable.
2806         (Fchar_attribute_alist): New function.
2807         (Fget_char_attribute): New function.
2808         (Fput_char_attribute): New function.
2809         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2810         too.
2811         (syms_of_mule_charset): Add new function `char-attribute-alist',
2812         `get-char-attribute' and `put-char-attribute'.
2813         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2814
2815 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2816
2817         * mule-charset.c (Fmake_charset): Just use
2818         `get_unallocated_leading_byte'.
2819
2820         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2821         sets; don't use final-byte based number for private sets.
2822
2823 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2824
2825         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2826         integer.
2827
2828 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2829
2830         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2831         to 0.9.
2832
2833 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2834
2835         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2836         of `CHAR_LEADING_BYTE' in UTF-2000.
2837
2838         * insdel.c (find_charsets_in_bufbyte_string): Use
2839         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2840         (find_charsets_in_emchar_string): Likewise.
2841
2842         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2843         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2844
2845         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2846         (CHAR_CHARSET_ID): New macro.
2847
2848 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2849
2850         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2851         charset-id - MIN_LEADING_BYTE.
2852         (put_char_table): Likewise.
2853
2854 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2855
2856         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2857         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2858         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2859         (CHARSET_ID_OFFSET): New macro.
2860         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2861         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2862         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2863         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2864         4).
2865         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2866         5).
2867         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2868         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2869         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2870         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2871         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2872
2873 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2874
2875         * mule-charset.c (next_allocated_leading_byte): New variable in
2876         UTF-2000.
2877         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2878         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2879         (get_unallocated_leading_byte): Simply use
2880         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2881         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2882         UTF-2000.
2883
2884         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2885         (MAX_LEADING_BYTE_PRIVATE): New macro.
2886         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2887         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2888
2889 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2890
2891         * mule-charset.c (Fmake_charset): Allocate final-byte based
2892         charset-id for 94-set, 96-set and 94x94-set.
2893
2894 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2895
2896         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2897         ambiguous `else'.
2898         (Fmake_charset): Likewise.
2899         (complex_vars_of_mule_charset): Modify the font registry of
2900         `ucs-bmp' not to match `Ethiopic-Unicode'.
2901
2902 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2903
2904         * mule-charset.c (complex_vars_of_mule_charset): Add font
2905         registory of `ucs-bmp'.
2906
2907 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2908
2909         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2910         coded-charsets in `default-coded-charset-priority-list' when
2911         breaking up a character.
2912
2913         * mule-charset.c (Vcharset_latin_viscii): New variable.
2914         (Qlatin_viscii): New variable.
2915         (make_charset): Don't use `decoding_table'.
2916         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2917         byte_offset.
2918         (Fset_charset_mapping_table): New implementation.
2919         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2920         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2921         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2922         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2923         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2924         charset `latin_viscii'.
2925
2926         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2927         (CHARSET_TYPE_94X94): Change to 1 from 2.
2928         (CHARSET_TYPE_96): Change to 2 from 1.
2929         (CHARSET_TYPE_128): New macro.
2930         (CHARSET_TYPE_128X128): Change to 5 from 4.
2931         (CHARSET_TYPE_256): New macro.
2932         (CHARSET_TYPE_256X256): Change to 7 from 5.
2933         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2934
2935 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2936
2937         * text-coding.c (char_encode_shift_jis): Refer
2938         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2939         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2940
2941         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2942         (char_byte_table_equal): New function in UTF-2000.
2943         (char_byte_table_hash): New function in UTF-2000.
2944         (char_byte_table_description): New constant in UTF-2000.
2945         (char_byte_table): New type in UTF-2000.
2946         (make_char_byte_table): New function in UTF-2000.
2947         (copy_char_byte_table): New function in UTF-2000.
2948         (make_char_code_table): New macro in UTF-2000.
2949         (get_char_code_table): New function in UTF-2000.
2950         (put_char_code_table): New function in UTF-2000.
2951         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2952         (charset_description): Add setting in UTF-2000.
2953         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2954         `CHARSET_TO_BYTE1_TABLE(cs)'.
2955         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2956         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2957         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2958         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2959         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2960         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2961         `CHARSET_TO_BYTE2_TABLE(cs)'.
2962
2963         * char-ucs.h (char_byte_table): New type.
2964         (XCHAR_BYTE_TABLE): New macro.
2965         (XSETCHAR_BYTE_TABLE): New macro.
2966         (CHAR_BYTE_TABLE_P): New macro.
2967         (GC_CHAR_BYTE_TABLE_P): New macro.
2968         (struct Lisp_Char_Byte_Table): New structure.
2969         (get_char_code_table): New interface.
2970         (Emchar_to_byte_table): Deleted.
2971         (get_byte_from_character_table): Deleted.
2972         (struct Lisp_Charset): Add `encoding_table'; delete
2973         `to_byte1_table' and `to_byte2_table'.
2974         (CHARSET_ENCODING_TABLE): New macro.
2975         (CHARSET_TO_BYTE1_TABLE): Deleted.
2976         (CHARSET_TO_BYTE2_TABLE): Deleted.
2977         (XCHARSET_ENCODING_TABLE): New macro.
2978         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2979         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2980
2981 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2982
2983         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2984         `vietnamese-viscii-*'.
2985
2986 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2987
2988         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2989         (Qvietnamese_viscii_upper): New variable.
2990         (Fdefine_charset_alias): New function.
2991         (syms_of_mule_charset): Add new function `define-charset-alias'.
2992         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2993         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2994         `latin-viscii-*'.
2995
2996 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2997
2998         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2999         (MAX_CHAR_OBS_94x94): New macro.
3000         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3001         for 94x94 sets.
3002
3003         * mule-charset.c (put_byte_from_character_table): Change unit size
3004         from 128 to 256.
3005         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3006         not defined.
3007         (Fmake_reverse_direction_charset): Modify dummy argument of
3008         `make_charset' for non-UTF-2000 environment.
3009
3010 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3011
3012         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3013
3014         * mule-charset.c (destroy_byte_from_character_table): New macro.
3015         (latin_jisx0201_to_ucs): Deleted.
3016         (latin_iso8859_2_to_ucs): Deleted.
3017         (latin_iso8859_3_to_ucs): Deleted.
3018         (latin_iso8859_4_to_ucs): Deleted.
3019         (latin_iso8859_9_to_ucs): Deleted.
3020         (latin_viscii_lower_to_ucs): Deleted.
3021         (latin_viscii_upper_to_ucs): Deleted.
3022         (mark_charset): Mark `cs->decoding_table'.
3023         (Fcharset_mapping_table): Fix DOC-string.
3024         (Fset_charset_mapping_table): New function.
3025         (syms_of_mule_charset): Add nwe function
3026         `set-charset-mapping-table'.
3027         (complex_vars_of_mule_charset): Don't setup and use
3028         `latin_*_to_ucs'.
3029
3030 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3031
3032         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3033         charset.
3034
3035 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3036
3037         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3038         (Vcharset_katakana_jisx0208): New variable.
3039         (Qhiragana_jisx0208): New variable.
3040         (Qkatakana_jisx0208): New variable.
3041         (make_charset): Add new argument `byte_offset'.
3042         (charset_get_byte1): Modify for new coded-charset definition; use
3043         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3044         `XCHARSET_BYTE_OFFSET'.
3045         (Fmake_charset): Modify for `make_charset'.
3046         (Fmake_reverse_direction_charset): Likewise.
3047         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3048         `katakana-jisx0208'.
3049         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3050         `.'  in font registry of charset `katakana-jisx0201',
3051         `latin-jisx0201', `vietnamese-viscii-lower' and
3052         `vietnamese-viscii-upper'; modify DOC-string of charset
3053         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3054         registry of charset `japanese-jisx0208' not to use font for JIS
3055         X0208:1990; add new charset `hiragana-jisx0208' and
3056         `katakana-jisx0208'.
3057
3058         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3059         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3060         (struct Lisp_Charset): Add `byte_offset'.
3061         (CHARSET_BYTE_OFFSET): New macro.
3062         (XCHARSET_UCS_MIN): New macro.
3063         (XCHARSET_UCS_MAX): New macro.
3064         (XCHARSET_CODE_OFFSET): New macro.
3065         (XCHARSET_BYTE_OFFSET): New macro.
3066         (MIN_CHAR_HIRAGANA): New macro.
3067         (MAX_CHAR_HIRAGANA): New macro.
3068         (MIN_CHAR_KATAKANA): New macro.
3069         (MAX_CHAR_KATAKANA): New macro.
3070         (MAKE_CHAR): Modify for new coded-charset definition; use
3071         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3072         `XCHARSET_BYTE_OFFSET'.
3073
3074 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3075
3076         * mule-charset.c (CHAR96): Deleted.
3077         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3078         <Lisp_Object>.
3079         (latin_iso8859_2_to_ucs): Likewise.
3080         (latin_iso8859_3_to_ucs): Likewise.
3081         (latin_iso8859_4_to_ucs): Likewise.
3082         (latin_iso8859_9_to_ucs): Likewise.
3083         (latin_viscii_lower_to_ucs): Likewise.
3084         (latin_viscii_upper_to_ucs): Likewise.
3085         (latin_tcvn5712_to_ucs): Commented out.
3086         (make_charset): Change type of argument `decoding_table' from
3087         <Emchar*> to <Lisp_Object> [vector of characters].
3088         (Fmake_charset): Modify for `make_charset'.
3089         (Fmake_reverse_direction_charset): Likewise.
3090         (Fcharset_mapping_table): New function in UTF-2000.
3091         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3092         UTF-2000.
3093         (complex_vars_of_mule_charset): Modify for type change of
3094         `*_to_ucs'; modify for `make_charset'.
3095
3096         * char-ucs.h (struct Lisp_Charset): Change type of
3097         `decoding_table' from <Emchar*> to <Lisp_Object>.
3098         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3099
3100 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3101
3102         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3103         error with non-UTF-2000-Mule.
3104
3105 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3106
3107         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3108         in lisp again].
3109         (Vcharset_chinese_cns11643_4): Likewise.
3110         (Vcharset_chinese_cns11643_5): Likewise.
3111         (Vcharset_chinese_cns11643_6): Likewise.
3112         (Vcharset_chinese_cns11643_7): Likewise.
3113         (Qchinese_cns11643_3): Likewise.
3114         (Qchinese_cns11643_4): Likewise.
3115         (Qchinese_cns11643_5): Likewise.
3116         (Qchinese_cns11643_6): Likewise.
3117         (Qchinese_cns11643_7): Likewise.
3118         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3119         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3120         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3121         (complex_vars_of_mule_charset): Likewise.
3122
3123 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3124
3125         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3126         96-set.
3127         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3128         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3129
3130 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3131
3132         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3133         0xFF60.
3134         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3135         (breakup_char_1): Likewise.
3136
3137         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3138         one of them includes the specified character.
3139
3140 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3141
3142         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3143
3144 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3145
3146         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3147
3148 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3149
3150         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3151         definition for non-UTF-2000 Mule.
3152         (latin_iso8859_3_to_ucs): Likewise.
3153         (latin_iso8859_4_to_ucs): Likewise.
3154         (latin_iso8859_9_to_ucs): Likewise.
3155         (latin_jisx0201_to_ucs): Likewise.
3156         (MIN_CHAR_THAI): Likewise.
3157         (MAX_CHAR_THAI): Likewise.
3158         (MIN_CHAR_GREEK): Likewise.
3159         (MAX_CHAR_GREEK): Likewise.
3160         (MIN_CHAR_HEBREW): Likewise.
3161         (MAX_CHAR_HEBREW): Likewise.
3162         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3163         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3164         (MIN_CHAR_CYRILLIC): Likewise.
3165         (MAX_CHAR_CYRILLIC): Likewise.
3166
3167 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3168
3169         * char-ucs.h (breakup_char_1): Use
3170         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3171         thai-tis620 and katakana-jisx0201 area.
3172
3173 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3174
3175         * char-ucs.h (breakup_char_1): Use
3176         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3177         area.
3178
3179         * text-coding.c (reset_encoding_stream): Fixed.
3180         (char_encode_ucs4): Delete `& 255'.
3181
3182         * char-ucs.h (breakup_char_1): Use
3183         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3184
3185 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3186
3187         * file-coding.c (Fmake_coding_system): Don't set up
3188         `codesys->fixed.size'.
3189         (encode_coding_no_conversion): Don't refer
3190         `str->codesys->fixed.size'.
3191
3192 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3193
3194         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3195         (latin_a_char_to_byte1): Deleted.
3196         (latin_a_char_to_byte2): Deleted.
3197
3198 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3199
3200         * mule-charset.c (make_charset): Add new argument `ucs_min',
3201         `ucs_max' and `code_offset'.
3202         (charset_get_byte1): New implementation [delete specific charset
3203         depended implementations].
3204         (Fmake_charset): Modify for `make_charset'.
3205         (Fmake_reverse_direction_charset): Likewise.
3206         (complex_vars_of_mule_charset): Likewise.
3207
3208         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3209         `code_offset'.
3210         (CHARSET_UCS_MIN): New macro.
3211         (CHARSET_UCS_MAX): New macro.
3212         (CHARSET_CODE_OFFSET): New macro.
3213         (MAKE_CHAR): Delete charset depended definitions [except
3214         katakana-jisx0201].
3215
3216 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3217
3218         * char-ucs.h (breakup_char_1): Use
3219         `Vdefault_coded_charset_priority_list' for C0-Controls,
3220         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3221
3222 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3223
3224         * char-ucs.h (charset_get_byte1): New function.
3225         (XCHARSET_GET_BYTE1): Deleted.
3226         (charset_get_byte2): New function.
3227         (XCHARSET_GET_BYTE2): Deleted.
3228         (Vdefault_coded_charset_priority_list): New external variable.
3229         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3230         `Vdefault_preferred_coded_charset_list'.
3231
3232         * mule-charset.c (charset_get_byte1): New function.
3233         (charset_get_byte2): New function.
3234         (Vdefault_coded_charset_priority_list): New variable.
3235         (vars_of_mule_charset): Add new variable
3236         `default-coded-charset-priority-list'.
3237
3238 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3239
3240         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3241         (XCHARSET_GET_BYTE2): New inline function.
3242         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3243         `XCHARSET_GET_BYTE2'.
3244
3245 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3246
3247         * mule-charset.c (make_charset): Initialize
3248         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3249         NULL if table is not defined.
3250
3251 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3252
3253         * text-coding.c (char_encode_shift_jis): Use
3254         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3255         `ucs_to_latin_jisx0201'.
3256
3257         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3258         (ucs_to_latin_iso8859_2): Deleted.
3259         (ucs_to_latin_iso8859_3): Deleted.
3260         (ucs_to_latin_iso8859_4): Deleted.
3261         (ucs_to_latin_iso8859_9): Deleted.
3262         (ucs_to_latin_viscii_lower): Deleted.
3263         (ucs_to_latin_viscii_upper): Deleted.
3264         (ucs_to_latin_tcvn5712): Deleted.
3265         (make_charset): Add new argument `decoding_table'; set up
3266         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3267         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3268         `decoding_table' is defined in UTF-2000.
3269         (Fmake_charset): Modify for `make_charset'.
3270         (Fmake_reverse_direction_charset): Likewise.
3271         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3272         and `GENERATE_96_SET'.
3273
3274         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3275         (ucs_to_latin_jisx0201): Deleted.
3276         (latin_iso8859_2_to_ucs): Deleted.
3277         (ucs_to_latin_iso8859_2): Deleted.
3278         (latin_iso8859_3_to_ucs): Deleted.
3279         (ucs_to_latin_iso8859_3): Deleted.
3280         (latin_iso8859_4_to_ucs): Deleted.
3281         (ucs_to_latin_iso8859_4): Deleted.
3282         (latin_iso8859_9_to_ucs): Deleted.
3283         (ucs_to_latin_iso8859_9): Deleted.
3284         (latin_viscii_lower_to_ucs): Deleted.
3285         (ucs_to_latin_viscii_lower): Deleted.
3286         (latin_viscii_upper_to_ucs): Deleted.
3287         (ucs_to_latin_viscii_upper): Deleted.
3288         (struct Lisp_Charset): Renamed `encoding_table' to
3289         `to_byte1_table'; add `to_byte2_table'.
3290         (CHARSET_DECODING_TABLE): New macro.
3291         (CHARSET_TO_BYTE1_TABLE): New macro.
3292         (CHARSET_TO_BYTE2_TABLE): New macro.
3293         (XCHARSET_DECODING_TABLE): New macro.
3294         (XCHARSET_TO_BYTE1_TABLE): New macro.
3295         (XCHARSET_TO_BYTE2_TABLE): New macro.
3296         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3297         tables.
3298         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3299         don't use `ucs_to_*' tables.
3300
3301 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3302
3303         * text-coding.c (Fmake_coding_system): Don't set up
3304         `codesys->fixed.size'.
3305         (encode_coding_no_conversion): Use `if' instead of `switch'.
3306
3307         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3308
3309 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3310
3311         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3312         (Fmake_charset): Modify for `make_charset'.
3313         (Fmake_reverse_direction_charset): Likewise.
3314         (complex_vars_of_mule_charset): Likewise.
3315
3316 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3317
3318         * text-coding.c (char_encode_shift_jis): Use table
3319         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3320
3321 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3322
3323         * text-coding.c (text_encode_generic): Use `if' instead of
3324         `switch'.
3325         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3326         decode JIS-Latin.
3327
3328 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3329
3330         * text-coding.c (encode_coding_sjis): Deleted.
3331         (char_encode_shift_jis): New function.
3332         (char_finish_shift_jis): New function.
3333         (reset_encoding_stream): Set up `encode_char' and `finish' for
3334         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3335         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3336         (char_encode_utf8): Treat `eol_type'.
3337
3338 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3339
3340         * file-coding.c (decode_coding_iso2022): Use
3341         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3342
3343 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3344
3345         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3346         to 0.7 (Hirano).
3347
3348 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3349
3350         * char-lb.h (CHAR_COLUMNS): New macro.
3351
3352 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3353
3354         * text-coding.c (char_encode_ucs4): New function.
3355         (char_finish_ucs4): New function.
3356         (encode_coding_ucs4): Deleted.
3357         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3358         (text_encode_generic): Delete local variable `charset' and `half'.
3359         (ucs_to_mule_table): Deleted.
3360         (mule_to_ucs_table): Deleted.
3361         (Fset_ucs_char): Deleted.
3362         (ucs_to_char): Deleted.
3363         (Fucs_char): Deleted.
3364         (Fset_char_ucs): Deleted.
3365         (Fchar_ucs): Deleted.
3366         (decode_ucs4): Deleted.
3367         (mule_char_to_ucs4): Deleted.
3368         (encode_ucs4): Deleted.
3369         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3370         (decode_coding_utf8): Likewise.
3371         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3372         (char_encode_iso2022): Fixed.
3373         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3374         `Fset_char_ucs' and `Fchar_ucs'.
3375         (complex_vars_of_file_coding): Don't initialize
3376         `ucs_to_mule_table'.
3377
3378         * objects-tty.c (tty_initialize_font_instance): Don't use
3379         `XCHARSET_COLUMNS'.
3380
3381         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3382         UTF-2000.
3383
3384         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3385         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3386
3387         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3388         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3389         (emchar_string_displayed_columns): Likewise.
3390
3391         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3392         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3393         (string_column_at_point): Likewise.
3394         (Fmove_to_column): Likewise.
3395
3396         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3397         `encoding_table' and `decoding_table'.
3398         (CHARSET_REP_BYTES): Deleted.
3399         (XCHARSET_REP_BYTES): Deleted.
3400         (XCHARSET_COLUMNS): Deleted.
3401         (CHAR_COLUMNS): New macro.
3402         (lookup_composite_char): Deleted unconditionally.
3403         (composite_char_string): Likewise.
3404
3405 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3406
3407         * char-ucs.h (Emchar_to_byte_table): New type.
3408         (get_byte_from_character_table): New function interface.
3409         (Vcharset_latin_jisx0201): New variable.
3410         (latin_jisx0201_to_ucs): New variable.
3411         (ucs_to_latin_jisx0201): New variable.
3412         (Vcharset_latin_iso8859_2): New variable.
3413         (latin_iso8859_2_to_ucs): New variable.
3414         (ucs_to_latin_iso8859_2): New variable.
3415         (Vcharset_latin_iso8859_3): New variable.
3416         (latin_iso8859_3_to_ucs): New variable.
3417         (ucs_to_latin_iso8859_3): New variable.
3418         (Vcharset_latin_iso8859_4): New variable.
3419         (latin_iso8859_4_to_ucs): New variable.
3420         (ucs_to_latin_iso8859_4): New variable.
3421         (Vcharset_latin_iso8859_9): New variable.
3422         (latin_iso8859_9_to_ucs): New variable.
3423         (ucs_to_latin_iso8859_9): New variable.
3424         (Vcharset_latin_viscii_lower): New variable.
3425         (latin_viscii_lower_to_ucs): New variable.
3426         (ucs_to_latin_viscii_lower): New variable.
3427         (Vcharset_latin_viscii_upper): New variable.
3428         (latin_viscii_upper_to_ucs): New variable.
3429         (ucs_to_latin_viscii_upper): New variable.
3430         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3431         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3432         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3433         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3434         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3435         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3436         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3437         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3438         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3439         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3440
3441         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3442         (Vcharset_latin_viscii_upper): New variable.
3443         (make_byte_from_character_table): New function.
3444         (put_byte_from_character_table): New function.
3445         (get_byte_from_character_table): New function.
3446         (CHAR96): New macro.
3447         (ucs_to_latin_jisx0201): New variable.
3448         (latin_jisx0201_to_ucs): New variable.
3449         (ucs_to_latin_iso8859_2): New variable.
3450         (latin_iso8859_2_to_ucs): New variable.
3451         (ucs_to_latin_iso8859_3): New variable.
3452         (latin_iso8859_3_to_ucs): New variable.
3453         (ucs_to_latin_iso8859_4): New variable.
3454         (latin_iso8859_4_to_ucs): New variable.
3455         (ucs_to_latin_iso8859_9): New variable.
3456         (latin_iso8859_9_to_ucs): New variable.
3457         (ucs_to_latin_viscii_lower): New variable.
3458         (latin_viscii_lower_to_ucs): New variable.
3459         (ucs_to_latin_viscii_upper): New variable.
3460         (latin_viscii_upper_to_ucs): New variable.
3461         (ucs_to_latin_tcvn5712): New variable.
3462         (latin_tcvn5712_to_ucs): New variable.
3463         (Qlatin_viscii_lower): New variable.
3464         (Qlatin_viscii_upper): New variable.
3465         (syms_of_mule_charset): Set up new symbol
3466         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3467         (complex_vars_of_mule_charset): Set up new charset
3468         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3469         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3470         `ucs_to_<CHARSET>' tables.
3471
3472 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3473
3474         * text-coding.c: New file.
3475
3476 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3477
3478         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3479
3480         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3481         (MAKE_CHAR): Modify for `ucs-bmp'.
3482         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3483         non-MULE characters of BMP.
3484
3485 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3486
3487         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3488         to 0.6.
3489
3490 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3491
3492         * lstream.h:
3493         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3494         - Include character.h for `CHAR_ASCII_P'.
3495
3496         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3497
3498         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3499         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3500
3501         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3502         (BYTE_C0_P): Likewise.
3503         (BYTE_C1_P): Likewise.
3504         (Lstream_get_emchar_1): Likewise.
3505         (Lstream_fput_emchar): Likewise.
3506         (Lstream_funget_emchar): Likewise.
3507         (copy_internal_to_external): Likewise.
3508         (copy_external_to_internal): Likewise.
3509
3510         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3511         (BYTE_C0_P): Likewise.
3512         (BYTE_C1_P): Likewise.
3513         (Lstream_get_emchar_1): Likewise.
3514         (Lstream_fput_emchar): Likewise.
3515         (Lstream_funget_emchar): Likewise.
3516         (copy_internal_to_external): Likewise.
3517         (copy_external_to_internal): Likewise.
3518
3519         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3520         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3521
3522         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3523         (BYTE_ASCII_P): Moved to mb-1byte.h.
3524
3525 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3526
3527         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3528
3529         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3530         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3531         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3532         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3533         (VALIDATE_CHARPTR_FORWARD): Likewise.
3534         (simple_charptr_emchar): Moved to mb-multibyte.h.
3535         (simple_set_charptr_emchar): Likewise.
3536         (simple_charptr_copy_char): Likewise.
3537         (non_ascii_charptr_emchar): Likewise.
3538         (non_ascii_set_charptr_emchar): Likewise.
3539         (non_ascii_charptr_copy_char): Likewise.
3540         (charptr_emchar): Moved to mb-*byte.h.
3541         (set_charptr_emchar): Likewise.
3542         (charptr_copy_char): Likewise.
3543
3544         * mb-1byte.h, mb-multibyte.h: New files.
3545
3546 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3547
3548         * mb-utf-8.h (MULTIBYTE): New macro.
3549         (MAX_EMCHAR_LEN): Moved from buffer.h.
3550         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3551
3552         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3553
3554         * mb-lb.h, multibyte.h: New files.
3555
3556         * char-1byte.h (Charset_ID): Moved from buffer.h.
3557         (MIN_LEADING_BYTE): Likewise.
3558         (LEADING_BYTE_ASCII): Likewise.
3559         (NUM_LEADING_BYTES): Likewise.
3560         (CHARSETP): Likewise.
3561         (CHARSET_BY_LEADING_BYTE): Likewise.
3562         (XCHARSET_LEADING_BYTE): Likewise.
3563         (XCHARSET_GRAPHIC): Likewise.
3564         (XCHARSET_COLUMNS): Likewise.
3565         (XCHARSET_DIMENSION): Likewise.
3566         (CHAR_CHARSET): Likewise.
3567         (CHAR_LEADING_BYTE): Likewise.
3568         (BREAKUP_CHAR): Likewise.
3569         (Vcharset_ascii): Likewise.
3570
3571         * buffer.h: Include multibyte.h unconditionally.
3572         (VALID_CHARPTR_P): Moved to multibyte.h.
3573         (ASSERT_VALID_CHARPTR): Likewise.
3574         (REAL_INC_CHARPTR): Likewise.
3575         (REAL_INC_CHARBYTIND): Likewise.
3576         (REAL_DEC_CHARPTR): Likewise.
3577         (INC_CHARPTR): Likewise.
3578         (INC_CHARBYTIND): Likewise.
3579         (DEC_CHARPTR): Likewise.
3580         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3581         (VALIDATE_CHARPTR_FORWARD): Likewise.
3582         (charptr_n_addr): Likewise.
3583         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3584         (simple_charptr_emchar): Moved to multibyte.h.
3585         (simple_set_charptr_emchar): Likewise.
3586         (simple_charptr_copy_char): Likewise.
3587         (non_ascii_charptr_emchar): Likewise.
3588         (non_ascii_set_charptr_emchar): Likewise.
3589         (non_ascii_charptr_copy_char): Likewise.
3590         (charptr_emchar): Likewise.
3591         (set_charptr_emchar): Likewise.
3592         (charptr_copy_char): Likewise.
3593         (charptr_emchar_n): Likewise.
3594         (Charset_ID): Moved to char-1byte.h.
3595         (Vcharset_ascii): Likewise.
3596         (CHAR_CHARSET): Likewise.
3597         (CHAR_LEADING_BYTE): Likewise.
3598         (LEADING_BYTE_ASCII): Likewise.
3599         (NUM_LEADING_BYTES): Likewise.
3600         (MIN_LEADING_BYTE): 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         (BREAKUP_CHAR): Likewise.
3608
3609 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3610
3611         * character.h: Add document about interface for characters.
3612
3613         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3614         (MAKE_CHAR): Delete comment about
3615         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3616         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3617         (BREAKUP_CHAR): Modify name of arguments.
3618         (CHAR_CHARSET): Modify name of argument.
3619
3620         * buffer.h: Delete document about Emchar accessors.
3621
3622 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3623
3624         * character.h (CHAR_INTP): Moved from buffer.h
3625         (CHAR_OR_CHAR_INTP): Likewise.
3626         (XCHAR_OR_CHAR_INT): Likewise.
3627         (CHECK_CHAR_COERCE_INT): Likewise.
3628
3629         * buffer.h (CHAR_INTP): Moved to character.h
3630         (CHAR_OR_CHAR_INTP): Likewise.
3631         (XCHAR_OR_CHAR_INT): Likewise.
3632         (CHECK_CHAR_COERCE_INT): Likewise.
3633
3634 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3635
3636         * character.h:
3637         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3638         - Include char-1byte.h, char-lb.h or char-ucs.h.
3639
3640         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3641
3642         * buffer.h: Include character unconditionally.
3643         (valid_char_p): Moved to char-*.h.
3644         (non_ascii_valid_char_p): Moved to char-lb.h.
3645
3646         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3647
3648 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3649
3650         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3651         in UTF-2000 because it is not ported yet and not to use
3652         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3653         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3654         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3655
3656         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3657         (CHAR_ASCII_P): Moved from character.h.
3658
3659         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3660         (CHAR_ASCII_P): Likewise.
3661         (CHAR_FIELD1_MASK): Deleted.
3662         (CHAR_FIELD2_MASK): Deleted.
3663         (CHAR_FIELD3_MASK): Deleted.
3664         (MAX_CHAR_BASIC_LATIN): New macro.
3665         (CHAR_FIELD1): Deleted.
3666         (CHAR_FIELD2_INTERNAL): Deleted.
3667         (CHAR_FIELD3_INTERNAL): Deleted.
3668         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3669         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3670         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3671         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3672         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3673         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3674         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3675         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3676         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3677         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3678         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3679         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3680         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3681         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3682         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3683         (MIN_CHAR_COMPOSITION): Deleted.
3684         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3685         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3686
3687 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3688
3689         * buffer.h: Include mb-utf-8.h in UTF-2000.
3690
3691         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3692
3693         * mb-utf-8.h: New file.
3694
3695 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3696
3697         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3698         instead of `int'.
3699
3700         * mule-charset.h, buffer.h (Charset_ID): New type.
3701
3702 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3703
3704         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3705         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3706         instead of `MULE_CHAR_PRIVATE_OFFSET',
3707         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3708         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3709         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3710
3711         * character.h (Vcharset_japanese_jisx0212): New variable
3712         definition.
3713
3714 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3715
3716         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3717         (charset_by_attributes): Delete array about direction.
3718         (latin_a_char_to_charset): New variable in UTF-2000.
3719         (latin_a_char_to_byte1): New variable in UTF-2000.
3720         (latin_a_char_to_byte2): New variable in UTF-2000.
3721         (Qucs_bmp): New variable.
3722         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3723         `Bufbyte'.
3724         (next_allocated_2_byte_leading_byte): Likewise.
3725         (non_ascii_set_charptr_emchar): Likewise.
3726         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3727         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3728         `charset_by_attributes'.
3729         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3730         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3731         and `CHARSET_BY_LEADING_BYTE'.
3732         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3733         `utf-2000-version' to `vars_of_mule_charset'.
3734         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3735         define `leading-code-private-11' in UTF-2000; move setting of
3736         `utf-2000-version' from `syms_of_mule_charset'.
3737         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3738         UTF-2000.
3739
3740         * character.h (Charset_ID): New type.
3741         (LEADING_BYTE_UCS_BMP): New macro.
3742         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3743         (CHARSET_ID_OFFSET_94): New macro.
3744         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3745         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3746         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3747         final-byte.
3748         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3749         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3750         (CHARSET_ID_OFFSET_96): New macro.
3751         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3752         CHARSET_ID_OFFSET_96 and final-byte.
3753         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3754         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3755         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3756         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3757         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3758         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3759         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3760         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3761         (LEADING_BYTE_THAI_TIS620): Likewise.
3762         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3763         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3764         (CHARSET_ID_OFFSET_94x94): New macro.
3765         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3766         CHARSET_ID_OFFSET_94x94 and final-byte.
3767         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3768         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3769         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3770         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3771         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3772         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3773         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3774         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3775         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3776         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3777         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3778         (CHARSET_TYPE_128X128): New macro.
3779         (CHARSET_TYPE_256X256): New macro.
3780         (XCHARSET_PRIVATE_P): Delete unconditionally.
3781         (charset_by_attributes): Delete array about direction.
3782         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3783         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3784         (MIN_CHAR_94): New macro.
3785         (MAX_CHAR_94): New macro.
3786         (MIN_CHAR_96): New macro.
3787         (MAX_CHAR_96): New macro.
3788         (MIN_CHAR_94x94): New macro.
3789         (MAX_CHAR_94x94): New macro.
3790         (MIN_CHAR_96x96): New macro.
3791         (MAX_CHAR_96x96): New macro.
3792         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3793         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3794         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3795         - 32)'.
3796         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3797         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3798         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3799         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3800         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3801         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3802         `XCHARSET_LEADING_BYTE' to make code-point.
3803         (latin_a_char_to_charset): New variable.
3804         (latin_a_char_to_byte1): New variable.
3805         (latin_a_char_to_byte2): New variable.
3806         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3807         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3808         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3809
3810         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3811         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3812         (find_charsets_in_emchar_string): Likewise.
3813         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3814
3815         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3816         `int'.
3817         (decode_coding_iso2022): Likewise.
3818
3819         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3820         of `unsigned char'.
3821
3822         * redisplay.c (redisplay_text_width_emchar_string): Use
3823         `Charset_ID' instead of `unsigned char'.
3824         (redisplay_frame_text_width_string): Likewise.
3825
3826         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3827         `unsigned char'.
3828
3829         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3830         instead of `unsigned char'.
3831         (face_cachel_charset_font_metric_info): Likewise.
3832
3833         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3834         (get_non_ascii_char_table_value): Likewise.
3835         (get_char_table): Likewise.
3836         (put_char_table): Likewise.
3837         (map_over_other_charset): Likewise.
3838         (map_char_table): Likewise.
3839
3840         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3841         instead of `unsigned char'.
3842
3843 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3844
3845         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3846         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3847
3848         * mule-charset.c (leading_code_private_11): Don't define in
3849         UTF-2000.
3850
3851         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3852         in UTF-2000 because it is not ported yet and not to use
3853         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3854
3855 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3856
3857         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3858
3859 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3860
3861         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3862         in UTF-2000.
3863
3864         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3865         of unsigned char to store leading-byte.
3866
3867         * chartab.c (get_non_ascii_char_table_value): Don't use
3868         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3869
3870         * file-coding.c (encode_coding_big5): Delete bogus implementation
3871         in UTF2000.
3872
3873         * character.h (LEADING_BYTE_*): Delete definition for
3874         non-UTF-2000.
3875         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3876         (LEADING_BYTE_PREFIX_P): Deleted.
3877         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3878         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3879         (BUFBYTE_LEADING_BYTE_P): Deleted.
3880         (CHARSET_PRIVATE_P): Deleted unconditionally.
3881         (rep_bytes_by_first_byte): Deleted unconditionally.
3882         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3883         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3884         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3885         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3886         (CHAR_FIELD2): Deleted.
3887         (CHAR_FIELD3): Deleted.
3888         (MAKE_CHAR): Delete definition for non-UTF-2000.
3889         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3890         (breakup_char_1): New implementation.
3891         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3892         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3893
3894 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3895
3896         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3897         condition.
3898
3899 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3900
3901         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3902         (CHARSET_PRIVATE_P): Likewise.
3903         (XCHARSET_PRIVATE_P): Likewise.
3904         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3905
3906         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3907         UTF2000.
3908         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3909
3910 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3911
3912         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3913         (NUM_LEADING_BYTES): Changed from 128 to 256.
3914         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3915         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3916         UTF2000.
3917         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3918
3919         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3920         UTF2000.
3921         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3922         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3923         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3924         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3925         (Qchinese_cns11643_3): New variable in UTF2000.
3926         (Qchinese_cns11643_4): New variable in UTF2000.
3927         (Qchinese_cns11643_5): New variable in UTF2000.
3928         (Qchinese_cns11643_6): New variable in UTF2000.
3929         (Qchinese_cns11643_7): New variable in UTF2000.
3930         (syms_of_mule_charset): Define `chinese-cns11643-3',
3931         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3932         and `chinese-cns11643-7' in UTF2000.
3933         (vars_of_mule_charset): Initialize
3934         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3935         + 1 in UTF2000.
3936         (complex_vars_of_mule_charset): Setup charset
3937         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3938         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3939
3940 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3941
3942         * mule-charset.c: Move setting for `leading-code-private-11' from
3943         `syms_of_mule_charset' to `vars_of_mule_charset'.
3944
3945 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3948         and `NUM_LEADING_BYTES' in assert.
3949
3950 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3951
3952         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3953         instead of 128.
3954         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3955         `NUM_LEADING_BYTES' instead of 128.
3956
3957 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3958
3959         * mule-charset.h (charset_by_leading_byte): Use
3960         `NUM_LEADING_BYTES' instead of 128.
3961         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3962
3963         * mule-charset.c (charset_by_leading_byte): Use
3964         `NUM_LEADING_BYTES' instead of 128.
3965         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3966
3967         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3968         128.
3969
3970 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3971
3972         * mule-charset.c (syms_of_mule_charset): Update to
3973         0.4 (Shin-Imamiya).
3974
3975 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3976
3977         * file-coding.c (encode_coding_sjis): New implementation for
3978         UTF2000.  (decode_coding_sjis): Ditto.
3979
3980 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3981
3982         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3983         Don't define in UTF2000.
3984
3985         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3986         defined.
3987
3988         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3989         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3990         MULE.
3991
3992 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3993
3994         * config.h.in (CHAR_IS_UCS4): New macro.
3995
3996         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3997         conventional MULE representation.
3998         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3999
4000         * mule-charset.h: Reverted to original.
4001
4002         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4003         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4004         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4005
4006         * character.h: New file.
4007
4008         * file-coding.c (Fmake_coding_system): Set 1 to
4009         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4010         defined.
4011         (encode_coding_no_conversion): New implementation for UTF2000.
4012
4013         * file-coding.h (struct Lisp_Coding_System): Add new member
4014         `fixed.size'.
4015
4016 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4017
4018         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4019         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4020         (encode_coding_iso2022): New implementation for UTF2000.
4021
4022 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4023
4024         * mule-canna.c (c2mu): New implementation for UTF2000.
4025         (m2c): Likewise.
4026
4027 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4028
4029         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4030
4031 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * file-coding.c (reset_encoding_stream): Set 0 to
4034         `str->iso2022.current_char_boundary' in UTF2000.
4035         (encode_utf8): Don't define in UTF2000.
4036         (encode_coding_utf8): New implementation for UTF-8 representation
4037         of UTF2000.
4038         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4039
4040 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4041
4042         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4043
4044         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4045         UTF2000.
4046         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4047
4048         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4049
4050         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4051         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4052         as UTF-8 in UTF2000.
4053         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4054         (non_ascii_valid_char_p): Don't define in UTF2000.
4055         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4056         (Lstream_get_emchar_1): Likewise.
4057         (utf-2000-version): New variable in UTF2000.
4058
4059         * lread.c (read_escape): Add new reader `u'.
4060
4061         * insdel.c (three_to_one_table): Don't define in UTF2000.
4062         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4063         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4064         UTF2000.
4065         (bytind_to_bufpos_func): Likewise.
4066         (buffer_mule_signal_inserted_region): Likewise.
4067         (vars_of_insdel): Don't initialize `three_to_one_table'.
4068         (init_buffer_text): Use `buf->text->mule_size' instead of
4069         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4070         UTF2000.
4071
4072         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4073         UTF-8 representation in UTF2000.
4074         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4075         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4076         (decode_coding_iso2022): Don't define local variable `lb' in
4077         UTF2000; don't use LEADING_BYTE in UTF2000; use
4078         `DECODE_ADD_UCS_CHAR' in UTF2000.
4079         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4080
4081         * config.h.in (UTF2000): New macro.
4082
4083         * buffer.h (struct buffer_text): Add new member `mule_size' and
4084         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4085         (valid_char_p): Return always 1 in UTF2000.
4086         (MAX_EMCHAR_LEN): 6 in UTF2000.
4087         (three_to_one_table): Don't define in UTF2000.
4088         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4089         UTF2000.
4090         (real_bytind_to_bufpos): Likewise.
4091
4092         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4093
4094 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4095
4096         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4097         representation change.
4098         (Vutf_2000_version): New variable.
4099         (leading_code_private_11): New variable.
4100         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4101         `leading-code-private-11'.
4102
4103         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4104         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4105         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4106         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4107         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4108         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4109         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4110         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4111         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4112         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4113         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4114         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4115         (MIN_CHAR_GREEK): New macro.
4116         (MAX_CHAR_GREEK): New macro.
4117         (MIN_CHAR_CYRILLIC): New macro.
4118         (MAX_CHAR_CYRILLIC): New macro.
4119         (MIN_CHAR_HEBREW): New macro.
4120         (MAX_CHAR_HEBREW): New macro.
4121         (MIN_CHAR_THAI): New macro.
4122         (MAX_CHAR_THAI): New macro.
4123         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4124         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4125         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4126         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4127         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4128         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4129         (CHAR_FIELD2): New inline function.
4130         (CHAR_FIELD3): New inline function.
4131         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4132         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4133         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4134         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4135         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4136         (MIN_CHAR_COMPOSITION): Likewise.
4137         (CHAR_LEADING_BYTE): Modified for character representation change.
4138         (MAKE_CHAR): Likewise.
4139
4140         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4141         (Vcharset_greek_iso8859_7): Likewise.
4142         (Vcharset_cyrillic_iso8859_5): Likewise.
4143         (Vcharset_hebrew_iso8859_8): Likewise.
4144         (Vcharset_thai_tis620): Likewise.
4145         (Vcharset_katakana_jisx0201): Likewise.
4146
4147 2001-02-08  Martin Buchholz <martin@xemacs.org>
4148
4149         * XEmacs 21.2.44 "Thalia" is released.
4150
4151 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4152
4153         Fixes crashes in kill-emacs on some systems.
4154         * process-unix.c (unix_kill_child_process):
4155         It's OK for kill() to fail with ESRCH.
4156
4157 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4158
4159         Contortions to make .gdbinit tricks work on most systems.
4160         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4161         * alloc.c (dbg_valmask): Make non-const.
4162         * alloc.c (dbg_typemask): Make non-const.
4163         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4164         * alloc.c (dbg_valbits): Make non-const.
4165         * alloc.c (dbg_gctypebits): Make non-const.
4166         * .gdbinit (decode_object): Make it work with AIX cc.
4167
4168 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4169
4170         * elhash.c (make_general_lisp_hash_table):
4171         Use simpler and more efficient calloc to clear entries.
4172
4173 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4174
4175         * window.c (window_scroll): Work around an AIX C compiler bug.
4176         Fixes 'scroll-up' does nothing problem with xlC.
4177
4178 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4179
4180         * .gdbinit: Remove obsolete comment.
4181
4182 2001-01-31  Mike Alexander  <mta@arbortext.com>
4183
4184         * select.c (Fown_selection_internal): Set owned_p for device
4185         method correctly.
4186
4187 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4188
4189         Port to g++ 2.97.
4190         "not" cannot be used as a macro name as it is an operator in C++
4191         * config.h.in: Stop #defining `not'.
4192         * chartab.c (check_category_char): not ==> not_p
4193         * chartab.h: Likewise.
4194         * regex.c (re_match_2_internal): Likewise.
4195
4196 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4197
4198         * lisp-disunion.h: Fix up comments.
4199
4200 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4201
4202         * keymap.c (define_key_check_and_coerce_keysym):
4203         (syms_of_keymap):
4204         Support mouse-6 and mouse-7 bindings in the obvious way.
4205
4206 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4207
4208         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4209
4210 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4211
4212         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4213         Previous patch missed DEFVAR_INT_MAGIC.
4214         Make sure future DEFVAR_foo use correct types.
4215         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4216         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4217         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4218         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4219         * (DEFVAR_INT): Likewise.
4220         * redisplay.c (vertical_clip): Should be of type Fixnum.
4221         * redisplay.c (horizontal_clip): Likewise.
4222         * lisp.h (dump_add_opaque_int): New.
4223         (dump_add_opaque_fixnum): New.
4224
4225 2001-01-29  Andy Piper  <andy@xemacs.org>
4226
4227         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4228         since they can be eval'ed
4229
4230 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4231
4232         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4233         Oops, XEmacs redefines `class'.  Use `typename' instead.
4234
4235 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4236
4237         * dumper.c: Fix C++ compile errors.
4238
4239 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4240
4241         * tparam.c: Use correct prototypes.
4242
4243 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4244
4245         * sysproc.h: #include util.h for NetBSD's openpty.
4246
4247 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4248
4249         More 64-bit correctness.
4250         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4251         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4252         Fix up comments.
4253         This finally finishes the 64-bit SGI port.
4254         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4255         * symbols.c: Fix up comments and type casts.
4256         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4257         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4258         * symeval.h (Fixnum): New type.
4259         * symeval.h (symbol_value_type): Fix up comment.
4260
4261         * commands.h:
4262         * nt.c:
4263         * emacs.c:
4264         * data.c:
4265         * redisplay.c:
4266         * abbrev.c:
4267         * dired-msw.c:
4268         * event-Xt.c:
4269         * eldap.c:
4270         * window.c:
4271         * sound.c:
4272         * event-stream.c:
4273         * eval.c:
4274         * buffer.c:
4275         * mule-canna.c: A million DEFVAR_INTs here...
4276         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4277         * extents.c:
4278         * cmdloop.c:
4279         * lisp.h:
4280         * select-x.c:
4281         * console-x.h:
4282         * event-msw.c:
4283         * mule-wnnfns.c:
4284         * hpplay.c:
4285         * ralloc.c:
4286         * alloc.c:
4287         * keymap.c:
4288         * profile.c:
4289         s/int/Fixnum/g in DEFVAR_INT declarations.
4290
4291 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4292
4293         Port pdump to SGI alignment-sensitive environment.
4294         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4295         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4296         properly aligned.
4297         Define and use aligned reading and writing macros.
4298         Use buffered stdio instead of posix i/o for faster dumping.
4299         Eliminate kludgy 256 byte space for header.
4300         Read and write from dump file using structs for alignment safety.
4301         * dumper.c (pdump_align_stream): New.
4302         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4303         * dumper.c (PDUMP_READ_ALIGNED): New.
4304         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4305         * dumper.c (pdump_static_Lisp_Object): New struct.
4306         * dumper.c (pdump_static_pointer): New struct.
4307         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4308         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4309         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4310         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4311
4312         * dumper.c (pdump_backtrace):
4313         * dumper.c (pdump_get_indirect_count):
4314         * dumper.c (pdump_register_object):
4315         * dumper.c (pdump_register_struct):
4316         * dumper.c (pdump_reloc_one):
4317         * dumper.c (pdump_scan_by_alignment):
4318         * dumper.c (pdump_dump_from_root_struct_ptrs):
4319         * dumper.c (pdump_dump_opaques):
4320         * dumper.c (pdump_dump_rtables):
4321         * dumper.c (pdump_dump_from_root_objects):
4322         * dumper.c (pdump):
4323         * dumper.c (pdump_load_finish):
4324         Use aligned reading and writing.
4325
4326         * dumper.c (pdump_free): Make static.
4327         * dumper.c (pdump_hFile): Likewise.
4328         * dumper.c (pdump_hMap): Likewise.
4329
4330 2001-01-26  Martin Buchholz <martin@xemacs.org>
4331
4332         * XEmacs 21.2.43 "Terspichore" is released.
4333
4334 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4335
4336         Type fiddling for window_config.saved_windows_count
4337         * window.c (struct window_config): 
4338         Make saved_windows_count member unsigned.
4339         * window.c (sizeof_window_config_for_n_windows): 
4340         Make parameter unsigned.
4341         * window.c (mark_window_config):
4342         * window.c (window_config_equal):
4343         * window.c (free_window_configuration):
4344         * window.c (Fset_window_configuration):
4345         * window.c (count_windows):
4346         * window.c (Fcurrent_window_configuration):
4347         * window.c (reinit_vars_of_window):
4348         Update all callers and users.
4349
4350 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4351
4352         Alignment correctness for flexible arrays.
4353         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4354         Make alignment-correct. Add interesting comments.
4355         * alloc.c (size_vector):
4356         * alloc.c (make_vector_internal):
4357         * alloc.c (make_bit_vector_internal):
4358         * alloc.c (sweep_bit_vectors_1):
4359         * fns.c (size_bit_vector):
4360         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4361         * window.c (sizeof_window_config_for_n_windows): 
4362         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4363
4364 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4365
4366         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4367
4368 2001-01-23  Andy Piper  <andy@xemacs.org>
4369
4370         * select.c (Fown_selection_internal): pass owned_p
4371
4372         * select-msw.c (mswindows_own_selection): New Signature.
4373
4374         * console.h (struct console_methods): add owned_p to
4375         _own_selection.
4376
4377         * select-x.c (x_own_selection): pass owned_p
4378         (hack_motif_clipboard_selection): use owned_p
4379         (vars_of_select_x): new variable -
4380         x_selection_strict_motif_ownership.
4381
4382 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4383
4384         * specifier.h (specifier_data_offset): Remove pointless parens.
4385         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4386
4387 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4388
4389         Make Lisp_Object sizeof methods be alignment-correct.
4390         pdump must restore objects to the same alignment as the C compiler
4391         assumes.  It really matters on SGIs.
4392         * lstream.c (aligned_sizeof_lstream): New.
4393         (sizeof_lstream): Use aligned_sizeof_lstream.
4394         (Lstream_new): Likewise.
4395         * opaque.c (aligned_sizeof_opaque): New.
4396         (sizeof_opaque): Use aligned_sizeof_opaque.
4397         (make_opaque): Likewise.
4398         * specifier.c (aligned_sizeof_specifier): New.
4399         (sizeof_specifier): Use aligned_sizeof_specifier.
4400         (make_specifier_internal): Likewise.
4401
4402 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4403
4404         * lstream.h (struct lstream): Use max_align_t for trailing data.
4405         * specifier.h (struct Lisp_Specifier): Likewise.
4406
4407 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4408
4409         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4410         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4411         (CCL_SUSPEND): Likewise.
4412         (CCL_INVALID_CMD): Likewise.
4413         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4414         (ccl_driver): Likewise.
4415         (CCL_WRITE_CHAR): Macro hygiene.
4416         (CCL_WRITE_STRING): Macro hygiene.
4417
4418 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4419
4420         Port "portable" dumper to SunOS 4 and HP-UX.
4421         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4422         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4423         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4424
4425 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4426
4427         * lisp.h (ALIGNOF): A better definition for C++.
4428
4429 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4430
4431         Macro hygiene.
4432         Fix printf warnings: int format, long int arg.
4433         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4434         (PUSH_FAILURE_POINT): Use correct printf formats.
4435         (POP_FAILURE_POINT): Use correct printf formats.  
4436         Use do {...} while (0)
4437
4438 2001-01-20  Martin Buchholz <martin@xemacs.org>
4439
4440         * XEmacs 21.2.42 "Poseidon" is released.
4441
4442 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4443
4444         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4445
4446 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4447
4448         De-kludgify FIXED_TYPE free list frobbing.
4449         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4450         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4451         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4452         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4453         * alloc.c (LRECORD_FREE_P): New.
4454         * alloc.c (MARK_LRECORD_AS_FREE): New.
4455         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4456         * alloc.c (STRUCT_FREE_P): Deleted.
4457         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4458         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4459         * alloc.c (STRING_CHARS_FREE_P): New.
4460         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4461         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4462         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4463         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4464         * alloc.c (resize_string): Use new definitions.
4465         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4466         * alloc.c (verify_string_chars_integrity): Use new definitions.
4467         * alloc.c (compact_string_chars): Use new definitions.
4468         * alloc.c: Update monster comments.
4469         * lrecord.h (lrecord_type): Add some new lrecord types for
4470         alloc.c's use.
4471
4472 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4473
4474         Improve alignment hackery.
4475         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4476         (max_align_t): Moved from opaque.h - general purpose.
4477         (ALIGN_PTR): Use size_t, not long.
4478         * opaque.h (max_align_t): Move to lisp.h.
4479
4480 2001-01-18  Norbert Koch  <nk@LF.net>
4481
4482         * gui.h: Fix and add prototypes to fix build problems.
4483
4484 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4485
4486         temacs is going away, so `dump-temacs' is now a bad name.
4487         * .dbxrc (dump-temacs): Rename to `dmp'.
4488         * .gdbinit (dump-temacs): Rename to `dmp'.
4489
4490 2001-01-17  Andy Piper  <andy@xemacs.org>
4491
4492         * glyphs.c (print_image_instance): comment to make martin happy.
4493
4494         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4495         change.
4496
4497         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4498         activation.
4499         (mswindows_tab_control_redisplay): warning suppression.
4500
4501         * glyphs-widget.c (widget_update): re-write to cope with updated
4502         items.
4503         (widget_instantiate): use new gui_item functions.
4504         (tab_control_update): deleted.
4505         (progress_gauge_update): deleted.
4506         (image_instantiator_progress_guage): take out update reference.
4507         (image_instantiator_tree_view): ditto.
4508         (image_instantiator_tab_control): ditto.
4509
4510         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4511         Right the new way.
4512         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4513         return whether anything was changed.
4514         (update_gui_item_keywords): as it sounds.
4515
4516         * gui.h: declare widget_gui_parse_item_keywords.
4517
4518         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4519         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4520
4521 2001-01-17  Martin Buchholz <martin@xemacs.org>
4522
4523         * XEmacs 21.2.41 "Polyhymnia" is released.
4524
4525 2001-01-16  Didier Verna  <didier@xemacs.org>
4526
4527         * glyphs.c (image_instantiate): don't use fallbacks when
4528         instantiating a face's background pixmap by inheritance.
4529
4530 2001-01-14  Mike Sperber <mike@xemacs.org>
4531
4532         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4533         Conditionalize accordingly.
4534
4535 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4536
4537         * dumper.c (pdump_file_get): Fix a compiler warning.
4538
4539 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4540
4541         Make Purify happy when pdumping.
4542         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4543         iniitalizing all bits of new lisp object memory.
4544         * symbols.c (Fmake_local_variable): Likewise.
4545         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4546         * symbols.c (Fdefvaralias): Likewise.
4547         * mule-charset.c (vars_of_mule_charset): Likewise.
4548
4549 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4550         Add the `-nd' flag when running pre-dump operations under the debugger.
4551         * .dbxrc (run-temacs): Add `-nd'.
4552         * .dbxrc (update-elc): Likewise.
4553         * .dbxrc (dump-temacs): Likewise.
4554         * .gdbinit (run-temacs): Likewise.
4555         * .gdbinit (check-temacs): Likewise.
4556         * .gdbinit (update-elc): Likewise.
4557         * .gdbinit (dump-temacs): Likewise.
4558
4559 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4560
4561         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4562         export OBJECT_MODE=64
4563         configure --pdump --use-union-type=no
4564         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4565         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4566
4567         * miscplay.c (sndcnv8U_2mono):
4568         Avoid two uses of `++' in the same expression.
4569         Suppresses a GCC warning.
4570
4571 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4572
4573         Make sure future compilers don't miscompile alloc.c.
4574         * alloc.c:
4575         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4576         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4577
4578 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4579
4580         * dumper.c: A little post-pdump-rename comment fixup.
4581
4582 2001-01-09  Jerry James  <james@eecs.ku.edu>
4583
4584         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4585
4586 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4587
4588         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4589         script:
4590         #!/bin/sh
4591         replace_symbol () {
4592           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4593         }
4594
4595         replace_symbol pdump_wire_lists pdump_weak_object_chains
4596         replace_symbol pdump_wire_list dump_add_weak_object_chain
4597
4598         replace_symbol pdump_wires pdump_root_objects
4599         replace_symbol pdump_wire dump_add_root_object
4600
4601         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4602         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4603
4604         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4605         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4606         replace_symbol dumpstructinfo pdump_root_struct_ptr
4607         replace_symbol dumpstruct dump_add_root_struct_ptr
4608
4609         replace_symbol dumpopaque dump_add_opaque
4610         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4611         replace_symbol dumpopaqueinfos pdump_opaques
4612         replace_symbol dumpopaqueinfo pdump_opaque
4613
4614         replace_symbol nb_structdump nb_root_struct_ptrs
4615         replace_symbol nb_opaquedump nb_opaques
4616
4617         replace_symbol align_table pdump_align_table
4618         replace_symbol dump_header pdump_header
4619
4620         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4621         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4622
4623
4624 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4625
4626         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4627         optimizing bytecount_to_charcount().
4628
4629 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4630
4631         * config.h.in:
4632         (HAVE_DLFCN_H): Removed.
4633         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4634
4635 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4636
4637         Portable dumper maintainability improvements.
4638         * alloc.c (staticpro):
4639         * alloc.c (staticpro_nodump):
4640         * alloc.c (garbage_collect_1):
4641         * alloc.c (reinit_alloc_once_early):
4642         * alloc.c (init_alloc_once_early):
4643         * alloc.c: Move dumper functions to alloc.c.
4644         * dumper.c (pdump_backtrace):
4645         * dumper.c (pdump_dump_structs):
4646         * dumper.c (pdump_dump_opaques):
4647         * dumper.c (pdump_dump_rtables):
4648         * dumper.c (pdump_dump_wired):
4649         * dumper.c (pdump):
4650         * dumper.c (pdump_load_check):
4651         * dumper.c (pdump_load_finish):
4652         * dumper.c (pdump_file_unmap):
4653         * dumper.c (pdump_file_get):
4654         * dumper.c (pdump_resource_free):
4655         * dumper.c (pdump_resource_get):
4656         * dumper.c (pdump_file_free):
4657         * dumper.c (pdump_file_try):
4658         * dumper.c (pdump_load):
4659         Remove fixed size limits on staticpro(), staticpro_nodump(),
4660         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4661         Remove custom code for dumping lrecord_implementations_table - use
4662         dumpopaque instead.
4663         Remove (most of the) custom code for dumping staticpros - dump it
4664         like any other dynarr.
4665
4666         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4667         * dumper.c: Moved functions from alloc.c.
4668         * alloc.c (dumpstruct): Moved to dumper.c.
4669         * alloc.c (dumpopaque): Likewise.
4670         * alloc.c (pdump_wire): Likewise.
4671         * alloc.c (pdump_wire_list): Likewise.
4672
4673         * lisp.h (Dynarr_sizeof): New.
4674         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4675         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4676         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4677
4678         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4679         * lisp.h (dumpopaque): ditto.
4680         * lisp.h (pdump_wire): ditto.
4681         * lisp.h (pdump_wire_list): ditto.
4682
4683 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4684
4685         * make-src-depend (PrintPatternDeps):
4686         Use `sort' to make output independent of perl version.
4687
4688 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4689
4690         Port to Netbsd 1.5.
4691         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4692         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4693
4694 2001-01-03  Didier Verna  <didier@xemacs.org>
4695
4696         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4697         that `focus_frame' is alive before thinking of calling
4698         `redisplay_redraw_cursor' on it.
4699
4700 2001-01-08  Martin Buchholz <martin@xemacs.org>
4701
4702         * XEmacs 21.2.40 is released.
4703
4704 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4705
4706         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4707
4708 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4709
4710         * alloc.c (dbg_valmask): Make const.
4711         * alloc.c (dbg_typemask): Make const.
4712         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4713         * alloc.c (dbg_valbits): Make const.
4714         * alloc.c (dbg_gctypebits): Make const.
4715
4716 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4717
4718         * redisplay-x.c (x_bevel_area):
4719         redisplay.h (struct rune):
4720         Typo fixes in comments.
4721
4722 2001-01-05  Andy Piper  <andy@xemacs.org>
4723
4724         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4725         adjustment.
4726
4727         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4728
4729 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4730
4731         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4732
4733         * mule-ccl.c (stack_idx_of_map_multiple):
4734         Non const global data must not be initialized!
4735         Found by MIYASHITA Hisashi.
4736
4737 2001-01-02  Andy Piper  <andy@xemacs.org>
4738
4739         * frame.c (change_frame_size): make sure frame size is always
4740         marked as changed.
4741
4742         * glyphs.c (image_instance_layout): minor code reuse.
4743
4744         * window.c (Fcurrent_window_configuration): revert previous
4745         change.
4746
4747 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4748
4749         * glyphs.h:
4750         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4751
4752 2000-12-31  Andy Piper  <andy@xemacs.org>
4753
4754         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4755         when widget gets unmapped.
4756
4757         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4758         function. Make sure widgets losing focus don't just drop it.
4759         (handle_focus_event_1): record the widget with focus.
4760
4761 2000-12-31  Andy Piper  <andy@xemacs.org>
4762
4763         * window.c (allocate_window): use
4764         make_image_instance_cache_hash_table.
4765         (make_dummy_parent): ditto.
4766         (Fset_window_configuration): ditto.
4767
4768         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4769
4770         * glyphs.c (process_image_string_instantiator): use
4771         INSTANTIATOR_TYPE.
4772         (get_image_instantiator_governing_domain): ditto.
4773         (normalize_image_instantiator): ditto.
4774         (instantiate_image_instantiator): ditto.
4775         (make_image_instance_1): ditto.
4776         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4777         (instantiator_eq_equal): new function for use with instance hash
4778         tables.
4779         (instantiator_eq_hash): ditto.
4780         (make_image_instance_cache_hash_table): create a suitable hash
4781         table for storing image instances.
4782
4783         * elhash.h (hash_table_weakness): new internal weakness type
4784         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4785         declare new functions.
4786
4787         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4788         another weakness type for glyphs.
4789         (make_standard_lisp_hash_table): new function split out from
4790         make_general_lisp_hash_table.
4791         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4792         (hash_table_instantiate): ditto.
4793         (Fmake_hash_table): ditto.
4794
4795 2000-12-31  Martin Buchholz <martin@xemacs.org>
4796
4797         * XEmacs 21.2.39 is released.
4798
4799 2000-12-29  Andy Piper  <andy@xemacs.org>
4800
4801         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4802
4803         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4804         the frame has changed so that we pick up geometry changes such as
4805         menubar visibility.
4806
4807 2000-12-28  Andy Piper  <andy@xemacs.org>
4808
4809         * lastfile.c (my_ebss): make a char array so we can pad the
4810         bss. Fixes cygwin unexec.
4811
4812         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4813
4814 2000-12-26  Andy Piper  <andy@xemacs.org>
4815
4816         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4817         comments and try and be more precise about a non-/SIGIO world.
4818         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4819         SIGIO.
4820
4821         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4822         we don't normalize to zero width or height.
4823
4824 2000-12-24  Andy Piper  <andy@xemacs.org>
4825
4826         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4827
4828 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4829
4830         * s/sco5.h: SCO 5 has pty support.
4831
4832 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4833
4834         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4835         input-method-xlib.c contains whole contents of input-method-xfs.c,
4836         so we can use input-method-xlib.c's code for USE_XFONTSET
4837         using #ifdefs.
4838         * input-method-xfs.c: removed.
4839
4840 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4841
4842         * file-coding.h (enum coding_category_type): reorder enumerators to
4843         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4844         (now one greater than largest real coding_category_type enumerator).
4845         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4846         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4847         Fcoding_category_list, Fset_coding_priority_list,
4848         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4849         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4850
4851 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4852
4853         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4854         * redisplay-output.c (redisplay_output_window): Clear top of window
4855         when face is changed.
4856         * redisplay-x.c (x_redraw_exposed_window): Call
4857         redisplay_clear_top_of_window.
4858         * redisplay.h: Publish redisplay_clear_top_of_window.
4859
4860 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4861
4862         * buffer.c (Fkill_buffer): Map over all devices.
4863         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4864         (list_windows): New function.
4865         (list_all_windows): Ditto.
4866         (Freplace_buffer_in_windows): Use them.
4867
4868 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4869
4870         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4871         (Fopen_database): Use `db_create' instead of `db_open'.
4872         (syms_of_database): Initialize Qqueue.
4873
4874 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4875
4876         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4877         buffer_local_face_property.
4878         * buffer.h (struct buffer): New member buffer_local_face_property.
4879         * window.c (Fset_window_buffer):  Mark window's face as changed
4880         when buffer has buffer local face.
4881         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4882         * objects.c (color_after_change): Set buffer_local_face_property
4883         when locale of face specifier is buffer.
4884         * objects.c (font_after_change): Ditto.
4885         * objects.c (face_boolean_after_change): Ditto.
4886         * glyphs.c (image_after_change): Ditto.
4887
4888 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4889
4890         * nt.c (mswindows_fstat): Report file permissions, volume serial
4891         number, etc. Code adapted from FSF Emacs 20.7.
4892
4893 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4894
4895         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4896         of stat when we don't have symbolic links, to make sure
4897         mswindows_stat is called on mswindows.
4898
4899 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4900
4901         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4902
4903 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4904
4905         * doprnt.c (emacs_doprnt_1): More printing fixes.
4906         Make printing of numbers compatible with libc and FSF Emacs.
4907         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4908         Use the system printf to do most of the hard work of formatting,
4909         instead of doprnt_1().
4910         Calculate memory to allocate for format string.
4911         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4912         (doprnt_1): Cleaner code and documentation.
4913
4914 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4915
4916         * Makefile.in.in: Use the loop variable to install headers.
4917
4918 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4919
4920         * window.c (Fsplit_window): Don't invalidate face cache.
4921
4922 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4923
4924         * minibuf.c (Fall_completions): Undo the previous change
4925         which removed checking elements start with space.
4926
4927 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4928
4929         * mule-canna.c: Didier suppression.
4930
4931 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4932
4933         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4934         (warning suppression).  Add English comment translations.
4935
4936 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4937
4938         * unexelfsgi.c (unexec): Better test for mmap failure.
4939
4940 2000-12-05  Martin Buchholz <martin@xemacs.org>
4941
4942         * XEmacs 21.2.38 is released.
4943
4944 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4945
4946         * redisplay.c (bar-cursor): Make a user variable.
4947
4948         * symsinit.h: Add init_postgresql_from_environment.
4949
4950 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4951
4952         * regex.c: Convert to clean C.
4953
4954 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4955
4956         * realpath.c:
4957         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4958         initialization.
4959         (sys_readlink): renamed to system_readlink to avoid conflict with
4960         the other sys_readlink.
4961
4962 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4963
4964         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4965
4966 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4967
4968         * postgresql.c (init_postgresql_from_environment): new function.
4969         (vars_of_postgresql): Move code initializing Lisp variables out and
4970         into init_postgresql_from_environment.
4971         emacs.c (main_1): Call init_postgresql_from_environment if and only
4972         if running a dumped XEmacs.
4973
4974 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4975
4976         * buffer.c: Make find-file-compare-truenames default to true on
4977         windows.
4978
4979         * realpath.c (win32_abs_start):
4980         (cygwin_readlink):
4981         (win32_readlink): New functions.
4982         (xrealpath): Return really real filenames on windows.
4983
4984         * fileio.c (Ffile_truename): Make file-truename work on windows.
4985
4986 2000-11-29  Didier Verna  <didier@xemacs.org>
4987
4988         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4989         * faces.c (update_face_cachel_data): use it.
4990         * faces.c (add_face_cachel): use it. Complete background pixmap
4991         frobbing in face cache if `update_face_cachel_data' has not done so.
4992
4993 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4994
4995         * search.c (string_match_1): Don't set last_thing_searched
4996         when search failed.
4997
4998 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4999
5000         * buffer.c: Include casetab.h
5001         (common_init_complex_vars_of_buffer): Use new case-table object.
5002         * buffer.h: Include casetab.h
5003         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5004         (DOWNCASE_TABLE_OF): Ditto.
5005         * bufslots.h: Remove char-tables and add case-table.
5006         * casetab.c: Include casetab.h
5007         (CASE_TABLE_P): Removed.
5008         (mark_case_table): New function.
5009         (allocate_case_table): New function.
5010         (Fcase_table_p): Use new case-table.
5011         (case_table_char): New function.
5012         (Fget_case_table): Ditto.
5013         (Fput_case_table): Ditto.
5014         (Fput_case_table_pair): Ditto.
5015         (Fcopy_case_table): Ditto.
5016         (Fcurrent_case_table): Return case-table.
5017         (Fstandard_case_table): Return case-table.
5018         (Fset_case_table): Fix doc-string.
5019         (set_case_table): Use case-table
5020         (syms_of_casetab): DEFSUBR new functions.
5021         (complex_vars_of_casetab): Set up standard case-table.
5022         * casetab.h: New file.
5023         * editfns.c: Include casetab.h
5024         (Fcompare_buffer_substrings): Use case-table.
5025         * inline.c: Include casetab.h
5026         * lisp.h: Remove bogus extern.
5027         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5028         * search.c: Include casetab.h
5029         (TRANSLATE_ASCII): Removed.
5030         (TRANSLATE): Unconditionally translate character.
5031         (looking_at_1): Use case-table.
5032         (string_match_1): Ditto.
5033         (fast_string_match): Ditto.
5034         (search_command): Ditto.
5035         (search_buffer): Separate boyer_moore.  Check whether
5036         boyer_moore is possible.
5037         (simple_search): New function.
5038         (boyer_moore): Separated from search_buffer. Translate char.
5039
5040 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5041
5042         * regex.c (RE_TR_ASCII): Removed.
5043         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5044         (PATFETCH): Call PATFETCH_RAW.
5045         (PATFETCH_RAW): Fetch Emchar.
5046         (PATUNFETCH): Decrement charptr.
5047         (GET_BUFFER_SPACE): Rename b to buf_end.
5048         (BUF_PUSH): Ditto.
5049         (BUF_PUSH_2): Ditto.
5050         (BUF_PUSH_3): Ditto.
5051         (EXTEND_BUFFER): Ditto.
5052         (SET_LIST_BIT): Ditto.
5053         (regex_compile): Ditto.  Translate non ASCII char.
5054         (compile_range): Ditto.
5055         (re_search_2): Ditto.
5056         (re_match_2_internal): Compare Emchar.
5057         (bcmp_translate): Ditto.
5058
5059 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5060
5061         * lisp.h (basic char/int typedefs):  comment improvement.
5062
5063 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5064
5065         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5066         unstomp inhibit_site_lisp.  Improve comments.
5067
5068 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5069
5070         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5071
5072 2000-11-28  Andy Piper  <andy@xemacs.org>
5073
5074         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5075         clipped display for windows in the gutter also.
5076         (redisplay_display_boxes_in_window_p): change semantics of return
5077         codes to be more intuitive.
5078
5079         * gutter.h: declare display_boxes_in_gutter_p.
5080
5081         * gutter.c (display_boxes_in_gutter_p): new function for
5082         redisplay.
5083
5084 2000-11-22  Andy Piper  <andy@xemacs.org>
5085
5086         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5087         autodetect domain.
5088
5089 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5090
5091         * callproc.c (Fold_call_process_internal):
5092         * gpm.c (Freceive_gpm_event):
5093         (tty_get_foreign_selection): Might be just warning supression.
5094         * fileio.c (Fwrite_region_internal):
5095         (Fset_visited_file_modtime):
5096         * keymap.c (event_matches_key_specifier_p):
5097         Initialize GCPROed variable.
5098
5099         * menubar-x.c (command_builder_find_menu_accelerator):
5100         Initialize before use.
5101
5102 2000-11-23  Andy Piper  <andy@xemacs.org>
5103
5104         * unexcw.c (unexec): make the resulting executable executable.
5105
5106 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5107
5108         * doc.c (get_doc_string):
5109         Use size_t, not int, for result of XSTRING_LENGTH.
5110
5111         * cmds.c (Fdelete_char):
5112         * cmds.c (Fpoint_at_eol):
5113         * cmds.c (Fself_insert_command):
5114         Use EMACS_INT, not int, for result of XINT.
5115         Someday, someone will want to insert more than 2**31 identical characters.
5116
5117         * cmds.c (Fdelete_char):
5118         * cmds.c (Fdelete_backward_char):
5119         * syntax.c (Fforward_word):
5120         * syntax.c (Fforward_comment):
5121         Make COUNT argument optional, for consistency with forward-char et al.
5122
5123 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5124
5125         * lisp.h:
5126         * print.c (long_to_string):
5127         Return a useful value: the pointer at end of data written.
5128
5129         * doprnt.c:
5130         Use `static const char * const' for constant strings.
5131         (union printf_arg): Delete `i', `ui' members.
5132         (get_doprnt_args):
5133         (emacs_doprnt_1):
5134         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5135         Do all printf-ing via the `l' specifier.
5136         Use EMACS_INT instead of int.
5137         Optimize.
5138
5139 2000-11-20  Didier Verna  <didier@xemacs.org>
5140
5141         * faces.c (update_face_cachel_data): don't frob the background
5142         pixmap when the window is being created. The face is needed but
5143         does not exist yet.
5144
5145 2000-11-20  Andy Piper  <andy@xemacs.org>
5146
5147         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5148         messing with a debug environment.
5149
5150 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5151
5152         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5153
5154 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5155
5156         * casetab.c (Fcase_table_p): Fix compile error and crash.
5157
5158 2000-11-18  Philip Aston  <philipa@mail.com>
5159
5160         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5161
5162 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5163
5164         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5165         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5166
5167 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5168
5169         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5170         * unexelf.c: Use HAVE_ELF_H.
5171         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5172         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5173         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5174         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5175         for testing.
5176         So this is an unexelfsgi.c from a different line of development.
5177
5178 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5179
5180         * regex.c (RE_TR_ASCII): New function.
5181         (RE_TRANSLATE): Call it.
5182
5183 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5184
5185         * buffer.h (TRT_TABLE_OF): Remove assert.
5186         (IN_TRT_TABLE_DOMAIN): Removed.
5187
5188 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5189
5190         * free-hook.c (log_gcpro):
5191         (show_gcprohist): Add support for GCPRO5.
5192
5193 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5194
5195         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5196
5197 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5198
5199         * symeval.h: Declare flush_all_buffer_local_cache.
5200
5201         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5202         (flush_buffer_local_cache): Added.
5203         (flush_all_buffer_local_cache): Added.
5204
5205         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5206
5207         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5208         (pdump_dump_data): Ditto.
5209         (pdump_reloc_one): Ditto.
5210         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5211         before dumping.
5212
5213
5214 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5215
5216         * buffer.c: Remove if 0'ed entry.
5217         * buffer.h: Rewrite TRT to use char-table.
5218         * bufslots.h: Remove mirror tables.
5219         * casetab.c: Remove mirror tables.
5220         (CASE_TABLE_P): New macro.
5221         (Fcase_table_p): Element of a case table is string or char-table.
5222         (make_mirror_trt_table): Removed.
5223         (set_case_table): Setup char-table from strings for backward
5224         compatibility.
5225         * dired.c (Fdirectory_files):
5226         * dired-msw.c: (mswindows_get_files):
5227         * lisp.h: Change prototype of re_pattern_buffer.
5228         * regex.c: (RE_TRANSLATE): New macro.
5229         (TRANSLATE_P): Ditto.
5230         Change translate to type RE_TRANSLATE_TYPE.
5231         * regex.h: Define RE_TRANSLATE_TYPE
5232         * search.c (TRANSLATE): New macro.
5233         (TRANSLATE_ASCII): New macro.
5234         Translate table is changed to Lisp_Object.
5235         (signal_failure): Inhibit return.
5236
5237 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5238
5239         * device-msw.c:
5240         * eldap.c:
5241         * event-Xt.c:
5242         * event-stream.c:
5243         * print.c:
5244         Do UNGCPRO before return.
5245
5246 2000-11-14  Martin Buchholz <martin@xemacs.org>
5247
5248         * XEmacs 21.2.37 is released.
5249
5250 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5251
5252         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5253         Add comments about discarded return value.
5254
5255 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5256
5257         * callint.c:
5258         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5259
5260 2000-10-27  Andy Piper  <andy@xemacs.org>
5261
5262         * gutter.c (Fset_default_gutter_position): default left and right
5263         gutters to visible.
5264         (calculate_gutter_size): calculate resonable heuristic for left
5265         and right gutter sizes.
5266         (specifier_vars_of_gutter): change left and right gutter sizes to
5267         autodetect.
5268         (calculate_gutter_size_from_display_lines): new function.
5269         (output_gutter): check for resizing on left and right gutters.
5270         (clear_gutter): don't special case top and left gutters.
5271         (specifier_vars_of_gutter): use new signature for
5272         set_specifier_caching.
5273
5274         * glyphs-x.c (x_redisplay_widget): spelling fix.
5275         * glyphs.c (specifier_vars_of_glyphs):
5276         * menubar.c (specifier_vars_of_menubar):
5277         * redisplay.c (specifier_vars_of_redisplay):
5278         * toolbar.c (specifier_vars_of_toolbar):
5279         * window.c (specifier_vars_of_window):
5280         * scrollbar.c (specifier_vars_of_scrollbar):
5281         (complex_vars_of_scrollbar): use new signature for
5282         set_specifier_caching.
5283
5284         * specifier.c (set_specifier_caching): include recompute flag.
5285         (recompute_one_cached_specifier_in_window): always recompute if
5286         flag set.
5287         (recompute_one_cached_specifier_in_frame): ditto.
5288
5289         * specifier.h (struct specifier_caching): add recompute flag.
5290
5291 2000-10-24  Andy Piper  <andy@xemacs.org>
5292
5293         * unexcw.c (copy_executable_and_dump_data_section): add new
5294         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5295         5.0 happy.
5296
5297 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5298
5299         * console-x.h (x_device): New member modifier_release_time.
5300         * event-Xt.c (x_handle_sticky_modifiers):
5301         Bound interval modifier keys are sticky.
5302         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5303         * events.h: extern it.
5304
5305 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5306
5307         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5308
5309 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5310
5311         * event-stream.c (execute_command_event): Preserve current_events
5312         and the like when event is misc-user-event.
5313         Inhibit quit during the call to maybe_echo_keys.
5314
5315 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5316
5317         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5318         symlink when buffer is killed.
5319         (inhibit_clash_detection): New variable.
5320
5321 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5322
5323         * console.c (Fset_input_method): Trigger redisplay on tty.
5324
5325 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5326
5327         * process.c (Fprocess_status): Revert to previous behavior:
5328         (process-status "nosuchprocess") ==> nil
5329
5330 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5331
5332         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5333         Work around another GCC 2.95.2 optimizer bug.
5334
5335 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5336
5337         * process.c (Fget_process): Use LIST_LOOP_2.
5338         (kill_buffer_processes): Use LIST_LOOP_2.
5339
5340         * minibuf.c (Fall_completions):
5341         Delete old non-functional code for FSF fourth argument.
5342
5343         * frame.c (frame_matches_frame_spec):
5344         Renamed from `frame_matches_frametype'.  Update all callers.
5345         (device_matches_device_spec):
5346         Renamed from 'device_matches_console_spec'.  Update all callers.
5347
5348         * doc.c (Fsubstitute_command_keys):
5349         Remove buffer overflow crash.  Small code cleanups.
5350
5351         * casetab.c (check_case_table): Simpler code.
5352
5353         * window.c (Freplace_buffer_in_windows):
5354         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5355         (and similar implementation) as Fdelete_windows_on.
5356         Update all callers.
5357
5358         * alloc.c (Fmake_list):
5359         * alloc.c (make_vector):
5360         * alloc.c (Fmake_vector):
5361         * alloc.c (make_bit_vector):
5362         * alloc.c (Fmake_bit_vector):
5363         * alloc.c (Fbit_vector):
5364         * alloc.c (Fmake_string):
5365         * alloc.c (Fpurecopy):
5366         * alloc.c (Fmemory_limit):
5367         * buffer.c:
5368         * buffer.c (Fget_buffer):
5369         * buffer.c (Fkill_buffer):
5370         * buffer.c (complex_vars_of_buffer):
5371         * bytecode.c (Fcompiled_function_stack_depth):
5372         * callint.c (Fprefix_numeric_value):
5373         * event-stream.c:
5374         * event-stream.c (Fread_key_sequence):
5375         * casetab.c:
5376         * casetab.c (Fcase_table_p):
5377         * casetab.c (check_case_table):
5378         * casetab.c (Fset_case_table):
5379         * casetab.c (Fset_standard_case_table):
5380         * chartab.c:
5381         * chartab.c (Fchar_table_type):
5382         * chartab.c (Freset_char_table):
5383         * chartab.c (Fget_char_table):
5384         * chartab.c (Fget_range_char_table):
5385         * chartab.c (Fput_char_table):
5386         * chartab.c (Fmap_char_table):
5387         * chartab.c (Fcategory_table_p):
5388         * chartab.c (Fcheck_category_at):
5389         * chartab.c (Fchar_in_category_p):
5390         * chartab.c (Fcategory_table):
5391         * chartab.c (Fcopy_category_table):
5392         * chartab.c (Fset_category_table):
5393         * chartab.c (Fcategory_designator_p):
5394         * chartab.c (Fcategory_table_value_p):
5395         * cmds.c (Fdelete_char):
5396         * cmds.c (Fdelete_backward_char):
5397         * cmds.c (Fself_insert_command):
5398         * cmds.c (Fself_insert_internal):
5399         * console.c (Fvalid_console_type_p):
5400         * console.c (Fcdfw_console):
5401         * console.c (Fconsole_type):
5402         * console.c (Fconsole_name):
5403         * console.c (Fconsole_device_list):
5404         * console.c (Fconsole_on_window_system_p):
5405         * data.c:
5406         * data.c (Feq):
5407         * data.c (Fold_eq):
5408         * data.c (Fsubr_interactive):
5409         * data.c (Fchar_to_int):
5410         * data.c (Fint_to_char):
5411         * data.c (Fsetcar):
5412         * data.c (Fsetcdr):
5413         * data.c (Fnumber_to_string):
5414         * data.c (Fstring_to_number):
5415         * data.c (Frem):
5416         * database.c (mark_database):
5417         * database.c (finalize_database):
5418         * database.c (Fdatabase_live_p):
5419         * database.c (Fdatabasep):
5420         * device-x.c (Fx_get_resource):
5421         * device.c (Fdfw_device):
5422         * dired.c:
5423         * dired.c (Ffile_name_completion):
5424         * dired.c (Ffile_name_all_completions):
5425         * dired.c (Fuser_name_completion):
5426         * dired.c (Fuser_name_completion_1):
5427         * dired.c (Fuser_name_all_completions):
5428         * doc.c (Fdocumentation):
5429         * doc.c (Fdocumentation_property):
5430         * doc.c (Fsubstitute_command_keys):
5431         * editfns.c:
5432         * editfns.c (Fchar_to_string):
5433         * editfns.c (Fstring_to_char):
5434         * editfns.c (Ftemp_directory):
5435         * editfns.c (Finsert_char):
5436         * editfns.c (Fbuffer_substring_no_properties):
5437         * editfns.c (Fnarrow_to_region):
5438         * editfns.c (Fchar_equal):
5439         * editfns.c (Fchar_Equal):
5440         * editfns.c (Ftranspose_regions):
5441         * emacs.c (Fdump_emacs):
5442         * eval.c (Fthrow):
5443         * eval.c (Fcommand_execute):
5444         * eval.c (Fautoload):
5445         * eval.c (Fbacktrace):
5446         * eval.c (Fbacktrace_frame):
5447         * events.c:
5448         * events.c (Fcopy_event):
5449         * events.c (Fcharacter_to_event):
5450         * events.c (Fevent_button):
5451         * events.c (Fevent_process):
5452         * extents.c:
5453         * extents.c (Fnext_extent_change):
5454         * extents.c (Fextent_property):
5455         * faces.c (Ffacep):
5456         * faces.c (Fmake_face):
5457         * file-coding.c:
5458         * file-coding.c (Fencode_shift_jis_char):
5459         * file-coding.c (Fencode_big5_char):
5460         * fileio.c (Ffile_name_directory):
5461         * fileio.c (Ffile_name_nondirectory):
5462         * fileio.c (Ffile_name_as_directory):
5463         * fileio.c (Fdirectory_file_name):
5464         * fileio.c (Ffile_truename):
5465         * fileio.c (Fsubstitute_in_file_name):
5466         * fileio.c (Ffile_modes):
5467         * fileio.c (Fset_file_modes):
5468         * fileio.c (Fset_default_file_modes):
5469         * fileio.c (Fverify_visited_file_modtime):
5470         * floatfns.c (Facos):
5471         * floatfns.c (Fasin):
5472         * floatfns.c (Fatan):
5473         * floatfns.c (Fcos):
5474         * floatfns.c (Fsin):
5475         * floatfns.c (Ftan):
5476         * floatfns.c (Fbessel_j0):
5477         * floatfns.c (Fbessel_j1):
5478         * floatfns.c (Fbessel_jn):
5479         * floatfns.c (Fbessel_y0):
5480         * floatfns.c (Fbessel_y1):
5481         * floatfns.c (Fbessel_yn):
5482         * floatfns.c (Ferf):
5483         * floatfns.c (Ferfc):
5484         * floatfns.c (Flog_gamma):
5485         * floatfns.c (Fexp):
5486         * floatfns.c (Fexpt):
5487         * floatfns.c (Flog):
5488         * floatfns.c (Flog10):
5489         * floatfns.c (Fsqrt):
5490         * floatfns.c (Fcube_root):
5491         * floatfns.c (Facosh):
5492         * floatfns.c (Fasinh):
5493         * floatfns.c (Fatanh):
5494         * floatfns.c (Fcosh):
5495         * floatfns.c (Fsinh):
5496         * floatfns.c (Ftanh):
5497         * floatfns.c (Fabs):
5498         * floatfns.c (Ffloat):
5499         * floatfns.c (Flogb):
5500         * floatfns.c (Fceiling):
5501         * floatfns.c (Ffloor):
5502         * floatfns.c (Fround):
5503         * floatfns.c (Ftruncate):
5504         * floatfns.c (Ffceiling):
5505         * floatfns.c (Fffloor):
5506         * floatfns.c (Ffround):
5507         * floatfns.c (Fftruncate):
5508         * fns.c (Fstring_equal):
5509         * fns.c (Fstring_lessp):
5510         * fns.c (concat2):
5511         * fns.c (concat3):
5512         * fns.c (vconcat2):
5513         * fns.c (vconcat3):
5514         * fns.c (Fsubstring):
5515         * fns.c (Fassoc):
5516         * fns.c (Fold_assoc):
5517         * fns.c (assoc_no_quit):
5518         * fns.c (Fassq):
5519         * fns.c (Fold_assq):
5520         * fns.c (assq_no_quit):
5521         * fns.c (Frassoc):
5522         * fns.c (Fold_rassoc):
5523         * fns.c (Frassq):
5524         * fns.c (Fold_rassq):
5525         * fns.c (rassq_no_quit):
5526         * fns.c (Fremassoc):
5527         * fns.c (remassoc_no_quit):
5528         * fns.c (Fremassq):
5529         * fns.c (remassq_no_quit):
5530         * fns.c (Fremrassoc):
5531         * fns.c (Fremrassq):
5532         * fns.c (remrassq_no_quit):
5533         * fns.c (Fsort):
5534         * fns.c (Fplist_get):
5535         * fns.c (Fplist_put):
5536         * fns.c (Fplist_remprop):
5537         * fns.c (Fplist_member):
5538         * fns.c (Flax_plist_get):
5539         * fns.c (Flax_plist_put):
5540         * fns.c (Flax_plist_remprop):
5541         * fns.c (Flax_plist_member):
5542         * fns.c (Fequal):
5543         * fns.c (Fold_equal):
5544         * fns.c (Frequire):
5545         * fns.c (Fbase64_encode_region):
5546         * fns.c (Fbase64_encode_string):
5547         * fns.c (Fbase64_decode_region):
5548         * frame.c:
5549         * frame.c (frame_matches_frame_spec):
5550         * frame.c (device_matches_device_spec):
5551         * frame.c (next_frame):
5552         * frame.c (previous_frame):
5553         * frame.c (Fnext_frame):
5554         * frame.c (Fprevious_frame):
5555         * frame.c (Fframe_property):
5556         * frame.c (Fset_frame_height):
5557         * frame.c (Fset_frame_size):
5558         * frame.h:
5559         * glyphs.c:
5560         * glyphs.c (if):
5561         * glyphs.c (decode_error_behavior_flag):
5562         * glyphs.c (Fmake_image_instance):
5563         * indent.c (Findent_to):
5564         * intl.c (Fignore_defer_gettext):
5565         * keymap.c (Fkeymapp):
5566         * keymap.c (Flookup_key):
5567         * lread.c:
5568         * lread.c (Fload_internal):
5569         * lread.c (Feval_buffer):
5570         * lread.c (Feval_region):
5571         * macros.c (Fexecute_kbd_macro):
5572         * marker.c (set_marker_internal):
5573         * marker.c (Fset_marker):
5574         * marker.c (set_marker_restricted):
5575         * marker.c (Fcopy_marker):
5576         * marker.c (noseeum_copy_marker):
5577         * menubar.c:
5578         * menubar.c (Fpopup_menu):
5579         * minibuf.c:
5580         * mule-charset.c (Fcharset_name):
5581         * mule-charset.c (Fchar_charset):
5582         * mule-charset.c (Fchar_octet):
5583         * mule-charset.c (Fsplit_char):
5584         * mule-wnnfns.c (Fwnn_open):
5585         * mule-wnnfns.c (Fwnn_dict_comment):
5586         * mule-wnnfns.c (Fwnn_quit_henkan):
5587         * mule-wnnfns.c (Fwnn_word_toroku):
5588         * mule-wnnfns.c (Fwnn_word_sakujo):
5589         * mule-wnnfns.c (Fwnn_word_use):
5590         * mule-wnnfns.c (Fwnn_hindo_set):
5591         * objects.c:
5592         * objects.c (Fmake_color_instance):
5593         * objects.c (Fmake_font_instance):
5594         * print.c (Fwrite_char):
5595         * process.c:
5596         * process.c (mark_process):
5597         * process.c (print_process):
5598         * process.c (get_process_from_usid):
5599         * process.c (Fprocessp):
5600         * process.c (Fprocess_live_p):
5601         * process.c (Fget_process):
5602         * process.c (Fget_buffer_process):
5603         * process.c (get_process):
5604         * process.c (Fprocess_id):
5605         * process.c (Fprocess_name):
5606         * process.c (Fprocess_command):
5607         * process.c (init_process_io_handles):
5608         * process.c (start_process_unwind):
5609         * process.c (Fstart_process_internal):
5610         * process.c (Fopen_multicast_group_internal):
5611         * process.c (Fset_process_window_size):
5612         * process.c (read_process_output):
5613         * process.c (send_process):
5614         * process.c (Fprocess_tty_name):
5615         * process.c (Fset_process_buffer):
5616         * process.c (Fprocess_buffer):
5617         * process.c (Fprocess_mark):
5618         * process.c (set_process_filter):
5619         * process.c (Fset_process_filter):
5620         * process.c (Fprocess_filter):
5621         * process.c (Fprocess_send_region):
5622         * process.c (Fprocess_send_string):
5623         * process.c (exec_sentinel):
5624         * process.c (Fset_process_sentinel):
5625         * process.c (Fprocess_sentinel):
5626         * process.c (status_notify):
5627         * process.c (Fprocess_status):
5628         * process.c (Fprocess_exit_status):
5629         * process.c (process_send_signal):
5630         * process.c (Fprocess_send_eof):
5631         * process.c (deactivate_process):
5632         * process.c (remove_process):
5633         * process.c (Fdelete_process):
5634         * process.c (kill_buffer_processes):
5635         * process.c (Fprocess_kill_without_query):
5636         * process.c (Fprocess_kill_without_query_p):
5637         * rangetab.c:
5638         * rangetab.c (Fget_range_table):
5639         * rangetab.c (Fput_range_table):
5640         * rangetab.c (Fremove_range_table):
5641         * rangetab.c (Fclear_range_table):
5642         * search.c:
5643         * search.c (Fskip_chars_forward):
5644         * search.c (Fskip_chars_backward):
5645         * search.c (Fskip_syntax_forward):
5646         * search.c (Fskip_syntax_backward):
5647         * search.c (search_command):
5648         * search.c (Freplace_match):
5649         * search.c (Fregexp_quote):
5650         * select.c (Fown_selection_internal):
5651         * select.c (Fselection_owner_p):
5652         * select.c (Fselection_exists_p):
5653         * select.c (Fget_selection_internal):
5654         * specifier.c:
5655         * symbols.c:
5656         * symbols.c (Fintern):
5657         * symbols.c (Fintern_soft):
5658         * symbols.c (Funintern):
5659         * symbols.c (Fapropos_internal):
5660         * symbols.c (Fset_default):
5661         * syntax.c:
5662         * syntax.c (Fsyntax_table_p):
5663         * syntax.c (Fcopy_syntax_table):
5664         * syntax.c (Fset_syntax_table):
5665         * syntax.c (Fchar_syntax):
5666         * syntax.c (syntax_match):
5667         * syntax.c (Fmatching_paren):
5668         * syntax.c (Fforward_word):
5669         * syntax.c (scan_lists):
5670         * syntax.c (Fscan_lists):
5671         * syntax.c (Fscan_sexps):
5672         * syntax.c (Fparse_partial_sexp):
5673         * toolbar.c (Fcheck_toolbar_button_syntax):
5674         * tooltalk.doc:
5675         * window.c:
5676         * window.c (Fwindowp):
5677         * window.c (Fwindow_live_p):
5678         * window.c (Fwindow_point):
5679         * window.c (Fdelete_window):
5680         * window.c (Fnext_window):
5681         * window.c (Fprevious_window):
5682         * window.c (Fother_window):
5683         * window.c (window_loop):
5684         * window.c (Fget_lru_window):
5685         * window.c (Fsplit_window):
5686         * window.c (Fenlarge_window):
5687         * window.c (Fenlarge_window_pixels):
5688         * window.c (Fshrink_window):
5689         * window.c (Fshrink_window_pixels):
5690         * window.c (change_window_height):
5691         * window.c (Fwindow_configuration_p):
5692         * window.c (Fcurrent_window_configuration):
5693         * window.h:
5694         * casefiddle.c (casify_object):
5695         * casefiddle.c (Fupcase):
5696         * casefiddle.c (Fdowncase):
5697         * casefiddle.c (Fcapitalize):
5698         * casefiddle.c (Fupcase_initials):
5699         * casefiddle.c (casify_region_internal):
5700         * casefiddle.c (casify_region):
5701         * casefiddle.c (Fupcase_region):
5702         * casefiddle.c (Fdowncase_region):
5703         * casefiddle.c (Fcapitalize_region):
5704         * casefiddle.c (Fupcase_initials_region):
5705         * casefiddle.c (Fupcase_word):
5706         * casefiddle.c (Fdowncase_word):
5707         * casefiddle.c (Fcapitalize_word):
5708         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5709         Replace 0 with '\0' when working with bytes.
5710         Replace initial "(" with "\(" in docstrings.
5711
5712 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5713
5714         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5715
5716         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5717
5718 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5719
5720         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5721
5722 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5723
5724         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5725         correctly.
5726
5727 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5728
5729         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5730         (inhibit_auto_save_session): New variable.
5731         (vars_of_fileio): Declare and initialize them.
5732         * fileio.c (Fdo_auto_save): Don't create session file if
5733         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5734
5735 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5736
5737         * sgiplay.c (play_internal): C++ compilability.
5738         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5739         * callproc.c (Fold_call_process_internal):
5740         Remove unused vars `env', `first'.
5741         * scrollbar.c (update_scrollbar_instance):
5742         #### unused var `current_window'.
5743         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5744         etc. within #ifdef NOT_YET.
5745         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5746         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5747         * specifier.c (specifier_instance):
5748         #### unused var `tag'.
5749         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5750
5751 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5752
5753         * fns.c (Fbutlast):
5754         * fns.c (list_sort):
5755         * fns.c (Ffillarray):
5756         * fns.c (bytecode_nconc2):
5757         * fns.c (Fnconc):
5758         * fns.c (mapcar1):
5759         * fns.c (Fmapconcat):
5760         Be pedantically 64-bit correct.  For the time when someone will
5761         want to have a list with length > 2**32.
5762
5763         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5764         Work around MIPSpro compiler bug.
5765
5766         * process-unix.c (unix_kill_child_process): Add snarky comment.
5767         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5768
5769         * config.h.in: Oops, _getpt ==> _getpty
5770
5771 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5772
5773         * config.h.in:
5774         * regex.c:
5775         Use void*, not char*, as return type of alloca().
5776
5777         * alloc.c (free_marker): Side effect inside assert expression!
5778
5779 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5780
5781         * mule-charset.c (Fset_charset_ccl_program): To check
5782         if the given ccl program is valid, use setup_ccl_program()
5783         instead of CHECK_VECTOR().
5784         (Fmake_charset): Likewise.
5785
5786 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5787
5788         * faces.c (get_extent_fragment_face_cache_index):
5789         Fix cachel.merged_faces memory leak.
5790
5791 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5792
5793         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5794         Reset MSB of octets obtained by DECODE_SJIS
5795         because of the incompatibility with Emacs.
5796         (ccl_driver)<CCL_ENCODE_SJIS>:
5797         Set MSB of octets before passing them to
5798         ENCODE_SJIS because of the incompatibility
5799         with Emacs.
5800
5801 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5802
5803         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5804         (DECLARE_LRECORD): Undo the last change.
5805         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5806
5807 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5808
5809         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5810         the implementation to lrecord_implementations_table.
5811
5812 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5813
5814         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5815         initial value of `lrecord_type_##c_name' and
5816         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5817         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5818         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5819         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5820         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5821
5822 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5823
5824         * miscplay.c (sndcnv8S_2mono):
5825         (sndcnv2monounsigned):
5826         (sndcnvULaw_2linear):
5827         (sndcnv16swap):
5828         Remove implementation-defined behavior.
5829
5830 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5831
5832         * input-method-xlib.c: Warning suppression.
5833
5834 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5835
5836         * mule-ccl.c: Sync up with Emacs 21.0.90.
5837         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5838         Do nothing.
5839         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5840         Likewise.
5841         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5842         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5843         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5844         leading char belongs to official 2-dimensional charset.
5845         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5846         write the given character as is.  Otherwise,
5847         if it is a multibyte char, convert it by
5848         non_ascii_set_charptr_emchar, then write it.
5849         (CCL_WRITE_STRING): Likewise.
5850         (ccl_get_compiled_code): New function.
5851         (setup_ccl_program): When ccl_prog is invalid,
5852         return -1.
5853         (Fregister_code_conversion_map): New function.
5854         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5855
5856         * mule-ccl.h: Sync up with Emacs 21.0.90.
5857         (Fregister_ccl_program): export it.
5858
5859         * redisplay-msw.c (separate_textual_runs):
5860         If ccl program is not valid, don't do ccl conversion.
5861
5862         * redisplay-x.c (separate_textual_runs): Ditto.
5863
5864         * file-coding.c (Fmake_coding_system):
5865         When type is ccl and value is vector, register it
5866         with a proper symbol.  And checks whether the
5867         given ccl program is valid.
5868         (mule_decode): When calling ccl_driver, if src indicates
5869         NULL pointer, set an empty string instead.
5870         (mule_encode): Likewise.
5871
5872 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5873
5874         The following large batch of changes gets us back to a state of
5875         C++ compilability.  Extbyte is now a char, which means that
5876         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5877
5878         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5879
5880         * sound.c (Fplay_sound): Type correctness.
5881
5882         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5883         (x_get_window_property): Type correctness.
5884         (receive_incremental_selection): unsigned char ==> Extbyte
5885         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5886         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5887         (Fx_store_cutbuffer_internal): Type correctness.
5888
5889         * process-unix.c (try_to_initialize_subtty): Type correctness.
5890
5891         * objects-x.c (x_print_color_instance): Type correctness.
5892         (x_print_font_instance): Type correctness.
5893         (x_list_fonts): SExtbyte ==> Extbyte.
5894         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5895         (x_find_charset_font): SExtbyte ==> Extbyte.
5896         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5897         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5898         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5899         Use bufbyte_strcmp.
5900
5901         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5902         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5903         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5904         (BYTE_C0_P): Use bit ops for char-signedness safety.
5905         (BYTE_C1_P): Use bit ops for char-signedness safety.
5906         (CHARSET_BY_LEADING_BYTE):
5907         (CHARSET_BY_ATTRIBUTES):
5908         Always use inline function.
5909         Use type_checking_assert.
5910         Hide chlook.
5911
5912         * mule-charset.c (non_ascii_charptr_copy_char):
5913         Modify to work with both ASCII and non-ASCII characters.
5914         Improve docs and variable names.
5915         Replace over-clever fall-through switch with a simple loop.
5916         (Lstream_get_emchar_1):
5917         Replace over-clever fall-through switch with a simple loop.
5918
5919         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5920         Warning suppression.
5921
5922         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5923         the return value of Lstream_getc, which could be EOF as well.
5924
5925         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5926
5927         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5928         APIs can be used on Extbytes without casts.  Risky!
5929         (SExtbyte): Remove.
5930         (UExtbyte): Remove.
5931
5932         * input-method-xlib.c (XIM_init_device):
5933         Use Xlib.h instead of IntrinsicP.h.
5934         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5935         which will break in X11R7.
5936         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5937         to call XRegisterIMInstantiateCallback with correct types.
5938
5939         * gui-x.c (button_item_to_widget_value): Type correctness.
5940
5941         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5942
5943         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5944         (xbm_instantiate_1): Type correctness.
5945         (BUILD_GLYPH_INST):  Type correctness.
5946
5947         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5948
5949         * file-coding.c:
5950         (decode_coding_sjis):
5951         (decode_coding_big5):
5952         (decode_coding_ucs4):
5953         (decode_coding_utf8):
5954         (decode_coding_iso2022):
5955         (decode_coding_no_conversion):
5956         Make all decoding functions take an Extbyte * arg.
5957         (encode_coding_sjis):
5958         (encode_coding_big5):
5959         (encode_coding_ucs4):
5960         (encode_coding_utf8):
5961         (encode_coding_iso2022):
5962         (encode_coding_no_conversion):
5963         Make all encoding functions take a Bufbyte * arg.
5964         Use size_t instead of unsigned int for memory sizes.
5965         Only cast to unsigned char whenever dereferencing Extbyte *.
5966
5967         * doc.c (unparesseuxify_doc_string): Type correctness.
5968
5969         * console-x.c (split_up_display_spec):
5970         Rewrite without using details of internal string representation.
5971         (x_semi_canonicalize_device_connection): Type correctness.
5972
5973         * config.h.in:
5974         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5975         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5976         (HAVE_XFREE386): Removed.
5977
5978         * buffer.h (DEC_CHARPTR): `const' correctness.
5979         (bufbyte_strcmp): New.
5980         (bufbyte_memcmp): New.
5981
5982         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5983
5984         * buffer.h (XCHAR_OR_CHAR_INT):
5985         Always use inline function.
5986         Remove redundant type checking assert() - XINT will abort quite nicely.
5987
5988 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5989
5990         * search.c (Freplace_match): Set newtext to an empty string.
5991
5992 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5993
5994         * s/decosf1-3.h: Remove #include of stropts.h
5995         * s/ptx.h: Remove #include of stropts.h
5996         * s/usg5-4.h: Remove #include of stropts.h
5997         * sysproc.h:
5998         * config.h.in:
5999         Use stropts.h, not sys/stropts.h.
6000         Use strtio.h, not sys/strtio.h.
6001
6002 2000-10-04  Martin Buchholz <martin@xemacs.org>
6003
6004         * XEmacs 21.2.36 is released.
6005
6006 2000-09-21  Andy Piper  <andy@xemacs.org>
6007
6008         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6009         changes still involve copying the widget tree.
6010         (update_widget_face): make sure a change is register in the widget
6011         tree. Call update_tab_widget_face appropriately.
6012         (update_tab_widget_face): ditto.
6013         (x_tab_control_redisplay): make sure non-structural changes still
6014         involve copying the widget tree.
6015
6016 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6017
6018         * lread.c (locate_file): Check the path element is non-nil.
6019
6020 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6021
6022         * lisp.h: Warning suppression for SCO compilers.
6023
6024         * redisplay-tty.c (reset_tty_modes): Fix crash.
6025         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6026
6027 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6028
6029         Big signal/process handling overhaul.  Bugs fixed:
6030         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6031         M-x comint-kill-subjob should work for both values nil and t of
6032         process-connection-type. It was broken on most platforms.
6033         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6034         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6035         * process-unix.c: Signal/Process handling overhaul.
6036         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6037         (allocate_pty): Use all available modern methods of allocating
6038         ptys, falling back to old style BSD allocation as a last resort.
6039         Use allegedly more secure Unix98 pty allocation by default.
6040         (allocate_pty_the_old_fashioned_way): New. the last resort.
6041         (unix_create_process): Push ptem, ldterm, ttcompat where
6042         available.  Autoconfiscate.
6043         (try_to_initialize_subtty): New.
6044         (unix_kill_child_process): Proper signal handling for ptys on most
6045         platforms, using special knowledge of AIX, BSD, etc...
6046         (unix_create_process): Always disconnect_controlling_terminal() for
6047         subprocesses, whether using ptys or not.
6048         * process.h: Remove old getpt-dependent PTY code.
6049         * process.c (Fprocess_send_signal): New, obvious generic function.
6050         (decode_signal): New.
6051         (Finterrupt_process):
6052         (Fkill_process):
6053         (Fquit_process):
6054         (Fstop_process):
6055         (Fcontinue_process):
6056         (Fsignal_process): Use decode_signal.
6057         (process_send_signal):
6058         Many docstring corrections.
6059         Allow any signal to be sent to a process object.
6060         * config.h.in: Add symbols for big signal/process overhaul.
6061         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6062         * sysproc.h: Include process-related headers, where available:
6063         sys/stropts.h sys/strtio.h pty.h libutil.h
6064         * s/irix4-0.h:
6065         * s/irix5-0.h:
6066         * s/cygwin32.h:
6067         * s/gnu.h:
6068         * s/linux.h:
6069         * s/hpux.h:
6070         * s/aix3-1.h:
6071         Remove old S&M pty stuff.
6072         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6073         * systty.h: Simplify cpp hackery, improve comments.
6074         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6075
6076         * editfns.c (Fformat_time_string):
6077         Be a little more paranoid with the return value of ctime.
6078
6079         * fileio.c (check_executable):
6080         (check_writable):
6081         Use symbolic constants X_OK, W_OK.
6082
6083         * console-x.c (split_up_display_spec): Fix a warning.
6084
6085 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6086
6087         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6088         * ntproc.c (sys_spawnve): make_string ==> build_string
6089         Small clarity improvements.
6090
6091 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6092
6093         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6094
6095         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6096
6097         * config.h.in (HAVE_STRCASECMP): Remove.
6098
6099 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6100
6101         * redisplay-output.c (redisplay_output_pixmap):
6102         Cleaner and possibly more 64-bit correct code.
6103
6104 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6105
6106         * dumper.c (pdump_load_finish): move restoration of
6107         `noninteractive1' to emacs.c (main_1).
6108         * emacs.c (main_1): protect LISP-visible command-line flags
6109         from pdump_load().
6110
6111 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6112
6113         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6114         DUMP_TARGET instead of literal program names.
6115
6116 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6117
6118         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6119
6120 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6121
6122         * *: Spelling mega-patch
6123
6124 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6125
6126         * fns.c (bad_bad_turtle):
6127         Delete "Eek!" comment, since we fixed the bug to which it refers.
6128
6129 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6130
6131         * alloca.c: Replace REGISTER with register.
6132
6133 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6134
6135         * file-coding.c (ucs_to_char): Use countof.
6136
6137 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6138
6139         * file-coding.c: (ucs_to_char):
6140         (complex_vars_of_file_coding):
6141         Use countof instead of sizeof.
6142         Use CHECK_NATNUM instead of CHECK_INT.
6143
6144         * sysdep.c (strcasecmp): Remove.
6145         * device-x.c (ascii_strcasecmp): New.
6146         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6147         Avoid using non-standard non-portable strcasecmp.
6148
6149 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6150
6151         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6152         * font-lock.c: remove reference to emacsfns.h.
6153         * search.c: small doc improvement.
6154         * event-Xt.c: correct file names in comments.
6155         * console-x.h Correct file names in comments.
6156         * frame.c: Correct file names in comments.
6157         * event-stream.c: remove Energize from comments.
6158
6159 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6160
6161         * symeval.h (DEFERROR_STANDARD):
6162         (DEFERROR):
6163         (DEFSYMBOL):
6164         (DEFSYMBOL_NO_DUMP):
6165         (DEFSYMBOL_MULTIWORD_PREDICATE):
6166         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6167         (DEFKEYWORD):
6168         The construct &##name is not sensible C.
6169         Fixes compilation errors with Unixware native compiler.
6170
6171 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6172
6173         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6174         (next_frame_internal): Removed.  We now just have next_frame.
6175         (next_frame):
6176         Write a simpler and cleaner one-pass algorithm.
6177         Remove called_from_delete_device arg and #ifdefed-out code.
6178         (previous_frame):
6179         Renamed from prev_frame.  Update callers.
6180         Cleaned up to have an analogous implementation to next_frame.
6181         (other_visible_frames_internal): Remove the
6182         called_from_delete_device bogus arg, and hence, remove this
6183         function.  Just use other_visible_frames().
6184
6185         * window.c (Fnext_window):
6186         Prettify docstring.
6187         Since next_frame() is guaranteed to return a frame, remove check
6188         for nil inserted in previous patch.
6189         (Fprevious_window):
6190         Prettify docstring.
6191         Make code look more like Fnext_window.
6192         (window_loop):
6193         Respect the `console' arg when iterating through windows.
6194         Fixes bug: (get-buffer-window buffer t device) not respecting
6195         the `device' arg.
6196         This function needs more work, as others have pointed out.
6197
6198         * frame.h: Rename prev_frame to previous_frame.
6199         device_matches_console_spec no longer takes a `frame' arg.
6200
6201         * s/gnu.h:
6202         * s/linux.h:
6203         * s/hpux.h:
6204         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6205         From "Golubev I. N." <gin@mo.msk.ru>.
6206
6207         * make-src-depend: Fix typo.
6208
6209 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6210
6211         * window.c (Fnext_window):
6212         next_frame() might return nil, not a frame.
6213         Fixes this crash:
6214         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6215
6216         * frame.c (next_frame_internal):
6217         We've passed a frame if we've passed its device.
6218         Fixes this crash:
6219         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6220 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6221
6222 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6223
6224         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6225         Allow option to suppress accelerators in menu/dialog items.
6226         (populate_or_checksum_helper): Pass dialog title through above.
6227
6228 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6229
6230         * event-msw.c (mswindows_key_to_emacs_keysym):
6231         Add "pause" key, fix "menu" key.
6232
6233 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6234
6235         * eval.c (reinit_vars_of_eval):
6236         Increase max_lisp_eval_depth to 1000,
6237         required for thai-xtis.el to byte-compile under some circumstances.
6238
6239 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6240
6241         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6242         From Kenichi Handa.
6243
6244 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6245
6246         * make-src-depend: Make the generated Makefiles smaller.
6247
6248         * s/hpux.h (SETUP_SLAVE_PTY):
6249         Provide a %d in the format string for the errno argument.
6250
6251         * editfns.c (Ftemp_directory):
6252         Warning fix.
6253         Avoid buffer overrun on very long file name.
6254
6255         * input-method-xlib.c (XIM_init_device):
6256         6th parameter of XRegisterIMInstantiateCallback has different
6257         pointer types on different OSes, so simply cast to (void *).
6258
6259         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6260
6261         * sysdll.c (dll_open):
6262         shl_load will hang hard if passed a NULL filename.
6263         Simply return NULL for compatibility with dlopen.
6264         * sysdll.c: Conform to XEmacs coding standards.
6265
6266         * sysdep.c (get_pty_max_bytes):
6267         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6268
6269 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6270
6271         * tooltalk.c: Add #include <syssignal.h>
6272
6273 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6274
6275         * s/hpux.h: Don't use undefined function sigunblock().
6276
6277 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6278
6279         * config.h.in: Add HAVE_BALLOON_HELP.
6280         * emacs.c: Use HAVE_BALLOON_HELP.
6281         * Makefile.in.in (x_objs):
6282         Make Balloon Help conditional on finding shape.h.
6283
6284 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6285
6286         * syntax.c (regex_emacs_buffer_p): New variable.
6287         * syntax.h (regex_emacs_buffer_p): extern.
6288         * search.c (looking_at_1):
6289         (string_match_1):
6290         (fast_string_match):
6291         (search_buffer): Set regex_emacs_buffer_p.
6292         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6293         when before_dot, at_dot, after_dot.
6294
6295 2000-08-23  Andy Piper  <andy@xemacs.org>
6296
6297         * gui-x.c (popup_selection_callback): Only set action_occurred
6298         when we really have an image instance.
6299         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6300
6301 2000-08-23  Andy Piper  <andy@xemacs.org>
6302
6303         * gui-msw.c (mswindows_handle_gui_wm_command): set
6304         action_occurred.
6305         * gui-x.c (popup_selection_callback): ditto.
6306
6307         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6308         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6309         (struct Lisp_Image_Instance): add action_occurred flag.
6310
6311         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6312         (image_instance_changed): ditto.
6313         (reset_frame_subwindow_instance_cache): only unmap windows - do
6314         not remove them from the cache also.
6315
6316         * glyphs-widget.c (tab_control_update): better debug.
6317         (progress_gauge_update): ditto.
6318         (layout_update): ditto.
6319         (layout_instantiate): ditto.
6320         (tab_control_order_only_changed): cope with null pending items.
6321
6322         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6323         debug. Force selection of an item when an action occurred. Cope
6324         with null pending_items.
6325         (mswindows_progress_gauge_redisplay): better debug.
6326         * glyphs-x.c (x_tab_control_redisplay): ditto.
6327
6328         * redisplay.c (redisplay_frame): reset the frame cache if the
6329         frame is garbaged.
6330
6331         * window.c (Fset_window_configuration): potentially re-enable
6332         frame cache reset.
6333         (window_unmap_subwindows): need to finalize instances here since
6334         it is only used in mark_window_as_deleted.
6335
6336 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6337
6338         * nas.c (SndOpenDataForReading):
6339         nas.c (WaveOpenDataForReading):
6340         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6341         Somehow escaped from the 2000-08-14 patch.
6342
6343 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6344
6345         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6346         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6347
6348 2000-08-21  Andy Piper  <andy@xemacs.org>
6349
6350         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6351         window if it is not already displayed.
6352
6353         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6354         it is not already displayed.
6355
6356         * window.c (Fset_window_configuration): don't reset the frame
6357         cache.
6358
6359         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6360         instances from the frame cache if we are actually finalizing them.
6361         (reset_frame_subwindow_instance_cache): reset frame cache only
6362         after unmapping everything.
6363         (map_subwindow): set displayed flag after mapping.
6364
6365 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6366
6367         * data.c (indirect_function):
6368         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6369
6370         * eval.c (function_argcount):
6371         Use original function when signaling errors.
6372
6373 2000-08-18  Andy Piper  <andy@xemacs.org>
6374
6375         * frame.c (delete_frame_internal): use new
6376         free_frame_subwindow_instances name.
6377
6378         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6379         (add_tab_item): make return type correct.
6380         (mswindows_tab_control_instantiate): assert index of tab.
6381         (mswindows_tab_control_redisplay): Re-code to use
6382         gui_item_equal_sans_selected and gui_item_list_find_selected.
6383
6384         * glyphs-widget.c (tab_control_update): Correct comment.
6385
6386         * window.c (window_unmap_subwindows): use new
6387         unmap_subwindow_instance_cache_mapper.
6388         (window_unmap_subwindows_cache_mapper): deleted.
6389         (Fset_window_configuration): comparisons should now be with
6390         EQ. Preserve the subwindow instance cache across configuration
6391         changes.
6392         (allocate_window): ditto.
6393         (make_dummy_parent): ditto.
6394
6395         * glyphs.c (free_frame_subwindow_instances): rename from
6396         free_frame_subwindow_instance_cache. finalize all instances rather
6397         than just those in the display cache.
6398         (finalize_all_subwindow_instances): walk windows unmapping and
6399         finalizing subwindows.
6400         (unmap_subwindow_instance_cache_mapper): moved from
6401         window.c. Allow finalization as well as unmapping.
6402
6403         * gui.c (gui_item_list_find_selected): new function.
6404
6405         * gui.h (gui_item_list_find_selected): declare.
6406
6407         * glyphs-x.c (x_tab_control_redisplay): pick tab
6408         explicitly. Re-code to use gui_item_equal_sans_selected and
6409         gui_item_list_find_selected.
6410
6411         * glyphs-x.h: add lwlib-utils.h
6412
6413         * buffer.c (Frecord_buffer): undo previous change.
6414
6415 2000-08-09  Vin Shelton  <acs@xemacs.org>
6416
6417         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6418         possible.  Create temporary files more securely.  The patch was
6419         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6420         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6421         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6422         for details.
6423
6424 2000-08-07  Ben Wing  <ben@xemacs.org>
6425
6426         * getloadavg.c: remove duplicate (and windows-breaking)
6427         includes of fcntl.h and sys/file.h.
6428
6429         * nt.c: remove duplicate getloadavg() definition.
6430
6431         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6432         encodings.
6433
6434 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6435
6436         * eval.c (function_argcount): If function needs to be autoloaded
6437         actually use the loaded definition.
6438         GCPRO function.
6439
6440 2000-08-05  Ben Wing  <ben@xemacs.org>
6441
6442         * getloadavg.c: add prototype for getloadavg().  remove
6443         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6444         of the code).  remove duplicate header includes.
6445
6446         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6447
6448         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6449         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6450         useful load average.
6451
6452         * alloc.c (reinit_alloc_once_early): removed references to
6453         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6454         the lisp vars are the only things referencing the malloc_sbrk_*
6455         vars, and they were already if 0'd out.  these vars only exist
6456         in the older malloc.c, which is basically unused, and they're
6457         only for informational purposes.
6458
6459         * m\*.h: removed useless VIRT_ADDR_VARIES.
6460
6461         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6462
6463 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6464
6465         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6466         color if the image is a mono pixmap.
6467
6468 2000-07-30  Ben Wing  <ben@xemacs.org>
6469
6470         * Makefile.in.in (release):
6471         Remove stray @.
6472
6473         * buffer.c (directory_is_current_directory):
6474         * dired-msw.c (mswindows_get_files):
6475         * dired.c:
6476         * dired.c (Fdirectory_files):
6477         * dired.c (file_name_completion_stat):
6478         * dired.c (Ffile_attributes):
6479         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6480         preprocessor tricks, to avoid problems on some machines
6481         (e.g. SCO).
6482
6483         * callproc.c (egetenv): GC docs.
6484
6485         * console-msw.h:
6486         * console-msw.h (struct mswindows_dialog_id):
6487         * lrecord.h (lrecord_type):
6488         New object for use with MSW dialogs.
6489
6490         * console.h (struct console_methods):
6491         New enable/disable frame methods, for proper modal dialogs.
6492
6493         * device-msw.c (msprinter_default_printer): Fix to follow
6494         proper Mule conventions.
6495
6496         * device-msw.c:
6497         * device-msw.c (signal_open_printer_error):
6498         * device-msw.c (msprinter_init_device):
6499         * device-msw.c (ensure_not_printing):
6500         * device-msw.c (plist_get_margin):
6501         * device-msw.c (Fmsprinter_select_settings):
6502         * device-msw.c (finalize_devmode):
6503         * device-msw.c (Fmsprinter_settings_despecialize):
6504         * device-msw.c (signal_enum_priner_error):
6505         * extents.c (decode_extent):
6506         * extents.c (decode_map_extents_flags):
6507         * extents.c (decode_extent_at_flag):
6508         * extents.c (Fextent_at):
6509         * extents.c (Fextents_at):
6510         * extents.c (symbol_to_glyph_layout):
6511         [[[[2]]]] Use structured errors.
6512
6513         * dialog-msw.c:
6514         * dialog-msw.c (mswindows_is_dialog_msg):
6515         * dialog-msw.c (mark_mswindows_dialog_id):
6516         * dialog-msw.c (dialog_proc):
6517         * dialog-msw.c (handle_question_dialog_box):
6518         * dialog-msw.c (syms_of_dialog_mswindows):
6519         Define new object to clean up marking; use it as a dialog identifier.
6520         Call new delete-dialog-box-hook.
6521
6522         * dialog-x.c (dbox_selection_callback):
6523         * dialog-x.c (dbox_descriptor_to_widget_value):
6524         * dialog-x.c (x_make_dialog_box_internal):
6525         Call new delete-dialog-box-hook.
6526         Return an id.
6527
6528         * dialog.c:
6529         * dialog.c (syms_of_dialog):
6530         * dialog.c (vars_of_dialog):
6531         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6532
6533         * eval.c:
6534         * eval.c (signal_call_debugger):
6535         when noninteractive, output stack traces on the console instead
6536         of in a (never-seen) buffer.
6537
6538         * eval.c (signal_type_error):
6539         * eval.c (invalid_argument_2):
6540         * lisp.h:
6541         new funs for use w/structured errors.
6542
6543         * event-Xt.c:
6544         * event-Xt.c (x_to_emacs_keysym):
6545         * event-Xt.c (describe_event):
6546         * event-Xt.c (emacs_Xt_event_handler):
6547         * event-Xt.c (vars_of_event_Xt):
6548         * event-msw.c:
6549         * event-msw.c (mswindows_wnd_proc):
6550         * event-msw.c (vars_of_event_mswindows):
6551         rename {x,mswindows}-debug-events to debug-{}-events for
6552         consistency with other debug-foo variables.
6553
6554         * event-stream.c:
6555         document next-event more clearly.
6556
6557         * fileio.c (Ffile_name_directory):
6558         * fileio.c (Ffile_name_nondirectory):
6559         * fileio.c (Funhandled_file_name_directory):
6560         * fileio.c (file_name_as_directory):
6561         * fileio.c (Ffile_name_as_directory):
6562         * fileio.c (directory_file_name):
6563         * fileio.c (Fdirectory_file_name):
6564         * fileio.c (Fmake_temp_name):
6565         * fileio.c (Ffile_truename):
6566         * fileio.c (Fsubstitute_in_file_name):
6567         * fileio.c (expand_and_dir_to_file):
6568         * fileio.c (barf_or_query_if_file_exists):
6569         * fileio.c (check_executable):
6570         * fileio.c (Ffile_exists_p):
6571         * fileio.c (Ffile_writable_p):
6572         * fileio.c (Ffile_directory_p):
6573         * fileio.c (Ffile_regular_p):
6574         * fileio.c (Ffile_modes):
6575         * fileio.c (Ffile_newer_than_file_p):
6576         * fileio.c (Fverify_visited_file_modtime):
6577         * fileio.c (Fset_visited_file_modtime):
6578         * fileio.c (auto_save_1):
6579         (1). (2).
6580         fix up gcpro's.
6581
6582         * frame-msw.c:
6583         * frame-msw.c (mswindows_init_frame_1):
6584         * frame-msw.c (mswindows_enable_frame):
6585         * frame-msw.c (error_frame_unsizable):
6586         * frame-msw.c (msprinter_init_frame_1):
6587         * frame-msw.c (msprinter_init_frame_3):
6588         * frame-msw.c (console_type_create_frame_mswindows):
6589         (2).
6590         implement new enable/disable frame methods.
6591
6592         * frame-x.c:
6593         * frame-x.c (x_enable_frame):
6594         * frame-x.c (console_type_create_frame_x):
6595         implement new enable/disable frame methods.
6596
6597         * frame.c:
6598         * frame.c (Fdisable_frame):
6599         * frame.c (syms_of_frame):
6600         * frame.h (struct frame):
6601         implement new enable/disable frame methods/functions.
6602
6603         * general-slots.h:
6604         add initial-focus.
6605
6606         * glyphs-msw.c (mswindows_widget_instantiate):
6607         comment that initial-focus should be implemented.
6608
6609         * glyphs-widget.c:
6610         * glyphs-widget.c (check_valid_instantiator):
6611         * glyphs-widget.c (check_valid_orientation):
6612         * glyphs-widget.c (check_valid_tab_orientation):
6613         * glyphs-widget.c (check_valid_justification):
6614         * glyphs-widget.c (check_valid_border):
6615         * glyphs-widget.c (check_valid_callback):
6616         * glyphs-widget.c (check_valid_int_or_function):
6617         * glyphs-widget.c (check_valid_string_or_vector):
6618         * glyphs-widget.c (check_valid_item_list_1):
6619         * glyphs-widget.c (widget_validate):
6620         * glyphs-widget.c (combo_box_validate):
6621         * glyphs-widget.c (widget_instantiate):
6622         * glyphs-widget.c (syms_of_glyphs_widget):
6623         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6624         * glyphs-widget.c (image_instantiator_combo_box):
6625         * glyphs-widget.c (image_instantiator_scrollbar):
6626         * glyphs-widget.c (image_instantiator_tab_control):
6627         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6628         (2).
6629         support (unimplemented) keyword initial-focus.
6630         reindent long macros.
6631
6632         * glyphs-x.c (x_redisplay_widget):
6633         * glyphs-x.c (x_button_instantiate):
6634         * glyphs-x.c (x_button_redisplay):
6635         * glyphs-x.c (x_progress_gauge_instantiate):
6636         * glyphs-x.c (x_edit_field_instantiate):
6637         * glyphs-x.c (x_combo_box_instantiate):
6638         * glyphs-x.c (x_tab_control_instantiate):
6639         * glyphs-x.c (x_label_instantiate):
6640         * gui-x.c:
6641         * gui-x.c (button_item_to_widget_value):
6642         * gui-x.c (gui_items_to_widget_values_1):
6643         * gui-x.c (gui_item_children_to_widget_values):
6644         * gui-x.c (gui_items_to_widget_values):
6645         * gui-x.h:
6646         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6647         add new flag to gui-parsing routines to indicate whether
6648         accelerator specs should be supported.
6649
6650         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6651
6652         * glyphs.h (struct Lisp_Image_Instance):
6653         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6654         add initial-focus flag.
6655
6656         * gui.c:
6657         * gui.c (syms_of_gui):
6658         * gui.c (vars_of_gui):
6659         clean up menu-no-selection-hook.
6660
6661         * gui.h:
6662         support delete-dialog-box-hook.
6663
6664         * lread.c (Fload_internal):
6665         * lread.c (locate_file_in_directory_mapper):
6666         (1).
6667
6668         * lrecord.h:
6669         * lrecord.h (struct toolbar_button):
6670         * lrecord.h (syms_of_toolbar):
6671         document how to create a new object.
6672
6673         * menubar-msw.c (mswindows_char_is_accelerator):
6674         may be called on frames w/o menus.
6675
6676         * menubar.c (vars_of_menubar):
6677         clean up :filter docs.
6678
6679         * nt.c (readdir):
6680         * ntproc.c:
6681         (1).
6682
6683         * process-nt.c:
6684         * process-nt.c (validate_signal_number):
6685         * process-nt.c (signal_cannot_launch):
6686         * process-nt.c (nt_create_process):
6687         * process-nt.c (nt_send_process):
6688         * process-nt.c (nt_kill_child_process):
6689         * process-nt.c (nt_open_network_stream):
6690         * process-nt.c (syms_of_process_nt):
6691         (2).
6692         delete quote-handling.  call new lisp code that does it better.
6693
6694         * process-unix.c (connect_to_file_descriptor):
6695         * process-unix.c (allocate_pty):
6696         * process-unix.c (unix_send_process):
6697         * process-unix.c (unix_kill_child_process):
6698         * process-unix.c (unix_open_network_stream):
6699         * process-unix.c (unix_open_multicast_group):
6700         (1). (2).
6701
6702         * process.c:
6703         * process.c (Fstart_process_internal):
6704         (2).  need to canonicalize process path even if absolute.
6705
6706         * select-msw.c (symbol_to_ms_cf):
6707         * select-msw.c (ms_cf_to_symbol):
6708         * select-msw.c (cf_is_autofreed):
6709         * select-msw.c (mswindows_destroy_selection):
6710         * select.c:
6711         * select.c (syms_of_select):
6712         * select.h:
6713         support dibv5, fix bugs. (from Mike Alexander)
6714
6715         * select.c (Fget_selection_internal):
6716         * select.c (select_convert_out):
6717
6718         * sysdep.c:
6719         * sysdep.c (xemacs_stat):
6720         renamed.
6721
6722         * sysdep.c (mkdir):
6723         * sysdep.c (rmdir):
6724         but keep original stat() here because we provide encapsulation
6725         around these funs.
6726
6727         * sysfile.h:
6728         * sysfile.h (fstat):
6729         remove stat garbage.
6730
6731         * syswindows.h:
6732         fix X/MSW conflict.
6733         don't include tchar.h.  it's inappropriate because it makes
6734         compile-time distinctions when we want runtime distinctions.
6735         (we provide our own tchar replacements)
6736
6737         * toolbar.c:
6738         use default object printer for toolbar-button.
6739
6740         * unexcw.c:
6741         make sure we don't encapsulate.
6742
6743         * window.c (vars_of_window):
6744         emphasize that temp-buffer-show-hook is obsolete.
6745
6746 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6747
6748         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6749         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6750
6751         * events.c (Fevent_timestamp_lessp):
6752         Not 64-bit clean.  Use EMACS_INT, not int.
6753
6754 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6755
6756         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6757         unsigned int and changed the last enum to
6758         lrecord_type_last_built_in_type.
6759         (lrecord_implementations_table): changed prototype to know how
6760         long the array is supposed to be.
6761         (lrecord_type_count): new unsigned int to keep track of the
6762         current number of lisp lrecord types.
6763         (DEFINE_EXTERNAL_LRECORD):
6764         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6765         dynamic-modules to declare new lisp types. They are the same
6766         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6767         int for each new type, and increment lrecord_type_count by 1.
6768
6769         * alloc.c (lrecord_implementations_table): Changed to reference
6770         lrecord_type_last_built_in_type for the size of the array.
6771         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6772
6773 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6774
6775         * glyphs.h (check_valid_item_list): Renamed from
6776         check_valid_item_list_1.
6777
6778 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6779
6780         * select.c (Qselect_coerce): New.
6781         * select.c (Vselection_coercion_alist): New.
6782         * select.c (syms_of_select): Declare.
6783         * select.c (get-selection-internal): Use it.
6784         Use the new select-coerce functionality.
6785
6786         * select.c (select_coerce): New.
6787         * select.h (select_coerce): Declare.
6788         New function to coerce one type of data into another.
6789
6790 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6791
6792         * callproc.c (Fcall_process_internal):
6793         (Fcall_process_internal):
6794         * process-unix.c (unix_create_process):
6795         Save and restore the value of errno, so that error messages are accurate.
6796
6797 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6798
6799         * elhash.c (print_hash_table):
6800         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6801         Prettify docstrings and indentation.
6802
6803 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6804
6805         * window.c (Fwindow_pixel_edges): Subtract frame border and
6806         gutter size.
6807
6808 2000-07-31  Andy Piper  <andy@xemacs.org>
6809
6810         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6811         will acknowledge the change.
6812
6813         * glyphs.h: declare tab_control_order_only_changed.
6814
6815         * glyphs-x.c (x_tab_control_redisplay): use
6816         tab_control_order_only_changed.
6817
6818         * glyphs-widget.c (tab_control_order_only_changed): new function.
6819
6820         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6821         tab_control_order_only_changed.
6822
6823         * gui.c (gui_item_equal_sans_selected): new function.
6824         (gui_item_equal): use it.
6825
6826         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6827         :properties in favor of :items..
6828
6829         * glyphs-widget.c (check_valid_item_list): rename from
6830         check_valid_item_list_1.
6831         (check_valid_item_list_1): renamed.
6832         (combo_box_validate): deprecate :properties in favor of :items.
6833         (widget_instantiate): ditto.
6834         (tab_control_update): ditto.
6835         (image_instantiator_combo_box): ditto.
6836         (image_instantiator_tree_view): ditto.
6837         (image_instantiator_tab_control): ditto.
6838         (layout_post_instantiate): remove dead code.
6839
6840         * print.c (debug_print_no_newline): only write to debugger if in
6841         WIN32_NATIVE.
6842
6843         * elhash.c (Fmake_hash_table): update doc string.
6844
6845         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6846         messages whilst in GC. This at least stops XEmacs crashing but has
6847         the potential for wierd behaviour.
6848
6849 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6850
6851         * config.h.in:
6852         Make existence of s&m files optional.
6853
6854         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6855         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6856         * s/gnu.h: Remove HAVE_GETLOADAVG.
6857         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6858         * s/sol2.h: Remove HAVE_GETLOADAVG.
6859         * lisp.h: Remove getloadavg() declaration.
6860         * fns.c:
6861         Include <sys/loadavg.h> if available.
6862         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6863         * config.h.in:  Group together getloadavg()-related macros.
6864         Use only configure-time tests to detect getloadavg().
6865
6866 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6867
6868         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6869
6870 2000-07-25  Andy Piper  <andy@xemacs.org>
6871
6872         * syswindows.h: add tchar.h for native builds.
6873
6874         * frame.c (syms_of_frame): remove set-glyph-image.
6875
6876         * general-slots.h: add Qset_glyph_image.
6877
6878         * glyphs-widget.c (layout_update): add domain arg to
6879         set-glyph-image.
6880         (syms_of_glyphs_widget): remove set-glyph-image.
6881
6882 2000-07-23  Ben Wing  <ben@xemacs.org>
6883
6884         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6885         Vpopup_frame_list.
6886
6887 2000-07-22  Andy Piper  <andy@xemacs.org>
6888
6889         * symsinit.h: add syms_of_win32().
6890
6891         * gui-msw.c (syms_of_gui_mswindows): remove
6892         Fmswindows_shell_execute.
6893         (Fmswindows_shell_execute): moved to win32.c.
6894
6895         * emacs.c (main_1): add syms_of_win32 ().
6896
6897         * win32.c (init_potentially_nonexistent_functions): rewrite in
6898         compiler-friendly terms.
6899         (Fmswindows_shell_execute): move here from gui-msw.c.
6900         (syms_of_win32): new.
6901
6902         * device-msw.c (Fmswindows_printer_list): clean up args to
6903         EnumPrinters.
6904         Don't include tchar under cygwin or mingw.
6905         (msprinter_default_printer): make cygwin-friendly.
6906
6907 2000-07-21  Andy Piper  <andy@xemacs.org>
6908
6909         * glyphs-widget.c (image_instantiator_tree_view): use tab
6910         control's update function.
6911         (layout_property): new function. Retrieve items.
6912
6913         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6914         function. Re-populate the tree view from the pending items.
6915
6916         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6917         is designated the parent if the domain is an image instance. This
6918         is needed so that dirtiness can be cascade up the hierarchy and
6919         thus for layout children to be redisplayed correctly.
6920         (allocate_image_instance): rename glyph -> parent.
6921
6922         * redisplay.h: change redisplay_output_layout signature.
6923
6924         * redisplay-msw.c (mswindows_output_display_block): use domain
6925         arg.
6926
6927         * redisplay-x.c (x_output_display_block): use domain arg.
6928
6929 2000-07-10  Andy Piper  <andy@xemacs.org>
6930
6931         * window.c (Fset_window_configuration): add comment.
6932
6933         * redisplay-output.c (compare_runes):
6934         (redisplay_output_subwindow): redisplay rather than update subwindow.
6935         (redisplay_output_layout): ditto.
6936
6937         * redisplay-msw.c (mswindows_frame_output_end):
6938         (mswindows_frame_output_end): make defer window pos optional.
6939
6940         * lisp.h: add Flast.
6941
6942         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6943         normalize method. Change update method to be for changed
6944         instantiators. Add redisplay method. Change signature of layout
6945         method.
6946         (struct Lisp_Image_Instance): add instantiator.
6947         (IMAGE_INSTANCE_INSTANTIATOR): new.
6948         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6949         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6950         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6951
6952         * glyphs.c:
6953         (find_instantiator_differences): new function.
6954         (Fset_instantiator_property): new convenience function.
6955         (check_image_instance_structure): strictly check for vector
6956         instantiators.
6957         (normalize_image_instantiator): make non-static.
6958         (instantiate_image_instantiator): pass on dest_mask and use new
6959         signatures for image_instance_layout and friends.
6960         (mark_image_instance): mark the instantiator. Mark the subwindow
6961         face not the widget face.
6962         (image_instance_equal): add instantiator.
6963         (image_instance_hash): ditto.
6964         (allocate_image_instance): ditto.
6965         (Fset_image_instance_property): removed.
6966         (Fimage_instance_file_name): ditto.
6967         (Fcolorize_image_instance): ditto.
6968         (image_instance_layout): add offsets to be set.
6969         (update_image_instance): new function. update an image instance
6970         from its changed instantiator.
6971         (inherit_normalize): add dest_mask.
6972         (xbm_normalize): ditto.
6973         (xface_normalize): ditto.
6974         (xpm_normalize): ditto.
6975         (text_update): set_property -> update.
6976         (image_instantiate): use the glyph identity as a hash key, not the
6977         instantiator.
6978         (glyph_width): use new image_instance_layout signature.
6979         (glyph_ascent): ditto.
6980         (glyph_descent): ditto.
6981         (glyph_height): ditto.
6982         (glyph_query_geometry): ressurrect.
6983         (glyph_layout): ditto.
6984         (redisplay_subwindow): update -> redisplay.
6985         (syms_of_glyphs): add Fset_instantiator_property.
6986         (image_instantiator_format_create): set_property -> update.
6987
6988         * glyphs-x.c:
6989         (autodetect_normalize): add dest_maks to signature.
6990         (x_redisplay_subwindow): update -> redisplay.
6991         (x_redisplay_widget): ditto.
6992         (x_button_redisplay): ditto.
6993         (x_progress_gauge_redisplay): ditto.
6994         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6995         stacking order.
6996         (console_type_create_glyphs_x): update -> redisplay.
6997         (image_instantiator_format_create_glyphs_x): ditto.
6998
6999         * glyphs-widget.c:
7000         (check_valid_instantiator): disallow glyphs in the instantiator,
7001         they must now be vectors.
7002         (check_valid_instantiator_list): ditto.
7003         (glyph_instantiator_to_glyph): use internal symbol rather than
7004         intern.
7005         (widget_update): renamed from widget_set_property. Call cascaded
7006         update methods.
7007         (redisplay_widget): renamed from update_widget.
7008         (widget_layout): image_instance_layout now takes position as well
7009         as size.
7010         (widget_normalize): ditto.
7011         (widget_instantiate): ditto.
7012         (tab_control_query_geometry) ditto.:
7013         (tab_control_update): renamed from tab_control_set_property.
7014         (progress_gauge_update): set_property -> update.
7015         (layout_normalize): rewrite so that child instantiators are
7016         normalized also.
7017         (layout_update): new function. Create glyphs from the normalized
7018         children and cope with any other layout keywords. We do not
7019         instantiate children here that will be take care of by
7020         redisplay_output_layout.
7021         (layout_instantiate): call layout_update and not much else.
7022         (layout_post_instantiate): not sure whether this is needed
7023         anymore.
7024         (layout_query_geometry): query glyph geometry rather than
7025         image_instance geometry.
7026         (layout_layout): set offsets from pass in parameters. Use glyph
7027         geometry and layout functions rather than image instance ones.
7028         (native_layout_layout): ditto.
7029         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7030         (image_instantiator_widget): set_property -> update.
7031         (image_instantiator_buttons): ditto.
7032         (image_instantiator_progress_guage): ditto.
7033         (image_instantiator_tab_control): ditto.
7034         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7035         (image_instantiator_layout): add update method.
7036
7037         * glyphs-msw.c (bmp_normalize):
7038         (mswindows_resource_normalize): add dest_mask so that it can be
7039         proprogated by layout_normalize.
7040         (begin_defer_window_pos): make optional because it may not be the
7041         right thing to do and it introduces differences with X.
7042         (mswindows_unmap_subwindow): ditto.
7043         (mswindows_map_subwindow): ditto.
7044         (mswindows_redisplay_subwindow): renamed from
7045         mswindows_update_subwindow.
7046         (mswindows_redisplay_widget): ditto.
7047         (mswindows_button_redisplay): renamed from
7048         mswindows_button_update. Update is now what the instantiation
7049         function does for a changed instantiator.
7050         (mswindows_progress_gauge_instantiate): set the progress value
7051         here if appropriate.
7052         (mswindows_tab_control_redisplay): cope with re-ordering of the
7053         members of the tab widget by simply selecting the new top
7054         widget. This makes things appear ok if you click on a tab.
7055         (mswindows_combo_box_instantiate): image_instance_layout now takes
7056         position as well as size.
7057         (mswindows_progress_gauge_redisplay): renamed from
7058         mswindows_progress_gauge_update.
7059         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7060         (image_instantiator_format_create_glyphs_mswindows): ditto.
7061
7062         * glyphs-eimage.c (jpeg_normalize):
7063         (gif_normalize):
7064         (png_normalize):
7065         (tiff_normalize): add dest_mask so that it can be proprogated by
7066         layout_normalize.
7067
7068         * elhash.c:
7069         (print_hash_table):
7070         (hash_table_weakness_validate):
7071         (decode_hash_table_weakness):
7072         (Fhash_table_weakness):
7073         (Fhash_table_type):
7074         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7075
7076         * console.h (struct console_methods): move update_* to
7077         redisplay_*.
7078
7079 2000-07-20  Ben Wing  <ben@xemacs.org>
7080
7081         * *.[ch] (XSETOBJ): remove unused middle argument.
7082         lisp-disunion.h: correct wrap_object() to one argument.
7083
7084 2000-07-15  Ben Wing  <ben@xemacs.org>
7085
7086         * s/cygwin32.h:
7087         * s/cygwin32.h (CYGWIN_CONV_PATH):
7088         Add missing logb prototype for v1.1.
7089         Use post-b20 names and alias to pre-b20 names when pre-b20.
7090
7091         * s/windowsnt.h: [5].
7092
7093 2000-07-15  Ben Wing  <ben@xemacs.org>
7094
7095         * Makefile.in.in (x_objs):
7096         * Makefile.in.in (sheap_objs):
7097         * Makefile.in.in (objs):
7098         added win32.o, cosmetic cleanups.
7099
7100         * alloc.c (Fmake_byte_code):
7101         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7102         etc. macros which declare their own args now.
7103
7104         * alloc.c (syms_of_alloc):
7105         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7106
7107         * buffer.c:
7108         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7109
7110         * buffer.c (Fget_file_buffer):
7111         Fixed GCPRO problem.
7112
7113         * buffer.c (get_truename_buffer):
7114         Fixed comment about GC checking.
7115
7116         * buffer.c (syms_of_buffer):
7117         Undeclared those dedicated frame funs.
7118         [2].
7119
7120         * buffer.h:
7121         Define convenience macros for internal/external conversions.
7122         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7123         and Qenvironment_variable_encoding for cleaner code.
7124
7125         * bufslots.h:
7126         Remove dedicated-frame; in lisp.
7127
7128         * bytecode.c (funcall_compiled_function):
7129         [1].
7130
7131         * bytecode.c (syms_of_bytecode):
7132         [2].
7133
7134         * console-msw.c:
7135         * console-msw.c (mswindows_show_console): Rewrote.
7136
7137         * console-msw.c (Fmswindows_debugging_output): New.
7138         Sends to OutputDebugString (special MSWin debugger interface).
7139
7140         * console-msw.c (Fmswindows_message_box):
7141         Fixed stupid bugs so it works when called from kill-emacs.
7142
7143         * console-msw.c (syms_of_console_mswindows):
7144         Declare Fmswindows_debugging_output.
7145
7146         * console-msw.h:
7147         New MSWin prototypes.
7148
7149         * console-msw.h (struct mswindows_frame):
7150         New entry last-click-mods for improved button-modifier support.
7151
7152         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7153         New struct entry `popup' with corresponding accessor.
7154
7155         * console-x.c:
7156         * console-x.c (split_up_display_spec):
7157         * console-x.c (get_display_arg_connection):
7158         * console-x.c (x_semi_canonicalize_console_connection):
7159         * console-x.c (x_canonicalize_device_connection):
7160         [[[6]]]: Change char to more specific type.
7161         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7162
7163         * console-x.c (x_semi_canonicalize_console_connection):
7164         * console-x.c (x_canonicalize_device_connection):
7165         [[[9]]]: Fix up error signalling to use new structured error system.
7166
7167         * console-x.h:
7168         [[[4]]]: Define codesys aliases:
7169         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7170         Qx_color_name_encoding, Qx_display_name_encoding.
7171
7172         * console.h (struct console_methods):
7173         New method make_dialog_box_internal supersedes older
7174         popup_dialog_box method.
7175
7176         * data.c:
7177         Define many new errors, part of new structured errors.
7178
7179         * data.c (init_errors_once_early):
7180         * data.c (syms_of_data):
7181         [2].
7182
7183         * device-msw.c (mswindows_init_device):
7184         [[[5]]]: Cleanup to support NT 3.51.
7185
7186         * device-msw.c (decode_devmode): Cleanup.
7187
7188         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7189         * device-msw.c (mswindows_handle_print_dialog_box):
7190         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7191         * device-msw.c (syms_of_device_mswindows):
7192         Delete the dialog box primitives recently introduced by Kirill and
7193         instead interface to general dialog box interface.
7194
7195         * device-x.c:
7196         * device-x.c (compute_x_app_name):
7197         * device-x.c (x_init_device):
7198         * device-x.c (Fx_valid_keysym_name_p):
7199         * device-x.c (Fx_set_font_path):
7200         [6].
7201         [7].
7202
7203         * device.h (wrap_device): New.
7204         First of its kind; meant to replace XSETDEVICE.
7205
7206         * dialog-msw.c: Many file-dialog symbols.
7207
7208         * dialog-msw.c (mswindows_register_popup_frame): New.
7209         * dialog-msw.c (mswindows_is_dialog_msg): New.
7210         For supporting kbd traversal in dialog boxes.
7211
7212         * dialog-msw.c (dialog_proc):
7213         Support hitting ESC in dialogs.
7214
7215         * dialog-msw.c (struct):
7216         Common dialog box errors.
7217
7218         * dialog-msw.c (handle_file_dialog_box): New.
7219         Add file dialog code.
7220
7221         * dialog-msw.c (handle_question_dialog_box):
7222         Redo existing code to support new question dialog syntax.
7223
7224         * dialog-msw.c (console_type_create_dialog_mswindows):
7225         We support new dialog console method.
7226
7227         * dialog-msw.c (syms_of_dialog_mswindows):
7228         * dialog-msw.c (vars_of_dialog_mswindows):
7229         New file dialog symbols, vars.
7230
7231         * dialog-x.c:
7232         * dialog-x.c (maybe_run_dbox_text_callback):
7233         * dialog-x.c (dbox_descriptor_to_widget_value):
7234         * dialog-x.c (x_make_dialog_box_internal):
7235         * dialog-x.c (console_type_create_dialog_x):
7236         Mule-ize entire file.
7237         Redo to support question dialog syntax.
7238         [6].
7239
7240         * dialog.c:
7241         * dialog.c (Fmake_dialog_box_internal):
7242         * dialog.c (syms_of_dialog):
7243         Kill old popup-dialog-box, replace with new primitive.
7244         Just call device method or signal error.
7245
7246         * eldap.c (Fldap_open):
7247         * eldap.c (Fldap_search_basic):
7248         * eldap.c (Fldap_add):
7249         * eldap.c (Fldap_modify):
7250         [1].
7251         [7].
7252
7253         * emacs.c:
7254         * emacs.c (make_arg_list_1):
7255         * emacs.c (make_arg_list):
7256         Mule-ize call to dll_init().
7257         [6].
7258         [8].
7259
7260         * emacs.c (make_argc_argv):
7261         * emacs.c (free_argc_argv):
7262         * emacs.c (init_cmdargs):
7263         * emacs.c (main_1):
7264         * emacs.c (Fkill_emacs):
7265         * emacs.c (Fdump_emacs):
7266         Update comments about what can be used in syms_* etc.
7267         Call init_win32() when necessary.
7268         Fix up MS Win dialog box in kill-buffer to actually work right.
7269         [7].
7270
7271         * eval.c:
7272         * eval.c (For):
7273         * eval.c (Fand):
7274         * eval.c (Fprogn):
7275         * eval.c (Fprog1):
7276         * eval.c (Fprog2):
7277         * eval.c (FletX):
7278         * eval.c (Flet):
7279         * eval.c (condition_case_3):
7280         * eval.c (Feval):
7281         * eval.c (function_argcount):
7282         * eval.c (funcall_lambda):
7283         [1].
7284
7285         * eval.c (type_error): New.
7286         * eval.c (maybe_type_error): New.
7287         * eval.c (continuable_type_error): New.
7288         * eval.c (maybe_continuable_type_error): New.
7289         * eval.c (type_error_with_frob): New.
7290         * eval.c (maybe_type_error_with_frob): New.
7291         * eval.c (continuable_type_error_with_frob): New.
7292         * eval.c (maybe_continuable_type_error_with_frob): New.
7293         New functions for use with structured errors.
7294
7295         * event-Xt.c:
7296         * event-Xt.c (x_event_to_emacs_event):
7297         Buttons are now modifiers too.
7298
7299         * event-Xt.c (emacs_Xt_current_event_timestamp):
7300         Implement new event method.
7301         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7302
7303         * event-msw.c:
7304         * event-msw.c (ntpipe_shove_writer): [5].
7305         * event-msw.c (mswindows_enqueue_mouse_button_event):
7306         * event-msw.c (mswindows_drain_windows_queue):
7307         * event-msw.c (mswindows_wnd_proc): [7].
7308         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7309         * event-msw.c (mswindows_modifier_state):
7310         Throughout: support new button modifiers.
7311
7312         * event-msw.c (emacs_mswindows_current_event_timestamp):
7313         Implement new event method.
7314         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7315
7316         * event-stream.c:
7317         * event-stream.c (event_stream_current_event_timestamp): New.
7318         * event-stream.c (maybe_kbd_translate): New functionality.
7319         * event-stream.c (vars_of_event_stream):
7320         Document new kbd-translate-table functionality.
7321
7322         * event-stream.c (Fcurrent_event_timestamp): New.
7323         New primitive for use in fabricated events.
7324         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7325
7326         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7327
7328         * events.c:
7329         * events.c (Fmake_event):
7330         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7331         [1].
7332         [9].
7333
7334         * events.c (format_event_object): fix gcc warnings.
7335
7336         * events.c (Fevent_timestamp): Document new primitives.
7337
7338         * events.c (TIMESTAMP_HALFSPACE): New.
7339
7340         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7341         comparing timestamps correctly (half-space algorithm).
7342
7343         * events.c (Fevent_modifier_bits): Doc fix.
7344
7345         * events.c (Fevent_modifiers): Major doc addition.
7346         * events.c (event_x_y_pixel_internal): Typo fix.
7347         * events.c (syms_of_events): Declare new primitives.
7348
7349         * events.h:
7350         Update long comment for button modifiers, timestamps.
7351
7352         * events.h (struct event_stream):
7353         New current_event_timestamp method.
7354
7355         * extents.c:
7356         * extents.c (extent_in_region_p):
7357         * extents.c (decode_extent):
7358         * extents.c (Fset_extent_parent):
7359         * extents.c (decode_map_extents_flags):
7360         Fix gcc warnings.
7361         [9].
7362
7363         * extents.c (struct extent_at_arg):
7364         * extents.c (decode_extent_at_flag):
7365         * extents.c (extent_at_mapper):
7366         * extents.c (extent_at_bytind):
7367         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7368         * extents.c (Fextents_at): New primitive. [9].
7369         * extents.c (symbol_to_glyph_layout): [9].
7370         Support new primitive `extents-at'.
7371
7372
7373         * extents.c (get_text_property_bytind):
7374         extent_at_bytind has another arg.
7375         [9].
7376
7377         * extents.c (syms_of_extents): New primitive.
7378
7379         * file-coding.c (Fmake_coding_system): [1].
7380         * file-coding.c (subsidiary_coding_system): fix gcc warning
7381         * file-coding.c (syms_of_file_coding): [2].
7382
7383         * fileio.c (Fexpand_file_name):
7384         * fileio.c (Fsysnetunam):
7385         * fileio.c (Ffile_exists_p):
7386         * fileio.c (Ffile_executable_p):
7387         * fileio.c (Fverify_visited_file_modtime):
7388         Clean up GCPROing.
7389
7390         * fileio.c (syms_of_fileio): [2].
7391
7392         * filelock.c (lock_file_1):
7393         * filelock.c (current_lock_owner):
7394         * filelock.c (lock_if_free):
7395         * filelock.c (lock_file):
7396         * filelock.c (unlock_file):
7397         Clean up GCPROing.
7398
7399         * fns.c (concat): Fix gcc warning.
7400
7401         * fns.c (Fmember):
7402         * fns.c (Fold_member):
7403         * fns.c (Fmemq):
7404         * fns.c (Fold_memq):
7405         * fns.c (memq_no_quit):
7406         * fns.c (Fassoc):
7407         * fns.c (Fold_assoc):
7408         * fns.c (Fassq):
7409         * fns.c (Fold_assq):
7410         * fns.c (assq_no_quit):
7411         * fns.c (Frassoc):
7412         * fns.c (Fold_rassoc):
7413         * fns.c (Frassq):
7414         * fns.c (Fold_rassq):
7415         * fns.c (rassq_no_quit):
7416         * fns.c (Fdelete):
7417         * fns.c (Fold_delete):
7418         * fns.c (Fdelq):
7419         * fns.c (Fold_delq):
7420         * fns.c (delq_no_quit):
7421         * fns.c (Fremassoc):
7422         * fns.c (Fremassq):
7423         * fns.c (remassq_no_quit):
7424         * fns.c (Fremrassoc):
7425         * fns.c (Fremrassq):
7426         * fns.c (remrassq_no_quit):
7427         * fns.c (Freverse):
7428         * fns.c (mapcar1):
7429         [1].
7430
7431         * frame-msw.c (mswindows_init_frame_1):
7432         * frame-msw.c (mswindows_delete_frame):
7433         Register popups with dialog code so keyboard traversing works.
7434
7435         * frame-tty.c (tty_raise_frame_no_select): [1].
7436
7437         * frame-x.c:
7438         * frame-x.c (x_set_frame_text_value):
7439         * frame-x.c (x_set_frame_properties):
7440         * frame-x.c (x_create_widgets):
7441         [7].
7442
7443         * frame.c:
7444         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7445
7446         * frame.h (wrap_frame): New.
7447         Macro like wrap_device.
7448
7449         * general.c:
7450         * general.c (SYMBOL):
7451         * general.c (syms_of_general):
7452         Major reorg.  This is now just a wrapper and symbols themselves
7453         are listed in general-slots.h.
7454
7455         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7456         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7457
7458         * glyphs-msw.c (mswindows_native_layout_instantiate):
7459         Add DS_CONTROL so keyboard traversal will work.
7460
7461         * glyphs-widget.c:
7462         * glyphs-widget.c (syms_of_glyphs_widget):
7463         Move some symbols to general-slots.h.
7464
7465         * glyphs-x.c:
7466         * glyphs-x.c (xbm_instantiate_1):
7467         * glyphs-x.c (x_xbm_instantiate):
7468         * glyphs-x.c (x_xface_instantiate):
7469         * glyphs-x.c (autodetect_instantiate):
7470         * glyphs-x.c (cursor_font_instantiate):
7471         * glyphs-x.c (x_update_widget):
7472         * glyphs-x.c (x_widget_instantiate):
7473         * glyphs.c (bitmap_to_lisp_data):
7474         * glyphs.c (pixmap_to_lisp_data):
7475         [7].
7476
7477         * glyphs.c (syms_of_glyphs):
7478         [2].
7479
7480         * gui-x.c:
7481         * gui-x.c (print_widget_value):
7482         * gui-x.c (menu_separator_style_and_to_external):
7483         * gui-x.c (add_accel_and_to_external):
7484         * gui-x.c (button_item_to_widget_value):
7485         * gui-x.c (gui_items_to_widget_values_1):
7486         * gui-x.c (gui_items_to_widget_values):
7487         * gui-x.c (syms_of_gui_x):
7488         * gui-x.c (vars_of_gui_x):
7489         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7490         [9].
7491
7492         * gui-x.h:
7493         Muleize, prototype changes matching gui-x.c.
7494
7495         * gui.c:
7496         * gui.c (separator_string_p):
7497         * gui.c (gui_item_add_keyval_pair):
7498         * gui.c (make_gui_item_from_keywords_internal):
7499         * gui.c (signal_too_long_error):
7500         * gui.c (parse_gui_item_tree_item):
7501         * gui.c (syms_of_gui):
7502         * gui.c (vars_of_gui):
7503         * gui.h:
7504         menu-no-selection-hook moved here (used by MSWin).
7505         Move some symbols to general-slots.h.
7506         [6].
7507         [9].
7508
7509         * insdel.c (get_buffer_pos_char):
7510         * insdel.c (get_buffer_range_char):
7511         Add GC comments.
7512
7513         * keymap.c (keymap_lookup_directly):
7514         * keymap.c (keymap_store):
7515         * keymap.c (ensure_meta_prefix_char_keymapp):
7516         * keymap.c (describe_map):
7517         * keymap.h:
7518         Support new button modifiers.
7519
7520         * lisp-disunion.h (wrap_object):
7521         * lisp-disunion.h (XSETOBJ):
7522         Rename make_obj to wrap_object.
7523
7524         * lisp-union.h:
7525         * lisp-union.h (make_int):
7526         * lisp-union.h (make_char):
7527         Support wrap_object.
7528
7529         * lisp.h:
7530         * lisp.h (LIST_LOOP):
7531         * lisp.h (EXTERNAL_LIST_LOOP):
7532         * lisp.h (LIST_LOOP_2):
7533         * lisp.h (EXTERNAL_LIST_LOOP_1):
7534         * lisp.h (EXTERNAL_LIST_LOOP_2):
7535         * lisp.h (EXTERNAL_LIST_LOOP_3):
7536         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7537         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7538         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7539         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7540         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7541         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7542         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7543         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7544         * lisp.h (struct Lisp_Symbol):
7545         * lisp.h (maybe_continuable_error_with_frob):
7546         Fix up section comments.
7547         Add new types for char to indicate usage.
7548         Delete symbols auto-generated from general-slots.h.
7549         Add prototypes for structured error functions.
7550         Add long comments describing looping macros and change interface
7551         so that lvalues are automatically declared.
7552         Add NO_DECLARE macro in case callers want to declare lvalues
7553         themselves.
7554
7555         * lread.c (read_syntax_error):
7556         * lread.c (continuable_read_syntax_error):
7557         * lread.c (read_structure):
7558         * lread.c (sequence_reader):
7559         * lread.c (read_list_conser):
7560         * lread.c (read_compiled_function):
7561         Rename syntax_error and continuable_syntax_error to avoid clash
7562         with same-named structured error functions.
7563
7564         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7565         * menubar-msw.c (populate_menu_add_item):
7566         * menubar-msw.c (populate_or_checksum_helper):
7567         [5].
7568         [9].
7569
7570         * menubar-x.c:
7571         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7572         Mule-ize whole file.
7573
7574         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7575
7576         * mule-charset.c (Fmake_charset):
7577         * mule-wnnfns.c (Fwnn_set_param):
7578         [1].
7579
7580         * ntproc.c (create_child):
7581         * ntproc.c (Fwin32_set_current_locale):
7582         Add comments portending doom.
7583
7584         * objects-msw.c:
7585         * objects-msw.c (old_font_enum_callback_2):
7586         * objects-msw.c (font_enum_callback_1):
7587         * objects-msw.c (mswindows_enumerate_fonts):
7588         [5].
7589
7590         * objects-x.c:
7591         * objects-x.c (allocate_nearest_color):
7592         * objects-x.c (x_parse_nearest_color):
7593         * objects-x.c (x_initialize_color_instance):
7594         * objects-x.c (x_print_color_instance):
7595         * objects-x.c (x_finalize_color_instance):
7596         * objects-x.c (x_valid_color_name_p):
7597         * objects-x.c (x_initialize_font_instance):
7598         * objects-x.c (x_print_font_instance):
7599         * objects-x.c (valid_x_font_name_p):
7600         * objects-x.c (truename_via_FONT_prop):
7601         * objects-x.c (truename_via_random_props):
7602         * objects-x.c (truename_via_XListFonts):
7603         * objects-x.c (x_font_truename):
7604         * objects-x.c (x_font_instance_truename):
7605         * objects-x.c (x_font_instance_properties):
7606         * objects-x.c (x_list_fonts):
7607         * objects-x.c (x_find_charset_font):
7608         Mule-ize entire file.
7609         [7].
7610
7611         * objects-x.h:
7612         Mule-verify.
7613
7614         * print.c:
7615         * print.c (std_handle_out_external):
7616         * print.c (debug_print_no_newline):
7617         * print.c (syms_of_print):
7618         Output to all debugger kinds in debug-print.
7619         Fix console-output code under MSWin to actually work.
7620
7621         * process-nt.c (send_signal):
7622         * process-nt.c (nt_create_process):
7623         Use newer Unicode macros.
7624
7625         * process-unix.c (unix_create_process):
7626         * process-unix.c (unix_canonicalize_host_name):
7627         * process-unix.c (unix_open_network_stream):
7628         [7].
7629
7630         * scrollbar-x.c:
7631         Mule-verify.
7632
7633         * search.c (syms_of_search):
7634         [2].
7635
7636         * select-msw.c (mswindows_destroy_selection):
7637         Use LIST_LOOP_2.
7638
7639         * select-x.c (symbol_to_x_atom):
7640         [7].
7641
7642         * select.c (syms_of_select):
7643         [2].
7644
7645         * sound.c (Fplay_sound_file):
7646         [7].
7647
7648         * specifier.c:
7649         * specifier.c (decode_specifier_type):
7650         * specifier.c (Fvalid_specifier_locale_type_p):
7651         * specifier.c (check_valid_locale_or_locale_type):
7652         * specifier.c (decode_locale):
7653         * specifier.c (decode_locale_type):
7654         * specifier.c (decode_locale_list):
7655         * specifier.c (check_valid_domain):
7656         * specifier.c (decode_specifier_tag_set):
7657         * specifier.c (Fcanonicalize_tag_set):
7658         * specifier.c (Fdefine_specifier_tag):
7659         * specifier.c (Fspecifier_tag_predicate):
7660         * specifier.c (check_valid_inst_list):
7661         * specifier.c (check_valid_spec_list):
7662         * specifier.c (decode_how_to_add_specification):
7663         * specifier.c (check_modifiable_specifier):
7664         * specifier.c (specifier_add_spec):
7665         * specifier.c (boolean_validate):
7666         * specifier.c (display_table_validate):
7667         [9].
7668
7669         * specifier.c (syms_of_specifier):
7670         Move some symbols to general-slots.h.
7671         [2].
7672
7673         * symbols.c:
7674         * symbols.c (Fmapatoms):
7675         * symbols.c (Fapropos_internal):
7676         Add GCPROs.
7677
7678         * symbols.c (set_default_buffer_slot_variable):
7679         * symbols.c (set_default_console_slot_variable):
7680         [1].
7681
7682         * symbols.c (defsymbol_massage_name_1):
7683         * symbols.c (defkeyword_massage_name):
7684         * symbols.c (deferror_1):
7685         * symbols.c (deferror):
7686         * symbols.c (deferror_massage_name_and_message):
7687         * symeval.h:
7688         * symeval.h (DEFSYMBOL):
7689         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7690
7691         * symbols.c (syms_of_symbols):
7692         [2].
7693
7694         * symsinit.h:
7695         * symsinit.h (init_win32): New.
7696         Also new is syms_of_dialog_mswindows.
7697
7698         * syswindows.h:
7699         Add new Unicode macros, missing Cygwin wide-char functions,
7700         convenience conversion macros for Qmswindows_tstr, macros for
7701         encapsulating required MSWin <-> Cygwin filename conversions,
7702         prototype for dynamically-extracted (not in NT 3.51) functions.
7703
7704         * toolbar-x.c:
7705         Mule-verify.
7706
7707         * tooltalk.c (Fadd_tooltalk_message_arg):
7708         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7709         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7710         [7].
7711
7712         * tooltalk.c (syms_of_tooltalk):
7713         [2].
7714
7715         * unexnt.c:
7716         * unexnt.c (unexec):
7717         Fix up headers, declaration of unexec() to be more standard.
7718
7719 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7720
7721         * offix.h: Revert change to guard macros - they're used in offix.c!
7722
7723 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7724
7725         * lisp.h: Defsubred Fdelete.
7726
7727         * console-msw.h:  (msprinter_default_printer): Added.
7728
7729         * console-msw.c (msprinter_canonicalize_console_connection):
7730         (msprinter_canonicalize_device_connection): Added.
7731
7732         * device-msw.c (msprinter_default_printer):
7733         (Fmswingows_get_default_printer):
7734         (signal_enum_priner_error):
7735         (Fmswingows_printer_list): Added.
7736
7737 2000-07-19  Martin Buchholz <martin@xemacs.org>
7738
7739         * XEmacs 21.2.35 is released.
7740
7741 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7742
7743         * select-x.c (x_handle_selection_request):
7744         Text selected in xemacs and pasted into xterm failed to appear.
7745         Spelling fixes and cosmetic changes.
7746
7747 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7748
7749         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7750         XEmacs frame (fix for doubling chars in dialog boxes).
7751
7752 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7753
7754         * select.c (select_convert_in, select_convert_out):
7755         Don't call intern() every time.
7756
7757         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7758         * select.c (vars_of_select): Initialise them.
7759
7760 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7761
7762         * select.c (selection-coercible-types): New.
7763
7764         * select.c (own-selection-internal):
7765         * select.c (get-selection-internal):
7766         MULE bug fix - these should default to COMPOUND_TEXT and not
7767         STRING for MULE. I think.
7768
7769         * select.c (select_convert_out): Use selection-coercible-types
7770         to find types that we can attempt to perform coercions on.
7771
7772 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7773
7774         * mule-wnnfns.c:
7775         * mule-canna.c:
7776         Add coding: cookie to identify encoding.
7777
7778         * mule-canna.c (CANNA_mode_keys): make static.
7779         Use proper prototypes, even for functions of no arguments.
7780         Remove external prototype for Fding().
7781
7782         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7783
7784         * select.c (syms_of_select): Add missing DEFSUBR.
7785
7786 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7787
7788         * select.c (get_selection_internal, own_selection_internal):
7789         Make the type default to STRING, rather than placing a nil type
7790         into Vselection_alist.
7791
7792 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7793
7794         * gpmevent.c (tty_selection_exists_p):
7795         * gpmevent.c (tty_own_selection):
7796         Updated parameter lists.
7797
7798 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7799
7800         * select.h (selection-alist): Removed declaration.
7801
7802         * select.h (get_local_selection):
7803         * select.c (get_local_selection):
7804         Made static.
7805
7806         * select.h (convert_selection): Removed declaration.
7807         * select.c (convert_selection): Removed.
7808         This function belongs in Lisp.
7809
7810         * select.h (select_convert_in): Declare.
7811         * select.h (select_convert_out): Declare.
7812         * select.c (select_convert_in): New.
7813         * select.c (select_convert_out): New.
7814         New conversion functions for other files to call.
7815
7816         * select.h (select_notify_buffer_kill): Declare.
7817         * select.c (select_notify_buffer_kill): New.
7818         New functions that get called from kill-buffer.
7819
7820         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7821         X-specific lisp code.
7822
7823         * select.h: Declare some of the lisp-visible functions for
7824         external use.
7825
7826         * select.c (clean_local_selection_data): Removed. This was
7827         a disgusting function, and previously should have been in
7828         select-x.c in any case. The functionality is now provided
7829         in select-convert-from-integer (select.el).
7830
7831         * select.c (available-selection-types): Fixed stupidity where
7832         INTEGER and ATOM got added twice. Also add STRING when we see an
7833         extent.
7834
7835         * select.c (get-selection-internal): Removed symbol stripping. No
7836         longer causes conversion when data comes from the internal cache.
7837
7838         * select.c (syms_of_select): Added new functions.
7839
7840         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7841         error checking - previously this called abort!
7842
7843         * select-x.c (x_own_selection): Changed comment.
7844
7845         * select-x.c (x_handle_selection_request): Use select_convert_out.
7846         Don't mess with selection-alist; it's an internal variable of select.c.
7847
7848         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7849
7850         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7851         rather than messing with selection-alist.
7852
7853         * select-msw.c (mswindows_get_foreign_selection):
7854         Use TO_INTERNAL_FORMAT rather than hacking.
7855
7856 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7857
7858         * process-unix.c (unix_open_multicast_group):
7859         (unix_open_multicast_group): Remove useless casts.
7860
7861 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7862
7863         * sound.c (Fplay_sound): Fix `unused variable' warning.
7864
7865         * emacs.c (main): Use correct type for _environ on SCO5.
7866
7867 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7868
7869         * console.h (own_selection_method):
7870         * console.h (selection_exists_p_method):
7871         * console.h (available_selection_types_method): New.
7872         * console.h (register_selection_data_type_method): New.
7873         * console.h (selection_data_type_name): New.
7874
7875         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7876         function & alist to track GlobalAlloc()'d handles that need
7877         releasing when the clipboard data gets replaced or emptied.
7878
7879         * event-msw.c (mswindows_wnd_proc): Call it.
7880
7881         * lisp.h, general.c (Qappend): New symbol representing a
7882         `how-to-add' mode.
7883
7884         * select.c (own-selection-internal):
7885         * select.c (selection-exists-p):
7886         * select.c (available-selection-types): New.
7887         * select.c (register-selection-data-type): New.
7888         * select.c (selection-data-type-name): New.  New functions to deal
7889         with device-specific selection data formats.
7890         * select.c (selection-converter-out-alist): Renamed.
7891         * select.c (selection-converter-in-alist): New.
7892         * select.c (selection-appender-alist): New.  Added new alists.
7893         * select.c (syms_of_select, vars_of_select): Added new symbols &
7894         variables.
7895         * select.c (get_local_selection): Split.
7896         * select.c: Removed spurious type checking - selections may now be
7897         of any type, not just strings.
7898         * select.c (own-selection-internal):
7899
7900         * select.h, select.c (convert_selection): New. Created
7901         convert_selection() function based on get_local_selection().
7902         * select.h, select.c (QCF_*): New symbols representing mswindows
7903         clipboard formats.
7904         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7905         symbols representing `how-to-add' modes.
7906
7907         * select-msw.c (x_sym_p): New.
7908         * select-msw.c (symbol_to_ms_cf): New.
7909         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7910         symbols & clipboard formats. Can also handle string names.
7911         * select-msw.c (mswindows_own_selection):
7912         * select-msw.c (mswindows_selection_exists_p):
7913         Added `data-type' parameter. Use it.
7914         * select-msw.c (mswindows_available_selection_types): New.
7915         * select-msw.c (mswindows_register_selection_data_type): New.
7916         * select-msw.c (mswindows_selection_data_type_name): New.
7917         * select-msw.c (mswindows_own_selection):
7918         * select-msw.c (mswindows_get_foreign_selection):
7919         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7920         * select-msw.c (console_create_select_mswindows): Added new methods.
7921         * select-msw.c (mswindows_destroy_selection): New.
7922         * select-msw.c (Vhandle_alist): New list.
7923         * select-msw.c (mswindows_own_selection):
7924
7925         * select-x.c (x_own_selection):
7926         * select-x.c (x_selection_exists_p):
7927         * select-x.c: Added some comments about maybe using new
7928         functionality.
7929         * select-x.c (x_own_selection):
7930
7931         * specifier.c: Remove definition of Qappend (now in general.c)
7932         * specifier.c (syms_of_specifier): Remove Qappend.
7933
7934 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7935
7936         * config.h.in: Add socklen_t.
7937
7938         * s/decosf4-0.h: No special compiler flags needed or desired.
7939         In particular, undefine _BSD for DEC OSF 4.0.
7940
7941 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7942
7943         * redisplay-msw.c (msprinter_frame_output_end): Added.
7944         (console_type_create_redisplay_mswindows): Referred the above.
7945
7946         * frame.c (setup_frame_without_minibuffer): Do not create a
7947         default minibuffer frame on a printer device.
7948
7949         * frame-msw.c (apply_dc_geometry): Added.
7950         (msprinter_start_page):
7951         (msprinter_init_frame_3):
7952         (msprinter_eject_page): Use it.
7953
7954         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7955         and removed residual duplex and orientation properties.
7956
7957 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7958
7959         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7960
7961         * unexalpha.c: Remove system prototypes from C sources!
7962
7963 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7964
7965         * eval.c: Remove references to M-x edit-options in DEFUNs for
7966         `defvar' and `defconst'.
7967
7968 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7969
7970         * config.h.in: Remove SMART_INCLUDE hackery.
7971
7972         PostgreSQL hacking:
7973         * config.h.in: Don't use SMART_INCLUDE.
7974
7975         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7976         * inline.c: Simply #include "postgresql.h"
7977         * postgresql.c:
7978         - Don't use SMART_INCLUDE
7979         - Use simply "const".
7980         - Use standard doc string conventions.
7981         - Use correct type for result of PQstatus.
7982
7983 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7984
7985         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7986
7987         C++ compilation changes.
7988         * config.h.in (EXTERN_C): Define.
7989         * config.h.in (not): This is also a C++ keyword.
7990         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7991         * cm.c: Use EXTERN_C.
7992         * redisplay-tty.c: Use EXTERN_C.
7993         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7994
7995 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7996
7997         * general.c: Remove duplicate definition for Qfunction.
7998
7999 2000-07-08  Ben Wing  <ben@xemacs.org>
8000
8001         * device-msw.c (msprinter_init_device):
8002         * device-msw.c (sync_printer_with_devmode):
8003         * device-msw.c (handle_devmode_changes):
8004         * device-msw.c (print_dialog_worker):
8005         * device-msw.c (Fmsprinter_apply_settings):
8006         * device-msw.c (hash_devmode):
8007         * device-msw.c (Fmsprinter_settings_despecialize):
8008         use Qmswindows_tstr, not Qctext.
8009
8010         * vm-limit.c (check_memory_limits):
8011         avoid infinite loop printing warning messages.
8012
8013 2000-07-05  Craig Lanning  <lanning@scra.org>
8014
8015         * Makefile.in.in: Add support for including the Windows resources
8016         when building with the cygwin and mingw targets.
8017
8018         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8019         not set or not correct.
8020         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8021         (init_initial_directory): Don't try to use $PWD on the
8022         WIN32_NATIVE target.
8023
8024         * s\cygwin32.h:
8025         [[Add -mwindows to eliminate console window.]] not required --ben
8026         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8027         (MAIL_USE_POP): removed; now handled by configure.
8028
8029         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8030         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8031         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8032         (MAIL_USE_POP): removed; now handled by configure.
8033         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8034         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8035         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8036         constant string.
8037         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8038         up from <winsock.h> via systime.h.
8039         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8040         (getpagesize): from Dan Holmsand, added.
8041         Added #endif which was left dangling by Ben's mega patch; added
8042         comment to help prevent this in the future.
8043
8044         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8045
8046 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8047
8048         * console-msw.h (struct mswindows_device): Removed unnecessary
8049         cached device geometry values.
8050         Added update_tick and an accessor macro.
8051         (Lisp_Devmode): Added lrecord declaration.
8052         (struct msprinter_device): Contain devmode as a Lisp object.
8053         Added mswindows_get_selected_frame_hwnd();
8054
8055         * console.h (struct console_methods): Indentation nitpicking.
8056
8057         * device-msw.c (mswindows_init_device): Do not initialize geometry
8058         cache. Initialize update tick.
8059         (mswindows_device_system_metrics): Ask the device for its geometry.
8060         (global_free_2_maybe):
8061         (devmode_to_hglobal):
8062         (handle_printer_changes):
8063         (ensure_not_printing):
8064         (print_dialog_worker):
8065         (Fmsprinter_print_setup_dialog):
8066         (Fmsprinter_print_dialog):
8067         (plist_get_margin):
8068         (plist_set_margin):
8069         (Fmsprinter_page_setup_dialog): Added functions.
8070         (sync_printer_with_devmode):
8071         (handle_devmode_changes):
8072         (Fmsprinter_get_settings):
8073         (Fmsprinter_select_settings):
8074         (Fmsprinter_apply_settings):
8075         (allocate_devmode):
8076         (Fmsprinter_settings_copy):
8077         (Fmsprinter_settings_despecialize):
8078         (print_devmode):
8079         (finalize_devmode):
8080         (equal_devmode):
8081         (hash_devmode): Added functions
8082         (syms_of_device_mswindows): Init devmode lrecord class.
8083
8084         * device.h: Added an exfun for find-device.
8085
8086         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8087         geometry; although, recreate the device compatible DC.
8088
8089         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8090         (msprinter_init_frame_3):
8091         (msprinter_frame_property):
8092         (msprinter_internal_frame_property_p):
8093         (msprinter_frame_properties):
8094         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8095         print job properties (will move to device settings).
8096
8097         * lisp.h: Added symbols.
8098
8099         * general.c (syms_of_general): Declared them.
8100
8101         * hash.c (string_hash): Added.
8102
8103         * lrecord.h (lrecord_type): Added devmode lrecord type.
8104
8105 2000-07-02  Mike Sperber <mike@xemacs.org>
8106
8107         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8108         FreeBSD 4.0.
8109
8110 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8111
8112         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8113         integer.
8114
8115 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8116
8117         * data.c (Fstring_to_number): Don't recognize floating point if
8118         base is not 10.
8119
8120 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8121
8122         * glyphs-widget.c (tab_control_query_geometry):
8123         (widget_query_geometry):
8124         (button_query_geometry):
8125         * glyphs.c (text_query_geometry):
8126         Enforce type correctness.
8127
8128 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8129
8130         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8131         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8132
8133 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8134
8135         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8136         conflicts with gcc's fixincluded version of FOO.h.
8137
8138         * glyphs.h (image_instance_geometry): Remove trailing `,'
8139
8140 2000-06-08  Mike Alexander  <mta@arbortext.com>
8141
8142         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8143         (shove_thread): Don't write the same output twice
8144         (make_ntpipe_output_stream): Increase priority of shove thread
8145         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8146         chance to run
8147         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8148         it.
8149
8150 2000-06-12  Ben Wing  <ben@xemacs.org>
8151
8152         * s\mingw32.h (sigset):
8153         * s\windowsnt.h (sigset):
8154         rename msw_ to mswindows_ for consistency with general convention.
8155
8156 2000-06-12  Ben Wing  <ben@xemacs.org>
8157
8158         * console-msw.c:
8159         * console-msw.c (mswindows_get_console_hwnd):
8160         * console-msw.c (mswindows_ensure_console_allocated):
8161         * console-msw.c (mswindows_hide_console):
8162         * console-msw.c (mswindows_show_console):
8163         * console-msw.c (mswindows_ensure_console_buffered):
8164         * console-msw.c (mswindows_output_console_string):
8165         * console-msw.c (mswindows_windows9x_p):
8166         * console-msw.h:
8167         * device-msw.c (mswindows_get_workspace_coords):
8168         * device-msw.c (mswindows_device_system_metrics):
8169         * dialog-msw.c (mswindows_popup_dialog_box):
8170         * event-msw.c (mswindows_wnd_proc):
8171         * frame-msw.c (mswindows_size_frame_internal):
8172         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8173         * menubar-msw.c (displayable_menu_item):
8174         * menubar-msw.c (mswindows_char_is_accelerator):
8175         * nt.c:
8176         * nt.c (mswindows_sigset):
8177         * nt.c (mswindows_sigrelse):
8178         * nt.c (mswindows_sigpause):
8179         * nt.c (mswindows_raise):
8180         * nt.c (timer_proc):
8181         * ntproc.c:
8182         * ntproc.c (find_child_console):
8183         * ntproc.c (sys_kill):
8184         * print.c:
8185         * print.c (std_handle_out_external):
8186         * process-nt.c (find_child_console):
8187         * process-nt.c (send_signal_the_95_way):
8188         * process-nt.c (ensure_console_window_exists):
8189         * process-nt.c (nt_create_process):
8190         * syssignal.h:
8191         rename msw_ to mswindows_ for consistency with general convention.
8192
8193         * emacs.c:
8194         * dumper.c:
8195         include nt.h, not syswindows.h.
8196
8197         * nt.c (mswindows_fstat):
8198         * nt.c (mswindows_stat):
8199         prefix mswindows_ instead of attempting to directly override the
8200         library functions.  fix declarations.
8201
8202         * nt.h:
8203         include syswindows.h.  move some sysdep.h stuff here.
8204
8205         * ntheap.h:
8206         include syswindows.h, not <windows.h>.
8207
8208         * ntplay.c:
8209         clean up headers.
8210
8211         * sysdep.c:
8212         clean up headers.
8213
8214         * sysdep.c (sys_fstat):
8215         * sysdep.c (sys_stat):
8216         call mswindows versions when appropriate.
8217
8218         * sysdep.h:
8219         move mswin decls to nt.h.
8220
8221         * syswindows.h:
8222         add long comment describing appropriate use of the various windows
8223         headers.
8224
8225 2000-06-11  Ben Wing  <ben@xemacs.org>
8226
8227         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8228
8229 2000-06-10  Ben Wing  <ben@xemacs.org>
8230
8231         * Makefile.in.in (release):
8232         Correction to make sure xemacs.exe always dumped when correct.
8233
8234         * alloca.c:
8235         * balloon_help.c:
8236         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8237
8238         * buffer.c (set_buffer_internal):
8239         [[[[2]]]]: Remove HAVE_FEP code.
8240
8241         * buffer.c (init_initial_directory):
8242         [3].
8243
8244         * bytecode.c:
8245         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8246         individual files.
8247
8248         * callproc.c:
8249         * callproc.c (call_process_cleanup):
8250         * callproc.c (Fold_call_process_internal):
8251         * callproc.c (child_setup):
8252         * callproc.c (getenv_internal):
8253         * callproc.c (init_callproc):
8254         * callproc.c (vars_of_callproc):
8255         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8256         __CYGWIN32__ -> CYGWIN.
8257         DOS_NT -> WIN32_NATIVE.
8258         Remove MSDOS support/references, converting to WIN32_NATIVE
8259           where correct.
8260         __MINGW32__ -> MINGW.
8261         Fix windows.h includes.
8262         Remove bogus HAVE_NTGUI.
8263
8264         * config.h.in:
8265         [2].
8266
8267         * console-msw.c:
8268         mswindows_message_outputted added for use in allowing startup
8269         errors on the console to be seen.
8270
8271         * console-msw.c (msw_ensure_console_allocated):
8272         * console-msw.c (msw_output_console_string):
8273         * console-msw.c (DHEADER):
8274         * console-msw.c (DOPAQUE_DATA):
8275         * console-msw.c (DEVENT):
8276         * console-msw.c (DCONS):
8277         * console-msw.c (DCONSCDR):
8278         * console-msw.c (DSTRING):
8279         * console-msw.c (DVECTOR):
8280         * console-msw.c (DSYMBOL):
8281         * console-msw.c (DSYMNAME):
8282         Fix warnings.
8283
8284         * console-stream.c (stream_init_console):
8285         Fix text/binary problems.
8286
8287         * device-msw.c:
8288         * device-msw.c (mswindows_finish_init_device):
8289         * device-msw.c (mswindows_delete_device):
8290         [1].
8291
8292         * device.c (handle_asynch_device_change):
8293         [3].
8294
8295         * dgif_lib.c:
8296         * dgif_lib.c (DGifOpenFileName):
8297         * dgif_lib.c (DGifOpenFileHandle):
8298         * dgif_lib.c (DGifGetLine):
8299         * dgif_lib.c (DGifGetPixel):
8300         Added config.h/lisp.h, fix up includes.
8301         [1].
8302
8303         * dired-msw.c:
8304         [4].
8305
8306         * dired.c:
8307         * dired.c (file_name_completion):
8308         * dired.c (Ffile_attributes):
8309         * dired.c (syms_of_dired):
8310         [1].
8311
8312         * dumper.c:
8313         * dumper.c (pdump_file_unmap):
8314         * dumper.c (pdump_load):
8315         [1].
8316
8317         * editfns.c:
8318         * editfns.c (Ftemp_directory):
8319         * editfns.c (user_login_name):
8320         * editfns.c (Fuser_real_login_name):
8321         * editfns.c (get_home_directory):
8322         [1].
8323
8324         * elhash.c (finish_marking_weak_hash_tables):
8325         [[[[5]]]]: Fix GCC warnings.
8326
8327         * emacs.c:
8328         * emacs.c (mswindows_handle_hardware_exceptions):
8329         * emacs.c (make_arg_list_1):
8330         * emacs.c (main_1):
8331         * emacs.c (Fkill_emacs):
8332         * emacs.c (Fdump_emacs):
8333         [1].
8334         Fix problems with nested crashes, add long comment.
8335
8336         * event-Xt.c (init_event_Xt_late):
8337         [1].
8338
8339         * event-msw.c:
8340         * event-msw.c (mswindows_dde_callback):
8341         * event-msw.c (mswindows_handle_sticky_modifiers):
8342         * event-msw.c (mswindows_wnd_proc):
8343         [1].
8344         [5].
8345
8346         * events.c (character_to_event):
8347         [1].
8348
8349         * fileio.c:
8350         * fileio.c (Ffile_name_directory):
8351         * fileio.c (Ffile_name_nondirectory):
8352         * fileio.c (directory_file_name):
8353         * fileio.c (Fexpand_file_name):
8354         * fileio.c (Fsubstitute_in_file_name):
8355         * fileio.c (Ffile_name_absolute_p):
8356         * fileio.c (check_executable):
8357         * fileio.c (Ffile_readable_p):
8358         * fileio.c (Ffile_accessible_directory_p):
8359         * fileio.c (Ffile_modes):
8360         * fileio.c (Funix_sync):
8361         * fileio.c (vars_of_fileio):
8362         [1]. [4].
8363
8364         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8365
8366         Expand getdefdir defn.
8367         Fix bogus rename() comment.
8368
8369         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8370         to use standard XEmacs include files, e.g. sysfile.h, rather
8371         than system-specific includes.
8372
8373         * fns.c:
8374         * fns.c (Fsubseq):
8375         [5]. [6].
8376
8377         * frame.c (vars_of_frame):
8378         [1].
8379
8380         * getloadavg.c:
8381         * getloadavg.c (getloadavg):
8382         [1]. [6].
8383         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8384         (We don't use it elsewhere in the code; just add a comment.)
8385
8386         * gif_io.c:
8387         [6].
8388         Add config.h.
8389
8390         * glyphs-msw.c:
8391         * glyphs-msw.c (mswindows_resource_instantiate):
8392         [1].
8393
8394         * glyphs-x.c (x_native_layout_instantiate):
8395         [5].
8396
8397         * gui-msw.c (Fmswindows_shell_execute):
8398         [1].
8399
8400         * insdel.c:
8401         [4].
8402
8403         * lisp.h:
8404         [4]. [5].
8405
8406         * lread.c (locate_file_in_directory_mapper):
8407         [1].
8408
8409         * lstream.c:
8410         [4].
8411
8412         * mem-limits.h:
8413         * mem-limits.h (get_lim_data):
8414         [1].
8415
8416         * menubar-msw.c:
8417         [4].
8418
8419         * ndir.h:
8420         [1].
8421
8422         * nt.c:
8423         * nt.c (getwd):
8424         * nt.c (closedir):
8425         * nt.c (rva_to_section):
8426         * nt.c (mswindows_executable_type):
8427         [1]. [6].
8428         Fix closedir() defn.
8429
8430         * nt.h:
8431         [[[[8]]]]: *_OK defs moved to sysfile.h.
8432
8433         * ntproc.c:
8434         [6]. [7].
8435
8436         * objects-x.c:
8437         [4].
8438
8439         * print.c:
8440         * print.c (std_handle_out_external):
8441         [1]. [4].
8442
8443         * process-nt.c:
8444         * process-nt.c (nt_create_process):
8445         [6].
8446         try to fix process quoting somewhat.
8447
8448         * process-unix.c (unix_create_process):
8449         [1].
8450
8451         * process.c:
8452         * process.c (vars_of_process):
8453         Add Vnull_device.
8454
8455         * process.h:
8456         [1].
8457
8458         * realpath.c:
8459         * realpath.c (xrealpath):
8460         [1].
8461
8462         * redisplay-tty.c (init_tty_for_redisplay):
8463         [3].
8464
8465         * redisplay.c:
8466         [4]. [6].
8467
8468         * scrollbar-msw.c:
8469         [4].
8470
8471         * sheap.c:
8472         * sheap.c (more_static_core):
8473         * sheap.c (report_sheap_usage):
8474         [5]. [6].
8475
8476         * signal.c:
8477         * signal.c (alarm_signal):
8478         [1]. [6].
8479
8480         * sound.c:
8481         [6].
8482
8483         * strftime.c:
8484         * strftime.c (zone_name):
8485         [1]. [5].
8486
8487         * symsinit.h (init_sunpro):
8488         [1].
8489
8490         * syscommctrl.h:
8491         commctrl.h not in Cygwin b20.1.
8492
8493         * sysdep.c:
8494         * sysdep.c (endif):
8495         * sysdep.c (sys_subshell):
8496         * sysdep.c (init_baud_rate):
8497         * sysdep.c (emacs_get_tty):
8498         * sysdep.c (emacs_set_tty):
8499         * sysdep.c (tty_init_sys_modes_on_device):
8500         * sysdep.c (init_system_name):
8501         * sysdep.c (sys_open):
8502         * sysdep.c (interruptible_open):
8503         * sysdep.c (sys_fopen):
8504         * sysdep.c (sys_mkdir):
8505         * sysdep.c (sys_rename):
8506         * sysdep.c (get_process_times_1):
8507         [1]. [6].
8508
8509         * sysdep.h:
8510         [1].
8511
8512         * sysdir.h:
8513         * sysdir.h (DIRENTRY_NONEMPTY):
8514         [1]. [6].
8515
8516         * sysdll.c (dll_init):
8517         * sysdll.h:
8518         [1].
8519
8520         * sysfile.h:
8521         [1]. [6]. [8].
8522         added text/binary defs.
8523
8524         * sysfloat.h:
8525         [1].
8526
8527         * sysproc.h:
8528         * sysproc.h (EDESTADDRREQ):
8529         * sysproc.h (poll_fds_for_input):
8530         [1]. [6].
8531
8532         * syspwd.h:
8533         [6].
8534
8535         * syssignal.h:
8536         [1].
8537
8538         * systime.h:
8539         [1]. [6].
8540
8541         * systty.h:
8542         [1].
8543
8544         * syswindows.h:
8545         [1].
8546         Always define WIN32_LEAN_AND_MEAN.
8547
8548         * unexcw.c (unexec):
8549         [5].
8550
8551         * unexec.c:
8552         * unexec.c (copy_text_and_data):
8553         * unexec.c (adjust_lnnoptrs):
8554         [1].
8555
8556         * unexnt.c:
8557         * unexnt.c (_start):
8558         [1].
8559
8560 2000-06-07  Ben Wing  <ben@xemacs.org>
8561
8562         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8563         was used only as a model.  We've long since extracted any useful
8564         logic or code out of this. (I just did an exhaustive search.)
8565
8566         * s\msdos.h: Removed.
8567
8568         * s\windows95.h: Removed.
8569
8570 2000-06-10  Ben Wing  <ben@xemacs.org>
8571
8572         * s\cygwin32.h:
8573         [1]. [5].
8574         Don't use extern with fun defs.
8575
8576         * s\mingw32.h:
8577         [1]. [7].
8578         Remove nt\inc include.
8579         Remove getdisk, getdefdir. (The former is unused, the latter
8580         expanded in fileio.h.)
8581
8582         * s\windowsnt.h:
8583         * s\windowsnt.h (WIN32_NATIVE):
8584         * s\windowsnt.h (HAVE_STRCASECMP):
8585         [1]. [7].
8586         Add long comment about preprocessor changes.
8587         Remove getdisk, getdefdir. (The former is unused, the latter
8588         expanded in fileio.h.)
8589
8590 2000-06-10  Ben Wing  <ben@xemacs.org>
8591
8592         * m\arm.h:
8593         * m\delta.h:
8594         * m\intel386.h:
8595         * m\sequent.h:
8596         * m\template.h:
8597         * m\windowsnt.h:
8598         [1].
8599         Remove bogus/unused NO_SOCK_SIGIO.
8600
8601 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8602
8603         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8604         not an Emchar.
8605
8606 2000-06-04  Mike Sperber <mike@xemacs.org>
8607
8608         * casetab.c (set_case_table): For `set-standard-case-table',
8609         actually deposit the new case tables where the rest of XEmacs can
8610         see them.
8611
8612 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8613
8614         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8615
8616 2000-06-05  Ben Wing  <ben@xemacs.org>
8617
8618         * callproc.c (child_setup): Don't do close_load_descs() under
8619         MS Windows.  Put in a comment explaining why.
8620
8621 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8622
8623         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8624         Toolkit shell" which breaks `kill-compilation' on Windows NT
8625         native, retaining STDERR handling improvements.
8626
8627 2000-06-01  Andreas Jaeger  <aj@suse.de>
8628
8629         * s/s390.h: Support for S390, based on a patch by Martin
8630         Schwidefsky <schwidefsky@de.ibm.com>.
8631
8632 2000-05-30  Andy Piper  <andy@xemacs.org>
8633
8634         * window.c (allocate_window):
8635         (make_dummy_parent):
8636         (Fset_window_configuration): use new hashtable type.
8637
8638         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8639         (struct image_instantiator_methods):
8640         (struct Lisp_Image_Instance): make instance geometry signed.
8641
8642         * glyphs.c (instantiate_image_instantiator):
8643         (image_instance_query_geometry):
8644         (image_instance_layout):
8645         (image_instance_layout):
8646         (query_string_geometry):
8647         (text_query_geometry):
8648         (image_instantiate):
8649         (image_instantiate):
8650         (cache_subwindow_instance_in_frame_maybe):
8651         (subwindow_query_geometry): make instance geometry signed.
8652
8653         * glyphs-widget.c (widget_query_geometry):
8654         (widget_layout):
8655         (button_query_geometry):
8656         (tree_view_query_geometry):
8657         (tab_control_query_geometry):
8658         (layout_query_geometry):
8659         (layout_layout):
8660         (native_layout_layout): make instance geometry signed.
8661
8662 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8663
8664         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8665         constant.
8666
8667         * general.c (syms_of_general): Add Qfull_assoc symbol.
8668
8669         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8670         correctly.
8671         (decode_weak_list_type): Decode full-assoc type.
8672         (encode_weak_list_type): Encode full-assoc type.
8673         (Fmake_weak_list): Update doc string.
8674
8675 2000-05-30  Andy Piper  <andy@xemacs.org>
8676
8677         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8678
8679         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8680         (decode_hash_table_weakness): ditto.
8681         (Fhash_table_weakness): ditto.
8682         (Fhash_table_type): ditto.
8683         (finish_marking_weak_hash_tables): ditto.
8684         (hash_table_weakness_validate): ditto.
8685         (syms_of_elhash): ditto.
8686
8687 2000-05-28  Martin Buchholz <martin@xemacs.org>
8688
8689         * XEmacs 21.2.34 is released.
8690
8691 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8692
8693         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8694         start cache.
8695         (updating_line_start_cache): Gone.
8696         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8697         generic code to force a minimum of 1 line laid out in the
8698         CMOTION_DISP case.
8699
8700 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8701
8702         * glyphs.c (instantiate_image_instantiator): Check for initialized
8703         height & width no longer special cases IMAGE_NOTHING.
8704         (nothing_instantiate): Set height and width of instance.
8705
8706 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8707
8708         * unexelf.c (unexec): Search for ".data" section.
8709         Initialize new_data2_offset from old_data_index.
8710         Remove redundant check for ElfW.
8711
8712 2000-05-23  Andy Piper  <andy@xemacs.org>
8713
8714         * glyphs.c (get_image_instantiator_governing_domain): allow more
8715         specific domains as the governing domain rather than expecting an
8716         exact match. This fixes problems with layouts.
8717
8718 2000-05-22  Andy Piper  <andy@xemacs.org>
8719
8720         * redisplay-output.c (compare_runes): check for non-images
8721
8722         * glyphs.c (set_glyph_dirty_p): ditto.
8723         (update_glyph_cachel_data): ditto.
8724
8725         * glyphs-widget.c (layout_post_instantiate): ditto.
8726         (layout_post_instantiate): ditto.
8727
8728         * event-msw.c (mswindows_wnd_proc): warning removal.
8729
8730 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8731
8732         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8733
8734         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8735
8736         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8737
8738         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8739         (mswindows_executable_type): mingw32 now has enough headers for
8740         this to work.
8741
8742 2000-05-20  Andy Piper  <andy@xemacs.org>
8743
8744         * console-msw.c (mswindows_output_last_error): ; -> ,
8745
8746 2000-05-12  Andy Piper  <andy@xemacs.org>
8747
8748         * console-msw.c (FROB): compare ints with ints.
8749
8750 2000-05-11  Andy Piper  <andy@xemacs.org>
8751
8752         * glyphs-x.c (x_finalize_image_instance): make minimal build
8753         happy.
8754
8755 2000-05-20  Ben Wing  <ben@xemacs.org>
8756
8757         * event-Xt.c:
8758         * event-Xt.c (vars_of_event_Xt):
8759         move modifier-keys-are-sticky to event-stream.c.
8760
8761         * event-msw.c:
8762         * event-msw.c (mswindows_enqueue_mouse_button_event):
8763         * event-msw.c (key_needs_default_processing_p):
8764         * event-msw.c (XEMSW_LCONTROL):
8765         * event-msw.c (mswindows_handle_sticky_modifiers):
8766         * event-msw.c (FROB):
8767         * event-msw.c (clear_sticky_modifiers):
8768         * event-msw.c (output_modifier_keyboard_state):
8769         * event-msw.c (output_alt_keyboard_state):
8770         * event-msw.c (mswindows_wnd_proc):
8771         * event-msw.c (mswindows_modifier_state):
8772         * event-msw.c (emacs_mswindows_handle_magic_event):
8773         implement sticky modifiers.
8774
8775         * event-stream.c:
8776         * event-stream.c (vars_of_event_stream):
8777         move modifier-keys-are-sticky here.
8778
8779         * lisp.h:
8780         add CHECK_FUNCTION.
8781
8782         * rangetab.c:
8783         implement map-range-table.
8784
8785
8786 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8787
8788         * redisplay-tty.c (reset_tty_modes):
8789         (tty_redisplay_shutdown): Adjust argument type to
8790         tty_frame_output_end.
8791
8792 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8793
8794         * eval.c (Fbacktrace): Don't output a line with only right
8795         parenthesis.
8796
8797 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8798
8799         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8800         (Fpq_reset_poll): Ditto.
8801
8802 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8803
8804         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8805
8806 2000-05-16  Ben Wing  <ben@xemacs.org>
8807
8808         * buffer.c:
8809         * buffer.c (dfc_convert_to/from_internal_format):
8810         * buffer.c (reinit_vars_of_buffer):
8811         Fix conversion functions to allow reentrancy.
8812
8813         * console-msw.c:
8814         * console-msw.c (mswindows_output_last_error):
8815         New fun, generally useful -- output a human-readable
8816         version of GetLastError() on the console.
8817
8818         * console-msw.h:
8819         * console-msw.h (struct mswindows_frame):
8820         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8821
8822         * console-stream.c (stream_output_begin):
8823         * console-stream.c (stream_output_end):
8824         * console-stream.c (stream_output_vertical_divider):
8825         * console-stream.c (stream_clear_region):
8826         * console-stream.c (stream_flash):
8827         * console-stream.c (console_type_create_stream):
8828         Delete blank stream methods, not needed.
8829
8830         * console.h (struct console_methods):
8831         Split begin/end methods into window and frame.
8832
8833         * event-msw.c:
8834         * event-msw.c (mswindows_handle_paint):
8835         * event-msw.c (output_alt_keyboard_state):
8836         * event-msw.c (mswindows_wnd_proc):
8837         * event-msw.c (vars_of_event_mswindows):
8838         Comment about problems with ignored-expose.
8839         Define mswindows-debug-events; not really implemented.
8840
8841         * frame-msw.c (mswindows_init_frame_1):
8842         random cleanups.
8843
8844         * glyphs-msw.c:
8845         * glyphs-msw.c (begin_defer_window_pos):
8846         * glyphs-msw.c (mswindows_unmap_subwindow):
8847         * glyphs-msw.c (mswindows_map_subwindow):
8848         * glyphs-msw.c (mswindows_resize_subwindow):
8849         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8850
8851         * glyphs.c (make_image_instance_1):
8852         Fix crash.
8853
8854         * gutter.c (Fredisplay_gutter_area):
8855         Use new begin/end methods.
8856
8857         * lisp.h (Dynarr_new2):
8858         New creation fun.
8859
8860         * redisplay-msw.c:
8861         * redisplay-msw.c (mswindows_frame_output_begin):
8862         * redisplay-msw.c (mswindows_frame_output_end):
8863         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8864         New begin/end methods -- handle DeferWindowPos.
8865
8866         * redisplay-output.c (redisplay_move_cursor):
8867         * redisplay-output.c (redraw_cursor_in_window):
8868         * redisplay-output.c (redisplay_update_line):
8869         * redisplay-output.c (redisplay_output_window):
8870         New begin/end methods.
8871
8872         * redisplay-tty.c:
8873         * redisplay-tty.c (tty_frame_output_begin):
8874         * redisplay-tty.c (tty_frame_output_end):
8875         * redisplay-tty.c (console_type_create_redisplay_tty):
8876         New begin/end methods.
8877
8878         * redisplay-x.c:
8879         * redisplay-x.c (x_window_output_begin):
8880         * redisplay-x.c (x_window_output_end):
8881         * redisplay-x.c (console_type_create_redisplay_x):
8882         New begin/end methods.
8883
8884         * redisplay.c (redisplay_frame):
8885         * redisplay.c (Fredisplay_echo_area):
8886         New begin/end methods.
8887         use MAYBE_DEVMETH for clear_frame; it may not exist.
8888
8889         * window.h (WINDOW_XFRAME):
8890         WINDOW_XFOO macros -- get locale and decode struct pointer.
8891
8892
8893 2000-05-12  Ben Wing  <ben@xemacs.org>
8894
8895         * emacs.c:
8896         * emacs.c (ensure_no_quitting_from_now_on):
8897         * emacs.c (fatal_error_signal):
8898         * emacs.c (mswindows_handle_hardware_exceptions):
8899         * emacs.c (main):
8900         * emacs.c (Fkill_emacs):
8901         * emacs.c (shut_down_emacs):
8902         * emacs.c (assert_failed):
8903         various improvements in fatal error handling.
8904
8905         * eval.c:
8906         move preparing_for_armageddon to emacs.c.
8907
8908         * lisp.h:
8909         declare fatal_error_in_progress.
8910
8911         * print.c:
8912         * print.c (std_handle_out_external):
8913         * print.c (std_handle_out_va):
8914         * print.c (stderr_out):
8915         * print.c (stdout_out):
8916         use console under mswin when no standard output.
8917         don't do code conversion during fatal error.
8918
8919         * scrollbar.c (Fscrollbar_page_up):
8920         * scrollbar.c (Fscrollbar_page_down):
8921         fix missing else.  reindent.
8922
8923 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8924
8925         Emergency fix.
8926
8927         * glyphs.h (GLYPH_CACHEL_DESCENT):
8928         (GLYPH_CACHEL_DESCENT):
8929         (GLYPH_CACHEL_DESCENT):
8930         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8931         used in case these are inline functions.
8932         Use more absurd values to error check.
8933
8934         include window.h for error check functions.
8935
8936 2000-05-11  Ben Wing  <ben@xemacs.org>
8937
8938         * cmdloop.c (Freally_early_error_handler):
8939         Display message box under windows; otherwise, message will disappear
8940         before it can be viewed.
8941
8942         * console-msw.c:
8943         * console-msw.c (Fmswindows_message_box):
8944         * console-msw.c (FROB):
8945         * console-msw.c (syms_of_console_mswindows):
8946         Define new fun `mswindows-message-box'.
8947         #### I will merge this into `popup-dialog-box'; just give me
8948         a bit of time.
8949
8950         * general.c:
8951         * general.c (syms_of_general):
8952         Some new symbols used in `mswindows-message-box'.
8953
8954         * glyphs.c:
8955         * glyphs.c (Fset_image_instance_property):
8956         put warning in this fun.
8957
8958         * glyphs.h:
8959         * glyphs.h (GLYPH_CACHEL_WIDTH):
8960         * glyphs.h (GLYPH_CACHEL_ASCENT):
8961         * glyphs.h (GLYPH_CACHEL):
8962         * glyphs.h (GLYPH_CACHEL_GLYPH):
8963         define error-checking versions to try to catch a bug i've seen --
8964         redisplay gets in an infinite loop because the glyph width of the
8965         continuation glyph is 65535.
8966
8967         * lisp.h:
8968         Extern message-box stuff.
8969
8970         * window.c (allocate_window):
8971         * window.c (make_dummy_parent):
8972         * window.c (Fset_window_configuration):
8973         Use EQUAL not EQ for subwindow caches to make them work a bit
8974         better. (Something is still very broken.)
8975
8976
8977 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8978
8979         * glyphs.c (image_instantiate): Suppress gcc warnings.
8980         (Fmake_image_instance): Fix doc string.
8981         * specifier.c (Fmake_specifier): Ditto.
8982
8983 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8984
8985         * paths.h.in (PATH_LOCK): Removed.
8986         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8987         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8988
8989 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8990
8991         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8992         Document (featurep '(and xemacs 21.02)).
8993
8994 2000-05-09  Ben Wing  <ben@xemacs.org>
8995
8996         * buffer.c (complex_vars_of_buffer):
8997         update modeline-format doc.
8998
8999         * device.h:
9000         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9001
9002         * emacs.c:
9003         timeline of all released versions of Emacs, for use in creating
9004         authorship comments and in synching up.
9005
9006         * glyphs-widget.c (image_instantiator_buttons):
9007         * glyphs-widget.c (image_instantiator_edit_fields):
9008         * glyphs-widget.c (image_instantiator_combo_box):
9009         * glyphs-widget.c (image_instantiator_scrollbar):
9010         * glyphs-widget.c (image_instantiator_progress_guage):
9011         * glyphs-widget.c (image_instantiator_tree_view):
9012         * glyphs-widget.c (image_instantiator_tab_control):
9013         * glyphs-widget.c (image_instantiator_labels):
9014         * glyphs-widget.c (image_instantiator_layout):
9015         * glyphs-widget.c (image_instantiator_native_layout):
9016         rename decode_domain method to governing_domain.
9017
9018         * glyphs.c:
9019         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9020         * glyphs.c (add_entry_to_device_ii_format_list):
9021         make sure we don't put an entry more than once into the list.
9022         * glyphs.c (check_instance_cache_mapper):
9023         *************************************************************
9024         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9025         HAVE BEEN GETTING.
9026         *************************************************************
9027         * glyphs.c (get_image_instantiator_governing_domain):
9028         clean up, expand on new concept of governing domain.
9029         * glyphs.c (instantiate_image_instantiator):
9030         * glyphs.c (allocate_image_instance):
9031         use governing_domain instead of cache_domain in naming.
9032         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9033         * glyphs.c (make_image_instance_1):
9034         * glyphs.c (Fmake_image_instance):
9035         allow for any domain (not just device), and process the
9036         governing domain correctly.  very big doc fix.
9037         * glyphs.c (Fimage_instance_domain):
9038         new primitive, to retrieve the governing domain of an image instance.
9039         * glyphs.c (image_instantiate):
9040         use new governing_domain stuff.  this fixes a crash you could get
9041         by instantiating certain widget glyphs in frame locales. (should
9042         signal an error instead of crashing.)
9043         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9044         * glyphs.c (Fglyphp): clean up doc.
9045         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9046         * glyphs.c (syms_of_glyphs):
9047         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9048         * glyphs.c (image_instantiator_format_create): add some comments about
9049         bogus code.
9050         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9051         for current-display-table. (Apparently Hrjove implemented in 1998 a
9052         design I wrote up in 1996, but didn't update the doc string.)
9053
9054         * glyphs.h: clean up a doc string.
9055         * glyphs.h (governing_domain):
9056         * glyphs.h (struct image_instantiator_methods):
9057         changes for governing_domain stuff.
9058
9059         * gutter.c:
9060         * gutter.c (Fgutter_specifier_p):
9061         * gutter.c (Fgutter_size_specifier_p):
9062         * gutter.c (Fgutter_visible_specifier_p):
9063         * objects.c:
9064         * objects.c (Fcolor_specifier_p):
9065         * objects.c (Ffont_specifier_p):
9066         * objects.c (Fface_boolean_specifier_p):
9067         doc strings moved to make-*-specifier.
9068
9069         * redisplay.c (add_disp_table_entry_runes_1):
9070         * redisplay.c (generate_fstring_runes):
9071         * redisplay.c (screen):
9072         add random comments and doc strings.
9073
9074         * specifier.c:
9075         * specifier.c (Fmake_specifier):
9076         major overhaul of this doc string.
9077
9078         * specifier.c (Fvalid_specifier_domain_p):
9079         comment about the bogosity of image instances being domains.
9080         * specifier.c (decode_domain):
9081         now non-static, used in glyphs.c.
9082         * specifier.c (specifier_instance):
9083         comment about the bogosity of image instances being domains.
9084         * specifier.c (Fgeneric_specifier_p):
9085         move doc string to make-generic-specifier.
9086         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9087         rebackslashify.
9088
9089         * specifier.h:
9090         * specifier.h (DOMAIN_FRAME):
9091         * specifier.h (DOMAIN_LIVE_P):
9092         * specifier.h (DOMAIN_XDEVICE):
9093         rebackslashify.
9094         add comments about problems with these macros.
9095         prototype for decode_domain.
9096
9097         * toolbar.c:
9098         * toolbar.c (Ftoolbar_specifier_p):
9099         move doc string to `make-toolbar-specifier'.
9100
9101         * window.c (window_unmap_subwindows_cache_mapper):
9102         *************************************************************
9103         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9104         HAVE BEEN GETTING.
9105         *************************************************************
9106
9107 2000-05-09  Andy Piper  <andy@xemacs.org>
9108
9109         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9110
9111         * window.c (Fset_window_configuration): reset the frame subwindow
9112         cache and re-initialize the window subwindow caches.
9113
9114         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9115
9116 2000-05-09  Ben Wing  <ben@xemacs.org>
9117
9118         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9119         DWORD.
9120
9121 2000-04-26  Mike Woolley  <mike@bulsara.com>
9122
9123         * ntheap.c: Changed recreate_heap to limit the amount reserved
9124         for the heap to that which is actually available. Also now
9125         displays a message box (with some dignostics) in the event that
9126         it still can't start.
9127
9128 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9129
9130         * callproc.c (Fold_call_process_internal): GCPRO path
9131
9132 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9133
9134         Patch by Bill Perry.
9135
9136         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9137         back data instead of #ifdef.
9138         (Fscrollbar_page_down): ditto.
9139
9140 2000-05-07  Ben Wing  <ben@xemacs.org>
9141
9142         * buffer.h:
9143         Kludge for defining Qmswindows_tstr.
9144
9145         * nt.c:
9146         * nt.c (open_input_file):
9147         * nt.c (open_output_file):
9148         * nt.c (rva_to_section):
9149         * nt.c (mswindows_executable_type):
9150         Move all memory-mapped-file routines here (some were in unexnt.c,
9151         which is bad because they are used by process-nt.c, and unexnt
9152         won't be around when portable dumping).  Synched the above routines
9153         with FSF 20.6.
9154
9155         * nt.h:
9156         Removed ifdef'd out bogus code.
9157         Fixed some prototypes.
9158
9159         * nt.h (file_data):
9160         * nt.h (OFFSET_TO_RVA):
9161         * nt.h (RVA_TO_OFFSET):
9162         * nt.h (RVA_TO_PTR):
9163         Moved the memory-mapped-file structures, macros and prototypes
9164         here, to parallel nt.c.  ntheap.h should really be removed
9165         entirely, and it's a non-portable-dumper specific file.
9166
9167         * ntheap.h (round_to_next):
9168         Moved the memory-mapped-file structures, macros and prototypes
9169         to nt.h.
9170
9171         * ntproc.c (compare_env):
9172         Moved rva_to_section and mswindows_executable_type to nt.c.
9173         Moved compare_env to process-nt.c.
9174         ntproc.c will die, one day.
9175
9176         * ntproc.c (sys_spawnve):
9177         Account for win32_ -> mswindows_.
9178
9179         * process-nt.c:
9180         * process-nt.c (struct nt_process_data):
9181         * process-nt.c (ensure_console_window_exists):
9182         * process-nt.c (compare_env):
9183         * process-nt.c (nt_create_process):
9184         * process-nt.c (nt_kill_process_by_pid):
9185         * process-nt.c (syms_of_process_nt):
9186         * process-nt.c (vars_of_process_nt):
9187         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9188         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9189         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9190         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9191         Move compare_env here from ntproc.c.
9192
9193         * process.c (Fprocess_send_region):
9194         Takes an optional fourth argument, BUFFER, which should fix some
9195         problems with call-process.
9196
9197         * syscommctrl.h:
9198         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9199
9200         * syswindows.h:
9201         Move ICC_BAR_CLASSES to syscommctrl.h.
9202         Add preliminary macros for MSWindows/Mule.  More to come.
9203
9204         * unexnt.c:
9205         * unexnt.c (unexec):
9206         open_output_file moved to nt.c.
9207
9208
9209 2000-05-05  Andy Piper  <andy@xemacs.org>
9210
9211         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9212         instance from the frame cache also since GC may catch up too late
9213         to make frame deletion sane.
9214
9215 2000-05-04  Andy Piper  <andy@xemacs.org>
9216
9217         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9218         (x_finalize_image_instance): ungcpro on deletion.
9219
9220         * glyphs.c (image_instantiator_format_create): give pointers a
9221         query geometry method so that the geometry is at least set.
9222
9223         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9224         initialize layouts if using widgets.
9225
9226 2000-05-03  Andy Piper  <andy@xemacs.org>
9227
9228         * nt.c: remove bogus reference to sysmmsystem.h
9229
9230         * gui-x.c (popup_selection_callback): fix no selection abort.
9231
9232 2000-05-02  Andy Piper  <andy@xemacs.org>
9233
9234         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9235         (mswindows_widget_instantiate): ditto.
9236
9237         * glyphs-widget.c (initialize_widget_image_instance): initialize
9238         children correctly.
9239         (widget_instantiate): cope with children and items in the same
9240         instance.
9241
9242         * glyphs.c (mark_image_instance): cope with children as a first
9243         class member.
9244         (image_instance_equal): ditto.
9245         (image_instance_hash): ditto.
9246         (image_instance_changed): ditto.
9247
9248 2000-04-30  Andy Piper  <andy@xemacs.org>
9249
9250         * glyphs.c (subwindow_query_geometry): new function. Return some
9251         defaults.
9252         (subwindow_instantiate): don't assign dimensions if none have been
9253         given.
9254         (image_instantiator_format_create): add subwindow_query_geometry.
9255         (print_image_instance): cope with layouts as widgets.
9256
9257 2000-04-29  Andy Piper  <andy@xemacs.org>
9258
9259         * frame.c (delete_frame_internal): call
9260         free_frame_subwindow_instance_cache so that all subwindows are
9261         finalized before their parent.
9262         (mark_frame): remove subwindow_cachels.
9263         (Fmake_frame): remove subwindow_cachel manipulation.
9264         (allocate_frame_core): subwindow_instance_cache is a weak list.
9265         (delete_frame_internal): set subwindow_instance_cache to nil.
9266
9267         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9268         finalization safe.
9269         (mswindows_finalize_image_instance): use the device
9270         not the domain as the domain may have died already.
9271
9272         * glyphs-x.c (x_finalize_image_instance): ditto.
9273         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9274         HEIGHT.
9275
9276         * redisplay-output.c (redisplay_unmap_subwindows): update for
9277         subwindow instance cache as a weak list.
9278         (redisplay_unmap_subwindows_maybe): ditto.
9279         (redisplay_unmap_subwindows_except_us): ditto.
9280
9281         * glyphs.c (unmap_subwindow): error checking will check the domain
9282         so don't deal with it here. Don't use cachels anymore.
9283         (map_subwindow): ditto.
9284         (update_subwindow_cachel_data): remove old accessor names.
9285         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9286         (Fresize_subwindow): don't update cachel.
9287         (mark_subwindow_cachels):
9288         (update_subwindow_cachel_data):
9289         (add_subwindow_cachel):
9290         (get_subwindow_cachel_index):
9291         (update_subwindow_cachel):
9292         (reset_subwindow_cachels):
9293         (mark_subwindow_cachels_as_not_updated): deleted.
9294         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9295         subwindow instance to the frame cache.
9296         (find_matching_subwindow): update for subwindow instance cache as
9297         a weak list.
9298         (update_widget_instances): ditto.
9299         (image_instance_type_to_mask):inlined.
9300         (free_frame_subwindow_instance_cache): new function. finalize all
9301         subwindows that are instantiated.
9302
9303         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9304         of cachel information.
9305         (IMAGE_INSTANCE_DISPLAY_X):
9306         (IMAGE_INSTANCE_DISPLAY_Y):
9307         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9308         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9309         (XIMAGE_INSTANCE_DISPLAY_X):
9310         (XIMAGE_INSTANCE_DISPLAY_Y):
9311         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9312         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9313         remove subwindow_cachel structure and function references.
9314         (image_instance_type_to_mask): inline from glyphs.c
9315
9316         * redisplay.c (redisplay_frame): remove subwindow_cachel
9317         references.
9318
9319         * frame.h (struct frame): remove subwindow_cachels.
9320         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9321
9322         * frameslots.h: add subwindow_instance_cache.
9323
9324         * window.c (replace_window): check subwindow cache of replacement.
9325         (window_unmap_subwindows_cache_mapper):
9326         (window_unmap_subwindows): new functions. Unmap all subwindows
9327         cached on this window.
9328         (mark_window_as_deleted): unmap all subwindows.
9329
9330 2000-04-27  Andy Piper  <andy@xemacs.org>
9331
9332         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9333
9334         * glyphs-widget.c (widget_layout): return something.
9335         (layout_layout): return something. Fail if not initialized.
9336         (layout_query_geometry): ditto.
9337         (image_instantiator_native_layout): new function. Initialized the
9338         native layout type.
9339         (widget_instantiate): don't do layout stuff here.
9340
9341         * glyphs.c (instantiate_image_instantiator): reorded calling or
9342         instantiate and post_instantiate with layout in between.
9343         (image_instance_layout): be more selective about deciding whether
9344         the layout has been done or not.
9345
9346         * glyphs.h (struct image_instantiator_methods): return a value
9347         from layout_method.
9348
9349 2000-04-26  Andy Piper  <andy@xemacs.org>
9350
9351         * glyphs.c (allocate_image_instance): make initial width and
9352         height unspecified. Set initialized to 0.
9353
9354         * syscommctrl.h new file. Encapsulates commctrl.h.
9355
9356         * syswindows.h new file. Encapsulates windows.h.
9357
9358         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9359         * nt.c: ditto.
9360         * console-msw.h: ditto.
9361
9362         * redisplay-tty.c (tty_output_display_block): remove layout references.
9363
9364         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9365         window handle rather than just the frame.
9366
9367         * glyphs.c (mark_image_instance): remove layout references.
9368         (print_image_instance): ditto.
9369         (image_instance_equal): ditto.
9370         (image_instance_hash): ditto.
9371         (decode_image_instance_type): ditto.
9372         (encode_image_instance_type): ditto.
9373         (image_instantiate): ditto.
9374         (allocate_glyph): ditto.
9375         (Fimage_instance_height): ditto.
9376         (Fimage_instance_width): ditto.
9377         (update_subwindow): ditto.
9378
9379         * redisplay-x.c (x_output_display_block): recode for layouts as
9380         widgets.
9381
9382         * redisplay-output.c (redisplay_output_layout): recode for layouts
9383         as widgets.
9384         (compare_runes): remove layout references.
9385
9386         * redisplay-msw.c (mswindows_output_display_block): recode for
9387         layouts as widgets.
9388
9389         * glyphs-widget.c (image_instantiator_layout): remove
9390         layout_possible_dest_types.
9391         (layout_possible_dest_types): deleted.
9392
9393         * glyphs.h (image_instance_type): remove layout references.
9394         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9395         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9396         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9397
9398 2000-04-25  Andy Piper  <andy@xemacs.org>
9399
9400         * glyphs-widget.c (image_instantiator_buttons):
9401         (image_instantiator_edit_fields):
9402         (image_instantiator_combo_box):
9403         (image_instantiator_scrollbar):
9404         (image_instantiator_progress_guage):
9405         (image_instantiator_tree_view):
9406         (image_instantiator_tab_control):
9407         (image_instantiator_labels):
9408         (image_instantiator_layout): call default post_instantiate method.
9409         (widget_post_instantiate): new function. Simply lays out the
9410         widgets.
9411
9412         * glyphs.h (struct image_instantiator_methods): add
9413         post_instantiate method.
9414
9415         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9416         method calls.
9417
9418 2000-04-23  Andy Piper  <andy@xemacs.org>
9419
9420         * glyphs.h (struct image_instantiator_methods): add
9421         decode_domain_method.
9422         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9423         derived from the domain.
9424         (IMAGE_INSTANCE_FRAME): new accessor.
9425         (XIMAGE_INSTANCE_FRAME): ditto.
9426
9427         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9428         instead of _SUBWINDOW_FRAME.
9429         (finalize_image_instance): ditto.
9430         (Fimage_instance_foreground): ditto.
9431         (Fimage_instance_background): ditto.
9432         (image_instantiate): ditto.
9433         (update_subwindow_cachel): ditto.
9434         (update_subwindow): ditto.
9435         (unmap_subwindow): ditto.
9436         (map_subwindow): ditto
9437         (subwindow_instantiate): ditto.
9438         * glyphs-msw.c (mswindows_update_widget): ditto.
9439         (mswindows_progress_gauge_instantiate): ditto.
9440         (mswindows_tab_control_update): ditto.
9441         * glyphs-x.c (x_update_widget): ditto.
9442         (x_widget_instantiate): ditto.
9443         (x_tab_control_instantiate): ditto.
9444         (x_tab_control_update): ditto.
9445         * event-msw.c (mswindows_wnd_proc): ditto
9446
9447         * glyphs-widget.c (image_instantiator_layout): use
9448         subwindow_decode_domain.
9449         (image_instantiator_buttons): ditto.
9450         (image_instantiator_edit_fields): ditto.
9451         (image_instantiator_combo_box): ditto.
9452         (image_instantiator_scrollbar): ditto.
9453         (image_instantiator_progress_guage): ditto.
9454         (image_instantiator_tree_view): ditto.
9455         (image_instantiator_tab_control): ditto.
9456         (image_instantiator_labels): ditto.
9457         (image_instantiator_layout): ditto.
9458
9459         * glyphs.c: add instance error checking to many functions.
9460         (instantiate_image_instantiator): decode device from cache_domain.
9461         (image_instantiate): partially rewrite by using
9462         decode_image_instantiator_domain to determine what domain the
9463         instance needs to be cached in.
9464         (decode_image_instantiator_domain): new function. Determine what
9465         domain the image needs to be cached in.
9466         (check_window_subwindow_cache): new error checking function.
9467         (check_instance_cache_mapper): ditto.
9468         (check_image_instance_structure): ditto.
9469         (subwindow_decode_domain): new function. Encodes a window as a
9470         subwindow's cache domain.
9471         (image_instantiator_format_create): use it for text and
9472         subwindows.
9473
9474 2000-04-21  Andy Piper  <andy@xemacs.org>
9475
9476         * glyphs.c (image_instance_device): new function.
9477         (image_instance_frame): new function.
9478         (image_instance_window): new function.
9479         (image_instance_live_p): new function.
9480
9481         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9482         cache to nil.
9483
9484         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9485         (IMAGE_INSTANCE_DOMAIN): new accessor.
9486         (XIMAGE_INSTANCE_DOMAIN): ditto.
9487
9488         * glyphs-x.c (x_finalize_image_instance): device->domain.
9489
9490         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9491         (mswindows_finalize_image_instance): ditto.
9492
9493         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9494         (gif_instantiate): ditto.
9495         (png_instantiate): ditto.
9496         (tiff_instantiate): ditto.
9497
9498         * glyphs.c (instantiate_image_instantiator): use domain rather
9499         than device.
9500         (mark_image_instance): device -> domain.
9501         (print_image_instance): ditto.
9502         (finalize_image_instance): ditto.
9503         (image_instance_equal): ditto.
9504         (allocate_image_instance): ditto.
9505         (Fcolorize_image_instance): ditto.
9506         (query_string_geometry): ditto.
9507         (image_instantiate): ditto
9508         (query_string_font): ditto.
9509         (image_instantiate): ditto.
9510         (update_subwindow): ditto.
9511         (unmap_subwindow): ditto.
9512         (map_subwindow): ditto.
9513         (subwindow_instantiate): ditto.
9514
9515         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9516         (DOMAIN_FRAME): ditto.
9517         (DOMAIN_WINDOW): ditto.
9518         (DOMAIN_LIVE_P): ditto.
9519         (XDOMAIN_DEVICE): ditto.
9520         (XDOMAIN_FRAME): ditto.
9521         (XDOMAIN_WINDOW): ditto.
9522
9523         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9524         a valid specifier domain.
9525
9526 2000-04-19  Andy Piper  <andy@xemacs.org>
9527
9528         * glyphs-widget.c (syms_of_glyphs_widget): remove
9529         widget-callback-current-channel.
9530         (vars_of_glyphs_widget): ditto.
9531         * glyphs.h: ditto
9532
9533         * gui.c (get_gui_callback): revert to previous behaviour.
9534
9535 2000-04-18  Andy Piper  <andy@xemacs.org>
9536
9537         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9538         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9539         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9540
9541         * glyphs.c (image_instance_equal): add margin_width.
9542         (image_instance_hash): ditto.
9543
9544         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9545         (layout_query_geometry): ditto.
9546         (layout_layout): ditto.
9547         (syms_of_glyphs_widget): add margin-width.
9548         (image_instantiator_layout): allow margin-width.
9549
9550         * glyphs.c (update_widget_instances): make a normal function.
9551         (syms_of_glyphs): remove Qupdate_widget_instances.
9552         * glyphs.h: ditto.
9553
9554         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9555         so that we don't corrupt ideas about the last event or
9556         command. Remove widget-callback-current-channel fiddling.
9557         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9558
9559 2000-05-01  Martin Buchholz <martin@xemacs.org>
9560
9561         * XEmacs 21.2.33 is released.
9562
9563 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9564
9565         * make-src-depend: Allow dots in header file name.
9566
9567 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9568
9569         * mule-charset.h (struct charset_lookup): Add
9570         next_allocated_1_byte_leading_byte and
9571         next_allocated_2_byte_leading_byte.
9572         * mule-charset.c: Move above two variables so that those values
9573         will be dumped.
9574
9575 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9576
9577         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9578         when string length is zero.
9579         (find_charsets_in_emchar_string): Ditto.
9580
9581 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9582
9583         * lisp.h: extern Qdialog and Qmenubar.
9584
9585         * gui-x.c: added events.h.
9586                 also fixed typo which made the file uncompilable.
9587
9588         * general.c: Added Qmenubar and Qdialog
9589
9590 2000-04-28  Ben Wing  <ben@xemacs.org>
9591
9592         * frame-msw.c (mswindows_init_frame_1):
9593         * frame-msw.c (mswindows_mark_frame):
9594         * event-msw.c (mswindows_enqueue_dispatch_event):
9595         * console-msw.h:
9596         * console-msw.h (struct mswindows_frame):
9597         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9598         there are now three hash tables for callbacks.
9599         mswindows_enqueue_dispatch_event is no longer static.
9600
9601         * dialog-x.c (maybe_run_dbox_text_callback):
9602         * dialog-x.c (dbox_descriptor_to_widget_value):
9603         switch to new cons3 form for callbacks.
9604
9605         * glyphs-msw.c (mswindows_register_gui_item):
9606         * glyphs-msw.c (mswindows_widget_instantiate):
9607         * glyphs-msw.c (add_tree_item):
9608         * glyphs-msw.c (add_tab_item):
9609         new image instance parameter, so it can be passed to callback-ex.
9610         respect :callback-ex as well as :callback.
9611
9612         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9613         add :callback-ex.
9614
9615         * glyphs.c (print_image_instance):
9616         prettify, e.g. now prints widget type.
9617
9618         * gui-x.h:
9619         certain funs have new image instance parameter.
9620
9621         * gui.c:
9622         * gui.c (get_gui_callback):
9623         * gui.c (gui_item_add_keyval_pair):
9624         * gui.c (gui_item_init):
9625         * gui.c (gui_add_item_keywords_to_plist):
9626         * gui.c (mark_gui_item):
9627         * gui.c (gui_item_hash):
9628         * gui.c (gui_item_equal):
9629         * gui.c (copy_gui_item):
9630         * gui.c (syms_of_gui):
9631         recognize callback-ex in a number of places.
9632         also, fix the annoying "can't get out of yes-no dialog" bug.
9633
9634         * gui.h:
9635         * gui.h (struct Lisp_Gui_Item):
9636         recognize callback-ex in a number of places.
9637
9638         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9639         new parameter in button_item_to_widget_value.
9640
9641         * glyphs-x.c (x_update_widget):
9642         * glyphs-x.c (x_button_instantiate):
9643         * glyphs-x.c (x_button_update):
9644         * glyphs-x.c (x_progress_gauge_instantiate):
9645         * glyphs-x.c (x_edit_field_instantiate):
9646         * glyphs-x.c (x_combo_box_instantiate):
9647         * glyphs-x.c (x_tab_control_instantiate):
9648         * glyphs-x.c (x_label_instantiate):
9649         new image instance parameter in various places.
9650
9651         * event-Xt.c:
9652         * event-Xt.c (enqueue_Xt_dispatch_event):
9653         this fun gets exported.
9654
9655         * gui-msw.c:
9656         * gui-msw.c (mswindows_handle_gui_wm_command):
9657         handle both :callback and :callback-ex, and generate our own
9658         event because it's one of the callback-ex arguments.
9659
9660         * gui-x.c:
9661         * gui-x.c (popup_selection_callback):
9662         handle both :callback and :callback-ex, and generate our own
9663         event because it's one of the callback-ex arguments.
9664         * gui-x.c (button_item_to_widget_value):
9665         * gui-x.c (gui_items_to_widget_values_1):
9666         * gui-x.c (gui_item_children_to_widget_values):
9667         * gui-x.c (gui_items_to_widget_values):
9668         new image instance parameter in various places.
9669
9670         * fns.c (Freplace_list):
9671         fix small typo in doc string.
9672
9673         * lisp.h:
9674         declare enqueue_Xt_dispatch_event.
9675
9676 2000-04-28  Ben Wing  <ben@xemacs.org>
9677
9678         * buffer.c:
9679         * buffer.c (Frecord_buffer):
9680         * buffer.c (syms_of_buffer):
9681         delete record-buffer-hook.
9682
9683         * fns.c:
9684         * fns.c (Freplace_list):
9685         * fns.c (syms_of_fns):
9686         new primitive replace-list.
9687
9688         * frameslots.h:
9689         slot for old buffer-alist.
9690
9691         * lisp.h:
9692         exfun replace-list.
9693
9694         * redisplay.c:
9695         * redisplay.c (redisplay_frame):
9696         * redisplay.c (syms_of_redisplay):
9697         * redisplay.c (vars_of_redisplay):
9698         new hook buffer-list-changed-hook.
9699         call it.
9700
9701 2000-04-27  Ben Wing  <ben@xemacs.org>
9702
9703         * extents.h: extern in_modeline_generation.
9704
9705         * redisplay.c (generate_formatted_string_db): set
9706         in_modeline_generation.
9707
9708         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9709         flags if in modeline generation.  otherwise frame-modified-tick
9710         is ticked far too often.
9711         Declare in_modeline_generation.
9712
9713 2000-04-26  Ben Wing  <ben@xemacs.org>
9714
9715         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9716         option.
9717         (vars_of_emacs): add quick-build as an error-checking option.
9718         A bit kludgy, but there doesn't seem much point in creating
9719         a real var for this.
9720
9721         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9722
9723 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9724
9725         * redisplay.h (struct display_line): Add a new variable,
9726         line_continuation.
9727
9728         * redisplay.c (create_text_block): Set dl->line_continuation if
9729         the line continues.
9730         (create_string_text_block): Ditto.
9731         (regenerate_window_incrementally): Use line_continuation instead
9732         of searching continuation glyph.
9733         (add_margin_runes): Call add_glyph_rune.
9734         (add_glyph_rune): Handle margin glyph.
9735
9736 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9737
9738         * filelock.c (fill_in_lock_file_name):
9739         ANSIfy.
9740         Check for IS_ANY_SEP instead of '/'.
9741         (lock_file_1):
9742         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9743         Never check errno without first seeing that system call failed.
9744         (unlock_file): Add GCPRO.
9745         (Flock_buffer): Fix docstring.
9746         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9747
9748 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9749
9750         * sysdep.c (get_pty_max_bytes):
9751         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9752         strings longer than 252 bytes.
9753
9754         * md5.c: Unconditionally include ANSI header <limits.h>
9755
9756         * glyphs-x.c (convert_EImage_to_XImage):
9757         * lisp-union.h (union Lisp_Object):
9758         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9759
9760 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9761
9762         * filelock.c (current_lock_owner): Remove unused variable o, p.
9763
9764 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9765
9766         * callint.c: Remove multiply defined symbol Qlet
9767         (syms_of_callint): ditto.
9768
9769 2000-04-14  Andy Piper  <andy@xemacs.org>
9770
9771         * general.c (syms_of_general): add last-command, this-command, let
9772         and funcall.
9773
9774         * lisp.h: declare various symbols.
9775
9776         * glyphs.h: declare Qwidget_callback_current_channel;
9777
9778         * glyphs-widget.c (syms_of_glyphs_widget): add
9779         Qgui_callback_current_channel.
9780         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9781
9782         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9783         widget-callback-current-channel when invoking the interactive
9784         arg. Also bind last-command and next-command when invoking the
9785         widget updates.
9786         * gui-x.c (popup_selection_callback): ditto.
9787
9788         * gui.c (get_gui_callback): massage args so that we are always
9789         calling eval. This allows us to add our own variable bindings
9790         outside.
9791
9792         * glyphs-x.c (x_button_instantiate): use
9793         gui_items_to_widget_values since this is GC safe.
9794         (x_progress_gauge_instantiate): ditto.
9795         (x_edit_field_instantiate): ditto.
9796         (x_label_instantiate): ditto.
9797
9798         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9799         (emacs_Xt_event_widget_focus_out): new function
9800         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9801         focus.
9802         (emacs_Xt_event_add_widget_actions): new function. add focus
9803         functions as actions.
9804         (init_event_Xt_late): use it.
9805
9806 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9807
9808         * event-stream.c (Fdispatch_event): Doc fix.
9809
9810 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9811
9812         * postgresql.c: Remove all references to PQsetenv*.
9813
9814         * postgresql.h: Remove references to PGsetenvHandler object.
9815         * lrecord.h (lrecord_type): Ditto.
9816
9817 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9818
9819         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9820         real_heigh and real_width members, and accessor macros for these.
9821
9822         * glyphs-msw.c (init_image_instance_geometry): New function.
9823         (init_image_instance_from_dibitmap): Use it.
9824         (mswindows_resource_instantiate): Use it.
9825         (init_image_instance_from_xbm_inline): Use it.
9826         (mswindows_initialize_image_instance_mask): Use real bitmap
9827         geometry.
9828         (mswindows_create_resized_bitmap): Ditto.
9829         (mswindows_create_resized_mask): Ditto.
9830
9831         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9832         and bitmap to their surface size.
9833
9834 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9835
9836         * process-unix.c (unix_send_process): Guard against process MIA
9837         after Faccept_process_output.
9838
9839 2000-04-11  Ben Wing  <ben@xemacs.org>
9840
9841         * eval.c (unbind_to_hairy): fix brokenness introduced by
9842         nanosecond speed improvements.
9843
9844 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9845
9846         * sunplay.c (init_device): To play sounds correctly, the device
9847         apparently needs to be initialized at least once by XEmacs.  Make
9848         it so.
9849
9850 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9851
9852         * redisplay.c (add_margin_runes): Add text image glyph
9853           handling.
9854
9855 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9856
9857         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9858         gcc is newer than 2.5.
9859
9860 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9861
9862         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9863
9864         * fns.c (size_bit_vector):
9865         * alloc.c (size_vector):
9866         (make_vector_internal):
9867         (make_bit_vector_internal):
9868         (sweep_bit_vectors_1):
9869         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9870
9871 2000-04-06  Andy Piper  <andy@xemacs.org>
9872
9873         * gmalloc.c (malloc): undo previous change.
9874         (malloc): ditto.
9875         (free): ditto.
9876         (realloc): ditto.
9877
9878 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9879
9880         * line-number.c (buffer_line_number): Revert to former version.
9881
9882 2000-04-06  Andy Piper  <andy@xemacs.org>
9883
9884         * gmalloc.c (malloc): add error checking.
9885         (malloc): ditto.
9886         (free): ditto.
9887         (realloc): ditto.
9888
9889         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9890         button_item_to_widget_value arg.
9891
9892         * glyphs-x.c (x_button_instantiate): add extra
9893         button_item_to_widget_value arg.
9894         (x_progress_gauge_instantiate): ditto.
9895         (x_edit_field_instantiate): ditto.
9896         (x_label_instantiate): ditto.
9897
9898         * gui-x.c (gui_items_to_widget_values_1): add extra
9899         button_item_to_widget_value arg.
9900         (button_item_to_widget_value): add extra menu_item_p arg.
9901
9902         * gui-x.h: change signature of button_item_to_widget_value.
9903
9904         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9905         button_item_to_widget_value arg.
9906
9907 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9908
9909         * buffer.h (struct buffer): auto_save_modified should be long.
9910
9911 2000-04-05  Andy Piper  <andy@xemacs.org>
9912
9913         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9914         type.
9915         (button_query_geometry): give a little more room so that athena
9916         buttons fit.
9917
9918 2000-04-05  Andy Piper  <andy@xemacs.org>
9919
9920         * faces.c (complex_vars_of_faces): The widget face should inherit
9921         the font of the gui-element face.
9922
9923 2000-04-04  Andy Piper  <andy@xemacs.org>
9924
9925         * glyphs-x.c (x_button_update): new function. unconditionally
9926         update a button's state when the instance is dirty.
9927         (image_instantiator_format_create_glyphs_x): add x_button_update.
9928         (x_widget_instantiate): remove old resize cruft.
9929
9930 2000-04-02  Andy Piper  <andy@xemacs.org>
9931
9932         * frame.c (change_frame_size_1): The introduction of gutters means
9933         that we need to allow 0 as a potential frame dimension.
9934
9935 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9936
9937         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9938         image glyph if allow_cursor.
9939         (add_hscroll_rune): Don't allow cursor to border glyph.
9940         (create_text_block): Ditto.
9941
9942         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9943         text not in buffer.
9944         (redisplay_output_layout): Call ensure_face_cachel_complete for
9945         text image glyph.
9946
9947
9948 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9949
9950         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9951
9952         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9953         not in buffer
9954
9955         * redisplay-tty.c (tty_output_display_block): Delete the routine
9956         for text image glyph
9957         * redisplay-x.c (x_output_display_block): ditto
9958         * redisplay-msw.c (mswindows_output_display_block): ditto
9959
9960 2000-02-02  Mike Alexander  <mta@arbortext.com>
9961
9962         Note: Some of these were committed by accident as part of other
9963         patches.
9964
9965         * regex.c (regex_compile): Avoid compiler warnings.
9966
9967         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9968
9969         * nt.h: Declare term_ntproc correctly.
9970
9971         * nt.c: Remove incorrect declaration of get_home_directory which
9972         is declared correctly in lisp.h.
9973
9974         * keymap.c (get_keyelt): Avoid compiler warnings.
9975         (raw_lookup_key_mapper): Avoid compiler warnings.
9976
9977         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9978
9979         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9980
9981         * filemode.c (mode_string): Avoid compiler warnings.
9982
9983         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9984         avoid warning.
9985
9986         * events-mod.h: Undef some things that winuser.h defines differently.
9987
9988         * data.c (Faset): Avoid compiler warnings.
9989
9990         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9991
9992 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9993
9994         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9995         Fall through to simple beep on error.
9996         Replace "extern" by real header file.
9997
9998         * linuxplay.c: Use nativesound.h
9999         (play_sound_data): Return error code. Be less verbose on error.
10000
10001         * sunplay.c: Use nativesound.h
10002         (play_sound_data): Return error code. Be less verbose on error.
10003
10004         * ntplay.c: Use nativesound.h
10005         (play_sound_data): Return fake error code
10006
10007         * sgiplay.c: Use nativesound.h
10008         (play_sound_data): Return error code
10009
10010         * hpplay.c: Use nativesound.h, partially implement
10011         new error code. Break compilation until finished.
10012         (play_sound_data): error code.
10013
10014         * nativesound.h (play_sound_file):
10015           (play_sound_data): Prototype in new header.
10016
10017 2000-03-31  Andy Piper  <andy@xemacs.org>
10018
10019         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10020         for toggle and radio buttons.
10021         (image_instantiator_buttons): use it.
10022
10023 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10024
10025         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10026         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10027         found. Scrollbar event probably belonged to some old config.
10028
10029 2000-03-31  Andy Piper  <andy@xemacs.org>
10030
10031         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10032         than 1.
10033         (initialize_widget_image_instance): default layout to
10034         LAYOUT_HORIZONTAL rather than 0.
10035         (widget_instantiate): reverse the item list at the end rather than
10036         every iteration.
10037         (layout_layout): re-code for the border text at the front of the
10038         item list rather than at the end.
10039         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10040         provided by the user.
10041         (widget_query_geometry): comment.
10042
10043 2000-03-30  Andy Piper  <andy@xemacs.org>
10044
10045         * glyphs-widget.c (image_instantiator_layout): allow standard
10046         widget keywords in layouts.
10047
10048         * gutter.c (output_gutter): cope with nil gutter contents.
10049
10050         * frame.c (Fset_frame_properties): add gutter docs.
10051
10052 2000-03-29  Andy Piper  <andy@xemacs.org>
10053
10054         * toolbar-msw.c (TBSTYLE_FLAT): add.
10055         (mswindows_output_toolbar): minor fiddling.
10056
10057 2000-03-29  Andy Piper  <andy@xemacs.org>
10058
10059         * gutter.c (output_gutter): force gutter size recalculation if
10060         what we are trying to display won't fit.
10061         (update_gutter_geometry): new function. A per-gutter version of
10062         update_frame_gutter_geometry.
10063         (update_frame_gutter_geometry): use it.
10064         (redraw_exposed_gutter): add extra debugging output.
10065
10066 2000-03-28  Mike Alexander  <mta@arbortext.com>
10067
10068         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10069         (pdump_file_unmap): Implement it on Windows
10070         (pdump_file_get): Save alocated handles for pdump_file_unmap
10071
10072 2000-03-28  Andy Piper  <andy@xemacs.org>
10073
10074         * gui.c (get_gui_callback): treat Quit specially.
10075
10076 2000-03-27  Andy Piper  <andy@xemacs.org>
10077
10078         * glyphs.c (image_instantiate): be careful to check in the same
10079         way we assigned.
10080
10081 2000-03-27  Didier Verna  <didier@xemacs.org>
10082
10083         * config.h.in: define the proper SMART_INCLUDE macro.
10084         handle renaming of `foo_h_path' to `foo_h_file'.
10085
10086         * database.c: ditto.
10087
10088         * emacs.c: ditto.
10089
10090         * linuxplay.c: ditto.
10091
10092         * terminfo.c: ditto.
10093
10094         * tooltalk.h: ditto.
10095
10096 2000-03-27  Andy Piper  <andy@xemacs.org>
10097
10098         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10099         gets updated whenever the face might have changed.
10100
10101 2000-03-26  Mike Alexander  <mta@arbortext.com>
10102
10103         * dumper.c (pdump_resource_free): Fix the comment.
10104
10105 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10106
10107         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10108
10109 2000-03-22  Mike Alexander  <mta@arbortext.com>
10110
10111         * dumper.c: Include Windows headers on Windows
10112         (pdump_resource_free): Add a body to the function
10113         (pdump_load): exe_name -> exe_path and add some comments.
10114
10115 2000-03-25  Mike Alexander  <mta@arbortext.com>
10116
10117         * gui.c (copy_gui_item_tree): Return a value in all cases
10118
10119 2000-03-21  Didier Verna  <didier@xemacs.org>
10120
10121         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10122         lwlib/config.h.in.
10123         (SMART_INCLUDE): new macro.
10124         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10125         the proper location.
10126
10127         * postgresql.c: use it.
10128
10129         * inline.c: ditto.
10130
10131 2000-03-24  Andy Piper  <andy@xemacs.org>
10132
10133         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10134         do this.
10135
10136 2000-03-24  Andy Piper  <andy@xemacs.org>
10137
10138         * redisplay-output.c (compare_runes): use image_instance_changed
10139         to detect changes. Do not depend on glyphs_changed, only depend on
10140         dirtiness.
10141          (redisplay_output_layout): add debug messages.
10142         (compare_runes): ditto.
10143
10144         * glyphs.h: declare new functions.
10145         (struct Lisp_Image_Instance): remove percent and associated
10146         accessors.
10147
10148         * gui.h: declare new copying functions.
10149
10150         * gui.c (copy_gui_item_tree): new function.
10151         (copy_gui_item): new function.
10152         (gui_item_id_hash): revert to standard hash.
10153         (gui_item_hash): ditto.
10154         (gui_item_hash_internal): deleted.
10155         (mark_gui_item): mark value.
10156         (gui_item_add_keyval_pair): add value.
10157         (gui_item_init): ditto.
10158         (gui_add_item_keywords_to_plist): ditto.
10159         (gui_item_equal): ditto.
10160         (syms_of_gui): add Q_value.
10161
10162         * glyphs-x.c (x_progress_gauge_update): use pending items and
10163         value for setting the state.
10164         (x_update_widget): don't set items from pending here.
10165
10166         * glyphs-widget.c (update_widget): update items here.
10167         (progress_gauge_set_property): use items for storing value. Put
10168         new value in pending items.
10169
10170         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10171         items for new value. Convert percent -> value.
10172         (mswindows_tab_control_update): don't update items here.
10173
10174         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10175         (update_subwindow): ditto.
10176         (image_instance_changed): new function. Compare hash values and
10177         past and present widget items.
10178         (image_instantiate): We more careful about where we instantiate
10179         things.
10180         (image_instantiate): add error checking.
10181
10182         * gutter.c (syms_of_gutter): use -hook.
10183
10184 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10185
10186         * console-tty.c (Fset_console_tty_input_coding_system): Use
10187         Qkeyboard.
10188         (Fset_console_tty_output_coding_system): Use Qterminal.
10189         (tty_init_console): Use Qkeyboard and Qterminal.
10190
10191 2000-03-21  Ben Wing  <ben@xemacs.org>
10192
10193         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10194         From Mike Alexander <mta@arbortext.com>.
10195
10196 2000-03-21  Ben Wing  <ben@xemacs.org>
10197
10198         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10199         process brokenness.  Proper implementation to come.
10200         * callproc.c:
10201         Rename call-process-internal to old-call-process-internal.
10202         New impl. in process.el.
10203
10204 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10205
10206         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10207
10208 2000-03-20  Andy Piper  <andy@xemacs.org>
10209
10210         * glyphs.c (full_list_hash): make hashes of the same elements in
10211         different orders return different values.
10212
10213 2000-03-20  Martin Buchholz <martin@xemacs.org>
10214
10215         * XEmacs 21.2.32 is released.
10216
10217 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10218
10219         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10220         (DFC_MALLOC_USE_CONVERTED_DATA):
10221         Add aliasing-safe casts to allow use with char* or unsigned char*
10222         lvalues.
10223
10224         * eldap.c (Fldap_open):
10225         (Fldap_search_basic):
10226         (Fldap_add):
10227         (Fldap_modify):
10228         Make C++-compilable.
10229         Make sure GCPRO'ed variables are initialized.
10230         Use temp variables to avoid repeated calls to Flength.
10231
10232 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10233
10234         * sysfile.h:
10235         Make sure PATH_MAX is always defined.
10236         Include limits.h for PATH_MAX.
10237         Deprecate use of MAXPATHLEN.
10238
10239 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10240
10241         * emacs.c: Add reinit_vars_of_fileio.
10242         * symsinit.h: Add reinit_vars_of_fileio.
10243         * fileio.c (reinit_vars_of_fileio): New.
10244         * fileio.c (Fmake_temp_name):
10245         Initialize temp_name random number from microseconds to make
10246         collisions even less likely.  Initialize always at process startup
10247         time.  (make-temp-name) used to return the same file name twice in
10248         a row when PDUMP.
10249         Random stylistic fiddling.
10250         Comment fixes.
10251
10252 2000-03-20  Andy Piper  <andy@xemacs.org>
10253
10254         * glyphs.c (image_instantiate): allow text glyphs to be
10255         instantiated in the minibuffer window.
10256
10257 2000-03-19  Andy Piper  <andy@xemacs.org>
10258
10259         * glyphs.c (image_instance_hash): be careful about which items we
10260         hash on.
10261
10262         * glyphs-widget.c (tab_control_set_property): record into pending
10263         items rather than the actual items.
10264
10265         * glyphs-x.c (x_update_widget): use pending items to update with.
10266
10267         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10268         to update with.
10269
10270         * glyphs.c (mark_image_instance): mark pending items.
10271
10272         * window.c (Fset_window_configuration): record the buffer.
10273         (Fselect_window): totally revert previous change which breaks many
10274         things.
10275
10276 2000-03-18  Andy Piper  <andy@xemacs.org>
10277
10278         * glyphs-msw.c (mswindows_tab_control_update): force selected
10279         item.
10280
10281         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10282         window domain cache, otherwise we get inconsistencies at
10283         startup. There is something fishy at startup which can lead to the
10284         minibuffer being the selected window when the gutter content is
10285         instantiated.
10286
10287         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10288         gcpros.
10289         (parse_gui_item_tree_children): ditto.
10290         (parse_gui_item_tree_item): ditto.
10291
10292         * glyphs.c (Fupdate_widget_instances): return something.
10293
10294 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10295
10296         * window.c (Fselect_window): Undo 2000-03-17 change.
10297
10298 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10299
10300         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10301         against v7.0 libraries.  Insta-coredump city until the postgres
10302         folks fix it.
10303
10304 2000-03-17  Andy Piper  <andy@xemacs.org>
10305
10306         * faces.c (complex_vars_of_faces): don't give the widget face an
10307         inherited background pixmap.
10308
10309         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10310         selected item.
10311
10312         * event-stream.c (Fdispatch_non_command_events): return something.
10313
10314         * gutter.c (output_gutter): use widget face.
10315         (clear_gutter): ditto.
10316
10317         * NEWS: adjust again.
10318
10319         * window.c (Fselect_window): make sure this runs to completion to
10320         avoid oddities with Fset_window_configuration.
10321         (Fcurrent_window_configuration): in general do not save the
10322         minibuffer as the selected window.
10323
10324         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10325
10326 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10327
10328         * emacs.c (Frunning_temacs_p): Revert previous patch.
10329         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10330
10331 2000-03-16  Andy Piper  <andy@xemacs.org>
10332
10333         * glyphs-x.c (x_tab_control_update): if no widget values then
10334         return.
10335
10336         * NEWS: update for new features.
10337
10338         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10339         synthetic event to the native system.
10340         (reinit_vars_of_event_Xt): set force_event_pending to
10341         emacs_Xt_force_event_pending.
10342
10343         * events.h (struct event_stream): add force_event_pending.
10344
10345         * specifier.c (recompute_one_cached_specifier_in_window): add
10346         comment.
10347
10348         * redisplay.c (redisplay_frame): don't call
10349         update_frame_subwindows. Reset subwindow cachels when
10350         subwindows_changed, removing this was an optimization too far.
10351
10352         * redisplay-output.c (compare_runes): reorganize so that we catch
10353         glyph changes when we want them. Set optimize_output when this
10354         would help layouts.
10355         (redisplay_output_layout): remove frame_really_changed, use
10356         optimize_output instead.
10357
10358         * redisplay-msw.c (mswindows_output_display_block): reset
10359         optimize_output after outputting a glyph.
10360         * redisplay-x.c (x_output_display_block): ditto.
10361         * redisplay-tty.c (tty_output_display_block): ditto.
10362
10363         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10364         functions.
10365         (gutter_specs_changed): do specific gutter positions.
10366         (top_gutter_specs_changed): new function. Only update the
10367         specified gutter specs.
10368         (bottom_gutter_specs_changed): ditto.
10369         (left_gutter_specs_changed): ditto.
10370         (right_gutter_specs_changed): ditto.
10371
10372         * gui.c (gui_item_hash_internal): new function, does a real hash.
10373         (gui_item_id_hash): use it.
10374         (gui_item_hash): hash the eval'ed gui_item.
10375
10376         * gui-x.c (popup_selection_callback): send an eval event to call
10377         Fupdate_widget_instances.
10378
10379         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10380         to call Fupdate_widget_instances.
10381
10382         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10383         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10384
10385         * glyphs.c: (update_frame_subwindows): deleted.
10386         (Fupdate_widget_instances): new function for updating the dirty
10387         state of widgets that might have changed.
10388         (syms_of_glyphs): add Qupdate_widget_instances.
10389         (full_list_hash): hash a list completely.
10390         (image_instance_hash): use it for items and properties.
10391
10392         * frame-msw.c (mswindows_size_frame_internal): remove unused
10393         variable.
10394
10395         * faces.h (struct face_cachel): fix comment.
10396
10397         * event-stream.c (Fdispatch_non_command_events): new
10398         function. Process non-command events, forcing an event cycle
10399         beforehand.
10400         (syms_of_event_stream): declare.
10401         (event_stream_force_event_pending): new function. Force an event
10402         on the native event queue so that an event cycle will occur next
10403         time we check.
10404
10405         * event-msw.c:
10406         (struct ntpipe_shove_stream):
10407         (mswindows_enqueue_dispatch_event):
10408         (mswindows_dequeue_dispatch_event):
10409         (mswindows_cancel_dispatch_event):
10410         (mswindows_pump_outstanding_events):
10411         (mswindows_drain_windows_queue):
10412         (mswindows_handle_paint):
10413         (mswindows_wnd_proc):
10414         (mswindows_key_to_emacs_keysym):
10415         (get_process_input_waitable):
10416         (emacs_mswindows_delete_stream_pair): re-indent file.
10417         (mswindows_need_event): do not process further fds if the windows
10418         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10419         fixes the 100% cpu problem.
10420         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10421
10422 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10423
10424         * alloc.h: New.
10425         * dumper.h: New.
10426         * dumper.c: New.
10427
10428         * emacs.c: Moved dump file searching to dumper.c.
10429         (Frunning_temacs_p): Fixed.
10430
10431         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10432         last_lrecord_type_index_assigned.
10433
10434 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10435
10436         * symsinit.h: Added reinit parameter to init_console_stream
10437         declaration.
10438
10439         * lisp.h: Added file parameter to pdump_load declaration.
10440
10441         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10442         support.  Added dump file searching.
10443
10444         * config.h.in: Added EMACS_PROGNAME.
10445
10446         * console-stream.c (init_console_stream): Fix reinitialisation
10447         when running from temacs.
10448
10449         * alloc.c (pdump): Add id support.
10450         (pdump_load): Add file parameter and signature/id support.
10451
10452         * Makefile.in.in: Add full pdump support.
10453
10454 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10455
10456         * postgresql.c: Update documentation to reflect latest code
10457         status.
10458         (print_result): Show tuple counts in printed representation when
10459         appropriate.
10460         (Fpq_put_nbytes): MULE-ize.
10461         (Fpq_get_line_async): Ditto.
10462
10463 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10464
10465         * postgresql.c (Fpq_lo_import): Fix return value.
10466         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10467
10468 2000-03-13  Ben Wing  <ben@xemacs.org>
10469
10470         * alloc.c (pdump_load):
10471         Fix compile warning under mswin.
10472
10473 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10474
10475         * postgresql.c: Mule-ization, bug fixes.
10476         Use PG_CODING to encapsulate coding system name changes.
10477         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10478         (pg-coding-system): Create.
10479
10480         (Fpq_conn_defaults): Mule-ize.
10481         (Fpq_connectdb): Mule-ize & bug fix.
10482         (Fpq_connect_start): Mule-ize.
10483         (Fpq_set_client_encoding): Mule-ize.
10484         (Fpq_finish): Document `DEAD' connection status.
10485         (Fpq_clear): Ditto.
10486         (Fpq_pgconn): Mule-ize.
10487         (Fpq_exec): Mule-ize & bug fix.
10488         (Fpq_send_query): Ditto.
10489         (Fpq_get_result): Ditto.
10490         (Fpq_res_status): Mule-ize.
10491         (Fpq_result_error_message): Mule-ize.
10492         (Fpq_ntuples): fix comments.
10493         (Fpq_fname): Mule-ize.
10494         (Fpq_fnumber): Mule-ize.
10495         (Fpq_ftype): fix comments.
10496         (Fpq_get_value): Mule-ize.
10497         (Fpq_cmd_status): Ditto.
10498         (Fpq_cmd_tuples): Ditto.
10499         (Fpq_oid_value): Ditto.
10500         (Fpq_notifies): Ditto.
10501         (Fpq_lo_import): Ditto.
10502         (Fpq_lo_export): Ditto.
10503         (Fpq_get_line): Ditto.
10504         (Fpq_put_line): Mule-ize and bug fix.
10505         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10506
10507 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10508
10509         * postgresql.c (vars_of_postgresql): Mule-ize.
10510         (Fpq_conn_defaults): Ditto.
10511
10512 2000-03-12  Ben Wing  <ben@xemacs.org>
10513
10514         * alloc.c (Fmake_byte_code):
10515         * alloc.c (debug_string_purity_print):
10516         * alloc.c (pdump_backtrace):
10517         * alloc.c (pdump_get_indirect_count):
10518         * alloc.c (pdump_register_sub):
10519         * alloc.c (pdump_register_object):
10520         * alloc.c (pdump_register_struct):
10521         * alloc.c (pdump_dump_data):
10522         * alloc.c (pdump_reloc_one):
10523         Minor cleanups.
10524
10525         * console-msw.c:
10526         * console-msw.c (GetConsoleHwnd):
10527         * console-msw.c (msw_hide_console):
10528         * console-msw.c (msw_show_console):
10529         * console-msw.c (msw_ensure_console_buffered):
10530         * console-msw.c (msw_output_console_string):
10531         * console-msw.c (console_type_create_mswindows):
10532
10533         a) Added functions to manipulate the console window for use with
10534         shell support.
10535
10536         b) Added support for writing text to the console, which is now
10537         used under Windows when xemacs is not being run non-interactively,
10538         to write text that would otherwise be destined for stdout because
10539         under these circumstances, text written to stdout tends to
10540         disappear and not be seen.
10541
10542         * console-msw.h:
10543         * event-Xt.c:
10544         * event-Xt.c (x_event_to_emacs_event):
10545         * event-Xt.c (describe_event_window):
10546         * events-mod.h (XEMACS_MOD_CONTROL):
10547         * events.c:
10548         * events.c (Fmake_event):
10549         * events.c (character_to_event):
10550         * events.c (event_to_character):
10551         * events.c (format_event_object):
10552         * events.c (Fevent_modifiers):
10553         * events.h:
10554         * events.h (struct key_data):
10555         * events.h (struct button_data):
10556         * events.h (struct misc_user_data):
10557         * frame-x.c (Fcde_start_drag_internal):
10558         * frame-x.c (Foffix_start_drag_internal):
10559         * gpmevent.c (Freceive_gpm_event):
10560         * keymap.c:
10561         * keymap.c (bucky_sym_to_bucky_bit):
10562         * keymap.c (control_meta_superify):
10563         * keymap.c (make_key_description):
10564         * keymap.c (keymap_lookup_directly):
10565         * keymap.c (create_bucky_submap):
10566         * keymap.c (keymap_store):
10567         * keymap.c (define_key_check_and_coerce_keysym):
10568         * keymap.c (define_key_parser):
10569         * keymap.c (define_key_alternate_name):
10570         * keymap.c (Fdefine_key):
10571         * keymap.c (raw_lookup_key_mapper):
10572         * keymap.c (struct map_keymap_unsorted_closure):
10573         * keymap.c (map_keymap_unsorted_mapper):
10574         * keymap.c (map_keymap_sort_predicate):
10575         * keymap.c (map_keymap_sorted):
10576         * keymap.c (accessible_keymaps_mapper_1):
10577         * keymap.c (where_is_recursive_mapper):
10578         * keymap.c (describe_map_mapper):
10579         * keymap.c (describe_map_sort_predicate):
10580         * keymap.c (describe_map):
10581         * keymap.c (complex_vars_of_keymap):
10582         And a number of other files, the key modifier preprocessor
10583         constants that xemacs uses have names that conflict with constants
10584         defined under MS Windows for other purposes, so they were renamed
10585         to begin with the prefix XEMACS_. The variables that hold such
10586         modifiers were changed to consistently be of type int to fix
10587         various compile warnings.
10588
10589         * console.c (complex_vars_of_console):
10590         * device.c:
10591         * device-msw.c:
10592         * device-msw.c (mswindows_finish_init_device):
10593         * device-msw.c (msw_get_workspace_coords):
10594         * device-msw.c (mswindows_device_system_metrics):
10595         and various other files, added support for a new
10596         device property called offset-workspace which returns the position
10597         of the upper left corner of the workspace area and goes along with
10598         the existing size-workspace property.
10599
10600         * dialog-msw.c:
10601         * dialog-msw.c (push_bufbyte_string_as_unicode):
10602         * dialog-msw.c (mswindows_popup_dialog_box):
10603         Added support for XEmacs-style accelerator specifications in
10604         button text.  Note: I didn't add support for this under X Windows,
10605         and somebody needs to do this.
10606
10607         * dialog.c:
10608         * dialog.c (Fpopup_dialog_box):
10609         Documented the support for accelerators that was just mentioned.
10610
10611         editfns.c (get_home_directory): Changed behavior under Windows
10612         when HOME not defined; former behavior was irretrievably broken.
10613
10614         * emacs.c:
10615         * emacs.c (main_1):
10616         * emacs.c (main):
10617         * minibuf.c (clear_echo_area_internal):
10618         * minibuf.c (echo_area_append):
10619         * print.c:
10620         * print.c (std_handle_out_external):
10621         * print.c (std_handle_out_va):
10622         * print.c (fatal):
10623         * print.c (write_string_to_stdio_stream):
10624         * print.c (output_string):
10625         * print.c (debug_print):
10626         * print.c (debug_backtrace):
10627         * print.c (debug_short_backtrace):
10628         Cleaned up the code that prints text to stdout so that this can be
10629         changed to output into a console window instead under MS Windows,
10630         as described above.
10631
10632         * eval.c:
10633         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10634         * eval.c (internal_catch):
10635         * eval.c (unwind_to_catch):
10636         * eval.c (throw_or_bomb_out):
10637         * eval.c (condition_case_1):
10638         * eval.c (signal_1):
10639         * eval.c (check_error_state_sanity):
10640         * eval.c (call_with_suspended_errors_1):
10641         * eval.c (call_with_suspended_errors):
10642         * eval.c (reinit_vars_of_eval):
10643         Added code to catch throw loops and check for a pesky bug that may
10644         be gone now.
10645
10646         * event-msw.c:
10647         * event-msw.c (key_needs_default_processing_p):
10648         * event-msw.c (mswindows_wnd_proc):
10649         * event-msw.c (mswindows_modifier_state):
10650         * event-msw.c (emacs_mswindows_quit_p):
10651         * event-msw.c (vars_of_event_mswindows):
10652         a) Added support for using the alt key to select menu items as is
10653         standard under MS Windows.  This is controlled using the variable
10654         menu-accelerator-enabled, just like under X Windows.  There is an
10655         option on the options menu to turn this support on.  I really
10656         think that it should be on by default under Windows, but I'm not
10657         going to make this change yet.
10658
10659         b)  Added support for dynamic display size changes under Windows.
10660
10661         * event-stream.c:
10662         * event-stream.c (maybe_echo_keys):
10663         * event-stream.c (Fnext_event):
10664         * event-stream.c (command_builder_find_leaf):
10665         * event-stream.c (lookup_command_event):
10666         * event-stream.c (execute_command_event):
10667         * event-stream.c (pre_command_hook):
10668         * event-stream.c (post_command_hook):
10669         * event-stream.c (syms_of_event_stream):
10670         * event-stream.c (vars_of_event_stream):
10671         * event-stream.c (complex_vars_of_event_stream):
10672         * events.h (struct command_builder):
10673
10674         a) Tried to clean up a little bit the horribly written x-specific
10675         accelerator code that crept into this file.  I moved this code
10676         into menubar-x.c where it belongs. I also needed to move the
10677         command builder structure into the file events.h because it is
10678         accessed directly by this accelerator code.  What I didn't do, but
10679         which should be done at some point, is to properly abstract this
10680         code using device methods instead of the kludgy way that it
10681         currently hooks into the event code.
10682
10683         b) Added the lisp variables this-command-properties and
10684         last-command- properties, which should be used to synchronize two
10685         adjacent commands in preference to playing games with the variable
10686         this-command, which is typically what happens.
10687
10688         c) Added some slightly nasty code to hook into the lisp support
10689         for shifted- motion-key selection.  This is actually necessary for
10690         somewhat complicated reasons, which are described in
10691         simple.el. (NB: I think the proper thing would be to have the code
10692         that calls the pre and post command hooks also call out to generic
10693         lisp functions in simple.el, where all built-in stuff could be
10694         added.  I will think about this more.)
10695
10696         * event-unixoid.c (poll_fds_for_input):
10697         * lread.c (readchar):
10698         * redisplay-tty.c (tty_clear_frame):
10699         * redisplay-x.c (x_get_gc):
10700         * signal.c (interrupt_signal):
10701         And a whole bunch of other files: fixed up places that printed
10702         directly to stderr to instead call the function stderr_out so that
10703         the changes I made under Windows work correctly.
10704
10705         * filemode.c (mode_string):
10706         Warning fixes.
10707
10708         * frame-msw.c:
10709         * frame-msw.c (mswindows_size_frame_internal):
10710         Fixed the computation of frame size and position to keep the frame
10711         within the workspace area, rather than within the physical
10712         dimensions of the screen, so that the frame doesn't overlap window
10713         manager decorations, such as the start menu and toolbar, typically
10714         at the bottom of the screen.
10715
10716         * frame.c (vars_of_frame):
10717         Changed the default frame title format under MS Windows to consist
10718         of buffername-XEmacs, which is standard under MS Windows.  I think
10719         it might be a good idea to change this everywhere because I think
10720         it is superior to the current frame title format, but this is the
10721         kind of change that is likely to cause some people to get annoyed,
10722         so I'm not making it.
10723
10724         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10725
10726         * gui-msw.c (mswindows_handle_gui_wm_command):
10727         Fixed compile warnings.
10728
10729         * gui-x.c:
10730         * gui-x.c (strdup_and_add_accel):
10731         * gui-x.c (button_item_to_widget_value):
10732         * gui-x.h:
10733         Added code to automatically put an accelerator onto the beginning
10734         of menu items that don't have one as is now the standard, and is
10735         described more later.  Also fixed things so that the menu item
10736         name can be an evaluated expression, again a new standard.
10737
10738         * gui.c:
10739         * gui.c (gui_item_add_keyval_pair):
10740         * gui.c (make_gui_item_from_keywords_internal):
10741         * gui.c (gui_add_item_keywords_to_plist):
10742         * gui.c (gui_item_accelerator):
10743         * gui.c (gui_name_accelerator):
10744         * gui.c (gui_item_included_p):
10745         * gui.c (gui_item_display_flush_left):
10746         * gui.c (gui_item_display_flush_right):
10747         * gui.c (parse_gui_item_tree_item):
10748         * gui.c (parse_gui_item_tree_children):
10749         * gui.c (parse_gui_item_tree_list):
10750         Mule-ized.  Cleanup.  GCPRO addition.
10751
10752         * line-number.c (buffer_line_number):
10753         * lisp.h:
10754         * lisp.h (EMACS_INT_MAX):
10755         Added the manifest constant EMACS_INT_MIN corresponding to the
10756         existing constant EMACS_INT_MAX.  This is partially to fix compile
10757         warnings under Windows, and partly for cleanliness.
10758
10759         * menubar-msw.c:
10760         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10761         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10762         * menubar-msw.c (displayable_menu_item):
10763         * menubar-msw.c (populate_menu_add_item):
10764         * menubar-msw.c (populate_or_checksum_helper):
10765         * menubar-msw.c (populate_menu):
10766         * menubar-msw.c (update_frame_menubar_maybe):
10767         * menubar-msw.c (prune_menubar):
10768         * menubar-msw.c (msw_char_is_accelerator):
10769         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10770         * menubar-msw.c (mswindows_handle_wm_command):
10771         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10772         * menubar-msw.c (mswindows_handle_wm_initmenu):
10773         * menubar-msw.c (mswindows_update_frame_menubars):
10774         * menubar-msw.c (mswindows_free_frame_menubars):
10775         * menubar-msw.c (mswindows_popup_menu):
10776         Fixed a bug in handling accelerators where an extra character
10777         would be displayed in the menu item.  Also generalized the
10778         function displayable_menu_item because it is now used by the
10779         dialog box code as well.  And finally, added code in the functions
10780         that create the menubar to extract a list of accelerators for the
10781         top level menubar, which is used in the event code to determine
10782         whether a particular alt-key combination should be used to invoke
10783         a menu item, or should be passed through to access the standard
10784         XEmacs keymap binding for this key combination.
10785
10786         Much needed GCPROing.
10787
10788         * menubar-x.c:
10789         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10790         * menubar-x.c (menu_item_descriptor_to_widget_value):
10791         * menubar-x.c (restore_in_menu_callback):
10792         * menubar-x.c (x_popup_menu):
10793         * menubar-x.c (menu_move_up):
10794         * menubar-x.c (menu_move_down):
10795         * menubar-x.c (menu_move_left):
10796         * menubar-x.c (menu_move_right):
10797         * menubar-x.c (menu_select_item):
10798         * menubar-x.c (command_builder_operate_menu_accelerator):
10799         * menubar-x.c (menu_accelerator_junk_on_error):
10800         * menubar-x.c (command_builder_find_menu_accelerator):
10801         * menubar-x.c (Faccelerate_menu):
10802         * menubar.h:
10803         Moved a whole bunch of code here that was previously in
10804         event-stream.c as described above.  There is also code connected
10805         to the new standard of adding an accelerator to the beginning of
10806         menu items that don't have one as described above and below.
10807
10808         * menubar.c:
10809         * menubar.c (menu_parse_submenu_keywords):
10810         * menubar.c (Fmenu_find_real_submenu):
10811         * menubar.c (Fnormalize_menu_item_name):
10812         * menubar.c (syms_of_menubar):
10813         * menubar.c (vars_of_menubar):
10814         * menubar.c (complex_vars_of_menubar):
10815
10816         a) Cleaned up a bunch of documentation and improved it.
10817
10818         b) XEmacs now automatically adds an accelerator onto the beginning
10819         of any menu items that don't have one.  I did this because there
10820         will inevitably be some menu items on the main menubar that don't
10821         have accelerators on them because the package that adds that
10822         particular menu item hasn't yet been fixed up to have accelerators
10823         in them and it looked rather strange to have some items with and
10824         some items without accelerators, especially since even in items
10825         without accelerators, you can, at least under windows, still
10826         access the item through an accelerator corresponding to the first
10827         character in the item's name.  If people don't like this behavior,
10828         I can add a variable to turn it off optionally, but I'm not sure
10829         this is a good idea because we really do need to have accelerators
10830         on all of the menu items, and if a package doesn't like the
10831         accelerators being put on the first character, then it should put
10832         the accelerators where they belong.
10833
10834         c) I made a behavior change, which is that the descriptor that
10835         specifies the text of the menu item, which formerly was just a
10836         string, can now also be an evaluated expression.  This makes this
10837         descriptor parallel with all of the others, which could also be
10838         evaluated expressions.  This also obviates the need for the
10839         keyword :label, which was previously listed in the documentation
10840         as unimplemented, and which was for the same purpose.
10841
10842         d) GCPROing.
10843
10844         * ntproc.c:
10845         * ntproc.c (new_child):
10846         * ntproc.c (sys_spawnve):
10847         * ntproc.c (find_child_console):
10848         * ntproc.c (sys_kill):
10849         Fixed compile warnings.  By the way, this file should really go
10850         away entirely, and this will happen as soon as Kirill makes his
10851         final round of process cleanups, which affect the function
10852         call-process.
10853
10854         * process-nt.c:
10855         * process-nt.c (struct nt_process_data):
10856         * process-nt.c (find_process_from_pid):
10857         * process-nt.c (send_signal_the_nt_way):
10858         * process-nt.c (enable_child_signals):
10859         * process-nt.c (find_child_console):
10860         * process-nt.c (send_signal_the_95_way):
10861         * process-nt.c (nt_finalize_process_data):
10862         * process-nt.c (ensure_console_window_exists):
10863         * process-nt.c (nt_create_process):
10864         * process-nt.c (nt_kill_child_process):
10865         * process-nt.c (nt_kill_process_by_pid):
10866         * process-nt.c (nt_open_network_stream):
10867         * process-nt.c (vars_of_process_nt):
10868         Copied over code from Emacs 20.5 to correctly send signals to sub-
10869         processes under Windows 95.  Also added code to automatically
10870         create and hide console window when a sub-process is created under
10871         Windows 95, which obviates the need for the separate runemacs.exe
10872         executable, and finally implemented some variables that were
10873         implemented in Emacs 20.5, but previously not in XEmacs.  These
10874         include mswindows- start-process-share-console and
10875         mswindows-start-process-inherit-error-mode. (Both of these only
10876         apply to Windows 95.)
10877
10878         * regex.c (regex_compile): Fixed a compile warning.
10879
10880         * select-msw.c:
10881         * select-msw.c (mswindows_own_selection):
10882         * select-msw.c (mswindows_get_foreign_selection):
10883         * select-msw.c (mswindows_disown_selection):
10884         * select-msw.c (console_type_create_select_mswindows):
10885         * select-msw.c (syms_of_select_mswindows):
10886         Cleaned up the file and implemented the device method
10887         selection_exists_p, which had accidentally been left out.  Also
10888         removed four lisp functions that were remnants from before the
10889         time when the selection code was properly device abstracted.
10890         These functions are no longer needed because there are generic
10891         equivalents, and because they were added recently and don't exist
10892         in FSF Emacs, I don't think there's any problem with just deleting
10893         them.
10894
10895         * sysdep.c:
10896         * sysdep.c (sys_subshell):
10897         Fixed a compile warning, although in this case there's probably
10898         something wrong with this code, and it ought to be looked into
10899         more thoroughly by somebody who understands it.
10900
10901         * window.c:
10902         * window.c (Fwindow_text_area_height):
10903         * window.c (Fwindow_width):
10904         * window.c (Fwindow_full_width):
10905         * window.c (Fwindow_pixel_width):
10906         * window.c (debug_print_window):
10907         * window.c (syms_of_window):
10908         Added functions window-text-area-height and window-full-width,
10909         which are functions for returning various width and height
10910         characteristics of a window. (One of these functions is necessary
10911         for making the file dialog box work correctly, and the other one
10912         was added for completeness.)  Also added a table to the
10913         documentation for window-height which describes the entire scheme
10914         for accessing width and height characteristics of a window.
10915
10916 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10917
10918         * nt.c (fstat): Added a comment for another problem with
10919         non-encapsulated [f]stat(), reported by Adrian Aichner
10920         <aichner@ecf.teradyne.com>.
10921
10922 2000-03-11  Andy Piper  <andy@xemacs.org>
10923
10924         * window.c (make_dummy_parent): initialize subwindow instance
10925         cache.
10926         (Fset_window_configuration): zero extent_modiff.
10927
10928 2000-03-10  Andy Piper  <andy@xemacs.org>
10929
10930         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10931         more changes can be triggered.
10932         (Fredisplay_frame): ditto.
10933         (Fredraw_device): ditto.
10934         (Fredisplay_device): ditto.
10935         (redisplay_frame): make non-static.
10936         (redisplay_frame): call update_frame_gutter_geometry outside of
10937         display proper.
10938
10939         * gutter.h: declare update_frame_gutter_geometry.
10940
10941         * redisplay.h: declare redisplay_frame.
10942
10943         * gutter.c (update_frame_gutter_geometry): move geometry changes
10944         in update_frame_gutters here. Geometry changes can only occur
10945         outside of redisplay.
10946         (update_frame_gutters): remove geometry change code.
10947         (Fredisplay_gutter_area): make sure that we are in display when we
10948         update and that we have flushed any size changes.
10949
10950 2000-03-11  Andy Piper  <andy@xemacs.org>
10951
10952         * alloc.c (pdump_dump_data): remove i & count shadows.
10953
10954 2000-02-27  Mike Alexander  <mta@arbortext.com>
10955
10956         * sysdep.h: Declare pdump_read_file
10957
10958         * sysdep.c (pdump_read_file): New function
10959
10960         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10961         dump data
10962
10963 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10964
10965         * lrecord.h: add `lrecord_type_pgsetenv'.
10966
10967 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10968
10969         * symsinit.h: declare (vars|syms)_of* functions.
10970         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10971
10972 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10973
10974         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10975
10976         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10977         GCCs.
10978
10979         * emacs.c (main_1): Call postgres initialization code.
10980
10981         * postgresql.h: New file.  PostgreSQL RDBMS support.
10982         * postgresql.c: New file.
10983
10984 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10985
10986         * redisplay-output.c (redisplay_output_display_block): Disable
10987         redundant code.
10988
10989 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10990
10991         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10992         (Fcanna_henkan_next): Ditto.
10993         (Fcanna_bunsetu_henkou): Ditto.
10994         (Fcanna_henkan_kakutei): Ditto.
10995         (Fcanna_henkan_end): Ditto.
10996         (Fcanna_henkan_quit): Ditto.
10997         (Fcanna_henkan_next): Set retun value correctly.
10998         (c2mu): Use unsigned char instead of signed char.
10999
11000 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11001
11002         * emacs.c (main_1): Always call syms_of_gui.
11003         * inline.c: include gui.h
11004
11005 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11006
11007         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11008         converted to Lisp_Object.
11009         (Qtop_bottom): New variable.
11010         (syms_of_redisplay): Initialize it.
11011         * redisplay.h (Vvisible_bell): Ditto.
11012         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11013         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11014         only flash top and bottom.
11015
11016 2000-03-08  Andy Piper  <andy@xemacs.org>
11017
11018         * buffer.c (Frename_buffer): record new buffer name the right way.
11019
11020 2000-03-08  Andy Piper  <andy@xemacs.org>
11021
11022         * glyphs.c (update_subwindow): increase hash depth so that widget
11023         items get picked up properly.
11024
11025         * redisplay-output.c (compare_runes): increase hash depth so that
11026         widget items get picked up properly.
11027
11028 2000-03-08  Andy Piper  <andy@xemacs.org>
11029
11030         * gutter.c (output_gutter): add some debug.
11031
11032         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11033         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11034         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11035
11036         * redisplay-output.c (compare_runes): use display_hash to
11037         determine if glyphs really are not the same.
11038
11039         * glyphs.c (update_subwindow): check display_hash to see if
11040         anything really needs to be updated. If not then do
11041         nothing. Record the display_hash after updating.
11042         (image_instance_equal): compare the image_instance face also.
11043
11044 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11045
11046         * redisplay.h: Fix comment style.
11047
11048 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11049
11050         * consle-msw.h (struct mswindows_frame):
11051         Added new member paint_pending to indicate whether a WM_PAINT
11052         magic event has been queued for this frame.
11053
11054         * event-msw.c (mswindows_drain_windows_queue):
11055         Don't queue a WM_PAINT magic event if one is already queued.
11056         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11057
11058         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11059
11060 2000-03-07  Didier Verna  <didier@xemacs.org>
11061
11062         * dired.c: #include `regex.h' after `sysfile.h'.
11063
11064 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11065
11066         * sound.c (init_nas_sound): Fix compiler warning.
11067
11068         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11069         (FREE_STRUCT_P):
11070         (MARK_STRUCT_AS_FREE):
11071         (MARK_STRUCT_AS_NOT_FREE):
11072         Make `gcc -fstrict-aliasing' work properly.
11073
11074 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11075
11076         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11077         (mswindows_delete_device): Call CoUnnitialize().
11078
11079         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11080
11081 2000-02-25    <CraigL@DyCon.com>
11082
11083         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11084         <errno.h>.
11085
11086         * sysdep.c: This extern declaration for environ prevents MinGW
11087         from finding the variable in CRTDLL.DLL.
11088
11089         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11090         windows headers.
11091         (SHGFI_EXETYPE): ..
11092         (WM_MOUSEWHEEL): ..
11093         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11094         definitions.
11095         (MMRESULT): Removed, now defined in cygwin's windows headers.
11096         (TIMECAPS): ..
11097         (uid_t,gid_t,pid_t,ssize_t): ..
11098         (_timeb): Removed, MinGW defines both _timeb and timeb.
11099         (HAVE_H_ERRNO): Added.
11100         (HAVE_TZNAME): Added, configure is not detecting this.
11101
11102 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11103
11104         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11105         * syntax.c (syntax_match): Use it.
11106
11107         * cmds.c: Import auto-fill-chars from FSF Emacs.
11108         (Vauto_fill_chars): New variables.
11109         (internal_self_insert): Check Vauto_fill_chars.
11110         (vars_of_cmds):
11111         Declare auto-fill-chars as a Lisp variable and initialize it.
11112
11113 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11114
11115         * fileio.c (Fmake_symbolic_link):
11116         (Ffile_symlink_p):
11117         Run handlers even if local machine doesn't have symlinks.
11118
11119 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11120
11121         * event-msw.c (mswindows_drain_windows_queue):
11122         Don't generate paint magic events for non-XEmacs frames.
11123
11124 2000-03-05  Andy Piper  <andy@xemacs.org>
11125
11126         * redisplay.c (redisplay_frame): generate_displayable_area and
11127         friends assumes that we are not in GC, we therefore have to make
11128         sure that this doesn't happen.
11129
11130         * gutter.c (calculate_gutter_size): generate_displayable_area
11131         assumes that we are not in GC, we therefore have to make sure that
11132         this doesn't happen.
11133
11134 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11135
11136         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11137
11138 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11139
11140         * redisplay.c (regenerate_window): Make sure we set a sane value
11141         for end_pos even if we jump out of the loop.
11142         (regenerate_window): Answer Ben's question :-).
11143         (start_end_of_last_line): Add may_error argument.
11144         (start_of_last_line):
11145         (end_of_last_line): Pass may_error = 0.
11146         (end_of_last_line_may_error): New function.
11147         (pixel_to_glyph_translation): Use it, so we don't crash in
11148         event_to_glyph.
11149
11150 2000-03-04  Andy Piper  <andy@xemacs.org>
11151
11152         * window.h (struct window): add gutter_extent_modiff.
11153
11154         * window.c (allocate_window): zero out gutter_extent_modiff.
11155
11156         * redisplay.h: declare sync_display_line_structs.
11157
11158         * redisplay.c (add_glyph_rune): add a better comment.
11159
11160         * redisplay-output.c (sync_display_line_structs): made non-static.
11161         (compare_runes): remove unneccesary glyph cachel access.
11162
11163         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11164
11165         * gutter.c (output_gutter): don't output the gutter if extent
11166         changes only involve extents in buffers. use 4 sets of display
11167         lines.
11168         (gutter_extent_signal_changed_region_maybe): new function. Mark
11169         extents in gutters as changed.
11170         (update_frame_gutters): use 4 sets of display lines.
11171         (reset_gutter_display_lines): ditto.
11172         (free_frame_gutters): ditto.
11173         (redraw_exposed_gutter): force output of gutters.
11174
11175         * frame.h (struct frame): add 4 sets of gutter display lines.
11176
11177         * extents.c: (extent_changed_for_redisplay): signal changes to
11178         extents in strings in the gutter as well as extents in buffers.
11179
11180 2000-03-02  Andy Piper  <andy@xemacs.org>
11181
11182         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11183
11184         * frame.c (Fmake_frame): make sure the gutters get initialized
11185         after the frame is visible.
11186         (set_frame_selected_window): re-arrange compilation macros a
11187         little.
11188         (change_frame_size_1): mark gutters changed.
11189
11190         * device.c (Fset_device_class): mark gutters changed.
11191
11192 2000-03-01  Andy Piper  <andy@xemacs.org>
11193
11194         * window.c (window_top_frame_gutter_height): deleted.
11195         (window_bottom_frame_gutter_height): ditto.
11196         (window_left_frame_gutter_height): ditto.
11197         (window_right_frame_gutter_height): ditto.
11198         (window_top_gutter_height): don't use them.
11199         (window_bottom_gutter_height): ditto.
11200         (window_left_gutter_width): ditto.
11201         (window_right_gutter_width): ditto.
11202         (Fsplit_window): ditto.
11203         (Fwindow_pixel_edges): don't use border dimensions here.
11204
11205         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11206         (update_scrollbar_instance): ditto.
11207
11208         * redisplay.c (generate_modeline): don't take gutters into account.
11209         (generate_modeline): ditto.
11210         (redisplay_frame): small gutter display optimization.
11211
11212         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11213
11214         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11215         gutters into account.
11216
11217         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11218         for window position and type.
11219
11220         * gutter.c (get_gutter_coords): fix for frame gutters.
11221         (update_frame_gutters): update frame geometry if the gutters have
11222         changed.
11223         (init_frame_gutters): record current gutter geometries.
11224
11225         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11226         var.
11227         (mswindows_widget_instantiate): ditto.
11228
11229         * frame.h (struct frame): add current_gutter_bounds.
11230
11231         * frame.c (change_frame_size_1): position window and minibuffer
11232         appropriately taking into account the frame gutters.
11233
11234         * frame-x.c: (x_initialize_frame_size): take into account the
11235         frame gutters.
11236
11237 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11238
11239         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11240
11241 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11242
11243         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11244
11245 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11246
11247         * file-coding.c (reset_decoding_stream): Clear previous
11248         detection state when autodetect.
11249
11250 2000-02-29  Didier Verna  <didier@xemacs.org>
11251
11252         * extents.c (set_extent_glyph_1): don't require extents to be
11253         attached.
11254
11255 2000-02-27  Andy Piper  <andy@xemacs.org>
11256
11257         * gutter.c (Fset_default_gutter_position): don't default left and
11258         right gutter visibility to t.
11259         (Fset_default_gutter_position): run
11260         default-gutter-position-changed-hook.
11261         (syms_of_gutter): add default-gutter-position-changed-hook.
11262
11263 2000-02-26  Andy Piper  <andy@xemacs.org>
11264
11265         * specifier.c (Fmake_specifier): add gutter references.
11266
11267         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11268
11269         * lisp.h: declare Fvalid_plist_p.
11270
11271         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11272         as changed.
11273         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11274         well as its visibility so that it gets reconstructed.
11275         (construct_window_gutter_spec): new function. Construct a string
11276         to be displayed in the gutter from a plist of strings. Take care
11277         to only use elements that are declared as visible.
11278         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11279         WINDOW_GUTTER.
11280         (gutter_validate): allow plists of strings in the specifier.
11281         (gutter_specs_changed): construct the real_gutter from the gutter
11282         specs using construct_window_gutter_spec.
11283         (gutter_visible_validate): gutter-visible is a new specifier type.
11284         (Fgutter_visible_specifier_p): new function for the new specifier.
11285         (syms_of_gutter): declare gutter-visible and
11286         Fgutter_visible_specifier_p.
11287         (specifier_type_create_gutter): intitalize new gutter-visible
11288         specifier.
11289         (reinit_specifier_type_create_gutter): ditto.
11290         (specifier_vars_of_gutter): use new specifier type for gutter
11291         visibility.
11292         (init_frame_gutters): construct real_gutter correctly.
11293         (Fgutter_specifier_p): beef up documentation.
11294         (Fgutter_size_specifier_p): ditto.
11295
11296         * winslots.h: add real_gutter slots.
11297
11298 2000-02-25  Andy Piper  <andy@xemacs.org>
11299
11300         * device-msw.c: Be kind to older cygwin versions. From Raymond
11301         Toy <toy@rtp.ericsson.se>.
11302
11303         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11304         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11305
11306 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11307
11308         * elhash.c (MARK_OBJ): Practice macro hygiene.
11309
11310 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11311
11312         * miscplay.c: s/__inline__/inline/g;
11313         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11314         (get_device_compdc): INLINE ==> static inline
11315         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11316         find -name '*.h' | \
11317         xargs global-replace \
11318         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11319
11320 2000-02-25  Andy Piper  <andy@xemacs.org>
11321
11322         * window.c (window_top_frame_gutter_height): new function.
11323         (window_top_window_gutter_height): ditto.
11324         (window_top_gutter_height): use them.
11325         (window_bottom_frame_gutter_height): new function.
11326         (window_bottom_window_gutter_height): ditto.
11327         (window_bottom_gutter_height): use them.
11328         (window_left_window_gutter_width): new function.
11329         (window_left_frame_gutter_width): ditto.
11330         (window_left_gutter_width): use them.
11331         (window_right_window_gutter_width): new function.
11332         (window_right_frame_gutter_width): ditto.
11333         (window_right_gutter_width): use them.
11334         (window_pixel_height): new function. calulate window pixel height
11335         with frame gutter involvement.
11336         (Fsplit_window): calculate new sizes taking frame gutters into
11337         account.
11338         (window_char_height_to_pixel_height): don't include frame gutters.
11339         (window_char_height): use window_pixel_height.
11340         (window_pixheight): rename from window_pixel_height.
11341         (change_window_height): use it.
11342         (window_pixel_height_to_char_height): don't include frame gutters.
11343         (window_char_width_to_pixel_width): ditto.
11344
11345 2000-02-25  Andy Piper  <andy@xemacs.org>
11346
11347         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11348         if it is.
11349
11350 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11351
11352         * alloc.c (staticpro):
11353         (staticpro_nodump):
11354         (dumpstruct):
11355         (dumpopaque):
11356         (pdump_wire):
11357         (pdump_wire_list):
11358         (compact_string_chars):
11359         (pdump_dump_wired):
11360         Convert:  if (foo) abort();  ==>  assert (! foo);
11361
11362         * eldap.c (Fldap_search_basic):
11363         (Fldap_add):
11364         (Fldap_modify):
11365         (Fldap_delete):
11366         Fix compiler warnings, and possible crashes if (random) return
11367         value were to be used.
11368
11369 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11370
11371         * device-msw.c: Workaround ResetDC failure.
11372
11373         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11374         applying a devmode.
11375
11376         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11377         (mswindows_text_width): Do not start printer page.
11378
11379         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11380
11381         * glyphs-msw.c: Added image methods to msprinter console and
11382         msprinter-specific image instantiation.
11383
11384 2000-02-20  Mike Alexander  <mta@arbortext.com>
11385
11386         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11387         to avoid crashes when selection-sets-clipboard is on
11388         (mswindows_own_selection): ditto
11389
11390 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11391
11392         * glyphs-msw.c:
11393         * redisplay-msw.c (get_frame_dc):
11394         (get_frame_compdc):
11395         * console-msw.h:
11396         * device-msw.c (mswindows_init_device):
11397         (mswindows_delete_device):
11398         (msprinter_init_device):
11399         (msprinter_delete_device):
11400         * frame-msw.c (mswindows_init_frame_1):
11401         (mswindows_delete_frame):
11402         (msprinter_init_frame_3):
11403         (msprinter_delete_frame): Move compatible DC to device object from
11404         frame object, for both mswindows and msprinter. Only one at a time
11405         is needed, it is a real waste to have one per frame!
11406
11407 2000-02-23  Andy Piper  <andy@xemacs.org>
11408
11409         * glyphs.c: add dynamic width and height elements.
11410         (image_instance_equal): ditto.
11411
11412         * glyphs-widget.c (widget_query_geometry): calculate width and
11413         height dynamically if required.
11414         (initialize_widget_image_instance): initialize dynamic dimensions.
11415         (widget_instantiate): pick-up dynamic dimensions.
11416
11417         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11418         dynamic determination. Add appropriate macros.
11419
11420         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11421         dimensions safe.
11422         (WINDOW_GUTTER_SIZE): ditto.
11423         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11424
11425         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11426         inline.
11427         (get_frame_dc): ditto.
11428
11429         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11430         here.
11431
11432 2000-02-23  Martin Buchholz <martin@xemacs.org>
11433
11434         * XEmacs 21.2.31 is released.
11435
11436 2000-02-22  Ben Wing <ben@xemacs.org>
11437
11438         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11439
11440 2000-02-22  Andy Piper  <andy@xemacs.org>
11441
11442         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11443
11444 2000-02-21  Mike Sperber <mike@xemacs.org>
11445
11446         * .dbxrc:
11447         * .gdbinit:
11448         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11449         variables.
11450
11451 2000-02-21  Mike Sperber <mike@xemacs.org>
11452
11453         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11454
11455 2000-02-21  Martin Buchholz <martin@xemacs.org>
11456
11457         * XEmacs 21.2.30 is released.
11458
11459 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11460
11461         Performance hacking.
11462         * *.c (syms_of_*):
11463         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11464         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11465         * emacs.c (main_1):
11466         * lisp.h (DEFUN):
11467         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11468         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11469         * symeval.h (DEFVAR_SYMVAL_FWD):
11470         * symbols.c (guts_of_unbound_marker):
11471         Make all c_readonly objects also lisp_readonly and marked for life.
11472         * lrecord.h (struct lrecord_implementation):
11473         Document flags better.
11474         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11475         * lrecord.h (DECLARE_LRECORD):
11476         * lrecord.h (XSETRECORD):
11477         * lrecord.h (RECORDP):
11478         * lrecord.h (RECORD_TYPEP):
11479         * lrecord.h (RECORD_MARKER): New.
11480         * lrecord.h (error_check_*):
11481         * lrecord.h (CONCHECK_NONRECORD):
11482         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11483         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11484         * lrecord.h (set_lheader_implementation):
11485         * lrecord.h (enum lrecord_type): New.
11486         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11487         * alloc.c (disksave_object_finalization_1):
11488         * alloc.c (mark_object):
11489         * alloc.c (lrecord_type_index):
11490         * alloc.c (tick_lcrecord_stats):
11491         * alloc.c (Fgarbage_collect):
11492         * alloc.c (init_alloc_once_early):
11493         * alloc.c (pdump_load):
11494         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11495         * alloc.c (lrecord_type_index): Delete.
11496         Make lisp object type indexes be constant.
11497           Makes (byte-compile) 5% faster.
11498         Put all marker functions into their own array.
11499           Makes (garbage-collect) 5% faster.
11500         Optimize SYMBOL_VALUE_MAGIC_P.
11501           Makes (byte-compile) 2-3% faster.
11502         * config.h.in (gc_checking_assert): New.
11503         * alloc.c: Use gc_checking_assert().
11504         * .dbxrc: Make compatible with new object type implementation.
11505         * .gdbinit: Make compatible with new object type implementation.
11506         * alloc.c: Delete all symbols defined only for debugging, such as
11507         Lisp_Type_Vector and lrecord_charset.
11508
11509 2000-02-21  Andy Piper  <andy@xemacs.org>
11510
11511         * gui-msw.c (Fmswindows_shell_execute): fix file location
11512         problems.
11513
11514         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11515         unshowing so that set_window_buffer doesn't undo
11516         kill_buffer_hook's hard work.
11517
11518         * glyphs-widget.c (tab_control_query_geometry): don't count the
11519         first item when calculating geometry.
11520
11521         * glyphs.c (map_subwindow): remove redundant code.
11522         (update_frame_subwindows): be more circumspect about when to
11523         update subwindows.
11524
11525         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11526         when items haven't changed. Update faces if faces have changed as
11527         well as just the widget face.
11528         (x_tab_control_update): Update faces if faces have changed as well
11529         as just the widget face.
11530
11531 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11532
11533         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11534         registration.
11535         (build_syscolor_string): Use mswindows_color_to_string to try to
11536         get a named color.
11537         (mswindows_device_system_metrics): Reverse the foreground and
11538         background colors so that they match the documentation.
11539
11540         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11541         they match the default Windows palette.
11542         (mswindows_color_to_string): New function.
11543
11544 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11545
11546         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11547
11548 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11549
11550         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11551         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11552
11553         * symbols.c (init_symbols_once_early): Removed obsolete
11554         DATA_SEG_BITS related kludge.
11555         (defvar_magic): Ditto.
11556
11557         * malloc.c: Removed obsolete DATA_SEG_BITS
11558         * ralloc.c: Ditto.
11559         * mem-limits.h: Ditto.
11560
11561         * Makefile.in.in: Removed obsolete HAVE_SHM
11562         * emacs.c: Ditto.
11563
11564 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11565
11566         *  device-msw.c (mswindows_delete_device): Free DDE string
11567         handles.
11568
11569 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11570
11571         * keymap.c (get_keyelt):
11572         * unexnt.c (unexec):
11573         * vm-limit.c (memory_warnings):
11574         * ntheap.c (recreate_heap):
11575         * ntheap.h (UNINIT_PTR):
11576         * select-msw.c (Fmswindows_get_clipboard):
11577         (Fmswindows_set_clipboard):
11578         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11579         * objects-msw.c:
11580         * menubar-msw.c (displayable_menu_item):
11581         * glyphs-msw.c:
11582         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11583         * sysdep.c (sys_subshell):
11584         * process-nt.c (nt_create_process):
11585         * nt.c (normalize_filename):
11586         (dostounix_filename):
11587         (unixtodos_filename):
11588         * ntproc.c (win32_executable_type):
11589         * ntplay.c (play_sound_data_1):
11590         (play_sound_file):
11591         * editfns.c (get_home_directory):
11592         * event-msw.c (struct winsock_stream):
11593         (mswindows_dde_callback):
11594         * device-msw.c (msprinter_init_device):
11595         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11596
11597         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11598         mswindows_clear_toolbar were swapped!
11599
11600         * objects-msw.c:(colormap_t):
11601         (fontmap_t):
11602         * emacs.c (struct standard_args): Fixed const jumble.
11603
11604         * glyphs-widget.c (update_widget): Fixed comparison notation.
11605
11606         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11607
11608         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11609         __declspec(noreturn) syntax.
11610
11611 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11612
11613         * eldap.c (Fldap_open):
11614         (Fldap_search_basic):
11615         (Fldap_add):
11616         (Fldap_modify):
11617         Use new coding system conversion macros.
11618
11619 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11620
11621         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11622
11623 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11624
11625         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11626         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11627
11628         * eldap.c (Qadd, Qreplace): New constant symbols
11629         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11630         interruptions by XEmacs signals
11631         Remove unnecessary calls to slow_down_interrupts and
11632         speed_up_interrupts
11633         (Fldap_search_basic): Renamed from Fldap_search_internal
11634         Added new optional parameter VERBOSE that triggers the
11635         display of progress messages
11636         Remove unnecessary calls to slow_down_interrupts and
11637         speed_up_interrupts
11638         LDAP result code analysis rewritten
11639         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11640         (syms_of_eldap): Define the new symbols and functions
11641
11642
11643 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11644
11645         * realpath.c: Determine PATH_MAX maximally portably.
11646
11647         * insdel.c (bytecount_to_charcount): Optimize.
11648         The function used to be optimized for entirely ASCII sequences.
11649         Now it is optimized for successive characters from the same
11650         charset.  This also wins big for _mostly_ ASCII sequences.
11651
11652         * fileio.c (Ffile_truename): convert return from realpath() using
11653         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11654         - Rewrite GCPROing slightly.
11655
11656         * sysdep.c (sys_open): Do filename conversion, like all other
11657         sys_* functions.  Fixes bug:
11658         (let ((file-name-coding-system 'iso-8859-2))
11659            (write-region x y latin2-name))
11660         ==> writes filename using internal encoding.
11661
11662 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11663
11664         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11665         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11666         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11667         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11668         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11669         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11670         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11671         (CONST_IF_NOT_DEBUG): Delete.
11672         * alloc.c (this_one_is_unmarkable): Delete.
11673         (mark_object): Don't check for this_one_is_unmarkable. Use the
11674         c_readonly flag instead.
11675         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11676
11677 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11678
11679         * event-msw.c (mswindows_drain_windows_queue):
11680         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11681         away redundant repaint events.
11682
11683 2000-02-17  Andy Piper  <andy@xemacs.org>
11684
11685         * redisplay.h: declare mark_redisplay_structs.
11686
11687         * redisplay.c (redisplay_window):
11688         (redisplay_frame): don't check subwindows_state_changed.
11689         (mark_redisplay): mark gutters here.
11690
11691         * glyphs.c: (instantiate_image_instantiator): always layout if we
11692         haven't done so already.
11693         (allocate_image_instance): don't mark as dirty.
11694         (update_subwindow): bind inhibit_quit.
11695
11696         * gutter.c (mark_gutters): new function.
11697
11698         * glyphs-x.c (x_update_widget): Always resize to get round a
11699         widget bug.
11700
11701         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11702         breaking absolutely everything.
11703
11704         * gutter.h: declare mark_gutters.
11705
11706 2000-02-16  Martin Buchholz <martin@xemacs.org>
11707
11708         * XEmacs 21.2.29 is released.
11709
11710 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11711
11712         * fns.c (size_bit_vector): Fix computation of the size.
11713
11714 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11715
11716         * *.[ch]: Change CONST to const globally.
11717         find -name '*.[ch]' | \
11718         xargs global-replace \
11719         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11720         - Remove vestigial references to CONST_IS_LOSING
11721
11722 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11723
11724         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11725         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11726         events instead of dispatching them directly.
11727         (mswindows_handle_paint): New function to do repainting.
11728         (mswindows_wnd_proc):
11729         (emacs_mswindows_handle_magic_event): Call above function.
11730
11731 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11732
11733         * objects-msw.c (mswindows_create_font_variant): Return the new
11734         font handle.
11735         (initialize_font_instance): Get font metrics from the underlined
11736         variant of the font to cope with the case where the underlined
11737         font has a bigger descent.
11738
11739 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11740
11741         * gui.c (gui_item_accelerator): Return the first underlined
11742         character in item name.
11743
11744 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11745
11746         * lisp.h: Added Qprinter.
11747
11748         * general.c (syms_of_general): Initialized it.
11749
11750         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11751         (get_frame_dc):
11752         (get_frame_compdc): Made inline.
11753
11754         * console.h (struct console_methods): Added eject_page method.
11755
11756         * frame.h: Added FRAME_DISPLAY_P and friends.
11757         Aligned backslahes in many macros in more readable fashion.
11758         Added page_number to struct frame, and an accessor macro
11759         for it.
11760
11761         * defice.h: Added DEVICE_DISPLAY_P and friends.
11762
11763         * device.c (Fdevice_printer_p): Used these.
11764
11765         * frame.c (allocate_frame_core): Initialize page number.
11766         (Fprint_job_page_number):
11767         (Fprint_job_eject_page): Implemented.
11768
11769         * frame-msw.c (msprinter_eject_page): Added method.
11770         (msprinter_start_page): Added.
11771
11772         * window.c (Fwindow_truncated_p): Fixed docstring.
11773         (Fwindow_last_line_visible_height): Implemented.
11774
11775 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11776
11777         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11778
11779 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11780
11781         * syntax.c (scan_words): Always advance at least one character.
11782
11783 2000-02-13  Andy Piper  <andy@xemacs.org>
11784
11785         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11786         to make sure the glyph is in the cachels.
11787
11788         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11789         global image instance flag.
11790         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11791         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11792
11793         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11794         (Fset_image_instance_property): mark layout as changed.
11795         (invalidate_glyph_geometry_maybe): mark layout as changed.
11796         (glyph_width): use new NEEDS_LAYOUT macro.
11797         (glyph_ascent): ditto.
11798         (glyph_descent): ditto.
11799         (glyph_height): ditto.
11800         (image_instance_layout): mark layout as clean after laying out.
11801         (update_subwindow): don't mark layout as clean here.
11802
11803         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11804         should no longer be needed.
11805
11806         * glyphs-x.c (x_update_widget): sanitize asserts.
11807         (x_finalize_image_instance): sanitize assignment to widgets.
11808
11809         * glyphs-widget.c (widget_instantiate): don't need to clear the
11810         layout flag here.
11811
11812 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11813
11814         * sysdep.c (getcwd): Use standard prototype.
11815         * sysdep.h (getcwd): Use standard prototype.
11816
11817         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11818         (sequence, start, end).
11819         Remove redundant type checking.
11820         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11821         view of `caller-protects') to avoid a crash where the real fix was
11822         found elsewhere.
11823
11824 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11825
11826         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11827
11828         * s/sol2.h: Remove feature macro initialization.
11829
11830         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11831         (vector_hash): New.  Code from internal_hash.
11832         * lrecord.h:
11833         Fix up allocation subsystem comments.
11834
11835         * config.h.in: Add __EXTENSIONS__ for Solaris.
11836
11837         * systime.h (EMACS_GETTIMEOFDAY): New.
11838         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11839         Remove Solaris-specific code.
11840         Use void* for the (ignored) second arg for gettimeofday().
11841
11842         * elhash.c (hash_table_hash): Implement it, finally.
11843         * elhash.c:  Use hashcode_t.
11844
11845         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11846         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11847
11848         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11849         * fns.c (size_bit_vector):
11850         * alloc.c (size_vector):
11851         (make_vector_internal):
11852         (make_bit_vector_internal):
11853         (sweep_bit_vectors_1):
11854         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11855
11856 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11857
11858         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11859         Include strings.h to avoid warnings for bzero and strcasecmp.
11860
11861 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11862
11863         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11864         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11865
11866         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11867         sequence.
11868
11869 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11870
11871         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11872         use a value field instead.
11873         (symbol_value_forward_forward): Use value field.
11874         (DEFVAR_SYMVAL_FWD): Use value field.
11875         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11876         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11877         (DEFVAR_CONST_INT): Ditto.
11878         (DEFVAR_BOOL): Ditto.
11879         (DEFVAR_CONST_BOOL): Ditto.
11880         (DEFVAR_INT_MAGIC): Ditto.
11881         (DEFVAR_BOOL_MAGIC): Ditto.
11882
11883         * symbols.c (guts_of_unbound_marker): Use value field.
11884         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11885         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11886
11887         * lisp.h: Declare dumpopaque and noninteractive1.
11888
11889         * alloc.c (dumpopaque): Added.
11890         (pdump_dump_opaquevec): Added.
11891         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11892         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11893         noninteractive.
11894
11895 2000-02-10  Andy Piper  <andy@xemacs.org>
11896
11897         * glyphs.c (image_instance_layout): if the size changes, mark it
11898         as such.
11899
11900         * redisplay-output.c (redisplay_output_layout): Update the
11901         subwindow here.
11902         (redisplay_output_subwindow): ditto.
11903
11904         * glyphs.c (update_subwindow): make sure we reset flags for
11905         layouts as well as everything else.
11906
11907         * glyphs-widget.c (layout_layout): don't need to set the instances
11908         dimensions here.
11909
11910 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11911
11912         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11913         not HAVE_DLOPEN, which is a lower-level thing.
11914
11915         * .cvsignore: Ignore gmon.out
11916
11917 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11918
11919         * .cvsignore: Ignore portable dumper xemacs.dmp file
11920
11921 2000-02-09  Andy Piper  <andy@xemacs.org>
11922
11923         * redisplay-output.c (redisplay_output_layout): be more clever
11924         about when we output based on the changed flags.
11925
11926         * glyphs.h (struct image_instantiator_methods): add update_method.
11927         (struct Lisp_Image_Instance): add changed flags. Declare new
11928         macros for manipulating them.
11929
11930         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11931         (image_instance_parent_glyph): find an image_instance's parent
11932         glyph or image_instance.
11933         (image_instance_layout): mark the size as changed.
11934         (set_image_instance_dirty_p): new function. mark an image
11935         instance, plus all of its parents, as dirty.
11936         (Fset_image_instance_property): use it.
11937         (Fglyph_animated_timeout_handler): use it.
11938         (update_subwindow): call update_widget and device methods for
11939         update_subwindow. Mark all changed flags as clean.
11940         (Fresize_subwindow): mark size as changed.
11941
11942         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11943         failures.
11944         (x_update_subwindow): only resize subwindows here.
11945         (x_update_widget): new function. Update all changed properties of
11946         a widget.
11947         (x_resize_subwindow): deleted.
11948         (x_widget_set_property): deleted.
11949         (x_progress_gauge_set_property): deleted.
11950         (x_progress_gauge_update): new function. Implement recorded
11951         changes.
11952         (x_tab_control_update): ditto.
11953         (x_tab_control_set_property): deleted.
11954         (console_type_create_glyphs_x): declare new functions.
11955         (image_instantiator_format_create_glyphs_x): ditto.
11956
11957         * glyphs-widget.c (widget_set_property): mark text changed.
11958         (update_widget): new function. Update properties of a widget.
11959         (widget_instantiate): for layouts make sure we set their
11960         children's parent correctly.
11961         (tab_control_set_property): new function. Record changes that will
11962         take place under redisplay's control.
11963         (progress_gauge_set_property): ditto.
11964         (image_instantiator_progress_guage): declare new functions.
11965         (image_instantiator_tab_control): ditto.
11966
11967         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11968         now.
11969         (mswindows_update_widget): new function. Update all properties on
11970         a widget that have changed.
11971         (mswindows_button_update): new function. Update a button's set
11972         state.
11973         (mswindows_tab_control_update): new function. Update the items in
11974         a tab.
11975         (mswindows_tab_control_set_property): deleted.
11976         (mswindows_progress_gauge_update): new function. Update the
11977         progress gauge's progress.
11978         (mswindows_widget_set_property): deleted. This is all done
11979         asynchronously now.
11980         (mswindows_progress_gauge_set_property): ditto.
11981         (console_type_create_glyphs_mswindows): declare new methods.
11982         (image_instantiator_format_create_glyphs_mswindows): ditto.
11983
11984         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11985         (msprinter_set_frame_properties): ditto.
11986
11987         * console.h (struct console_methods): Add update_widget_method.
11988
11989 2000-02-09  Andy Piper  <andy@xemacs.org>
11990
11991         * gui-msw.c (Fmswindows_shell_execute): Make
11992         mswindows-shell-execute industrial strength.
11993
11994 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11995
11996         * lrecord.h: Make macro argument `props' match member function `plist'.
11997         * fns.c (Fget):
11998         * fns.c (Fput):
11999         * fns.c (Fremprop):
12000         * fns.c (Fobject_plist):
12001         * alloc.c:
12002         * symbols.c:
12003         Object property list frobbing cleanup.
12004         - Allow any lisp object (compared with `eq'), not just symbols, as
12005           keys in object plists.
12006         - Move symbol plist frobbing into symbols.c, where it belongs.
12007         - Move string plist frobbing into alloc.c, where it belongs.
12008         - Everything's an lrecord now, so no need to test for symbolp, etc.
12009         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12010
12011         * extents.c: Reorder code to remove declarations.
12012
12013         * frame.h (store_in_alist): Remove useless declaration.
12014
12015 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12016
12017         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12018         * config.h.in: Add HAVE_XCONVERTCASE.
12019
12020 2000-02-07  Andy Piper  <andy@xemacs.org>
12021
12022         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12023         it breaks many things.
12024
12025 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12026
12027         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12028         actually can start a common comment type.
12029         * src/syntax.h (SYNTAX_END_P): ditto for end.
12030
12031 2000-02-07  Martin Buchholz <martin@xemacs.org>
12032
12033         * XEmacs 21.2.28 is released.
12034
12035 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12036
12037         * event-Xt.c (x_keysym_to_character): New.
12038         (maybe_define_x_key_as_self_inserting_character): New.
12039         (x_has_keysym): New.
12040         Auto-define all keys on the keyboard as self-insert-key.
12041
12042 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12043
12044         * menubar.c (vars_of_menubar): A small code simplification.
12045
12046         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12047
12048         * ExternalShell.c:
12049         * ExternalClient.c:
12050         * EmacsShell-sub.c:
12051         * EmacsManager.c:
12052         * EmacsFrame.c:
12053         Use consistent style for specifying X resources.
12054
12055         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12056         This makes (dontusethis-set-symbol-value-handler) actually usable.
12057
12058         * lrecord.h (lrecord_decription_type):
12059         * alloc.c (pdump_register_sub):
12060         (pdump_dump_data):
12061         (pdump_reloc_one):
12062         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12063         Comply with XEmacs coding style.
12064         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12065         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12066
12067         * keymap.c (Faccessible_keymaps):
12068         Make (accessible-keymaps map "\C-h") do the Right Thing.
12069         Make (accessible-keymaps map []) do the Right Thing.
12070         Make (accessible-keymaps map "") do the Right Thing.
12071         (check_keymap_definition_loop): New function.
12072         (keymap_store_internal): Keep luser from shooting self in foot,
12073           via (define-key ctl-x-4-map "p" global-map).
12074         Remove fullness slot from struct Lisp_Keymap, since hash tables
12075         are now reliable.
12076         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12077
12078 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12079
12080         * redisplay.c (init_redisplay): Fix small memory leak.
12081         * elhash.h:
12082         * elhash.c (pdump_reorganize_hash_table):
12083         Rename from reorganize_hash_table. Change prototype.
12084         Reuse the original memory for hentries.  Save 100k.
12085         * alloc.c (PDUMP_READ): new macro.
12086         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12087         * alloc.c: No need to #ifndef before #undef.
12088
12089         * print.c: Allow debug_print() to print readably by modifying
12090         debug_print_readably.  Use consistent variable names.
12091
12092         * .dbxrc: Try to get things to work even if stopped in a function
12093         without source available by explicitly specifying source files.
12094 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12095
12096         * unexnt.c (_start): Removed bogus code which caused loading heap
12097         from differrent executable file.
12098         Removed bogus assignment to _fmode, which caused inconsistencies.
12099
12100 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12101
12102         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12103         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12104         Do not preliminary `#define signal sigset'.
12105
12106         * systime.h: Do not prototype environ on windows nt and cygwin,
12107         this conflicts with system header.
12108
12109         * syssignal.h: Use correct define for WINDOWSNT
12110
12111         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12112         with system header.
12113
12114         * sysdep.c (near start of file): Fixed commentary and rearranged
12115         ifdefs in readable order.
12116         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12117         (start_of_text):
12118         (end_of_text):
12119         (end_of_data): Do not compile in if using PDUMP.
12120
12121         * symsinit.h: Prototyped vars_of_nt().
12122
12123         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12124         (find_child_console): Use it.
12125         (sys_kill): Use it.
12126
12127         * ntheap.h: Do not extern os_subtype.
12128
12129         * ntheap.c (cache_system_info): Do not cache unneeded:
12130         nt_major_version, nt_minor_version and os_subtype.
12131         (recreate_heap): Do not compile in when PDUMPing.
12132
12133         * nt.c (geteuid and friends): Use the new varibale
12134         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12135         (init_user_info): Removed the above mentioned hackery.
12136         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12137         stat has been fixed in the C runtime.
12138         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12139
12140         * file-coding.c (struct file_coding_dump): Do not define
12141         ucs_to_mule_table in the struct if not MULE.
12142         (struct struct lrecord_description fcd_description_1): Do not dump
12143         the above.
12144
12145         * emacs.c (main_1): Call vars_of_nt().
12146         (right before Fdump_emacs_data): Don't need lastfile if using both
12147         portabe dumper and system malloc.
12148
12149         * alloc.c (Fmemory_limit): Conditionalized out.
12150         (pdump): Use OPEN_BINARY for the portable dump file.
12151         (pdump_load): Ditto.
12152
12153 2000-02-02  Mike Alexander  <mta@arbortext.com>
12154
12155         * nt.c (convert_time): Set tm_isdst before calling mktime and
12156         avoid calling it at all if the compiler supports 64 bit integers.
12157         Also initialize utc_base_ft before using it.
12158
12159 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12160
12161         * frame.c (change_frame_size_1): Take f->internal_border_width
12162         into consideration when calculating the width of the frame.
12163
12164 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12165
12166         * window.c (frame_min_height):
12167         (frame_size_valid_p):
12168         (frame_pixsize_valid_p): Added.
12169         (check_frame_size): Generalized.
12170
12171         * window.h: Prototyped the above.
12172
12173         * lisp.h:
12174         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12175         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12176         Deleted Vwin32_* and Vbinary_process_* unused variables.
12177
12178         * device-msw.c (msprinter_init_device): Do not get printer font
12179         list; Added DEVMODE functions.
12180
12181         * frame-msw.c: Added lots of printer code.
12182
12183         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12184         general.c.
12185
12186         * console-msw.h: Added more msprinter device private slots.
12187
12188 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12189
12190         * event-msw.c (key_needs_default_processing_p): Added.
12191         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12192
12193 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12194
12195         * glyphs.c (image_instance_layout): Mark image instance as clean
12196         after layout.
12197         (glyph_dirty_p): Removed redundant function.
12198         (invalidate_glyph_geometry_maybe): Added.
12199         (update_glyph_cachel_data): Call it.
12200
12201         * glyphs.h: Prototyped it.
12202
12203         * redisplay.c (add_glyph_rune): Call it.
12204         (redisplay_window): Reset glyphs cachels when frame faces have
12205         changed, thus forcing recomputation of built-in border glyphs.
12206
12207 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12208
12209         * Makefile.in.in: Make portable dumper and purify play well together.
12210         Add imperfect, but better than nothing, support for pdump.
12211         Remove xemacs.dmp when temacs is re-generated.
12212         Don't ignore errors when dumping xemacs.
12213
12214         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12215
12216 2000-01-28  Andy Piper  <andy@xemacs.org>
12217
12218         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12219         (setup_normal_frame): ditto.
12220         (setup_frame_without_minibuffer): ditto.
12221         (setup_minibuffer_frame): ditto.
12222         (delete_frame_internal): ditto.
12223         (Fmake_frame_invisible): ditto.
12224         (Ficonify_frame): ditto.
12225
12226         * window.h: change Fset_window_buffer signature.
12227
12228         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12229         (Fset_window_buffer): allow recording of buffer if the window is
12230         the selected window.
12231         (window_loop): Use new Fset_window signature.
12232
12233 2000-01-23  Daniel Pittman  <daniel@danann.net>
12234
12235         * config.h.in: Added template for `HAVE_ATHENA_3D'
12236
12237 2000-01-29  Andy Piper  <andy@xemacs.org>
12238
12239         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12240
12241         * gutter.c (output_gutter): Don't output if the window isn't live.
12242
12243 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12244
12245         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12246         of 01/12/00: Moved SetFocus back here where it belongs.
12247
12248 2000-01-23  Andy Piper  <andy@xemacs.org>
12249
12250         * s/cygwin32.h: declare printer things.
12251
12252 2000-01-26  Andy Piper  <andy@xemacs.org>
12253
12254         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12255         Alexander.
12256
12257 2000-01-24  Andy Piper  <andy@xemacs.org>
12258
12259         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12260         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12261
12262         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12263
12264         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12265
12266         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12267
12268         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12269         (mswindows_output_display_block): Avoid local shadows.
12270
12271         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12272         (mswindows_enqueue_mouse_button_event): ditto.
12273         (mswindows_handle_gui_wm_command): remove declaration.
12274
12275         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12276         warnings.
12277
12278         * console-msw.h: Avoid shadows.
12279         (mswindows_get_toolbar_button_text):
12280         (emacs_mswindows_create_stream_pair):
12281         (emacs_mswindows_delete_stream_pair):
12282         (mswindows_handle_toolbar_wm_command): declare.
12283
12284         * device-msw.c (build_syscolor_string): Avoid shadows.
12285
12286 2000-01-23  Andy Piper  <andy@xemacs.org>
12287
12288         * glyphs-widget.c (widget_instantiate): reverse the items for
12289         layouts so that children are in the expected order.
12290
12291 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12292
12293         * ralloc.c: safe_bcopy ==> memmove
12294         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12295         * s/msdos.h: Remove BCOPY macros.
12296         * insdel.c (gap_right): Remove BCOPY conditional code.
12297         * insdel.c (gap_left): Remove BCOPY conditional code.
12298         XEmacs demands a working ANSI C compiler - hence memmove.
12299
12300         * regex.c (regex_compile): Remove accidental use of trigraphs.
12301
12302 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12303
12304         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12305         event timestamp.
12306
12307 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12308
12309         * event-msw.c (mswindows_drain_windows_queue): Added the
12310         parameter.
12311         (mswindows_need_event): Commented the call to
12312         mswindows_drain_windows_queue().
12313         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12314         only.
12315
12316         * console-msw.h: Moved a few function prototypes here from
12317         event-msw.c.
12318
12319         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12320         parameter from unsigned short to unsigned long.
12321         (Fmswindows_shell_execute): Added return value.
12322
12323 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12324
12325         * sysdep.c (init_system_name):
12326           process-unix.c (unix_canonicalized_host_name):
12327         Don't call freeaddrinfo() if getaddrinfo() fails.
12328
12329         * process-unix.c (unix_open_unix_network_stream):
12330         Moved the code to get a port # into address loop.
12331
12332 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12333
12334         * buffer.c (reinit_vars_of_buffer):
12335         The right place to initialize conversion_in_dynarr and
12336         conversion_out_dynarr.
12337
12338         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12339
12340         * process-unix.c (unix_canonicalize_host_name): Muleize.
12341         (unix_open_network_stream): Muleize.
12342
12343         * buffer.h: Fix up prototypes for ralloc.c functions.
12344
12345 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12346         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12347         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12348                 instead of gethostbyname()
12349         * process-unix.c: In unix_canonicalize_host_name() and
12350                 unix_open_network_stream(), add code to use getaddrinfo()
12351                 instead of gethostbyname().
12352
12353 2000-01-27  Daniel Pittman <daniel@danann.net>
12354
12355         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12356         libs when built with flat Athena.
12357
12358 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12359
12360         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12361         Use coding standards for function prototypes.
12362
12363 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12364
12365         * dialog-msw.c (push_lisp_string_as_unicode):
12366         * doc.c (unparesseuxify_doc_string):
12367         * dired.c (Fuser_name_completion_1):
12368         * dired.c (Fuser_name_all_completions):
12369         * dired.c (free_user_cache):
12370         * dired.c (user_name_completion):
12371         * console-x.c (get_display_arg_connection):
12372         * minibuf.c (clear_echo_area_internal):
12373         * minibuf.c (echo_area_append):
12374         * eldap.c (Fldap_open):
12375         * eldap.c (Fldap_search_internal):
12376         * frame-x.c (x_set_frame_text_value):
12377         * frame-x.c (x_set_frame_properties):
12378         * frame-x.c (x_create_widgets):
12379         * redisplay-tty.c (term_get_fkeys_1):
12380         * objects-x.c (x_parse_nearest_color):
12381         * objects-x.c (x_valid_color_name_p):
12382         * objects-x.c (x_initialize_font_instance):
12383         * objects-x.c (x_list_fonts):
12384         * objects-x.c (x_find_charset_font):
12385         * tooltalk.c (Fadd_tooltalk_message_arg):
12386         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12387         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12388         * process-unix.c (unix_create_process):
12389         * ntproc.c (sys_spawnve):
12390         * sound.c (Fplay_sound_file):
12391         * sound.c (Fplay_sound):
12392         * buffer.c (init_initial_directory):
12393         * buffer.c (init_buffer):
12394         * editfns.c (init_editfns):
12395         * editfns.c (Ftemp_directory):
12396         * editfns.c (Fuser_full_name):
12397         * editfns.c (uncache_home_directory):
12398         * editfns.c (get_home_directory):
12399         * editfns.c (Fuser_home_directory):
12400         * editfns.c (Fformat_time_string):
12401         * editfns.c (Fcurrent_time_string):
12402         * gui-x.c (button_item_to_widget_value):
12403         * database.c (Fopen_database):
12404         * event-Xt.c (x_to_emacs_keysym):
12405         * event-Xt.c (x_event_to_emacs_event):
12406         * event-Xt.c (describe_event_window):
12407         * event-msw.c (mswindows_wnd_proc):
12408         * glyphs-eimage.c (jpeg_instantiate):
12409         * glyphs-eimage.c (gif_instantiate):
12410         * glyphs-eimage.c (png_instantiate):
12411         * glyphs-eimage.c (tiff_instantiate):
12412         * glyphs-x.c (xbm_instantiate_1):
12413         * glyphs-x.c (x_xbm_instantiate):
12414         * glyphs-x.c (x_xface_instantiate):
12415         * glyphs-x.c (autodetect_instantiate):
12416         * glyphs-x.c (cursor_font_instantiate):
12417         * glyphs-x.c (x_widget_instantiate):
12418         * glyphs-x.c (x_widget_set_property):
12419         * glyphs-x.c (x_widget_property):
12420         * glyphs-x.c (BUILD_GLYPH_INST):
12421         * print.c (write_string_to_stdio_stream):
12422         * print.c (output_string):
12423         * print.c (Falternate_debugging_output):
12424         * print.c (Fexternal_debugging_output):
12425         * glyphs-msw.c (extract_xpm_color_names):
12426         * glyphs-msw.c (mswindows_xpm_instantiate):
12427         * glyphs-msw.c (bmp_instantiate):
12428         * glyphs-msw.c (resource_name_to_resource):
12429         * glyphs-msw.c (mswindows_resource_instantiate):
12430         * glyphs-msw.c (xbm_instantiate_1):
12431         * glyphs-msw.c (mswindows_xbm_instantiate):
12432         * glyphs-msw.c (mswindows_xface_instantiate):
12433         * glyphs-msw.c (mswindows_widget_instantiate):
12434         * glyphs-msw.c (add_tree_item):
12435         * glyphs-msw.c (add_tab_item):
12436         * glyphs-msw.c (mswindows_combo_box_instantiate):
12437         * glyphs-msw.c (mswindows_widget_property):
12438         * glyphs-msw.c (mswindows_combo_box_property):
12439         * glyphs-msw.c (mswindows_widget_set_property):
12440         * console.c (stuff_buffered_input):
12441         * objects-msw.c (mswindows_initialize_color_instance):
12442         * objects-msw.c (mswindows_valid_color_name_p):
12443         * objects-msw.c (mswindows_list_fonts):
12444         * objects-msw.c (mswindows_font_instance_truename):
12445         * bytecode.c (optimize_compiled_function):
12446         * select-x.c (symbol_to_x_atom):
12447         * select-x.c (x_atom_to_symbol):
12448         * select-x.c (hack_motif_clipboard_selection):
12449         * select-x.c (selection_data_to_lisp_data):
12450         * select-x.c (lisp_data_to_selection_data):
12451         * select-x.c (Fx_get_cutbuffer_internal):
12452         * select-x.c (Fx_store_cutbuffer_internal):
12453         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12454         * buffer.h (TO_INTERNAL_FORMAT): New function.
12455         * emacs.c (make_arg_list_1):
12456         * emacs.c (make_argc_argv):
12457         * emacs.c (main_1):
12458         * emacs.c (Fdump_emacs):
12459         * emacs.c (split_string_by_emchar_1):
12460         * file-coding.h:
12461         * lisp.h:
12462         * lstream.h:
12463         * symsinit.h:
12464         * device-x.c (x_init_device):
12465         * device-x.c (Fx_valid_keysym_name_p):
12466         * device-x.c (Fx_get_font_path):
12467         * device-x.c (Fx_set_font_path):
12468         * glyphs.c (bitmap_to_lisp_data):
12469         * glyphs.c (pixmap_to_lisp_data):
12470         * alloc.c (make_ext_string): Use coding system arguments.  Update
12471         all callers.
12472         * alloc.c (build_string):
12473         * callproc.c (child_setup):
12474         * callproc.c (init_callproc):
12475         * fileio.c (lisp_strerror):
12476         * fileio.c (directory_file_name):
12477         * fileio.c (Fexpand_file_name):
12478         * fileio.c (Ffile_truename):
12479         * fileio.c (Fsysnetunam):
12480         * fileio.c (Fdo_auto_save):
12481         * sysdep.c (sys_readdir):
12482         * tests.c: New file.  Allow adding C tests.
12483         Replace GET_* macros with a more comprehensible and flexible
12484         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12485         Modify all calls.
12486         Any coding system can be used to do format conversion.
12487         Eliminate enum external_data_format.
12488         Eliminate convert_to_external_format.
12489         Eliminate convert_to_internal_format.
12490         Make sure file-name, keyboard, terminal, and ctext are always
12491         defined as coding systems or aliases.  Make
12492         file-name-coding-system, terminal-coding-system, and
12493         keyboard-coding-system magical variables that are equivalent to
12494         defining the corresponding coding system aliases.
12495
12496         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12497         * file-coding.c (Fcoding_system_alias_p): New function.
12498         * file-coding.c (Fcoding_system_aliasee): New function.
12499         * file-coding.c (append_suffix_to_symbol): New function.
12500         * file-coding.c (dangling_coding_system_alias_p): New function.
12501         * file-coding.c (Ffind_coding_system):
12502         * file-coding.c (Fcopy_coding_system):
12503         * file-coding.c (encode_coding_no_conversion):
12504         * file-coding.c (syms_of_file_coding):
12505         * file-coding.c (vars_of_file_coding):
12506         Rewrite coding system alias code.
12507         Allow nested aliases, like symbolic links.
12508         Allow redefinition of coding system aliases.
12509         Prevent existence of dangling coding system aliases.
12510
12511         * dired.c (Fuser_name_completion_1):
12512         * dired.c (Fuser_name_all_completions):
12513         A crash would happen if user did QUIT in the middle of building
12514         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12515
12516         * lisp.h:
12517         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12518
12519         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12520         an unsigned char *.  Update all callers.
12521
12522 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12523
12524         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12525
12526 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12527
12528         * elhash.c (hentry_description): Use more portable definition.
12529         (resize_hash_table): Initialize new hentries using
12530         xnew_array_and_zero, thereby simplifying the code.
12531
12532         * mule-charset.c (make_charset): Make sure entire object is
12533         initialized, to avoid Purify warnings.
12534
12535         * alloc.c (resize_string): Fix unlikely crash with big strings.
12536
12537 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12538
12539         * realpath.c (xrealpath):
12540         Don't call getwd().
12541
12542 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12543
12544         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12545
12546 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12547
12548         * unexelfsgi.c (unexec): Change the way we decide which segment
12549         should be extended.
12550
12551         Assumption that .bss section should be outside the PT_LOADable
12552         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12553         it's present) is inside the 'data' segment. This would fail the
12554         test which was used to find a segment to grow and cover new
12555         heap. Instead of this assumption, I created another one - on IRIX
12556         the segment to grow should start below .bss and it's address
12557         should extent above the end of .bss. Once this segment is
12558         identified, it's grown to accommodate the new heap and new
12559         zero-length .bss section is added at the end of .data2.
12560
12561 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12562
12563         * eval.c (Feval): Wrong number of arguments should use original
12564         function, not the indirect_function version of it.
12565
12566 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12567
12568         * glyphs-x.c (x_button_instantiate): Don't add image if
12569         it is not a pixmap.
12570         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12571         is relative.
12572
12573 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12574
12575         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12576         declaration.
12577         (DEFVAR_INT_MAGIC): Ditto.
12578         (DEFVAR_BOOL_MAGIC): Ditto.
12579         * glyphs.h: Reindent backslash.
12580
12581 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12582
12583         * glyphs-widget.c (layout_query_geometry):
12584         (layout_layout): Use correct types for gheight, gwidth.
12585
12586 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12587
12588         * EmacsManager.c (QueryGeometry): Purified.
12589
12590 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12591
12592         * alloc.c (make_float): Make sure entire object is initialized, to
12593         avoid Purify warnings.
12594         (pdump_register_sub): Remove useless assignment.
12595         (pdump): Use xmalloc, not malloc.
12596         (pdump_load): Use xmalloc, not malloc.
12597
12598 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12599
12600         * callproc.c:
12601         * dired-msw.c:
12602         * fileio.c:
12603         * process-nt.c:
12604         * redisplay-msw.c:
12605         * sysdep.c: Removed redundant #include <windows.h>
12606
12607 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12608
12609         * frame.c (delete_frame_internal): Do not delete device when its
12610         implementation so declares.
12611         (delete_frame_internal): Set device selected frame to nil when
12612         last frame goes away.
12613
12614         * device-msw.c (msprinter_device_system_metrics): Implemented.
12615         (mswindows_device_system_metrics): Added 'device-dpi property.
12616
12617         * device.c: (Fdevice_printer_p): Added.
12618         Added 'offset-workspace device metric.
12619
12620         * console.h (device_metrics): Declared DM_offset_workspace.
12621
12622 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12623
12624         * fileio.c (Ffile_truename): Remove pointless and confusing
12625         initialization of elen.
12626
12627         * glyphs-widget.c: Compiler warning fixes.
12628
12629 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12630
12631         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12632         instead of a Lisp_Object as argument to make it consistent with
12633         the other LIVE_P macros.
12634         (CHECK_LIVE_PROCESS): New macro.
12635
12636         * process.c: Declare Qprocess_live_p.
12637         (Fprocess_live_p): New function.
12638         (create_process): Use PROCESS_LIVE_P.
12639         (read_process_output): Ditto.
12640         (set_process_filter): Ditto.
12641         (Fdelete_process): Ditto.
12642         (kill_buffer_processes): Ditto
12643         (process_send_signal): Use CHECK_LIVE_PROCESS.
12644         (Fprocess_input_coding_system): Check whether process is still
12645         alive (fix PR#1061).
12646         (Fprocess_output_coding_system): Ditto.
12647         (Fprocess_coding_system): Ditto.
12648         (Fset_process_input_coding_system): Ditto.
12649         (Fset_process_output_coding_system): Ditto.
12650
12651 2000-01-23  Andy Piper  <andy@xemacs.org>
12652
12653         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12654         layout and widget.
12655
12656         * glyphs.c (mark_image_instance): take into account changed
12657         image_instance format.
12658         (image_instance_equal): ditto.
12659         (image_instance_hash): ditto.
12660
12661         * glyphs-widget.c (widget_instantiate): Incorporate layout
12662         instantiation here. Delay layout of the layout until later.
12663         (layout_instantiate): deleted.
12664         (layout_query_geometry): new function. get the geometry of a
12665         layout.
12666         (layout_layout): layout a layout dynamically.
12667         (image_instantiator_widget): New function - splitting up
12668         image_instantiator_format_create_glyphs_widget for netwinder
12669         compilation.
12670         (image_instantiator_buttons):
12671         (image_instantiator_edit_fields):
12672         (image_instantiator_combo_box):
12673         (image_instantiator_scrollbar):
12674         (image_instantiator_progress_guage):
12675         (image_instantiator_tree_view):
12676         (image_instantiator_tab_control):
12677         (image_instantiator_labels):
12678         (image_instantiator_layout): ditto.
12679         (image_instantiator_format_create_glyphs_widget): Call preceding
12680         functions.
12681
12682 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12683
12684         * process.c (Fset_process_coding_system):
12685         * device-x.c (Fx_keysym_hash_table):
12686         Docstring fixes.
12687
12688         * lstream.c (Lstream_write): Return documented value, not 0.
12689
12690         * fileio.c (directory_file_name):
12691         (Fsubstitute_in_file_name):
12692         (Fsubstitute_insert_file_contents_internal):
12693         (Fwrite_region_internal):
12694         * emacs.c:
12695         * sysdep.c:
12696         * getloadavg.c:
12697         * systty.h:
12698         Remove vestigial APOLLO-conditional code.
12699
12700 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12701
12702         * getpagesize.h: Add guard macros.
12703         * libsst.h: Add guard macros.
12704         * libst.h: Add guard macros.
12705         * line-number.h: Add guard macros.
12706         * ndir.h: Add guard macros.
12707         * sysfloat.h: Add guard macros.
12708         * sysfile.h: Add guard macros.
12709         * sysproc.h: Add guard macros.
12710         * syswait.h: Add guard macros.
12711         * xintrinsic.h: Add guard macros.
12712         * xintrinsicp.h: Add guard macros.
12713         * xmmanager.h: Add guard macros.
12714         * xmmanagerp.h: Add guard macros.
12715         * xmprimitive.h: Add guard macros.
12716         * xmu.h: Add guard macros.
12717         * gpmevent.h: Add copyright statement. Add guard macros.
12718         * miscplay.h: Add guard macros.
12719         * *.h: Use consistent C-standards-approved guard macro names.
12720
12721         * opaque.c (make_opaque): Switch parameter order.
12722         * opaque.h (make_opaque): Switch parameter order.
12723         Update all callers.
12724         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12725
12726         * config.h.in (type_checking_assert): Added.
12727         (bufpos_checking_assert): Added.
12728
12729 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12730
12731         * alloc.c: Harmless pdump changes.
12732         - Use countof().
12733         - spell alignment correctly.
12734         * sysdep.c: Use countof()
12735
12736 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12737
12738         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12739         initially_selected_for_input() console method, default to 0.
12740         (semi_canonicalize_console_connection): Try to delegate to
12741         canonicalize_console_connection if no such console method.
12742         (canonicalize_console_connection): Vice versa.
12743         (print_console): Do not print nil connection.
12744
12745         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12746         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12747         (XDEVIMPF_FRAMELESS_OK): Added.
12748         (CONSOLE_INHERITS_METHOD): Added.
12749
12750         * console-msw.c (mswindows_canonicalize_console_connection):
12751         Added.
12752         (mswindows_canonicalize_device_connection): Added.
12753
12754         * console-msw.h (struct msprinter_device): Added this struct and
12755         accessor macros.
12756         (mswindows_device): Made fontlist a lisp object.
12757
12758         * device.c (semi_canonicalize_device_connection):  Try to delegate
12759         to canonicalize_device_connection if no such console method.
12760         (canonicalize_device_connection): Vice versa.
12761         (print_device): Do not print nil connection.
12762
12763         * device-msw.c (mswindows_init_device): Call InitCommonControls
12764         when have widgets.
12765         (mswindows_delete_device): Removed fontlist deallocation.
12766         (mswindows_mark_device): Added.
12767
12768         * events.c (event_equal): Added abort() at unreached code.
12769         (event_hash): Ditto.
12770
12771         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12772         fallback tags of Windows devices.
12773
12774         * general.c (syms_of_general): Initialized Qmsprinter.
12775
12776         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12777         of fallback tags of Windows devices.
12778
12779         * lisp.h: Declared Qmsprinter.
12780
12781         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12782         of strings.
12783         (mswindows_list_fonts): Ditto.
12784         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12785         that it can be used by both mswindows and msprinter devices.
12786         (initialize_font_instance): Added.
12787         (mswindows_initialize_font_instance): Use it.
12788         (msprinter_initialize_font_instance): Added.
12789
12790         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12791         and implementation flags check.
12792         (redisplay_without_hooks): Changed the call to the above.
12793         (Fredraw_device): Ditto.
12794         (Fredisplay_device): Ditto.
12795
12796         * redisplay-msw.c (get_frame_dc): Implemented.
12797         (get_frame_compdc): Implemented.
12798         (many functions): Use the two functions above to get device
12799         contexts, ether for a window or a printer.
12800
12801 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12802
12803         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12804         initialization here.
12805         (init_symbols_once_early): Call it.
12806         * emacs.c (main_1): Call it.
12807         * symsinit.h: Declare it.
12808
12809 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12810
12811         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12812         Lisp_Object.
12813         (pdump_backtrace): Ditto.
12814         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12815         (pdump_get_entry): Abort if trying to register a null pointer.
12816         (pdump_dump_data): Cleanup types when relocating.
12817         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12818         (pdump_dump_rtables): Remove bad casts.
12819         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12820         Lisp_Object instead of a EMACS_INT for the hashtable
12821         reorganization.
12822
12823 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12824
12825         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12826
12827         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12828
12829         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12830
12831         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12832
12833 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12834
12835         * faces.h (FACE_STRIKETHRU_P): Added.
12836
12837         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12838         of font variants.
12839
12840         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12841         (mswindows_set_dc_font): New function, aware of font variants,
12842         separated from mswindows_update_dc.
12843
12844         * objects-msw.h (struct mswindows_font_instance_data): Added
12845         definition.
12846
12847         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12848         cached fonts and the data structure.
12849         (mswindows_initialize_font_instance): Added creation of font data
12850         structure.
12851         (mswindows_print_font_instance): Print at least something.
12852         (mswindows_create_font_variant): Implemented.
12853         (mswindows_get_hfont): Implemented.
12854
12855 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12856
12857         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12858         prototyping problem with msvc.
12859
12860         * emacs.c (main_1): added syms_of_gui_mswindows() call
12861
12862         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12863         syms_of_gui_mswindows() function
12864
12865         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12866
12867 2000-01-18  Martin Buchholz <martin@xemacs.org>
12868
12869         * XEmacs 21.2.27 is released.
12870
12871 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12872
12873         * glyphs-eimage.c (struct tiff_error_struct):
12874         (tiff_error_func):
12875         (tiff_warning_func):
12876         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12877
12878         * unexmips.c:
12879         * unexhp9k3.c:
12880         * unexfreebsd.c:
12881         * unexec.c: Remove vestigial Lucid C code.
12882         * unexalpha.c:
12883         * unexaix.c:
12884         * termcap.c:
12885         * libsst.c: Ansify.
12886         Remove declarations of errno and strerror().
12887
12888         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12889
12890         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12891
12892 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12893
12894         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12895         Optimize.
12896
12897 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12898
12899         * md5.c:
12900         * file-coding.c:
12901         * file-coding.h:
12902         Change enum eol_type to eol_type_t.
12903
12904 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12905
12906         * gui.c (get_gui_callback): Check cons before accessing car.
12907
12908 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12909
12910         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12911         (XSETSPECIFIER_TYPE): Ditto.
12912
12913 2000-01-17  Didier Verna  <didier@xemacs.org>
12914
12915         * redisplay.c (generate_fstring_runes): compute string size in
12916         characters, not bytes.
12917
12918 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12919
12920         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12921
12922 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12923
12924         * print.c (print_error_message): Call print_prepare().
12925
12926 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12927
12928         * .dbxrc: Renamed from dbxrc.
12929
12930         * events.c (event_to_character):
12931         Use `assert (foo)' instead of `if (!foo) abort()'
12932
12933         * .gdbinit (xtype): Add documentation.
12934         * .gdbinit (check-temacs): New function.
12935         * .gdbinit (check-xemacs): New function.
12936         * dbxrc (check-xemacs): New function.
12937         * dbxrc (check-xemacs): New function.
12938
12939 2000-01-14  Andy Piper  <andy@xemacs.org>
12940
12941         * glyphs-widget.c (widget_query_geometry): Make sure that we
12942         calculate default dimensions correctly.
12943
12944 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12945
12946         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12947
12948         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12949         pdump_wire'd variable.
12950
12951         * emacs.c: (main_1): Conditionalized calls to
12952         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12953
12954 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12955
12956         * window.c (Fset_window_configuration):
12957         * sysdep.c (_start):
12958         * input-method-motif.c (res):
12959         * event-Xt.c (Xt_process_to_emacs_event):
12960         Simple compiler warning fixes.
12961
12962         * bytecode.c (funcall_compiled_function): Use the original
12963         function symbol on the backtrace list in preference to the
12964         compiled_function object in error messages.
12965
12966 2000-01-13  Andy Piper  <andy@xemacs.org>
12967
12968         * glyphs-x.c (update_widget_face): Make sure we update the widget
12969         background as well as foreground.
12970
12971 2000-01-13  Andy Piper  <andy@xemacs.org>
12972
12973         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12974         fields to subwindow.
12975         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12976         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12977         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12978         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12979
12980         * glyphs-widget.c (check_valid_tab_orientation): new function.
12981         (initialize_widget_image_instance): zero orientation and
12982         justification.
12983         (widget_instantiate): pick up orientation.
12984         (tab_control_query_geometry): return appropriate values for
12985         vertical tabs.
12986
12987         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12988         appropriate creation flags for left, right and bottom tabs.
12989
12990         * s/cygwin32.h: add tab definitions.
12991
12992 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12993
12994         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12995         frame upon hiding a subwindow.
12996         (mswindows_button_instantiate): Changed the push button style to
12997         BS_PUSHBUTTON.
12998         (mswindows_button_instantiate): Removed button BS_NOTIFY
12999         style.
13000         (mswindows_button_instantiate): Removed redundant check for
13001         a disabled gui item.
13002         (mswindows_button_instantiate): Made use of WS_TABSTOP
13003         consistent: "operable" controls (edit, button, tree, scroll) have
13004         this style, "display-only" ones (static, progress gauge) do
13005         not. This style is currently ignored by XEmacs though. Also,
13006         removed the WS_EX_CONTROLPARENT style - it is not for children,
13007         it is for their parents!
13008         (mswindows_edit_field_instantiate): Ditto.
13009         (mswindows_progress_gauge_instantiate): Ditto.
13010         (mswindows_tree_view_instantiate): Ditto.
13011         (mswindows_tab_control_instantiate): Ditto.
13012         (mswindows_scrollbar_instantiate): Ditto.
13013         (mswindows_combo_box_instantiate): Ditto.
13014         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13015         style to the "clip" window.
13016         (mswindows_button_instantiate): Removed compilation warning by
13017         equally typing terms of the ?: operator.
13018
13019 2000-01-12  Didier Verna  <didier@xemacs.org>
13020
13021         * redisplay.c (generate_fstring_runes): new parameter holding the
13022         last modeline-format extent.
13023         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13024         extent, fill the glyph block with it.
13025         (generate_fstring_runes): handle these parameters.
13026         (generate_formatted_string_db): ditto.
13027
13028         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13029         glyphs'extents in the modeline.
13030
13031 1999-01-11  Mike Woolley  <mike@bulsara.com>
13032
13033         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13034         256Mb, as a workaround for the non-starting problem many people
13035         have experienced.
13036
13037 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13038
13039         * console-tty.c (Fset_console_tty_output_coding_system):
13040         Force redrawing tty frame.
13041
13042 2000-01-10  Didier Verna  <didier@xemacs.org>
13043
13044         * redisplay.c (generate_fstring_runes): fix size computation bug.
13045
13046 2000-01-09  William M. Perry <wmperry@aventail.com>
13047
13048         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13049
13050 2000-01-09  Andy Piper  <andy@xemacs.org>
13051
13052         * glyphs-msw.c: index -> i to avoid shadows.
13053         (xbm_create_bitmap_from_data): make static.
13054         (check_valid_string_or_int): deleted.
13055         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13056
13057         * glyphs-x.c (x_update_subwindow): remove unused args.
13058
13059         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13060         back pointer - this is done in allocate_image_instance.
13061         (query_string_font): return Qnil to make the compiler happy.
13062         (unmap_subwindow): set to ~0 to make the compiler happy.
13063         (glyph_query_geometry): comment out until used.
13064         (glyph_layout): ditto.
13065
13066 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13067
13068         * insdel.c (signal_after_change): Remove extraneous unbind_to().