Sync up with r21-4-10-utf-2000-0_20-dkw2l.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
4         (Qideograph_daikanwa_2): Deleted.
5         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
6         (complex_vars_of_mule_charset): Likewise.
7
8         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
9         (LEADING_BYTE_DAIKANWA_1): Deleted.
10         (LEADING_BYTE_DAIKANWA_2): Deleted.
11         (MIN_CHAR_DAIKANWA): Deleted.
12         (MAX_CHAR_DAIKANWA): Deleted.
13
14 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
15
16         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
17         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
18         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
19
20         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
21         (Vcharset_ideograph_daikanwa): Deleted.
22         (Qideograph_hanziku_{1..12}): Deleted.
23         (Qideograph_daikanwa): Deleted.
24         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
25         Vcharset_ideograph_daikanwa.
26         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
27         `ideograph-hanziku-{1..12}'.
28         (complex_vars_of_mule_charset): Likewise.
29
30 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
31
32         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
33
34         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
35         (Qideograph_gt_pj_{1..11}): Deleted.
36         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
37         (complex_vars_of_mule_charset): Likewise.
38
39 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * mule-charset.c (Vcharset_ucs_big5): Deleted.
42         (Vcharset_ideograph_gt): Deleted.
43         (Qucs_big5): Deleted.
44         (Qideograph_gt): Deleted.
45         (syms_of_mule_charset): Delete symbol `ucs-big5' and
46         `ideograph-gt'.
47         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
48         and `ideograph-gt'.
49
50         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
51         (LEADING_BYTE_GT): Deleted.
52         (GC_CHARSETP): Deleted.
53         (MIN_CHAR_GT): Deleted.
54         (MAX_CHAR_GT): Deleted.
55
56 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
59
60 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
61
62         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
63         (Qideograph_cbeta): Deleted.
64         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
65         (complex_vars_of_mule_charset): Likewise.
66
67         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
68         (MIN_CHAR_CBETA): Comment out.
69         (MAX_CHAR_CBETA): Likewise.
70
71 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
72
73         * mule-charset.c (charset_lookup_description_1): Use
74         `NUM_LEADING_BYTES' in UTF-2000.
75
76 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * mule-charset.c (Vcharset_china3_jef): Deleted.
79         (Qchina3_jef): Deleted.
80         (syms_of_mule_charset): Don't define `china3-jef'.
81         (complex_vars_of_mule_charset): Likewise.
82
83         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
84         (MIN_CHAR_CHINA3_JEF): Comment out.
85         (MAX_CHAR_CHINA3_JEF): Comment out.
86
87 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * mule-charset.c (Vcharset_ucs_gb): New variable.
90         (Qucs_gb): New variable.
91         (syms_of_mule_charset): Add new symbol `ucs-gb'.
92         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
93
94         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
95
96 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * mule-charset.c (charset_code_point): if a coded-charset has a
99         final-byte, don't inherit the builtin range of the mother CCS.
100
101 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * mule-charset.c (charset_code_point): Fix problem about
104         inheritance.
105
106 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
107
108         * mule-charset.c (decode_builtin_char): Reorganized.
109
110 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * text-coding.c (char_encode_shift_jis): Modify for
113         `charset_code_point'.
114         (char_encode_big5): Likewise.
115         (char_encode_utf8): Likewise.
116         (char_encode_iso2022): Likewise.
117
118         * mule-charset.c (charset_code_point): Add new argument
119         `defined_only'.
120         (Fencode_char): Add new optional argument `defined_only'.
121
122         * chartab.c (put_char_table): Modify for `charset_code_point'.
123         (map_char_table): Likewise.
124
125         * char-ucs.h (charset_code_point): Add new argument
126         `defined_only'.
127         (encode_char_1): Modify for `charset_code_point'.
128
129 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
132         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
133
134 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
137         (Qjis_x0208): Likewise.
138         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
139         XCHARSET_FINAL(charset).
140         (charset_code_point): Modify condition for final-byte based
141         builtin-chars.
142         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
143         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
144         in UTF-2000; specify `=jis-x0208' as the mother of
145         `japanese-jisx0208-1978', `japanese-jisx0208' and
146         `japanese-jisx0208-1990' in UTF-2000.
147
148 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
149
150         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
151
152 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
153
154         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
155         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
156         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
157         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
158         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
159         CONVERSION_96x96x96x96 are introduced.
160         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
161         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
162         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
163
164         * char-ucs.h (CONVERSION_94): New macro.
165         (CONVERSION_96): New macro.
166         (CONVERSION_94x94): New macro.
167         (CONVERSION_96x96): New macro.
168         (CONVERSION_94x94x94): New macro.
169         (CONVERSION_96x96x96): New macro.
170         (CONVERSION_94x94x94x60): New macro.
171         (CONVERSION_94x94x94x94): New macro.
172         (CONVERSION_96x96x96x96): New macro.
173
174 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
175
176         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
177
178         * fns.c (Qideographic_structure): New variable.
179         (Qkeyword_char): New variable.
180         (ids_format_unit): New function.
181         (Fideographic_structure_to_ids): New function.
182         (syms_of_fns): Add new symbols `ideographic-structure' and
183         `:char'; add new builtin function `ideographic-structure-to-ids'.
184
185         * data.c (Fchar_ref_p): New function.
186         (syms_of_data): Add new builtin function `char-ref-p'.
187
188         * chartab.h: Add an EXFUN for `Ffind_char'.
189
190 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
191
192         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
193         and `COMPOSE_ADD_CHAR'.
194         (decode_coding_iso2022): Use `decode_flush_er_chars'.
195
196 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
197
198         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
199         instead of `DECODE_ADD_UCS_CHAR'.
200         (COMPOSE_ADD_CHAR): Likewise.
201
202 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
203
204         * text-coding.c (decode_flush_er_chars): New inline function.
205         (decode_add_er_char): New function.
206         (decode_coding_utf8): Use `decode_flush_er_chars' and
207         `decode_add_er_char'.
208
209 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
210
211         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
212         done before `decode_output_utf8_partial_char'.
213
214         * mule-charset.c (complex_vars_of_mule_charset): Specify
215         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
216         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
217
218 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * mule-charset.c (decode_defined_char): New function; search
221         mother.
222         (decode_builtin_char): Don't search mother if
223         XCHARSET_MAX_CODE(charset) == 0.
224         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
225         == 0 even if code >= XCHARSET_MAX_CODE(charset).
226         (Fdecode_char): Use `decode_defined_char' instead of
227         `DECODE_DEFINED_CHAR'.
228         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
229         mother of `Vcharset_ucs_jis'.
230
231         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
232         instead of `DECODE_DEFINED_CHAR'.
233
234         * char-ucs.h (decode_defined_char): Renamed from
235         `DECODE_DEFINED_CHAR'; changed to normal function.
236         (DECODE_CHAR): Use `decode_defined_char' instead of
237         `DECODE_DEFINED_CHAR'.
238
239         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
240
241 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
244
245         * text-coding.c (Vcoded_charset_entity_reference_alist): New
246         variable.
247         (Quse_entity_reference): New variable.
248         (Qd): New variable.
249         (Qx): New variable.
250         (QX): New variable.
251         (coding_system_description): Add description for
252         `ccs_priority_list'.
253         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
254         (allocate_coding_system): Initialize `ccs_priority_list' in
255         UTF-2000.
256         (Fmake_coding_system): Add description about
257         'use-entity-reference; setup
258         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
259         (Fcoding_system_property): Accept `disable-composition' and
260         `use-entity-reference' in UTF-2000.
261         (struct decoding_stream): Add new member `er_counter' and `er_buf'
262         in UTF-2000.
263         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
264         (decode_coding_utf8): Decode entity-reference if
265         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
266         (char_encode_utf8): Encode non-Unicode characters as
267         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
268         (str->codesys).
269         (syms_of_file_coding): Add new symbols `use-entity-reference',
270         `d', `x', `X'.
271         (vars_of_file_coding): Add new variable
272         `coded-charset-entity-reference-alist'.
273         (complex_vars_of_file_coding): Declare `disable-composition' and
274         `use-entity-reference' to be coding-system-properties in UTF-2000.
275
276         * file-coding.h (struct Lisp_Coding_System): Add new member
277         `use_entity_reference' and `ccs_priority_list'.
278         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
279         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
280         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
281
282 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
283
284         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
285
286 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
287
288         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
289         `XCHARSET_GRAPHIC(ccs)'.
290
291 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
292
293         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
294         for decoding-table.
295
296 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
297
298         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
299         instead of `XCHARSET_CHARS'.
300
301 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
302
303         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
304         (XCHARSET_BYTE_SIZE): Likewise.
305
306         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
307         mule-charset.c].
308         (XCHARSET_BYTE_SIZE): Likewise.
309
310 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * char-ucs.h (decoding_table_check_elements): Delete prototype.
313         (get_ccs_octet_table): New inline function.
314         (put_ccs_octet_table): Likewise.
315         (decoding_table_put_char): Use `get_ccs_octet_table' and
316         `put_ccs_octet_table'.
317         (decoding_table_remove_char): Use `decoding_table_put_char'.
318         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
319
320         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
321         into encoding_table.
322         (make_charset): Use Qunbound instead Qnil as initial value of
323         decoding_table.
324
325 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
326
327         * mule-charset.c (put_char_ccs_code_point): Modify for
328         `decoding_table_remove_char' and `decoding_table_put_char'.
329         (remove_char_ccs): Modify for `decoding_table_remove_char'.
330
331         * char-ucs.h (decoding_table_remove_char): Change arguments to
332         hide decoding_table vector.
333         (decoding_table_put_char): Likewise.
334
335 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * mule-charset.c (decoding_table_remove_char): Moved to
338         char-ucs.h.
339         (decoding_table_put_char): Likewise.
340
341         * char-ucs.h (decoding_table_check_elements): New prototype [moved
342         from mule-charset.c].
343         (decoding_table_remove_char): New inline function [moved from
344         mule-charset.c].
345         (decoding_table_put_char): Likewise.
346
347 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
350         instead of `DECODE_CHAR' for mother; don't use special code for
351         chinese-big5 to use code space of chinese-big5-1 and
352         chinese-big5-2.
353         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
354         `MAX_CHAR_BIG5_CDP' for chinese-big5.
355
356         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
357         (MAX_CHAR_BIG5_CDP): Revival.
358
359 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
362         the XLFD registry-encoding name of `chinese-big5'.
363
364 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
365
366         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
367         (Qchinese_big5_cdp): Deleted.
368         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
369         (complex_vars_of_mule_charset): Delete coded-charset
370         `chinese-big5-cdp'.
371
372         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
373         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
374         `CHARSET_ID_OFFSET - n' for private CCS.
375         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
376         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
377         of `MIN_LEADING_BYTE'.
378         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
379         `(CHARSET_ID_OFFSET - 97)'.
380         (MIN_CHAR_BIG5_CDP): Deleted.
381         (MAX_CHAR_BIG5_CDP): Deleted.
382
383 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
384
385         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
386         extension.
387
388 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * mule-charset.c (decode_builtin_char): Support mother charsets.
391
392 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
393
394         * mule-charset.c (Q94x94x60): New variable.
395         (charset_code_point): Support conversion `94x94x60'.
396         (Fmake_charset): Likewise.
397         (syms_of_mule_charset): Add new symbol `94x94x60'.
398
399         * char-ucs.h (CONVERSION_94x94x60): New macro.
400
401 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
402
403         * mule-charset.c (charset_code_point): Unify code about
404         `code-offset'.
405
406 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
407
408         * mule-charset.c (charset_code_point): Merge code about builtin
409         characters into code about mother charsets; don't use
410         `range_charset_code_point'.
411         (range_charset_code_point): Deleted.
412
413 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * mule-charset.c (Qcode_offset): New variable.
416         (Fmake_charset): Use `XUINT' to get value of `min-code' and
417         `max-code'; accept new property `code-offset'.
418         (syms_of_mule_charset): Add new symbol `code-offset'.
419
420 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * mule-charset.c (range_charset_code_point): Fixed.
423
424 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * mule-charset.c (decode_builtin_char): Change semantics of
427         code-offset of coded-charset.
428         (charset_code_point): Likewise.
429         (range_charset_code_point): Likewise.
430         (complex_vars_of_mule_charset): Modify for the change.
431
432 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * mule-charset.c (Fencode_char): Reverse arguments.
435
436         * mule-charset.c (charset_code_point): Fixed.
437
438 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
439
440         * mule-charset.c (Vcharset_mojikyo): Deleted.
441         (Vcharset_mojikyo_2022_1): Deleted.
442         (Vcharset_mojikyo_pj_{1..21}): Deleted.
443         (Qmin_code): New variable in UTF-2000.
444         (Qmax_code): Likewise.
445         (Qmother): Likewise.
446         (Qconversion): Likewise.
447         (Q94x60): Likewise.
448         (Qmojikyo): Deleted.
449         (Qmojikyo_2022_1): Deleted.
450         (Qmojikyo_pj_{1..22}): Deleted.
451         (mark_charset): Mark `cs->mother'.
452         (charset_description): Add description for `mother'.
453         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
454         new arguments `mother' and `conversion'; use
455         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
456         (charset_code_point): Moved from char-ucs.h; support `mother'
457         charset feature.
458         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
459         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
460         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
461         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
462         allow 2 as the value of `graphic' in UTF-2000; add new properties
463         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
464         require `final' in UTF-2000; modify for `make_charset'.
465         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
466         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
467         (Fcharset_property): Support `mother', `min-code' and `max-code'.
468         (Fencode_char): New function.
469         (syms_of_mule_charset): Add new builtin function `encode-char' in
470         UTF-2000; add new symbols `min-code', `max-code', `mother',
471         `conversion' and `94x60'; delete symbols `mojikyo',
472         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
473         (complex_vars_of_mule_charset): Modify for `make_charset' change;
474         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
475         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
476
477         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
478         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
479
480         * char-ucs.h (Vcharset_mojikyo): Deleted.
481         (Vcharset_mojikyo_2022_1): Deleted.
482         (LEADING_BYTE_MOJIKYO): Deleted.
483         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
484         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
485         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
486         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
487         add new member `mother'; add new member `conversion'.
488         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
489         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
490         (CHARSET_MOTHER): New macro.
491         (CHARSET_CONVERSION): New macro.
492         (CONVERSION_IDENTICAL): New macro.
493         (CONVERSION_94x60): New macro.
494         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
495         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
496         (XCHARSET_MOTHER): New macro.
497         (XCHARSET_CONVERSION): New macro.
498         (MIN_CHAR_MOJIKYO): Deleted.
499         (MAX_CHAR_MOJIKYO): Deleted.
500         (DECODE_MOJIKYO_2022): Deleted.
501         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
502         (charset_code_point): Changed to non-inline function.
503         (encode_char_1): Use `charset_code_point'.
504         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
505
506 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * lread.c (read_compiled_function): Fix prototype.
509         (read_vector): Likewise.
510
511 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * lrecord.h (struct lrecord_header): Delete `older'.
514         (set_lheader_implementation): Delete code for `older'.
515         (set_lheader_older_implementation): Deleted.
516         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
517         (OLDER_RECORD_P): Deleted.
518         (OLDER_RECORD_HEADER_P): Deleted.
519         (alloc_older_lcrecord): Deleted.
520         (alloc_older_lcrecord_type): Deleted.
521
522         * alloc.c (all_older_lcrecords): Deleted.
523         (alloc_older_lcrecord): Deleted.
524         (disksave_object_finalization_1): Delete code for older objects.
525         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
526         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
527
528 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (decoding_table_put_char): Use `make_vector'
531         instead of `make_older_vector'.
532         (put_char_ccs_code_point): Likewise.
533         (mark_charset): Mark `cs->decoding_table'.
534         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
535
536         * lisp.h (make_older_vector): Deleted.
537         (make_vector_newer): Deleted.
538
539         * config.h.in (HAVE_GGC): Deleted.
540
541         * alloc.c (make_older_vector): Deleted.
542         (make_vector_newer_1): Deleted.
543         (make_vector_newer): Deleted.
544
545 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
548         (Qideograph_daikanwa_2): New variable.
549         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
550         (complex_vars_of_mule_charset): Add new coded-charset
551         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
552         `LEADING_BYTE_DAIKANWA'.
553
554         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
555         (LEADING_BYTE_DAIKANWA_1): New macro.
556         (LEADING_BYTE_DAIKANWA_2): New macro.
557         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
558
559 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * mule-charset.c (complex_vars_of_mule_charset): Change
562         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
563         the second revised version.
564
565 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
566
567         * mule-charset.c (Vcharset_ucs_smp): New variable.
568         (Vcharset_ucs_sip): New variable.
569         (Qucs_smp): New variable.
570         (Qucs_sip): New variable.
571         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
572         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
573         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
574         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
575         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
576         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
577
578         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
579         (LEADING_BYTE_UCS_SIP): New macro.
580         (MIN_CHAR_SMP): New macro.
581         (MAX_CHAR_SMP): New macro.
582         (MIN_CHAR_SIP): New macro.
583         (MAX_CHAR_SIP): New macro.
584
585 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
586
587         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
588         utf-2000.
589
590 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
593         value; don't store value into `encoding_table' of `Lisp_Charset'.
594         (mark_charset): `encoding_table' was deleted.
595         (charset_description): Likewise.
596         (make_charset): Likewise.
597         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
598         `put_char_ccs_code_point'.
599
600         * chartab.h (Fput_char_attribute): New EXFUN.
601
602         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
603         is unified with normal symbol space.
604         (Fget_char_attribute): Likewise.
605         (Fput_char_attribute): Likewise; behavior of
606         `put_char_ccs_code_point' is changed.
607
608         * char-ucs.h: Include "elhash.h".
609         (Vchar_attribute_hash_table): New external variable.
610         (struct Lisp_Charset): Delete `encoding_table'.
611         (CHARSET_ENCODING_TABLE): New implementation; refer
612         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
613         `Lisp_Charset'.
614
615 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
618         (cs) == 0.
619
620 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * text-coding.c (char_encode_big5): Prefer charset-g1 than
623         `chinese-big5'.
624
625 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * chartab.c (uint8_byte_table_description): New constant.
628         (uint8-byte-table): Use `uint8_byte_table_description'.
629         (uint16_byte_table_description): New constant.
630         (uint16-byte-table): Use `uint16_byte_table_description'.
631
632 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
635         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
636
637 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * mule-charset.c (Vcharset_ucs_ks): New variable.
640         (Qucs_ks): New variable.
641         (syms_of_mule_charset): Add new symbol `ucs-ks'.
642         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
643
644         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
645
646 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
649         (Fdecode_char): Likewise.
650
651         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
652         chartab.h.
653         (Fdefine_char): Modify for Fdecode_char.
654         (Ffind_char): Likewise.
655
656         * mule-charset.c (Fdecode_char): Add new optional argument
657         `defined-only'.
658         (Fdecode_builtin_char): Modify for `Fdecode_char'.
659
660 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
663         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
664         (allocate_coding_system): Initialize initial-charsets of
665         CODESYS_BIG5 in XEmacs UTF-2000.
666         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
667         CODESYS_BIG5 in XEmacs UTF-2000.
668         (decode_coding_big5): Use initial-charset-g0 and -g1 of
669         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
670
671         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
672         variables.
673         (Qideograph_hanziku_{1 .. 12}): Likewise.
674         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
675         .. 12}'.
676         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
677         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
678         `ideograph-hanziku-{1 .. 12}'.
679
680         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
681         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
682         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
683         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
684         (DECODE_DEFINED_CHAR): New inline function.
685         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
686
687 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule-charset.c (Vcharset_china3_jef): Renamed from
690         `Vcharset_japanese_jef_china3'.
691         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
692         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
693         `{MIN|MAX}_CHAR_JEF_CHINA3'..
694         (syms_of_mule_charset): Rename `china3-jef' from
695         `japanese-jef-china3'.
696         (complex_vars_of_mule_charset): Likewise; rename
697         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
698
699         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
700         `LEADING_BYTE_JEF_CHINA3'.
701         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
702         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
703
704 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
705
706         * mule-charset.c (encode_builtin_char_1): Comment out special code
707         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
708
709         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
710         (MAX_CHAR_MOJIKYO_0): Comment out.
711         (MIN_CHAR_CBETA): Changed to 0x00E20000.
712         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
713         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
714         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
715
716 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
719         (Qideograph_cbeta): New variable.
720         (encode_builtin_char_1): Comment out special code for
721         coded-charset `mojikyo' and `japanese-jef-china3'.
722         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
723         (complex_vars_of_mule_charset): Add new coded-charset
724         `ideograph-cbeta'.
725
726         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
727         (MIN_CHAR_CBETA): New macro.
728         (MAX_CHAR_CBETA): New macro.
729
730 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
731
732         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
733         (LEADING_BYTE_JEF_CHINA3): New macro.
734         (MIN_CHAR_JEF_CHINA3): New macro.
735         (MAX_CHAR_JEF_CHINA3): Likewise.
736         (DECODE_CHAR): Fixed.
737
738 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
741         (Qjapanese_jef_china3): New variable.
742         (encode_builtin_char_1): Support `japanese-jef-china3'.
743         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
744         (complex_vars_of_mule_charset): Add new coded-charset
745         `japanese-jef-china3'.
746
747 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
750         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
751         94^4, 96^3, 96^4, 128^n and 256^n set.
752         (put_char_table): Use `XCHARSET_CELL_RANGE'.
753         (map_char_table): Likewise.
754
755 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
758         UTF-2000.
759
760 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
761
762         * chartab.h (get_char_id_table): New inline function.
763
764         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
765         function.
766
767 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
768
769         * chartab.h (decode_char_table_range): New prototype in XEmacs
770         UTF-2000.
771         (put_char_id_table): New inline function in XEmacs UTF-2000.
772
773         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
774         function.
775         (decode_char_table_range): Delete static declaration in XEmacs
776         UTF-2000.
777
778 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * chartab.c (put_char_id_table): Use `put_char_table'.
781
782 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
785         (map_over_uint16_byte_table): Likewise.
786         (map_over_byte_table): Likewise.
787         (map_char_table): Modify for `map_over_uint8_byte_table',
788         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
789         UTF-2000.
790
791 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * chartab.c (struct map_char_table_for_charset_arg): New
794         structure.
795         (map_char_table_for_charset_fun): New function.
796         (map_char_table): Use `map_char_table' for encoding_table of
797         `range->charset'.
798
799 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * chartab.c (map_char_table): Check a character is found in
802         range->charset instead of non default value is defined in
803         char-table when range is CHARTAB_RANGE_ROW.
804
805 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * chartab.c (map_char_id_table): Deleted.
808         (Fmap_char_attribute): Use `map_char_table' instead of
809         `map_char_id_table'.
810
811 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
812
813         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
814         UTF-2000.
815         (update_syntax_table): Deleted in XEmacs UTF-2000.
816
817         * syntax.c (find_defun_start): Use `syntax_table' instead of
818         `mirror_syntax_table' in XEmacs UTF-2000.
819         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
820         UTF-2000.
821         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
822         XEmacs UTF-2000.
823         (Fmatching_paren): Likewise.
824         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
825         in XEmacs UTF-2000.
826         (find_start_of_comment): Likewise.
827         (find_end_of_comment): Likewise.
828         (Fforward_comment): Likewise.
829         (scan_lists): Likewise.
830         (char_quoted): Likewise.
831         (Fbackward_prefix_chars): Likewise.
832         (scan_sexps_forward): Likewise.
833         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
834         (update_syntax_table): Likewise.
835
836         * search.c (skip_chars): Use `syntax_table' instead of
837         `mirror_syntax_table' in XEmacs UTF-2000.
838         (wordify): Likewise.
839         (Freplace_match): Likewise.
840
841         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
842         `mirror_syntax_table' in XEmacs UTF-2000.
843         (WORDCHAR_P_UNSAFE): Likewise.
844         (re_match_2_internal): Likewise.
845
846         * font-lock.c (find_context): Use `buf->syntax_table' instead of
847         `buf->mirror_syntax_table' in XEmacs UTF-2000.
848
849         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
850         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
851
852         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
853         XEmacs UTF-2000.
854
855         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
856         UTF-2000.
857         (print_char_table): Print `default_value' in XEmacs UTF-2000.
858         (char_table_description): Delete `mirror_table' in XEmacs
859         UTF-2000.
860         (fill_char_table): Don't call `update_syntax_table' in XEmacs
861         UTF-2000.
862         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
863         (Fcopy_char_table): Likewise.
864         (put_char_table): Don't call `update_syntax_table' in XEmacs
865         UTF-2000.
866
867         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
868         `buf->mirror_syntax_table' in XEmacs UTF-2000.
869         (casify_region_internal): Likewise.
870
871         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
872
873         * buffer.c (common_init_complex_vars_of_buffer): Don't use
874         `mirror_syntax_table' in XEmacs UTF-2000.
875
876         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
877         `buf->mirror_syntax_table' in XEmacs UTF-2000.
878         (Fexpand_abbrev): Likewise.
879
880 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
881
882         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
883
884 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
887         (map_over_uint16_byte_table): Likewise.
888         (map_over_byte_table): Likewise.
889         (get_char_id_table): Refer `cit->default_value'.
890         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
891         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
892         of character-id ranges.
893         (mark_char_table): Mark `ct->default_value'.
894         (char_table_description): Add `default_value'.
895         (fill_char_table): Use `default_value'.
896         (decode_char_table_range): Decode `nil' as
897         `CHARTAB_RANGE_DEFAULT'.
898         (get_char_id_table): Refer `cit->default_value'.
899         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
900         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
901         temporary hack; check value of char-table is bound or not.
902         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
903
904         * chartab.h (struct Lisp_Char_Table): Add new member
905         `default_value' in XEmacs UTF-2000.
906         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
907         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
908         UTF-2000.
909
910 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * chartab.h (Lisp_Char_ID_Table): Deleted.
913
914         * chartab.c (char_table_description): Fix typo.
915         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
916         `Lisp_Char_ID_Table'.
917
918 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
921         `CHAR_ID_TABLE_P'.
922
923         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
924         `CHAR_ID_TABLE_P'.
925
926         * chartab.h (XCHAR_ID_TABLE): Deleted.
927         (XSETCHAR_ID_TABLE): Deleted.
928         (CHAR_ID_TABLE_P): Deleted.
929
930         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
931         `CHAR_ID_TABLE_P'.
932         (Fget_composite_char): Likewise.
933         (put_char_table): Likewise.
934         (add_char_attribute_alist_mapper): Fixed.
935         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
936         `CHAR_ID_TABLE_P'.
937         (Fget_char_attribute): Likewise.
938         (Fget_char_attribute): Likewise.
939         (Fmap_char_attribute): Likewise.
940
941         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
942         `CHAR_ID_TABLE_P'.
943         (encode_char_1): Likewise.
944
945 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
946
947         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
948         `XCHAR_ID_TABLE'.
949
950         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
951         instead of `XCHAR_ID_TABLE'.
952         (remove_char_ccs): Likewise.
953
954         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
955         `XCHAR_ID_TABLE'.
956         (Fget_composite_char): Likewise.
957         (Fchar_variants): Likewise.
958         (put_char_table): Likewise.
959         (add_char_attribute_alist_mapper): Likewise.
960         (Fchar_attribute_alist): Likewise.
961         (Fget_char_attribute): Likewise.
962         (Fput_char_attribute): Likewise.
963         (Fmap_char_attribute): Likewise.
964         (Fmap_char_attribute): Likewise.
965
966         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
967         `XCHAR_ID_TABLE'.
968         (encode_char_1): Likewise.
969
970 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
973         `Lisp_Char_ID_Table'.
974         (mark_char_id_table): Deleted.
975         (print_char_id_table): Likewise.
976         (char_id_table_equal): Likewise.
977         (char_id_table_hash): Likewise.
978         (char_id_table_description): Likewise.
979         (char_id_table): Likewise.
980         (make_char_id_table): Use `Fmake_char_table' and
981         `fill_char_table'.
982         (get_char_id_table): Use `Lisp_Char_Table' instead of
983         `Lisp_Char_ID_Table'.
984         (put_char_id_table): Likewise.
985         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
986         `XCHAR_ID_TABLE'.
987         (Fremove_char_attribute): Likewise.
988         (syms_of_chartab): Don't define type `char-id-table'.
989
990         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
991         (char_id_table): Likewise.
992         (GC_CHAR_ID_TABLE_P): Likewise.
993         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
994         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
995         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
996         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
997         (get_char_id_table): Use `Lisp_Char_Table' instead of
998         `Lisp_Char_ID_Table'.
999         (put_char_id_table_0): Likewise.
1000         (put_char_id_table): Likewise.
1001
1002 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1003
1004         * chartab.h: Lisp_Byte_Table related codes are moved from
1005         chartab.h.
1006
1007         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1008
1009 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1010
1011         * chartab.h: Don't include "chartab.h".
1012         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1013         (Lisp_Char_ID_Table): Likewise.
1014         (char_id_table): Likewise.
1015         (XCHAR_ID_TABLE): Likewise.
1016         (XSETCHAR_ID_TABLE): Likewise.
1017         (CHAR_ID_TABLE_P): Likewise.
1018         (GC_CHAR_ID_TABLE_P): Likewise.
1019         (get_char_id_table): Likewise.
1020
1021         * char-ucs.h: Include "chartab.h".
1022         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1023         (Lisp_Char_ID_Table): Likewise.
1024         (char_id_table): Likewise.
1025         (XCHAR_ID_TABLE): Likewise.
1026         (XSETCHAR_ID_TABLE): Likewise.
1027         (CHAR_ID_TABLE_P): Likewise.
1028         (GC_CHAR_ID_TABLE_P): Likewise.
1029         (get_char_id_table): Likewise.
1030
1031 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1032
1033         * chartab.c (copy_uint8_byte_table): New function.
1034         (copy_uint16_byte_table): New function.
1035         (copy_byte_table): New function.
1036         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1037         characters to call.
1038         (map_over_uint16_byte_table): Likewise.
1039         (map_over_byte_table): Likewise.
1040         (get_byte_table): Move prototype to chartab.h.
1041         (put_byte_table): Likewise.
1042         (put_char_id_table_0): Moved to chartab.h.
1043         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1044         (char_table_entry_equal): Likewise.
1045         (char_table_entry_hash): Likewise.
1046         (char_table_entry_description): Likewise.
1047         (char_table_entry): Likewise.
1048         (make_char_table_entry): Likewise.
1049         (copy_char_table_entry): Likewise.
1050         (get_non_ascii_char_table_value): Likewise.
1051         (map_over_charset_ascii): Likewise.
1052         (map_over_charset_control_1): Likewise.
1053         (map_over_charset_row): Likewise.
1054         (map_over_other_charset): Likewise.
1055         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1056         (print_char_table): Likewise.
1057         (char_table_equal): Likewise.
1058         (char_table_hash): Likewise.
1059         (char_table_description): Likewise.
1060         (fill_char_table): Likewise.
1061         (Fcopy_char_table): Likewise.
1062         (get_char_table): Likewise.
1063         (Fget_range_char_table): Likewise.
1064         (put_char_table): Likewise.
1065         (map_char_table): Likewise.
1066         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1067         UTF-2000.
1068
1069 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1072         `Vauto_fill_chars' in XEmacs UTF-2000.
1073
1074         * chartab.h (get_byte_table): New prototype [moved from
1075         chartab.c].
1076         (put_byte_table): Likewise [moved from chartab.c].
1077         (put_char_id_table_0): New inline function [moved from chartab.c].
1078         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1079         (Lisp_Char_Table_Entry): Likewise.
1080         (char_table_entry): Likewise.
1081         (XCHAR_TABLE_ENTRY): Likewise.
1082         (XSETCHAR_TABLE_ENTRY): Likewise.
1083         (CHAR_TABLE_ENTRYP): Likewise.
1084         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1085         (NUM_ASCII_CHARS): Likewise.
1086         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1087         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1088
1089 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * chartab.c (get_char_id_table): Change interface.
1092         (put_char_id_table_0): New function.
1093         (put_char_id_table): Change interface; new implementation.
1094         (Fget_composite_char): Modify for interface change of
1095         `get_char_id_table'.
1096         (Fchar_variants): Likewise.
1097         (add_char_attribute_alist_mapper): Likewise.
1098         (Fchar_attribute_alist): Likewise.
1099         (Fget_char_attribute): Likewise.
1100         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1101         as same as character as the first argument like `put-char-table';
1102         modify for interface change of `put_char_id_table'.
1103         (Fremove_char_attribute): Modify for interface change of
1104         `put_char_id_table'.
1105
1106 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1107
1108         * text-coding.c: Sync up with XEmacs 21.2.41.
1109         (COMPOSE_ADD_CHAR): Modify for interface change of
1110         `get_char_id_table'.
1111
1112         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1113         change of `put_char_id_table'.
1114         (remove_char_ccs): Likewise.
1115
1116         * chartab.h (put_char_id_table): Change interface.
1117
1118         * char-ucs.h (get_char_id_table): Change interface.
1119         (charset_code_point): Modify for interface change of
1120         `get_char_id_table'.
1121         (encode_char_1): Likewise.
1122
1123 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1124
1125         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1126         argument `ccs'.
1127         (map_over_uint16_byte_table): Likewise.
1128         (map_over_byte_table): Likewise.
1129         (map_char_id_table): Add new argument `range' like
1130         `map_char_table'.
1131         (Fmap_char_attribute): Add new argument `range' like
1132         `Fmap_char_table'.
1133
1134 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1135
1136         * chartab.c (map_over_uint8_byte_table): Change interface of
1137         mapping function to use struct chartab_range instead of Emchar.
1138         (map_over_uint16_byte_table): Likewise.
1139         (map_over_byte_table): Likewise.
1140         (map_char_id_table): Likewise.
1141         (struct slow_map_char_id_table_arg): Deleted.
1142         (slow_map_char_id_table_fun): Deleted.
1143         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1144         function `slow_map_char_table_fun' instead of struct
1145         `slow_map_char_id_table_arg' and function
1146         `slow_map_char_id_table_fun'.
1147
1148 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1149
1150         * mule-charset.c: Move char-it-table related codes to chartab.c.
1151         (Vutf_2000_version): Moved to chartab.c.
1152         (Fdefine_char): Likewise.
1153         (Ffind_char): Likewise.
1154         (syms_of_mule_charset): Move types `uint8-byte-table',
1155         `uint16-byte-table', `byte-table' and `char-id-table' to
1156         chartab.c; move functions `char_attribute_list,
1157         `find_char_attribute_table, `char_attribute_alist,
1158         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1159         `map_char_attribute, `define_char, `find_char, `char_variants and
1160         `get_composite_char to chartab.c; move symbols `=>ucs',
1161         `->decomposition', `compat', `isolated', `initial', `medial',
1162         `final', `vertical', `noBreak', `fraction', `super', `sub',
1163         `circle', `square', `wide', `narrow', `small' and `font' to
1164         chartab.c.
1165         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1166         setting codes for `Vcharacter_composition_table' and
1167         `Vcharacter_variant_table' to chartab.c.
1168         (complex_vars_of_mule_charset): Move setting code for
1169         `Vchar_attribute_hash_table' to chartab.c.
1170
1171         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1172         (make_char_id_table): New prototype.
1173         (put_char_id_table): Likewise.
1174         (Fget_char_attribute): Likewise.
1175
1176         * chartab.c: Move char-id-table related code from mule-charset.c.
1177         (Vutf_2000_version): Moved from mule-charset.c.
1178
1179         * char-ucs.h (Qucs): New external variable.
1180         (put_char_ccs_code_point): New prototype.
1181         (remove_char_ccs): Likewise.
1182
1183 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1184
1185         * mule-charset.c (Vcharset_ucs_jis): New variable.
1186         (Qucs_jis): Likewise.
1187         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1188         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1189
1190         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1191
1192 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * mule-charset.c (map_over_uint8_byte_table): New function.
1195         (map_over_uint16_byte_table): Likewise.
1196         (map_over_byte_table): Likewise.
1197         (map_char_id_table): Likewise.
1198         (slow_map_char_id_table_fun): Likewise.
1199         (Fmap_char_attribute): Likewise.
1200         (syms_of_mule_charset): Add new function `map-char-attribute'.
1201
1202 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1205         (syms_of_mule_charset): Add new function `find-char'.
1206
1207 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1208
1209         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1210         XEmacs UTF-2000.
1211         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1212         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1213         XEmacs UTF-2000.
1214         (complex_vars_of_mule_charset): Add new coded-charset
1215         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1216         `ideograph-gt-pj-*'.
1217
1218         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1219
1220 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * mule-charset.c (encode_builtin_char_1): Purge codes about
1223         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1224         {MIN|MAX}_CHAR_HEBREW.
1225         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1226         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1227
1228         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1229         (MAX_CHAR_GREEK): Purged.
1230         (MIN_CHAR_CYRILLIC): Purged.
1231         (MAX_CHAR_CYRILLIC): Purged.
1232         (MIN_CHAR_HEBREW): Commented out.
1233         (MAX_CHAR_HEBREW): Likewise.
1234
1235 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1236
1237         * mule-charset.c (Qto_ucs): New variable.
1238         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1239         (Fdefine_char): Likewise.
1240         (syms_of_mule_charset): Add new symbol `=>ucs'.
1241
1242 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * mule-charset.c (Fdecode_char): Fixed.
1245
1246 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1247
1248         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1249         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1250         "tcvn5712-1".
1251
1252 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * mule-charset.c (Vcharset_ucs_big5): New variable.
1255         (Qucs_big5): Likewise.
1256         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1257         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1258
1259         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1260
1261 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1262
1263         * mule-charset.c (decode_builtin_char): Check Big5 code range
1264         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1265
1266 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1269         (Qchinese_gb12345): Likewise.
1270         (Fdecode_builtin_char): Fixed.
1271         (syms_of_mule_charset): Add `chinese-gb12345'.
1272         (complex_vars_of_mule_charset): Add coded-charset
1273         `chinese-gb12345'.
1274
1275         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1276         (LEADING_BYTE_CHINESE_GB12345): New macro.
1277
1278 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1281         and `latin-viscii-upper' for `latin-viscii'.
1282
1283 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1284
1285         * mule-charset.c (Fdecode_builtin_char): Comment out
1286         regularization code for ISO-IR GR representation.
1287
1288 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (decode_builtin_char): New function; renamed from
1291         `make_builtin_char'; return -1 instead of signal.
1292         (Fdecode_builtin_char): Use `decode_builtin_char'.
1293
1294         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1295         `make_builtin_char'.
1296         (DECODE_CHAR): Use `decode_builtin_char' instead of
1297         `make_builtin_char'; use mapping table of `chinese-big5' for
1298         `chinese-big5-{1,2}'.
1299
1300 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1301
1302         * text-coding.c (char_encode_big5): New function.
1303         (char_finish_big5): Likewise.
1304         (reset_encoding_stream): Use `char_encode_big5' and
1305         `char_finish_big5' for CODESYS_BIG5.
1306         (mule_encode): Don't use `encode_coding_big5'.
1307         (encode_coding_big5): Deleted.
1308
1309 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1310
1311         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1312         0x81- in XEmacs UTF-2000.
1313         (detect_coding_big5): Likewise.
1314
1315 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1316
1317         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1318         generate character-id if the CCS property does not have
1319         corresponding predefined character.
1320         (make_builtin_char): Return -1 if corresponding predefined
1321         character is not found.
1322         (Fdecode_char): Return nil if corresponding character is not
1323         found.
1324         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1325         don't map to builtin ucs space.
1326
1327 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1328
1329         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1330         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1331
1332 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1335         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1336         (Qideograph_gt): Likewise.
1337         (Qideograph_gt_pj_{1..11}): Likewise.
1338         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1339         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1340         `ideograph-gt-pj-11'.
1341         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1342         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1343         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1344
1345         * char-ucs.h (LEADING_BYTE_GT): New macro.
1346         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1347         (MIN_CHAR_GT): Likewise.
1348         (MAX_CHAR_GT): Likewise.
1349
1350 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1353         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1354
1355         * doprnt.c (unsigned_int_converters): Add `c'.
1356         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1357
1358         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1359         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1360         `MIN_CHAR_MOJIKYO'.
1361         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1362         (MAX_CHAR_MOJIKYO_0): New macro.
1363         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1364
1365 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1366
1367         * mule-charset.c (Fdefine_char): Delete cemented out code.
1368         (encode_builtin_char_1): Modify for new allocation of builtin
1369         Mojikyo characters.
1370
1371         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1372
1373 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * mule-charset.c (Vcharset_ucs_cns): New variable.
1376         (Qucs_cns): New variable.
1377         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1378         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1379
1380 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1381
1382         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1383
1384 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1385
1386         * search.c (search_buffer): Make `charset_base_code' as
1387         character-id >> 6 to eliminate the corresponding last byte in
1388         UTF-8 representation [I'm not sure it is right thing].
1389         (boyer_moore): Likewise.
1390
1391 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1392
1393         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1394         representation in MULE.
1395
1396 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * text-coding.c (Fmake_coding_system): Use
1399         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1400         `EXTERNAL_PROPERTY_LIST_LOOP'.
1401
1402 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * text-coding.c (decode_output_utf8_partial_char): New function.
1405         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1406
1407 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * text-coding.c (decode_coding_utf8): Output original byte
1410         sequence if it is broken; change order of conditions.
1411
1412         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1413         of conditions.
1414
1415         * mb-multibyte.h (BYTE_ASCII_P):
1416         Use bit ops for char-signedness safety.
1417         (BYTE_C0_P): Use bit ops for char-signedness safety.
1418         (BYTE_C1_P): Use bit ops for char-signedness safety.
1419
1420         * character.h: (XCHAR_OR_CHAR_INT):
1421         Always use inline function.
1422         Remove redundant type checking assert() - XINT will abort quite
1423         nicely.
1424
1425 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * text-coding.c: (Fencode_shift_jis_char):
1428         (Fencode_big5_char):
1429         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1430         Replace 0 with '\0' when working with bytes.
1431         Replace initial "(" with "\(" in docstrings.
1432
1433         (Fmake_coding_system):
1434         When type is ccl and value is vector, register it with a proper
1435         symbol.  And checks whether the given ccl program is valid.
1436         (mule_decode): When calling ccl_driver, if src indicates
1437         NULL pointer, set an empty string instead.
1438         (mule_encode): Likewise.
1439
1440         (detect_eol_type):
1441         (detect_coding_sjis):
1442         (decode_coding_sjis):
1443         (detect_coding_big5):
1444         (decode_coding_big5):
1445         (detect_coding_ucs4):
1446         (decode_coding_ucs4):
1447         (detect_coding_utf8):
1448         (decode_coding_utf8):
1449         (detect_coding_iso2022):
1450         (decode_coding_iso2022):
1451         (decode_coding_no_conversion):
1452         (mule_decode):
1453         Make all detecting and decoding functions take an Extbyte * arg.
1454         (text_encode_generic):
1455         (encode_coding_big5):
1456         (encode_coding_no_conversion):
1457         (mule_encode):
1458         Make all encoding functions take a Bufbyte * arg.
1459         Use size_t instead of unsigned int for memory sizes.
1460         Only cast to unsigned char whenever dereferencing Extbyte *.
1461
1462         (struct lrecord_description fcd_description_1): Use countof.
1463         (complex_vars_of_file_coding):
1464         Use countof instead of sizeof.
1465         Use CHECK_NATNUM instead of CHECK_INT.
1466
1467 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468
1469         * mule-charset.c (Fget_char_attribute): Add new optional argument
1470         `default-value'.
1471         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1472         (remove_char_ccs): Likewise.
1473
1474 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1475
1476         * text-coding.c (char_encode_shift_jis): New implementation in
1477         UTF-2000.
1478         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1479         ...)'.
1480
1481         * mule-charset.c (Vcharset_chinese_big5): New variable in
1482         UTF-2000.
1483         (Qchinese_big5): New variable in UTF-2000.
1484         (BIG5_SAME_ROW): New macro in UTF-2000.
1485         (make_builtin_char): Use builtin characters of
1486         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1487         characters of `Vcharset_chinese_big5'.
1488         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1489         (complex_vars_of_mule_charset): Add new coded-charset
1490         `chinese-big5' in UTF-2000.
1491
1492         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1493         (Vcharset_chinese_big5): New external variable declaration.
1494         (Vcharset_japanese_jisx0208_1990): Likewise.
1495
1496 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497
1498         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1499         function.
1500         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1501
1502 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1505         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1506         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1507         `mojikyo-pj-*'.
1508
1509 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1512
1513 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1516         to 0.17.
1517
1518 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519
1520         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1521         for `CHARSET_BY_ATTRIBUTES'.
1522         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1523         `CHARSET_BY_ATTRIBUTES'.
1524
1525         * text-coding.c (struct decoding_stream): Rename member `CH' to
1526         `CPOS'.
1527         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1528         (decode_coding_sjis): Likewise.
1529         (decode_coding_big5): Likewise.
1530         (decode_coding_ucs4): Likewise.
1531         (decode_coding_utf8): Likewise.
1532         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1533         `CHARSET_BY_ATTRIBUTES'.
1534         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1535         `str->counter'; decode 3, 4 bytes sets.
1536         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1537         sets.
1538         (decode_coding_no_conversion): Use `str->cpos' instead of
1539         `str->ch'.
1540
1541         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1542         (Qmojikyo_2022_1): New variable.
1543         (make_charset): Don't use `CHARSET_TYPE_*'.
1544         (range_charset_code_point): Support coded-charset
1545         `mojikyo-2022-1'.
1546         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1547         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1548         `CHARSET_BY_ATTRIBUTES'.
1549         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1550         `CHARSET_BY_ATTRIBUTES'.
1551         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1552         (complex_vars_of_mule_charset): Add new coded-charset
1553         `mojikyo-2022-1'.
1554
1555         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1556         interface; changed to inline function.
1557
1558         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1559         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1560         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1561         (CHARSET_TYPE_94): Deleted.
1562         (CHARSET_TYPE_94X94): Deleted.
1563         (CHARSET_TYPE_96): Deleted.
1564         (CHARSET_TYPE_96X96): Deleted.
1565         (CHARSET_TYPE_128): Deleted.
1566         (CHARSET_TYPE_128X128): Deleted.
1567         (CHARSET_TYPE_256): Deleted.
1568         (CHARSET_TYPE_256X256): Deleted.
1569         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1570         to inline function.
1571         (DECODE_MOJIKYO_2022): New inline function.
1572         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1573         `Vcharset_mojikyo_2022_1'.
1574
1575 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1576
1577         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1578         instead of `EQ'.
1579         (put_byte_table): Likewise.
1580         (char_id_table_equal): Use `get_byte_table' [new implementation].
1581
1582 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1583
1584         * mule-charset.c: Include <limits.h> in UTF-2000.
1585         (BT_UINT8_MIN): New macro in UTF-2000.
1586         (BT_UINT8_MAX): New macro in UTF-2000.
1587         (BT_UINT8_t): New macro in UTF-2000.
1588         (BT_UINT8_nil): New macro in UTF-2000.
1589         (BT_UINT8_unbound): New macro in UTF-2000.
1590         (INT_UINT8_P): New inline function in UTF-2000.
1591         (UINT8_VALUE_P): New inline function in UTF-2000.
1592         (UINT8_ENCODE): New inline function in UTF-2000.
1593         (UINT8_DECODE): New inline function in UTF-2000.
1594         (mark_uint8_byte_table): New function in UTF-2000.
1595         (print_uint8_byte_table): New function in UTF-2000.
1596         (uint8_byte_table_equal): New function in UTF-2000.
1597         (uint8_byte_table_hash): New function in UTF-2000.
1598         (make_uint8_byte_table): New function in UTF-2000.
1599         (uint8_byte_table_same_value_p): New function in UTF-2000.
1600         (BT_UINT16_MIN): New macro in UTF-2000.
1601         (BT_UINT16_MAX): New macro in UTF-2000.
1602         (BT_UINT16_t): New macro in UTF-2000.
1603         (BT_UINT16_nil): New macro in UTF-2000.
1604         (BT_UINT16_unbound): New macro in UTF-2000.
1605         (INT_UINT16_P): New inline function in UTF-2000.
1606         (UINT16_VALUE_P): New inline function in UTF-2000.
1607         (UINT16_ENCODE): New inline function in UTF-2000.
1608         (UINT16_DECODE): New inline function in UTF-2000.
1609         (UINT8_TO_UINT16): New inline function in UTF-2000.
1610         (mark_uint16_byte_table): New function in UTF-2000.
1611         (print_uint16_byte_table): New function in UTF-2000.
1612         (uint16_byte_table_equal): New function in UTF-2000.
1613         (uint16_byte_table_hash): New function in UTF-2000.
1614         (make_uint16_byte_table): New function in UTF-2000.
1615         (uint16_byte_table_same_value_p): New function in UTF-2000.
1616         (print_byte_table): New function in UTF-2000.
1617         (byte-table): Use `print_byte_table' as printer.
1618         (make_byte_table): Delete second argument `older'.
1619         (byte_table_same_value_p): New function in UTF-2000.
1620         (copy_byte_table): Deleted.
1621         (get_byte_table): New function in UTF-2000.
1622         (put_byte_table): New function in UTF-2000.
1623         (print_char_id_table): New function in UTF-2000.
1624         (char-id-table): Use `print_char_id_table' as printer.
1625         (make_char_id_table): Delete second argument `older'.
1626         (get_char_id_table): Use `get_byte_table [new implementation].
1627         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1628         implementation].
1629         (Ffind_char_attribute_table): New function in UTF-2000.
1630         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1631         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1632         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1633         (syms_of_mule_charset): Add new function
1634         `find-char-attribute-table' in UTF-2000.
1635
1636         * lrecord.h (enum lrecord_type): Add
1637         `lrecord_type_uint16_byte_table' and
1638         `lrecord_type_uint8_byte_table'.
1639
1640         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1641         (Lisp_Uint8_Byte_Table): New type.
1642         (XUINT8_BYTE_TABLE): New macro.
1643         (XSETUINT8_BYTE_TABLE): New macro.
1644         (UINT8_BYTE_TABLE_P): New macro.
1645         (GC_UINT8_BYTE_TABLE_P): New macro.
1646         (struct Lisp_Uint16_Byte_Table): New structure.
1647         (Lisp_Uint16_Byte_Table): New type.
1648         (XUINT16_BYTE_TABLE): New macro.
1649         (XSETUINT16_BYTE_TABLE): New macro.
1650         (UINT16_BYTE_TABLE_P): New macro.
1651         (GC_UINT16_BYTE_TABLE_P): New macro.
1652
1653 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1654
1655         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1656         (Vcharacter_ideographic_strokes_table): Deleted.
1657         (Vcharacter_total_strokes_table): Deleted.
1658         (Vcharacter_morohashi_daikanwa_table): Deleted.
1659         (Vcharacter_decomposition_table): Deleted.
1660         (Qname): Deleted because it is duplicated.
1661         (Qideographic_radical): Deleted.
1662         (Qideographic_strokes): Deleted.
1663         (Qtotal_strokes): Deleted.
1664         (Qmorohashi_daikanwa): Deleted.
1665         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1666         `ideographic-radical', `ideographic-strokes', `total-strokes',
1667         `morohashi-daikanwa' and `->decomposition'.
1668         (Fget_char_attribute): Likewise.
1669         (Fput_char_attribute): Likewise; use `make-vector' instead of
1670         `make_older_vector' for `->decomposition' value.
1671         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1672         `ideograph-daikanwa'.
1673         (syms_of_mule_charset): Delete builtin symbols `name',
1674         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1675         `morohashi-daikanwa'.
1676         (vars_of_mule_charset): Don't setup
1677         `Vcharacter_ideographic_radical_table',
1678         `Vcharacter_ideographic_strokes_table',
1679         `Vcharacter_total_strokes_table',
1680         `Vcharacter_morohashi_daikanwa_table' and
1681         `Vcharacter_decomposition_table'.
1682
1683 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1686         `make_older_vector', `make_vector_newer_1' and
1687         `make_vector_newer'.
1688
1689         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1690         `make_older_vector' and `make_vector_newer'.
1691
1692         * config.h.in (HAVE_GGC): New macro.
1693
1694 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1695
1696         * mule-charset.c (struct char_attribute_list_closure): New
1697         structure in UTF-2000.
1698         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1699         (Fchar_attribute_list): Likewise.
1700         (Fset_charset_mapping_table): Use `make_vector_newer'.
1701         (Fdecode_builtin_char): New function in UTF-2000.
1702         (syms_of_mule_charset): Add new function `char-attribute-list' and
1703         `decode-builtin-char' in UTF-2000.
1704
1705         * lisp.h (make_vector_newer): New prototype.
1706
1707         * alloc.c (make_vector_newer_1): New function.
1708         (make_vector_newer): New function.
1709
1710 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1711
1712         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1713         50100)'.
1714
1715 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716
1717         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1718         (Vcharacter_attribute_table): Deleted.
1719         (Vcharacter_name_table): Deleted.
1720         (put_char_attribute): Deleted.
1721         (remove_char_attribute): Deleted.
1722         (struct char_attribute_alist_closure): New structure.
1723         (add_char_attribute_alist_mapper): New function.
1724         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1725         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1726         (Fget_char_attribute): Likewise.
1727         (Fput_char_attribute): Likewise.
1728         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1729         of `remove_char_attribute'.
1730         (Fdefine_char): Return character.
1731         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1732         and `Vcharacter_name_table'.
1733         (complex_vars_of_mule_charset): Likewise
1734         `Vchar_attribute_hash_table'.
1735
1736 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1737
1738         * character.h (CHARC_CHARSET): New macro.
1739         (CHARC_CHARSET_ID): New macro.
1740         (CHARC_CODE_POINT): New macro.
1741         (CHARC_COLUMNS): New macro.
1742         (CHARC_TO_CHAR): New inline function.
1743         (CHARC_EQ): New inline function.
1744         (CHARC_ASCII_EQ): New inline function.
1745         (CHARC_IS_SPACE): New inline function.
1746         (ASCII_TO_CHARC): New inline function.
1747
1748         * char-ucs.h (encode_char_2): Deleted.
1749         (ENCODE_CHAR): Use `encode_char_1' again.
1750         (breakup_char_1): Likewise.
1751         (CHAR_TO_CHARC): New inline function.
1752
1753         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1754
1755 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756
1757         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1758         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1759         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1760         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1761         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1762         `CHARC_IS_SPACE'.
1763         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1764
1765         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1766         `CHARC_CODE_POINT'.
1767         (x_output_display_block): Use `CHARC_CHARSET' and
1768         `CHARC_ASCII_EQ'.
1769
1770         * redisplay-tty.c (tty_output_display_block): Use
1771         `CHARC_ASCII_EQ'.
1772         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1773
1774         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1775
1776         * insdel.c (find_charsets_in_charc_string): Use
1777         `CHARC_CHARSET_ID'.
1778         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1779         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1780         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1781         (convert_charc_string_into_malloced_string): Likewise.
1782
1783 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1784
1785         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1786         instead of <Emchar_dynarr *> for buf; use
1787         `convert_bufbyte_string_into_charc_dynarr' instead of
1788         `convert_bufbyte_string_into_emchar_dynarr'; use
1789         `find_charsets_in_charc_string' instead of
1790         `find_charsets_in_emchar_string'.
1791
1792         * redisplay.h:
1793         - Include "character.h".
1794         (struct rune): New member `cglyph'; delete member `chr'.
1795
1796         * redisplay.c (redisplay_text_width_charc_string): New function;
1797         delete `redisplay_text_width_emchar_string'.
1798         (rtw_charc_dynarr): New variable; renamed from
1799         `rtw_emchar_dynarr'.
1800         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1801         `rtw_emchar_dynarr'; use
1802         `convert_bufbyte_string_into_charc_dynarr' instead of
1803         `convert_bufbyte_string_into_emchar_dynarr'; use
1804         `redisplay_text_width_charc_string' instead of
1805         `redisplay_text_width_emchar_string'.
1806         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1807         instead of `rtw_emchar_dynarr'; use
1808         `convert_bufbyte_string_into_charc_dynarr' instead of
1809         `convert_bufbyte_string_into_emchar_dynarr'.
1810         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1811         `redisplay_text_width_charc_string' instead of
1812         `redisplay_text_width_emchar_string'.
1813         (create_text_block): Modify for <struct rune> change.
1814         (generate_formatted_string_db): Likewise.
1815         (create_string_text_block): Likewise.
1816         (pixel_to_glyph_translation): Likewise.
1817
1818         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1819         instead of <const Emchar *>.
1820         (x_text_width): Likewise.
1821         (x_output_display_block): Use <Charc_dynarr *> instead
1822         <Emchar_dynarr *>; modify for <structure rune> change.
1823         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1824         *>.
1825
1826         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1827         <const Emchar *>; use `charc_string_displayed_columns' instead of
1828         `emchar_string_displayed_columns'.
1829         (tty_output_display_block): Use <Charc_dynarr *> instead of
1830         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1831         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1832         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1833         `tty_output_emchar_dynarr_dynarr'.
1834         (tty_output_charc_dynarr): New function; delete
1835         `tty_output_charc_dynarr'.
1836
1837         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1838         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1839         <Emchar_dynarr *> for buf; use
1840         `convert_bufbyte_string_into_charc_dynarr' instead of
1841         `convert_bufbyte_string_into_emchar_dynarr'.
1842
1843         * frame.c (title_string_charc_dynarr): New variable; renamed from
1844         `title_string_emchar_dynarr'.
1845         (generate_title_string): Use `title_string_charc_dynarr' instead
1846         of `title_string_emchar_dynarr'; use
1847         `convert_charc_string_into_malloced_string' instead of
1848         `convert_emchar_string_into_malloced_string'.
1849         (init_frame): Use `title_string_charc_dynarr' instead of
1850         `title_string_emchar_dynarr'.
1851
1852         * console.h:
1853         - Include "character.h".
1854         (struct console_methods): Use <const Charc *> instead of <const
1855         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1856         <Emchar_dynarr *> in output_string_method.
1857
1858         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1859         <Emchar_dynarr *>.
1860
1861         * console-stream.c (stream_text_width): Use <const Charc *>
1862         instead of <const Emchar *>.
1863
1864         * character.h (Charc_dynarr): New type.
1865
1866         * char-ucs.h (structure Charc): New structure; define new type
1867         `Charc'.
1868
1869         * char-lb.h (DECODE_CHAR): New inline function.
1870         (encode_char_1): New inline function.
1871         (ENCODE_CHAR): New macro.
1872         (structure Charc): New structure; define new type `Charc'.
1873
1874         * char-1byte.h (Vcharset_control_1): New macro.
1875         (Vcharset_latin_iso8859_1): New macro.
1876         (DECODE_CHAR): New inline function.
1877         (encode_char_1): New inline function.
1878         (ENCODE_CHAR): New macro.
1879         (structure Charc): New structure; define new type `Charc'.
1880
1881         * insdel.c (find_charsets_in_charc_string): New function; delete
1882         `find_charsets_in_emchar_string'.
1883         (charc_string_displayed_columns): New function; delete
1884         `emchar_string_displayed_columns'.
1885         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1886         `convert_bufbyte_string_into_emchar_dynarr'.
1887         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1888         `convert_charc_string_into_bufbyte_dynarr'.
1889         (convert_charc_string_into_malloced_string): New function; delete
1890         `convert_charc_string_into_malloced_string'.
1891
1892         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1893         `find_charsets_in_emchar_string'.
1894         (charc_string_displayed_columns): New prototype; delete
1895         `emchar_string_displayed_columns'.
1896         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1897         `convert_charc_string_into_bufbyte_dynarr'.
1898         (convert_charc_string_into_malloced_string): New prototype; delete
1899         `convert_charc_string_into_malloced_string'.
1900
1901 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1904
1905 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1906
1907         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1908
1909         * char-ucs.h: Use <short> for <Charset_ID>.
1910
1911         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1912         <Charset_ID>.
1913
1914 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1915
1916         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1917         to 0.16.
1918
1919 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1920
1921         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1922         variable.
1923         (Qmorohashi_daikanwa): New variable.
1924         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1925         for `morohashi-daikanwa' attribute.
1926         (Fget_char_attribute): Likewise.
1927         (Fput_char_attribute): Likewise.
1928         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1929         has the same value of `ideograph-daikanwa'.
1930         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1931         (vars_of_mule_charset): Setup
1932         `Vcharacter_morohashi_daikanwa_table'.
1933
1934 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1935
1936         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1937         attributes.
1938         (add_charset_to_list_mapper): Add `key' instead of
1939         `XCHARSET_NAME (value)' to return aliases.
1940
1941 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1942
1943         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1944         variable.
1945         (Vcharacter_ideographic_strokes_table): New variable.
1946         (Qideographic_radical): New variable.
1947         (Qideographic_strokes): New variable.
1948         (Fchar_attribute_alist): Use
1949         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1950         attribute; use `Vcharacter_ideographic_strokes_table' for
1951         `ideographic-strokes' attribute.
1952         (Fget_char_attribute): Likewise.
1953         (Fput_char_attribute): Likewise.
1954         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1955         `ideographic-strokes'.
1956         (vars_of_mule_charset): Setup
1957         `Vcharacter_ideographic_radical_table' and
1958         `Vcharacter_ideographic_strokes_table'.
1959
1960 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1963         (Qtotal_strokes): New variable.
1964         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1965         `total-strokes' attribute.
1966         (Fget_char_attribute): Likewise.
1967         (Fput_char_attribute): Likewise.
1968         (syms_of_mule_charset): Add new symbol `total-strokes'.
1969         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1970
1971 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1974         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1975         are found.
1976         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1977         `->decomposition' attribute.
1978         (Fput_char_attribute): Likewise.
1979         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1980
1981 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * mule-charset.c (decoding_table_check_elements): New function.
1984         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1985
1986 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1987
1988         * mule-charset.c (Fset_charset_mapping_table): Use
1989         `put_char_ccs_code_point'.
1990
1991 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * mule-charset.c (decoding_table_put_char): New inline function.
1994         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1995
1996 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1999         (XCHARSET_BYTE_SIZE): New macro.
2000         (decoding_table_remove_char): New inline function.
2001         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2002         `decoding_table_remove_char'.
2003         (remove_char_ccs): Use `decoding_table_remove_char'.
2004         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2005
2006 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2007
2008         * mule-charset.c (Vcharacter_name_table): New variable.
2009         (Qname): New variable.
2010         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2011         attribute.
2012         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2013         `Vcharacter_name_table' for `name' attribute.
2014         (Fremove_char_attribute): Use function `remove_char_ccs'.
2015         (put_char_ccs_code_point): New function.
2016         (remove_char_ccs): New function.
2017         (syms_of_mule_charset): Add new symbol `name'.
2018         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2019
2020 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2021
2022         * mule-charset.c (make_byte_table): Add new argument `older'.
2023         (make_char_id_table): Likewise.
2024         (copy_char_id_table): Comment out because it is not used.
2025         (put_char_id_table): Modify for `make_byte_table'.
2026         (Fput_char_attribute): Make encoding_table as older object;
2027         inherit older bit of `Vcharacter_composition_table'.
2028         (mark_charset): Don't mark `cs->encoding_table'.
2029         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2030         normal object; make `Vcharacter_composition_table' as an older
2031         object; delete staticpro for `Vcharacter_composition_table'; make
2032         `Vcharacter_variant_table' as a normal object.
2033
2034         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2035         (mark_object): Don't check older object in UTF-2000.
2036
2037         * lrecord.h (struct lrecord_header): Add new member `older' in
2038         UTF-2000.
2039         (set_lheader_implementation): Setup `SLI_header->older' in
2040         UTF-2000.
2041         (set_lheader_older_implementation): New macro in UTF-2000.
2042         (OLDER_RECORD_P): New macro in UTF-2000.
2043         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2044         (alloc_older_lcrecord): New prototype in UTF-2000.
2045         (alloc_older_lcrecord_type): New macro in UTF-2000.
2046
2047 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048
2049         * mule-charset.c (byte_table_description): Use
2050         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2051         (char_id_table_description): Delete bogus `, 1'.
2052         (Fget_char_attribute): Refer encoding_table of each coded-charset
2053         to get value of coded-charset attribute of a character.
2054         (Fput_char_attribute): Use `make_older_vector' instead of
2055         `make_vector'; use encoding_table of each coded-charset to store
2056         value of coded-charset attribute of a character.
2057         (Fremove_char_attribute): Use encoding_table of each coded-charset
2058         to store value of coded-charset attribute of a character.
2059         (mark_charset): Mark `cs->encoding_table'; don't mark
2060         `cs->decoding_table'.
2061         (charset_description): Add description of new member
2062         `encoding_table'.
2063         (make_charset): Initialize `encoding_table'.
2064
2065         * char-ucs.h (struct Lisp_Charset): Add new member
2066         `encoding_table'.
2067         (CHARSET_ENCODING_TABLE): New macro.
2068         (XCHARSET_ENCODING_TABLE): New macro.
2069         (charset_code_point): New implementation.
2070         (encode_char_1): Likewise.
2071
2072         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2073         (disksave_object_finalization_1): Call finalizers of
2074         `all_older_lcrecords' in UTF-2000.
2075         (make_older_vector): New function in UTF-2000.
2076         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2077         UTF-2000.
2078
2079         * lisp.h (make_older_vector): New prototype in UTF-2000.
2080
2081 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2082
2083         * lrecord.h (enum lrecord_type): Rename
2084         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2085
2086         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2087         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2088         `get_char_code_table'.
2089
2090         * mule-charset.c (mark_char_id_table): Renamed from
2091         `mark_char_code_table'.
2092         (char_id_table_equal): Renamed from `char_code_table_equal'.
2093         (char_id_table_hash): Renamed from `char_code_table_hash'.
2094         (make_char_id_table): Renamed from `make_char_code_table'.
2095         (copy_char_id_table): Renamed from `copy_char_code_table'.
2096         (get_char_id_table): Renamed from `get_char_code_table'.
2097         (put_char_id_table): Renamed from `put_char_code_table'.
2098         (to_char_id): Renamed from `to_char_code'.
2099
2100         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2101         `Lisp_Char_Code_Table'.
2102         (char_id_table): Renamed from `char_code_table'.
2103         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2104         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2105         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2106         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2107         (get_char_id_table): Renamed from `get_char_code_table'.
2108
2109 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * lrecord.h (enum lrecord_type): Rename
2112         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2113
2114         * mule-charset.c (mark_byte_table): Renamed from
2115         `mark_char_byte_table'.
2116         (byte_table_equal): Renamed from `char_byte_table_equal'.
2117         (byte_table_hash): Renamed from `byte_table_hash'.
2118         (make_byte_table): Renamed from `make_byte_table'.
2119         (copy_byte_table): Renamed from `copy_char_byte_table'.
2120
2121         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2122         `Lisp_Char_Byte_Table'.
2123         (byte_table): Renamed from `char_byte_table'.
2124         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2125         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2126         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2127         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2128
2129 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2130
2131         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2132         (dfc_convert_to_internal_format): Likewise.
2133         
2134         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2135         * text-coding.c (Fcoding_system_alias_p): New function.
2136         * text-coding.c (Fcoding_system_aliasee): New function.
2137         * text-coding.c (append_suffix_to_symbol): New function.
2138         * text-coding.c (dangling_coding_system_alias_p): New function.
2139         * text-coding.c (Ffind_coding_system):
2140         * text-coding.c (Fcopy_coding_system):
2141         * text-coding.c (encode_coding_no_conversion):
2142         * text-coding.c (syms_of_file_coding):
2143         * text-coding.c (vars_of_file_coding):
2144         Rewrite coding system alias code.
2145         Allow nested aliases, like symbolic links.
2146         Allow redefinition of coding system aliases.
2147         Prevent existence of dangling coding system aliases.
2148         Eliminate convert_to_external_format.
2149         Eliminate convert_to_internal_format.
2150         
2151         * text-coding.c: Change enum eol_type to eol_type_t.
2152
2153 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2154
2155         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2156         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2157
2158         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2159         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2160
2161 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2162
2163         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2164         `ideograph-daikanwa'.
2165
2166         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2167         (Vcharset_ucs_bmp): Likewise.
2168         (Vcharset_mojikyo): Add new extern variable definition.
2169         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2170         (Vcharset_latin_iso8859_3): Likewise.
2171         (Vcharset_latin_iso8859_4): Likewise.
2172         (Vcharset_latin_iso8859_9): Likewise.
2173         (Vcharset_latin_viscii_lower): Likewise.
2174         (Vcharset_latin_viscii_upper): Likewise.
2175         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2176         `mojikyo' code-point is used to decode.
2177         (encode_char_2): New function [to convert `mojikyo' code-point to
2178         Mojikyo font encoding].
2179         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2180         (breakup_char_1): Likewise.
2181         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2182
2183 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184
2185         * text-coding.c (Fmake_coding_system): Add document about
2186         `disable-composition' property.
2187
2188 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2189
2190         * text-coding.c (Qdisable_composition): New variable; delete
2191         `Qcomposite'.
2192         (Fmake_coding_system): Add new property `disable-composite';
2193         delete property `composite'.
2194         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2195         instead of `!CODING_SYSTEM_COMPOSITE'.
2196         (syms_of_file_coding): Add new symbol `disable-composition';
2197         delete symbol `composite'.
2198
2199         * file-coding.h (struct Lisp_Coding_System): Add
2200         `disable_composition'; delete `enable_composition'.
2201         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2202         `CODING_SYSTEM_COMPOSITE'.
2203         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2204         `XCODING_SYSTEM_COMPOSITE'.
2205
2206 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2209         to 0.15.
2210
2211 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * text-coding.c (Qcomposite): New variable.
2214         (Fmake_coding_system): Add new property `composite'.
2215         (struct decoding_stream): Add `combined_char_count',
2216         `combined_chars' and `combining_table' in UTF-2000.
2217         (COMPOSE_FLUSH_CHARS): New macro.
2218         (COMPOSE_ADD_CHAR): New macro.
2219         (reset_decoding_stream): Reset `str->combined_char_count' and
2220         `str->combining_table' in UTF-2000.
2221         (decode_coding_iso2022): Modify for character-decomposition.
2222         (syms_of_file_coding): Add new symbol `composite'.
2223
2224 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2227         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2228         of `Vcharacter_composition_table' if `->decomposition' property
2229         has only 1 element.
2230         (Qlatin_tcvn5712): New variable.
2231         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2232         (complex_vars_of_mule_charset): Add new coded-charset
2233         `latin-tcvn5712'.
2234
2235         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2236
2237 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * file-coding.h (struct Lisp_Coding_System): Add
2240         `enable_composition'.
2241         (CODING_SYSTEM_COMPOSITE): New macro.
2242         (XCODING_SYSTEM_COMPOSITE): New macro.
2243
2244 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2245
2246         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2247
2248 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2249
2250         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2251         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2252
2253 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2254
2255         * mule-charset.c (Vcharset_mojikyo): New variable.
2256         (Fdefine_char): Don't use coded-charset which does not have
2257         non-builtin character range to allocate character-id.
2258         (Qmojikyo): New variable.
2259         (syms_of_mule_charset): Add new symbol `mojikyo'.
2260         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2261
2262         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2263         (LEADING_BYTE_MOJIKYO): New macro.
2264         (MIN_CHAR_MOJIKYO): New macro.
2265         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2266         (MAX_CHAR_MOJIKYO): New macro.
2267
2268 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2269
2270         * mule-charset.c (remove_char_attribute): Fixed.
2271
2272 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2273
2274         * mule-charset.c (remove_char_attribute): New function.
2275         (Fremove_char_attribute): New function.
2276         (encode_builtin_char_1): Comment out builtin-support for
2277         greek-iso8859-7 and cyrillic-iso8859-5.
2278         (Fdecode_char): Check `code' is an integer.
2279         (syms_of_mule_charset): Add `remove-char-attribute'.
2280         (MIN_CHAR_GREEK): Deleted.
2281         (MAX_CHAR_GREEK): Likewise.
2282         (MIN_CHAR_CYRILLIC): Likewise.
2283         (MAX_CHAR_CYRILLIC): Likewise.
2284         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2285         MAX_CHAR_GREEK for `greek-iso8859-7'.
2286
2287         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2288         (MAX_CHAR_GREEK): Likewise.
2289         (MIN_CHAR_CYRILLIC): Likewise.
2290         (MAX_CHAR_CYRILLIC): Likewise.
2291
2292 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2293
2294         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2295         format is used without `ucs' property.
2296         (Fdecode_char): Fix problem with GR representation.
2297         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2298         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2299
2300 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2301
2302         * mule-charset.c (make_builtin_char): New function.
2303         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2304         (Fset_charset_mapping_table): Modify for new representation of
2305         code-point.
2306         (Fdecode_char): New function.
2307         (syms_of_mule_charset): Add new builtin function `decode-char' in
2308         UTF-2000.
2309
2310         * char-ucs.h (make_builtin_char): New prototype.
2311         (DECODE_CHAR): New inline function.
2312         (MAKE_CHAR): Use `DECODE_CHAR'.
2313
2314 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2315
2316         * text-coding.c (parse_charset_conversion_specs): Use
2317         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2318         `XCHARSET_TYPE'.
2319         (iso2022_designate): Likewise.
2320
2321         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2322         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2323
2324         * mule-charset.c (Vcharset_ucs): New variable.
2325         (print_charset): Change design; use `CHARSET_CHARS' and
2326         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2327         (make_charset): Change signature to specify `chars' and
2328         `dimension' instead of `type'.
2329         (range_charset_code_point): Modify for 256^n-set.
2330         (encode_builtin_char_1): Encode as `ucs' in default.
2331         (Fmake_charset): Modify for `make_charset'.
2332         (Fmake_reverse_direction_charset): Likewise.
2333         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2334         UTF-2000.
2335         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2336         for `make_charset'.
2337
2338         * char-ucs.h (Vcharset_ucs): New variable.
2339         (LEADING_BYTE_UCS): New macro.
2340         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2341         and `chars' to `unsigned short' from `unsigned int'.
2342         (CHARSET_TYPE): Deleted.
2343         (XCHARSET_TYPE): Deleted.
2344
2345 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2346
2347         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2348
2349         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2350         (ENCODE_CHAR): New macro.
2351
2352 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2353
2354         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2355         to 0.14 (Kawachi-Katakami).
2356
2357 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2358
2359         * text-coding.c (char_encode_shift_jis): Modify for
2360         `charset_code_point'.
2361         (char_encode_iso2022): Likewise.
2362
2363         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2364         (integer) instead of list of <Lisp_Object>s (integers) as the
2365         format of code-point of a coded-charset.
2366         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2367         (encode_builtin_char_1): New function; delete
2368         `split_builtin_char'.
2369         (charset_code_point): Return <int> instead of <Lisp_Object>.
2370         (Fsplit_char): Don't use `SPLIT_CHAR'.
2371
2372         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2373         prototype for `split_builtin_char'.
2374         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2375         (charset_code_point): Likewise.
2376         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2377         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2378
2379 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2380
2381         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2382         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2383
2384 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2385
2386         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2387
2388         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2389         (MAX_CHAR_OBS_94x94): Deleted.
2390
2391 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2392
2393         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2394
2395         * char-ucs.h (MAX_CHAR_BMP): New macro.
2396
2397 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2398
2399         * text-coding.c: Sync with r21-2-24.
2400
2401 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2402
2403         * file-coding.c: Modify for UTF-2000.
2404
2405 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2406
2407         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2408         to 0.13 (Takaida).
2409
2410 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2411
2412         * mule-charset.c (split_builtin_char): Delete builtin support for
2413         `katakana-jisx0201'.
2414         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2415         BMP area in builtin representation.
2416
2417         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2418         `Vcharset_katakana_jisx0201'.
2419
2420 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2421
2422         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2423         (Qisolated): New variable.
2424         (Qinitial): New variable.
2425         (Qmedial): New variable.
2426         (Qfinal): New variable.
2427         (Qvertical): New variable.
2428         (Qsmall): New variable.
2429         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2430         `Qvertical' and `Qsmall'.
2431         (Qmojikyo_pj_[1 .. 21]): New variable.
2432         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2433         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2434         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2435         .. 21]'.
2436
2437 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2438
2439         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2440         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2441         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2442
2443 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2444
2445         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2446         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2447         BMP.
2448         (Qjapanese_jisx0208_1990): New variable.
2449         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2450         (complex_vars_of_mule_charset): Add new coded-charset
2451         `japanese-jisx0208-1990'.
2452
2453         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2454         (MIN_CHAR_JIS_X0208_1990): New macro.
2455         (MAX_CHAR_JIS_X0208_1990): New macro.
2456
2457 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2458
2459         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2460         coded-charset is not found.
2461
2462 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2463
2464         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2465         (Fdefine_char): Use `Fmake_char'.
2466
2467 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2468
2469         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2470         (Vcharset_hiragana_jisx0208): Deleted.
2471         (Vcharset_katakana_jisx0208): Deleted.
2472         (Qideograph_daikanwa): New variable.
2473         (Qhiragana_jisx0208): Deleted.
2474         (Qkatakana_jisx0208): Deleted.
2475         (split_builtin_char): Split `ideograph-daikanwa'.
2476         (Fsplit_char): New implementation for UTF-2000.
2477         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2478         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2479         (complex_vars_of_mule_charset): Add new coded-charset
2480         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2481         `katakana-jisx0208'.
2482
2483         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2484         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2485         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2486         (MIN_CHAR_DAIKANWA): New macro.
2487         (MAX_CHAR_DAIKANWA): New macro.
2488
2489 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2490
2491         * data.c (Fstring_to_number): Don't recognize floating point if
2492         base is not 10.
2493
2494 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2495
2496         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2497
2498 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2499
2500         * mule-charset.c (Qsquare): New variable.
2501         (to_char_code): Add `Qsquare'.
2502         (syms_of_mule_charset): Add new symbol `square'.
2503
2504 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2505
2506         * mule-charset.c (Qcircle): New variable.
2507         (to_char_code): Add `Qcircle'.
2508         (syms_of_mule_charset): Add new symbol `circle'.
2509
2510 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2511
2512         * mule-charset.c (Qfont): New variable.
2513         (to_char_code): Add `Qfont'.
2514         (syms_of_mule_charset): Add new symbol `font'.
2515
2516 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2517
2518         * mule-charset.c (Qsub): New variable.
2519         (to_char_code): Add `Qsub'.
2520         (syms_of_mule_charset): Add new symbol `sub'.
2521
2522 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2523
2524         * mule-charset.c (Fput_char_attribute): Convert each element of
2525         VALUE to GL position if ATTRIBUTE is a GR-set,
2526
2527 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2528
2529         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2530         coded-charset is a GR-set.
2531
2532 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2533
2534         * mule-charset.c (Fput_char_attribute): Check each element of
2535         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2536
2537 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2538
2539         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2540         UTF-2000.
2541         (Qethiopic_ucs): New variable in UTF-2000.
2542         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2543         (complex_vars_of_mule_charset): Add new coded-charset
2544         `ethiopic-ucs' in UTF-2000.
2545
2546         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2547         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2548         9)'.
2549         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2550         10)'.
2551         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2552
2553 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2554
2555         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2556         `ascii'.
2557
2558 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2559
2560         * mule-charset.c (Vcharacter_variant_table): New variable.
2561         (Q_ucs): New variable.
2562         (Fchar_variants): New function.
2563         (Fput_char_attribute): Register `->ucs' value to
2564         `Vcharacter_variant_table'.
2565         (syms_of_mule_charset): Add new function `char-variants' and new
2566         symbol `->ucs'.
2567         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2568
2569 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2570
2571         * mule-charset.c (get_char_code_table): Allow negative character
2572         code.
2573         (put_char_code_table): Likewise.
2574         (Vcharacter_composition_table): New variable.
2575         (Q_decomposition): New variable.
2576         (Qwide): New variable.
2577         (Qnarrow): New variable.
2578         (Qcompat): New variable.
2579         (QnoBreak): New variable.
2580         (Qsuper): New variable.
2581         (Qfraction): New variable.
2582         (to_char_code): New function.
2583         (Fget_composite_char): New function.
2584         (Fput_char_attribute): Register `->decomposition' value to
2585         `Vcharacter_composition_table'.
2586         (syms_of_mule_charset): Add new function `get-composite-char', new
2587         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2588         `super' and `fraction'.
2589         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2590
2591 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2592
2593         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2594         character; copy the return value.
2595
2596 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2597
2598         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2599
2600         * mule-charset.c (range_charset_code_point): Must use make_int.
2601         (split_builtin_char): New function.
2602
2603 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2604
2605         * mule-charset.c (char_byte_table): Change name from
2606         "char-code-table" to "char-byte-table".
2607         (mark_char_code_table): New function.
2608         (char_code_table_equal): New function.
2609         (char_code_table_hash): New function.
2610         (char_code_table_description): New constant.
2611         (char_code_table): New type.
2612         (make_char_code_table): New function.
2613         (copy_char_code_table): New function.
2614         (get_char_code_table): Modify for `char_code_table' type.
2615         (put_char_code_table): Likewise.
2616         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2617         (Kashiwara).
2618
2619         * char-ucs.h (char_code_table): New type.
2620         (XCHAR_CODE_TABLE): New macro.
2621         (XSETCHAR_CODE_TABLE): New macro.
2622         (CHAR_CODE_TABLE_P): New macro.
2623         (GC_CHAR_CODE_TABLE_P): New macro.
2624         (struct Lisp_Char_Code_Table): New structure.
2625
2626 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2627
2628         * mule-charset.c (Fmake_charset): Setup byte_offset for
2629         {94|96}^n-set.
2630
2631 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2632
2633         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2634         character.
2635
2636 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2637
2638         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2639         is found.
2640
2641 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2642
2643         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2644         charset, it is regarded as a charset.
2645         (put_char_attribute): New function in UTF-2000.
2646         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2647         charset, mapping-table of the charset is modified.
2648         (Fdefine_char): New function in UTF-2000.
2649         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2650         `Fput_char_attribute'.
2651         (syms_of_mule_charset): Add new function `define-char' and new
2652         symbol `ucs' in UTF-2000.
2653         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2654
2655 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2656
2657         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2658         non-UTF-2000 configuration.
2659
2660 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2661
2662         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2663         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2664
2665         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2666         deleted.
2667         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2668         (Fset_charset_mapping_table): Likewise.
2669
2670         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2671         (CHARSET_ENCODING_TABLE): Delete.
2672         (XCHARSET_ENCODING_TABLE): Delete.
2673         (charset_code_point): New interface.
2674
2675 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2676
2677         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2678         instead of `charset_get_byte1' and `charset_get_byte2'.
2679
2680         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2681         (charset_get_byte2): Deleted.
2682
2683 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2684
2685         * char-ucs.h (SPLIT_CHAR): New inline function.
2686         (breakup_char_1): Use `SPLIT_CHAR'.
2687
2688         * mule-charset.c (range_charset_code_point): New function.
2689         (charset_code_point): New function.
2690
2691         * char-ucs.h (range_charset_code_point): New interface.
2692         (breakup_char_1): Use `range_charset_code_point'.
2693
2694 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2695
2696         * mule-charset.c (Fmake_charset): Delete unused local variable
2697         `code_offset'.
2698
2699         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2700         (breakup_char_1): Find a charset and code-point in
2701         `Vcharacter_attribute_table'.
2702
2703 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2704
2705         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2706         to 0.10 (Yao).
2707
2708 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2709
2710         * mule-charset.c (Vcharacter_attribute_table): New variable.
2711         (Fchar_attribute_alist): New function.
2712         (Fget_char_attribute): New function.
2713         (Fput_char_attribute): New function.
2714         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2715         too.
2716         (syms_of_mule_charset): Add new function `char-attribute-alist',
2717         `get-char-attribute' and `put-char-attribute'.
2718         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2719
2720 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2721
2722         * mule-charset.c (Fmake_charset): Just use
2723         `get_unallocated_leading_byte'.
2724
2725         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2726         sets; don't use final-byte based number for private sets.
2727
2728 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2729
2730         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2731         integer.
2732
2733 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2734
2735         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2736         to 0.9.
2737
2738 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2739
2740         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2741         of `CHAR_LEADING_BYTE' in UTF-2000.
2742
2743         * insdel.c (find_charsets_in_bufbyte_string): Use
2744         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2745         (find_charsets_in_emchar_string): Likewise.
2746
2747         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2748         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2749
2750         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2751         (CHAR_CHARSET_ID): New macro.
2752
2753 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2754
2755         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2756         charset-id - MIN_LEADING_BYTE.
2757         (put_char_table): Likewise.
2758
2759 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2760
2761         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2762         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2763         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2764         (CHARSET_ID_OFFSET): New macro.
2765         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2766         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2767         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2768         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2769         4).
2770         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2771         5).
2772         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2773         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2774         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2775         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2776         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2777
2778 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2779
2780         * mule-charset.c (next_allocated_leading_byte): New variable in
2781         UTF-2000.
2782         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2783         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2784         (get_unallocated_leading_byte): Simply use
2785         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2786         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2787         UTF-2000.
2788
2789         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2790         (MAX_LEADING_BYTE_PRIVATE): New macro.
2791         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2792         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2793
2794 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2795
2796         * mule-charset.c (Fmake_charset): Allocate final-byte based
2797         charset-id for 94-set, 96-set and 94x94-set.
2798
2799 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2800
2801         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2802         ambiguous `else'.
2803         (Fmake_charset): Likewise.
2804         (complex_vars_of_mule_charset): Modify the font registry of
2805         `ucs-bmp' not to match `Ethiopic-Unicode'.
2806
2807 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2808
2809         * mule-charset.c (complex_vars_of_mule_charset): Add font
2810         registory of `ucs-bmp'.
2811
2812 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2813
2814         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2815         coded-charsets in `default-coded-charset-priority-list' when
2816         breaking up a character.
2817
2818         * mule-charset.c (Vcharset_latin_viscii): New variable.
2819         (Qlatin_viscii): New variable.
2820         (make_charset): Don't use `decoding_table'.
2821         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2822         byte_offset.
2823         (Fset_charset_mapping_table): New implementation.
2824         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2825         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2826         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2827         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2828         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2829         charset `latin_viscii'.
2830
2831         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2832         (CHARSET_TYPE_94X94): Change to 1 from 2.
2833         (CHARSET_TYPE_96): Change to 2 from 1.
2834         (CHARSET_TYPE_128): New macro.
2835         (CHARSET_TYPE_128X128): Change to 5 from 4.
2836         (CHARSET_TYPE_256): New macro.
2837         (CHARSET_TYPE_256X256): Change to 7 from 5.
2838         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2839
2840 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2841
2842         * text-coding.c (char_encode_shift_jis): Refer
2843         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2844         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2845
2846         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2847         (char_byte_table_equal): New function in UTF-2000.
2848         (char_byte_table_hash): New function in UTF-2000.
2849         (char_byte_table_description): New constant in UTF-2000.
2850         (char_byte_table): New type in UTF-2000.
2851         (make_char_byte_table): New function in UTF-2000.
2852         (copy_char_byte_table): New function in UTF-2000.
2853         (make_char_code_table): New macro in UTF-2000.
2854         (get_char_code_table): New function in UTF-2000.
2855         (put_char_code_table): New function in UTF-2000.
2856         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2857         (charset_description): Add setting in UTF-2000.
2858         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2859         `CHARSET_TO_BYTE1_TABLE(cs)'.
2860         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2861         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2862         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2863         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2864         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2865         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2866         `CHARSET_TO_BYTE2_TABLE(cs)'.
2867
2868         * char-ucs.h (char_byte_table): New type.
2869         (XCHAR_BYTE_TABLE): New macro.
2870         (XSETCHAR_BYTE_TABLE): New macro.
2871         (CHAR_BYTE_TABLE_P): New macro.
2872         (GC_CHAR_BYTE_TABLE_P): New macro.
2873         (struct Lisp_Char_Byte_Table): New structure.
2874         (get_char_code_table): New interface.
2875         (Emchar_to_byte_table): Deleted.
2876         (get_byte_from_character_table): Deleted.
2877         (struct Lisp_Charset): Add `encoding_table'; delete
2878         `to_byte1_table' and `to_byte2_table'.
2879         (CHARSET_ENCODING_TABLE): New macro.
2880         (CHARSET_TO_BYTE1_TABLE): Deleted.
2881         (CHARSET_TO_BYTE2_TABLE): Deleted.
2882         (XCHARSET_ENCODING_TABLE): New macro.
2883         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2884         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2885
2886 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2887
2888         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2889         `vietnamese-viscii-*'.
2890
2891 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2892
2893         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2894         (Qvietnamese_viscii_upper): New variable.
2895         (Fdefine_charset_alias): New function.
2896         (syms_of_mule_charset): Add new function `define-charset-alias'.
2897         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2898         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2899         `latin-viscii-*'.
2900
2901 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2902
2903         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2904         (MAX_CHAR_OBS_94x94): New macro.
2905         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2906         for 94x94 sets.
2907
2908         * mule-charset.c (put_byte_from_character_table): Change unit size
2909         from 128 to 256.
2910         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2911         not defined.
2912         (Fmake_reverse_direction_charset): Modify dummy argument of
2913         `make_charset' for non-UTF-2000 environment.
2914
2915 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2916
2917         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2918
2919         * mule-charset.c (destroy_byte_from_character_table): New macro.
2920         (latin_jisx0201_to_ucs): Deleted.
2921         (latin_iso8859_2_to_ucs): Deleted.
2922         (latin_iso8859_3_to_ucs): Deleted.
2923         (latin_iso8859_4_to_ucs): Deleted.
2924         (latin_iso8859_9_to_ucs): Deleted.
2925         (latin_viscii_lower_to_ucs): Deleted.
2926         (latin_viscii_upper_to_ucs): Deleted.
2927         (mark_charset): Mark `cs->decoding_table'.
2928         (Fcharset_mapping_table): Fix DOC-string.
2929         (Fset_charset_mapping_table): New function.
2930         (syms_of_mule_charset): Add nwe function
2931         `set-charset-mapping-table'.
2932         (complex_vars_of_mule_charset): Don't setup and use
2933         `latin_*_to_ucs'.
2934
2935 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2936
2937         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2938         charset.
2939
2940 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2941
2942         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2943         (Vcharset_katakana_jisx0208): New variable.
2944         (Qhiragana_jisx0208): New variable.
2945         (Qkatakana_jisx0208): New variable.
2946         (make_charset): Add new argument `byte_offset'.
2947         (charset_get_byte1): Modify for new coded-charset definition; use
2948         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2949         `XCHARSET_BYTE_OFFSET'.
2950         (Fmake_charset): Modify for `make_charset'.
2951         (Fmake_reverse_direction_charset): Likewise.
2952         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2953         `katakana-jisx0208'.
2954         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2955         `.'  in font registry of charset `katakana-jisx0201',
2956         `latin-jisx0201', `vietnamese-viscii-lower' and
2957         `vietnamese-viscii-upper'; modify DOC-string of charset
2958         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2959         registry of charset `japanese-jisx0208' not to use font for JIS
2960         X0208:1990; add new charset `hiragana-jisx0208' and
2961         `katakana-jisx0208'.
2962
2963         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2964         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2965         (struct Lisp_Charset): Add `byte_offset'.
2966         (CHARSET_BYTE_OFFSET): New macro.
2967         (XCHARSET_UCS_MIN): New macro.
2968         (XCHARSET_UCS_MAX): New macro.
2969         (XCHARSET_CODE_OFFSET): New macro.
2970         (XCHARSET_BYTE_OFFSET): New macro.
2971         (MIN_CHAR_HIRAGANA): New macro.
2972         (MAX_CHAR_HIRAGANA): New macro.
2973         (MIN_CHAR_KATAKANA): New macro.
2974         (MAX_CHAR_KATAKANA): New macro.
2975         (MAKE_CHAR): Modify for new coded-charset definition; use
2976         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2977         `XCHARSET_BYTE_OFFSET'.
2978
2979 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2980
2981         * mule-charset.c (CHAR96): Deleted.
2982         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2983         <Lisp_Object>.
2984         (latin_iso8859_2_to_ucs): Likewise.
2985         (latin_iso8859_3_to_ucs): Likewise.
2986         (latin_iso8859_4_to_ucs): Likewise.
2987         (latin_iso8859_9_to_ucs): Likewise.
2988         (latin_viscii_lower_to_ucs): Likewise.
2989         (latin_viscii_upper_to_ucs): Likewise.
2990         (latin_tcvn5712_to_ucs): Commented out.
2991         (make_charset): Change type of argument `decoding_table' from
2992         <Emchar*> to <Lisp_Object> [vector of characters].
2993         (Fmake_charset): Modify for `make_charset'.
2994         (Fmake_reverse_direction_charset): Likewise.
2995         (Fcharset_mapping_table): New function in UTF-2000.
2996         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2997         UTF-2000.
2998         (complex_vars_of_mule_charset): Modify for type change of
2999         `*_to_ucs'; modify for `make_charset'.
3000
3001         * char-ucs.h (struct Lisp_Charset): Change type of
3002         `decoding_table' from <Emchar*> to <Lisp_Object>.
3003         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3004
3005 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3006
3007         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3008         error with non-UTF-2000-Mule.
3009
3010 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3011
3012         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3013         in lisp again].
3014         (Vcharset_chinese_cns11643_4): Likewise.
3015         (Vcharset_chinese_cns11643_5): Likewise.
3016         (Vcharset_chinese_cns11643_6): Likewise.
3017         (Vcharset_chinese_cns11643_7): Likewise.
3018         (Qchinese_cns11643_3): Likewise.
3019         (Qchinese_cns11643_4): Likewise.
3020         (Qchinese_cns11643_5): Likewise.
3021         (Qchinese_cns11643_6): Likewise.
3022         (Qchinese_cns11643_7): Likewise.
3023         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3024         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3025         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3026         (complex_vars_of_mule_charset): Likewise.
3027
3028 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3029
3030         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3031         96-set.
3032         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3033         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3034
3035 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3036
3037         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3038         0xFF60.
3039         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3040         (breakup_char_1): Likewise.
3041
3042         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3043         one of them includes the specified character.
3044
3045 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3046
3047         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3048
3049 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3050
3051         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3052
3053 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3054
3055         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3056         definition for non-UTF-2000 Mule.
3057         (latin_iso8859_3_to_ucs): Likewise.
3058         (latin_iso8859_4_to_ucs): Likewise.
3059         (latin_iso8859_9_to_ucs): Likewise.
3060         (latin_jisx0201_to_ucs): Likewise.
3061         (MIN_CHAR_THAI): Likewise.
3062         (MAX_CHAR_THAI): Likewise.
3063         (MIN_CHAR_GREEK): Likewise.
3064         (MAX_CHAR_GREEK): Likewise.
3065         (MIN_CHAR_HEBREW): Likewise.
3066         (MAX_CHAR_HEBREW): Likewise.
3067         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3068         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3069         (MIN_CHAR_CYRILLIC): Likewise.
3070         (MAX_CHAR_CYRILLIC): Likewise.
3071
3072 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3073
3074         * char-ucs.h (breakup_char_1): Use
3075         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3076         thai-tis620 and katakana-jisx0201 area.
3077
3078 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3079
3080         * char-ucs.h (breakup_char_1): Use
3081         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3082         area.
3083
3084         * text-coding.c (reset_encoding_stream): Fixed.
3085         (char_encode_ucs4): Delete `& 255'.
3086
3087         * char-ucs.h (breakup_char_1): Use
3088         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3089
3090 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3091
3092         * file-coding.c (Fmake_coding_system): Don't set up
3093         `codesys->fixed.size'.
3094         (encode_coding_no_conversion): Don't refer
3095         `str->codesys->fixed.size'.
3096
3097 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3098
3099         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3100         (latin_a_char_to_byte1): Deleted.
3101         (latin_a_char_to_byte2): Deleted.
3102
3103 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3104
3105         * mule-charset.c (make_charset): Add new argument `ucs_min',
3106         `ucs_max' and `code_offset'.
3107         (charset_get_byte1): New implementation [delete specific charset
3108         depended implementations].
3109         (Fmake_charset): Modify for `make_charset'.
3110         (Fmake_reverse_direction_charset): Likewise.
3111         (complex_vars_of_mule_charset): Likewise.
3112
3113         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3114         `code_offset'.
3115         (CHARSET_UCS_MIN): New macro.
3116         (CHARSET_UCS_MAX): New macro.
3117         (CHARSET_CODE_OFFSET): New macro.
3118         (MAKE_CHAR): Delete charset depended definitions [except
3119         katakana-jisx0201].
3120
3121 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3122
3123         * char-ucs.h (breakup_char_1): Use
3124         `Vdefault_coded_charset_priority_list' for C0-Controls,
3125         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3126
3127 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3128
3129         * char-ucs.h (charset_get_byte1): New function.
3130         (XCHARSET_GET_BYTE1): Deleted.
3131         (charset_get_byte2): New function.
3132         (XCHARSET_GET_BYTE2): Deleted.
3133         (Vdefault_coded_charset_priority_list): New external variable.
3134         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3135         `Vdefault_preferred_coded_charset_list'.
3136
3137         * mule-charset.c (charset_get_byte1): New function.
3138         (charset_get_byte2): New function.
3139         (Vdefault_coded_charset_priority_list): New variable.
3140         (vars_of_mule_charset): Add new variable
3141         `default-coded-charset-priority-list'.
3142
3143 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3144
3145         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3146         (XCHARSET_GET_BYTE2): New inline function.
3147         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3148         `XCHARSET_GET_BYTE2'.
3149
3150 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3151
3152         * mule-charset.c (make_charset): Initialize
3153         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3154         NULL if table is not defined.
3155
3156 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3157
3158         * text-coding.c (char_encode_shift_jis): Use
3159         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3160         `ucs_to_latin_jisx0201'.
3161
3162         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3163         (ucs_to_latin_iso8859_2): Deleted.
3164         (ucs_to_latin_iso8859_3): Deleted.
3165         (ucs_to_latin_iso8859_4): Deleted.
3166         (ucs_to_latin_iso8859_9): Deleted.
3167         (ucs_to_latin_viscii_lower): Deleted.
3168         (ucs_to_latin_viscii_upper): Deleted.
3169         (ucs_to_latin_tcvn5712): Deleted.
3170         (make_charset): Add new argument `decoding_table'; set up
3171         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3172         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3173         `decoding_table' is defined in UTF-2000.
3174         (Fmake_charset): Modify for `make_charset'.
3175         (Fmake_reverse_direction_charset): Likewise.
3176         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3177         and `GENERATE_96_SET'.
3178
3179         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3180         (ucs_to_latin_jisx0201): Deleted.
3181         (latin_iso8859_2_to_ucs): Deleted.
3182         (ucs_to_latin_iso8859_2): Deleted.
3183         (latin_iso8859_3_to_ucs): Deleted.
3184         (ucs_to_latin_iso8859_3): Deleted.
3185         (latin_iso8859_4_to_ucs): Deleted.
3186         (ucs_to_latin_iso8859_4): Deleted.
3187         (latin_iso8859_9_to_ucs): Deleted.
3188         (ucs_to_latin_iso8859_9): Deleted.
3189         (latin_viscii_lower_to_ucs): Deleted.
3190         (ucs_to_latin_viscii_lower): Deleted.
3191         (latin_viscii_upper_to_ucs): Deleted.
3192         (ucs_to_latin_viscii_upper): Deleted.
3193         (struct Lisp_Charset): Renamed `encoding_table' to
3194         `to_byte1_table'; add `to_byte2_table'.
3195         (CHARSET_DECODING_TABLE): New macro.
3196         (CHARSET_TO_BYTE1_TABLE): New macro.
3197         (CHARSET_TO_BYTE2_TABLE): New macro.
3198         (XCHARSET_DECODING_TABLE): New macro.
3199         (XCHARSET_TO_BYTE1_TABLE): New macro.
3200         (XCHARSET_TO_BYTE2_TABLE): New macro.
3201         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3202         tables.
3203         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3204         don't use `ucs_to_*' tables.
3205
3206 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3207
3208         * text-coding.c (Fmake_coding_system): Don't set up
3209         `codesys->fixed.size'.
3210         (encode_coding_no_conversion): Use `if' instead of `switch'.
3211
3212         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3213
3214 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3215
3216         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3217         (Fmake_charset): Modify for `make_charset'.
3218         (Fmake_reverse_direction_charset): Likewise.
3219         (complex_vars_of_mule_charset): Likewise.
3220
3221 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3222
3223         * text-coding.c (char_encode_shift_jis): Use table
3224         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3225
3226 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3227
3228         * text-coding.c (text_encode_generic): Use `if' instead of
3229         `switch'.
3230         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3231         decode JIS-Latin.
3232
3233 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3234
3235         * text-coding.c (encode_coding_sjis): Deleted.
3236         (char_encode_shift_jis): New function.
3237         (char_finish_shift_jis): New function.
3238         (reset_encoding_stream): Set up `encode_char' and `finish' for
3239         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3240         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3241         (char_encode_utf8): Treat `eol_type'.
3242
3243 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3244
3245         * file-coding.c (decode_coding_iso2022): Use
3246         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3247
3248 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3249
3250         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3251         to 0.7 (Hirano).
3252
3253 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3254
3255         * char-lb.h (CHAR_COLUMNS): New macro.
3256
3257 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3258
3259         * text-coding.c (char_encode_ucs4): New function.
3260         (char_finish_ucs4): New function.
3261         (encode_coding_ucs4): Deleted.
3262         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3263         (text_encode_generic): Delete local variable `charset' and `half'.
3264         (ucs_to_mule_table): Deleted.
3265         (mule_to_ucs_table): Deleted.
3266         (Fset_ucs_char): Deleted.
3267         (ucs_to_char): Deleted.
3268         (Fucs_char): Deleted.
3269         (Fset_char_ucs): Deleted.
3270         (Fchar_ucs): Deleted.
3271         (decode_ucs4): Deleted.
3272         (mule_char_to_ucs4): Deleted.
3273         (encode_ucs4): Deleted.
3274         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3275         (decode_coding_utf8): Likewise.
3276         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3277         (char_encode_iso2022): Fixed.
3278         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3279         `Fset_char_ucs' and `Fchar_ucs'.
3280         (complex_vars_of_file_coding): Don't initialize
3281         `ucs_to_mule_table'.
3282
3283         * objects-tty.c (tty_initialize_font_instance): Don't use
3284         `XCHARSET_COLUMNS'.
3285
3286         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3287         UTF-2000.
3288
3289         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3290         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3291
3292         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3293         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3294         (emchar_string_displayed_columns): Likewise.
3295
3296         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3297         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3298         (string_column_at_point): Likewise.
3299         (Fmove_to_column): Likewise.
3300
3301         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3302         `encoding_table' and `decoding_table'.
3303         (CHARSET_REP_BYTES): Deleted.
3304         (XCHARSET_REP_BYTES): Deleted.
3305         (XCHARSET_COLUMNS): Deleted.
3306         (CHAR_COLUMNS): New macro.
3307         (lookup_composite_char): Deleted unconditionally.
3308         (composite_char_string): Likewise.
3309
3310 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3311
3312         * char-ucs.h (Emchar_to_byte_table): New type.
3313         (get_byte_from_character_table): New function interface.
3314         (Vcharset_latin_jisx0201): New variable.
3315         (latin_jisx0201_to_ucs): New variable.
3316         (ucs_to_latin_jisx0201): New variable.
3317         (Vcharset_latin_iso8859_2): New variable.
3318         (latin_iso8859_2_to_ucs): New variable.
3319         (ucs_to_latin_iso8859_2): New variable.
3320         (Vcharset_latin_iso8859_3): New variable.
3321         (latin_iso8859_3_to_ucs): New variable.
3322         (ucs_to_latin_iso8859_3): New variable.
3323         (Vcharset_latin_iso8859_4): New variable.
3324         (latin_iso8859_4_to_ucs): New variable.
3325         (ucs_to_latin_iso8859_4): New variable.
3326         (Vcharset_latin_iso8859_9): New variable.
3327         (latin_iso8859_9_to_ucs): New variable.
3328         (ucs_to_latin_iso8859_9): New variable.
3329         (Vcharset_latin_viscii_lower): New variable.
3330         (latin_viscii_lower_to_ucs): New variable.
3331         (ucs_to_latin_viscii_lower): New variable.
3332         (Vcharset_latin_viscii_upper): New variable.
3333         (latin_viscii_upper_to_ucs): New variable.
3334         (ucs_to_latin_viscii_upper): New variable.
3335         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3336         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3337         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3338         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3339         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3340         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3341         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3342         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3343         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3344         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3345
3346         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3347         (Vcharset_latin_viscii_upper): New variable.
3348         (make_byte_from_character_table): New function.
3349         (put_byte_from_character_table): New function.
3350         (get_byte_from_character_table): New function.
3351         (CHAR96): New macro.
3352         (ucs_to_latin_jisx0201): New variable.
3353         (latin_jisx0201_to_ucs): New variable.
3354         (ucs_to_latin_iso8859_2): New variable.
3355         (latin_iso8859_2_to_ucs): New variable.
3356         (ucs_to_latin_iso8859_3): New variable.
3357         (latin_iso8859_3_to_ucs): New variable.
3358         (ucs_to_latin_iso8859_4): New variable.
3359         (latin_iso8859_4_to_ucs): New variable.
3360         (ucs_to_latin_iso8859_9): New variable.
3361         (latin_iso8859_9_to_ucs): New variable.
3362         (ucs_to_latin_viscii_lower): New variable.
3363         (latin_viscii_lower_to_ucs): New variable.
3364         (ucs_to_latin_viscii_upper): New variable.
3365         (latin_viscii_upper_to_ucs): New variable.
3366         (ucs_to_latin_tcvn5712): New variable.
3367         (latin_tcvn5712_to_ucs): New variable.
3368         (Qlatin_viscii_lower): New variable.
3369         (Qlatin_viscii_upper): New variable.
3370         (syms_of_mule_charset): Set up new symbol
3371         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3372         (complex_vars_of_mule_charset): Set up new charset
3373         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3374         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3375         `ucs_to_<CHARSET>' tables.
3376
3377 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3378
3379         * text-coding.c: New file.
3380
3381 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3382
3383         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3384
3385         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3386         (MAKE_CHAR): Modify for `ucs-bmp'.
3387         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3388         non-MULE characters of BMP.
3389
3390 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3391
3392         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3393         to 0.6.
3394
3395 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3396
3397         * lstream.h:
3398         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3399         - Include character.h for `CHAR_ASCII_P'.
3400
3401         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3402
3403         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3404         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3405
3406         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3407         (BYTE_C0_P): Likewise.
3408         (BYTE_C1_P): Likewise.
3409         (Lstream_get_emchar_1): Likewise.
3410         (Lstream_fput_emchar): Likewise.
3411         (Lstream_funget_emchar): Likewise.
3412         (copy_internal_to_external): Likewise.
3413         (copy_external_to_internal): Likewise.
3414
3415         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3416         (BYTE_C0_P): Likewise.
3417         (BYTE_C1_P): Likewise.
3418         (Lstream_get_emchar_1): Likewise.
3419         (Lstream_fput_emchar): Likewise.
3420         (Lstream_funget_emchar): Likewise.
3421         (copy_internal_to_external): Likewise.
3422         (copy_external_to_internal): Likewise.
3423
3424         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3425         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3426
3427         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3428         (BYTE_ASCII_P): Moved to mb-1byte.h.
3429
3430 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3431
3432         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3433
3434         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3435         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3436         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3437         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3438         (VALIDATE_CHARPTR_FORWARD): Likewise.
3439         (simple_charptr_emchar): Moved to mb-multibyte.h.
3440         (simple_set_charptr_emchar): Likewise.
3441         (simple_charptr_copy_char): Likewise.
3442         (non_ascii_charptr_emchar): Likewise.
3443         (non_ascii_set_charptr_emchar): Likewise.
3444         (non_ascii_charptr_copy_char): Likewise.
3445         (charptr_emchar): Moved to mb-*byte.h.
3446         (set_charptr_emchar): Likewise.
3447         (charptr_copy_char): Likewise.
3448
3449         * mb-1byte.h, mb-multibyte.h: New files.
3450
3451 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3452
3453         * mb-utf-8.h (MULTIBYTE): New macro.
3454         (MAX_EMCHAR_LEN): Moved from buffer.h.
3455         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3456
3457         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3458
3459         * mb-lb.h, multibyte.h: New files.
3460
3461         * char-1byte.h (Charset_ID): Moved from buffer.h.
3462         (MIN_LEADING_BYTE): Likewise.
3463         (LEADING_BYTE_ASCII): Likewise.
3464         (NUM_LEADING_BYTES): Likewise.
3465         (CHARSETP): Likewise.
3466         (CHARSET_BY_LEADING_BYTE): Likewise.
3467         (XCHARSET_LEADING_BYTE): Likewise.
3468         (XCHARSET_GRAPHIC): Likewise.
3469         (XCHARSET_COLUMNS): Likewise.
3470         (XCHARSET_DIMENSION): Likewise.
3471         (CHAR_CHARSET): Likewise.
3472         (CHAR_LEADING_BYTE): Likewise.
3473         (BREAKUP_CHAR): Likewise.
3474         (Vcharset_ascii): Likewise.
3475
3476         * buffer.h: Include multibyte.h unconditionally.
3477         (VALID_CHARPTR_P): Moved to multibyte.h.
3478         (ASSERT_VALID_CHARPTR): Likewise.
3479         (REAL_INC_CHARPTR): Likewise.
3480         (REAL_INC_CHARBYTIND): Likewise.
3481         (REAL_DEC_CHARPTR): Likewise.
3482         (INC_CHARPTR): Likewise.
3483         (INC_CHARBYTIND): Likewise.
3484         (DEC_CHARPTR): Likewise.
3485         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3486         (VALIDATE_CHARPTR_FORWARD): Likewise.
3487         (charptr_n_addr): Likewise.
3488         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3489         (simple_charptr_emchar): Moved to multibyte.h.
3490         (simple_set_charptr_emchar): Likewise.
3491         (simple_charptr_copy_char): Likewise.
3492         (non_ascii_charptr_emchar): Likewise.
3493         (non_ascii_set_charptr_emchar): Likewise.
3494         (non_ascii_charptr_copy_char): Likewise.
3495         (charptr_emchar): Likewise.
3496         (set_charptr_emchar): Likewise.
3497         (charptr_copy_char): Likewise.
3498         (charptr_emchar_n): Likewise.
3499         (Charset_ID): Moved to char-1byte.h.
3500         (Vcharset_ascii): Likewise.
3501         (CHAR_CHARSET): Likewise.
3502         (CHAR_LEADING_BYTE): Likewise.
3503         (LEADING_BYTE_ASCII): Likewise.
3504         (NUM_LEADING_BYTES): Likewise.
3505         (MIN_LEADING_BYTE): Likewise.
3506         (CHARSETP): Likewise.
3507         (CHARSET_BY_LEADING_BYTE): Likewise.
3508         (XCHARSET_LEADING_BYTE): Likewise.
3509         (XCHARSET_GRAPHIC): Likewise.
3510         (XCHARSET_COLUMNS): Likewise.
3511         (XCHARSET_DIMENSION): Likewise.
3512         (BREAKUP_CHAR): Likewise.
3513
3514 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3515
3516         * character.h: Add document about interface for characters.
3517
3518         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3519         (MAKE_CHAR): Delete comment about
3520         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3521         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3522         (BREAKUP_CHAR): Modify name of arguments.
3523         (CHAR_CHARSET): Modify name of argument.
3524
3525         * buffer.h: Delete document about Emchar accessors.
3526
3527 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3528
3529         * character.h (CHAR_INTP): Moved from buffer.h
3530         (CHAR_OR_CHAR_INTP): Likewise.
3531         (XCHAR_OR_CHAR_INT): Likewise.
3532         (CHECK_CHAR_COERCE_INT): Likewise.
3533
3534         * buffer.h (CHAR_INTP): Moved to character.h
3535         (CHAR_OR_CHAR_INTP): Likewise.
3536         (XCHAR_OR_CHAR_INT): Likewise.
3537         (CHECK_CHAR_COERCE_INT): Likewise.
3538
3539 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3540
3541         * character.h:
3542         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3543         - Include char-1byte.h, char-lb.h or char-ucs.h.
3544
3545         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3546
3547         * buffer.h: Include character unconditionally.
3548         (valid_char_p): Moved to char-*.h.
3549         (non_ascii_valid_char_p): Moved to char-lb.h.
3550
3551         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3552
3553 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3554
3555         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3556         in UTF-2000 because it is not ported yet and not to use
3557         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3558         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3559         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3560
3561         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3562         (CHAR_ASCII_P): Moved from character.h.
3563
3564         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3565         (CHAR_ASCII_P): Likewise.
3566         (CHAR_FIELD1_MASK): Deleted.
3567         (CHAR_FIELD2_MASK): Deleted.
3568         (CHAR_FIELD3_MASK): Deleted.
3569         (MAX_CHAR_BASIC_LATIN): New macro.
3570         (CHAR_FIELD1): Deleted.
3571         (CHAR_FIELD2_INTERNAL): Deleted.
3572         (CHAR_FIELD3_INTERNAL): Deleted.
3573         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3574         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3575         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3576         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3577         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3578         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3579         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3580         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3581         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3582         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3583         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3584         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3585         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3586         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3587         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3588         (MIN_CHAR_COMPOSITION): Deleted.
3589         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3590         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3591
3592 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3593
3594         * buffer.h: Include mb-utf-8.h in UTF-2000.
3595
3596         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3597
3598         * mb-utf-8.h: New file.
3599
3600 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3601
3602         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3603         instead of `int'.
3604
3605         * mule-charset.h, buffer.h (Charset_ID): New type.
3606
3607 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3608
3609         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3610         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3611         instead of `MULE_CHAR_PRIVATE_OFFSET',
3612         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3613         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3614         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3615
3616         * character.h (Vcharset_japanese_jisx0212): New variable
3617         definition.
3618
3619 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3620
3621         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3622         (charset_by_attributes): Delete array about direction.
3623         (latin_a_char_to_charset): New variable in UTF-2000.
3624         (latin_a_char_to_byte1): New variable in UTF-2000.
3625         (latin_a_char_to_byte2): New variable in UTF-2000.
3626         (Qucs_bmp): New variable.
3627         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3628         `Bufbyte'.
3629         (next_allocated_2_byte_leading_byte): Likewise.
3630         (non_ascii_set_charptr_emchar): Likewise.
3631         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3632         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3633         `charset_by_attributes'.
3634         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3635         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3636         and `CHARSET_BY_LEADING_BYTE'.
3637         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3638         `utf-2000-version' to `vars_of_mule_charset'.
3639         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3640         define `leading-code-private-11' in UTF-2000; move setting of
3641         `utf-2000-version' from `syms_of_mule_charset'.
3642         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3643         UTF-2000.
3644
3645         * character.h (Charset_ID): New type.
3646         (LEADING_BYTE_UCS_BMP): New macro.
3647         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3648         (CHARSET_ID_OFFSET_94): New macro.
3649         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3650         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3651         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3652         final-byte.
3653         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3654         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3655         (CHARSET_ID_OFFSET_96): New macro.
3656         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3657         CHARSET_ID_OFFSET_96 and final-byte.
3658         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3659         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3660         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3661         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3662         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3663         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3664         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3665         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3666         (LEADING_BYTE_THAI_TIS620): Likewise.
3667         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3668         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3669         (CHARSET_ID_OFFSET_94x94): New macro.
3670         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3671         CHARSET_ID_OFFSET_94x94 and final-byte.
3672         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3673         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3674         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3675         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3676         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3677         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3678         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3679         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3680         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3681         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3682         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3683         (CHARSET_TYPE_128X128): New macro.
3684         (CHARSET_TYPE_256X256): New macro.
3685         (XCHARSET_PRIVATE_P): Delete unconditionally.
3686         (charset_by_attributes): Delete array about direction.
3687         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3688         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3689         (MIN_CHAR_94): New macro.
3690         (MAX_CHAR_94): New macro.
3691         (MIN_CHAR_96): New macro.
3692         (MAX_CHAR_96): New macro.
3693         (MIN_CHAR_94x94): New macro.
3694         (MAX_CHAR_94x94): New macro.
3695         (MIN_CHAR_96x96): New macro.
3696         (MAX_CHAR_96x96): New macro.
3697         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3698         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3699         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3700         - 32)'.
3701         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3702         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3703         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3704         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3705         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3706         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3707         `XCHARSET_LEADING_BYTE' to make code-point.
3708         (latin_a_char_to_charset): New variable.
3709         (latin_a_char_to_byte1): New variable.
3710         (latin_a_char_to_byte2): New variable.
3711         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3712         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3713         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3714
3715         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3716         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3717         (find_charsets_in_emchar_string): Likewise.
3718         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3719
3720         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3721         `int'.
3722         (decode_coding_iso2022): Likewise.
3723
3724         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3725         of `unsigned char'.
3726
3727         * redisplay.c (redisplay_text_width_emchar_string): Use
3728         `Charset_ID' instead of `unsigned char'.
3729         (redisplay_frame_text_width_string): Likewise.
3730
3731         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3732         `unsigned char'.
3733
3734         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3735         instead of `unsigned char'.
3736         (face_cachel_charset_font_metric_info): Likewise.
3737
3738         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3739         (get_non_ascii_char_table_value): Likewise.
3740         (get_char_table): Likewise.
3741         (put_char_table): Likewise.
3742         (map_over_other_charset): Likewise.
3743         (map_char_table): Likewise.
3744
3745         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3746         instead of `unsigned char'.
3747
3748 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3749
3750         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3751         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3752
3753         * mule-charset.c (leading_code_private_11): Don't define in
3754         UTF-2000.
3755
3756         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3757         in UTF-2000 because it is not ported yet and not to use
3758         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3759
3760 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3761
3762         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3763
3764 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3767         in UTF-2000.
3768
3769         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3770         of unsigned char to store leading-byte.
3771
3772         * chartab.c (get_non_ascii_char_table_value): Don't use
3773         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3774
3775         * file-coding.c (encode_coding_big5): Delete bogus implementation
3776         in UTF2000.
3777
3778         * character.h (LEADING_BYTE_*): Delete definition for
3779         non-UTF-2000.
3780         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3781         (LEADING_BYTE_PREFIX_P): Deleted.
3782         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3783         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3784         (BUFBYTE_LEADING_BYTE_P): Deleted.
3785         (CHARSET_PRIVATE_P): Deleted unconditionally.
3786         (rep_bytes_by_first_byte): Deleted unconditionally.
3787         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3788         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3789         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3790         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3791         (CHAR_FIELD2): Deleted.
3792         (CHAR_FIELD3): Deleted.
3793         (MAKE_CHAR): Delete definition for non-UTF-2000.
3794         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3795         (breakup_char_1): New implementation.
3796         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3797         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3798
3799 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3800
3801         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3802         condition.
3803
3804 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3805
3806         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3807         (CHARSET_PRIVATE_P): Likewise.
3808         (XCHARSET_PRIVATE_P): Likewise.
3809         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3810
3811         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3812         UTF2000.
3813         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3814
3815 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3816
3817         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3818         (NUM_LEADING_BYTES): Changed from 128 to 256.
3819         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3820         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3821         UTF2000.
3822         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3823
3824         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3825         UTF2000.
3826         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3827         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3828         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3829         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3830         (Qchinese_cns11643_3): New variable in UTF2000.
3831         (Qchinese_cns11643_4): New variable in UTF2000.
3832         (Qchinese_cns11643_5): New variable in UTF2000.
3833         (Qchinese_cns11643_6): New variable in UTF2000.
3834         (Qchinese_cns11643_7): New variable in UTF2000.
3835         (syms_of_mule_charset): Define `chinese-cns11643-3',
3836         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3837         and `chinese-cns11643-7' in UTF2000.
3838         (vars_of_mule_charset): Initialize
3839         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3840         + 1 in UTF2000.
3841         (complex_vars_of_mule_charset): Setup charset
3842         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3843         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3844
3845 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3846
3847         * mule-charset.c: Move setting for `leading-code-private-11' from
3848         `syms_of_mule_charset' to `vars_of_mule_charset'.
3849
3850 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3851
3852         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3853         and `NUM_LEADING_BYTES' in assert.
3854
3855 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3856
3857         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3858         instead of 128.
3859         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3860         `NUM_LEADING_BYTES' instead of 128.
3861
3862 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3863
3864         * mule-charset.h (charset_by_leading_byte): Use
3865         `NUM_LEADING_BYTES' instead of 128.
3866         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3867
3868         * mule-charset.c (charset_by_leading_byte): Use
3869         `NUM_LEADING_BYTES' instead of 128.
3870         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3871
3872         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3873         128.
3874
3875 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3876
3877         * mule-charset.c (syms_of_mule_charset): Update to
3878         0.4 (Shin-Imamiya).
3879
3880 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3881
3882         * file-coding.c (encode_coding_sjis): New implementation for
3883         UTF2000.  (decode_coding_sjis): Ditto.
3884
3885 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3886
3887         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3888         Don't define in UTF2000.
3889
3890         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3891         defined.
3892
3893         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3894         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3895         MULE.
3896
3897 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3898
3899         * config.h.in (CHAR_IS_UCS4): New macro.
3900
3901         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3902         conventional MULE representation.
3903         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3904
3905         * mule-charset.h: Reverted to original.
3906
3907         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3908         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3909         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3910
3911         * character.h: New file.
3912
3913         * file-coding.c (Fmake_coding_system): Set 1 to
3914         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3915         defined.
3916         (encode_coding_no_conversion): New implementation for UTF2000.
3917
3918         * file-coding.h (struct Lisp_Coding_System): Add new member
3919         `fixed.size'.
3920
3921 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3922
3923         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3924         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3925         (encode_coding_iso2022): New implementation for UTF2000.
3926
3927 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3928
3929         * mule-canna.c (c2mu): New implementation for UTF2000.
3930         (m2c): Likewise.
3931
3932 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3933
3934         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3935
3936 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3937
3938         * file-coding.c (reset_encoding_stream): Set 0 to
3939         `str->iso2022.current_char_boundary' in UTF2000.
3940         (encode_utf8): Don't define in UTF2000.
3941         (encode_coding_utf8): New implementation for UTF-8 representation
3942         of UTF2000.
3943         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3944
3945 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3948
3949         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3950         UTF2000.
3951         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3952
3953         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3954
3955         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3956         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3957         as UTF-8 in UTF2000.
3958         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3959         (non_ascii_valid_char_p): Don't define in UTF2000.
3960         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3961         (Lstream_get_emchar_1): Likewise.
3962         (utf-2000-version): New variable in UTF2000.
3963
3964         * lread.c (read_escape): Add new reader `u'.
3965
3966         * insdel.c (three_to_one_table): Don't define in UTF2000.
3967         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3968         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3969         UTF2000.
3970         (bytind_to_bufpos_func): Likewise.
3971         (buffer_mule_signal_inserted_region): Likewise.
3972         (vars_of_insdel): Don't initialize `three_to_one_table'.
3973         (init_buffer_text): Use `buf->text->mule_size' instead of
3974         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3975         UTF2000.
3976
3977         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3978         UTF-8 representation in UTF2000.
3979         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3980         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3981         (decode_coding_iso2022): Don't define local variable `lb' in
3982         UTF2000; don't use LEADING_BYTE in UTF2000; use
3983         `DECODE_ADD_UCS_CHAR' in UTF2000.
3984         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3985
3986         * config.h.in (UTF2000): New macro.
3987
3988         * buffer.h (struct buffer_text): Add new member `mule_size' and
3989         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3990         (valid_char_p): Return always 1 in UTF2000.
3991         (MAX_EMCHAR_LEN): 6 in UTF2000.
3992         (three_to_one_table): Don't define in UTF2000.
3993         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3994         UTF2000.
3995         (real_bytind_to_bufpos): Likewise.
3996
3997         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3998
3999 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4000
4001         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4002         representation change.
4003         (Vutf_2000_version): New variable.
4004         (leading_code_private_11): New variable.
4005         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4006         `leading-code-private-11'.
4007
4008         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4009         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4010         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4011         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4012         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4013         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4014         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4015         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4016         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4017         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4018         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4019         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4020         (MIN_CHAR_GREEK): New macro.
4021         (MAX_CHAR_GREEK): New macro.
4022         (MIN_CHAR_CYRILLIC): New macro.
4023         (MAX_CHAR_CYRILLIC): New macro.
4024         (MIN_CHAR_HEBREW): New macro.
4025         (MAX_CHAR_HEBREW): New macro.
4026         (MIN_CHAR_THAI): New macro.
4027         (MAX_CHAR_THAI): New macro.
4028         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4029         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4030         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4031         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4032         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4033         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4034         (CHAR_FIELD2): New inline function.
4035         (CHAR_FIELD3): New inline function.
4036         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4037         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4038         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4039         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4040         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4041         (MIN_CHAR_COMPOSITION): Likewise.
4042         (CHAR_LEADING_BYTE): Modified for character representation change.
4043         (MAKE_CHAR): Likewise.
4044
4045         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4046         (Vcharset_greek_iso8859_7): Likewise.
4047         (Vcharset_cyrillic_iso8859_5): Likewise.
4048         (Vcharset_hebrew_iso8859_8): Likewise.
4049         (Vcharset_thai_tis620): Likewise.
4050         (Vcharset_katakana_jisx0201): Likewise.
4051
4052 2001-02-08  Martin Buchholz <martin@xemacs.org>
4053
4054         * XEmacs 21.2.44 "Thalia" is released.
4055
4056 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4057
4058         Fixes crashes in kill-emacs on some systems.
4059         * process-unix.c (unix_kill_child_process):
4060         It's OK for kill() to fail with ESRCH.
4061
4062 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4063
4064         Contortions to make .gdbinit tricks work on most systems.
4065         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4066         * alloc.c (dbg_valmask): Make non-const.
4067         * alloc.c (dbg_typemask): Make non-const.
4068         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4069         * alloc.c (dbg_valbits): Make non-const.
4070         * alloc.c (dbg_gctypebits): Make non-const.
4071         * .gdbinit (decode_object): Make it work with AIX cc.
4072
4073 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4074
4075         * elhash.c (make_general_lisp_hash_table):
4076         Use simpler and more efficient calloc to clear entries.
4077
4078 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4079
4080         * window.c (window_scroll): Work around an AIX C compiler bug.
4081         Fixes 'scroll-up' does nothing problem with xlC.
4082
4083 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4084
4085         * .gdbinit: Remove obsolete comment.
4086
4087 2001-01-31  Mike Alexander  <mta@arbortext.com>
4088
4089         * select.c (Fown_selection_internal): Set owned_p for device
4090         method correctly.
4091
4092 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4093
4094         Port to g++ 2.97.
4095         "not" cannot be used as a macro name as it is an operator in C++
4096         * config.h.in: Stop #defining `not'.
4097         * chartab.c (check_category_char): not ==> not_p
4098         * chartab.h: Likewise.
4099         * regex.c (re_match_2_internal): Likewise.
4100
4101 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4102
4103         * lisp-disunion.h: Fix up comments.
4104
4105 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4106
4107         * keymap.c (define_key_check_and_coerce_keysym):
4108         (syms_of_keymap):
4109         Support mouse-6 and mouse-7 bindings in the obvious way.
4110
4111 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4112
4113         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4114
4115 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4116
4117         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4118         Previous patch missed DEFVAR_INT_MAGIC.
4119         Make sure future DEFVAR_foo use correct types.
4120         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4121         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4122         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4123         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4124         * (DEFVAR_INT): Likewise.
4125         * redisplay.c (vertical_clip): Should be of type Fixnum.
4126         * redisplay.c (horizontal_clip): Likewise.
4127         * lisp.h (dump_add_opaque_int): New.
4128         (dump_add_opaque_fixnum): New.
4129
4130 2001-01-29  Andy Piper  <andy@xemacs.org>
4131
4132         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4133         since they can be eval'ed
4134
4135 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4136
4137         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4138         Oops, XEmacs redefines `class'.  Use `typename' instead.
4139
4140 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4141
4142         * dumper.c: Fix C++ compile errors.
4143
4144 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4145
4146         * tparam.c: Use correct prototypes.
4147
4148 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4149
4150         * sysproc.h: #include util.h for NetBSD's openpty.
4151
4152 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4153
4154         More 64-bit correctness.
4155         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4156         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4157         Fix up comments.
4158         This finally finishes the 64-bit SGI port.
4159         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4160         * symbols.c: Fix up comments and type casts.
4161         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4162         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4163         * symeval.h (Fixnum): New type.
4164         * symeval.h (symbol_value_type): Fix up comment.
4165
4166         * commands.h:
4167         * nt.c:
4168         * emacs.c:
4169         * data.c:
4170         * redisplay.c:
4171         * abbrev.c:
4172         * dired-msw.c:
4173         * event-Xt.c:
4174         * eldap.c:
4175         * window.c:
4176         * sound.c:
4177         * event-stream.c:
4178         * eval.c:
4179         * buffer.c:
4180         * mule-canna.c: A million DEFVAR_INTs here...
4181         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4182         * extents.c:
4183         * cmdloop.c:
4184         * lisp.h:
4185         * select-x.c:
4186         * console-x.h:
4187         * event-msw.c:
4188         * mule-wnnfns.c:
4189         * hpplay.c:
4190         * ralloc.c:
4191         * alloc.c:
4192         * keymap.c:
4193         * profile.c:
4194         s/int/Fixnum/g in DEFVAR_INT declarations.
4195
4196 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4197
4198         Port pdump to SGI alignment-sensitive environment.
4199         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4200         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4201         properly aligned.
4202         Define and use aligned reading and writing macros.
4203         Use buffered stdio instead of posix i/o for faster dumping.
4204         Eliminate kludgy 256 byte space for header.
4205         Read and write from dump file using structs for alignment safety.
4206         * dumper.c (pdump_align_stream): New.
4207         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4208         * dumper.c (PDUMP_READ_ALIGNED): New.
4209         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4210         * dumper.c (pdump_static_Lisp_Object): New struct.
4211         * dumper.c (pdump_static_pointer): New struct.
4212         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4213         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4214         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4215         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4216
4217         * dumper.c (pdump_backtrace):
4218         * dumper.c (pdump_get_indirect_count):
4219         * dumper.c (pdump_register_object):
4220         * dumper.c (pdump_register_struct):
4221         * dumper.c (pdump_reloc_one):
4222         * dumper.c (pdump_scan_by_alignment):
4223         * dumper.c (pdump_dump_from_root_struct_ptrs):
4224         * dumper.c (pdump_dump_opaques):
4225         * dumper.c (pdump_dump_rtables):
4226         * dumper.c (pdump_dump_from_root_objects):
4227         * dumper.c (pdump):
4228         * dumper.c (pdump_load_finish):
4229         Use aligned reading and writing.
4230
4231         * dumper.c (pdump_free): Make static.
4232         * dumper.c (pdump_hFile): Likewise.
4233         * dumper.c (pdump_hMap): Likewise.
4234
4235 2001-01-26  Martin Buchholz <martin@xemacs.org>
4236
4237         * XEmacs 21.2.43 "Terspichore" is released.
4238
4239 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4240
4241         Type fiddling for window_config.saved_windows_count
4242         * window.c (struct window_config): 
4243         Make saved_windows_count member unsigned.
4244         * window.c (sizeof_window_config_for_n_windows): 
4245         Make parameter unsigned.
4246         * window.c (mark_window_config):
4247         * window.c (window_config_equal):
4248         * window.c (free_window_configuration):
4249         * window.c (Fset_window_configuration):
4250         * window.c (count_windows):
4251         * window.c (Fcurrent_window_configuration):
4252         * window.c (reinit_vars_of_window):
4253         Update all callers and users.
4254
4255 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4256
4257         Alignment correctness for flexible arrays.
4258         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4259         Make alignment-correct. Add interesting comments.
4260         * alloc.c (size_vector):
4261         * alloc.c (make_vector_internal):
4262         * alloc.c (make_bit_vector_internal):
4263         * alloc.c (sweep_bit_vectors_1):
4264         * fns.c (size_bit_vector):
4265         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4266         * window.c (sizeof_window_config_for_n_windows): 
4267         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4268
4269 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4270
4271         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4272
4273 2001-01-23  Andy Piper  <andy@xemacs.org>
4274
4275         * select.c (Fown_selection_internal): pass owned_p
4276
4277         * select-msw.c (mswindows_own_selection): New Signature.
4278
4279         * console.h (struct console_methods): add owned_p to
4280         _own_selection.
4281
4282         * select-x.c (x_own_selection): pass owned_p
4283         (hack_motif_clipboard_selection): use owned_p
4284         (vars_of_select_x): new variable -
4285         x_selection_strict_motif_ownership.
4286
4287 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4288
4289         * specifier.h (specifier_data_offset): Remove pointless parens.
4290         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4291
4292 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4293
4294         Make Lisp_Object sizeof methods be alignment-correct.
4295         pdump must restore objects to the same alignment as the C compiler
4296         assumes.  It really matters on SGIs.
4297         * lstream.c (aligned_sizeof_lstream): New.
4298         (sizeof_lstream): Use aligned_sizeof_lstream.
4299         (Lstream_new): Likewise.
4300         * opaque.c (aligned_sizeof_opaque): New.
4301         (sizeof_opaque): Use aligned_sizeof_opaque.
4302         (make_opaque): Likewise.
4303         * specifier.c (aligned_sizeof_specifier): New.
4304         (sizeof_specifier): Use aligned_sizeof_specifier.
4305         (make_specifier_internal): Likewise.
4306
4307 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4308
4309         * lstream.h (struct lstream): Use max_align_t for trailing data.
4310         * specifier.h (struct Lisp_Specifier): Likewise.
4311
4312 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4313
4314         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4315         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4316         (CCL_SUSPEND): Likewise.
4317         (CCL_INVALID_CMD): Likewise.
4318         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4319         (ccl_driver): Likewise.
4320         (CCL_WRITE_CHAR): Macro hygiene.
4321         (CCL_WRITE_STRING): Macro hygiene.
4322
4323 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4324
4325         Port "portable" dumper to SunOS 4 and HP-UX.
4326         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4327         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4328         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4329
4330 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4331
4332         * lisp.h (ALIGNOF): A better definition for C++.
4333
4334 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4335
4336         Macro hygiene.
4337         Fix printf warnings: int format, long int arg.
4338         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4339         (PUSH_FAILURE_POINT): Use correct printf formats.
4340         (POP_FAILURE_POINT): Use correct printf formats.  
4341         Use do {...} while (0)
4342
4343 2001-01-20  Martin Buchholz <martin@xemacs.org>
4344
4345         * XEmacs 21.2.42 "Poseidon" is released.
4346
4347 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4348
4349         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4350
4351 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4352
4353         De-kludgify FIXED_TYPE free list frobbing.
4354         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4355         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4356         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4357         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4358         * alloc.c (LRECORD_FREE_P): New.
4359         * alloc.c (MARK_LRECORD_AS_FREE): New.
4360         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4361         * alloc.c (STRUCT_FREE_P): Deleted.
4362         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4363         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4364         * alloc.c (STRING_CHARS_FREE_P): New.
4365         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4366         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4367         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4368         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4369         * alloc.c (resize_string): Use new definitions.
4370         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4371         * alloc.c (verify_string_chars_integrity): Use new definitions.
4372         * alloc.c (compact_string_chars): Use new definitions.
4373         * alloc.c: Update monster comments.
4374         * lrecord.h (lrecord_type): Add some new lrecord types for
4375         alloc.c's use.
4376
4377 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4378
4379         Improve alignment hackery.
4380         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4381         (max_align_t): Moved from opaque.h - general purpose.
4382         (ALIGN_PTR): Use size_t, not long.
4383         * opaque.h (max_align_t): Move to lisp.h.
4384
4385 2001-01-18  Norbert Koch  <nk@LF.net>
4386
4387         * gui.h: Fix and add prototypes to fix build problems.
4388
4389 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4390
4391         temacs is going away, so `dump-temacs' is now a bad name.
4392         * .dbxrc (dump-temacs): Rename to `dmp'.
4393         * .gdbinit (dump-temacs): Rename to `dmp'.
4394
4395 2001-01-17  Andy Piper  <andy@xemacs.org>
4396
4397         * glyphs.c (print_image_instance): comment to make martin happy.
4398
4399         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4400         change.
4401
4402         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4403         activation.
4404         (mswindows_tab_control_redisplay): warning suppression.
4405
4406         * glyphs-widget.c (widget_update): re-write to cope with updated
4407         items.
4408         (widget_instantiate): use new gui_item functions.
4409         (tab_control_update): deleted.
4410         (progress_gauge_update): deleted.
4411         (image_instantiator_progress_guage): take out update reference.
4412         (image_instantiator_tree_view): ditto.
4413         (image_instantiator_tab_control): ditto.
4414
4415         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4416         Right the new way.
4417         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4418         return whether anything was changed.
4419         (update_gui_item_keywords): as it sounds.
4420
4421         * gui.h: declare widget_gui_parse_item_keywords.
4422
4423         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4424         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4425
4426 2001-01-17  Martin Buchholz <martin@xemacs.org>
4427
4428         * XEmacs 21.2.41 "Polyhymnia" is released.
4429
4430 2001-01-16  Didier Verna  <didier@xemacs.org>
4431
4432         * glyphs.c (image_instantiate): don't use fallbacks when
4433         instantiating a face's background pixmap by inheritance.
4434
4435 2001-01-14  Mike Sperber <mike@xemacs.org>
4436
4437         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4438         Conditionalize accordingly.
4439
4440 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4441
4442         * dumper.c (pdump_file_get): Fix a compiler warning.
4443
4444 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4445
4446         Make Purify happy when pdumping.
4447         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4448         iniitalizing all bits of new lisp object memory.
4449         * symbols.c (Fmake_local_variable): Likewise.
4450         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4451         * symbols.c (Fdefvaralias): Likewise.
4452         * mule-charset.c (vars_of_mule_charset): Likewise.
4453
4454 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4455         Add the `-nd' flag when running pre-dump operations under the debugger.
4456         * .dbxrc (run-temacs): Add `-nd'.
4457         * .dbxrc (update-elc): Likewise.
4458         * .dbxrc (dump-temacs): Likewise.
4459         * .gdbinit (run-temacs): Likewise.
4460         * .gdbinit (check-temacs): Likewise.
4461         * .gdbinit (update-elc): Likewise.
4462         * .gdbinit (dump-temacs): Likewise.
4463
4464 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4465
4466         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4467         export OBJECT_MODE=64
4468         configure --pdump --use-union-type=no
4469         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4470         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4471
4472         * miscplay.c (sndcnv8U_2mono):
4473         Avoid two uses of `++' in the same expression.
4474         Suppresses a GCC warning.
4475
4476 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4477
4478         Make sure future compilers don't miscompile alloc.c.
4479         * alloc.c:
4480         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4481         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4482
4483 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4484
4485         * dumper.c: A little post-pdump-rename comment fixup.
4486
4487 2001-01-09  Jerry James  <james@eecs.ku.edu>
4488
4489         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4490
4491 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4492
4493         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4494         script:
4495         #!/bin/sh
4496         replace_symbol () {
4497           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4498         }
4499
4500         replace_symbol pdump_wire_lists pdump_weak_object_chains
4501         replace_symbol pdump_wire_list dump_add_weak_object_chain
4502
4503         replace_symbol pdump_wires pdump_root_objects
4504         replace_symbol pdump_wire dump_add_root_object
4505
4506         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4507         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4508
4509         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4510         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4511         replace_symbol dumpstructinfo pdump_root_struct_ptr
4512         replace_symbol dumpstruct dump_add_root_struct_ptr
4513
4514         replace_symbol dumpopaque dump_add_opaque
4515         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4516         replace_symbol dumpopaqueinfos pdump_opaques
4517         replace_symbol dumpopaqueinfo pdump_opaque
4518
4519         replace_symbol nb_structdump nb_root_struct_ptrs
4520         replace_symbol nb_opaquedump nb_opaques
4521
4522         replace_symbol align_table pdump_align_table
4523         replace_symbol dump_header pdump_header
4524
4525         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4526         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4527
4528
4529 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4530
4531         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4532         optimizing bytecount_to_charcount().
4533
4534 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4535
4536         * config.h.in:
4537         (HAVE_DLFCN_H): Removed.
4538         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4539
4540 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4541
4542         Portable dumper maintainability improvements.
4543         * alloc.c (staticpro):
4544         * alloc.c (staticpro_nodump):
4545         * alloc.c (garbage_collect_1):
4546         * alloc.c (reinit_alloc_once_early):
4547         * alloc.c (init_alloc_once_early):
4548         * alloc.c: Move dumper functions to alloc.c.
4549         * dumper.c (pdump_backtrace):
4550         * dumper.c (pdump_dump_structs):
4551         * dumper.c (pdump_dump_opaques):
4552         * dumper.c (pdump_dump_rtables):
4553         * dumper.c (pdump_dump_wired):
4554         * dumper.c (pdump):
4555         * dumper.c (pdump_load_check):
4556         * dumper.c (pdump_load_finish):
4557         * dumper.c (pdump_file_unmap):
4558         * dumper.c (pdump_file_get):
4559         * dumper.c (pdump_resource_free):
4560         * dumper.c (pdump_resource_get):
4561         * dumper.c (pdump_file_free):
4562         * dumper.c (pdump_file_try):
4563         * dumper.c (pdump_load):
4564         Remove fixed size limits on staticpro(), staticpro_nodump(),
4565         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4566         Remove custom code for dumping lrecord_implementations_table - use
4567         dumpopaque instead.
4568         Remove (most of the) custom code for dumping staticpros - dump it
4569         like any other dynarr.
4570
4571         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4572         * dumper.c: Moved functions from alloc.c.
4573         * alloc.c (dumpstruct): Moved to dumper.c.
4574         * alloc.c (dumpopaque): Likewise.
4575         * alloc.c (pdump_wire): Likewise.
4576         * alloc.c (pdump_wire_list): Likewise.
4577
4578         * lisp.h (Dynarr_sizeof): New.
4579         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4580         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4581         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4582
4583         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4584         * lisp.h (dumpopaque): ditto.
4585         * lisp.h (pdump_wire): ditto.
4586         * lisp.h (pdump_wire_list): ditto.
4587
4588 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4589
4590         * make-src-depend (PrintPatternDeps):
4591         Use `sort' to make output independent of perl version.
4592
4593 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4594
4595         Port to Netbsd 1.5.
4596         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4597         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4598
4599 2001-01-03  Didier Verna  <didier@xemacs.org>
4600
4601         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4602         that `focus_frame' is alive before thinking of calling
4603         `redisplay_redraw_cursor' on it.
4604
4605 2001-01-08  Martin Buchholz <martin@xemacs.org>
4606
4607         * XEmacs 21.2.40 is released.
4608
4609 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4610
4611         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4612
4613 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4614
4615         * alloc.c (dbg_valmask): Make const.
4616         * alloc.c (dbg_typemask): Make const.
4617         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4618         * alloc.c (dbg_valbits): Make const.
4619         * alloc.c (dbg_gctypebits): Make const.
4620
4621 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4622
4623         * redisplay-x.c (x_bevel_area):
4624         redisplay.h (struct rune):
4625         Typo fixes in comments.
4626
4627 2001-01-05  Andy Piper  <andy@xemacs.org>
4628
4629         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4630         adjustment.
4631
4632         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4633
4634 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4635
4636         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4637
4638         * mule-ccl.c (stack_idx_of_map_multiple):
4639         Non const global data must not be initialized!
4640         Found by MIYASHITA Hisashi.
4641
4642 2001-01-02  Andy Piper  <andy@xemacs.org>
4643
4644         * frame.c (change_frame_size): make sure frame size is always
4645         marked as changed.
4646
4647         * glyphs.c (image_instance_layout): minor code reuse.
4648
4649         * window.c (Fcurrent_window_configuration): revert previous
4650         change.
4651
4652 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4653
4654         * glyphs.h:
4655         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4656
4657 2000-12-31  Andy Piper  <andy@xemacs.org>
4658
4659         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4660         when widget gets unmapped.
4661
4662         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4663         function. Make sure widgets losing focus don't just drop it.
4664         (handle_focus_event_1): record the widget with focus.
4665
4666 2000-12-31  Andy Piper  <andy@xemacs.org>
4667
4668         * window.c (allocate_window): use
4669         make_image_instance_cache_hash_table.
4670         (make_dummy_parent): ditto.
4671         (Fset_window_configuration): ditto.
4672
4673         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4674
4675         * glyphs.c (process_image_string_instantiator): use
4676         INSTANTIATOR_TYPE.
4677         (get_image_instantiator_governing_domain): ditto.
4678         (normalize_image_instantiator): ditto.
4679         (instantiate_image_instantiator): ditto.
4680         (make_image_instance_1): ditto.
4681         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4682         (instantiator_eq_equal): new function for use with instance hash
4683         tables.
4684         (instantiator_eq_hash): ditto.
4685         (make_image_instance_cache_hash_table): create a suitable hash
4686         table for storing image instances.
4687
4688         * elhash.h (hash_table_weakness): new internal weakness type
4689         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4690         declare new functions.
4691
4692         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4693         another weakness type for glyphs.
4694         (make_standard_lisp_hash_table): new function split out from
4695         make_general_lisp_hash_table.
4696         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4697         (hash_table_instantiate): ditto.
4698         (Fmake_hash_table): ditto.
4699
4700 2000-12-31  Martin Buchholz <martin@xemacs.org>
4701
4702         * XEmacs 21.2.39 is released.
4703
4704 2000-12-29  Andy Piper  <andy@xemacs.org>
4705
4706         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4707
4708         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4709         the frame has changed so that we pick up geometry changes such as
4710         menubar visibility.
4711
4712 2000-12-28  Andy Piper  <andy@xemacs.org>
4713
4714         * lastfile.c (my_ebss): make a char array so we can pad the
4715         bss. Fixes cygwin unexec.
4716
4717         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4718
4719 2000-12-26  Andy Piper  <andy@xemacs.org>
4720
4721         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4722         comments and try and be more precise about a non-/SIGIO world.
4723         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4724         SIGIO.
4725
4726         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4727         we don't normalize to zero width or height.
4728
4729 2000-12-24  Andy Piper  <andy@xemacs.org>
4730
4731         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4732
4733 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4734
4735         * s/sco5.h: SCO 5 has pty support.
4736
4737 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4738
4739         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4740         input-method-xlib.c contains whole contents of input-method-xfs.c,
4741         so we can use input-method-xlib.c's code for USE_XFONTSET
4742         using #ifdefs.
4743         * input-method-xfs.c: removed.
4744
4745 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4746
4747         * file-coding.h (enum coding_category_type): reorder enumerators to
4748         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4749         (now one greater than largest real coding_category_type enumerator).
4750         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4751         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4752         Fcoding_category_list, Fset_coding_priority_list,
4753         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4754         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4755
4756 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4757
4758         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4759         * redisplay-output.c (redisplay_output_window): Clear top of window
4760         when face is changed.
4761         * redisplay-x.c (x_redraw_exposed_window): Call
4762         redisplay_clear_top_of_window.
4763         * redisplay.h: Publish redisplay_clear_top_of_window.
4764
4765 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4766
4767         * buffer.c (Fkill_buffer): Map over all devices.
4768         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4769         (list_windows): New function.
4770         (list_all_windows): Ditto.
4771         (Freplace_buffer_in_windows): Use them.
4772
4773 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4774
4775         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4776         (Fopen_database): Use `db_create' instead of `db_open'.
4777         (syms_of_database): Initialize Qqueue.
4778
4779 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4780
4781         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4782         buffer_local_face_property.
4783         * buffer.h (struct buffer): New member buffer_local_face_property.
4784         * window.c (Fset_window_buffer):  Mark window's face as changed
4785         when buffer has buffer local face.
4786         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4787         * objects.c (color_after_change): Set buffer_local_face_property
4788         when locale of face specifier is buffer.
4789         * objects.c (font_after_change): Ditto.
4790         * objects.c (face_boolean_after_change): Ditto.
4791         * glyphs.c (image_after_change): Ditto.
4792
4793 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4794
4795         * nt.c (mswindows_fstat): Report file permissions, volume serial
4796         number, etc. Code adapted from FSF Emacs 20.7.
4797
4798 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4799
4800         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4801         of stat when we don't have symbolic links, to make sure
4802         mswindows_stat is called on mswindows.
4803
4804 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4805
4806         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4807
4808 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4809
4810         * doprnt.c (emacs_doprnt_1): More printing fixes.
4811         Make printing of numbers compatible with libc and FSF Emacs.
4812         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4813         Use the system printf to do most of the hard work of formatting,
4814         instead of doprnt_1().
4815         Calculate memory to allocate for format string.
4816         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4817         (doprnt_1): Cleaner code and documentation.
4818
4819 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4820
4821         * Makefile.in.in: Use the loop variable to install headers.
4822
4823 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4824
4825         * window.c (Fsplit_window): Don't invalidate face cache.
4826
4827 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4828
4829         * minibuf.c (Fall_completions): Undo the previous change
4830         which removed checking elements start with space.
4831
4832 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4833
4834         * mule-canna.c: Didier suppression.
4835
4836 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4837
4838         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4839         (warning suppression).  Add English comment translations.
4840
4841 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4842
4843         * unexelfsgi.c (unexec): Better test for mmap failure.
4844
4845 2000-12-05  Martin Buchholz <martin@xemacs.org>
4846
4847         * XEmacs 21.2.38 is released.
4848
4849 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4850
4851         * redisplay.c (bar-cursor): Make a user variable.
4852
4853         * symsinit.h: Add init_postgresql_from_environment.
4854
4855 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4856
4857         * regex.c: Convert to clean C.
4858
4859 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4860
4861         * realpath.c:
4862         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4863         initialization.
4864         (sys_readlink): renamed to system_readlink to avoid conflict with
4865         the other sys_readlink.
4866
4867 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4868
4869         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4870
4871 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4872
4873         * postgresql.c (init_postgresql_from_environment): new function.
4874         (vars_of_postgresql): Move code initializing Lisp variables out and
4875         into init_postgresql_from_environment.
4876         emacs.c (main_1): Call init_postgresql_from_environment if and only
4877         if running a dumped XEmacs.
4878
4879 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4880
4881         * buffer.c: Make find-file-compare-truenames default to true on
4882         windows.
4883
4884         * realpath.c (win32_abs_start):
4885         (cygwin_readlink):
4886         (win32_readlink): New functions.
4887         (xrealpath): Return really real filenames on windows.
4888
4889         * fileio.c (Ffile_truename): Make file-truename work on windows.
4890
4891 2000-11-29  Didier Verna  <didier@xemacs.org>
4892
4893         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4894         * faces.c (update_face_cachel_data): use it.
4895         * faces.c (add_face_cachel): use it. Complete background pixmap
4896         frobbing in face cache if `update_face_cachel_data' has not done so.
4897
4898 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4899
4900         * search.c (string_match_1): Don't set last_thing_searched
4901         when search failed.
4902
4903 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4904
4905         * buffer.c: Include casetab.h
4906         (common_init_complex_vars_of_buffer): Use new case-table object.
4907         * buffer.h: Include casetab.h
4908         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4909         (DOWNCASE_TABLE_OF): Ditto.
4910         * bufslots.h: Remove char-tables and add case-table.
4911         * casetab.c: Include casetab.h
4912         (CASE_TABLE_P): Removed.
4913         (mark_case_table): New function.
4914         (allocate_case_table): New function.
4915         (Fcase_table_p): Use new case-table.
4916         (case_table_char): New function.
4917         (Fget_case_table): Ditto.
4918         (Fput_case_table): Ditto.
4919         (Fput_case_table_pair): Ditto.
4920         (Fcopy_case_table): Ditto.
4921         (Fcurrent_case_table): Return case-table.
4922         (Fstandard_case_table): Return case-table.
4923         (Fset_case_table): Fix doc-string.
4924         (set_case_table): Use case-table
4925         (syms_of_casetab): DEFSUBR new functions.
4926         (complex_vars_of_casetab): Set up standard case-table.
4927         * casetab.h: New file.
4928         * editfns.c: Include casetab.h
4929         (Fcompare_buffer_substrings): Use case-table.
4930         * inline.c: Include casetab.h
4931         * lisp.h: Remove bogus extern.
4932         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4933         * search.c: Include casetab.h
4934         (TRANSLATE_ASCII): Removed.
4935         (TRANSLATE): Unconditionally translate character.
4936         (looking_at_1): Use case-table.
4937         (string_match_1): Ditto.
4938         (fast_string_match): Ditto.
4939         (search_command): Ditto.
4940         (search_buffer): Separate boyer_moore.  Check whether
4941         boyer_moore is possible.
4942         (simple_search): New function.
4943         (boyer_moore): Separated from search_buffer. Translate char.
4944
4945 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4946
4947         * regex.c (RE_TR_ASCII): Removed.
4948         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4949         (PATFETCH): Call PATFETCH_RAW.
4950         (PATFETCH_RAW): Fetch Emchar.
4951         (PATUNFETCH): Decrement charptr.
4952         (GET_BUFFER_SPACE): Rename b to buf_end.
4953         (BUF_PUSH): Ditto.
4954         (BUF_PUSH_2): Ditto.
4955         (BUF_PUSH_3): Ditto.
4956         (EXTEND_BUFFER): Ditto.
4957         (SET_LIST_BIT): Ditto.
4958         (regex_compile): Ditto.  Translate non ASCII char.
4959         (compile_range): Ditto.
4960         (re_search_2): Ditto.
4961         (re_match_2_internal): Compare Emchar.
4962         (bcmp_translate): Ditto.
4963
4964 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4965
4966         * lisp.h (basic char/int typedefs):  comment improvement.
4967
4968 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4969
4970         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4971         unstomp inhibit_site_lisp.  Improve comments.
4972
4973 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4974
4975         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4976
4977 2000-11-28  Andy Piper  <andy@xemacs.org>
4978
4979         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4980         clipped display for windows in the gutter also.
4981         (redisplay_display_boxes_in_window_p): change semantics of return
4982         codes to be more intuitive.
4983
4984         * gutter.h: declare display_boxes_in_gutter_p.
4985
4986         * gutter.c (display_boxes_in_gutter_p): new function for
4987         redisplay.
4988
4989 2000-11-22  Andy Piper  <andy@xemacs.org>
4990
4991         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4992         autodetect domain.
4993
4994 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4995
4996         * callproc.c (Fold_call_process_internal):
4997         * gpm.c (Freceive_gpm_event):
4998         (tty_get_foreign_selection): Might be just warning supression.
4999         * fileio.c (Fwrite_region_internal):
5000         (Fset_visited_file_modtime):
5001         * keymap.c (event_matches_key_specifier_p):
5002         Initialize GCPROed variable.
5003
5004         * menubar-x.c (command_builder_find_menu_accelerator):
5005         Initialize before use.
5006
5007 2000-11-23  Andy Piper  <andy@xemacs.org>
5008
5009         * unexcw.c (unexec): make the resulting executable executable.
5010
5011 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5012
5013         * doc.c (get_doc_string):
5014         Use size_t, not int, for result of XSTRING_LENGTH.
5015
5016         * cmds.c (Fdelete_char):
5017         * cmds.c (Fpoint_at_eol):
5018         * cmds.c (Fself_insert_command):
5019         Use EMACS_INT, not int, for result of XINT.
5020         Someday, someone will want to insert more than 2**31 identical characters.
5021
5022         * cmds.c (Fdelete_char):
5023         * cmds.c (Fdelete_backward_char):
5024         * syntax.c (Fforward_word):
5025         * syntax.c (Fforward_comment):
5026         Make COUNT argument optional, for consistency with forward-char et al.
5027
5028 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5029
5030         * lisp.h:
5031         * print.c (long_to_string):
5032         Return a useful value: the pointer at end of data written.
5033
5034         * doprnt.c:
5035         Use `static const char * const' for constant strings.
5036         (union printf_arg): Delete `i', `ui' members.
5037         (get_doprnt_args):
5038         (emacs_doprnt_1):
5039         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5040         Do all printf-ing via the `l' specifier.
5041         Use EMACS_INT instead of int.
5042         Optimize.
5043
5044 2000-11-20  Didier Verna  <didier@xemacs.org>
5045
5046         * faces.c (update_face_cachel_data): don't frob the background
5047         pixmap when the window is being created. The face is needed but
5048         does not exist yet.
5049
5050 2000-11-20  Andy Piper  <andy@xemacs.org>
5051
5052         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5053         messing with a debug environment.
5054
5055 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5056
5057         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5058
5059 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5060
5061         * casetab.c (Fcase_table_p): Fix compile error and crash.
5062
5063 2000-11-18  Philip Aston  <philipa@mail.com>
5064
5065         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5066
5067 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5068
5069         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5070         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5071
5072 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5073
5074         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5075         * unexelf.c: Use HAVE_ELF_H.
5076         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5077         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5078         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5079         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5080         for testing.
5081         So this is an unexelfsgi.c from a different line of development.
5082
5083 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5084
5085         * regex.c (RE_TR_ASCII): New function.
5086         (RE_TRANSLATE): Call it.
5087
5088 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5089
5090         * buffer.h (TRT_TABLE_OF): Remove assert.
5091         (IN_TRT_TABLE_DOMAIN): Removed.
5092
5093 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5094
5095         * free-hook.c (log_gcpro):
5096         (show_gcprohist): Add support for GCPRO5.
5097
5098 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5099
5100         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5101
5102 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5103
5104         * symeval.h: Declare flush_all_buffer_local_cache.
5105
5106         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5107         (flush_buffer_local_cache): Added.
5108         (flush_all_buffer_local_cache): Added.
5109
5110         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5111
5112         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5113         (pdump_dump_data): Ditto.
5114         (pdump_reloc_one): Ditto.
5115         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5116         before dumping.
5117
5118
5119 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5120
5121         * buffer.c: Remove if 0'ed entry.
5122         * buffer.h: Rewrite TRT to use char-table.
5123         * bufslots.h: Remove mirror tables.
5124         * casetab.c: Remove mirror tables.
5125         (CASE_TABLE_P): New macro.
5126         (Fcase_table_p): Element of a case table is string or char-table.
5127         (make_mirror_trt_table): Removed.
5128         (set_case_table): Setup char-table from strings for backward
5129         compatibility.
5130         * dired.c (Fdirectory_files):
5131         * dired-msw.c: (mswindows_get_files):
5132         * lisp.h: Change prototype of re_pattern_buffer.
5133         * regex.c: (RE_TRANSLATE): New macro.
5134         (TRANSLATE_P): Ditto.
5135         Change translate to type RE_TRANSLATE_TYPE.
5136         * regex.h: Define RE_TRANSLATE_TYPE
5137         * search.c (TRANSLATE): New macro.
5138         (TRANSLATE_ASCII): New macro.
5139         Translate table is changed to Lisp_Object.
5140         (signal_failure): Inhibit return.
5141
5142 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5143
5144         * device-msw.c:
5145         * eldap.c:
5146         * event-Xt.c:
5147         * event-stream.c:
5148         * print.c:
5149         Do UNGCPRO before return.
5150
5151 2000-11-14  Martin Buchholz <martin@xemacs.org>
5152
5153         * XEmacs 21.2.37 is released.
5154
5155 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5156
5157         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5158         Add comments about discarded return value.
5159
5160 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5161
5162         * callint.c:
5163         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5164
5165 2000-10-27  Andy Piper  <andy@xemacs.org>
5166
5167         * gutter.c (Fset_default_gutter_position): default left and right
5168         gutters to visible.
5169         (calculate_gutter_size): calculate resonable heuristic for left
5170         and right gutter sizes.
5171         (specifier_vars_of_gutter): change left and right gutter sizes to
5172         autodetect.
5173         (calculate_gutter_size_from_display_lines): new function.
5174         (output_gutter): check for resizing on left and right gutters.
5175         (clear_gutter): don't special case top and left gutters.
5176         (specifier_vars_of_gutter): use new signature for
5177         set_specifier_caching.
5178
5179         * glyphs-x.c (x_redisplay_widget): spelling fix.
5180         * glyphs.c (specifier_vars_of_glyphs):
5181         * menubar.c (specifier_vars_of_menubar):
5182         * redisplay.c (specifier_vars_of_redisplay):
5183         * toolbar.c (specifier_vars_of_toolbar):
5184         * window.c (specifier_vars_of_window):
5185         * scrollbar.c (specifier_vars_of_scrollbar):
5186         (complex_vars_of_scrollbar): use new signature for
5187         set_specifier_caching.
5188
5189         * specifier.c (set_specifier_caching): include recompute flag.
5190         (recompute_one_cached_specifier_in_window): always recompute if
5191         flag set.
5192         (recompute_one_cached_specifier_in_frame): ditto.
5193
5194         * specifier.h (struct specifier_caching): add recompute flag.
5195
5196 2000-10-24  Andy Piper  <andy@xemacs.org>
5197
5198         * unexcw.c (copy_executable_and_dump_data_section): add new
5199         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5200         5.0 happy.
5201
5202 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5203
5204         * console-x.h (x_device): New member modifier_release_time.
5205         * event-Xt.c (x_handle_sticky_modifiers):
5206         Bound interval modifier keys are sticky.
5207         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5208         * events.h: extern it.
5209
5210 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5211
5212         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5213
5214 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5215
5216         * event-stream.c (execute_command_event): Preserve current_events
5217         and the like when event is misc-user-event.
5218         Inhibit quit during the call to maybe_echo_keys.
5219
5220 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5221
5222         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5223         symlink when buffer is killed.
5224         (inhibit_clash_detection): New variable.
5225
5226 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5227
5228         * console.c (Fset_input_method): Trigger redisplay on tty.
5229
5230 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5231
5232         * process.c (Fprocess_status): Revert to previous behavior:
5233         (process-status "nosuchprocess") ==> nil
5234
5235 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5236
5237         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5238         Work around another GCC 2.95.2 optimizer bug.
5239
5240 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5241
5242         * process.c (Fget_process): Use LIST_LOOP_2.
5243         (kill_buffer_processes): Use LIST_LOOP_2.
5244
5245         * minibuf.c (Fall_completions):
5246         Delete old non-functional code for FSF fourth argument.
5247
5248         * frame.c (frame_matches_frame_spec):
5249         Renamed from `frame_matches_frametype'.  Update all callers.
5250         (device_matches_device_spec):
5251         Renamed from 'device_matches_console_spec'.  Update all callers.
5252
5253         * doc.c (Fsubstitute_command_keys):
5254         Remove buffer overflow crash.  Small code cleanups.
5255
5256         * casetab.c (check_case_table): Simpler code.
5257
5258         * window.c (Freplace_buffer_in_windows):
5259         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5260         (and similar implementation) as Fdelete_windows_on.
5261         Update all callers.
5262
5263         * alloc.c (Fmake_list):
5264         * alloc.c (make_vector):
5265         * alloc.c (Fmake_vector):
5266         * alloc.c (make_bit_vector):
5267         * alloc.c (Fmake_bit_vector):
5268         * alloc.c (Fbit_vector):
5269         * alloc.c (Fmake_string):
5270         * alloc.c (Fpurecopy):
5271         * alloc.c (Fmemory_limit):
5272         * buffer.c:
5273         * buffer.c (Fget_buffer):
5274         * buffer.c (Fkill_buffer):
5275         * buffer.c (complex_vars_of_buffer):
5276         * bytecode.c (Fcompiled_function_stack_depth):
5277         * callint.c (Fprefix_numeric_value):
5278         * event-stream.c:
5279         * event-stream.c (Fread_key_sequence):
5280         * casetab.c:
5281         * casetab.c (Fcase_table_p):
5282         * casetab.c (check_case_table):
5283         * casetab.c (Fset_case_table):
5284         * casetab.c (Fset_standard_case_table):
5285         * chartab.c:
5286         * chartab.c (Fchar_table_type):
5287         * chartab.c (Freset_char_table):
5288         * chartab.c (Fget_char_table):
5289         * chartab.c (Fget_range_char_table):
5290         * chartab.c (Fput_char_table):
5291         * chartab.c (Fmap_char_table):
5292         * chartab.c (Fcategory_table_p):
5293         * chartab.c (Fcheck_category_at):
5294         * chartab.c (Fchar_in_category_p):
5295         * chartab.c (Fcategory_table):
5296         * chartab.c (Fcopy_category_table):
5297         * chartab.c (Fset_category_table):
5298         * chartab.c (Fcategory_designator_p):
5299         * chartab.c (Fcategory_table_value_p):
5300         * cmds.c (Fdelete_char):
5301         * cmds.c (Fdelete_backward_char):
5302         * cmds.c (Fself_insert_command):
5303         * cmds.c (Fself_insert_internal):
5304         * console.c (Fvalid_console_type_p):
5305         * console.c (Fcdfw_console):
5306         * console.c (Fconsole_type):
5307         * console.c (Fconsole_name):
5308         * console.c (Fconsole_device_list):
5309         * console.c (Fconsole_on_window_system_p):
5310         * data.c:
5311         * data.c (Feq):
5312         * data.c (Fold_eq):
5313         * data.c (Fsubr_interactive):
5314         * data.c (Fchar_to_int):
5315         * data.c (Fint_to_char):
5316         * data.c (Fsetcar):
5317         * data.c (Fsetcdr):
5318         * data.c (Fnumber_to_string):
5319         * data.c (Fstring_to_number):
5320         * data.c (Frem):
5321         * database.c (mark_database):
5322         * database.c (finalize_database):
5323         * database.c (Fdatabase_live_p):
5324         * database.c (Fdatabasep):
5325         * device-x.c (Fx_get_resource):
5326         * device.c (Fdfw_device):
5327         * dired.c:
5328         * dired.c (Ffile_name_completion):
5329         * dired.c (Ffile_name_all_completions):
5330         * dired.c (Fuser_name_completion):
5331         * dired.c (Fuser_name_completion_1):
5332         * dired.c (Fuser_name_all_completions):
5333         * doc.c (Fdocumentation):
5334         * doc.c (Fdocumentation_property):
5335         * doc.c (Fsubstitute_command_keys):
5336         * editfns.c:
5337         * editfns.c (Fchar_to_string):
5338         * editfns.c (Fstring_to_char):
5339         * editfns.c (Ftemp_directory):
5340         * editfns.c (Finsert_char):
5341         * editfns.c (Fbuffer_substring_no_properties):
5342         * editfns.c (Fnarrow_to_region):
5343         * editfns.c (Fchar_equal):
5344         * editfns.c (Fchar_Equal):
5345         * editfns.c (Ftranspose_regions):
5346         * emacs.c (Fdump_emacs):
5347         * eval.c (Fthrow):
5348         * eval.c (Fcommand_execute):
5349         * eval.c (Fautoload):
5350         * eval.c (Fbacktrace):
5351         * eval.c (Fbacktrace_frame):
5352         * events.c:
5353         * events.c (Fcopy_event):
5354         * events.c (Fcharacter_to_event):
5355         * events.c (Fevent_button):
5356         * events.c (Fevent_process):
5357         * extents.c:
5358         * extents.c (Fnext_extent_change):
5359         * extents.c (Fextent_property):
5360         * faces.c (Ffacep):
5361         * faces.c (Fmake_face):
5362         * file-coding.c:
5363         * file-coding.c (Fencode_shift_jis_char):
5364         * file-coding.c (Fencode_big5_char):
5365         * fileio.c (Ffile_name_directory):
5366         * fileio.c (Ffile_name_nondirectory):
5367         * fileio.c (Ffile_name_as_directory):
5368         * fileio.c (Fdirectory_file_name):
5369         * fileio.c (Ffile_truename):
5370         * fileio.c (Fsubstitute_in_file_name):
5371         * fileio.c (Ffile_modes):
5372         * fileio.c (Fset_file_modes):
5373         * fileio.c (Fset_default_file_modes):
5374         * fileio.c (Fverify_visited_file_modtime):
5375         * floatfns.c (Facos):
5376         * floatfns.c (Fasin):
5377         * floatfns.c (Fatan):
5378         * floatfns.c (Fcos):
5379         * floatfns.c (Fsin):
5380         * floatfns.c (Ftan):
5381         * floatfns.c (Fbessel_j0):
5382         * floatfns.c (Fbessel_j1):
5383         * floatfns.c (Fbessel_jn):
5384         * floatfns.c (Fbessel_y0):
5385         * floatfns.c (Fbessel_y1):
5386         * floatfns.c (Fbessel_yn):
5387         * floatfns.c (Ferf):
5388         * floatfns.c (Ferfc):
5389         * floatfns.c (Flog_gamma):
5390         * floatfns.c (Fexp):
5391         * floatfns.c (Fexpt):
5392         * floatfns.c (Flog):
5393         * floatfns.c (Flog10):
5394         * floatfns.c (Fsqrt):
5395         * floatfns.c (Fcube_root):
5396         * floatfns.c (Facosh):
5397         * floatfns.c (Fasinh):
5398         * floatfns.c (Fatanh):
5399         * floatfns.c (Fcosh):
5400         * floatfns.c (Fsinh):
5401         * floatfns.c (Ftanh):
5402         * floatfns.c (Fabs):
5403         * floatfns.c (Ffloat):
5404         * floatfns.c (Flogb):
5405         * floatfns.c (Fceiling):
5406         * floatfns.c (Ffloor):
5407         * floatfns.c (Fround):
5408         * floatfns.c (Ftruncate):
5409         * floatfns.c (Ffceiling):
5410         * floatfns.c (Fffloor):
5411         * floatfns.c (Ffround):
5412         * floatfns.c (Fftruncate):
5413         * fns.c (Fstring_equal):
5414         * fns.c (Fstring_lessp):
5415         * fns.c (concat2):
5416         * fns.c (concat3):
5417         * fns.c (vconcat2):
5418         * fns.c (vconcat3):
5419         * fns.c (Fsubstring):
5420         * fns.c (Fassoc):
5421         * fns.c (Fold_assoc):
5422         * fns.c (assoc_no_quit):
5423         * fns.c (Fassq):
5424         * fns.c (Fold_assq):
5425         * fns.c (assq_no_quit):
5426         * fns.c (Frassoc):
5427         * fns.c (Fold_rassoc):
5428         * fns.c (Frassq):
5429         * fns.c (Fold_rassq):
5430         * fns.c (rassq_no_quit):
5431         * fns.c (Fremassoc):
5432         * fns.c (remassoc_no_quit):
5433         * fns.c (Fremassq):
5434         * fns.c (remassq_no_quit):
5435         * fns.c (Fremrassoc):
5436         * fns.c (Fremrassq):
5437         * fns.c (remrassq_no_quit):
5438         * fns.c (Fsort):
5439         * fns.c (Fplist_get):
5440         * fns.c (Fplist_put):
5441         * fns.c (Fplist_remprop):
5442         * fns.c (Fplist_member):
5443         * fns.c (Flax_plist_get):
5444         * fns.c (Flax_plist_put):
5445         * fns.c (Flax_plist_remprop):
5446         * fns.c (Flax_plist_member):
5447         * fns.c (Fequal):
5448         * fns.c (Fold_equal):
5449         * fns.c (Frequire):
5450         * fns.c (Fbase64_encode_region):
5451         * fns.c (Fbase64_encode_string):
5452         * fns.c (Fbase64_decode_region):
5453         * frame.c:
5454         * frame.c (frame_matches_frame_spec):
5455         * frame.c (device_matches_device_spec):
5456         * frame.c (next_frame):
5457         * frame.c (previous_frame):
5458         * frame.c (Fnext_frame):
5459         * frame.c (Fprevious_frame):
5460         * frame.c (Fframe_property):
5461         * frame.c (Fset_frame_height):
5462         * frame.c (Fset_frame_size):
5463         * frame.h:
5464         * glyphs.c:
5465         * glyphs.c (if):
5466         * glyphs.c (decode_error_behavior_flag):
5467         * glyphs.c (Fmake_image_instance):
5468         * indent.c (Findent_to):
5469         * intl.c (Fignore_defer_gettext):
5470         * keymap.c (Fkeymapp):
5471         * keymap.c (Flookup_key):
5472         * lread.c:
5473         * lread.c (Fload_internal):
5474         * lread.c (Feval_buffer):
5475         * lread.c (Feval_region):
5476         * macros.c (Fexecute_kbd_macro):
5477         * marker.c (set_marker_internal):
5478         * marker.c (Fset_marker):
5479         * marker.c (set_marker_restricted):
5480         * marker.c (Fcopy_marker):
5481         * marker.c (noseeum_copy_marker):
5482         * menubar.c:
5483         * menubar.c (Fpopup_menu):
5484         * minibuf.c:
5485         * mule-charset.c (Fcharset_name):
5486         * mule-charset.c (Fchar_charset):
5487         * mule-charset.c (Fchar_octet):
5488         * mule-charset.c (Fsplit_char):
5489         * mule-wnnfns.c (Fwnn_open):
5490         * mule-wnnfns.c (Fwnn_dict_comment):
5491         * mule-wnnfns.c (Fwnn_quit_henkan):
5492         * mule-wnnfns.c (Fwnn_word_toroku):
5493         * mule-wnnfns.c (Fwnn_word_sakujo):
5494         * mule-wnnfns.c (Fwnn_word_use):
5495         * mule-wnnfns.c (Fwnn_hindo_set):
5496         * objects.c:
5497         * objects.c (Fmake_color_instance):
5498         * objects.c (Fmake_font_instance):
5499         * print.c (Fwrite_char):
5500         * process.c:
5501         * process.c (mark_process):
5502         * process.c (print_process):
5503         * process.c (get_process_from_usid):
5504         * process.c (Fprocessp):
5505         * process.c (Fprocess_live_p):
5506         * process.c (Fget_process):
5507         * process.c (Fget_buffer_process):
5508         * process.c (get_process):
5509         * process.c (Fprocess_id):
5510         * process.c (Fprocess_name):
5511         * process.c (Fprocess_command):
5512         * process.c (init_process_io_handles):
5513         * process.c (start_process_unwind):
5514         * process.c (Fstart_process_internal):
5515         * process.c (Fopen_multicast_group_internal):
5516         * process.c (Fset_process_window_size):
5517         * process.c (read_process_output):
5518         * process.c (send_process):
5519         * process.c (Fprocess_tty_name):
5520         * process.c (Fset_process_buffer):
5521         * process.c (Fprocess_buffer):
5522         * process.c (Fprocess_mark):
5523         * process.c (set_process_filter):
5524         * process.c (Fset_process_filter):
5525         * process.c (Fprocess_filter):
5526         * process.c (Fprocess_send_region):
5527         * process.c (Fprocess_send_string):
5528         * process.c (exec_sentinel):
5529         * process.c (Fset_process_sentinel):
5530         * process.c (Fprocess_sentinel):
5531         * process.c (status_notify):
5532         * process.c (Fprocess_status):
5533         * process.c (Fprocess_exit_status):
5534         * process.c (process_send_signal):
5535         * process.c (Fprocess_send_eof):
5536         * process.c (deactivate_process):
5537         * process.c (remove_process):
5538         * process.c (Fdelete_process):
5539         * process.c (kill_buffer_processes):
5540         * process.c (Fprocess_kill_without_query):
5541         * process.c (Fprocess_kill_without_query_p):
5542         * rangetab.c:
5543         * rangetab.c (Fget_range_table):
5544         * rangetab.c (Fput_range_table):
5545         * rangetab.c (Fremove_range_table):
5546         * rangetab.c (Fclear_range_table):
5547         * search.c:
5548         * search.c (Fskip_chars_forward):
5549         * search.c (Fskip_chars_backward):
5550         * search.c (Fskip_syntax_forward):
5551         * search.c (Fskip_syntax_backward):
5552         * search.c (search_command):
5553         * search.c (Freplace_match):
5554         * search.c (Fregexp_quote):
5555         * select.c (Fown_selection_internal):
5556         * select.c (Fselection_owner_p):
5557         * select.c (Fselection_exists_p):
5558         * select.c (Fget_selection_internal):
5559         * specifier.c:
5560         * symbols.c:
5561         * symbols.c (Fintern):
5562         * symbols.c (Fintern_soft):
5563         * symbols.c (Funintern):
5564         * symbols.c (Fapropos_internal):
5565         * symbols.c (Fset_default):
5566         * syntax.c:
5567         * syntax.c (Fsyntax_table_p):
5568         * syntax.c (Fcopy_syntax_table):
5569         * syntax.c (Fset_syntax_table):
5570         * syntax.c (Fchar_syntax):
5571         * syntax.c (syntax_match):
5572         * syntax.c (Fmatching_paren):
5573         * syntax.c (Fforward_word):
5574         * syntax.c (scan_lists):
5575         * syntax.c (Fscan_lists):
5576         * syntax.c (Fscan_sexps):
5577         * syntax.c (Fparse_partial_sexp):
5578         * toolbar.c (Fcheck_toolbar_button_syntax):
5579         * tooltalk.doc:
5580         * window.c:
5581         * window.c (Fwindowp):
5582         * window.c (Fwindow_live_p):
5583         * window.c (Fwindow_point):
5584         * window.c (Fdelete_window):
5585         * window.c (Fnext_window):
5586         * window.c (Fprevious_window):
5587         * window.c (Fother_window):
5588         * window.c (window_loop):
5589         * window.c (Fget_lru_window):
5590         * window.c (Fsplit_window):
5591         * window.c (Fenlarge_window):
5592         * window.c (Fenlarge_window_pixels):
5593         * window.c (Fshrink_window):
5594         * window.c (Fshrink_window_pixels):
5595         * window.c (change_window_height):
5596         * window.c (Fwindow_configuration_p):
5597         * window.c (Fcurrent_window_configuration):
5598         * window.h:
5599         * casefiddle.c (casify_object):
5600         * casefiddle.c (Fupcase):
5601         * casefiddle.c (Fdowncase):
5602         * casefiddle.c (Fcapitalize):
5603         * casefiddle.c (Fupcase_initials):
5604         * casefiddle.c (casify_region_internal):
5605         * casefiddle.c (casify_region):
5606         * casefiddle.c (Fupcase_region):
5607         * casefiddle.c (Fdowncase_region):
5608         * casefiddle.c (Fcapitalize_region):
5609         * casefiddle.c (Fupcase_initials_region):
5610         * casefiddle.c (Fupcase_word):
5611         * casefiddle.c (Fdowncase_word):
5612         * casefiddle.c (Fcapitalize_word):
5613         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5614         Replace 0 with '\0' when working with bytes.
5615         Replace initial "(" with "\(" in docstrings.
5616
5617 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5618
5619         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5620
5621         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5622
5623 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5624
5625         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5626
5627 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5628
5629         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5630         correctly.
5631
5632 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5633
5634         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5635         (inhibit_auto_save_session): New variable.
5636         (vars_of_fileio): Declare and initialize them.
5637         * fileio.c (Fdo_auto_save): Don't create session file if
5638         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5639
5640 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5641
5642         * sgiplay.c (play_internal): C++ compilability.
5643         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5644         * callproc.c (Fold_call_process_internal):
5645         Remove unused vars `env', `first'.
5646         * scrollbar.c (update_scrollbar_instance):
5647         #### unused var `current_window'.
5648         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5649         etc. within #ifdef NOT_YET.
5650         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5651         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5652         * specifier.c (specifier_instance):
5653         #### unused var `tag'.
5654         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5655
5656 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5657
5658         * fns.c (Fbutlast):
5659         * fns.c (list_sort):
5660         * fns.c (Ffillarray):
5661         * fns.c (bytecode_nconc2):
5662         * fns.c (Fnconc):
5663         * fns.c (mapcar1):
5664         * fns.c (Fmapconcat):
5665         Be pedantically 64-bit correct.  For the time when someone will
5666         want to have a list with length > 2**32.
5667
5668         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5669         Work around MIPSpro compiler bug.
5670
5671         * process-unix.c (unix_kill_child_process): Add snarky comment.
5672         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5673
5674         * config.h.in: Oops, _getpt ==> _getpty
5675
5676 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5677
5678         * config.h.in:
5679         * regex.c:
5680         Use void*, not char*, as return type of alloca().
5681
5682         * alloc.c (free_marker): Side effect inside assert expression!
5683
5684 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5685
5686         * mule-charset.c (Fset_charset_ccl_program): To check
5687         if the given ccl program is valid, use setup_ccl_program()
5688         instead of CHECK_VECTOR().
5689         (Fmake_charset): Likewise.
5690
5691 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5692
5693         * faces.c (get_extent_fragment_face_cache_index):
5694         Fix cachel.merged_faces memory leak.
5695
5696 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5697
5698         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5699         Reset MSB of octets obtained by DECODE_SJIS
5700         because of the incompatibility with Emacs.
5701         (ccl_driver)<CCL_ENCODE_SJIS>:
5702         Set MSB of octets before passing them to
5703         ENCODE_SJIS because of the incompatibility
5704         with Emacs.
5705
5706 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5707
5708         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5709         (DECLARE_LRECORD): Undo the last change.
5710         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5711
5712 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5713
5714         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5715         the implementation to lrecord_implementations_table.
5716
5717 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5718
5719         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5720         initial value of `lrecord_type_##c_name' and
5721         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5722         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5723         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5724         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5725         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5726
5727 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5728
5729         * miscplay.c (sndcnv8S_2mono):
5730         (sndcnv2monounsigned):
5731         (sndcnvULaw_2linear):
5732         (sndcnv16swap):
5733         Remove implementation-defined behavior.
5734
5735 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5736
5737         * input-method-xlib.c: Warning suppression.
5738
5739 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5740
5741         * mule-ccl.c: Sync up with Emacs 21.0.90.
5742         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5743         Do nothing.
5744         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5745         Likewise.
5746         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5747         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5748         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5749         leading char belongs to official 2-dimensional charset.
5750         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5751         write the given character as is.  Otherwise,
5752         if it is a multibyte char, convert it by
5753         non_ascii_set_charptr_emchar, then write it.
5754         (CCL_WRITE_STRING): Likewise.
5755         (ccl_get_compiled_code): New function.
5756         (setup_ccl_program): When ccl_prog is invalid,
5757         return -1.
5758         (Fregister_code_conversion_map): New function.
5759         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5760
5761         * mule-ccl.h: Sync up with Emacs 21.0.90.
5762         (Fregister_ccl_program): export it.
5763
5764         * redisplay-msw.c (separate_textual_runs):
5765         If ccl program is not valid, don't do ccl conversion.
5766
5767         * redisplay-x.c (separate_textual_runs): Ditto.
5768
5769         * file-coding.c (Fmake_coding_system):
5770         When type is ccl and value is vector, register it
5771         with a proper symbol.  And checks whether the
5772         given ccl program is valid.
5773         (mule_decode): When calling ccl_driver, if src indicates
5774         NULL pointer, set an empty string instead.
5775         (mule_encode): Likewise.
5776
5777 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5778
5779         The following large batch of changes gets us back to a state of
5780         C++ compilability.  Extbyte is now a char, which means that
5781         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5782
5783         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5784
5785         * sound.c (Fplay_sound): Type correctness.
5786
5787         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5788         (x_get_window_property): Type correctness.
5789         (receive_incremental_selection): unsigned char ==> Extbyte
5790         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5791         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5792         (Fx_store_cutbuffer_internal): Type correctness.
5793
5794         * process-unix.c (try_to_initialize_subtty): Type correctness.
5795
5796         * objects-x.c (x_print_color_instance): Type correctness.
5797         (x_print_font_instance): Type correctness.
5798         (x_list_fonts): SExtbyte ==> Extbyte.
5799         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5800         (x_find_charset_font): SExtbyte ==> Extbyte.
5801         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5802         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5803         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5804         Use bufbyte_strcmp.
5805
5806         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5807         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5808         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5809         (BYTE_C0_P): Use bit ops for char-signedness safety.
5810         (BYTE_C1_P): Use bit ops for char-signedness safety.
5811         (CHARSET_BY_LEADING_BYTE):
5812         (CHARSET_BY_ATTRIBUTES):
5813         Always use inline function.
5814         Use type_checking_assert.
5815         Hide chlook.
5816
5817         * mule-charset.c (non_ascii_charptr_copy_char):
5818         Modify to work with both ASCII and non-ASCII characters.
5819         Improve docs and variable names.
5820         Replace over-clever fall-through switch with a simple loop.
5821         (Lstream_get_emchar_1):
5822         Replace over-clever fall-through switch with a simple loop.
5823
5824         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5825         Warning suppression.
5826
5827         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5828         the return value of Lstream_getc, which could be EOF as well.
5829
5830         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5831
5832         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5833         APIs can be used on Extbytes without casts.  Risky!
5834         (SExtbyte): Remove.
5835         (UExtbyte): Remove.
5836
5837         * input-method-xlib.c (XIM_init_device):
5838         Use Xlib.h instead of IntrinsicP.h.
5839         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5840         which will break in X11R7.
5841         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5842         to call XRegisterIMInstantiateCallback with correct types.
5843
5844         * gui-x.c (button_item_to_widget_value): Type correctness.
5845
5846         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5847
5848         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5849         (xbm_instantiate_1): Type correctness.
5850         (BUILD_GLYPH_INST):  Type correctness.
5851
5852         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5853
5854         * file-coding.c:
5855         (decode_coding_sjis):
5856         (decode_coding_big5):
5857         (decode_coding_ucs4):
5858         (decode_coding_utf8):
5859         (decode_coding_iso2022):
5860         (decode_coding_no_conversion):
5861         Make all decoding functions take an Extbyte * arg.
5862         (encode_coding_sjis):
5863         (encode_coding_big5):
5864         (encode_coding_ucs4):
5865         (encode_coding_utf8):
5866         (encode_coding_iso2022):
5867         (encode_coding_no_conversion):
5868         Make all encoding functions take a Bufbyte * arg.
5869         Use size_t instead of unsigned int for memory sizes.
5870         Only cast to unsigned char whenever dereferencing Extbyte *.
5871
5872         * doc.c (unparesseuxify_doc_string): Type correctness.
5873
5874         * console-x.c (split_up_display_spec):
5875         Rewrite without using details of internal string representation.
5876         (x_semi_canonicalize_device_connection): Type correctness.
5877
5878         * config.h.in:
5879         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5880         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5881         (HAVE_XFREE386): Removed.
5882
5883         * buffer.h (DEC_CHARPTR): `const' correctness.
5884         (bufbyte_strcmp): New.
5885         (bufbyte_memcmp): New.
5886
5887         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5888
5889         * buffer.h (XCHAR_OR_CHAR_INT):
5890         Always use inline function.
5891         Remove redundant type checking assert() - XINT will abort quite nicely.
5892
5893 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5894
5895         * search.c (Freplace_match): Set newtext to an empty string.
5896
5897 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5898
5899         * s/decosf1-3.h: Remove #include of stropts.h
5900         * s/ptx.h: Remove #include of stropts.h
5901         * s/usg5-4.h: Remove #include of stropts.h
5902         * sysproc.h:
5903         * config.h.in:
5904         Use stropts.h, not sys/stropts.h.
5905         Use strtio.h, not sys/strtio.h.
5906
5907 2000-10-04  Martin Buchholz <martin@xemacs.org>
5908
5909         * XEmacs 21.2.36 is released.
5910
5911 2000-09-21  Andy Piper  <andy@xemacs.org>
5912
5913         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5914         changes still involve copying the widget tree.
5915         (update_widget_face): make sure a change is register in the widget
5916         tree. Call update_tab_widget_face appropriately.
5917         (update_tab_widget_face): ditto.
5918         (x_tab_control_redisplay): make sure non-structural changes still
5919         involve copying the widget tree.
5920
5921 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5922
5923         * lread.c (locate_file): Check the path element is non-nil.
5924
5925 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5926
5927         * lisp.h: Warning suppression for SCO compilers.
5928
5929         * redisplay-tty.c (reset_tty_modes): Fix crash.
5930         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5931
5932 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5933
5934         Big signal/process handling overhaul.  Bugs fixed:
5935         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5936         M-x comint-kill-subjob should work for both values nil and t of
5937         process-connection-type. It was broken on most platforms.
5938         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5939         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5940         * process-unix.c: Signal/Process handling overhaul.
5941         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5942         (allocate_pty): Use all available modern methods of allocating
5943         ptys, falling back to old style BSD allocation as a last resort.
5944         Use allegedly more secure Unix98 pty allocation by default.
5945         (allocate_pty_the_old_fashioned_way): New. the last resort.
5946         (unix_create_process): Push ptem, ldterm, ttcompat where
5947         available.  Autoconfiscate.
5948         (try_to_initialize_subtty): New.
5949         (unix_kill_child_process): Proper signal handling for ptys on most
5950         platforms, using special knowledge of AIX, BSD, etc...
5951         (unix_create_process): Always disconnect_controlling_terminal() for
5952         subprocesses, whether using ptys or not.
5953         * process.h: Remove old getpt-dependent PTY code.
5954         * process.c (Fprocess_send_signal): New, obvious generic function.
5955         (decode_signal): New.
5956         (Finterrupt_process):
5957         (Fkill_process):
5958         (Fquit_process):
5959         (Fstop_process):
5960         (Fcontinue_process):
5961         (Fsignal_process): Use decode_signal.
5962         (process_send_signal):
5963         Many docstring corrections.
5964         Allow any signal to be sent to a process object.
5965         * config.h.in: Add symbols for big signal/process overhaul.
5966         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5967         * sysproc.h: Include process-related headers, where available:
5968         sys/stropts.h sys/strtio.h pty.h libutil.h
5969         * s/irix4-0.h:
5970         * s/irix5-0.h:
5971         * s/cygwin32.h:
5972         * s/gnu.h:
5973         * s/linux.h:
5974         * s/hpux.h:
5975         * s/aix3-1.h:
5976         Remove old S&M pty stuff.
5977         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5978         * systty.h: Simplify cpp hackery, improve comments.
5979         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5980
5981         * editfns.c (Fformat_time_string):
5982         Be a little more paranoid with the return value of ctime.
5983
5984         * fileio.c (check_executable):
5985         (check_writable):
5986         Use symbolic constants X_OK, W_OK.
5987
5988         * console-x.c (split_up_display_spec): Fix a warning.
5989
5990 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5991
5992         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5993         * ntproc.c (sys_spawnve): make_string ==> build_string
5994         Small clarity improvements.
5995
5996 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5997
5998         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5999
6000         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6001
6002         * config.h.in (HAVE_STRCASECMP): Remove.
6003
6004 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6005
6006         * redisplay-output.c (redisplay_output_pixmap):
6007         Cleaner and possibly more 64-bit correct code.
6008
6009 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6010
6011         * dumper.c (pdump_load_finish): move restoration of
6012         `noninteractive1' to emacs.c (main_1).
6013         * emacs.c (main_1): protect LISP-visible command-line flags
6014         from pdump_load().
6015
6016 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6017
6018         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6019         DUMP_TARGET instead of literal program names.
6020
6021 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6022
6023         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6024
6025 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6026
6027         * *: Spelling mega-patch
6028
6029 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6030
6031         * fns.c (bad_bad_turtle):
6032         Delete "Eek!" comment, since we fixed the bug to which it refers.
6033
6034 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6035
6036         * alloca.c: Replace REGISTER with register.
6037
6038 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6039
6040         * file-coding.c (ucs_to_char): Use countof.
6041
6042 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6043
6044         * file-coding.c: (ucs_to_char):
6045         (complex_vars_of_file_coding):
6046         Use countof instead of sizeof.
6047         Use CHECK_NATNUM instead of CHECK_INT.
6048
6049         * sysdep.c (strcasecmp): Remove.
6050         * device-x.c (ascii_strcasecmp): New.
6051         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6052         Avoid using non-standard non-portable strcasecmp.
6053
6054 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6055
6056         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6057         * font-lock.c: remove reference to emacsfns.h.
6058         * search.c: small doc improvement.
6059         * event-Xt.c: correct file names in comments.
6060         * console-x.h Correct file names in comments.
6061         * frame.c: Correct file names in comments.
6062         * event-stream.c: remove Energize from comments.
6063
6064 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6065
6066         * symeval.h (DEFERROR_STANDARD):
6067         (DEFERROR):
6068         (DEFSYMBOL):
6069         (DEFSYMBOL_NO_DUMP):
6070         (DEFSYMBOL_MULTIWORD_PREDICATE):
6071         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6072         (DEFKEYWORD):
6073         The construct &##name is not sensible C.
6074         Fixes compilation errors with Unixware native compiler.
6075
6076 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6077
6078         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6079         (next_frame_internal): Removed.  We now just have next_frame.
6080         (next_frame):
6081         Write a simpler and cleaner one-pass algorithm.
6082         Remove called_from_delete_device arg and #ifdefed-out code.
6083         (previous_frame):
6084         Renamed from prev_frame.  Update callers.
6085         Cleaned up to have an analogous implementation to next_frame.
6086         (other_visible_frames_internal): Remove the
6087         called_from_delete_device bogus arg, and hence, remove this
6088         function.  Just use other_visible_frames().
6089
6090         * window.c (Fnext_window):
6091         Prettify docstring.
6092         Since next_frame() is guaranteed to return a frame, remove check
6093         for nil inserted in previous patch.
6094         (Fprevious_window):
6095         Prettify docstring.
6096         Make code look more like Fnext_window.
6097         (window_loop):
6098         Respect the `console' arg when iterating through windows.
6099         Fixes bug: (get-buffer-window buffer t device) not respecting
6100         the `device' arg.
6101         This function needs more work, as others have pointed out.
6102
6103         * frame.h: Rename prev_frame to previous_frame.
6104         device_matches_console_spec no longer takes a `frame' arg.
6105
6106         * s/gnu.h:
6107         * s/linux.h:
6108         * s/hpux.h:
6109         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6110         From "Golubev I. N." <gin@mo.msk.ru>.
6111
6112         * make-src-depend: Fix typo.
6113
6114 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6115
6116         * window.c (Fnext_window):
6117         next_frame() might return nil, not a frame.
6118         Fixes this crash:
6119         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6120
6121         * frame.c (next_frame_internal):
6122         We've passed a frame if we've passed its device.
6123         Fixes this crash:
6124         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6125 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6126
6127 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6128
6129         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6130         Allow option to suppress accelerators in menu/dialog items.
6131         (populate_or_checksum_helper): Pass dialog title through above.
6132
6133 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6134
6135         * event-msw.c (mswindows_key_to_emacs_keysym):
6136         Add "pause" key, fix "menu" key.
6137
6138 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6139
6140         * eval.c (reinit_vars_of_eval):
6141         Increase max_lisp_eval_depth to 1000,
6142         required for thai-xtis.el to byte-compile under some circumstances.
6143
6144 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6145
6146         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6147         From Kenichi Handa.
6148
6149 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6150
6151         * make-src-depend: Make the generated Makefiles smaller.
6152
6153         * s/hpux.h (SETUP_SLAVE_PTY):
6154         Provide a %d in the format string for the errno argument.
6155
6156         * editfns.c (Ftemp_directory):
6157         Warning fix.
6158         Avoid buffer overrun on very long file name.
6159
6160         * input-method-xlib.c (XIM_init_device):
6161         6th parameter of XRegisterIMInstantiateCallback has different
6162         pointer types on different OSes, so simply cast to (void *).
6163
6164         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6165
6166         * sysdll.c (dll_open):
6167         shl_load will hang hard if passed a NULL filename.
6168         Simply return NULL for compatibility with dlopen.
6169         * sysdll.c: Conform to XEmacs coding standards.
6170
6171         * sysdep.c (get_pty_max_bytes):
6172         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6173
6174 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6175
6176         * tooltalk.c: Add #include <syssignal.h>
6177
6178 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6179
6180         * s/hpux.h: Don't use undefined function sigunblock().
6181
6182 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6183
6184         * config.h.in: Add HAVE_BALLOON_HELP.
6185         * emacs.c: Use HAVE_BALLOON_HELP.
6186         * Makefile.in.in (x_objs):
6187         Make Balloon Help conditional on finding shape.h.
6188
6189 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6190
6191         * syntax.c (regex_emacs_buffer_p): New variable.
6192         * syntax.h (regex_emacs_buffer_p): extern.
6193         * search.c (looking_at_1):
6194         (string_match_1):
6195         (fast_string_match):
6196         (search_buffer): Set regex_emacs_buffer_p.
6197         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6198         when before_dot, at_dot, after_dot.
6199
6200 2000-08-23  Andy Piper  <andy@xemacs.org>
6201
6202         * gui-x.c (popup_selection_callback): Only set action_occurred
6203         when we really have an image instance.
6204         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6205
6206 2000-08-23  Andy Piper  <andy@xemacs.org>
6207
6208         * gui-msw.c (mswindows_handle_gui_wm_command): set
6209         action_occurred.
6210         * gui-x.c (popup_selection_callback): ditto.
6211
6212         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6213         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6214         (struct Lisp_Image_Instance): add action_occurred flag.
6215
6216         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6217         (image_instance_changed): ditto.
6218         (reset_frame_subwindow_instance_cache): only unmap windows - do
6219         not remove them from the cache also.
6220
6221         * glyphs-widget.c (tab_control_update): better debug.
6222         (progress_gauge_update): ditto.
6223         (layout_update): ditto.
6224         (layout_instantiate): ditto.
6225         (tab_control_order_only_changed): cope with null pending items.
6226
6227         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6228         debug. Force selection of an item when an action occurred. Cope
6229         with null pending_items.
6230         (mswindows_progress_gauge_redisplay): better debug.
6231         * glyphs-x.c (x_tab_control_redisplay): ditto.
6232
6233         * redisplay.c (redisplay_frame): reset the frame cache if the
6234         frame is garbaged.
6235
6236         * window.c (Fset_window_configuration): potentially re-enable
6237         frame cache reset.
6238         (window_unmap_subwindows): need to finalize instances here since
6239         it is only used in mark_window_as_deleted.
6240
6241 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6242
6243         * nas.c (SndOpenDataForReading):
6244         nas.c (WaveOpenDataForReading):
6245         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6246         Somehow escaped from the 2000-08-14 patch.
6247
6248 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6249
6250         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6251         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6252
6253 2000-08-21  Andy Piper  <andy@xemacs.org>
6254
6255         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6256         window if it is not already displayed.
6257
6258         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6259         it is not already displayed.
6260
6261         * window.c (Fset_window_configuration): don't reset the frame
6262         cache.
6263
6264         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6265         instances from the frame cache if we are actually finalizing them.
6266         (reset_frame_subwindow_instance_cache): reset frame cache only
6267         after unmapping everything.
6268         (map_subwindow): set displayed flag after mapping.
6269
6270 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6271
6272         * data.c (indirect_function):
6273         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6274
6275         * eval.c (function_argcount):
6276         Use original function when signaling errors.
6277
6278 2000-08-18  Andy Piper  <andy@xemacs.org>
6279
6280         * frame.c (delete_frame_internal): use new
6281         free_frame_subwindow_instances name.
6282
6283         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6284         (add_tab_item): make return type correct.
6285         (mswindows_tab_control_instantiate): assert index of tab.
6286         (mswindows_tab_control_redisplay): Re-code to use
6287         gui_item_equal_sans_selected and gui_item_list_find_selected.
6288
6289         * glyphs-widget.c (tab_control_update): Correct comment.
6290
6291         * window.c (window_unmap_subwindows): use new
6292         unmap_subwindow_instance_cache_mapper.
6293         (window_unmap_subwindows_cache_mapper): deleted.
6294         (Fset_window_configuration): comparisons should now be with
6295         EQ. Preserve the subwindow instance cache across configuration
6296         changes.
6297         (allocate_window): ditto.
6298         (make_dummy_parent): ditto.
6299
6300         * glyphs.c (free_frame_subwindow_instances): rename from
6301         free_frame_subwindow_instance_cache. finalize all instances rather
6302         than just those in the display cache.
6303         (finalize_all_subwindow_instances): walk windows unmapping and
6304         finalizing subwindows.
6305         (unmap_subwindow_instance_cache_mapper): moved from
6306         window.c. Allow finalization as well as unmapping.
6307
6308         * gui.c (gui_item_list_find_selected): new function.
6309
6310         * gui.h (gui_item_list_find_selected): declare.
6311
6312         * glyphs-x.c (x_tab_control_redisplay): pick tab
6313         explicitly. Re-code to use gui_item_equal_sans_selected and
6314         gui_item_list_find_selected.
6315
6316         * glyphs-x.h: add lwlib-utils.h
6317
6318         * buffer.c (Frecord_buffer): undo previous change.
6319
6320 2000-08-09  Vin Shelton  <acs@xemacs.org>
6321
6322         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6323         possible.  Create temporary files more securely.  The patch was
6324         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6325         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6326         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6327         for details.
6328
6329 2000-08-07  Ben Wing  <ben@xemacs.org>
6330
6331         * getloadavg.c: remove duplicate (and windows-breaking)
6332         includes of fcntl.h and sys/file.h.
6333
6334         * nt.c: remove duplicate getloadavg() definition.
6335
6336         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6337         encodings.
6338
6339 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6340
6341         * eval.c (function_argcount): If function needs to be autoloaded
6342         actually use the loaded definition.
6343         GCPRO function.
6344
6345 2000-08-05  Ben Wing  <ben@xemacs.org>
6346
6347         * getloadavg.c: add prototype for getloadavg().  remove
6348         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6349         of the code).  remove duplicate header includes.
6350
6351         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6352
6353         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6354         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6355         useful load average.
6356
6357         * alloc.c (reinit_alloc_once_early): removed references to
6358         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6359         the lisp vars are the only things referencing the malloc_sbrk_*
6360         vars, and they were already if 0'd out.  these vars only exist
6361         in the older malloc.c, which is basically unused, and they're
6362         only for informational purposes.
6363
6364         * m\*.h: removed useless VIRT_ADDR_VARIES.
6365
6366         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6367
6368 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6369
6370         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6371         color if the image is a mono pixmap.
6372
6373 2000-07-30  Ben Wing  <ben@xemacs.org>
6374
6375         * Makefile.in.in (release):
6376         Remove stray @.
6377
6378         * buffer.c (directory_is_current_directory):
6379         * dired-msw.c (mswindows_get_files):
6380         * dired.c:
6381         * dired.c (Fdirectory_files):
6382         * dired.c (file_name_completion_stat):
6383         * dired.c (Ffile_attributes):
6384         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6385         preprocessor tricks, to avoid problems on some machines
6386         (e.g. SCO).
6387
6388         * callproc.c (egetenv): GC docs.
6389
6390         * console-msw.h:
6391         * console-msw.h (struct mswindows_dialog_id):
6392         * lrecord.h (lrecord_type):
6393         New object for use with MSW dialogs.
6394
6395         * console.h (struct console_methods):
6396         New enable/disable frame methods, for proper modal dialogs.
6397
6398         * device-msw.c (msprinter_default_printer): Fix to follow
6399         proper Mule conventions.
6400
6401         * device-msw.c:
6402         * device-msw.c (signal_open_printer_error):
6403         * device-msw.c (msprinter_init_device):
6404         * device-msw.c (ensure_not_printing):
6405         * device-msw.c (plist_get_margin):
6406         * device-msw.c (Fmsprinter_select_settings):
6407         * device-msw.c (finalize_devmode):
6408         * device-msw.c (Fmsprinter_settings_despecialize):
6409         * device-msw.c (signal_enum_priner_error):
6410         * extents.c (decode_extent):
6411         * extents.c (decode_map_extents_flags):
6412         * extents.c (decode_extent_at_flag):
6413         * extents.c (Fextent_at):
6414         * extents.c (Fextents_at):
6415         * extents.c (symbol_to_glyph_layout):
6416         [[[[2]]]] Use structured errors.
6417
6418         * dialog-msw.c:
6419         * dialog-msw.c (mswindows_is_dialog_msg):
6420         * dialog-msw.c (mark_mswindows_dialog_id):
6421         * dialog-msw.c (dialog_proc):
6422         * dialog-msw.c (handle_question_dialog_box):
6423         * dialog-msw.c (syms_of_dialog_mswindows):
6424         Define new object to clean up marking; use it as a dialog identifier.
6425         Call new delete-dialog-box-hook.
6426
6427         * dialog-x.c (dbox_selection_callback):
6428         * dialog-x.c (dbox_descriptor_to_widget_value):
6429         * dialog-x.c (x_make_dialog_box_internal):
6430         Call new delete-dialog-box-hook.
6431         Return an id.
6432
6433         * dialog.c:
6434         * dialog.c (syms_of_dialog):
6435         * dialog.c (vars_of_dialog):
6436         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6437
6438         * eval.c:
6439         * eval.c (signal_call_debugger):
6440         when noninteractive, output stack traces on the console instead
6441         of in a (never-seen) buffer.
6442
6443         * eval.c (signal_type_error):
6444         * eval.c (invalid_argument_2):
6445         * lisp.h:
6446         new funs for use w/structured errors.
6447
6448         * event-Xt.c:
6449         * event-Xt.c (x_to_emacs_keysym):
6450         * event-Xt.c (describe_event):
6451         * event-Xt.c (emacs_Xt_event_handler):
6452         * event-Xt.c (vars_of_event_Xt):
6453         * event-msw.c:
6454         * event-msw.c (mswindows_wnd_proc):
6455         * event-msw.c (vars_of_event_mswindows):
6456         rename {x,mswindows}-debug-events to debug-{}-events for
6457         consistency with other debug-foo variables.
6458
6459         * event-stream.c:
6460         document next-event more clearly.
6461
6462         * fileio.c (Ffile_name_directory):
6463         * fileio.c (Ffile_name_nondirectory):
6464         * fileio.c (Funhandled_file_name_directory):
6465         * fileio.c (file_name_as_directory):
6466         * fileio.c (Ffile_name_as_directory):
6467         * fileio.c (directory_file_name):
6468         * fileio.c (Fdirectory_file_name):
6469         * fileio.c (Fmake_temp_name):
6470         * fileio.c (Ffile_truename):
6471         * fileio.c (Fsubstitute_in_file_name):
6472         * fileio.c (expand_and_dir_to_file):
6473         * fileio.c (barf_or_query_if_file_exists):
6474         * fileio.c (check_executable):
6475         * fileio.c (Ffile_exists_p):
6476         * fileio.c (Ffile_writable_p):
6477         * fileio.c (Ffile_directory_p):
6478         * fileio.c (Ffile_regular_p):
6479         * fileio.c (Ffile_modes):
6480         * fileio.c (Ffile_newer_than_file_p):
6481         * fileio.c (Fverify_visited_file_modtime):
6482         * fileio.c (Fset_visited_file_modtime):
6483         * fileio.c (auto_save_1):
6484         (1). (2).
6485         fix up gcpro's.
6486
6487         * frame-msw.c:
6488         * frame-msw.c (mswindows_init_frame_1):
6489         * frame-msw.c (mswindows_enable_frame):
6490         * frame-msw.c (error_frame_unsizable):
6491         * frame-msw.c (msprinter_init_frame_1):
6492         * frame-msw.c (msprinter_init_frame_3):
6493         * frame-msw.c (console_type_create_frame_mswindows):
6494         (2).
6495         implement new enable/disable frame methods.
6496
6497         * frame-x.c:
6498         * frame-x.c (x_enable_frame):
6499         * frame-x.c (console_type_create_frame_x):
6500         implement new enable/disable frame methods.
6501
6502         * frame.c:
6503         * frame.c (Fdisable_frame):
6504         * frame.c (syms_of_frame):
6505         * frame.h (struct frame):
6506         implement new enable/disable frame methods/functions.
6507
6508         * general-slots.h:
6509         add initial-focus.
6510
6511         * glyphs-msw.c (mswindows_widget_instantiate):
6512         comment that initial-focus should be implemented.
6513
6514         * glyphs-widget.c:
6515         * glyphs-widget.c (check_valid_instantiator):
6516         * glyphs-widget.c (check_valid_orientation):
6517         * glyphs-widget.c (check_valid_tab_orientation):
6518         * glyphs-widget.c (check_valid_justification):
6519         * glyphs-widget.c (check_valid_border):
6520         * glyphs-widget.c (check_valid_callback):
6521         * glyphs-widget.c (check_valid_int_or_function):
6522         * glyphs-widget.c (check_valid_string_or_vector):
6523         * glyphs-widget.c (check_valid_item_list_1):
6524         * glyphs-widget.c (widget_validate):
6525         * glyphs-widget.c (combo_box_validate):
6526         * glyphs-widget.c (widget_instantiate):
6527         * glyphs-widget.c (syms_of_glyphs_widget):
6528         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6529         * glyphs-widget.c (image_instantiator_combo_box):
6530         * glyphs-widget.c (image_instantiator_scrollbar):
6531         * glyphs-widget.c (image_instantiator_tab_control):
6532         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6533         (2).
6534         support (unimplemented) keyword initial-focus.
6535         reindent long macros.
6536
6537         * glyphs-x.c (x_redisplay_widget):
6538         * glyphs-x.c (x_button_instantiate):
6539         * glyphs-x.c (x_button_redisplay):
6540         * glyphs-x.c (x_progress_gauge_instantiate):
6541         * glyphs-x.c (x_edit_field_instantiate):
6542         * glyphs-x.c (x_combo_box_instantiate):
6543         * glyphs-x.c (x_tab_control_instantiate):
6544         * glyphs-x.c (x_label_instantiate):
6545         * gui-x.c:
6546         * gui-x.c (button_item_to_widget_value):
6547         * gui-x.c (gui_items_to_widget_values_1):
6548         * gui-x.c (gui_item_children_to_widget_values):
6549         * gui-x.c (gui_items_to_widget_values):
6550         * gui-x.h:
6551         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6552         add new flag to gui-parsing routines to indicate whether
6553         accelerator specs should be supported.
6554
6555         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6556
6557         * glyphs.h (struct Lisp_Image_Instance):
6558         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6559         add initial-focus flag.
6560
6561         * gui.c:
6562         * gui.c (syms_of_gui):
6563         * gui.c (vars_of_gui):
6564         clean up menu-no-selection-hook.
6565
6566         * gui.h:
6567         support delete-dialog-box-hook.
6568
6569         * lread.c (Fload_internal):
6570         * lread.c (locate_file_in_directory_mapper):
6571         (1).
6572
6573         * lrecord.h:
6574         * lrecord.h (struct toolbar_button):
6575         * lrecord.h (syms_of_toolbar):
6576         document how to create a new object.
6577
6578         * menubar-msw.c (mswindows_char_is_accelerator):
6579         may be called on frames w/o menus.
6580
6581         * menubar.c (vars_of_menubar):
6582         clean up :filter docs.
6583
6584         * nt.c (readdir):
6585         * ntproc.c:
6586         (1).
6587
6588         * process-nt.c:
6589         * process-nt.c (validate_signal_number):
6590         * process-nt.c (signal_cannot_launch):
6591         * process-nt.c (nt_create_process):
6592         * process-nt.c (nt_send_process):
6593         * process-nt.c (nt_kill_child_process):
6594         * process-nt.c (nt_open_network_stream):
6595         * process-nt.c (syms_of_process_nt):
6596         (2).
6597         delete quote-handling.  call new lisp code that does it better.
6598
6599         * process-unix.c (connect_to_file_descriptor):
6600         * process-unix.c (allocate_pty):
6601         * process-unix.c (unix_send_process):
6602         * process-unix.c (unix_kill_child_process):
6603         * process-unix.c (unix_open_network_stream):
6604         * process-unix.c (unix_open_multicast_group):
6605         (1). (2).
6606
6607         * process.c:
6608         * process.c (Fstart_process_internal):
6609         (2).  need to canonicalize process path even if absolute.
6610
6611         * select-msw.c (symbol_to_ms_cf):
6612         * select-msw.c (ms_cf_to_symbol):
6613         * select-msw.c (cf_is_autofreed):
6614         * select-msw.c (mswindows_destroy_selection):
6615         * select.c:
6616         * select.c (syms_of_select):
6617         * select.h:
6618         support dibv5, fix bugs. (from Mike Alexander)
6619
6620         * select.c (Fget_selection_internal):
6621         * select.c (select_convert_out):
6622
6623         * sysdep.c:
6624         * sysdep.c (xemacs_stat):
6625         renamed.
6626
6627         * sysdep.c (mkdir):
6628         * sysdep.c (rmdir):
6629         but keep original stat() here because we provide encapsulation
6630         around these funs.
6631
6632         * sysfile.h:
6633         * sysfile.h (fstat):
6634         remove stat garbage.
6635
6636         * syswindows.h:
6637         fix X/MSW conflict.
6638         don't include tchar.h.  it's inappropriate because it makes
6639         compile-time distinctions when we want runtime distinctions.
6640         (we provide our own tchar replacements)
6641
6642         * toolbar.c:
6643         use default object printer for toolbar-button.
6644
6645         * unexcw.c:
6646         make sure we don't encapsulate.
6647
6648         * window.c (vars_of_window):
6649         emphasize that temp-buffer-show-hook is obsolete.
6650
6651 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6652
6653         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6654         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6655
6656         * events.c (Fevent_timestamp_lessp):
6657         Not 64-bit clean.  Use EMACS_INT, not int.
6658
6659 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6660
6661         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6662         unsigned int and changed the last enum to
6663         lrecord_type_last_built_in_type.
6664         (lrecord_implementations_table): changed prototype to know how
6665         long the array is supposed to be.
6666         (lrecord_type_count): new unsigned int to keep track of the
6667         current number of lisp lrecord types.
6668         (DEFINE_EXTERNAL_LRECORD):
6669         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6670         dynamic-modules to declare new lisp types. They are the same
6671         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6672         int for each new type, and increment lrecord_type_count by 1.
6673
6674         * alloc.c (lrecord_implementations_table): Changed to reference
6675         lrecord_type_last_built_in_type for the size of the array.
6676         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6677
6678 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6679
6680         * glyphs.h (check_valid_item_list): Renamed from
6681         check_valid_item_list_1.
6682
6683 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6684
6685         * select.c (Qselect_coerce): New.
6686         * select.c (Vselection_coercion_alist): New.
6687         * select.c (syms_of_select): Declare.
6688         * select.c (get-selection-internal): Use it.
6689         Use the new select-coerce functionality.
6690
6691         * select.c (select_coerce): New.
6692         * select.h (select_coerce): Declare.
6693         New function to coerce one type of data into another.
6694
6695 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6696
6697         * callproc.c (Fcall_process_internal):
6698         (Fcall_process_internal):
6699         * process-unix.c (unix_create_process):
6700         Save and restore the value of errno, so that error messages are accurate.
6701
6702 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6703
6704         * elhash.c (print_hash_table):
6705         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6706         Prettify docstrings and indentation.
6707
6708 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6709
6710         * window.c (Fwindow_pixel_edges): Subtract frame border and
6711         gutter size.
6712
6713 2000-07-31  Andy Piper  <andy@xemacs.org>
6714
6715         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6716         will acknowledge the change.
6717
6718         * glyphs.h: declare tab_control_order_only_changed.
6719
6720         * glyphs-x.c (x_tab_control_redisplay): use
6721         tab_control_order_only_changed.
6722
6723         * glyphs-widget.c (tab_control_order_only_changed): new function.
6724
6725         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6726         tab_control_order_only_changed.
6727
6728         * gui.c (gui_item_equal_sans_selected): new function.
6729         (gui_item_equal): use it.
6730
6731         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6732         :properties in favor of :items..
6733
6734         * glyphs-widget.c (check_valid_item_list): rename from
6735         check_valid_item_list_1.
6736         (check_valid_item_list_1): renamed.
6737         (combo_box_validate): deprecate :properties in favor of :items.
6738         (widget_instantiate): ditto.
6739         (tab_control_update): ditto.
6740         (image_instantiator_combo_box): ditto.
6741         (image_instantiator_tree_view): ditto.
6742         (image_instantiator_tab_control): ditto.
6743         (layout_post_instantiate): remove dead code.
6744
6745         * print.c (debug_print_no_newline): only write to debugger if in
6746         WIN32_NATIVE.
6747
6748         * elhash.c (Fmake_hash_table): update doc string.
6749
6750         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6751         messages whilst in GC. This at least stops XEmacs crashing but has
6752         the potential for wierd behaviour.
6753
6754 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6755
6756         * config.h.in:
6757         Make existence of s&m files optional.
6758
6759         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6760         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6761         * s/gnu.h: Remove HAVE_GETLOADAVG.
6762         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6763         * s/sol2.h: Remove HAVE_GETLOADAVG.
6764         * lisp.h: Remove getloadavg() declaration.
6765         * fns.c:
6766         Include <sys/loadavg.h> if available.
6767         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6768         * config.h.in:  Group together getloadavg()-related macros.
6769         Use only configure-time tests to detect getloadavg().
6770
6771 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6772
6773         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6774
6775 2000-07-25  Andy Piper  <andy@xemacs.org>
6776
6777         * syswindows.h: add tchar.h for native builds.
6778
6779         * frame.c (syms_of_frame): remove set-glyph-image.
6780
6781         * general-slots.h: add Qset_glyph_image.
6782
6783         * glyphs-widget.c (layout_update): add domain arg to
6784         set-glyph-image.
6785         (syms_of_glyphs_widget): remove set-glyph-image.
6786
6787 2000-07-23  Ben Wing  <ben@xemacs.org>
6788
6789         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6790         Vpopup_frame_list.
6791
6792 2000-07-22  Andy Piper  <andy@xemacs.org>
6793
6794         * symsinit.h: add syms_of_win32().
6795
6796         * gui-msw.c (syms_of_gui_mswindows): remove
6797         Fmswindows_shell_execute.
6798         (Fmswindows_shell_execute): moved to win32.c.
6799
6800         * emacs.c (main_1): add syms_of_win32 ().
6801
6802         * win32.c (init_potentially_nonexistent_functions): rewrite in
6803         compiler-friendly terms.
6804         (Fmswindows_shell_execute): move here from gui-msw.c.
6805         (syms_of_win32): new.
6806
6807         * device-msw.c (Fmswindows_printer_list): clean up args to
6808         EnumPrinters.
6809         Don't include tchar under cygwin or mingw.
6810         (msprinter_default_printer): make cygwin-friendly.
6811
6812 2000-07-21  Andy Piper  <andy@xemacs.org>
6813
6814         * glyphs-widget.c (image_instantiator_tree_view): use tab
6815         control's update function.
6816         (layout_property): new function. Retrieve items.
6817
6818         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6819         function. Re-populate the tree view from the pending items.
6820
6821         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6822         is designated the parent if the domain is an image instance. This
6823         is needed so that dirtiness can be cascade up the hierarchy and
6824         thus for layout children to be redisplayed correctly.
6825         (allocate_image_instance): rename glyph -> parent.
6826
6827         * redisplay.h: change redisplay_output_layout signature.
6828
6829         * redisplay-msw.c (mswindows_output_display_block): use domain
6830         arg.
6831
6832         * redisplay-x.c (x_output_display_block): use domain arg.
6833
6834 2000-07-10  Andy Piper  <andy@xemacs.org>
6835
6836         * window.c (Fset_window_configuration): add comment.
6837
6838         * redisplay-output.c (compare_runes):
6839         (redisplay_output_subwindow): redisplay rather than update subwindow.
6840         (redisplay_output_layout): ditto.
6841
6842         * redisplay-msw.c (mswindows_frame_output_end):
6843         (mswindows_frame_output_end): make defer window pos optional.
6844
6845         * lisp.h: add Flast.
6846
6847         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6848         normalize method. Change update method to be for changed
6849         instantiators. Add redisplay method. Change signature of layout
6850         method.
6851         (struct Lisp_Image_Instance): add instantiator.
6852         (IMAGE_INSTANCE_INSTANTIATOR): new.
6853         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6854         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6855         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6856
6857         * glyphs.c:
6858         (find_instantiator_differences): new function.
6859         (Fset_instantiator_property): new convenience function.
6860         (check_image_instance_structure): strictly check for vector
6861         instantiators.
6862         (normalize_image_instantiator): make non-static.
6863         (instantiate_image_instantiator): pass on dest_mask and use new
6864         signatures for image_instance_layout and friends.
6865         (mark_image_instance): mark the instantiator. Mark the subwindow
6866         face not the widget face.
6867         (image_instance_equal): add instantiator.
6868         (image_instance_hash): ditto.
6869         (allocate_image_instance): ditto.
6870         (Fset_image_instance_property): removed.
6871         (Fimage_instance_file_name): ditto.
6872         (Fcolorize_image_instance): ditto.
6873         (image_instance_layout): add offsets to be set.
6874         (update_image_instance): new function. update an image instance
6875         from its changed instantiator.
6876         (inherit_normalize): add dest_mask.
6877         (xbm_normalize): ditto.
6878         (xface_normalize): ditto.
6879         (xpm_normalize): ditto.
6880         (text_update): set_property -> update.
6881         (image_instantiate): use the glyph identity as a hash key, not the
6882         instantiator.
6883         (glyph_width): use new image_instance_layout signature.
6884         (glyph_ascent): ditto.
6885         (glyph_descent): ditto.
6886         (glyph_height): ditto.
6887         (glyph_query_geometry): ressurrect.
6888         (glyph_layout): ditto.
6889         (redisplay_subwindow): update -> redisplay.
6890         (syms_of_glyphs): add Fset_instantiator_property.
6891         (image_instantiator_format_create): set_property -> update.
6892
6893         * glyphs-x.c:
6894         (autodetect_normalize): add dest_maks to signature.
6895         (x_redisplay_subwindow): update -> redisplay.
6896         (x_redisplay_widget): ditto.
6897         (x_button_redisplay): ditto.
6898         (x_progress_gauge_redisplay): ditto.
6899         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6900         stacking order.
6901         (console_type_create_glyphs_x): update -> redisplay.
6902         (image_instantiator_format_create_glyphs_x): ditto.
6903
6904         * glyphs-widget.c:
6905         (check_valid_instantiator): disallow glyphs in the instantiator,
6906         they must now be vectors.
6907         (check_valid_instantiator_list): ditto.
6908         (glyph_instantiator_to_glyph): use internal symbol rather than
6909         intern.
6910         (widget_update): renamed from widget_set_property. Call cascaded
6911         update methods.
6912         (redisplay_widget): renamed from update_widget.
6913         (widget_layout): image_instance_layout now takes position as well
6914         as size.
6915         (widget_normalize): ditto.
6916         (widget_instantiate): ditto.
6917         (tab_control_query_geometry) ditto.:
6918         (tab_control_update): renamed from tab_control_set_property.
6919         (progress_gauge_update): set_property -> update.
6920         (layout_normalize): rewrite so that child instantiators are
6921         normalized also.
6922         (layout_update): new function. Create glyphs from the normalized
6923         children and cope with any other layout keywords. We do not
6924         instantiate children here that will be take care of by
6925         redisplay_output_layout.
6926         (layout_instantiate): call layout_update and not much else.
6927         (layout_post_instantiate): not sure whether this is needed
6928         anymore.
6929         (layout_query_geometry): query glyph geometry rather than
6930         image_instance geometry.
6931         (layout_layout): set offsets from pass in parameters. Use glyph
6932         geometry and layout functions rather than image instance ones.
6933         (native_layout_layout): ditto.
6934         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6935         (image_instantiator_widget): set_property -> update.
6936         (image_instantiator_buttons): ditto.
6937         (image_instantiator_progress_guage): ditto.
6938         (image_instantiator_tab_control): ditto.
6939         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6940         (image_instantiator_layout): add update method.
6941
6942         * glyphs-msw.c (bmp_normalize):
6943         (mswindows_resource_normalize): add dest_mask so that it can be
6944         proprogated by layout_normalize.
6945         (begin_defer_window_pos): make optional because it may not be the
6946         right thing to do and it introduces differences with X.
6947         (mswindows_unmap_subwindow): ditto.
6948         (mswindows_map_subwindow): ditto.
6949         (mswindows_redisplay_subwindow): renamed from
6950         mswindows_update_subwindow.
6951         (mswindows_redisplay_widget): ditto.
6952         (mswindows_button_redisplay): renamed from
6953         mswindows_button_update. Update is now what the instantiation
6954         function does for a changed instantiator.
6955         (mswindows_progress_gauge_instantiate): set the progress value
6956         here if appropriate.
6957         (mswindows_tab_control_redisplay): cope with re-ordering of the
6958         members of the tab widget by simply selecting the new top
6959         widget. This makes things appear ok if you click on a tab.
6960         (mswindows_combo_box_instantiate): image_instance_layout now takes
6961         position as well as size.
6962         (mswindows_progress_gauge_redisplay): renamed from
6963         mswindows_progress_gauge_update.
6964         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6965         (image_instantiator_format_create_glyphs_mswindows): ditto.
6966
6967         * glyphs-eimage.c (jpeg_normalize):
6968         (gif_normalize):
6969         (png_normalize):
6970         (tiff_normalize): add dest_mask so that it can be proprogated by
6971         layout_normalize.
6972
6973         * elhash.c:
6974         (print_hash_table):
6975         (hash_table_weakness_validate):
6976         (decode_hash_table_weakness):
6977         (Fhash_table_weakness):
6978         (Fhash_table_type):
6979         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6980
6981         * console.h (struct console_methods): move update_* to
6982         redisplay_*.
6983
6984 2000-07-20  Ben Wing  <ben@xemacs.org>
6985
6986         * *.[ch] (XSETOBJ): remove unused middle argument.
6987         lisp-disunion.h: correct wrap_object() to one argument.
6988
6989 2000-07-15  Ben Wing  <ben@xemacs.org>
6990
6991         * s/cygwin32.h:
6992         * s/cygwin32.h (CYGWIN_CONV_PATH):
6993         Add missing logb prototype for v1.1.
6994         Use post-b20 names and alias to pre-b20 names when pre-b20.
6995
6996         * s/windowsnt.h: [5].
6997
6998 2000-07-15  Ben Wing  <ben@xemacs.org>
6999
7000         * Makefile.in.in (x_objs):
7001         * Makefile.in.in (sheap_objs):
7002         * Makefile.in.in (objs):
7003         added win32.o, cosmetic cleanups.
7004
7005         * alloc.c (Fmake_byte_code):
7006         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7007         etc. macros which declare their own args now.
7008
7009         * alloc.c (syms_of_alloc):
7010         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7011
7012         * buffer.c:
7013         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7014
7015         * buffer.c (Fget_file_buffer):
7016         Fixed GCPRO problem.
7017
7018         * buffer.c (get_truename_buffer):
7019         Fixed comment about GC checking.
7020
7021         * buffer.c (syms_of_buffer):
7022         Undeclared those dedicated frame funs.
7023         [2].
7024
7025         * buffer.h:
7026         Define convenience macros for internal/external conversions.
7027         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7028         and Qenvironment_variable_encoding for cleaner code.
7029
7030         * bufslots.h:
7031         Remove dedicated-frame; in lisp.
7032
7033         * bytecode.c (funcall_compiled_function):
7034         [1].
7035
7036         * bytecode.c (syms_of_bytecode):
7037         [2].
7038
7039         * console-msw.c:
7040         * console-msw.c (mswindows_show_console): Rewrote.
7041
7042         * console-msw.c (Fmswindows_debugging_output): New.
7043         Sends to OutputDebugString (special MSWin debugger interface).
7044
7045         * console-msw.c (Fmswindows_message_box):
7046         Fixed stupid bugs so it works when called from kill-emacs.
7047
7048         * console-msw.c (syms_of_console_mswindows):
7049         Declare Fmswindows_debugging_output.
7050
7051         * console-msw.h:
7052         New MSWin prototypes.
7053
7054         * console-msw.h (struct mswindows_frame):
7055         New entry last-click-mods for improved button-modifier support.
7056
7057         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7058         New struct entry `popup' with corresponding accessor.
7059
7060         * console-x.c:
7061         * console-x.c (split_up_display_spec):
7062         * console-x.c (get_display_arg_connection):
7063         * console-x.c (x_semi_canonicalize_console_connection):
7064         * console-x.c (x_canonicalize_device_connection):
7065         [[[6]]]: Change char to more specific type.
7066         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7067
7068         * console-x.c (x_semi_canonicalize_console_connection):
7069         * console-x.c (x_canonicalize_device_connection):
7070         [[[9]]]: Fix up error signalling to use new structured error system.
7071
7072         * console-x.h:
7073         [[[4]]]: Define codesys aliases:
7074         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7075         Qx_color_name_encoding, Qx_display_name_encoding.
7076
7077         * console.h (struct console_methods):
7078         New method make_dialog_box_internal supersedes older
7079         popup_dialog_box method.
7080
7081         * data.c:
7082         Define many new errors, part of new structured errors.
7083
7084         * data.c (init_errors_once_early):
7085         * data.c (syms_of_data):
7086         [2].
7087
7088         * device-msw.c (mswindows_init_device):
7089         [[[5]]]: Cleanup to support NT 3.51.
7090
7091         * device-msw.c (decode_devmode): Cleanup.
7092
7093         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7094         * device-msw.c (mswindows_handle_print_dialog_box):
7095         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7096         * device-msw.c (syms_of_device_mswindows):
7097         Delete the dialog box primitives recently introduced by Kirill and
7098         instead interface to general dialog box interface.
7099
7100         * device-x.c:
7101         * device-x.c (compute_x_app_name):
7102         * device-x.c (x_init_device):
7103         * device-x.c (Fx_valid_keysym_name_p):
7104         * device-x.c (Fx_set_font_path):
7105         [6].
7106         [7].
7107
7108         * device.h (wrap_device): New.
7109         First of its kind; meant to replace XSETDEVICE.
7110
7111         * dialog-msw.c: Many file-dialog symbols.
7112
7113         * dialog-msw.c (mswindows_register_popup_frame): New.
7114         * dialog-msw.c (mswindows_is_dialog_msg): New.
7115         For supporting kbd traversal in dialog boxes.
7116
7117         * dialog-msw.c (dialog_proc):
7118         Support hitting ESC in dialogs.
7119
7120         * dialog-msw.c (struct):
7121         Common dialog box errors.
7122
7123         * dialog-msw.c (handle_file_dialog_box): New.
7124         Add file dialog code.
7125
7126         * dialog-msw.c (handle_question_dialog_box):
7127         Redo existing code to support new question dialog syntax.
7128
7129         * dialog-msw.c (console_type_create_dialog_mswindows):
7130         We support new dialog console method.
7131
7132         * dialog-msw.c (syms_of_dialog_mswindows):
7133         * dialog-msw.c (vars_of_dialog_mswindows):
7134         New file dialog symbols, vars.
7135
7136         * dialog-x.c:
7137         * dialog-x.c (maybe_run_dbox_text_callback):
7138         * dialog-x.c (dbox_descriptor_to_widget_value):
7139         * dialog-x.c (x_make_dialog_box_internal):
7140         * dialog-x.c (console_type_create_dialog_x):
7141         Mule-ize entire file.
7142         Redo to support question dialog syntax.
7143         [6].
7144
7145         * dialog.c:
7146         * dialog.c (Fmake_dialog_box_internal):
7147         * dialog.c (syms_of_dialog):
7148         Kill old popup-dialog-box, replace with new primitive.
7149         Just call device method or signal error.
7150
7151         * eldap.c (Fldap_open):
7152         * eldap.c (Fldap_search_basic):
7153         * eldap.c (Fldap_add):
7154         * eldap.c (Fldap_modify):
7155         [1].
7156         [7].
7157
7158         * emacs.c:
7159         * emacs.c (make_arg_list_1):
7160         * emacs.c (make_arg_list):
7161         Mule-ize call to dll_init().
7162         [6].
7163         [8].
7164
7165         * emacs.c (make_argc_argv):
7166         * emacs.c (free_argc_argv):
7167         * emacs.c (init_cmdargs):
7168         * emacs.c (main_1):
7169         * emacs.c (Fkill_emacs):
7170         * emacs.c (Fdump_emacs):
7171         Update comments about what can be used in syms_* etc.
7172         Call init_win32() when necessary.
7173         Fix up MS Win dialog box in kill-buffer to actually work right.
7174         [7].
7175
7176         * eval.c:
7177         * eval.c (For):
7178         * eval.c (Fand):
7179         * eval.c (Fprogn):
7180         * eval.c (Fprog1):
7181         * eval.c (Fprog2):
7182         * eval.c (FletX):
7183         * eval.c (Flet):
7184         * eval.c (condition_case_3):
7185         * eval.c (Feval):
7186         * eval.c (function_argcount):
7187         * eval.c (funcall_lambda):
7188         [1].
7189
7190         * eval.c (type_error): New.
7191         * eval.c (maybe_type_error): New.
7192         * eval.c (continuable_type_error): New.
7193         * eval.c (maybe_continuable_type_error): New.
7194         * eval.c (type_error_with_frob): New.
7195         * eval.c (maybe_type_error_with_frob): New.
7196         * eval.c (continuable_type_error_with_frob): New.
7197         * eval.c (maybe_continuable_type_error_with_frob): New.
7198         New functions for use with structured errors.
7199
7200         * event-Xt.c:
7201         * event-Xt.c (x_event_to_emacs_event):
7202         Buttons are now modifiers too.
7203
7204         * event-Xt.c (emacs_Xt_current_event_timestamp):
7205         Implement new event method.
7206         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7207
7208         * event-msw.c:
7209         * event-msw.c (ntpipe_shove_writer): [5].
7210         * event-msw.c (mswindows_enqueue_mouse_button_event):
7211         * event-msw.c (mswindows_drain_windows_queue):
7212         * event-msw.c (mswindows_wnd_proc): [7].
7213         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7214         * event-msw.c (mswindows_modifier_state):
7215         Throughout: support new button modifiers.
7216
7217         * event-msw.c (emacs_mswindows_current_event_timestamp):
7218         Implement new event method.
7219         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7220
7221         * event-stream.c:
7222         * event-stream.c (event_stream_current_event_timestamp): New.
7223         * event-stream.c (maybe_kbd_translate): New functionality.
7224         * event-stream.c (vars_of_event_stream):
7225         Document new kbd-translate-table functionality.
7226
7227         * event-stream.c (Fcurrent_event_timestamp): New.
7228         New primitive for use in fabricated events.
7229         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7230
7231         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7232
7233         * events.c:
7234         * events.c (Fmake_event):
7235         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7236         [1].
7237         [9].
7238
7239         * events.c (format_event_object): fix gcc warnings.
7240
7241         * events.c (Fevent_timestamp): Document new primitives.
7242
7243         * events.c (TIMESTAMP_HALFSPACE): New.
7244
7245         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7246         comparing timestamps correctly (half-space algorithm).
7247
7248         * events.c (Fevent_modifier_bits): Doc fix.
7249
7250         * events.c (Fevent_modifiers): Major doc addition.
7251         * events.c (event_x_y_pixel_internal): Typo fix.
7252         * events.c (syms_of_events): Declare new primitives.
7253
7254         * events.h:
7255         Update long comment for button modifiers, timestamps.
7256
7257         * events.h (struct event_stream):
7258         New current_event_timestamp method.
7259
7260         * extents.c:
7261         * extents.c (extent_in_region_p):
7262         * extents.c (decode_extent):
7263         * extents.c (Fset_extent_parent):
7264         * extents.c (decode_map_extents_flags):
7265         Fix gcc warnings.
7266         [9].
7267
7268         * extents.c (struct extent_at_arg):
7269         * extents.c (decode_extent_at_flag):
7270         * extents.c (extent_at_mapper):
7271         * extents.c (extent_at_bytind):
7272         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7273         * extents.c (Fextents_at): New primitive. [9].
7274         * extents.c (symbol_to_glyph_layout): [9].
7275         Support new primitive `extents-at'.
7276
7277
7278         * extents.c (get_text_property_bytind):
7279         extent_at_bytind has another arg.
7280         [9].
7281
7282         * extents.c (syms_of_extents): New primitive.
7283
7284         * file-coding.c (Fmake_coding_system): [1].
7285         * file-coding.c (subsidiary_coding_system): fix gcc warning
7286         * file-coding.c (syms_of_file_coding): [2].
7287
7288         * fileio.c (Fexpand_file_name):
7289         * fileio.c (Fsysnetunam):
7290         * fileio.c (Ffile_exists_p):
7291         * fileio.c (Ffile_executable_p):
7292         * fileio.c (Fverify_visited_file_modtime):
7293         Clean up GCPROing.
7294
7295         * fileio.c (syms_of_fileio): [2].
7296
7297         * filelock.c (lock_file_1):
7298         * filelock.c (current_lock_owner):
7299         * filelock.c (lock_if_free):
7300         * filelock.c (lock_file):
7301         * filelock.c (unlock_file):
7302         Clean up GCPROing.
7303
7304         * fns.c (concat): Fix gcc warning.
7305
7306         * fns.c (Fmember):
7307         * fns.c (Fold_member):
7308         * fns.c (Fmemq):
7309         * fns.c (Fold_memq):
7310         * fns.c (memq_no_quit):
7311         * fns.c (Fassoc):
7312         * fns.c (Fold_assoc):
7313         * fns.c (Fassq):
7314         * fns.c (Fold_assq):
7315         * fns.c (assq_no_quit):
7316         * fns.c (Frassoc):
7317         * fns.c (Fold_rassoc):
7318         * fns.c (Frassq):
7319         * fns.c (Fold_rassq):
7320         * fns.c (rassq_no_quit):
7321         * fns.c (Fdelete):
7322         * fns.c (Fold_delete):
7323         * fns.c (Fdelq):
7324         * fns.c (Fold_delq):
7325         * fns.c (delq_no_quit):
7326         * fns.c (Fremassoc):
7327         * fns.c (Fremassq):
7328         * fns.c (remassq_no_quit):
7329         * fns.c (Fremrassoc):
7330         * fns.c (Fremrassq):
7331         * fns.c (remrassq_no_quit):
7332         * fns.c (Freverse):
7333         * fns.c (mapcar1):
7334         [1].
7335
7336         * frame-msw.c (mswindows_init_frame_1):
7337         * frame-msw.c (mswindows_delete_frame):
7338         Register popups with dialog code so keyboard traversing works.
7339
7340         * frame-tty.c (tty_raise_frame_no_select): [1].
7341
7342         * frame-x.c:
7343         * frame-x.c (x_set_frame_text_value):
7344         * frame-x.c (x_set_frame_properties):
7345         * frame-x.c (x_create_widgets):
7346         [7].
7347
7348         * frame.c:
7349         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7350
7351         * frame.h (wrap_frame): New.
7352         Macro like wrap_device.
7353
7354         * general.c:
7355         * general.c (SYMBOL):
7356         * general.c (syms_of_general):
7357         Major reorg.  This is now just a wrapper and symbols themselves
7358         are listed in general-slots.h.
7359
7360         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7361         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7362
7363         * glyphs-msw.c (mswindows_native_layout_instantiate):
7364         Add DS_CONTROL so keyboard traversal will work.
7365
7366         * glyphs-widget.c:
7367         * glyphs-widget.c (syms_of_glyphs_widget):
7368         Move some symbols to general-slots.h.
7369
7370         * glyphs-x.c:
7371         * glyphs-x.c (xbm_instantiate_1):
7372         * glyphs-x.c (x_xbm_instantiate):
7373         * glyphs-x.c (x_xface_instantiate):
7374         * glyphs-x.c (autodetect_instantiate):
7375         * glyphs-x.c (cursor_font_instantiate):
7376         * glyphs-x.c (x_update_widget):
7377         * glyphs-x.c (x_widget_instantiate):
7378         * glyphs.c (bitmap_to_lisp_data):
7379         * glyphs.c (pixmap_to_lisp_data):
7380         [7].
7381
7382         * glyphs.c (syms_of_glyphs):
7383         [2].
7384
7385         * gui-x.c:
7386         * gui-x.c (print_widget_value):
7387         * gui-x.c (menu_separator_style_and_to_external):
7388         * gui-x.c (add_accel_and_to_external):
7389         * gui-x.c (button_item_to_widget_value):
7390         * gui-x.c (gui_items_to_widget_values_1):
7391         * gui-x.c (gui_items_to_widget_values):
7392         * gui-x.c (syms_of_gui_x):
7393         * gui-x.c (vars_of_gui_x):
7394         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7395         [9].
7396
7397         * gui-x.h:
7398         Muleize, prototype changes matching gui-x.c.
7399
7400         * gui.c:
7401         * gui.c (separator_string_p):
7402         * gui.c (gui_item_add_keyval_pair):
7403         * gui.c (make_gui_item_from_keywords_internal):
7404         * gui.c (signal_too_long_error):
7405         * gui.c (parse_gui_item_tree_item):
7406         * gui.c (syms_of_gui):
7407         * gui.c (vars_of_gui):
7408         * gui.h:
7409         menu-no-selection-hook moved here (used by MSWin).
7410         Move some symbols to general-slots.h.
7411         [6].
7412         [9].
7413
7414         * insdel.c (get_buffer_pos_char):
7415         * insdel.c (get_buffer_range_char):
7416         Add GC comments.
7417
7418         * keymap.c (keymap_lookup_directly):
7419         * keymap.c (keymap_store):
7420         * keymap.c (ensure_meta_prefix_char_keymapp):
7421         * keymap.c (describe_map):
7422         * keymap.h:
7423         Support new button modifiers.
7424
7425         * lisp-disunion.h (wrap_object):
7426         * lisp-disunion.h (XSETOBJ):
7427         Rename make_obj to wrap_object.
7428
7429         * lisp-union.h:
7430         * lisp-union.h (make_int):
7431         * lisp-union.h (make_char):
7432         Support wrap_object.
7433
7434         * lisp.h:
7435         * lisp.h (LIST_LOOP):
7436         * lisp.h (EXTERNAL_LIST_LOOP):
7437         * lisp.h (LIST_LOOP_2):
7438         * lisp.h (EXTERNAL_LIST_LOOP_1):
7439         * lisp.h (EXTERNAL_LIST_LOOP_2):
7440         * lisp.h (EXTERNAL_LIST_LOOP_3):
7441         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7442         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7443         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7444         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7445         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7446         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7447         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7448         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7449         * lisp.h (struct Lisp_Symbol):
7450         * lisp.h (maybe_continuable_error_with_frob):
7451         Fix up section comments.
7452         Add new types for char to indicate usage.
7453         Delete symbols auto-generated from general-slots.h.
7454         Add prototypes for structured error functions.
7455         Add long comments describing looping macros and change interface
7456         so that lvalues are automatically declared.
7457         Add NO_DECLARE macro in case callers want to declare lvalues
7458         themselves.
7459
7460         * lread.c (read_syntax_error):
7461         * lread.c (continuable_read_syntax_error):
7462         * lread.c (read_structure):
7463         * lread.c (sequence_reader):
7464         * lread.c (read_list_conser):
7465         * lread.c (read_compiled_function):
7466         Rename syntax_error and continuable_syntax_error to avoid clash
7467         with same-named structured error functions.
7468
7469         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7470         * menubar-msw.c (populate_menu_add_item):
7471         * menubar-msw.c (populate_or_checksum_helper):
7472         [5].
7473         [9].
7474
7475         * menubar-x.c:
7476         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7477         Mule-ize whole file.
7478
7479         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7480
7481         * mule-charset.c (Fmake_charset):
7482         * mule-wnnfns.c (Fwnn_set_param):
7483         [1].
7484
7485         * ntproc.c (create_child):
7486         * ntproc.c (Fwin32_set_current_locale):
7487         Add comments portending doom.
7488
7489         * objects-msw.c:
7490         * objects-msw.c (old_font_enum_callback_2):
7491         * objects-msw.c (font_enum_callback_1):
7492         * objects-msw.c (mswindows_enumerate_fonts):
7493         [5].
7494
7495         * objects-x.c:
7496         * objects-x.c (allocate_nearest_color):
7497         * objects-x.c (x_parse_nearest_color):
7498         * objects-x.c (x_initialize_color_instance):
7499         * objects-x.c (x_print_color_instance):
7500         * objects-x.c (x_finalize_color_instance):
7501         * objects-x.c (x_valid_color_name_p):
7502         * objects-x.c (x_initialize_font_instance):
7503         * objects-x.c (x_print_font_instance):
7504         * objects-x.c (valid_x_font_name_p):
7505         * objects-x.c (truename_via_FONT_prop):
7506         * objects-x.c (truename_via_random_props):
7507         * objects-x.c (truename_via_XListFonts):
7508         * objects-x.c (x_font_truename):
7509         * objects-x.c (x_font_instance_truename):
7510         * objects-x.c (x_font_instance_properties):
7511         * objects-x.c (x_list_fonts):
7512         * objects-x.c (x_find_charset_font):
7513         Mule-ize entire file.
7514         [7].
7515
7516         * objects-x.h:
7517         Mule-verify.
7518
7519         * print.c:
7520         * print.c (std_handle_out_external):
7521         * print.c (debug_print_no_newline):
7522         * print.c (syms_of_print):
7523         Output to all debugger kinds in debug-print.
7524         Fix console-output code under MSWin to actually work.
7525
7526         * process-nt.c (send_signal):
7527         * process-nt.c (nt_create_process):
7528         Use newer Unicode macros.
7529
7530         * process-unix.c (unix_create_process):
7531         * process-unix.c (unix_canonicalize_host_name):
7532         * process-unix.c (unix_open_network_stream):
7533         [7].
7534
7535         * scrollbar-x.c:
7536         Mule-verify.
7537
7538         * search.c (syms_of_search):
7539         [2].
7540
7541         * select-msw.c (mswindows_destroy_selection):
7542         Use LIST_LOOP_2.
7543
7544         * select-x.c (symbol_to_x_atom):
7545         [7].
7546
7547         * select.c (syms_of_select):
7548         [2].
7549
7550         * sound.c (Fplay_sound_file):
7551         [7].
7552
7553         * specifier.c:
7554         * specifier.c (decode_specifier_type):
7555         * specifier.c (Fvalid_specifier_locale_type_p):
7556         * specifier.c (check_valid_locale_or_locale_type):
7557         * specifier.c (decode_locale):
7558         * specifier.c (decode_locale_type):
7559         * specifier.c (decode_locale_list):
7560         * specifier.c (check_valid_domain):
7561         * specifier.c (decode_specifier_tag_set):
7562         * specifier.c (Fcanonicalize_tag_set):
7563         * specifier.c (Fdefine_specifier_tag):
7564         * specifier.c (Fspecifier_tag_predicate):
7565         * specifier.c (check_valid_inst_list):
7566         * specifier.c (check_valid_spec_list):
7567         * specifier.c (decode_how_to_add_specification):
7568         * specifier.c (check_modifiable_specifier):
7569         * specifier.c (specifier_add_spec):
7570         * specifier.c (boolean_validate):
7571         * specifier.c (display_table_validate):
7572         [9].
7573
7574         * specifier.c (syms_of_specifier):
7575         Move some symbols to general-slots.h.
7576         [2].
7577
7578         * symbols.c:
7579         * symbols.c (Fmapatoms):
7580         * symbols.c (Fapropos_internal):
7581         Add GCPROs.
7582
7583         * symbols.c (set_default_buffer_slot_variable):
7584         * symbols.c (set_default_console_slot_variable):
7585         [1].
7586
7587         * symbols.c (defsymbol_massage_name_1):
7588         * symbols.c (defkeyword_massage_name):
7589         * symbols.c (deferror_1):
7590         * symbols.c (deferror):
7591         * symbols.c (deferror_massage_name_and_message):
7592         * symeval.h:
7593         * symeval.h (DEFSYMBOL):
7594         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7595
7596         * symbols.c (syms_of_symbols):
7597         [2].
7598
7599         * symsinit.h:
7600         * symsinit.h (init_win32): New.
7601         Also new is syms_of_dialog_mswindows.
7602
7603         * syswindows.h:
7604         Add new Unicode macros, missing Cygwin wide-char functions,
7605         convenience conversion macros for Qmswindows_tstr, macros for
7606         encapsulating required MSWin <-> Cygwin filename conversions,
7607         prototype for dynamically-extracted (not in NT 3.51) functions.
7608
7609         * toolbar-x.c:
7610         Mule-verify.
7611
7612         * tooltalk.c (Fadd_tooltalk_message_arg):
7613         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7614         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7615         [7].
7616
7617         * tooltalk.c (syms_of_tooltalk):
7618         [2].
7619
7620         * unexnt.c:
7621         * unexnt.c (unexec):
7622         Fix up headers, declaration of unexec() to be more standard.
7623
7624 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7625
7626         * offix.h: Revert change to guard macros - they're used in offix.c!
7627
7628 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7629
7630         * lisp.h: Defsubred Fdelete.
7631
7632         * console-msw.h:  (msprinter_default_printer): Added.
7633
7634         * console-msw.c (msprinter_canonicalize_console_connection):
7635         (msprinter_canonicalize_device_connection): Added.
7636
7637         * device-msw.c (msprinter_default_printer):
7638         (Fmswingows_get_default_printer):
7639         (signal_enum_priner_error):
7640         (Fmswingows_printer_list): Added.
7641
7642 2000-07-19  Martin Buchholz <martin@xemacs.org>
7643
7644         * XEmacs 21.2.35 is released.
7645
7646 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7647
7648         * select-x.c (x_handle_selection_request):
7649         Text selected in xemacs and pasted into xterm failed to appear.
7650         Spelling fixes and cosmetic changes.
7651
7652 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7653
7654         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7655         XEmacs frame (fix for doubling chars in dialog boxes).
7656
7657 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7658
7659         * select.c (select_convert_in, select_convert_out):
7660         Don't call intern() every time.
7661
7662         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7663         * select.c (vars_of_select): Initialise them.
7664
7665 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7666
7667         * select.c (selection-coercible-types): New.
7668
7669         * select.c (own-selection-internal):
7670         * select.c (get-selection-internal):
7671         MULE bug fix - these should default to COMPOUND_TEXT and not
7672         STRING for MULE. I think.
7673
7674         * select.c (select_convert_out): Use selection-coercible-types
7675         to find types that we can attempt to perform coercions on.
7676
7677 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7678
7679         * mule-wnnfns.c:
7680         * mule-canna.c:
7681         Add coding: cookie to identify encoding.
7682
7683         * mule-canna.c (CANNA_mode_keys): make static.
7684         Use proper prototypes, even for functions of no arguments.
7685         Remove external prototype for Fding().
7686
7687         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7688
7689         * select.c (syms_of_select): Add missing DEFSUBR.
7690
7691 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7692
7693         * select.c (get_selection_internal, own_selection_internal):
7694         Make the type default to STRING, rather than placing a nil type
7695         into Vselection_alist.
7696
7697 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7698
7699         * gpmevent.c (tty_selection_exists_p):
7700         * gpmevent.c (tty_own_selection):
7701         Updated parameter lists.
7702
7703 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7704
7705         * select.h (selection-alist): Removed declaration.
7706
7707         * select.h (get_local_selection):
7708         * select.c (get_local_selection):
7709         Made static.
7710
7711         * select.h (convert_selection): Removed declaration.
7712         * select.c (convert_selection): Removed.
7713         This function belongs in Lisp.
7714
7715         * select.h (select_convert_in): Declare.
7716         * select.h (select_convert_out): Declare.
7717         * select.c (select_convert_in): New.
7718         * select.c (select_convert_out): New.
7719         New conversion functions for other files to call.
7720
7721         * select.h (select_notify_buffer_kill): Declare.
7722         * select.c (select_notify_buffer_kill): New.
7723         New functions that get called from kill-buffer.
7724
7725         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7726         X-specific lisp code.
7727
7728         * select.h: Declare some of the lisp-visible functions for
7729         external use.
7730
7731         * select.c (clean_local_selection_data): Removed. This was
7732         a disgusting function, and previously should have been in
7733         select-x.c in any case. The functionality is now provided
7734         in select-convert-from-integer (select.el).
7735
7736         * select.c (available-selection-types): Fixed stupidity where
7737         INTEGER and ATOM got added twice. Also add STRING when we see an
7738         extent.
7739
7740         * select.c (get-selection-internal): Removed symbol stripping. No
7741         longer causes conversion when data comes from the internal cache.
7742
7743         * select.c (syms_of_select): Added new functions.
7744
7745         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7746         error checking - previously this called abort!
7747
7748         * select-x.c (x_own_selection): Changed comment.
7749
7750         * select-x.c (x_handle_selection_request): Use select_convert_out.
7751         Don't mess with selection-alist; it's an internal variable of select.c.
7752
7753         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7754
7755         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7756         rather than messing with selection-alist.
7757
7758         * select-msw.c (mswindows_get_foreign_selection):
7759         Use TO_INTERNAL_FORMAT rather than hacking.
7760
7761 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7762
7763         * process-unix.c (unix_open_multicast_group):
7764         (unix_open_multicast_group): Remove useless casts.
7765
7766 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7767
7768         * sound.c (Fplay_sound): Fix `unused variable' warning.
7769
7770         * emacs.c (main): Use correct type for _environ on SCO5.
7771
7772 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7773
7774         * console.h (own_selection_method):
7775         * console.h (selection_exists_p_method):
7776         * console.h (available_selection_types_method): New.
7777         * console.h (register_selection_data_type_method): New.
7778         * console.h (selection_data_type_name): New.
7779
7780         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7781         function & alist to track GlobalAlloc()'d handles that need
7782         releasing when the clipboard data gets replaced or emptied.
7783
7784         * event-msw.c (mswindows_wnd_proc): Call it.
7785
7786         * lisp.h, general.c (Qappend): New symbol representing a
7787         `how-to-add' mode.
7788
7789         * select.c (own-selection-internal):
7790         * select.c (selection-exists-p):
7791         * select.c (available-selection-types): New.
7792         * select.c (register-selection-data-type): New.
7793         * select.c (selection-data-type-name): New.  New functions to deal
7794         with device-specific selection data formats.
7795         * select.c (selection-converter-out-alist): Renamed.
7796         * select.c (selection-converter-in-alist): New.
7797         * select.c (selection-appender-alist): New.  Added new alists.
7798         * select.c (syms_of_select, vars_of_select): Added new symbols &
7799         variables.
7800         * select.c (get_local_selection): Split.
7801         * select.c: Removed spurious type checking - selections may now be
7802         of any type, not just strings.
7803         * select.c (own-selection-internal):
7804
7805         * select.h, select.c (convert_selection): New. Created
7806         convert_selection() function based on get_local_selection().
7807         * select.h, select.c (QCF_*): New symbols representing mswindows
7808         clipboard formats.
7809         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7810         symbols representing `how-to-add' modes.
7811
7812         * select-msw.c (x_sym_p): New.
7813         * select-msw.c (symbol_to_ms_cf): New.
7814         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7815         symbols & clipboard formats. Can also handle string names.
7816         * select-msw.c (mswindows_own_selection):
7817         * select-msw.c (mswindows_selection_exists_p):
7818         Added `data-type' parameter. Use it.
7819         * select-msw.c (mswindows_available_selection_types): New.
7820         * select-msw.c (mswindows_register_selection_data_type): New.
7821         * select-msw.c (mswindows_selection_data_type_name): New.
7822         * select-msw.c (mswindows_own_selection):
7823         * select-msw.c (mswindows_get_foreign_selection):
7824         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7825         * select-msw.c (console_create_select_mswindows): Added new methods.
7826         * select-msw.c (mswindows_destroy_selection): New.
7827         * select-msw.c (Vhandle_alist): New list.
7828         * select-msw.c (mswindows_own_selection):
7829
7830         * select-x.c (x_own_selection):
7831         * select-x.c (x_selection_exists_p):
7832         * select-x.c: Added some comments about maybe using new
7833         functionality.
7834         * select-x.c (x_own_selection):
7835
7836         * specifier.c: Remove definition of Qappend (now in general.c)
7837         * specifier.c (syms_of_specifier): Remove Qappend.
7838
7839 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7840
7841         * config.h.in: Add socklen_t.
7842
7843         * s/decosf4-0.h: No special compiler flags needed or desired.
7844         In particular, undefine _BSD for DEC OSF 4.0.
7845
7846 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7847
7848         * redisplay-msw.c (msprinter_frame_output_end): Added.
7849         (console_type_create_redisplay_mswindows): Referred the above.
7850
7851         * frame.c (setup_frame_without_minibuffer): Do not create a
7852         default minibuffer frame on a printer device.
7853
7854         * frame-msw.c (apply_dc_geometry): Added.
7855         (msprinter_start_page):
7856         (msprinter_init_frame_3):
7857         (msprinter_eject_page): Use it.
7858
7859         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7860         and removed residual duplex and orientation properties.
7861
7862 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7863
7864         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7865
7866         * unexalpha.c: Remove system prototypes from C sources!
7867
7868 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7869
7870         * eval.c: Remove references to M-x edit-options in DEFUNs for
7871         `defvar' and `defconst'.
7872
7873 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7874
7875         * config.h.in: Remove SMART_INCLUDE hackery.
7876
7877         PostgreSQL hacking:
7878         * config.h.in: Don't use SMART_INCLUDE.
7879
7880         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7881         * inline.c: Simply #include "postgresql.h"
7882         * postgresql.c:
7883         - Don't use SMART_INCLUDE
7884         - Use simply "const".
7885         - Use standard doc string conventions.
7886         - Use correct type for result of PQstatus.
7887
7888 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7889
7890         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7891
7892         C++ compilation changes.
7893         * config.h.in (EXTERN_C): Define.
7894         * config.h.in (not): This is also a C++ keyword.
7895         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7896         * cm.c: Use EXTERN_C.
7897         * redisplay-tty.c: Use EXTERN_C.
7898         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7899
7900 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7901
7902         * general.c: Remove duplicate definition for Qfunction.
7903
7904 2000-07-08  Ben Wing  <ben@xemacs.org>
7905
7906         * device-msw.c (msprinter_init_device):
7907         * device-msw.c (sync_printer_with_devmode):
7908         * device-msw.c (handle_devmode_changes):
7909         * device-msw.c (print_dialog_worker):
7910         * device-msw.c (Fmsprinter_apply_settings):
7911         * device-msw.c (hash_devmode):
7912         * device-msw.c (Fmsprinter_settings_despecialize):
7913         use Qmswindows_tstr, not Qctext.
7914
7915         * vm-limit.c (check_memory_limits):
7916         avoid infinite loop printing warning messages.
7917
7918 2000-07-05  Craig Lanning  <lanning@scra.org>
7919
7920         * Makefile.in.in: Add support for including the Windows resources
7921         when building with the cygwin and mingw targets.
7922
7923         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7924         not set or not correct.
7925         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7926         (init_initial_directory): Don't try to use $PWD on the
7927         WIN32_NATIVE target.
7928
7929         * s\cygwin32.h:
7930         [[Add -mwindows to eliminate console window.]] not required --ben
7931         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7932         (MAIL_USE_POP): removed; now handled by configure.
7933
7934         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7935         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7936         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7937         (MAIL_USE_POP): removed; now handled by configure.
7938         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7939         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7940         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7941         constant string.
7942         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7943         up from <winsock.h> via systime.h.
7944         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7945         (getpagesize): from Dan Holmsand, added.
7946         Added #endif which was left dangling by Ben's mega patch; added
7947         comment to help prevent this in the future.
7948
7949         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7950
7951 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7952
7953         * console-msw.h (struct mswindows_device): Removed unnecessary
7954         cached device geometry values.
7955         Added update_tick and an accessor macro.
7956         (Lisp_Devmode): Added lrecord declaration.
7957         (struct msprinter_device): Contain devmode as a Lisp object.
7958         Added mswindows_get_selected_frame_hwnd();
7959
7960         * console.h (struct console_methods): Indentation nitpicking.
7961
7962         * device-msw.c (mswindows_init_device): Do not initialize geometry
7963         cache. Initialize update tick.
7964         (mswindows_device_system_metrics): Ask the device for its geometry.
7965         (global_free_2_maybe):
7966         (devmode_to_hglobal):
7967         (handle_printer_changes):
7968         (ensure_not_printing):
7969         (print_dialog_worker):
7970         (Fmsprinter_print_setup_dialog):
7971         (Fmsprinter_print_dialog):
7972         (plist_get_margin):
7973         (plist_set_margin):
7974         (Fmsprinter_page_setup_dialog): Added functions.
7975         (sync_printer_with_devmode):
7976         (handle_devmode_changes):
7977         (Fmsprinter_get_settings):
7978         (Fmsprinter_select_settings):
7979         (Fmsprinter_apply_settings):
7980         (allocate_devmode):
7981         (Fmsprinter_settings_copy):
7982         (Fmsprinter_settings_despecialize):
7983         (print_devmode):
7984         (finalize_devmode):
7985         (equal_devmode):
7986         (hash_devmode): Added functions
7987         (syms_of_device_mswindows): Init devmode lrecord class.
7988
7989         * device.h: Added an exfun for find-device.
7990
7991         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7992         geometry; although, recreate the device compatible DC.
7993
7994         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7995         (msprinter_init_frame_3):
7996         (msprinter_frame_property):
7997         (msprinter_internal_frame_property_p):
7998         (msprinter_frame_properties):
7999         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8000         print job properties (will move to device settings).
8001
8002         * lisp.h: Added symbols.
8003
8004         * general.c (syms_of_general): Declared them.
8005
8006         * hash.c (string_hash): Added.
8007
8008         * lrecord.h (lrecord_type): Added devmode lrecord type.
8009
8010 2000-07-02  Mike Sperber <mike@xemacs.org>
8011
8012         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8013         FreeBSD 4.0.
8014
8015 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8016
8017         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8018         integer.
8019
8020 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8021
8022         * data.c (Fstring_to_number): Don't recognize floating point if
8023         base is not 10.
8024
8025 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8026
8027         * glyphs-widget.c (tab_control_query_geometry):
8028         (widget_query_geometry):
8029         (button_query_geometry):
8030         * glyphs.c (text_query_geometry):
8031         Enforce type correctness.
8032
8033 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8034
8035         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8036         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8037
8038 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8039
8040         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8041         conflicts with gcc's fixincluded version of FOO.h.
8042
8043         * glyphs.h (image_instance_geometry): Remove trailing `,'
8044
8045 2000-06-08  Mike Alexander  <mta@arbortext.com>
8046
8047         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8048         (shove_thread): Don't write the same output twice
8049         (make_ntpipe_output_stream): Increase priority of shove thread
8050         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8051         chance to run
8052         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8053         it.
8054
8055 2000-06-12  Ben Wing  <ben@xemacs.org>
8056
8057         * s\mingw32.h (sigset):
8058         * s\windowsnt.h (sigset):
8059         rename msw_ to mswindows_ for consistency with general convention.
8060
8061 2000-06-12  Ben Wing  <ben@xemacs.org>
8062
8063         * console-msw.c:
8064         * console-msw.c (mswindows_get_console_hwnd):
8065         * console-msw.c (mswindows_ensure_console_allocated):
8066         * console-msw.c (mswindows_hide_console):
8067         * console-msw.c (mswindows_show_console):
8068         * console-msw.c (mswindows_ensure_console_buffered):
8069         * console-msw.c (mswindows_output_console_string):
8070         * console-msw.c (mswindows_windows9x_p):
8071         * console-msw.h:
8072         * device-msw.c (mswindows_get_workspace_coords):
8073         * device-msw.c (mswindows_device_system_metrics):
8074         * dialog-msw.c (mswindows_popup_dialog_box):
8075         * event-msw.c (mswindows_wnd_proc):
8076         * frame-msw.c (mswindows_size_frame_internal):
8077         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8078         * menubar-msw.c (displayable_menu_item):
8079         * menubar-msw.c (mswindows_char_is_accelerator):
8080         * nt.c:
8081         * nt.c (mswindows_sigset):
8082         * nt.c (mswindows_sigrelse):
8083         * nt.c (mswindows_sigpause):
8084         * nt.c (mswindows_raise):
8085         * nt.c (timer_proc):
8086         * ntproc.c:
8087         * ntproc.c (find_child_console):
8088         * ntproc.c (sys_kill):
8089         * print.c:
8090         * print.c (std_handle_out_external):
8091         * process-nt.c (find_child_console):
8092         * process-nt.c (send_signal_the_95_way):
8093         * process-nt.c (ensure_console_window_exists):
8094         * process-nt.c (nt_create_process):
8095         * syssignal.h:
8096         rename msw_ to mswindows_ for consistency with general convention.
8097
8098         * emacs.c:
8099         * dumper.c:
8100         include nt.h, not syswindows.h.
8101
8102         * nt.c (mswindows_fstat):
8103         * nt.c (mswindows_stat):
8104         prefix mswindows_ instead of attempting to directly override the
8105         library functions.  fix declarations.
8106
8107         * nt.h:
8108         include syswindows.h.  move some sysdep.h stuff here.
8109
8110         * ntheap.h:
8111         include syswindows.h, not <windows.h>.
8112
8113         * ntplay.c:
8114         clean up headers.
8115
8116         * sysdep.c:
8117         clean up headers.
8118
8119         * sysdep.c (sys_fstat):
8120         * sysdep.c (sys_stat):
8121         call mswindows versions when appropriate.
8122
8123         * sysdep.h:
8124         move mswin decls to nt.h.
8125
8126         * syswindows.h:
8127         add long comment describing appropriate use of the various windows
8128         headers.
8129
8130 2000-06-11  Ben Wing  <ben@xemacs.org>
8131
8132         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8133
8134 2000-06-10  Ben Wing  <ben@xemacs.org>
8135
8136         * Makefile.in.in (release):
8137         Correction to make sure xemacs.exe always dumped when correct.
8138
8139         * alloca.c:
8140         * balloon_help.c:
8141         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8142
8143         * buffer.c (set_buffer_internal):
8144         [[[[2]]]]: Remove HAVE_FEP code.
8145
8146         * buffer.c (init_initial_directory):
8147         [3].
8148
8149         * bytecode.c:
8150         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8151         individual files.
8152
8153         * callproc.c:
8154         * callproc.c (call_process_cleanup):
8155         * callproc.c (Fold_call_process_internal):
8156         * callproc.c (child_setup):
8157         * callproc.c (getenv_internal):
8158         * callproc.c (init_callproc):
8159         * callproc.c (vars_of_callproc):
8160         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8161         __CYGWIN32__ -> CYGWIN.
8162         DOS_NT -> WIN32_NATIVE.
8163         Remove MSDOS support/references, converting to WIN32_NATIVE
8164           where correct.
8165         __MINGW32__ -> MINGW.
8166         Fix windows.h includes.
8167         Remove bogus HAVE_NTGUI.
8168
8169         * config.h.in:
8170         [2].
8171
8172         * console-msw.c:
8173         mswindows_message_outputted added for use in allowing startup
8174         errors on the console to be seen.
8175
8176         * console-msw.c (msw_ensure_console_allocated):
8177         * console-msw.c (msw_output_console_string):
8178         * console-msw.c (DHEADER):
8179         * console-msw.c (DOPAQUE_DATA):
8180         * console-msw.c (DEVENT):
8181         * console-msw.c (DCONS):
8182         * console-msw.c (DCONSCDR):
8183         * console-msw.c (DSTRING):
8184         * console-msw.c (DVECTOR):
8185         * console-msw.c (DSYMBOL):
8186         * console-msw.c (DSYMNAME):
8187         Fix warnings.
8188
8189         * console-stream.c (stream_init_console):
8190         Fix text/binary problems.
8191
8192         * device-msw.c:
8193         * device-msw.c (mswindows_finish_init_device):
8194         * device-msw.c (mswindows_delete_device):
8195         [1].
8196
8197         * device.c (handle_asynch_device_change):
8198         [3].
8199
8200         * dgif_lib.c:
8201         * dgif_lib.c (DGifOpenFileName):
8202         * dgif_lib.c (DGifOpenFileHandle):
8203         * dgif_lib.c (DGifGetLine):
8204         * dgif_lib.c (DGifGetPixel):
8205         Added config.h/lisp.h, fix up includes.
8206         [1].
8207
8208         * dired-msw.c:
8209         [4].
8210
8211         * dired.c:
8212         * dired.c (file_name_completion):
8213         * dired.c (Ffile_attributes):
8214         * dired.c (syms_of_dired):
8215         [1].
8216
8217         * dumper.c:
8218         * dumper.c (pdump_file_unmap):
8219         * dumper.c (pdump_load):
8220         [1].
8221
8222         * editfns.c:
8223         * editfns.c (Ftemp_directory):
8224         * editfns.c (user_login_name):
8225         * editfns.c (Fuser_real_login_name):
8226         * editfns.c (get_home_directory):
8227         [1].
8228
8229         * elhash.c (finish_marking_weak_hash_tables):
8230         [[[[5]]]]: Fix GCC warnings.
8231
8232         * emacs.c:
8233         * emacs.c (mswindows_handle_hardware_exceptions):
8234         * emacs.c (make_arg_list_1):
8235         * emacs.c (main_1):
8236         * emacs.c (Fkill_emacs):
8237         * emacs.c (Fdump_emacs):
8238         [1].
8239         Fix problems with nested crashes, add long comment.
8240
8241         * event-Xt.c (init_event_Xt_late):
8242         [1].
8243
8244         * event-msw.c:
8245         * event-msw.c (mswindows_dde_callback):
8246         * event-msw.c (mswindows_handle_sticky_modifiers):
8247         * event-msw.c (mswindows_wnd_proc):
8248         [1].
8249         [5].
8250
8251         * events.c (character_to_event):
8252         [1].
8253
8254         * fileio.c:
8255         * fileio.c (Ffile_name_directory):
8256         * fileio.c (Ffile_name_nondirectory):
8257         * fileio.c (directory_file_name):
8258         * fileio.c (Fexpand_file_name):
8259         * fileio.c (Fsubstitute_in_file_name):
8260         * fileio.c (Ffile_name_absolute_p):
8261         * fileio.c (check_executable):
8262         * fileio.c (Ffile_readable_p):
8263         * fileio.c (Ffile_accessible_directory_p):
8264         * fileio.c (Ffile_modes):
8265         * fileio.c (Funix_sync):
8266         * fileio.c (vars_of_fileio):
8267         [1]. [4].
8268
8269         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8270
8271         Expand getdefdir defn.
8272         Fix bogus rename() comment.
8273
8274         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8275         to use standard XEmacs include files, e.g. sysfile.h, rather
8276         than system-specific includes.
8277
8278         * fns.c:
8279         * fns.c (Fsubseq):
8280         [5]. [6].
8281
8282         * frame.c (vars_of_frame):
8283         [1].
8284
8285         * getloadavg.c:
8286         * getloadavg.c (getloadavg):
8287         [1]. [6].
8288         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8289         (We don't use it elsewhere in the code; just add a comment.)
8290
8291         * gif_io.c:
8292         [6].
8293         Add config.h.
8294
8295         * glyphs-msw.c:
8296         * glyphs-msw.c (mswindows_resource_instantiate):
8297         [1].
8298
8299         * glyphs-x.c (x_native_layout_instantiate):
8300         [5].
8301
8302         * gui-msw.c (Fmswindows_shell_execute):
8303         [1].
8304
8305         * insdel.c:
8306         [4].
8307
8308         * lisp.h:
8309         [4]. [5].
8310
8311         * lread.c (locate_file_in_directory_mapper):
8312         [1].
8313
8314         * lstream.c:
8315         [4].
8316
8317         * mem-limits.h:
8318         * mem-limits.h (get_lim_data):
8319         [1].
8320
8321         * menubar-msw.c:
8322         [4].
8323
8324         * ndir.h:
8325         [1].
8326
8327         * nt.c:
8328         * nt.c (getwd):
8329         * nt.c (closedir):
8330         * nt.c (rva_to_section):
8331         * nt.c (mswindows_executable_type):
8332         [1]. [6].
8333         Fix closedir() defn.
8334
8335         * nt.h:
8336         [[[[8]]]]: *_OK defs moved to sysfile.h.
8337
8338         * ntproc.c:
8339         [6]. [7].
8340
8341         * objects-x.c:
8342         [4].
8343
8344         * print.c:
8345         * print.c (std_handle_out_external):
8346         [1]. [4].
8347
8348         * process-nt.c:
8349         * process-nt.c (nt_create_process):
8350         [6].
8351         try to fix process quoting somewhat.
8352
8353         * process-unix.c (unix_create_process):
8354         [1].
8355
8356         * process.c:
8357         * process.c (vars_of_process):
8358         Add Vnull_device.
8359
8360         * process.h:
8361         [1].
8362
8363         * realpath.c:
8364         * realpath.c (xrealpath):
8365         [1].
8366
8367         * redisplay-tty.c (init_tty_for_redisplay):
8368         [3].
8369
8370         * redisplay.c:
8371         [4]. [6].
8372
8373         * scrollbar-msw.c:
8374         [4].
8375
8376         * sheap.c:
8377         * sheap.c (more_static_core):
8378         * sheap.c (report_sheap_usage):
8379         [5]. [6].
8380
8381         * signal.c:
8382         * signal.c (alarm_signal):
8383         [1]. [6].
8384
8385         * sound.c:
8386         [6].
8387
8388         * strftime.c:
8389         * strftime.c (zone_name):
8390         [1]. [5].
8391
8392         * symsinit.h (init_sunpro):
8393         [1].
8394
8395         * syscommctrl.h:
8396         commctrl.h not in Cygwin b20.1.
8397
8398         * sysdep.c:
8399         * sysdep.c (endif):
8400         * sysdep.c (sys_subshell):
8401         * sysdep.c (init_baud_rate):
8402         * sysdep.c (emacs_get_tty):
8403         * sysdep.c (emacs_set_tty):
8404         * sysdep.c (tty_init_sys_modes_on_device):
8405         * sysdep.c (init_system_name):
8406         * sysdep.c (sys_open):
8407         * sysdep.c (interruptible_open):
8408         * sysdep.c (sys_fopen):
8409         * sysdep.c (sys_mkdir):
8410         * sysdep.c (sys_rename):
8411         * sysdep.c (get_process_times_1):
8412         [1]. [6].
8413
8414         * sysdep.h:
8415         [1].
8416
8417         * sysdir.h:
8418         * sysdir.h (DIRENTRY_NONEMPTY):
8419         [1]. [6].
8420
8421         * sysdll.c (dll_init):
8422         * sysdll.h:
8423         [1].
8424
8425         * sysfile.h:
8426         [1]. [6]. [8].
8427         added text/binary defs.
8428
8429         * sysfloat.h:
8430         [1].
8431
8432         * sysproc.h:
8433         * sysproc.h (EDESTADDRREQ):
8434         * sysproc.h (poll_fds_for_input):
8435         [1]. [6].
8436
8437         * syspwd.h:
8438         [6].
8439
8440         * syssignal.h:
8441         [1].
8442
8443         * systime.h:
8444         [1]. [6].
8445
8446         * systty.h:
8447         [1].
8448
8449         * syswindows.h:
8450         [1].
8451         Always define WIN32_LEAN_AND_MEAN.
8452
8453         * unexcw.c (unexec):
8454         [5].
8455
8456         * unexec.c:
8457         * unexec.c (copy_text_and_data):
8458         * unexec.c (adjust_lnnoptrs):
8459         [1].
8460
8461         * unexnt.c:
8462         * unexnt.c (_start):
8463         [1].
8464
8465 2000-06-07  Ben Wing  <ben@xemacs.org>
8466
8467         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8468         was used only as a model.  We've long since extracted any useful
8469         logic or code out of this. (I just did an exhaustive search.)
8470
8471         * s\msdos.h: Removed.
8472
8473         * s\windows95.h: Removed.
8474
8475 2000-06-10  Ben Wing  <ben@xemacs.org>
8476
8477         * s\cygwin32.h:
8478         [1]. [5].
8479         Don't use extern with fun defs.
8480
8481         * s\mingw32.h:
8482         [1]. [7].
8483         Remove nt\inc include.
8484         Remove getdisk, getdefdir. (The former is unused, the latter
8485         expanded in fileio.h.)
8486
8487         * s\windowsnt.h:
8488         * s\windowsnt.h (WIN32_NATIVE):
8489         * s\windowsnt.h (HAVE_STRCASECMP):
8490         [1]. [7].
8491         Add long comment about preprocessor changes.
8492         Remove getdisk, getdefdir. (The former is unused, the latter
8493         expanded in fileio.h.)
8494
8495 2000-06-10  Ben Wing  <ben@xemacs.org>
8496
8497         * m\arm.h:
8498         * m\delta.h:
8499         * m\intel386.h:
8500         * m\sequent.h:
8501         * m\template.h:
8502         * m\windowsnt.h:
8503         [1].
8504         Remove bogus/unused NO_SOCK_SIGIO.
8505
8506 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8507
8508         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8509         not an Emchar.
8510
8511 2000-06-04  Mike Sperber <mike@xemacs.org>
8512
8513         * casetab.c (set_case_table): For `set-standard-case-table',
8514         actually deposit the new case tables where the rest of XEmacs can
8515         see them.
8516
8517 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8518
8519         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8520
8521 2000-06-05  Ben Wing  <ben@xemacs.org>
8522
8523         * callproc.c (child_setup): Don't do close_load_descs() under
8524         MS Windows.  Put in a comment explaining why.
8525
8526 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8527
8528         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8529         Toolkit shell" which breaks `kill-compilation' on Windows NT
8530         native, retaining STDERR handling improvements.
8531
8532 2000-06-01  Andreas Jaeger  <aj@suse.de>
8533
8534         * s/s390.h: Support for S390, based on a patch by Martin
8535         Schwidefsky <schwidefsky@de.ibm.com>.
8536
8537 2000-05-30  Andy Piper  <andy@xemacs.org>
8538
8539         * window.c (allocate_window):
8540         (make_dummy_parent):
8541         (Fset_window_configuration): use new hashtable type.
8542
8543         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8544         (struct image_instantiator_methods):
8545         (struct Lisp_Image_Instance): make instance geometry signed.
8546
8547         * glyphs.c (instantiate_image_instantiator):
8548         (image_instance_query_geometry):
8549         (image_instance_layout):
8550         (image_instance_layout):
8551         (query_string_geometry):
8552         (text_query_geometry):
8553         (image_instantiate):
8554         (image_instantiate):
8555         (cache_subwindow_instance_in_frame_maybe):
8556         (subwindow_query_geometry): make instance geometry signed.
8557
8558         * glyphs-widget.c (widget_query_geometry):
8559         (widget_layout):
8560         (button_query_geometry):
8561         (tree_view_query_geometry):
8562         (tab_control_query_geometry):
8563         (layout_query_geometry):
8564         (layout_layout):
8565         (native_layout_layout): make instance geometry signed.
8566
8567 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8568
8569         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8570         constant.
8571
8572         * general.c (syms_of_general): Add Qfull_assoc symbol.
8573
8574         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8575         correctly.
8576         (decode_weak_list_type): Decode full-assoc type.
8577         (encode_weak_list_type): Encode full-assoc type.
8578         (Fmake_weak_list): Update doc string.
8579
8580 2000-05-30  Andy Piper  <andy@xemacs.org>
8581
8582         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8583
8584         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8585         (decode_hash_table_weakness): ditto.
8586         (Fhash_table_weakness): ditto.
8587         (Fhash_table_type): ditto.
8588         (finish_marking_weak_hash_tables): ditto.
8589         (hash_table_weakness_validate): ditto.
8590         (syms_of_elhash): ditto.
8591
8592 2000-05-28  Martin Buchholz <martin@xemacs.org>
8593
8594         * XEmacs 21.2.34 is released.
8595
8596 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8597
8598         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8599         start cache.
8600         (updating_line_start_cache): Gone.
8601         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8602         generic code to force a minimum of 1 line laid out in the
8603         CMOTION_DISP case.
8604
8605 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8606
8607         * glyphs.c (instantiate_image_instantiator): Check for initialized
8608         height & width no longer special cases IMAGE_NOTHING.
8609         (nothing_instantiate): Set height and width of instance.
8610
8611 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8612
8613         * unexelf.c (unexec): Search for ".data" section.
8614         Initialize new_data2_offset from old_data_index.
8615         Remove redundant check for ElfW.
8616
8617 2000-05-23  Andy Piper  <andy@xemacs.org>
8618
8619         * glyphs.c (get_image_instantiator_governing_domain): allow more
8620         specific domains as the governing domain rather than expecting an
8621         exact match. This fixes problems with layouts.
8622
8623 2000-05-22  Andy Piper  <andy@xemacs.org>
8624
8625         * redisplay-output.c (compare_runes): check for non-images
8626
8627         * glyphs.c (set_glyph_dirty_p): ditto.
8628         (update_glyph_cachel_data): ditto.
8629
8630         * glyphs-widget.c (layout_post_instantiate): ditto.
8631         (layout_post_instantiate): ditto.
8632
8633         * event-msw.c (mswindows_wnd_proc): warning removal.
8634
8635 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8636
8637         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8638
8639         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8640
8641         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8642
8643         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8644         (mswindows_executable_type): mingw32 now has enough headers for
8645         this to work.
8646
8647 2000-05-20  Andy Piper  <andy@xemacs.org>
8648
8649         * console-msw.c (mswindows_output_last_error): ; -> ,
8650
8651 2000-05-12  Andy Piper  <andy@xemacs.org>
8652
8653         * console-msw.c (FROB): compare ints with ints.
8654
8655 2000-05-11  Andy Piper  <andy@xemacs.org>
8656
8657         * glyphs-x.c (x_finalize_image_instance): make minimal build
8658         happy.
8659
8660 2000-05-20  Ben Wing  <ben@xemacs.org>
8661
8662         * event-Xt.c:
8663         * event-Xt.c (vars_of_event_Xt):
8664         move modifier-keys-are-sticky to event-stream.c.
8665
8666         * event-msw.c:
8667         * event-msw.c (mswindows_enqueue_mouse_button_event):
8668         * event-msw.c (key_needs_default_processing_p):
8669         * event-msw.c (XEMSW_LCONTROL):
8670         * event-msw.c (mswindows_handle_sticky_modifiers):
8671         * event-msw.c (FROB):
8672         * event-msw.c (clear_sticky_modifiers):
8673         * event-msw.c (output_modifier_keyboard_state):
8674         * event-msw.c (output_alt_keyboard_state):
8675         * event-msw.c (mswindows_wnd_proc):
8676         * event-msw.c (mswindows_modifier_state):
8677         * event-msw.c (emacs_mswindows_handle_magic_event):
8678         implement sticky modifiers.
8679
8680         * event-stream.c:
8681         * event-stream.c (vars_of_event_stream):
8682         move modifier-keys-are-sticky here.
8683
8684         * lisp.h:
8685         add CHECK_FUNCTION.
8686
8687         * rangetab.c:
8688         implement map-range-table.
8689
8690
8691 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8692
8693         * redisplay-tty.c (reset_tty_modes):
8694         (tty_redisplay_shutdown): Adjust argument type to
8695         tty_frame_output_end.
8696
8697 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8698
8699         * eval.c (Fbacktrace): Don't output a line with only right
8700         parenthesis.
8701
8702 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8703
8704         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8705         (Fpq_reset_poll): Ditto.
8706
8707 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8708
8709         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8710
8711 2000-05-16  Ben Wing  <ben@xemacs.org>
8712
8713         * buffer.c:
8714         * buffer.c (dfc_convert_to/from_internal_format):
8715         * buffer.c (reinit_vars_of_buffer):
8716         Fix conversion functions to allow reentrancy.
8717
8718         * console-msw.c:
8719         * console-msw.c (mswindows_output_last_error):
8720         New fun, generally useful -- output a human-readable
8721         version of GetLastError() on the console.
8722
8723         * console-msw.h:
8724         * console-msw.h (struct mswindows_frame):
8725         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8726
8727         * console-stream.c (stream_output_begin):
8728         * console-stream.c (stream_output_end):
8729         * console-stream.c (stream_output_vertical_divider):
8730         * console-stream.c (stream_clear_region):
8731         * console-stream.c (stream_flash):
8732         * console-stream.c (console_type_create_stream):
8733         Delete blank stream methods, not needed.
8734
8735         * console.h (struct console_methods):
8736         Split begin/end methods into window and frame.
8737
8738         * event-msw.c:
8739         * event-msw.c (mswindows_handle_paint):
8740         * event-msw.c (output_alt_keyboard_state):
8741         * event-msw.c (mswindows_wnd_proc):
8742         * event-msw.c (vars_of_event_mswindows):
8743         Comment about problems with ignored-expose.
8744         Define mswindows-debug-events; not really implemented.
8745
8746         * frame-msw.c (mswindows_init_frame_1):
8747         random cleanups.
8748
8749         * glyphs-msw.c:
8750         * glyphs-msw.c (begin_defer_window_pos):
8751         * glyphs-msw.c (mswindows_unmap_subwindow):
8752         * glyphs-msw.c (mswindows_map_subwindow):
8753         * glyphs-msw.c (mswindows_resize_subwindow):
8754         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8755
8756         * glyphs.c (make_image_instance_1):
8757         Fix crash.
8758
8759         * gutter.c (Fredisplay_gutter_area):
8760         Use new begin/end methods.
8761
8762         * lisp.h (Dynarr_new2):
8763         New creation fun.
8764
8765         * redisplay-msw.c:
8766         * redisplay-msw.c (mswindows_frame_output_begin):
8767         * redisplay-msw.c (mswindows_frame_output_end):
8768         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8769         New begin/end methods -- handle DeferWindowPos.
8770
8771         * redisplay-output.c (redisplay_move_cursor):
8772         * redisplay-output.c (redraw_cursor_in_window):
8773         * redisplay-output.c (redisplay_update_line):
8774         * redisplay-output.c (redisplay_output_window):
8775         New begin/end methods.
8776
8777         * redisplay-tty.c:
8778         * redisplay-tty.c (tty_frame_output_begin):
8779         * redisplay-tty.c (tty_frame_output_end):
8780         * redisplay-tty.c (console_type_create_redisplay_tty):
8781         New begin/end methods.
8782
8783         * redisplay-x.c:
8784         * redisplay-x.c (x_window_output_begin):
8785         * redisplay-x.c (x_window_output_end):
8786         * redisplay-x.c (console_type_create_redisplay_x):
8787         New begin/end methods.
8788
8789         * redisplay.c (redisplay_frame):
8790         * redisplay.c (Fredisplay_echo_area):
8791         New begin/end methods.
8792         use MAYBE_DEVMETH for clear_frame; it may not exist.
8793
8794         * window.h (WINDOW_XFRAME):
8795         WINDOW_XFOO macros -- get locale and decode struct pointer.
8796
8797
8798 2000-05-12  Ben Wing  <ben@xemacs.org>
8799
8800         * emacs.c:
8801         * emacs.c (ensure_no_quitting_from_now_on):
8802         * emacs.c (fatal_error_signal):
8803         * emacs.c (mswindows_handle_hardware_exceptions):
8804         * emacs.c (main):
8805         * emacs.c (Fkill_emacs):
8806         * emacs.c (shut_down_emacs):
8807         * emacs.c (assert_failed):
8808         various improvements in fatal error handling.
8809
8810         * eval.c:
8811         move preparing_for_armageddon to emacs.c.
8812
8813         * lisp.h:
8814         declare fatal_error_in_progress.
8815
8816         * print.c:
8817         * print.c (std_handle_out_external):
8818         * print.c (std_handle_out_va):
8819         * print.c (stderr_out):
8820         * print.c (stdout_out):
8821         use console under mswin when no standard output.
8822         don't do code conversion during fatal error.
8823
8824         * scrollbar.c (Fscrollbar_page_up):
8825         * scrollbar.c (Fscrollbar_page_down):
8826         fix missing else.  reindent.
8827
8828 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8829
8830         Emergency fix.
8831
8832         * glyphs.h (GLYPH_CACHEL_DESCENT):
8833         (GLYPH_CACHEL_DESCENT):
8834         (GLYPH_CACHEL_DESCENT):
8835         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8836         used in case these are inline functions.
8837         Use more absurd values to error check.
8838
8839         include window.h for error check functions.
8840
8841 2000-05-11  Ben Wing  <ben@xemacs.org>
8842
8843         * cmdloop.c (Freally_early_error_handler):
8844         Display message box under windows; otherwise, message will disappear
8845         before it can be viewed.
8846
8847         * console-msw.c:
8848         * console-msw.c (Fmswindows_message_box):
8849         * console-msw.c (FROB):
8850         * console-msw.c (syms_of_console_mswindows):
8851         Define new fun `mswindows-message-box'.
8852         #### I will merge this into `popup-dialog-box'; just give me
8853         a bit of time.
8854
8855         * general.c:
8856         * general.c (syms_of_general):
8857         Some new symbols used in `mswindows-message-box'.
8858
8859         * glyphs.c:
8860         * glyphs.c (Fset_image_instance_property):
8861         put warning in this fun.
8862
8863         * glyphs.h:
8864         * glyphs.h (GLYPH_CACHEL_WIDTH):
8865         * glyphs.h (GLYPH_CACHEL_ASCENT):
8866         * glyphs.h (GLYPH_CACHEL):
8867         * glyphs.h (GLYPH_CACHEL_GLYPH):
8868         define error-checking versions to try to catch a bug i've seen --
8869         redisplay gets in an infinite loop because the glyph width of the
8870         continuation glyph is 65535.
8871
8872         * lisp.h:
8873         Extern message-box stuff.
8874
8875         * window.c (allocate_window):
8876         * window.c (make_dummy_parent):
8877         * window.c (Fset_window_configuration):
8878         Use EQUAL not EQ for subwindow caches to make them work a bit
8879         better. (Something is still very broken.)
8880
8881
8882 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8883
8884         * glyphs.c (image_instantiate): Suppress gcc warnings.
8885         (Fmake_image_instance): Fix doc string.
8886         * specifier.c (Fmake_specifier): Ditto.
8887
8888 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8889
8890         * paths.h.in (PATH_LOCK): Removed.
8891         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8892         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8893
8894 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8895
8896         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8897         Document (featurep '(and xemacs 21.02)).
8898
8899 2000-05-09  Ben Wing  <ben@xemacs.org>
8900
8901         * buffer.c (complex_vars_of_buffer):
8902         update modeline-format doc.
8903
8904         * device.h:
8905         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8906
8907         * emacs.c:
8908         timeline of all released versions of Emacs, for use in creating
8909         authorship comments and in synching up.
8910
8911         * glyphs-widget.c (image_instantiator_buttons):
8912         * glyphs-widget.c (image_instantiator_edit_fields):
8913         * glyphs-widget.c (image_instantiator_combo_box):
8914         * glyphs-widget.c (image_instantiator_scrollbar):
8915         * glyphs-widget.c (image_instantiator_progress_guage):
8916         * glyphs-widget.c (image_instantiator_tree_view):
8917         * glyphs-widget.c (image_instantiator_tab_control):
8918         * glyphs-widget.c (image_instantiator_labels):
8919         * glyphs-widget.c (image_instantiator_layout):
8920         * glyphs-widget.c (image_instantiator_native_layout):
8921         rename decode_domain method to governing_domain.
8922
8923         * glyphs.c:
8924         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8925         * glyphs.c (add_entry_to_device_ii_format_list):
8926         make sure we don't put an entry more than once into the list.
8927         * glyphs.c (check_instance_cache_mapper):
8928         *************************************************************
8929         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8930         HAVE BEEN GETTING.
8931         *************************************************************
8932         * glyphs.c (get_image_instantiator_governing_domain):
8933         clean up, expand on new concept of governing domain.
8934         * glyphs.c (instantiate_image_instantiator):
8935         * glyphs.c (allocate_image_instance):
8936         use governing_domain instead of cache_domain in naming.
8937         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8938         * glyphs.c (make_image_instance_1):
8939         * glyphs.c (Fmake_image_instance):
8940         allow for any domain (not just device), and process the
8941         governing domain correctly.  very big doc fix.
8942         * glyphs.c (Fimage_instance_domain):
8943         new primitive, to retrieve the governing domain of an image instance.
8944         * glyphs.c (image_instantiate):
8945         use new governing_domain stuff.  this fixes a crash you could get
8946         by instantiating certain widget glyphs in frame locales. (should
8947         signal an error instead of crashing.)
8948         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8949         * glyphs.c (Fglyphp): clean up doc.
8950         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8951         * glyphs.c (syms_of_glyphs):
8952         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8953         * glyphs.c (image_instantiator_format_create): add some comments about
8954         bogus code.
8955         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8956         for current-display-table. (Apparently Hrjove implemented in 1998 a
8957         design I wrote up in 1996, but didn't update the doc string.)
8958
8959         * glyphs.h: clean up a doc string.
8960         * glyphs.h (governing_domain):
8961         * glyphs.h (struct image_instantiator_methods):
8962         changes for governing_domain stuff.
8963
8964         * gutter.c:
8965         * gutter.c (Fgutter_specifier_p):
8966         * gutter.c (Fgutter_size_specifier_p):
8967         * gutter.c (Fgutter_visible_specifier_p):
8968         * objects.c:
8969         * objects.c (Fcolor_specifier_p):
8970         * objects.c (Ffont_specifier_p):
8971         * objects.c (Fface_boolean_specifier_p):
8972         doc strings moved to make-*-specifier.
8973
8974         * redisplay.c (add_disp_table_entry_runes_1):
8975         * redisplay.c (generate_fstring_runes):
8976         * redisplay.c (screen):
8977         add random comments and doc strings.
8978
8979         * specifier.c:
8980         * specifier.c (Fmake_specifier):
8981         major overhaul of this doc string.
8982
8983         * specifier.c (Fvalid_specifier_domain_p):
8984         comment about the bogosity of image instances being domains.
8985         * specifier.c (decode_domain):
8986         now non-static, used in glyphs.c.
8987         * specifier.c (specifier_instance):
8988         comment about the bogosity of image instances being domains.
8989         * specifier.c (Fgeneric_specifier_p):
8990         move doc string to make-generic-specifier.
8991         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8992         rebackslashify.
8993
8994         * specifier.h:
8995         * specifier.h (DOMAIN_FRAME):
8996         * specifier.h (DOMAIN_LIVE_P):
8997         * specifier.h (DOMAIN_XDEVICE):
8998         rebackslashify.
8999         add comments about problems with these macros.
9000         prototype for decode_domain.
9001
9002         * toolbar.c:
9003         * toolbar.c (Ftoolbar_specifier_p):
9004         move doc string to `make-toolbar-specifier'.
9005
9006         * window.c (window_unmap_subwindows_cache_mapper):
9007         *************************************************************
9008         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9009         HAVE BEEN GETTING.
9010         *************************************************************
9011
9012 2000-05-09  Andy Piper  <andy@xemacs.org>
9013
9014         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9015
9016         * window.c (Fset_window_configuration): reset the frame subwindow
9017         cache and re-initialize the window subwindow caches.
9018
9019         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9020
9021 2000-05-09  Ben Wing  <ben@xemacs.org>
9022
9023         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9024         DWORD.
9025
9026 2000-04-26  Mike Woolley  <mike@bulsara.com>
9027
9028         * ntheap.c: Changed recreate_heap to limit the amount reserved
9029         for the heap to that which is actually available. Also now
9030         displays a message box (with some dignostics) in the event that
9031         it still can't start.
9032
9033 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9034
9035         * callproc.c (Fold_call_process_internal): GCPRO path
9036
9037 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9038
9039         Patch by Bill Perry.
9040
9041         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9042         back data instead of #ifdef.
9043         (Fscrollbar_page_down): ditto.
9044
9045 2000-05-07  Ben Wing  <ben@xemacs.org>
9046
9047         * buffer.h:
9048         Kludge for defining Qmswindows_tstr.
9049
9050         * nt.c:
9051         * nt.c (open_input_file):
9052         * nt.c (open_output_file):
9053         * nt.c (rva_to_section):
9054         * nt.c (mswindows_executable_type):
9055         Move all memory-mapped-file routines here (some were in unexnt.c,
9056         which is bad because they are used by process-nt.c, and unexnt
9057         won't be around when portable dumping).  Synched the above routines
9058         with FSF 20.6.
9059
9060         * nt.h:
9061         Removed ifdef'd out bogus code.
9062         Fixed some prototypes.
9063
9064         * nt.h (file_data):
9065         * nt.h (OFFSET_TO_RVA):
9066         * nt.h (RVA_TO_OFFSET):
9067         * nt.h (RVA_TO_PTR):
9068         Moved the memory-mapped-file structures, macros and prototypes
9069         here, to parallel nt.c.  ntheap.h should really be removed
9070         entirely, and it's a non-portable-dumper specific file.
9071
9072         * ntheap.h (round_to_next):
9073         Moved the memory-mapped-file structures, macros and prototypes
9074         to nt.h.
9075
9076         * ntproc.c (compare_env):
9077         Moved rva_to_section and mswindows_executable_type to nt.c.
9078         Moved compare_env to process-nt.c.
9079         ntproc.c will die, one day.
9080
9081         * ntproc.c (sys_spawnve):
9082         Account for win32_ -> mswindows_.
9083
9084         * process-nt.c:
9085         * process-nt.c (struct nt_process_data):
9086         * process-nt.c (ensure_console_window_exists):
9087         * process-nt.c (compare_env):
9088         * process-nt.c (nt_create_process):
9089         * process-nt.c (nt_kill_process_by_pid):
9090         * process-nt.c (syms_of_process_nt):
9091         * process-nt.c (vars_of_process_nt):
9092         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9093         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9094         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9095         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9096         Move compare_env here from ntproc.c.
9097
9098         * process.c (Fprocess_send_region):
9099         Takes an optional fourth argument, BUFFER, which should fix some
9100         problems with call-process.
9101
9102         * syscommctrl.h:
9103         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9104
9105         * syswindows.h:
9106         Move ICC_BAR_CLASSES to syscommctrl.h.
9107         Add preliminary macros for MSWindows/Mule.  More to come.
9108
9109         * unexnt.c:
9110         * unexnt.c (unexec):
9111         open_output_file moved to nt.c.
9112
9113
9114 2000-05-05  Andy Piper  <andy@xemacs.org>
9115
9116         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9117         instance from the frame cache also since GC may catch up too late
9118         to make frame deletion sane.
9119
9120 2000-05-04  Andy Piper  <andy@xemacs.org>
9121
9122         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9123         (x_finalize_image_instance): ungcpro on deletion.
9124
9125         * glyphs.c (image_instantiator_format_create): give pointers a
9126         query geometry method so that the geometry is at least set.
9127
9128         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9129         initialize layouts if using widgets.
9130
9131 2000-05-03  Andy Piper  <andy@xemacs.org>
9132
9133         * nt.c: remove bogus reference to sysmmsystem.h
9134
9135         * gui-x.c (popup_selection_callback): fix no selection abort.
9136
9137 2000-05-02  Andy Piper  <andy@xemacs.org>
9138
9139         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9140         (mswindows_widget_instantiate): ditto.
9141
9142         * glyphs-widget.c (initialize_widget_image_instance): initialize
9143         children correctly.
9144         (widget_instantiate): cope with children and items in the same
9145         instance.
9146
9147         * glyphs.c (mark_image_instance): cope with children as a first
9148         class member.
9149         (image_instance_equal): ditto.
9150         (image_instance_hash): ditto.
9151         (image_instance_changed): ditto.
9152
9153 2000-04-30  Andy Piper  <andy@xemacs.org>
9154
9155         * glyphs.c (subwindow_query_geometry): new function. Return some
9156         defaults.
9157         (subwindow_instantiate): don't assign dimensions if none have been
9158         given.
9159         (image_instantiator_format_create): add subwindow_query_geometry.
9160         (print_image_instance): cope with layouts as widgets.
9161
9162 2000-04-29  Andy Piper  <andy@xemacs.org>
9163
9164         * frame.c (delete_frame_internal): call
9165         free_frame_subwindow_instance_cache so that all subwindows are
9166         finalized before their parent.
9167         (mark_frame): remove subwindow_cachels.
9168         (Fmake_frame): remove subwindow_cachel manipulation.
9169         (allocate_frame_core): subwindow_instance_cache is a weak list.
9170         (delete_frame_internal): set subwindow_instance_cache to nil.
9171
9172         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9173         finalization safe.
9174         (mswindows_finalize_image_instance): use the device
9175         not the domain as the domain may have died already.
9176
9177         * glyphs-x.c (x_finalize_image_instance): ditto.
9178         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9179         HEIGHT.
9180
9181         * redisplay-output.c (redisplay_unmap_subwindows): update for
9182         subwindow instance cache as a weak list.
9183         (redisplay_unmap_subwindows_maybe): ditto.
9184         (redisplay_unmap_subwindows_except_us): ditto.
9185
9186         * glyphs.c (unmap_subwindow): error checking will check the domain
9187         so don't deal with it here. Don't use cachels anymore.
9188         (map_subwindow): ditto.
9189         (update_subwindow_cachel_data): remove old accessor names.
9190         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9191         (Fresize_subwindow): don't update cachel.
9192         (mark_subwindow_cachels):
9193         (update_subwindow_cachel_data):
9194         (add_subwindow_cachel):
9195         (get_subwindow_cachel_index):
9196         (update_subwindow_cachel):
9197         (reset_subwindow_cachels):
9198         (mark_subwindow_cachels_as_not_updated): deleted.
9199         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9200         subwindow instance to the frame cache.
9201         (find_matching_subwindow): update for subwindow instance cache as
9202         a weak list.
9203         (update_widget_instances): ditto.
9204         (image_instance_type_to_mask):inlined.
9205         (free_frame_subwindow_instance_cache): new function. finalize all
9206         subwindows that are instantiated.
9207
9208         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9209         of cachel information.
9210         (IMAGE_INSTANCE_DISPLAY_X):
9211         (IMAGE_INSTANCE_DISPLAY_Y):
9212         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9213         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9214         (XIMAGE_INSTANCE_DISPLAY_X):
9215         (XIMAGE_INSTANCE_DISPLAY_Y):
9216         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9217         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9218         remove subwindow_cachel structure and function references.
9219         (image_instance_type_to_mask): inline from glyphs.c
9220
9221         * redisplay.c (redisplay_frame): remove subwindow_cachel
9222         references.
9223
9224         * frame.h (struct frame): remove subwindow_cachels.
9225         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9226
9227         * frameslots.h: add subwindow_instance_cache.
9228
9229         * window.c (replace_window): check subwindow cache of replacement.
9230         (window_unmap_subwindows_cache_mapper):
9231         (window_unmap_subwindows): new functions. Unmap all subwindows
9232         cached on this window.
9233         (mark_window_as_deleted): unmap all subwindows.
9234
9235 2000-04-27  Andy Piper  <andy@xemacs.org>
9236
9237         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9238
9239         * glyphs-widget.c (widget_layout): return something.
9240         (layout_layout): return something. Fail if not initialized.
9241         (layout_query_geometry): ditto.
9242         (image_instantiator_native_layout): new function. Initialized the
9243         native layout type.
9244         (widget_instantiate): don't do layout stuff here.
9245
9246         * glyphs.c (instantiate_image_instantiator): reorded calling or
9247         instantiate and post_instantiate with layout in between.
9248         (image_instance_layout): be more selective about deciding whether
9249         the layout has been done or not.
9250
9251         * glyphs.h (struct image_instantiator_methods): return a value
9252         from layout_method.
9253
9254 2000-04-26  Andy Piper  <andy@xemacs.org>
9255
9256         * glyphs.c (allocate_image_instance): make initial width and
9257         height unspecified. Set initialized to 0.
9258
9259         * syscommctrl.h new file. Encapsulates commctrl.h.
9260
9261         * syswindows.h new file. Encapsulates windows.h.
9262
9263         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9264         * nt.c: ditto.
9265         * console-msw.h: ditto.
9266
9267         * redisplay-tty.c (tty_output_display_block): remove layout references.
9268
9269         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9270         window handle rather than just the frame.
9271
9272         * glyphs.c (mark_image_instance): remove layout references.
9273         (print_image_instance): ditto.
9274         (image_instance_equal): ditto.
9275         (image_instance_hash): ditto.
9276         (decode_image_instance_type): ditto.
9277         (encode_image_instance_type): ditto.
9278         (image_instantiate): ditto.
9279         (allocate_glyph): ditto.
9280         (Fimage_instance_height): ditto.
9281         (Fimage_instance_width): ditto.
9282         (update_subwindow): ditto.
9283
9284         * redisplay-x.c (x_output_display_block): recode for layouts as
9285         widgets.
9286
9287         * redisplay-output.c (redisplay_output_layout): recode for layouts
9288         as widgets.
9289         (compare_runes): remove layout references.
9290
9291         * redisplay-msw.c (mswindows_output_display_block): recode for
9292         layouts as widgets.
9293
9294         * glyphs-widget.c (image_instantiator_layout): remove
9295         layout_possible_dest_types.
9296         (layout_possible_dest_types): deleted.
9297
9298         * glyphs.h (image_instance_type): remove layout references.
9299         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9300         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9301         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9302
9303 2000-04-25  Andy Piper  <andy@xemacs.org>
9304
9305         * glyphs-widget.c (image_instantiator_buttons):
9306         (image_instantiator_edit_fields):
9307         (image_instantiator_combo_box):
9308         (image_instantiator_scrollbar):
9309         (image_instantiator_progress_guage):
9310         (image_instantiator_tree_view):
9311         (image_instantiator_tab_control):
9312         (image_instantiator_labels):
9313         (image_instantiator_layout): call default post_instantiate method.
9314         (widget_post_instantiate): new function. Simply lays out the
9315         widgets.
9316
9317         * glyphs.h (struct image_instantiator_methods): add
9318         post_instantiate method.
9319
9320         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9321         method calls.
9322
9323 2000-04-23  Andy Piper  <andy@xemacs.org>
9324
9325         * glyphs.h (struct image_instantiator_methods): add
9326         decode_domain_method.
9327         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9328         derived from the domain.
9329         (IMAGE_INSTANCE_FRAME): new accessor.
9330         (XIMAGE_INSTANCE_FRAME): ditto.
9331
9332         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9333         instead of _SUBWINDOW_FRAME.
9334         (finalize_image_instance): ditto.
9335         (Fimage_instance_foreground): ditto.
9336         (Fimage_instance_background): ditto.
9337         (image_instantiate): ditto.
9338         (update_subwindow_cachel): ditto.
9339         (update_subwindow): ditto.
9340         (unmap_subwindow): ditto.
9341         (map_subwindow): ditto
9342         (subwindow_instantiate): ditto.
9343         * glyphs-msw.c (mswindows_update_widget): ditto.
9344         (mswindows_progress_gauge_instantiate): ditto.
9345         (mswindows_tab_control_update): ditto.
9346         * glyphs-x.c (x_update_widget): ditto.
9347         (x_widget_instantiate): ditto.
9348         (x_tab_control_instantiate): ditto.
9349         (x_tab_control_update): ditto.
9350         * event-msw.c (mswindows_wnd_proc): ditto
9351
9352         * glyphs-widget.c (image_instantiator_layout): use
9353         subwindow_decode_domain.
9354         (image_instantiator_buttons): ditto.
9355         (image_instantiator_edit_fields): ditto.
9356         (image_instantiator_combo_box): ditto.
9357         (image_instantiator_scrollbar): ditto.
9358         (image_instantiator_progress_guage): ditto.
9359         (image_instantiator_tree_view): ditto.
9360         (image_instantiator_tab_control): ditto.
9361         (image_instantiator_labels): ditto.
9362         (image_instantiator_layout): ditto.
9363
9364         * glyphs.c: add instance error checking to many functions.
9365         (instantiate_image_instantiator): decode device from cache_domain.
9366         (image_instantiate): partially rewrite by using
9367         decode_image_instantiator_domain to determine what domain the
9368         instance needs to be cached in.
9369         (decode_image_instantiator_domain): new function. Determine what
9370         domain the image needs to be cached in.
9371         (check_window_subwindow_cache): new error checking function.
9372         (check_instance_cache_mapper): ditto.
9373         (check_image_instance_structure): ditto.
9374         (subwindow_decode_domain): new function. Encodes a window as a
9375         subwindow's cache domain.
9376         (image_instantiator_format_create): use it for text and
9377         subwindows.
9378
9379 2000-04-21  Andy Piper  <andy@xemacs.org>
9380
9381         * glyphs.c (image_instance_device): new function.
9382         (image_instance_frame): new function.
9383         (image_instance_window): new function.
9384         (image_instance_live_p): new function.
9385
9386         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9387         cache to nil.
9388
9389         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9390         (IMAGE_INSTANCE_DOMAIN): new accessor.
9391         (XIMAGE_INSTANCE_DOMAIN): ditto.
9392
9393         * glyphs-x.c (x_finalize_image_instance): device->domain.
9394
9395         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9396         (mswindows_finalize_image_instance): ditto.
9397
9398         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9399         (gif_instantiate): ditto.
9400         (png_instantiate): ditto.
9401         (tiff_instantiate): ditto.
9402
9403         * glyphs.c (instantiate_image_instantiator): use domain rather
9404         than device.
9405         (mark_image_instance): device -> domain.
9406         (print_image_instance): ditto.
9407         (finalize_image_instance): ditto.
9408         (image_instance_equal): ditto.
9409         (allocate_image_instance): ditto.
9410         (Fcolorize_image_instance): ditto.
9411         (query_string_geometry): ditto.
9412         (image_instantiate): ditto
9413         (query_string_font): ditto.
9414         (image_instantiate): ditto.
9415         (update_subwindow): ditto.
9416         (unmap_subwindow): ditto.
9417         (map_subwindow): ditto.
9418         (subwindow_instantiate): ditto.
9419
9420         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9421         (DOMAIN_FRAME): ditto.
9422         (DOMAIN_WINDOW): ditto.
9423         (DOMAIN_LIVE_P): ditto.
9424         (XDOMAIN_DEVICE): ditto.
9425         (XDOMAIN_FRAME): ditto.
9426         (XDOMAIN_WINDOW): ditto.
9427
9428         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9429         a valid specifier domain.
9430
9431 2000-04-19  Andy Piper  <andy@xemacs.org>
9432
9433         * glyphs-widget.c (syms_of_glyphs_widget): remove
9434         widget-callback-current-channel.
9435         (vars_of_glyphs_widget): ditto.
9436         * glyphs.h: ditto
9437
9438         * gui.c (get_gui_callback): revert to previous behaviour.
9439
9440 2000-04-18  Andy Piper  <andy@xemacs.org>
9441
9442         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9443         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9444         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9445
9446         * glyphs.c (image_instance_equal): add margin_width.
9447         (image_instance_hash): ditto.
9448
9449         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9450         (layout_query_geometry): ditto.
9451         (layout_layout): ditto.
9452         (syms_of_glyphs_widget): add margin-width.
9453         (image_instantiator_layout): allow margin-width.
9454
9455         * glyphs.c (update_widget_instances): make a normal function.
9456         (syms_of_glyphs): remove Qupdate_widget_instances.
9457         * glyphs.h: ditto.
9458
9459         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9460         so that we don't corrupt ideas about the last event or
9461         command. Remove widget-callback-current-channel fiddling.
9462         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9463
9464 2000-05-01  Martin Buchholz <martin@xemacs.org>
9465
9466         * XEmacs 21.2.33 is released.
9467
9468 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9469
9470         * make-src-depend: Allow dots in header file name.
9471
9472 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9473
9474         * mule-charset.h (struct charset_lookup): Add
9475         next_allocated_1_byte_leading_byte and
9476         next_allocated_2_byte_leading_byte.
9477         * mule-charset.c: Move above two variables so that those values
9478         will be dumped.
9479
9480 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9481
9482         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9483         when string length is zero.
9484         (find_charsets_in_emchar_string): Ditto.
9485
9486 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9487
9488         * lisp.h: extern Qdialog and Qmenubar.
9489
9490         * gui-x.c: added events.h.
9491                 also fixed typo which made the file uncompilable.
9492
9493         * general.c: Added Qmenubar and Qdialog
9494
9495 2000-04-28  Ben Wing  <ben@xemacs.org>
9496
9497         * frame-msw.c (mswindows_init_frame_1):
9498         * frame-msw.c (mswindows_mark_frame):
9499         * event-msw.c (mswindows_enqueue_dispatch_event):
9500         * console-msw.h:
9501         * console-msw.h (struct mswindows_frame):
9502         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9503         there are now three hash tables for callbacks.
9504         mswindows_enqueue_dispatch_event is no longer static.
9505
9506         * dialog-x.c (maybe_run_dbox_text_callback):
9507         * dialog-x.c (dbox_descriptor_to_widget_value):
9508         switch to new cons3 form for callbacks.
9509
9510         * glyphs-msw.c (mswindows_register_gui_item):
9511         * glyphs-msw.c (mswindows_widget_instantiate):
9512         * glyphs-msw.c (add_tree_item):
9513         * glyphs-msw.c (add_tab_item):
9514         new image instance parameter, so it can be passed to callback-ex.
9515         respect :callback-ex as well as :callback.
9516
9517         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9518         add :callback-ex.
9519
9520         * glyphs.c (print_image_instance):
9521         prettify, e.g. now prints widget type.
9522
9523         * gui-x.h:
9524         certain funs have new image instance parameter.
9525
9526         * gui.c:
9527         * gui.c (get_gui_callback):
9528         * gui.c (gui_item_add_keyval_pair):
9529         * gui.c (gui_item_init):
9530         * gui.c (gui_add_item_keywords_to_plist):
9531         * gui.c (mark_gui_item):
9532         * gui.c (gui_item_hash):
9533         * gui.c (gui_item_equal):
9534         * gui.c (copy_gui_item):
9535         * gui.c (syms_of_gui):
9536         recognize callback-ex in a number of places.
9537         also, fix the annoying "can't get out of yes-no dialog" bug.
9538
9539         * gui.h:
9540         * gui.h (struct Lisp_Gui_Item):
9541         recognize callback-ex in a number of places.
9542
9543         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9544         new parameter in button_item_to_widget_value.
9545
9546         * glyphs-x.c (x_update_widget):
9547         * glyphs-x.c (x_button_instantiate):
9548         * glyphs-x.c (x_button_update):
9549         * glyphs-x.c (x_progress_gauge_instantiate):
9550         * glyphs-x.c (x_edit_field_instantiate):
9551         * glyphs-x.c (x_combo_box_instantiate):
9552         * glyphs-x.c (x_tab_control_instantiate):
9553         * glyphs-x.c (x_label_instantiate):
9554         new image instance parameter in various places.
9555
9556         * event-Xt.c:
9557         * event-Xt.c (enqueue_Xt_dispatch_event):
9558         this fun gets exported.
9559
9560         * gui-msw.c:
9561         * gui-msw.c (mswindows_handle_gui_wm_command):
9562         handle both :callback and :callback-ex, and generate our own
9563         event because it's one of the callback-ex arguments.
9564
9565         * gui-x.c:
9566         * gui-x.c (popup_selection_callback):
9567         handle both :callback and :callback-ex, and generate our own
9568         event because it's one of the callback-ex arguments.
9569         * gui-x.c (button_item_to_widget_value):
9570         * gui-x.c (gui_items_to_widget_values_1):
9571         * gui-x.c (gui_item_children_to_widget_values):
9572         * gui-x.c (gui_items_to_widget_values):
9573         new image instance parameter in various places.
9574
9575         * fns.c (Freplace_list):
9576         fix small typo in doc string.
9577
9578         * lisp.h:
9579         declare enqueue_Xt_dispatch_event.
9580
9581 2000-04-28  Ben Wing  <ben@xemacs.org>
9582
9583         * buffer.c:
9584         * buffer.c (Frecord_buffer):
9585         * buffer.c (syms_of_buffer):
9586         delete record-buffer-hook.
9587
9588         * fns.c:
9589         * fns.c (Freplace_list):
9590         * fns.c (syms_of_fns):
9591         new primitive replace-list.
9592
9593         * frameslots.h:
9594         slot for old buffer-alist.
9595
9596         * lisp.h:
9597         exfun replace-list.
9598
9599         * redisplay.c:
9600         * redisplay.c (redisplay_frame):
9601         * redisplay.c (syms_of_redisplay):
9602         * redisplay.c (vars_of_redisplay):
9603         new hook buffer-list-changed-hook.
9604         call it.
9605
9606 2000-04-27  Ben Wing  <ben@xemacs.org>
9607
9608         * extents.h: extern in_modeline_generation.
9609
9610         * redisplay.c (generate_formatted_string_db): set
9611         in_modeline_generation.
9612
9613         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9614         flags if in modeline generation.  otherwise frame-modified-tick
9615         is ticked far too often.
9616         Declare in_modeline_generation.
9617
9618 2000-04-26  Ben Wing  <ben@xemacs.org>
9619
9620         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9621         option.
9622         (vars_of_emacs): add quick-build as an error-checking option.
9623         A bit kludgy, but there doesn't seem much point in creating
9624         a real var for this.
9625
9626         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9627
9628 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9629
9630         * redisplay.h (struct display_line): Add a new variable,
9631         line_continuation.
9632
9633         * redisplay.c (create_text_block): Set dl->line_continuation if
9634         the line continues.
9635         (create_string_text_block): Ditto.
9636         (regenerate_window_incrementally): Use line_continuation instead
9637         of searching continuation glyph.
9638         (add_margin_runes): Call add_glyph_rune.
9639         (add_glyph_rune): Handle margin glyph.
9640
9641 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9642
9643         * filelock.c (fill_in_lock_file_name):
9644         ANSIfy.
9645         Check for IS_ANY_SEP instead of '/'.
9646         (lock_file_1):
9647         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9648         Never check errno without first seeing that system call failed.
9649         (unlock_file): Add GCPRO.
9650         (Flock_buffer): Fix docstring.
9651         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9652
9653 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9654
9655         * sysdep.c (get_pty_max_bytes):
9656         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9657         strings longer than 252 bytes.
9658
9659         * md5.c: Unconditionally include ANSI header <limits.h>
9660
9661         * glyphs-x.c (convert_EImage_to_XImage):
9662         * lisp-union.h (union Lisp_Object):
9663         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9664
9665 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9666
9667         * filelock.c (current_lock_owner): Remove unused variable o, p.
9668
9669 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9670
9671         * callint.c: Remove multiply defined symbol Qlet
9672         (syms_of_callint): ditto.
9673
9674 2000-04-14  Andy Piper  <andy@xemacs.org>
9675
9676         * general.c (syms_of_general): add last-command, this-command, let
9677         and funcall.
9678
9679         * lisp.h: declare various symbols.
9680
9681         * glyphs.h: declare Qwidget_callback_current_channel;
9682
9683         * glyphs-widget.c (syms_of_glyphs_widget): add
9684         Qgui_callback_current_channel.
9685         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9686
9687         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9688         widget-callback-current-channel when invoking the interactive
9689         arg. Also bind last-command and next-command when invoking the
9690         widget updates.
9691         * gui-x.c (popup_selection_callback): ditto.
9692
9693         * gui.c (get_gui_callback): massage args so that we are always
9694         calling eval. This allows us to add our own variable bindings
9695         outside.
9696
9697         * glyphs-x.c (x_button_instantiate): use
9698         gui_items_to_widget_values since this is GC safe.
9699         (x_progress_gauge_instantiate): ditto.
9700         (x_edit_field_instantiate): ditto.
9701         (x_label_instantiate): ditto.
9702
9703         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9704         (emacs_Xt_event_widget_focus_out): new function
9705         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9706         focus.
9707         (emacs_Xt_event_add_widget_actions): new function. add focus
9708         functions as actions.
9709         (init_event_Xt_late): use it.
9710
9711 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9712
9713         * event-stream.c (Fdispatch_event): Doc fix.
9714
9715 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9716
9717         * postgresql.c: Remove all references to PQsetenv*.
9718
9719         * postgresql.h: Remove references to PGsetenvHandler object.
9720         * lrecord.h (lrecord_type): Ditto.
9721
9722 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9723
9724         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9725         real_heigh and real_width members, and accessor macros for these.
9726
9727         * glyphs-msw.c (init_image_instance_geometry): New function.
9728         (init_image_instance_from_dibitmap): Use it.
9729         (mswindows_resource_instantiate): Use it.
9730         (init_image_instance_from_xbm_inline): Use it.
9731         (mswindows_initialize_image_instance_mask): Use real bitmap
9732         geometry.
9733         (mswindows_create_resized_bitmap): Ditto.
9734         (mswindows_create_resized_mask): Ditto.
9735
9736         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9737         and bitmap to their surface size.
9738
9739 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9740
9741         * process-unix.c (unix_send_process): Guard against process MIA
9742         after Faccept_process_output.
9743
9744 2000-04-11  Ben Wing  <ben@xemacs.org>
9745
9746         * eval.c (unbind_to_hairy): fix brokenness introduced by
9747         nanosecond speed improvements.
9748
9749 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9750
9751         * sunplay.c (init_device): To play sounds correctly, the device
9752         apparently needs to be initialized at least once by XEmacs.  Make
9753         it so.
9754
9755 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9756
9757         * redisplay.c (add_margin_runes): Add text image glyph
9758           handling.
9759
9760 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9761
9762         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9763         gcc is newer than 2.5.
9764
9765 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9766
9767         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9768
9769         * fns.c (size_bit_vector):
9770         * alloc.c (size_vector):
9771         (make_vector_internal):
9772         (make_bit_vector_internal):
9773         (sweep_bit_vectors_1):
9774         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9775
9776 2000-04-06  Andy Piper  <andy@xemacs.org>
9777
9778         * gmalloc.c (malloc): undo previous change.
9779         (malloc): ditto.
9780         (free): ditto.
9781         (realloc): ditto.
9782
9783 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9784
9785         * line-number.c (buffer_line_number): Revert to former version.
9786
9787 2000-04-06  Andy Piper  <andy@xemacs.org>
9788
9789         * gmalloc.c (malloc): add error checking.
9790         (malloc): ditto.
9791         (free): ditto.
9792         (realloc): ditto.
9793
9794         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9795         button_item_to_widget_value arg.
9796
9797         * glyphs-x.c (x_button_instantiate): add extra
9798         button_item_to_widget_value arg.
9799         (x_progress_gauge_instantiate): ditto.
9800         (x_edit_field_instantiate): ditto.
9801         (x_label_instantiate): ditto.
9802
9803         * gui-x.c (gui_items_to_widget_values_1): add extra
9804         button_item_to_widget_value arg.
9805         (button_item_to_widget_value): add extra menu_item_p arg.
9806
9807         * gui-x.h: change signature of button_item_to_widget_value.
9808
9809         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9810         button_item_to_widget_value arg.
9811
9812 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9813
9814         * buffer.h (struct buffer): auto_save_modified should be long.
9815
9816 2000-04-05  Andy Piper  <andy@xemacs.org>
9817
9818         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9819         type.
9820         (button_query_geometry): give a little more room so that athena
9821         buttons fit.
9822
9823 2000-04-05  Andy Piper  <andy@xemacs.org>
9824
9825         * faces.c (complex_vars_of_faces): The widget face should inherit
9826         the font of the gui-element face.
9827
9828 2000-04-04  Andy Piper  <andy@xemacs.org>
9829
9830         * glyphs-x.c (x_button_update): new function. unconditionally
9831         update a button's state when the instance is dirty.
9832         (image_instantiator_format_create_glyphs_x): add x_button_update.
9833         (x_widget_instantiate): remove old resize cruft.
9834
9835 2000-04-02  Andy Piper  <andy@xemacs.org>
9836
9837         * frame.c (change_frame_size_1): The introduction of gutters means
9838         that we need to allow 0 as a potential frame dimension.
9839
9840 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9841
9842         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9843         image glyph if allow_cursor.
9844         (add_hscroll_rune): Don't allow cursor to border glyph.
9845         (create_text_block): Ditto.
9846
9847         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9848         text not in buffer.
9849         (redisplay_output_layout): Call ensure_face_cachel_complete for
9850         text image glyph.
9851
9852
9853 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9854
9855         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9856
9857         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9858         not in buffer
9859
9860         * redisplay-tty.c (tty_output_display_block): Delete the routine
9861         for text image glyph
9862         * redisplay-x.c (x_output_display_block): ditto
9863         * redisplay-msw.c (mswindows_output_display_block): ditto
9864
9865 2000-02-02  Mike Alexander  <mta@arbortext.com>
9866
9867         Note: Some of these were committed by accident as part of other
9868         patches.
9869
9870         * regex.c (regex_compile): Avoid compiler warnings.
9871
9872         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9873
9874         * nt.h: Declare term_ntproc correctly.
9875
9876         * nt.c: Remove incorrect declaration of get_home_directory which
9877         is declared correctly in lisp.h.
9878
9879         * keymap.c (get_keyelt): Avoid compiler warnings.
9880         (raw_lookup_key_mapper): Avoid compiler warnings.
9881
9882         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9883
9884         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9885
9886         * filemode.c (mode_string): Avoid compiler warnings.
9887
9888         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9889         avoid warning.
9890
9891         * events-mod.h: Undef some things that winuser.h defines differently.
9892
9893         * data.c (Faset): Avoid compiler warnings.
9894
9895         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9896
9897 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9898
9899         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9900         Fall through to simple beep on error.
9901         Replace "extern" by real header file.
9902
9903         * linuxplay.c: Use nativesound.h
9904         (play_sound_data): Return error code. Be less verbose on error.
9905
9906         * sunplay.c: Use nativesound.h
9907         (play_sound_data): Return error code. Be less verbose on error.
9908
9909         * ntplay.c: Use nativesound.h
9910         (play_sound_data): Return fake error code
9911
9912         * sgiplay.c: Use nativesound.h
9913         (play_sound_data): Return error code
9914
9915         * hpplay.c: Use nativesound.h, partially implement
9916         new error code. Break compilation until finished.
9917         (play_sound_data): error code.
9918
9919         * nativesound.h (play_sound_file):
9920           (play_sound_data): Prototype in new header.
9921
9922 2000-03-31  Andy Piper  <andy@xemacs.org>
9923
9924         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9925         for toggle and radio buttons.
9926         (image_instantiator_buttons): use it.
9927
9928 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9929
9930         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9931         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9932         found. Scrollbar event probably belonged to some old config.
9933
9934 2000-03-31  Andy Piper  <andy@xemacs.org>
9935
9936         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9937         than 1.
9938         (initialize_widget_image_instance): default layout to
9939         LAYOUT_HORIZONTAL rather than 0.
9940         (widget_instantiate): reverse the item list at the end rather than
9941         every iteration.
9942         (layout_layout): re-code for the border text at the front of the
9943         item list rather than at the end.
9944         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9945         provided by the user.
9946         (widget_query_geometry): comment.
9947
9948 2000-03-30  Andy Piper  <andy@xemacs.org>
9949
9950         * glyphs-widget.c (image_instantiator_layout): allow standard
9951         widget keywords in layouts.
9952
9953         * gutter.c (output_gutter): cope with nil gutter contents.
9954
9955         * frame.c (Fset_frame_properties): add gutter docs.
9956
9957 2000-03-29  Andy Piper  <andy@xemacs.org>
9958
9959         * toolbar-msw.c (TBSTYLE_FLAT): add.
9960         (mswindows_output_toolbar): minor fiddling.
9961
9962 2000-03-29  Andy Piper  <andy@xemacs.org>
9963
9964         * gutter.c (output_gutter): force gutter size recalculation if
9965         what we are trying to display won't fit.
9966         (update_gutter_geometry): new function. A per-gutter version of
9967         update_frame_gutter_geometry.
9968         (update_frame_gutter_geometry): use it.
9969         (redraw_exposed_gutter): add extra debugging output.
9970
9971 2000-03-28  Mike Alexander  <mta@arbortext.com>
9972
9973         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9974         (pdump_file_unmap): Implement it on Windows
9975         (pdump_file_get): Save alocated handles for pdump_file_unmap
9976
9977 2000-03-28  Andy Piper  <andy@xemacs.org>
9978
9979         * gui.c (get_gui_callback): treat Quit specially.
9980
9981 2000-03-27  Andy Piper  <andy@xemacs.org>
9982
9983         * glyphs.c (image_instantiate): be careful to check in the same
9984         way we assigned.
9985
9986 2000-03-27  Didier Verna  <didier@xemacs.org>
9987
9988         * config.h.in: define the proper SMART_INCLUDE macro.
9989         handle renaming of `foo_h_path' to `foo_h_file'.
9990
9991         * database.c: ditto.
9992
9993         * emacs.c: ditto.
9994
9995         * linuxplay.c: ditto.
9996
9997         * terminfo.c: ditto.
9998
9999         * tooltalk.h: ditto.
10000
10001 2000-03-27  Andy Piper  <andy@xemacs.org>
10002
10003         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10004         gets updated whenever the face might have changed.
10005
10006 2000-03-26  Mike Alexander  <mta@arbortext.com>
10007
10008         * dumper.c (pdump_resource_free): Fix the comment.
10009
10010 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10011
10012         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10013
10014 2000-03-22  Mike Alexander  <mta@arbortext.com>
10015
10016         * dumper.c: Include Windows headers on Windows
10017         (pdump_resource_free): Add a body to the function
10018         (pdump_load): exe_name -> exe_path and add some comments.
10019
10020 2000-03-25  Mike Alexander  <mta@arbortext.com>
10021
10022         * gui.c (copy_gui_item_tree): Return a value in all cases
10023
10024 2000-03-21  Didier Verna  <didier@xemacs.org>
10025
10026         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10027         lwlib/config.h.in.
10028         (SMART_INCLUDE): new macro.
10029         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10030         the proper location.
10031
10032         * postgresql.c: use it.
10033
10034         * inline.c: ditto.
10035
10036 2000-03-24  Andy Piper  <andy@xemacs.org>
10037
10038         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10039         do this.
10040
10041 2000-03-24  Andy Piper  <andy@xemacs.org>
10042
10043         * redisplay-output.c (compare_runes): use image_instance_changed
10044         to detect changes. Do not depend on glyphs_changed, only depend on
10045         dirtiness.
10046          (redisplay_output_layout): add debug messages.
10047         (compare_runes): ditto.
10048
10049         * glyphs.h: declare new functions.
10050         (struct Lisp_Image_Instance): remove percent and associated
10051         accessors.
10052
10053         * gui.h: declare new copying functions.
10054
10055         * gui.c (copy_gui_item_tree): new function.
10056         (copy_gui_item): new function.
10057         (gui_item_id_hash): revert to standard hash.
10058         (gui_item_hash): ditto.
10059         (gui_item_hash_internal): deleted.
10060         (mark_gui_item): mark value.
10061         (gui_item_add_keyval_pair): add value.
10062         (gui_item_init): ditto.
10063         (gui_add_item_keywords_to_plist): ditto.
10064         (gui_item_equal): ditto.
10065         (syms_of_gui): add Q_value.
10066
10067         * glyphs-x.c (x_progress_gauge_update): use pending items and
10068         value for setting the state.
10069         (x_update_widget): don't set items from pending here.
10070
10071         * glyphs-widget.c (update_widget): update items here.
10072         (progress_gauge_set_property): use items for storing value. Put
10073         new value in pending items.
10074
10075         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10076         items for new value. Convert percent -> value.
10077         (mswindows_tab_control_update): don't update items here.
10078
10079         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10080         (update_subwindow): ditto.
10081         (image_instance_changed): new function. Compare hash values and
10082         past and present widget items.
10083         (image_instantiate): We more careful about where we instantiate
10084         things.
10085         (image_instantiate): add error checking.
10086
10087         * gutter.c (syms_of_gutter): use -hook.
10088
10089 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10090
10091         * console-tty.c (Fset_console_tty_input_coding_system): Use
10092         Qkeyboard.
10093         (Fset_console_tty_output_coding_system): Use Qterminal.
10094         (tty_init_console): Use Qkeyboard and Qterminal.
10095
10096 2000-03-21  Ben Wing  <ben@xemacs.org>
10097
10098         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10099         From Mike Alexander <mta@arbortext.com>.
10100
10101 2000-03-21  Ben Wing  <ben@xemacs.org>
10102
10103         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10104         process brokenness.  Proper implementation to come.
10105         * callproc.c:
10106         Rename call-process-internal to old-call-process-internal.
10107         New impl. in process.el.
10108
10109 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10110
10111         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10112
10113 2000-03-20  Andy Piper  <andy@xemacs.org>
10114
10115         * glyphs.c (full_list_hash): make hashes of the same elements in
10116         different orders return different values.
10117
10118 2000-03-20  Martin Buchholz <martin@xemacs.org>
10119
10120         * XEmacs 21.2.32 is released.
10121
10122 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10123
10124         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10125         (DFC_MALLOC_USE_CONVERTED_DATA):
10126         Add aliasing-safe casts to allow use with char* or unsigned char*
10127         lvalues.
10128
10129         * eldap.c (Fldap_open):
10130         (Fldap_search_basic):
10131         (Fldap_add):
10132         (Fldap_modify):
10133         Make C++-compilable.
10134         Make sure GCPRO'ed variables are initialized.
10135         Use temp variables to avoid repeated calls to Flength.
10136
10137 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10138
10139         * sysfile.h:
10140         Make sure PATH_MAX is always defined.
10141         Include limits.h for PATH_MAX.
10142         Deprecate use of MAXPATHLEN.
10143
10144 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10145
10146         * emacs.c: Add reinit_vars_of_fileio.
10147         * symsinit.h: Add reinit_vars_of_fileio.
10148         * fileio.c (reinit_vars_of_fileio): New.
10149         * fileio.c (Fmake_temp_name):
10150         Initialize temp_name random number from microseconds to make
10151         collisions even less likely.  Initialize always at process startup
10152         time.  (make-temp-name) used to return the same file name twice in
10153         a row when PDUMP.
10154         Random stylistic fiddling.
10155         Comment fixes.
10156
10157 2000-03-20  Andy Piper  <andy@xemacs.org>
10158
10159         * glyphs.c (image_instantiate): allow text glyphs to be
10160         instantiated in the minibuffer window.
10161
10162 2000-03-19  Andy Piper  <andy@xemacs.org>
10163
10164         * glyphs.c (image_instance_hash): be careful about which items we
10165         hash on.
10166
10167         * glyphs-widget.c (tab_control_set_property): record into pending
10168         items rather than the actual items.
10169
10170         * glyphs-x.c (x_update_widget): use pending items to update with.
10171
10172         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10173         to update with.
10174
10175         * glyphs.c (mark_image_instance): mark pending items.
10176
10177         * window.c (Fset_window_configuration): record the buffer.
10178         (Fselect_window): totally revert previous change which breaks many
10179         things.
10180
10181 2000-03-18  Andy Piper  <andy@xemacs.org>
10182
10183         * glyphs-msw.c (mswindows_tab_control_update): force selected
10184         item.
10185
10186         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10187         window domain cache, otherwise we get inconsistencies at
10188         startup. There is something fishy at startup which can lead to the
10189         minibuffer being the selected window when the gutter content is
10190         instantiated.
10191
10192         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10193         gcpros.
10194         (parse_gui_item_tree_children): ditto.
10195         (parse_gui_item_tree_item): ditto.
10196
10197         * glyphs.c (Fupdate_widget_instances): return something.
10198
10199 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10200
10201         * window.c (Fselect_window): Undo 2000-03-17 change.
10202
10203 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10204
10205         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10206         against v7.0 libraries.  Insta-coredump city until the postgres
10207         folks fix it.
10208
10209 2000-03-17  Andy Piper  <andy@xemacs.org>
10210
10211         * faces.c (complex_vars_of_faces): don't give the widget face an
10212         inherited background pixmap.
10213
10214         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10215         selected item.
10216
10217         * event-stream.c (Fdispatch_non_command_events): return something.
10218
10219         * gutter.c (output_gutter): use widget face.
10220         (clear_gutter): ditto.
10221
10222         * NEWS: adjust again.
10223
10224         * window.c (Fselect_window): make sure this runs to completion to
10225         avoid oddities with Fset_window_configuration.
10226         (Fcurrent_window_configuration): in general do not save the
10227         minibuffer as the selected window.
10228
10229         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10230
10231 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10232
10233         * emacs.c (Frunning_temacs_p): Revert previous patch.
10234         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10235
10236 2000-03-16  Andy Piper  <andy@xemacs.org>
10237
10238         * glyphs-x.c (x_tab_control_update): if no widget values then
10239         return.
10240
10241         * NEWS: update for new features.
10242
10243         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10244         synthetic event to the native system.
10245         (reinit_vars_of_event_Xt): set force_event_pending to
10246         emacs_Xt_force_event_pending.
10247
10248         * events.h (struct event_stream): add force_event_pending.
10249
10250         * specifier.c (recompute_one_cached_specifier_in_window): add
10251         comment.
10252
10253         * redisplay.c (redisplay_frame): don't call
10254         update_frame_subwindows. Reset subwindow cachels when
10255         subwindows_changed, removing this was an optimization too far.
10256
10257         * redisplay-output.c (compare_runes): reorganize so that we catch
10258         glyph changes when we want them. Set optimize_output when this
10259         would help layouts.
10260         (redisplay_output_layout): remove frame_really_changed, use
10261         optimize_output instead.
10262
10263         * redisplay-msw.c (mswindows_output_display_block): reset
10264         optimize_output after outputting a glyph.
10265         * redisplay-x.c (x_output_display_block): ditto.
10266         * redisplay-tty.c (tty_output_display_block): ditto.
10267
10268         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10269         functions.
10270         (gutter_specs_changed): do specific gutter positions.
10271         (top_gutter_specs_changed): new function. Only update the
10272         specified gutter specs.
10273         (bottom_gutter_specs_changed): ditto.
10274         (left_gutter_specs_changed): ditto.
10275         (right_gutter_specs_changed): ditto.
10276
10277         * gui.c (gui_item_hash_internal): new function, does a real hash.
10278         (gui_item_id_hash): use it.
10279         (gui_item_hash): hash the eval'ed gui_item.
10280
10281         * gui-x.c (popup_selection_callback): send an eval event to call
10282         Fupdate_widget_instances.
10283
10284         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10285         to call Fupdate_widget_instances.
10286
10287         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10288         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10289
10290         * glyphs.c: (update_frame_subwindows): deleted.
10291         (Fupdate_widget_instances): new function for updating the dirty
10292         state of widgets that might have changed.
10293         (syms_of_glyphs): add Qupdate_widget_instances.
10294         (full_list_hash): hash a list completely.
10295         (image_instance_hash): use it for items and properties.
10296
10297         * frame-msw.c (mswindows_size_frame_internal): remove unused
10298         variable.
10299
10300         * faces.h (struct face_cachel): fix comment.
10301
10302         * event-stream.c (Fdispatch_non_command_events): new
10303         function. Process non-command events, forcing an event cycle
10304         beforehand.
10305         (syms_of_event_stream): declare.
10306         (event_stream_force_event_pending): new function. Force an event
10307         on the native event queue so that an event cycle will occur next
10308         time we check.
10309
10310         * event-msw.c:
10311         (struct ntpipe_shove_stream):
10312         (mswindows_enqueue_dispatch_event):
10313         (mswindows_dequeue_dispatch_event):
10314         (mswindows_cancel_dispatch_event):
10315         (mswindows_pump_outstanding_events):
10316         (mswindows_drain_windows_queue):
10317         (mswindows_handle_paint):
10318         (mswindows_wnd_proc):
10319         (mswindows_key_to_emacs_keysym):
10320         (get_process_input_waitable):
10321         (emacs_mswindows_delete_stream_pair): re-indent file.
10322         (mswindows_need_event): do not process further fds if the windows
10323         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10324         fixes the 100% cpu problem.
10325         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10326
10327 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10328
10329         * alloc.h: New.
10330         * dumper.h: New.
10331         * dumper.c: New.
10332
10333         * emacs.c: Moved dump file searching to dumper.c.
10334         (Frunning_temacs_p): Fixed.
10335
10336         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10337         last_lrecord_type_index_assigned.
10338
10339 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10340
10341         * symsinit.h: Added reinit parameter to init_console_stream
10342         declaration.
10343
10344         * lisp.h: Added file parameter to pdump_load declaration.
10345
10346         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10347         support.  Added dump file searching.
10348
10349         * config.h.in: Added EMACS_PROGNAME.
10350
10351         * console-stream.c (init_console_stream): Fix reinitialisation
10352         when running from temacs.
10353
10354         * alloc.c (pdump): Add id support.
10355         (pdump_load): Add file parameter and signature/id support.
10356
10357         * Makefile.in.in: Add full pdump support.
10358
10359 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10360
10361         * postgresql.c: Update documentation to reflect latest code
10362         status.
10363         (print_result): Show tuple counts in printed representation when
10364         appropriate.
10365         (Fpq_put_nbytes): MULE-ize.
10366         (Fpq_get_line_async): Ditto.
10367
10368 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10369
10370         * postgresql.c (Fpq_lo_import): Fix return value.
10371         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10372
10373 2000-03-13  Ben Wing  <ben@xemacs.org>
10374
10375         * alloc.c (pdump_load):
10376         Fix compile warning under mswin.
10377
10378 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10379
10380         * postgresql.c: Mule-ization, bug fixes.
10381         Use PG_CODING to encapsulate coding system name changes.
10382         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10383         (pg-coding-system): Create.
10384
10385         (Fpq_conn_defaults): Mule-ize.
10386         (Fpq_connectdb): Mule-ize & bug fix.
10387         (Fpq_connect_start): Mule-ize.
10388         (Fpq_set_client_encoding): Mule-ize.
10389         (Fpq_finish): Document `DEAD' connection status.
10390         (Fpq_clear): Ditto.
10391         (Fpq_pgconn): Mule-ize.
10392         (Fpq_exec): Mule-ize & bug fix.
10393         (Fpq_send_query): Ditto.
10394         (Fpq_get_result): Ditto.
10395         (Fpq_res_status): Mule-ize.
10396         (Fpq_result_error_message): Mule-ize.
10397         (Fpq_ntuples): fix comments.
10398         (Fpq_fname): Mule-ize.
10399         (Fpq_fnumber): Mule-ize.
10400         (Fpq_ftype): fix comments.
10401         (Fpq_get_value): Mule-ize.
10402         (Fpq_cmd_status): Ditto.
10403         (Fpq_cmd_tuples): Ditto.
10404         (Fpq_oid_value): Ditto.
10405         (Fpq_notifies): Ditto.
10406         (Fpq_lo_import): Ditto.
10407         (Fpq_lo_export): Ditto.
10408         (Fpq_get_line): Ditto.
10409         (Fpq_put_line): Mule-ize and bug fix.
10410         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10411
10412 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10413
10414         * postgresql.c (vars_of_postgresql): Mule-ize.
10415         (Fpq_conn_defaults): Ditto.
10416
10417 2000-03-12  Ben Wing  <ben@xemacs.org>
10418
10419         * alloc.c (Fmake_byte_code):
10420         * alloc.c (debug_string_purity_print):
10421         * alloc.c (pdump_backtrace):
10422         * alloc.c (pdump_get_indirect_count):
10423         * alloc.c (pdump_register_sub):
10424         * alloc.c (pdump_register_object):
10425         * alloc.c (pdump_register_struct):
10426         * alloc.c (pdump_dump_data):
10427         * alloc.c (pdump_reloc_one):
10428         Minor cleanups.
10429
10430         * console-msw.c:
10431         * console-msw.c (GetConsoleHwnd):
10432         * console-msw.c (msw_hide_console):
10433         * console-msw.c (msw_show_console):
10434         * console-msw.c (msw_ensure_console_buffered):
10435         * console-msw.c (msw_output_console_string):
10436         * console-msw.c (console_type_create_mswindows):
10437
10438         a) Added functions to manipulate the console window for use with
10439         shell support.
10440
10441         b) Added support for writing text to the console, which is now
10442         used under Windows when xemacs is not being run non-interactively,
10443         to write text that would otherwise be destined for stdout because
10444         under these circumstances, text written to stdout tends to
10445         disappear and not be seen.
10446
10447         * console-msw.h:
10448         * event-Xt.c:
10449         * event-Xt.c (x_event_to_emacs_event):
10450         * event-Xt.c (describe_event_window):
10451         * events-mod.h (XEMACS_MOD_CONTROL):
10452         * events.c:
10453         * events.c (Fmake_event):
10454         * events.c (character_to_event):
10455         * events.c (event_to_character):
10456         * events.c (format_event_object):
10457         * events.c (Fevent_modifiers):
10458         * events.h:
10459         * events.h (struct key_data):
10460         * events.h (struct button_data):
10461         * events.h (struct misc_user_data):
10462         * frame-x.c (Fcde_start_drag_internal):
10463         * frame-x.c (Foffix_start_drag_internal):
10464         * gpmevent.c (Freceive_gpm_event):
10465         * keymap.c:
10466         * keymap.c (bucky_sym_to_bucky_bit):
10467         * keymap.c (control_meta_superify):
10468         * keymap.c (make_key_description):
10469         * keymap.c (keymap_lookup_directly):
10470         * keymap.c (create_bucky_submap):
10471         * keymap.c (keymap_store):
10472         * keymap.c (define_key_check_and_coerce_keysym):
10473         * keymap.c (define_key_parser):
10474         * keymap.c (define_key_alternate_name):
10475         * keymap.c (Fdefine_key):
10476         * keymap.c (raw_lookup_key_mapper):
10477         * keymap.c (struct map_keymap_unsorted_closure):
10478         * keymap.c (map_keymap_unsorted_mapper):
10479         * keymap.c (map_keymap_sort_predicate):
10480         * keymap.c (map_keymap_sorted):
10481         * keymap.c (accessible_keymaps_mapper_1):
10482         * keymap.c (where_is_recursive_mapper):
10483         * keymap.c (describe_map_mapper):
10484         * keymap.c (describe_map_sort_predicate):
10485         * keymap.c (describe_map):
10486         * keymap.c (complex_vars_of_keymap):
10487         And a number of other files, the key modifier preprocessor
10488         constants that xemacs uses have names that conflict with constants
10489         defined under MS Windows for other purposes, so they were renamed
10490         to begin with the prefix XEMACS_. The variables that hold such
10491         modifiers were changed to consistently be of type int to fix
10492         various compile warnings.
10493
10494         * console.c (complex_vars_of_console):
10495         * device.c:
10496         * device-msw.c:
10497         * device-msw.c (mswindows_finish_init_device):
10498         * device-msw.c (msw_get_workspace_coords):
10499         * device-msw.c (mswindows_device_system_metrics):
10500         and various other files, added support for a new
10501         device property called offset-workspace which returns the position
10502         of the upper left corner of the workspace area and goes along with
10503         the existing size-workspace property.
10504
10505         * dialog-msw.c:
10506         * dialog-msw.c (push_bufbyte_string_as_unicode):
10507         * dialog-msw.c (mswindows_popup_dialog_box):
10508         Added support for XEmacs-style accelerator specifications in
10509         button text.  Note: I didn't add support for this under X Windows,
10510         and somebody needs to do this.
10511
10512         * dialog.c:
10513         * dialog.c (Fpopup_dialog_box):
10514         Documented the support for accelerators that was just mentioned.
10515
10516         editfns.c (get_home_directory): Changed behavior under Windows
10517         when HOME not defined; former behavior was irretrievably broken.
10518
10519         * emacs.c:
10520         * emacs.c (main_1):
10521         * emacs.c (main):
10522         * minibuf.c (clear_echo_area_internal):
10523         * minibuf.c (echo_area_append):
10524         * print.c:
10525         * print.c (std_handle_out_external):
10526         * print.c (std_handle_out_va):
10527         * print.c (fatal):
10528         * print.c (write_string_to_stdio_stream):
10529         * print.c (output_string):
10530         * print.c (debug_print):
10531         * print.c (debug_backtrace):
10532         * print.c (debug_short_backtrace):
10533         Cleaned up the code that prints text to stdout so that this can be
10534         changed to output into a console window instead under MS Windows,
10535         as described above.
10536
10537         * eval.c:
10538         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10539         * eval.c (internal_catch):
10540         * eval.c (unwind_to_catch):
10541         * eval.c (throw_or_bomb_out):
10542         * eval.c (condition_case_1):
10543         * eval.c (signal_1):
10544         * eval.c (check_error_state_sanity):
10545         * eval.c (call_with_suspended_errors_1):
10546         * eval.c (call_with_suspended_errors):
10547         * eval.c (reinit_vars_of_eval):
10548         Added code to catch throw loops and check for a pesky bug that may
10549         be gone now.
10550
10551         * event-msw.c:
10552         * event-msw.c (key_needs_default_processing_p):
10553         * event-msw.c (mswindows_wnd_proc):
10554         * event-msw.c (mswindows_modifier_state):
10555         * event-msw.c (emacs_mswindows_quit_p):
10556         * event-msw.c (vars_of_event_mswindows):
10557         a) Added support for using the alt key to select menu items as is
10558         standard under MS Windows.  This is controlled using the variable
10559         menu-accelerator-enabled, just like under X Windows.  There is an
10560         option on the options menu to turn this support on.  I really
10561         think that it should be on by default under Windows, but I'm not
10562         going to make this change yet.
10563
10564         b)  Added support for dynamic display size changes under Windows.
10565
10566         * event-stream.c:
10567         * event-stream.c (maybe_echo_keys):
10568         * event-stream.c (Fnext_event):
10569         * event-stream.c (command_builder_find_leaf):
10570         * event-stream.c (lookup_command_event):
10571         * event-stream.c (execute_command_event):
10572         * event-stream.c (pre_command_hook):
10573         * event-stream.c (post_command_hook):
10574         * event-stream.c (syms_of_event_stream):
10575         * event-stream.c (vars_of_event_stream):
10576         * event-stream.c (complex_vars_of_event_stream):
10577         * events.h (struct command_builder):
10578
10579         a) Tried to clean up a little bit the horribly written x-specific
10580         accelerator code that crept into this file.  I moved this code
10581         into menubar-x.c where it belongs. I also needed to move the
10582         command builder structure into the file events.h because it is
10583         accessed directly by this accelerator code.  What I didn't do, but
10584         which should be done at some point, is to properly abstract this
10585         code using device methods instead of the kludgy way that it
10586         currently hooks into the event code.
10587
10588         b) Added the lisp variables this-command-properties and
10589         last-command- properties, which should be used to synchronize two
10590         adjacent commands in preference to playing games with the variable
10591         this-command, which is typically what happens.
10592
10593         c) Added some slightly nasty code to hook into the lisp support
10594         for shifted- motion-key selection.  This is actually necessary for
10595         somewhat complicated reasons, which are described in
10596         simple.el. (NB: I think the proper thing would be to have the code
10597         that calls the pre and post command hooks also call out to generic
10598         lisp functions in simple.el, where all built-in stuff could be
10599         added.  I will think about this more.)
10600
10601         * event-unixoid.c (poll_fds_for_input):
10602         * lread.c (readchar):
10603         * redisplay-tty.c (tty_clear_frame):
10604         * redisplay-x.c (x_get_gc):
10605         * signal.c (interrupt_signal):
10606         And a whole bunch of other files: fixed up places that printed
10607         directly to stderr to instead call the function stderr_out so that
10608         the changes I made under Windows work correctly.
10609
10610         * filemode.c (mode_string):
10611         Warning fixes.
10612
10613         * frame-msw.c:
10614         * frame-msw.c (mswindows_size_frame_internal):
10615         Fixed the computation of frame size and position to keep the frame
10616         within the workspace area, rather than within the physical
10617         dimensions of the screen, so that the frame doesn't overlap window
10618         manager decorations, such as the start menu and toolbar, typically
10619         at the bottom of the screen.
10620
10621         * frame.c (vars_of_frame):
10622         Changed the default frame title format under MS Windows to consist
10623         of buffername-XEmacs, which is standard under MS Windows.  I think
10624         it might be a good idea to change this everywhere because I think
10625         it is superior to the current frame title format, but this is the
10626         kind of change that is likely to cause some people to get annoyed,
10627         so I'm not making it.
10628
10629         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10630
10631         * gui-msw.c (mswindows_handle_gui_wm_command):
10632         Fixed compile warnings.
10633
10634         * gui-x.c:
10635         * gui-x.c (strdup_and_add_accel):
10636         * gui-x.c (button_item_to_widget_value):
10637         * gui-x.h:
10638         Added code to automatically put an accelerator onto the beginning
10639         of menu items that don't have one as is now the standard, and is
10640         described more later.  Also fixed things so that the menu item
10641         name can be an evaluated expression, again a new standard.
10642
10643         * gui.c:
10644         * gui.c (gui_item_add_keyval_pair):
10645         * gui.c (make_gui_item_from_keywords_internal):
10646         * gui.c (gui_add_item_keywords_to_plist):
10647         * gui.c (gui_item_accelerator):
10648         * gui.c (gui_name_accelerator):
10649         * gui.c (gui_item_included_p):
10650         * gui.c (gui_item_display_flush_left):
10651         * gui.c (gui_item_display_flush_right):
10652         * gui.c (parse_gui_item_tree_item):
10653         * gui.c (parse_gui_item_tree_children):
10654         * gui.c (parse_gui_item_tree_list):
10655         Mule-ized.  Cleanup.  GCPRO addition.
10656
10657         * line-number.c (buffer_line_number):
10658         * lisp.h:
10659         * lisp.h (EMACS_INT_MAX):
10660         Added the manifest constant EMACS_INT_MIN corresponding to the
10661         existing constant EMACS_INT_MAX.  This is partially to fix compile
10662         warnings under Windows, and partly for cleanliness.
10663
10664         * menubar-msw.c:
10665         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10666         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10667         * menubar-msw.c (displayable_menu_item):
10668         * menubar-msw.c (populate_menu_add_item):
10669         * menubar-msw.c (populate_or_checksum_helper):
10670         * menubar-msw.c (populate_menu):
10671         * menubar-msw.c (update_frame_menubar_maybe):
10672         * menubar-msw.c (prune_menubar):
10673         * menubar-msw.c (msw_char_is_accelerator):
10674         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10675         * menubar-msw.c (mswindows_handle_wm_command):
10676         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10677         * menubar-msw.c (mswindows_handle_wm_initmenu):
10678         * menubar-msw.c (mswindows_update_frame_menubars):
10679         * menubar-msw.c (mswindows_free_frame_menubars):
10680         * menubar-msw.c (mswindows_popup_menu):
10681         Fixed a bug in handling accelerators where an extra character
10682         would be displayed in the menu item.  Also generalized the
10683         function displayable_menu_item because it is now used by the
10684         dialog box code as well.  And finally, added code in the functions
10685         that create the menubar to extract a list of accelerators for the
10686         top level menubar, which is used in the event code to determine
10687         whether a particular alt-key combination should be used to invoke
10688         a menu item, or should be passed through to access the standard
10689         XEmacs keymap binding for this key combination.
10690
10691         Much needed GCPROing.
10692
10693         * menubar-x.c:
10694         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10695         * menubar-x.c (menu_item_descriptor_to_widget_value):
10696         * menubar-x.c (restore_in_menu_callback):
10697         * menubar-x.c (x_popup_menu):
10698         * menubar-x.c (menu_move_up):
10699         * menubar-x.c (menu_move_down):
10700         * menubar-x.c (menu_move_left):
10701         * menubar-x.c (menu_move_right):
10702         * menubar-x.c (menu_select_item):
10703         * menubar-x.c (command_builder_operate_menu_accelerator):
10704         * menubar-x.c (menu_accelerator_junk_on_error):
10705         * menubar-x.c (command_builder_find_menu_accelerator):
10706         * menubar-x.c (Faccelerate_menu):
10707         * menubar.h:
10708         Moved a whole bunch of code here that was previously in
10709         event-stream.c as described above.  There is also code connected
10710         to the new standard of adding an accelerator to the beginning of
10711         menu items that don't have one as described above and below.
10712
10713         * menubar.c:
10714         * menubar.c (menu_parse_submenu_keywords):
10715         * menubar.c (Fmenu_find_real_submenu):
10716         * menubar.c (Fnormalize_menu_item_name):
10717         * menubar.c (syms_of_menubar):
10718         * menubar.c (vars_of_menubar):
10719         * menubar.c (complex_vars_of_menubar):
10720
10721         a) Cleaned up a bunch of documentation and improved it.
10722
10723         b) XEmacs now automatically adds an accelerator onto the beginning
10724         of any menu items that don't have one.  I did this because there
10725         will inevitably be some menu items on the main menubar that don't
10726         have accelerators on them because the package that adds that
10727         particular menu item hasn't yet been fixed up to have accelerators
10728         in them and it looked rather strange to have some items with and
10729         some items without accelerators, especially since even in items
10730         without accelerators, you can, at least under windows, still
10731         access the item through an accelerator corresponding to the first
10732         character in the item's name.  If people don't like this behavior,
10733         I can add a variable to turn it off optionally, but I'm not sure
10734         this is a good idea because we really do need to have accelerators
10735         on all of the menu items, and if a package doesn't like the
10736         accelerators being put on the first character, then it should put
10737         the accelerators where they belong.
10738
10739         c) I made a behavior change, which is that the descriptor that
10740         specifies the text of the menu item, which formerly was just a
10741         string, can now also be an evaluated expression.  This makes this
10742         descriptor parallel with all of the others, which could also be
10743         evaluated expressions.  This also obviates the need for the
10744         keyword :label, which was previously listed in the documentation
10745         as unimplemented, and which was for the same purpose.
10746
10747         d) GCPROing.
10748
10749         * ntproc.c:
10750         * ntproc.c (new_child):
10751         * ntproc.c (sys_spawnve):
10752         * ntproc.c (find_child_console):
10753         * ntproc.c (sys_kill):
10754         Fixed compile warnings.  By the way, this file should really go
10755         away entirely, and this will happen as soon as Kirill makes his
10756         final round of process cleanups, which affect the function
10757         call-process.
10758
10759         * process-nt.c:
10760         * process-nt.c (struct nt_process_data):
10761         * process-nt.c (find_process_from_pid):
10762         * process-nt.c (send_signal_the_nt_way):
10763         * process-nt.c (enable_child_signals):
10764         * process-nt.c (find_child_console):
10765         * process-nt.c (send_signal_the_95_way):
10766         * process-nt.c (nt_finalize_process_data):
10767         * process-nt.c (ensure_console_window_exists):
10768         * process-nt.c (nt_create_process):
10769         * process-nt.c (nt_kill_child_process):
10770         * process-nt.c (nt_kill_process_by_pid):
10771         * process-nt.c (nt_open_network_stream):
10772         * process-nt.c (vars_of_process_nt):
10773         Copied over code from Emacs 20.5 to correctly send signals to sub-
10774         processes under Windows 95.  Also added code to automatically
10775         create and hide console window when a sub-process is created under
10776         Windows 95, which obviates the need for the separate runemacs.exe
10777         executable, and finally implemented some variables that were
10778         implemented in Emacs 20.5, but previously not in XEmacs.  These
10779         include mswindows- start-process-share-console and
10780         mswindows-start-process-inherit-error-mode. (Both of these only
10781         apply to Windows 95.)
10782
10783         * regex.c (regex_compile): Fixed a compile warning.
10784
10785         * select-msw.c:
10786         * select-msw.c (mswindows_own_selection):
10787         * select-msw.c (mswindows_get_foreign_selection):
10788         * select-msw.c (mswindows_disown_selection):
10789         * select-msw.c (console_type_create_select_mswindows):
10790         * select-msw.c (syms_of_select_mswindows):
10791         Cleaned up the file and implemented the device method
10792         selection_exists_p, which had accidentally been left out.  Also
10793         removed four lisp functions that were remnants from before the
10794         time when the selection code was properly device abstracted.
10795         These functions are no longer needed because there are generic
10796         equivalents, and because they were added recently and don't exist
10797         in FSF Emacs, I don't think there's any problem with just deleting
10798         them.
10799
10800         * sysdep.c:
10801         * sysdep.c (sys_subshell):
10802         Fixed a compile warning, although in this case there's probably
10803         something wrong with this code, and it ought to be looked into
10804         more thoroughly by somebody who understands it.
10805
10806         * window.c:
10807         * window.c (Fwindow_text_area_height):
10808         * window.c (Fwindow_width):
10809         * window.c (Fwindow_full_width):
10810         * window.c (Fwindow_pixel_width):
10811         * window.c (debug_print_window):
10812         * window.c (syms_of_window):
10813         Added functions window-text-area-height and window-full-width,
10814         which are functions for returning various width and height
10815         characteristics of a window. (One of these functions is necessary
10816         for making the file dialog box work correctly, and the other one
10817         was added for completeness.)  Also added a table to the
10818         documentation for window-height which describes the entire scheme
10819         for accessing width and height characteristics of a window.
10820
10821 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10822
10823         * nt.c (fstat): Added a comment for another problem with
10824         non-encapsulated [f]stat(), reported by Adrian Aichner
10825         <aichner@ecf.teradyne.com>.
10826
10827 2000-03-11  Andy Piper  <andy@xemacs.org>
10828
10829         * window.c (make_dummy_parent): initialize subwindow instance
10830         cache.
10831         (Fset_window_configuration): zero extent_modiff.
10832
10833 2000-03-10  Andy Piper  <andy@xemacs.org>
10834
10835         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10836         more changes can be triggered.
10837         (Fredisplay_frame): ditto.
10838         (Fredraw_device): ditto.
10839         (Fredisplay_device): ditto.
10840         (redisplay_frame): make non-static.
10841         (redisplay_frame): call update_frame_gutter_geometry outside of
10842         display proper.
10843
10844         * gutter.h: declare update_frame_gutter_geometry.
10845
10846         * redisplay.h: declare redisplay_frame.
10847
10848         * gutter.c (update_frame_gutter_geometry): move geometry changes
10849         in update_frame_gutters here. Geometry changes can only occur
10850         outside of redisplay.
10851         (update_frame_gutters): remove geometry change code.
10852         (Fredisplay_gutter_area): make sure that we are in display when we
10853         update and that we have flushed any size changes.
10854
10855 2000-03-11  Andy Piper  <andy@xemacs.org>
10856
10857         * alloc.c (pdump_dump_data): remove i & count shadows.
10858
10859 2000-02-27  Mike Alexander  <mta@arbortext.com>
10860
10861         * sysdep.h: Declare pdump_read_file
10862
10863         * sysdep.c (pdump_read_file): New function
10864
10865         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10866         dump data
10867
10868 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10869
10870         * lrecord.h: add `lrecord_type_pgsetenv'.
10871
10872 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10873
10874         * symsinit.h: declare (vars|syms)_of* functions.
10875         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10876
10877 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10878
10879         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10880
10881         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10882         GCCs.
10883
10884         * emacs.c (main_1): Call postgres initialization code.
10885
10886         * postgresql.h: New file.  PostgreSQL RDBMS support.
10887         * postgresql.c: New file.
10888
10889 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10890
10891         * redisplay-output.c (redisplay_output_display_block): Disable
10892         redundant code.
10893
10894 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10895
10896         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10897         (Fcanna_henkan_next): Ditto.
10898         (Fcanna_bunsetu_henkou): Ditto.
10899         (Fcanna_henkan_kakutei): Ditto.
10900         (Fcanna_henkan_end): Ditto.
10901         (Fcanna_henkan_quit): Ditto.
10902         (Fcanna_henkan_next): Set retun value correctly.
10903         (c2mu): Use unsigned char instead of signed char.
10904
10905 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10906
10907         * emacs.c (main_1): Always call syms_of_gui.
10908         * inline.c: include gui.h
10909
10910 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10911
10912         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10913         converted to Lisp_Object.
10914         (Qtop_bottom): New variable.
10915         (syms_of_redisplay): Initialize it.
10916         * redisplay.h (Vvisible_bell): Ditto.
10917         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10918         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10919         only flash top and bottom.
10920
10921 2000-03-08  Andy Piper  <andy@xemacs.org>
10922
10923         * buffer.c (Frename_buffer): record new buffer name the right way.
10924
10925 2000-03-08  Andy Piper  <andy@xemacs.org>
10926
10927         * glyphs.c (update_subwindow): increase hash depth so that widget
10928         items get picked up properly.
10929
10930         * redisplay-output.c (compare_runes): increase hash depth so that
10931         widget items get picked up properly.
10932
10933 2000-03-08  Andy Piper  <andy@xemacs.org>
10934
10935         * gutter.c (output_gutter): add some debug.
10936
10937         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10938         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10939         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10940
10941         * redisplay-output.c (compare_runes): use display_hash to
10942         determine if glyphs really are not the same.
10943
10944         * glyphs.c (update_subwindow): check display_hash to see if
10945         anything really needs to be updated. If not then do
10946         nothing. Record the display_hash after updating.
10947         (image_instance_equal): compare the image_instance face also.
10948
10949 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10950
10951         * redisplay.h: Fix comment style.
10952
10953 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10954
10955         * consle-msw.h (struct mswindows_frame):
10956         Added new member paint_pending to indicate whether a WM_PAINT
10957         magic event has been queued for this frame.
10958
10959         * event-msw.c (mswindows_drain_windows_queue):
10960         Don't queue a WM_PAINT magic event if one is already queued.
10961         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10962
10963         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10964
10965 2000-03-07  Didier Verna  <didier@xemacs.org>
10966
10967         * dired.c: #include `regex.h' after `sysfile.h'.
10968
10969 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10970
10971         * sound.c (init_nas_sound): Fix compiler warning.
10972
10973         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10974         (FREE_STRUCT_P):
10975         (MARK_STRUCT_AS_FREE):
10976         (MARK_STRUCT_AS_NOT_FREE):
10977         Make `gcc -fstrict-aliasing' work properly.
10978
10979 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10980
10981         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10982         (mswindows_delete_device): Call CoUnnitialize().
10983
10984         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10985
10986 2000-02-25    <CraigL@DyCon.com>
10987
10988         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10989         <errno.h>.
10990
10991         * sysdep.c: This extern declaration for environ prevents MinGW
10992         from finding the variable in CRTDLL.DLL.
10993
10994         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10995         windows headers.
10996         (SHGFI_EXETYPE): ..
10997         (WM_MOUSEWHEEL): ..
10998         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10999         definitions.
11000         (MMRESULT): Removed, now defined in cygwin's windows headers.
11001         (TIMECAPS): ..
11002         (uid_t,gid_t,pid_t,ssize_t): ..
11003         (_timeb): Removed, MinGW defines both _timeb and timeb.
11004         (HAVE_H_ERRNO): Added.
11005         (HAVE_TZNAME): Added, configure is not detecting this.
11006
11007 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11008
11009         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11010         * syntax.c (syntax_match): Use it.
11011
11012         * cmds.c: Import auto-fill-chars from FSF Emacs.
11013         (Vauto_fill_chars): New variables.
11014         (internal_self_insert): Check Vauto_fill_chars.
11015         (vars_of_cmds):
11016         Declare auto-fill-chars as a Lisp variable and initialize it.
11017
11018 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11019
11020         * fileio.c (Fmake_symbolic_link):
11021         (Ffile_symlink_p):
11022         Run handlers even if local machine doesn't have symlinks.
11023
11024 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11025
11026         * event-msw.c (mswindows_drain_windows_queue):
11027         Don't generate paint magic events for non-XEmacs frames.
11028
11029 2000-03-05  Andy Piper  <andy@xemacs.org>
11030
11031         * redisplay.c (redisplay_frame): generate_displayable_area and
11032         friends assumes that we are not in GC, we therefore have to make
11033         sure that this doesn't happen.
11034
11035         * gutter.c (calculate_gutter_size): generate_displayable_area
11036         assumes that we are not in GC, we therefore have to make sure that
11037         this doesn't happen.
11038
11039 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11040
11041         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11042
11043 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11044
11045         * redisplay.c (regenerate_window): Make sure we set a sane value
11046         for end_pos even if we jump out of the loop.
11047         (regenerate_window): Answer Ben's question :-).
11048         (start_end_of_last_line): Add may_error argument.
11049         (start_of_last_line):
11050         (end_of_last_line): Pass may_error = 0.
11051         (end_of_last_line_may_error): New function.
11052         (pixel_to_glyph_translation): Use it, so we don't crash in
11053         event_to_glyph.
11054
11055 2000-03-04  Andy Piper  <andy@xemacs.org>
11056
11057         * window.h (struct window): add gutter_extent_modiff.
11058
11059         * window.c (allocate_window): zero out gutter_extent_modiff.
11060
11061         * redisplay.h: declare sync_display_line_structs.
11062
11063         * redisplay.c (add_glyph_rune): add a better comment.
11064
11065         * redisplay-output.c (sync_display_line_structs): made non-static.
11066         (compare_runes): remove unneccesary glyph cachel access.
11067
11068         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11069
11070         * gutter.c (output_gutter): don't output the gutter if extent
11071         changes only involve extents in buffers. use 4 sets of display
11072         lines.
11073         (gutter_extent_signal_changed_region_maybe): new function. Mark
11074         extents in gutters as changed.
11075         (update_frame_gutters): use 4 sets of display lines.
11076         (reset_gutter_display_lines): ditto.
11077         (free_frame_gutters): ditto.
11078         (redraw_exposed_gutter): force output of gutters.
11079
11080         * frame.h (struct frame): add 4 sets of gutter display lines.
11081
11082         * extents.c: (extent_changed_for_redisplay): signal changes to
11083         extents in strings in the gutter as well as extents in buffers.
11084
11085 2000-03-02  Andy Piper  <andy@xemacs.org>
11086
11087         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11088
11089         * frame.c (Fmake_frame): make sure the gutters get initialized
11090         after the frame is visible.
11091         (set_frame_selected_window): re-arrange compilation macros a
11092         little.
11093         (change_frame_size_1): mark gutters changed.
11094
11095         * device.c (Fset_device_class): mark gutters changed.
11096
11097 2000-03-01  Andy Piper  <andy@xemacs.org>
11098
11099         * window.c (window_top_frame_gutter_height): deleted.
11100         (window_bottom_frame_gutter_height): ditto.
11101         (window_left_frame_gutter_height): ditto.
11102         (window_right_frame_gutter_height): ditto.
11103         (window_top_gutter_height): don't use them.
11104         (window_bottom_gutter_height): ditto.
11105         (window_left_gutter_width): ditto.
11106         (window_right_gutter_width): ditto.
11107         (Fsplit_window): ditto.
11108         (Fwindow_pixel_edges): don't use border dimensions here.
11109
11110         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11111         (update_scrollbar_instance): ditto.
11112
11113         * redisplay.c (generate_modeline): don't take gutters into account.
11114         (generate_modeline): ditto.
11115         (redisplay_frame): small gutter display optimization.
11116
11117         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11118
11119         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11120         gutters into account.
11121
11122         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11123         for window position and type.
11124
11125         * gutter.c (get_gutter_coords): fix for frame gutters.
11126         (update_frame_gutters): update frame geometry if the gutters have
11127         changed.
11128         (init_frame_gutters): record current gutter geometries.
11129
11130         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11131         var.
11132         (mswindows_widget_instantiate): ditto.
11133
11134         * frame.h (struct frame): add current_gutter_bounds.
11135
11136         * frame.c (change_frame_size_1): position window and minibuffer
11137         appropriately taking into account the frame gutters.
11138
11139         * frame-x.c: (x_initialize_frame_size): take into account the
11140         frame gutters.
11141
11142 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11143
11144         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11145
11146 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11147
11148         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11149
11150 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11151
11152         * file-coding.c (reset_decoding_stream): Clear previous
11153         detection state when autodetect.
11154
11155 2000-02-29  Didier Verna  <didier@xemacs.org>
11156
11157         * extents.c (set_extent_glyph_1): don't require extents to be
11158         attached.
11159
11160 2000-02-27  Andy Piper  <andy@xemacs.org>
11161
11162         * gutter.c (Fset_default_gutter_position): don't default left and
11163         right gutter visibility to t.
11164         (Fset_default_gutter_position): run
11165         default-gutter-position-changed-hook.
11166         (syms_of_gutter): add default-gutter-position-changed-hook.
11167
11168 2000-02-26  Andy Piper  <andy@xemacs.org>
11169
11170         * specifier.c (Fmake_specifier): add gutter references.
11171
11172         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11173
11174         * lisp.h: declare Fvalid_plist_p.
11175
11176         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11177         as changed.
11178         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11179         well as its visibility so that it gets reconstructed.
11180         (construct_window_gutter_spec): new function. Construct a string
11181         to be displayed in the gutter from a plist of strings. Take care
11182         to only use elements that are declared as visible.
11183         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11184         WINDOW_GUTTER.
11185         (gutter_validate): allow plists of strings in the specifier.
11186         (gutter_specs_changed): construct the real_gutter from the gutter
11187         specs using construct_window_gutter_spec.
11188         (gutter_visible_validate): gutter-visible is a new specifier type.
11189         (Fgutter_visible_specifier_p): new function for the new specifier.
11190         (syms_of_gutter): declare gutter-visible and
11191         Fgutter_visible_specifier_p.
11192         (specifier_type_create_gutter): intitalize new gutter-visible
11193         specifier.
11194         (reinit_specifier_type_create_gutter): ditto.
11195         (specifier_vars_of_gutter): use new specifier type for gutter
11196         visibility.
11197         (init_frame_gutters): construct real_gutter correctly.
11198         (Fgutter_specifier_p): beef up documentation.
11199         (Fgutter_size_specifier_p): ditto.
11200
11201         * winslots.h: add real_gutter slots.
11202
11203 2000-02-25  Andy Piper  <andy@xemacs.org>
11204
11205         * device-msw.c: Be kind to older cygwin versions. From Raymond
11206         Toy <toy@rtp.ericsson.se>.
11207
11208         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11209         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11210
11211 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11212
11213         * elhash.c (MARK_OBJ): Practice macro hygiene.
11214
11215 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11216
11217         * miscplay.c: s/__inline__/inline/g;
11218         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11219         (get_device_compdc): INLINE ==> static inline
11220         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11221         find -name '*.h' | \
11222         xargs global-replace \
11223         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11224
11225 2000-02-25  Andy Piper  <andy@xemacs.org>
11226
11227         * window.c (window_top_frame_gutter_height): new function.
11228         (window_top_window_gutter_height): ditto.
11229         (window_top_gutter_height): use them.
11230         (window_bottom_frame_gutter_height): new function.
11231         (window_bottom_window_gutter_height): ditto.
11232         (window_bottom_gutter_height): use them.
11233         (window_left_window_gutter_width): new function.
11234         (window_left_frame_gutter_width): ditto.
11235         (window_left_gutter_width): use them.
11236         (window_right_window_gutter_width): new function.
11237         (window_right_frame_gutter_width): ditto.
11238         (window_right_gutter_width): use them.
11239         (window_pixel_height): new function. calulate window pixel height
11240         with frame gutter involvement.
11241         (Fsplit_window): calculate new sizes taking frame gutters into
11242         account.
11243         (window_char_height_to_pixel_height): don't include frame gutters.
11244         (window_char_height): use window_pixel_height.
11245         (window_pixheight): rename from window_pixel_height.
11246         (change_window_height): use it.
11247         (window_pixel_height_to_char_height): don't include frame gutters.
11248         (window_char_width_to_pixel_width): ditto.
11249
11250 2000-02-25  Andy Piper  <andy@xemacs.org>
11251
11252         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11253         if it is.
11254
11255 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11256
11257         * alloc.c (staticpro):
11258         (staticpro_nodump):
11259         (dumpstruct):
11260         (dumpopaque):
11261         (pdump_wire):
11262         (pdump_wire_list):
11263         (compact_string_chars):
11264         (pdump_dump_wired):
11265         Convert:  if (foo) abort();  ==>  assert (! foo);
11266
11267         * eldap.c (Fldap_search_basic):
11268         (Fldap_add):
11269         (Fldap_modify):
11270         (Fldap_delete):
11271         Fix compiler warnings, and possible crashes if (random) return
11272         value were to be used.
11273
11274 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11275
11276         * device-msw.c: Workaround ResetDC failure.
11277
11278         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11279         applying a devmode.
11280
11281         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11282         (mswindows_text_width): Do not start printer page.
11283
11284         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11285
11286         * glyphs-msw.c: Added image methods to msprinter console and
11287         msprinter-specific image instantiation.
11288
11289 2000-02-20  Mike Alexander  <mta@arbortext.com>
11290
11291         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11292         to avoid crashes when selection-sets-clipboard is on
11293         (mswindows_own_selection): ditto
11294
11295 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11296
11297         * glyphs-msw.c:
11298         * redisplay-msw.c (get_frame_dc):
11299         (get_frame_compdc):
11300         * console-msw.h:
11301         * device-msw.c (mswindows_init_device):
11302         (mswindows_delete_device):
11303         (msprinter_init_device):
11304         (msprinter_delete_device):
11305         * frame-msw.c (mswindows_init_frame_1):
11306         (mswindows_delete_frame):
11307         (msprinter_init_frame_3):
11308         (msprinter_delete_frame): Move compatible DC to device object from
11309         frame object, for both mswindows and msprinter. Only one at a time
11310         is needed, it is a real waste to have one per frame!
11311
11312 2000-02-23  Andy Piper  <andy@xemacs.org>
11313
11314         * glyphs.c: add dynamic width and height elements.
11315         (image_instance_equal): ditto.
11316
11317         * glyphs-widget.c (widget_query_geometry): calculate width and
11318         height dynamically if required.
11319         (initialize_widget_image_instance): initialize dynamic dimensions.
11320         (widget_instantiate): pick-up dynamic dimensions.
11321
11322         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11323         dynamic determination. Add appropriate macros.
11324
11325         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11326         dimensions safe.
11327         (WINDOW_GUTTER_SIZE): ditto.
11328         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11329
11330         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11331         inline.
11332         (get_frame_dc): ditto.
11333
11334         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11335         here.
11336
11337 2000-02-23  Martin Buchholz <martin@xemacs.org>
11338
11339         * XEmacs 21.2.31 is released.
11340
11341 2000-02-22  Ben Wing <ben@xemacs.org>
11342
11343         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11344
11345 2000-02-22  Andy Piper  <andy@xemacs.org>
11346
11347         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11348
11349 2000-02-21  Mike Sperber <mike@xemacs.org>
11350
11351         * .dbxrc:
11352         * .gdbinit:
11353         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11354         variables.
11355
11356 2000-02-21  Mike Sperber <mike@xemacs.org>
11357
11358         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11359
11360 2000-02-21  Martin Buchholz <martin@xemacs.org>
11361
11362         * XEmacs 21.2.30 is released.
11363
11364 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11365
11366         Performance hacking.
11367         * *.c (syms_of_*):
11368         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11369         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11370         * emacs.c (main_1):
11371         * lisp.h (DEFUN):
11372         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11373         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11374         * symeval.h (DEFVAR_SYMVAL_FWD):
11375         * symbols.c (guts_of_unbound_marker):
11376         Make all c_readonly objects also lisp_readonly and marked for life.
11377         * lrecord.h (struct lrecord_implementation):
11378         Document flags better.
11379         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11380         * lrecord.h (DECLARE_LRECORD):
11381         * lrecord.h (XSETRECORD):
11382         * lrecord.h (RECORDP):
11383         * lrecord.h (RECORD_TYPEP):
11384         * lrecord.h (RECORD_MARKER): New.
11385         * lrecord.h (error_check_*):
11386         * lrecord.h (CONCHECK_NONRECORD):
11387         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11388         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11389         * lrecord.h (set_lheader_implementation):
11390         * lrecord.h (enum lrecord_type): New.
11391         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11392         * alloc.c (disksave_object_finalization_1):
11393         * alloc.c (mark_object):
11394         * alloc.c (lrecord_type_index):
11395         * alloc.c (tick_lcrecord_stats):
11396         * alloc.c (Fgarbage_collect):
11397         * alloc.c (init_alloc_once_early):
11398         * alloc.c (pdump_load):
11399         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11400         * alloc.c (lrecord_type_index): Delete.
11401         Make lisp object type indexes be constant.
11402           Makes (byte-compile) 5% faster.
11403         Put all marker functions into their own array.
11404           Makes (garbage-collect) 5% faster.
11405         Optimize SYMBOL_VALUE_MAGIC_P.
11406           Makes (byte-compile) 2-3% faster.
11407         * config.h.in (gc_checking_assert): New.
11408         * alloc.c: Use gc_checking_assert().
11409         * .dbxrc: Make compatible with new object type implementation.
11410         * .gdbinit: Make compatible with new object type implementation.
11411         * alloc.c: Delete all symbols defined only for debugging, such as
11412         Lisp_Type_Vector and lrecord_charset.
11413
11414 2000-02-21  Andy Piper  <andy@xemacs.org>
11415
11416         * gui-msw.c (Fmswindows_shell_execute): fix file location
11417         problems.
11418
11419         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11420         unshowing so that set_window_buffer doesn't undo
11421         kill_buffer_hook's hard work.
11422
11423         * glyphs-widget.c (tab_control_query_geometry): don't count the
11424         first item when calculating geometry.
11425
11426         * glyphs.c (map_subwindow): remove redundant code.
11427         (update_frame_subwindows): be more circumspect about when to
11428         update subwindows.
11429
11430         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11431         when items haven't changed. Update faces if faces have changed as
11432         well as just the widget face.
11433         (x_tab_control_update): Update faces if faces have changed as well
11434         as just the widget face.
11435
11436 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11437
11438         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11439         registration.
11440         (build_syscolor_string): Use mswindows_color_to_string to try to
11441         get a named color.
11442         (mswindows_device_system_metrics): Reverse the foreground and
11443         background colors so that they match the documentation.
11444
11445         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11446         they match the default Windows palette.
11447         (mswindows_color_to_string): New function.
11448
11449 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11450
11451         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11452
11453 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11454
11455         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11456         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11457
11458         * symbols.c (init_symbols_once_early): Removed obsolete
11459         DATA_SEG_BITS related kludge.
11460         (defvar_magic): Ditto.
11461
11462         * malloc.c: Removed obsolete DATA_SEG_BITS
11463         * ralloc.c: Ditto.
11464         * mem-limits.h: Ditto.
11465
11466         * Makefile.in.in: Removed obsolete HAVE_SHM
11467         * emacs.c: Ditto.
11468
11469 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11470
11471         *  device-msw.c (mswindows_delete_device): Free DDE string
11472         handles.
11473
11474 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11475
11476         * keymap.c (get_keyelt):
11477         * unexnt.c (unexec):
11478         * vm-limit.c (memory_warnings):
11479         * ntheap.c (recreate_heap):
11480         * ntheap.h (UNINIT_PTR):
11481         * select-msw.c (Fmswindows_get_clipboard):
11482         (Fmswindows_set_clipboard):
11483         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11484         * objects-msw.c:
11485         * menubar-msw.c (displayable_menu_item):
11486         * glyphs-msw.c:
11487         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11488         * sysdep.c (sys_subshell):
11489         * process-nt.c (nt_create_process):
11490         * nt.c (normalize_filename):
11491         (dostounix_filename):
11492         (unixtodos_filename):
11493         * ntproc.c (win32_executable_type):
11494         * ntplay.c (play_sound_data_1):
11495         (play_sound_file):
11496         * editfns.c (get_home_directory):
11497         * event-msw.c (struct winsock_stream):
11498         (mswindows_dde_callback):
11499         * device-msw.c (msprinter_init_device):
11500         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11501
11502         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11503         mswindows_clear_toolbar were swapped!
11504
11505         * objects-msw.c:(colormap_t):
11506         (fontmap_t):
11507         * emacs.c (struct standard_args): Fixed const jumble.
11508
11509         * glyphs-widget.c (update_widget): Fixed comparison notation.
11510
11511         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11512
11513         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11514         __declspec(noreturn) syntax.
11515
11516 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11517
11518         * eldap.c (Fldap_open):
11519         (Fldap_search_basic):
11520         (Fldap_add):
11521         (Fldap_modify):
11522         Use new coding system conversion macros.
11523
11524 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11525
11526         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11527
11528 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11529
11530         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11531         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11532
11533         * eldap.c (Qadd, Qreplace): New constant symbols
11534         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11535         interruptions by XEmacs signals
11536         Remove unnecessary calls to slow_down_interrupts and
11537         speed_up_interrupts
11538         (Fldap_search_basic): Renamed from Fldap_search_internal
11539         Added new optional parameter VERBOSE that triggers the
11540         display of progress messages
11541         Remove unnecessary calls to slow_down_interrupts and
11542         speed_up_interrupts
11543         LDAP result code analysis rewritten
11544         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11545         (syms_of_eldap): Define the new symbols and functions
11546
11547
11548 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11549
11550         * realpath.c: Determine PATH_MAX maximally portably.
11551
11552         * insdel.c (bytecount_to_charcount): Optimize.
11553         The function used to be optimized for entirely ASCII sequences.
11554         Now it is optimized for successive characters from the same
11555         charset.  This also wins big for _mostly_ ASCII sequences.
11556
11557         * fileio.c (Ffile_truename): convert return from realpath() using
11558         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11559         - Rewrite GCPROing slightly.
11560
11561         * sysdep.c (sys_open): Do filename conversion, like all other
11562         sys_* functions.  Fixes bug:
11563         (let ((file-name-coding-system 'iso-8859-2))
11564            (write-region x y latin2-name))
11565         ==> writes filename using internal encoding.
11566
11567 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11568
11569         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11570         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11571         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11572         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11573         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11574         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11575         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11576         (CONST_IF_NOT_DEBUG): Delete.
11577         * alloc.c (this_one_is_unmarkable): Delete.
11578         (mark_object): Don't check for this_one_is_unmarkable. Use the
11579         c_readonly flag instead.
11580         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11581
11582 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11583
11584         * event-msw.c (mswindows_drain_windows_queue):
11585         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11586         away redundant repaint events.
11587
11588 2000-02-17  Andy Piper  <andy@xemacs.org>
11589
11590         * redisplay.h: declare mark_redisplay_structs.
11591
11592         * redisplay.c (redisplay_window):
11593         (redisplay_frame): don't check subwindows_state_changed.
11594         (mark_redisplay): mark gutters here.
11595
11596         * glyphs.c: (instantiate_image_instantiator): always layout if we
11597         haven't done so already.
11598         (allocate_image_instance): don't mark as dirty.
11599         (update_subwindow): bind inhibit_quit.
11600
11601         * gutter.c (mark_gutters): new function.
11602
11603         * glyphs-x.c (x_update_widget): Always resize to get round a
11604         widget bug.
11605
11606         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11607         breaking absolutely everything.
11608
11609         * gutter.h: declare mark_gutters.
11610
11611 2000-02-16  Martin Buchholz <martin@xemacs.org>
11612
11613         * XEmacs 21.2.29 is released.
11614
11615 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11616
11617         * fns.c (size_bit_vector): Fix computation of the size.
11618
11619 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11620
11621         * *.[ch]: Change CONST to const globally.
11622         find -name '*.[ch]' | \
11623         xargs global-replace \
11624         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11625         - Remove vestigial references to CONST_IS_LOSING
11626
11627 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11628
11629         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11630         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11631         events instead of dispatching them directly.
11632         (mswindows_handle_paint): New function to do repainting.
11633         (mswindows_wnd_proc):
11634         (emacs_mswindows_handle_magic_event): Call above function.
11635
11636 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11637
11638         * objects-msw.c (mswindows_create_font_variant): Return the new
11639         font handle.
11640         (initialize_font_instance): Get font metrics from the underlined
11641         variant of the font to cope with the case where the underlined
11642         font has a bigger descent.
11643
11644 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11645
11646         * gui.c (gui_item_accelerator): Return the first underlined
11647         character in item name.
11648
11649 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11650
11651         * lisp.h: Added Qprinter.
11652
11653         * general.c (syms_of_general): Initialized it.
11654
11655         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11656         (get_frame_dc):
11657         (get_frame_compdc): Made inline.
11658
11659         * console.h (struct console_methods): Added eject_page method.
11660
11661         * frame.h: Added FRAME_DISPLAY_P and friends.
11662         Aligned backslahes in many macros in more readable fashion.
11663         Added page_number to struct frame, and an accessor macro
11664         for it.
11665
11666         * defice.h: Added DEVICE_DISPLAY_P and friends.
11667
11668         * device.c (Fdevice_printer_p): Used these.
11669
11670         * frame.c (allocate_frame_core): Initialize page number.
11671         (Fprint_job_page_number):
11672         (Fprint_job_eject_page): Implemented.
11673
11674         * frame-msw.c (msprinter_eject_page): Added method.
11675         (msprinter_start_page): Added.
11676
11677         * window.c (Fwindow_truncated_p): Fixed docstring.
11678         (Fwindow_last_line_visible_height): Implemented.
11679
11680 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11681
11682         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11683
11684 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11685
11686         * syntax.c (scan_words): Always advance at least one character.
11687
11688 2000-02-13  Andy Piper  <andy@xemacs.org>
11689
11690         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11691         to make sure the glyph is in the cachels.
11692
11693         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11694         global image instance flag.
11695         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11696         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11697
11698         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11699         (Fset_image_instance_property): mark layout as changed.
11700         (invalidate_glyph_geometry_maybe): mark layout as changed.
11701         (glyph_width): use new NEEDS_LAYOUT macro.
11702         (glyph_ascent): ditto.
11703         (glyph_descent): ditto.
11704         (glyph_height): ditto.
11705         (image_instance_layout): mark layout as clean after laying out.
11706         (update_subwindow): don't mark layout as clean here.
11707
11708         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11709         should no longer be needed.
11710
11711         * glyphs-x.c (x_update_widget): sanitize asserts.
11712         (x_finalize_image_instance): sanitize assignment to widgets.
11713
11714         * glyphs-widget.c (widget_instantiate): don't need to clear the
11715         layout flag here.
11716
11717 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11718
11719         * sysdep.c (getcwd): Use standard prototype.
11720         * sysdep.h (getcwd): Use standard prototype.
11721
11722         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11723         (sequence, start, end).
11724         Remove redundant type checking.
11725         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11726         view of `caller-protects') to avoid a crash where the real fix was
11727         found elsewhere.
11728
11729 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11730
11731         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11732
11733         * s/sol2.h: Remove feature macro initialization.
11734
11735         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11736         (vector_hash): New.  Code from internal_hash.
11737         * lrecord.h:
11738         Fix up allocation subsystem comments.
11739
11740         * config.h.in: Add __EXTENSIONS__ for Solaris.
11741
11742         * systime.h (EMACS_GETTIMEOFDAY): New.
11743         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11744         Remove Solaris-specific code.
11745         Use void* for the (ignored) second arg for gettimeofday().
11746
11747         * elhash.c (hash_table_hash): Implement it, finally.
11748         * elhash.c:  Use hashcode_t.
11749
11750         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11751         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11752
11753         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11754         * fns.c (size_bit_vector):
11755         * alloc.c (size_vector):
11756         (make_vector_internal):
11757         (make_bit_vector_internal):
11758         (sweep_bit_vectors_1):
11759         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11760
11761 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11762
11763         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11764         Include strings.h to avoid warnings for bzero and strcasecmp.
11765
11766 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11767
11768         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11769         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11770
11771         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11772         sequence.
11773
11774 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11775
11776         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11777         use a value field instead.
11778         (symbol_value_forward_forward): Use value field.
11779         (DEFVAR_SYMVAL_FWD): Use value field.
11780         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11781         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11782         (DEFVAR_CONST_INT): Ditto.
11783         (DEFVAR_BOOL): Ditto.
11784         (DEFVAR_CONST_BOOL): Ditto.
11785         (DEFVAR_INT_MAGIC): Ditto.
11786         (DEFVAR_BOOL_MAGIC): Ditto.
11787
11788         * symbols.c (guts_of_unbound_marker): Use value field.
11789         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11790         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11791
11792         * lisp.h: Declare dumpopaque and noninteractive1.
11793
11794         * alloc.c (dumpopaque): Added.
11795         (pdump_dump_opaquevec): Added.
11796         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11797         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11798         noninteractive.
11799
11800 2000-02-10  Andy Piper  <andy@xemacs.org>
11801
11802         * glyphs.c (image_instance_layout): if the size changes, mark it
11803         as such.
11804
11805         * redisplay-output.c (redisplay_output_layout): Update the
11806         subwindow here.
11807         (redisplay_output_subwindow): ditto.
11808
11809         * glyphs.c (update_subwindow): make sure we reset flags for
11810         layouts as well as everything else.
11811
11812         * glyphs-widget.c (layout_layout): don't need to set the instances
11813         dimensions here.
11814
11815 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11816
11817         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11818         not HAVE_DLOPEN, which is a lower-level thing.
11819
11820         * .cvsignore: Ignore gmon.out
11821
11822 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11823
11824         * .cvsignore: Ignore portable dumper xemacs.dmp file
11825
11826 2000-02-09  Andy Piper  <andy@xemacs.org>
11827
11828         * redisplay-output.c (redisplay_output_layout): be more clever
11829         about when we output based on the changed flags.
11830
11831         * glyphs.h (struct image_instantiator_methods): add update_method.
11832         (struct Lisp_Image_Instance): add changed flags. Declare new
11833         macros for manipulating them.
11834
11835         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11836         (image_instance_parent_glyph): find an image_instance's parent
11837         glyph or image_instance.
11838         (image_instance_layout): mark the size as changed.
11839         (set_image_instance_dirty_p): new function. mark an image
11840         instance, plus all of its parents, as dirty.
11841         (Fset_image_instance_property): use it.
11842         (Fglyph_animated_timeout_handler): use it.
11843         (update_subwindow): call update_widget and device methods for
11844         update_subwindow. Mark all changed flags as clean.
11845         (Fresize_subwindow): mark size as changed.
11846
11847         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11848         failures.
11849         (x_update_subwindow): only resize subwindows here.
11850         (x_update_widget): new function. Update all changed properties of
11851         a widget.
11852         (x_resize_subwindow): deleted.
11853         (x_widget_set_property): deleted.
11854         (x_progress_gauge_set_property): deleted.
11855         (x_progress_gauge_update): new function. Implement recorded
11856         changes.
11857         (x_tab_control_update): ditto.
11858         (x_tab_control_set_property): deleted.
11859         (console_type_create_glyphs_x): declare new functions.
11860         (image_instantiator_format_create_glyphs_x): ditto.
11861
11862         * glyphs-widget.c (widget_set_property): mark text changed.
11863         (update_widget): new function. Update properties of a widget.
11864         (widget_instantiate): for layouts make sure we set their
11865         children's parent correctly.
11866         (tab_control_set_property): new function. Record changes that will
11867         take place under redisplay's control.
11868         (progress_gauge_set_property): ditto.
11869         (image_instantiator_progress_guage): declare new functions.
11870         (image_instantiator_tab_control): ditto.
11871
11872         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11873         now.
11874         (mswindows_update_widget): new function. Update all properties on
11875         a widget that have changed.
11876         (mswindows_button_update): new function. Update a button's set
11877         state.
11878         (mswindows_tab_control_update): new function. Update the items in
11879         a tab.
11880         (mswindows_tab_control_set_property): deleted.
11881         (mswindows_progress_gauge_update): new function. Update the
11882         progress gauge's progress.
11883         (mswindows_widget_set_property): deleted. This is all done
11884         asynchronously now.
11885         (mswindows_progress_gauge_set_property): ditto.
11886         (console_type_create_glyphs_mswindows): declare new methods.
11887         (image_instantiator_format_create_glyphs_mswindows): ditto.
11888
11889         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11890         (msprinter_set_frame_properties): ditto.
11891
11892         * console.h (struct console_methods): Add update_widget_method.
11893
11894 2000-02-09  Andy Piper  <andy@xemacs.org>
11895
11896         * gui-msw.c (Fmswindows_shell_execute): Make
11897         mswindows-shell-execute industrial strength.
11898
11899 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11900
11901         * lrecord.h: Make macro argument `props' match member function `plist'.
11902         * fns.c (Fget):
11903         * fns.c (Fput):
11904         * fns.c (Fremprop):
11905         * fns.c (Fobject_plist):
11906         * alloc.c:
11907         * symbols.c:
11908         Object property list frobbing cleanup.
11909         - Allow any lisp object (compared with `eq'), not just symbols, as
11910           keys in object plists.
11911         - Move symbol plist frobbing into symbols.c, where it belongs.
11912         - Move string plist frobbing into alloc.c, where it belongs.
11913         - Everything's an lrecord now, so no need to test for symbolp, etc.
11914         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11915
11916         * extents.c: Reorder code to remove declarations.
11917
11918         * frame.h (store_in_alist): Remove useless declaration.
11919
11920 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11921
11922         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11923         * config.h.in: Add HAVE_XCONVERTCASE.
11924
11925 2000-02-07  Andy Piper  <andy@xemacs.org>
11926
11927         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11928         it breaks many things.
11929
11930 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11931
11932         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11933         actually can start a common comment type.
11934         * src/syntax.h (SYNTAX_END_P): ditto for end.
11935
11936 2000-02-07  Martin Buchholz <martin@xemacs.org>
11937
11938         * XEmacs 21.2.28 is released.
11939
11940 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11941
11942         * event-Xt.c (x_keysym_to_character): New.
11943         (maybe_define_x_key_as_self_inserting_character): New.
11944         (x_has_keysym): New.
11945         Auto-define all keys on the keyboard as self-insert-key.
11946
11947 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11948
11949         * menubar.c (vars_of_menubar): A small code simplification.
11950
11951         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11952
11953         * ExternalShell.c:
11954         * ExternalClient.c:
11955         * EmacsShell-sub.c:
11956         * EmacsManager.c:
11957         * EmacsFrame.c:
11958         Use consistent style for specifying X resources.
11959
11960         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11961         This makes (dontusethis-set-symbol-value-handler) actually usable.
11962
11963         * lrecord.h (lrecord_decription_type):
11964         * alloc.c (pdump_register_sub):
11965         (pdump_dump_data):
11966         (pdump_reloc_one):
11967         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11968         Comply with XEmacs coding style.
11969         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11970         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11971
11972         * keymap.c (Faccessible_keymaps):
11973         Make (accessible-keymaps map "\C-h") do the Right Thing.
11974         Make (accessible-keymaps map []) do the Right Thing.
11975         Make (accessible-keymaps map "") do the Right Thing.
11976         (check_keymap_definition_loop): New function.
11977         (keymap_store_internal): Keep luser from shooting self in foot,
11978           via (define-key ctl-x-4-map "p" global-map).
11979         Remove fullness slot from struct Lisp_Keymap, since hash tables
11980         are now reliable.
11981         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11982
11983 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11984
11985         * redisplay.c (init_redisplay): Fix small memory leak.
11986         * elhash.h:
11987         * elhash.c (pdump_reorganize_hash_table):
11988         Rename from reorganize_hash_table. Change prototype.
11989         Reuse the original memory for hentries.  Save 100k.
11990         * alloc.c (PDUMP_READ): new macro.
11991         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11992         * alloc.c: No need to #ifndef before #undef.
11993
11994         * print.c: Allow debug_print() to print readably by modifying
11995         debug_print_readably.  Use consistent variable names.
11996
11997         * .dbxrc: Try to get things to work even if stopped in a function
11998         without source available by explicitly specifying source files.
11999 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12000
12001         * unexnt.c (_start): Removed bogus code which caused loading heap
12002         from differrent executable file.
12003         Removed bogus assignment to _fmode, which caused inconsistencies.
12004
12005 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12006
12007         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12008         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12009         Do not preliminary `#define signal sigset'.
12010
12011         * systime.h: Do not prototype environ on windows nt and cygwin,
12012         this conflicts with system header.
12013
12014         * syssignal.h: Use correct define for WINDOWSNT
12015
12016         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12017         with system header.
12018
12019         * sysdep.c (near start of file): Fixed commentary and rearranged
12020         ifdefs in readable order.
12021         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12022         (start_of_text):
12023         (end_of_text):
12024         (end_of_data): Do not compile in if using PDUMP.
12025
12026         * symsinit.h: Prototyped vars_of_nt().
12027
12028         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12029         (find_child_console): Use it.
12030         (sys_kill): Use it.
12031
12032         * ntheap.h: Do not extern os_subtype.
12033
12034         * ntheap.c (cache_system_info): Do not cache unneeded:
12035         nt_major_version, nt_minor_version and os_subtype.
12036         (recreate_heap): Do not compile in when PDUMPing.
12037
12038         * nt.c (geteuid and friends): Use the new varibale
12039         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12040         (init_user_info): Removed the above mentioned hackery.
12041         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12042         stat has been fixed in the C runtime.
12043         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12044
12045         * file-coding.c (struct file_coding_dump): Do not define
12046         ucs_to_mule_table in the struct if not MULE.
12047         (struct struct lrecord_description fcd_description_1): Do not dump
12048         the above.
12049
12050         * emacs.c (main_1): Call vars_of_nt().
12051         (right before Fdump_emacs_data): Don't need lastfile if using both
12052         portabe dumper and system malloc.
12053
12054         * alloc.c (Fmemory_limit): Conditionalized out.
12055         (pdump): Use OPEN_BINARY for the portable dump file.
12056         (pdump_load): Ditto.
12057
12058 2000-02-02  Mike Alexander  <mta@arbortext.com>
12059
12060         * nt.c (convert_time): Set tm_isdst before calling mktime and
12061         avoid calling it at all if the compiler supports 64 bit integers.
12062         Also initialize utc_base_ft before using it.
12063
12064 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12065
12066         * frame.c (change_frame_size_1): Take f->internal_border_width
12067         into consideration when calculating the width of the frame.
12068
12069 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12070
12071         * window.c (frame_min_height):
12072         (frame_size_valid_p):
12073         (frame_pixsize_valid_p): Added.
12074         (check_frame_size): Generalized.
12075
12076         * window.h: Prototyped the above.
12077
12078         * lisp.h:
12079         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12080         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12081         Deleted Vwin32_* and Vbinary_process_* unused variables.
12082
12083         * device-msw.c (msprinter_init_device): Do not get printer font
12084         list; Added DEVMODE functions.
12085
12086         * frame-msw.c: Added lots of printer code.
12087
12088         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12089         general.c.
12090
12091         * console-msw.h: Added more msprinter device private slots.
12092
12093 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12094
12095         * event-msw.c (key_needs_default_processing_p): Added.
12096         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12097
12098 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12099
12100         * glyphs.c (image_instance_layout): Mark image instance as clean
12101         after layout.
12102         (glyph_dirty_p): Removed redundant function.
12103         (invalidate_glyph_geometry_maybe): Added.
12104         (update_glyph_cachel_data): Call it.
12105
12106         * glyphs.h: Prototyped it.
12107
12108         * redisplay.c (add_glyph_rune): Call it.
12109         (redisplay_window): Reset glyphs cachels when frame faces have
12110         changed, thus forcing recomputation of built-in border glyphs.
12111
12112 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12113
12114         * Makefile.in.in: Make portable dumper and purify play well together.
12115         Add imperfect, but better than nothing, support for pdump.
12116         Remove xemacs.dmp when temacs is re-generated.
12117         Don't ignore errors when dumping xemacs.
12118
12119         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12120
12121 2000-01-28  Andy Piper  <andy@xemacs.org>
12122
12123         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12124         (setup_normal_frame): ditto.
12125         (setup_frame_without_minibuffer): ditto.
12126         (setup_minibuffer_frame): ditto.
12127         (delete_frame_internal): ditto.
12128         (Fmake_frame_invisible): ditto.
12129         (Ficonify_frame): ditto.
12130
12131         * window.h: change Fset_window_buffer signature.
12132
12133         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12134         (Fset_window_buffer): allow recording of buffer if the window is
12135         the selected window.
12136         (window_loop): Use new Fset_window signature.
12137
12138 2000-01-23  Daniel Pittman  <daniel@danann.net>
12139
12140         * config.h.in: Added template for `HAVE_ATHENA_3D'
12141
12142 2000-01-29  Andy Piper  <andy@xemacs.org>
12143
12144         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12145
12146         * gutter.c (output_gutter): Don't output if the window isn't live.
12147
12148 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12149
12150         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12151         of 01/12/00: Moved SetFocus back here where it belongs.
12152
12153 2000-01-23  Andy Piper  <andy@xemacs.org>
12154
12155         * s/cygwin32.h: declare printer things.
12156
12157 2000-01-26  Andy Piper  <andy@xemacs.org>
12158
12159         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12160         Alexander.
12161
12162 2000-01-24  Andy Piper  <andy@xemacs.org>
12163
12164         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12165         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12166
12167         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12168
12169         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12170
12171         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12172
12173         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12174         (mswindows_output_display_block): Avoid local shadows.
12175
12176         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12177         (mswindows_enqueue_mouse_button_event): ditto.
12178         (mswindows_handle_gui_wm_command): remove declaration.
12179
12180         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12181         warnings.
12182
12183         * console-msw.h: Avoid shadows.
12184         (mswindows_get_toolbar_button_text):
12185         (emacs_mswindows_create_stream_pair):
12186         (emacs_mswindows_delete_stream_pair):
12187         (mswindows_handle_toolbar_wm_command): declare.
12188
12189         * device-msw.c (build_syscolor_string): Avoid shadows.
12190
12191 2000-01-23  Andy Piper  <andy@xemacs.org>
12192
12193         * glyphs-widget.c (widget_instantiate): reverse the items for
12194         layouts so that children are in the expected order.
12195
12196 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12197
12198         * ralloc.c: safe_bcopy ==> memmove
12199         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12200         * s/msdos.h: Remove BCOPY macros.
12201         * insdel.c (gap_right): Remove BCOPY conditional code.
12202         * insdel.c (gap_left): Remove BCOPY conditional code.
12203         XEmacs demands a working ANSI C compiler - hence memmove.
12204
12205         * regex.c (regex_compile): Remove accidental use of trigraphs.
12206
12207 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12208
12209         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12210         event timestamp.
12211
12212 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12213
12214         * event-msw.c (mswindows_drain_windows_queue): Added the
12215         parameter.
12216         (mswindows_need_event): Commented the call to
12217         mswindows_drain_windows_queue().
12218         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12219         only.
12220
12221         * console-msw.h: Moved a few function prototypes here from
12222         event-msw.c.
12223
12224         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12225         parameter from unsigned short to unsigned long.
12226         (Fmswindows_shell_execute): Added return value.
12227
12228 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12229
12230         * sysdep.c (init_system_name):
12231           process-unix.c (unix_canonicalized_host_name):
12232         Don't call freeaddrinfo() if getaddrinfo() fails.
12233
12234         * process-unix.c (unix_open_unix_network_stream):
12235         Moved the code to get a port # into address loop.
12236
12237 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12238
12239         * buffer.c (reinit_vars_of_buffer):
12240         The right place to initialize conversion_in_dynarr and
12241         conversion_out_dynarr.
12242
12243         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12244
12245         * process-unix.c (unix_canonicalize_host_name): Muleize.
12246         (unix_open_network_stream): Muleize.
12247
12248         * buffer.h: Fix up prototypes for ralloc.c functions.
12249
12250 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12251         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12252         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12253                 instead of gethostbyname()
12254         * process-unix.c: In unix_canonicalize_host_name() and
12255                 unix_open_network_stream(), add code to use getaddrinfo()
12256                 instead of gethostbyname().
12257
12258 2000-01-27  Daniel Pittman <daniel@danann.net>
12259
12260         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12261         libs when built with flat Athena.
12262
12263 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12264
12265         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12266         Use coding standards for function prototypes.
12267
12268 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12269
12270         * dialog-msw.c (push_lisp_string_as_unicode):
12271         * doc.c (unparesseuxify_doc_string):
12272         * dired.c (Fuser_name_completion_1):
12273         * dired.c (Fuser_name_all_completions):
12274         * dired.c (free_user_cache):
12275         * dired.c (user_name_completion):
12276         * console-x.c (get_display_arg_connection):
12277         * minibuf.c (clear_echo_area_internal):
12278         * minibuf.c (echo_area_append):
12279         * eldap.c (Fldap_open):
12280         * eldap.c (Fldap_search_internal):
12281         * frame-x.c (x_set_frame_text_value):
12282         * frame-x.c (x_set_frame_properties):
12283         * frame-x.c (x_create_widgets):
12284         * redisplay-tty.c (term_get_fkeys_1):
12285         * objects-x.c (x_parse_nearest_color):
12286         * objects-x.c (x_valid_color_name_p):
12287         * objects-x.c (x_initialize_font_instance):
12288         * objects-x.c (x_list_fonts):
12289         * objects-x.c (x_find_charset_font):
12290         * tooltalk.c (Fadd_tooltalk_message_arg):
12291         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12292         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12293         * process-unix.c (unix_create_process):
12294         * ntproc.c (sys_spawnve):
12295         * sound.c (Fplay_sound_file):
12296         * sound.c (Fplay_sound):
12297         * buffer.c (init_initial_directory):
12298         * buffer.c (init_buffer):
12299         * editfns.c (init_editfns):
12300         * editfns.c (Ftemp_directory):
12301         * editfns.c (Fuser_full_name):
12302         * editfns.c (uncache_home_directory):
12303         * editfns.c (get_home_directory):
12304         * editfns.c (Fuser_home_directory):
12305         * editfns.c (Fformat_time_string):
12306         * editfns.c (Fcurrent_time_string):
12307         * gui-x.c (button_item_to_widget_value):
12308         * database.c (Fopen_database):
12309         * event-Xt.c (x_to_emacs_keysym):
12310         * event-Xt.c (x_event_to_emacs_event):
12311         * event-Xt.c (describe_event_window):
12312         * event-msw.c (mswindows_wnd_proc):
12313         * glyphs-eimage.c (jpeg_instantiate):
12314         * glyphs-eimage.c (gif_instantiate):
12315         * glyphs-eimage.c (png_instantiate):
12316         * glyphs-eimage.c (tiff_instantiate):
12317         * glyphs-x.c (xbm_instantiate_1):
12318         * glyphs-x.c (x_xbm_instantiate):
12319         * glyphs-x.c (x_xface_instantiate):
12320         * glyphs-x.c (autodetect_instantiate):
12321         * glyphs-x.c (cursor_font_instantiate):
12322         * glyphs-x.c (x_widget_instantiate):
12323         * glyphs-x.c (x_widget_set_property):
12324         * glyphs-x.c (x_widget_property):
12325         * glyphs-x.c (BUILD_GLYPH_INST):
12326         * print.c (write_string_to_stdio_stream):
12327         * print.c (output_string):
12328         * print.c (Falternate_debugging_output):
12329         * print.c (Fexternal_debugging_output):
12330         * glyphs-msw.c (extract_xpm_color_names):
12331         * glyphs-msw.c (mswindows_xpm_instantiate):
12332         * glyphs-msw.c (bmp_instantiate):
12333         * glyphs-msw.c (resource_name_to_resource):
12334         * glyphs-msw.c (mswindows_resource_instantiate):
12335         * glyphs-msw.c (xbm_instantiate_1):
12336         * glyphs-msw.c (mswindows_xbm_instantiate):
12337         * glyphs-msw.c (mswindows_xface_instantiate):
12338         * glyphs-msw.c (mswindows_widget_instantiate):
12339         * glyphs-msw.c (add_tree_item):
12340         * glyphs-msw.c (add_tab_item):
12341         * glyphs-msw.c (mswindows_combo_box_instantiate):
12342         * glyphs-msw.c (mswindows_widget_property):
12343         * glyphs-msw.c (mswindows_combo_box_property):
12344         * glyphs-msw.c (mswindows_widget_set_property):
12345         * console.c (stuff_buffered_input):
12346         * objects-msw.c (mswindows_initialize_color_instance):
12347         * objects-msw.c (mswindows_valid_color_name_p):
12348         * objects-msw.c (mswindows_list_fonts):
12349         * objects-msw.c (mswindows_font_instance_truename):
12350         * bytecode.c (optimize_compiled_function):
12351         * select-x.c (symbol_to_x_atom):
12352         * select-x.c (x_atom_to_symbol):
12353         * select-x.c (hack_motif_clipboard_selection):
12354         * select-x.c (selection_data_to_lisp_data):
12355         * select-x.c (lisp_data_to_selection_data):
12356         * select-x.c (Fx_get_cutbuffer_internal):
12357         * select-x.c (Fx_store_cutbuffer_internal):
12358         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12359         * buffer.h (TO_INTERNAL_FORMAT): New function.
12360         * emacs.c (make_arg_list_1):
12361         * emacs.c (make_argc_argv):
12362         * emacs.c (main_1):
12363         * emacs.c (Fdump_emacs):
12364         * emacs.c (split_string_by_emchar_1):
12365         * file-coding.h:
12366         * lisp.h:
12367         * lstream.h:
12368         * symsinit.h:
12369         * device-x.c (x_init_device):
12370         * device-x.c (Fx_valid_keysym_name_p):
12371         * device-x.c (Fx_get_font_path):
12372         * device-x.c (Fx_set_font_path):
12373         * glyphs.c (bitmap_to_lisp_data):
12374         * glyphs.c (pixmap_to_lisp_data):
12375         * alloc.c (make_ext_string): Use coding system arguments.  Update
12376         all callers.
12377         * alloc.c (build_string):
12378         * callproc.c (child_setup):
12379         * callproc.c (init_callproc):
12380         * fileio.c (lisp_strerror):
12381         * fileio.c (directory_file_name):
12382         * fileio.c (Fexpand_file_name):
12383         * fileio.c (Ffile_truename):
12384         * fileio.c (Fsysnetunam):
12385         * fileio.c (Fdo_auto_save):
12386         * sysdep.c (sys_readdir):
12387         * tests.c: New file.  Allow adding C tests.
12388         Replace GET_* macros with a more comprehensible and flexible
12389         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12390         Modify all calls.
12391         Any coding system can be used to do format conversion.
12392         Eliminate enum external_data_format.
12393         Eliminate convert_to_external_format.
12394         Eliminate convert_to_internal_format.
12395         Make sure file-name, keyboard, terminal, and ctext are always
12396         defined as coding systems or aliases.  Make
12397         file-name-coding-system, terminal-coding-system, and
12398         keyboard-coding-system magical variables that are equivalent to
12399         defining the corresponding coding system aliases.
12400
12401         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12402         * file-coding.c (Fcoding_system_alias_p): New function.
12403         * file-coding.c (Fcoding_system_aliasee): New function.
12404         * file-coding.c (append_suffix_to_symbol): New function.
12405         * file-coding.c (dangling_coding_system_alias_p): New function.
12406         * file-coding.c (Ffind_coding_system):
12407         * file-coding.c (Fcopy_coding_system):
12408         * file-coding.c (encode_coding_no_conversion):
12409         * file-coding.c (syms_of_file_coding):
12410         * file-coding.c (vars_of_file_coding):
12411         Rewrite coding system alias code.
12412         Allow nested aliases, like symbolic links.
12413         Allow redefinition of coding system aliases.
12414         Prevent existence of dangling coding system aliases.
12415
12416         * dired.c (Fuser_name_completion_1):
12417         * dired.c (Fuser_name_all_completions):
12418         A crash would happen if user did QUIT in the middle of building
12419         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12420
12421         * lisp.h:
12422         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12423
12424         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12425         an unsigned char *.  Update all callers.
12426
12427 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12428
12429         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12430
12431 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12432
12433         * elhash.c (hentry_description): Use more portable definition.
12434         (resize_hash_table): Initialize new hentries using
12435         xnew_array_and_zero, thereby simplifying the code.
12436
12437         * mule-charset.c (make_charset): Make sure entire object is
12438         initialized, to avoid Purify warnings.
12439
12440         * alloc.c (resize_string): Fix unlikely crash with big strings.
12441
12442 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12443
12444         * realpath.c (xrealpath):
12445         Don't call getwd().
12446
12447 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12448
12449         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12450
12451 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12452
12453         * unexelfsgi.c (unexec): Change the way we decide which segment
12454         should be extended.
12455
12456         Assumption that .bss section should be outside the PT_LOADable
12457         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12458         it's present) is inside the 'data' segment. This would fail the
12459         test which was used to find a segment to grow and cover new
12460         heap. Instead of this assumption, I created another one - on IRIX
12461         the segment to grow should start below .bss and it's address
12462         should extent above the end of .bss. Once this segment is
12463         identified, it's grown to accommodate the new heap and new
12464         zero-length .bss section is added at the end of .data2.
12465
12466 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12467
12468         * eval.c (Feval): Wrong number of arguments should use original
12469         function, not the indirect_function version of it.
12470
12471 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12472
12473         * glyphs-x.c (x_button_instantiate): Don't add image if
12474         it is not a pixmap.
12475         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12476         is relative.
12477
12478 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12479
12480         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12481         declaration.
12482         (DEFVAR_INT_MAGIC): Ditto.
12483         (DEFVAR_BOOL_MAGIC): Ditto.
12484         * glyphs.h: Reindent backslash.
12485
12486 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12487
12488         * glyphs-widget.c (layout_query_geometry):
12489         (layout_layout): Use correct types for gheight, gwidth.
12490
12491 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12492
12493         * EmacsManager.c (QueryGeometry): Purified.
12494
12495 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12496
12497         * alloc.c (make_float): Make sure entire object is initialized, to
12498         avoid Purify warnings.
12499         (pdump_register_sub): Remove useless assignment.
12500         (pdump): Use xmalloc, not malloc.
12501         (pdump_load): Use xmalloc, not malloc.
12502
12503 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12504
12505         * callproc.c:
12506         * dired-msw.c:
12507         * fileio.c:
12508         * process-nt.c:
12509         * redisplay-msw.c:
12510         * sysdep.c: Removed redundant #include <windows.h>
12511
12512 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12513
12514         * frame.c (delete_frame_internal): Do not delete device when its
12515         implementation so declares.
12516         (delete_frame_internal): Set device selected frame to nil when
12517         last frame goes away.
12518
12519         * device-msw.c (msprinter_device_system_metrics): Implemented.
12520         (mswindows_device_system_metrics): Added 'device-dpi property.
12521
12522         * device.c: (Fdevice_printer_p): Added.
12523         Added 'offset-workspace device metric.
12524
12525         * console.h (device_metrics): Declared DM_offset_workspace.
12526
12527 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12528
12529         * fileio.c (Ffile_truename): Remove pointless and confusing
12530         initialization of elen.
12531
12532         * glyphs-widget.c: Compiler warning fixes.
12533
12534 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12535
12536         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12537         instead of a Lisp_Object as argument to make it consistent with
12538         the other LIVE_P macros.
12539         (CHECK_LIVE_PROCESS): New macro.
12540
12541         * process.c: Declare Qprocess_live_p.
12542         (Fprocess_live_p): New function.
12543         (create_process): Use PROCESS_LIVE_P.
12544         (read_process_output): Ditto.
12545         (set_process_filter): Ditto.
12546         (Fdelete_process): Ditto.
12547         (kill_buffer_processes): Ditto
12548         (process_send_signal): Use CHECK_LIVE_PROCESS.
12549         (Fprocess_input_coding_system): Check whether process is still
12550         alive (fix PR#1061).
12551         (Fprocess_output_coding_system): Ditto.
12552         (Fprocess_coding_system): Ditto.
12553         (Fset_process_input_coding_system): Ditto.
12554         (Fset_process_output_coding_system): Ditto.
12555
12556 2000-01-23  Andy Piper  <andy@xemacs.org>
12557
12558         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12559         layout and widget.
12560
12561         * glyphs.c (mark_image_instance): take into account changed
12562         image_instance format.
12563         (image_instance_equal): ditto.
12564         (image_instance_hash): ditto.
12565
12566         * glyphs-widget.c (widget_instantiate): Incorporate layout
12567         instantiation here. Delay layout of the layout until later.
12568         (layout_instantiate): deleted.
12569         (layout_query_geometry): new function. get the geometry of a
12570         layout.
12571         (layout_layout): layout a layout dynamically.
12572         (image_instantiator_widget): New function - splitting up
12573         image_instantiator_format_create_glyphs_widget for netwinder
12574         compilation.
12575         (image_instantiator_buttons):
12576         (image_instantiator_edit_fields):
12577         (image_instantiator_combo_box):
12578         (image_instantiator_scrollbar):
12579         (image_instantiator_progress_guage):
12580         (image_instantiator_tree_view):
12581         (image_instantiator_tab_control):
12582         (image_instantiator_labels):
12583         (image_instantiator_layout): ditto.
12584         (image_instantiator_format_create_glyphs_widget): Call preceding
12585         functions.
12586
12587 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12588
12589         * process.c (Fset_process_coding_system):
12590         * device-x.c (Fx_keysym_hash_table):
12591         Docstring fixes.
12592
12593         * lstream.c (Lstream_write): Return documented value, not 0.
12594
12595         * fileio.c (directory_file_name):
12596         (Fsubstitute_in_file_name):
12597         (Fsubstitute_insert_file_contents_internal):
12598         (Fwrite_region_internal):
12599         * emacs.c:
12600         * sysdep.c:
12601         * getloadavg.c:
12602         * systty.h:
12603         Remove vestigial APOLLO-conditional code.
12604
12605 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12606
12607         * getpagesize.h: Add guard macros.
12608         * libsst.h: Add guard macros.
12609         * libst.h: Add guard macros.
12610         * line-number.h: Add guard macros.
12611         * ndir.h: Add guard macros.
12612         * sysfloat.h: Add guard macros.
12613         * sysfile.h: Add guard macros.
12614         * sysproc.h: Add guard macros.
12615         * syswait.h: Add guard macros.
12616         * xintrinsic.h: Add guard macros.
12617         * xintrinsicp.h: Add guard macros.
12618         * xmmanager.h: Add guard macros.
12619         * xmmanagerp.h: Add guard macros.
12620         * xmprimitive.h: Add guard macros.
12621         * xmu.h: Add guard macros.
12622         * gpmevent.h: Add copyright statement. Add guard macros.
12623         * miscplay.h: Add guard macros.
12624         * *.h: Use consistent C-standards-approved guard macro names.
12625
12626         * opaque.c (make_opaque): Switch parameter order.
12627         * opaque.h (make_opaque): Switch parameter order.
12628         Update all callers.
12629         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12630
12631         * config.h.in (type_checking_assert): Added.
12632         (bufpos_checking_assert): Added.
12633
12634 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12635
12636         * alloc.c: Harmless pdump changes.
12637         - Use countof().
12638         - spell alignment correctly.
12639         * sysdep.c: Use countof()
12640
12641 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12642
12643         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12644         initially_selected_for_input() console method, default to 0.
12645         (semi_canonicalize_console_connection): Try to delegate to
12646         canonicalize_console_connection if no such console method.
12647         (canonicalize_console_connection): Vice versa.
12648         (print_console): Do not print nil connection.
12649
12650         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12651         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12652         (XDEVIMPF_FRAMELESS_OK): Added.
12653         (CONSOLE_INHERITS_METHOD): Added.
12654
12655         * console-msw.c (mswindows_canonicalize_console_connection):
12656         Added.
12657         (mswindows_canonicalize_device_connection): Added.
12658
12659         * console-msw.h (struct msprinter_device): Added this struct and
12660         accessor macros.
12661         (mswindows_device): Made fontlist a lisp object.
12662
12663         * device.c (semi_canonicalize_device_connection):  Try to delegate
12664         to canonicalize_device_connection if no such console method.
12665         (canonicalize_device_connection): Vice versa.
12666         (print_device): Do not print nil connection.
12667
12668         * device-msw.c (mswindows_init_device): Call InitCommonControls
12669         when have widgets.
12670         (mswindows_delete_device): Removed fontlist deallocation.
12671         (mswindows_mark_device): Added.
12672
12673         * events.c (event_equal): Added abort() at unreached code.
12674         (event_hash): Ditto.
12675
12676         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12677         fallback tags of Windows devices.
12678
12679         * general.c (syms_of_general): Initialized Qmsprinter.
12680
12681         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12682         of fallback tags of Windows devices.
12683
12684         * lisp.h: Declared Qmsprinter.
12685
12686         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12687         of strings.
12688         (mswindows_list_fonts): Ditto.
12689         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12690         that it can be used by both mswindows and msprinter devices.
12691         (initialize_font_instance): Added.
12692         (mswindows_initialize_font_instance): Use it.
12693         (msprinter_initialize_font_instance): Added.
12694
12695         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12696         and implementation flags check.
12697         (redisplay_without_hooks): Changed the call to the above.
12698         (Fredraw_device): Ditto.
12699         (Fredisplay_device): Ditto.
12700
12701         * redisplay-msw.c (get_frame_dc): Implemented.
12702         (get_frame_compdc): Implemented.
12703         (many functions): Use the two functions above to get device
12704         contexts, ether for a window or a printer.
12705
12706 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12707
12708         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12709         initialization here.
12710         (init_symbols_once_early): Call it.
12711         * emacs.c (main_1): Call it.
12712         * symsinit.h: Declare it.
12713
12714 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12715
12716         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12717         Lisp_Object.
12718         (pdump_backtrace): Ditto.
12719         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12720         (pdump_get_entry): Abort if trying to register a null pointer.
12721         (pdump_dump_data): Cleanup types when relocating.
12722         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12723         (pdump_dump_rtables): Remove bad casts.
12724         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12725         Lisp_Object instead of a EMACS_INT for the hashtable
12726         reorganization.
12727
12728 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12729
12730         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12731
12732         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12733
12734         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12735
12736         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12737
12738 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12739
12740         * faces.h (FACE_STRIKETHRU_P): Added.
12741
12742         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12743         of font variants.
12744
12745         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12746         (mswindows_set_dc_font): New function, aware of font variants,
12747         separated from mswindows_update_dc.
12748
12749         * objects-msw.h (struct mswindows_font_instance_data): Added
12750         definition.
12751
12752         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12753         cached fonts and the data structure.
12754         (mswindows_initialize_font_instance): Added creation of font data
12755         structure.
12756         (mswindows_print_font_instance): Print at least something.
12757         (mswindows_create_font_variant): Implemented.
12758         (mswindows_get_hfont): Implemented.
12759
12760 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12761
12762         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12763         prototyping problem with msvc.
12764
12765         * emacs.c (main_1): added syms_of_gui_mswindows() call
12766
12767         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12768         syms_of_gui_mswindows() function
12769
12770         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12771
12772 2000-01-18  Martin Buchholz <martin@xemacs.org>
12773
12774         * XEmacs 21.2.27 is released.
12775
12776 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12777
12778         * glyphs-eimage.c (struct tiff_error_struct):
12779         (tiff_error_func):
12780         (tiff_warning_func):
12781         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12782
12783         * unexmips.c:
12784         * unexhp9k3.c:
12785         * unexfreebsd.c:
12786         * unexec.c: Remove vestigial Lucid C code.
12787         * unexalpha.c:
12788         * unexaix.c:
12789         * termcap.c:
12790         * libsst.c: Ansify.
12791         Remove declarations of errno and strerror().
12792
12793         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12794
12795         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12796
12797 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12798
12799         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12800         Optimize.
12801
12802 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12803
12804         * md5.c:
12805         * file-coding.c:
12806         * file-coding.h:
12807         Change enum eol_type to eol_type_t.
12808
12809 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12810
12811         * gui.c (get_gui_callback): Check cons before accessing car.
12812
12813 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12814
12815         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12816         (XSETSPECIFIER_TYPE): Ditto.
12817
12818 2000-01-17  Didier Verna  <didier@xemacs.org>
12819
12820         * redisplay.c (generate_fstring_runes): compute string size in
12821         characters, not bytes.
12822
12823 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12824
12825         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12826
12827 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12828
12829         * print.c (print_error_message): Call print_prepare().
12830
12831 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12832
12833         * .dbxrc: Renamed from dbxrc.
12834
12835         * events.c (event_to_character):
12836         Use `assert (foo)' instead of `if (!foo) abort()'
12837
12838         * .gdbinit (xtype): Add documentation.
12839         * .gdbinit (check-temacs): New function.
12840         * .gdbinit (check-xemacs): New function.
12841         * dbxrc (check-xemacs): New function.
12842         * dbxrc (check-xemacs): New function.
12843
12844 2000-01-14  Andy Piper  <andy@xemacs.org>
12845
12846         * glyphs-widget.c (widget_query_geometry): Make sure that we
12847         calculate default dimensions correctly.
12848
12849 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12850
12851         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12852
12853         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12854         pdump_wire'd variable.
12855
12856         * emacs.c: (main_1): Conditionalized calls to
12857         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12858
12859 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12860
12861         * window.c (Fset_window_configuration):
12862         * sysdep.c (_start):
12863         * input-method-motif.c (res):
12864         * event-Xt.c (Xt_process_to_emacs_event):
12865         Simple compiler warning fixes.
12866
12867         * bytecode.c (funcall_compiled_function): Use the original
12868         function symbol on the backtrace list in preference to the
12869         compiled_function object in error messages.
12870
12871 2000-01-13  Andy Piper  <andy@xemacs.org>
12872
12873         * glyphs-x.c (update_widget_face): Make sure we update the widget
12874         background as well as foreground.
12875
12876 2000-01-13  Andy Piper  <andy@xemacs.org>
12877
12878         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12879         fields to subwindow.
12880         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12881         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12882         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12883         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12884
12885         * glyphs-widget.c (check_valid_tab_orientation): new function.
12886         (initialize_widget_image_instance): zero orientation and
12887         justification.
12888         (widget_instantiate): pick up orientation.
12889         (tab_control_query_geometry): return appropriate values for
12890         vertical tabs.
12891
12892         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12893         appropriate creation flags for left, right and bottom tabs.
12894
12895         * s/cygwin32.h: add tab definitions.
12896
12897 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12898
12899         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12900         frame upon hiding a subwindow.
12901         (mswindows_button_instantiate): Changed the push button style to
12902         BS_PUSHBUTTON.
12903         (mswindows_button_instantiate): Removed button BS_NOTIFY
12904         style.
12905         (mswindows_button_instantiate): Removed redundant check for
12906         a disabled gui item.
12907         (mswindows_button_instantiate): Made use of WS_TABSTOP
12908         consistent: "operable" controls (edit, button, tree, scroll) have
12909         this style, "display-only" ones (static, progress gauge) do
12910         not. This style is currently ignored by XEmacs though. Also,
12911         removed the WS_EX_CONTROLPARENT style - it is not for children,
12912         it is for their parents!
12913         (mswindows_edit_field_instantiate): Ditto.
12914         (mswindows_progress_gauge_instantiate): Ditto.
12915         (mswindows_tree_view_instantiate): Ditto.
12916         (mswindows_tab_control_instantiate): Ditto.
12917         (mswindows_scrollbar_instantiate): Ditto.
12918         (mswindows_combo_box_instantiate): Ditto.
12919         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12920         style to the "clip" window.
12921         (mswindows_button_instantiate): Removed compilation warning by
12922         equally typing terms of the ?: operator.
12923
12924 2000-01-12  Didier Verna  <didier@xemacs.org>
12925
12926         * redisplay.c (generate_fstring_runes): new parameter holding the
12927         last modeline-format extent.
12928         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12929         extent, fill the glyph block with it.
12930         (generate_fstring_runes): handle these parameters.
12931         (generate_formatted_string_db): ditto.
12932
12933         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12934         glyphs'extents in the modeline.
12935
12936 1999-01-11  Mike Woolley  <mike@bulsara.com>
12937
12938         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12939         256Mb, as a workaround for the non-starting problem many people
12940         have experienced.
12941
12942 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12943
12944         * console-tty.c (Fset_console_tty_output_coding_system):
12945         Force redrawing tty frame.
12946
12947 2000-01-10  Didier Verna  <didier@xemacs.org>
12948
12949         * redisplay.c (generate_fstring_runes): fix size computation bug.
12950
12951 2000-01-09  William M. Perry <wmperry@aventail.com>
12952
12953         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12954
12955 2000-01-09  Andy Piper  <andy@xemacs.org>
12956
12957         * glyphs-msw.c: index -> i to avoid shadows.
12958         (xbm_create_bitmap_from_data): make static.
12959         (check_valid_string_or_int): deleted.
12960         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12961
12962         * glyphs-x.c (x_update_subwindow): remove unused args.
12963
12964         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12965         back pointer - this is done in allocate_image_instance.
12966         (query_string_font): return Qnil to make the compiler happy.
12967         (unmap_subwindow): set to ~0 to make the compiler happy.
12968         (glyph_query_geometry): comment out until used.
12969         (glyph_layout): ditto.
12970
12971 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12972
12973         * insdel.c (signal_after_change): Remove extraneous unbind_to().