Sync up with r21-4-10-utf-2000-0_20-dkw3hzkl.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
4         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
5         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
6
7         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
8         (Vcharset_ideograph_daikanwa): Deleted.
9         (Qideograph_hanziku_{1..12}): Deleted.
10         (Qideograph_daikanwa): Deleted.
11         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
12         Vcharset_ideograph_daikanwa.
13         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
14         `ideograph-hanziku-{1..12}'.
15         (complex_vars_of_mule_charset): Likewise.
16
17 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
18
19         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
20
21         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
22         (Qideograph_gt_pj_{1..11}): Deleted.
23         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
24         (complex_vars_of_mule_charset): Likewise.
25
26 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * mule-charset.c (Vcharset_ucs_big5): Deleted.
29         (Vcharset_ideograph_gt): Deleted.
30         (Qucs_big5): Deleted.
31         (Qideograph_gt): Deleted.
32         (syms_of_mule_charset): Delete symbol `ucs-big5' and
33         `ideograph-gt'.
34         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
35         and `ideograph-gt'.
36
37         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
38         (LEADING_BYTE_GT): Deleted.
39         (GC_CHARSETP): Deleted.
40         (MIN_CHAR_GT): Deleted.
41         (MAX_CHAR_GT): Deleted.
42
43 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
46
47 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
48
49         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
50         (Qideograph_cbeta): Deleted.
51         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
52         (complex_vars_of_mule_charset): Likewise.
53
54         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
55         (MIN_CHAR_CBETA): Comment out.
56         (MAX_CHAR_CBETA): Likewise.
57
58 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
59
60         * mule-charset.c (charset_lookup_description_1): Use
61         `NUM_LEADING_BYTES' in UTF-2000.
62
63 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
64
65         * mule-charset.c (Vcharset_china3_jef): Deleted.
66         (Qchina3_jef): Deleted.
67         (syms_of_mule_charset): Don't define `china3-jef'.
68         (complex_vars_of_mule_charset): Likewise.
69
70         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
71         (MIN_CHAR_CHINA3_JEF): Comment out.
72         (MAX_CHAR_CHINA3_JEF): Comment out.
73
74 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * mule-charset.c (Vcharset_ucs_gb): New variable.
77         (Qucs_gb): New variable.
78         (syms_of_mule_charset): Add new symbol `ucs-gb'.
79         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
80
81         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
82
83 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
84
85         * mule-charset.c (charset_code_point): if a coded-charset has a
86         final-byte, don't inherit the builtin range of the mother CCS.
87
88 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
89
90         * mule-charset.c (charset_code_point): Fix problem about
91         inheritance.
92
93 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
94
95         * mule-charset.c (decode_builtin_char): Reorganized.
96
97 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * text-coding.c (char_encode_shift_jis): Modify for
100         `charset_code_point'.
101         (char_encode_big5): Likewise.
102         (char_encode_utf8): Likewise.
103         (char_encode_iso2022): Likewise.
104
105         * mule-charset.c (charset_code_point): Add new argument
106         `defined_only'.
107         (Fencode_char): Add new optional argument `defined_only'.
108
109         * chartab.c (put_char_table): Modify for `charset_code_point'.
110         (map_char_table): Likewise.
111
112         * char-ucs.h (charset_code_point): Add new argument
113         `defined_only'.
114         (encode_char_1): Modify for `charset_code_point'.
115
116 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
119         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
120
121 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
122
123         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
124         (Qjis_x0208): Likewise.
125         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
126         XCHARSET_FINAL(charset).
127         (charset_code_point): Modify condition for final-byte based
128         builtin-chars.
129         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
130         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
131         in UTF-2000; specify `=jis-x0208' as the mother of
132         `japanese-jisx0208-1978', `japanese-jisx0208' and
133         `japanese-jisx0208-1990' in UTF-2000.
134
135 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
136
137         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
138
139 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
140
141         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
142         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
143         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
144         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
145         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
146         CONVERSION_96x96x96x96 are introduced.
147         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
148         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
149         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
150
151         * char-ucs.h (CONVERSION_94): New macro.
152         (CONVERSION_96): New macro.
153         (CONVERSION_94x94): New macro.
154         (CONVERSION_96x96): New macro.
155         (CONVERSION_94x94x94): New macro.
156         (CONVERSION_96x96x96): New macro.
157         (CONVERSION_94x94x94x60): New macro.
158         (CONVERSION_94x94x94x94): New macro.
159         (CONVERSION_96x96x96x96): New macro.
160
161 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
162
163         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
164
165         * fns.c (Qideographic_structure): New variable.
166         (Qkeyword_char): New variable.
167         (ids_format_unit): New function.
168         (Fideographic_structure_to_ids): New function.
169         (syms_of_fns): Add new symbols `ideographic-structure' and
170         `:char'; add new builtin function `ideographic-structure-to-ids'.
171
172         * data.c (Fchar_ref_p): New function.
173         (syms_of_data): Add new builtin function `char-ref-p'.
174
175         * chartab.h: Add an EXFUN for `Ffind_char'.
176
177 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
178
179         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
180         and `COMPOSE_ADD_CHAR'.
181         (decode_coding_iso2022): Use `decode_flush_er_chars'.
182
183 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
184
185         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
186         instead of `DECODE_ADD_UCS_CHAR'.
187         (COMPOSE_ADD_CHAR): Likewise.
188
189 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
190
191         * text-coding.c (decode_flush_er_chars): New inline function.
192         (decode_add_er_char): New function.
193         (decode_coding_utf8): Use `decode_flush_er_chars' and
194         `decode_add_er_char'.
195
196 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
197
198         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
199         done before `decode_output_utf8_partial_char'.
200
201         * mule-charset.c (complex_vars_of_mule_charset): Specify
202         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
203         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
204
205 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * mule-charset.c (decode_defined_char): New function; search
208         mother.
209         (decode_builtin_char): Don't search mother if
210         XCHARSET_MAX_CODE(charset) == 0.
211         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
212         == 0 even if code >= XCHARSET_MAX_CODE(charset).
213         (Fdecode_char): Use `decode_defined_char' instead of
214         `DECODE_DEFINED_CHAR'.
215         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
216         mother of `Vcharset_ucs_jis'.
217
218         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
219         instead of `DECODE_DEFINED_CHAR'.
220
221         * char-ucs.h (decode_defined_char): Renamed from
222         `DECODE_DEFINED_CHAR'; changed to normal function.
223         (DECODE_CHAR): Use `decode_defined_char' instead of
224         `DECODE_DEFINED_CHAR'.
225
226         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
227
228 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
231
232         * text-coding.c (Vcoded_charset_entity_reference_alist): New
233         variable.
234         (Quse_entity_reference): New variable.
235         (Qd): New variable.
236         (Qx): New variable.
237         (QX): New variable.
238         (coding_system_description): Add description for
239         `ccs_priority_list'.
240         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
241         (allocate_coding_system): Initialize `ccs_priority_list' in
242         UTF-2000.
243         (Fmake_coding_system): Add description about
244         'use-entity-reference; setup
245         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
246         (Fcoding_system_property): Accept `disable-composition' and
247         `use-entity-reference' in UTF-2000.
248         (struct decoding_stream): Add new member `er_counter' and `er_buf'
249         in UTF-2000.
250         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
251         (decode_coding_utf8): Decode entity-reference if
252         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
253         (char_encode_utf8): Encode non-Unicode characters as
254         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
255         (str->codesys).
256         (syms_of_file_coding): Add new symbols `use-entity-reference',
257         `d', `x', `X'.
258         (vars_of_file_coding): Add new variable
259         `coded-charset-entity-reference-alist'.
260         (complex_vars_of_file_coding): Declare `disable-composition' and
261         `use-entity-reference' to be coding-system-properties in UTF-2000.
262
263         * file-coding.h (struct Lisp_Coding_System): Add new member
264         `use_entity_reference' and `ccs_priority_list'.
265         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
266         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
267         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
268
269 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
270
271         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
272
273 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
274
275         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
276         `XCHARSET_GRAPHIC(ccs)'.
277
278 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
279
280         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
281         for decoding-table.
282
283 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
284
285         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
286         instead of `XCHARSET_CHARS'.
287
288 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
291         (XCHARSET_BYTE_SIZE): Likewise.
292
293         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
294         mule-charset.c].
295         (XCHARSET_BYTE_SIZE): Likewise.
296
297 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * char-ucs.h (decoding_table_check_elements): Delete prototype.
300         (get_ccs_octet_table): New inline function.
301         (put_ccs_octet_table): Likewise.
302         (decoding_table_put_char): Use `get_ccs_octet_table' and
303         `put_ccs_octet_table'.
304         (decoding_table_remove_char): Use `decoding_table_put_char'.
305         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
306
307         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
308         into encoding_table.
309         (make_charset): Use Qunbound instead Qnil as initial value of
310         decoding_table.
311
312 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * mule-charset.c (put_char_ccs_code_point): Modify for
315         `decoding_table_remove_char' and `decoding_table_put_char'.
316         (remove_char_ccs): Modify for `decoding_table_remove_char'.
317
318         * char-ucs.h (decoding_table_remove_char): Change arguments to
319         hide decoding_table vector.
320         (decoding_table_put_char): Likewise.
321
322 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * mule-charset.c (decoding_table_remove_char): Moved to
325         char-ucs.h.
326         (decoding_table_put_char): Likewise.
327
328         * char-ucs.h (decoding_table_check_elements): New prototype [moved
329         from mule-charset.c].
330         (decoding_table_remove_char): New inline function [moved from
331         mule-charset.c].
332         (decoding_table_put_char): Likewise.
333
334 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
335
336         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
337         instead of `DECODE_CHAR' for mother; don't use special code for
338         chinese-big5 to use code space of chinese-big5-1 and
339         chinese-big5-2.
340         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
341         `MAX_CHAR_BIG5_CDP' for chinese-big5.
342
343         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
344         (MAX_CHAR_BIG5_CDP): Revival.
345
346 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
349         the XLFD registry-encoding name of `chinese-big5'.
350
351 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
352
353         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
354         (Qchinese_big5_cdp): Deleted.
355         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
356         (complex_vars_of_mule_charset): Delete coded-charset
357         `chinese-big5-cdp'.
358
359         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
360         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
361         `CHARSET_ID_OFFSET - n' for private CCS.
362         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
363         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
364         of `MIN_LEADING_BYTE'.
365         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
366         `(CHARSET_ID_OFFSET - 97)'.
367         (MIN_CHAR_BIG5_CDP): Deleted.
368         (MAX_CHAR_BIG5_CDP): Deleted.
369
370 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
371
372         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
373         extension.
374
375 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
376
377         * mule-charset.c (decode_builtin_char): Support mother charsets.
378
379 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
380
381         * mule-charset.c (Q94x94x60): New variable.
382         (charset_code_point): Support conversion `94x94x60'.
383         (Fmake_charset): Likewise.
384         (syms_of_mule_charset): Add new symbol `94x94x60'.
385
386         * char-ucs.h (CONVERSION_94x94x60): New macro.
387
388 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * mule-charset.c (charset_code_point): Unify code about
391         `code-offset'.
392
393 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
394
395         * mule-charset.c (charset_code_point): Merge code about builtin
396         characters into code about mother charsets; don't use
397         `range_charset_code_point'.
398         (range_charset_code_point): Deleted.
399
400 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * mule-charset.c (Qcode_offset): New variable.
403         (Fmake_charset): Use `XUINT' to get value of `min-code' and
404         `max-code'; accept new property `code-offset'.
405         (syms_of_mule_charset): Add new symbol `code-offset'.
406
407 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * mule-charset.c (range_charset_code_point): Fixed.
410
411 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * mule-charset.c (decode_builtin_char): Change semantics of
414         code-offset of coded-charset.
415         (charset_code_point): Likewise.
416         (range_charset_code_point): Likewise.
417         (complex_vars_of_mule_charset): Modify for the change.
418
419 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * mule-charset.c (Fencode_char): Reverse arguments.
422
423         * mule-charset.c (charset_code_point): Fixed.
424
425 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
426
427         * mule-charset.c (Vcharset_mojikyo): Deleted.
428         (Vcharset_mojikyo_2022_1): Deleted.
429         (Vcharset_mojikyo_pj_{1..21}): Deleted.
430         (Qmin_code): New variable in UTF-2000.
431         (Qmax_code): Likewise.
432         (Qmother): Likewise.
433         (Qconversion): Likewise.
434         (Q94x60): Likewise.
435         (Qmojikyo): Deleted.
436         (Qmojikyo_2022_1): Deleted.
437         (Qmojikyo_pj_{1..22}): Deleted.
438         (mark_charset): Mark `cs->mother'.
439         (charset_description): Add description for `mother'.
440         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
441         new arguments `mother' and `conversion'; use
442         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
443         (charset_code_point): Moved from char-ucs.h; support `mother'
444         charset feature.
445         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
446         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
447         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
448         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
449         allow 2 as the value of `graphic' in UTF-2000; add new properties
450         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
451         require `final' in UTF-2000; modify for `make_charset'.
452         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
453         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
454         (Fcharset_property): Support `mother', `min-code' and `max-code'.
455         (Fencode_char): New function.
456         (syms_of_mule_charset): Add new builtin function `encode-char' in
457         UTF-2000; add new symbols `min-code', `max-code', `mother',
458         `conversion' and `94x60'; delete symbols `mojikyo',
459         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
460         (complex_vars_of_mule_charset): Modify for `make_charset' change;
461         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
462         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
463
464         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
465         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
466
467         * char-ucs.h (Vcharset_mojikyo): Deleted.
468         (Vcharset_mojikyo_2022_1): Deleted.
469         (LEADING_BYTE_MOJIKYO): Deleted.
470         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
471         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
472         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
473         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
474         add new member `mother'; add new member `conversion'.
475         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
476         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
477         (CHARSET_MOTHER): New macro.
478         (CHARSET_CONVERSION): New macro.
479         (CONVERSION_IDENTICAL): New macro.
480         (CONVERSION_94x60): New macro.
481         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
482         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
483         (XCHARSET_MOTHER): New macro.
484         (XCHARSET_CONVERSION): New macro.
485         (MIN_CHAR_MOJIKYO): Deleted.
486         (MAX_CHAR_MOJIKYO): Deleted.
487         (DECODE_MOJIKYO_2022): Deleted.
488         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
489         (charset_code_point): Changed to non-inline function.
490         (encode_char_1): Use `charset_code_point'.
491         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
492
493 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * lread.c (read_compiled_function): Fix prototype.
496         (read_vector): Likewise.
497
498 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
499
500         * lrecord.h (struct lrecord_header): Delete `older'.
501         (set_lheader_implementation): Delete code for `older'.
502         (set_lheader_older_implementation): Deleted.
503         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
504         (OLDER_RECORD_P): Deleted.
505         (OLDER_RECORD_HEADER_P): Deleted.
506         (alloc_older_lcrecord): Deleted.
507         (alloc_older_lcrecord_type): Deleted.
508
509         * alloc.c (all_older_lcrecords): Deleted.
510         (alloc_older_lcrecord): Deleted.
511         (disksave_object_finalization_1): Delete code for older objects.
512         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
513         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
514
515 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * mule-charset.c (decoding_table_put_char): Use `make_vector'
518         instead of `make_older_vector'.
519         (put_char_ccs_code_point): Likewise.
520         (mark_charset): Mark `cs->decoding_table'.
521         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
522
523         * lisp.h (make_older_vector): Deleted.
524         (make_vector_newer): Deleted.
525
526         * config.h.in (HAVE_GGC): Deleted.
527
528         * alloc.c (make_older_vector): Deleted.
529         (make_vector_newer_1): Deleted.
530         (make_vector_newer): Deleted.
531
532 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
535         (Qideograph_daikanwa_2): New variable.
536         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
537         (complex_vars_of_mule_charset): Add new coded-charset
538         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
539         `LEADING_BYTE_DAIKANWA'.
540
541         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
542         (LEADING_BYTE_DAIKANWA_1): New macro.
543         (LEADING_BYTE_DAIKANWA_2): New macro.
544         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
545
546 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * mule-charset.c (complex_vars_of_mule_charset): Change
549         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
550         the second revised version.
551
552 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
553
554         * mule-charset.c (Vcharset_ucs_smp): New variable.
555         (Vcharset_ucs_sip): New variable.
556         (Qucs_smp): New variable.
557         (Qucs_sip): New variable.
558         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
559         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
560         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
561         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
562         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
563         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
564
565         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
566         (LEADING_BYTE_UCS_SIP): New macro.
567         (MIN_CHAR_SMP): New macro.
568         (MAX_CHAR_SMP): New macro.
569         (MIN_CHAR_SIP): New macro.
570         (MAX_CHAR_SIP): New macro.
571
572 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
573
574         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
575         utf-2000.
576
577 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
580         value; don't store value into `encoding_table' of `Lisp_Charset'.
581         (mark_charset): `encoding_table' was deleted.
582         (charset_description): Likewise.
583         (make_charset): Likewise.
584         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
585         `put_char_ccs_code_point'.
586
587         * chartab.h (Fput_char_attribute): New EXFUN.
588
589         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
590         is unified with normal symbol space.
591         (Fget_char_attribute): Likewise.
592         (Fput_char_attribute): Likewise; behavior of
593         `put_char_ccs_code_point' is changed.
594
595         * char-ucs.h: Include "elhash.h".
596         (Vchar_attribute_hash_table): New external variable.
597         (struct Lisp_Charset): Delete `encoding_table'.
598         (CHARSET_ENCODING_TABLE): New implementation; refer
599         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
600         `Lisp_Charset'.
601
602 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
603
604         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
605         (cs) == 0.
606
607 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
608
609         * text-coding.c (char_encode_big5): Prefer charset-g1 than
610         `chinese-big5'.
611
612 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * chartab.c (uint8_byte_table_description): New constant.
615         (uint8-byte-table): Use `uint8_byte_table_description'.
616         (uint16_byte_table_description): New constant.
617         (uint16-byte-table): Use `uint16_byte_table_description'.
618
619 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
622         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
623
624 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * mule-charset.c (Vcharset_ucs_ks): New variable.
627         (Qucs_ks): New variable.
628         (syms_of_mule_charset): Add new symbol `ucs-ks'.
629         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
630
631         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
632
633 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
636         (Fdecode_char): Likewise.
637
638         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
639         chartab.h.
640         (Fdefine_char): Modify for Fdecode_char.
641         (Ffind_char): Likewise.
642
643         * mule-charset.c (Fdecode_char): Add new optional argument
644         `defined-only'.
645         (Fdecode_builtin_char): Modify for `Fdecode_char'.
646
647 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
650         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
651         (allocate_coding_system): Initialize initial-charsets of
652         CODESYS_BIG5 in XEmacs UTF-2000.
653         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
654         CODESYS_BIG5 in XEmacs UTF-2000.
655         (decode_coding_big5): Use initial-charset-g0 and -g1 of
656         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
657
658         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
659         variables.
660         (Qideograph_hanziku_{1 .. 12}): Likewise.
661         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
662         .. 12}'.
663         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
664         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
665         `ideograph-hanziku-{1 .. 12}'.
666
667         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
668         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
669         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
670         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
671         (DECODE_DEFINED_CHAR): New inline function.
672         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
673
674 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * mule-charset.c (Vcharset_china3_jef): Renamed from
677         `Vcharset_japanese_jef_china3'.
678         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
679         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
680         `{MIN|MAX}_CHAR_JEF_CHINA3'..
681         (syms_of_mule_charset): Rename `china3-jef' from
682         `japanese-jef-china3'.
683         (complex_vars_of_mule_charset): Likewise; rename
684         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
685
686         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
687         `LEADING_BYTE_JEF_CHINA3'.
688         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
689         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
690
691 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (encode_builtin_char_1): Comment out special code
694         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
695
696         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
697         (MAX_CHAR_MOJIKYO_0): Comment out.
698         (MIN_CHAR_CBETA): Changed to 0x00E20000.
699         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
700         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
701         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
702
703 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
704
705         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
706         (Qideograph_cbeta): New variable.
707         (encode_builtin_char_1): Comment out special code for
708         coded-charset `mojikyo' and `japanese-jef-china3'.
709         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
710         (complex_vars_of_mule_charset): Add new coded-charset
711         `ideograph-cbeta'.
712
713         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
714         (MIN_CHAR_CBETA): New macro.
715         (MAX_CHAR_CBETA): New macro.
716
717 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
718
719         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
720         (LEADING_BYTE_JEF_CHINA3): New macro.
721         (MIN_CHAR_JEF_CHINA3): New macro.
722         (MAX_CHAR_JEF_CHINA3): Likewise.
723         (DECODE_CHAR): Fixed.
724
725 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
726
727         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
728         (Qjapanese_jef_china3): New variable.
729         (encode_builtin_char_1): Support `japanese-jef-china3'.
730         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
731         (complex_vars_of_mule_charset): Add new coded-charset
732         `japanese-jef-china3'.
733
734 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
737         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
738         94^4, 96^3, 96^4, 128^n and 256^n set.
739         (put_char_table): Use `XCHARSET_CELL_RANGE'.
740         (map_char_table): Likewise.
741
742 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
745         UTF-2000.
746
747 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * chartab.h (get_char_id_table): New inline function.
750
751         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
752         function.
753
754 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * chartab.h (decode_char_table_range): New prototype in XEmacs
757         UTF-2000.
758         (put_char_id_table): New inline function in XEmacs UTF-2000.
759
760         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
761         function.
762         (decode_char_table_range): Delete static declaration in XEmacs
763         UTF-2000.
764
765 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * chartab.c (put_char_id_table): Use `put_char_table'.
768
769 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
770
771         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
772         (map_over_uint16_byte_table): Likewise.
773         (map_over_byte_table): Likewise.
774         (map_char_table): Modify for `map_over_uint8_byte_table',
775         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
776         UTF-2000.
777
778 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * chartab.c (struct map_char_table_for_charset_arg): New
781         structure.
782         (map_char_table_for_charset_fun): New function.
783         (map_char_table): Use `map_char_table' for encoding_table of
784         `range->charset'.
785
786 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
787
788         * chartab.c (map_char_table): Check a character is found in
789         range->charset instead of non default value is defined in
790         char-table when range is CHARTAB_RANGE_ROW.
791
792 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
793
794         * chartab.c (map_char_id_table): Deleted.
795         (Fmap_char_attribute): Use `map_char_table' instead of
796         `map_char_id_table'.
797
798 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
801         UTF-2000.
802         (update_syntax_table): Deleted in XEmacs UTF-2000.
803
804         * syntax.c (find_defun_start): Use `syntax_table' instead of
805         `mirror_syntax_table' in XEmacs UTF-2000.
806         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
807         UTF-2000.
808         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
809         XEmacs UTF-2000.
810         (Fmatching_paren): Likewise.
811         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
812         in XEmacs UTF-2000.
813         (find_start_of_comment): Likewise.
814         (find_end_of_comment): Likewise.
815         (Fforward_comment): Likewise.
816         (scan_lists): Likewise.
817         (char_quoted): Likewise.
818         (Fbackward_prefix_chars): Likewise.
819         (scan_sexps_forward): Likewise.
820         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
821         (update_syntax_table): Likewise.
822
823         * search.c (skip_chars): Use `syntax_table' instead of
824         `mirror_syntax_table' in XEmacs UTF-2000.
825         (wordify): Likewise.
826         (Freplace_match): Likewise.
827
828         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
829         `mirror_syntax_table' in XEmacs UTF-2000.
830         (WORDCHAR_P_UNSAFE): Likewise.
831         (re_match_2_internal): Likewise.
832
833         * font-lock.c (find_context): Use `buf->syntax_table' instead of
834         `buf->mirror_syntax_table' in XEmacs UTF-2000.
835
836         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
837         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
838
839         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
840         XEmacs UTF-2000.
841
842         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
843         UTF-2000.
844         (print_char_table): Print `default_value' in XEmacs UTF-2000.
845         (char_table_description): Delete `mirror_table' in XEmacs
846         UTF-2000.
847         (fill_char_table): Don't call `update_syntax_table' in XEmacs
848         UTF-2000.
849         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
850         (Fcopy_char_table): Likewise.
851         (put_char_table): Don't call `update_syntax_table' in XEmacs
852         UTF-2000.
853
854         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
855         `buf->mirror_syntax_table' in XEmacs UTF-2000.
856         (casify_region_internal): Likewise.
857
858         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
859
860         * buffer.c (common_init_complex_vars_of_buffer): Don't use
861         `mirror_syntax_table' in XEmacs UTF-2000.
862
863         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
864         `buf->mirror_syntax_table' in XEmacs UTF-2000.
865         (Fexpand_abbrev): Likewise.
866
867 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
868
869         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
870
871 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
872
873         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
874         (map_over_uint16_byte_table): Likewise.
875         (map_over_byte_table): Likewise.
876         (get_char_id_table): Refer `cit->default_value'.
877         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
878         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
879         of character-id ranges.
880         (mark_char_table): Mark `ct->default_value'.
881         (char_table_description): Add `default_value'.
882         (fill_char_table): Use `default_value'.
883         (decode_char_table_range): Decode `nil' as
884         `CHARTAB_RANGE_DEFAULT'.
885         (get_char_id_table): Refer `cit->default_value'.
886         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
887         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
888         temporary hack; check value of char-table is bound or not.
889         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
890
891         * chartab.h (struct Lisp_Char_Table): Add new member
892         `default_value' in XEmacs UTF-2000.
893         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
894         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
895         UTF-2000.
896
897 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
898
899         * chartab.h (Lisp_Char_ID_Table): Deleted.
900
901         * chartab.c (char_table_description): Fix typo.
902         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
903         `Lisp_Char_ID_Table'.
904
905 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
906
907         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
908         `CHAR_ID_TABLE_P'.
909
910         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
911         `CHAR_ID_TABLE_P'.
912
913         * chartab.h (XCHAR_ID_TABLE): Deleted.
914         (XSETCHAR_ID_TABLE): Deleted.
915         (CHAR_ID_TABLE_P): Deleted.
916
917         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
918         `CHAR_ID_TABLE_P'.
919         (Fget_composite_char): Likewise.
920         (put_char_table): Likewise.
921         (add_char_attribute_alist_mapper): Fixed.
922         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
923         `CHAR_ID_TABLE_P'.
924         (Fget_char_attribute): Likewise.
925         (Fget_char_attribute): Likewise.
926         (Fmap_char_attribute): Likewise.
927
928         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
929         `CHAR_ID_TABLE_P'.
930         (encode_char_1): Likewise.
931
932 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
933
934         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
935         `XCHAR_ID_TABLE'.
936
937         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
938         instead of `XCHAR_ID_TABLE'.
939         (remove_char_ccs): Likewise.
940
941         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
942         `XCHAR_ID_TABLE'.
943         (Fget_composite_char): Likewise.
944         (Fchar_variants): Likewise.
945         (put_char_table): Likewise.
946         (add_char_attribute_alist_mapper): Likewise.
947         (Fchar_attribute_alist): Likewise.
948         (Fget_char_attribute): Likewise.
949         (Fput_char_attribute): Likewise.
950         (Fmap_char_attribute): Likewise.
951         (Fmap_char_attribute): Likewise.
952
953         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
954         `XCHAR_ID_TABLE'.
955         (encode_char_1): Likewise.
956
957 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
960         `Lisp_Char_ID_Table'.
961         (mark_char_id_table): Deleted.
962         (print_char_id_table): Likewise.
963         (char_id_table_equal): Likewise.
964         (char_id_table_hash): Likewise.
965         (char_id_table_description): Likewise.
966         (char_id_table): Likewise.
967         (make_char_id_table): Use `Fmake_char_table' and
968         `fill_char_table'.
969         (get_char_id_table): Use `Lisp_Char_Table' instead of
970         `Lisp_Char_ID_Table'.
971         (put_char_id_table): Likewise.
972         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
973         `XCHAR_ID_TABLE'.
974         (Fremove_char_attribute): Likewise.
975         (syms_of_chartab): Don't define type `char-id-table'.
976
977         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
978         (char_id_table): Likewise.
979         (GC_CHAR_ID_TABLE_P): Likewise.
980         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
981         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
982         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
983         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
984         (get_char_id_table): Use `Lisp_Char_Table' instead of
985         `Lisp_Char_ID_Table'.
986         (put_char_id_table_0): Likewise.
987         (put_char_id_table): Likewise.
988
989 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
990
991         * chartab.h: Lisp_Byte_Table related codes are moved from
992         chartab.h.
993
994         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
995
996 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
997
998         * chartab.h: Don't include "chartab.h".
999         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1000         (Lisp_Char_ID_Table): Likewise.
1001         (char_id_table): Likewise.
1002         (XCHAR_ID_TABLE): Likewise.
1003         (XSETCHAR_ID_TABLE): Likewise.
1004         (CHAR_ID_TABLE_P): Likewise.
1005         (GC_CHAR_ID_TABLE_P): Likewise.
1006         (get_char_id_table): Likewise.
1007
1008         * char-ucs.h: Include "chartab.h".
1009         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1010         (Lisp_Char_ID_Table): Likewise.
1011         (char_id_table): Likewise.
1012         (XCHAR_ID_TABLE): Likewise.
1013         (XSETCHAR_ID_TABLE): Likewise.
1014         (CHAR_ID_TABLE_P): Likewise.
1015         (GC_CHAR_ID_TABLE_P): Likewise.
1016         (get_char_id_table): Likewise.
1017
1018 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1019
1020         * chartab.c (copy_uint8_byte_table): New function.
1021         (copy_uint16_byte_table): New function.
1022         (copy_byte_table): New function.
1023         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1024         characters to call.
1025         (map_over_uint16_byte_table): Likewise.
1026         (map_over_byte_table): Likewise.
1027         (get_byte_table): Move prototype to chartab.h.
1028         (put_byte_table): Likewise.
1029         (put_char_id_table_0): Moved to chartab.h.
1030         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1031         (char_table_entry_equal): Likewise.
1032         (char_table_entry_hash): Likewise.
1033         (char_table_entry_description): Likewise.
1034         (char_table_entry): Likewise.
1035         (make_char_table_entry): Likewise.
1036         (copy_char_table_entry): Likewise.
1037         (get_non_ascii_char_table_value): Likewise.
1038         (map_over_charset_ascii): Likewise.
1039         (map_over_charset_control_1): Likewise.
1040         (map_over_charset_row): Likewise.
1041         (map_over_other_charset): Likewise.
1042         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1043         (print_char_table): Likewise.
1044         (char_table_equal): Likewise.
1045         (char_table_hash): Likewise.
1046         (char_table_description): Likewise.
1047         (fill_char_table): Likewise.
1048         (Fcopy_char_table): Likewise.
1049         (get_char_table): Likewise.
1050         (Fget_range_char_table): Likewise.
1051         (put_char_table): Likewise.
1052         (map_char_table): Likewise.
1053         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1054         UTF-2000.
1055
1056 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057
1058         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1059         `Vauto_fill_chars' in XEmacs UTF-2000.
1060
1061         * chartab.h (get_byte_table): New prototype [moved from
1062         chartab.c].
1063         (put_byte_table): Likewise [moved from chartab.c].
1064         (put_char_id_table_0): New inline function [moved from chartab.c].
1065         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1066         (Lisp_Char_Table_Entry): Likewise.
1067         (char_table_entry): Likewise.
1068         (XCHAR_TABLE_ENTRY): Likewise.
1069         (XSETCHAR_TABLE_ENTRY): Likewise.
1070         (CHAR_TABLE_ENTRYP): Likewise.
1071         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1072         (NUM_ASCII_CHARS): Likewise.
1073         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1074         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1075
1076 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1077
1078         * chartab.c (get_char_id_table): Change interface.
1079         (put_char_id_table_0): New function.
1080         (put_char_id_table): Change interface; new implementation.
1081         (Fget_composite_char): Modify for interface change of
1082         `get_char_id_table'.
1083         (Fchar_variants): Likewise.
1084         (add_char_attribute_alist_mapper): Likewise.
1085         (Fchar_attribute_alist): Likewise.
1086         (Fget_char_attribute): Likewise.
1087         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1088         as same as character as the first argument like `put-char-table';
1089         modify for interface change of `put_char_id_table'.
1090         (Fremove_char_attribute): Modify for interface change of
1091         `put_char_id_table'.
1092
1093 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1094
1095         * text-coding.c: Sync up with XEmacs 21.2.41.
1096         (COMPOSE_ADD_CHAR): Modify for interface change of
1097         `get_char_id_table'.
1098
1099         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1100         change of `put_char_id_table'.
1101         (remove_char_ccs): Likewise.
1102
1103         * chartab.h (put_char_id_table): Change interface.
1104
1105         * char-ucs.h (get_char_id_table): Change interface.
1106         (charset_code_point): Modify for interface change of
1107         `get_char_id_table'.
1108         (encode_char_1): Likewise.
1109
1110 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1113         argument `ccs'.
1114         (map_over_uint16_byte_table): Likewise.
1115         (map_over_byte_table): Likewise.
1116         (map_char_id_table): Add new argument `range' like
1117         `map_char_table'.
1118         (Fmap_char_attribute): Add new argument `range' like
1119         `Fmap_char_table'.
1120
1121 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122
1123         * chartab.c (map_over_uint8_byte_table): Change interface of
1124         mapping function to use struct chartab_range instead of Emchar.
1125         (map_over_uint16_byte_table): Likewise.
1126         (map_over_byte_table): Likewise.
1127         (map_char_id_table): Likewise.
1128         (struct slow_map_char_id_table_arg): Deleted.
1129         (slow_map_char_id_table_fun): Deleted.
1130         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1131         function `slow_map_char_table_fun' instead of struct
1132         `slow_map_char_id_table_arg' and function
1133         `slow_map_char_id_table_fun'.
1134
1135 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1136
1137         * mule-charset.c: Move char-it-table related codes to chartab.c.
1138         (Vutf_2000_version): Moved to chartab.c.
1139         (Fdefine_char): Likewise.
1140         (Ffind_char): Likewise.
1141         (syms_of_mule_charset): Move types `uint8-byte-table',
1142         `uint16-byte-table', `byte-table' and `char-id-table' to
1143         chartab.c; move functions `char_attribute_list,
1144         `find_char_attribute_table, `char_attribute_alist,
1145         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1146         `map_char_attribute, `define_char, `find_char, `char_variants and
1147         `get_composite_char to chartab.c; move symbols `=>ucs',
1148         `->decomposition', `compat', `isolated', `initial', `medial',
1149         `final', `vertical', `noBreak', `fraction', `super', `sub',
1150         `circle', `square', `wide', `narrow', `small' and `font' to
1151         chartab.c.
1152         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1153         setting codes for `Vcharacter_composition_table' and
1154         `Vcharacter_variant_table' to chartab.c.
1155         (complex_vars_of_mule_charset): Move setting code for
1156         `Vchar_attribute_hash_table' to chartab.c.
1157
1158         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1159         (make_char_id_table): New prototype.
1160         (put_char_id_table): Likewise.
1161         (Fget_char_attribute): Likewise.
1162
1163         * chartab.c: Move char-id-table related code from mule-charset.c.
1164         (Vutf_2000_version): Moved from mule-charset.c.
1165
1166         * char-ucs.h (Qucs): New external variable.
1167         (put_char_ccs_code_point): New prototype.
1168         (remove_char_ccs): Likewise.
1169
1170 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1171
1172         * mule-charset.c (Vcharset_ucs_jis): New variable.
1173         (Qucs_jis): Likewise.
1174         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1175         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1176
1177         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1178
1179 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1180
1181         * mule-charset.c (map_over_uint8_byte_table): New function.
1182         (map_over_uint16_byte_table): Likewise.
1183         (map_over_byte_table): Likewise.
1184         (map_char_id_table): Likewise.
1185         (slow_map_char_id_table_fun): Likewise.
1186         (Fmap_char_attribute): Likewise.
1187         (syms_of_mule_charset): Add new function `map-char-attribute'.
1188
1189 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1190
1191         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1192         (syms_of_mule_charset): Add new function `find-char'.
1193
1194 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1197         XEmacs UTF-2000.
1198         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1199         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1200         XEmacs UTF-2000.
1201         (complex_vars_of_mule_charset): Add new coded-charset
1202         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1203         `ideograph-gt-pj-*'.
1204
1205         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1206
1207 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1208
1209         * mule-charset.c (encode_builtin_char_1): Purge codes about
1210         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1211         {MIN|MAX}_CHAR_HEBREW.
1212         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1213         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1214
1215         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1216         (MAX_CHAR_GREEK): Purged.
1217         (MIN_CHAR_CYRILLIC): Purged.
1218         (MAX_CHAR_CYRILLIC): Purged.
1219         (MIN_CHAR_HEBREW): Commented out.
1220         (MAX_CHAR_HEBREW): Likewise.
1221
1222 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * mule-charset.c (Qto_ucs): New variable.
1225         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1226         (Fdefine_char): Likewise.
1227         (syms_of_mule_charset): Add new symbol `=>ucs'.
1228
1229 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1230
1231         * mule-charset.c (Fdecode_char): Fixed.
1232
1233 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1234
1235         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1236         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1237         "tcvn5712-1".
1238
1239 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1240
1241         * mule-charset.c (Vcharset_ucs_big5): New variable.
1242         (Qucs_big5): Likewise.
1243         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1244         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1245
1246         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1247
1248 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * mule-charset.c (decode_builtin_char): Check Big5 code range
1251         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1252
1253 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254
1255         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1256         (Qchinese_gb12345): Likewise.
1257         (Fdecode_builtin_char): Fixed.
1258         (syms_of_mule_charset): Add `chinese-gb12345'.
1259         (complex_vars_of_mule_charset): Add coded-charset
1260         `chinese-gb12345'.
1261
1262         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1263         (LEADING_BYTE_CHINESE_GB12345): New macro.
1264
1265 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266
1267         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1268         and `latin-viscii-upper' for `latin-viscii'.
1269
1270 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1271
1272         * mule-charset.c (Fdecode_builtin_char): Comment out
1273         regularization code for ISO-IR GR representation.
1274
1275 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * mule-charset.c (decode_builtin_char): New function; renamed from
1278         `make_builtin_char'; return -1 instead of signal.
1279         (Fdecode_builtin_char): Use `decode_builtin_char'.
1280
1281         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1282         `make_builtin_char'.
1283         (DECODE_CHAR): Use `decode_builtin_char' instead of
1284         `make_builtin_char'; use mapping table of `chinese-big5' for
1285         `chinese-big5-{1,2}'.
1286
1287 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288
1289         * text-coding.c (char_encode_big5): New function.
1290         (char_finish_big5): Likewise.
1291         (reset_encoding_stream): Use `char_encode_big5' and
1292         `char_finish_big5' for CODESYS_BIG5.
1293         (mule_encode): Don't use `encode_coding_big5'.
1294         (encode_coding_big5): Deleted.
1295
1296 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1299         0x81- in XEmacs UTF-2000.
1300         (detect_coding_big5): Likewise.
1301
1302 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303
1304         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1305         generate character-id if the CCS property does not have
1306         corresponding predefined character.
1307         (make_builtin_char): Return -1 if corresponding predefined
1308         character is not found.
1309         (Fdecode_char): Return nil if corresponding character is not
1310         found.
1311         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1312         don't map to builtin ucs space.
1313
1314 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1315
1316         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1317         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1318
1319 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1320
1321         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1322         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1323         (Qideograph_gt): Likewise.
1324         (Qideograph_gt_pj_{1..11}): Likewise.
1325         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1326         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1327         `ideograph-gt-pj-11'.
1328         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1329         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1330         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1331
1332         * char-ucs.h (LEADING_BYTE_GT): New macro.
1333         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1334         (MIN_CHAR_GT): Likewise.
1335         (MAX_CHAR_GT): Likewise.
1336
1337 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1338
1339         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1340         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1341
1342         * doprnt.c (unsigned_int_converters): Add `c'.
1343         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1344
1345         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1346         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1347         `MIN_CHAR_MOJIKYO'.
1348         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1349         (MAX_CHAR_MOJIKYO_0): New macro.
1350         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1351
1352 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * mule-charset.c (Fdefine_char): Delete cemented out code.
1355         (encode_builtin_char_1): Modify for new allocation of builtin
1356         Mojikyo characters.
1357
1358         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1359
1360 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1361
1362         * mule-charset.c (Vcharset_ucs_cns): New variable.
1363         (Qucs_cns): New variable.
1364         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1365         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1366
1367 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1370
1371 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1372
1373         * search.c (search_buffer): Make `charset_base_code' as
1374         character-id >> 6 to eliminate the corresponding last byte in
1375         UTF-8 representation [I'm not sure it is right thing].
1376         (boyer_moore): Likewise.
1377
1378 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1379
1380         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1381         representation in MULE.
1382
1383 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384
1385         * text-coding.c (Fmake_coding_system): Use
1386         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1387         `EXTERNAL_PROPERTY_LIST_LOOP'.
1388
1389 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1390
1391         * text-coding.c (decode_output_utf8_partial_char): New function.
1392         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1393
1394 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1395
1396         * text-coding.c (decode_coding_utf8): Output original byte
1397         sequence if it is broken; change order of conditions.
1398
1399         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1400         of conditions.
1401
1402         * mb-multibyte.h (BYTE_ASCII_P):
1403         Use bit ops for char-signedness safety.
1404         (BYTE_C0_P): Use bit ops for char-signedness safety.
1405         (BYTE_C1_P): Use bit ops for char-signedness safety.
1406
1407         * character.h: (XCHAR_OR_CHAR_INT):
1408         Always use inline function.
1409         Remove redundant type checking assert() - XINT will abort quite
1410         nicely.
1411
1412 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1413
1414         * text-coding.c: (Fencode_shift_jis_char):
1415         (Fencode_big5_char):
1416         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1417         Replace 0 with '\0' when working with bytes.
1418         Replace initial "(" with "\(" in docstrings.
1419
1420         (Fmake_coding_system):
1421         When type is ccl and value is vector, register it with a proper
1422         symbol.  And checks whether the given ccl program is valid.
1423         (mule_decode): When calling ccl_driver, if src indicates
1424         NULL pointer, set an empty string instead.
1425         (mule_encode): Likewise.
1426
1427         (detect_eol_type):
1428         (detect_coding_sjis):
1429         (decode_coding_sjis):
1430         (detect_coding_big5):
1431         (decode_coding_big5):
1432         (detect_coding_ucs4):
1433         (decode_coding_ucs4):
1434         (detect_coding_utf8):
1435         (decode_coding_utf8):
1436         (detect_coding_iso2022):
1437         (decode_coding_iso2022):
1438         (decode_coding_no_conversion):
1439         (mule_decode):
1440         Make all detecting and decoding functions take an Extbyte * arg.
1441         (text_encode_generic):
1442         (encode_coding_big5):
1443         (encode_coding_no_conversion):
1444         (mule_encode):
1445         Make all encoding functions take a Bufbyte * arg.
1446         Use size_t instead of unsigned int for memory sizes.
1447         Only cast to unsigned char whenever dereferencing Extbyte *.
1448
1449         (struct lrecord_description fcd_description_1): Use countof.
1450         (complex_vars_of_file_coding):
1451         Use countof instead of sizeof.
1452         Use CHECK_NATNUM instead of CHECK_INT.
1453
1454 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * mule-charset.c (Fget_char_attribute): Add new optional argument
1457         `default-value'.
1458         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1459         (remove_char_ccs): Likewise.
1460
1461 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * text-coding.c (char_encode_shift_jis): New implementation in
1464         UTF-2000.
1465         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1466         ...)'.
1467
1468         * mule-charset.c (Vcharset_chinese_big5): New variable in
1469         UTF-2000.
1470         (Qchinese_big5): New variable in UTF-2000.
1471         (BIG5_SAME_ROW): New macro in UTF-2000.
1472         (make_builtin_char): Use builtin characters of
1473         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1474         characters of `Vcharset_chinese_big5'.
1475         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1476         (complex_vars_of_mule_charset): Add new coded-charset
1477         `chinese-big5' in UTF-2000.
1478
1479         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1480         (Vcharset_chinese_big5): New external variable declaration.
1481         (Vcharset_japanese_jisx0208_1990): Likewise.
1482
1483 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1484
1485         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1486         function.
1487         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1488
1489 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1490
1491         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1492         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1493         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1494         `mojikyo-pj-*'.
1495
1496 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497
1498         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1499
1500 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1501
1502         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1503         to 0.17.
1504
1505 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1508         for `CHARSET_BY_ATTRIBUTES'.
1509         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1510         `CHARSET_BY_ATTRIBUTES'.
1511
1512         * text-coding.c (struct decoding_stream): Rename member `CH' to
1513         `CPOS'.
1514         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1515         (decode_coding_sjis): Likewise.
1516         (decode_coding_big5): Likewise.
1517         (decode_coding_ucs4): Likewise.
1518         (decode_coding_utf8): Likewise.
1519         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1520         `CHARSET_BY_ATTRIBUTES'.
1521         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1522         `str->counter'; decode 3, 4 bytes sets.
1523         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1524         sets.
1525         (decode_coding_no_conversion): Use `str->cpos' instead of
1526         `str->ch'.
1527
1528         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1529         (Qmojikyo_2022_1): New variable.
1530         (make_charset): Don't use `CHARSET_TYPE_*'.
1531         (range_charset_code_point): Support coded-charset
1532         `mojikyo-2022-1'.
1533         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1534         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1535         `CHARSET_BY_ATTRIBUTES'.
1536         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1537         `CHARSET_BY_ATTRIBUTES'.
1538         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1539         (complex_vars_of_mule_charset): Add new coded-charset
1540         `mojikyo-2022-1'.
1541
1542         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1543         interface; changed to inline function.
1544
1545         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1546         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1547         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1548         (CHARSET_TYPE_94): Deleted.
1549         (CHARSET_TYPE_94X94): Deleted.
1550         (CHARSET_TYPE_96): Deleted.
1551         (CHARSET_TYPE_96X96): Deleted.
1552         (CHARSET_TYPE_128): Deleted.
1553         (CHARSET_TYPE_128X128): Deleted.
1554         (CHARSET_TYPE_256): Deleted.
1555         (CHARSET_TYPE_256X256): Deleted.
1556         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1557         to inline function.
1558         (DECODE_MOJIKYO_2022): New inline function.
1559         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1560         `Vcharset_mojikyo_2022_1'.
1561
1562 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1563
1564         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1565         instead of `EQ'.
1566         (put_byte_table): Likewise.
1567         (char_id_table_equal): Use `get_byte_table' [new implementation].
1568
1569 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1570
1571         * mule-charset.c: Include <limits.h> in UTF-2000.
1572         (BT_UINT8_MIN): New macro in UTF-2000.
1573         (BT_UINT8_MAX): New macro in UTF-2000.
1574         (BT_UINT8_t): New macro in UTF-2000.
1575         (BT_UINT8_nil): New macro in UTF-2000.
1576         (BT_UINT8_unbound): New macro in UTF-2000.
1577         (INT_UINT8_P): New inline function in UTF-2000.
1578         (UINT8_VALUE_P): New inline function in UTF-2000.
1579         (UINT8_ENCODE): New inline function in UTF-2000.
1580         (UINT8_DECODE): New inline function in UTF-2000.
1581         (mark_uint8_byte_table): New function in UTF-2000.
1582         (print_uint8_byte_table): New function in UTF-2000.
1583         (uint8_byte_table_equal): New function in UTF-2000.
1584         (uint8_byte_table_hash): New function in UTF-2000.
1585         (make_uint8_byte_table): New function in UTF-2000.
1586         (uint8_byte_table_same_value_p): New function in UTF-2000.
1587         (BT_UINT16_MIN): New macro in UTF-2000.
1588         (BT_UINT16_MAX): New macro in UTF-2000.
1589         (BT_UINT16_t): New macro in UTF-2000.
1590         (BT_UINT16_nil): New macro in UTF-2000.
1591         (BT_UINT16_unbound): New macro in UTF-2000.
1592         (INT_UINT16_P): New inline function in UTF-2000.
1593         (UINT16_VALUE_P): New inline function in UTF-2000.
1594         (UINT16_ENCODE): New inline function in UTF-2000.
1595         (UINT16_DECODE): New inline function in UTF-2000.
1596         (UINT8_TO_UINT16): New inline function in UTF-2000.
1597         (mark_uint16_byte_table): New function in UTF-2000.
1598         (print_uint16_byte_table): New function in UTF-2000.
1599         (uint16_byte_table_equal): New function in UTF-2000.
1600         (uint16_byte_table_hash): New function in UTF-2000.
1601         (make_uint16_byte_table): New function in UTF-2000.
1602         (uint16_byte_table_same_value_p): New function in UTF-2000.
1603         (print_byte_table): New function in UTF-2000.
1604         (byte-table): Use `print_byte_table' as printer.
1605         (make_byte_table): Delete second argument `older'.
1606         (byte_table_same_value_p): New function in UTF-2000.
1607         (copy_byte_table): Deleted.
1608         (get_byte_table): New function in UTF-2000.
1609         (put_byte_table): New function in UTF-2000.
1610         (print_char_id_table): New function in UTF-2000.
1611         (char-id-table): Use `print_char_id_table' as printer.
1612         (make_char_id_table): Delete second argument `older'.
1613         (get_char_id_table): Use `get_byte_table [new implementation].
1614         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1615         implementation].
1616         (Ffind_char_attribute_table): New function in UTF-2000.
1617         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1618         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1619         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1620         (syms_of_mule_charset): Add new function
1621         `find-char-attribute-table' in UTF-2000.
1622
1623         * lrecord.h (enum lrecord_type): Add
1624         `lrecord_type_uint16_byte_table' and
1625         `lrecord_type_uint8_byte_table'.
1626
1627         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1628         (Lisp_Uint8_Byte_Table): New type.
1629         (XUINT8_BYTE_TABLE): New macro.
1630         (XSETUINT8_BYTE_TABLE): New macro.
1631         (UINT8_BYTE_TABLE_P): New macro.
1632         (GC_UINT8_BYTE_TABLE_P): New macro.
1633         (struct Lisp_Uint16_Byte_Table): New structure.
1634         (Lisp_Uint16_Byte_Table): New type.
1635         (XUINT16_BYTE_TABLE): New macro.
1636         (XSETUINT16_BYTE_TABLE): New macro.
1637         (UINT16_BYTE_TABLE_P): New macro.
1638         (GC_UINT16_BYTE_TABLE_P): New macro.
1639
1640 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1641
1642         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1643         (Vcharacter_ideographic_strokes_table): Deleted.
1644         (Vcharacter_total_strokes_table): Deleted.
1645         (Vcharacter_morohashi_daikanwa_table): Deleted.
1646         (Vcharacter_decomposition_table): Deleted.
1647         (Qname): Deleted because it is duplicated.
1648         (Qideographic_radical): Deleted.
1649         (Qideographic_strokes): Deleted.
1650         (Qtotal_strokes): Deleted.
1651         (Qmorohashi_daikanwa): Deleted.
1652         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1653         `ideographic-radical', `ideographic-strokes', `total-strokes',
1654         `morohashi-daikanwa' and `->decomposition'.
1655         (Fget_char_attribute): Likewise.
1656         (Fput_char_attribute): Likewise; use `make-vector' instead of
1657         `make_older_vector' for `->decomposition' value.
1658         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1659         `ideograph-daikanwa'.
1660         (syms_of_mule_charset): Delete builtin symbols `name',
1661         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1662         `morohashi-daikanwa'.
1663         (vars_of_mule_charset): Don't setup
1664         `Vcharacter_ideographic_radical_table',
1665         `Vcharacter_ideographic_strokes_table',
1666         `Vcharacter_total_strokes_table',
1667         `Vcharacter_morohashi_daikanwa_table' and
1668         `Vcharacter_decomposition_table'.
1669
1670 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1671
1672         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1673         `make_older_vector', `make_vector_newer_1' and
1674         `make_vector_newer'.
1675
1676         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1677         `make_older_vector' and `make_vector_newer'.
1678
1679         * config.h.in (HAVE_GGC): New macro.
1680
1681 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1682
1683         * mule-charset.c (struct char_attribute_list_closure): New
1684         structure in UTF-2000.
1685         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1686         (Fchar_attribute_list): Likewise.
1687         (Fset_charset_mapping_table): Use `make_vector_newer'.
1688         (Fdecode_builtin_char): New function in UTF-2000.
1689         (syms_of_mule_charset): Add new function `char-attribute-list' and
1690         `decode-builtin-char' in UTF-2000.
1691
1692         * lisp.h (make_vector_newer): New prototype.
1693
1694         * alloc.c (make_vector_newer_1): New function.
1695         (make_vector_newer): New function.
1696
1697 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1698
1699         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1700         50100)'.
1701
1702 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1703
1704         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1705         (Vcharacter_attribute_table): Deleted.
1706         (Vcharacter_name_table): Deleted.
1707         (put_char_attribute): Deleted.
1708         (remove_char_attribute): Deleted.
1709         (struct char_attribute_alist_closure): New structure.
1710         (add_char_attribute_alist_mapper): New function.
1711         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1712         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1713         (Fget_char_attribute): Likewise.
1714         (Fput_char_attribute): Likewise.
1715         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1716         of `remove_char_attribute'.
1717         (Fdefine_char): Return character.
1718         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1719         and `Vcharacter_name_table'.
1720         (complex_vars_of_mule_charset): Likewise
1721         `Vchar_attribute_hash_table'.
1722
1723 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1724
1725         * character.h (CHARC_CHARSET): New macro.
1726         (CHARC_CHARSET_ID): New macro.
1727         (CHARC_CODE_POINT): New macro.
1728         (CHARC_COLUMNS): New macro.
1729         (CHARC_TO_CHAR): New inline function.
1730         (CHARC_EQ): New inline function.
1731         (CHARC_ASCII_EQ): New inline function.
1732         (CHARC_IS_SPACE): New inline function.
1733         (ASCII_TO_CHARC): New inline function.
1734
1735         * char-ucs.h (encode_char_2): Deleted.
1736         (ENCODE_CHAR): Use `encode_char_1' again.
1737         (breakup_char_1): Likewise.
1738         (CHAR_TO_CHARC): New inline function.
1739
1740         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1741
1742 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1743
1744         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1745         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1746         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1747         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1748         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1749         `CHARC_IS_SPACE'.
1750         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1751
1752         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1753         `CHARC_CODE_POINT'.
1754         (x_output_display_block): Use `CHARC_CHARSET' and
1755         `CHARC_ASCII_EQ'.
1756
1757         * redisplay-tty.c (tty_output_display_block): Use
1758         `CHARC_ASCII_EQ'.
1759         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1760
1761         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1762
1763         * insdel.c (find_charsets_in_charc_string): Use
1764         `CHARC_CHARSET_ID'.
1765         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1766         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1767         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1768         (convert_charc_string_into_malloced_string): Likewise.
1769
1770 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1771
1772         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1773         instead of <Emchar_dynarr *> for buf; use
1774         `convert_bufbyte_string_into_charc_dynarr' instead of
1775         `convert_bufbyte_string_into_emchar_dynarr'; use
1776         `find_charsets_in_charc_string' instead of
1777         `find_charsets_in_emchar_string'.
1778
1779         * redisplay.h:
1780         - Include "character.h".
1781         (struct rune): New member `cglyph'; delete member `chr'.
1782
1783         * redisplay.c (redisplay_text_width_charc_string): New function;
1784         delete `redisplay_text_width_emchar_string'.
1785         (rtw_charc_dynarr): New variable; renamed from
1786         `rtw_emchar_dynarr'.
1787         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1788         `rtw_emchar_dynarr'; use
1789         `convert_bufbyte_string_into_charc_dynarr' instead of
1790         `convert_bufbyte_string_into_emchar_dynarr'; use
1791         `redisplay_text_width_charc_string' instead of
1792         `redisplay_text_width_emchar_string'.
1793         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1794         instead of `rtw_emchar_dynarr'; use
1795         `convert_bufbyte_string_into_charc_dynarr' instead of
1796         `convert_bufbyte_string_into_emchar_dynarr'.
1797         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1798         `redisplay_text_width_charc_string' instead of
1799         `redisplay_text_width_emchar_string'.
1800         (create_text_block): Modify for <struct rune> change.
1801         (generate_formatted_string_db): Likewise.
1802         (create_string_text_block): Likewise.
1803         (pixel_to_glyph_translation): Likewise.
1804
1805         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1806         instead of <const Emchar *>.
1807         (x_text_width): Likewise.
1808         (x_output_display_block): Use <Charc_dynarr *> instead
1809         <Emchar_dynarr *>; modify for <structure rune> change.
1810         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1811         *>.
1812
1813         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1814         <const Emchar *>; use `charc_string_displayed_columns' instead of
1815         `emchar_string_displayed_columns'.
1816         (tty_output_display_block): Use <Charc_dynarr *> instead of
1817         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1818         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1819         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1820         `tty_output_emchar_dynarr_dynarr'.
1821         (tty_output_charc_dynarr): New function; delete
1822         `tty_output_charc_dynarr'.
1823
1824         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1825         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1826         <Emchar_dynarr *> for buf; use
1827         `convert_bufbyte_string_into_charc_dynarr' instead of
1828         `convert_bufbyte_string_into_emchar_dynarr'.
1829
1830         * frame.c (title_string_charc_dynarr): New variable; renamed from
1831         `title_string_emchar_dynarr'.
1832         (generate_title_string): Use `title_string_charc_dynarr' instead
1833         of `title_string_emchar_dynarr'; use
1834         `convert_charc_string_into_malloced_string' instead of
1835         `convert_emchar_string_into_malloced_string'.
1836         (init_frame): Use `title_string_charc_dynarr' instead of
1837         `title_string_emchar_dynarr'.
1838
1839         * console.h:
1840         - Include "character.h".
1841         (struct console_methods): Use <const Charc *> instead of <const
1842         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1843         <Emchar_dynarr *> in output_string_method.
1844
1845         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1846         <Emchar_dynarr *>.
1847
1848         * console-stream.c (stream_text_width): Use <const Charc *>
1849         instead of <const Emchar *>.
1850
1851         * character.h (Charc_dynarr): New type.
1852
1853         * char-ucs.h (structure Charc): New structure; define new type
1854         `Charc'.
1855
1856         * char-lb.h (DECODE_CHAR): New inline function.
1857         (encode_char_1): New inline function.
1858         (ENCODE_CHAR): New macro.
1859         (structure Charc): New structure; define new type `Charc'.
1860
1861         * char-1byte.h (Vcharset_control_1): New macro.
1862         (Vcharset_latin_iso8859_1): New macro.
1863         (DECODE_CHAR): New inline function.
1864         (encode_char_1): New inline function.
1865         (ENCODE_CHAR): New macro.
1866         (structure Charc): New structure; define new type `Charc'.
1867
1868         * insdel.c (find_charsets_in_charc_string): New function; delete
1869         `find_charsets_in_emchar_string'.
1870         (charc_string_displayed_columns): New function; delete
1871         `emchar_string_displayed_columns'.
1872         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1873         `convert_bufbyte_string_into_emchar_dynarr'.
1874         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1875         `convert_charc_string_into_bufbyte_dynarr'.
1876         (convert_charc_string_into_malloced_string): New function; delete
1877         `convert_charc_string_into_malloced_string'.
1878
1879         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1880         `find_charsets_in_emchar_string'.
1881         (charc_string_displayed_columns): New prototype; delete
1882         `emchar_string_displayed_columns'.
1883         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1884         `convert_charc_string_into_bufbyte_dynarr'.
1885         (convert_charc_string_into_malloced_string): New prototype; delete
1886         `convert_charc_string_into_malloced_string'.
1887
1888 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1889
1890         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1891
1892 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893
1894         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1895
1896         * char-ucs.h: Use <short> for <Charset_ID>.
1897
1898         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1899         <Charset_ID>.
1900
1901 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1904         to 0.16.
1905
1906 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1909         variable.
1910         (Qmorohashi_daikanwa): New variable.
1911         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1912         for `morohashi-daikanwa' attribute.
1913         (Fget_char_attribute): Likewise.
1914         (Fput_char_attribute): Likewise.
1915         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1916         has the same value of `ideograph-daikanwa'.
1917         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1918         (vars_of_mule_charset): Setup
1919         `Vcharacter_morohashi_daikanwa_table'.
1920
1921 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1924         attributes.
1925         (add_charset_to_list_mapper): Add `key' instead of
1926         `XCHARSET_NAME (value)' to return aliases.
1927
1928 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1929
1930         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1931         variable.
1932         (Vcharacter_ideographic_strokes_table): New variable.
1933         (Qideographic_radical): New variable.
1934         (Qideographic_strokes): New variable.
1935         (Fchar_attribute_alist): Use
1936         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1937         attribute; use `Vcharacter_ideographic_strokes_table' for
1938         `ideographic-strokes' attribute.
1939         (Fget_char_attribute): Likewise.
1940         (Fput_char_attribute): Likewise.
1941         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1942         `ideographic-strokes'.
1943         (vars_of_mule_charset): Setup
1944         `Vcharacter_ideographic_radical_table' and
1945         `Vcharacter_ideographic_strokes_table'.
1946
1947 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948
1949         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1950         (Qtotal_strokes): New variable.
1951         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1952         `total-strokes' attribute.
1953         (Fget_char_attribute): Likewise.
1954         (Fput_char_attribute): Likewise.
1955         (syms_of_mule_charset): Add new symbol `total-strokes'.
1956         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1957
1958 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1961         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1962         are found.
1963         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1964         `->decomposition' attribute.
1965         (Fput_char_attribute): Likewise.
1966         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1967
1968 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1969
1970         * mule-charset.c (decoding_table_check_elements): New function.
1971         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1972
1973 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * mule-charset.c (Fset_charset_mapping_table): Use
1976         `put_char_ccs_code_point'.
1977
1978 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1979
1980         * mule-charset.c (decoding_table_put_char): New inline function.
1981         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1982
1983 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1984
1985         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1986         (XCHARSET_BYTE_SIZE): New macro.
1987         (decoding_table_remove_char): New inline function.
1988         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1989         `decoding_table_remove_char'.
1990         (remove_char_ccs): Use `decoding_table_remove_char'.
1991         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1992
1993 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994
1995         * mule-charset.c (Vcharacter_name_table): New variable.
1996         (Qname): New variable.
1997         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1998         attribute.
1999         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2000         `Vcharacter_name_table' for `name' attribute.
2001         (Fremove_char_attribute): Use function `remove_char_ccs'.
2002         (put_char_ccs_code_point): New function.
2003         (remove_char_ccs): New function.
2004         (syms_of_mule_charset): Add new symbol `name'.
2005         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2006
2007 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2008
2009         * mule-charset.c (make_byte_table): Add new argument `older'.
2010         (make_char_id_table): Likewise.
2011         (copy_char_id_table): Comment out because it is not used.
2012         (put_char_id_table): Modify for `make_byte_table'.
2013         (Fput_char_attribute): Make encoding_table as older object;
2014         inherit older bit of `Vcharacter_composition_table'.
2015         (mark_charset): Don't mark `cs->encoding_table'.
2016         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2017         normal object; make `Vcharacter_composition_table' as an older
2018         object; delete staticpro for `Vcharacter_composition_table'; make
2019         `Vcharacter_variant_table' as a normal object.
2020
2021         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2022         (mark_object): Don't check older object in UTF-2000.
2023
2024         * lrecord.h (struct lrecord_header): Add new member `older' in
2025         UTF-2000.
2026         (set_lheader_implementation): Setup `SLI_header->older' in
2027         UTF-2000.
2028         (set_lheader_older_implementation): New macro in UTF-2000.
2029         (OLDER_RECORD_P): New macro in UTF-2000.
2030         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2031         (alloc_older_lcrecord): New prototype in UTF-2000.
2032         (alloc_older_lcrecord_type): New macro in UTF-2000.
2033
2034 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035
2036         * mule-charset.c (byte_table_description): Use
2037         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2038         (char_id_table_description): Delete bogus `, 1'.
2039         (Fget_char_attribute): Refer encoding_table of each coded-charset
2040         to get value of coded-charset attribute of a character.
2041         (Fput_char_attribute): Use `make_older_vector' instead of
2042         `make_vector'; use encoding_table of each coded-charset to store
2043         value of coded-charset attribute of a character.
2044         (Fremove_char_attribute): Use encoding_table of each coded-charset
2045         to store value of coded-charset attribute of a character.
2046         (mark_charset): Mark `cs->encoding_table'; don't mark
2047         `cs->decoding_table'.
2048         (charset_description): Add description of new member
2049         `encoding_table'.
2050         (make_charset): Initialize `encoding_table'.
2051
2052         * char-ucs.h (struct Lisp_Charset): Add new member
2053         `encoding_table'.
2054         (CHARSET_ENCODING_TABLE): New macro.
2055         (XCHARSET_ENCODING_TABLE): New macro.
2056         (charset_code_point): New implementation.
2057         (encode_char_1): Likewise.
2058
2059         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2060         (disksave_object_finalization_1): Call finalizers of
2061         `all_older_lcrecords' in UTF-2000.
2062         (make_older_vector): New function in UTF-2000.
2063         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2064         UTF-2000.
2065
2066         * lisp.h (make_older_vector): New prototype in UTF-2000.
2067
2068 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069
2070         * lrecord.h (enum lrecord_type): Rename
2071         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2072
2073         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2074         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2075         `get_char_code_table'.
2076
2077         * mule-charset.c (mark_char_id_table): Renamed from
2078         `mark_char_code_table'.
2079         (char_id_table_equal): Renamed from `char_code_table_equal'.
2080         (char_id_table_hash): Renamed from `char_code_table_hash'.
2081         (make_char_id_table): Renamed from `make_char_code_table'.
2082         (copy_char_id_table): Renamed from `copy_char_code_table'.
2083         (get_char_id_table): Renamed from `get_char_code_table'.
2084         (put_char_id_table): Renamed from `put_char_code_table'.
2085         (to_char_id): Renamed from `to_char_code'.
2086
2087         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2088         `Lisp_Char_Code_Table'.
2089         (char_id_table): Renamed from `char_code_table'.
2090         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2091         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2092         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2093         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2094         (get_char_id_table): Renamed from `get_char_code_table'.
2095
2096 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2097
2098         * lrecord.h (enum lrecord_type): Rename
2099         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2100
2101         * mule-charset.c (mark_byte_table): Renamed from
2102         `mark_char_byte_table'.
2103         (byte_table_equal): Renamed from `char_byte_table_equal'.
2104         (byte_table_hash): Renamed from `byte_table_hash'.
2105         (make_byte_table): Renamed from `make_byte_table'.
2106         (copy_byte_table): Renamed from `copy_char_byte_table'.
2107
2108         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2109         `Lisp_Char_Byte_Table'.
2110         (byte_table): Renamed from `char_byte_table'.
2111         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2112         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2113         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2114         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2115
2116 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117
2118         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2119         (dfc_convert_to_internal_format): Likewise.
2120         
2121         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2122         * text-coding.c (Fcoding_system_alias_p): New function.
2123         * text-coding.c (Fcoding_system_aliasee): New function.
2124         * text-coding.c (append_suffix_to_symbol): New function.
2125         * text-coding.c (dangling_coding_system_alias_p): New function.
2126         * text-coding.c (Ffind_coding_system):
2127         * text-coding.c (Fcopy_coding_system):
2128         * text-coding.c (encode_coding_no_conversion):
2129         * text-coding.c (syms_of_file_coding):
2130         * text-coding.c (vars_of_file_coding):
2131         Rewrite coding system alias code.
2132         Allow nested aliases, like symbolic links.
2133         Allow redefinition of coding system aliases.
2134         Prevent existence of dangling coding system aliases.
2135         Eliminate convert_to_external_format.
2136         Eliminate convert_to_internal_format.
2137         
2138         * text-coding.c: Change enum eol_type to eol_type_t.
2139
2140 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2141
2142         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2143         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2144
2145         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2146         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2147
2148 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2149
2150         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2151         `ideograph-daikanwa'.
2152
2153         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2154         (Vcharset_ucs_bmp): Likewise.
2155         (Vcharset_mojikyo): Add new extern variable definition.
2156         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2157         (Vcharset_latin_iso8859_3): Likewise.
2158         (Vcharset_latin_iso8859_4): Likewise.
2159         (Vcharset_latin_iso8859_9): Likewise.
2160         (Vcharset_latin_viscii_lower): Likewise.
2161         (Vcharset_latin_viscii_upper): Likewise.
2162         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2163         `mojikyo' code-point is used to decode.
2164         (encode_char_2): New function [to convert `mojikyo' code-point to
2165         Mojikyo font encoding].
2166         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2167         (breakup_char_1): Likewise.
2168         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2169
2170 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2171
2172         * text-coding.c (Fmake_coding_system): Add document about
2173         `disable-composition' property.
2174
2175 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176
2177         * text-coding.c (Qdisable_composition): New variable; delete
2178         `Qcomposite'.
2179         (Fmake_coding_system): Add new property `disable-composite';
2180         delete property `composite'.
2181         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2182         instead of `!CODING_SYSTEM_COMPOSITE'.
2183         (syms_of_file_coding): Add new symbol `disable-composition';
2184         delete symbol `composite'.
2185
2186         * file-coding.h (struct Lisp_Coding_System): Add
2187         `disable_composition'; delete `enable_composition'.
2188         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2189         `CODING_SYSTEM_COMPOSITE'.
2190         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2191         `XCODING_SYSTEM_COMPOSITE'.
2192
2193 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2196         to 0.15.
2197
2198 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2199
2200         * text-coding.c (Qcomposite): New variable.
2201         (Fmake_coding_system): Add new property `composite'.
2202         (struct decoding_stream): Add `combined_char_count',
2203         `combined_chars' and `combining_table' in UTF-2000.
2204         (COMPOSE_FLUSH_CHARS): New macro.
2205         (COMPOSE_ADD_CHAR): New macro.
2206         (reset_decoding_stream): Reset `str->combined_char_count' and
2207         `str->combining_table' in UTF-2000.
2208         (decode_coding_iso2022): Modify for character-decomposition.
2209         (syms_of_file_coding): Add new symbol `composite'.
2210
2211 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2214         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2215         of `Vcharacter_composition_table' if `->decomposition' property
2216         has only 1 element.
2217         (Qlatin_tcvn5712): New variable.
2218         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2219         (complex_vars_of_mule_charset): Add new coded-charset
2220         `latin-tcvn5712'.
2221
2222         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2223
2224 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * file-coding.h (struct Lisp_Coding_System): Add
2227         `enable_composition'.
2228         (CODING_SYSTEM_COMPOSITE): New macro.
2229         (XCODING_SYSTEM_COMPOSITE): New macro.
2230
2231 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2232
2233         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2234
2235 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2236
2237         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2238         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2239
2240 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2241
2242         * mule-charset.c (Vcharset_mojikyo): New variable.
2243         (Fdefine_char): Don't use coded-charset which does not have
2244         non-builtin character range to allocate character-id.
2245         (Qmojikyo): New variable.
2246         (syms_of_mule_charset): Add new symbol `mojikyo'.
2247         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2248
2249         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2250         (LEADING_BYTE_MOJIKYO): New macro.
2251         (MIN_CHAR_MOJIKYO): New macro.
2252         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2253         (MAX_CHAR_MOJIKYO): New macro.
2254
2255 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2256
2257         * mule-charset.c (remove_char_attribute): Fixed.
2258
2259 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2260
2261         * mule-charset.c (remove_char_attribute): New function.
2262         (Fremove_char_attribute): New function.
2263         (encode_builtin_char_1): Comment out builtin-support for
2264         greek-iso8859-7 and cyrillic-iso8859-5.
2265         (Fdecode_char): Check `code' is an integer.
2266         (syms_of_mule_charset): Add `remove-char-attribute'.
2267         (MIN_CHAR_GREEK): Deleted.
2268         (MAX_CHAR_GREEK): Likewise.
2269         (MIN_CHAR_CYRILLIC): Likewise.
2270         (MAX_CHAR_CYRILLIC): Likewise.
2271         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2272         MAX_CHAR_GREEK for `greek-iso8859-7'.
2273
2274         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2275         (MAX_CHAR_GREEK): Likewise.
2276         (MIN_CHAR_CYRILLIC): Likewise.
2277         (MAX_CHAR_CYRILLIC): Likewise.
2278
2279 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2280
2281         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2282         format is used without `ucs' property.
2283         (Fdecode_char): Fix problem with GR representation.
2284         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2285         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2286
2287 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2288
2289         * mule-charset.c (make_builtin_char): New function.
2290         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2291         (Fset_charset_mapping_table): Modify for new representation of
2292         code-point.
2293         (Fdecode_char): New function.
2294         (syms_of_mule_charset): Add new builtin function `decode-char' in
2295         UTF-2000.
2296
2297         * char-ucs.h (make_builtin_char): New prototype.
2298         (DECODE_CHAR): New inline function.
2299         (MAKE_CHAR): Use `DECODE_CHAR'.
2300
2301 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2302
2303         * text-coding.c (parse_charset_conversion_specs): Use
2304         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2305         `XCHARSET_TYPE'.
2306         (iso2022_designate): Likewise.
2307
2308         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2309         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2310
2311         * mule-charset.c (Vcharset_ucs): New variable.
2312         (print_charset): Change design; use `CHARSET_CHARS' and
2313         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2314         (make_charset): Change signature to specify `chars' and
2315         `dimension' instead of `type'.
2316         (range_charset_code_point): Modify for 256^n-set.
2317         (encode_builtin_char_1): Encode as `ucs' in default.
2318         (Fmake_charset): Modify for `make_charset'.
2319         (Fmake_reverse_direction_charset): Likewise.
2320         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2321         UTF-2000.
2322         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2323         for `make_charset'.
2324
2325         * char-ucs.h (Vcharset_ucs): New variable.
2326         (LEADING_BYTE_UCS): New macro.
2327         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2328         and `chars' to `unsigned short' from `unsigned int'.
2329         (CHARSET_TYPE): Deleted.
2330         (XCHARSET_TYPE): Deleted.
2331
2332 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2333
2334         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2335
2336         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2337         (ENCODE_CHAR): New macro.
2338
2339 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2340
2341         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2342         to 0.14 (Kawachi-Katakami).
2343
2344 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2345
2346         * text-coding.c (char_encode_shift_jis): Modify for
2347         `charset_code_point'.
2348         (char_encode_iso2022): Likewise.
2349
2350         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2351         (integer) instead of list of <Lisp_Object>s (integers) as the
2352         format of code-point of a coded-charset.
2353         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2354         (encode_builtin_char_1): New function; delete
2355         `split_builtin_char'.
2356         (charset_code_point): Return <int> instead of <Lisp_Object>.
2357         (Fsplit_char): Don't use `SPLIT_CHAR'.
2358
2359         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2360         prototype for `split_builtin_char'.
2361         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2362         (charset_code_point): Likewise.
2363         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2364         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2365
2366 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2367
2368         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2369         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2370
2371 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2372
2373         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2374
2375         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2376         (MAX_CHAR_OBS_94x94): Deleted.
2377
2378 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2379
2380         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2381
2382         * char-ucs.h (MAX_CHAR_BMP): New macro.
2383
2384 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2385
2386         * text-coding.c: Sync with r21-2-24.
2387
2388 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2389
2390         * file-coding.c: Modify for UTF-2000.
2391
2392 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2393
2394         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2395         to 0.13 (Takaida).
2396
2397 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2398
2399         * mule-charset.c (split_builtin_char): Delete builtin support for
2400         `katakana-jisx0201'.
2401         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2402         BMP area in builtin representation.
2403
2404         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2405         `Vcharset_katakana_jisx0201'.
2406
2407 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2408
2409         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2410         (Qisolated): New variable.
2411         (Qinitial): New variable.
2412         (Qmedial): New variable.
2413         (Qfinal): New variable.
2414         (Qvertical): New variable.
2415         (Qsmall): New variable.
2416         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2417         `Qvertical' and `Qsmall'.
2418         (Qmojikyo_pj_[1 .. 21]): New variable.
2419         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2420         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2421         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2422         .. 21]'.
2423
2424 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2425
2426         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2427         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2428         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2429
2430 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2431
2432         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2433         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2434         BMP.
2435         (Qjapanese_jisx0208_1990): New variable.
2436         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2437         (complex_vars_of_mule_charset): Add new coded-charset
2438         `japanese-jisx0208-1990'.
2439
2440         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2441         (MIN_CHAR_JIS_X0208_1990): New macro.
2442         (MAX_CHAR_JIS_X0208_1990): New macro.
2443
2444 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2445
2446         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2447         coded-charset is not found.
2448
2449 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2450
2451         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2452         (Fdefine_char): Use `Fmake_char'.
2453
2454 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2455
2456         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2457         (Vcharset_hiragana_jisx0208): Deleted.
2458         (Vcharset_katakana_jisx0208): Deleted.
2459         (Qideograph_daikanwa): New variable.
2460         (Qhiragana_jisx0208): Deleted.
2461         (Qkatakana_jisx0208): Deleted.
2462         (split_builtin_char): Split `ideograph-daikanwa'.
2463         (Fsplit_char): New implementation for UTF-2000.
2464         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2465         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2466         (complex_vars_of_mule_charset): Add new coded-charset
2467         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2468         `katakana-jisx0208'.
2469
2470         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2471         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2472         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2473         (MIN_CHAR_DAIKANWA): New macro.
2474         (MAX_CHAR_DAIKANWA): New macro.
2475
2476 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2477
2478         * data.c (Fstring_to_number): Don't recognize floating point if
2479         base is not 10.
2480
2481 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2482
2483         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2484
2485 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2486
2487         * mule-charset.c (Qsquare): New variable.
2488         (to_char_code): Add `Qsquare'.
2489         (syms_of_mule_charset): Add new symbol `square'.
2490
2491 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2492
2493         * mule-charset.c (Qcircle): New variable.
2494         (to_char_code): Add `Qcircle'.
2495         (syms_of_mule_charset): Add new symbol `circle'.
2496
2497 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2498
2499         * mule-charset.c (Qfont): New variable.
2500         (to_char_code): Add `Qfont'.
2501         (syms_of_mule_charset): Add new symbol `font'.
2502
2503 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2504
2505         * mule-charset.c (Qsub): New variable.
2506         (to_char_code): Add `Qsub'.
2507         (syms_of_mule_charset): Add new symbol `sub'.
2508
2509 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2510
2511         * mule-charset.c (Fput_char_attribute): Convert each element of
2512         VALUE to GL position if ATTRIBUTE is a GR-set,
2513
2514 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2515
2516         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2517         coded-charset is a GR-set.
2518
2519 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2520
2521         * mule-charset.c (Fput_char_attribute): Check each element of
2522         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2523
2524 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2525
2526         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2527         UTF-2000.
2528         (Qethiopic_ucs): New variable in UTF-2000.
2529         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2530         (complex_vars_of_mule_charset): Add new coded-charset
2531         `ethiopic-ucs' in UTF-2000.
2532
2533         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2534         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2535         9)'.
2536         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2537         10)'.
2538         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2539
2540 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2541
2542         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2543         `ascii'.
2544
2545 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2546
2547         * mule-charset.c (Vcharacter_variant_table): New variable.
2548         (Q_ucs): New variable.
2549         (Fchar_variants): New function.
2550         (Fput_char_attribute): Register `->ucs' value to
2551         `Vcharacter_variant_table'.
2552         (syms_of_mule_charset): Add new function `char-variants' and new
2553         symbol `->ucs'.
2554         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2555
2556 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2557
2558         * mule-charset.c (get_char_code_table): Allow negative character
2559         code.
2560         (put_char_code_table): Likewise.
2561         (Vcharacter_composition_table): New variable.
2562         (Q_decomposition): New variable.
2563         (Qwide): New variable.
2564         (Qnarrow): New variable.
2565         (Qcompat): New variable.
2566         (QnoBreak): New variable.
2567         (Qsuper): New variable.
2568         (Qfraction): New variable.
2569         (to_char_code): New function.
2570         (Fget_composite_char): New function.
2571         (Fput_char_attribute): Register `->decomposition' value to
2572         `Vcharacter_composition_table'.
2573         (syms_of_mule_charset): Add new function `get-composite-char', new
2574         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2575         `super' and `fraction'.
2576         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2577
2578 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2579
2580         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2581         character; copy the return value.
2582
2583 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2584
2585         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2586
2587         * mule-charset.c (range_charset_code_point): Must use make_int.
2588         (split_builtin_char): New function.
2589
2590 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2591
2592         * mule-charset.c (char_byte_table): Change name from
2593         "char-code-table" to "char-byte-table".
2594         (mark_char_code_table): New function.
2595         (char_code_table_equal): New function.
2596         (char_code_table_hash): New function.
2597         (char_code_table_description): New constant.
2598         (char_code_table): New type.
2599         (make_char_code_table): New function.
2600         (copy_char_code_table): New function.
2601         (get_char_code_table): Modify for `char_code_table' type.
2602         (put_char_code_table): Likewise.
2603         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2604         (Kashiwara).
2605
2606         * char-ucs.h (char_code_table): New type.
2607         (XCHAR_CODE_TABLE): New macro.
2608         (XSETCHAR_CODE_TABLE): New macro.
2609         (CHAR_CODE_TABLE_P): New macro.
2610         (GC_CHAR_CODE_TABLE_P): New macro.
2611         (struct Lisp_Char_Code_Table): New structure.
2612
2613 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2614
2615         * mule-charset.c (Fmake_charset): Setup byte_offset for
2616         {94|96}^n-set.
2617
2618 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2619
2620         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2621         character.
2622
2623 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2624
2625         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2626         is found.
2627
2628 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2629
2630         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2631         charset, it is regarded as a charset.
2632         (put_char_attribute): New function in UTF-2000.
2633         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2634         charset, mapping-table of the charset is modified.
2635         (Fdefine_char): New function in UTF-2000.
2636         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2637         `Fput_char_attribute'.
2638         (syms_of_mule_charset): Add new function `define-char' and new
2639         symbol `ucs' in UTF-2000.
2640         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2641
2642 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2643
2644         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2645         non-UTF-2000 configuration.
2646
2647 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2648
2649         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2650         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2651
2652         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2653         deleted.
2654         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2655         (Fset_charset_mapping_table): Likewise.
2656
2657         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2658         (CHARSET_ENCODING_TABLE): Delete.
2659         (XCHARSET_ENCODING_TABLE): Delete.
2660         (charset_code_point): New interface.
2661
2662 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2663
2664         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2665         instead of `charset_get_byte1' and `charset_get_byte2'.
2666
2667         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2668         (charset_get_byte2): Deleted.
2669
2670 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2671
2672         * char-ucs.h (SPLIT_CHAR): New inline function.
2673         (breakup_char_1): Use `SPLIT_CHAR'.
2674
2675         * mule-charset.c (range_charset_code_point): New function.
2676         (charset_code_point): New function.
2677
2678         * char-ucs.h (range_charset_code_point): New interface.
2679         (breakup_char_1): Use `range_charset_code_point'.
2680
2681 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2682
2683         * mule-charset.c (Fmake_charset): Delete unused local variable
2684         `code_offset'.
2685
2686         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2687         (breakup_char_1): Find a charset and code-point in
2688         `Vcharacter_attribute_table'.
2689
2690 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2691
2692         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2693         to 0.10 (Yao).
2694
2695 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2696
2697         * mule-charset.c (Vcharacter_attribute_table): New variable.
2698         (Fchar_attribute_alist): New function.
2699         (Fget_char_attribute): New function.
2700         (Fput_char_attribute): New function.
2701         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2702         too.
2703         (syms_of_mule_charset): Add new function `char-attribute-alist',
2704         `get-char-attribute' and `put-char-attribute'.
2705         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2706
2707 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2708
2709         * mule-charset.c (Fmake_charset): Just use
2710         `get_unallocated_leading_byte'.
2711
2712         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2713         sets; don't use final-byte based number for private sets.
2714
2715 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2716
2717         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2718         integer.
2719
2720 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2721
2722         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2723         to 0.9.
2724
2725 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2726
2727         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2728         of `CHAR_LEADING_BYTE' in UTF-2000.
2729
2730         * insdel.c (find_charsets_in_bufbyte_string): Use
2731         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2732         (find_charsets_in_emchar_string): Likewise.
2733
2734         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2735         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2736
2737         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2738         (CHAR_CHARSET_ID): New macro.
2739
2740 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2741
2742         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2743         charset-id - MIN_LEADING_BYTE.
2744         (put_char_table): Likewise.
2745
2746 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2747
2748         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2749         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2750         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2751         (CHARSET_ID_OFFSET): New macro.
2752         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2753         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2754         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2755         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2756         4).
2757         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2758         5).
2759         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2760         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2761         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2762         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2763         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2764
2765 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2766
2767         * mule-charset.c (next_allocated_leading_byte): New variable in
2768         UTF-2000.
2769         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2770         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2771         (get_unallocated_leading_byte): Simply use
2772         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2773         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2774         UTF-2000.
2775
2776         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2777         (MAX_LEADING_BYTE_PRIVATE): New macro.
2778         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2779         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2780
2781 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2782
2783         * mule-charset.c (Fmake_charset): Allocate final-byte based
2784         charset-id for 94-set, 96-set and 94x94-set.
2785
2786 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2787
2788         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2789         ambiguous `else'.
2790         (Fmake_charset): Likewise.
2791         (complex_vars_of_mule_charset): Modify the font registry of
2792         `ucs-bmp' not to match `Ethiopic-Unicode'.
2793
2794 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2795
2796         * mule-charset.c (complex_vars_of_mule_charset): Add font
2797         registory of `ucs-bmp'.
2798
2799 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2800
2801         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2802         coded-charsets in `default-coded-charset-priority-list' when
2803         breaking up a character.
2804
2805         * mule-charset.c (Vcharset_latin_viscii): New variable.
2806         (Qlatin_viscii): New variable.
2807         (make_charset): Don't use `decoding_table'.
2808         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2809         byte_offset.
2810         (Fset_charset_mapping_table): New implementation.
2811         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2812         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2813         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2814         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2815         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2816         charset `latin_viscii'.
2817
2818         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2819         (CHARSET_TYPE_94X94): Change to 1 from 2.
2820         (CHARSET_TYPE_96): Change to 2 from 1.
2821         (CHARSET_TYPE_128): New macro.
2822         (CHARSET_TYPE_128X128): Change to 5 from 4.
2823         (CHARSET_TYPE_256): New macro.
2824         (CHARSET_TYPE_256X256): Change to 7 from 5.
2825         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2826
2827 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2828
2829         * text-coding.c (char_encode_shift_jis): Refer
2830         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2831         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2832
2833         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2834         (char_byte_table_equal): New function in UTF-2000.
2835         (char_byte_table_hash): New function in UTF-2000.
2836         (char_byte_table_description): New constant in UTF-2000.
2837         (char_byte_table): New type in UTF-2000.
2838         (make_char_byte_table): New function in UTF-2000.
2839         (copy_char_byte_table): New function in UTF-2000.
2840         (make_char_code_table): New macro in UTF-2000.
2841         (get_char_code_table): New function in UTF-2000.
2842         (put_char_code_table): New function in UTF-2000.
2843         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2844         (charset_description): Add setting in UTF-2000.
2845         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2846         `CHARSET_TO_BYTE1_TABLE(cs)'.
2847         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2848         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2849         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2850         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2851         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2852         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2853         `CHARSET_TO_BYTE2_TABLE(cs)'.
2854
2855         * char-ucs.h (char_byte_table): New type.
2856         (XCHAR_BYTE_TABLE): New macro.
2857         (XSETCHAR_BYTE_TABLE): New macro.
2858         (CHAR_BYTE_TABLE_P): New macro.
2859         (GC_CHAR_BYTE_TABLE_P): New macro.
2860         (struct Lisp_Char_Byte_Table): New structure.
2861         (get_char_code_table): New interface.
2862         (Emchar_to_byte_table): Deleted.
2863         (get_byte_from_character_table): Deleted.
2864         (struct Lisp_Charset): Add `encoding_table'; delete
2865         `to_byte1_table' and `to_byte2_table'.
2866         (CHARSET_ENCODING_TABLE): New macro.
2867         (CHARSET_TO_BYTE1_TABLE): Deleted.
2868         (CHARSET_TO_BYTE2_TABLE): Deleted.
2869         (XCHARSET_ENCODING_TABLE): New macro.
2870         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2871         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2872
2873 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2874
2875         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2876         `vietnamese-viscii-*'.
2877
2878 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2879
2880         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2881         (Qvietnamese_viscii_upper): New variable.
2882         (Fdefine_charset_alias): New function.
2883         (syms_of_mule_charset): Add new function `define-charset-alias'.
2884         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2885         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2886         `latin-viscii-*'.
2887
2888 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2889
2890         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2891         (MAX_CHAR_OBS_94x94): New macro.
2892         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2893         for 94x94 sets.
2894
2895         * mule-charset.c (put_byte_from_character_table): Change unit size
2896         from 128 to 256.
2897         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2898         not defined.
2899         (Fmake_reverse_direction_charset): Modify dummy argument of
2900         `make_charset' for non-UTF-2000 environment.
2901
2902 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2903
2904         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2905
2906         * mule-charset.c (destroy_byte_from_character_table): New macro.
2907         (latin_jisx0201_to_ucs): Deleted.
2908         (latin_iso8859_2_to_ucs): Deleted.
2909         (latin_iso8859_3_to_ucs): Deleted.
2910         (latin_iso8859_4_to_ucs): Deleted.
2911         (latin_iso8859_9_to_ucs): Deleted.
2912         (latin_viscii_lower_to_ucs): Deleted.
2913         (latin_viscii_upper_to_ucs): Deleted.
2914         (mark_charset): Mark `cs->decoding_table'.
2915         (Fcharset_mapping_table): Fix DOC-string.
2916         (Fset_charset_mapping_table): New function.
2917         (syms_of_mule_charset): Add nwe function
2918         `set-charset-mapping-table'.
2919         (complex_vars_of_mule_charset): Don't setup and use
2920         `latin_*_to_ucs'.
2921
2922 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2923
2924         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2925         charset.
2926
2927 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2928
2929         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2930         (Vcharset_katakana_jisx0208): New variable.
2931         (Qhiragana_jisx0208): New variable.
2932         (Qkatakana_jisx0208): New variable.
2933         (make_charset): Add new argument `byte_offset'.
2934         (charset_get_byte1): Modify for new coded-charset definition; use
2935         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2936         `XCHARSET_BYTE_OFFSET'.
2937         (Fmake_charset): Modify for `make_charset'.
2938         (Fmake_reverse_direction_charset): Likewise.
2939         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2940         `katakana-jisx0208'.
2941         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2942         `.'  in font registry of charset `katakana-jisx0201',
2943         `latin-jisx0201', `vietnamese-viscii-lower' and
2944         `vietnamese-viscii-upper'; modify DOC-string of charset
2945         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2946         registry of charset `japanese-jisx0208' not to use font for JIS
2947         X0208:1990; add new charset `hiragana-jisx0208' and
2948         `katakana-jisx0208'.
2949
2950         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2951         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2952         (struct Lisp_Charset): Add `byte_offset'.
2953         (CHARSET_BYTE_OFFSET): New macro.
2954         (XCHARSET_UCS_MIN): New macro.
2955         (XCHARSET_UCS_MAX): New macro.
2956         (XCHARSET_CODE_OFFSET): New macro.
2957         (XCHARSET_BYTE_OFFSET): New macro.
2958         (MIN_CHAR_HIRAGANA): New macro.
2959         (MAX_CHAR_HIRAGANA): New macro.
2960         (MIN_CHAR_KATAKANA): New macro.
2961         (MAX_CHAR_KATAKANA): New macro.
2962         (MAKE_CHAR): Modify for new coded-charset definition; use
2963         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2964         `XCHARSET_BYTE_OFFSET'.
2965
2966 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2967
2968         * mule-charset.c (CHAR96): Deleted.
2969         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2970         <Lisp_Object>.
2971         (latin_iso8859_2_to_ucs): Likewise.
2972         (latin_iso8859_3_to_ucs): Likewise.
2973         (latin_iso8859_4_to_ucs): Likewise.
2974         (latin_iso8859_9_to_ucs): Likewise.
2975         (latin_viscii_lower_to_ucs): Likewise.
2976         (latin_viscii_upper_to_ucs): Likewise.
2977         (latin_tcvn5712_to_ucs): Commented out.
2978         (make_charset): Change type of argument `decoding_table' from
2979         <Emchar*> to <Lisp_Object> [vector of characters].
2980         (Fmake_charset): Modify for `make_charset'.
2981         (Fmake_reverse_direction_charset): Likewise.
2982         (Fcharset_mapping_table): New function in UTF-2000.
2983         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2984         UTF-2000.
2985         (complex_vars_of_mule_charset): Modify for type change of
2986         `*_to_ucs'; modify for `make_charset'.
2987
2988         * char-ucs.h (struct Lisp_Charset): Change type of
2989         `decoding_table' from <Emchar*> to <Lisp_Object>.
2990         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2991
2992 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2993
2994         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2995         error with non-UTF-2000-Mule.
2996
2997 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2998
2999         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3000         in lisp again].
3001         (Vcharset_chinese_cns11643_4): Likewise.
3002         (Vcharset_chinese_cns11643_5): Likewise.
3003         (Vcharset_chinese_cns11643_6): Likewise.
3004         (Vcharset_chinese_cns11643_7): Likewise.
3005         (Qchinese_cns11643_3): Likewise.
3006         (Qchinese_cns11643_4): Likewise.
3007         (Qchinese_cns11643_5): Likewise.
3008         (Qchinese_cns11643_6): Likewise.
3009         (Qchinese_cns11643_7): Likewise.
3010         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3011         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3012         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3013         (complex_vars_of_mule_charset): Likewise.
3014
3015 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3016
3017         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3018         96-set.
3019         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3020         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3021
3022 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3023
3024         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3025         0xFF60.
3026         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3027         (breakup_char_1): Likewise.
3028
3029         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3030         one of them includes the specified character.
3031
3032 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3033
3034         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3035
3036 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3037
3038         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3039
3040 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3041
3042         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3043         definition for non-UTF-2000 Mule.
3044         (latin_iso8859_3_to_ucs): Likewise.
3045         (latin_iso8859_4_to_ucs): Likewise.
3046         (latin_iso8859_9_to_ucs): Likewise.
3047         (latin_jisx0201_to_ucs): Likewise.
3048         (MIN_CHAR_THAI): Likewise.
3049         (MAX_CHAR_THAI): Likewise.
3050         (MIN_CHAR_GREEK): Likewise.
3051         (MAX_CHAR_GREEK): Likewise.
3052         (MIN_CHAR_HEBREW): Likewise.
3053         (MAX_CHAR_HEBREW): Likewise.
3054         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3055         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3056         (MIN_CHAR_CYRILLIC): Likewise.
3057         (MAX_CHAR_CYRILLIC): Likewise.
3058
3059 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3060
3061         * char-ucs.h (breakup_char_1): Use
3062         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3063         thai-tis620 and katakana-jisx0201 area.
3064
3065 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3066
3067         * char-ucs.h (breakup_char_1): Use
3068         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3069         area.
3070
3071         * text-coding.c (reset_encoding_stream): Fixed.
3072         (char_encode_ucs4): Delete `& 255'.
3073
3074         * char-ucs.h (breakup_char_1): Use
3075         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3076
3077 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3078
3079         * file-coding.c (Fmake_coding_system): Don't set up
3080         `codesys->fixed.size'.
3081         (encode_coding_no_conversion): Don't refer
3082         `str->codesys->fixed.size'.
3083
3084 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3085
3086         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3087         (latin_a_char_to_byte1): Deleted.
3088         (latin_a_char_to_byte2): Deleted.
3089
3090 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3091
3092         * mule-charset.c (make_charset): Add new argument `ucs_min',
3093         `ucs_max' and `code_offset'.
3094         (charset_get_byte1): New implementation [delete specific charset
3095         depended implementations].
3096         (Fmake_charset): Modify for `make_charset'.
3097         (Fmake_reverse_direction_charset): Likewise.
3098         (complex_vars_of_mule_charset): Likewise.
3099
3100         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3101         `code_offset'.
3102         (CHARSET_UCS_MIN): New macro.
3103         (CHARSET_UCS_MAX): New macro.
3104         (CHARSET_CODE_OFFSET): New macro.
3105         (MAKE_CHAR): Delete charset depended definitions [except
3106         katakana-jisx0201].
3107
3108 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3109
3110         * char-ucs.h (breakup_char_1): Use
3111         `Vdefault_coded_charset_priority_list' for C0-Controls,
3112         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3113
3114 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3115
3116         * char-ucs.h (charset_get_byte1): New function.
3117         (XCHARSET_GET_BYTE1): Deleted.
3118         (charset_get_byte2): New function.
3119         (XCHARSET_GET_BYTE2): Deleted.
3120         (Vdefault_coded_charset_priority_list): New external variable.
3121         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3122         `Vdefault_preferred_coded_charset_list'.
3123
3124         * mule-charset.c (charset_get_byte1): New function.
3125         (charset_get_byte2): New function.
3126         (Vdefault_coded_charset_priority_list): New variable.
3127         (vars_of_mule_charset): Add new variable
3128         `default-coded-charset-priority-list'.
3129
3130 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3131
3132         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3133         (XCHARSET_GET_BYTE2): New inline function.
3134         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3135         `XCHARSET_GET_BYTE2'.
3136
3137 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3138
3139         * mule-charset.c (make_charset): Initialize
3140         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3141         NULL if table is not defined.
3142
3143 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3144
3145         * text-coding.c (char_encode_shift_jis): Use
3146         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3147         `ucs_to_latin_jisx0201'.
3148
3149         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3150         (ucs_to_latin_iso8859_2): Deleted.
3151         (ucs_to_latin_iso8859_3): Deleted.
3152         (ucs_to_latin_iso8859_4): Deleted.
3153         (ucs_to_latin_iso8859_9): Deleted.
3154         (ucs_to_latin_viscii_lower): Deleted.
3155         (ucs_to_latin_viscii_upper): Deleted.
3156         (ucs_to_latin_tcvn5712): Deleted.
3157         (make_charset): Add new argument `decoding_table'; set up
3158         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3159         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3160         `decoding_table' is defined in UTF-2000.
3161         (Fmake_charset): Modify for `make_charset'.
3162         (Fmake_reverse_direction_charset): Likewise.
3163         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3164         and `GENERATE_96_SET'.
3165
3166         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3167         (ucs_to_latin_jisx0201): Deleted.
3168         (latin_iso8859_2_to_ucs): Deleted.
3169         (ucs_to_latin_iso8859_2): Deleted.
3170         (latin_iso8859_3_to_ucs): Deleted.
3171         (ucs_to_latin_iso8859_3): Deleted.
3172         (latin_iso8859_4_to_ucs): Deleted.
3173         (ucs_to_latin_iso8859_4): Deleted.
3174         (latin_iso8859_9_to_ucs): Deleted.
3175         (ucs_to_latin_iso8859_9): Deleted.
3176         (latin_viscii_lower_to_ucs): Deleted.
3177         (ucs_to_latin_viscii_lower): Deleted.
3178         (latin_viscii_upper_to_ucs): Deleted.
3179         (ucs_to_latin_viscii_upper): Deleted.
3180         (struct Lisp_Charset): Renamed `encoding_table' to
3181         `to_byte1_table'; add `to_byte2_table'.
3182         (CHARSET_DECODING_TABLE): New macro.
3183         (CHARSET_TO_BYTE1_TABLE): New macro.
3184         (CHARSET_TO_BYTE2_TABLE): New macro.
3185         (XCHARSET_DECODING_TABLE): New macro.
3186         (XCHARSET_TO_BYTE1_TABLE): New macro.
3187         (XCHARSET_TO_BYTE2_TABLE): New macro.
3188         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3189         tables.
3190         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3191         don't use `ucs_to_*' tables.
3192
3193 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3194
3195         * text-coding.c (Fmake_coding_system): Don't set up
3196         `codesys->fixed.size'.
3197         (encode_coding_no_conversion): Use `if' instead of `switch'.
3198
3199         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3200
3201 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3202
3203         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3204         (Fmake_charset): Modify for `make_charset'.
3205         (Fmake_reverse_direction_charset): Likewise.
3206         (complex_vars_of_mule_charset): Likewise.
3207
3208 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3209
3210         * text-coding.c (char_encode_shift_jis): Use table
3211         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3212
3213 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3214
3215         * text-coding.c (text_encode_generic): Use `if' instead of
3216         `switch'.
3217         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3218         decode JIS-Latin.
3219
3220 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3221
3222         * text-coding.c (encode_coding_sjis): Deleted.
3223         (char_encode_shift_jis): New function.
3224         (char_finish_shift_jis): New function.
3225         (reset_encoding_stream): Set up `encode_char' and `finish' for
3226         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3227         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3228         (char_encode_utf8): Treat `eol_type'.
3229
3230 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3231
3232         * file-coding.c (decode_coding_iso2022): Use
3233         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3234
3235 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3236
3237         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3238         to 0.7 (Hirano).
3239
3240 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3241
3242         * char-lb.h (CHAR_COLUMNS): New macro.
3243
3244 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3245
3246         * text-coding.c (char_encode_ucs4): New function.
3247         (char_finish_ucs4): New function.
3248         (encode_coding_ucs4): Deleted.
3249         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3250         (text_encode_generic): Delete local variable `charset' and `half'.
3251         (ucs_to_mule_table): Deleted.
3252         (mule_to_ucs_table): Deleted.
3253         (Fset_ucs_char): Deleted.
3254         (ucs_to_char): Deleted.
3255         (Fucs_char): Deleted.
3256         (Fset_char_ucs): Deleted.
3257         (Fchar_ucs): Deleted.
3258         (decode_ucs4): Deleted.
3259         (mule_char_to_ucs4): Deleted.
3260         (encode_ucs4): Deleted.
3261         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3262         (decode_coding_utf8): Likewise.
3263         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3264         (char_encode_iso2022): Fixed.
3265         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3266         `Fset_char_ucs' and `Fchar_ucs'.
3267         (complex_vars_of_file_coding): Don't initialize
3268         `ucs_to_mule_table'.
3269
3270         * objects-tty.c (tty_initialize_font_instance): Don't use
3271         `XCHARSET_COLUMNS'.
3272
3273         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3274         UTF-2000.
3275
3276         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3277         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3278
3279         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3280         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3281         (emchar_string_displayed_columns): Likewise.
3282
3283         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3284         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3285         (string_column_at_point): Likewise.
3286         (Fmove_to_column): Likewise.
3287
3288         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3289         `encoding_table' and `decoding_table'.
3290         (CHARSET_REP_BYTES): Deleted.
3291         (XCHARSET_REP_BYTES): Deleted.
3292         (XCHARSET_COLUMNS): Deleted.
3293         (CHAR_COLUMNS): New macro.
3294         (lookup_composite_char): Deleted unconditionally.
3295         (composite_char_string): Likewise.
3296
3297 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3298
3299         * char-ucs.h (Emchar_to_byte_table): New type.
3300         (get_byte_from_character_table): New function interface.
3301         (Vcharset_latin_jisx0201): New variable.
3302         (latin_jisx0201_to_ucs): New variable.
3303         (ucs_to_latin_jisx0201): New variable.
3304         (Vcharset_latin_iso8859_2): New variable.
3305         (latin_iso8859_2_to_ucs): New variable.
3306         (ucs_to_latin_iso8859_2): New variable.
3307         (Vcharset_latin_iso8859_3): New variable.
3308         (latin_iso8859_3_to_ucs): New variable.
3309         (ucs_to_latin_iso8859_3): New variable.
3310         (Vcharset_latin_iso8859_4): New variable.
3311         (latin_iso8859_4_to_ucs): New variable.
3312         (ucs_to_latin_iso8859_4): New variable.
3313         (Vcharset_latin_iso8859_9): New variable.
3314         (latin_iso8859_9_to_ucs): New variable.
3315         (ucs_to_latin_iso8859_9): New variable.
3316         (Vcharset_latin_viscii_lower): New variable.
3317         (latin_viscii_lower_to_ucs): New variable.
3318         (ucs_to_latin_viscii_lower): New variable.
3319         (Vcharset_latin_viscii_upper): New variable.
3320         (latin_viscii_upper_to_ucs): New variable.
3321         (ucs_to_latin_viscii_upper): New variable.
3322         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3323         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3324         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3325         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3326         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3327         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3328         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3329         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3330         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3331         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3332
3333         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3334         (Vcharset_latin_viscii_upper): New variable.
3335         (make_byte_from_character_table): New function.
3336         (put_byte_from_character_table): New function.
3337         (get_byte_from_character_table): New function.
3338         (CHAR96): New macro.
3339         (ucs_to_latin_jisx0201): New variable.
3340         (latin_jisx0201_to_ucs): New variable.
3341         (ucs_to_latin_iso8859_2): New variable.
3342         (latin_iso8859_2_to_ucs): New variable.
3343         (ucs_to_latin_iso8859_3): New variable.
3344         (latin_iso8859_3_to_ucs): New variable.
3345         (ucs_to_latin_iso8859_4): New variable.
3346         (latin_iso8859_4_to_ucs): New variable.
3347         (ucs_to_latin_iso8859_9): New variable.
3348         (latin_iso8859_9_to_ucs): New variable.
3349         (ucs_to_latin_viscii_lower): New variable.
3350         (latin_viscii_lower_to_ucs): New variable.
3351         (ucs_to_latin_viscii_upper): New variable.
3352         (latin_viscii_upper_to_ucs): New variable.
3353         (ucs_to_latin_tcvn5712): New variable.
3354         (latin_tcvn5712_to_ucs): New variable.
3355         (Qlatin_viscii_lower): New variable.
3356         (Qlatin_viscii_upper): New variable.
3357         (syms_of_mule_charset): Set up new symbol
3358         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3359         (complex_vars_of_mule_charset): Set up new charset
3360         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3361         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3362         `ucs_to_<CHARSET>' tables.
3363
3364 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3365
3366         * text-coding.c: New file.
3367
3368 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3369
3370         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3371
3372         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3373         (MAKE_CHAR): Modify for `ucs-bmp'.
3374         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3375         non-MULE characters of BMP.
3376
3377 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3378
3379         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3380         to 0.6.
3381
3382 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3383
3384         * lstream.h:
3385         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3386         - Include character.h for `CHAR_ASCII_P'.
3387
3388         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3389
3390         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3391         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3392
3393         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3394         (BYTE_C0_P): Likewise.
3395         (BYTE_C1_P): Likewise.
3396         (Lstream_get_emchar_1): Likewise.
3397         (Lstream_fput_emchar): Likewise.
3398         (Lstream_funget_emchar): Likewise.
3399         (copy_internal_to_external): Likewise.
3400         (copy_external_to_internal): Likewise.
3401
3402         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3403         (BYTE_C0_P): Likewise.
3404         (BYTE_C1_P): Likewise.
3405         (Lstream_get_emchar_1): Likewise.
3406         (Lstream_fput_emchar): Likewise.
3407         (Lstream_funget_emchar): Likewise.
3408         (copy_internal_to_external): Likewise.
3409         (copy_external_to_internal): Likewise.
3410
3411         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3412         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3413
3414         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3415         (BYTE_ASCII_P): Moved to mb-1byte.h.
3416
3417 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3418
3419         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3420
3421         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3422         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3423         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3424         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3425         (VALIDATE_CHARPTR_FORWARD): Likewise.
3426         (simple_charptr_emchar): Moved to mb-multibyte.h.
3427         (simple_set_charptr_emchar): Likewise.
3428         (simple_charptr_copy_char): Likewise.
3429         (non_ascii_charptr_emchar): Likewise.
3430         (non_ascii_set_charptr_emchar): Likewise.
3431         (non_ascii_charptr_copy_char): Likewise.
3432         (charptr_emchar): Moved to mb-*byte.h.
3433         (set_charptr_emchar): Likewise.
3434         (charptr_copy_char): Likewise.
3435
3436         * mb-1byte.h, mb-multibyte.h: New files.
3437
3438 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3439
3440         * mb-utf-8.h (MULTIBYTE): New macro.
3441         (MAX_EMCHAR_LEN): Moved from buffer.h.
3442         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3443
3444         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3445
3446         * mb-lb.h, multibyte.h: New files.
3447
3448         * char-1byte.h (Charset_ID): Moved from buffer.h.
3449         (MIN_LEADING_BYTE): Likewise.
3450         (LEADING_BYTE_ASCII): Likewise.
3451         (NUM_LEADING_BYTES): Likewise.
3452         (CHARSETP): Likewise.
3453         (CHARSET_BY_LEADING_BYTE): Likewise.
3454         (XCHARSET_LEADING_BYTE): Likewise.
3455         (XCHARSET_GRAPHIC): Likewise.
3456         (XCHARSET_COLUMNS): Likewise.
3457         (XCHARSET_DIMENSION): Likewise.
3458         (CHAR_CHARSET): Likewise.
3459         (CHAR_LEADING_BYTE): Likewise.
3460         (BREAKUP_CHAR): Likewise.
3461         (Vcharset_ascii): Likewise.
3462
3463         * buffer.h: Include multibyte.h unconditionally.
3464         (VALID_CHARPTR_P): Moved to multibyte.h.
3465         (ASSERT_VALID_CHARPTR): Likewise.
3466         (REAL_INC_CHARPTR): Likewise.
3467         (REAL_INC_CHARBYTIND): Likewise.
3468         (REAL_DEC_CHARPTR): Likewise.
3469         (INC_CHARPTR): Likewise.
3470         (INC_CHARBYTIND): Likewise.
3471         (DEC_CHARPTR): Likewise.
3472         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3473         (VALIDATE_CHARPTR_FORWARD): Likewise.
3474         (charptr_n_addr): Likewise.
3475         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3476         (simple_charptr_emchar): Moved to multibyte.h.
3477         (simple_set_charptr_emchar): Likewise.
3478         (simple_charptr_copy_char): Likewise.
3479         (non_ascii_charptr_emchar): Likewise.
3480         (non_ascii_set_charptr_emchar): Likewise.
3481         (non_ascii_charptr_copy_char): Likewise.
3482         (charptr_emchar): Likewise.
3483         (set_charptr_emchar): Likewise.
3484         (charptr_copy_char): Likewise.
3485         (charptr_emchar_n): Likewise.
3486         (Charset_ID): Moved to char-1byte.h.
3487         (Vcharset_ascii): Likewise.
3488         (CHAR_CHARSET): Likewise.
3489         (CHAR_LEADING_BYTE): Likewise.
3490         (LEADING_BYTE_ASCII): Likewise.
3491         (NUM_LEADING_BYTES): Likewise.
3492         (MIN_LEADING_BYTE): Likewise.
3493         (CHARSETP): Likewise.
3494         (CHARSET_BY_LEADING_BYTE): Likewise.
3495         (XCHARSET_LEADING_BYTE): Likewise.
3496         (XCHARSET_GRAPHIC): Likewise.
3497         (XCHARSET_COLUMNS): Likewise.
3498         (XCHARSET_DIMENSION): Likewise.
3499         (BREAKUP_CHAR): Likewise.
3500
3501 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3502
3503         * character.h: Add document about interface for characters.
3504
3505         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3506         (MAKE_CHAR): Delete comment about
3507         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3508         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3509         (BREAKUP_CHAR): Modify name of arguments.
3510         (CHAR_CHARSET): Modify name of argument.
3511
3512         * buffer.h: Delete document about Emchar accessors.
3513
3514 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3515
3516         * character.h (CHAR_INTP): Moved from buffer.h
3517         (CHAR_OR_CHAR_INTP): Likewise.
3518         (XCHAR_OR_CHAR_INT): Likewise.
3519         (CHECK_CHAR_COERCE_INT): Likewise.
3520
3521         * buffer.h (CHAR_INTP): Moved to character.h
3522         (CHAR_OR_CHAR_INTP): Likewise.
3523         (XCHAR_OR_CHAR_INT): Likewise.
3524         (CHECK_CHAR_COERCE_INT): Likewise.
3525
3526 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3527
3528         * character.h:
3529         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3530         - Include char-1byte.h, char-lb.h or char-ucs.h.
3531
3532         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3533
3534         * buffer.h: Include character unconditionally.
3535         (valid_char_p): Moved to char-*.h.
3536         (non_ascii_valid_char_p): Moved to char-lb.h.
3537
3538         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3539
3540 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3541
3542         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3543         in UTF-2000 because it is not ported yet and not to use
3544         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3545         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3546         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3547
3548         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3549         (CHAR_ASCII_P): Moved from character.h.
3550
3551         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3552         (CHAR_ASCII_P): Likewise.
3553         (CHAR_FIELD1_MASK): Deleted.
3554         (CHAR_FIELD2_MASK): Deleted.
3555         (CHAR_FIELD3_MASK): Deleted.
3556         (MAX_CHAR_BASIC_LATIN): New macro.
3557         (CHAR_FIELD1): Deleted.
3558         (CHAR_FIELD2_INTERNAL): Deleted.
3559         (CHAR_FIELD3_INTERNAL): Deleted.
3560         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3561         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3562         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3563         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3564         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3565         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3566         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3567         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3568         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3569         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3570         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3571         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3572         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3573         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3574         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3575         (MIN_CHAR_COMPOSITION): Deleted.
3576         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3577         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3578
3579 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3580
3581         * buffer.h: Include mb-utf-8.h in UTF-2000.
3582
3583         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3584
3585         * mb-utf-8.h: New file.
3586
3587 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3588
3589         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3590         instead of `int'.
3591
3592         * mule-charset.h, buffer.h (Charset_ID): New type.
3593
3594 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3595
3596         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3597         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3598         instead of `MULE_CHAR_PRIVATE_OFFSET',
3599         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3600         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3601         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3602
3603         * character.h (Vcharset_japanese_jisx0212): New variable
3604         definition.
3605
3606 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3607
3608         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3609         (charset_by_attributes): Delete array about direction.
3610         (latin_a_char_to_charset): New variable in UTF-2000.
3611         (latin_a_char_to_byte1): New variable in UTF-2000.
3612         (latin_a_char_to_byte2): New variable in UTF-2000.
3613         (Qucs_bmp): New variable.
3614         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3615         `Bufbyte'.
3616         (next_allocated_2_byte_leading_byte): Likewise.
3617         (non_ascii_set_charptr_emchar): Likewise.
3618         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3619         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3620         `charset_by_attributes'.
3621         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3622         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3623         and `CHARSET_BY_LEADING_BYTE'.
3624         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3625         `utf-2000-version' to `vars_of_mule_charset'.
3626         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3627         define `leading-code-private-11' in UTF-2000; move setting of
3628         `utf-2000-version' from `syms_of_mule_charset'.
3629         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3630         UTF-2000.
3631
3632         * character.h (Charset_ID): New type.
3633         (LEADING_BYTE_UCS_BMP): New macro.
3634         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3635         (CHARSET_ID_OFFSET_94): New macro.
3636         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3637         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3638         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3639         final-byte.
3640         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3641         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3642         (CHARSET_ID_OFFSET_96): New macro.
3643         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3644         CHARSET_ID_OFFSET_96 and final-byte.
3645         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3646         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3647         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3648         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3649         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3650         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3651         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3652         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3653         (LEADING_BYTE_THAI_TIS620): Likewise.
3654         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3655         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3656         (CHARSET_ID_OFFSET_94x94): New macro.
3657         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3658         CHARSET_ID_OFFSET_94x94 and final-byte.
3659         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3660         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3661         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3662         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3663         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3664         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3665         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3666         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3667         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3668         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3669         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3670         (CHARSET_TYPE_128X128): New macro.
3671         (CHARSET_TYPE_256X256): New macro.
3672         (XCHARSET_PRIVATE_P): Delete unconditionally.
3673         (charset_by_attributes): Delete array about direction.
3674         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3675         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3676         (MIN_CHAR_94): New macro.
3677         (MAX_CHAR_94): New macro.
3678         (MIN_CHAR_96): New macro.
3679         (MAX_CHAR_96): New macro.
3680         (MIN_CHAR_94x94): New macro.
3681         (MAX_CHAR_94x94): New macro.
3682         (MIN_CHAR_96x96): New macro.
3683         (MAX_CHAR_96x96): New macro.
3684         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3685         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3686         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3687         - 32)'.
3688         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3689         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3690         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3691         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3692         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3693         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3694         `XCHARSET_LEADING_BYTE' to make code-point.
3695         (latin_a_char_to_charset): New variable.
3696         (latin_a_char_to_byte1): New variable.
3697         (latin_a_char_to_byte2): New variable.
3698         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3699         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3700         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3701
3702         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3703         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3704         (find_charsets_in_emchar_string): Likewise.
3705         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3706
3707         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3708         `int'.
3709         (decode_coding_iso2022): Likewise.
3710
3711         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3712         of `unsigned char'.
3713
3714         * redisplay.c (redisplay_text_width_emchar_string): Use
3715         `Charset_ID' instead of `unsigned char'.
3716         (redisplay_frame_text_width_string): Likewise.
3717
3718         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3719         `unsigned char'.
3720
3721         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3722         instead of `unsigned char'.
3723         (face_cachel_charset_font_metric_info): Likewise.
3724
3725         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3726         (get_non_ascii_char_table_value): Likewise.
3727         (get_char_table): Likewise.
3728         (put_char_table): Likewise.
3729         (map_over_other_charset): Likewise.
3730         (map_char_table): Likewise.
3731
3732         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3733         instead of `unsigned char'.
3734
3735 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3736
3737         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3738         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3739
3740         * mule-charset.c (leading_code_private_11): Don't define in
3741         UTF-2000.
3742
3743         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3744         in UTF-2000 because it is not ported yet and not to use
3745         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3746
3747 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3748
3749         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3750
3751 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3752
3753         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3754         in UTF-2000.
3755
3756         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3757         of unsigned char to store leading-byte.
3758
3759         * chartab.c (get_non_ascii_char_table_value): Don't use
3760         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3761
3762         * file-coding.c (encode_coding_big5): Delete bogus implementation
3763         in UTF2000.
3764
3765         * character.h (LEADING_BYTE_*): Delete definition for
3766         non-UTF-2000.
3767         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3768         (LEADING_BYTE_PREFIX_P): Deleted.
3769         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3770         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3771         (BUFBYTE_LEADING_BYTE_P): Deleted.
3772         (CHARSET_PRIVATE_P): Deleted unconditionally.
3773         (rep_bytes_by_first_byte): Deleted unconditionally.
3774         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3775         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3776         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3777         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3778         (CHAR_FIELD2): Deleted.
3779         (CHAR_FIELD3): Deleted.
3780         (MAKE_CHAR): Delete definition for non-UTF-2000.
3781         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3782         (breakup_char_1): New implementation.
3783         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3784         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3785
3786 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3787
3788         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3789         condition.
3790
3791 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3792
3793         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3794         (CHARSET_PRIVATE_P): Likewise.
3795         (XCHARSET_PRIVATE_P): Likewise.
3796         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3797
3798         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3799         UTF2000.
3800         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3801
3802 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3803
3804         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3805         (NUM_LEADING_BYTES): Changed from 128 to 256.
3806         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3807         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3808         UTF2000.
3809         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3810
3811         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3812         UTF2000.
3813         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3814         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3815         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3816         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3817         (Qchinese_cns11643_3): New variable in UTF2000.
3818         (Qchinese_cns11643_4): New variable in UTF2000.
3819         (Qchinese_cns11643_5): New variable in UTF2000.
3820         (Qchinese_cns11643_6): New variable in UTF2000.
3821         (Qchinese_cns11643_7): New variable in UTF2000.
3822         (syms_of_mule_charset): Define `chinese-cns11643-3',
3823         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3824         and `chinese-cns11643-7' in UTF2000.
3825         (vars_of_mule_charset): Initialize
3826         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3827         + 1 in UTF2000.
3828         (complex_vars_of_mule_charset): Setup charset
3829         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3830         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3831
3832 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3833
3834         * mule-charset.c: Move setting for `leading-code-private-11' from
3835         `syms_of_mule_charset' to `vars_of_mule_charset'.
3836
3837 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3838
3839         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3840         and `NUM_LEADING_BYTES' in assert.
3841
3842 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3843
3844         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3845         instead of 128.
3846         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3847         `NUM_LEADING_BYTES' instead of 128.
3848
3849 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3850
3851         * mule-charset.h (charset_by_leading_byte): Use
3852         `NUM_LEADING_BYTES' instead of 128.
3853         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3854
3855         * mule-charset.c (charset_by_leading_byte): Use
3856         `NUM_LEADING_BYTES' instead of 128.
3857         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3858
3859         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3860         128.
3861
3862 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3863
3864         * mule-charset.c (syms_of_mule_charset): Update to
3865         0.4 (Shin-Imamiya).
3866
3867 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3868
3869         * file-coding.c (encode_coding_sjis): New implementation for
3870         UTF2000.  (decode_coding_sjis): Ditto.
3871
3872 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3873
3874         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3875         Don't define in UTF2000.
3876
3877         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3878         defined.
3879
3880         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3881         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3882         MULE.
3883
3884 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3885
3886         * config.h.in (CHAR_IS_UCS4): New macro.
3887
3888         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3889         conventional MULE representation.
3890         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3891
3892         * mule-charset.h: Reverted to original.
3893
3894         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3895         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3896         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3897
3898         * character.h: New file.
3899
3900         * file-coding.c (Fmake_coding_system): Set 1 to
3901         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3902         defined.
3903         (encode_coding_no_conversion): New implementation for UTF2000.
3904
3905         * file-coding.h (struct Lisp_Coding_System): Add new member
3906         `fixed.size'.
3907
3908 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3909
3910         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3911         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3912         (encode_coding_iso2022): New implementation for UTF2000.
3913
3914 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3915
3916         * mule-canna.c (c2mu): New implementation for UTF2000.
3917         (m2c): Likewise.
3918
3919 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3920
3921         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3922
3923 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3924
3925         * file-coding.c (reset_encoding_stream): Set 0 to
3926         `str->iso2022.current_char_boundary' in UTF2000.
3927         (encode_utf8): Don't define in UTF2000.
3928         (encode_coding_utf8): New implementation for UTF-8 representation
3929         of UTF2000.
3930         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3931
3932 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3933
3934         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3935
3936         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3937         UTF2000.
3938         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3939
3940         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3941
3942         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3943         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3944         as UTF-8 in UTF2000.
3945         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3946         (non_ascii_valid_char_p): Don't define in UTF2000.
3947         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3948         (Lstream_get_emchar_1): Likewise.
3949         (utf-2000-version): New variable in UTF2000.
3950
3951         * lread.c (read_escape): Add new reader `u'.
3952
3953         * insdel.c (three_to_one_table): Don't define in UTF2000.
3954         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3955         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3956         UTF2000.
3957         (bytind_to_bufpos_func): Likewise.
3958         (buffer_mule_signal_inserted_region): Likewise.
3959         (vars_of_insdel): Don't initialize `three_to_one_table'.
3960         (init_buffer_text): Use `buf->text->mule_size' instead of
3961         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3962         UTF2000.
3963
3964         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3965         UTF-8 representation in UTF2000.
3966         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3967         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3968         (decode_coding_iso2022): Don't define local variable `lb' in
3969         UTF2000; don't use LEADING_BYTE in UTF2000; use
3970         `DECODE_ADD_UCS_CHAR' in UTF2000.
3971         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3972
3973         * config.h.in (UTF2000): New macro.
3974
3975         * buffer.h (struct buffer_text): Add new member `mule_size' and
3976         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3977         (valid_char_p): Return always 1 in UTF2000.
3978         (MAX_EMCHAR_LEN): 6 in UTF2000.
3979         (three_to_one_table): Don't define in UTF2000.
3980         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3981         UTF2000.
3982         (real_bytind_to_bufpos): Likewise.
3983
3984         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3985
3986 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3987
3988         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3989         representation change.
3990         (Vutf_2000_version): New variable.
3991         (leading_code_private_11): New variable.
3992         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3993         `leading-code-private-11'.
3994
3995         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3996         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3997         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3998         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3999         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4000         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4001         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4002         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4003         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4004         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4005         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4006         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4007         (MIN_CHAR_GREEK): New macro.
4008         (MAX_CHAR_GREEK): New macro.
4009         (MIN_CHAR_CYRILLIC): New macro.
4010         (MAX_CHAR_CYRILLIC): New macro.
4011         (MIN_CHAR_HEBREW): New macro.
4012         (MAX_CHAR_HEBREW): New macro.
4013         (MIN_CHAR_THAI): New macro.
4014         (MAX_CHAR_THAI): New macro.
4015         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4016         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4017         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4018         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4019         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4020         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4021         (CHAR_FIELD2): New inline function.
4022         (CHAR_FIELD3): New inline function.
4023         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4024         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4025         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4026         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4027         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4028         (MIN_CHAR_COMPOSITION): Likewise.
4029         (CHAR_LEADING_BYTE): Modified for character representation change.
4030         (MAKE_CHAR): Likewise.
4031
4032         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4033         (Vcharset_greek_iso8859_7): Likewise.
4034         (Vcharset_cyrillic_iso8859_5): Likewise.
4035         (Vcharset_hebrew_iso8859_8): Likewise.
4036         (Vcharset_thai_tis620): Likewise.
4037         (Vcharset_katakana_jisx0201): Likewise.
4038
4039 2001-02-08  Martin Buchholz <martin@xemacs.org>
4040
4041         * XEmacs 21.2.44 "Thalia" is released.
4042
4043 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4044
4045         Fixes crashes in kill-emacs on some systems.
4046         * process-unix.c (unix_kill_child_process):
4047         It's OK for kill() to fail with ESRCH.
4048
4049 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4050
4051         Contortions to make .gdbinit tricks work on most systems.
4052         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4053         * alloc.c (dbg_valmask): Make non-const.
4054         * alloc.c (dbg_typemask): Make non-const.
4055         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4056         * alloc.c (dbg_valbits): Make non-const.
4057         * alloc.c (dbg_gctypebits): Make non-const.
4058         * .gdbinit (decode_object): Make it work with AIX cc.
4059
4060 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4061
4062         * elhash.c (make_general_lisp_hash_table):
4063         Use simpler and more efficient calloc to clear entries.
4064
4065 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4066
4067         * window.c (window_scroll): Work around an AIX C compiler bug.
4068         Fixes 'scroll-up' does nothing problem with xlC.
4069
4070 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4071
4072         * .gdbinit: Remove obsolete comment.
4073
4074 2001-01-31  Mike Alexander  <mta@arbortext.com>
4075
4076         * select.c (Fown_selection_internal): Set owned_p for device
4077         method correctly.
4078
4079 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4080
4081         Port to g++ 2.97.
4082         "not" cannot be used as a macro name as it is an operator in C++
4083         * config.h.in: Stop #defining `not'.
4084         * chartab.c (check_category_char): not ==> not_p
4085         * chartab.h: Likewise.
4086         * regex.c (re_match_2_internal): Likewise.
4087
4088 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4089
4090         * lisp-disunion.h: Fix up comments.
4091
4092 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4093
4094         * keymap.c (define_key_check_and_coerce_keysym):
4095         (syms_of_keymap):
4096         Support mouse-6 and mouse-7 bindings in the obvious way.
4097
4098 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4099
4100         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4101
4102 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4103
4104         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4105         Previous patch missed DEFVAR_INT_MAGIC.
4106         Make sure future DEFVAR_foo use correct types.
4107         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4108         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4109         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4110         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4111         * (DEFVAR_INT): Likewise.
4112         * redisplay.c (vertical_clip): Should be of type Fixnum.
4113         * redisplay.c (horizontal_clip): Likewise.
4114         * lisp.h (dump_add_opaque_int): New.
4115         (dump_add_opaque_fixnum): New.
4116
4117 2001-01-29  Andy Piper  <andy@xemacs.org>
4118
4119         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4120         since they can be eval'ed
4121
4122 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4123
4124         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4125         Oops, XEmacs redefines `class'.  Use `typename' instead.
4126
4127 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4128
4129         * dumper.c: Fix C++ compile errors.
4130
4131 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4132
4133         * tparam.c: Use correct prototypes.
4134
4135 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4136
4137         * sysproc.h: #include util.h for NetBSD's openpty.
4138
4139 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4140
4141         More 64-bit correctness.
4142         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4143         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4144         Fix up comments.
4145         This finally finishes the 64-bit SGI port.
4146         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4147         * symbols.c: Fix up comments and type casts.
4148         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4149         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4150         * symeval.h (Fixnum): New type.
4151         * symeval.h (symbol_value_type): Fix up comment.
4152
4153         * commands.h:
4154         * nt.c:
4155         * emacs.c:
4156         * data.c:
4157         * redisplay.c:
4158         * abbrev.c:
4159         * dired-msw.c:
4160         * event-Xt.c:
4161         * eldap.c:
4162         * window.c:
4163         * sound.c:
4164         * event-stream.c:
4165         * eval.c:
4166         * buffer.c:
4167         * mule-canna.c: A million DEFVAR_INTs here...
4168         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4169         * extents.c:
4170         * cmdloop.c:
4171         * lisp.h:
4172         * select-x.c:
4173         * console-x.h:
4174         * event-msw.c:
4175         * mule-wnnfns.c:
4176         * hpplay.c:
4177         * ralloc.c:
4178         * alloc.c:
4179         * keymap.c:
4180         * profile.c:
4181         s/int/Fixnum/g in DEFVAR_INT declarations.
4182
4183 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4184
4185         Port pdump to SGI alignment-sensitive environment.
4186         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4187         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4188         properly aligned.
4189         Define and use aligned reading and writing macros.
4190         Use buffered stdio instead of posix i/o for faster dumping.
4191         Eliminate kludgy 256 byte space for header.
4192         Read and write from dump file using structs for alignment safety.
4193         * dumper.c (pdump_align_stream): New.
4194         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4195         * dumper.c (PDUMP_READ_ALIGNED): New.
4196         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4197         * dumper.c (pdump_static_Lisp_Object): New struct.
4198         * dumper.c (pdump_static_pointer): New struct.
4199         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4200         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4201         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4202         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4203
4204         * dumper.c (pdump_backtrace):
4205         * dumper.c (pdump_get_indirect_count):
4206         * dumper.c (pdump_register_object):
4207         * dumper.c (pdump_register_struct):
4208         * dumper.c (pdump_reloc_one):
4209         * dumper.c (pdump_scan_by_alignment):
4210         * dumper.c (pdump_dump_from_root_struct_ptrs):
4211         * dumper.c (pdump_dump_opaques):
4212         * dumper.c (pdump_dump_rtables):
4213         * dumper.c (pdump_dump_from_root_objects):
4214         * dumper.c (pdump):
4215         * dumper.c (pdump_load_finish):
4216         Use aligned reading and writing.
4217
4218         * dumper.c (pdump_free): Make static.
4219         * dumper.c (pdump_hFile): Likewise.
4220         * dumper.c (pdump_hMap): Likewise.
4221
4222 2001-01-26  Martin Buchholz <martin@xemacs.org>
4223
4224         * XEmacs 21.2.43 "Terspichore" is released.
4225
4226 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4227
4228         Type fiddling for window_config.saved_windows_count
4229         * window.c (struct window_config): 
4230         Make saved_windows_count member unsigned.
4231         * window.c (sizeof_window_config_for_n_windows): 
4232         Make parameter unsigned.
4233         * window.c (mark_window_config):
4234         * window.c (window_config_equal):
4235         * window.c (free_window_configuration):
4236         * window.c (Fset_window_configuration):
4237         * window.c (count_windows):
4238         * window.c (Fcurrent_window_configuration):
4239         * window.c (reinit_vars_of_window):
4240         Update all callers and users.
4241
4242 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4243
4244         Alignment correctness for flexible arrays.
4245         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4246         Make alignment-correct. Add interesting comments.
4247         * alloc.c (size_vector):
4248         * alloc.c (make_vector_internal):
4249         * alloc.c (make_bit_vector_internal):
4250         * alloc.c (sweep_bit_vectors_1):
4251         * fns.c (size_bit_vector):
4252         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4253         * window.c (sizeof_window_config_for_n_windows): 
4254         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4255
4256 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4257
4258         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4259
4260 2001-01-23  Andy Piper  <andy@xemacs.org>
4261
4262         * select.c (Fown_selection_internal): pass owned_p
4263
4264         * select-msw.c (mswindows_own_selection): New Signature.
4265
4266         * console.h (struct console_methods): add owned_p to
4267         _own_selection.
4268
4269         * select-x.c (x_own_selection): pass owned_p
4270         (hack_motif_clipboard_selection): use owned_p
4271         (vars_of_select_x): new variable -
4272         x_selection_strict_motif_ownership.
4273
4274 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4275
4276         * specifier.h (specifier_data_offset): Remove pointless parens.
4277         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4278
4279 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4280
4281         Make Lisp_Object sizeof methods be alignment-correct.
4282         pdump must restore objects to the same alignment as the C compiler
4283         assumes.  It really matters on SGIs.
4284         * lstream.c (aligned_sizeof_lstream): New.
4285         (sizeof_lstream): Use aligned_sizeof_lstream.
4286         (Lstream_new): Likewise.
4287         * opaque.c (aligned_sizeof_opaque): New.
4288         (sizeof_opaque): Use aligned_sizeof_opaque.
4289         (make_opaque): Likewise.
4290         * specifier.c (aligned_sizeof_specifier): New.
4291         (sizeof_specifier): Use aligned_sizeof_specifier.
4292         (make_specifier_internal): Likewise.
4293
4294 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4295
4296         * lstream.h (struct lstream): Use max_align_t for trailing data.
4297         * specifier.h (struct Lisp_Specifier): Likewise.
4298
4299 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4300
4301         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4302         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4303         (CCL_SUSPEND): Likewise.
4304         (CCL_INVALID_CMD): Likewise.
4305         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4306         (ccl_driver): Likewise.
4307         (CCL_WRITE_CHAR): Macro hygiene.
4308         (CCL_WRITE_STRING): Macro hygiene.
4309
4310 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4311
4312         Port "portable" dumper to SunOS 4 and HP-UX.
4313         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4314         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4315         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4316
4317 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4318
4319         * lisp.h (ALIGNOF): A better definition for C++.
4320
4321 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4322
4323         Macro hygiene.
4324         Fix printf warnings: int format, long int arg.
4325         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4326         (PUSH_FAILURE_POINT): Use correct printf formats.
4327         (POP_FAILURE_POINT): Use correct printf formats.  
4328         Use do {...} while (0)
4329
4330 2001-01-20  Martin Buchholz <martin@xemacs.org>
4331
4332         * XEmacs 21.2.42 "Poseidon" is released.
4333
4334 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4335
4336         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4337
4338 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4339
4340         De-kludgify FIXED_TYPE free list frobbing.
4341         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4342         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4343         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4344         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4345         * alloc.c (LRECORD_FREE_P): New.
4346         * alloc.c (MARK_LRECORD_AS_FREE): New.
4347         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4348         * alloc.c (STRUCT_FREE_P): Deleted.
4349         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4350         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4351         * alloc.c (STRING_CHARS_FREE_P): New.
4352         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4353         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4354         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4355         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4356         * alloc.c (resize_string): Use new definitions.
4357         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4358         * alloc.c (verify_string_chars_integrity): Use new definitions.
4359         * alloc.c (compact_string_chars): Use new definitions.
4360         * alloc.c: Update monster comments.
4361         * lrecord.h (lrecord_type): Add some new lrecord types for
4362         alloc.c's use.
4363
4364 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4365
4366         Improve alignment hackery.
4367         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4368         (max_align_t): Moved from opaque.h - general purpose.
4369         (ALIGN_PTR): Use size_t, not long.
4370         * opaque.h (max_align_t): Move to lisp.h.
4371
4372 2001-01-18  Norbert Koch  <nk@LF.net>
4373
4374         * gui.h: Fix and add prototypes to fix build problems.
4375
4376 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4377
4378         temacs is going away, so `dump-temacs' is now a bad name.
4379         * .dbxrc (dump-temacs): Rename to `dmp'.
4380         * .gdbinit (dump-temacs): Rename to `dmp'.
4381
4382 2001-01-17  Andy Piper  <andy@xemacs.org>
4383
4384         * glyphs.c (print_image_instance): comment to make martin happy.
4385
4386         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4387         change.
4388
4389         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4390         activation.
4391         (mswindows_tab_control_redisplay): warning suppression.
4392
4393         * glyphs-widget.c (widget_update): re-write to cope with updated
4394         items.
4395         (widget_instantiate): use new gui_item functions.
4396         (tab_control_update): deleted.
4397         (progress_gauge_update): deleted.
4398         (image_instantiator_progress_guage): take out update reference.
4399         (image_instantiator_tree_view): ditto.
4400         (image_instantiator_tab_control): ditto.
4401
4402         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4403         Right the new way.
4404         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4405         return whether anything was changed.
4406         (update_gui_item_keywords): as it sounds.
4407
4408         * gui.h: declare widget_gui_parse_item_keywords.
4409
4410         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4411         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4412
4413 2001-01-17  Martin Buchholz <martin@xemacs.org>
4414
4415         * XEmacs 21.2.41 "Polyhymnia" is released.
4416
4417 2001-01-16  Didier Verna  <didier@xemacs.org>
4418
4419         * glyphs.c (image_instantiate): don't use fallbacks when
4420         instantiating a face's background pixmap by inheritance.
4421
4422 2001-01-14  Mike Sperber <mike@xemacs.org>
4423
4424         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4425         Conditionalize accordingly.
4426
4427 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4428
4429         * dumper.c (pdump_file_get): Fix a compiler warning.
4430
4431 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4432
4433         Make Purify happy when pdumping.
4434         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4435         iniitalizing all bits of new lisp object memory.
4436         * symbols.c (Fmake_local_variable): Likewise.
4437         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4438         * symbols.c (Fdefvaralias): Likewise.
4439         * mule-charset.c (vars_of_mule_charset): Likewise.
4440
4441 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4442         Add the `-nd' flag when running pre-dump operations under the debugger.
4443         * .dbxrc (run-temacs): Add `-nd'.
4444         * .dbxrc (update-elc): Likewise.
4445         * .dbxrc (dump-temacs): Likewise.
4446         * .gdbinit (run-temacs): Likewise.
4447         * .gdbinit (check-temacs): Likewise.
4448         * .gdbinit (update-elc): Likewise.
4449         * .gdbinit (dump-temacs): Likewise.
4450
4451 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4452
4453         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4454         export OBJECT_MODE=64
4455         configure --pdump --use-union-type=no
4456         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4457         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4458
4459         * miscplay.c (sndcnv8U_2mono):
4460         Avoid two uses of `++' in the same expression.
4461         Suppresses a GCC warning.
4462
4463 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4464
4465         Make sure future compilers don't miscompile alloc.c.
4466         * alloc.c:
4467         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4468         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4469
4470 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4471
4472         * dumper.c: A little post-pdump-rename comment fixup.
4473
4474 2001-01-09  Jerry James  <james@eecs.ku.edu>
4475
4476         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4477
4478 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4479
4480         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4481         script:
4482         #!/bin/sh
4483         replace_symbol () {
4484           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4485         }
4486
4487         replace_symbol pdump_wire_lists pdump_weak_object_chains
4488         replace_symbol pdump_wire_list dump_add_weak_object_chain
4489
4490         replace_symbol pdump_wires pdump_root_objects
4491         replace_symbol pdump_wire dump_add_root_object
4492
4493         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4494         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4495
4496         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4497         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4498         replace_symbol dumpstructinfo pdump_root_struct_ptr
4499         replace_symbol dumpstruct dump_add_root_struct_ptr
4500
4501         replace_symbol dumpopaque dump_add_opaque
4502         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4503         replace_symbol dumpopaqueinfos pdump_opaques
4504         replace_symbol dumpopaqueinfo pdump_opaque
4505
4506         replace_symbol nb_structdump nb_root_struct_ptrs
4507         replace_symbol nb_opaquedump nb_opaques
4508
4509         replace_symbol align_table pdump_align_table
4510         replace_symbol dump_header pdump_header
4511
4512         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4513         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4514
4515
4516 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4517
4518         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4519         optimizing bytecount_to_charcount().
4520
4521 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4522
4523         * config.h.in:
4524         (HAVE_DLFCN_H): Removed.
4525         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4526
4527 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4528
4529         Portable dumper maintainability improvements.
4530         * alloc.c (staticpro):
4531         * alloc.c (staticpro_nodump):
4532         * alloc.c (garbage_collect_1):
4533         * alloc.c (reinit_alloc_once_early):
4534         * alloc.c (init_alloc_once_early):
4535         * alloc.c: Move dumper functions to alloc.c.
4536         * dumper.c (pdump_backtrace):
4537         * dumper.c (pdump_dump_structs):
4538         * dumper.c (pdump_dump_opaques):
4539         * dumper.c (pdump_dump_rtables):
4540         * dumper.c (pdump_dump_wired):
4541         * dumper.c (pdump):
4542         * dumper.c (pdump_load_check):
4543         * dumper.c (pdump_load_finish):
4544         * dumper.c (pdump_file_unmap):
4545         * dumper.c (pdump_file_get):
4546         * dumper.c (pdump_resource_free):
4547         * dumper.c (pdump_resource_get):
4548         * dumper.c (pdump_file_free):
4549         * dumper.c (pdump_file_try):
4550         * dumper.c (pdump_load):
4551         Remove fixed size limits on staticpro(), staticpro_nodump(),
4552         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4553         Remove custom code for dumping lrecord_implementations_table - use
4554         dumpopaque instead.
4555         Remove (most of the) custom code for dumping staticpros - dump it
4556         like any other dynarr.
4557
4558         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4559         * dumper.c: Moved functions from alloc.c.
4560         * alloc.c (dumpstruct): Moved to dumper.c.
4561         * alloc.c (dumpopaque): Likewise.
4562         * alloc.c (pdump_wire): Likewise.
4563         * alloc.c (pdump_wire_list): Likewise.
4564
4565         * lisp.h (Dynarr_sizeof): New.
4566         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4567         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4568         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4569
4570         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4571         * lisp.h (dumpopaque): ditto.
4572         * lisp.h (pdump_wire): ditto.
4573         * lisp.h (pdump_wire_list): ditto.
4574
4575 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4576
4577         * make-src-depend (PrintPatternDeps):
4578         Use `sort' to make output independent of perl version.
4579
4580 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4581
4582         Port to Netbsd 1.5.
4583         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4584         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4585
4586 2001-01-03  Didier Verna  <didier@xemacs.org>
4587
4588         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4589         that `focus_frame' is alive before thinking of calling
4590         `redisplay_redraw_cursor' on it.
4591
4592 2001-01-08  Martin Buchholz <martin@xemacs.org>
4593
4594         * XEmacs 21.2.40 is released.
4595
4596 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4597
4598         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4599
4600 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4601
4602         * alloc.c (dbg_valmask): Make const.
4603         * alloc.c (dbg_typemask): Make const.
4604         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4605         * alloc.c (dbg_valbits): Make const.
4606         * alloc.c (dbg_gctypebits): Make const.
4607
4608 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4609
4610         * redisplay-x.c (x_bevel_area):
4611         redisplay.h (struct rune):
4612         Typo fixes in comments.
4613
4614 2001-01-05  Andy Piper  <andy@xemacs.org>
4615
4616         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4617         adjustment.
4618
4619         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4620
4621 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4622
4623         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4624
4625         * mule-ccl.c (stack_idx_of_map_multiple):
4626         Non const global data must not be initialized!
4627         Found by MIYASHITA Hisashi.
4628
4629 2001-01-02  Andy Piper  <andy@xemacs.org>
4630
4631         * frame.c (change_frame_size): make sure frame size is always
4632         marked as changed.
4633
4634         * glyphs.c (image_instance_layout): minor code reuse.
4635
4636         * window.c (Fcurrent_window_configuration): revert previous
4637         change.
4638
4639 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4640
4641         * glyphs.h:
4642         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4643
4644 2000-12-31  Andy Piper  <andy@xemacs.org>
4645
4646         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4647         when widget gets unmapped.
4648
4649         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4650         function. Make sure widgets losing focus don't just drop it.
4651         (handle_focus_event_1): record the widget with focus.
4652
4653 2000-12-31  Andy Piper  <andy@xemacs.org>
4654
4655         * window.c (allocate_window): use
4656         make_image_instance_cache_hash_table.
4657         (make_dummy_parent): ditto.
4658         (Fset_window_configuration): ditto.
4659
4660         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4661
4662         * glyphs.c (process_image_string_instantiator): use
4663         INSTANTIATOR_TYPE.
4664         (get_image_instantiator_governing_domain): ditto.
4665         (normalize_image_instantiator): ditto.
4666         (instantiate_image_instantiator): ditto.
4667         (make_image_instance_1): ditto.
4668         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4669         (instantiator_eq_equal): new function for use with instance hash
4670         tables.
4671         (instantiator_eq_hash): ditto.
4672         (make_image_instance_cache_hash_table): create a suitable hash
4673         table for storing image instances.
4674
4675         * elhash.h (hash_table_weakness): new internal weakness type
4676         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4677         declare new functions.
4678
4679         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4680         another weakness type for glyphs.
4681         (make_standard_lisp_hash_table): new function split out from
4682         make_general_lisp_hash_table.
4683         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4684         (hash_table_instantiate): ditto.
4685         (Fmake_hash_table): ditto.
4686
4687 2000-12-31  Martin Buchholz <martin@xemacs.org>
4688
4689         * XEmacs 21.2.39 is released.
4690
4691 2000-12-29  Andy Piper  <andy@xemacs.org>
4692
4693         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4694
4695         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4696         the frame has changed so that we pick up geometry changes such as
4697         menubar visibility.
4698
4699 2000-12-28  Andy Piper  <andy@xemacs.org>
4700
4701         * lastfile.c (my_ebss): make a char array so we can pad the
4702         bss. Fixes cygwin unexec.
4703
4704         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4705
4706 2000-12-26  Andy Piper  <andy@xemacs.org>
4707
4708         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4709         comments and try and be more precise about a non-/SIGIO world.
4710         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4711         SIGIO.
4712
4713         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4714         we don't normalize to zero width or height.
4715
4716 2000-12-24  Andy Piper  <andy@xemacs.org>
4717
4718         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4719
4720 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4721
4722         * s/sco5.h: SCO 5 has pty support.
4723
4724 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4725
4726         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4727         input-method-xlib.c contains whole contents of input-method-xfs.c,
4728         so we can use input-method-xlib.c's code for USE_XFONTSET
4729         using #ifdefs.
4730         * input-method-xfs.c: removed.
4731
4732 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4733
4734         * file-coding.h (enum coding_category_type): reorder enumerators to
4735         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4736         (now one greater than largest real coding_category_type enumerator).
4737         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4738         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4739         Fcoding_category_list, Fset_coding_priority_list,
4740         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4741         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4742
4743 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4744
4745         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4746         * redisplay-output.c (redisplay_output_window): Clear top of window
4747         when face is changed.
4748         * redisplay-x.c (x_redraw_exposed_window): Call
4749         redisplay_clear_top_of_window.
4750         * redisplay.h: Publish redisplay_clear_top_of_window.
4751
4752 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4753
4754         * buffer.c (Fkill_buffer): Map over all devices.
4755         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4756         (list_windows): New function.
4757         (list_all_windows): Ditto.
4758         (Freplace_buffer_in_windows): Use them.
4759
4760 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4761
4762         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4763         (Fopen_database): Use `db_create' instead of `db_open'.
4764         (syms_of_database): Initialize Qqueue.
4765
4766 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4767
4768         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4769         buffer_local_face_property.
4770         * buffer.h (struct buffer): New member buffer_local_face_property.
4771         * window.c (Fset_window_buffer):  Mark window's face as changed
4772         when buffer has buffer local face.
4773         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4774         * objects.c (color_after_change): Set buffer_local_face_property
4775         when locale of face specifier is buffer.
4776         * objects.c (font_after_change): Ditto.
4777         * objects.c (face_boolean_after_change): Ditto.
4778         * glyphs.c (image_after_change): Ditto.
4779
4780 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4781
4782         * nt.c (mswindows_fstat): Report file permissions, volume serial
4783         number, etc. Code adapted from FSF Emacs 20.7.
4784
4785 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4786
4787         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4788         of stat when we don't have symbolic links, to make sure
4789         mswindows_stat is called on mswindows.
4790
4791 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4792
4793         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4794
4795 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4796
4797         * doprnt.c (emacs_doprnt_1): More printing fixes.
4798         Make printing of numbers compatible with libc and FSF Emacs.
4799         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4800         Use the system printf to do most of the hard work of formatting,
4801         instead of doprnt_1().
4802         Calculate memory to allocate for format string.
4803         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4804         (doprnt_1): Cleaner code and documentation.
4805
4806 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4807
4808         * Makefile.in.in: Use the loop variable to install headers.
4809
4810 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4811
4812         * window.c (Fsplit_window): Don't invalidate face cache.
4813
4814 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4815
4816         * minibuf.c (Fall_completions): Undo the previous change
4817         which removed checking elements start with space.
4818
4819 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4820
4821         * mule-canna.c: Didier suppression.
4822
4823 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4824
4825         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4826         (warning suppression).  Add English comment translations.
4827
4828 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4829
4830         * unexelfsgi.c (unexec): Better test for mmap failure.
4831
4832 2000-12-05  Martin Buchholz <martin@xemacs.org>
4833
4834         * XEmacs 21.2.38 is released.
4835
4836 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4837
4838         * redisplay.c (bar-cursor): Make a user variable.
4839
4840         * symsinit.h: Add init_postgresql_from_environment.
4841
4842 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4843
4844         * regex.c: Convert to clean C.
4845
4846 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4847
4848         * realpath.c:
4849         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4850         initialization.
4851         (sys_readlink): renamed to system_readlink to avoid conflict with
4852         the other sys_readlink.
4853
4854 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4855
4856         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4857
4858 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4859
4860         * postgresql.c (init_postgresql_from_environment): new function.
4861         (vars_of_postgresql): Move code initializing Lisp variables out and
4862         into init_postgresql_from_environment.
4863         emacs.c (main_1): Call init_postgresql_from_environment if and only
4864         if running a dumped XEmacs.
4865
4866 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4867
4868         * buffer.c: Make find-file-compare-truenames default to true on
4869         windows.
4870
4871         * realpath.c (win32_abs_start):
4872         (cygwin_readlink):
4873         (win32_readlink): New functions.
4874         (xrealpath): Return really real filenames on windows.
4875
4876         * fileio.c (Ffile_truename): Make file-truename work on windows.
4877
4878 2000-11-29  Didier Verna  <didier@xemacs.org>
4879
4880         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4881         * faces.c (update_face_cachel_data): use it.
4882         * faces.c (add_face_cachel): use it. Complete background pixmap
4883         frobbing in face cache if `update_face_cachel_data' has not done so.
4884
4885 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4886
4887         * search.c (string_match_1): Don't set last_thing_searched
4888         when search failed.
4889
4890 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4891
4892         * buffer.c: Include casetab.h
4893         (common_init_complex_vars_of_buffer): Use new case-table object.
4894         * buffer.h: Include casetab.h
4895         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4896         (DOWNCASE_TABLE_OF): Ditto.
4897         * bufslots.h: Remove char-tables and add case-table.
4898         * casetab.c: Include casetab.h
4899         (CASE_TABLE_P): Removed.
4900         (mark_case_table): New function.
4901         (allocate_case_table): New function.
4902         (Fcase_table_p): Use new case-table.
4903         (case_table_char): New function.
4904         (Fget_case_table): Ditto.
4905         (Fput_case_table): Ditto.
4906         (Fput_case_table_pair): Ditto.
4907         (Fcopy_case_table): Ditto.
4908         (Fcurrent_case_table): Return case-table.
4909         (Fstandard_case_table): Return case-table.
4910         (Fset_case_table): Fix doc-string.
4911         (set_case_table): Use case-table
4912         (syms_of_casetab): DEFSUBR new functions.
4913         (complex_vars_of_casetab): Set up standard case-table.
4914         * casetab.h: New file.
4915         * editfns.c: Include casetab.h
4916         (Fcompare_buffer_substrings): Use case-table.
4917         * inline.c: Include casetab.h
4918         * lisp.h: Remove bogus extern.
4919         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4920         * search.c: Include casetab.h
4921         (TRANSLATE_ASCII): Removed.
4922         (TRANSLATE): Unconditionally translate character.
4923         (looking_at_1): Use case-table.
4924         (string_match_1): Ditto.
4925         (fast_string_match): Ditto.
4926         (search_command): Ditto.
4927         (search_buffer): Separate boyer_moore.  Check whether
4928         boyer_moore is possible.
4929         (simple_search): New function.
4930         (boyer_moore): Separated from search_buffer. Translate char.
4931
4932 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4933
4934         * regex.c (RE_TR_ASCII): Removed.
4935         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4936         (PATFETCH): Call PATFETCH_RAW.
4937         (PATFETCH_RAW): Fetch Emchar.
4938         (PATUNFETCH): Decrement charptr.
4939         (GET_BUFFER_SPACE): Rename b to buf_end.
4940         (BUF_PUSH): Ditto.
4941         (BUF_PUSH_2): Ditto.
4942         (BUF_PUSH_3): Ditto.
4943         (EXTEND_BUFFER): Ditto.
4944         (SET_LIST_BIT): Ditto.
4945         (regex_compile): Ditto.  Translate non ASCII char.
4946         (compile_range): Ditto.
4947         (re_search_2): Ditto.
4948         (re_match_2_internal): Compare Emchar.
4949         (bcmp_translate): Ditto.
4950
4951 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4952
4953         * lisp.h (basic char/int typedefs):  comment improvement.
4954
4955 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4956
4957         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4958         unstomp inhibit_site_lisp.  Improve comments.
4959
4960 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4961
4962         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4963
4964 2000-11-28  Andy Piper  <andy@xemacs.org>
4965
4966         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4967         clipped display for windows in the gutter also.
4968         (redisplay_display_boxes_in_window_p): change semantics of return
4969         codes to be more intuitive.
4970
4971         * gutter.h: declare display_boxes_in_gutter_p.
4972
4973         * gutter.c (display_boxes_in_gutter_p): new function for
4974         redisplay.
4975
4976 2000-11-22  Andy Piper  <andy@xemacs.org>
4977
4978         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4979         autodetect domain.
4980
4981 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4982
4983         * callproc.c (Fold_call_process_internal):
4984         * gpm.c (Freceive_gpm_event):
4985         (tty_get_foreign_selection): Might be just warning supression.
4986         * fileio.c (Fwrite_region_internal):
4987         (Fset_visited_file_modtime):
4988         * keymap.c (event_matches_key_specifier_p):
4989         Initialize GCPROed variable.
4990
4991         * menubar-x.c (command_builder_find_menu_accelerator):
4992         Initialize before use.
4993
4994 2000-11-23  Andy Piper  <andy@xemacs.org>
4995
4996         * unexcw.c (unexec): make the resulting executable executable.
4997
4998 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4999
5000         * doc.c (get_doc_string):
5001         Use size_t, not int, for result of XSTRING_LENGTH.
5002
5003         * cmds.c (Fdelete_char):
5004         * cmds.c (Fpoint_at_eol):
5005         * cmds.c (Fself_insert_command):
5006         Use EMACS_INT, not int, for result of XINT.
5007         Someday, someone will want to insert more than 2**31 identical characters.
5008
5009         * cmds.c (Fdelete_char):
5010         * cmds.c (Fdelete_backward_char):
5011         * syntax.c (Fforward_word):
5012         * syntax.c (Fforward_comment):
5013         Make COUNT argument optional, for consistency with forward-char et al.
5014
5015 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5016
5017         * lisp.h:
5018         * print.c (long_to_string):
5019         Return a useful value: the pointer at end of data written.
5020
5021         * doprnt.c:
5022         Use `static const char * const' for constant strings.
5023         (union printf_arg): Delete `i', `ui' members.
5024         (get_doprnt_args):
5025         (emacs_doprnt_1):
5026         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5027         Do all printf-ing via the `l' specifier.
5028         Use EMACS_INT instead of int.
5029         Optimize.
5030
5031 2000-11-20  Didier Verna  <didier@xemacs.org>
5032
5033         * faces.c (update_face_cachel_data): don't frob the background
5034         pixmap when the window is being created. The face is needed but
5035         does not exist yet.
5036
5037 2000-11-20  Andy Piper  <andy@xemacs.org>
5038
5039         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5040         messing with a debug environment.
5041
5042 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5043
5044         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5045
5046 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5047
5048         * casetab.c (Fcase_table_p): Fix compile error and crash.
5049
5050 2000-11-18  Philip Aston  <philipa@mail.com>
5051
5052         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5053
5054 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5055
5056         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5057         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5058
5059 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5060
5061         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5062         * unexelf.c: Use HAVE_ELF_H.
5063         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5064         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5065         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5066         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5067         for testing.
5068         So this is an unexelfsgi.c from a different line of development.
5069
5070 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5071
5072         * regex.c (RE_TR_ASCII): New function.
5073         (RE_TRANSLATE): Call it.
5074
5075 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5076
5077         * buffer.h (TRT_TABLE_OF): Remove assert.
5078         (IN_TRT_TABLE_DOMAIN): Removed.
5079
5080 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5081
5082         * free-hook.c (log_gcpro):
5083         (show_gcprohist): Add support for GCPRO5.
5084
5085 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5086
5087         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5088
5089 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5090
5091         * symeval.h: Declare flush_all_buffer_local_cache.
5092
5093         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5094         (flush_buffer_local_cache): Added.
5095         (flush_all_buffer_local_cache): Added.
5096
5097         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5098
5099         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5100         (pdump_dump_data): Ditto.
5101         (pdump_reloc_one): Ditto.
5102         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5103         before dumping.
5104
5105
5106 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5107
5108         * buffer.c: Remove if 0'ed entry.
5109         * buffer.h: Rewrite TRT to use char-table.
5110         * bufslots.h: Remove mirror tables.
5111         * casetab.c: Remove mirror tables.
5112         (CASE_TABLE_P): New macro.
5113         (Fcase_table_p): Element of a case table is string or char-table.
5114         (make_mirror_trt_table): Removed.
5115         (set_case_table): Setup char-table from strings for backward
5116         compatibility.
5117         * dired.c (Fdirectory_files):
5118         * dired-msw.c: (mswindows_get_files):
5119         * lisp.h: Change prototype of re_pattern_buffer.
5120         * regex.c: (RE_TRANSLATE): New macro.
5121         (TRANSLATE_P): Ditto.
5122         Change translate to type RE_TRANSLATE_TYPE.
5123         * regex.h: Define RE_TRANSLATE_TYPE
5124         * search.c (TRANSLATE): New macro.
5125         (TRANSLATE_ASCII): New macro.
5126         Translate table is changed to Lisp_Object.
5127         (signal_failure): Inhibit return.
5128
5129 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5130
5131         * device-msw.c:
5132         * eldap.c:
5133         * event-Xt.c:
5134         * event-stream.c:
5135         * print.c:
5136         Do UNGCPRO before return.
5137
5138 2000-11-14  Martin Buchholz <martin@xemacs.org>
5139
5140         * XEmacs 21.2.37 is released.
5141
5142 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5143
5144         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5145         Add comments about discarded return value.
5146
5147 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5148
5149         * callint.c:
5150         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5151
5152 2000-10-27  Andy Piper  <andy@xemacs.org>
5153
5154         * gutter.c (Fset_default_gutter_position): default left and right
5155         gutters to visible.
5156         (calculate_gutter_size): calculate resonable heuristic for left
5157         and right gutter sizes.
5158         (specifier_vars_of_gutter): change left and right gutter sizes to
5159         autodetect.
5160         (calculate_gutter_size_from_display_lines): new function.
5161         (output_gutter): check for resizing on left and right gutters.
5162         (clear_gutter): don't special case top and left gutters.
5163         (specifier_vars_of_gutter): use new signature for
5164         set_specifier_caching.
5165
5166         * glyphs-x.c (x_redisplay_widget): spelling fix.
5167         * glyphs.c (specifier_vars_of_glyphs):
5168         * menubar.c (specifier_vars_of_menubar):
5169         * redisplay.c (specifier_vars_of_redisplay):
5170         * toolbar.c (specifier_vars_of_toolbar):
5171         * window.c (specifier_vars_of_window):
5172         * scrollbar.c (specifier_vars_of_scrollbar):
5173         (complex_vars_of_scrollbar): use new signature for
5174         set_specifier_caching.
5175
5176         * specifier.c (set_specifier_caching): include recompute flag.
5177         (recompute_one_cached_specifier_in_window): always recompute if
5178         flag set.
5179         (recompute_one_cached_specifier_in_frame): ditto.
5180
5181         * specifier.h (struct specifier_caching): add recompute flag.
5182
5183 2000-10-24  Andy Piper  <andy@xemacs.org>
5184
5185         * unexcw.c (copy_executable_and_dump_data_section): add new
5186         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5187         5.0 happy.
5188
5189 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5190
5191         * console-x.h (x_device): New member modifier_release_time.
5192         * event-Xt.c (x_handle_sticky_modifiers):
5193         Bound interval modifier keys are sticky.
5194         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5195         * events.h: extern it.
5196
5197 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5198
5199         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5200
5201 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5202
5203         * event-stream.c (execute_command_event): Preserve current_events
5204         and the like when event is misc-user-event.
5205         Inhibit quit during the call to maybe_echo_keys.
5206
5207 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5208
5209         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5210         symlink when buffer is killed.
5211         (inhibit_clash_detection): New variable.
5212
5213 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5214
5215         * console.c (Fset_input_method): Trigger redisplay on tty.
5216
5217 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5218
5219         * process.c (Fprocess_status): Revert to previous behavior:
5220         (process-status "nosuchprocess") ==> nil
5221
5222 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5223
5224         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5225         Work around another GCC 2.95.2 optimizer bug.
5226
5227 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5228
5229         * process.c (Fget_process): Use LIST_LOOP_2.
5230         (kill_buffer_processes): Use LIST_LOOP_2.
5231
5232         * minibuf.c (Fall_completions):
5233         Delete old non-functional code for FSF fourth argument.
5234
5235         * frame.c (frame_matches_frame_spec):
5236         Renamed from `frame_matches_frametype'.  Update all callers.
5237         (device_matches_device_spec):
5238         Renamed from 'device_matches_console_spec'.  Update all callers.
5239
5240         * doc.c (Fsubstitute_command_keys):
5241         Remove buffer overflow crash.  Small code cleanups.
5242
5243         * casetab.c (check_case_table): Simpler code.
5244
5245         * window.c (Freplace_buffer_in_windows):
5246         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5247         (and similar implementation) as Fdelete_windows_on.
5248         Update all callers.
5249
5250         * alloc.c (Fmake_list):
5251         * alloc.c (make_vector):
5252         * alloc.c (Fmake_vector):
5253         * alloc.c (make_bit_vector):
5254         * alloc.c (Fmake_bit_vector):
5255         * alloc.c (Fbit_vector):
5256         * alloc.c (Fmake_string):
5257         * alloc.c (Fpurecopy):
5258         * alloc.c (Fmemory_limit):
5259         * buffer.c:
5260         * buffer.c (Fget_buffer):
5261         * buffer.c (Fkill_buffer):
5262         * buffer.c (complex_vars_of_buffer):
5263         * bytecode.c (Fcompiled_function_stack_depth):
5264         * callint.c (Fprefix_numeric_value):
5265         * event-stream.c:
5266         * event-stream.c (Fread_key_sequence):
5267         * casetab.c:
5268         * casetab.c (Fcase_table_p):
5269         * casetab.c (check_case_table):
5270         * casetab.c (Fset_case_table):
5271         * casetab.c (Fset_standard_case_table):
5272         * chartab.c:
5273         * chartab.c (Fchar_table_type):
5274         * chartab.c (Freset_char_table):
5275         * chartab.c (Fget_char_table):
5276         * chartab.c (Fget_range_char_table):
5277         * chartab.c (Fput_char_table):
5278         * chartab.c (Fmap_char_table):
5279         * chartab.c (Fcategory_table_p):
5280         * chartab.c (Fcheck_category_at):
5281         * chartab.c (Fchar_in_category_p):
5282         * chartab.c (Fcategory_table):
5283         * chartab.c (Fcopy_category_table):
5284         * chartab.c (Fset_category_table):
5285         * chartab.c (Fcategory_designator_p):
5286         * chartab.c (Fcategory_table_value_p):
5287         * cmds.c (Fdelete_char):
5288         * cmds.c (Fdelete_backward_char):
5289         * cmds.c (Fself_insert_command):
5290         * cmds.c (Fself_insert_internal):
5291         * console.c (Fvalid_console_type_p):
5292         * console.c (Fcdfw_console):
5293         * console.c (Fconsole_type):
5294         * console.c (Fconsole_name):
5295         * console.c (Fconsole_device_list):
5296         * console.c (Fconsole_on_window_system_p):
5297         * data.c:
5298         * data.c (Feq):
5299         * data.c (Fold_eq):
5300         * data.c (Fsubr_interactive):
5301         * data.c (Fchar_to_int):
5302         * data.c (Fint_to_char):
5303         * data.c (Fsetcar):
5304         * data.c (Fsetcdr):
5305         * data.c (Fnumber_to_string):
5306         * data.c (Fstring_to_number):
5307         * data.c (Frem):
5308         * database.c (mark_database):
5309         * database.c (finalize_database):
5310         * database.c (Fdatabase_live_p):
5311         * database.c (Fdatabasep):
5312         * device-x.c (Fx_get_resource):
5313         * device.c (Fdfw_device):
5314         * dired.c:
5315         * dired.c (Ffile_name_completion):
5316         * dired.c (Ffile_name_all_completions):
5317         * dired.c (Fuser_name_completion):
5318         * dired.c (Fuser_name_completion_1):
5319         * dired.c (Fuser_name_all_completions):
5320         * doc.c (Fdocumentation):
5321         * doc.c (Fdocumentation_property):
5322         * doc.c (Fsubstitute_command_keys):
5323         * editfns.c:
5324         * editfns.c (Fchar_to_string):
5325         * editfns.c (Fstring_to_char):
5326         * editfns.c (Ftemp_directory):
5327         * editfns.c (Finsert_char):
5328         * editfns.c (Fbuffer_substring_no_properties):
5329         * editfns.c (Fnarrow_to_region):
5330         * editfns.c (Fchar_equal):
5331         * editfns.c (Fchar_Equal):
5332         * editfns.c (Ftranspose_regions):
5333         * emacs.c (Fdump_emacs):
5334         * eval.c (Fthrow):
5335         * eval.c (Fcommand_execute):
5336         * eval.c (Fautoload):
5337         * eval.c (Fbacktrace):
5338         * eval.c (Fbacktrace_frame):
5339         * events.c:
5340         * events.c (Fcopy_event):
5341         * events.c (Fcharacter_to_event):
5342         * events.c (Fevent_button):
5343         * events.c (Fevent_process):
5344         * extents.c:
5345         * extents.c (Fnext_extent_change):
5346         * extents.c (Fextent_property):
5347         * faces.c (Ffacep):
5348         * faces.c (Fmake_face):
5349         * file-coding.c:
5350         * file-coding.c (Fencode_shift_jis_char):
5351         * file-coding.c (Fencode_big5_char):
5352         * fileio.c (Ffile_name_directory):
5353         * fileio.c (Ffile_name_nondirectory):
5354         * fileio.c (Ffile_name_as_directory):
5355         * fileio.c (Fdirectory_file_name):
5356         * fileio.c (Ffile_truename):
5357         * fileio.c (Fsubstitute_in_file_name):
5358         * fileio.c (Ffile_modes):
5359         * fileio.c (Fset_file_modes):
5360         * fileio.c (Fset_default_file_modes):
5361         * fileio.c (Fverify_visited_file_modtime):
5362         * floatfns.c (Facos):
5363         * floatfns.c (Fasin):
5364         * floatfns.c (Fatan):
5365         * floatfns.c (Fcos):
5366         * floatfns.c (Fsin):
5367         * floatfns.c (Ftan):
5368         * floatfns.c (Fbessel_j0):
5369         * floatfns.c (Fbessel_j1):
5370         * floatfns.c (Fbessel_jn):
5371         * floatfns.c (Fbessel_y0):
5372         * floatfns.c (Fbessel_y1):
5373         * floatfns.c (Fbessel_yn):
5374         * floatfns.c (Ferf):
5375         * floatfns.c (Ferfc):
5376         * floatfns.c (Flog_gamma):
5377         * floatfns.c (Fexp):
5378         * floatfns.c (Fexpt):
5379         * floatfns.c (Flog):
5380         * floatfns.c (Flog10):
5381         * floatfns.c (Fsqrt):
5382         * floatfns.c (Fcube_root):
5383         * floatfns.c (Facosh):
5384         * floatfns.c (Fasinh):
5385         * floatfns.c (Fatanh):
5386         * floatfns.c (Fcosh):
5387         * floatfns.c (Fsinh):
5388         * floatfns.c (Ftanh):
5389         * floatfns.c (Fabs):
5390         * floatfns.c (Ffloat):
5391         * floatfns.c (Flogb):
5392         * floatfns.c (Fceiling):
5393         * floatfns.c (Ffloor):
5394         * floatfns.c (Fround):
5395         * floatfns.c (Ftruncate):
5396         * floatfns.c (Ffceiling):
5397         * floatfns.c (Fffloor):
5398         * floatfns.c (Ffround):
5399         * floatfns.c (Fftruncate):
5400         * fns.c (Fstring_equal):
5401         * fns.c (Fstring_lessp):
5402         * fns.c (concat2):
5403         * fns.c (concat3):
5404         * fns.c (vconcat2):
5405         * fns.c (vconcat3):
5406         * fns.c (Fsubstring):
5407         * fns.c (Fassoc):
5408         * fns.c (Fold_assoc):
5409         * fns.c (assoc_no_quit):
5410         * fns.c (Fassq):
5411         * fns.c (Fold_assq):
5412         * fns.c (assq_no_quit):
5413         * fns.c (Frassoc):
5414         * fns.c (Fold_rassoc):
5415         * fns.c (Frassq):
5416         * fns.c (Fold_rassq):
5417         * fns.c (rassq_no_quit):
5418         * fns.c (Fremassoc):
5419         * fns.c (remassoc_no_quit):
5420         * fns.c (Fremassq):
5421         * fns.c (remassq_no_quit):
5422         * fns.c (Fremrassoc):
5423         * fns.c (Fremrassq):
5424         * fns.c (remrassq_no_quit):
5425         * fns.c (Fsort):
5426         * fns.c (Fplist_get):
5427         * fns.c (Fplist_put):
5428         * fns.c (Fplist_remprop):
5429         * fns.c (Fplist_member):
5430         * fns.c (Flax_plist_get):
5431         * fns.c (Flax_plist_put):
5432         * fns.c (Flax_plist_remprop):
5433         * fns.c (Flax_plist_member):
5434         * fns.c (Fequal):
5435         * fns.c (Fold_equal):
5436         * fns.c (Frequire):
5437         * fns.c (Fbase64_encode_region):
5438         * fns.c (Fbase64_encode_string):
5439         * fns.c (Fbase64_decode_region):
5440         * frame.c:
5441         * frame.c (frame_matches_frame_spec):
5442         * frame.c (device_matches_device_spec):
5443         * frame.c (next_frame):
5444         * frame.c (previous_frame):
5445         * frame.c (Fnext_frame):
5446         * frame.c (Fprevious_frame):
5447         * frame.c (Fframe_property):
5448         * frame.c (Fset_frame_height):
5449         * frame.c (Fset_frame_size):
5450         * frame.h:
5451         * glyphs.c:
5452         * glyphs.c (if):
5453         * glyphs.c (decode_error_behavior_flag):
5454         * glyphs.c (Fmake_image_instance):
5455         * indent.c (Findent_to):
5456         * intl.c (Fignore_defer_gettext):
5457         * keymap.c (Fkeymapp):
5458         * keymap.c (Flookup_key):
5459         * lread.c:
5460         * lread.c (Fload_internal):
5461         * lread.c (Feval_buffer):
5462         * lread.c (Feval_region):
5463         * macros.c (Fexecute_kbd_macro):
5464         * marker.c (set_marker_internal):
5465         * marker.c (Fset_marker):
5466         * marker.c (set_marker_restricted):
5467         * marker.c (Fcopy_marker):
5468         * marker.c (noseeum_copy_marker):
5469         * menubar.c:
5470         * menubar.c (Fpopup_menu):
5471         * minibuf.c:
5472         * mule-charset.c (Fcharset_name):
5473         * mule-charset.c (Fchar_charset):
5474         * mule-charset.c (Fchar_octet):
5475         * mule-charset.c (Fsplit_char):
5476         * mule-wnnfns.c (Fwnn_open):
5477         * mule-wnnfns.c (Fwnn_dict_comment):
5478         * mule-wnnfns.c (Fwnn_quit_henkan):
5479         * mule-wnnfns.c (Fwnn_word_toroku):
5480         * mule-wnnfns.c (Fwnn_word_sakujo):
5481         * mule-wnnfns.c (Fwnn_word_use):
5482         * mule-wnnfns.c (Fwnn_hindo_set):
5483         * objects.c:
5484         * objects.c (Fmake_color_instance):
5485         * objects.c (Fmake_font_instance):
5486         * print.c (Fwrite_char):
5487         * process.c:
5488         * process.c (mark_process):
5489         * process.c (print_process):
5490         * process.c (get_process_from_usid):
5491         * process.c (Fprocessp):
5492         * process.c (Fprocess_live_p):
5493         * process.c (Fget_process):
5494         * process.c (Fget_buffer_process):
5495         * process.c (get_process):
5496         * process.c (Fprocess_id):
5497         * process.c (Fprocess_name):
5498         * process.c (Fprocess_command):
5499         * process.c (init_process_io_handles):
5500         * process.c (start_process_unwind):
5501         * process.c (Fstart_process_internal):
5502         * process.c (Fopen_multicast_group_internal):
5503         * process.c (Fset_process_window_size):
5504         * process.c (read_process_output):
5505         * process.c (send_process):
5506         * process.c (Fprocess_tty_name):
5507         * process.c (Fset_process_buffer):
5508         * process.c (Fprocess_buffer):
5509         * process.c (Fprocess_mark):
5510         * process.c (set_process_filter):
5511         * process.c (Fset_process_filter):
5512         * process.c (Fprocess_filter):
5513         * process.c (Fprocess_send_region):
5514         * process.c (Fprocess_send_string):
5515         * process.c (exec_sentinel):
5516         * process.c (Fset_process_sentinel):
5517         * process.c (Fprocess_sentinel):
5518         * process.c (status_notify):
5519         * process.c (Fprocess_status):
5520         * process.c (Fprocess_exit_status):
5521         * process.c (process_send_signal):
5522         * process.c (Fprocess_send_eof):
5523         * process.c (deactivate_process):
5524         * process.c (remove_process):
5525         * process.c (Fdelete_process):
5526         * process.c (kill_buffer_processes):
5527         * process.c (Fprocess_kill_without_query):
5528         * process.c (Fprocess_kill_without_query_p):
5529         * rangetab.c:
5530         * rangetab.c (Fget_range_table):
5531         * rangetab.c (Fput_range_table):
5532         * rangetab.c (Fremove_range_table):
5533         * rangetab.c (Fclear_range_table):
5534         * search.c:
5535         * search.c (Fskip_chars_forward):
5536         * search.c (Fskip_chars_backward):
5537         * search.c (Fskip_syntax_forward):
5538         * search.c (Fskip_syntax_backward):
5539         * search.c (search_command):
5540         * search.c (Freplace_match):
5541         * search.c (Fregexp_quote):
5542         * select.c (Fown_selection_internal):
5543         * select.c (Fselection_owner_p):
5544         * select.c (Fselection_exists_p):
5545         * select.c (Fget_selection_internal):
5546         * specifier.c:
5547         * symbols.c:
5548         * symbols.c (Fintern):
5549         * symbols.c (Fintern_soft):
5550         * symbols.c (Funintern):
5551         * symbols.c (Fapropos_internal):
5552         * symbols.c (Fset_default):
5553         * syntax.c:
5554         * syntax.c (Fsyntax_table_p):
5555         * syntax.c (Fcopy_syntax_table):
5556         * syntax.c (Fset_syntax_table):
5557         * syntax.c (Fchar_syntax):
5558         * syntax.c (syntax_match):
5559         * syntax.c (Fmatching_paren):
5560         * syntax.c (Fforward_word):
5561         * syntax.c (scan_lists):
5562         * syntax.c (Fscan_lists):
5563         * syntax.c (Fscan_sexps):
5564         * syntax.c (Fparse_partial_sexp):
5565         * toolbar.c (Fcheck_toolbar_button_syntax):
5566         * tooltalk.doc:
5567         * window.c:
5568         * window.c (Fwindowp):
5569         * window.c (Fwindow_live_p):
5570         * window.c (Fwindow_point):
5571         * window.c (Fdelete_window):
5572         * window.c (Fnext_window):
5573         * window.c (Fprevious_window):
5574         * window.c (Fother_window):
5575         * window.c (window_loop):
5576         * window.c (Fget_lru_window):
5577         * window.c (Fsplit_window):
5578         * window.c (Fenlarge_window):
5579         * window.c (Fenlarge_window_pixels):
5580         * window.c (Fshrink_window):
5581         * window.c (Fshrink_window_pixels):
5582         * window.c (change_window_height):
5583         * window.c (Fwindow_configuration_p):
5584         * window.c (Fcurrent_window_configuration):
5585         * window.h:
5586         * casefiddle.c (casify_object):
5587         * casefiddle.c (Fupcase):
5588         * casefiddle.c (Fdowncase):
5589         * casefiddle.c (Fcapitalize):
5590         * casefiddle.c (Fupcase_initials):
5591         * casefiddle.c (casify_region_internal):
5592         * casefiddle.c (casify_region):
5593         * casefiddle.c (Fupcase_region):
5594         * casefiddle.c (Fdowncase_region):
5595         * casefiddle.c (Fcapitalize_region):
5596         * casefiddle.c (Fupcase_initials_region):
5597         * casefiddle.c (Fupcase_word):
5598         * casefiddle.c (Fdowncase_word):
5599         * casefiddle.c (Fcapitalize_word):
5600         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5601         Replace 0 with '\0' when working with bytes.
5602         Replace initial "(" with "\(" in docstrings.
5603
5604 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5605
5606         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5607
5608         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5609
5610 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5611
5612         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5613
5614 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5615
5616         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5617         correctly.
5618
5619 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5620
5621         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5622         (inhibit_auto_save_session): New variable.
5623         (vars_of_fileio): Declare and initialize them.
5624         * fileio.c (Fdo_auto_save): Don't create session file if
5625         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5626
5627 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5628
5629         * sgiplay.c (play_internal): C++ compilability.
5630         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5631         * callproc.c (Fold_call_process_internal):
5632         Remove unused vars `env', `first'.
5633         * scrollbar.c (update_scrollbar_instance):
5634         #### unused var `current_window'.
5635         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5636         etc. within #ifdef NOT_YET.
5637         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5638         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5639         * specifier.c (specifier_instance):
5640         #### unused var `tag'.
5641         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5642
5643 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5644
5645         * fns.c (Fbutlast):
5646         * fns.c (list_sort):
5647         * fns.c (Ffillarray):
5648         * fns.c (bytecode_nconc2):
5649         * fns.c (Fnconc):
5650         * fns.c (mapcar1):
5651         * fns.c (Fmapconcat):
5652         Be pedantically 64-bit correct.  For the time when someone will
5653         want to have a list with length > 2**32.
5654
5655         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5656         Work around MIPSpro compiler bug.
5657
5658         * process-unix.c (unix_kill_child_process): Add snarky comment.
5659         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5660
5661         * config.h.in: Oops, _getpt ==> _getpty
5662
5663 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5664
5665         * config.h.in:
5666         * regex.c:
5667         Use void*, not char*, as return type of alloca().
5668
5669         * alloc.c (free_marker): Side effect inside assert expression!
5670
5671 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5672
5673         * mule-charset.c (Fset_charset_ccl_program): To check
5674         if the given ccl program is valid, use setup_ccl_program()
5675         instead of CHECK_VECTOR().
5676         (Fmake_charset): Likewise.
5677
5678 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5679
5680         * faces.c (get_extent_fragment_face_cache_index):
5681         Fix cachel.merged_faces memory leak.
5682
5683 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5684
5685         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5686         Reset MSB of octets obtained by DECODE_SJIS
5687         because of the incompatibility with Emacs.
5688         (ccl_driver)<CCL_ENCODE_SJIS>:
5689         Set MSB of octets before passing them to
5690         ENCODE_SJIS because of the incompatibility
5691         with Emacs.
5692
5693 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5694
5695         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5696         (DECLARE_LRECORD): Undo the last change.
5697         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5698
5699 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5700
5701         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5702         the implementation to lrecord_implementations_table.
5703
5704 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5705
5706         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5707         initial value of `lrecord_type_##c_name' and
5708         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5709         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5710         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5711         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5712         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5713
5714 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5715
5716         * miscplay.c (sndcnv8S_2mono):
5717         (sndcnv2monounsigned):
5718         (sndcnvULaw_2linear):
5719         (sndcnv16swap):
5720         Remove implementation-defined behavior.
5721
5722 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5723
5724         * input-method-xlib.c: Warning suppression.
5725
5726 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5727
5728         * mule-ccl.c: Sync up with Emacs 21.0.90.
5729         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5730         Do nothing.
5731         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5732         Likewise.
5733         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5734         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5735         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5736         leading char belongs to official 2-dimensional charset.
5737         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5738         write the given character as is.  Otherwise,
5739         if it is a multibyte char, convert it by
5740         non_ascii_set_charptr_emchar, then write it.
5741         (CCL_WRITE_STRING): Likewise.
5742         (ccl_get_compiled_code): New function.
5743         (setup_ccl_program): When ccl_prog is invalid,
5744         return -1.
5745         (Fregister_code_conversion_map): New function.
5746         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5747
5748         * mule-ccl.h: Sync up with Emacs 21.0.90.
5749         (Fregister_ccl_program): export it.
5750
5751         * redisplay-msw.c (separate_textual_runs):
5752         If ccl program is not valid, don't do ccl conversion.
5753
5754         * redisplay-x.c (separate_textual_runs): Ditto.
5755
5756         * file-coding.c (Fmake_coding_system):
5757         When type is ccl and value is vector, register it
5758         with a proper symbol.  And checks whether the
5759         given ccl program is valid.
5760         (mule_decode): When calling ccl_driver, if src indicates
5761         NULL pointer, set an empty string instead.
5762         (mule_encode): Likewise.
5763
5764 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5765
5766         The following large batch of changes gets us back to a state of
5767         C++ compilability.  Extbyte is now a char, which means that
5768         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5769
5770         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5771
5772         * sound.c (Fplay_sound): Type correctness.
5773
5774         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5775         (x_get_window_property): Type correctness.
5776         (receive_incremental_selection): unsigned char ==> Extbyte
5777         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5778         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5779         (Fx_store_cutbuffer_internal): Type correctness.
5780
5781         * process-unix.c (try_to_initialize_subtty): Type correctness.
5782
5783         * objects-x.c (x_print_color_instance): Type correctness.
5784         (x_print_font_instance): Type correctness.
5785         (x_list_fonts): SExtbyte ==> Extbyte.
5786         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5787         (x_find_charset_font): SExtbyte ==> Extbyte.
5788         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5789         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5790         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5791         Use bufbyte_strcmp.
5792
5793         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5794         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5795         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5796         (BYTE_C0_P): Use bit ops for char-signedness safety.
5797         (BYTE_C1_P): Use bit ops for char-signedness safety.
5798         (CHARSET_BY_LEADING_BYTE):
5799         (CHARSET_BY_ATTRIBUTES):
5800         Always use inline function.
5801         Use type_checking_assert.
5802         Hide chlook.
5803
5804         * mule-charset.c (non_ascii_charptr_copy_char):
5805         Modify to work with both ASCII and non-ASCII characters.
5806         Improve docs and variable names.
5807         Replace over-clever fall-through switch with a simple loop.
5808         (Lstream_get_emchar_1):
5809         Replace over-clever fall-through switch with a simple loop.
5810
5811         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5812         Warning suppression.
5813
5814         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5815         the return value of Lstream_getc, which could be EOF as well.
5816
5817         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5818
5819         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5820         APIs can be used on Extbytes without casts.  Risky!
5821         (SExtbyte): Remove.
5822         (UExtbyte): Remove.
5823
5824         * input-method-xlib.c (XIM_init_device):
5825         Use Xlib.h instead of IntrinsicP.h.
5826         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5827         which will break in X11R7.
5828         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5829         to call XRegisterIMInstantiateCallback with correct types.
5830
5831         * gui-x.c (button_item_to_widget_value): Type correctness.
5832
5833         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5834
5835         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5836         (xbm_instantiate_1): Type correctness.
5837         (BUILD_GLYPH_INST):  Type correctness.
5838
5839         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5840
5841         * file-coding.c:
5842         (decode_coding_sjis):
5843         (decode_coding_big5):
5844         (decode_coding_ucs4):
5845         (decode_coding_utf8):
5846         (decode_coding_iso2022):
5847         (decode_coding_no_conversion):
5848         Make all decoding functions take an Extbyte * arg.
5849         (encode_coding_sjis):
5850         (encode_coding_big5):
5851         (encode_coding_ucs4):
5852         (encode_coding_utf8):
5853         (encode_coding_iso2022):
5854         (encode_coding_no_conversion):
5855         Make all encoding functions take a Bufbyte * arg.
5856         Use size_t instead of unsigned int for memory sizes.
5857         Only cast to unsigned char whenever dereferencing Extbyte *.
5858
5859         * doc.c (unparesseuxify_doc_string): Type correctness.
5860
5861         * console-x.c (split_up_display_spec):
5862         Rewrite without using details of internal string representation.
5863         (x_semi_canonicalize_device_connection): Type correctness.
5864
5865         * config.h.in:
5866         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5867         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5868         (HAVE_XFREE386): Removed.
5869
5870         * buffer.h (DEC_CHARPTR): `const' correctness.
5871         (bufbyte_strcmp): New.
5872         (bufbyte_memcmp): New.
5873
5874         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5875
5876         * buffer.h (XCHAR_OR_CHAR_INT):
5877         Always use inline function.
5878         Remove redundant type checking assert() - XINT will abort quite nicely.
5879
5880 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5881
5882         * search.c (Freplace_match): Set newtext to an empty string.
5883
5884 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5885
5886         * s/decosf1-3.h: Remove #include of stropts.h
5887         * s/ptx.h: Remove #include of stropts.h
5888         * s/usg5-4.h: Remove #include of stropts.h
5889         * sysproc.h:
5890         * config.h.in:
5891         Use stropts.h, not sys/stropts.h.
5892         Use strtio.h, not sys/strtio.h.
5893
5894 2000-10-04  Martin Buchholz <martin@xemacs.org>
5895
5896         * XEmacs 21.2.36 is released.
5897
5898 2000-09-21  Andy Piper  <andy@xemacs.org>
5899
5900         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5901         changes still involve copying the widget tree.
5902         (update_widget_face): make sure a change is register in the widget
5903         tree. Call update_tab_widget_face appropriately.
5904         (update_tab_widget_face): ditto.
5905         (x_tab_control_redisplay): make sure non-structural changes still
5906         involve copying the widget tree.
5907
5908 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5909
5910         * lread.c (locate_file): Check the path element is non-nil.
5911
5912 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5913
5914         * lisp.h: Warning suppression for SCO compilers.
5915
5916         * redisplay-tty.c (reset_tty_modes): Fix crash.
5917         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5918
5919 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5920
5921         Big signal/process handling overhaul.  Bugs fixed:
5922         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5923         M-x comint-kill-subjob should work for both values nil and t of
5924         process-connection-type. It was broken on most platforms.
5925         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5926         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5927         * process-unix.c: Signal/Process handling overhaul.
5928         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5929         (allocate_pty): Use all available modern methods of allocating
5930         ptys, falling back to old style BSD allocation as a last resort.
5931         Use allegedly more secure Unix98 pty allocation by default.
5932         (allocate_pty_the_old_fashioned_way): New. the last resort.
5933         (unix_create_process): Push ptem, ldterm, ttcompat where
5934         available.  Autoconfiscate.
5935         (try_to_initialize_subtty): New.
5936         (unix_kill_child_process): Proper signal handling for ptys on most
5937         platforms, using special knowledge of AIX, BSD, etc...
5938         (unix_create_process): Always disconnect_controlling_terminal() for
5939         subprocesses, whether using ptys or not.
5940         * process.h: Remove old getpt-dependent PTY code.
5941         * process.c (Fprocess_send_signal): New, obvious generic function.
5942         (decode_signal): New.
5943         (Finterrupt_process):
5944         (Fkill_process):
5945         (Fquit_process):
5946         (Fstop_process):
5947         (Fcontinue_process):
5948         (Fsignal_process): Use decode_signal.
5949         (process_send_signal):
5950         Many docstring corrections.
5951         Allow any signal to be sent to a process object.
5952         * config.h.in: Add symbols for big signal/process overhaul.
5953         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5954         * sysproc.h: Include process-related headers, where available:
5955         sys/stropts.h sys/strtio.h pty.h libutil.h
5956         * s/irix4-0.h:
5957         * s/irix5-0.h:
5958         * s/cygwin32.h:
5959         * s/gnu.h:
5960         * s/linux.h:
5961         * s/hpux.h:
5962         * s/aix3-1.h:
5963         Remove old S&M pty stuff.
5964         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5965         * systty.h: Simplify cpp hackery, improve comments.
5966         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5967
5968         * editfns.c (Fformat_time_string):
5969         Be a little more paranoid with the return value of ctime.
5970
5971         * fileio.c (check_executable):
5972         (check_writable):
5973         Use symbolic constants X_OK, W_OK.
5974
5975         * console-x.c (split_up_display_spec): Fix a warning.
5976
5977 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5978
5979         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5980         * ntproc.c (sys_spawnve): make_string ==> build_string
5981         Small clarity improvements.
5982
5983 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5984
5985         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5986
5987         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5988
5989         * config.h.in (HAVE_STRCASECMP): Remove.
5990
5991 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5992
5993         * redisplay-output.c (redisplay_output_pixmap):
5994         Cleaner and possibly more 64-bit correct code.
5995
5996 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5997
5998         * dumper.c (pdump_load_finish): move restoration of
5999         `noninteractive1' to emacs.c (main_1).
6000         * emacs.c (main_1): protect LISP-visible command-line flags
6001         from pdump_load().
6002
6003 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6004
6005         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6006         DUMP_TARGET instead of literal program names.
6007
6008 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6009
6010         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6011
6012 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6013
6014         * *: Spelling mega-patch
6015
6016 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6017
6018         * fns.c (bad_bad_turtle):
6019         Delete "Eek!" comment, since we fixed the bug to which it refers.
6020
6021 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6022
6023         * alloca.c: Replace REGISTER with register.
6024
6025 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6026
6027         * file-coding.c (ucs_to_char): Use countof.
6028
6029 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6030
6031         * file-coding.c: (ucs_to_char):
6032         (complex_vars_of_file_coding):
6033         Use countof instead of sizeof.
6034         Use CHECK_NATNUM instead of CHECK_INT.
6035
6036         * sysdep.c (strcasecmp): Remove.
6037         * device-x.c (ascii_strcasecmp): New.
6038         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6039         Avoid using non-standard non-portable strcasecmp.
6040
6041 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6042
6043         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6044         * font-lock.c: remove reference to emacsfns.h.
6045         * search.c: small doc improvement.
6046         * event-Xt.c: correct file names in comments.
6047         * console-x.h Correct file names in comments.
6048         * frame.c: Correct file names in comments.
6049         * event-stream.c: remove Energize from comments.
6050
6051 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6052
6053         * symeval.h (DEFERROR_STANDARD):
6054         (DEFERROR):
6055         (DEFSYMBOL):
6056         (DEFSYMBOL_NO_DUMP):
6057         (DEFSYMBOL_MULTIWORD_PREDICATE):
6058         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6059         (DEFKEYWORD):
6060         The construct &##name is not sensible C.
6061         Fixes compilation errors with Unixware native compiler.
6062
6063 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6064
6065         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6066         (next_frame_internal): Removed.  We now just have next_frame.
6067         (next_frame):
6068         Write a simpler and cleaner one-pass algorithm.
6069         Remove called_from_delete_device arg and #ifdefed-out code.
6070         (previous_frame):
6071         Renamed from prev_frame.  Update callers.
6072         Cleaned up to have an analogous implementation to next_frame.
6073         (other_visible_frames_internal): Remove the
6074         called_from_delete_device bogus arg, and hence, remove this
6075         function.  Just use other_visible_frames().
6076
6077         * window.c (Fnext_window):
6078         Prettify docstring.
6079         Since next_frame() is guaranteed to return a frame, remove check
6080         for nil inserted in previous patch.
6081         (Fprevious_window):
6082         Prettify docstring.
6083         Make code look more like Fnext_window.
6084         (window_loop):
6085         Respect the `console' arg when iterating through windows.
6086         Fixes bug: (get-buffer-window buffer t device) not respecting
6087         the `device' arg.
6088         This function needs more work, as others have pointed out.
6089
6090         * frame.h: Rename prev_frame to previous_frame.
6091         device_matches_console_spec no longer takes a `frame' arg.
6092
6093         * s/gnu.h:
6094         * s/linux.h:
6095         * s/hpux.h:
6096         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6097         From "Golubev I. N." <gin@mo.msk.ru>.
6098
6099         * make-src-depend: Fix typo.
6100
6101 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6102
6103         * window.c (Fnext_window):
6104         next_frame() might return nil, not a frame.
6105         Fixes this crash:
6106         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6107
6108         * frame.c (next_frame_internal):
6109         We've passed a frame if we've passed its device.
6110         Fixes this crash:
6111         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6112 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6113
6114 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6115
6116         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6117         Allow option to suppress accelerators in menu/dialog items.
6118         (populate_or_checksum_helper): Pass dialog title through above.
6119
6120 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6121
6122         * event-msw.c (mswindows_key_to_emacs_keysym):
6123         Add "pause" key, fix "menu" key.
6124
6125 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6126
6127         * eval.c (reinit_vars_of_eval):
6128         Increase max_lisp_eval_depth to 1000,
6129         required for thai-xtis.el to byte-compile under some circumstances.
6130
6131 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6132
6133         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6134         From Kenichi Handa.
6135
6136 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6137
6138         * make-src-depend: Make the generated Makefiles smaller.
6139
6140         * s/hpux.h (SETUP_SLAVE_PTY):
6141         Provide a %d in the format string for the errno argument.
6142
6143         * editfns.c (Ftemp_directory):
6144         Warning fix.
6145         Avoid buffer overrun on very long file name.
6146
6147         * input-method-xlib.c (XIM_init_device):
6148         6th parameter of XRegisterIMInstantiateCallback has different
6149         pointer types on different OSes, so simply cast to (void *).
6150
6151         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6152
6153         * sysdll.c (dll_open):
6154         shl_load will hang hard if passed a NULL filename.
6155         Simply return NULL for compatibility with dlopen.
6156         * sysdll.c: Conform to XEmacs coding standards.
6157
6158         * sysdep.c (get_pty_max_bytes):
6159         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6160
6161 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6162
6163         * tooltalk.c: Add #include <syssignal.h>
6164
6165 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6166
6167         * s/hpux.h: Don't use undefined function sigunblock().
6168
6169 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6170
6171         * config.h.in: Add HAVE_BALLOON_HELP.
6172         * emacs.c: Use HAVE_BALLOON_HELP.
6173         * Makefile.in.in (x_objs):
6174         Make Balloon Help conditional on finding shape.h.
6175
6176 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6177
6178         * syntax.c (regex_emacs_buffer_p): New variable.
6179         * syntax.h (regex_emacs_buffer_p): extern.
6180         * search.c (looking_at_1):
6181         (string_match_1):
6182         (fast_string_match):
6183         (search_buffer): Set regex_emacs_buffer_p.
6184         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6185         when before_dot, at_dot, after_dot.
6186
6187 2000-08-23  Andy Piper  <andy@xemacs.org>
6188
6189         * gui-x.c (popup_selection_callback): Only set action_occurred
6190         when we really have an image instance.
6191         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6192
6193 2000-08-23  Andy Piper  <andy@xemacs.org>
6194
6195         * gui-msw.c (mswindows_handle_gui_wm_command): set
6196         action_occurred.
6197         * gui-x.c (popup_selection_callback): ditto.
6198
6199         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6200         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6201         (struct Lisp_Image_Instance): add action_occurred flag.
6202
6203         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6204         (image_instance_changed): ditto.
6205         (reset_frame_subwindow_instance_cache): only unmap windows - do
6206         not remove them from the cache also.
6207
6208         * glyphs-widget.c (tab_control_update): better debug.
6209         (progress_gauge_update): ditto.
6210         (layout_update): ditto.
6211         (layout_instantiate): ditto.
6212         (tab_control_order_only_changed): cope with null pending items.
6213
6214         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6215         debug. Force selection of an item when an action occurred. Cope
6216         with null pending_items.
6217         (mswindows_progress_gauge_redisplay): better debug.
6218         * glyphs-x.c (x_tab_control_redisplay): ditto.
6219
6220         * redisplay.c (redisplay_frame): reset the frame cache if the
6221         frame is garbaged.
6222
6223         * window.c (Fset_window_configuration): potentially re-enable
6224         frame cache reset.
6225         (window_unmap_subwindows): need to finalize instances here since
6226         it is only used in mark_window_as_deleted.
6227
6228 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6229
6230         * nas.c (SndOpenDataForReading):
6231         nas.c (WaveOpenDataForReading):
6232         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6233         Somehow escaped from the 2000-08-14 patch.
6234
6235 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6236
6237         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6238         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6239
6240 2000-08-21  Andy Piper  <andy@xemacs.org>
6241
6242         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6243         window if it is not already displayed.
6244
6245         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6246         it is not already displayed.
6247
6248         * window.c (Fset_window_configuration): don't reset the frame
6249         cache.
6250
6251         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6252         instances from the frame cache if we are actually finalizing them.
6253         (reset_frame_subwindow_instance_cache): reset frame cache only
6254         after unmapping everything.
6255         (map_subwindow): set displayed flag after mapping.
6256
6257 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6258
6259         * data.c (indirect_function):
6260         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6261
6262         * eval.c (function_argcount):
6263         Use original function when signaling errors.
6264
6265 2000-08-18  Andy Piper  <andy@xemacs.org>
6266
6267         * frame.c (delete_frame_internal): use new
6268         free_frame_subwindow_instances name.
6269
6270         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6271         (add_tab_item): make return type correct.
6272         (mswindows_tab_control_instantiate): assert index of tab.
6273         (mswindows_tab_control_redisplay): Re-code to use
6274         gui_item_equal_sans_selected and gui_item_list_find_selected.
6275
6276         * glyphs-widget.c (tab_control_update): Correct comment.
6277
6278         * window.c (window_unmap_subwindows): use new
6279         unmap_subwindow_instance_cache_mapper.
6280         (window_unmap_subwindows_cache_mapper): deleted.
6281         (Fset_window_configuration): comparisons should now be with
6282         EQ. Preserve the subwindow instance cache across configuration
6283         changes.
6284         (allocate_window): ditto.
6285         (make_dummy_parent): ditto.
6286
6287         * glyphs.c (free_frame_subwindow_instances): rename from
6288         free_frame_subwindow_instance_cache. finalize all instances rather
6289         than just those in the display cache.
6290         (finalize_all_subwindow_instances): walk windows unmapping and
6291         finalizing subwindows.
6292         (unmap_subwindow_instance_cache_mapper): moved from
6293         window.c. Allow finalization as well as unmapping.
6294
6295         * gui.c (gui_item_list_find_selected): new function.
6296
6297         * gui.h (gui_item_list_find_selected): declare.
6298
6299         * glyphs-x.c (x_tab_control_redisplay): pick tab
6300         explicitly. Re-code to use gui_item_equal_sans_selected and
6301         gui_item_list_find_selected.
6302
6303         * glyphs-x.h: add lwlib-utils.h
6304
6305         * buffer.c (Frecord_buffer): undo previous change.
6306
6307 2000-08-09  Vin Shelton  <acs@xemacs.org>
6308
6309         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6310         possible.  Create temporary files more securely.  The patch was
6311         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6312         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6313         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6314         for details.
6315
6316 2000-08-07  Ben Wing  <ben@xemacs.org>
6317
6318         * getloadavg.c: remove duplicate (and windows-breaking)
6319         includes of fcntl.h and sys/file.h.
6320
6321         * nt.c: remove duplicate getloadavg() definition.
6322
6323         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6324         encodings.
6325
6326 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6327
6328         * eval.c (function_argcount): If function needs to be autoloaded
6329         actually use the loaded definition.
6330         GCPRO function.
6331
6332 2000-08-05  Ben Wing  <ben@xemacs.org>
6333
6334         * getloadavg.c: add prototype for getloadavg().  remove
6335         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6336         of the code).  remove duplicate header includes.
6337
6338         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6339
6340         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6341         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6342         useful load average.
6343
6344         * alloc.c (reinit_alloc_once_early): removed references to
6345         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6346         the lisp vars are the only things referencing the malloc_sbrk_*
6347         vars, and they were already if 0'd out.  these vars only exist
6348         in the older malloc.c, which is basically unused, and they're
6349         only for informational purposes.
6350
6351         * m\*.h: removed useless VIRT_ADDR_VARIES.
6352
6353         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6354
6355 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6356
6357         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6358         color if the image is a mono pixmap.
6359
6360 2000-07-30  Ben Wing  <ben@xemacs.org>
6361
6362         * Makefile.in.in (release):
6363         Remove stray @.
6364
6365         * buffer.c (directory_is_current_directory):
6366         * dired-msw.c (mswindows_get_files):
6367         * dired.c:
6368         * dired.c (Fdirectory_files):
6369         * dired.c (file_name_completion_stat):
6370         * dired.c (Ffile_attributes):
6371         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6372         preprocessor tricks, to avoid problems on some machines
6373         (e.g. SCO).
6374
6375         * callproc.c (egetenv): GC docs.
6376
6377         * console-msw.h:
6378         * console-msw.h (struct mswindows_dialog_id):
6379         * lrecord.h (lrecord_type):
6380         New object for use with MSW dialogs.
6381
6382         * console.h (struct console_methods):
6383         New enable/disable frame methods, for proper modal dialogs.
6384
6385         * device-msw.c (msprinter_default_printer): Fix to follow
6386         proper Mule conventions.
6387
6388         * device-msw.c:
6389         * device-msw.c (signal_open_printer_error):
6390         * device-msw.c (msprinter_init_device):
6391         * device-msw.c (ensure_not_printing):
6392         * device-msw.c (plist_get_margin):
6393         * device-msw.c (Fmsprinter_select_settings):
6394         * device-msw.c (finalize_devmode):
6395         * device-msw.c (Fmsprinter_settings_despecialize):
6396         * device-msw.c (signal_enum_priner_error):
6397         * extents.c (decode_extent):
6398         * extents.c (decode_map_extents_flags):
6399         * extents.c (decode_extent_at_flag):
6400         * extents.c (Fextent_at):
6401         * extents.c (Fextents_at):
6402         * extents.c (symbol_to_glyph_layout):
6403         [[[[2]]]] Use structured errors.
6404
6405         * dialog-msw.c:
6406         * dialog-msw.c (mswindows_is_dialog_msg):
6407         * dialog-msw.c (mark_mswindows_dialog_id):
6408         * dialog-msw.c (dialog_proc):
6409         * dialog-msw.c (handle_question_dialog_box):
6410         * dialog-msw.c (syms_of_dialog_mswindows):
6411         Define new object to clean up marking; use it as a dialog identifier.
6412         Call new delete-dialog-box-hook.
6413
6414         * dialog-x.c (dbox_selection_callback):
6415         * dialog-x.c (dbox_descriptor_to_widget_value):
6416         * dialog-x.c (x_make_dialog_box_internal):
6417         Call new delete-dialog-box-hook.
6418         Return an id.
6419
6420         * dialog.c:
6421         * dialog.c (syms_of_dialog):
6422         * dialog.c (vars_of_dialog):
6423         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6424
6425         * eval.c:
6426         * eval.c (signal_call_debugger):
6427         when noninteractive, output stack traces on the console instead
6428         of in a (never-seen) buffer.
6429
6430         * eval.c (signal_type_error):
6431         * eval.c (invalid_argument_2):
6432         * lisp.h:
6433         new funs for use w/structured errors.
6434
6435         * event-Xt.c:
6436         * event-Xt.c (x_to_emacs_keysym):
6437         * event-Xt.c (describe_event):
6438         * event-Xt.c (emacs_Xt_event_handler):
6439         * event-Xt.c (vars_of_event_Xt):
6440         * event-msw.c:
6441         * event-msw.c (mswindows_wnd_proc):
6442         * event-msw.c (vars_of_event_mswindows):
6443         rename {x,mswindows}-debug-events to debug-{}-events for
6444         consistency with other debug-foo variables.
6445
6446         * event-stream.c:
6447         document next-event more clearly.
6448
6449         * fileio.c (Ffile_name_directory):
6450         * fileio.c (Ffile_name_nondirectory):
6451         * fileio.c (Funhandled_file_name_directory):
6452         * fileio.c (file_name_as_directory):
6453         * fileio.c (Ffile_name_as_directory):
6454         * fileio.c (directory_file_name):
6455         * fileio.c (Fdirectory_file_name):
6456         * fileio.c (Fmake_temp_name):
6457         * fileio.c (Ffile_truename):
6458         * fileio.c (Fsubstitute_in_file_name):
6459         * fileio.c (expand_and_dir_to_file):
6460         * fileio.c (barf_or_query_if_file_exists):
6461         * fileio.c (check_executable):
6462         * fileio.c (Ffile_exists_p):
6463         * fileio.c (Ffile_writable_p):
6464         * fileio.c (Ffile_directory_p):
6465         * fileio.c (Ffile_regular_p):
6466         * fileio.c (Ffile_modes):
6467         * fileio.c (Ffile_newer_than_file_p):
6468         * fileio.c (Fverify_visited_file_modtime):
6469         * fileio.c (Fset_visited_file_modtime):
6470         * fileio.c (auto_save_1):
6471         (1). (2).
6472         fix up gcpro's.
6473
6474         * frame-msw.c:
6475         * frame-msw.c (mswindows_init_frame_1):
6476         * frame-msw.c (mswindows_enable_frame):
6477         * frame-msw.c (error_frame_unsizable):
6478         * frame-msw.c (msprinter_init_frame_1):
6479         * frame-msw.c (msprinter_init_frame_3):
6480         * frame-msw.c (console_type_create_frame_mswindows):
6481         (2).
6482         implement new enable/disable frame methods.
6483
6484         * frame-x.c:
6485         * frame-x.c (x_enable_frame):
6486         * frame-x.c (console_type_create_frame_x):
6487         implement new enable/disable frame methods.
6488
6489         * frame.c:
6490         * frame.c (Fdisable_frame):
6491         * frame.c (syms_of_frame):
6492         * frame.h (struct frame):
6493         implement new enable/disable frame methods/functions.
6494
6495         * general-slots.h:
6496         add initial-focus.
6497
6498         * glyphs-msw.c (mswindows_widget_instantiate):
6499         comment that initial-focus should be implemented.
6500
6501         * glyphs-widget.c:
6502         * glyphs-widget.c (check_valid_instantiator):
6503         * glyphs-widget.c (check_valid_orientation):
6504         * glyphs-widget.c (check_valid_tab_orientation):
6505         * glyphs-widget.c (check_valid_justification):
6506         * glyphs-widget.c (check_valid_border):
6507         * glyphs-widget.c (check_valid_callback):
6508         * glyphs-widget.c (check_valid_int_or_function):
6509         * glyphs-widget.c (check_valid_string_or_vector):
6510         * glyphs-widget.c (check_valid_item_list_1):
6511         * glyphs-widget.c (widget_validate):
6512         * glyphs-widget.c (combo_box_validate):
6513         * glyphs-widget.c (widget_instantiate):
6514         * glyphs-widget.c (syms_of_glyphs_widget):
6515         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6516         * glyphs-widget.c (image_instantiator_combo_box):
6517         * glyphs-widget.c (image_instantiator_scrollbar):
6518         * glyphs-widget.c (image_instantiator_tab_control):
6519         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6520         (2).
6521         support (unimplemented) keyword initial-focus.
6522         reindent long macros.
6523
6524         * glyphs-x.c (x_redisplay_widget):
6525         * glyphs-x.c (x_button_instantiate):
6526         * glyphs-x.c (x_button_redisplay):
6527         * glyphs-x.c (x_progress_gauge_instantiate):
6528         * glyphs-x.c (x_edit_field_instantiate):
6529         * glyphs-x.c (x_combo_box_instantiate):
6530         * glyphs-x.c (x_tab_control_instantiate):
6531         * glyphs-x.c (x_label_instantiate):
6532         * gui-x.c:
6533         * gui-x.c (button_item_to_widget_value):
6534         * gui-x.c (gui_items_to_widget_values_1):
6535         * gui-x.c (gui_item_children_to_widget_values):
6536         * gui-x.c (gui_items_to_widget_values):
6537         * gui-x.h:
6538         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6539         add new flag to gui-parsing routines to indicate whether
6540         accelerator specs should be supported.
6541
6542         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6543
6544         * glyphs.h (struct Lisp_Image_Instance):
6545         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6546         add initial-focus flag.
6547
6548         * gui.c:
6549         * gui.c (syms_of_gui):
6550         * gui.c (vars_of_gui):
6551         clean up menu-no-selection-hook.
6552
6553         * gui.h:
6554         support delete-dialog-box-hook.
6555
6556         * lread.c (Fload_internal):
6557         * lread.c (locate_file_in_directory_mapper):
6558         (1).
6559
6560         * lrecord.h:
6561         * lrecord.h (struct toolbar_button):
6562         * lrecord.h (syms_of_toolbar):
6563         document how to create a new object.
6564
6565         * menubar-msw.c (mswindows_char_is_accelerator):
6566         may be called on frames w/o menus.
6567
6568         * menubar.c (vars_of_menubar):
6569         clean up :filter docs.
6570
6571         * nt.c (readdir):
6572         * ntproc.c:
6573         (1).
6574
6575         * process-nt.c:
6576         * process-nt.c (validate_signal_number):
6577         * process-nt.c (signal_cannot_launch):
6578         * process-nt.c (nt_create_process):
6579         * process-nt.c (nt_send_process):
6580         * process-nt.c (nt_kill_child_process):
6581         * process-nt.c (nt_open_network_stream):
6582         * process-nt.c (syms_of_process_nt):
6583         (2).
6584         delete quote-handling.  call new lisp code that does it better.
6585
6586         * process-unix.c (connect_to_file_descriptor):
6587         * process-unix.c (allocate_pty):
6588         * process-unix.c (unix_send_process):
6589         * process-unix.c (unix_kill_child_process):
6590         * process-unix.c (unix_open_network_stream):
6591         * process-unix.c (unix_open_multicast_group):
6592         (1). (2).
6593
6594         * process.c:
6595         * process.c (Fstart_process_internal):
6596         (2).  need to canonicalize process path even if absolute.
6597
6598         * select-msw.c (symbol_to_ms_cf):
6599         * select-msw.c (ms_cf_to_symbol):
6600         * select-msw.c (cf_is_autofreed):
6601         * select-msw.c (mswindows_destroy_selection):
6602         * select.c:
6603         * select.c (syms_of_select):
6604         * select.h:
6605         support dibv5, fix bugs. (from Mike Alexander)
6606
6607         * select.c (Fget_selection_internal):
6608         * select.c (select_convert_out):
6609
6610         * sysdep.c:
6611         * sysdep.c (xemacs_stat):
6612         renamed.
6613
6614         * sysdep.c (mkdir):
6615         * sysdep.c (rmdir):
6616         but keep original stat() here because we provide encapsulation
6617         around these funs.
6618
6619         * sysfile.h:
6620         * sysfile.h (fstat):
6621         remove stat garbage.
6622
6623         * syswindows.h:
6624         fix X/MSW conflict.
6625         don't include tchar.h.  it's inappropriate because it makes
6626         compile-time distinctions when we want runtime distinctions.
6627         (we provide our own tchar replacements)
6628
6629         * toolbar.c:
6630         use default object printer for toolbar-button.
6631
6632         * unexcw.c:
6633         make sure we don't encapsulate.
6634
6635         * window.c (vars_of_window):
6636         emphasize that temp-buffer-show-hook is obsolete.
6637
6638 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6639
6640         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6641         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6642
6643         * events.c (Fevent_timestamp_lessp):
6644         Not 64-bit clean.  Use EMACS_INT, not int.
6645
6646 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6647
6648         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6649         unsigned int and changed the last enum to
6650         lrecord_type_last_built_in_type.
6651         (lrecord_implementations_table): changed prototype to know how
6652         long the array is supposed to be.
6653         (lrecord_type_count): new unsigned int to keep track of the
6654         current number of lisp lrecord types.
6655         (DEFINE_EXTERNAL_LRECORD):
6656         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6657         dynamic-modules to declare new lisp types. They are the same
6658         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6659         int for each new type, and increment lrecord_type_count by 1.
6660
6661         * alloc.c (lrecord_implementations_table): Changed to reference
6662         lrecord_type_last_built_in_type for the size of the array.
6663         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6664
6665 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6666
6667         * glyphs.h (check_valid_item_list): Renamed from
6668         check_valid_item_list_1.
6669
6670 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6671
6672         * select.c (Qselect_coerce): New.
6673         * select.c (Vselection_coercion_alist): New.
6674         * select.c (syms_of_select): Declare.
6675         * select.c (get-selection-internal): Use it.
6676         Use the new select-coerce functionality.
6677
6678         * select.c (select_coerce): New.
6679         * select.h (select_coerce): Declare.
6680         New function to coerce one type of data into another.
6681
6682 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6683
6684         * callproc.c (Fcall_process_internal):
6685         (Fcall_process_internal):
6686         * process-unix.c (unix_create_process):
6687         Save and restore the value of errno, so that error messages are accurate.
6688
6689 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6690
6691         * elhash.c (print_hash_table):
6692         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6693         Prettify docstrings and indentation.
6694
6695 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6696
6697         * window.c (Fwindow_pixel_edges): Subtract frame border and
6698         gutter size.
6699
6700 2000-07-31  Andy Piper  <andy@xemacs.org>
6701
6702         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6703         will acknowledge the change.
6704
6705         * glyphs.h: declare tab_control_order_only_changed.
6706
6707         * glyphs-x.c (x_tab_control_redisplay): use
6708         tab_control_order_only_changed.
6709
6710         * glyphs-widget.c (tab_control_order_only_changed): new function.
6711
6712         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6713         tab_control_order_only_changed.
6714
6715         * gui.c (gui_item_equal_sans_selected): new function.
6716         (gui_item_equal): use it.
6717
6718         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6719         :properties in favor of :items..
6720
6721         * glyphs-widget.c (check_valid_item_list): rename from
6722         check_valid_item_list_1.
6723         (check_valid_item_list_1): renamed.
6724         (combo_box_validate): deprecate :properties in favor of :items.
6725         (widget_instantiate): ditto.
6726         (tab_control_update): ditto.
6727         (image_instantiator_combo_box): ditto.
6728         (image_instantiator_tree_view): ditto.
6729         (image_instantiator_tab_control): ditto.
6730         (layout_post_instantiate): remove dead code.
6731
6732         * print.c (debug_print_no_newline): only write to debugger if in
6733         WIN32_NATIVE.
6734
6735         * elhash.c (Fmake_hash_table): update doc string.
6736
6737         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6738         messages whilst in GC. This at least stops XEmacs crashing but has
6739         the potential for wierd behaviour.
6740
6741 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6742
6743         * config.h.in:
6744         Make existence of s&m files optional.
6745
6746         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6747         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6748         * s/gnu.h: Remove HAVE_GETLOADAVG.
6749         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6750         * s/sol2.h: Remove HAVE_GETLOADAVG.
6751         * lisp.h: Remove getloadavg() declaration.
6752         * fns.c:
6753         Include <sys/loadavg.h> if available.
6754         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6755         * config.h.in:  Group together getloadavg()-related macros.
6756         Use only configure-time tests to detect getloadavg().
6757
6758 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6759
6760         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6761
6762 2000-07-25  Andy Piper  <andy@xemacs.org>
6763
6764         * syswindows.h: add tchar.h for native builds.
6765
6766         * frame.c (syms_of_frame): remove set-glyph-image.
6767
6768         * general-slots.h: add Qset_glyph_image.
6769
6770         * glyphs-widget.c (layout_update): add domain arg to
6771         set-glyph-image.
6772         (syms_of_glyphs_widget): remove set-glyph-image.
6773
6774 2000-07-23  Ben Wing  <ben@xemacs.org>
6775
6776         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6777         Vpopup_frame_list.
6778
6779 2000-07-22  Andy Piper  <andy@xemacs.org>
6780
6781         * symsinit.h: add syms_of_win32().
6782
6783         * gui-msw.c (syms_of_gui_mswindows): remove
6784         Fmswindows_shell_execute.
6785         (Fmswindows_shell_execute): moved to win32.c.
6786
6787         * emacs.c (main_1): add syms_of_win32 ().
6788
6789         * win32.c (init_potentially_nonexistent_functions): rewrite in
6790         compiler-friendly terms.
6791         (Fmswindows_shell_execute): move here from gui-msw.c.
6792         (syms_of_win32): new.
6793
6794         * device-msw.c (Fmswindows_printer_list): clean up args to
6795         EnumPrinters.
6796         Don't include tchar under cygwin or mingw.
6797         (msprinter_default_printer): make cygwin-friendly.
6798
6799 2000-07-21  Andy Piper  <andy@xemacs.org>
6800
6801         * glyphs-widget.c (image_instantiator_tree_view): use tab
6802         control's update function.
6803         (layout_property): new function. Retrieve items.
6804
6805         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6806         function. Re-populate the tree view from the pending items.
6807
6808         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6809         is designated the parent if the domain is an image instance. This
6810         is needed so that dirtiness can be cascade up the hierarchy and
6811         thus for layout children to be redisplayed correctly.
6812         (allocate_image_instance): rename glyph -> parent.
6813
6814         * redisplay.h: change redisplay_output_layout signature.
6815
6816         * redisplay-msw.c (mswindows_output_display_block): use domain
6817         arg.
6818
6819         * redisplay-x.c (x_output_display_block): use domain arg.
6820
6821 2000-07-10  Andy Piper  <andy@xemacs.org>
6822
6823         * window.c (Fset_window_configuration): add comment.
6824
6825         * redisplay-output.c (compare_runes):
6826         (redisplay_output_subwindow): redisplay rather than update subwindow.
6827         (redisplay_output_layout): ditto.
6828
6829         * redisplay-msw.c (mswindows_frame_output_end):
6830         (mswindows_frame_output_end): make defer window pos optional.
6831
6832         * lisp.h: add Flast.
6833
6834         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6835         normalize method. Change update method to be for changed
6836         instantiators. Add redisplay method. Change signature of layout
6837         method.
6838         (struct Lisp_Image_Instance): add instantiator.
6839         (IMAGE_INSTANCE_INSTANTIATOR): new.
6840         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6841         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6842         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6843
6844         * glyphs.c:
6845         (find_instantiator_differences): new function.
6846         (Fset_instantiator_property): new convenience function.
6847         (check_image_instance_structure): strictly check for vector
6848         instantiators.
6849         (normalize_image_instantiator): make non-static.
6850         (instantiate_image_instantiator): pass on dest_mask and use new
6851         signatures for image_instance_layout and friends.
6852         (mark_image_instance): mark the instantiator. Mark the subwindow
6853         face not the widget face.
6854         (image_instance_equal): add instantiator.
6855         (image_instance_hash): ditto.
6856         (allocate_image_instance): ditto.
6857         (Fset_image_instance_property): removed.
6858         (Fimage_instance_file_name): ditto.
6859         (Fcolorize_image_instance): ditto.
6860         (image_instance_layout): add offsets to be set.
6861         (update_image_instance): new function. update an image instance
6862         from its changed instantiator.
6863         (inherit_normalize): add dest_mask.
6864         (xbm_normalize): ditto.
6865         (xface_normalize): ditto.
6866         (xpm_normalize): ditto.
6867         (text_update): set_property -> update.
6868         (image_instantiate): use the glyph identity as a hash key, not the
6869         instantiator.
6870         (glyph_width): use new image_instance_layout signature.
6871         (glyph_ascent): ditto.
6872         (glyph_descent): ditto.
6873         (glyph_height): ditto.
6874         (glyph_query_geometry): ressurrect.
6875         (glyph_layout): ditto.
6876         (redisplay_subwindow): update -> redisplay.
6877         (syms_of_glyphs): add Fset_instantiator_property.
6878         (image_instantiator_format_create): set_property -> update.
6879
6880         * glyphs-x.c:
6881         (autodetect_normalize): add dest_maks to signature.
6882         (x_redisplay_subwindow): update -> redisplay.
6883         (x_redisplay_widget): ditto.
6884         (x_button_redisplay): ditto.
6885         (x_progress_gauge_redisplay): ditto.
6886         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6887         stacking order.
6888         (console_type_create_glyphs_x): update -> redisplay.
6889         (image_instantiator_format_create_glyphs_x): ditto.
6890
6891         * glyphs-widget.c:
6892         (check_valid_instantiator): disallow glyphs in the instantiator,
6893         they must now be vectors.
6894         (check_valid_instantiator_list): ditto.
6895         (glyph_instantiator_to_glyph): use internal symbol rather than
6896         intern.
6897         (widget_update): renamed from widget_set_property. Call cascaded
6898         update methods.
6899         (redisplay_widget): renamed from update_widget.
6900         (widget_layout): image_instance_layout now takes position as well
6901         as size.
6902         (widget_normalize): ditto.
6903         (widget_instantiate): ditto.
6904         (tab_control_query_geometry) ditto.:
6905         (tab_control_update): renamed from tab_control_set_property.
6906         (progress_gauge_update): set_property -> update.
6907         (layout_normalize): rewrite so that child instantiators are
6908         normalized also.
6909         (layout_update): new function. Create glyphs from the normalized
6910         children and cope with any other layout keywords. We do not
6911         instantiate children here that will be take care of by
6912         redisplay_output_layout.
6913         (layout_instantiate): call layout_update and not much else.
6914         (layout_post_instantiate): not sure whether this is needed
6915         anymore.
6916         (layout_query_geometry): query glyph geometry rather than
6917         image_instance geometry.
6918         (layout_layout): set offsets from pass in parameters. Use glyph
6919         geometry and layout functions rather than image instance ones.
6920         (native_layout_layout): ditto.
6921         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6922         (image_instantiator_widget): set_property -> update.
6923         (image_instantiator_buttons): ditto.
6924         (image_instantiator_progress_guage): ditto.
6925         (image_instantiator_tab_control): ditto.
6926         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6927         (image_instantiator_layout): add update method.
6928
6929         * glyphs-msw.c (bmp_normalize):
6930         (mswindows_resource_normalize): add dest_mask so that it can be
6931         proprogated by layout_normalize.
6932         (begin_defer_window_pos): make optional because it may not be the
6933         right thing to do and it introduces differences with X.
6934         (mswindows_unmap_subwindow): ditto.
6935         (mswindows_map_subwindow): ditto.
6936         (mswindows_redisplay_subwindow): renamed from
6937         mswindows_update_subwindow.
6938         (mswindows_redisplay_widget): ditto.
6939         (mswindows_button_redisplay): renamed from
6940         mswindows_button_update. Update is now what the instantiation
6941         function does for a changed instantiator.
6942         (mswindows_progress_gauge_instantiate): set the progress value
6943         here if appropriate.
6944         (mswindows_tab_control_redisplay): cope with re-ordering of the
6945         members of the tab widget by simply selecting the new top
6946         widget. This makes things appear ok if you click on a tab.
6947         (mswindows_combo_box_instantiate): image_instance_layout now takes
6948         position as well as size.
6949         (mswindows_progress_gauge_redisplay): renamed from
6950         mswindows_progress_gauge_update.
6951         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6952         (image_instantiator_format_create_glyphs_mswindows): ditto.
6953
6954         * glyphs-eimage.c (jpeg_normalize):
6955         (gif_normalize):
6956         (png_normalize):
6957         (tiff_normalize): add dest_mask so that it can be proprogated by
6958         layout_normalize.
6959
6960         * elhash.c:
6961         (print_hash_table):
6962         (hash_table_weakness_validate):
6963         (decode_hash_table_weakness):
6964         (Fhash_table_weakness):
6965         (Fhash_table_type):
6966         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6967
6968         * console.h (struct console_methods): move update_* to
6969         redisplay_*.
6970
6971 2000-07-20  Ben Wing  <ben@xemacs.org>
6972
6973         * *.[ch] (XSETOBJ): remove unused middle argument.
6974         lisp-disunion.h: correct wrap_object() to one argument.
6975
6976 2000-07-15  Ben Wing  <ben@xemacs.org>
6977
6978         * s/cygwin32.h:
6979         * s/cygwin32.h (CYGWIN_CONV_PATH):
6980         Add missing logb prototype for v1.1.
6981         Use post-b20 names and alias to pre-b20 names when pre-b20.
6982
6983         * s/windowsnt.h: [5].
6984
6985 2000-07-15  Ben Wing  <ben@xemacs.org>
6986
6987         * Makefile.in.in (x_objs):
6988         * Makefile.in.in (sheap_objs):
6989         * Makefile.in.in (objs):
6990         added win32.o, cosmetic cleanups.
6991
6992         * alloc.c (Fmake_byte_code):
6993         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6994         etc. macros which declare their own args now.
6995
6996         * alloc.c (syms_of_alloc):
6997         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6998
6999         * buffer.c:
7000         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7001
7002         * buffer.c (Fget_file_buffer):
7003         Fixed GCPRO problem.
7004
7005         * buffer.c (get_truename_buffer):
7006         Fixed comment about GC checking.
7007
7008         * buffer.c (syms_of_buffer):
7009         Undeclared those dedicated frame funs.
7010         [2].
7011
7012         * buffer.h:
7013         Define convenience macros for internal/external conversions.
7014         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7015         and Qenvironment_variable_encoding for cleaner code.
7016
7017         * bufslots.h:
7018         Remove dedicated-frame; in lisp.
7019
7020         * bytecode.c (funcall_compiled_function):
7021         [1].
7022
7023         * bytecode.c (syms_of_bytecode):
7024         [2].
7025
7026         * console-msw.c:
7027         * console-msw.c (mswindows_show_console): Rewrote.
7028
7029         * console-msw.c (Fmswindows_debugging_output): New.
7030         Sends to OutputDebugString (special MSWin debugger interface).
7031
7032         * console-msw.c (Fmswindows_message_box):
7033         Fixed stupid bugs so it works when called from kill-emacs.
7034
7035         * console-msw.c (syms_of_console_mswindows):
7036         Declare Fmswindows_debugging_output.
7037
7038         * console-msw.h:
7039         New MSWin prototypes.
7040
7041         * console-msw.h (struct mswindows_frame):
7042         New entry last-click-mods for improved button-modifier support.
7043
7044         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7045         New struct entry `popup' with corresponding accessor.
7046
7047         * console-x.c:
7048         * console-x.c (split_up_display_spec):
7049         * console-x.c (get_display_arg_connection):
7050         * console-x.c (x_semi_canonicalize_console_connection):
7051         * console-x.c (x_canonicalize_device_connection):
7052         [[[6]]]: Change char to more specific type.
7053         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7054
7055         * console-x.c (x_semi_canonicalize_console_connection):
7056         * console-x.c (x_canonicalize_device_connection):
7057         [[[9]]]: Fix up error signalling to use new structured error system.
7058
7059         * console-x.h:
7060         [[[4]]]: Define codesys aliases:
7061         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7062         Qx_color_name_encoding, Qx_display_name_encoding.
7063
7064         * console.h (struct console_methods):
7065         New method make_dialog_box_internal supersedes older
7066         popup_dialog_box method.
7067
7068         * data.c:
7069         Define many new errors, part of new structured errors.
7070
7071         * data.c (init_errors_once_early):
7072         * data.c (syms_of_data):
7073         [2].
7074
7075         * device-msw.c (mswindows_init_device):
7076         [[[5]]]: Cleanup to support NT 3.51.
7077
7078         * device-msw.c (decode_devmode): Cleanup.
7079
7080         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7081         * device-msw.c (mswindows_handle_print_dialog_box):
7082         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7083         * device-msw.c (syms_of_device_mswindows):
7084         Delete the dialog box primitives recently introduced by Kirill and
7085         instead interface to general dialog box interface.
7086
7087         * device-x.c:
7088         * device-x.c (compute_x_app_name):
7089         * device-x.c (x_init_device):
7090         * device-x.c (Fx_valid_keysym_name_p):
7091         * device-x.c (Fx_set_font_path):
7092         [6].
7093         [7].
7094
7095         * device.h (wrap_device): New.
7096         First of its kind; meant to replace XSETDEVICE.
7097
7098         * dialog-msw.c: Many file-dialog symbols.
7099
7100         * dialog-msw.c (mswindows_register_popup_frame): New.
7101         * dialog-msw.c (mswindows_is_dialog_msg): New.
7102         For supporting kbd traversal in dialog boxes.
7103
7104         * dialog-msw.c (dialog_proc):
7105         Support hitting ESC in dialogs.
7106
7107         * dialog-msw.c (struct):
7108         Common dialog box errors.
7109
7110         * dialog-msw.c (handle_file_dialog_box): New.
7111         Add file dialog code.
7112
7113         * dialog-msw.c (handle_question_dialog_box):
7114         Redo existing code to support new question dialog syntax.
7115
7116         * dialog-msw.c (console_type_create_dialog_mswindows):
7117         We support new dialog console method.
7118
7119         * dialog-msw.c (syms_of_dialog_mswindows):
7120         * dialog-msw.c (vars_of_dialog_mswindows):
7121         New file dialog symbols, vars.
7122
7123         * dialog-x.c:
7124         * dialog-x.c (maybe_run_dbox_text_callback):
7125         * dialog-x.c (dbox_descriptor_to_widget_value):
7126         * dialog-x.c (x_make_dialog_box_internal):
7127         * dialog-x.c (console_type_create_dialog_x):
7128         Mule-ize entire file.
7129         Redo to support question dialog syntax.
7130         [6].
7131
7132         * dialog.c:
7133         * dialog.c (Fmake_dialog_box_internal):
7134         * dialog.c (syms_of_dialog):
7135         Kill old popup-dialog-box, replace with new primitive.
7136         Just call device method or signal error.
7137
7138         * eldap.c (Fldap_open):
7139         * eldap.c (Fldap_search_basic):
7140         * eldap.c (Fldap_add):
7141         * eldap.c (Fldap_modify):
7142         [1].
7143         [7].
7144
7145         * emacs.c:
7146         * emacs.c (make_arg_list_1):
7147         * emacs.c (make_arg_list):
7148         Mule-ize call to dll_init().
7149         [6].
7150         [8].
7151
7152         * emacs.c (make_argc_argv):
7153         * emacs.c (free_argc_argv):
7154         * emacs.c (init_cmdargs):
7155         * emacs.c (main_1):
7156         * emacs.c (Fkill_emacs):
7157         * emacs.c (Fdump_emacs):
7158         Update comments about what can be used in syms_* etc.
7159         Call init_win32() when necessary.
7160         Fix up MS Win dialog box in kill-buffer to actually work right.
7161         [7].
7162
7163         * eval.c:
7164         * eval.c (For):
7165         * eval.c (Fand):
7166         * eval.c (Fprogn):
7167         * eval.c (Fprog1):
7168         * eval.c (Fprog2):
7169         * eval.c (FletX):
7170         * eval.c (Flet):
7171         * eval.c (condition_case_3):
7172         * eval.c (Feval):
7173         * eval.c (function_argcount):
7174         * eval.c (funcall_lambda):
7175         [1].
7176
7177         * eval.c (type_error): New.
7178         * eval.c (maybe_type_error): New.
7179         * eval.c (continuable_type_error): New.
7180         * eval.c (maybe_continuable_type_error): New.
7181         * eval.c (type_error_with_frob): New.
7182         * eval.c (maybe_type_error_with_frob): New.
7183         * eval.c (continuable_type_error_with_frob): New.
7184         * eval.c (maybe_continuable_type_error_with_frob): New.
7185         New functions for use with structured errors.
7186
7187         * event-Xt.c:
7188         * event-Xt.c (x_event_to_emacs_event):
7189         Buttons are now modifiers too.
7190
7191         * event-Xt.c (emacs_Xt_current_event_timestamp):
7192         Implement new event method.
7193         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7194
7195         * event-msw.c:
7196         * event-msw.c (ntpipe_shove_writer): [5].
7197         * event-msw.c (mswindows_enqueue_mouse_button_event):
7198         * event-msw.c (mswindows_drain_windows_queue):
7199         * event-msw.c (mswindows_wnd_proc): [7].
7200         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7201         * event-msw.c (mswindows_modifier_state):
7202         Throughout: support new button modifiers.
7203
7204         * event-msw.c (emacs_mswindows_current_event_timestamp):
7205         Implement new event method.
7206         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7207
7208         * event-stream.c:
7209         * event-stream.c (event_stream_current_event_timestamp): New.
7210         * event-stream.c (maybe_kbd_translate): New functionality.
7211         * event-stream.c (vars_of_event_stream):
7212         Document new kbd-translate-table functionality.
7213
7214         * event-stream.c (Fcurrent_event_timestamp): New.
7215         New primitive for use in fabricated events.
7216         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7217
7218         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7219
7220         * events.c:
7221         * events.c (Fmake_event):
7222         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7223         [1].
7224         [9].
7225
7226         * events.c (format_event_object): fix gcc warnings.
7227
7228         * events.c (Fevent_timestamp): Document new primitives.
7229
7230         * events.c (TIMESTAMP_HALFSPACE): New.
7231
7232         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7233         comparing timestamps correctly (half-space algorithm).
7234
7235         * events.c (Fevent_modifier_bits): Doc fix.
7236
7237         * events.c (Fevent_modifiers): Major doc addition.
7238         * events.c (event_x_y_pixel_internal): Typo fix.
7239         * events.c (syms_of_events): Declare new primitives.
7240
7241         * events.h:
7242         Update long comment for button modifiers, timestamps.
7243
7244         * events.h (struct event_stream):
7245         New current_event_timestamp method.
7246
7247         * extents.c:
7248         * extents.c (extent_in_region_p):
7249         * extents.c (decode_extent):
7250         * extents.c (Fset_extent_parent):
7251         * extents.c (decode_map_extents_flags):
7252         Fix gcc warnings.
7253         [9].
7254
7255         * extents.c (struct extent_at_arg):
7256         * extents.c (decode_extent_at_flag):
7257         * extents.c (extent_at_mapper):
7258         * extents.c (extent_at_bytind):
7259         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7260         * extents.c (Fextents_at): New primitive. [9].
7261         * extents.c (symbol_to_glyph_layout): [9].
7262         Support new primitive `extents-at'.
7263
7264
7265         * extents.c (get_text_property_bytind):
7266         extent_at_bytind has another arg.
7267         [9].
7268
7269         * extents.c (syms_of_extents): New primitive.
7270
7271         * file-coding.c (Fmake_coding_system): [1].
7272         * file-coding.c (subsidiary_coding_system): fix gcc warning
7273         * file-coding.c (syms_of_file_coding): [2].
7274
7275         * fileio.c (Fexpand_file_name):
7276         * fileio.c (Fsysnetunam):
7277         * fileio.c (Ffile_exists_p):
7278         * fileio.c (Ffile_executable_p):
7279         * fileio.c (Fverify_visited_file_modtime):
7280         Clean up GCPROing.
7281
7282         * fileio.c (syms_of_fileio): [2].
7283
7284         * filelock.c (lock_file_1):
7285         * filelock.c (current_lock_owner):
7286         * filelock.c (lock_if_free):
7287         * filelock.c (lock_file):
7288         * filelock.c (unlock_file):
7289         Clean up GCPROing.
7290
7291         * fns.c (concat): Fix gcc warning.
7292
7293         * fns.c (Fmember):
7294         * fns.c (Fold_member):
7295         * fns.c (Fmemq):
7296         * fns.c (Fold_memq):
7297         * fns.c (memq_no_quit):
7298         * fns.c (Fassoc):
7299         * fns.c (Fold_assoc):
7300         * fns.c (Fassq):
7301         * fns.c (Fold_assq):
7302         * fns.c (assq_no_quit):
7303         * fns.c (Frassoc):
7304         * fns.c (Fold_rassoc):
7305         * fns.c (Frassq):
7306         * fns.c (Fold_rassq):
7307         * fns.c (rassq_no_quit):
7308         * fns.c (Fdelete):
7309         * fns.c (Fold_delete):
7310         * fns.c (Fdelq):
7311         * fns.c (Fold_delq):
7312         * fns.c (delq_no_quit):
7313         * fns.c (Fremassoc):
7314         * fns.c (Fremassq):
7315         * fns.c (remassq_no_quit):
7316         * fns.c (Fremrassoc):
7317         * fns.c (Fremrassq):
7318         * fns.c (remrassq_no_quit):
7319         * fns.c (Freverse):
7320         * fns.c (mapcar1):
7321         [1].
7322
7323         * frame-msw.c (mswindows_init_frame_1):
7324         * frame-msw.c (mswindows_delete_frame):
7325         Register popups with dialog code so keyboard traversing works.
7326
7327         * frame-tty.c (tty_raise_frame_no_select): [1].
7328
7329         * frame-x.c:
7330         * frame-x.c (x_set_frame_text_value):
7331         * frame-x.c (x_set_frame_properties):
7332         * frame-x.c (x_create_widgets):
7333         [7].
7334
7335         * frame.c:
7336         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7337
7338         * frame.h (wrap_frame): New.
7339         Macro like wrap_device.
7340
7341         * general.c:
7342         * general.c (SYMBOL):
7343         * general.c (syms_of_general):
7344         Major reorg.  This is now just a wrapper and symbols themselves
7345         are listed in general-slots.h.
7346
7347         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7348         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7349
7350         * glyphs-msw.c (mswindows_native_layout_instantiate):
7351         Add DS_CONTROL so keyboard traversal will work.
7352
7353         * glyphs-widget.c:
7354         * glyphs-widget.c (syms_of_glyphs_widget):
7355         Move some symbols to general-slots.h.
7356
7357         * glyphs-x.c:
7358         * glyphs-x.c (xbm_instantiate_1):
7359         * glyphs-x.c (x_xbm_instantiate):
7360         * glyphs-x.c (x_xface_instantiate):
7361         * glyphs-x.c (autodetect_instantiate):
7362         * glyphs-x.c (cursor_font_instantiate):
7363         * glyphs-x.c (x_update_widget):
7364         * glyphs-x.c (x_widget_instantiate):
7365         * glyphs.c (bitmap_to_lisp_data):
7366         * glyphs.c (pixmap_to_lisp_data):
7367         [7].
7368
7369         * glyphs.c (syms_of_glyphs):
7370         [2].
7371
7372         * gui-x.c:
7373         * gui-x.c (print_widget_value):
7374         * gui-x.c (menu_separator_style_and_to_external):
7375         * gui-x.c (add_accel_and_to_external):
7376         * gui-x.c (button_item_to_widget_value):
7377         * gui-x.c (gui_items_to_widget_values_1):
7378         * gui-x.c (gui_items_to_widget_values):
7379         * gui-x.c (syms_of_gui_x):
7380         * gui-x.c (vars_of_gui_x):
7381         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7382         [9].
7383
7384         * gui-x.h:
7385         Muleize, prototype changes matching gui-x.c.
7386
7387         * gui.c:
7388         * gui.c (separator_string_p):
7389         * gui.c (gui_item_add_keyval_pair):
7390         * gui.c (make_gui_item_from_keywords_internal):
7391         * gui.c (signal_too_long_error):
7392         * gui.c (parse_gui_item_tree_item):
7393         * gui.c (syms_of_gui):
7394         * gui.c (vars_of_gui):
7395         * gui.h:
7396         menu-no-selection-hook moved here (used by MSWin).
7397         Move some symbols to general-slots.h.
7398         [6].
7399         [9].
7400
7401         * insdel.c (get_buffer_pos_char):
7402         * insdel.c (get_buffer_range_char):
7403         Add GC comments.
7404
7405         * keymap.c (keymap_lookup_directly):
7406         * keymap.c (keymap_store):
7407         * keymap.c (ensure_meta_prefix_char_keymapp):
7408         * keymap.c (describe_map):
7409         * keymap.h:
7410         Support new button modifiers.
7411
7412         * lisp-disunion.h (wrap_object):
7413         * lisp-disunion.h (XSETOBJ):
7414         Rename make_obj to wrap_object.
7415
7416         * lisp-union.h:
7417         * lisp-union.h (make_int):
7418         * lisp-union.h (make_char):
7419         Support wrap_object.
7420
7421         * lisp.h:
7422         * lisp.h (LIST_LOOP):
7423         * lisp.h (EXTERNAL_LIST_LOOP):
7424         * lisp.h (LIST_LOOP_2):
7425         * lisp.h (EXTERNAL_LIST_LOOP_1):
7426         * lisp.h (EXTERNAL_LIST_LOOP_2):
7427         * lisp.h (EXTERNAL_LIST_LOOP_3):
7428         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7429         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7430         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7431         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7432         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7433         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7434         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7435         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7436         * lisp.h (struct Lisp_Symbol):
7437         * lisp.h (maybe_continuable_error_with_frob):
7438         Fix up section comments.
7439         Add new types for char to indicate usage.
7440         Delete symbols auto-generated from general-slots.h.
7441         Add prototypes for structured error functions.
7442         Add long comments describing looping macros and change interface
7443         so that lvalues are automatically declared.
7444         Add NO_DECLARE macro in case callers want to declare lvalues
7445         themselves.
7446
7447         * lread.c (read_syntax_error):
7448         * lread.c (continuable_read_syntax_error):
7449         * lread.c (read_structure):
7450         * lread.c (sequence_reader):
7451         * lread.c (read_list_conser):
7452         * lread.c (read_compiled_function):
7453         Rename syntax_error and continuable_syntax_error to avoid clash
7454         with same-named structured error functions.
7455
7456         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7457         * menubar-msw.c (populate_menu_add_item):
7458         * menubar-msw.c (populate_or_checksum_helper):
7459         [5].
7460         [9].
7461
7462         * menubar-x.c:
7463         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7464         Mule-ize whole file.
7465
7466         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7467
7468         * mule-charset.c (Fmake_charset):
7469         * mule-wnnfns.c (Fwnn_set_param):
7470         [1].
7471
7472         * ntproc.c (create_child):
7473         * ntproc.c (Fwin32_set_current_locale):
7474         Add comments portending doom.
7475
7476         * objects-msw.c:
7477         * objects-msw.c (old_font_enum_callback_2):
7478         * objects-msw.c (font_enum_callback_1):
7479         * objects-msw.c (mswindows_enumerate_fonts):
7480         [5].
7481
7482         * objects-x.c:
7483         * objects-x.c (allocate_nearest_color):
7484         * objects-x.c (x_parse_nearest_color):
7485         * objects-x.c (x_initialize_color_instance):
7486         * objects-x.c (x_print_color_instance):
7487         * objects-x.c (x_finalize_color_instance):
7488         * objects-x.c (x_valid_color_name_p):
7489         * objects-x.c (x_initialize_font_instance):
7490         * objects-x.c (x_print_font_instance):
7491         * objects-x.c (valid_x_font_name_p):
7492         * objects-x.c (truename_via_FONT_prop):
7493         * objects-x.c (truename_via_random_props):
7494         * objects-x.c (truename_via_XListFonts):
7495         * objects-x.c (x_font_truename):
7496         * objects-x.c (x_font_instance_truename):
7497         * objects-x.c (x_font_instance_properties):
7498         * objects-x.c (x_list_fonts):
7499         * objects-x.c (x_find_charset_font):
7500         Mule-ize entire file.
7501         [7].
7502
7503         * objects-x.h:
7504         Mule-verify.
7505
7506         * print.c:
7507         * print.c (std_handle_out_external):
7508         * print.c (debug_print_no_newline):
7509         * print.c (syms_of_print):
7510         Output to all debugger kinds in debug-print.
7511         Fix console-output code under MSWin to actually work.
7512
7513         * process-nt.c (send_signal):
7514         * process-nt.c (nt_create_process):
7515         Use newer Unicode macros.
7516
7517         * process-unix.c (unix_create_process):
7518         * process-unix.c (unix_canonicalize_host_name):
7519         * process-unix.c (unix_open_network_stream):
7520         [7].
7521
7522         * scrollbar-x.c:
7523         Mule-verify.
7524
7525         * search.c (syms_of_search):
7526         [2].
7527
7528         * select-msw.c (mswindows_destroy_selection):
7529         Use LIST_LOOP_2.
7530
7531         * select-x.c (symbol_to_x_atom):
7532         [7].
7533
7534         * select.c (syms_of_select):
7535         [2].
7536
7537         * sound.c (Fplay_sound_file):
7538         [7].
7539
7540         * specifier.c:
7541         * specifier.c (decode_specifier_type):
7542         * specifier.c (Fvalid_specifier_locale_type_p):
7543         * specifier.c (check_valid_locale_or_locale_type):
7544         * specifier.c (decode_locale):
7545         * specifier.c (decode_locale_type):
7546         * specifier.c (decode_locale_list):
7547         * specifier.c (check_valid_domain):
7548         * specifier.c (decode_specifier_tag_set):
7549         * specifier.c (Fcanonicalize_tag_set):
7550         * specifier.c (Fdefine_specifier_tag):
7551         * specifier.c (Fspecifier_tag_predicate):
7552         * specifier.c (check_valid_inst_list):
7553         * specifier.c (check_valid_spec_list):
7554         * specifier.c (decode_how_to_add_specification):
7555         * specifier.c (check_modifiable_specifier):
7556         * specifier.c (specifier_add_spec):
7557         * specifier.c (boolean_validate):
7558         * specifier.c (display_table_validate):
7559         [9].
7560
7561         * specifier.c (syms_of_specifier):
7562         Move some symbols to general-slots.h.
7563         [2].
7564
7565         * symbols.c:
7566         * symbols.c (Fmapatoms):
7567         * symbols.c (Fapropos_internal):
7568         Add GCPROs.
7569
7570         * symbols.c (set_default_buffer_slot_variable):
7571         * symbols.c (set_default_console_slot_variable):
7572         [1].
7573
7574         * symbols.c (defsymbol_massage_name_1):
7575         * symbols.c (defkeyword_massage_name):
7576         * symbols.c (deferror_1):
7577         * symbols.c (deferror):
7578         * symbols.c (deferror_massage_name_and_message):
7579         * symeval.h:
7580         * symeval.h (DEFSYMBOL):
7581         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7582
7583         * symbols.c (syms_of_symbols):
7584         [2].
7585
7586         * symsinit.h:
7587         * symsinit.h (init_win32): New.
7588         Also new is syms_of_dialog_mswindows.
7589
7590         * syswindows.h:
7591         Add new Unicode macros, missing Cygwin wide-char functions,
7592         convenience conversion macros for Qmswindows_tstr, macros for
7593         encapsulating required MSWin <-> Cygwin filename conversions,
7594         prototype for dynamically-extracted (not in NT 3.51) functions.
7595
7596         * toolbar-x.c:
7597         Mule-verify.
7598
7599         * tooltalk.c (Fadd_tooltalk_message_arg):
7600         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7601         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7602         [7].
7603
7604         * tooltalk.c (syms_of_tooltalk):
7605         [2].
7606
7607         * unexnt.c:
7608         * unexnt.c (unexec):
7609         Fix up headers, declaration of unexec() to be more standard.
7610
7611 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7612
7613         * offix.h: Revert change to guard macros - they're used in offix.c!
7614
7615 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7616
7617         * lisp.h: Defsubred Fdelete.
7618
7619         * console-msw.h:  (msprinter_default_printer): Added.
7620
7621         * console-msw.c (msprinter_canonicalize_console_connection):
7622         (msprinter_canonicalize_device_connection): Added.
7623
7624         * device-msw.c (msprinter_default_printer):
7625         (Fmswingows_get_default_printer):
7626         (signal_enum_priner_error):
7627         (Fmswingows_printer_list): Added.
7628
7629 2000-07-19  Martin Buchholz <martin@xemacs.org>
7630
7631         * XEmacs 21.2.35 is released.
7632
7633 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7634
7635         * select-x.c (x_handle_selection_request):
7636         Text selected in xemacs and pasted into xterm failed to appear.
7637         Spelling fixes and cosmetic changes.
7638
7639 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7640
7641         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7642         XEmacs frame (fix for doubling chars in dialog boxes).
7643
7644 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7645
7646         * select.c (select_convert_in, select_convert_out):
7647         Don't call intern() every time.
7648
7649         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7650         * select.c (vars_of_select): Initialise them.
7651
7652 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7653
7654         * select.c (selection-coercible-types): New.
7655
7656         * select.c (own-selection-internal):
7657         * select.c (get-selection-internal):
7658         MULE bug fix - these should default to COMPOUND_TEXT and not
7659         STRING for MULE. I think.
7660
7661         * select.c (select_convert_out): Use selection-coercible-types
7662         to find types that we can attempt to perform coercions on.
7663
7664 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7665
7666         * mule-wnnfns.c:
7667         * mule-canna.c:
7668         Add coding: cookie to identify encoding.
7669
7670         * mule-canna.c (CANNA_mode_keys): make static.
7671         Use proper prototypes, even for functions of no arguments.
7672         Remove external prototype for Fding().
7673
7674         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7675
7676         * select.c (syms_of_select): Add missing DEFSUBR.
7677
7678 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7679
7680         * select.c (get_selection_internal, own_selection_internal):
7681         Make the type default to STRING, rather than placing a nil type
7682         into Vselection_alist.
7683
7684 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7685
7686         * gpmevent.c (tty_selection_exists_p):
7687         * gpmevent.c (tty_own_selection):
7688         Updated parameter lists.
7689
7690 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7691
7692         * select.h (selection-alist): Removed declaration.
7693
7694         * select.h (get_local_selection):
7695         * select.c (get_local_selection):
7696         Made static.
7697
7698         * select.h (convert_selection): Removed declaration.
7699         * select.c (convert_selection): Removed.
7700         This function belongs in Lisp.
7701
7702         * select.h (select_convert_in): Declare.
7703         * select.h (select_convert_out): Declare.
7704         * select.c (select_convert_in): New.
7705         * select.c (select_convert_out): New.
7706         New conversion functions for other files to call.
7707
7708         * select.h (select_notify_buffer_kill): Declare.
7709         * select.c (select_notify_buffer_kill): New.
7710         New functions that get called from kill-buffer.
7711
7712         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7713         X-specific lisp code.
7714
7715         * select.h: Declare some of the lisp-visible functions for
7716         external use.
7717
7718         * select.c (clean_local_selection_data): Removed. This was
7719         a disgusting function, and previously should have been in
7720         select-x.c in any case. The functionality is now provided
7721         in select-convert-from-integer (select.el).
7722
7723         * select.c (available-selection-types): Fixed stupidity where
7724         INTEGER and ATOM got added twice. Also add STRING when we see an
7725         extent.
7726
7727         * select.c (get-selection-internal): Removed symbol stripping. No
7728         longer causes conversion when data comes from the internal cache.
7729
7730         * select.c (syms_of_select): Added new functions.
7731
7732         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7733         error checking - previously this called abort!
7734
7735         * select-x.c (x_own_selection): Changed comment.
7736
7737         * select-x.c (x_handle_selection_request): Use select_convert_out.
7738         Don't mess with selection-alist; it's an internal variable of select.c.
7739
7740         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7741
7742         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7743         rather than messing with selection-alist.
7744
7745         * select-msw.c (mswindows_get_foreign_selection):
7746         Use TO_INTERNAL_FORMAT rather than hacking.
7747
7748 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7749
7750         * process-unix.c (unix_open_multicast_group):
7751         (unix_open_multicast_group): Remove useless casts.
7752
7753 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7754
7755         * sound.c (Fplay_sound): Fix `unused variable' warning.
7756
7757         * emacs.c (main): Use correct type for _environ on SCO5.
7758
7759 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7760
7761         * console.h (own_selection_method):
7762         * console.h (selection_exists_p_method):
7763         * console.h (available_selection_types_method): New.
7764         * console.h (register_selection_data_type_method): New.
7765         * console.h (selection_data_type_name): New.
7766
7767         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7768         function & alist to track GlobalAlloc()'d handles that need
7769         releasing when the clipboard data gets replaced or emptied.
7770
7771         * event-msw.c (mswindows_wnd_proc): Call it.
7772
7773         * lisp.h, general.c (Qappend): New symbol representing a
7774         `how-to-add' mode.
7775
7776         * select.c (own-selection-internal):
7777         * select.c (selection-exists-p):
7778         * select.c (available-selection-types): New.
7779         * select.c (register-selection-data-type): New.
7780         * select.c (selection-data-type-name): New.  New functions to deal
7781         with device-specific selection data formats.
7782         * select.c (selection-converter-out-alist): Renamed.
7783         * select.c (selection-converter-in-alist): New.
7784         * select.c (selection-appender-alist): New.  Added new alists.
7785         * select.c (syms_of_select, vars_of_select): Added new symbols &
7786         variables.
7787         * select.c (get_local_selection): Split.
7788         * select.c: Removed spurious type checking - selections may now be
7789         of any type, not just strings.
7790         * select.c (own-selection-internal):
7791
7792         * select.h, select.c (convert_selection): New. Created
7793         convert_selection() function based on get_local_selection().
7794         * select.h, select.c (QCF_*): New symbols representing mswindows
7795         clipboard formats.
7796         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7797         symbols representing `how-to-add' modes.
7798
7799         * select-msw.c (x_sym_p): New.
7800         * select-msw.c (symbol_to_ms_cf): New.
7801         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7802         symbols & clipboard formats. Can also handle string names.
7803         * select-msw.c (mswindows_own_selection):
7804         * select-msw.c (mswindows_selection_exists_p):
7805         Added `data-type' parameter. Use it.
7806         * select-msw.c (mswindows_available_selection_types): New.
7807         * select-msw.c (mswindows_register_selection_data_type): New.
7808         * select-msw.c (mswindows_selection_data_type_name): New.
7809         * select-msw.c (mswindows_own_selection):
7810         * select-msw.c (mswindows_get_foreign_selection):
7811         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7812         * select-msw.c (console_create_select_mswindows): Added new methods.
7813         * select-msw.c (mswindows_destroy_selection): New.
7814         * select-msw.c (Vhandle_alist): New list.
7815         * select-msw.c (mswindows_own_selection):
7816
7817         * select-x.c (x_own_selection):
7818         * select-x.c (x_selection_exists_p):
7819         * select-x.c: Added some comments about maybe using new
7820         functionality.
7821         * select-x.c (x_own_selection):
7822
7823         * specifier.c: Remove definition of Qappend (now in general.c)
7824         * specifier.c (syms_of_specifier): Remove Qappend.
7825
7826 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7827
7828         * config.h.in: Add socklen_t.
7829
7830         * s/decosf4-0.h: No special compiler flags needed or desired.
7831         In particular, undefine _BSD for DEC OSF 4.0.
7832
7833 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7834
7835         * redisplay-msw.c (msprinter_frame_output_end): Added.
7836         (console_type_create_redisplay_mswindows): Referred the above.
7837
7838         * frame.c (setup_frame_without_minibuffer): Do not create a
7839         default minibuffer frame on a printer device.
7840
7841         * frame-msw.c (apply_dc_geometry): Added.
7842         (msprinter_start_page):
7843         (msprinter_init_frame_3):
7844         (msprinter_eject_page): Use it.
7845
7846         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7847         and removed residual duplex and orientation properties.
7848
7849 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7850
7851         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7852
7853         * unexalpha.c: Remove system prototypes from C sources!
7854
7855 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7856
7857         * eval.c: Remove references to M-x edit-options in DEFUNs for
7858         `defvar' and `defconst'.
7859
7860 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7861
7862         * config.h.in: Remove SMART_INCLUDE hackery.
7863
7864         PostgreSQL hacking:
7865         * config.h.in: Don't use SMART_INCLUDE.
7866
7867         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7868         * inline.c: Simply #include "postgresql.h"
7869         * postgresql.c:
7870         - Don't use SMART_INCLUDE
7871         - Use simply "const".
7872         - Use standard doc string conventions.
7873         - Use correct type for result of PQstatus.
7874
7875 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7876
7877         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7878
7879         C++ compilation changes.
7880         * config.h.in (EXTERN_C): Define.
7881         * config.h.in (not): This is also a C++ keyword.
7882         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7883         * cm.c: Use EXTERN_C.
7884         * redisplay-tty.c: Use EXTERN_C.
7885         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7886
7887 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7888
7889         * general.c: Remove duplicate definition for Qfunction.
7890
7891 2000-07-08  Ben Wing  <ben@xemacs.org>
7892
7893         * device-msw.c (msprinter_init_device):
7894         * device-msw.c (sync_printer_with_devmode):
7895         * device-msw.c (handle_devmode_changes):
7896         * device-msw.c (print_dialog_worker):
7897         * device-msw.c (Fmsprinter_apply_settings):
7898         * device-msw.c (hash_devmode):
7899         * device-msw.c (Fmsprinter_settings_despecialize):
7900         use Qmswindows_tstr, not Qctext.
7901
7902         * vm-limit.c (check_memory_limits):
7903         avoid infinite loop printing warning messages.
7904
7905 2000-07-05  Craig Lanning  <lanning@scra.org>
7906
7907         * Makefile.in.in: Add support for including the Windows resources
7908         when building with the cygwin and mingw targets.
7909
7910         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7911         not set or not correct.
7912         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7913         (init_initial_directory): Don't try to use $PWD on the
7914         WIN32_NATIVE target.
7915
7916         * s\cygwin32.h:
7917         [[Add -mwindows to eliminate console window.]] not required --ben
7918         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7919         (MAIL_USE_POP): removed; now handled by configure.
7920
7921         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7922         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7923         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7924         (MAIL_USE_POP): removed; now handled by configure.
7925         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7926         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7927         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7928         constant string.
7929         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7930         up from <winsock.h> via systime.h.
7931         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7932         (getpagesize): from Dan Holmsand, added.
7933         Added #endif which was left dangling by Ben's mega patch; added
7934         comment to help prevent this in the future.
7935
7936         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7937
7938 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7939
7940         * console-msw.h (struct mswindows_device): Removed unnecessary
7941         cached device geometry values.
7942         Added update_tick and an accessor macro.
7943         (Lisp_Devmode): Added lrecord declaration.
7944         (struct msprinter_device): Contain devmode as a Lisp object.
7945         Added mswindows_get_selected_frame_hwnd();
7946
7947         * console.h (struct console_methods): Indentation nitpicking.
7948
7949         * device-msw.c (mswindows_init_device): Do not initialize geometry
7950         cache. Initialize update tick.
7951         (mswindows_device_system_metrics): Ask the device for its geometry.
7952         (global_free_2_maybe):
7953         (devmode_to_hglobal):
7954         (handle_printer_changes):
7955         (ensure_not_printing):
7956         (print_dialog_worker):
7957         (Fmsprinter_print_setup_dialog):
7958         (Fmsprinter_print_dialog):
7959         (plist_get_margin):
7960         (plist_set_margin):
7961         (Fmsprinter_page_setup_dialog): Added functions.
7962         (sync_printer_with_devmode):
7963         (handle_devmode_changes):
7964         (Fmsprinter_get_settings):
7965         (Fmsprinter_select_settings):
7966         (Fmsprinter_apply_settings):
7967         (allocate_devmode):
7968         (Fmsprinter_settings_copy):
7969         (Fmsprinter_settings_despecialize):
7970         (print_devmode):
7971         (finalize_devmode):
7972         (equal_devmode):
7973         (hash_devmode): Added functions
7974         (syms_of_device_mswindows): Init devmode lrecord class.
7975
7976         * device.h: Added an exfun for find-device.
7977
7978         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7979         geometry; although, recreate the device compatible DC.
7980
7981         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7982         (msprinter_init_frame_3):
7983         (msprinter_frame_property):
7984         (msprinter_internal_frame_property_p):
7985         (msprinter_frame_properties):
7986         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7987         print job properties (will move to device settings).
7988
7989         * lisp.h: Added symbols.
7990
7991         * general.c (syms_of_general): Declared them.
7992
7993         * hash.c (string_hash): Added.
7994
7995         * lrecord.h (lrecord_type): Added devmode lrecord type.
7996
7997 2000-07-02  Mike Sperber <mike@xemacs.org>
7998
7999         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8000         FreeBSD 4.0.
8001
8002 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8003
8004         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8005         integer.
8006
8007 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8008
8009         * data.c (Fstring_to_number): Don't recognize floating point if
8010         base is not 10.
8011
8012 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8013
8014         * glyphs-widget.c (tab_control_query_geometry):
8015         (widget_query_geometry):
8016         (button_query_geometry):
8017         * glyphs.c (text_query_geometry):
8018         Enforce type correctness.
8019
8020 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8021
8022         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8023         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8024
8025 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8026
8027         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8028         conflicts with gcc's fixincluded version of FOO.h.
8029
8030         * glyphs.h (image_instance_geometry): Remove trailing `,'
8031
8032 2000-06-08  Mike Alexander  <mta@arbortext.com>
8033
8034         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8035         (shove_thread): Don't write the same output twice
8036         (make_ntpipe_output_stream): Increase priority of shove thread
8037         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8038         chance to run
8039         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8040         it.
8041
8042 2000-06-12  Ben Wing  <ben@xemacs.org>
8043
8044         * s\mingw32.h (sigset):
8045         * s\windowsnt.h (sigset):
8046         rename msw_ to mswindows_ for consistency with general convention.
8047
8048 2000-06-12  Ben Wing  <ben@xemacs.org>
8049
8050         * console-msw.c:
8051         * console-msw.c (mswindows_get_console_hwnd):
8052         * console-msw.c (mswindows_ensure_console_allocated):
8053         * console-msw.c (mswindows_hide_console):
8054         * console-msw.c (mswindows_show_console):
8055         * console-msw.c (mswindows_ensure_console_buffered):
8056         * console-msw.c (mswindows_output_console_string):
8057         * console-msw.c (mswindows_windows9x_p):
8058         * console-msw.h:
8059         * device-msw.c (mswindows_get_workspace_coords):
8060         * device-msw.c (mswindows_device_system_metrics):
8061         * dialog-msw.c (mswindows_popup_dialog_box):
8062         * event-msw.c (mswindows_wnd_proc):
8063         * frame-msw.c (mswindows_size_frame_internal):
8064         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8065         * menubar-msw.c (displayable_menu_item):
8066         * menubar-msw.c (mswindows_char_is_accelerator):
8067         * nt.c:
8068         * nt.c (mswindows_sigset):
8069         * nt.c (mswindows_sigrelse):
8070         * nt.c (mswindows_sigpause):
8071         * nt.c (mswindows_raise):
8072         * nt.c (timer_proc):
8073         * ntproc.c:
8074         * ntproc.c (find_child_console):
8075         * ntproc.c (sys_kill):
8076         * print.c:
8077         * print.c (std_handle_out_external):
8078         * process-nt.c (find_child_console):
8079         * process-nt.c (send_signal_the_95_way):
8080         * process-nt.c (ensure_console_window_exists):
8081         * process-nt.c (nt_create_process):
8082         * syssignal.h:
8083         rename msw_ to mswindows_ for consistency with general convention.
8084
8085         * emacs.c:
8086         * dumper.c:
8087         include nt.h, not syswindows.h.
8088
8089         * nt.c (mswindows_fstat):
8090         * nt.c (mswindows_stat):
8091         prefix mswindows_ instead of attempting to directly override the
8092         library functions.  fix declarations.
8093
8094         * nt.h:
8095         include syswindows.h.  move some sysdep.h stuff here.
8096
8097         * ntheap.h:
8098         include syswindows.h, not <windows.h>.
8099
8100         * ntplay.c:
8101         clean up headers.
8102
8103         * sysdep.c:
8104         clean up headers.
8105
8106         * sysdep.c (sys_fstat):
8107         * sysdep.c (sys_stat):
8108         call mswindows versions when appropriate.
8109
8110         * sysdep.h:
8111         move mswin decls to nt.h.
8112
8113         * syswindows.h:
8114         add long comment describing appropriate use of the various windows
8115         headers.
8116
8117 2000-06-11  Ben Wing  <ben@xemacs.org>
8118
8119         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8120
8121 2000-06-10  Ben Wing  <ben@xemacs.org>
8122
8123         * Makefile.in.in (release):
8124         Correction to make sure xemacs.exe always dumped when correct.
8125
8126         * alloca.c:
8127         * balloon_help.c:
8128         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8129
8130         * buffer.c (set_buffer_internal):
8131         [[[[2]]]]: Remove HAVE_FEP code.
8132
8133         * buffer.c (init_initial_directory):
8134         [3].
8135
8136         * bytecode.c:
8137         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8138         individual files.
8139
8140         * callproc.c:
8141         * callproc.c (call_process_cleanup):
8142         * callproc.c (Fold_call_process_internal):
8143         * callproc.c (child_setup):
8144         * callproc.c (getenv_internal):
8145         * callproc.c (init_callproc):
8146         * callproc.c (vars_of_callproc):
8147         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8148         __CYGWIN32__ -> CYGWIN.
8149         DOS_NT -> WIN32_NATIVE.
8150         Remove MSDOS support/references, converting to WIN32_NATIVE
8151           where correct.
8152         __MINGW32__ -> MINGW.
8153         Fix windows.h includes.
8154         Remove bogus HAVE_NTGUI.
8155
8156         * config.h.in:
8157         [2].
8158
8159         * console-msw.c:
8160         mswindows_message_outputted added for use in allowing startup
8161         errors on the console to be seen.
8162
8163         * console-msw.c (msw_ensure_console_allocated):
8164         * console-msw.c (msw_output_console_string):
8165         * console-msw.c (DHEADER):
8166         * console-msw.c (DOPAQUE_DATA):
8167         * console-msw.c (DEVENT):
8168         * console-msw.c (DCONS):
8169         * console-msw.c (DCONSCDR):
8170         * console-msw.c (DSTRING):
8171         * console-msw.c (DVECTOR):
8172         * console-msw.c (DSYMBOL):
8173         * console-msw.c (DSYMNAME):
8174         Fix warnings.
8175
8176         * console-stream.c (stream_init_console):
8177         Fix text/binary problems.
8178
8179         * device-msw.c:
8180         * device-msw.c (mswindows_finish_init_device):
8181         * device-msw.c (mswindows_delete_device):
8182         [1].
8183
8184         * device.c (handle_asynch_device_change):
8185         [3].
8186
8187         * dgif_lib.c:
8188         * dgif_lib.c (DGifOpenFileName):
8189         * dgif_lib.c (DGifOpenFileHandle):
8190         * dgif_lib.c (DGifGetLine):
8191         * dgif_lib.c (DGifGetPixel):
8192         Added config.h/lisp.h, fix up includes.
8193         [1].
8194
8195         * dired-msw.c:
8196         [4].
8197
8198         * dired.c:
8199         * dired.c (file_name_completion):
8200         * dired.c (Ffile_attributes):
8201         * dired.c (syms_of_dired):
8202         [1].
8203
8204         * dumper.c:
8205         * dumper.c (pdump_file_unmap):
8206         * dumper.c (pdump_load):
8207         [1].
8208
8209         * editfns.c:
8210         * editfns.c (Ftemp_directory):
8211         * editfns.c (user_login_name):
8212         * editfns.c (Fuser_real_login_name):
8213         * editfns.c (get_home_directory):
8214         [1].
8215
8216         * elhash.c (finish_marking_weak_hash_tables):
8217         [[[[5]]]]: Fix GCC warnings.
8218
8219         * emacs.c:
8220         * emacs.c (mswindows_handle_hardware_exceptions):
8221         * emacs.c (make_arg_list_1):
8222         * emacs.c (main_1):
8223         * emacs.c (Fkill_emacs):
8224         * emacs.c (Fdump_emacs):
8225         [1].
8226         Fix problems with nested crashes, add long comment.
8227
8228         * event-Xt.c (init_event_Xt_late):
8229         [1].
8230
8231         * event-msw.c:
8232         * event-msw.c (mswindows_dde_callback):
8233         * event-msw.c (mswindows_handle_sticky_modifiers):
8234         * event-msw.c (mswindows_wnd_proc):
8235         [1].
8236         [5].
8237
8238         * events.c (character_to_event):
8239         [1].
8240
8241         * fileio.c:
8242         * fileio.c (Ffile_name_directory):
8243         * fileio.c (Ffile_name_nondirectory):
8244         * fileio.c (directory_file_name):
8245         * fileio.c (Fexpand_file_name):
8246         * fileio.c (Fsubstitute_in_file_name):
8247         * fileio.c (Ffile_name_absolute_p):
8248         * fileio.c (check_executable):
8249         * fileio.c (Ffile_readable_p):
8250         * fileio.c (Ffile_accessible_directory_p):
8251         * fileio.c (Ffile_modes):
8252         * fileio.c (Funix_sync):
8253         * fileio.c (vars_of_fileio):
8254         [1]. [4].
8255
8256         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8257
8258         Expand getdefdir defn.
8259         Fix bogus rename() comment.
8260
8261         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8262         to use standard XEmacs include files, e.g. sysfile.h, rather
8263         than system-specific includes.
8264
8265         * fns.c:
8266         * fns.c (Fsubseq):
8267         [5]. [6].
8268
8269         * frame.c (vars_of_frame):
8270         [1].
8271
8272         * getloadavg.c:
8273         * getloadavg.c (getloadavg):
8274         [1]. [6].
8275         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8276         (We don't use it elsewhere in the code; just add a comment.)
8277
8278         * gif_io.c:
8279         [6].
8280         Add config.h.
8281
8282         * glyphs-msw.c:
8283         * glyphs-msw.c (mswindows_resource_instantiate):
8284         [1].
8285
8286         * glyphs-x.c (x_native_layout_instantiate):
8287         [5].
8288
8289         * gui-msw.c (Fmswindows_shell_execute):
8290         [1].
8291
8292         * insdel.c:
8293         [4].
8294
8295         * lisp.h:
8296         [4]. [5].
8297
8298         * lread.c (locate_file_in_directory_mapper):
8299         [1].
8300
8301         * lstream.c:
8302         [4].
8303
8304         * mem-limits.h:
8305         * mem-limits.h (get_lim_data):
8306         [1].
8307
8308         * menubar-msw.c:
8309         [4].
8310
8311         * ndir.h:
8312         [1].
8313
8314         * nt.c:
8315         * nt.c (getwd):
8316         * nt.c (closedir):
8317         * nt.c (rva_to_section):
8318         * nt.c (mswindows_executable_type):
8319         [1]. [6].
8320         Fix closedir() defn.
8321
8322         * nt.h:
8323         [[[[8]]]]: *_OK defs moved to sysfile.h.
8324
8325         * ntproc.c:
8326         [6]. [7].
8327
8328         * objects-x.c:
8329         [4].
8330
8331         * print.c:
8332         * print.c (std_handle_out_external):
8333         [1]. [4].
8334
8335         * process-nt.c:
8336         * process-nt.c (nt_create_process):
8337         [6].
8338         try to fix process quoting somewhat.
8339
8340         * process-unix.c (unix_create_process):
8341         [1].
8342
8343         * process.c:
8344         * process.c (vars_of_process):
8345         Add Vnull_device.
8346
8347         * process.h:
8348         [1].
8349
8350         * realpath.c:
8351         * realpath.c (xrealpath):
8352         [1].
8353
8354         * redisplay-tty.c (init_tty_for_redisplay):
8355         [3].
8356
8357         * redisplay.c:
8358         [4]. [6].
8359
8360         * scrollbar-msw.c:
8361         [4].
8362
8363         * sheap.c:
8364         * sheap.c (more_static_core):
8365         * sheap.c (report_sheap_usage):
8366         [5]. [6].
8367
8368         * signal.c:
8369         * signal.c (alarm_signal):
8370         [1]. [6].
8371
8372         * sound.c:
8373         [6].
8374
8375         * strftime.c:
8376         * strftime.c (zone_name):
8377         [1]. [5].
8378
8379         * symsinit.h (init_sunpro):
8380         [1].
8381
8382         * syscommctrl.h:
8383         commctrl.h not in Cygwin b20.1.
8384
8385         * sysdep.c:
8386         * sysdep.c (endif):
8387         * sysdep.c (sys_subshell):
8388         * sysdep.c (init_baud_rate):
8389         * sysdep.c (emacs_get_tty):
8390         * sysdep.c (emacs_set_tty):
8391         * sysdep.c (tty_init_sys_modes_on_device):
8392         * sysdep.c (init_system_name):
8393         * sysdep.c (sys_open):
8394         * sysdep.c (interruptible_open):
8395         * sysdep.c (sys_fopen):
8396         * sysdep.c (sys_mkdir):
8397         * sysdep.c (sys_rename):
8398         * sysdep.c (get_process_times_1):
8399         [1]. [6].
8400
8401         * sysdep.h:
8402         [1].
8403
8404         * sysdir.h:
8405         * sysdir.h (DIRENTRY_NONEMPTY):
8406         [1]. [6].
8407
8408         * sysdll.c (dll_init):
8409         * sysdll.h:
8410         [1].
8411
8412         * sysfile.h:
8413         [1]. [6]. [8].
8414         added text/binary defs.
8415
8416         * sysfloat.h:
8417         [1].
8418
8419         * sysproc.h:
8420         * sysproc.h (EDESTADDRREQ):
8421         * sysproc.h (poll_fds_for_input):
8422         [1]. [6].
8423
8424         * syspwd.h:
8425         [6].
8426
8427         * syssignal.h:
8428         [1].
8429
8430         * systime.h:
8431         [1]. [6].
8432
8433         * systty.h:
8434         [1].
8435
8436         * syswindows.h:
8437         [1].
8438         Always define WIN32_LEAN_AND_MEAN.
8439
8440         * unexcw.c (unexec):
8441         [5].
8442
8443         * unexec.c:
8444         * unexec.c (copy_text_and_data):
8445         * unexec.c (adjust_lnnoptrs):
8446         [1].
8447
8448         * unexnt.c:
8449         * unexnt.c (_start):
8450         [1].
8451
8452 2000-06-07  Ben Wing  <ben@xemacs.org>
8453
8454         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8455         was used only as a model.  We've long since extracted any useful
8456         logic or code out of this. (I just did an exhaustive search.)
8457
8458         * s\msdos.h: Removed.
8459
8460         * s\windows95.h: Removed.
8461
8462 2000-06-10  Ben Wing  <ben@xemacs.org>
8463
8464         * s\cygwin32.h:
8465         [1]. [5].
8466         Don't use extern with fun defs.
8467
8468         * s\mingw32.h:
8469         [1]. [7].
8470         Remove nt\inc include.
8471         Remove getdisk, getdefdir. (The former is unused, the latter
8472         expanded in fileio.h.)
8473
8474         * s\windowsnt.h:
8475         * s\windowsnt.h (WIN32_NATIVE):
8476         * s\windowsnt.h (HAVE_STRCASECMP):
8477         [1]. [7].
8478         Add long comment about preprocessor changes.
8479         Remove getdisk, getdefdir. (The former is unused, the latter
8480         expanded in fileio.h.)
8481
8482 2000-06-10  Ben Wing  <ben@xemacs.org>
8483
8484         * m\arm.h:
8485         * m\delta.h:
8486         * m\intel386.h:
8487         * m\sequent.h:
8488         * m\template.h:
8489         * m\windowsnt.h:
8490         [1].
8491         Remove bogus/unused NO_SOCK_SIGIO.
8492
8493 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8494
8495         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8496         not an Emchar.
8497
8498 2000-06-04  Mike Sperber <mike@xemacs.org>
8499
8500         * casetab.c (set_case_table): For `set-standard-case-table',
8501         actually deposit the new case tables where the rest of XEmacs can
8502         see them.
8503
8504 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8505
8506         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8507
8508 2000-06-05  Ben Wing  <ben@xemacs.org>
8509
8510         * callproc.c (child_setup): Don't do close_load_descs() under
8511         MS Windows.  Put in a comment explaining why.
8512
8513 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8514
8515         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8516         Toolkit shell" which breaks `kill-compilation' on Windows NT
8517         native, retaining STDERR handling improvements.
8518
8519 2000-06-01  Andreas Jaeger  <aj@suse.de>
8520
8521         * s/s390.h: Support for S390, based on a patch by Martin
8522         Schwidefsky <schwidefsky@de.ibm.com>.
8523
8524 2000-05-30  Andy Piper  <andy@xemacs.org>
8525
8526         * window.c (allocate_window):
8527         (make_dummy_parent):
8528         (Fset_window_configuration): use new hashtable type.
8529
8530         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8531         (struct image_instantiator_methods):
8532         (struct Lisp_Image_Instance): make instance geometry signed.
8533
8534         * glyphs.c (instantiate_image_instantiator):
8535         (image_instance_query_geometry):
8536         (image_instance_layout):
8537         (image_instance_layout):
8538         (query_string_geometry):
8539         (text_query_geometry):
8540         (image_instantiate):
8541         (image_instantiate):
8542         (cache_subwindow_instance_in_frame_maybe):
8543         (subwindow_query_geometry): make instance geometry signed.
8544
8545         * glyphs-widget.c (widget_query_geometry):
8546         (widget_layout):
8547         (button_query_geometry):
8548         (tree_view_query_geometry):
8549         (tab_control_query_geometry):
8550         (layout_query_geometry):
8551         (layout_layout):
8552         (native_layout_layout): make instance geometry signed.
8553
8554 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8555
8556         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8557         constant.
8558
8559         * general.c (syms_of_general): Add Qfull_assoc symbol.
8560
8561         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8562         correctly.
8563         (decode_weak_list_type): Decode full-assoc type.
8564         (encode_weak_list_type): Encode full-assoc type.
8565         (Fmake_weak_list): Update doc string.
8566
8567 2000-05-30  Andy Piper  <andy@xemacs.org>
8568
8569         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8570
8571         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8572         (decode_hash_table_weakness): ditto.
8573         (Fhash_table_weakness): ditto.
8574         (Fhash_table_type): ditto.
8575         (finish_marking_weak_hash_tables): ditto.
8576         (hash_table_weakness_validate): ditto.
8577         (syms_of_elhash): ditto.
8578
8579 2000-05-28  Martin Buchholz <martin@xemacs.org>
8580
8581         * XEmacs 21.2.34 is released.
8582
8583 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8584
8585         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8586         start cache.
8587         (updating_line_start_cache): Gone.
8588         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8589         generic code to force a minimum of 1 line laid out in the
8590         CMOTION_DISP case.
8591
8592 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8593
8594         * glyphs.c (instantiate_image_instantiator): Check for initialized
8595         height & width no longer special cases IMAGE_NOTHING.
8596         (nothing_instantiate): Set height and width of instance.
8597
8598 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8599
8600         * unexelf.c (unexec): Search for ".data" section.
8601         Initialize new_data2_offset from old_data_index.
8602         Remove redundant check for ElfW.
8603
8604 2000-05-23  Andy Piper  <andy@xemacs.org>
8605
8606         * glyphs.c (get_image_instantiator_governing_domain): allow more
8607         specific domains as the governing domain rather than expecting an
8608         exact match. This fixes problems with layouts.
8609
8610 2000-05-22  Andy Piper  <andy@xemacs.org>
8611
8612         * redisplay-output.c (compare_runes): check for non-images
8613
8614         * glyphs.c (set_glyph_dirty_p): ditto.
8615         (update_glyph_cachel_data): ditto.
8616
8617         * glyphs-widget.c (layout_post_instantiate): ditto.
8618         (layout_post_instantiate): ditto.
8619
8620         * event-msw.c (mswindows_wnd_proc): warning removal.
8621
8622 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8623
8624         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8625
8626         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8627
8628         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8629
8630         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8631         (mswindows_executable_type): mingw32 now has enough headers for
8632         this to work.
8633
8634 2000-05-20  Andy Piper  <andy@xemacs.org>
8635
8636         * console-msw.c (mswindows_output_last_error): ; -> ,
8637
8638 2000-05-12  Andy Piper  <andy@xemacs.org>
8639
8640         * console-msw.c (FROB): compare ints with ints.
8641
8642 2000-05-11  Andy Piper  <andy@xemacs.org>
8643
8644         * glyphs-x.c (x_finalize_image_instance): make minimal build
8645         happy.
8646
8647 2000-05-20  Ben Wing  <ben@xemacs.org>
8648
8649         * event-Xt.c:
8650         * event-Xt.c (vars_of_event_Xt):
8651         move modifier-keys-are-sticky to event-stream.c.
8652
8653         * event-msw.c:
8654         * event-msw.c (mswindows_enqueue_mouse_button_event):
8655         * event-msw.c (key_needs_default_processing_p):
8656         * event-msw.c (XEMSW_LCONTROL):
8657         * event-msw.c (mswindows_handle_sticky_modifiers):
8658         * event-msw.c (FROB):
8659         * event-msw.c (clear_sticky_modifiers):
8660         * event-msw.c (output_modifier_keyboard_state):
8661         * event-msw.c (output_alt_keyboard_state):
8662         * event-msw.c (mswindows_wnd_proc):
8663         * event-msw.c (mswindows_modifier_state):
8664         * event-msw.c (emacs_mswindows_handle_magic_event):
8665         implement sticky modifiers.
8666
8667         * event-stream.c:
8668         * event-stream.c (vars_of_event_stream):
8669         move modifier-keys-are-sticky here.
8670
8671         * lisp.h:
8672         add CHECK_FUNCTION.
8673
8674         * rangetab.c:
8675         implement map-range-table.
8676
8677
8678 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8679
8680         * redisplay-tty.c (reset_tty_modes):
8681         (tty_redisplay_shutdown): Adjust argument type to
8682         tty_frame_output_end.
8683
8684 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8685
8686         * eval.c (Fbacktrace): Don't output a line with only right
8687         parenthesis.
8688
8689 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8690
8691         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8692         (Fpq_reset_poll): Ditto.
8693
8694 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8695
8696         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8697
8698 2000-05-16  Ben Wing  <ben@xemacs.org>
8699
8700         * buffer.c:
8701         * buffer.c (dfc_convert_to/from_internal_format):
8702         * buffer.c (reinit_vars_of_buffer):
8703         Fix conversion functions to allow reentrancy.
8704
8705         * console-msw.c:
8706         * console-msw.c (mswindows_output_last_error):
8707         New fun, generally useful -- output a human-readable
8708         version of GetLastError() on the console.
8709
8710         * console-msw.h:
8711         * console-msw.h (struct mswindows_frame):
8712         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8713
8714         * console-stream.c (stream_output_begin):
8715         * console-stream.c (stream_output_end):
8716         * console-stream.c (stream_output_vertical_divider):
8717         * console-stream.c (stream_clear_region):
8718         * console-stream.c (stream_flash):
8719         * console-stream.c (console_type_create_stream):
8720         Delete blank stream methods, not needed.
8721
8722         * console.h (struct console_methods):
8723         Split begin/end methods into window and frame.
8724
8725         * event-msw.c:
8726         * event-msw.c (mswindows_handle_paint):
8727         * event-msw.c (output_alt_keyboard_state):
8728         * event-msw.c (mswindows_wnd_proc):
8729         * event-msw.c (vars_of_event_mswindows):
8730         Comment about problems with ignored-expose.
8731         Define mswindows-debug-events; not really implemented.
8732
8733         * frame-msw.c (mswindows_init_frame_1):
8734         random cleanups.
8735
8736         * glyphs-msw.c:
8737         * glyphs-msw.c (begin_defer_window_pos):
8738         * glyphs-msw.c (mswindows_unmap_subwindow):
8739         * glyphs-msw.c (mswindows_map_subwindow):
8740         * glyphs-msw.c (mswindows_resize_subwindow):
8741         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8742
8743         * glyphs.c (make_image_instance_1):
8744         Fix crash.
8745
8746         * gutter.c (Fredisplay_gutter_area):
8747         Use new begin/end methods.
8748
8749         * lisp.h (Dynarr_new2):
8750         New creation fun.
8751
8752         * redisplay-msw.c:
8753         * redisplay-msw.c (mswindows_frame_output_begin):
8754         * redisplay-msw.c (mswindows_frame_output_end):
8755         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8756         New begin/end methods -- handle DeferWindowPos.
8757
8758         * redisplay-output.c (redisplay_move_cursor):
8759         * redisplay-output.c (redraw_cursor_in_window):
8760         * redisplay-output.c (redisplay_update_line):
8761         * redisplay-output.c (redisplay_output_window):
8762         New begin/end methods.
8763
8764         * redisplay-tty.c:
8765         * redisplay-tty.c (tty_frame_output_begin):
8766         * redisplay-tty.c (tty_frame_output_end):
8767         * redisplay-tty.c (console_type_create_redisplay_tty):
8768         New begin/end methods.
8769
8770         * redisplay-x.c:
8771         * redisplay-x.c (x_window_output_begin):
8772         * redisplay-x.c (x_window_output_end):
8773         * redisplay-x.c (console_type_create_redisplay_x):
8774         New begin/end methods.
8775
8776         * redisplay.c (redisplay_frame):
8777         * redisplay.c (Fredisplay_echo_area):
8778         New begin/end methods.
8779         use MAYBE_DEVMETH for clear_frame; it may not exist.
8780
8781         * window.h (WINDOW_XFRAME):
8782         WINDOW_XFOO macros -- get locale and decode struct pointer.
8783
8784
8785 2000-05-12  Ben Wing  <ben@xemacs.org>
8786
8787         * emacs.c:
8788         * emacs.c (ensure_no_quitting_from_now_on):
8789         * emacs.c (fatal_error_signal):
8790         * emacs.c (mswindows_handle_hardware_exceptions):
8791         * emacs.c (main):
8792         * emacs.c (Fkill_emacs):
8793         * emacs.c (shut_down_emacs):
8794         * emacs.c (assert_failed):
8795         various improvements in fatal error handling.
8796
8797         * eval.c:
8798         move preparing_for_armageddon to emacs.c.
8799
8800         * lisp.h:
8801         declare fatal_error_in_progress.
8802
8803         * print.c:
8804         * print.c (std_handle_out_external):
8805         * print.c (std_handle_out_va):
8806         * print.c (stderr_out):
8807         * print.c (stdout_out):
8808         use console under mswin when no standard output.
8809         don't do code conversion during fatal error.
8810
8811         * scrollbar.c (Fscrollbar_page_up):
8812         * scrollbar.c (Fscrollbar_page_down):
8813         fix missing else.  reindent.
8814
8815 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8816
8817         Emergency fix.
8818
8819         * glyphs.h (GLYPH_CACHEL_DESCENT):
8820         (GLYPH_CACHEL_DESCENT):
8821         (GLYPH_CACHEL_DESCENT):
8822         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8823         used in case these are inline functions.
8824         Use more absurd values to error check.
8825
8826         include window.h for error check functions.
8827
8828 2000-05-11  Ben Wing  <ben@xemacs.org>
8829
8830         * cmdloop.c (Freally_early_error_handler):
8831         Display message box under windows; otherwise, message will disappear
8832         before it can be viewed.
8833
8834         * console-msw.c:
8835         * console-msw.c (Fmswindows_message_box):
8836         * console-msw.c (FROB):
8837         * console-msw.c (syms_of_console_mswindows):
8838         Define new fun `mswindows-message-box'.
8839         #### I will merge this into `popup-dialog-box'; just give me
8840         a bit of time.
8841
8842         * general.c:
8843         * general.c (syms_of_general):
8844         Some new symbols used in `mswindows-message-box'.
8845
8846         * glyphs.c:
8847         * glyphs.c (Fset_image_instance_property):
8848         put warning in this fun.
8849
8850         * glyphs.h:
8851         * glyphs.h (GLYPH_CACHEL_WIDTH):
8852         * glyphs.h (GLYPH_CACHEL_ASCENT):
8853         * glyphs.h (GLYPH_CACHEL):
8854         * glyphs.h (GLYPH_CACHEL_GLYPH):
8855         define error-checking versions to try to catch a bug i've seen --
8856         redisplay gets in an infinite loop because the glyph width of the
8857         continuation glyph is 65535.
8858
8859         * lisp.h:
8860         Extern message-box stuff.
8861
8862         * window.c (allocate_window):
8863         * window.c (make_dummy_parent):
8864         * window.c (Fset_window_configuration):
8865         Use EQUAL not EQ for subwindow caches to make them work a bit
8866         better. (Something is still very broken.)
8867
8868
8869 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8870
8871         * glyphs.c (image_instantiate): Suppress gcc warnings.
8872         (Fmake_image_instance): Fix doc string.
8873         * specifier.c (Fmake_specifier): Ditto.
8874
8875 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8876
8877         * paths.h.in (PATH_LOCK): Removed.
8878         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8879         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8880
8881 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8882
8883         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8884         Document (featurep '(and xemacs 21.02)).
8885
8886 2000-05-09  Ben Wing  <ben@xemacs.org>
8887
8888         * buffer.c (complex_vars_of_buffer):
8889         update modeline-format doc.
8890
8891         * device.h:
8892         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8893
8894         * emacs.c:
8895         timeline of all released versions of Emacs, for use in creating
8896         authorship comments and in synching up.
8897
8898         * glyphs-widget.c (image_instantiator_buttons):
8899         * glyphs-widget.c (image_instantiator_edit_fields):
8900         * glyphs-widget.c (image_instantiator_combo_box):
8901         * glyphs-widget.c (image_instantiator_scrollbar):
8902         * glyphs-widget.c (image_instantiator_progress_guage):
8903         * glyphs-widget.c (image_instantiator_tree_view):
8904         * glyphs-widget.c (image_instantiator_tab_control):
8905         * glyphs-widget.c (image_instantiator_labels):
8906         * glyphs-widget.c (image_instantiator_layout):
8907         * glyphs-widget.c (image_instantiator_native_layout):
8908         rename decode_domain method to governing_domain.
8909
8910         * glyphs.c:
8911         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8912         * glyphs.c (add_entry_to_device_ii_format_list):
8913         make sure we don't put an entry more than once into the list.
8914         * glyphs.c (check_instance_cache_mapper):
8915         *************************************************************
8916         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8917         HAVE BEEN GETTING.
8918         *************************************************************
8919         * glyphs.c (get_image_instantiator_governing_domain):
8920         clean up, expand on new concept of governing domain.
8921         * glyphs.c (instantiate_image_instantiator):
8922         * glyphs.c (allocate_image_instance):
8923         use governing_domain instead of cache_domain in naming.
8924         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8925         * glyphs.c (make_image_instance_1):
8926         * glyphs.c (Fmake_image_instance):
8927         allow for any domain (not just device), and process the
8928         governing domain correctly.  very big doc fix.
8929         * glyphs.c (Fimage_instance_domain):
8930         new primitive, to retrieve the governing domain of an image instance.
8931         * glyphs.c (image_instantiate):
8932         use new governing_domain stuff.  this fixes a crash you could get
8933         by instantiating certain widget glyphs in frame locales. (should
8934         signal an error instead of crashing.)
8935         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8936         * glyphs.c (Fglyphp): clean up doc.
8937         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8938         * glyphs.c (syms_of_glyphs):
8939         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8940         * glyphs.c (image_instantiator_format_create): add some comments about
8941         bogus code.
8942         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8943         for current-display-table. (Apparently Hrjove implemented in 1998 a
8944         design I wrote up in 1996, but didn't update the doc string.)
8945
8946         * glyphs.h: clean up a doc string.
8947         * glyphs.h (governing_domain):
8948         * glyphs.h (struct image_instantiator_methods):
8949         changes for governing_domain stuff.
8950
8951         * gutter.c:
8952         * gutter.c (Fgutter_specifier_p):
8953         * gutter.c (Fgutter_size_specifier_p):
8954         * gutter.c (Fgutter_visible_specifier_p):
8955         * objects.c:
8956         * objects.c (Fcolor_specifier_p):
8957         * objects.c (Ffont_specifier_p):
8958         * objects.c (Fface_boolean_specifier_p):
8959         doc strings moved to make-*-specifier.
8960
8961         * redisplay.c (add_disp_table_entry_runes_1):
8962         * redisplay.c (generate_fstring_runes):
8963         * redisplay.c (screen):
8964         add random comments and doc strings.
8965
8966         * specifier.c:
8967         * specifier.c (Fmake_specifier):
8968         major overhaul of this doc string.
8969
8970         * specifier.c (Fvalid_specifier_domain_p):
8971         comment about the bogosity of image instances being domains.
8972         * specifier.c (decode_domain):
8973         now non-static, used in glyphs.c.
8974         * specifier.c (specifier_instance):
8975         comment about the bogosity of image instances being domains.
8976         * specifier.c (Fgeneric_specifier_p):
8977         move doc string to make-generic-specifier.
8978         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8979         rebackslashify.
8980
8981         * specifier.h:
8982         * specifier.h (DOMAIN_FRAME):
8983         * specifier.h (DOMAIN_LIVE_P):
8984         * specifier.h (DOMAIN_XDEVICE):
8985         rebackslashify.
8986         add comments about problems with these macros.
8987         prototype for decode_domain.
8988
8989         * toolbar.c:
8990         * toolbar.c (Ftoolbar_specifier_p):
8991         move doc string to `make-toolbar-specifier'.
8992
8993         * window.c (window_unmap_subwindows_cache_mapper):
8994         *************************************************************
8995         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8996         HAVE BEEN GETTING.
8997         *************************************************************
8998
8999 2000-05-09  Andy Piper  <andy@xemacs.org>
9000
9001         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9002
9003         * window.c (Fset_window_configuration): reset the frame subwindow
9004         cache and re-initialize the window subwindow caches.
9005
9006         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9007
9008 2000-05-09  Ben Wing  <ben@xemacs.org>
9009
9010         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9011         DWORD.
9012
9013 2000-04-26  Mike Woolley  <mike@bulsara.com>
9014
9015         * ntheap.c: Changed recreate_heap to limit the amount reserved
9016         for the heap to that which is actually available. Also now
9017         displays a message box (with some dignostics) in the event that
9018         it still can't start.
9019
9020 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9021
9022         * callproc.c (Fold_call_process_internal): GCPRO path
9023
9024 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9025
9026         Patch by Bill Perry.
9027
9028         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9029         back data instead of #ifdef.
9030         (Fscrollbar_page_down): ditto.
9031
9032 2000-05-07  Ben Wing  <ben@xemacs.org>
9033
9034         * buffer.h:
9035         Kludge for defining Qmswindows_tstr.
9036
9037         * nt.c:
9038         * nt.c (open_input_file):
9039         * nt.c (open_output_file):
9040         * nt.c (rva_to_section):
9041         * nt.c (mswindows_executable_type):
9042         Move all memory-mapped-file routines here (some were in unexnt.c,
9043         which is bad because they are used by process-nt.c, and unexnt
9044         won't be around when portable dumping).  Synched the above routines
9045         with FSF 20.6.
9046
9047         * nt.h:
9048         Removed ifdef'd out bogus code.
9049         Fixed some prototypes.
9050
9051         * nt.h (file_data):
9052         * nt.h (OFFSET_TO_RVA):
9053         * nt.h (RVA_TO_OFFSET):
9054         * nt.h (RVA_TO_PTR):
9055         Moved the memory-mapped-file structures, macros and prototypes
9056         here, to parallel nt.c.  ntheap.h should really be removed
9057         entirely, and it's a non-portable-dumper specific file.
9058
9059         * ntheap.h (round_to_next):
9060         Moved the memory-mapped-file structures, macros and prototypes
9061         to nt.h.
9062
9063         * ntproc.c (compare_env):
9064         Moved rva_to_section and mswindows_executable_type to nt.c.
9065         Moved compare_env to process-nt.c.
9066         ntproc.c will die, one day.
9067
9068         * ntproc.c (sys_spawnve):
9069         Account for win32_ -> mswindows_.
9070
9071         * process-nt.c:
9072         * process-nt.c (struct nt_process_data):
9073         * process-nt.c (ensure_console_window_exists):
9074         * process-nt.c (compare_env):
9075         * process-nt.c (nt_create_process):
9076         * process-nt.c (nt_kill_process_by_pid):
9077         * process-nt.c (syms_of_process_nt):
9078         * process-nt.c (vars_of_process_nt):
9079         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9080         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9081         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9082         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9083         Move compare_env here from ntproc.c.
9084
9085         * process.c (Fprocess_send_region):
9086         Takes an optional fourth argument, BUFFER, which should fix some
9087         problems with call-process.
9088
9089         * syscommctrl.h:
9090         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9091
9092         * syswindows.h:
9093         Move ICC_BAR_CLASSES to syscommctrl.h.
9094         Add preliminary macros for MSWindows/Mule.  More to come.
9095
9096         * unexnt.c:
9097         * unexnt.c (unexec):
9098         open_output_file moved to nt.c.
9099
9100
9101 2000-05-05  Andy Piper  <andy@xemacs.org>
9102
9103         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9104         instance from the frame cache also since GC may catch up too late
9105         to make frame deletion sane.
9106
9107 2000-05-04  Andy Piper  <andy@xemacs.org>
9108
9109         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9110         (x_finalize_image_instance): ungcpro on deletion.
9111
9112         * glyphs.c (image_instantiator_format_create): give pointers a
9113         query geometry method so that the geometry is at least set.
9114
9115         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9116         initialize layouts if using widgets.
9117
9118 2000-05-03  Andy Piper  <andy@xemacs.org>
9119
9120         * nt.c: remove bogus reference to sysmmsystem.h
9121
9122         * gui-x.c (popup_selection_callback): fix no selection abort.
9123
9124 2000-05-02  Andy Piper  <andy@xemacs.org>
9125
9126         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9127         (mswindows_widget_instantiate): ditto.
9128
9129         * glyphs-widget.c (initialize_widget_image_instance): initialize
9130         children correctly.
9131         (widget_instantiate): cope with children and items in the same
9132         instance.
9133
9134         * glyphs.c (mark_image_instance): cope with children as a first
9135         class member.
9136         (image_instance_equal): ditto.
9137         (image_instance_hash): ditto.
9138         (image_instance_changed): ditto.
9139
9140 2000-04-30  Andy Piper  <andy@xemacs.org>
9141
9142         * glyphs.c (subwindow_query_geometry): new function. Return some
9143         defaults.
9144         (subwindow_instantiate): don't assign dimensions if none have been
9145         given.
9146         (image_instantiator_format_create): add subwindow_query_geometry.
9147         (print_image_instance): cope with layouts as widgets.
9148
9149 2000-04-29  Andy Piper  <andy@xemacs.org>
9150
9151         * frame.c (delete_frame_internal): call
9152         free_frame_subwindow_instance_cache so that all subwindows are
9153         finalized before their parent.
9154         (mark_frame): remove subwindow_cachels.
9155         (Fmake_frame): remove subwindow_cachel manipulation.
9156         (allocate_frame_core): subwindow_instance_cache is a weak list.
9157         (delete_frame_internal): set subwindow_instance_cache to nil.
9158
9159         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9160         finalization safe.
9161         (mswindows_finalize_image_instance): use the device
9162         not the domain as the domain may have died already.
9163
9164         * glyphs-x.c (x_finalize_image_instance): ditto.
9165         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9166         HEIGHT.
9167
9168         * redisplay-output.c (redisplay_unmap_subwindows): update for
9169         subwindow instance cache as a weak list.
9170         (redisplay_unmap_subwindows_maybe): ditto.
9171         (redisplay_unmap_subwindows_except_us): ditto.
9172
9173         * glyphs.c (unmap_subwindow): error checking will check the domain
9174         so don't deal with it here. Don't use cachels anymore.
9175         (map_subwindow): ditto.
9176         (update_subwindow_cachel_data): remove old accessor names.
9177         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9178         (Fresize_subwindow): don't update cachel.
9179         (mark_subwindow_cachels):
9180         (update_subwindow_cachel_data):
9181         (add_subwindow_cachel):
9182         (get_subwindow_cachel_index):
9183         (update_subwindow_cachel):
9184         (reset_subwindow_cachels):
9185         (mark_subwindow_cachels_as_not_updated): deleted.
9186         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9187         subwindow instance to the frame cache.
9188         (find_matching_subwindow): update for subwindow instance cache as
9189         a weak list.
9190         (update_widget_instances): ditto.
9191         (image_instance_type_to_mask):inlined.
9192         (free_frame_subwindow_instance_cache): new function. finalize all
9193         subwindows that are instantiated.
9194
9195         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9196         of cachel information.
9197         (IMAGE_INSTANCE_DISPLAY_X):
9198         (IMAGE_INSTANCE_DISPLAY_Y):
9199         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9200         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9201         (XIMAGE_INSTANCE_DISPLAY_X):
9202         (XIMAGE_INSTANCE_DISPLAY_Y):
9203         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9204         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9205         remove subwindow_cachel structure and function references.
9206         (image_instance_type_to_mask): inline from glyphs.c
9207
9208         * redisplay.c (redisplay_frame): remove subwindow_cachel
9209         references.
9210
9211         * frame.h (struct frame): remove subwindow_cachels.
9212         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9213
9214         * frameslots.h: add subwindow_instance_cache.
9215
9216         * window.c (replace_window): check subwindow cache of replacement.
9217         (window_unmap_subwindows_cache_mapper):
9218         (window_unmap_subwindows): new functions. Unmap all subwindows
9219         cached on this window.
9220         (mark_window_as_deleted): unmap all subwindows.
9221
9222 2000-04-27  Andy Piper  <andy@xemacs.org>
9223
9224         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9225
9226         * glyphs-widget.c (widget_layout): return something.
9227         (layout_layout): return something. Fail if not initialized.
9228         (layout_query_geometry): ditto.
9229         (image_instantiator_native_layout): new function. Initialized the
9230         native layout type.
9231         (widget_instantiate): don't do layout stuff here.
9232
9233         * glyphs.c (instantiate_image_instantiator): reorded calling or
9234         instantiate and post_instantiate with layout in between.
9235         (image_instance_layout): be more selective about deciding whether
9236         the layout has been done or not.
9237
9238         * glyphs.h (struct image_instantiator_methods): return a value
9239         from layout_method.
9240
9241 2000-04-26  Andy Piper  <andy@xemacs.org>
9242
9243         * glyphs.c (allocate_image_instance): make initial width and
9244         height unspecified. Set initialized to 0.
9245
9246         * syscommctrl.h new file. Encapsulates commctrl.h.
9247
9248         * syswindows.h new file. Encapsulates windows.h.
9249
9250         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9251         * nt.c: ditto.
9252         * console-msw.h: ditto.
9253
9254         * redisplay-tty.c (tty_output_display_block): remove layout references.
9255
9256         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9257         window handle rather than just the frame.
9258
9259         * glyphs.c (mark_image_instance): remove layout references.
9260         (print_image_instance): ditto.
9261         (image_instance_equal): ditto.
9262         (image_instance_hash): ditto.
9263         (decode_image_instance_type): ditto.
9264         (encode_image_instance_type): ditto.
9265         (image_instantiate): ditto.
9266         (allocate_glyph): ditto.
9267         (Fimage_instance_height): ditto.
9268         (Fimage_instance_width): ditto.
9269         (update_subwindow): ditto.
9270
9271         * redisplay-x.c (x_output_display_block): recode for layouts as
9272         widgets.
9273
9274         * redisplay-output.c (redisplay_output_layout): recode for layouts
9275         as widgets.
9276         (compare_runes): remove layout references.
9277
9278         * redisplay-msw.c (mswindows_output_display_block): recode for
9279         layouts as widgets.
9280
9281         * glyphs-widget.c (image_instantiator_layout): remove
9282         layout_possible_dest_types.
9283         (layout_possible_dest_types): deleted.
9284
9285         * glyphs.h (image_instance_type): remove layout references.
9286         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9287         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9288         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9289
9290 2000-04-25  Andy Piper  <andy@xemacs.org>
9291
9292         * glyphs-widget.c (image_instantiator_buttons):
9293         (image_instantiator_edit_fields):
9294         (image_instantiator_combo_box):
9295         (image_instantiator_scrollbar):
9296         (image_instantiator_progress_guage):
9297         (image_instantiator_tree_view):
9298         (image_instantiator_tab_control):
9299         (image_instantiator_labels):
9300         (image_instantiator_layout): call default post_instantiate method.
9301         (widget_post_instantiate): new function. Simply lays out the
9302         widgets.
9303
9304         * glyphs.h (struct image_instantiator_methods): add
9305         post_instantiate method.
9306
9307         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9308         method calls.
9309
9310 2000-04-23  Andy Piper  <andy@xemacs.org>
9311
9312         * glyphs.h (struct image_instantiator_methods): add
9313         decode_domain_method.
9314         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9315         derived from the domain.
9316         (IMAGE_INSTANCE_FRAME): new accessor.
9317         (XIMAGE_INSTANCE_FRAME): ditto.
9318
9319         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9320         instead of _SUBWINDOW_FRAME.
9321         (finalize_image_instance): ditto.
9322         (Fimage_instance_foreground): ditto.
9323         (Fimage_instance_background): ditto.
9324         (image_instantiate): ditto.
9325         (update_subwindow_cachel): ditto.
9326         (update_subwindow): ditto.
9327         (unmap_subwindow): ditto.
9328         (map_subwindow): ditto
9329         (subwindow_instantiate): ditto.
9330         * glyphs-msw.c (mswindows_update_widget): ditto.
9331         (mswindows_progress_gauge_instantiate): ditto.
9332         (mswindows_tab_control_update): ditto.
9333         * glyphs-x.c (x_update_widget): ditto.
9334         (x_widget_instantiate): ditto.
9335         (x_tab_control_instantiate): ditto.
9336         (x_tab_control_update): ditto.
9337         * event-msw.c (mswindows_wnd_proc): ditto
9338
9339         * glyphs-widget.c (image_instantiator_layout): use
9340         subwindow_decode_domain.
9341         (image_instantiator_buttons): ditto.
9342         (image_instantiator_edit_fields): ditto.
9343         (image_instantiator_combo_box): ditto.
9344         (image_instantiator_scrollbar): ditto.
9345         (image_instantiator_progress_guage): ditto.
9346         (image_instantiator_tree_view): ditto.
9347         (image_instantiator_tab_control): ditto.
9348         (image_instantiator_labels): ditto.
9349         (image_instantiator_layout): ditto.
9350
9351         * glyphs.c: add instance error checking to many functions.
9352         (instantiate_image_instantiator): decode device from cache_domain.
9353         (image_instantiate): partially rewrite by using
9354         decode_image_instantiator_domain to determine what domain the
9355         instance needs to be cached in.
9356         (decode_image_instantiator_domain): new function. Determine what
9357         domain the image needs to be cached in.
9358         (check_window_subwindow_cache): new error checking function.
9359         (check_instance_cache_mapper): ditto.
9360         (check_image_instance_structure): ditto.
9361         (subwindow_decode_domain): new function. Encodes a window as a
9362         subwindow's cache domain.
9363         (image_instantiator_format_create): use it for text and
9364         subwindows.
9365
9366 2000-04-21  Andy Piper  <andy@xemacs.org>
9367
9368         * glyphs.c (image_instance_device): new function.
9369         (image_instance_frame): new function.
9370         (image_instance_window): new function.
9371         (image_instance_live_p): new function.
9372
9373         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9374         cache to nil.
9375
9376         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9377         (IMAGE_INSTANCE_DOMAIN): new accessor.
9378         (XIMAGE_INSTANCE_DOMAIN): ditto.
9379
9380         * glyphs-x.c (x_finalize_image_instance): device->domain.
9381
9382         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9383         (mswindows_finalize_image_instance): ditto.
9384
9385         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9386         (gif_instantiate): ditto.
9387         (png_instantiate): ditto.
9388         (tiff_instantiate): ditto.
9389
9390         * glyphs.c (instantiate_image_instantiator): use domain rather
9391         than device.
9392         (mark_image_instance): device -> domain.
9393         (print_image_instance): ditto.
9394         (finalize_image_instance): ditto.
9395         (image_instance_equal): ditto.
9396         (allocate_image_instance): ditto.
9397         (Fcolorize_image_instance): ditto.
9398         (query_string_geometry): ditto.
9399         (image_instantiate): ditto
9400         (query_string_font): ditto.
9401         (image_instantiate): ditto.
9402         (update_subwindow): ditto.
9403         (unmap_subwindow): ditto.
9404         (map_subwindow): ditto.
9405         (subwindow_instantiate): ditto.
9406
9407         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9408         (DOMAIN_FRAME): ditto.
9409         (DOMAIN_WINDOW): ditto.
9410         (DOMAIN_LIVE_P): ditto.
9411         (XDOMAIN_DEVICE): ditto.
9412         (XDOMAIN_FRAME): ditto.
9413         (XDOMAIN_WINDOW): ditto.
9414
9415         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9416         a valid specifier domain.
9417
9418 2000-04-19  Andy Piper  <andy@xemacs.org>
9419
9420         * glyphs-widget.c (syms_of_glyphs_widget): remove
9421         widget-callback-current-channel.
9422         (vars_of_glyphs_widget): ditto.
9423         * glyphs.h: ditto
9424
9425         * gui.c (get_gui_callback): revert to previous behaviour.
9426
9427 2000-04-18  Andy Piper  <andy@xemacs.org>
9428
9429         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9430         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9431         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9432
9433         * glyphs.c (image_instance_equal): add margin_width.
9434         (image_instance_hash): ditto.
9435
9436         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9437         (layout_query_geometry): ditto.
9438         (layout_layout): ditto.
9439         (syms_of_glyphs_widget): add margin-width.
9440         (image_instantiator_layout): allow margin-width.
9441
9442         * glyphs.c (update_widget_instances): make a normal function.
9443         (syms_of_glyphs): remove Qupdate_widget_instances.
9444         * glyphs.h: ditto.
9445
9446         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9447         so that we don't corrupt ideas about the last event or
9448         command. Remove widget-callback-current-channel fiddling.
9449         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9450
9451 2000-05-01  Martin Buchholz <martin@xemacs.org>
9452
9453         * XEmacs 21.2.33 is released.
9454
9455 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9456
9457         * make-src-depend: Allow dots in header file name.
9458
9459 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9460
9461         * mule-charset.h (struct charset_lookup): Add
9462         next_allocated_1_byte_leading_byte and
9463         next_allocated_2_byte_leading_byte.
9464         * mule-charset.c: Move above two variables so that those values
9465         will be dumped.
9466
9467 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9468
9469         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9470         when string length is zero.
9471         (find_charsets_in_emchar_string): Ditto.
9472
9473 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9474
9475         * lisp.h: extern Qdialog and Qmenubar.
9476
9477         * gui-x.c: added events.h.
9478                 also fixed typo which made the file uncompilable.
9479
9480         * general.c: Added Qmenubar and Qdialog
9481
9482 2000-04-28  Ben Wing  <ben@xemacs.org>
9483
9484         * frame-msw.c (mswindows_init_frame_1):
9485         * frame-msw.c (mswindows_mark_frame):
9486         * event-msw.c (mswindows_enqueue_dispatch_event):
9487         * console-msw.h:
9488         * console-msw.h (struct mswindows_frame):
9489         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9490         there are now three hash tables for callbacks.
9491         mswindows_enqueue_dispatch_event is no longer static.
9492
9493         * dialog-x.c (maybe_run_dbox_text_callback):
9494         * dialog-x.c (dbox_descriptor_to_widget_value):
9495         switch to new cons3 form for callbacks.
9496
9497         * glyphs-msw.c (mswindows_register_gui_item):
9498         * glyphs-msw.c (mswindows_widget_instantiate):
9499         * glyphs-msw.c (add_tree_item):
9500         * glyphs-msw.c (add_tab_item):
9501         new image instance parameter, so it can be passed to callback-ex.
9502         respect :callback-ex as well as :callback.
9503
9504         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9505         add :callback-ex.
9506
9507         * glyphs.c (print_image_instance):
9508         prettify, e.g. now prints widget type.
9509
9510         * gui-x.h:
9511         certain funs have new image instance parameter.
9512
9513         * gui.c:
9514         * gui.c (get_gui_callback):
9515         * gui.c (gui_item_add_keyval_pair):
9516         * gui.c (gui_item_init):
9517         * gui.c (gui_add_item_keywords_to_plist):
9518         * gui.c (mark_gui_item):
9519         * gui.c (gui_item_hash):
9520         * gui.c (gui_item_equal):
9521         * gui.c (copy_gui_item):
9522         * gui.c (syms_of_gui):
9523         recognize callback-ex in a number of places.
9524         also, fix the annoying "can't get out of yes-no dialog" bug.
9525
9526         * gui.h:
9527         * gui.h (struct Lisp_Gui_Item):
9528         recognize callback-ex in a number of places.
9529
9530         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9531         new parameter in button_item_to_widget_value.
9532
9533         * glyphs-x.c (x_update_widget):
9534         * glyphs-x.c (x_button_instantiate):
9535         * glyphs-x.c (x_button_update):
9536         * glyphs-x.c (x_progress_gauge_instantiate):
9537         * glyphs-x.c (x_edit_field_instantiate):
9538         * glyphs-x.c (x_combo_box_instantiate):
9539         * glyphs-x.c (x_tab_control_instantiate):
9540         * glyphs-x.c (x_label_instantiate):
9541         new image instance parameter in various places.
9542
9543         * event-Xt.c:
9544         * event-Xt.c (enqueue_Xt_dispatch_event):
9545         this fun gets exported.
9546
9547         * gui-msw.c:
9548         * gui-msw.c (mswindows_handle_gui_wm_command):
9549         handle both :callback and :callback-ex, and generate our own
9550         event because it's one of the callback-ex arguments.
9551
9552         * gui-x.c:
9553         * gui-x.c (popup_selection_callback):
9554         handle both :callback and :callback-ex, and generate our own
9555         event because it's one of the callback-ex arguments.
9556         * gui-x.c (button_item_to_widget_value):
9557         * gui-x.c (gui_items_to_widget_values_1):
9558         * gui-x.c (gui_item_children_to_widget_values):
9559         * gui-x.c (gui_items_to_widget_values):
9560         new image instance parameter in various places.
9561
9562         * fns.c (Freplace_list):
9563         fix small typo in doc string.
9564
9565         * lisp.h:
9566         declare enqueue_Xt_dispatch_event.
9567
9568 2000-04-28  Ben Wing  <ben@xemacs.org>
9569
9570         * buffer.c:
9571         * buffer.c (Frecord_buffer):
9572         * buffer.c (syms_of_buffer):
9573         delete record-buffer-hook.
9574
9575         * fns.c:
9576         * fns.c (Freplace_list):
9577         * fns.c (syms_of_fns):
9578         new primitive replace-list.
9579
9580         * frameslots.h:
9581         slot for old buffer-alist.
9582
9583         * lisp.h:
9584         exfun replace-list.
9585
9586         * redisplay.c:
9587         * redisplay.c (redisplay_frame):
9588         * redisplay.c (syms_of_redisplay):
9589         * redisplay.c (vars_of_redisplay):
9590         new hook buffer-list-changed-hook.
9591         call it.
9592
9593 2000-04-27  Ben Wing  <ben@xemacs.org>
9594
9595         * extents.h: extern in_modeline_generation.
9596
9597         * redisplay.c (generate_formatted_string_db): set
9598         in_modeline_generation.
9599
9600         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9601         flags if in modeline generation.  otherwise frame-modified-tick
9602         is ticked far too often.
9603         Declare in_modeline_generation.
9604
9605 2000-04-26  Ben Wing  <ben@xemacs.org>
9606
9607         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9608         option.
9609         (vars_of_emacs): add quick-build as an error-checking option.
9610         A bit kludgy, but there doesn't seem much point in creating
9611         a real var for this.
9612
9613         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9614
9615 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9616
9617         * redisplay.h (struct display_line): Add a new variable,
9618         line_continuation.
9619
9620         * redisplay.c (create_text_block): Set dl->line_continuation if
9621         the line continues.
9622         (create_string_text_block): Ditto.
9623         (regenerate_window_incrementally): Use line_continuation instead
9624         of searching continuation glyph.
9625         (add_margin_runes): Call add_glyph_rune.
9626         (add_glyph_rune): Handle margin glyph.
9627
9628 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9629
9630         * filelock.c (fill_in_lock_file_name):
9631         ANSIfy.
9632         Check for IS_ANY_SEP instead of '/'.
9633         (lock_file_1):
9634         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9635         Never check errno without first seeing that system call failed.
9636         (unlock_file): Add GCPRO.
9637         (Flock_buffer): Fix docstring.
9638         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9639
9640 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9641
9642         * sysdep.c (get_pty_max_bytes):
9643         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9644         strings longer than 252 bytes.
9645
9646         * md5.c: Unconditionally include ANSI header <limits.h>
9647
9648         * glyphs-x.c (convert_EImage_to_XImage):
9649         * lisp-union.h (union Lisp_Object):
9650         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9651
9652 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9653
9654         * filelock.c (current_lock_owner): Remove unused variable o, p.
9655
9656 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9657
9658         * callint.c: Remove multiply defined symbol Qlet
9659         (syms_of_callint): ditto.
9660
9661 2000-04-14  Andy Piper  <andy@xemacs.org>
9662
9663         * general.c (syms_of_general): add last-command, this-command, let
9664         and funcall.
9665
9666         * lisp.h: declare various symbols.
9667
9668         * glyphs.h: declare Qwidget_callback_current_channel;
9669
9670         * glyphs-widget.c (syms_of_glyphs_widget): add
9671         Qgui_callback_current_channel.
9672         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9673
9674         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9675         widget-callback-current-channel when invoking the interactive
9676         arg. Also bind last-command and next-command when invoking the
9677         widget updates.
9678         * gui-x.c (popup_selection_callback): ditto.
9679
9680         * gui.c (get_gui_callback): massage args so that we are always
9681         calling eval. This allows us to add our own variable bindings
9682         outside.
9683
9684         * glyphs-x.c (x_button_instantiate): use
9685         gui_items_to_widget_values since this is GC safe.
9686         (x_progress_gauge_instantiate): ditto.
9687         (x_edit_field_instantiate): ditto.
9688         (x_label_instantiate): ditto.
9689
9690         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9691         (emacs_Xt_event_widget_focus_out): new function
9692         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9693         focus.
9694         (emacs_Xt_event_add_widget_actions): new function. add focus
9695         functions as actions.
9696         (init_event_Xt_late): use it.
9697
9698 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9699
9700         * event-stream.c (Fdispatch_event): Doc fix.
9701
9702 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9703
9704         * postgresql.c: Remove all references to PQsetenv*.
9705
9706         * postgresql.h: Remove references to PGsetenvHandler object.
9707         * lrecord.h (lrecord_type): Ditto.
9708
9709 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9710
9711         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9712         real_heigh and real_width members, and accessor macros for these.
9713
9714         * glyphs-msw.c (init_image_instance_geometry): New function.
9715         (init_image_instance_from_dibitmap): Use it.
9716         (mswindows_resource_instantiate): Use it.
9717         (init_image_instance_from_xbm_inline): Use it.
9718         (mswindows_initialize_image_instance_mask): Use real bitmap
9719         geometry.
9720         (mswindows_create_resized_bitmap): Ditto.
9721         (mswindows_create_resized_mask): Ditto.
9722
9723         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9724         and bitmap to their surface size.
9725
9726 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9727
9728         * process-unix.c (unix_send_process): Guard against process MIA
9729         after Faccept_process_output.
9730
9731 2000-04-11  Ben Wing  <ben@xemacs.org>
9732
9733         * eval.c (unbind_to_hairy): fix brokenness introduced by
9734         nanosecond speed improvements.
9735
9736 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9737
9738         * sunplay.c (init_device): To play sounds correctly, the device
9739         apparently needs to be initialized at least once by XEmacs.  Make
9740         it so.
9741
9742 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9743
9744         * redisplay.c (add_margin_runes): Add text image glyph
9745           handling.
9746
9747 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9748
9749         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9750         gcc is newer than 2.5.
9751
9752 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9753
9754         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9755
9756         * fns.c (size_bit_vector):
9757         * alloc.c (size_vector):
9758         (make_vector_internal):
9759         (make_bit_vector_internal):
9760         (sweep_bit_vectors_1):
9761         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9762
9763 2000-04-06  Andy Piper  <andy@xemacs.org>
9764
9765         * gmalloc.c (malloc): undo previous change.
9766         (malloc): ditto.
9767         (free): ditto.
9768         (realloc): ditto.
9769
9770 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9771
9772         * line-number.c (buffer_line_number): Revert to former version.
9773
9774 2000-04-06  Andy Piper  <andy@xemacs.org>
9775
9776         * gmalloc.c (malloc): add error checking.
9777         (malloc): ditto.
9778         (free): ditto.
9779         (realloc): ditto.
9780
9781         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9782         button_item_to_widget_value arg.
9783
9784         * glyphs-x.c (x_button_instantiate): add extra
9785         button_item_to_widget_value arg.
9786         (x_progress_gauge_instantiate): ditto.
9787         (x_edit_field_instantiate): ditto.
9788         (x_label_instantiate): ditto.
9789
9790         * gui-x.c (gui_items_to_widget_values_1): add extra
9791         button_item_to_widget_value arg.
9792         (button_item_to_widget_value): add extra menu_item_p arg.
9793
9794         * gui-x.h: change signature of button_item_to_widget_value.
9795
9796         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9797         button_item_to_widget_value arg.
9798
9799 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9800
9801         * buffer.h (struct buffer): auto_save_modified should be long.
9802
9803 2000-04-05  Andy Piper  <andy@xemacs.org>
9804
9805         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9806         type.
9807         (button_query_geometry): give a little more room so that athena
9808         buttons fit.
9809
9810 2000-04-05  Andy Piper  <andy@xemacs.org>
9811
9812         * faces.c (complex_vars_of_faces): The widget face should inherit
9813         the font of the gui-element face.
9814
9815 2000-04-04  Andy Piper  <andy@xemacs.org>
9816
9817         * glyphs-x.c (x_button_update): new function. unconditionally
9818         update a button's state when the instance is dirty.
9819         (image_instantiator_format_create_glyphs_x): add x_button_update.
9820         (x_widget_instantiate): remove old resize cruft.
9821
9822 2000-04-02  Andy Piper  <andy@xemacs.org>
9823
9824         * frame.c (change_frame_size_1): The introduction of gutters means
9825         that we need to allow 0 as a potential frame dimension.
9826
9827 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9828
9829         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9830         image glyph if allow_cursor.
9831         (add_hscroll_rune): Don't allow cursor to border glyph.
9832         (create_text_block): Ditto.
9833
9834         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9835         text not in buffer.
9836         (redisplay_output_layout): Call ensure_face_cachel_complete for
9837         text image glyph.
9838
9839
9840 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9841
9842         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9843
9844         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9845         not in buffer
9846
9847         * redisplay-tty.c (tty_output_display_block): Delete the routine
9848         for text image glyph
9849         * redisplay-x.c (x_output_display_block): ditto
9850         * redisplay-msw.c (mswindows_output_display_block): ditto
9851
9852 2000-02-02  Mike Alexander  <mta@arbortext.com>
9853
9854         Note: Some of these were committed by accident as part of other
9855         patches.
9856
9857         * regex.c (regex_compile): Avoid compiler warnings.
9858
9859         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9860
9861         * nt.h: Declare term_ntproc correctly.
9862
9863         * nt.c: Remove incorrect declaration of get_home_directory which
9864         is declared correctly in lisp.h.
9865
9866         * keymap.c (get_keyelt): Avoid compiler warnings.
9867         (raw_lookup_key_mapper): Avoid compiler warnings.
9868
9869         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9870
9871         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9872
9873         * filemode.c (mode_string): Avoid compiler warnings.
9874
9875         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9876         avoid warning.
9877
9878         * events-mod.h: Undef some things that winuser.h defines differently.
9879
9880         * data.c (Faset): Avoid compiler warnings.
9881
9882         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9883
9884 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9885
9886         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9887         Fall through to simple beep on error.
9888         Replace "extern" by real header file.
9889
9890         * linuxplay.c: Use nativesound.h
9891         (play_sound_data): Return error code. Be less verbose on error.
9892
9893         * sunplay.c: Use nativesound.h
9894         (play_sound_data): Return error code. Be less verbose on error.
9895
9896         * ntplay.c: Use nativesound.h
9897         (play_sound_data): Return fake error code
9898
9899         * sgiplay.c: Use nativesound.h
9900         (play_sound_data): Return error code
9901
9902         * hpplay.c: Use nativesound.h, partially implement
9903         new error code. Break compilation until finished.
9904         (play_sound_data): error code.
9905
9906         * nativesound.h (play_sound_file):
9907           (play_sound_data): Prototype in new header.
9908
9909 2000-03-31  Andy Piper  <andy@xemacs.org>
9910
9911         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9912         for toggle and radio buttons.
9913         (image_instantiator_buttons): use it.
9914
9915 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9916
9917         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9918         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9919         found. Scrollbar event probably belonged to some old config.
9920
9921 2000-03-31  Andy Piper  <andy@xemacs.org>
9922
9923         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9924         than 1.
9925         (initialize_widget_image_instance): default layout to
9926         LAYOUT_HORIZONTAL rather than 0.
9927         (widget_instantiate): reverse the item list at the end rather than
9928         every iteration.
9929         (layout_layout): re-code for the border text at the front of the
9930         item list rather than at the end.
9931         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9932         provided by the user.
9933         (widget_query_geometry): comment.
9934
9935 2000-03-30  Andy Piper  <andy@xemacs.org>
9936
9937         * glyphs-widget.c (image_instantiator_layout): allow standard
9938         widget keywords in layouts.
9939
9940         * gutter.c (output_gutter): cope with nil gutter contents.
9941
9942         * frame.c (Fset_frame_properties): add gutter docs.
9943
9944 2000-03-29  Andy Piper  <andy@xemacs.org>
9945
9946         * toolbar-msw.c (TBSTYLE_FLAT): add.
9947         (mswindows_output_toolbar): minor fiddling.
9948
9949 2000-03-29  Andy Piper  <andy@xemacs.org>
9950
9951         * gutter.c (output_gutter): force gutter size recalculation if
9952         what we are trying to display won't fit.
9953         (update_gutter_geometry): new function. A per-gutter version of
9954         update_frame_gutter_geometry.
9955         (update_frame_gutter_geometry): use it.
9956         (redraw_exposed_gutter): add extra debugging output.
9957
9958 2000-03-28  Mike Alexander  <mta@arbortext.com>
9959
9960         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9961         (pdump_file_unmap): Implement it on Windows
9962         (pdump_file_get): Save alocated handles for pdump_file_unmap
9963
9964 2000-03-28  Andy Piper  <andy@xemacs.org>
9965
9966         * gui.c (get_gui_callback): treat Quit specially.
9967
9968 2000-03-27  Andy Piper  <andy@xemacs.org>
9969
9970         * glyphs.c (image_instantiate): be careful to check in the same
9971         way we assigned.
9972
9973 2000-03-27  Didier Verna  <didier@xemacs.org>
9974
9975         * config.h.in: define the proper SMART_INCLUDE macro.
9976         handle renaming of `foo_h_path' to `foo_h_file'.
9977
9978         * database.c: ditto.
9979
9980         * emacs.c: ditto.
9981
9982         * linuxplay.c: ditto.
9983
9984         * terminfo.c: ditto.
9985
9986         * tooltalk.h: ditto.
9987
9988 2000-03-27  Andy Piper  <andy@xemacs.org>
9989
9990         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9991         gets updated whenever the face might have changed.
9992
9993 2000-03-26  Mike Alexander  <mta@arbortext.com>
9994
9995         * dumper.c (pdump_resource_free): Fix the comment.
9996
9997 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9998
9999         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10000
10001 2000-03-22  Mike Alexander  <mta@arbortext.com>
10002
10003         * dumper.c: Include Windows headers on Windows
10004         (pdump_resource_free): Add a body to the function
10005         (pdump_load): exe_name -> exe_path and add some comments.
10006
10007 2000-03-25  Mike Alexander  <mta@arbortext.com>
10008
10009         * gui.c (copy_gui_item_tree): Return a value in all cases
10010
10011 2000-03-21  Didier Verna  <didier@xemacs.org>
10012
10013         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10014         lwlib/config.h.in.
10015         (SMART_INCLUDE): new macro.
10016         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10017         the proper location.
10018
10019         * postgresql.c: use it.
10020
10021         * inline.c: ditto.
10022
10023 2000-03-24  Andy Piper  <andy@xemacs.org>
10024
10025         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10026         do this.
10027
10028 2000-03-24  Andy Piper  <andy@xemacs.org>
10029
10030         * redisplay-output.c (compare_runes): use image_instance_changed
10031         to detect changes. Do not depend on glyphs_changed, only depend on
10032         dirtiness.
10033          (redisplay_output_layout): add debug messages.
10034         (compare_runes): ditto.
10035
10036         * glyphs.h: declare new functions.
10037         (struct Lisp_Image_Instance): remove percent and associated
10038         accessors.
10039
10040         * gui.h: declare new copying functions.
10041
10042         * gui.c (copy_gui_item_tree): new function.
10043         (copy_gui_item): new function.
10044         (gui_item_id_hash): revert to standard hash.
10045         (gui_item_hash): ditto.
10046         (gui_item_hash_internal): deleted.
10047         (mark_gui_item): mark value.
10048         (gui_item_add_keyval_pair): add value.
10049         (gui_item_init): ditto.
10050         (gui_add_item_keywords_to_plist): ditto.
10051         (gui_item_equal): ditto.
10052         (syms_of_gui): add Q_value.
10053
10054         * glyphs-x.c (x_progress_gauge_update): use pending items and
10055         value for setting the state.
10056         (x_update_widget): don't set items from pending here.
10057
10058         * glyphs-widget.c (update_widget): update items here.
10059         (progress_gauge_set_property): use items for storing value. Put
10060         new value in pending items.
10061
10062         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10063         items for new value. Convert percent -> value.
10064         (mswindows_tab_control_update): don't update items here.
10065
10066         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10067         (update_subwindow): ditto.
10068         (image_instance_changed): new function. Compare hash values and
10069         past and present widget items.
10070         (image_instantiate): We more careful about where we instantiate
10071         things.
10072         (image_instantiate): add error checking.
10073
10074         * gutter.c (syms_of_gutter): use -hook.
10075
10076 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10077
10078         * console-tty.c (Fset_console_tty_input_coding_system): Use
10079         Qkeyboard.
10080         (Fset_console_tty_output_coding_system): Use Qterminal.
10081         (tty_init_console): Use Qkeyboard and Qterminal.
10082
10083 2000-03-21  Ben Wing  <ben@xemacs.org>
10084
10085         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10086         From Mike Alexander <mta@arbortext.com>.
10087
10088 2000-03-21  Ben Wing  <ben@xemacs.org>
10089
10090         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10091         process brokenness.  Proper implementation to come.
10092         * callproc.c:
10093         Rename call-process-internal to old-call-process-internal.
10094         New impl. in process.el.
10095
10096 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10097
10098         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10099
10100 2000-03-20  Andy Piper  <andy@xemacs.org>
10101
10102         * glyphs.c (full_list_hash): make hashes of the same elements in
10103         different orders return different values.
10104
10105 2000-03-20  Martin Buchholz <martin@xemacs.org>
10106
10107         * XEmacs 21.2.32 is released.
10108
10109 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10110
10111         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10112         (DFC_MALLOC_USE_CONVERTED_DATA):
10113         Add aliasing-safe casts to allow use with char* or unsigned char*
10114         lvalues.
10115
10116         * eldap.c (Fldap_open):
10117         (Fldap_search_basic):
10118         (Fldap_add):
10119         (Fldap_modify):
10120         Make C++-compilable.
10121         Make sure GCPRO'ed variables are initialized.
10122         Use temp variables to avoid repeated calls to Flength.
10123
10124 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10125
10126         * sysfile.h:
10127         Make sure PATH_MAX is always defined.
10128         Include limits.h for PATH_MAX.
10129         Deprecate use of MAXPATHLEN.
10130
10131 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10132
10133         * emacs.c: Add reinit_vars_of_fileio.
10134         * symsinit.h: Add reinit_vars_of_fileio.
10135         * fileio.c (reinit_vars_of_fileio): New.
10136         * fileio.c (Fmake_temp_name):
10137         Initialize temp_name random number from microseconds to make
10138         collisions even less likely.  Initialize always at process startup
10139         time.  (make-temp-name) used to return the same file name twice in
10140         a row when PDUMP.
10141         Random stylistic fiddling.
10142         Comment fixes.
10143
10144 2000-03-20  Andy Piper  <andy@xemacs.org>
10145
10146         * glyphs.c (image_instantiate): allow text glyphs to be
10147         instantiated in the minibuffer window.
10148
10149 2000-03-19  Andy Piper  <andy@xemacs.org>
10150
10151         * glyphs.c (image_instance_hash): be careful about which items we
10152         hash on.
10153
10154         * glyphs-widget.c (tab_control_set_property): record into pending
10155         items rather than the actual items.
10156
10157         * glyphs-x.c (x_update_widget): use pending items to update with.
10158
10159         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10160         to update with.
10161
10162         * glyphs.c (mark_image_instance): mark pending items.
10163
10164         * window.c (Fset_window_configuration): record the buffer.
10165         (Fselect_window): totally revert previous change which breaks many
10166         things.
10167
10168 2000-03-18  Andy Piper  <andy@xemacs.org>
10169
10170         * glyphs-msw.c (mswindows_tab_control_update): force selected
10171         item.
10172
10173         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10174         window domain cache, otherwise we get inconsistencies at
10175         startup. There is something fishy at startup which can lead to the
10176         minibuffer being the selected window when the gutter content is
10177         instantiated.
10178
10179         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10180         gcpros.
10181         (parse_gui_item_tree_children): ditto.
10182         (parse_gui_item_tree_item): ditto.
10183
10184         * glyphs.c (Fupdate_widget_instances): return something.
10185
10186 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10187
10188         * window.c (Fselect_window): Undo 2000-03-17 change.
10189
10190 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10191
10192         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10193         against v7.0 libraries.  Insta-coredump city until the postgres
10194         folks fix it.
10195
10196 2000-03-17  Andy Piper  <andy@xemacs.org>
10197
10198         * faces.c (complex_vars_of_faces): don't give the widget face an
10199         inherited background pixmap.
10200
10201         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10202         selected item.
10203
10204         * event-stream.c (Fdispatch_non_command_events): return something.
10205
10206         * gutter.c (output_gutter): use widget face.
10207         (clear_gutter): ditto.
10208
10209         * NEWS: adjust again.
10210
10211         * window.c (Fselect_window): make sure this runs to completion to
10212         avoid oddities with Fset_window_configuration.
10213         (Fcurrent_window_configuration): in general do not save the
10214         minibuffer as the selected window.
10215
10216         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10217
10218 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10219
10220         * emacs.c (Frunning_temacs_p): Revert previous patch.
10221         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10222
10223 2000-03-16  Andy Piper  <andy@xemacs.org>
10224
10225         * glyphs-x.c (x_tab_control_update): if no widget values then
10226         return.
10227
10228         * NEWS: update for new features.
10229
10230         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10231         synthetic event to the native system.
10232         (reinit_vars_of_event_Xt): set force_event_pending to
10233         emacs_Xt_force_event_pending.
10234
10235         * events.h (struct event_stream): add force_event_pending.
10236
10237         * specifier.c (recompute_one_cached_specifier_in_window): add
10238         comment.
10239
10240         * redisplay.c (redisplay_frame): don't call
10241         update_frame_subwindows. Reset subwindow cachels when
10242         subwindows_changed, removing this was an optimization too far.
10243
10244         * redisplay-output.c (compare_runes): reorganize so that we catch
10245         glyph changes when we want them. Set optimize_output when this
10246         would help layouts.
10247         (redisplay_output_layout): remove frame_really_changed, use
10248         optimize_output instead.
10249
10250         * redisplay-msw.c (mswindows_output_display_block): reset
10251         optimize_output after outputting a glyph.
10252         * redisplay-x.c (x_output_display_block): ditto.
10253         * redisplay-tty.c (tty_output_display_block): ditto.
10254
10255         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10256         functions.
10257         (gutter_specs_changed): do specific gutter positions.
10258         (top_gutter_specs_changed): new function. Only update the
10259         specified gutter specs.
10260         (bottom_gutter_specs_changed): ditto.
10261         (left_gutter_specs_changed): ditto.
10262         (right_gutter_specs_changed): ditto.
10263
10264         * gui.c (gui_item_hash_internal): new function, does a real hash.
10265         (gui_item_id_hash): use it.
10266         (gui_item_hash): hash the eval'ed gui_item.
10267
10268         * gui-x.c (popup_selection_callback): send an eval event to call
10269         Fupdate_widget_instances.
10270
10271         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10272         to call Fupdate_widget_instances.
10273
10274         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10275         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10276
10277         * glyphs.c: (update_frame_subwindows): deleted.
10278         (Fupdate_widget_instances): new function for updating the dirty
10279         state of widgets that might have changed.
10280         (syms_of_glyphs): add Qupdate_widget_instances.
10281         (full_list_hash): hash a list completely.
10282         (image_instance_hash): use it for items and properties.
10283
10284         * frame-msw.c (mswindows_size_frame_internal): remove unused
10285         variable.
10286
10287         * faces.h (struct face_cachel): fix comment.
10288
10289         * event-stream.c (Fdispatch_non_command_events): new
10290         function. Process non-command events, forcing an event cycle
10291         beforehand.
10292         (syms_of_event_stream): declare.
10293         (event_stream_force_event_pending): new function. Force an event
10294         on the native event queue so that an event cycle will occur next
10295         time we check.
10296
10297         * event-msw.c:
10298         (struct ntpipe_shove_stream):
10299         (mswindows_enqueue_dispatch_event):
10300         (mswindows_dequeue_dispatch_event):
10301         (mswindows_cancel_dispatch_event):
10302         (mswindows_pump_outstanding_events):
10303         (mswindows_drain_windows_queue):
10304         (mswindows_handle_paint):
10305         (mswindows_wnd_proc):
10306         (mswindows_key_to_emacs_keysym):
10307         (get_process_input_waitable):
10308         (emacs_mswindows_delete_stream_pair): re-indent file.
10309         (mswindows_need_event): do not process further fds if the windows
10310         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10311         fixes the 100% cpu problem.
10312         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10313
10314 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10315
10316         * alloc.h: New.
10317         * dumper.h: New.
10318         * dumper.c: New.
10319
10320         * emacs.c: Moved dump file searching to dumper.c.
10321         (Frunning_temacs_p): Fixed.
10322
10323         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10324         last_lrecord_type_index_assigned.
10325
10326 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10327
10328         * symsinit.h: Added reinit parameter to init_console_stream
10329         declaration.
10330
10331         * lisp.h: Added file parameter to pdump_load declaration.
10332
10333         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10334         support.  Added dump file searching.
10335
10336         * config.h.in: Added EMACS_PROGNAME.
10337
10338         * console-stream.c (init_console_stream): Fix reinitialisation
10339         when running from temacs.
10340
10341         * alloc.c (pdump): Add id support.
10342         (pdump_load): Add file parameter and signature/id support.
10343
10344         * Makefile.in.in: Add full pdump support.
10345
10346 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10347
10348         * postgresql.c: Update documentation to reflect latest code
10349         status.
10350         (print_result): Show tuple counts in printed representation when
10351         appropriate.
10352         (Fpq_put_nbytes): MULE-ize.
10353         (Fpq_get_line_async): Ditto.
10354
10355 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10356
10357         * postgresql.c (Fpq_lo_import): Fix return value.
10358         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10359
10360 2000-03-13  Ben Wing  <ben@xemacs.org>
10361
10362         * alloc.c (pdump_load):
10363         Fix compile warning under mswin.
10364
10365 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10366
10367         * postgresql.c: Mule-ization, bug fixes.
10368         Use PG_CODING to encapsulate coding system name changes.
10369         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10370         (pg-coding-system): Create.
10371
10372         (Fpq_conn_defaults): Mule-ize.
10373         (Fpq_connectdb): Mule-ize & bug fix.
10374         (Fpq_connect_start): Mule-ize.
10375         (Fpq_set_client_encoding): Mule-ize.
10376         (Fpq_finish): Document `DEAD' connection status.
10377         (Fpq_clear): Ditto.
10378         (Fpq_pgconn): Mule-ize.
10379         (Fpq_exec): Mule-ize & bug fix.
10380         (Fpq_send_query): Ditto.
10381         (Fpq_get_result): Ditto.
10382         (Fpq_res_status): Mule-ize.
10383         (Fpq_result_error_message): Mule-ize.
10384         (Fpq_ntuples): fix comments.
10385         (Fpq_fname): Mule-ize.
10386         (Fpq_fnumber): Mule-ize.
10387         (Fpq_ftype): fix comments.
10388         (Fpq_get_value): Mule-ize.
10389         (Fpq_cmd_status): Ditto.
10390         (Fpq_cmd_tuples): Ditto.
10391         (Fpq_oid_value): Ditto.
10392         (Fpq_notifies): Ditto.
10393         (Fpq_lo_import): Ditto.
10394         (Fpq_lo_export): Ditto.
10395         (Fpq_get_line): Ditto.
10396         (Fpq_put_line): Mule-ize and bug fix.
10397         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10398
10399 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10400
10401         * postgresql.c (vars_of_postgresql): Mule-ize.
10402         (Fpq_conn_defaults): Ditto.
10403
10404 2000-03-12  Ben Wing  <ben@xemacs.org>
10405
10406         * alloc.c (Fmake_byte_code):
10407         * alloc.c (debug_string_purity_print):
10408         * alloc.c (pdump_backtrace):
10409         * alloc.c (pdump_get_indirect_count):
10410         * alloc.c (pdump_register_sub):
10411         * alloc.c (pdump_register_object):
10412         * alloc.c (pdump_register_struct):
10413         * alloc.c (pdump_dump_data):
10414         * alloc.c (pdump_reloc_one):
10415         Minor cleanups.
10416
10417         * console-msw.c:
10418         * console-msw.c (GetConsoleHwnd):
10419         * console-msw.c (msw_hide_console):
10420         * console-msw.c (msw_show_console):
10421         * console-msw.c (msw_ensure_console_buffered):
10422         * console-msw.c (msw_output_console_string):
10423         * console-msw.c (console_type_create_mswindows):
10424
10425         a) Added functions to manipulate the console window for use with
10426         shell support.
10427
10428         b) Added support for writing text to the console, which is now
10429         used under Windows when xemacs is not being run non-interactively,
10430         to write text that would otherwise be destined for stdout because
10431         under these circumstances, text written to stdout tends to
10432         disappear and not be seen.
10433
10434         * console-msw.h:
10435         * event-Xt.c:
10436         * event-Xt.c (x_event_to_emacs_event):
10437         * event-Xt.c (describe_event_window):
10438         * events-mod.h (XEMACS_MOD_CONTROL):
10439         * events.c:
10440         * events.c (Fmake_event):
10441         * events.c (character_to_event):
10442         * events.c (event_to_character):
10443         * events.c (format_event_object):
10444         * events.c (Fevent_modifiers):
10445         * events.h:
10446         * events.h (struct key_data):
10447         * events.h (struct button_data):
10448         * events.h (struct misc_user_data):
10449         * frame-x.c (Fcde_start_drag_internal):
10450         * frame-x.c (Foffix_start_drag_internal):
10451         * gpmevent.c (Freceive_gpm_event):
10452         * keymap.c:
10453         * keymap.c (bucky_sym_to_bucky_bit):
10454         * keymap.c (control_meta_superify):
10455         * keymap.c (make_key_description):
10456         * keymap.c (keymap_lookup_directly):
10457         * keymap.c (create_bucky_submap):
10458         * keymap.c (keymap_store):
10459         * keymap.c (define_key_check_and_coerce_keysym):
10460         * keymap.c (define_key_parser):
10461         * keymap.c (define_key_alternate_name):
10462         * keymap.c (Fdefine_key):
10463         * keymap.c (raw_lookup_key_mapper):
10464         * keymap.c (struct map_keymap_unsorted_closure):
10465         * keymap.c (map_keymap_unsorted_mapper):
10466         * keymap.c (map_keymap_sort_predicate):
10467         * keymap.c (map_keymap_sorted):
10468         * keymap.c (accessible_keymaps_mapper_1):
10469         * keymap.c (where_is_recursive_mapper):
10470         * keymap.c (describe_map_mapper):
10471         * keymap.c (describe_map_sort_predicate):
10472         * keymap.c (describe_map):
10473         * keymap.c (complex_vars_of_keymap):
10474         And a number of other files, the key modifier preprocessor
10475         constants that xemacs uses have names that conflict with constants
10476         defined under MS Windows for other purposes, so they were renamed
10477         to begin with the prefix XEMACS_. The variables that hold such
10478         modifiers were changed to consistently be of type int to fix
10479         various compile warnings.
10480
10481         * console.c (complex_vars_of_console):
10482         * device.c:
10483         * device-msw.c:
10484         * device-msw.c (mswindows_finish_init_device):
10485         * device-msw.c (msw_get_workspace_coords):
10486         * device-msw.c (mswindows_device_system_metrics):
10487         and various other files, added support for a new
10488         device property called offset-workspace which returns the position
10489         of the upper left corner of the workspace area and goes along with
10490         the existing size-workspace property.
10491
10492         * dialog-msw.c:
10493         * dialog-msw.c (push_bufbyte_string_as_unicode):
10494         * dialog-msw.c (mswindows_popup_dialog_box):
10495         Added support for XEmacs-style accelerator specifications in
10496         button text.  Note: I didn't add support for this under X Windows,
10497         and somebody needs to do this.
10498
10499         * dialog.c:
10500         * dialog.c (Fpopup_dialog_box):
10501         Documented the support for accelerators that was just mentioned.
10502
10503         editfns.c (get_home_directory): Changed behavior under Windows
10504         when HOME not defined; former behavior was irretrievably broken.
10505
10506         * emacs.c:
10507         * emacs.c (main_1):
10508         * emacs.c (main):
10509         * minibuf.c (clear_echo_area_internal):
10510         * minibuf.c (echo_area_append):
10511         * print.c:
10512         * print.c (std_handle_out_external):
10513         * print.c (std_handle_out_va):
10514         * print.c (fatal):
10515         * print.c (write_string_to_stdio_stream):
10516         * print.c (output_string):
10517         * print.c (debug_print):
10518         * print.c (debug_backtrace):
10519         * print.c (debug_short_backtrace):
10520         Cleaned up the code that prints text to stdout so that this can be
10521         changed to output into a console window instead under MS Windows,
10522         as described above.
10523
10524         * eval.c:
10525         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10526         * eval.c (internal_catch):
10527         * eval.c (unwind_to_catch):
10528         * eval.c (throw_or_bomb_out):
10529         * eval.c (condition_case_1):
10530         * eval.c (signal_1):
10531         * eval.c (check_error_state_sanity):
10532         * eval.c (call_with_suspended_errors_1):
10533         * eval.c (call_with_suspended_errors):
10534         * eval.c (reinit_vars_of_eval):
10535         Added code to catch throw loops and check for a pesky bug that may
10536         be gone now.
10537
10538         * event-msw.c:
10539         * event-msw.c (key_needs_default_processing_p):
10540         * event-msw.c (mswindows_wnd_proc):
10541         * event-msw.c (mswindows_modifier_state):
10542         * event-msw.c (emacs_mswindows_quit_p):
10543         * event-msw.c (vars_of_event_mswindows):
10544         a) Added support for using the alt key to select menu items as is
10545         standard under MS Windows.  This is controlled using the variable
10546         menu-accelerator-enabled, just like under X Windows.  There is an
10547         option on the options menu to turn this support on.  I really
10548         think that it should be on by default under Windows, but I'm not
10549         going to make this change yet.
10550
10551         b)  Added support for dynamic display size changes under Windows.
10552
10553         * event-stream.c:
10554         * event-stream.c (maybe_echo_keys):
10555         * event-stream.c (Fnext_event):
10556         * event-stream.c (command_builder_find_leaf):
10557         * event-stream.c (lookup_command_event):
10558         * event-stream.c (execute_command_event):
10559         * event-stream.c (pre_command_hook):
10560         * event-stream.c (post_command_hook):
10561         * event-stream.c (syms_of_event_stream):
10562         * event-stream.c (vars_of_event_stream):
10563         * event-stream.c (complex_vars_of_event_stream):
10564         * events.h (struct command_builder):
10565
10566         a) Tried to clean up a little bit the horribly written x-specific
10567         accelerator code that crept into this file.  I moved this code
10568         into menubar-x.c where it belongs. I also needed to move the
10569         command builder structure into the file events.h because it is
10570         accessed directly by this accelerator code.  What I didn't do, but
10571         which should be done at some point, is to properly abstract this
10572         code using device methods instead of the kludgy way that it
10573         currently hooks into the event code.
10574
10575         b) Added the lisp variables this-command-properties and
10576         last-command- properties, which should be used to synchronize two
10577         adjacent commands in preference to playing games with the variable
10578         this-command, which is typically what happens.
10579
10580         c) Added some slightly nasty code to hook into the lisp support
10581         for shifted- motion-key selection.  This is actually necessary for
10582         somewhat complicated reasons, which are described in
10583         simple.el. (NB: I think the proper thing would be to have the code
10584         that calls the pre and post command hooks also call out to generic
10585         lisp functions in simple.el, where all built-in stuff could be
10586         added.  I will think about this more.)
10587
10588         * event-unixoid.c (poll_fds_for_input):
10589         * lread.c (readchar):
10590         * redisplay-tty.c (tty_clear_frame):
10591         * redisplay-x.c (x_get_gc):
10592         * signal.c (interrupt_signal):
10593         And a whole bunch of other files: fixed up places that printed
10594         directly to stderr to instead call the function stderr_out so that
10595         the changes I made under Windows work correctly.
10596
10597         * filemode.c (mode_string):
10598         Warning fixes.
10599
10600         * frame-msw.c:
10601         * frame-msw.c (mswindows_size_frame_internal):
10602         Fixed the computation of frame size and position to keep the frame
10603         within the workspace area, rather than within the physical
10604         dimensions of the screen, so that the frame doesn't overlap window
10605         manager decorations, such as the start menu and toolbar, typically
10606         at the bottom of the screen.
10607
10608         * frame.c (vars_of_frame):
10609         Changed the default frame title format under MS Windows to consist
10610         of buffername-XEmacs, which is standard under MS Windows.  I think
10611         it might be a good idea to change this everywhere because I think
10612         it is superior to the current frame title format, but this is the
10613         kind of change that is likely to cause some people to get annoyed,
10614         so I'm not making it.
10615
10616         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10617
10618         * gui-msw.c (mswindows_handle_gui_wm_command):
10619         Fixed compile warnings.
10620
10621         * gui-x.c:
10622         * gui-x.c (strdup_and_add_accel):
10623         * gui-x.c (button_item_to_widget_value):
10624         * gui-x.h:
10625         Added code to automatically put an accelerator onto the beginning
10626         of menu items that don't have one as is now the standard, and is
10627         described more later.  Also fixed things so that the menu item
10628         name can be an evaluated expression, again a new standard.
10629
10630         * gui.c:
10631         * gui.c (gui_item_add_keyval_pair):
10632         * gui.c (make_gui_item_from_keywords_internal):
10633         * gui.c (gui_add_item_keywords_to_plist):
10634         * gui.c (gui_item_accelerator):
10635         * gui.c (gui_name_accelerator):
10636         * gui.c (gui_item_included_p):
10637         * gui.c (gui_item_display_flush_left):
10638         * gui.c (gui_item_display_flush_right):
10639         * gui.c (parse_gui_item_tree_item):
10640         * gui.c (parse_gui_item_tree_children):
10641         * gui.c (parse_gui_item_tree_list):
10642         Mule-ized.  Cleanup.  GCPRO addition.
10643
10644         * line-number.c (buffer_line_number):
10645         * lisp.h:
10646         * lisp.h (EMACS_INT_MAX):
10647         Added the manifest constant EMACS_INT_MIN corresponding to the
10648         existing constant EMACS_INT_MAX.  This is partially to fix compile
10649         warnings under Windows, and partly for cleanliness.
10650
10651         * menubar-msw.c:
10652         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10653         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10654         * menubar-msw.c (displayable_menu_item):
10655         * menubar-msw.c (populate_menu_add_item):
10656         * menubar-msw.c (populate_or_checksum_helper):
10657         * menubar-msw.c (populate_menu):
10658         * menubar-msw.c (update_frame_menubar_maybe):
10659         * menubar-msw.c (prune_menubar):
10660         * menubar-msw.c (msw_char_is_accelerator):
10661         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10662         * menubar-msw.c (mswindows_handle_wm_command):
10663         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10664         * menubar-msw.c (mswindows_handle_wm_initmenu):
10665         * menubar-msw.c (mswindows_update_frame_menubars):
10666         * menubar-msw.c (mswindows_free_frame_menubars):
10667         * menubar-msw.c (mswindows_popup_menu):
10668         Fixed a bug in handling accelerators where an extra character
10669         would be displayed in the menu item.  Also generalized the
10670         function displayable_menu_item because it is now used by the
10671         dialog box code as well.  And finally, added code in the functions
10672         that create the menubar to extract a list of accelerators for the
10673         top level menubar, which is used in the event code to determine
10674         whether a particular alt-key combination should be used to invoke
10675         a menu item, or should be passed through to access the standard
10676         XEmacs keymap binding for this key combination.
10677
10678         Much needed GCPROing.
10679
10680         * menubar-x.c:
10681         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10682         * menubar-x.c (menu_item_descriptor_to_widget_value):
10683         * menubar-x.c (restore_in_menu_callback):
10684         * menubar-x.c (x_popup_menu):
10685         * menubar-x.c (menu_move_up):
10686         * menubar-x.c (menu_move_down):
10687         * menubar-x.c (menu_move_left):
10688         * menubar-x.c (menu_move_right):
10689         * menubar-x.c (menu_select_item):
10690         * menubar-x.c (command_builder_operate_menu_accelerator):
10691         * menubar-x.c (menu_accelerator_junk_on_error):
10692         * menubar-x.c (command_builder_find_menu_accelerator):
10693         * menubar-x.c (Faccelerate_menu):
10694         * menubar.h:
10695         Moved a whole bunch of code here that was previously in
10696         event-stream.c as described above.  There is also code connected
10697         to the new standard of adding an accelerator to the beginning of
10698         menu items that don't have one as described above and below.
10699
10700         * menubar.c:
10701         * menubar.c (menu_parse_submenu_keywords):
10702         * menubar.c (Fmenu_find_real_submenu):
10703         * menubar.c (Fnormalize_menu_item_name):
10704         * menubar.c (syms_of_menubar):
10705         * menubar.c (vars_of_menubar):
10706         * menubar.c (complex_vars_of_menubar):
10707
10708         a) Cleaned up a bunch of documentation and improved it.
10709
10710         b) XEmacs now automatically adds an accelerator onto the beginning
10711         of any menu items that don't have one.  I did this because there
10712         will inevitably be some menu items on the main menubar that don't
10713         have accelerators on them because the package that adds that
10714         particular menu item hasn't yet been fixed up to have accelerators
10715         in them and it looked rather strange to have some items with and
10716         some items without accelerators, especially since even in items
10717         without accelerators, you can, at least under windows, still
10718         access the item through an accelerator corresponding to the first
10719         character in the item's name.  If people don't like this behavior,
10720         I can add a variable to turn it off optionally, but I'm not sure
10721         this is a good idea because we really do need to have accelerators
10722         on all of the menu items, and if a package doesn't like the
10723         accelerators being put on the first character, then it should put
10724         the accelerators where they belong.
10725
10726         c) I made a behavior change, which is that the descriptor that
10727         specifies the text of the menu item, which formerly was just a
10728         string, can now also be an evaluated expression.  This makes this
10729         descriptor parallel with all of the others, which could also be
10730         evaluated expressions.  This also obviates the need for the
10731         keyword :label, which was previously listed in the documentation
10732         as unimplemented, and which was for the same purpose.
10733
10734         d) GCPROing.
10735
10736         * ntproc.c:
10737         * ntproc.c (new_child):
10738         * ntproc.c (sys_spawnve):
10739         * ntproc.c (find_child_console):
10740         * ntproc.c (sys_kill):
10741         Fixed compile warnings.  By the way, this file should really go
10742         away entirely, and this will happen as soon as Kirill makes his
10743         final round of process cleanups, which affect the function
10744         call-process.
10745
10746         * process-nt.c:
10747         * process-nt.c (struct nt_process_data):
10748         * process-nt.c (find_process_from_pid):
10749         * process-nt.c (send_signal_the_nt_way):
10750         * process-nt.c (enable_child_signals):
10751         * process-nt.c (find_child_console):
10752         * process-nt.c (send_signal_the_95_way):
10753         * process-nt.c (nt_finalize_process_data):
10754         * process-nt.c (ensure_console_window_exists):
10755         * process-nt.c (nt_create_process):
10756         * process-nt.c (nt_kill_child_process):
10757         * process-nt.c (nt_kill_process_by_pid):
10758         * process-nt.c (nt_open_network_stream):
10759         * process-nt.c (vars_of_process_nt):
10760         Copied over code from Emacs 20.5 to correctly send signals to sub-
10761         processes under Windows 95.  Also added code to automatically
10762         create and hide console window when a sub-process is created under
10763         Windows 95, which obviates the need for the separate runemacs.exe
10764         executable, and finally implemented some variables that were
10765         implemented in Emacs 20.5, but previously not in XEmacs.  These
10766         include mswindows- start-process-share-console and
10767         mswindows-start-process-inherit-error-mode. (Both of these only
10768         apply to Windows 95.)
10769
10770         * regex.c (regex_compile): Fixed a compile warning.
10771
10772         * select-msw.c:
10773         * select-msw.c (mswindows_own_selection):
10774         * select-msw.c (mswindows_get_foreign_selection):
10775         * select-msw.c (mswindows_disown_selection):
10776         * select-msw.c (console_type_create_select_mswindows):
10777         * select-msw.c (syms_of_select_mswindows):
10778         Cleaned up the file and implemented the device method
10779         selection_exists_p, which had accidentally been left out.  Also
10780         removed four lisp functions that were remnants from before the
10781         time when the selection code was properly device abstracted.
10782         These functions are no longer needed because there are generic
10783         equivalents, and because they were added recently and don't exist
10784         in FSF Emacs, I don't think there's any problem with just deleting
10785         them.
10786
10787         * sysdep.c:
10788         * sysdep.c (sys_subshell):
10789         Fixed a compile warning, although in this case there's probably
10790         something wrong with this code, and it ought to be looked into
10791         more thoroughly by somebody who understands it.
10792
10793         * window.c:
10794         * window.c (Fwindow_text_area_height):
10795         * window.c (Fwindow_width):
10796         * window.c (Fwindow_full_width):
10797         * window.c (Fwindow_pixel_width):
10798         * window.c (debug_print_window):
10799         * window.c (syms_of_window):
10800         Added functions window-text-area-height and window-full-width,
10801         which are functions for returning various width and height
10802         characteristics of a window. (One of these functions is necessary
10803         for making the file dialog box work correctly, and the other one
10804         was added for completeness.)  Also added a table to the
10805         documentation for window-height which describes the entire scheme
10806         for accessing width and height characteristics of a window.
10807
10808 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10809
10810         * nt.c (fstat): Added a comment for another problem with
10811         non-encapsulated [f]stat(), reported by Adrian Aichner
10812         <aichner@ecf.teradyne.com>.
10813
10814 2000-03-11  Andy Piper  <andy@xemacs.org>
10815
10816         * window.c (make_dummy_parent): initialize subwindow instance
10817         cache.
10818         (Fset_window_configuration): zero extent_modiff.
10819
10820 2000-03-10  Andy Piper  <andy@xemacs.org>
10821
10822         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10823         more changes can be triggered.
10824         (Fredisplay_frame): ditto.
10825         (Fredraw_device): ditto.
10826         (Fredisplay_device): ditto.
10827         (redisplay_frame): make non-static.
10828         (redisplay_frame): call update_frame_gutter_geometry outside of
10829         display proper.
10830
10831         * gutter.h: declare update_frame_gutter_geometry.
10832
10833         * redisplay.h: declare redisplay_frame.
10834
10835         * gutter.c (update_frame_gutter_geometry): move geometry changes
10836         in update_frame_gutters here. Geometry changes can only occur
10837         outside of redisplay.
10838         (update_frame_gutters): remove geometry change code.
10839         (Fredisplay_gutter_area): make sure that we are in display when we
10840         update and that we have flushed any size changes.
10841
10842 2000-03-11  Andy Piper  <andy@xemacs.org>
10843
10844         * alloc.c (pdump_dump_data): remove i & count shadows.
10845
10846 2000-02-27  Mike Alexander  <mta@arbortext.com>
10847
10848         * sysdep.h: Declare pdump_read_file
10849
10850         * sysdep.c (pdump_read_file): New function
10851
10852         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10853         dump data
10854
10855 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10856
10857         * lrecord.h: add `lrecord_type_pgsetenv'.
10858
10859 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10860
10861         * symsinit.h: declare (vars|syms)_of* functions.
10862         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10863
10864 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10865
10866         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10867
10868         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10869         GCCs.
10870
10871         * emacs.c (main_1): Call postgres initialization code.
10872
10873         * postgresql.h: New file.  PostgreSQL RDBMS support.
10874         * postgresql.c: New file.
10875
10876 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10877
10878         * redisplay-output.c (redisplay_output_display_block): Disable
10879         redundant code.
10880
10881 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10882
10883         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10884         (Fcanna_henkan_next): Ditto.
10885         (Fcanna_bunsetu_henkou): Ditto.
10886         (Fcanna_henkan_kakutei): Ditto.
10887         (Fcanna_henkan_end): Ditto.
10888         (Fcanna_henkan_quit): Ditto.
10889         (Fcanna_henkan_next): Set retun value correctly.
10890         (c2mu): Use unsigned char instead of signed char.
10891
10892 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10893
10894         * emacs.c (main_1): Always call syms_of_gui.
10895         * inline.c: include gui.h
10896
10897 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10898
10899         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10900         converted to Lisp_Object.
10901         (Qtop_bottom): New variable.
10902         (syms_of_redisplay): Initialize it.
10903         * redisplay.h (Vvisible_bell): Ditto.
10904         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10905         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10906         only flash top and bottom.
10907
10908 2000-03-08  Andy Piper  <andy@xemacs.org>
10909
10910         * buffer.c (Frename_buffer): record new buffer name the right way.
10911
10912 2000-03-08  Andy Piper  <andy@xemacs.org>
10913
10914         * glyphs.c (update_subwindow): increase hash depth so that widget
10915         items get picked up properly.
10916
10917         * redisplay-output.c (compare_runes): increase hash depth so that
10918         widget items get picked up properly.
10919
10920 2000-03-08  Andy Piper  <andy@xemacs.org>
10921
10922         * gutter.c (output_gutter): add some debug.
10923
10924         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10925         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10926         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10927
10928         * redisplay-output.c (compare_runes): use display_hash to
10929         determine if glyphs really are not the same.
10930
10931         * glyphs.c (update_subwindow): check display_hash to see if
10932         anything really needs to be updated. If not then do
10933         nothing. Record the display_hash after updating.
10934         (image_instance_equal): compare the image_instance face also.
10935
10936 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10937
10938         * redisplay.h: Fix comment style.
10939
10940 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10941
10942         * consle-msw.h (struct mswindows_frame):
10943         Added new member paint_pending to indicate whether a WM_PAINT
10944         magic event has been queued for this frame.
10945
10946         * event-msw.c (mswindows_drain_windows_queue):
10947         Don't queue a WM_PAINT magic event if one is already queued.
10948         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10949
10950         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10951
10952 2000-03-07  Didier Verna  <didier@xemacs.org>
10953
10954         * dired.c: #include `regex.h' after `sysfile.h'.
10955
10956 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10957
10958         * sound.c (init_nas_sound): Fix compiler warning.
10959
10960         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10961         (FREE_STRUCT_P):
10962         (MARK_STRUCT_AS_FREE):
10963         (MARK_STRUCT_AS_NOT_FREE):
10964         Make `gcc -fstrict-aliasing' work properly.
10965
10966 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10967
10968         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10969         (mswindows_delete_device): Call CoUnnitialize().
10970
10971         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10972
10973 2000-02-25    <CraigL@DyCon.com>
10974
10975         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10976         <errno.h>.
10977
10978         * sysdep.c: This extern declaration for environ prevents MinGW
10979         from finding the variable in CRTDLL.DLL.
10980
10981         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10982         windows headers.
10983         (SHGFI_EXETYPE): ..
10984         (WM_MOUSEWHEEL): ..
10985         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10986         definitions.
10987         (MMRESULT): Removed, now defined in cygwin's windows headers.
10988         (TIMECAPS): ..
10989         (uid_t,gid_t,pid_t,ssize_t): ..
10990         (_timeb): Removed, MinGW defines both _timeb and timeb.
10991         (HAVE_H_ERRNO): Added.
10992         (HAVE_TZNAME): Added, configure is not detecting this.
10993
10994 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10995
10996         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10997         * syntax.c (syntax_match): Use it.
10998
10999         * cmds.c: Import auto-fill-chars from FSF Emacs.
11000         (Vauto_fill_chars): New variables.
11001         (internal_self_insert): Check Vauto_fill_chars.
11002         (vars_of_cmds):
11003         Declare auto-fill-chars as a Lisp variable and initialize it.
11004
11005 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11006
11007         * fileio.c (Fmake_symbolic_link):
11008         (Ffile_symlink_p):
11009         Run handlers even if local machine doesn't have symlinks.
11010
11011 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11012
11013         * event-msw.c (mswindows_drain_windows_queue):
11014         Don't generate paint magic events for non-XEmacs frames.
11015
11016 2000-03-05  Andy Piper  <andy@xemacs.org>
11017
11018         * redisplay.c (redisplay_frame): generate_displayable_area and
11019         friends assumes that we are not in GC, we therefore have to make
11020         sure that this doesn't happen.
11021
11022         * gutter.c (calculate_gutter_size): generate_displayable_area
11023         assumes that we are not in GC, we therefore have to make sure that
11024         this doesn't happen.
11025
11026 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11027
11028         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11029
11030 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11031
11032         * redisplay.c (regenerate_window): Make sure we set a sane value
11033         for end_pos even if we jump out of the loop.
11034         (regenerate_window): Answer Ben's question :-).
11035         (start_end_of_last_line): Add may_error argument.
11036         (start_of_last_line):
11037         (end_of_last_line): Pass may_error = 0.
11038         (end_of_last_line_may_error): New function.
11039         (pixel_to_glyph_translation): Use it, so we don't crash in
11040         event_to_glyph.
11041
11042 2000-03-04  Andy Piper  <andy@xemacs.org>
11043
11044         * window.h (struct window): add gutter_extent_modiff.
11045
11046         * window.c (allocate_window): zero out gutter_extent_modiff.
11047
11048         * redisplay.h: declare sync_display_line_structs.
11049
11050         * redisplay.c (add_glyph_rune): add a better comment.
11051
11052         * redisplay-output.c (sync_display_line_structs): made non-static.
11053         (compare_runes): remove unneccesary glyph cachel access.
11054
11055         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11056
11057         * gutter.c (output_gutter): don't output the gutter if extent
11058         changes only involve extents in buffers. use 4 sets of display
11059         lines.
11060         (gutter_extent_signal_changed_region_maybe): new function. Mark
11061         extents in gutters as changed.
11062         (update_frame_gutters): use 4 sets of display lines.
11063         (reset_gutter_display_lines): ditto.
11064         (free_frame_gutters): ditto.
11065         (redraw_exposed_gutter): force output of gutters.
11066
11067         * frame.h (struct frame): add 4 sets of gutter display lines.
11068
11069         * extents.c: (extent_changed_for_redisplay): signal changes to
11070         extents in strings in the gutter as well as extents in buffers.
11071
11072 2000-03-02  Andy Piper  <andy@xemacs.org>
11073
11074         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11075
11076         * frame.c (Fmake_frame): make sure the gutters get initialized
11077         after the frame is visible.
11078         (set_frame_selected_window): re-arrange compilation macros a
11079         little.
11080         (change_frame_size_1): mark gutters changed.
11081
11082         * device.c (Fset_device_class): mark gutters changed.
11083
11084 2000-03-01  Andy Piper  <andy@xemacs.org>
11085
11086         * window.c (window_top_frame_gutter_height): deleted.
11087         (window_bottom_frame_gutter_height): ditto.
11088         (window_left_frame_gutter_height): ditto.
11089         (window_right_frame_gutter_height): ditto.
11090         (window_top_gutter_height): don't use them.
11091         (window_bottom_gutter_height): ditto.
11092         (window_left_gutter_width): ditto.
11093         (window_right_gutter_width): ditto.
11094         (Fsplit_window): ditto.
11095         (Fwindow_pixel_edges): don't use border dimensions here.
11096
11097         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11098         (update_scrollbar_instance): ditto.
11099
11100         * redisplay.c (generate_modeline): don't take gutters into account.
11101         (generate_modeline): ditto.
11102         (redisplay_frame): small gutter display optimization.
11103
11104         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11105
11106         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11107         gutters into account.
11108
11109         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11110         for window position and type.
11111
11112         * gutter.c (get_gutter_coords): fix for frame gutters.
11113         (update_frame_gutters): update frame geometry if the gutters have
11114         changed.
11115         (init_frame_gutters): record current gutter geometries.
11116
11117         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11118         var.
11119         (mswindows_widget_instantiate): ditto.
11120
11121         * frame.h (struct frame): add current_gutter_bounds.
11122
11123         * frame.c (change_frame_size_1): position window and minibuffer
11124         appropriately taking into account the frame gutters.
11125
11126         * frame-x.c: (x_initialize_frame_size): take into account the
11127         frame gutters.
11128
11129 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11130
11131         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11132
11133 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11134
11135         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11136
11137 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11138
11139         * file-coding.c (reset_decoding_stream): Clear previous
11140         detection state when autodetect.
11141
11142 2000-02-29  Didier Verna  <didier@xemacs.org>
11143
11144         * extents.c (set_extent_glyph_1): don't require extents to be
11145         attached.
11146
11147 2000-02-27  Andy Piper  <andy@xemacs.org>
11148
11149         * gutter.c (Fset_default_gutter_position): don't default left and
11150         right gutter visibility to t.
11151         (Fset_default_gutter_position): run
11152         default-gutter-position-changed-hook.
11153         (syms_of_gutter): add default-gutter-position-changed-hook.
11154
11155 2000-02-26  Andy Piper  <andy@xemacs.org>
11156
11157         * specifier.c (Fmake_specifier): add gutter references.
11158
11159         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11160
11161         * lisp.h: declare Fvalid_plist_p.
11162
11163         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11164         as changed.
11165         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11166         well as its visibility so that it gets reconstructed.
11167         (construct_window_gutter_spec): new function. Construct a string
11168         to be displayed in the gutter from a plist of strings. Take care
11169         to only use elements that are declared as visible.
11170         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11171         WINDOW_GUTTER.
11172         (gutter_validate): allow plists of strings in the specifier.
11173         (gutter_specs_changed): construct the real_gutter from the gutter
11174         specs using construct_window_gutter_spec.
11175         (gutter_visible_validate): gutter-visible is a new specifier type.
11176         (Fgutter_visible_specifier_p): new function for the new specifier.
11177         (syms_of_gutter): declare gutter-visible and
11178         Fgutter_visible_specifier_p.
11179         (specifier_type_create_gutter): intitalize new gutter-visible
11180         specifier.
11181         (reinit_specifier_type_create_gutter): ditto.
11182         (specifier_vars_of_gutter): use new specifier type for gutter
11183         visibility.
11184         (init_frame_gutters): construct real_gutter correctly.
11185         (Fgutter_specifier_p): beef up documentation.
11186         (Fgutter_size_specifier_p): ditto.
11187
11188         * winslots.h: add real_gutter slots.
11189
11190 2000-02-25  Andy Piper  <andy@xemacs.org>
11191
11192         * device-msw.c: Be kind to older cygwin versions. From Raymond
11193         Toy <toy@rtp.ericsson.se>.
11194
11195         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11196         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11197
11198 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11199
11200         * elhash.c (MARK_OBJ): Practice macro hygiene.
11201
11202 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11203
11204         * miscplay.c: s/__inline__/inline/g;
11205         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11206         (get_device_compdc): INLINE ==> static inline
11207         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11208         find -name '*.h' | \
11209         xargs global-replace \
11210         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11211
11212 2000-02-25  Andy Piper  <andy@xemacs.org>
11213
11214         * window.c (window_top_frame_gutter_height): new function.
11215         (window_top_window_gutter_height): ditto.
11216         (window_top_gutter_height): use them.
11217         (window_bottom_frame_gutter_height): new function.
11218         (window_bottom_window_gutter_height): ditto.
11219         (window_bottom_gutter_height): use them.
11220         (window_left_window_gutter_width): new function.
11221         (window_left_frame_gutter_width): ditto.
11222         (window_left_gutter_width): use them.
11223         (window_right_window_gutter_width): new function.
11224         (window_right_frame_gutter_width): ditto.
11225         (window_right_gutter_width): use them.
11226         (window_pixel_height): new function. calulate window pixel height
11227         with frame gutter involvement.
11228         (Fsplit_window): calculate new sizes taking frame gutters into
11229         account.
11230         (window_char_height_to_pixel_height): don't include frame gutters.
11231         (window_char_height): use window_pixel_height.
11232         (window_pixheight): rename from window_pixel_height.
11233         (change_window_height): use it.
11234         (window_pixel_height_to_char_height): don't include frame gutters.
11235         (window_char_width_to_pixel_width): ditto.
11236
11237 2000-02-25  Andy Piper  <andy@xemacs.org>
11238
11239         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11240         if it is.
11241
11242 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11243
11244         * alloc.c (staticpro):
11245         (staticpro_nodump):
11246         (dumpstruct):
11247         (dumpopaque):
11248         (pdump_wire):
11249         (pdump_wire_list):
11250         (compact_string_chars):
11251         (pdump_dump_wired):
11252         Convert:  if (foo) abort();  ==>  assert (! foo);
11253
11254         * eldap.c (Fldap_search_basic):
11255         (Fldap_add):
11256         (Fldap_modify):
11257         (Fldap_delete):
11258         Fix compiler warnings, and possible crashes if (random) return
11259         value were to be used.
11260
11261 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11262
11263         * device-msw.c: Workaround ResetDC failure.
11264
11265         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11266         applying a devmode.
11267
11268         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11269         (mswindows_text_width): Do not start printer page.
11270
11271         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11272
11273         * glyphs-msw.c: Added image methods to msprinter console and
11274         msprinter-specific image instantiation.
11275
11276 2000-02-20  Mike Alexander  <mta@arbortext.com>
11277
11278         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11279         to avoid crashes when selection-sets-clipboard is on
11280         (mswindows_own_selection): ditto
11281
11282 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11283
11284         * glyphs-msw.c:
11285         * redisplay-msw.c (get_frame_dc):
11286         (get_frame_compdc):
11287         * console-msw.h:
11288         * device-msw.c (mswindows_init_device):
11289         (mswindows_delete_device):
11290         (msprinter_init_device):
11291         (msprinter_delete_device):
11292         * frame-msw.c (mswindows_init_frame_1):
11293         (mswindows_delete_frame):
11294         (msprinter_init_frame_3):
11295         (msprinter_delete_frame): Move compatible DC to device object from
11296         frame object, for both mswindows and msprinter. Only one at a time
11297         is needed, it is a real waste to have one per frame!
11298
11299 2000-02-23  Andy Piper  <andy@xemacs.org>
11300
11301         * glyphs.c: add dynamic width and height elements.
11302         (image_instance_equal): ditto.
11303
11304         * glyphs-widget.c (widget_query_geometry): calculate width and
11305         height dynamically if required.
11306         (initialize_widget_image_instance): initialize dynamic dimensions.
11307         (widget_instantiate): pick-up dynamic dimensions.
11308
11309         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11310         dynamic determination. Add appropriate macros.
11311
11312         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11313         dimensions safe.
11314         (WINDOW_GUTTER_SIZE): ditto.
11315         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11316
11317         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11318         inline.
11319         (get_frame_dc): ditto.
11320
11321         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11322         here.
11323
11324 2000-02-23  Martin Buchholz <martin@xemacs.org>
11325
11326         * XEmacs 21.2.31 is released.
11327
11328 2000-02-22  Ben Wing <ben@xemacs.org>
11329
11330         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11331
11332 2000-02-22  Andy Piper  <andy@xemacs.org>
11333
11334         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11335
11336 2000-02-21  Mike Sperber <mike@xemacs.org>
11337
11338         * .dbxrc:
11339         * .gdbinit:
11340         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11341         variables.
11342
11343 2000-02-21  Mike Sperber <mike@xemacs.org>
11344
11345         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11346
11347 2000-02-21  Martin Buchholz <martin@xemacs.org>
11348
11349         * XEmacs 21.2.30 is released.
11350
11351 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11352
11353         Performance hacking.
11354         * *.c (syms_of_*):
11355         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11356         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11357         * emacs.c (main_1):
11358         * lisp.h (DEFUN):
11359         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11360         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11361         * symeval.h (DEFVAR_SYMVAL_FWD):
11362         * symbols.c (guts_of_unbound_marker):
11363         Make all c_readonly objects also lisp_readonly and marked for life.
11364         * lrecord.h (struct lrecord_implementation):
11365         Document flags better.
11366         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11367         * lrecord.h (DECLARE_LRECORD):
11368         * lrecord.h (XSETRECORD):
11369         * lrecord.h (RECORDP):
11370         * lrecord.h (RECORD_TYPEP):
11371         * lrecord.h (RECORD_MARKER): New.
11372         * lrecord.h (error_check_*):
11373         * lrecord.h (CONCHECK_NONRECORD):
11374         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11375         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11376         * lrecord.h (set_lheader_implementation):
11377         * lrecord.h (enum lrecord_type): New.
11378         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11379         * alloc.c (disksave_object_finalization_1):
11380         * alloc.c (mark_object):
11381         * alloc.c (lrecord_type_index):
11382         * alloc.c (tick_lcrecord_stats):
11383         * alloc.c (Fgarbage_collect):
11384         * alloc.c (init_alloc_once_early):
11385         * alloc.c (pdump_load):
11386         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11387         * alloc.c (lrecord_type_index): Delete.
11388         Make lisp object type indexes be constant.
11389           Makes (byte-compile) 5% faster.
11390         Put all marker functions into their own array.
11391           Makes (garbage-collect) 5% faster.
11392         Optimize SYMBOL_VALUE_MAGIC_P.
11393           Makes (byte-compile) 2-3% faster.
11394         * config.h.in (gc_checking_assert): New.
11395         * alloc.c: Use gc_checking_assert().
11396         * .dbxrc: Make compatible with new object type implementation.
11397         * .gdbinit: Make compatible with new object type implementation.
11398         * alloc.c: Delete all symbols defined only for debugging, such as
11399         Lisp_Type_Vector and lrecord_charset.
11400
11401 2000-02-21  Andy Piper  <andy@xemacs.org>
11402
11403         * gui-msw.c (Fmswindows_shell_execute): fix file location
11404         problems.
11405
11406         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11407         unshowing so that set_window_buffer doesn't undo
11408         kill_buffer_hook's hard work.
11409
11410         * glyphs-widget.c (tab_control_query_geometry): don't count the
11411         first item when calculating geometry.
11412
11413         * glyphs.c (map_subwindow): remove redundant code.
11414         (update_frame_subwindows): be more circumspect about when to
11415         update subwindows.
11416
11417         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11418         when items haven't changed. Update faces if faces have changed as
11419         well as just the widget face.
11420         (x_tab_control_update): Update faces if faces have changed as well
11421         as just the widget face.
11422
11423 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11424
11425         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11426         registration.
11427         (build_syscolor_string): Use mswindows_color_to_string to try to
11428         get a named color.
11429         (mswindows_device_system_metrics): Reverse the foreground and
11430         background colors so that they match the documentation.
11431
11432         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11433         they match the default Windows palette.
11434         (mswindows_color_to_string): New function.
11435
11436 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11437
11438         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11439
11440 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11441
11442         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11443         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11444
11445         * symbols.c (init_symbols_once_early): Removed obsolete
11446         DATA_SEG_BITS related kludge.
11447         (defvar_magic): Ditto.
11448
11449         * malloc.c: Removed obsolete DATA_SEG_BITS
11450         * ralloc.c: Ditto.
11451         * mem-limits.h: Ditto.
11452
11453         * Makefile.in.in: Removed obsolete HAVE_SHM
11454         * emacs.c: Ditto.
11455
11456 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11457
11458         *  device-msw.c (mswindows_delete_device): Free DDE string
11459         handles.
11460
11461 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11462
11463         * keymap.c (get_keyelt):
11464         * unexnt.c (unexec):
11465         * vm-limit.c (memory_warnings):
11466         * ntheap.c (recreate_heap):
11467         * ntheap.h (UNINIT_PTR):
11468         * select-msw.c (Fmswindows_get_clipboard):
11469         (Fmswindows_set_clipboard):
11470         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11471         * objects-msw.c:
11472         * menubar-msw.c (displayable_menu_item):
11473         * glyphs-msw.c:
11474         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11475         * sysdep.c (sys_subshell):
11476         * process-nt.c (nt_create_process):
11477         * nt.c (normalize_filename):
11478         (dostounix_filename):
11479         (unixtodos_filename):
11480         * ntproc.c (win32_executable_type):
11481         * ntplay.c (play_sound_data_1):
11482         (play_sound_file):
11483         * editfns.c (get_home_directory):
11484         * event-msw.c (struct winsock_stream):
11485         (mswindows_dde_callback):
11486         * device-msw.c (msprinter_init_device):
11487         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11488
11489         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11490         mswindows_clear_toolbar were swapped!
11491
11492         * objects-msw.c:(colormap_t):
11493         (fontmap_t):
11494         * emacs.c (struct standard_args): Fixed const jumble.
11495
11496         * glyphs-widget.c (update_widget): Fixed comparison notation.
11497
11498         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11499
11500         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11501         __declspec(noreturn) syntax.
11502
11503 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11504
11505         * eldap.c (Fldap_open):
11506         (Fldap_search_basic):
11507         (Fldap_add):
11508         (Fldap_modify):
11509         Use new coding system conversion macros.
11510
11511 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11512
11513         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11514
11515 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11516
11517         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11518         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11519
11520         * eldap.c (Qadd, Qreplace): New constant symbols
11521         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11522         interruptions by XEmacs signals
11523         Remove unnecessary calls to slow_down_interrupts and
11524         speed_up_interrupts
11525         (Fldap_search_basic): Renamed from Fldap_search_internal
11526         Added new optional parameter VERBOSE that triggers the
11527         display of progress messages
11528         Remove unnecessary calls to slow_down_interrupts and
11529         speed_up_interrupts
11530         LDAP result code analysis rewritten
11531         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11532         (syms_of_eldap): Define the new symbols and functions
11533
11534
11535 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11536
11537         * realpath.c: Determine PATH_MAX maximally portably.
11538
11539         * insdel.c (bytecount_to_charcount): Optimize.
11540         The function used to be optimized for entirely ASCII sequences.
11541         Now it is optimized for successive characters from the same
11542         charset.  This also wins big for _mostly_ ASCII sequences.
11543
11544         * fileio.c (Ffile_truename): convert return from realpath() using
11545         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11546         - Rewrite GCPROing slightly.
11547
11548         * sysdep.c (sys_open): Do filename conversion, like all other
11549         sys_* functions.  Fixes bug:
11550         (let ((file-name-coding-system 'iso-8859-2))
11551            (write-region x y latin2-name))
11552         ==> writes filename using internal encoding.
11553
11554 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11555
11556         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11557         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11558         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11559         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11560         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11561         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11562         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11563         (CONST_IF_NOT_DEBUG): Delete.
11564         * alloc.c (this_one_is_unmarkable): Delete.
11565         (mark_object): Don't check for this_one_is_unmarkable. Use the
11566         c_readonly flag instead.
11567         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11568
11569 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11570
11571         * event-msw.c (mswindows_drain_windows_queue):
11572         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11573         away redundant repaint events.
11574
11575 2000-02-17  Andy Piper  <andy@xemacs.org>
11576
11577         * redisplay.h: declare mark_redisplay_structs.
11578
11579         * redisplay.c (redisplay_window):
11580         (redisplay_frame): don't check subwindows_state_changed.
11581         (mark_redisplay): mark gutters here.
11582
11583         * glyphs.c: (instantiate_image_instantiator): always layout if we
11584         haven't done so already.
11585         (allocate_image_instance): don't mark as dirty.
11586         (update_subwindow): bind inhibit_quit.
11587
11588         * gutter.c (mark_gutters): new function.
11589
11590         * glyphs-x.c (x_update_widget): Always resize to get round a
11591         widget bug.
11592
11593         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11594         breaking absolutely everything.
11595
11596         * gutter.h: declare mark_gutters.
11597
11598 2000-02-16  Martin Buchholz <martin@xemacs.org>
11599
11600         * XEmacs 21.2.29 is released.
11601
11602 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11603
11604         * fns.c (size_bit_vector): Fix computation of the size.
11605
11606 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11607
11608         * *.[ch]: Change CONST to const globally.
11609         find -name '*.[ch]' | \
11610         xargs global-replace \
11611         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11612         - Remove vestigial references to CONST_IS_LOSING
11613
11614 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11615
11616         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11617         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11618         events instead of dispatching them directly.
11619         (mswindows_handle_paint): New function to do repainting.
11620         (mswindows_wnd_proc):
11621         (emacs_mswindows_handle_magic_event): Call above function.
11622
11623 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11624
11625         * objects-msw.c (mswindows_create_font_variant): Return the new
11626         font handle.
11627         (initialize_font_instance): Get font metrics from the underlined
11628         variant of the font to cope with the case where the underlined
11629         font has a bigger descent.
11630
11631 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11632
11633         * gui.c (gui_item_accelerator): Return the first underlined
11634         character in item name.
11635
11636 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11637
11638         * lisp.h: Added Qprinter.
11639
11640         * general.c (syms_of_general): Initialized it.
11641
11642         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11643         (get_frame_dc):
11644         (get_frame_compdc): Made inline.
11645
11646         * console.h (struct console_methods): Added eject_page method.
11647
11648         * frame.h: Added FRAME_DISPLAY_P and friends.
11649         Aligned backslahes in many macros in more readable fashion.
11650         Added page_number to struct frame, and an accessor macro
11651         for it.
11652
11653         * defice.h: Added DEVICE_DISPLAY_P and friends.
11654
11655         * device.c (Fdevice_printer_p): Used these.
11656
11657         * frame.c (allocate_frame_core): Initialize page number.
11658         (Fprint_job_page_number):
11659         (Fprint_job_eject_page): Implemented.
11660
11661         * frame-msw.c (msprinter_eject_page): Added method.
11662         (msprinter_start_page): Added.
11663
11664         * window.c (Fwindow_truncated_p): Fixed docstring.
11665         (Fwindow_last_line_visible_height): Implemented.
11666
11667 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11668
11669         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11670
11671 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11672
11673         * syntax.c (scan_words): Always advance at least one character.
11674
11675 2000-02-13  Andy Piper  <andy@xemacs.org>
11676
11677         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11678         to make sure the glyph is in the cachels.
11679
11680         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11681         global image instance flag.
11682         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11683         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11684
11685         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11686         (Fset_image_instance_property): mark layout as changed.
11687         (invalidate_glyph_geometry_maybe): mark layout as changed.
11688         (glyph_width): use new NEEDS_LAYOUT macro.
11689         (glyph_ascent): ditto.
11690         (glyph_descent): ditto.
11691         (glyph_height): ditto.
11692         (image_instance_layout): mark layout as clean after laying out.
11693         (update_subwindow): don't mark layout as clean here.
11694
11695         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11696         should no longer be needed.
11697
11698         * glyphs-x.c (x_update_widget): sanitize asserts.
11699         (x_finalize_image_instance): sanitize assignment to widgets.
11700
11701         * glyphs-widget.c (widget_instantiate): don't need to clear the
11702         layout flag here.
11703
11704 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11705
11706         * sysdep.c (getcwd): Use standard prototype.
11707         * sysdep.h (getcwd): Use standard prototype.
11708
11709         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11710         (sequence, start, end).
11711         Remove redundant type checking.
11712         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11713         view of `caller-protects') to avoid a crash where the real fix was
11714         found elsewhere.
11715
11716 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11717
11718         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11719
11720         * s/sol2.h: Remove feature macro initialization.
11721
11722         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11723         (vector_hash): New.  Code from internal_hash.
11724         * lrecord.h:
11725         Fix up allocation subsystem comments.
11726
11727         * config.h.in: Add __EXTENSIONS__ for Solaris.
11728
11729         * systime.h (EMACS_GETTIMEOFDAY): New.
11730         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11731         Remove Solaris-specific code.
11732         Use void* for the (ignored) second arg for gettimeofday().
11733
11734         * elhash.c (hash_table_hash): Implement it, finally.
11735         * elhash.c:  Use hashcode_t.
11736
11737         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11738         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11739
11740         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11741         * fns.c (size_bit_vector):
11742         * alloc.c (size_vector):
11743         (make_vector_internal):
11744         (make_bit_vector_internal):
11745         (sweep_bit_vectors_1):
11746         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11747
11748 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11749
11750         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11751         Include strings.h to avoid warnings for bzero and strcasecmp.
11752
11753 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11754
11755         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11756         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11757
11758         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11759         sequence.
11760
11761 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11762
11763         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11764         use a value field instead.
11765         (symbol_value_forward_forward): Use value field.
11766         (DEFVAR_SYMVAL_FWD): Use value field.
11767         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11768         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11769         (DEFVAR_CONST_INT): Ditto.
11770         (DEFVAR_BOOL): Ditto.
11771         (DEFVAR_CONST_BOOL): Ditto.
11772         (DEFVAR_INT_MAGIC): Ditto.
11773         (DEFVAR_BOOL_MAGIC): Ditto.
11774
11775         * symbols.c (guts_of_unbound_marker): Use value field.
11776         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11777         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11778
11779         * lisp.h: Declare dumpopaque and noninteractive1.
11780
11781         * alloc.c (dumpopaque): Added.
11782         (pdump_dump_opaquevec): Added.
11783         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11784         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11785         noninteractive.
11786
11787 2000-02-10  Andy Piper  <andy@xemacs.org>
11788
11789         * glyphs.c (image_instance_layout): if the size changes, mark it
11790         as such.
11791
11792         * redisplay-output.c (redisplay_output_layout): Update the
11793         subwindow here.
11794         (redisplay_output_subwindow): ditto.
11795
11796         * glyphs.c (update_subwindow): make sure we reset flags for
11797         layouts as well as everything else.
11798
11799         * glyphs-widget.c (layout_layout): don't need to set the instances
11800         dimensions here.
11801
11802 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11803
11804         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11805         not HAVE_DLOPEN, which is a lower-level thing.
11806
11807         * .cvsignore: Ignore gmon.out
11808
11809 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11810
11811         * .cvsignore: Ignore portable dumper xemacs.dmp file
11812
11813 2000-02-09  Andy Piper  <andy@xemacs.org>
11814
11815         * redisplay-output.c (redisplay_output_layout): be more clever
11816         about when we output based on the changed flags.
11817
11818         * glyphs.h (struct image_instantiator_methods): add update_method.
11819         (struct Lisp_Image_Instance): add changed flags. Declare new
11820         macros for manipulating them.
11821
11822         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11823         (image_instance_parent_glyph): find an image_instance's parent
11824         glyph or image_instance.
11825         (image_instance_layout): mark the size as changed.
11826         (set_image_instance_dirty_p): new function. mark an image
11827         instance, plus all of its parents, as dirty.
11828         (Fset_image_instance_property): use it.
11829         (Fglyph_animated_timeout_handler): use it.
11830         (update_subwindow): call update_widget and device methods for
11831         update_subwindow. Mark all changed flags as clean.
11832         (Fresize_subwindow): mark size as changed.
11833
11834         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11835         failures.
11836         (x_update_subwindow): only resize subwindows here.
11837         (x_update_widget): new function. Update all changed properties of
11838         a widget.
11839         (x_resize_subwindow): deleted.
11840         (x_widget_set_property): deleted.
11841         (x_progress_gauge_set_property): deleted.
11842         (x_progress_gauge_update): new function. Implement recorded
11843         changes.
11844         (x_tab_control_update): ditto.
11845         (x_tab_control_set_property): deleted.
11846         (console_type_create_glyphs_x): declare new functions.
11847         (image_instantiator_format_create_glyphs_x): ditto.
11848
11849         * glyphs-widget.c (widget_set_property): mark text changed.
11850         (update_widget): new function. Update properties of a widget.
11851         (widget_instantiate): for layouts make sure we set their
11852         children's parent correctly.
11853         (tab_control_set_property): new function. Record changes that will
11854         take place under redisplay's control.
11855         (progress_gauge_set_property): ditto.
11856         (image_instantiator_progress_guage): declare new functions.
11857         (image_instantiator_tab_control): ditto.
11858
11859         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11860         now.
11861         (mswindows_update_widget): new function. Update all properties on
11862         a widget that have changed.
11863         (mswindows_button_update): new function. Update a button's set
11864         state.
11865         (mswindows_tab_control_update): new function. Update the items in
11866         a tab.
11867         (mswindows_tab_control_set_property): deleted.
11868         (mswindows_progress_gauge_update): new function. Update the
11869         progress gauge's progress.
11870         (mswindows_widget_set_property): deleted. This is all done
11871         asynchronously now.
11872         (mswindows_progress_gauge_set_property): ditto.
11873         (console_type_create_glyphs_mswindows): declare new methods.
11874         (image_instantiator_format_create_glyphs_mswindows): ditto.
11875
11876         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11877         (msprinter_set_frame_properties): ditto.
11878
11879         * console.h (struct console_methods): Add update_widget_method.
11880
11881 2000-02-09  Andy Piper  <andy@xemacs.org>
11882
11883         * gui-msw.c (Fmswindows_shell_execute): Make
11884         mswindows-shell-execute industrial strength.
11885
11886 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11887
11888         * lrecord.h: Make macro argument `props' match member function `plist'.
11889         * fns.c (Fget):
11890         * fns.c (Fput):
11891         * fns.c (Fremprop):
11892         * fns.c (Fobject_plist):
11893         * alloc.c:
11894         * symbols.c:
11895         Object property list frobbing cleanup.
11896         - Allow any lisp object (compared with `eq'), not just symbols, as
11897           keys in object plists.
11898         - Move symbol plist frobbing into symbols.c, where it belongs.
11899         - Move string plist frobbing into alloc.c, where it belongs.
11900         - Everything's an lrecord now, so no need to test for symbolp, etc.
11901         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11902
11903         * extents.c: Reorder code to remove declarations.
11904
11905         * frame.h (store_in_alist): Remove useless declaration.
11906
11907 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11908
11909         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11910         * config.h.in: Add HAVE_XCONVERTCASE.
11911
11912 2000-02-07  Andy Piper  <andy@xemacs.org>
11913
11914         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11915         it breaks many things.
11916
11917 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11918
11919         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11920         actually can start a common comment type.
11921         * src/syntax.h (SYNTAX_END_P): ditto for end.
11922
11923 2000-02-07  Martin Buchholz <martin@xemacs.org>
11924
11925         * XEmacs 21.2.28 is released.
11926
11927 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11928
11929         * event-Xt.c (x_keysym_to_character): New.
11930         (maybe_define_x_key_as_self_inserting_character): New.
11931         (x_has_keysym): New.
11932         Auto-define all keys on the keyboard as self-insert-key.
11933
11934 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11935
11936         * menubar.c (vars_of_menubar): A small code simplification.
11937
11938         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11939
11940         * ExternalShell.c:
11941         * ExternalClient.c:
11942         * EmacsShell-sub.c:
11943         * EmacsManager.c:
11944         * EmacsFrame.c:
11945         Use consistent style for specifying X resources.
11946
11947         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11948         This makes (dontusethis-set-symbol-value-handler) actually usable.
11949
11950         * lrecord.h (lrecord_decription_type):
11951         * alloc.c (pdump_register_sub):
11952         (pdump_dump_data):
11953         (pdump_reloc_one):
11954         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11955         Comply with XEmacs coding style.
11956         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11957         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11958
11959         * keymap.c (Faccessible_keymaps):
11960         Make (accessible-keymaps map "\C-h") do the Right Thing.
11961         Make (accessible-keymaps map []) do the Right Thing.
11962         Make (accessible-keymaps map "") do the Right Thing.
11963         (check_keymap_definition_loop): New function.
11964         (keymap_store_internal): Keep luser from shooting self in foot,
11965           via (define-key ctl-x-4-map "p" global-map).
11966         Remove fullness slot from struct Lisp_Keymap, since hash tables
11967         are now reliable.
11968         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11969
11970 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11971
11972         * redisplay.c (init_redisplay): Fix small memory leak.
11973         * elhash.h:
11974         * elhash.c (pdump_reorganize_hash_table):
11975         Rename from reorganize_hash_table. Change prototype.
11976         Reuse the original memory for hentries.  Save 100k.
11977         * alloc.c (PDUMP_READ): new macro.
11978         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11979         * alloc.c: No need to #ifndef before #undef.
11980
11981         * print.c: Allow debug_print() to print readably by modifying
11982         debug_print_readably.  Use consistent variable names.
11983
11984         * .dbxrc: Try to get things to work even if stopped in a function
11985         without source available by explicitly specifying source files.
11986 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11987
11988         * unexnt.c (_start): Removed bogus code which caused loading heap
11989         from differrent executable file.
11990         Removed bogus assignment to _fmode, which caused inconsistencies.
11991
11992 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11993
11994         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11995         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11996         Do not preliminary `#define signal sigset'.
11997
11998         * systime.h: Do not prototype environ on windows nt and cygwin,
11999         this conflicts with system header.
12000
12001         * syssignal.h: Use correct define for WINDOWSNT
12002
12003         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12004         with system header.
12005
12006         * sysdep.c (near start of file): Fixed commentary and rearranged
12007         ifdefs in readable order.
12008         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12009         (start_of_text):
12010         (end_of_text):
12011         (end_of_data): Do not compile in if using PDUMP.
12012
12013         * symsinit.h: Prototyped vars_of_nt().
12014
12015         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12016         (find_child_console): Use it.
12017         (sys_kill): Use it.
12018
12019         * ntheap.h: Do not extern os_subtype.
12020
12021         * ntheap.c (cache_system_info): Do not cache unneeded:
12022         nt_major_version, nt_minor_version and os_subtype.
12023         (recreate_heap): Do not compile in when PDUMPing.
12024
12025         * nt.c (geteuid and friends): Use the new varibale
12026         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12027         (init_user_info): Removed the above mentioned hackery.
12028         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12029         stat has been fixed in the C runtime.
12030         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12031
12032         * file-coding.c (struct file_coding_dump): Do not define
12033         ucs_to_mule_table in the struct if not MULE.
12034         (struct struct lrecord_description fcd_description_1): Do not dump
12035         the above.
12036
12037         * emacs.c (main_1): Call vars_of_nt().
12038         (right before Fdump_emacs_data): Don't need lastfile if using both
12039         portabe dumper and system malloc.
12040
12041         * alloc.c (Fmemory_limit): Conditionalized out.
12042         (pdump): Use OPEN_BINARY for the portable dump file.
12043         (pdump_load): Ditto.
12044
12045 2000-02-02  Mike Alexander  <mta@arbortext.com>
12046
12047         * nt.c (convert_time): Set tm_isdst before calling mktime and
12048         avoid calling it at all if the compiler supports 64 bit integers.
12049         Also initialize utc_base_ft before using it.
12050
12051 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12052
12053         * frame.c (change_frame_size_1): Take f->internal_border_width
12054         into consideration when calculating the width of the frame.
12055
12056 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12057
12058         * window.c (frame_min_height):
12059         (frame_size_valid_p):
12060         (frame_pixsize_valid_p): Added.
12061         (check_frame_size): Generalized.
12062
12063         * window.h: Prototyped the above.
12064
12065         * lisp.h:
12066         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12067         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12068         Deleted Vwin32_* and Vbinary_process_* unused variables.
12069
12070         * device-msw.c (msprinter_init_device): Do not get printer font
12071         list; Added DEVMODE functions.
12072
12073         * frame-msw.c: Added lots of printer code.
12074
12075         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12076         general.c.
12077
12078         * console-msw.h: Added more msprinter device private slots.
12079
12080 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12081
12082         * event-msw.c (key_needs_default_processing_p): Added.
12083         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12084
12085 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12086
12087         * glyphs.c (image_instance_layout): Mark image instance as clean
12088         after layout.
12089         (glyph_dirty_p): Removed redundant function.
12090         (invalidate_glyph_geometry_maybe): Added.
12091         (update_glyph_cachel_data): Call it.
12092
12093         * glyphs.h: Prototyped it.
12094
12095         * redisplay.c (add_glyph_rune): Call it.
12096         (redisplay_window): Reset glyphs cachels when frame faces have
12097         changed, thus forcing recomputation of built-in border glyphs.
12098
12099 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12100
12101         * Makefile.in.in: Make portable dumper and purify play well together.
12102         Add imperfect, but better than nothing, support for pdump.
12103         Remove xemacs.dmp when temacs is re-generated.
12104         Don't ignore errors when dumping xemacs.
12105
12106         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12107
12108 2000-01-28  Andy Piper  <andy@xemacs.org>
12109
12110         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12111         (setup_normal_frame): ditto.
12112         (setup_frame_without_minibuffer): ditto.
12113         (setup_minibuffer_frame): ditto.
12114         (delete_frame_internal): ditto.
12115         (Fmake_frame_invisible): ditto.
12116         (Ficonify_frame): ditto.
12117
12118         * window.h: change Fset_window_buffer signature.
12119
12120         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12121         (Fset_window_buffer): allow recording of buffer if the window is
12122         the selected window.
12123         (window_loop): Use new Fset_window signature.
12124
12125 2000-01-23  Daniel Pittman  <daniel@danann.net>
12126
12127         * config.h.in: Added template for `HAVE_ATHENA_3D'
12128
12129 2000-01-29  Andy Piper  <andy@xemacs.org>
12130
12131         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12132
12133         * gutter.c (output_gutter): Don't output if the window isn't live.
12134
12135 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12136
12137         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12138         of 01/12/00: Moved SetFocus back here where it belongs.
12139
12140 2000-01-23  Andy Piper  <andy@xemacs.org>
12141
12142         * s/cygwin32.h: declare printer things.
12143
12144 2000-01-26  Andy Piper  <andy@xemacs.org>
12145
12146         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12147         Alexander.
12148
12149 2000-01-24  Andy Piper  <andy@xemacs.org>
12150
12151         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12152         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12153
12154         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12155
12156         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12157
12158         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12159
12160         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12161         (mswindows_output_display_block): Avoid local shadows.
12162
12163         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12164         (mswindows_enqueue_mouse_button_event): ditto.
12165         (mswindows_handle_gui_wm_command): remove declaration.
12166
12167         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12168         warnings.
12169
12170         * console-msw.h: Avoid shadows.
12171         (mswindows_get_toolbar_button_text):
12172         (emacs_mswindows_create_stream_pair):
12173         (emacs_mswindows_delete_stream_pair):
12174         (mswindows_handle_toolbar_wm_command): declare.
12175
12176         * device-msw.c (build_syscolor_string): Avoid shadows.
12177
12178 2000-01-23  Andy Piper  <andy@xemacs.org>
12179
12180         * glyphs-widget.c (widget_instantiate): reverse the items for
12181         layouts so that children are in the expected order.
12182
12183 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12184
12185         * ralloc.c: safe_bcopy ==> memmove
12186         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12187         * s/msdos.h: Remove BCOPY macros.
12188         * insdel.c (gap_right): Remove BCOPY conditional code.
12189         * insdel.c (gap_left): Remove BCOPY conditional code.
12190         XEmacs demands a working ANSI C compiler - hence memmove.
12191
12192         * regex.c (regex_compile): Remove accidental use of trigraphs.
12193
12194 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12195
12196         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12197         event timestamp.
12198
12199 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12200
12201         * event-msw.c (mswindows_drain_windows_queue): Added the
12202         parameter.
12203         (mswindows_need_event): Commented the call to
12204         mswindows_drain_windows_queue().
12205         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12206         only.
12207
12208         * console-msw.h: Moved a few function prototypes here from
12209         event-msw.c.
12210
12211         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12212         parameter from unsigned short to unsigned long.
12213         (Fmswindows_shell_execute): Added return value.
12214
12215 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12216
12217         * sysdep.c (init_system_name):
12218           process-unix.c (unix_canonicalized_host_name):
12219         Don't call freeaddrinfo() if getaddrinfo() fails.
12220
12221         * process-unix.c (unix_open_unix_network_stream):
12222         Moved the code to get a port # into address loop.
12223
12224 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12225
12226         * buffer.c (reinit_vars_of_buffer):
12227         The right place to initialize conversion_in_dynarr and
12228         conversion_out_dynarr.
12229
12230         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12231
12232         * process-unix.c (unix_canonicalize_host_name): Muleize.
12233         (unix_open_network_stream): Muleize.
12234
12235         * buffer.h: Fix up prototypes for ralloc.c functions.
12236
12237 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12238         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12239         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12240                 instead of gethostbyname()
12241         * process-unix.c: In unix_canonicalize_host_name() and
12242                 unix_open_network_stream(), add code to use getaddrinfo()
12243                 instead of gethostbyname().
12244
12245 2000-01-27  Daniel Pittman <daniel@danann.net>
12246
12247         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12248         libs when built with flat Athena.
12249
12250 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12251
12252         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12253         Use coding standards for function prototypes.
12254
12255 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12256
12257         * dialog-msw.c (push_lisp_string_as_unicode):
12258         * doc.c (unparesseuxify_doc_string):
12259         * dired.c (Fuser_name_completion_1):
12260         * dired.c (Fuser_name_all_completions):
12261         * dired.c (free_user_cache):
12262         * dired.c (user_name_completion):
12263         * console-x.c (get_display_arg_connection):
12264         * minibuf.c (clear_echo_area_internal):
12265         * minibuf.c (echo_area_append):
12266         * eldap.c (Fldap_open):
12267         * eldap.c (Fldap_search_internal):
12268         * frame-x.c (x_set_frame_text_value):
12269         * frame-x.c (x_set_frame_properties):
12270         * frame-x.c (x_create_widgets):
12271         * redisplay-tty.c (term_get_fkeys_1):
12272         * objects-x.c (x_parse_nearest_color):
12273         * objects-x.c (x_valid_color_name_p):
12274         * objects-x.c (x_initialize_font_instance):
12275         * objects-x.c (x_list_fonts):
12276         * objects-x.c (x_find_charset_font):
12277         * tooltalk.c (Fadd_tooltalk_message_arg):
12278         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12279         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12280         * process-unix.c (unix_create_process):
12281         * ntproc.c (sys_spawnve):
12282         * sound.c (Fplay_sound_file):
12283         * sound.c (Fplay_sound):
12284         * buffer.c (init_initial_directory):
12285         * buffer.c (init_buffer):
12286         * editfns.c (init_editfns):
12287         * editfns.c (Ftemp_directory):
12288         * editfns.c (Fuser_full_name):
12289         * editfns.c (uncache_home_directory):
12290         * editfns.c (get_home_directory):
12291         * editfns.c (Fuser_home_directory):
12292         * editfns.c (Fformat_time_string):
12293         * editfns.c (Fcurrent_time_string):
12294         * gui-x.c (button_item_to_widget_value):
12295         * database.c (Fopen_database):
12296         * event-Xt.c (x_to_emacs_keysym):
12297         * event-Xt.c (x_event_to_emacs_event):
12298         * event-Xt.c (describe_event_window):
12299         * event-msw.c (mswindows_wnd_proc):
12300         * glyphs-eimage.c (jpeg_instantiate):
12301         * glyphs-eimage.c (gif_instantiate):
12302         * glyphs-eimage.c (png_instantiate):
12303         * glyphs-eimage.c (tiff_instantiate):
12304         * glyphs-x.c (xbm_instantiate_1):
12305         * glyphs-x.c (x_xbm_instantiate):
12306         * glyphs-x.c (x_xface_instantiate):
12307         * glyphs-x.c (autodetect_instantiate):
12308         * glyphs-x.c (cursor_font_instantiate):
12309         * glyphs-x.c (x_widget_instantiate):
12310         * glyphs-x.c (x_widget_set_property):
12311         * glyphs-x.c (x_widget_property):
12312         * glyphs-x.c (BUILD_GLYPH_INST):
12313         * print.c (write_string_to_stdio_stream):
12314         * print.c (output_string):
12315         * print.c (Falternate_debugging_output):
12316         * print.c (Fexternal_debugging_output):
12317         * glyphs-msw.c (extract_xpm_color_names):
12318         * glyphs-msw.c (mswindows_xpm_instantiate):
12319         * glyphs-msw.c (bmp_instantiate):
12320         * glyphs-msw.c (resource_name_to_resource):
12321         * glyphs-msw.c (mswindows_resource_instantiate):
12322         * glyphs-msw.c (xbm_instantiate_1):
12323         * glyphs-msw.c (mswindows_xbm_instantiate):
12324         * glyphs-msw.c (mswindows_xface_instantiate):
12325         * glyphs-msw.c (mswindows_widget_instantiate):
12326         * glyphs-msw.c (add_tree_item):
12327         * glyphs-msw.c (add_tab_item):
12328         * glyphs-msw.c (mswindows_combo_box_instantiate):
12329         * glyphs-msw.c (mswindows_widget_property):
12330         * glyphs-msw.c (mswindows_combo_box_property):
12331         * glyphs-msw.c (mswindows_widget_set_property):
12332         * console.c (stuff_buffered_input):
12333         * objects-msw.c (mswindows_initialize_color_instance):
12334         * objects-msw.c (mswindows_valid_color_name_p):
12335         * objects-msw.c (mswindows_list_fonts):
12336         * objects-msw.c (mswindows_font_instance_truename):
12337         * bytecode.c (optimize_compiled_function):
12338         * select-x.c (symbol_to_x_atom):
12339         * select-x.c (x_atom_to_symbol):
12340         * select-x.c (hack_motif_clipboard_selection):
12341         * select-x.c (selection_data_to_lisp_data):
12342         * select-x.c (lisp_data_to_selection_data):
12343         * select-x.c (Fx_get_cutbuffer_internal):
12344         * select-x.c (Fx_store_cutbuffer_internal):
12345         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12346         * buffer.h (TO_INTERNAL_FORMAT): New function.
12347         * emacs.c (make_arg_list_1):
12348         * emacs.c (make_argc_argv):
12349         * emacs.c (main_1):
12350         * emacs.c (Fdump_emacs):
12351         * emacs.c (split_string_by_emchar_1):
12352         * file-coding.h:
12353         * lisp.h:
12354         * lstream.h:
12355         * symsinit.h:
12356         * device-x.c (x_init_device):
12357         * device-x.c (Fx_valid_keysym_name_p):
12358         * device-x.c (Fx_get_font_path):
12359         * device-x.c (Fx_set_font_path):
12360         * glyphs.c (bitmap_to_lisp_data):
12361         * glyphs.c (pixmap_to_lisp_data):
12362         * alloc.c (make_ext_string): Use coding system arguments.  Update
12363         all callers.
12364         * alloc.c (build_string):
12365         * callproc.c (child_setup):
12366         * callproc.c (init_callproc):
12367         * fileio.c (lisp_strerror):
12368         * fileio.c (directory_file_name):
12369         * fileio.c (Fexpand_file_name):
12370         * fileio.c (Ffile_truename):
12371         * fileio.c (Fsysnetunam):
12372         * fileio.c (Fdo_auto_save):
12373         * sysdep.c (sys_readdir):
12374         * tests.c: New file.  Allow adding C tests.
12375         Replace GET_* macros with a more comprehensible and flexible
12376         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12377         Modify all calls.
12378         Any coding system can be used to do format conversion.
12379         Eliminate enum external_data_format.
12380         Eliminate convert_to_external_format.
12381         Eliminate convert_to_internal_format.
12382         Make sure file-name, keyboard, terminal, and ctext are always
12383         defined as coding systems or aliases.  Make
12384         file-name-coding-system, terminal-coding-system, and
12385         keyboard-coding-system magical variables that are equivalent to
12386         defining the corresponding coding system aliases.
12387
12388         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12389         * file-coding.c (Fcoding_system_alias_p): New function.
12390         * file-coding.c (Fcoding_system_aliasee): New function.
12391         * file-coding.c (append_suffix_to_symbol): New function.
12392         * file-coding.c (dangling_coding_system_alias_p): New function.
12393         * file-coding.c (Ffind_coding_system):
12394         * file-coding.c (Fcopy_coding_system):
12395         * file-coding.c (encode_coding_no_conversion):
12396         * file-coding.c (syms_of_file_coding):
12397         * file-coding.c (vars_of_file_coding):
12398         Rewrite coding system alias code.
12399         Allow nested aliases, like symbolic links.
12400         Allow redefinition of coding system aliases.
12401         Prevent existence of dangling coding system aliases.
12402
12403         * dired.c (Fuser_name_completion_1):
12404         * dired.c (Fuser_name_all_completions):
12405         A crash would happen if user did QUIT in the middle of building
12406         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12407
12408         * lisp.h:
12409         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12410
12411         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12412         an unsigned char *.  Update all callers.
12413
12414 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12415
12416         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12417
12418 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12419
12420         * elhash.c (hentry_description): Use more portable definition.
12421         (resize_hash_table): Initialize new hentries using
12422         xnew_array_and_zero, thereby simplifying the code.
12423
12424         * mule-charset.c (make_charset): Make sure entire object is
12425         initialized, to avoid Purify warnings.
12426
12427         * alloc.c (resize_string): Fix unlikely crash with big strings.
12428
12429 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12430
12431         * realpath.c (xrealpath):
12432         Don't call getwd().
12433
12434 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12435
12436         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12437
12438 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12439
12440         * unexelfsgi.c (unexec): Change the way we decide which segment
12441         should be extended.
12442
12443         Assumption that .bss section should be outside the PT_LOADable
12444         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12445         it's present) is inside the 'data' segment. This would fail the
12446         test which was used to find a segment to grow and cover new
12447         heap. Instead of this assumption, I created another one - on IRIX
12448         the segment to grow should start below .bss and it's address
12449         should extent above the end of .bss. Once this segment is
12450         identified, it's grown to accommodate the new heap and new
12451         zero-length .bss section is added at the end of .data2.
12452
12453 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12454
12455         * eval.c (Feval): Wrong number of arguments should use original
12456         function, not the indirect_function version of it.
12457
12458 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12459
12460         * glyphs-x.c (x_button_instantiate): Don't add image if
12461         it is not a pixmap.
12462         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12463         is relative.
12464
12465 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12466
12467         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12468         declaration.
12469         (DEFVAR_INT_MAGIC): Ditto.
12470         (DEFVAR_BOOL_MAGIC): Ditto.
12471         * glyphs.h: Reindent backslash.
12472
12473 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12474
12475         * glyphs-widget.c (layout_query_geometry):
12476         (layout_layout): Use correct types for gheight, gwidth.
12477
12478 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12479
12480         * EmacsManager.c (QueryGeometry): Purified.
12481
12482 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12483
12484         * alloc.c (make_float): Make sure entire object is initialized, to
12485         avoid Purify warnings.
12486         (pdump_register_sub): Remove useless assignment.
12487         (pdump): Use xmalloc, not malloc.
12488         (pdump_load): Use xmalloc, not malloc.
12489
12490 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12491
12492         * callproc.c:
12493         * dired-msw.c:
12494         * fileio.c:
12495         * process-nt.c:
12496         * redisplay-msw.c:
12497         * sysdep.c: Removed redundant #include <windows.h>
12498
12499 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12500
12501         * frame.c (delete_frame_internal): Do not delete device when its
12502         implementation so declares.
12503         (delete_frame_internal): Set device selected frame to nil when
12504         last frame goes away.
12505
12506         * device-msw.c (msprinter_device_system_metrics): Implemented.
12507         (mswindows_device_system_metrics): Added 'device-dpi property.
12508
12509         * device.c: (Fdevice_printer_p): Added.
12510         Added 'offset-workspace device metric.
12511
12512         * console.h (device_metrics): Declared DM_offset_workspace.
12513
12514 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12515
12516         * fileio.c (Ffile_truename): Remove pointless and confusing
12517         initialization of elen.
12518
12519         * glyphs-widget.c: Compiler warning fixes.
12520
12521 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12522
12523         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12524         instead of a Lisp_Object as argument to make it consistent with
12525         the other LIVE_P macros.
12526         (CHECK_LIVE_PROCESS): New macro.
12527
12528         * process.c: Declare Qprocess_live_p.
12529         (Fprocess_live_p): New function.
12530         (create_process): Use PROCESS_LIVE_P.
12531         (read_process_output): Ditto.
12532         (set_process_filter): Ditto.
12533         (Fdelete_process): Ditto.
12534         (kill_buffer_processes): Ditto
12535         (process_send_signal): Use CHECK_LIVE_PROCESS.
12536         (Fprocess_input_coding_system): Check whether process is still
12537         alive (fix PR#1061).
12538         (Fprocess_output_coding_system): Ditto.
12539         (Fprocess_coding_system): Ditto.
12540         (Fset_process_input_coding_system): Ditto.
12541         (Fset_process_output_coding_system): Ditto.
12542
12543 2000-01-23  Andy Piper  <andy@xemacs.org>
12544
12545         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12546         layout and widget.
12547
12548         * glyphs.c (mark_image_instance): take into account changed
12549         image_instance format.
12550         (image_instance_equal): ditto.
12551         (image_instance_hash): ditto.
12552
12553         * glyphs-widget.c (widget_instantiate): Incorporate layout
12554         instantiation here. Delay layout of the layout until later.
12555         (layout_instantiate): deleted.
12556         (layout_query_geometry): new function. get the geometry of a
12557         layout.
12558         (layout_layout): layout a layout dynamically.
12559         (image_instantiator_widget): New function - splitting up
12560         image_instantiator_format_create_glyphs_widget for netwinder
12561         compilation.
12562         (image_instantiator_buttons):
12563         (image_instantiator_edit_fields):
12564         (image_instantiator_combo_box):
12565         (image_instantiator_scrollbar):
12566         (image_instantiator_progress_guage):
12567         (image_instantiator_tree_view):
12568         (image_instantiator_tab_control):
12569         (image_instantiator_labels):
12570         (image_instantiator_layout): ditto.
12571         (image_instantiator_format_create_glyphs_widget): Call preceding
12572         functions.
12573
12574 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12575
12576         * process.c (Fset_process_coding_system):
12577         * device-x.c (Fx_keysym_hash_table):
12578         Docstring fixes.
12579
12580         * lstream.c (Lstream_write): Return documented value, not 0.
12581
12582         * fileio.c (directory_file_name):
12583         (Fsubstitute_in_file_name):
12584         (Fsubstitute_insert_file_contents_internal):
12585         (Fwrite_region_internal):
12586         * emacs.c:
12587         * sysdep.c:
12588         * getloadavg.c:
12589         * systty.h:
12590         Remove vestigial APOLLO-conditional code.
12591
12592 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12593
12594         * getpagesize.h: Add guard macros.
12595         * libsst.h: Add guard macros.
12596         * libst.h: Add guard macros.
12597         * line-number.h: Add guard macros.
12598         * ndir.h: Add guard macros.
12599         * sysfloat.h: Add guard macros.
12600         * sysfile.h: Add guard macros.
12601         * sysproc.h: Add guard macros.
12602         * syswait.h: Add guard macros.
12603         * xintrinsic.h: Add guard macros.
12604         * xintrinsicp.h: Add guard macros.
12605         * xmmanager.h: Add guard macros.
12606         * xmmanagerp.h: Add guard macros.
12607         * xmprimitive.h: Add guard macros.
12608         * xmu.h: Add guard macros.
12609         * gpmevent.h: Add copyright statement. Add guard macros.
12610         * miscplay.h: Add guard macros.
12611         * *.h: Use consistent C-standards-approved guard macro names.
12612
12613         * opaque.c (make_opaque): Switch parameter order.
12614         * opaque.h (make_opaque): Switch parameter order.
12615         Update all callers.
12616         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12617
12618         * config.h.in (type_checking_assert): Added.
12619         (bufpos_checking_assert): Added.
12620
12621 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12622
12623         * alloc.c: Harmless pdump changes.
12624         - Use countof().
12625         - spell alignment correctly.
12626         * sysdep.c: Use countof()
12627
12628 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12629
12630         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12631         initially_selected_for_input() console method, default to 0.
12632         (semi_canonicalize_console_connection): Try to delegate to
12633         canonicalize_console_connection if no such console method.
12634         (canonicalize_console_connection): Vice versa.
12635         (print_console): Do not print nil connection.
12636
12637         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12638         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12639         (XDEVIMPF_FRAMELESS_OK): Added.
12640         (CONSOLE_INHERITS_METHOD): Added.
12641
12642         * console-msw.c (mswindows_canonicalize_console_connection):
12643         Added.
12644         (mswindows_canonicalize_device_connection): Added.
12645
12646         * console-msw.h (struct msprinter_device): Added this struct and
12647         accessor macros.
12648         (mswindows_device): Made fontlist a lisp object.
12649
12650         * device.c (semi_canonicalize_device_connection):  Try to delegate
12651         to canonicalize_device_connection if no such console method.
12652         (canonicalize_device_connection): Vice versa.
12653         (print_device): Do not print nil connection.
12654
12655         * device-msw.c (mswindows_init_device): Call InitCommonControls
12656         when have widgets.
12657         (mswindows_delete_device): Removed fontlist deallocation.
12658         (mswindows_mark_device): Added.
12659
12660         * events.c (event_equal): Added abort() at unreached code.
12661         (event_hash): Ditto.
12662
12663         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12664         fallback tags of Windows devices.
12665
12666         * general.c (syms_of_general): Initialized Qmsprinter.
12667
12668         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12669         of fallback tags of Windows devices.
12670
12671         * lisp.h: Declared Qmsprinter.
12672
12673         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12674         of strings.
12675         (mswindows_list_fonts): Ditto.
12676         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12677         that it can be used by both mswindows and msprinter devices.
12678         (initialize_font_instance): Added.
12679         (mswindows_initialize_font_instance): Use it.
12680         (msprinter_initialize_font_instance): Added.
12681
12682         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12683         and implementation flags check.
12684         (redisplay_without_hooks): Changed the call to the above.
12685         (Fredraw_device): Ditto.
12686         (Fredisplay_device): Ditto.
12687
12688         * redisplay-msw.c (get_frame_dc): Implemented.
12689         (get_frame_compdc): Implemented.
12690         (many functions): Use the two functions above to get device
12691         contexts, ether for a window or a printer.
12692
12693 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12694
12695         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12696         initialization here.
12697         (init_symbols_once_early): Call it.
12698         * emacs.c (main_1): Call it.
12699         * symsinit.h: Declare it.
12700
12701 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12702
12703         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12704         Lisp_Object.
12705         (pdump_backtrace): Ditto.
12706         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12707         (pdump_get_entry): Abort if trying to register a null pointer.
12708         (pdump_dump_data): Cleanup types when relocating.
12709         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12710         (pdump_dump_rtables): Remove bad casts.
12711         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12712         Lisp_Object instead of a EMACS_INT for the hashtable
12713         reorganization.
12714
12715 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12716
12717         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12718
12719         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12720
12721         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12722
12723         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12724
12725 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12726
12727         * faces.h (FACE_STRIKETHRU_P): Added.
12728
12729         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12730         of font variants.
12731
12732         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12733         (mswindows_set_dc_font): New function, aware of font variants,
12734         separated from mswindows_update_dc.
12735
12736         * objects-msw.h (struct mswindows_font_instance_data): Added
12737         definition.
12738
12739         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12740         cached fonts and the data structure.
12741         (mswindows_initialize_font_instance): Added creation of font data
12742         structure.
12743         (mswindows_print_font_instance): Print at least something.
12744         (mswindows_create_font_variant): Implemented.
12745         (mswindows_get_hfont): Implemented.
12746
12747 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12748
12749         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12750         prototyping problem with msvc.
12751
12752         * emacs.c (main_1): added syms_of_gui_mswindows() call
12753
12754         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12755         syms_of_gui_mswindows() function
12756
12757         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12758
12759 2000-01-18  Martin Buchholz <martin@xemacs.org>
12760
12761         * XEmacs 21.2.27 is released.
12762
12763 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12764
12765         * glyphs-eimage.c (struct tiff_error_struct):
12766         (tiff_error_func):
12767         (tiff_warning_func):
12768         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12769
12770         * unexmips.c:
12771         * unexhp9k3.c:
12772         * unexfreebsd.c:
12773         * unexec.c: Remove vestigial Lucid C code.
12774         * unexalpha.c:
12775         * unexaix.c:
12776         * termcap.c:
12777         * libsst.c: Ansify.
12778         Remove declarations of errno and strerror().
12779
12780         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12781
12782         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12783
12784 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12785
12786         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12787         Optimize.
12788
12789 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12790
12791         * md5.c:
12792         * file-coding.c:
12793         * file-coding.h:
12794         Change enum eol_type to eol_type_t.
12795
12796 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12797
12798         * gui.c (get_gui_callback): Check cons before accessing car.
12799
12800 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12801
12802         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12803         (XSETSPECIFIER_TYPE): Ditto.
12804
12805 2000-01-17  Didier Verna  <didier@xemacs.org>
12806
12807         * redisplay.c (generate_fstring_runes): compute string size in
12808         characters, not bytes.
12809
12810 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12811
12812         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12813
12814 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12815
12816         * print.c (print_error_message): Call print_prepare().
12817
12818 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12819
12820         * .dbxrc: Renamed from dbxrc.
12821
12822         * events.c (event_to_character):
12823         Use `assert (foo)' instead of `if (!foo) abort()'
12824
12825         * .gdbinit (xtype): Add documentation.
12826         * .gdbinit (check-temacs): New function.
12827         * .gdbinit (check-xemacs): New function.
12828         * dbxrc (check-xemacs): New function.
12829         * dbxrc (check-xemacs): New function.
12830
12831 2000-01-14  Andy Piper  <andy@xemacs.org>
12832
12833         * glyphs-widget.c (widget_query_geometry): Make sure that we
12834         calculate default dimensions correctly.
12835
12836 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12837
12838         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12839
12840         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12841         pdump_wire'd variable.
12842
12843         * emacs.c: (main_1): Conditionalized calls to
12844         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12845
12846 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12847
12848         * window.c (Fset_window_configuration):
12849         * sysdep.c (_start):
12850         * input-method-motif.c (res):
12851         * event-Xt.c (Xt_process_to_emacs_event):
12852         Simple compiler warning fixes.
12853
12854         * bytecode.c (funcall_compiled_function): Use the original
12855         function symbol on the backtrace list in preference to the
12856         compiled_function object in error messages.
12857
12858 2000-01-13  Andy Piper  <andy@xemacs.org>
12859
12860         * glyphs-x.c (update_widget_face): Make sure we update the widget
12861         background as well as foreground.
12862
12863 2000-01-13  Andy Piper  <andy@xemacs.org>
12864
12865         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12866         fields to subwindow.
12867         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12868         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12869         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12870         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12871
12872         * glyphs-widget.c (check_valid_tab_orientation): new function.
12873         (initialize_widget_image_instance): zero orientation and
12874         justification.
12875         (widget_instantiate): pick up orientation.
12876         (tab_control_query_geometry): return appropriate values for
12877         vertical tabs.
12878
12879         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12880         appropriate creation flags for left, right and bottom tabs.
12881
12882         * s/cygwin32.h: add tab definitions.
12883
12884 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12885
12886         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12887         frame upon hiding a subwindow.
12888         (mswindows_button_instantiate): Changed the push button style to
12889         BS_PUSHBUTTON.
12890         (mswindows_button_instantiate): Removed button BS_NOTIFY
12891         style.
12892         (mswindows_button_instantiate): Removed redundant check for
12893         a disabled gui item.
12894         (mswindows_button_instantiate): Made use of WS_TABSTOP
12895         consistent: "operable" controls (edit, button, tree, scroll) have
12896         this style, "display-only" ones (static, progress gauge) do
12897         not. This style is currently ignored by XEmacs though. Also,
12898         removed the WS_EX_CONTROLPARENT style - it is not for children,
12899         it is for their parents!
12900         (mswindows_edit_field_instantiate): Ditto.
12901         (mswindows_progress_gauge_instantiate): Ditto.
12902         (mswindows_tree_view_instantiate): Ditto.
12903         (mswindows_tab_control_instantiate): Ditto.
12904         (mswindows_scrollbar_instantiate): Ditto.
12905         (mswindows_combo_box_instantiate): Ditto.
12906         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12907         style to the "clip" window.
12908         (mswindows_button_instantiate): Removed compilation warning by
12909         equally typing terms of the ?: operator.
12910
12911 2000-01-12  Didier Verna  <didier@xemacs.org>
12912
12913         * redisplay.c (generate_fstring_runes): new parameter holding the
12914         last modeline-format extent.
12915         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12916         extent, fill the glyph block with it.
12917         (generate_fstring_runes): handle these parameters.
12918         (generate_formatted_string_db): ditto.
12919
12920         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12921         glyphs'extents in the modeline.
12922
12923 1999-01-11  Mike Woolley  <mike@bulsara.com>
12924
12925         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12926         256Mb, as a workaround for the non-starting problem many people
12927         have experienced.
12928
12929 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12930
12931         * console-tty.c (Fset_console_tty_output_coding_system):
12932         Force redrawing tty frame.
12933
12934 2000-01-10  Didier Verna  <didier@xemacs.org>
12935
12936         * redisplay.c (generate_fstring_runes): fix size computation bug.
12937
12938 2000-01-09  William M. Perry <wmperry@aventail.com>
12939
12940         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12941
12942 2000-01-09  Andy Piper  <andy@xemacs.org>
12943
12944         * glyphs-msw.c: index -> i to avoid shadows.
12945         (xbm_create_bitmap_from_data): make static.
12946         (check_valid_string_or_int): deleted.
12947         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12948
12949         * glyphs-x.c (x_update_subwindow): remove unused args.
12950
12951         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12952         back pointer - this is done in allocate_image_instance.
12953         (query_string_font): return Qnil to make the compiler happy.
12954         (unmap_subwindow): set to ~0 to make the compiler happy.
12955         (glyph_query_geometry): comment out until used.
12956         (glyph_layout): ditto.
12957
12958 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12959
12960         * insdel.c (signal_after_change): Remove extraneous unbind_to().