Sync up with r21-4-10-utf-2000-0_20-ucs-gb-l.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
4
5         * mule-charset.c (Vcharset_ucs_gb): Deleted.
6         (Qucs_gb): Deleted.
7         (syms_of_mule_charset): Delete `ucs-gb'.
8         (complex_vars_of_mule_charset): Likewise.
9
10 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
13
14         * mule-charset.c (Vcharset_ucs_cns): Deleted.
15         (Qucs_cns): Deleted.
16         (syms_of_mule_charset): Delete `ucs-cns'.
17         (complex_vars_of_mule_charset): Likewise.
18
19 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
22
23         * mule-charset.c (Vcharset_ucs_jis): Deleted.
24         (Qucs_jis): Deleted.
25         (syms_of_mule_charset): Delete `ucs-jis'.
26         (complex_vars_of_mule_charset): Likewise.
27
28 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
29
30         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
31
32         * mule-charset.c (Vcharset_ucs_ks): Deleted.
33         (Qucs_ks): Deleted.
34         (syms_of_mule_charset): Delete `ucs-ks'.
35         (complex_vars_of_mule_charset): Likewise.
36
37 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
38
39         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
40         (Qideograph_daikanwa_2): Deleted.
41         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
42         (complex_vars_of_mule_charset): Likewise.
43
44         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
45         (LEADING_BYTE_DAIKANWA_1): Deleted.
46         (LEADING_BYTE_DAIKANWA_2): Deleted.
47         (MIN_CHAR_DAIKANWA): Deleted.
48         (MAX_CHAR_DAIKANWA): Deleted.
49
50 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
51
52         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
53         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
54         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
55
56         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
57         (Vcharset_ideograph_daikanwa): Deleted.
58         (Qideograph_hanziku_{1..12}): Deleted.
59         (Qideograph_daikanwa): Deleted.
60         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
61         Vcharset_ideograph_daikanwa.
62         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
63         `ideograph-hanziku-{1..12}'.
64         (complex_vars_of_mule_charset): Likewise.
65
66 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
67
68         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
69
70         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
71         (Qideograph_gt_pj_{1..11}): Deleted.
72         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
73         (complex_vars_of_mule_charset): Likewise.
74
75 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * mule-charset.c (Vcharset_ucs_big5): Deleted.
78         (Vcharset_ideograph_gt): Deleted.
79         (Qucs_big5): Deleted.
80         (Qideograph_gt): Deleted.
81         (syms_of_mule_charset): Delete symbol `ucs-big5' and
82         `ideograph-gt'.
83         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
84         and `ideograph-gt'.
85
86         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
87         (LEADING_BYTE_GT): Deleted.
88         (GC_CHARSETP): Deleted.
89         (MIN_CHAR_GT): Deleted.
90         (MAX_CHAR_GT): Deleted.
91
92 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
95
96 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
97
98         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
99         (Qideograph_cbeta): Deleted.
100         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
101         (complex_vars_of_mule_charset): Likewise.
102
103         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
104         (MIN_CHAR_CBETA): Comment out.
105         (MAX_CHAR_CBETA): Likewise.
106
107 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
108
109         * mule-charset.c (charset_lookup_description_1): Use
110         `NUM_LEADING_BYTES' in UTF-2000.
111
112 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * mule-charset.c (Vcharset_china3_jef): Deleted.
115         (Qchina3_jef): Deleted.
116         (syms_of_mule_charset): Don't define `china3-jef'.
117         (complex_vars_of_mule_charset): Likewise.
118
119         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
120         (MIN_CHAR_CHINA3_JEF): Comment out.
121         (MAX_CHAR_CHINA3_JEF): Comment out.
122
123 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * mule-charset.c (Vcharset_ucs_gb): New variable.
126         (Qucs_gb): New variable.
127         (syms_of_mule_charset): Add new symbol `ucs-gb'.
128         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
129
130         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
131
132 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
133
134         * mule-charset.c (charset_code_point): if a coded-charset has a
135         final-byte, don't inherit the builtin range of the mother CCS.
136
137 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * mule-charset.c (charset_code_point): Fix problem about
140         inheritance.
141
142 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
143
144         * mule-charset.c (decode_builtin_char): Reorganized.
145
146 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * text-coding.c (char_encode_shift_jis): Modify for
149         `charset_code_point'.
150         (char_encode_big5): Likewise.
151         (char_encode_utf8): Likewise.
152         (char_encode_iso2022): Likewise.
153
154         * mule-charset.c (charset_code_point): Add new argument
155         `defined_only'.
156         (Fencode_char): Add new optional argument `defined_only'.
157
158         * chartab.c (put_char_table): Modify for `charset_code_point'.
159         (map_char_table): Likewise.
160
161         * char-ucs.h (charset_code_point): Add new argument
162         `defined_only'.
163         (encode_char_1): Modify for `charset_code_point'.
164
165 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
168         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
169
170 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
173         (Qjis_x0208): Likewise.
174         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
175         XCHARSET_FINAL(charset).
176         (charset_code_point): Modify condition for final-byte based
177         builtin-chars.
178         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
179         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
180         in UTF-2000; specify `=jis-x0208' as the mother of
181         `japanese-jisx0208-1978', `japanese-jisx0208' and
182         `japanese-jisx0208-1990' in UTF-2000.
183
184 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
185
186         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
187
188 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
189
190         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
191         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
192         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
193         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
194         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
195         CONVERSION_96x96x96x96 are introduced.
196         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
197         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
198         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
199
200         * char-ucs.h (CONVERSION_94): New macro.
201         (CONVERSION_96): New macro.
202         (CONVERSION_94x94): New macro.
203         (CONVERSION_96x96): New macro.
204         (CONVERSION_94x94x94): New macro.
205         (CONVERSION_96x96x96): New macro.
206         (CONVERSION_94x94x94x60): New macro.
207         (CONVERSION_94x94x94x94): New macro.
208         (CONVERSION_96x96x96x96): New macro.
209
210 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
211
212         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
213
214         * fns.c (Qideographic_structure): New variable.
215         (Qkeyword_char): New variable.
216         (ids_format_unit): New function.
217         (Fideographic_structure_to_ids): New function.
218         (syms_of_fns): Add new symbols `ideographic-structure' and
219         `:char'; add new builtin function `ideographic-structure-to-ids'.
220
221         * data.c (Fchar_ref_p): New function.
222         (syms_of_data): Add new builtin function `char-ref-p'.
223
224         * chartab.h: Add an EXFUN for `Ffind_char'.
225
226 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
227
228         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
229         and `COMPOSE_ADD_CHAR'.
230         (decode_coding_iso2022): Use `decode_flush_er_chars'.
231
232 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
233
234         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
235         instead of `DECODE_ADD_UCS_CHAR'.
236         (COMPOSE_ADD_CHAR): Likewise.
237
238 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
239
240         * text-coding.c (decode_flush_er_chars): New inline function.
241         (decode_add_er_char): New function.
242         (decode_coding_utf8): Use `decode_flush_er_chars' and
243         `decode_add_er_char'.
244
245 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
246
247         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
248         done before `decode_output_utf8_partial_char'.
249
250         * mule-charset.c (complex_vars_of_mule_charset): Specify
251         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
252         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
253
254 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
255
256         * mule-charset.c (decode_defined_char): New function; search
257         mother.
258         (decode_builtin_char): Don't search mother if
259         XCHARSET_MAX_CODE(charset) == 0.
260         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
261         == 0 even if code >= XCHARSET_MAX_CODE(charset).
262         (Fdecode_char): Use `decode_defined_char' instead of
263         `DECODE_DEFINED_CHAR'.
264         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
265         mother of `Vcharset_ucs_jis'.
266
267         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
268         instead of `DECODE_DEFINED_CHAR'.
269
270         * char-ucs.h (decode_defined_char): Renamed from
271         `DECODE_DEFINED_CHAR'; changed to normal function.
272         (DECODE_CHAR): Use `decode_defined_char' instead of
273         `DECODE_DEFINED_CHAR'.
274
275         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
276
277 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
280
281         * text-coding.c (Vcoded_charset_entity_reference_alist): New
282         variable.
283         (Quse_entity_reference): New variable.
284         (Qd): New variable.
285         (Qx): New variable.
286         (QX): New variable.
287         (coding_system_description): Add description for
288         `ccs_priority_list'.
289         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
290         (allocate_coding_system): Initialize `ccs_priority_list' in
291         UTF-2000.
292         (Fmake_coding_system): Add description about
293         'use-entity-reference; setup
294         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
295         (Fcoding_system_property): Accept `disable-composition' and
296         `use-entity-reference' in UTF-2000.
297         (struct decoding_stream): Add new member `er_counter' and `er_buf'
298         in UTF-2000.
299         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
300         (decode_coding_utf8): Decode entity-reference if
301         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
302         (char_encode_utf8): Encode non-Unicode characters as
303         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
304         (str->codesys).
305         (syms_of_file_coding): Add new symbols `use-entity-reference',
306         `d', `x', `X'.
307         (vars_of_file_coding): Add new variable
308         `coded-charset-entity-reference-alist'.
309         (complex_vars_of_file_coding): Declare `disable-composition' and
310         `use-entity-reference' to be coding-system-properties in UTF-2000.
311
312         * file-coding.h (struct Lisp_Coding_System): Add new member
313         `use_entity_reference' and `ccs_priority_list'.
314         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
315         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
316         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
317
318 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
319
320         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
321
322 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
323
324         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
325         `XCHARSET_GRAPHIC(ccs)'.
326
327 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
328
329         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
330         for decoding-table.
331
332 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
333
334         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
335         instead of `XCHARSET_CHARS'.
336
337 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
338
339         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
340         (XCHARSET_BYTE_SIZE): Likewise.
341
342         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
343         mule-charset.c].
344         (XCHARSET_BYTE_SIZE): Likewise.
345
346 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * char-ucs.h (decoding_table_check_elements): Delete prototype.
349         (get_ccs_octet_table): New inline function.
350         (put_ccs_octet_table): Likewise.
351         (decoding_table_put_char): Use `get_ccs_octet_table' and
352         `put_ccs_octet_table'.
353         (decoding_table_remove_char): Use `decoding_table_put_char'.
354         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
355
356         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
357         into encoding_table.
358         (make_charset): Use Qunbound instead Qnil as initial value of
359         decoding_table.
360
361 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * mule-charset.c (put_char_ccs_code_point): Modify for
364         `decoding_table_remove_char' and `decoding_table_put_char'.
365         (remove_char_ccs): Modify for `decoding_table_remove_char'.
366
367         * char-ucs.h (decoding_table_remove_char): Change arguments to
368         hide decoding_table vector.
369         (decoding_table_put_char): Likewise.
370
371 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * mule-charset.c (decoding_table_remove_char): Moved to
374         char-ucs.h.
375         (decoding_table_put_char): Likewise.
376
377         * char-ucs.h (decoding_table_check_elements): New prototype [moved
378         from mule-charset.c].
379         (decoding_table_remove_char): New inline function [moved from
380         mule-charset.c].
381         (decoding_table_put_char): Likewise.
382
383 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
386         instead of `DECODE_CHAR' for mother; don't use special code for
387         chinese-big5 to use code space of chinese-big5-1 and
388         chinese-big5-2.
389         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
390         `MAX_CHAR_BIG5_CDP' for chinese-big5.
391
392         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
393         (MAX_CHAR_BIG5_CDP): Revival.
394
395 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
398         the XLFD registry-encoding name of `chinese-big5'.
399
400 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
401
402         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
403         (Qchinese_big5_cdp): Deleted.
404         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
405         (complex_vars_of_mule_charset): Delete coded-charset
406         `chinese-big5-cdp'.
407
408         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
409         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
410         `CHARSET_ID_OFFSET - n' for private CCS.
411         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
412         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
413         of `MIN_LEADING_BYTE'.
414         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
415         `(CHARSET_ID_OFFSET - 97)'.
416         (MIN_CHAR_BIG5_CDP): Deleted.
417         (MAX_CHAR_BIG5_CDP): Deleted.
418
419 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
420
421         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
422         extension.
423
424 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
425
426         * mule-charset.c (decode_builtin_char): Support mother charsets.
427
428 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
429
430         * mule-charset.c (Q94x94x60): New variable.
431         (charset_code_point): Support conversion `94x94x60'.
432         (Fmake_charset): Likewise.
433         (syms_of_mule_charset): Add new symbol `94x94x60'.
434
435         * char-ucs.h (CONVERSION_94x94x60): New macro.
436
437 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
438
439         * mule-charset.c (charset_code_point): Unify code about
440         `code-offset'.
441
442 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
443
444         * mule-charset.c (charset_code_point): Merge code about builtin
445         characters into code about mother charsets; don't use
446         `range_charset_code_point'.
447         (range_charset_code_point): Deleted.
448
449 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
450
451         * mule-charset.c (Qcode_offset): New variable.
452         (Fmake_charset): Use `XUINT' to get value of `min-code' and
453         `max-code'; accept new property `code-offset'.
454         (syms_of_mule_charset): Add new symbol `code-offset'.
455
456 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * mule-charset.c (range_charset_code_point): Fixed.
459
460 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
461
462         * mule-charset.c (decode_builtin_char): Change semantics of
463         code-offset of coded-charset.
464         (charset_code_point): Likewise.
465         (range_charset_code_point): Likewise.
466         (complex_vars_of_mule_charset): Modify for the change.
467
468 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
469
470         * mule-charset.c (Fencode_char): Reverse arguments.
471
472         * mule-charset.c (charset_code_point): Fixed.
473
474 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * mule-charset.c (Vcharset_mojikyo): Deleted.
477         (Vcharset_mojikyo_2022_1): Deleted.
478         (Vcharset_mojikyo_pj_{1..21}): Deleted.
479         (Qmin_code): New variable in UTF-2000.
480         (Qmax_code): Likewise.
481         (Qmother): Likewise.
482         (Qconversion): Likewise.
483         (Q94x60): Likewise.
484         (Qmojikyo): Deleted.
485         (Qmojikyo_2022_1): Deleted.
486         (Qmojikyo_pj_{1..22}): Deleted.
487         (mark_charset): Mark `cs->mother'.
488         (charset_description): Add description for `mother'.
489         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
490         new arguments `mother' and `conversion'; use
491         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
492         (charset_code_point): Moved from char-ucs.h; support `mother'
493         charset feature.
494         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
495         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
496         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
497         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
498         allow 2 as the value of `graphic' in UTF-2000; add new properties
499         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
500         require `final' in UTF-2000; modify for `make_charset'.
501         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
502         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
503         (Fcharset_property): Support `mother', `min-code' and `max-code'.
504         (Fencode_char): New function.
505         (syms_of_mule_charset): Add new builtin function `encode-char' in
506         UTF-2000; add new symbols `min-code', `max-code', `mother',
507         `conversion' and `94x60'; delete symbols `mojikyo',
508         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
509         (complex_vars_of_mule_charset): Modify for `make_charset' change;
510         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
511         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
512
513         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
514         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
515
516         * char-ucs.h (Vcharset_mojikyo): Deleted.
517         (Vcharset_mojikyo_2022_1): Deleted.
518         (LEADING_BYTE_MOJIKYO): Deleted.
519         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
520         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
521         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
522         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
523         add new member `mother'; add new member `conversion'.
524         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
525         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
526         (CHARSET_MOTHER): New macro.
527         (CHARSET_CONVERSION): New macro.
528         (CONVERSION_IDENTICAL): New macro.
529         (CONVERSION_94x60): New macro.
530         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
531         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
532         (XCHARSET_MOTHER): New macro.
533         (XCHARSET_CONVERSION): New macro.
534         (MIN_CHAR_MOJIKYO): Deleted.
535         (MAX_CHAR_MOJIKYO): Deleted.
536         (DECODE_MOJIKYO_2022): Deleted.
537         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
538         (charset_code_point): Changed to non-inline function.
539         (encode_char_1): Use `charset_code_point'.
540         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
541
542 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
543
544         * lread.c (read_compiled_function): Fix prototype.
545         (read_vector): Likewise.
546
547 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
548
549         * lrecord.h (struct lrecord_header): Delete `older'.
550         (set_lheader_implementation): Delete code for `older'.
551         (set_lheader_older_implementation): Deleted.
552         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
553         (OLDER_RECORD_P): Deleted.
554         (OLDER_RECORD_HEADER_P): Deleted.
555         (alloc_older_lcrecord): Deleted.
556         (alloc_older_lcrecord_type): Deleted.
557
558         * alloc.c (all_older_lcrecords): Deleted.
559         (alloc_older_lcrecord): Deleted.
560         (disksave_object_finalization_1): Delete code for older objects.
561         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
562         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
563
564 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
565
566         * mule-charset.c (decoding_table_put_char): Use `make_vector'
567         instead of `make_older_vector'.
568         (put_char_ccs_code_point): Likewise.
569         (mark_charset): Mark `cs->decoding_table'.
570         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
571
572         * lisp.h (make_older_vector): Deleted.
573         (make_vector_newer): Deleted.
574
575         * config.h.in (HAVE_GGC): Deleted.
576
577         * alloc.c (make_older_vector): Deleted.
578         (make_vector_newer_1): Deleted.
579         (make_vector_newer): Deleted.
580
581 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
584         (Qideograph_daikanwa_2): New variable.
585         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
586         (complex_vars_of_mule_charset): Add new coded-charset
587         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
588         `LEADING_BYTE_DAIKANWA'.
589
590         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
591         (LEADING_BYTE_DAIKANWA_1): New macro.
592         (LEADING_BYTE_DAIKANWA_2): New macro.
593         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
594
595 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * mule-charset.c (complex_vars_of_mule_charset): Change
598         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
599         the second revised version.
600
601 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * mule-charset.c (Vcharset_ucs_smp): New variable.
604         (Vcharset_ucs_sip): New variable.
605         (Qucs_smp): New variable.
606         (Qucs_sip): New variable.
607         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
608         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
609         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
610         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
611         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
612         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
613
614         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
615         (LEADING_BYTE_UCS_SIP): New macro.
616         (MIN_CHAR_SMP): New macro.
617         (MAX_CHAR_SMP): New macro.
618         (MIN_CHAR_SIP): New macro.
619         (MAX_CHAR_SIP): New macro.
620
621 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
622
623         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
624         utf-2000.
625
626 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
627
628         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
629         value; don't store value into `encoding_table' of `Lisp_Charset'.
630         (mark_charset): `encoding_table' was deleted.
631         (charset_description): Likewise.
632         (make_charset): Likewise.
633         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
634         `put_char_ccs_code_point'.
635
636         * chartab.h (Fput_char_attribute): New EXFUN.
637
638         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
639         is unified with normal symbol space.
640         (Fget_char_attribute): Likewise.
641         (Fput_char_attribute): Likewise; behavior of
642         `put_char_ccs_code_point' is changed.
643
644         * char-ucs.h: Include "elhash.h".
645         (Vchar_attribute_hash_table): New external variable.
646         (struct Lisp_Charset): Delete `encoding_table'.
647         (CHARSET_ENCODING_TABLE): New implementation; refer
648         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
649         `Lisp_Charset'.
650
651 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
654         (cs) == 0.
655
656 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
657
658         * text-coding.c (char_encode_big5): Prefer charset-g1 than
659         `chinese-big5'.
660
661 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * chartab.c (uint8_byte_table_description): New constant.
664         (uint8-byte-table): Use `uint8_byte_table_description'.
665         (uint16_byte_table_description): New constant.
666         (uint16-byte-table): Use `uint16_byte_table_description'.
667
668 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
671         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
672
673 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * mule-charset.c (Vcharset_ucs_ks): New variable.
676         (Qucs_ks): New variable.
677         (syms_of_mule_charset): Add new symbol `ucs-ks'.
678         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
679
680         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
681
682 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
685         (Fdecode_char): Likewise.
686
687         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
688         chartab.h.
689         (Fdefine_char): Modify for Fdecode_char.
690         (Ffind_char): Likewise.
691
692         * mule-charset.c (Fdecode_char): Add new optional argument
693         `defined-only'.
694         (Fdecode_builtin_char): Modify for `Fdecode_char'.
695
696 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
699         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
700         (allocate_coding_system): Initialize initial-charsets of
701         CODESYS_BIG5 in XEmacs UTF-2000.
702         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
703         CODESYS_BIG5 in XEmacs UTF-2000.
704         (decode_coding_big5): Use initial-charset-g0 and -g1 of
705         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
706
707         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
708         variables.
709         (Qideograph_hanziku_{1 .. 12}): Likewise.
710         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
711         .. 12}'.
712         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
713         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
714         `ideograph-hanziku-{1 .. 12}'.
715
716         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
717         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
718         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
719         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
720         (DECODE_DEFINED_CHAR): New inline function.
721         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
722
723 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * mule-charset.c (Vcharset_china3_jef): Renamed from
726         `Vcharset_japanese_jef_china3'.
727         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
728         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
729         `{MIN|MAX}_CHAR_JEF_CHINA3'..
730         (syms_of_mule_charset): Rename `china3-jef' from
731         `japanese-jef-china3'.
732         (complex_vars_of_mule_charset): Likewise; rename
733         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
734
735         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
736         `LEADING_BYTE_JEF_CHINA3'.
737         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
738         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
739
740 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
741
742         * mule-charset.c (encode_builtin_char_1): Comment out special code
743         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
744
745         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
746         (MAX_CHAR_MOJIKYO_0): Comment out.
747         (MIN_CHAR_CBETA): Changed to 0x00E20000.
748         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
749         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
750         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
751
752 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
755         (Qideograph_cbeta): New variable.
756         (encode_builtin_char_1): Comment out special code for
757         coded-charset `mojikyo' and `japanese-jef-china3'.
758         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
759         (complex_vars_of_mule_charset): Add new coded-charset
760         `ideograph-cbeta'.
761
762         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
763         (MIN_CHAR_CBETA): New macro.
764         (MAX_CHAR_CBETA): New macro.
765
766 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
769         (LEADING_BYTE_JEF_CHINA3): New macro.
770         (MIN_CHAR_JEF_CHINA3): New macro.
771         (MAX_CHAR_JEF_CHINA3): Likewise.
772         (DECODE_CHAR): Fixed.
773
774 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
775
776         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
777         (Qjapanese_jef_china3): New variable.
778         (encode_builtin_char_1): Support `japanese-jef-china3'.
779         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
780         (complex_vars_of_mule_charset): Add new coded-charset
781         `japanese-jef-china3'.
782
783 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
786         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
787         94^4, 96^3, 96^4, 128^n and 256^n set.
788         (put_char_table): Use `XCHARSET_CELL_RANGE'.
789         (map_char_table): Likewise.
790
791 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
794         UTF-2000.
795
796 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * chartab.h (get_char_id_table): New inline function.
799
800         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
801         function.
802
803 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * chartab.h (decode_char_table_range): New prototype in XEmacs
806         UTF-2000.
807         (put_char_id_table): New inline function in XEmacs UTF-2000.
808
809         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
810         function.
811         (decode_char_table_range): Delete static declaration in XEmacs
812         UTF-2000.
813
814 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * chartab.c (put_char_id_table): Use `put_char_table'.
817
818 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
819
820         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
821         (map_over_uint16_byte_table): Likewise.
822         (map_over_byte_table): Likewise.
823         (map_char_table): Modify for `map_over_uint8_byte_table',
824         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
825         UTF-2000.
826
827 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * chartab.c (struct map_char_table_for_charset_arg): New
830         structure.
831         (map_char_table_for_charset_fun): New function.
832         (map_char_table): Use `map_char_table' for encoding_table of
833         `range->charset'.
834
835 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * chartab.c (map_char_table): Check a character is found in
838         range->charset instead of non default value is defined in
839         char-table when range is CHARTAB_RANGE_ROW.
840
841 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
842
843         * chartab.c (map_char_id_table): Deleted.
844         (Fmap_char_attribute): Use `map_char_table' instead of
845         `map_char_id_table'.
846
847 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
848
849         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
850         UTF-2000.
851         (update_syntax_table): Deleted in XEmacs UTF-2000.
852
853         * syntax.c (find_defun_start): Use `syntax_table' instead of
854         `mirror_syntax_table' in XEmacs UTF-2000.
855         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
856         UTF-2000.
857         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
858         XEmacs UTF-2000.
859         (Fmatching_paren): Likewise.
860         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
861         in XEmacs UTF-2000.
862         (find_start_of_comment): Likewise.
863         (find_end_of_comment): Likewise.
864         (Fforward_comment): Likewise.
865         (scan_lists): Likewise.
866         (char_quoted): Likewise.
867         (Fbackward_prefix_chars): Likewise.
868         (scan_sexps_forward): Likewise.
869         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
870         (update_syntax_table): Likewise.
871
872         * search.c (skip_chars): Use `syntax_table' instead of
873         `mirror_syntax_table' in XEmacs UTF-2000.
874         (wordify): Likewise.
875         (Freplace_match): Likewise.
876
877         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
878         `mirror_syntax_table' in XEmacs UTF-2000.
879         (WORDCHAR_P_UNSAFE): Likewise.
880         (re_match_2_internal): Likewise.
881
882         * font-lock.c (find_context): Use `buf->syntax_table' instead of
883         `buf->mirror_syntax_table' in XEmacs UTF-2000.
884
885         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
886         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
887
888         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
889         XEmacs UTF-2000.
890
891         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
892         UTF-2000.
893         (print_char_table): Print `default_value' in XEmacs UTF-2000.
894         (char_table_description): Delete `mirror_table' in XEmacs
895         UTF-2000.
896         (fill_char_table): Don't call `update_syntax_table' in XEmacs
897         UTF-2000.
898         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
899         (Fcopy_char_table): Likewise.
900         (put_char_table): Don't call `update_syntax_table' in XEmacs
901         UTF-2000.
902
903         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
904         `buf->mirror_syntax_table' in XEmacs UTF-2000.
905         (casify_region_internal): Likewise.
906
907         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
908
909         * buffer.c (common_init_complex_vars_of_buffer): Don't use
910         `mirror_syntax_table' in XEmacs UTF-2000.
911
912         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
913         `buf->mirror_syntax_table' in XEmacs UTF-2000.
914         (Fexpand_abbrev): Likewise.
915
916 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
917
918         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
919
920 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
923         (map_over_uint16_byte_table): Likewise.
924         (map_over_byte_table): Likewise.
925         (get_char_id_table): Refer `cit->default_value'.
926         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
927         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
928         of character-id ranges.
929         (mark_char_table): Mark `ct->default_value'.
930         (char_table_description): Add `default_value'.
931         (fill_char_table): Use `default_value'.
932         (decode_char_table_range): Decode `nil' as
933         `CHARTAB_RANGE_DEFAULT'.
934         (get_char_id_table): Refer `cit->default_value'.
935         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
936         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
937         temporary hack; check value of char-table is bound or not.
938         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
939
940         * chartab.h (struct Lisp_Char_Table): Add new member
941         `default_value' in XEmacs UTF-2000.
942         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
943         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
944         UTF-2000.
945
946 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * chartab.h (Lisp_Char_ID_Table): Deleted.
949
950         * chartab.c (char_table_description): Fix typo.
951         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
952         `Lisp_Char_ID_Table'.
953
954 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
955
956         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
957         `CHAR_ID_TABLE_P'.
958
959         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
960         `CHAR_ID_TABLE_P'.
961
962         * chartab.h (XCHAR_ID_TABLE): Deleted.
963         (XSETCHAR_ID_TABLE): Deleted.
964         (CHAR_ID_TABLE_P): Deleted.
965
966         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
967         `CHAR_ID_TABLE_P'.
968         (Fget_composite_char): Likewise.
969         (put_char_table): Likewise.
970         (add_char_attribute_alist_mapper): Fixed.
971         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
972         `CHAR_ID_TABLE_P'.
973         (Fget_char_attribute): Likewise.
974         (Fget_char_attribute): Likewise.
975         (Fmap_char_attribute): Likewise.
976
977         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
978         `CHAR_ID_TABLE_P'.
979         (encode_char_1): Likewise.
980
981 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
982
983         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
984         `XCHAR_ID_TABLE'.
985
986         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
987         instead of `XCHAR_ID_TABLE'.
988         (remove_char_ccs): Likewise.
989
990         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
991         `XCHAR_ID_TABLE'.
992         (Fget_composite_char): Likewise.
993         (Fchar_variants): Likewise.
994         (put_char_table): Likewise.
995         (add_char_attribute_alist_mapper): Likewise.
996         (Fchar_attribute_alist): Likewise.
997         (Fget_char_attribute): Likewise.
998         (Fput_char_attribute): Likewise.
999         (Fmap_char_attribute): Likewise.
1000         (Fmap_char_attribute): Likewise.
1001
1002         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1003         `XCHAR_ID_TABLE'.
1004         (encode_char_1): Likewise.
1005
1006 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1009         `Lisp_Char_ID_Table'.
1010         (mark_char_id_table): Deleted.
1011         (print_char_id_table): Likewise.
1012         (char_id_table_equal): Likewise.
1013         (char_id_table_hash): Likewise.
1014         (char_id_table_description): Likewise.
1015         (char_id_table): Likewise.
1016         (make_char_id_table): Use `Fmake_char_table' and
1017         `fill_char_table'.
1018         (get_char_id_table): Use `Lisp_Char_Table' instead of
1019         `Lisp_Char_ID_Table'.
1020         (put_char_id_table): Likewise.
1021         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1022         `XCHAR_ID_TABLE'.
1023         (Fremove_char_attribute): Likewise.
1024         (syms_of_chartab): Don't define type `char-id-table'.
1025
1026         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1027         (char_id_table): Likewise.
1028         (GC_CHAR_ID_TABLE_P): Likewise.
1029         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1030         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1031         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1032         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1033         (get_char_id_table): Use `Lisp_Char_Table' instead of
1034         `Lisp_Char_ID_Table'.
1035         (put_char_id_table_0): Likewise.
1036         (put_char_id_table): Likewise.
1037
1038 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1039
1040         * chartab.h: Lisp_Byte_Table related codes are moved from
1041         chartab.h.
1042
1043         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1044
1045 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1046
1047         * chartab.h: Don't include "chartab.h".
1048         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1049         (Lisp_Char_ID_Table): Likewise.
1050         (char_id_table): Likewise.
1051         (XCHAR_ID_TABLE): Likewise.
1052         (XSETCHAR_ID_TABLE): Likewise.
1053         (CHAR_ID_TABLE_P): Likewise.
1054         (GC_CHAR_ID_TABLE_P): Likewise.
1055         (get_char_id_table): Likewise.
1056
1057         * char-ucs.h: Include "chartab.h".
1058         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1059         (Lisp_Char_ID_Table): Likewise.
1060         (char_id_table): Likewise.
1061         (XCHAR_ID_TABLE): Likewise.
1062         (XSETCHAR_ID_TABLE): Likewise.
1063         (CHAR_ID_TABLE_P): Likewise.
1064         (GC_CHAR_ID_TABLE_P): Likewise.
1065         (get_char_id_table): Likewise.
1066
1067 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1068
1069         * chartab.c (copy_uint8_byte_table): New function.
1070         (copy_uint16_byte_table): New function.
1071         (copy_byte_table): New function.
1072         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1073         characters to call.
1074         (map_over_uint16_byte_table): Likewise.
1075         (map_over_byte_table): Likewise.
1076         (get_byte_table): Move prototype to chartab.h.
1077         (put_byte_table): Likewise.
1078         (put_char_id_table_0): Moved to chartab.h.
1079         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1080         (char_table_entry_equal): Likewise.
1081         (char_table_entry_hash): Likewise.
1082         (char_table_entry_description): Likewise.
1083         (char_table_entry): Likewise.
1084         (make_char_table_entry): Likewise.
1085         (copy_char_table_entry): Likewise.
1086         (get_non_ascii_char_table_value): Likewise.
1087         (map_over_charset_ascii): Likewise.
1088         (map_over_charset_control_1): Likewise.
1089         (map_over_charset_row): Likewise.
1090         (map_over_other_charset): Likewise.
1091         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1092         (print_char_table): Likewise.
1093         (char_table_equal): Likewise.
1094         (char_table_hash): Likewise.
1095         (char_table_description): Likewise.
1096         (fill_char_table): Likewise.
1097         (Fcopy_char_table): Likewise.
1098         (get_char_table): Likewise.
1099         (Fget_range_char_table): Likewise.
1100         (put_char_table): Likewise.
1101         (map_char_table): Likewise.
1102         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1103         UTF-2000.
1104
1105 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1106
1107         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1108         `Vauto_fill_chars' in XEmacs UTF-2000.
1109
1110         * chartab.h (get_byte_table): New prototype [moved from
1111         chartab.c].
1112         (put_byte_table): Likewise [moved from chartab.c].
1113         (put_char_id_table_0): New inline function [moved from chartab.c].
1114         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1115         (Lisp_Char_Table_Entry): Likewise.
1116         (char_table_entry): Likewise.
1117         (XCHAR_TABLE_ENTRY): Likewise.
1118         (XSETCHAR_TABLE_ENTRY): Likewise.
1119         (CHAR_TABLE_ENTRYP): Likewise.
1120         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1121         (NUM_ASCII_CHARS): Likewise.
1122         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1123         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1124
1125 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126
1127         * chartab.c (get_char_id_table): Change interface.
1128         (put_char_id_table_0): New function.
1129         (put_char_id_table): Change interface; new implementation.
1130         (Fget_composite_char): Modify for interface change of
1131         `get_char_id_table'.
1132         (Fchar_variants): Likewise.
1133         (add_char_attribute_alist_mapper): Likewise.
1134         (Fchar_attribute_alist): Likewise.
1135         (Fget_char_attribute): Likewise.
1136         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1137         as same as character as the first argument like `put-char-table';
1138         modify for interface change of `put_char_id_table'.
1139         (Fremove_char_attribute): Modify for interface change of
1140         `put_char_id_table'.
1141
1142 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143
1144         * text-coding.c: Sync up with XEmacs 21.2.41.
1145         (COMPOSE_ADD_CHAR): Modify for interface change of
1146         `get_char_id_table'.
1147
1148         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1149         change of `put_char_id_table'.
1150         (remove_char_ccs): Likewise.
1151
1152         * chartab.h (put_char_id_table): Change interface.
1153
1154         * char-ucs.h (get_char_id_table): Change interface.
1155         (charset_code_point): Modify for interface change of
1156         `get_char_id_table'.
1157         (encode_char_1): Likewise.
1158
1159 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1160
1161         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1162         argument `ccs'.
1163         (map_over_uint16_byte_table): Likewise.
1164         (map_over_byte_table): Likewise.
1165         (map_char_id_table): Add new argument `range' like
1166         `map_char_table'.
1167         (Fmap_char_attribute): Add new argument `range' like
1168         `Fmap_char_table'.
1169
1170 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * chartab.c (map_over_uint8_byte_table): Change interface of
1173         mapping function to use struct chartab_range instead of Emchar.
1174         (map_over_uint16_byte_table): Likewise.
1175         (map_over_byte_table): Likewise.
1176         (map_char_id_table): Likewise.
1177         (struct slow_map_char_id_table_arg): Deleted.
1178         (slow_map_char_id_table_fun): Deleted.
1179         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1180         function `slow_map_char_table_fun' instead of struct
1181         `slow_map_char_id_table_arg' and function
1182         `slow_map_char_id_table_fun'.
1183
1184 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * mule-charset.c: Move char-it-table related codes to chartab.c.
1187         (Vutf_2000_version): Moved to chartab.c.
1188         (Fdefine_char): Likewise.
1189         (Ffind_char): Likewise.
1190         (syms_of_mule_charset): Move types `uint8-byte-table',
1191         `uint16-byte-table', `byte-table' and `char-id-table' to
1192         chartab.c; move functions `char_attribute_list,
1193         `find_char_attribute_table, `char_attribute_alist,
1194         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1195         `map_char_attribute, `define_char, `find_char, `char_variants and
1196         `get_composite_char to chartab.c; move symbols `=>ucs',
1197         `->decomposition', `compat', `isolated', `initial', `medial',
1198         `final', `vertical', `noBreak', `fraction', `super', `sub',
1199         `circle', `square', `wide', `narrow', `small' and `font' to
1200         chartab.c.
1201         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1202         setting codes for `Vcharacter_composition_table' and
1203         `Vcharacter_variant_table' to chartab.c.
1204         (complex_vars_of_mule_charset): Move setting code for
1205         `Vchar_attribute_hash_table' to chartab.c.
1206
1207         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1208         (make_char_id_table): New prototype.
1209         (put_char_id_table): Likewise.
1210         (Fget_char_attribute): Likewise.
1211
1212         * chartab.c: Move char-id-table related code from mule-charset.c.
1213         (Vutf_2000_version): Moved from mule-charset.c.
1214
1215         * char-ucs.h (Qucs): New external variable.
1216         (put_char_ccs_code_point): New prototype.
1217         (remove_char_ccs): Likewise.
1218
1219 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1220
1221         * mule-charset.c (Vcharset_ucs_jis): New variable.
1222         (Qucs_jis): Likewise.
1223         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1224         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1225
1226         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1227
1228 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * mule-charset.c (map_over_uint8_byte_table): New function.
1231         (map_over_uint16_byte_table): Likewise.
1232         (map_over_byte_table): Likewise.
1233         (map_char_id_table): Likewise.
1234         (slow_map_char_id_table_fun): Likewise.
1235         (Fmap_char_attribute): Likewise.
1236         (syms_of_mule_charset): Add new function `map-char-attribute'.
1237
1238 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1239
1240         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1241         (syms_of_mule_charset): Add new function `find-char'.
1242
1243 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1246         XEmacs UTF-2000.
1247         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1248         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1249         XEmacs UTF-2000.
1250         (complex_vars_of_mule_charset): Add new coded-charset
1251         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1252         `ideograph-gt-pj-*'.
1253
1254         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1255
1256 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * mule-charset.c (encode_builtin_char_1): Purge codes about
1259         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1260         {MIN|MAX}_CHAR_HEBREW.
1261         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1262         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1263
1264         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1265         (MAX_CHAR_GREEK): Purged.
1266         (MIN_CHAR_CYRILLIC): Purged.
1267         (MAX_CHAR_CYRILLIC): Purged.
1268         (MIN_CHAR_HEBREW): Commented out.
1269         (MAX_CHAR_HEBREW): Likewise.
1270
1271 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * mule-charset.c (Qto_ucs): New variable.
1274         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1275         (Fdefine_char): Likewise.
1276         (syms_of_mule_charset): Add new symbol `=>ucs'.
1277
1278 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (Fdecode_char): Fixed.
1281
1282 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1283
1284         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1285         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1286         "tcvn5712-1".
1287
1288 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (Vcharset_ucs_big5): New variable.
1291         (Qucs_big5): Likewise.
1292         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1293         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1294
1295         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1296
1297 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298
1299         * mule-charset.c (decode_builtin_char): Check Big5 code range
1300         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1301
1302 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303
1304         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1305         (Qchinese_gb12345): Likewise.
1306         (Fdecode_builtin_char): Fixed.
1307         (syms_of_mule_charset): Add `chinese-gb12345'.
1308         (complex_vars_of_mule_charset): Add coded-charset
1309         `chinese-gb12345'.
1310
1311         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1312         (LEADING_BYTE_CHINESE_GB12345): New macro.
1313
1314 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1315
1316         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1317         and `latin-viscii-upper' for `latin-viscii'.
1318
1319 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1320
1321         * mule-charset.c (Fdecode_builtin_char): Comment out
1322         regularization code for ISO-IR GR representation.
1323
1324 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * mule-charset.c (decode_builtin_char): New function; renamed from
1327         `make_builtin_char'; return -1 instead of signal.
1328         (Fdecode_builtin_char): Use `decode_builtin_char'.
1329
1330         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1331         `make_builtin_char'.
1332         (DECODE_CHAR): Use `decode_builtin_char' instead of
1333         `make_builtin_char'; use mapping table of `chinese-big5' for
1334         `chinese-big5-{1,2}'.
1335
1336 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * text-coding.c (char_encode_big5): New function.
1339         (char_finish_big5): Likewise.
1340         (reset_encoding_stream): Use `char_encode_big5' and
1341         `char_finish_big5' for CODESYS_BIG5.
1342         (mule_encode): Don't use `encode_coding_big5'.
1343         (encode_coding_big5): Deleted.
1344
1345 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1346
1347         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1348         0x81- in XEmacs UTF-2000.
1349         (detect_coding_big5): Likewise.
1350
1351 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1352
1353         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1354         generate character-id if the CCS property does not have
1355         corresponding predefined character.
1356         (make_builtin_char): Return -1 if corresponding predefined
1357         character is not found.
1358         (Fdecode_char): Return nil if corresponding character is not
1359         found.
1360         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1361         don't map to builtin ucs space.
1362
1363 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1366         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1367
1368 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369
1370         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1371         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1372         (Qideograph_gt): Likewise.
1373         (Qideograph_gt_pj_{1..11}): Likewise.
1374         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1375         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1376         `ideograph-gt-pj-11'.
1377         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1378         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1379         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1380
1381         * char-ucs.h (LEADING_BYTE_GT): New macro.
1382         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1383         (MIN_CHAR_GT): Likewise.
1384         (MAX_CHAR_GT): Likewise.
1385
1386 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387
1388         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1389         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1390
1391         * doprnt.c (unsigned_int_converters): Add `c'.
1392         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1393
1394         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1395         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1396         `MIN_CHAR_MOJIKYO'.
1397         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1398         (MAX_CHAR_MOJIKYO_0): New macro.
1399         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1400
1401 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1402
1403         * mule-charset.c (Fdefine_char): Delete cemented out code.
1404         (encode_builtin_char_1): Modify for new allocation of builtin
1405         Mojikyo characters.
1406
1407         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1408
1409 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * mule-charset.c (Vcharset_ucs_cns): New variable.
1412         (Qucs_cns): New variable.
1413         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1414         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1415
1416 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1419
1420 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1421
1422         * search.c (search_buffer): Make `charset_base_code' as
1423         character-id >> 6 to eliminate the corresponding last byte in
1424         UTF-8 representation [I'm not sure it is right thing].
1425         (boyer_moore): Likewise.
1426
1427 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1428
1429         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1430         representation in MULE.
1431
1432 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1433
1434         * text-coding.c (Fmake_coding_system): Use
1435         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1436         `EXTERNAL_PROPERTY_LIST_LOOP'.
1437
1438 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * text-coding.c (decode_output_utf8_partial_char): New function.
1441         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1442
1443 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * text-coding.c (decode_coding_utf8): Output original byte
1446         sequence if it is broken; change order of conditions.
1447
1448         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1449         of conditions.
1450
1451         * mb-multibyte.h (BYTE_ASCII_P):
1452         Use bit ops for char-signedness safety.
1453         (BYTE_C0_P): Use bit ops for char-signedness safety.
1454         (BYTE_C1_P): Use bit ops for char-signedness safety.
1455
1456         * character.h: (XCHAR_OR_CHAR_INT):
1457         Always use inline function.
1458         Remove redundant type checking assert() - XINT will abort quite
1459         nicely.
1460
1461 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * text-coding.c: (Fencode_shift_jis_char):
1464         (Fencode_big5_char):
1465         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1466         Replace 0 with '\0' when working with bytes.
1467         Replace initial "(" with "\(" in docstrings.
1468
1469         (Fmake_coding_system):
1470         When type is ccl and value is vector, register it with a proper
1471         symbol.  And checks whether the given ccl program is valid.
1472         (mule_decode): When calling ccl_driver, if src indicates
1473         NULL pointer, set an empty string instead.
1474         (mule_encode): Likewise.
1475
1476         (detect_eol_type):
1477         (detect_coding_sjis):
1478         (decode_coding_sjis):
1479         (detect_coding_big5):
1480         (decode_coding_big5):
1481         (detect_coding_ucs4):
1482         (decode_coding_ucs4):
1483         (detect_coding_utf8):
1484         (decode_coding_utf8):
1485         (detect_coding_iso2022):
1486         (decode_coding_iso2022):
1487         (decode_coding_no_conversion):
1488         (mule_decode):
1489         Make all detecting and decoding functions take an Extbyte * arg.
1490         (text_encode_generic):
1491         (encode_coding_big5):
1492         (encode_coding_no_conversion):
1493         (mule_encode):
1494         Make all encoding functions take a Bufbyte * arg.
1495         Use size_t instead of unsigned int for memory sizes.
1496         Only cast to unsigned char whenever dereferencing Extbyte *.
1497
1498         (struct lrecord_description fcd_description_1): Use countof.
1499         (complex_vars_of_file_coding):
1500         Use countof instead of sizeof.
1501         Use CHECK_NATNUM instead of CHECK_INT.
1502
1503 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * mule-charset.c (Fget_char_attribute): Add new optional argument
1506         `default-value'.
1507         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1508         (remove_char_ccs): Likewise.
1509
1510 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1511
1512         * text-coding.c (char_encode_shift_jis): New implementation in
1513         UTF-2000.
1514         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1515         ...)'.
1516
1517         * mule-charset.c (Vcharset_chinese_big5): New variable in
1518         UTF-2000.
1519         (Qchinese_big5): New variable in UTF-2000.
1520         (BIG5_SAME_ROW): New macro in UTF-2000.
1521         (make_builtin_char): Use builtin characters of
1522         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1523         characters of `Vcharset_chinese_big5'.
1524         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1525         (complex_vars_of_mule_charset): Add new coded-charset
1526         `chinese-big5' in UTF-2000.
1527
1528         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1529         (Vcharset_chinese_big5): New external variable declaration.
1530         (Vcharset_japanese_jisx0208_1990): Likewise.
1531
1532 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1535         function.
1536         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1537
1538 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1541         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1542         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1543         `mojikyo-pj-*'.
1544
1545 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1548
1549 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550
1551         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1552         to 0.17.
1553
1554 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555
1556         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1557         for `CHARSET_BY_ATTRIBUTES'.
1558         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1559         `CHARSET_BY_ATTRIBUTES'.
1560
1561         * text-coding.c (struct decoding_stream): Rename member `CH' to
1562         `CPOS'.
1563         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1564         (decode_coding_sjis): Likewise.
1565         (decode_coding_big5): Likewise.
1566         (decode_coding_ucs4): Likewise.
1567         (decode_coding_utf8): Likewise.
1568         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1569         `CHARSET_BY_ATTRIBUTES'.
1570         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1571         `str->counter'; decode 3, 4 bytes sets.
1572         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1573         sets.
1574         (decode_coding_no_conversion): Use `str->cpos' instead of
1575         `str->ch'.
1576
1577         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1578         (Qmojikyo_2022_1): New variable.
1579         (make_charset): Don't use `CHARSET_TYPE_*'.
1580         (range_charset_code_point): Support coded-charset
1581         `mojikyo-2022-1'.
1582         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1583         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1584         `CHARSET_BY_ATTRIBUTES'.
1585         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1586         `CHARSET_BY_ATTRIBUTES'.
1587         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1588         (complex_vars_of_mule_charset): Add new coded-charset
1589         `mojikyo-2022-1'.
1590
1591         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1592         interface; changed to inline function.
1593
1594         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1595         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1596         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1597         (CHARSET_TYPE_94): Deleted.
1598         (CHARSET_TYPE_94X94): Deleted.
1599         (CHARSET_TYPE_96): Deleted.
1600         (CHARSET_TYPE_96X96): Deleted.
1601         (CHARSET_TYPE_128): Deleted.
1602         (CHARSET_TYPE_128X128): Deleted.
1603         (CHARSET_TYPE_256): Deleted.
1604         (CHARSET_TYPE_256X256): Deleted.
1605         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1606         to inline function.
1607         (DECODE_MOJIKYO_2022): New inline function.
1608         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1609         `Vcharset_mojikyo_2022_1'.
1610
1611 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1612
1613         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1614         instead of `EQ'.
1615         (put_byte_table): Likewise.
1616         (char_id_table_equal): Use `get_byte_table' [new implementation].
1617
1618 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * mule-charset.c: Include <limits.h> in UTF-2000.
1621         (BT_UINT8_MIN): New macro in UTF-2000.
1622         (BT_UINT8_MAX): New macro in UTF-2000.
1623         (BT_UINT8_t): New macro in UTF-2000.
1624         (BT_UINT8_nil): New macro in UTF-2000.
1625         (BT_UINT8_unbound): New macro in UTF-2000.
1626         (INT_UINT8_P): New inline function in UTF-2000.
1627         (UINT8_VALUE_P): New inline function in UTF-2000.
1628         (UINT8_ENCODE): New inline function in UTF-2000.
1629         (UINT8_DECODE): New inline function in UTF-2000.
1630         (mark_uint8_byte_table): New function in UTF-2000.
1631         (print_uint8_byte_table): New function in UTF-2000.
1632         (uint8_byte_table_equal): New function in UTF-2000.
1633         (uint8_byte_table_hash): New function in UTF-2000.
1634         (make_uint8_byte_table): New function in UTF-2000.
1635         (uint8_byte_table_same_value_p): New function in UTF-2000.
1636         (BT_UINT16_MIN): New macro in UTF-2000.
1637         (BT_UINT16_MAX): New macro in UTF-2000.
1638         (BT_UINT16_t): New macro in UTF-2000.
1639         (BT_UINT16_nil): New macro in UTF-2000.
1640         (BT_UINT16_unbound): New macro in UTF-2000.
1641         (INT_UINT16_P): New inline function in UTF-2000.
1642         (UINT16_VALUE_P): New inline function in UTF-2000.
1643         (UINT16_ENCODE): New inline function in UTF-2000.
1644         (UINT16_DECODE): New inline function in UTF-2000.
1645         (UINT8_TO_UINT16): New inline function in UTF-2000.
1646         (mark_uint16_byte_table): New function in UTF-2000.
1647         (print_uint16_byte_table): New function in UTF-2000.
1648         (uint16_byte_table_equal): New function in UTF-2000.
1649         (uint16_byte_table_hash): New function in UTF-2000.
1650         (make_uint16_byte_table): New function in UTF-2000.
1651         (uint16_byte_table_same_value_p): New function in UTF-2000.
1652         (print_byte_table): New function in UTF-2000.
1653         (byte-table): Use `print_byte_table' as printer.
1654         (make_byte_table): Delete second argument `older'.
1655         (byte_table_same_value_p): New function in UTF-2000.
1656         (copy_byte_table): Deleted.
1657         (get_byte_table): New function in UTF-2000.
1658         (put_byte_table): New function in UTF-2000.
1659         (print_char_id_table): New function in UTF-2000.
1660         (char-id-table): Use `print_char_id_table' as printer.
1661         (make_char_id_table): Delete second argument `older'.
1662         (get_char_id_table): Use `get_byte_table [new implementation].
1663         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1664         implementation].
1665         (Ffind_char_attribute_table): New function in UTF-2000.
1666         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1667         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1668         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1669         (syms_of_mule_charset): Add new function
1670         `find-char-attribute-table' in UTF-2000.
1671
1672         * lrecord.h (enum lrecord_type): Add
1673         `lrecord_type_uint16_byte_table' and
1674         `lrecord_type_uint8_byte_table'.
1675
1676         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1677         (Lisp_Uint8_Byte_Table): New type.
1678         (XUINT8_BYTE_TABLE): New macro.
1679         (XSETUINT8_BYTE_TABLE): New macro.
1680         (UINT8_BYTE_TABLE_P): New macro.
1681         (GC_UINT8_BYTE_TABLE_P): New macro.
1682         (struct Lisp_Uint16_Byte_Table): New structure.
1683         (Lisp_Uint16_Byte_Table): New type.
1684         (XUINT16_BYTE_TABLE): New macro.
1685         (XSETUINT16_BYTE_TABLE): New macro.
1686         (UINT16_BYTE_TABLE_P): New macro.
1687         (GC_UINT16_BYTE_TABLE_P): New macro.
1688
1689 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1692         (Vcharacter_ideographic_strokes_table): Deleted.
1693         (Vcharacter_total_strokes_table): Deleted.
1694         (Vcharacter_morohashi_daikanwa_table): Deleted.
1695         (Vcharacter_decomposition_table): Deleted.
1696         (Qname): Deleted because it is duplicated.
1697         (Qideographic_radical): Deleted.
1698         (Qideographic_strokes): Deleted.
1699         (Qtotal_strokes): Deleted.
1700         (Qmorohashi_daikanwa): Deleted.
1701         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1702         `ideographic-radical', `ideographic-strokes', `total-strokes',
1703         `morohashi-daikanwa' and `->decomposition'.
1704         (Fget_char_attribute): Likewise.
1705         (Fput_char_attribute): Likewise; use `make-vector' instead of
1706         `make_older_vector' for `->decomposition' value.
1707         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1708         `ideograph-daikanwa'.
1709         (syms_of_mule_charset): Delete builtin symbols `name',
1710         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1711         `morohashi-daikanwa'.
1712         (vars_of_mule_charset): Don't setup
1713         `Vcharacter_ideographic_radical_table',
1714         `Vcharacter_ideographic_strokes_table',
1715         `Vcharacter_total_strokes_table',
1716         `Vcharacter_morohashi_daikanwa_table' and
1717         `Vcharacter_decomposition_table'.
1718
1719 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1720
1721         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1722         `make_older_vector', `make_vector_newer_1' and
1723         `make_vector_newer'.
1724
1725         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1726         `make_older_vector' and `make_vector_newer'.
1727
1728         * config.h.in (HAVE_GGC): New macro.
1729
1730 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1731
1732         * mule-charset.c (struct char_attribute_list_closure): New
1733         structure in UTF-2000.
1734         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1735         (Fchar_attribute_list): Likewise.
1736         (Fset_charset_mapping_table): Use `make_vector_newer'.
1737         (Fdecode_builtin_char): New function in UTF-2000.
1738         (syms_of_mule_charset): Add new function `char-attribute-list' and
1739         `decode-builtin-char' in UTF-2000.
1740
1741         * lisp.h (make_vector_newer): New prototype.
1742
1743         * alloc.c (make_vector_newer_1): New function.
1744         (make_vector_newer): New function.
1745
1746 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1747
1748         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1749         50100)'.
1750
1751 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752
1753         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1754         (Vcharacter_attribute_table): Deleted.
1755         (Vcharacter_name_table): Deleted.
1756         (put_char_attribute): Deleted.
1757         (remove_char_attribute): Deleted.
1758         (struct char_attribute_alist_closure): New structure.
1759         (add_char_attribute_alist_mapper): New function.
1760         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1761         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1762         (Fget_char_attribute): Likewise.
1763         (Fput_char_attribute): Likewise.
1764         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1765         of `remove_char_attribute'.
1766         (Fdefine_char): Return character.
1767         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1768         and `Vcharacter_name_table'.
1769         (complex_vars_of_mule_charset): Likewise
1770         `Vchar_attribute_hash_table'.
1771
1772 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773
1774         * character.h (CHARC_CHARSET): New macro.
1775         (CHARC_CHARSET_ID): New macro.
1776         (CHARC_CODE_POINT): New macro.
1777         (CHARC_COLUMNS): New macro.
1778         (CHARC_TO_CHAR): New inline function.
1779         (CHARC_EQ): New inline function.
1780         (CHARC_ASCII_EQ): New inline function.
1781         (CHARC_IS_SPACE): New inline function.
1782         (ASCII_TO_CHARC): New inline function.
1783
1784         * char-ucs.h (encode_char_2): Deleted.
1785         (ENCODE_CHAR): Use `encode_char_1' again.
1786         (breakup_char_1): Likewise.
1787         (CHAR_TO_CHARC): New inline function.
1788
1789         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1790
1791 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1794         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1795         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1796         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1797         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1798         `CHARC_IS_SPACE'.
1799         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1800
1801         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1802         `CHARC_CODE_POINT'.
1803         (x_output_display_block): Use `CHARC_CHARSET' and
1804         `CHARC_ASCII_EQ'.
1805
1806         * redisplay-tty.c (tty_output_display_block): Use
1807         `CHARC_ASCII_EQ'.
1808         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1809
1810         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1811
1812         * insdel.c (find_charsets_in_charc_string): Use
1813         `CHARC_CHARSET_ID'.
1814         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1815         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1816         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1817         (convert_charc_string_into_malloced_string): Likewise.
1818
1819 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1822         instead of <Emchar_dynarr *> for buf; use
1823         `convert_bufbyte_string_into_charc_dynarr' instead of
1824         `convert_bufbyte_string_into_emchar_dynarr'; use
1825         `find_charsets_in_charc_string' instead of
1826         `find_charsets_in_emchar_string'.
1827
1828         * redisplay.h:
1829         - Include "character.h".
1830         (struct rune): New member `cglyph'; delete member `chr'.
1831
1832         * redisplay.c (redisplay_text_width_charc_string): New function;
1833         delete `redisplay_text_width_emchar_string'.
1834         (rtw_charc_dynarr): New variable; renamed from
1835         `rtw_emchar_dynarr'.
1836         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1837         `rtw_emchar_dynarr'; use
1838         `convert_bufbyte_string_into_charc_dynarr' instead of
1839         `convert_bufbyte_string_into_emchar_dynarr'; use
1840         `redisplay_text_width_charc_string' instead of
1841         `redisplay_text_width_emchar_string'.
1842         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1843         instead of `rtw_emchar_dynarr'; use
1844         `convert_bufbyte_string_into_charc_dynarr' instead of
1845         `convert_bufbyte_string_into_emchar_dynarr'.
1846         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1847         `redisplay_text_width_charc_string' instead of
1848         `redisplay_text_width_emchar_string'.
1849         (create_text_block): Modify for <struct rune> change.
1850         (generate_formatted_string_db): Likewise.
1851         (create_string_text_block): Likewise.
1852         (pixel_to_glyph_translation): Likewise.
1853
1854         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1855         instead of <const Emchar *>.
1856         (x_text_width): Likewise.
1857         (x_output_display_block): Use <Charc_dynarr *> instead
1858         <Emchar_dynarr *>; modify for <structure rune> change.
1859         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1860         *>.
1861
1862         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1863         <const Emchar *>; use `charc_string_displayed_columns' instead of
1864         `emchar_string_displayed_columns'.
1865         (tty_output_display_block): Use <Charc_dynarr *> instead of
1866         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1867         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1868         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1869         `tty_output_emchar_dynarr_dynarr'.
1870         (tty_output_charc_dynarr): New function; delete
1871         `tty_output_charc_dynarr'.
1872
1873         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1874         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1875         <Emchar_dynarr *> for buf; use
1876         `convert_bufbyte_string_into_charc_dynarr' instead of
1877         `convert_bufbyte_string_into_emchar_dynarr'.
1878
1879         * frame.c (title_string_charc_dynarr): New variable; renamed from
1880         `title_string_emchar_dynarr'.
1881         (generate_title_string): Use `title_string_charc_dynarr' instead
1882         of `title_string_emchar_dynarr'; use
1883         `convert_charc_string_into_malloced_string' instead of
1884         `convert_emchar_string_into_malloced_string'.
1885         (init_frame): Use `title_string_charc_dynarr' instead of
1886         `title_string_emchar_dynarr'.
1887
1888         * console.h:
1889         - Include "character.h".
1890         (struct console_methods): Use <const Charc *> instead of <const
1891         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1892         <Emchar_dynarr *> in output_string_method.
1893
1894         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1895         <Emchar_dynarr *>.
1896
1897         * console-stream.c (stream_text_width): Use <const Charc *>
1898         instead of <const Emchar *>.
1899
1900         * character.h (Charc_dynarr): New type.
1901
1902         * char-ucs.h (structure Charc): New structure; define new type
1903         `Charc'.
1904
1905         * char-lb.h (DECODE_CHAR): New inline function.
1906         (encode_char_1): New inline function.
1907         (ENCODE_CHAR): New macro.
1908         (structure Charc): New structure; define new type `Charc'.
1909
1910         * char-1byte.h (Vcharset_control_1): New macro.
1911         (Vcharset_latin_iso8859_1): New macro.
1912         (DECODE_CHAR): New inline function.
1913         (encode_char_1): New inline function.
1914         (ENCODE_CHAR): New macro.
1915         (structure Charc): New structure; define new type `Charc'.
1916
1917         * insdel.c (find_charsets_in_charc_string): New function; delete
1918         `find_charsets_in_emchar_string'.
1919         (charc_string_displayed_columns): New function; delete
1920         `emchar_string_displayed_columns'.
1921         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1922         `convert_bufbyte_string_into_emchar_dynarr'.
1923         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1924         `convert_charc_string_into_bufbyte_dynarr'.
1925         (convert_charc_string_into_malloced_string): New function; delete
1926         `convert_charc_string_into_malloced_string'.
1927
1928         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1929         `find_charsets_in_emchar_string'.
1930         (charc_string_displayed_columns): New prototype; delete
1931         `emchar_string_displayed_columns'.
1932         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1933         `convert_charc_string_into_bufbyte_dynarr'.
1934         (convert_charc_string_into_malloced_string): New prototype; delete
1935         `convert_charc_string_into_malloced_string'.
1936
1937 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1938
1939         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1940
1941 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1942
1943         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1944
1945         * char-ucs.h: Use <short> for <Charset_ID>.
1946
1947         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1948         <Charset_ID>.
1949
1950 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1951
1952         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1953         to 0.16.
1954
1955 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1958         variable.
1959         (Qmorohashi_daikanwa): New variable.
1960         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1961         for `morohashi-daikanwa' attribute.
1962         (Fget_char_attribute): Likewise.
1963         (Fput_char_attribute): Likewise.
1964         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1965         has the same value of `ideograph-daikanwa'.
1966         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1967         (vars_of_mule_charset): Setup
1968         `Vcharacter_morohashi_daikanwa_table'.
1969
1970 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1971
1972         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1973         attributes.
1974         (add_charset_to_list_mapper): Add `key' instead of
1975         `XCHARSET_NAME (value)' to return aliases.
1976
1977 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1980         variable.
1981         (Vcharacter_ideographic_strokes_table): New variable.
1982         (Qideographic_radical): New variable.
1983         (Qideographic_strokes): New variable.
1984         (Fchar_attribute_alist): Use
1985         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1986         attribute; use `Vcharacter_ideographic_strokes_table' for
1987         `ideographic-strokes' attribute.
1988         (Fget_char_attribute): Likewise.
1989         (Fput_char_attribute): Likewise.
1990         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1991         `ideographic-strokes'.
1992         (vars_of_mule_charset): Setup
1993         `Vcharacter_ideographic_radical_table' and
1994         `Vcharacter_ideographic_strokes_table'.
1995
1996 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1999         (Qtotal_strokes): New variable.
2000         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2001         `total-strokes' attribute.
2002         (Fget_char_attribute): Likewise.
2003         (Fput_char_attribute): Likewise.
2004         (syms_of_mule_charset): Add new symbol `total-strokes'.
2005         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2006
2007 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2008
2009         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2010         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2011         are found.
2012         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2013         `->decomposition' attribute.
2014         (Fput_char_attribute): Likewise.
2015         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2016
2017 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2018
2019         * mule-charset.c (decoding_table_check_elements): New function.
2020         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2021
2022 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023
2024         * mule-charset.c (Fset_charset_mapping_table): Use
2025         `put_char_ccs_code_point'.
2026
2027 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2028
2029         * mule-charset.c (decoding_table_put_char): New inline function.
2030         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2031
2032 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2033
2034         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2035         (XCHARSET_BYTE_SIZE): New macro.
2036         (decoding_table_remove_char): New inline function.
2037         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2038         `decoding_table_remove_char'.
2039         (remove_char_ccs): Use `decoding_table_remove_char'.
2040         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2041
2042 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2043
2044         * mule-charset.c (Vcharacter_name_table): New variable.
2045         (Qname): New variable.
2046         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2047         attribute.
2048         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2049         `Vcharacter_name_table' for `name' attribute.
2050         (Fremove_char_attribute): Use function `remove_char_ccs'.
2051         (put_char_ccs_code_point): New function.
2052         (remove_char_ccs): New function.
2053         (syms_of_mule_charset): Add new symbol `name'.
2054         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2055
2056 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057
2058         * mule-charset.c (make_byte_table): Add new argument `older'.
2059         (make_char_id_table): Likewise.
2060         (copy_char_id_table): Comment out because it is not used.
2061         (put_char_id_table): Modify for `make_byte_table'.
2062         (Fput_char_attribute): Make encoding_table as older object;
2063         inherit older bit of `Vcharacter_composition_table'.
2064         (mark_charset): Don't mark `cs->encoding_table'.
2065         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2066         normal object; make `Vcharacter_composition_table' as an older
2067         object; delete staticpro for `Vcharacter_composition_table'; make
2068         `Vcharacter_variant_table' as a normal object.
2069
2070         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2071         (mark_object): Don't check older object in UTF-2000.
2072
2073         * lrecord.h (struct lrecord_header): Add new member `older' in
2074         UTF-2000.
2075         (set_lheader_implementation): Setup `SLI_header->older' in
2076         UTF-2000.
2077         (set_lheader_older_implementation): New macro in UTF-2000.
2078         (OLDER_RECORD_P): New macro in UTF-2000.
2079         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2080         (alloc_older_lcrecord): New prototype in UTF-2000.
2081         (alloc_older_lcrecord_type): New macro in UTF-2000.
2082
2083 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * mule-charset.c (byte_table_description): Use
2086         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2087         (char_id_table_description): Delete bogus `, 1'.
2088         (Fget_char_attribute): Refer encoding_table of each coded-charset
2089         to get value of coded-charset attribute of a character.
2090         (Fput_char_attribute): Use `make_older_vector' instead of
2091         `make_vector'; use encoding_table of each coded-charset to store
2092         value of coded-charset attribute of a character.
2093         (Fremove_char_attribute): Use encoding_table of each coded-charset
2094         to store value of coded-charset attribute of a character.
2095         (mark_charset): Mark `cs->encoding_table'; don't mark
2096         `cs->decoding_table'.
2097         (charset_description): Add description of new member
2098         `encoding_table'.
2099         (make_charset): Initialize `encoding_table'.
2100
2101         * char-ucs.h (struct Lisp_Charset): Add new member
2102         `encoding_table'.
2103         (CHARSET_ENCODING_TABLE): New macro.
2104         (XCHARSET_ENCODING_TABLE): New macro.
2105         (charset_code_point): New implementation.
2106         (encode_char_1): Likewise.
2107
2108         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2109         (disksave_object_finalization_1): Call finalizers of
2110         `all_older_lcrecords' in UTF-2000.
2111         (make_older_vector): New function in UTF-2000.
2112         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2113         UTF-2000.
2114
2115         * lisp.h (make_older_vector): New prototype in UTF-2000.
2116
2117 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * lrecord.h (enum lrecord_type): Rename
2120         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2121
2122         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2123         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2124         `get_char_code_table'.
2125
2126         * mule-charset.c (mark_char_id_table): Renamed from
2127         `mark_char_code_table'.
2128         (char_id_table_equal): Renamed from `char_code_table_equal'.
2129         (char_id_table_hash): Renamed from `char_code_table_hash'.
2130         (make_char_id_table): Renamed from `make_char_code_table'.
2131         (copy_char_id_table): Renamed from `copy_char_code_table'.
2132         (get_char_id_table): Renamed from `get_char_code_table'.
2133         (put_char_id_table): Renamed from `put_char_code_table'.
2134         (to_char_id): Renamed from `to_char_code'.
2135
2136         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2137         `Lisp_Char_Code_Table'.
2138         (char_id_table): Renamed from `char_code_table'.
2139         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2140         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2141         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2142         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2143         (get_char_id_table): Renamed from `get_char_code_table'.
2144
2145 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146
2147         * lrecord.h (enum lrecord_type): Rename
2148         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2149
2150         * mule-charset.c (mark_byte_table): Renamed from
2151         `mark_char_byte_table'.
2152         (byte_table_equal): Renamed from `char_byte_table_equal'.
2153         (byte_table_hash): Renamed from `byte_table_hash'.
2154         (make_byte_table): Renamed from `make_byte_table'.
2155         (copy_byte_table): Renamed from `copy_char_byte_table'.
2156
2157         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2158         `Lisp_Char_Byte_Table'.
2159         (byte_table): Renamed from `char_byte_table'.
2160         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2161         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2162         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2163         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2164
2165 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2166
2167         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2168         (dfc_convert_to_internal_format): Likewise.
2169         
2170         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2171         * text-coding.c (Fcoding_system_alias_p): New function.
2172         * text-coding.c (Fcoding_system_aliasee): New function.
2173         * text-coding.c (append_suffix_to_symbol): New function.
2174         * text-coding.c (dangling_coding_system_alias_p): New function.
2175         * text-coding.c (Ffind_coding_system):
2176         * text-coding.c (Fcopy_coding_system):
2177         * text-coding.c (encode_coding_no_conversion):
2178         * text-coding.c (syms_of_file_coding):
2179         * text-coding.c (vars_of_file_coding):
2180         Rewrite coding system alias code.
2181         Allow nested aliases, like symbolic links.
2182         Allow redefinition of coding system aliases.
2183         Prevent existence of dangling coding system aliases.
2184         Eliminate convert_to_external_format.
2185         Eliminate convert_to_internal_format.
2186         
2187         * text-coding.c: Change enum eol_type to eol_type_t.
2188
2189 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190
2191         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2192         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2193
2194         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2195         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2196
2197 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2198
2199         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2200         `ideograph-daikanwa'.
2201
2202         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2203         (Vcharset_ucs_bmp): Likewise.
2204         (Vcharset_mojikyo): Add new extern variable definition.
2205         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2206         (Vcharset_latin_iso8859_3): Likewise.
2207         (Vcharset_latin_iso8859_4): Likewise.
2208         (Vcharset_latin_iso8859_9): Likewise.
2209         (Vcharset_latin_viscii_lower): Likewise.
2210         (Vcharset_latin_viscii_upper): Likewise.
2211         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2212         `mojikyo' code-point is used to decode.
2213         (encode_char_2): New function [to convert `mojikyo' code-point to
2214         Mojikyo font encoding].
2215         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2216         (breakup_char_1): Likewise.
2217         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2218
2219 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * text-coding.c (Fmake_coding_system): Add document about
2222         `disable-composition' property.
2223
2224 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * text-coding.c (Qdisable_composition): New variable; delete
2227         `Qcomposite'.
2228         (Fmake_coding_system): Add new property `disable-composite';
2229         delete property `composite'.
2230         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2231         instead of `!CODING_SYSTEM_COMPOSITE'.
2232         (syms_of_file_coding): Add new symbol `disable-composition';
2233         delete symbol `composite'.
2234
2235         * file-coding.h (struct Lisp_Coding_System): Add
2236         `disable_composition'; delete `enable_composition'.
2237         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2238         `CODING_SYSTEM_COMPOSITE'.
2239         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2240         `XCODING_SYSTEM_COMPOSITE'.
2241
2242 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2245         to 0.15.
2246
2247 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * text-coding.c (Qcomposite): New variable.
2250         (Fmake_coding_system): Add new property `composite'.
2251         (struct decoding_stream): Add `combined_char_count',
2252         `combined_chars' and `combining_table' in UTF-2000.
2253         (COMPOSE_FLUSH_CHARS): New macro.
2254         (COMPOSE_ADD_CHAR): New macro.
2255         (reset_decoding_stream): Reset `str->combined_char_count' and
2256         `str->combining_table' in UTF-2000.
2257         (decode_coding_iso2022): Modify for character-decomposition.
2258         (syms_of_file_coding): Add new symbol `composite'.
2259
2260 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2261
2262         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2263         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2264         of `Vcharacter_composition_table' if `->decomposition' property
2265         has only 1 element.
2266         (Qlatin_tcvn5712): New variable.
2267         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2268         (complex_vars_of_mule_charset): Add new coded-charset
2269         `latin-tcvn5712'.
2270
2271         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2272
2273 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274
2275         * file-coding.h (struct Lisp_Coding_System): Add
2276         `enable_composition'.
2277         (CODING_SYSTEM_COMPOSITE): New macro.
2278         (XCODING_SYSTEM_COMPOSITE): New macro.
2279
2280 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2281
2282         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2283
2284 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2285
2286         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2287         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2288
2289 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2290
2291         * mule-charset.c (Vcharset_mojikyo): New variable.
2292         (Fdefine_char): Don't use coded-charset which does not have
2293         non-builtin character range to allocate character-id.
2294         (Qmojikyo): New variable.
2295         (syms_of_mule_charset): Add new symbol `mojikyo'.
2296         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2297
2298         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2299         (LEADING_BYTE_MOJIKYO): New macro.
2300         (MIN_CHAR_MOJIKYO): New macro.
2301         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2302         (MAX_CHAR_MOJIKYO): New macro.
2303
2304 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2305
2306         * mule-charset.c (remove_char_attribute): Fixed.
2307
2308 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2309
2310         * mule-charset.c (remove_char_attribute): New function.
2311         (Fremove_char_attribute): New function.
2312         (encode_builtin_char_1): Comment out builtin-support for
2313         greek-iso8859-7 and cyrillic-iso8859-5.
2314         (Fdecode_char): Check `code' is an integer.
2315         (syms_of_mule_charset): Add `remove-char-attribute'.
2316         (MIN_CHAR_GREEK): Deleted.
2317         (MAX_CHAR_GREEK): Likewise.
2318         (MIN_CHAR_CYRILLIC): Likewise.
2319         (MAX_CHAR_CYRILLIC): Likewise.
2320         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2321         MAX_CHAR_GREEK for `greek-iso8859-7'.
2322
2323         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2324         (MAX_CHAR_GREEK): Likewise.
2325         (MIN_CHAR_CYRILLIC): Likewise.
2326         (MAX_CHAR_CYRILLIC): Likewise.
2327
2328 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2329
2330         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2331         format is used without `ucs' property.
2332         (Fdecode_char): Fix problem with GR representation.
2333         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2334         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2335
2336 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2337
2338         * mule-charset.c (make_builtin_char): New function.
2339         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2340         (Fset_charset_mapping_table): Modify for new representation of
2341         code-point.
2342         (Fdecode_char): New function.
2343         (syms_of_mule_charset): Add new builtin function `decode-char' in
2344         UTF-2000.
2345
2346         * char-ucs.h (make_builtin_char): New prototype.
2347         (DECODE_CHAR): New inline function.
2348         (MAKE_CHAR): Use `DECODE_CHAR'.
2349
2350 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2351
2352         * text-coding.c (parse_charset_conversion_specs): Use
2353         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2354         `XCHARSET_TYPE'.
2355         (iso2022_designate): Likewise.
2356
2357         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2358         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2359
2360         * mule-charset.c (Vcharset_ucs): New variable.
2361         (print_charset): Change design; use `CHARSET_CHARS' and
2362         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2363         (make_charset): Change signature to specify `chars' and
2364         `dimension' instead of `type'.
2365         (range_charset_code_point): Modify for 256^n-set.
2366         (encode_builtin_char_1): Encode as `ucs' in default.
2367         (Fmake_charset): Modify for `make_charset'.
2368         (Fmake_reverse_direction_charset): Likewise.
2369         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2370         UTF-2000.
2371         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2372         for `make_charset'.
2373
2374         * char-ucs.h (Vcharset_ucs): New variable.
2375         (LEADING_BYTE_UCS): New macro.
2376         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2377         and `chars' to `unsigned short' from `unsigned int'.
2378         (CHARSET_TYPE): Deleted.
2379         (XCHARSET_TYPE): Deleted.
2380
2381 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2382
2383         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2384
2385         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2386         (ENCODE_CHAR): New macro.
2387
2388 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2389
2390         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2391         to 0.14 (Kawachi-Katakami).
2392
2393 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2394
2395         * text-coding.c (char_encode_shift_jis): Modify for
2396         `charset_code_point'.
2397         (char_encode_iso2022): Likewise.
2398
2399         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2400         (integer) instead of list of <Lisp_Object>s (integers) as the
2401         format of code-point of a coded-charset.
2402         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2403         (encode_builtin_char_1): New function; delete
2404         `split_builtin_char'.
2405         (charset_code_point): Return <int> instead of <Lisp_Object>.
2406         (Fsplit_char): Don't use `SPLIT_CHAR'.
2407
2408         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2409         prototype for `split_builtin_char'.
2410         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2411         (charset_code_point): Likewise.
2412         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2413         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2414
2415 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2416
2417         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2418         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2419
2420 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2421
2422         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2423
2424         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2425         (MAX_CHAR_OBS_94x94): Deleted.
2426
2427 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2428
2429         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2430
2431         * char-ucs.h (MAX_CHAR_BMP): New macro.
2432
2433 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2434
2435         * text-coding.c: Sync with r21-2-24.
2436
2437 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2438
2439         * file-coding.c: Modify for UTF-2000.
2440
2441 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2442
2443         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2444         to 0.13 (Takaida).
2445
2446 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2447
2448         * mule-charset.c (split_builtin_char): Delete builtin support for
2449         `katakana-jisx0201'.
2450         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2451         BMP area in builtin representation.
2452
2453         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2454         `Vcharset_katakana_jisx0201'.
2455
2456 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2457
2458         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2459         (Qisolated): New variable.
2460         (Qinitial): New variable.
2461         (Qmedial): New variable.
2462         (Qfinal): New variable.
2463         (Qvertical): New variable.
2464         (Qsmall): New variable.
2465         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2466         `Qvertical' and `Qsmall'.
2467         (Qmojikyo_pj_[1 .. 21]): New variable.
2468         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2469         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2470         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2471         .. 21]'.
2472
2473 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2474
2475         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2476         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2477         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2478
2479 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2480
2481         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2482         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2483         BMP.
2484         (Qjapanese_jisx0208_1990): New variable.
2485         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2486         (complex_vars_of_mule_charset): Add new coded-charset
2487         `japanese-jisx0208-1990'.
2488
2489         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2490         (MIN_CHAR_JIS_X0208_1990): New macro.
2491         (MAX_CHAR_JIS_X0208_1990): New macro.
2492
2493 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2494
2495         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2496         coded-charset is not found.
2497
2498 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2499
2500         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2501         (Fdefine_char): Use `Fmake_char'.
2502
2503 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2504
2505         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2506         (Vcharset_hiragana_jisx0208): Deleted.
2507         (Vcharset_katakana_jisx0208): Deleted.
2508         (Qideograph_daikanwa): New variable.
2509         (Qhiragana_jisx0208): Deleted.
2510         (Qkatakana_jisx0208): Deleted.
2511         (split_builtin_char): Split `ideograph-daikanwa'.
2512         (Fsplit_char): New implementation for UTF-2000.
2513         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2514         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2515         (complex_vars_of_mule_charset): Add new coded-charset
2516         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2517         `katakana-jisx0208'.
2518
2519         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2520         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2521         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2522         (MIN_CHAR_DAIKANWA): New macro.
2523         (MAX_CHAR_DAIKANWA): New macro.
2524
2525 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2526
2527         * data.c (Fstring_to_number): Don't recognize floating point if
2528         base is not 10.
2529
2530 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2531
2532         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2533
2534 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2535
2536         * mule-charset.c (Qsquare): New variable.
2537         (to_char_code): Add `Qsquare'.
2538         (syms_of_mule_charset): Add new symbol `square'.
2539
2540 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2541
2542         * mule-charset.c (Qcircle): New variable.
2543         (to_char_code): Add `Qcircle'.
2544         (syms_of_mule_charset): Add new symbol `circle'.
2545
2546 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2547
2548         * mule-charset.c (Qfont): New variable.
2549         (to_char_code): Add `Qfont'.
2550         (syms_of_mule_charset): Add new symbol `font'.
2551
2552 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2553
2554         * mule-charset.c (Qsub): New variable.
2555         (to_char_code): Add `Qsub'.
2556         (syms_of_mule_charset): Add new symbol `sub'.
2557
2558 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2559
2560         * mule-charset.c (Fput_char_attribute): Convert each element of
2561         VALUE to GL position if ATTRIBUTE is a GR-set,
2562
2563 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2564
2565         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2566         coded-charset is a GR-set.
2567
2568 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2569
2570         * mule-charset.c (Fput_char_attribute): Check each element of
2571         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2572
2573 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2574
2575         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2576         UTF-2000.
2577         (Qethiopic_ucs): New variable in UTF-2000.
2578         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2579         (complex_vars_of_mule_charset): Add new coded-charset
2580         `ethiopic-ucs' in UTF-2000.
2581
2582         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2583         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2584         9)'.
2585         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2586         10)'.
2587         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2588
2589 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2590
2591         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2592         `ascii'.
2593
2594 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2595
2596         * mule-charset.c (Vcharacter_variant_table): New variable.
2597         (Q_ucs): New variable.
2598         (Fchar_variants): New function.
2599         (Fput_char_attribute): Register `->ucs' value to
2600         `Vcharacter_variant_table'.
2601         (syms_of_mule_charset): Add new function `char-variants' and new
2602         symbol `->ucs'.
2603         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2604
2605 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2606
2607         * mule-charset.c (get_char_code_table): Allow negative character
2608         code.
2609         (put_char_code_table): Likewise.
2610         (Vcharacter_composition_table): New variable.
2611         (Q_decomposition): New variable.
2612         (Qwide): New variable.
2613         (Qnarrow): New variable.
2614         (Qcompat): New variable.
2615         (QnoBreak): New variable.
2616         (Qsuper): New variable.
2617         (Qfraction): New variable.
2618         (to_char_code): New function.
2619         (Fget_composite_char): New function.
2620         (Fput_char_attribute): Register `->decomposition' value to
2621         `Vcharacter_composition_table'.
2622         (syms_of_mule_charset): Add new function `get-composite-char', new
2623         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2624         `super' and `fraction'.
2625         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2626
2627 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2628
2629         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2630         character; copy the return value.
2631
2632 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2633
2634         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2635
2636         * mule-charset.c (range_charset_code_point): Must use make_int.
2637         (split_builtin_char): New function.
2638
2639 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2640
2641         * mule-charset.c (char_byte_table): Change name from
2642         "char-code-table" to "char-byte-table".
2643         (mark_char_code_table): New function.
2644         (char_code_table_equal): New function.
2645         (char_code_table_hash): New function.
2646         (char_code_table_description): New constant.
2647         (char_code_table): New type.
2648         (make_char_code_table): New function.
2649         (copy_char_code_table): New function.
2650         (get_char_code_table): Modify for `char_code_table' type.
2651         (put_char_code_table): Likewise.
2652         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2653         (Kashiwara).
2654
2655         * char-ucs.h (char_code_table): New type.
2656         (XCHAR_CODE_TABLE): New macro.
2657         (XSETCHAR_CODE_TABLE): New macro.
2658         (CHAR_CODE_TABLE_P): New macro.
2659         (GC_CHAR_CODE_TABLE_P): New macro.
2660         (struct Lisp_Char_Code_Table): New structure.
2661
2662 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2663
2664         * mule-charset.c (Fmake_charset): Setup byte_offset for
2665         {94|96}^n-set.
2666
2667 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2668
2669         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2670         character.
2671
2672 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2673
2674         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2675         is found.
2676
2677 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2678
2679         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2680         charset, it is regarded as a charset.
2681         (put_char_attribute): New function in UTF-2000.
2682         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2683         charset, mapping-table of the charset is modified.
2684         (Fdefine_char): New function in UTF-2000.
2685         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2686         `Fput_char_attribute'.
2687         (syms_of_mule_charset): Add new function `define-char' and new
2688         symbol `ucs' in UTF-2000.
2689         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2690
2691 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2692
2693         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2694         non-UTF-2000 configuration.
2695
2696 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2697
2698         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2699         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2700
2701         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2702         deleted.
2703         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2704         (Fset_charset_mapping_table): Likewise.
2705
2706         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2707         (CHARSET_ENCODING_TABLE): Delete.
2708         (XCHARSET_ENCODING_TABLE): Delete.
2709         (charset_code_point): New interface.
2710
2711 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2712
2713         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2714         instead of `charset_get_byte1' and `charset_get_byte2'.
2715
2716         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2717         (charset_get_byte2): Deleted.
2718
2719 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2720
2721         * char-ucs.h (SPLIT_CHAR): New inline function.
2722         (breakup_char_1): Use `SPLIT_CHAR'.
2723
2724         * mule-charset.c (range_charset_code_point): New function.
2725         (charset_code_point): New function.
2726
2727         * char-ucs.h (range_charset_code_point): New interface.
2728         (breakup_char_1): Use `range_charset_code_point'.
2729
2730 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2731
2732         * mule-charset.c (Fmake_charset): Delete unused local variable
2733         `code_offset'.
2734
2735         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2736         (breakup_char_1): Find a charset and code-point in
2737         `Vcharacter_attribute_table'.
2738
2739 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2740
2741         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2742         to 0.10 (Yao).
2743
2744 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2745
2746         * mule-charset.c (Vcharacter_attribute_table): New variable.
2747         (Fchar_attribute_alist): New function.
2748         (Fget_char_attribute): New function.
2749         (Fput_char_attribute): New function.
2750         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2751         too.
2752         (syms_of_mule_charset): Add new function `char-attribute-alist',
2753         `get-char-attribute' and `put-char-attribute'.
2754         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2755
2756 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2757
2758         * mule-charset.c (Fmake_charset): Just use
2759         `get_unallocated_leading_byte'.
2760
2761         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2762         sets; don't use final-byte based number for private sets.
2763
2764 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2765
2766         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2767         integer.
2768
2769 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2770
2771         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2772         to 0.9.
2773
2774 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2775
2776         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2777         of `CHAR_LEADING_BYTE' in UTF-2000.
2778
2779         * insdel.c (find_charsets_in_bufbyte_string): Use
2780         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2781         (find_charsets_in_emchar_string): Likewise.
2782
2783         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2784         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2785
2786         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2787         (CHAR_CHARSET_ID): New macro.
2788
2789 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2790
2791         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2792         charset-id - MIN_LEADING_BYTE.
2793         (put_char_table): Likewise.
2794
2795 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2796
2797         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2798         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2799         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2800         (CHARSET_ID_OFFSET): New macro.
2801         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2802         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2803         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2804         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2805         4).
2806         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2807         5).
2808         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2809         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2810         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2811         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2812         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2813
2814 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2815
2816         * mule-charset.c (next_allocated_leading_byte): New variable in
2817         UTF-2000.
2818         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2819         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2820         (get_unallocated_leading_byte): Simply use
2821         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2822         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2823         UTF-2000.
2824
2825         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2826         (MAX_LEADING_BYTE_PRIVATE): New macro.
2827         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2828         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2829
2830 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2831
2832         * mule-charset.c (Fmake_charset): Allocate final-byte based
2833         charset-id for 94-set, 96-set and 94x94-set.
2834
2835 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2836
2837         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2838         ambiguous `else'.
2839         (Fmake_charset): Likewise.
2840         (complex_vars_of_mule_charset): Modify the font registry of
2841         `ucs-bmp' not to match `Ethiopic-Unicode'.
2842
2843 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2844
2845         * mule-charset.c (complex_vars_of_mule_charset): Add font
2846         registory of `ucs-bmp'.
2847
2848 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2849
2850         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2851         coded-charsets in `default-coded-charset-priority-list' when
2852         breaking up a character.
2853
2854         * mule-charset.c (Vcharset_latin_viscii): New variable.
2855         (Qlatin_viscii): New variable.
2856         (make_charset): Don't use `decoding_table'.
2857         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2858         byte_offset.
2859         (Fset_charset_mapping_table): New implementation.
2860         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2861         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2862         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2863         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2864         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2865         charset `latin_viscii'.
2866
2867         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2868         (CHARSET_TYPE_94X94): Change to 1 from 2.
2869         (CHARSET_TYPE_96): Change to 2 from 1.
2870         (CHARSET_TYPE_128): New macro.
2871         (CHARSET_TYPE_128X128): Change to 5 from 4.
2872         (CHARSET_TYPE_256): New macro.
2873         (CHARSET_TYPE_256X256): Change to 7 from 5.
2874         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2875
2876 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2877
2878         * text-coding.c (char_encode_shift_jis): Refer
2879         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2880         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2881
2882         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2883         (char_byte_table_equal): New function in UTF-2000.
2884         (char_byte_table_hash): New function in UTF-2000.
2885         (char_byte_table_description): New constant in UTF-2000.
2886         (char_byte_table): New type in UTF-2000.
2887         (make_char_byte_table): New function in UTF-2000.
2888         (copy_char_byte_table): New function in UTF-2000.
2889         (make_char_code_table): New macro in UTF-2000.
2890         (get_char_code_table): New function in UTF-2000.
2891         (put_char_code_table): New function in UTF-2000.
2892         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2893         (charset_description): Add setting in UTF-2000.
2894         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2895         `CHARSET_TO_BYTE1_TABLE(cs)'.
2896         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2897         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2898         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2899         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2900         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2901         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2902         `CHARSET_TO_BYTE2_TABLE(cs)'.
2903
2904         * char-ucs.h (char_byte_table): New type.
2905         (XCHAR_BYTE_TABLE): New macro.
2906         (XSETCHAR_BYTE_TABLE): New macro.
2907         (CHAR_BYTE_TABLE_P): New macro.
2908         (GC_CHAR_BYTE_TABLE_P): New macro.
2909         (struct Lisp_Char_Byte_Table): New structure.
2910         (get_char_code_table): New interface.
2911         (Emchar_to_byte_table): Deleted.
2912         (get_byte_from_character_table): Deleted.
2913         (struct Lisp_Charset): Add `encoding_table'; delete
2914         `to_byte1_table' and `to_byte2_table'.
2915         (CHARSET_ENCODING_TABLE): New macro.
2916         (CHARSET_TO_BYTE1_TABLE): Deleted.
2917         (CHARSET_TO_BYTE2_TABLE): Deleted.
2918         (XCHARSET_ENCODING_TABLE): New macro.
2919         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2920         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2921
2922 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2923
2924         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2925         `vietnamese-viscii-*'.
2926
2927 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2928
2929         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2930         (Qvietnamese_viscii_upper): New variable.
2931         (Fdefine_charset_alias): New function.
2932         (syms_of_mule_charset): Add new function `define-charset-alias'.
2933         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2934         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2935         `latin-viscii-*'.
2936
2937 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2938
2939         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2940         (MAX_CHAR_OBS_94x94): New macro.
2941         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2942         for 94x94 sets.
2943
2944         * mule-charset.c (put_byte_from_character_table): Change unit size
2945         from 128 to 256.
2946         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2947         not defined.
2948         (Fmake_reverse_direction_charset): Modify dummy argument of
2949         `make_charset' for non-UTF-2000 environment.
2950
2951 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2952
2953         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2954
2955         * mule-charset.c (destroy_byte_from_character_table): New macro.
2956         (latin_jisx0201_to_ucs): Deleted.
2957         (latin_iso8859_2_to_ucs): Deleted.
2958         (latin_iso8859_3_to_ucs): Deleted.
2959         (latin_iso8859_4_to_ucs): Deleted.
2960         (latin_iso8859_9_to_ucs): Deleted.
2961         (latin_viscii_lower_to_ucs): Deleted.
2962         (latin_viscii_upper_to_ucs): Deleted.
2963         (mark_charset): Mark `cs->decoding_table'.
2964         (Fcharset_mapping_table): Fix DOC-string.
2965         (Fset_charset_mapping_table): New function.
2966         (syms_of_mule_charset): Add nwe function
2967         `set-charset-mapping-table'.
2968         (complex_vars_of_mule_charset): Don't setup and use
2969         `latin_*_to_ucs'.
2970
2971 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2972
2973         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2974         charset.
2975
2976 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2977
2978         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2979         (Vcharset_katakana_jisx0208): New variable.
2980         (Qhiragana_jisx0208): New variable.
2981         (Qkatakana_jisx0208): New variable.
2982         (make_charset): Add new argument `byte_offset'.
2983         (charset_get_byte1): Modify for new coded-charset definition; use
2984         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2985         `XCHARSET_BYTE_OFFSET'.
2986         (Fmake_charset): Modify for `make_charset'.
2987         (Fmake_reverse_direction_charset): Likewise.
2988         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2989         `katakana-jisx0208'.
2990         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2991         `.'  in font registry of charset `katakana-jisx0201',
2992         `latin-jisx0201', `vietnamese-viscii-lower' and
2993         `vietnamese-viscii-upper'; modify DOC-string of charset
2994         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2995         registry of charset `japanese-jisx0208' not to use font for JIS
2996         X0208:1990; add new charset `hiragana-jisx0208' and
2997         `katakana-jisx0208'.
2998
2999         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3000         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3001         (struct Lisp_Charset): Add `byte_offset'.
3002         (CHARSET_BYTE_OFFSET): New macro.
3003         (XCHARSET_UCS_MIN): New macro.
3004         (XCHARSET_UCS_MAX): New macro.
3005         (XCHARSET_CODE_OFFSET): New macro.
3006         (XCHARSET_BYTE_OFFSET): New macro.
3007         (MIN_CHAR_HIRAGANA): New macro.
3008         (MAX_CHAR_HIRAGANA): New macro.
3009         (MIN_CHAR_KATAKANA): New macro.
3010         (MAX_CHAR_KATAKANA): New macro.
3011         (MAKE_CHAR): Modify for new coded-charset definition; use
3012         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3013         `XCHARSET_BYTE_OFFSET'.
3014
3015 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3016
3017         * mule-charset.c (CHAR96): Deleted.
3018         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3019         <Lisp_Object>.
3020         (latin_iso8859_2_to_ucs): Likewise.
3021         (latin_iso8859_3_to_ucs): Likewise.
3022         (latin_iso8859_4_to_ucs): Likewise.
3023         (latin_iso8859_9_to_ucs): Likewise.
3024         (latin_viscii_lower_to_ucs): Likewise.
3025         (latin_viscii_upper_to_ucs): Likewise.
3026         (latin_tcvn5712_to_ucs): Commented out.
3027         (make_charset): Change type of argument `decoding_table' from
3028         <Emchar*> to <Lisp_Object> [vector of characters].
3029         (Fmake_charset): Modify for `make_charset'.
3030         (Fmake_reverse_direction_charset): Likewise.
3031         (Fcharset_mapping_table): New function in UTF-2000.
3032         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3033         UTF-2000.
3034         (complex_vars_of_mule_charset): Modify for type change of
3035         `*_to_ucs'; modify for `make_charset'.
3036
3037         * char-ucs.h (struct Lisp_Charset): Change type of
3038         `decoding_table' from <Emchar*> to <Lisp_Object>.
3039         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3040
3041 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3042
3043         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3044         error with non-UTF-2000-Mule.
3045
3046 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3047
3048         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3049         in lisp again].
3050         (Vcharset_chinese_cns11643_4): Likewise.
3051         (Vcharset_chinese_cns11643_5): Likewise.
3052         (Vcharset_chinese_cns11643_6): Likewise.
3053         (Vcharset_chinese_cns11643_7): Likewise.
3054         (Qchinese_cns11643_3): Likewise.
3055         (Qchinese_cns11643_4): Likewise.
3056         (Qchinese_cns11643_5): Likewise.
3057         (Qchinese_cns11643_6): Likewise.
3058         (Qchinese_cns11643_7): Likewise.
3059         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3060         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3061         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3062         (complex_vars_of_mule_charset): Likewise.
3063
3064 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3065
3066         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3067         96-set.
3068         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3069         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3070
3071 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3072
3073         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3074         0xFF60.
3075         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3076         (breakup_char_1): Likewise.
3077
3078         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3079         one of them includes the specified character.
3080
3081 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3082
3083         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3084
3085 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3086
3087         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3088
3089 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3090
3091         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3092         definition for non-UTF-2000 Mule.
3093         (latin_iso8859_3_to_ucs): Likewise.
3094         (latin_iso8859_4_to_ucs): Likewise.
3095         (latin_iso8859_9_to_ucs): Likewise.
3096         (latin_jisx0201_to_ucs): Likewise.
3097         (MIN_CHAR_THAI): Likewise.
3098         (MAX_CHAR_THAI): Likewise.
3099         (MIN_CHAR_GREEK): Likewise.
3100         (MAX_CHAR_GREEK): Likewise.
3101         (MIN_CHAR_HEBREW): Likewise.
3102         (MAX_CHAR_HEBREW): Likewise.
3103         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3104         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3105         (MIN_CHAR_CYRILLIC): Likewise.
3106         (MAX_CHAR_CYRILLIC): Likewise.
3107
3108 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3109
3110         * char-ucs.h (breakup_char_1): Use
3111         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3112         thai-tis620 and katakana-jisx0201 area.
3113
3114 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3115
3116         * char-ucs.h (breakup_char_1): Use
3117         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3118         area.
3119
3120         * text-coding.c (reset_encoding_stream): Fixed.
3121         (char_encode_ucs4): Delete `& 255'.
3122
3123         * char-ucs.h (breakup_char_1): Use
3124         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3125
3126 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3127
3128         * file-coding.c (Fmake_coding_system): Don't set up
3129         `codesys->fixed.size'.
3130         (encode_coding_no_conversion): Don't refer
3131         `str->codesys->fixed.size'.
3132
3133 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3134
3135         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3136         (latin_a_char_to_byte1): Deleted.
3137         (latin_a_char_to_byte2): Deleted.
3138
3139 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3140
3141         * mule-charset.c (make_charset): Add new argument `ucs_min',
3142         `ucs_max' and `code_offset'.
3143         (charset_get_byte1): New implementation [delete specific charset
3144         depended implementations].
3145         (Fmake_charset): Modify for `make_charset'.
3146         (Fmake_reverse_direction_charset): Likewise.
3147         (complex_vars_of_mule_charset): Likewise.
3148
3149         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3150         `code_offset'.
3151         (CHARSET_UCS_MIN): New macro.
3152         (CHARSET_UCS_MAX): New macro.
3153         (CHARSET_CODE_OFFSET): New macro.
3154         (MAKE_CHAR): Delete charset depended definitions [except
3155         katakana-jisx0201].
3156
3157 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3158
3159         * char-ucs.h (breakup_char_1): Use
3160         `Vdefault_coded_charset_priority_list' for C0-Controls,
3161         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3162
3163 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3164
3165         * char-ucs.h (charset_get_byte1): New function.
3166         (XCHARSET_GET_BYTE1): Deleted.
3167         (charset_get_byte2): New function.
3168         (XCHARSET_GET_BYTE2): Deleted.
3169         (Vdefault_coded_charset_priority_list): New external variable.
3170         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3171         `Vdefault_preferred_coded_charset_list'.
3172
3173         * mule-charset.c (charset_get_byte1): New function.
3174         (charset_get_byte2): New function.
3175         (Vdefault_coded_charset_priority_list): New variable.
3176         (vars_of_mule_charset): Add new variable
3177         `default-coded-charset-priority-list'.
3178
3179 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3180
3181         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3182         (XCHARSET_GET_BYTE2): New inline function.
3183         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3184         `XCHARSET_GET_BYTE2'.
3185
3186 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3187
3188         * mule-charset.c (make_charset): Initialize
3189         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3190         NULL if table is not defined.
3191
3192 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3193
3194         * text-coding.c (char_encode_shift_jis): Use
3195         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3196         `ucs_to_latin_jisx0201'.
3197
3198         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3199         (ucs_to_latin_iso8859_2): Deleted.
3200         (ucs_to_latin_iso8859_3): Deleted.
3201         (ucs_to_latin_iso8859_4): Deleted.
3202         (ucs_to_latin_iso8859_9): Deleted.
3203         (ucs_to_latin_viscii_lower): Deleted.
3204         (ucs_to_latin_viscii_upper): Deleted.
3205         (ucs_to_latin_tcvn5712): Deleted.
3206         (make_charset): Add new argument `decoding_table'; set up
3207         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3208         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3209         `decoding_table' is defined in UTF-2000.
3210         (Fmake_charset): Modify for `make_charset'.
3211         (Fmake_reverse_direction_charset): Likewise.
3212         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3213         and `GENERATE_96_SET'.
3214
3215         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3216         (ucs_to_latin_jisx0201): Deleted.
3217         (latin_iso8859_2_to_ucs): Deleted.
3218         (ucs_to_latin_iso8859_2): Deleted.
3219         (latin_iso8859_3_to_ucs): Deleted.
3220         (ucs_to_latin_iso8859_3): Deleted.
3221         (latin_iso8859_4_to_ucs): Deleted.
3222         (ucs_to_latin_iso8859_4): Deleted.
3223         (latin_iso8859_9_to_ucs): Deleted.
3224         (ucs_to_latin_iso8859_9): Deleted.
3225         (latin_viscii_lower_to_ucs): Deleted.
3226         (ucs_to_latin_viscii_lower): Deleted.
3227         (latin_viscii_upper_to_ucs): Deleted.
3228         (ucs_to_latin_viscii_upper): Deleted.
3229         (struct Lisp_Charset): Renamed `encoding_table' to
3230         `to_byte1_table'; add `to_byte2_table'.
3231         (CHARSET_DECODING_TABLE): New macro.
3232         (CHARSET_TO_BYTE1_TABLE): New macro.
3233         (CHARSET_TO_BYTE2_TABLE): New macro.
3234         (XCHARSET_DECODING_TABLE): New macro.
3235         (XCHARSET_TO_BYTE1_TABLE): New macro.
3236         (XCHARSET_TO_BYTE2_TABLE): New macro.
3237         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3238         tables.
3239         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3240         don't use `ucs_to_*' tables.
3241
3242 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3243
3244         * text-coding.c (Fmake_coding_system): Don't set up
3245         `codesys->fixed.size'.
3246         (encode_coding_no_conversion): Use `if' instead of `switch'.
3247
3248         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3249
3250 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3251
3252         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3253         (Fmake_charset): Modify for `make_charset'.
3254         (Fmake_reverse_direction_charset): Likewise.
3255         (complex_vars_of_mule_charset): Likewise.
3256
3257 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3258
3259         * text-coding.c (char_encode_shift_jis): Use table
3260         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3261
3262 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3263
3264         * text-coding.c (text_encode_generic): Use `if' instead of
3265         `switch'.
3266         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3267         decode JIS-Latin.
3268
3269 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3270
3271         * text-coding.c (encode_coding_sjis): Deleted.
3272         (char_encode_shift_jis): New function.
3273         (char_finish_shift_jis): New function.
3274         (reset_encoding_stream): Set up `encode_char' and `finish' for
3275         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3276         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3277         (char_encode_utf8): Treat `eol_type'.
3278
3279 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3280
3281         * file-coding.c (decode_coding_iso2022): Use
3282         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3283
3284 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3285
3286         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3287         to 0.7 (Hirano).
3288
3289 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3290
3291         * char-lb.h (CHAR_COLUMNS): New macro.
3292
3293 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3294
3295         * text-coding.c (char_encode_ucs4): New function.
3296         (char_finish_ucs4): New function.
3297         (encode_coding_ucs4): Deleted.
3298         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3299         (text_encode_generic): Delete local variable `charset' and `half'.
3300         (ucs_to_mule_table): Deleted.
3301         (mule_to_ucs_table): Deleted.
3302         (Fset_ucs_char): Deleted.
3303         (ucs_to_char): Deleted.
3304         (Fucs_char): Deleted.
3305         (Fset_char_ucs): Deleted.
3306         (Fchar_ucs): Deleted.
3307         (decode_ucs4): Deleted.
3308         (mule_char_to_ucs4): Deleted.
3309         (encode_ucs4): Deleted.
3310         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3311         (decode_coding_utf8): Likewise.
3312         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3313         (char_encode_iso2022): Fixed.
3314         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3315         `Fset_char_ucs' and `Fchar_ucs'.
3316         (complex_vars_of_file_coding): Don't initialize
3317         `ucs_to_mule_table'.
3318
3319         * objects-tty.c (tty_initialize_font_instance): Don't use
3320         `XCHARSET_COLUMNS'.
3321
3322         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3323         UTF-2000.
3324
3325         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3326         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3327
3328         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3329         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3330         (emchar_string_displayed_columns): Likewise.
3331
3332         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3333         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3334         (string_column_at_point): Likewise.
3335         (Fmove_to_column): Likewise.
3336
3337         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3338         `encoding_table' and `decoding_table'.
3339         (CHARSET_REP_BYTES): Deleted.
3340         (XCHARSET_REP_BYTES): Deleted.
3341         (XCHARSET_COLUMNS): Deleted.
3342         (CHAR_COLUMNS): New macro.
3343         (lookup_composite_char): Deleted unconditionally.
3344         (composite_char_string): Likewise.
3345
3346 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3347
3348         * char-ucs.h (Emchar_to_byte_table): New type.
3349         (get_byte_from_character_table): New function interface.
3350         (Vcharset_latin_jisx0201): New variable.
3351         (latin_jisx0201_to_ucs): New variable.
3352         (ucs_to_latin_jisx0201): New variable.
3353         (Vcharset_latin_iso8859_2): New variable.
3354         (latin_iso8859_2_to_ucs): New variable.
3355         (ucs_to_latin_iso8859_2): New variable.
3356         (Vcharset_latin_iso8859_3): New variable.
3357         (latin_iso8859_3_to_ucs): New variable.
3358         (ucs_to_latin_iso8859_3): New variable.
3359         (Vcharset_latin_iso8859_4): New variable.
3360         (latin_iso8859_4_to_ucs): New variable.
3361         (ucs_to_latin_iso8859_4): New variable.
3362         (Vcharset_latin_iso8859_9): New variable.
3363         (latin_iso8859_9_to_ucs): New variable.
3364         (ucs_to_latin_iso8859_9): New variable.
3365         (Vcharset_latin_viscii_lower): New variable.
3366         (latin_viscii_lower_to_ucs): New variable.
3367         (ucs_to_latin_viscii_lower): New variable.
3368         (Vcharset_latin_viscii_upper): New variable.
3369         (latin_viscii_upper_to_ucs): New variable.
3370         (ucs_to_latin_viscii_upper): New variable.
3371         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3372         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3373         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3374         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3375         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3376         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3377         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3378         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3379         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3380         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3381
3382         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3383         (Vcharset_latin_viscii_upper): New variable.
3384         (make_byte_from_character_table): New function.
3385         (put_byte_from_character_table): New function.
3386         (get_byte_from_character_table): New function.
3387         (CHAR96): New macro.
3388         (ucs_to_latin_jisx0201): New variable.
3389         (latin_jisx0201_to_ucs): New variable.
3390         (ucs_to_latin_iso8859_2): New variable.
3391         (latin_iso8859_2_to_ucs): New variable.
3392         (ucs_to_latin_iso8859_3): New variable.
3393         (latin_iso8859_3_to_ucs): New variable.
3394         (ucs_to_latin_iso8859_4): New variable.
3395         (latin_iso8859_4_to_ucs): New variable.
3396         (ucs_to_latin_iso8859_9): New variable.
3397         (latin_iso8859_9_to_ucs): New variable.
3398         (ucs_to_latin_viscii_lower): New variable.
3399         (latin_viscii_lower_to_ucs): New variable.
3400         (ucs_to_latin_viscii_upper): New variable.
3401         (latin_viscii_upper_to_ucs): New variable.
3402         (ucs_to_latin_tcvn5712): New variable.
3403         (latin_tcvn5712_to_ucs): New variable.
3404         (Qlatin_viscii_lower): New variable.
3405         (Qlatin_viscii_upper): New variable.
3406         (syms_of_mule_charset): Set up new symbol
3407         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3408         (complex_vars_of_mule_charset): Set up new charset
3409         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3410         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3411         `ucs_to_<CHARSET>' tables.
3412
3413 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3414
3415         * text-coding.c: New file.
3416
3417 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3418
3419         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3420
3421         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3422         (MAKE_CHAR): Modify for `ucs-bmp'.
3423         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3424         non-MULE characters of BMP.
3425
3426 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3427
3428         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3429         to 0.6.
3430
3431 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3432
3433         * lstream.h:
3434         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3435         - Include character.h for `CHAR_ASCII_P'.
3436
3437         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3438
3439         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3440         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3441
3442         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3443         (BYTE_C0_P): Likewise.
3444         (BYTE_C1_P): Likewise.
3445         (Lstream_get_emchar_1): Likewise.
3446         (Lstream_fput_emchar): Likewise.
3447         (Lstream_funget_emchar): Likewise.
3448         (copy_internal_to_external): Likewise.
3449         (copy_external_to_internal): Likewise.
3450
3451         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3452         (BYTE_C0_P): Likewise.
3453         (BYTE_C1_P): Likewise.
3454         (Lstream_get_emchar_1): Likewise.
3455         (Lstream_fput_emchar): Likewise.
3456         (Lstream_funget_emchar): Likewise.
3457         (copy_internal_to_external): Likewise.
3458         (copy_external_to_internal): Likewise.
3459
3460         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3461         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3462
3463         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3464         (BYTE_ASCII_P): Moved to mb-1byte.h.
3465
3466 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3467
3468         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3469
3470         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3471         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3472         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3473         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3474         (VALIDATE_CHARPTR_FORWARD): Likewise.
3475         (simple_charptr_emchar): Moved to mb-multibyte.h.
3476         (simple_set_charptr_emchar): Likewise.
3477         (simple_charptr_copy_char): Likewise.
3478         (non_ascii_charptr_emchar): Likewise.
3479         (non_ascii_set_charptr_emchar): Likewise.
3480         (non_ascii_charptr_copy_char): Likewise.
3481         (charptr_emchar): Moved to mb-*byte.h.
3482         (set_charptr_emchar): Likewise.
3483         (charptr_copy_char): Likewise.
3484
3485         * mb-1byte.h, mb-multibyte.h: New files.
3486
3487 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3488
3489         * mb-utf-8.h (MULTIBYTE): New macro.
3490         (MAX_EMCHAR_LEN): Moved from buffer.h.
3491         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3492
3493         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3494
3495         * mb-lb.h, multibyte.h: New files.
3496
3497         * char-1byte.h (Charset_ID): Moved from buffer.h.
3498         (MIN_LEADING_BYTE): Likewise.
3499         (LEADING_BYTE_ASCII): Likewise.
3500         (NUM_LEADING_BYTES): Likewise.
3501         (CHARSETP): Likewise.
3502         (CHARSET_BY_LEADING_BYTE): Likewise.
3503         (XCHARSET_LEADING_BYTE): Likewise.
3504         (XCHARSET_GRAPHIC): Likewise.
3505         (XCHARSET_COLUMNS): Likewise.
3506         (XCHARSET_DIMENSION): Likewise.
3507         (CHAR_CHARSET): Likewise.
3508         (CHAR_LEADING_BYTE): Likewise.
3509         (BREAKUP_CHAR): Likewise.
3510         (Vcharset_ascii): Likewise.
3511
3512         * buffer.h: Include multibyte.h unconditionally.
3513         (VALID_CHARPTR_P): Moved to multibyte.h.
3514         (ASSERT_VALID_CHARPTR): Likewise.
3515         (REAL_INC_CHARPTR): Likewise.
3516         (REAL_INC_CHARBYTIND): Likewise.
3517         (REAL_DEC_CHARPTR): Likewise.
3518         (INC_CHARPTR): Likewise.
3519         (INC_CHARBYTIND): Likewise.
3520         (DEC_CHARPTR): Likewise.
3521         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3522         (VALIDATE_CHARPTR_FORWARD): Likewise.
3523         (charptr_n_addr): Likewise.
3524         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3525         (simple_charptr_emchar): Moved to multibyte.h.
3526         (simple_set_charptr_emchar): Likewise.
3527         (simple_charptr_copy_char): Likewise.
3528         (non_ascii_charptr_emchar): Likewise.
3529         (non_ascii_set_charptr_emchar): Likewise.
3530         (non_ascii_charptr_copy_char): Likewise.
3531         (charptr_emchar): Likewise.
3532         (set_charptr_emchar): Likewise.
3533         (charptr_copy_char): Likewise.
3534         (charptr_emchar_n): Likewise.
3535         (Charset_ID): Moved to char-1byte.h.
3536         (Vcharset_ascii): Likewise.
3537         (CHAR_CHARSET): Likewise.
3538         (CHAR_LEADING_BYTE): Likewise.
3539         (LEADING_BYTE_ASCII): Likewise.
3540         (NUM_LEADING_BYTES): Likewise.
3541         (MIN_LEADING_BYTE): Likewise.
3542         (CHARSETP): Likewise.
3543         (CHARSET_BY_LEADING_BYTE): Likewise.
3544         (XCHARSET_LEADING_BYTE): Likewise.
3545         (XCHARSET_GRAPHIC): Likewise.
3546         (XCHARSET_COLUMNS): Likewise.
3547         (XCHARSET_DIMENSION): Likewise.
3548         (BREAKUP_CHAR): Likewise.
3549
3550 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3551
3552         * character.h: Add document about interface for characters.
3553
3554         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3555         (MAKE_CHAR): Delete comment about
3556         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3557         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3558         (BREAKUP_CHAR): Modify name of arguments.
3559         (CHAR_CHARSET): Modify name of argument.
3560
3561         * buffer.h: Delete document about Emchar accessors.
3562
3563 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3564
3565         * character.h (CHAR_INTP): Moved from buffer.h
3566         (CHAR_OR_CHAR_INTP): Likewise.
3567         (XCHAR_OR_CHAR_INT): Likewise.
3568         (CHECK_CHAR_COERCE_INT): Likewise.
3569
3570         * buffer.h (CHAR_INTP): Moved to character.h
3571         (CHAR_OR_CHAR_INTP): Likewise.
3572         (XCHAR_OR_CHAR_INT): Likewise.
3573         (CHECK_CHAR_COERCE_INT): Likewise.
3574
3575 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3576
3577         * character.h:
3578         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3579         - Include char-1byte.h, char-lb.h or char-ucs.h.
3580
3581         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3582
3583         * buffer.h: Include character unconditionally.
3584         (valid_char_p): Moved to char-*.h.
3585         (non_ascii_valid_char_p): Moved to char-lb.h.
3586
3587         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3588
3589 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3590
3591         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3592         in UTF-2000 because it is not ported yet and not to use
3593         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3594         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3595         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3596
3597         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3598         (CHAR_ASCII_P): Moved from character.h.
3599
3600         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3601         (CHAR_ASCII_P): Likewise.
3602         (CHAR_FIELD1_MASK): Deleted.
3603         (CHAR_FIELD2_MASK): Deleted.
3604         (CHAR_FIELD3_MASK): Deleted.
3605         (MAX_CHAR_BASIC_LATIN): New macro.
3606         (CHAR_FIELD1): Deleted.
3607         (CHAR_FIELD2_INTERNAL): Deleted.
3608         (CHAR_FIELD3_INTERNAL): Deleted.
3609         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3610         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3611         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3612         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3613         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3614         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3615         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3616         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3617         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3618         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3619         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3620         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3621         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3622         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3623         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3624         (MIN_CHAR_COMPOSITION): Deleted.
3625         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3626         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3627
3628 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3629
3630         * buffer.h: Include mb-utf-8.h in UTF-2000.
3631
3632         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3633
3634         * mb-utf-8.h: New file.
3635
3636 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3637
3638         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3639         instead of `int'.
3640
3641         * mule-charset.h, buffer.h (Charset_ID): New type.
3642
3643 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3644
3645         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3646         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3647         instead of `MULE_CHAR_PRIVATE_OFFSET',
3648         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3649         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3650         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3651
3652         * character.h (Vcharset_japanese_jisx0212): New variable
3653         definition.
3654
3655 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3656
3657         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3658         (charset_by_attributes): Delete array about direction.
3659         (latin_a_char_to_charset): New variable in UTF-2000.
3660         (latin_a_char_to_byte1): New variable in UTF-2000.
3661         (latin_a_char_to_byte2): New variable in UTF-2000.
3662         (Qucs_bmp): New variable.
3663         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3664         `Bufbyte'.
3665         (next_allocated_2_byte_leading_byte): Likewise.
3666         (non_ascii_set_charptr_emchar): Likewise.
3667         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3668         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3669         `charset_by_attributes'.
3670         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3671         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3672         and `CHARSET_BY_LEADING_BYTE'.
3673         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3674         `utf-2000-version' to `vars_of_mule_charset'.
3675         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3676         define `leading-code-private-11' in UTF-2000; move setting of
3677         `utf-2000-version' from `syms_of_mule_charset'.
3678         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3679         UTF-2000.
3680
3681         * character.h (Charset_ID): New type.
3682         (LEADING_BYTE_UCS_BMP): New macro.
3683         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3684         (CHARSET_ID_OFFSET_94): New macro.
3685         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3686         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3687         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3688         final-byte.
3689         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3690         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3691         (CHARSET_ID_OFFSET_96): New macro.
3692         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3693         CHARSET_ID_OFFSET_96 and final-byte.
3694         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3695         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3696         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3697         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3698         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3699         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3700         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3701         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3702         (LEADING_BYTE_THAI_TIS620): Likewise.
3703         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3704         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3705         (CHARSET_ID_OFFSET_94x94): New macro.
3706         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3707         CHARSET_ID_OFFSET_94x94 and final-byte.
3708         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3709         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3710         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3711         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3712         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3713         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3714         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3715         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3716         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3717         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3718         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3719         (CHARSET_TYPE_128X128): New macro.
3720         (CHARSET_TYPE_256X256): New macro.
3721         (XCHARSET_PRIVATE_P): Delete unconditionally.
3722         (charset_by_attributes): Delete array about direction.
3723         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3724         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3725         (MIN_CHAR_94): New macro.
3726         (MAX_CHAR_94): New macro.
3727         (MIN_CHAR_96): New macro.
3728         (MAX_CHAR_96): New macro.
3729         (MIN_CHAR_94x94): New macro.
3730         (MAX_CHAR_94x94): New macro.
3731         (MIN_CHAR_96x96): New macro.
3732         (MAX_CHAR_96x96): New macro.
3733         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3734         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3735         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3736         - 32)'.
3737         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3738         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3739         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3740         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3741         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3742         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3743         `XCHARSET_LEADING_BYTE' to make code-point.
3744         (latin_a_char_to_charset): New variable.
3745         (latin_a_char_to_byte1): New variable.
3746         (latin_a_char_to_byte2): New variable.
3747         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3748         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3749         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3750
3751         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3752         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3753         (find_charsets_in_emchar_string): Likewise.
3754         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3755
3756         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3757         `int'.
3758         (decode_coding_iso2022): Likewise.
3759
3760         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3761         of `unsigned char'.
3762
3763         * redisplay.c (redisplay_text_width_emchar_string): Use
3764         `Charset_ID' instead of `unsigned char'.
3765         (redisplay_frame_text_width_string): Likewise.
3766
3767         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3768         `unsigned char'.
3769
3770         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3771         instead of `unsigned char'.
3772         (face_cachel_charset_font_metric_info): Likewise.
3773
3774         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3775         (get_non_ascii_char_table_value): Likewise.
3776         (get_char_table): Likewise.
3777         (put_char_table): Likewise.
3778         (map_over_other_charset): Likewise.
3779         (map_char_table): Likewise.
3780
3781         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3782         instead of `unsigned char'.
3783
3784 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3785
3786         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3787         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3788
3789         * mule-charset.c (leading_code_private_11): Don't define in
3790         UTF-2000.
3791
3792         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3793         in UTF-2000 because it is not ported yet and not to use
3794         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3795
3796 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3797
3798         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3799
3800 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3801
3802         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3803         in UTF-2000.
3804
3805         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3806         of unsigned char to store leading-byte.
3807
3808         * chartab.c (get_non_ascii_char_table_value): Don't use
3809         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3810
3811         * file-coding.c (encode_coding_big5): Delete bogus implementation
3812         in UTF2000.
3813
3814         * character.h (LEADING_BYTE_*): Delete definition for
3815         non-UTF-2000.
3816         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3817         (LEADING_BYTE_PREFIX_P): Deleted.
3818         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3819         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3820         (BUFBYTE_LEADING_BYTE_P): Deleted.
3821         (CHARSET_PRIVATE_P): Deleted unconditionally.
3822         (rep_bytes_by_first_byte): Deleted unconditionally.
3823         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3824         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3825         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3826         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3827         (CHAR_FIELD2): Deleted.
3828         (CHAR_FIELD3): Deleted.
3829         (MAKE_CHAR): Delete definition for non-UTF-2000.
3830         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3831         (breakup_char_1): New implementation.
3832         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3833         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3834
3835 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3836
3837         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3838         condition.
3839
3840 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3841
3842         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3843         (CHARSET_PRIVATE_P): Likewise.
3844         (XCHARSET_PRIVATE_P): Likewise.
3845         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3846
3847         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3848         UTF2000.
3849         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3850
3851 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3852
3853         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3854         (NUM_LEADING_BYTES): Changed from 128 to 256.
3855         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3856         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3857         UTF2000.
3858         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3859
3860         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3861         UTF2000.
3862         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3863         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3864         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3865         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3866         (Qchinese_cns11643_3): New variable in UTF2000.
3867         (Qchinese_cns11643_4): New variable in UTF2000.
3868         (Qchinese_cns11643_5): New variable in UTF2000.
3869         (Qchinese_cns11643_6): New variable in UTF2000.
3870         (Qchinese_cns11643_7): New variable in UTF2000.
3871         (syms_of_mule_charset): Define `chinese-cns11643-3',
3872         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3873         and `chinese-cns11643-7' in UTF2000.
3874         (vars_of_mule_charset): Initialize
3875         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3876         + 1 in UTF2000.
3877         (complex_vars_of_mule_charset): Setup charset
3878         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3879         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3880
3881 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3882
3883         * mule-charset.c: Move setting for `leading-code-private-11' from
3884         `syms_of_mule_charset' to `vars_of_mule_charset'.
3885
3886 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3887
3888         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3889         and `NUM_LEADING_BYTES' in assert.
3890
3891 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3892
3893         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3894         instead of 128.
3895         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3896         `NUM_LEADING_BYTES' instead of 128.
3897
3898 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3899
3900         * mule-charset.h (charset_by_leading_byte): Use
3901         `NUM_LEADING_BYTES' instead of 128.
3902         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3903
3904         * mule-charset.c (charset_by_leading_byte): Use
3905         `NUM_LEADING_BYTES' instead of 128.
3906         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3907
3908         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3909         128.
3910
3911 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3912
3913         * mule-charset.c (syms_of_mule_charset): Update to
3914         0.4 (Shin-Imamiya).
3915
3916 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3917
3918         * file-coding.c (encode_coding_sjis): New implementation for
3919         UTF2000.  (decode_coding_sjis): Ditto.
3920
3921 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3922
3923         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3924         Don't define in UTF2000.
3925
3926         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3927         defined.
3928
3929         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3930         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3931         MULE.
3932
3933 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3934
3935         * config.h.in (CHAR_IS_UCS4): New macro.
3936
3937         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3938         conventional MULE representation.
3939         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3940
3941         * mule-charset.h: Reverted to original.
3942
3943         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3944         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3945         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3946
3947         * character.h: New file.
3948
3949         * file-coding.c (Fmake_coding_system): Set 1 to
3950         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3951         defined.
3952         (encode_coding_no_conversion): New implementation for UTF2000.
3953
3954         * file-coding.h (struct Lisp_Coding_System): Add new member
3955         `fixed.size'.
3956
3957 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3958
3959         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3960         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3961         (encode_coding_iso2022): New implementation for UTF2000.
3962
3963 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3964
3965         * mule-canna.c (c2mu): New implementation for UTF2000.
3966         (m2c): Likewise.
3967
3968 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3969
3970         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3971
3972 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3973
3974         * file-coding.c (reset_encoding_stream): Set 0 to
3975         `str->iso2022.current_char_boundary' in UTF2000.
3976         (encode_utf8): Don't define in UTF2000.
3977         (encode_coding_utf8): New implementation for UTF-8 representation
3978         of UTF2000.
3979         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3980
3981 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3984
3985         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3986         UTF2000.
3987         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3988
3989         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3990
3991         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3992         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3993         as UTF-8 in UTF2000.
3994         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3995         (non_ascii_valid_char_p): Don't define in UTF2000.
3996         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3997         (Lstream_get_emchar_1): Likewise.
3998         (utf-2000-version): New variable in UTF2000.
3999
4000         * lread.c (read_escape): Add new reader `u'.
4001
4002         * insdel.c (three_to_one_table): Don't define in UTF2000.
4003         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4004         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4005         UTF2000.
4006         (bytind_to_bufpos_func): Likewise.
4007         (buffer_mule_signal_inserted_region): Likewise.
4008         (vars_of_insdel): Don't initialize `three_to_one_table'.
4009         (init_buffer_text): Use `buf->text->mule_size' instead of
4010         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4011         UTF2000.
4012
4013         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4014         UTF-8 representation in UTF2000.
4015         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4016         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4017         (decode_coding_iso2022): Don't define local variable `lb' in
4018         UTF2000; don't use LEADING_BYTE in UTF2000; use
4019         `DECODE_ADD_UCS_CHAR' in UTF2000.
4020         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4021
4022         * config.h.in (UTF2000): New macro.
4023
4024         * buffer.h (struct buffer_text): Add new member `mule_size' and
4025         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4026         (valid_char_p): Return always 1 in UTF2000.
4027         (MAX_EMCHAR_LEN): 6 in UTF2000.
4028         (three_to_one_table): Don't define in UTF2000.
4029         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4030         UTF2000.
4031         (real_bytind_to_bufpos): Likewise.
4032
4033         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4034
4035 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4036
4037         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4038         representation change.
4039         (Vutf_2000_version): New variable.
4040         (leading_code_private_11): New variable.
4041         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4042         `leading-code-private-11'.
4043
4044         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4045         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4046         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4047         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4048         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4049         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4050         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4051         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4052         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4053         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4054         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4055         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4056         (MIN_CHAR_GREEK): New macro.
4057         (MAX_CHAR_GREEK): New macro.
4058         (MIN_CHAR_CYRILLIC): New macro.
4059         (MAX_CHAR_CYRILLIC): New macro.
4060         (MIN_CHAR_HEBREW): New macro.
4061         (MAX_CHAR_HEBREW): New macro.
4062         (MIN_CHAR_THAI): New macro.
4063         (MAX_CHAR_THAI): New macro.
4064         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4065         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4066         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4067         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4068         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4069         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4070         (CHAR_FIELD2): New inline function.
4071         (CHAR_FIELD3): New inline function.
4072         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4073         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4074         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4075         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4076         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4077         (MIN_CHAR_COMPOSITION): Likewise.
4078         (CHAR_LEADING_BYTE): Modified for character representation change.
4079         (MAKE_CHAR): Likewise.
4080
4081         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4082         (Vcharset_greek_iso8859_7): Likewise.
4083         (Vcharset_cyrillic_iso8859_5): Likewise.
4084         (Vcharset_hebrew_iso8859_8): Likewise.
4085         (Vcharset_thai_tis620): Likewise.
4086         (Vcharset_katakana_jisx0201): Likewise.
4087
4088 2001-02-08  Martin Buchholz <martin@xemacs.org>
4089
4090         * XEmacs 21.2.44 "Thalia" is released.
4091
4092 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4093
4094         Fixes crashes in kill-emacs on some systems.
4095         * process-unix.c (unix_kill_child_process):
4096         It's OK for kill() to fail with ESRCH.
4097
4098 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4099
4100         Contortions to make .gdbinit tricks work on most systems.
4101         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4102         * alloc.c (dbg_valmask): Make non-const.
4103         * alloc.c (dbg_typemask): Make non-const.
4104         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4105         * alloc.c (dbg_valbits): Make non-const.
4106         * alloc.c (dbg_gctypebits): Make non-const.
4107         * .gdbinit (decode_object): Make it work with AIX cc.
4108
4109 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4110
4111         * elhash.c (make_general_lisp_hash_table):
4112         Use simpler and more efficient calloc to clear entries.
4113
4114 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4115
4116         * window.c (window_scroll): Work around an AIX C compiler bug.
4117         Fixes 'scroll-up' does nothing problem with xlC.
4118
4119 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4120
4121         * .gdbinit: Remove obsolete comment.
4122
4123 2001-01-31  Mike Alexander  <mta@arbortext.com>
4124
4125         * select.c (Fown_selection_internal): Set owned_p for device
4126         method correctly.
4127
4128 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4129
4130         Port to g++ 2.97.
4131         "not" cannot be used as a macro name as it is an operator in C++
4132         * config.h.in: Stop #defining `not'.
4133         * chartab.c (check_category_char): not ==> not_p
4134         * chartab.h: Likewise.
4135         * regex.c (re_match_2_internal): Likewise.
4136
4137 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4138
4139         * lisp-disunion.h: Fix up comments.
4140
4141 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4142
4143         * keymap.c (define_key_check_and_coerce_keysym):
4144         (syms_of_keymap):
4145         Support mouse-6 and mouse-7 bindings in the obvious way.
4146
4147 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4148
4149         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4150
4151 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4152
4153         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4154         Previous patch missed DEFVAR_INT_MAGIC.
4155         Make sure future DEFVAR_foo use correct types.
4156         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4157         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4158         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4159         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4160         * (DEFVAR_INT): Likewise.
4161         * redisplay.c (vertical_clip): Should be of type Fixnum.
4162         * redisplay.c (horizontal_clip): Likewise.
4163         * lisp.h (dump_add_opaque_int): New.
4164         (dump_add_opaque_fixnum): New.
4165
4166 2001-01-29  Andy Piper  <andy@xemacs.org>
4167
4168         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4169         since they can be eval'ed
4170
4171 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4172
4173         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4174         Oops, XEmacs redefines `class'.  Use `typename' instead.
4175
4176 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4177
4178         * dumper.c: Fix C++ compile errors.
4179
4180 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4181
4182         * tparam.c: Use correct prototypes.
4183
4184 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4185
4186         * sysproc.h: #include util.h for NetBSD's openpty.
4187
4188 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4189
4190         More 64-bit correctness.
4191         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4192         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4193         Fix up comments.
4194         This finally finishes the 64-bit SGI port.
4195         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4196         * symbols.c: Fix up comments and type casts.
4197         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4198         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4199         * symeval.h (Fixnum): New type.
4200         * symeval.h (symbol_value_type): Fix up comment.
4201
4202         * commands.h:
4203         * nt.c:
4204         * emacs.c:
4205         * data.c:
4206         * redisplay.c:
4207         * abbrev.c:
4208         * dired-msw.c:
4209         * event-Xt.c:
4210         * eldap.c:
4211         * window.c:
4212         * sound.c:
4213         * event-stream.c:
4214         * eval.c:
4215         * buffer.c:
4216         * mule-canna.c: A million DEFVAR_INTs here...
4217         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4218         * extents.c:
4219         * cmdloop.c:
4220         * lisp.h:
4221         * select-x.c:
4222         * console-x.h:
4223         * event-msw.c:
4224         * mule-wnnfns.c:
4225         * hpplay.c:
4226         * ralloc.c:
4227         * alloc.c:
4228         * keymap.c:
4229         * profile.c:
4230         s/int/Fixnum/g in DEFVAR_INT declarations.
4231
4232 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4233
4234         Port pdump to SGI alignment-sensitive environment.
4235         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4236         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4237         properly aligned.
4238         Define and use aligned reading and writing macros.
4239         Use buffered stdio instead of posix i/o for faster dumping.
4240         Eliminate kludgy 256 byte space for header.
4241         Read and write from dump file using structs for alignment safety.
4242         * dumper.c (pdump_align_stream): New.
4243         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4244         * dumper.c (PDUMP_READ_ALIGNED): New.
4245         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4246         * dumper.c (pdump_static_Lisp_Object): New struct.
4247         * dumper.c (pdump_static_pointer): New struct.
4248         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4249         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4250         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4251         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4252
4253         * dumper.c (pdump_backtrace):
4254         * dumper.c (pdump_get_indirect_count):
4255         * dumper.c (pdump_register_object):
4256         * dumper.c (pdump_register_struct):
4257         * dumper.c (pdump_reloc_one):
4258         * dumper.c (pdump_scan_by_alignment):
4259         * dumper.c (pdump_dump_from_root_struct_ptrs):
4260         * dumper.c (pdump_dump_opaques):
4261         * dumper.c (pdump_dump_rtables):
4262         * dumper.c (pdump_dump_from_root_objects):
4263         * dumper.c (pdump):
4264         * dumper.c (pdump_load_finish):
4265         Use aligned reading and writing.
4266
4267         * dumper.c (pdump_free): Make static.
4268         * dumper.c (pdump_hFile): Likewise.
4269         * dumper.c (pdump_hMap): Likewise.
4270
4271 2001-01-26  Martin Buchholz <martin@xemacs.org>
4272
4273         * XEmacs 21.2.43 "Terspichore" is released.
4274
4275 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4276
4277         Type fiddling for window_config.saved_windows_count
4278         * window.c (struct window_config): 
4279         Make saved_windows_count member unsigned.
4280         * window.c (sizeof_window_config_for_n_windows): 
4281         Make parameter unsigned.
4282         * window.c (mark_window_config):
4283         * window.c (window_config_equal):
4284         * window.c (free_window_configuration):
4285         * window.c (Fset_window_configuration):
4286         * window.c (count_windows):
4287         * window.c (Fcurrent_window_configuration):
4288         * window.c (reinit_vars_of_window):
4289         Update all callers and users.
4290
4291 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4292
4293         Alignment correctness for flexible arrays.
4294         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4295         Make alignment-correct. Add interesting comments.
4296         * alloc.c (size_vector):
4297         * alloc.c (make_vector_internal):
4298         * alloc.c (make_bit_vector_internal):
4299         * alloc.c (sweep_bit_vectors_1):
4300         * fns.c (size_bit_vector):
4301         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4302         * window.c (sizeof_window_config_for_n_windows): 
4303         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4304
4305 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4306
4307         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4308
4309 2001-01-23  Andy Piper  <andy@xemacs.org>
4310
4311         * select.c (Fown_selection_internal): pass owned_p
4312
4313         * select-msw.c (mswindows_own_selection): New Signature.
4314
4315         * console.h (struct console_methods): add owned_p to
4316         _own_selection.
4317
4318         * select-x.c (x_own_selection): pass owned_p
4319         (hack_motif_clipboard_selection): use owned_p
4320         (vars_of_select_x): new variable -
4321         x_selection_strict_motif_ownership.
4322
4323 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4324
4325         * specifier.h (specifier_data_offset): Remove pointless parens.
4326         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4327
4328 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4329
4330         Make Lisp_Object sizeof methods be alignment-correct.
4331         pdump must restore objects to the same alignment as the C compiler
4332         assumes.  It really matters on SGIs.
4333         * lstream.c (aligned_sizeof_lstream): New.
4334         (sizeof_lstream): Use aligned_sizeof_lstream.
4335         (Lstream_new): Likewise.
4336         * opaque.c (aligned_sizeof_opaque): New.
4337         (sizeof_opaque): Use aligned_sizeof_opaque.
4338         (make_opaque): Likewise.
4339         * specifier.c (aligned_sizeof_specifier): New.
4340         (sizeof_specifier): Use aligned_sizeof_specifier.
4341         (make_specifier_internal): Likewise.
4342
4343 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4344
4345         * lstream.h (struct lstream): Use max_align_t for trailing data.
4346         * specifier.h (struct Lisp_Specifier): Likewise.
4347
4348 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4349
4350         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4351         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4352         (CCL_SUSPEND): Likewise.
4353         (CCL_INVALID_CMD): Likewise.
4354         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4355         (ccl_driver): Likewise.
4356         (CCL_WRITE_CHAR): Macro hygiene.
4357         (CCL_WRITE_STRING): Macro hygiene.
4358
4359 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4360
4361         Port "portable" dumper to SunOS 4 and HP-UX.
4362         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4363         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4364         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4365
4366 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4367
4368         * lisp.h (ALIGNOF): A better definition for C++.
4369
4370 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4371
4372         Macro hygiene.
4373         Fix printf warnings: int format, long int arg.
4374         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4375         (PUSH_FAILURE_POINT): Use correct printf formats.
4376         (POP_FAILURE_POINT): Use correct printf formats.  
4377         Use do {...} while (0)
4378
4379 2001-01-20  Martin Buchholz <martin@xemacs.org>
4380
4381         * XEmacs 21.2.42 "Poseidon" is released.
4382
4383 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4384
4385         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4386
4387 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4388
4389         De-kludgify FIXED_TYPE free list frobbing.
4390         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4391         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4392         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4393         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4394         * alloc.c (LRECORD_FREE_P): New.
4395         * alloc.c (MARK_LRECORD_AS_FREE): New.
4396         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4397         * alloc.c (STRUCT_FREE_P): Deleted.
4398         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4399         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4400         * alloc.c (STRING_CHARS_FREE_P): New.
4401         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4402         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4403         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4404         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4405         * alloc.c (resize_string): Use new definitions.
4406         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4407         * alloc.c (verify_string_chars_integrity): Use new definitions.
4408         * alloc.c (compact_string_chars): Use new definitions.
4409         * alloc.c: Update monster comments.
4410         * lrecord.h (lrecord_type): Add some new lrecord types for
4411         alloc.c's use.
4412
4413 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4414
4415         Improve alignment hackery.
4416         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4417         (max_align_t): Moved from opaque.h - general purpose.
4418         (ALIGN_PTR): Use size_t, not long.
4419         * opaque.h (max_align_t): Move to lisp.h.
4420
4421 2001-01-18  Norbert Koch  <nk@LF.net>
4422
4423         * gui.h: Fix and add prototypes to fix build problems.
4424
4425 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4426
4427         temacs is going away, so `dump-temacs' is now a bad name.
4428         * .dbxrc (dump-temacs): Rename to `dmp'.
4429         * .gdbinit (dump-temacs): Rename to `dmp'.
4430
4431 2001-01-17  Andy Piper  <andy@xemacs.org>
4432
4433         * glyphs.c (print_image_instance): comment to make martin happy.
4434
4435         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4436         change.
4437
4438         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4439         activation.
4440         (mswindows_tab_control_redisplay): warning suppression.
4441
4442         * glyphs-widget.c (widget_update): re-write to cope with updated
4443         items.
4444         (widget_instantiate): use new gui_item functions.
4445         (tab_control_update): deleted.
4446         (progress_gauge_update): deleted.
4447         (image_instantiator_progress_guage): take out update reference.
4448         (image_instantiator_tree_view): ditto.
4449         (image_instantiator_tab_control): ditto.
4450
4451         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4452         Right the new way.
4453         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4454         return whether anything was changed.
4455         (update_gui_item_keywords): as it sounds.
4456
4457         * gui.h: declare widget_gui_parse_item_keywords.
4458
4459         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4460         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4461
4462 2001-01-17  Martin Buchholz <martin@xemacs.org>
4463
4464         * XEmacs 21.2.41 "Polyhymnia" is released.
4465
4466 2001-01-16  Didier Verna  <didier@xemacs.org>
4467
4468         * glyphs.c (image_instantiate): don't use fallbacks when
4469         instantiating a face's background pixmap by inheritance.
4470
4471 2001-01-14  Mike Sperber <mike@xemacs.org>
4472
4473         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4474         Conditionalize accordingly.
4475
4476 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4477
4478         * dumper.c (pdump_file_get): Fix a compiler warning.
4479
4480 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4481
4482         Make Purify happy when pdumping.
4483         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4484         iniitalizing all bits of new lisp object memory.
4485         * symbols.c (Fmake_local_variable): Likewise.
4486         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4487         * symbols.c (Fdefvaralias): Likewise.
4488         * mule-charset.c (vars_of_mule_charset): Likewise.
4489
4490 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4491         Add the `-nd' flag when running pre-dump operations under the debugger.
4492         * .dbxrc (run-temacs): Add `-nd'.
4493         * .dbxrc (update-elc): Likewise.
4494         * .dbxrc (dump-temacs): Likewise.
4495         * .gdbinit (run-temacs): Likewise.
4496         * .gdbinit (check-temacs): Likewise.
4497         * .gdbinit (update-elc): Likewise.
4498         * .gdbinit (dump-temacs): Likewise.
4499
4500 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4501
4502         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4503         export OBJECT_MODE=64
4504         configure --pdump --use-union-type=no
4505         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4506         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4507
4508         * miscplay.c (sndcnv8U_2mono):
4509         Avoid two uses of `++' in the same expression.
4510         Suppresses a GCC warning.
4511
4512 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4513
4514         Make sure future compilers don't miscompile alloc.c.
4515         * alloc.c:
4516         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4517         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4518
4519 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4520
4521         * dumper.c: A little post-pdump-rename comment fixup.
4522
4523 2001-01-09  Jerry James  <james@eecs.ku.edu>
4524
4525         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4526
4527 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4528
4529         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4530         script:
4531         #!/bin/sh
4532         replace_symbol () {
4533           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4534         }
4535
4536         replace_symbol pdump_wire_lists pdump_weak_object_chains
4537         replace_symbol pdump_wire_list dump_add_weak_object_chain
4538
4539         replace_symbol pdump_wires pdump_root_objects
4540         replace_symbol pdump_wire dump_add_root_object
4541
4542         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4543         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4544
4545         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4546         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4547         replace_symbol dumpstructinfo pdump_root_struct_ptr
4548         replace_symbol dumpstruct dump_add_root_struct_ptr
4549
4550         replace_symbol dumpopaque dump_add_opaque
4551         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4552         replace_symbol dumpopaqueinfos pdump_opaques
4553         replace_symbol dumpopaqueinfo pdump_opaque
4554
4555         replace_symbol nb_structdump nb_root_struct_ptrs
4556         replace_symbol nb_opaquedump nb_opaques
4557
4558         replace_symbol align_table pdump_align_table
4559         replace_symbol dump_header pdump_header
4560
4561         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4562         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4563
4564
4565 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4566
4567         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4568         optimizing bytecount_to_charcount().
4569
4570 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4571
4572         * config.h.in:
4573         (HAVE_DLFCN_H): Removed.
4574         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4575
4576 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4577
4578         Portable dumper maintainability improvements.
4579         * alloc.c (staticpro):
4580         * alloc.c (staticpro_nodump):
4581         * alloc.c (garbage_collect_1):
4582         * alloc.c (reinit_alloc_once_early):
4583         * alloc.c (init_alloc_once_early):
4584         * alloc.c: Move dumper functions to alloc.c.
4585         * dumper.c (pdump_backtrace):
4586         * dumper.c (pdump_dump_structs):
4587         * dumper.c (pdump_dump_opaques):
4588         * dumper.c (pdump_dump_rtables):
4589         * dumper.c (pdump_dump_wired):
4590         * dumper.c (pdump):
4591         * dumper.c (pdump_load_check):
4592         * dumper.c (pdump_load_finish):
4593         * dumper.c (pdump_file_unmap):
4594         * dumper.c (pdump_file_get):
4595         * dumper.c (pdump_resource_free):
4596         * dumper.c (pdump_resource_get):
4597         * dumper.c (pdump_file_free):
4598         * dumper.c (pdump_file_try):
4599         * dumper.c (pdump_load):
4600         Remove fixed size limits on staticpro(), staticpro_nodump(),
4601         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4602         Remove custom code for dumping lrecord_implementations_table - use
4603         dumpopaque instead.
4604         Remove (most of the) custom code for dumping staticpros - dump it
4605         like any other dynarr.
4606
4607         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4608         * dumper.c: Moved functions from alloc.c.
4609         * alloc.c (dumpstruct): Moved to dumper.c.
4610         * alloc.c (dumpopaque): Likewise.
4611         * alloc.c (pdump_wire): Likewise.
4612         * alloc.c (pdump_wire_list): Likewise.
4613
4614         * lisp.h (Dynarr_sizeof): New.
4615         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4616         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4617         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4618
4619         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4620         * lisp.h (dumpopaque): ditto.
4621         * lisp.h (pdump_wire): ditto.
4622         * lisp.h (pdump_wire_list): ditto.
4623
4624 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4625
4626         * make-src-depend (PrintPatternDeps):
4627         Use `sort' to make output independent of perl version.
4628
4629 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4630
4631         Port to Netbsd 1.5.
4632         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4633         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4634
4635 2001-01-03  Didier Verna  <didier@xemacs.org>
4636
4637         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4638         that `focus_frame' is alive before thinking of calling
4639         `redisplay_redraw_cursor' on it.
4640
4641 2001-01-08  Martin Buchholz <martin@xemacs.org>
4642
4643         * XEmacs 21.2.40 is released.
4644
4645 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4646
4647         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4648
4649 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4650
4651         * alloc.c (dbg_valmask): Make const.
4652         * alloc.c (dbg_typemask): Make const.
4653         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4654         * alloc.c (dbg_valbits): Make const.
4655         * alloc.c (dbg_gctypebits): Make const.
4656
4657 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4658
4659         * redisplay-x.c (x_bevel_area):
4660         redisplay.h (struct rune):
4661         Typo fixes in comments.
4662
4663 2001-01-05  Andy Piper  <andy@xemacs.org>
4664
4665         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4666         adjustment.
4667
4668         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4669
4670 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4671
4672         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4673
4674         * mule-ccl.c (stack_idx_of_map_multiple):
4675         Non const global data must not be initialized!
4676         Found by MIYASHITA Hisashi.
4677
4678 2001-01-02  Andy Piper  <andy@xemacs.org>
4679
4680         * frame.c (change_frame_size): make sure frame size is always
4681         marked as changed.
4682
4683         * glyphs.c (image_instance_layout): minor code reuse.
4684
4685         * window.c (Fcurrent_window_configuration): revert previous
4686         change.
4687
4688 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4689
4690         * glyphs.h:
4691         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4692
4693 2000-12-31  Andy Piper  <andy@xemacs.org>
4694
4695         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4696         when widget gets unmapped.
4697
4698         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4699         function. Make sure widgets losing focus don't just drop it.
4700         (handle_focus_event_1): record the widget with focus.
4701
4702 2000-12-31  Andy Piper  <andy@xemacs.org>
4703
4704         * window.c (allocate_window): use
4705         make_image_instance_cache_hash_table.
4706         (make_dummy_parent): ditto.
4707         (Fset_window_configuration): ditto.
4708
4709         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4710
4711         * glyphs.c (process_image_string_instantiator): use
4712         INSTANTIATOR_TYPE.
4713         (get_image_instantiator_governing_domain): ditto.
4714         (normalize_image_instantiator): ditto.
4715         (instantiate_image_instantiator): ditto.
4716         (make_image_instance_1): ditto.
4717         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4718         (instantiator_eq_equal): new function for use with instance hash
4719         tables.
4720         (instantiator_eq_hash): ditto.
4721         (make_image_instance_cache_hash_table): create a suitable hash
4722         table for storing image instances.
4723
4724         * elhash.h (hash_table_weakness): new internal weakness type
4725         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4726         declare new functions.
4727
4728         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4729         another weakness type for glyphs.
4730         (make_standard_lisp_hash_table): new function split out from
4731         make_general_lisp_hash_table.
4732         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4733         (hash_table_instantiate): ditto.
4734         (Fmake_hash_table): ditto.
4735
4736 2000-12-31  Martin Buchholz <martin@xemacs.org>
4737
4738         * XEmacs 21.2.39 is released.
4739
4740 2000-12-29  Andy Piper  <andy@xemacs.org>
4741
4742         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4743
4744         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4745         the frame has changed so that we pick up geometry changes such as
4746         menubar visibility.
4747
4748 2000-12-28  Andy Piper  <andy@xemacs.org>
4749
4750         * lastfile.c (my_ebss): make a char array so we can pad the
4751         bss. Fixes cygwin unexec.
4752
4753         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4754
4755 2000-12-26  Andy Piper  <andy@xemacs.org>
4756
4757         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4758         comments and try and be more precise about a non-/SIGIO world.
4759         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4760         SIGIO.
4761
4762         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4763         we don't normalize to zero width or height.
4764
4765 2000-12-24  Andy Piper  <andy@xemacs.org>
4766
4767         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4768
4769 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4770
4771         * s/sco5.h: SCO 5 has pty support.
4772
4773 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4774
4775         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4776         input-method-xlib.c contains whole contents of input-method-xfs.c,
4777         so we can use input-method-xlib.c's code for USE_XFONTSET
4778         using #ifdefs.
4779         * input-method-xfs.c: removed.
4780
4781 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4782
4783         * file-coding.h (enum coding_category_type): reorder enumerators to
4784         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4785         (now one greater than largest real coding_category_type enumerator).
4786         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4787         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4788         Fcoding_category_list, Fset_coding_priority_list,
4789         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4790         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4791
4792 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4793
4794         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4795         * redisplay-output.c (redisplay_output_window): Clear top of window
4796         when face is changed.
4797         * redisplay-x.c (x_redraw_exposed_window): Call
4798         redisplay_clear_top_of_window.
4799         * redisplay.h: Publish redisplay_clear_top_of_window.
4800
4801 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4802
4803         * buffer.c (Fkill_buffer): Map over all devices.
4804         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4805         (list_windows): New function.
4806         (list_all_windows): Ditto.
4807         (Freplace_buffer_in_windows): Use them.
4808
4809 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4810
4811         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4812         (Fopen_database): Use `db_create' instead of `db_open'.
4813         (syms_of_database): Initialize Qqueue.
4814
4815 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4816
4817         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4818         buffer_local_face_property.
4819         * buffer.h (struct buffer): New member buffer_local_face_property.
4820         * window.c (Fset_window_buffer):  Mark window's face as changed
4821         when buffer has buffer local face.
4822         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4823         * objects.c (color_after_change): Set buffer_local_face_property
4824         when locale of face specifier is buffer.
4825         * objects.c (font_after_change): Ditto.
4826         * objects.c (face_boolean_after_change): Ditto.
4827         * glyphs.c (image_after_change): Ditto.
4828
4829 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4830
4831         * nt.c (mswindows_fstat): Report file permissions, volume serial
4832         number, etc. Code adapted from FSF Emacs 20.7.
4833
4834 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4835
4836         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4837         of stat when we don't have symbolic links, to make sure
4838         mswindows_stat is called on mswindows.
4839
4840 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4841
4842         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4843
4844 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4845
4846         * doprnt.c (emacs_doprnt_1): More printing fixes.
4847         Make printing of numbers compatible with libc and FSF Emacs.
4848         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4849         Use the system printf to do most of the hard work of formatting,
4850         instead of doprnt_1().
4851         Calculate memory to allocate for format string.
4852         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4853         (doprnt_1): Cleaner code and documentation.
4854
4855 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4856
4857         * Makefile.in.in: Use the loop variable to install headers.
4858
4859 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4860
4861         * window.c (Fsplit_window): Don't invalidate face cache.
4862
4863 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4864
4865         * minibuf.c (Fall_completions): Undo the previous change
4866         which removed checking elements start with space.
4867
4868 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4869
4870         * mule-canna.c: Didier suppression.
4871
4872 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4873
4874         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4875         (warning suppression).  Add English comment translations.
4876
4877 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4878
4879         * unexelfsgi.c (unexec): Better test for mmap failure.
4880
4881 2000-12-05  Martin Buchholz <martin@xemacs.org>
4882
4883         * XEmacs 21.2.38 is released.
4884
4885 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4886
4887         * redisplay.c (bar-cursor): Make a user variable.
4888
4889         * symsinit.h: Add init_postgresql_from_environment.
4890
4891 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4892
4893         * regex.c: Convert to clean C.
4894
4895 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4896
4897         * realpath.c:
4898         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4899         initialization.
4900         (sys_readlink): renamed to system_readlink to avoid conflict with
4901         the other sys_readlink.
4902
4903 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4904
4905         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4906
4907 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4908
4909         * postgresql.c (init_postgresql_from_environment): new function.
4910         (vars_of_postgresql): Move code initializing Lisp variables out and
4911         into init_postgresql_from_environment.
4912         emacs.c (main_1): Call init_postgresql_from_environment if and only
4913         if running a dumped XEmacs.
4914
4915 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4916
4917         * buffer.c: Make find-file-compare-truenames default to true on
4918         windows.
4919
4920         * realpath.c (win32_abs_start):
4921         (cygwin_readlink):
4922         (win32_readlink): New functions.
4923         (xrealpath): Return really real filenames on windows.
4924
4925         * fileio.c (Ffile_truename): Make file-truename work on windows.
4926
4927 2000-11-29  Didier Verna  <didier@xemacs.org>
4928
4929         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4930         * faces.c (update_face_cachel_data): use it.
4931         * faces.c (add_face_cachel): use it. Complete background pixmap
4932         frobbing in face cache if `update_face_cachel_data' has not done so.
4933
4934 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4935
4936         * search.c (string_match_1): Don't set last_thing_searched
4937         when search failed.
4938
4939 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4940
4941         * buffer.c: Include casetab.h
4942         (common_init_complex_vars_of_buffer): Use new case-table object.
4943         * buffer.h: Include casetab.h
4944         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4945         (DOWNCASE_TABLE_OF): Ditto.
4946         * bufslots.h: Remove char-tables and add case-table.
4947         * casetab.c: Include casetab.h
4948         (CASE_TABLE_P): Removed.
4949         (mark_case_table): New function.
4950         (allocate_case_table): New function.
4951         (Fcase_table_p): Use new case-table.
4952         (case_table_char): New function.
4953         (Fget_case_table): Ditto.
4954         (Fput_case_table): Ditto.
4955         (Fput_case_table_pair): Ditto.
4956         (Fcopy_case_table): Ditto.
4957         (Fcurrent_case_table): Return case-table.
4958         (Fstandard_case_table): Return case-table.
4959         (Fset_case_table): Fix doc-string.
4960         (set_case_table): Use case-table
4961         (syms_of_casetab): DEFSUBR new functions.
4962         (complex_vars_of_casetab): Set up standard case-table.
4963         * casetab.h: New file.
4964         * editfns.c: Include casetab.h
4965         (Fcompare_buffer_substrings): Use case-table.
4966         * inline.c: Include casetab.h
4967         * lisp.h: Remove bogus extern.
4968         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4969         * search.c: Include casetab.h
4970         (TRANSLATE_ASCII): Removed.
4971         (TRANSLATE): Unconditionally translate character.
4972         (looking_at_1): Use case-table.
4973         (string_match_1): Ditto.
4974         (fast_string_match): Ditto.
4975         (search_command): Ditto.
4976         (search_buffer): Separate boyer_moore.  Check whether
4977         boyer_moore is possible.
4978         (simple_search): New function.
4979         (boyer_moore): Separated from search_buffer. Translate char.
4980
4981 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4982
4983         * regex.c (RE_TR_ASCII): Removed.
4984         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4985         (PATFETCH): Call PATFETCH_RAW.
4986         (PATFETCH_RAW): Fetch Emchar.
4987         (PATUNFETCH): Decrement charptr.
4988         (GET_BUFFER_SPACE): Rename b to buf_end.
4989         (BUF_PUSH): Ditto.
4990         (BUF_PUSH_2): Ditto.
4991         (BUF_PUSH_3): Ditto.
4992         (EXTEND_BUFFER): Ditto.
4993         (SET_LIST_BIT): Ditto.
4994         (regex_compile): Ditto.  Translate non ASCII char.
4995         (compile_range): Ditto.
4996         (re_search_2): Ditto.
4997         (re_match_2_internal): Compare Emchar.
4998         (bcmp_translate): Ditto.
4999
5000 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5001
5002         * lisp.h (basic char/int typedefs):  comment improvement.
5003
5004 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5005
5006         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5007         unstomp inhibit_site_lisp.  Improve comments.
5008
5009 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5010
5011         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5012
5013 2000-11-28  Andy Piper  <andy@xemacs.org>
5014
5015         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5016         clipped display for windows in the gutter also.
5017         (redisplay_display_boxes_in_window_p): change semantics of return
5018         codes to be more intuitive.
5019
5020         * gutter.h: declare display_boxes_in_gutter_p.
5021
5022         * gutter.c (display_boxes_in_gutter_p): new function for
5023         redisplay.
5024
5025 2000-11-22  Andy Piper  <andy@xemacs.org>
5026
5027         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5028         autodetect domain.
5029
5030 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5031
5032         * callproc.c (Fold_call_process_internal):
5033         * gpm.c (Freceive_gpm_event):
5034         (tty_get_foreign_selection): Might be just warning supression.
5035         * fileio.c (Fwrite_region_internal):
5036         (Fset_visited_file_modtime):
5037         * keymap.c (event_matches_key_specifier_p):
5038         Initialize GCPROed variable.
5039
5040         * menubar-x.c (command_builder_find_menu_accelerator):
5041         Initialize before use.
5042
5043 2000-11-23  Andy Piper  <andy@xemacs.org>
5044
5045         * unexcw.c (unexec): make the resulting executable executable.
5046
5047 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5048
5049         * doc.c (get_doc_string):
5050         Use size_t, not int, for result of XSTRING_LENGTH.
5051
5052         * cmds.c (Fdelete_char):
5053         * cmds.c (Fpoint_at_eol):
5054         * cmds.c (Fself_insert_command):
5055         Use EMACS_INT, not int, for result of XINT.
5056         Someday, someone will want to insert more than 2**31 identical characters.
5057
5058         * cmds.c (Fdelete_char):
5059         * cmds.c (Fdelete_backward_char):
5060         * syntax.c (Fforward_word):
5061         * syntax.c (Fforward_comment):
5062         Make COUNT argument optional, for consistency with forward-char et al.
5063
5064 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5065
5066         * lisp.h:
5067         * print.c (long_to_string):
5068         Return a useful value: the pointer at end of data written.
5069
5070         * doprnt.c:
5071         Use `static const char * const' for constant strings.
5072         (union printf_arg): Delete `i', `ui' members.
5073         (get_doprnt_args):
5074         (emacs_doprnt_1):
5075         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5076         Do all printf-ing via the `l' specifier.
5077         Use EMACS_INT instead of int.
5078         Optimize.
5079
5080 2000-11-20  Didier Verna  <didier@xemacs.org>
5081
5082         * faces.c (update_face_cachel_data): don't frob the background
5083         pixmap when the window is being created. The face is needed but
5084         does not exist yet.
5085
5086 2000-11-20  Andy Piper  <andy@xemacs.org>
5087
5088         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5089         messing with a debug environment.
5090
5091 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5092
5093         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5094
5095 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5096
5097         * casetab.c (Fcase_table_p): Fix compile error and crash.
5098
5099 2000-11-18  Philip Aston  <philipa@mail.com>
5100
5101         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5102
5103 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5104
5105         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5106         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5107
5108 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5109
5110         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5111         * unexelf.c: Use HAVE_ELF_H.
5112         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5113         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5114         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5115         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5116         for testing.
5117         So this is an unexelfsgi.c from a different line of development.
5118
5119 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5120
5121         * regex.c (RE_TR_ASCII): New function.
5122         (RE_TRANSLATE): Call it.
5123
5124 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5125
5126         * buffer.h (TRT_TABLE_OF): Remove assert.
5127         (IN_TRT_TABLE_DOMAIN): Removed.
5128
5129 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5130
5131         * free-hook.c (log_gcpro):
5132         (show_gcprohist): Add support for GCPRO5.
5133
5134 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5135
5136         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5137
5138 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5139
5140         * symeval.h: Declare flush_all_buffer_local_cache.
5141
5142         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5143         (flush_buffer_local_cache): Added.
5144         (flush_all_buffer_local_cache): Added.
5145
5146         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5147
5148         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5149         (pdump_dump_data): Ditto.
5150         (pdump_reloc_one): Ditto.
5151         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5152         before dumping.
5153
5154
5155 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5156
5157         * buffer.c: Remove if 0'ed entry.
5158         * buffer.h: Rewrite TRT to use char-table.
5159         * bufslots.h: Remove mirror tables.
5160         * casetab.c: Remove mirror tables.
5161         (CASE_TABLE_P): New macro.
5162         (Fcase_table_p): Element of a case table is string or char-table.
5163         (make_mirror_trt_table): Removed.
5164         (set_case_table): Setup char-table from strings for backward
5165         compatibility.
5166         * dired.c (Fdirectory_files):
5167         * dired-msw.c: (mswindows_get_files):
5168         * lisp.h: Change prototype of re_pattern_buffer.
5169         * regex.c: (RE_TRANSLATE): New macro.
5170         (TRANSLATE_P): Ditto.
5171         Change translate to type RE_TRANSLATE_TYPE.
5172         * regex.h: Define RE_TRANSLATE_TYPE
5173         * search.c (TRANSLATE): New macro.
5174         (TRANSLATE_ASCII): New macro.
5175         Translate table is changed to Lisp_Object.
5176         (signal_failure): Inhibit return.
5177
5178 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5179
5180         * device-msw.c:
5181         * eldap.c:
5182         * event-Xt.c:
5183         * event-stream.c:
5184         * print.c:
5185         Do UNGCPRO before return.
5186
5187 2000-11-14  Martin Buchholz <martin@xemacs.org>
5188
5189         * XEmacs 21.2.37 is released.
5190
5191 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5192
5193         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5194         Add comments about discarded return value.
5195
5196 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5197
5198         * callint.c:
5199         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5200
5201 2000-10-27  Andy Piper  <andy@xemacs.org>
5202
5203         * gutter.c (Fset_default_gutter_position): default left and right
5204         gutters to visible.
5205         (calculate_gutter_size): calculate resonable heuristic for left
5206         and right gutter sizes.
5207         (specifier_vars_of_gutter): change left and right gutter sizes to
5208         autodetect.
5209         (calculate_gutter_size_from_display_lines): new function.
5210         (output_gutter): check for resizing on left and right gutters.
5211         (clear_gutter): don't special case top and left gutters.
5212         (specifier_vars_of_gutter): use new signature for
5213         set_specifier_caching.
5214
5215         * glyphs-x.c (x_redisplay_widget): spelling fix.
5216         * glyphs.c (specifier_vars_of_glyphs):
5217         * menubar.c (specifier_vars_of_menubar):
5218         * redisplay.c (specifier_vars_of_redisplay):
5219         * toolbar.c (specifier_vars_of_toolbar):
5220         * window.c (specifier_vars_of_window):
5221         * scrollbar.c (specifier_vars_of_scrollbar):
5222         (complex_vars_of_scrollbar): use new signature for
5223         set_specifier_caching.
5224
5225         * specifier.c (set_specifier_caching): include recompute flag.
5226         (recompute_one_cached_specifier_in_window): always recompute if
5227         flag set.
5228         (recompute_one_cached_specifier_in_frame): ditto.
5229
5230         * specifier.h (struct specifier_caching): add recompute flag.
5231
5232 2000-10-24  Andy Piper  <andy@xemacs.org>
5233
5234         * unexcw.c (copy_executable_and_dump_data_section): add new
5235         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5236         5.0 happy.
5237
5238 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5239
5240         * console-x.h (x_device): New member modifier_release_time.
5241         * event-Xt.c (x_handle_sticky_modifiers):
5242         Bound interval modifier keys are sticky.
5243         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5244         * events.h: extern it.
5245
5246 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5247
5248         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5249
5250 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5251
5252         * event-stream.c (execute_command_event): Preserve current_events
5253         and the like when event is misc-user-event.
5254         Inhibit quit during the call to maybe_echo_keys.
5255
5256 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5257
5258         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5259         symlink when buffer is killed.
5260         (inhibit_clash_detection): New variable.
5261
5262 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5263
5264         * console.c (Fset_input_method): Trigger redisplay on tty.
5265
5266 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5267
5268         * process.c (Fprocess_status): Revert to previous behavior:
5269         (process-status "nosuchprocess") ==> nil
5270
5271 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5272
5273         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5274         Work around another GCC 2.95.2 optimizer bug.
5275
5276 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5277
5278         * process.c (Fget_process): Use LIST_LOOP_2.
5279         (kill_buffer_processes): Use LIST_LOOP_2.
5280
5281         * minibuf.c (Fall_completions):
5282         Delete old non-functional code for FSF fourth argument.
5283
5284         * frame.c (frame_matches_frame_spec):
5285         Renamed from `frame_matches_frametype'.  Update all callers.
5286         (device_matches_device_spec):
5287         Renamed from 'device_matches_console_spec'.  Update all callers.
5288
5289         * doc.c (Fsubstitute_command_keys):
5290         Remove buffer overflow crash.  Small code cleanups.
5291
5292         * casetab.c (check_case_table): Simpler code.
5293
5294         * window.c (Freplace_buffer_in_windows):
5295         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5296         (and similar implementation) as Fdelete_windows_on.
5297         Update all callers.
5298
5299         * alloc.c (Fmake_list):
5300         * alloc.c (make_vector):
5301         * alloc.c (Fmake_vector):
5302         * alloc.c (make_bit_vector):
5303         * alloc.c (Fmake_bit_vector):
5304         * alloc.c (Fbit_vector):
5305         * alloc.c (Fmake_string):
5306         * alloc.c (Fpurecopy):
5307         * alloc.c (Fmemory_limit):
5308         * buffer.c:
5309         * buffer.c (Fget_buffer):
5310         * buffer.c (Fkill_buffer):
5311         * buffer.c (complex_vars_of_buffer):
5312         * bytecode.c (Fcompiled_function_stack_depth):
5313         * callint.c (Fprefix_numeric_value):
5314         * event-stream.c:
5315         * event-stream.c (Fread_key_sequence):
5316         * casetab.c:
5317         * casetab.c (Fcase_table_p):
5318         * casetab.c (check_case_table):
5319         * casetab.c (Fset_case_table):
5320         * casetab.c (Fset_standard_case_table):
5321         * chartab.c:
5322         * chartab.c (Fchar_table_type):
5323         * chartab.c (Freset_char_table):
5324         * chartab.c (Fget_char_table):
5325         * chartab.c (Fget_range_char_table):
5326         * chartab.c (Fput_char_table):
5327         * chartab.c (Fmap_char_table):
5328         * chartab.c (Fcategory_table_p):
5329         * chartab.c (Fcheck_category_at):
5330         * chartab.c (Fchar_in_category_p):
5331         * chartab.c (Fcategory_table):
5332         * chartab.c (Fcopy_category_table):
5333         * chartab.c (Fset_category_table):
5334         * chartab.c (Fcategory_designator_p):
5335         * chartab.c (Fcategory_table_value_p):
5336         * cmds.c (Fdelete_char):
5337         * cmds.c (Fdelete_backward_char):
5338         * cmds.c (Fself_insert_command):
5339         * cmds.c (Fself_insert_internal):
5340         * console.c (Fvalid_console_type_p):
5341         * console.c (Fcdfw_console):
5342         * console.c (Fconsole_type):
5343         * console.c (Fconsole_name):
5344         * console.c (Fconsole_device_list):
5345         * console.c (Fconsole_on_window_system_p):
5346         * data.c:
5347         * data.c (Feq):
5348         * data.c (Fold_eq):
5349         * data.c (Fsubr_interactive):
5350         * data.c (Fchar_to_int):
5351         * data.c (Fint_to_char):
5352         * data.c (Fsetcar):
5353         * data.c (Fsetcdr):
5354         * data.c (Fnumber_to_string):
5355         * data.c (Fstring_to_number):
5356         * data.c (Frem):
5357         * database.c (mark_database):
5358         * database.c (finalize_database):
5359         * database.c (Fdatabase_live_p):
5360         * database.c (Fdatabasep):
5361         * device-x.c (Fx_get_resource):
5362         * device.c (Fdfw_device):
5363         * dired.c:
5364         * dired.c (Ffile_name_completion):
5365         * dired.c (Ffile_name_all_completions):
5366         * dired.c (Fuser_name_completion):
5367         * dired.c (Fuser_name_completion_1):
5368         * dired.c (Fuser_name_all_completions):
5369         * doc.c (Fdocumentation):
5370         * doc.c (Fdocumentation_property):
5371         * doc.c (Fsubstitute_command_keys):
5372         * editfns.c:
5373         * editfns.c (Fchar_to_string):
5374         * editfns.c (Fstring_to_char):
5375         * editfns.c (Ftemp_directory):
5376         * editfns.c (Finsert_char):
5377         * editfns.c (Fbuffer_substring_no_properties):
5378         * editfns.c (Fnarrow_to_region):
5379         * editfns.c (Fchar_equal):
5380         * editfns.c (Fchar_Equal):
5381         * editfns.c (Ftranspose_regions):
5382         * emacs.c (Fdump_emacs):
5383         * eval.c (Fthrow):
5384         * eval.c (Fcommand_execute):
5385         * eval.c (Fautoload):
5386         * eval.c (Fbacktrace):
5387         * eval.c (Fbacktrace_frame):
5388         * events.c:
5389         * events.c (Fcopy_event):
5390         * events.c (Fcharacter_to_event):
5391         * events.c (Fevent_button):
5392         * events.c (Fevent_process):
5393         * extents.c:
5394         * extents.c (Fnext_extent_change):
5395         * extents.c (Fextent_property):
5396         * faces.c (Ffacep):
5397         * faces.c (Fmake_face):
5398         * file-coding.c:
5399         * file-coding.c (Fencode_shift_jis_char):
5400         * file-coding.c (Fencode_big5_char):
5401         * fileio.c (Ffile_name_directory):
5402         * fileio.c (Ffile_name_nondirectory):
5403         * fileio.c (Ffile_name_as_directory):
5404         * fileio.c (Fdirectory_file_name):
5405         * fileio.c (Ffile_truename):
5406         * fileio.c (Fsubstitute_in_file_name):
5407         * fileio.c (Ffile_modes):
5408         * fileio.c (Fset_file_modes):
5409         * fileio.c (Fset_default_file_modes):
5410         * fileio.c (Fverify_visited_file_modtime):
5411         * floatfns.c (Facos):
5412         * floatfns.c (Fasin):
5413         * floatfns.c (Fatan):
5414         * floatfns.c (Fcos):
5415         * floatfns.c (Fsin):
5416         * floatfns.c (Ftan):
5417         * floatfns.c (Fbessel_j0):
5418         * floatfns.c (Fbessel_j1):
5419         * floatfns.c (Fbessel_jn):
5420         * floatfns.c (Fbessel_y0):
5421         * floatfns.c (Fbessel_y1):
5422         * floatfns.c (Fbessel_yn):
5423         * floatfns.c (Ferf):
5424         * floatfns.c (Ferfc):
5425         * floatfns.c (Flog_gamma):
5426         * floatfns.c (Fexp):
5427         * floatfns.c (Fexpt):
5428         * floatfns.c (Flog):
5429         * floatfns.c (Flog10):
5430         * floatfns.c (Fsqrt):
5431         * floatfns.c (Fcube_root):
5432         * floatfns.c (Facosh):
5433         * floatfns.c (Fasinh):
5434         * floatfns.c (Fatanh):
5435         * floatfns.c (Fcosh):
5436         * floatfns.c (Fsinh):
5437         * floatfns.c (Ftanh):
5438         * floatfns.c (Fabs):
5439         * floatfns.c (Ffloat):
5440         * floatfns.c (Flogb):
5441         * floatfns.c (Fceiling):
5442         * floatfns.c (Ffloor):
5443         * floatfns.c (Fround):
5444         * floatfns.c (Ftruncate):
5445         * floatfns.c (Ffceiling):
5446         * floatfns.c (Fffloor):
5447         * floatfns.c (Ffround):
5448         * floatfns.c (Fftruncate):
5449         * fns.c (Fstring_equal):
5450         * fns.c (Fstring_lessp):
5451         * fns.c (concat2):
5452         * fns.c (concat3):
5453         * fns.c (vconcat2):
5454         * fns.c (vconcat3):
5455         * fns.c (Fsubstring):
5456         * fns.c (Fassoc):
5457         * fns.c (Fold_assoc):
5458         * fns.c (assoc_no_quit):
5459         * fns.c (Fassq):
5460         * fns.c (Fold_assq):
5461         * fns.c (assq_no_quit):
5462         * fns.c (Frassoc):
5463         * fns.c (Fold_rassoc):
5464         * fns.c (Frassq):
5465         * fns.c (Fold_rassq):
5466         * fns.c (rassq_no_quit):
5467         * fns.c (Fremassoc):
5468         * fns.c (remassoc_no_quit):
5469         * fns.c (Fremassq):
5470         * fns.c (remassq_no_quit):
5471         * fns.c (Fremrassoc):
5472         * fns.c (Fremrassq):
5473         * fns.c (remrassq_no_quit):
5474         * fns.c (Fsort):
5475         * fns.c (Fplist_get):
5476         * fns.c (Fplist_put):
5477         * fns.c (Fplist_remprop):
5478         * fns.c (Fplist_member):
5479         * fns.c (Flax_plist_get):
5480         * fns.c (Flax_plist_put):
5481         * fns.c (Flax_plist_remprop):
5482         * fns.c (Flax_plist_member):
5483         * fns.c (Fequal):
5484         * fns.c (Fold_equal):
5485         * fns.c (Frequire):
5486         * fns.c (Fbase64_encode_region):
5487         * fns.c (Fbase64_encode_string):
5488         * fns.c (Fbase64_decode_region):
5489         * frame.c:
5490         * frame.c (frame_matches_frame_spec):
5491         * frame.c (device_matches_device_spec):
5492         * frame.c (next_frame):
5493         * frame.c (previous_frame):
5494         * frame.c (Fnext_frame):
5495         * frame.c (Fprevious_frame):
5496         * frame.c (Fframe_property):
5497         * frame.c (Fset_frame_height):
5498         * frame.c (Fset_frame_size):
5499         * frame.h:
5500         * glyphs.c:
5501         * glyphs.c (if):
5502         * glyphs.c (decode_error_behavior_flag):
5503         * glyphs.c (Fmake_image_instance):
5504         * indent.c (Findent_to):
5505         * intl.c (Fignore_defer_gettext):
5506         * keymap.c (Fkeymapp):
5507         * keymap.c (Flookup_key):
5508         * lread.c:
5509         * lread.c (Fload_internal):
5510         * lread.c (Feval_buffer):
5511         * lread.c (Feval_region):
5512         * macros.c (Fexecute_kbd_macro):
5513         * marker.c (set_marker_internal):
5514         * marker.c (Fset_marker):
5515         * marker.c (set_marker_restricted):
5516         * marker.c (Fcopy_marker):
5517         * marker.c (noseeum_copy_marker):
5518         * menubar.c:
5519         * menubar.c (Fpopup_menu):
5520         * minibuf.c:
5521         * mule-charset.c (Fcharset_name):
5522         * mule-charset.c (Fchar_charset):
5523         * mule-charset.c (Fchar_octet):
5524         * mule-charset.c (Fsplit_char):
5525         * mule-wnnfns.c (Fwnn_open):
5526         * mule-wnnfns.c (Fwnn_dict_comment):
5527         * mule-wnnfns.c (Fwnn_quit_henkan):
5528         * mule-wnnfns.c (Fwnn_word_toroku):
5529         * mule-wnnfns.c (Fwnn_word_sakujo):
5530         * mule-wnnfns.c (Fwnn_word_use):
5531         * mule-wnnfns.c (Fwnn_hindo_set):
5532         * objects.c:
5533         * objects.c (Fmake_color_instance):
5534         * objects.c (Fmake_font_instance):
5535         * print.c (Fwrite_char):
5536         * process.c:
5537         * process.c (mark_process):
5538         * process.c (print_process):
5539         * process.c (get_process_from_usid):
5540         * process.c (Fprocessp):
5541         * process.c (Fprocess_live_p):
5542         * process.c (Fget_process):
5543         * process.c (Fget_buffer_process):
5544         * process.c (get_process):
5545         * process.c (Fprocess_id):
5546         * process.c (Fprocess_name):
5547         * process.c (Fprocess_command):
5548         * process.c (init_process_io_handles):
5549         * process.c (start_process_unwind):
5550         * process.c (Fstart_process_internal):
5551         * process.c (Fopen_multicast_group_internal):
5552         * process.c (Fset_process_window_size):
5553         * process.c (read_process_output):
5554         * process.c (send_process):
5555         * process.c (Fprocess_tty_name):
5556         * process.c (Fset_process_buffer):
5557         * process.c (Fprocess_buffer):
5558         * process.c (Fprocess_mark):
5559         * process.c (set_process_filter):
5560         * process.c (Fset_process_filter):
5561         * process.c (Fprocess_filter):
5562         * process.c (Fprocess_send_region):
5563         * process.c (Fprocess_send_string):
5564         * process.c (exec_sentinel):
5565         * process.c (Fset_process_sentinel):
5566         * process.c (Fprocess_sentinel):
5567         * process.c (status_notify):
5568         * process.c (Fprocess_status):
5569         * process.c (Fprocess_exit_status):
5570         * process.c (process_send_signal):
5571         * process.c (Fprocess_send_eof):
5572         * process.c (deactivate_process):
5573         * process.c (remove_process):
5574         * process.c (Fdelete_process):
5575         * process.c (kill_buffer_processes):
5576         * process.c (Fprocess_kill_without_query):
5577         * process.c (Fprocess_kill_without_query_p):
5578         * rangetab.c:
5579         * rangetab.c (Fget_range_table):
5580         * rangetab.c (Fput_range_table):
5581         * rangetab.c (Fremove_range_table):
5582         * rangetab.c (Fclear_range_table):
5583         * search.c:
5584         * search.c (Fskip_chars_forward):
5585         * search.c (Fskip_chars_backward):
5586         * search.c (Fskip_syntax_forward):
5587         * search.c (Fskip_syntax_backward):
5588         * search.c (search_command):
5589         * search.c (Freplace_match):
5590         * search.c (Fregexp_quote):
5591         * select.c (Fown_selection_internal):
5592         * select.c (Fselection_owner_p):
5593         * select.c (Fselection_exists_p):
5594         * select.c (Fget_selection_internal):
5595         * specifier.c:
5596         * symbols.c:
5597         * symbols.c (Fintern):
5598         * symbols.c (Fintern_soft):
5599         * symbols.c (Funintern):
5600         * symbols.c (Fapropos_internal):
5601         * symbols.c (Fset_default):
5602         * syntax.c:
5603         * syntax.c (Fsyntax_table_p):
5604         * syntax.c (Fcopy_syntax_table):
5605         * syntax.c (Fset_syntax_table):
5606         * syntax.c (Fchar_syntax):
5607         * syntax.c (syntax_match):
5608         * syntax.c (Fmatching_paren):
5609         * syntax.c (Fforward_word):
5610         * syntax.c (scan_lists):
5611         * syntax.c (Fscan_lists):
5612         * syntax.c (Fscan_sexps):
5613         * syntax.c (Fparse_partial_sexp):
5614         * toolbar.c (Fcheck_toolbar_button_syntax):
5615         * tooltalk.doc:
5616         * window.c:
5617         * window.c (Fwindowp):
5618         * window.c (Fwindow_live_p):
5619         * window.c (Fwindow_point):
5620         * window.c (Fdelete_window):
5621         * window.c (Fnext_window):
5622         * window.c (Fprevious_window):
5623         * window.c (Fother_window):
5624         * window.c (window_loop):
5625         * window.c (Fget_lru_window):
5626         * window.c (Fsplit_window):
5627         * window.c (Fenlarge_window):
5628         * window.c (Fenlarge_window_pixels):
5629         * window.c (Fshrink_window):
5630         * window.c (Fshrink_window_pixels):
5631         * window.c (change_window_height):
5632         * window.c (Fwindow_configuration_p):
5633         * window.c (Fcurrent_window_configuration):
5634         * window.h:
5635         * casefiddle.c (casify_object):
5636         * casefiddle.c (Fupcase):
5637         * casefiddle.c (Fdowncase):
5638         * casefiddle.c (Fcapitalize):
5639         * casefiddle.c (Fupcase_initials):
5640         * casefiddle.c (casify_region_internal):
5641         * casefiddle.c (casify_region):
5642         * casefiddle.c (Fupcase_region):
5643         * casefiddle.c (Fdowncase_region):
5644         * casefiddle.c (Fcapitalize_region):
5645         * casefiddle.c (Fupcase_initials_region):
5646         * casefiddle.c (Fupcase_word):
5647         * casefiddle.c (Fdowncase_word):
5648         * casefiddle.c (Fcapitalize_word):
5649         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5650         Replace 0 with '\0' when working with bytes.
5651         Replace initial "(" with "\(" in docstrings.
5652
5653 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5654
5655         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5656
5657         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5658
5659 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5660
5661         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5662
5663 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5664
5665         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5666         correctly.
5667
5668 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5669
5670         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5671         (inhibit_auto_save_session): New variable.
5672         (vars_of_fileio): Declare and initialize them.
5673         * fileio.c (Fdo_auto_save): Don't create session file if
5674         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5675
5676 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5677
5678         * sgiplay.c (play_internal): C++ compilability.
5679         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5680         * callproc.c (Fold_call_process_internal):
5681         Remove unused vars `env', `first'.
5682         * scrollbar.c (update_scrollbar_instance):
5683         #### unused var `current_window'.
5684         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5685         etc. within #ifdef NOT_YET.
5686         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5687         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5688         * specifier.c (specifier_instance):
5689         #### unused var `tag'.
5690         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5691
5692 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5693
5694         * fns.c (Fbutlast):
5695         * fns.c (list_sort):
5696         * fns.c (Ffillarray):
5697         * fns.c (bytecode_nconc2):
5698         * fns.c (Fnconc):
5699         * fns.c (mapcar1):
5700         * fns.c (Fmapconcat):
5701         Be pedantically 64-bit correct.  For the time when someone will
5702         want to have a list with length > 2**32.
5703
5704         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5705         Work around MIPSpro compiler bug.
5706
5707         * process-unix.c (unix_kill_child_process): Add snarky comment.
5708         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5709
5710         * config.h.in: Oops, _getpt ==> _getpty
5711
5712 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5713
5714         * config.h.in:
5715         * regex.c:
5716         Use void*, not char*, as return type of alloca().
5717
5718         * alloc.c (free_marker): Side effect inside assert expression!
5719
5720 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5721
5722         * mule-charset.c (Fset_charset_ccl_program): To check
5723         if the given ccl program is valid, use setup_ccl_program()
5724         instead of CHECK_VECTOR().
5725         (Fmake_charset): Likewise.
5726
5727 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5728
5729         * faces.c (get_extent_fragment_face_cache_index):
5730         Fix cachel.merged_faces memory leak.
5731
5732 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5733
5734         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5735         Reset MSB of octets obtained by DECODE_SJIS
5736         because of the incompatibility with Emacs.
5737         (ccl_driver)<CCL_ENCODE_SJIS>:
5738         Set MSB of octets before passing them to
5739         ENCODE_SJIS because of the incompatibility
5740         with Emacs.
5741
5742 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5743
5744         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5745         (DECLARE_LRECORD): Undo the last change.
5746         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5747
5748 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5749
5750         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5751         the implementation to lrecord_implementations_table.
5752
5753 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5754
5755         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5756         initial value of `lrecord_type_##c_name' and
5757         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5758         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5759         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5760         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5761         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5762
5763 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5764
5765         * miscplay.c (sndcnv8S_2mono):
5766         (sndcnv2monounsigned):
5767         (sndcnvULaw_2linear):
5768         (sndcnv16swap):
5769         Remove implementation-defined behavior.
5770
5771 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5772
5773         * input-method-xlib.c: Warning suppression.
5774
5775 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5776
5777         * mule-ccl.c: Sync up with Emacs 21.0.90.
5778         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5779         Do nothing.
5780         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5781         Likewise.
5782         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5783         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5784         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5785         leading char belongs to official 2-dimensional charset.
5786         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5787         write the given character as is.  Otherwise,
5788         if it is a multibyte char, convert it by
5789         non_ascii_set_charptr_emchar, then write it.
5790         (CCL_WRITE_STRING): Likewise.
5791         (ccl_get_compiled_code): New function.
5792         (setup_ccl_program): When ccl_prog is invalid,
5793         return -1.
5794         (Fregister_code_conversion_map): New function.
5795         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5796
5797         * mule-ccl.h: Sync up with Emacs 21.0.90.
5798         (Fregister_ccl_program): export it.
5799
5800         * redisplay-msw.c (separate_textual_runs):
5801         If ccl program is not valid, don't do ccl conversion.
5802
5803         * redisplay-x.c (separate_textual_runs): Ditto.
5804
5805         * file-coding.c (Fmake_coding_system):
5806         When type is ccl and value is vector, register it
5807         with a proper symbol.  And checks whether the
5808         given ccl program is valid.
5809         (mule_decode): When calling ccl_driver, if src indicates
5810         NULL pointer, set an empty string instead.
5811         (mule_encode): Likewise.
5812
5813 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5814
5815         The following large batch of changes gets us back to a state of
5816         C++ compilability.  Extbyte is now a char, which means that
5817         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5818
5819         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5820
5821         * sound.c (Fplay_sound): Type correctness.
5822
5823         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5824         (x_get_window_property): Type correctness.
5825         (receive_incremental_selection): unsigned char ==> Extbyte
5826         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5827         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5828         (Fx_store_cutbuffer_internal): Type correctness.
5829
5830         * process-unix.c (try_to_initialize_subtty): Type correctness.
5831
5832         * objects-x.c (x_print_color_instance): Type correctness.
5833         (x_print_font_instance): Type correctness.
5834         (x_list_fonts): SExtbyte ==> Extbyte.
5835         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5836         (x_find_charset_font): SExtbyte ==> Extbyte.
5837         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5838         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5839         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5840         Use bufbyte_strcmp.
5841
5842         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5843         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5844         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5845         (BYTE_C0_P): Use bit ops for char-signedness safety.
5846         (BYTE_C1_P): Use bit ops for char-signedness safety.
5847         (CHARSET_BY_LEADING_BYTE):
5848         (CHARSET_BY_ATTRIBUTES):
5849         Always use inline function.
5850         Use type_checking_assert.
5851         Hide chlook.
5852
5853         * mule-charset.c (non_ascii_charptr_copy_char):
5854         Modify to work with both ASCII and non-ASCII characters.
5855         Improve docs and variable names.
5856         Replace over-clever fall-through switch with a simple loop.
5857         (Lstream_get_emchar_1):
5858         Replace over-clever fall-through switch with a simple loop.
5859
5860         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5861         Warning suppression.
5862
5863         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5864         the return value of Lstream_getc, which could be EOF as well.
5865
5866         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5867
5868         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5869         APIs can be used on Extbytes without casts.  Risky!
5870         (SExtbyte): Remove.
5871         (UExtbyte): Remove.
5872
5873         * input-method-xlib.c (XIM_init_device):
5874         Use Xlib.h instead of IntrinsicP.h.
5875         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5876         which will break in X11R7.
5877         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5878         to call XRegisterIMInstantiateCallback with correct types.
5879
5880         * gui-x.c (button_item_to_widget_value): Type correctness.
5881
5882         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5883
5884         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5885         (xbm_instantiate_1): Type correctness.
5886         (BUILD_GLYPH_INST):  Type correctness.
5887
5888         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5889
5890         * file-coding.c:
5891         (decode_coding_sjis):
5892         (decode_coding_big5):
5893         (decode_coding_ucs4):
5894         (decode_coding_utf8):
5895         (decode_coding_iso2022):
5896         (decode_coding_no_conversion):
5897         Make all decoding functions take an Extbyte * arg.
5898         (encode_coding_sjis):
5899         (encode_coding_big5):
5900         (encode_coding_ucs4):
5901         (encode_coding_utf8):
5902         (encode_coding_iso2022):
5903         (encode_coding_no_conversion):
5904         Make all encoding functions take a Bufbyte * arg.
5905         Use size_t instead of unsigned int for memory sizes.
5906         Only cast to unsigned char whenever dereferencing Extbyte *.
5907
5908         * doc.c (unparesseuxify_doc_string): Type correctness.
5909
5910         * console-x.c (split_up_display_spec):
5911         Rewrite without using details of internal string representation.
5912         (x_semi_canonicalize_device_connection): Type correctness.
5913
5914         * config.h.in:
5915         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5916         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5917         (HAVE_XFREE386): Removed.
5918
5919         * buffer.h (DEC_CHARPTR): `const' correctness.
5920         (bufbyte_strcmp): New.
5921         (bufbyte_memcmp): New.
5922
5923         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5924
5925         * buffer.h (XCHAR_OR_CHAR_INT):
5926         Always use inline function.
5927         Remove redundant type checking assert() - XINT will abort quite nicely.
5928
5929 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5930
5931         * search.c (Freplace_match): Set newtext to an empty string.
5932
5933 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5934
5935         * s/decosf1-3.h: Remove #include of stropts.h
5936         * s/ptx.h: Remove #include of stropts.h
5937         * s/usg5-4.h: Remove #include of stropts.h
5938         * sysproc.h:
5939         * config.h.in:
5940         Use stropts.h, not sys/stropts.h.
5941         Use strtio.h, not sys/strtio.h.
5942
5943 2000-10-04  Martin Buchholz <martin@xemacs.org>
5944
5945         * XEmacs 21.2.36 is released.
5946
5947 2000-09-21  Andy Piper  <andy@xemacs.org>
5948
5949         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5950         changes still involve copying the widget tree.
5951         (update_widget_face): make sure a change is register in the widget
5952         tree. Call update_tab_widget_face appropriately.
5953         (update_tab_widget_face): ditto.
5954         (x_tab_control_redisplay): make sure non-structural changes still
5955         involve copying the widget tree.
5956
5957 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5958
5959         * lread.c (locate_file): Check the path element is non-nil.
5960
5961 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5962
5963         * lisp.h: Warning suppression for SCO compilers.
5964
5965         * redisplay-tty.c (reset_tty_modes): Fix crash.
5966         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5967
5968 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5969
5970         Big signal/process handling overhaul.  Bugs fixed:
5971         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5972         M-x comint-kill-subjob should work for both values nil and t of
5973         process-connection-type. It was broken on most platforms.
5974         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5975         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5976         * process-unix.c: Signal/Process handling overhaul.
5977         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5978         (allocate_pty): Use all available modern methods of allocating
5979         ptys, falling back to old style BSD allocation as a last resort.
5980         Use allegedly more secure Unix98 pty allocation by default.
5981         (allocate_pty_the_old_fashioned_way): New. the last resort.
5982         (unix_create_process): Push ptem, ldterm, ttcompat where
5983         available.  Autoconfiscate.
5984         (try_to_initialize_subtty): New.
5985         (unix_kill_child_process): Proper signal handling for ptys on most
5986         platforms, using special knowledge of AIX, BSD, etc...
5987         (unix_create_process): Always disconnect_controlling_terminal() for
5988         subprocesses, whether using ptys or not.
5989         * process.h: Remove old getpt-dependent PTY code.
5990         * process.c (Fprocess_send_signal): New, obvious generic function.
5991         (decode_signal): New.
5992         (Finterrupt_process):
5993         (Fkill_process):
5994         (Fquit_process):
5995         (Fstop_process):
5996         (Fcontinue_process):
5997         (Fsignal_process): Use decode_signal.
5998         (process_send_signal):
5999         Many docstring corrections.
6000         Allow any signal to be sent to a process object.
6001         * config.h.in: Add symbols for big signal/process overhaul.
6002         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6003         * sysproc.h: Include process-related headers, where available:
6004         sys/stropts.h sys/strtio.h pty.h libutil.h
6005         * s/irix4-0.h:
6006         * s/irix5-0.h:
6007         * s/cygwin32.h:
6008         * s/gnu.h:
6009         * s/linux.h:
6010         * s/hpux.h:
6011         * s/aix3-1.h:
6012         Remove old S&M pty stuff.
6013         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6014         * systty.h: Simplify cpp hackery, improve comments.
6015         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6016
6017         * editfns.c (Fformat_time_string):
6018         Be a little more paranoid with the return value of ctime.
6019
6020         * fileio.c (check_executable):
6021         (check_writable):
6022         Use symbolic constants X_OK, W_OK.
6023
6024         * console-x.c (split_up_display_spec): Fix a warning.
6025
6026 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6027
6028         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6029         * ntproc.c (sys_spawnve): make_string ==> build_string
6030         Small clarity improvements.
6031
6032 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6033
6034         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6035
6036         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6037
6038         * config.h.in (HAVE_STRCASECMP): Remove.
6039
6040 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6041
6042         * redisplay-output.c (redisplay_output_pixmap):
6043         Cleaner and possibly more 64-bit correct code.
6044
6045 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6046
6047         * dumper.c (pdump_load_finish): move restoration of
6048         `noninteractive1' to emacs.c (main_1).
6049         * emacs.c (main_1): protect LISP-visible command-line flags
6050         from pdump_load().
6051
6052 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6053
6054         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6055         DUMP_TARGET instead of literal program names.
6056
6057 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6058
6059         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6060
6061 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6062
6063         * *: Spelling mega-patch
6064
6065 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6066
6067         * fns.c (bad_bad_turtle):
6068         Delete "Eek!" comment, since we fixed the bug to which it refers.
6069
6070 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6071
6072         * alloca.c: Replace REGISTER with register.
6073
6074 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6075
6076         * file-coding.c (ucs_to_char): Use countof.
6077
6078 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6079
6080         * file-coding.c: (ucs_to_char):
6081         (complex_vars_of_file_coding):
6082         Use countof instead of sizeof.
6083         Use CHECK_NATNUM instead of CHECK_INT.
6084
6085         * sysdep.c (strcasecmp): Remove.
6086         * device-x.c (ascii_strcasecmp): New.
6087         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6088         Avoid using non-standard non-portable strcasecmp.
6089
6090 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6091
6092         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6093         * font-lock.c: remove reference to emacsfns.h.
6094         * search.c: small doc improvement.
6095         * event-Xt.c: correct file names in comments.
6096         * console-x.h Correct file names in comments.
6097         * frame.c: Correct file names in comments.
6098         * event-stream.c: remove Energize from comments.
6099
6100 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6101
6102         * symeval.h (DEFERROR_STANDARD):
6103         (DEFERROR):
6104         (DEFSYMBOL):
6105         (DEFSYMBOL_NO_DUMP):
6106         (DEFSYMBOL_MULTIWORD_PREDICATE):
6107         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6108         (DEFKEYWORD):
6109         The construct &##name is not sensible C.
6110         Fixes compilation errors with Unixware native compiler.
6111
6112 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6113
6114         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6115         (next_frame_internal): Removed.  We now just have next_frame.
6116         (next_frame):
6117         Write a simpler and cleaner one-pass algorithm.
6118         Remove called_from_delete_device arg and #ifdefed-out code.
6119         (previous_frame):
6120         Renamed from prev_frame.  Update callers.
6121         Cleaned up to have an analogous implementation to next_frame.
6122         (other_visible_frames_internal): Remove the
6123         called_from_delete_device bogus arg, and hence, remove this
6124         function.  Just use other_visible_frames().
6125
6126         * window.c (Fnext_window):
6127         Prettify docstring.
6128         Since next_frame() is guaranteed to return a frame, remove check
6129         for nil inserted in previous patch.
6130         (Fprevious_window):
6131         Prettify docstring.
6132         Make code look more like Fnext_window.
6133         (window_loop):
6134         Respect the `console' arg when iterating through windows.
6135         Fixes bug: (get-buffer-window buffer t device) not respecting
6136         the `device' arg.
6137         This function needs more work, as others have pointed out.
6138
6139         * frame.h: Rename prev_frame to previous_frame.
6140         device_matches_console_spec no longer takes a `frame' arg.
6141
6142         * s/gnu.h:
6143         * s/linux.h:
6144         * s/hpux.h:
6145         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6146         From "Golubev I. N." <gin@mo.msk.ru>.
6147
6148         * make-src-depend: Fix typo.
6149
6150 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6151
6152         * window.c (Fnext_window):
6153         next_frame() might return nil, not a frame.
6154         Fixes this crash:
6155         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6156
6157         * frame.c (next_frame_internal):
6158         We've passed a frame if we've passed its device.
6159         Fixes this crash:
6160         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6161 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6162
6163 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6164
6165         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6166         Allow option to suppress accelerators in menu/dialog items.
6167         (populate_or_checksum_helper): Pass dialog title through above.
6168
6169 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6170
6171         * event-msw.c (mswindows_key_to_emacs_keysym):
6172         Add "pause" key, fix "menu" key.
6173
6174 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6175
6176         * eval.c (reinit_vars_of_eval):
6177         Increase max_lisp_eval_depth to 1000,
6178         required for thai-xtis.el to byte-compile under some circumstances.
6179
6180 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6181
6182         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6183         From Kenichi Handa.
6184
6185 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6186
6187         * make-src-depend: Make the generated Makefiles smaller.
6188
6189         * s/hpux.h (SETUP_SLAVE_PTY):
6190         Provide a %d in the format string for the errno argument.
6191
6192         * editfns.c (Ftemp_directory):
6193         Warning fix.
6194         Avoid buffer overrun on very long file name.
6195
6196         * input-method-xlib.c (XIM_init_device):
6197         6th parameter of XRegisterIMInstantiateCallback has different
6198         pointer types on different OSes, so simply cast to (void *).
6199
6200         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6201
6202         * sysdll.c (dll_open):
6203         shl_load will hang hard if passed a NULL filename.
6204         Simply return NULL for compatibility with dlopen.
6205         * sysdll.c: Conform to XEmacs coding standards.
6206
6207         * sysdep.c (get_pty_max_bytes):
6208         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6209
6210 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6211
6212         * tooltalk.c: Add #include <syssignal.h>
6213
6214 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6215
6216         * s/hpux.h: Don't use undefined function sigunblock().
6217
6218 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6219
6220         * config.h.in: Add HAVE_BALLOON_HELP.
6221         * emacs.c: Use HAVE_BALLOON_HELP.
6222         * Makefile.in.in (x_objs):
6223         Make Balloon Help conditional on finding shape.h.
6224
6225 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6226
6227         * syntax.c (regex_emacs_buffer_p): New variable.
6228         * syntax.h (regex_emacs_buffer_p): extern.
6229         * search.c (looking_at_1):
6230         (string_match_1):
6231         (fast_string_match):
6232         (search_buffer): Set regex_emacs_buffer_p.
6233         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6234         when before_dot, at_dot, after_dot.
6235
6236 2000-08-23  Andy Piper  <andy@xemacs.org>
6237
6238         * gui-x.c (popup_selection_callback): Only set action_occurred
6239         when we really have an image instance.
6240         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6241
6242 2000-08-23  Andy Piper  <andy@xemacs.org>
6243
6244         * gui-msw.c (mswindows_handle_gui_wm_command): set
6245         action_occurred.
6246         * gui-x.c (popup_selection_callback): ditto.
6247
6248         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6249         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6250         (struct Lisp_Image_Instance): add action_occurred flag.
6251
6252         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6253         (image_instance_changed): ditto.
6254         (reset_frame_subwindow_instance_cache): only unmap windows - do
6255         not remove them from the cache also.
6256
6257         * glyphs-widget.c (tab_control_update): better debug.
6258         (progress_gauge_update): ditto.
6259         (layout_update): ditto.
6260         (layout_instantiate): ditto.
6261         (tab_control_order_only_changed): cope with null pending items.
6262
6263         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6264         debug. Force selection of an item when an action occurred. Cope
6265         with null pending_items.
6266         (mswindows_progress_gauge_redisplay): better debug.
6267         * glyphs-x.c (x_tab_control_redisplay): ditto.
6268
6269         * redisplay.c (redisplay_frame): reset the frame cache if the
6270         frame is garbaged.
6271
6272         * window.c (Fset_window_configuration): potentially re-enable
6273         frame cache reset.
6274         (window_unmap_subwindows): need to finalize instances here since
6275         it is only used in mark_window_as_deleted.
6276
6277 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6278
6279         * nas.c (SndOpenDataForReading):
6280         nas.c (WaveOpenDataForReading):
6281         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6282         Somehow escaped from the 2000-08-14 patch.
6283
6284 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6285
6286         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6287         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6288
6289 2000-08-21  Andy Piper  <andy@xemacs.org>
6290
6291         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6292         window if it is not already displayed.
6293
6294         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6295         it is not already displayed.
6296
6297         * window.c (Fset_window_configuration): don't reset the frame
6298         cache.
6299
6300         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6301         instances from the frame cache if we are actually finalizing them.
6302         (reset_frame_subwindow_instance_cache): reset frame cache only
6303         after unmapping everything.
6304         (map_subwindow): set displayed flag after mapping.
6305
6306 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6307
6308         * data.c (indirect_function):
6309         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6310
6311         * eval.c (function_argcount):
6312         Use original function when signaling errors.
6313
6314 2000-08-18  Andy Piper  <andy@xemacs.org>
6315
6316         * frame.c (delete_frame_internal): use new
6317         free_frame_subwindow_instances name.
6318
6319         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6320         (add_tab_item): make return type correct.
6321         (mswindows_tab_control_instantiate): assert index of tab.
6322         (mswindows_tab_control_redisplay): Re-code to use
6323         gui_item_equal_sans_selected and gui_item_list_find_selected.
6324
6325         * glyphs-widget.c (tab_control_update): Correct comment.
6326
6327         * window.c (window_unmap_subwindows): use new
6328         unmap_subwindow_instance_cache_mapper.
6329         (window_unmap_subwindows_cache_mapper): deleted.
6330         (Fset_window_configuration): comparisons should now be with
6331         EQ. Preserve the subwindow instance cache across configuration
6332         changes.
6333         (allocate_window): ditto.
6334         (make_dummy_parent): ditto.
6335
6336         * glyphs.c (free_frame_subwindow_instances): rename from
6337         free_frame_subwindow_instance_cache. finalize all instances rather
6338         than just those in the display cache.
6339         (finalize_all_subwindow_instances): walk windows unmapping and
6340         finalizing subwindows.
6341         (unmap_subwindow_instance_cache_mapper): moved from
6342         window.c. Allow finalization as well as unmapping.
6343
6344         * gui.c (gui_item_list_find_selected): new function.
6345
6346         * gui.h (gui_item_list_find_selected): declare.
6347
6348         * glyphs-x.c (x_tab_control_redisplay): pick tab
6349         explicitly. Re-code to use gui_item_equal_sans_selected and
6350         gui_item_list_find_selected.
6351
6352         * glyphs-x.h: add lwlib-utils.h
6353
6354         * buffer.c (Frecord_buffer): undo previous change.
6355
6356 2000-08-09  Vin Shelton  <acs@xemacs.org>
6357
6358         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6359         possible.  Create temporary files more securely.  The patch was
6360         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6361         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6362         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6363         for details.
6364
6365 2000-08-07  Ben Wing  <ben@xemacs.org>
6366
6367         * getloadavg.c: remove duplicate (and windows-breaking)
6368         includes of fcntl.h and sys/file.h.
6369
6370         * nt.c: remove duplicate getloadavg() definition.
6371
6372         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6373         encodings.
6374
6375 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6376
6377         * eval.c (function_argcount): If function needs to be autoloaded
6378         actually use the loaded definition.
6379         GCPRO function.
6380
6381 2000-08-05  Ben Wing  <ben@xemacs.org>
6382
6383         * getloadavg.c: add prototype for getloadavg().  remove
6384         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6385         of the code).  remove duplicate header includes.
6386
6387         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6388
6389         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6390         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6391         useful load average.
6392
6393         * alloc.c (reinit_alloc_once_early): removed references to
6394         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6395         the lisp vars are the only things referencing the malloc_sbrk_*
6396         vars, and they were already if 0'd out.  these vars only exist
6397         in the older malloc.c, which is basically unused, and they're
6398         only for informational purposes.
6399
6400         * m\*.h: removed useless VIRT_ADDR_VARIES.
6401
6402         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6403
6404 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6405
6406         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6407         color if the image is a mono pixmap.
6408
6409 2000-07-30  Ben Wing  <ben@xemacs.org>
6410
6411         * Makefile.in.in (release):
6412         Remove stray @.
6413
6414         * buffer.c (directory_is_current_directory):
6415         * dired-msw.c (mswindows_get_files):
6416         * dired.c:
6417         * dired.c (Fdirectory_files):
6418         * dired.c (file_name_completion_stat):
6419         * dired.c (Ffile_attributes):
6420         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6421         preprocessor tricks, to avoid problems on some machines
6422         (e.g. SCO).
6423
6424         * callproc.c (egetenv): GC docs.
6425
6426         * console-msw.h:
6427         * console-msw.h (struct mswindows_dialog_id):
6428         * lrecord.h (lrecord_type):
6429         New object for use with MSW dialogs.
6430
6431         * console.h (struct console_methods):
6432         New enable/disable frame methods, for proper modal dialogs.
6433
6434         * device-msw.c (msprinter_default_printer): Fix to follow
6435         proper Mule conventions.
6436
6437         * device-msw.c:
6438         * device-msw.c (signal_open_printer_error):
6439         * device-msw.c (msprinter_init_device):
6440         * device-msw.c (ensure_not_printing):
6441         * device-msw.c (plist_get_margin):
6442         * device-msw.c (Fmsprinter_select_settings):
6443         * device-msw.c (finalize_devmode):
6444         * device-msw.c (Fmsprinter_settings_despecialize):
6445         * device-msw.c (signal_enum_priner_error):
6446         * extents.c (decode_extent):
6447         * extents.c (decode_map_extents_flags):
6448         * extents.c (decode_extent_at_flag):
6449         * extents.c (Fextent_at):
6450         * extents.c (Fextents_at):
6451         * extents.c (symbol_to_glyph_layout):
6452         [[[[2]]]] Use structured errors.
6453
6454         * dialog-msw.c:
6455         * dialog-msw.c (mswindows_is_dialog_msg):
6456         * dialog-msw.c (mark_mswindows_dialog_id):
6457         * dialog-msw.c (dialog_proc):
6458         * dialog-msw.c (handle_question_dialog_box):
6459         * dialog-msw.c (syms_of_dialog_mswindows):
6460         Define new object to clean up marking; use it as a dialog identifier.
6461         Call new delete-dialog-box-hook.
6462
6463         * dialog-x.c (dbox_selection_callback):
6464         * dialog-x.c (dbox_descriptor_to_widget_value):
6465         * dialog-x.c (x_make_dialog_box_internal):
6466         Call new delete-dialog-box-hook.
6467         Return an id.
6468
6469         * dialog.c:
6470         * dialog.c (syms_of_dialog):
6471         * dialog.c (vars_of_dialog):
6472         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6473
6474         * eval.c:
6475         * eval.c (signal_call_debugger):
6476         when noninteractive, output stack traces on the console instead
6477         of in a (never-seen) buffer.
6478
6479         * eval.c (signal_type_error):
6480         * eval.c (invalid_argument_2):
6481         * lisp.h:
6482         new funs for use w/structured errors.
6483
6484         * event-Xt.c:
6485         * event-Xt.c (x_to_emacs_keysym):
6486         * event-Xt.c (describe_event):
6487         * event-Xt.c (emacs_Xt_event_handler):
6488         * event-Xt.c (vars_of_event_Xt):
6489         * event-msw.c:
6490         * event-msw.c (mswindows_wnd_proc):
6491         * event-msw.c (vars_of_event_mswindows):
6492         rename {x,mswindows}-debug-events to debug-{}-events for
6493         consistency with other debug-foo variables.
6494
6495         * event-stream.c:
6496         document next-event more clearly.
6497
6498         * fileio.c (Ffile_name_directory):
6499         * fileio.c (Ffile_name_nondirectory):
6500         * fileio.c (Funhandled_file_name_directory):
6501         * fileio.c (file_name_as_directory):
6502         * fileio.c (Ffile_name_as_directory):
6503         * fileio.c (directory_file_name):
6504         * fileio.c (Fdirectory_file_name):
6505         * fileio.c (Fmake_temp_name):
6506         * fileio.c (Ffile_truename):
6507         * fileio.c (Fsubstitute_in_file_name):
6508         * fileio.c (expand_and_dir_to_file):
6509         * fileio.c (barf_or_query_if_file_exists):
6510         * fileio.c (check_executable):
6511         * fileio.c (Ffile_exists_p):
6512         * fileio.c (Ffile_writable_p):
6513         * fileio.c (Ffile_directory_p):
6514         * fileio.c (Ffile_regular_p):
6515         * fileio.c (Ffile_modes):
6516         * fileio.c (Ffile_newer_than_file_p):
6517         * fileio.c (Fverify_visited_file_modtime):
6518         * fileio.c (Fset_visited_file_modtime):
6519         * fileio.c (auto_save_1):
6520         (1). (2).
6521         fix up gcpro's.
6522
6523         * frame-msw.c:
6524         * frame-msw.c (mswindows_init_frame_1):
6525         * frame-msw.c (mswindows_enable_frame):
6526         * frame-msw.c (error_frame_unsizable):
6527         * frame-msw.c (msprinter_init_frame_1):
6528         * frame-msw.c (msprinter_init_frame_3):
6529         * frame-msw.c (console_type_create_frame_mswindows):
6530         (2).
6531         implement new enable/disable frame methods.
6532
6533         * frame-x.c:
6534         * frame-x.c (x_enable_frame):
6535         * frame-x.c (console_type_create_frame_x):
6536         implement new enable/disable frame methods.
6537
6538         * frame.c:
6539         * frame.c (Fdisable_frame):
6540         * frame.c (syms_of_frame):
6541         * frame.h (struct frame):
6542         implement new enable/disable frame methods/functions.
6543
6544         * general-slots.h:
6545         add initial-focus.
6546
6547         * glyphs-msw.c (mswindows_widget_instantiate):
6548         comment that initial-focus should be implemented.
6549
6550         * glyphs-widget.c:
6551         * glyphs-widget.c (check_valid_instantiator):
6552         * glyphs-widget.c (check_valid_orientation):
6553         * glyphs-widget.c (check_valid_tab_orientation):
6554         * glyphs-widget.c (check_valid_justification):
6555         * glyphs-widget.c (check_valid_border):
6556         * glyphs-widget.c (check_valid_callback):
6557         * glyphs-widget.c (check_valid_int_or_function):
6558         * glyphs-widget.c (check_valid_string_or_vector):
6559         * glyphs-widget.c (check_valid_item_list_1):
6560         * glyphs-widget.c (widget_validate):
6561         * glyphs-widget.c (combo_box_validate):
6562         * glyphs-widget.c (widget_instantiate):
6563         * glyphs-widget.c (syms_of_glyphs_widget):
6564         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6565         * glyphs-widget.c (image_instantiator_combo_box):
6566         * glyphs-widget.c (image_instantiator_scrollbar):
6567         * glyphs-widget.c (image_instantiator_tab_control):
6568         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6569         (2).
6570         support (unimplemented) keyword initial-focus.
6571         reindent long macros.
6572
6573         * glyphs-x.c (x_redisplay_widget):
6574         * glyphs-x.c (x_button_instantiate):
6575         * glyphs-x.c (x_button_redisplay):
6576         * glyphs-x.c (x_progress_gauge_instantiate):
6577         * glyphs-x.c (x_edit_field_instantiate):
6578         * glyphs-x.c (x_combo_box_instantiate):
6579         * glyphs-x.c (x_tab_control_instantiate):
6580         * glyphs-x.c (x_label_instantiate):
6581         * gui-x.c:
6582         * gui-x.c (button_item_to_widget_value):
6583         * gui-x.c (gui_items_to_widget_values_1):
6584         * gui-x.c (gui_item_children_to_widget_values):
6585         * gui-x.c (gui_items_to_widget_values):
6586         * gui-x.h:
6587         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6588         add new flag to gui-parsing routines to indicate whether
6589         accelerator specs should be supported.
6590
6591         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6592
6593         * glyphs.h (struct Lisp_Image_Instance):
6594         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6595         add initial-focus flag.
6596
6597         * gui.c:
6598         * gui.c (syms_of_gui):
6599         * gui.c (vars_of_gui):
6600         clean up menu-no-selection-hook.
6601
6602         * gui.h:
6603         support delete-dialog-box-hook.
6604
6605         * lread.c (Fload_internal):
6606         * lread.c (locate_file_in_directory_mapper):
6607         (1).
6608
6609         * lrecord.h:
6610         * lrecord.h (struct toolbar_button):
6611         * lrecord.h (syms_of_toolbar):
6612         document how to create a new object.
6613
6614         * menubar-msw.c (mswindows_char_is_accelerator):
6615         may be called on frames w/o menus.
6616
6617         * menubar.c (vars_of_menubar):
6618         clean up :filter docs.
6619
6620         * nt.c (readdir):
6621         * ntproc.c:
6622         (1).
6623
6624         * process-nt.c:
6625         * process-nt.c (validate_signal_number):
6626         * process-nt.c (signal_cannot_launch):
6627         * process-nt.c (nt_create_process):
6628         * process-nt.c (nt_send_process):
6629         * process-nt.c (nt_kill_child_process):
6630         * process-nt.c (nt_open_network_stream):
6631         * process-nt.c (syms_of_process_nt):
6632         (2).
6633         delete quote-handling.  call new lisp code that does it better.
6634
6635         * process-unix.c (connect_to_file_descriptor):
6636         * process-unix.c (allocate_pty):
6637         * process-unix.c (unix_send_process):
6638         * process-unix.c (unix_kill_child_process):
6639         * process-unix.c (unix_open_network_stream):
6640         * process-unix.c (unix_open_multicast_group):
6641         (1). (2).
6642
6643         * process.c:
6644         * process.c (Fstart_process_internal):
6645         (2).  need to canonicalize process path even if absolute.
6646
6647         * select-msw.c (symbol_to_ms_cf):
6648         * select-msw.c (ms_cf_to_symbol):
6649         * select-msw.c (cf_is_autofreed):
6650         * select-msw.c (mswindows_destroy_selection):
6651         * select.c:
6652         * select.c (syms_of_select):
6653         * select.h:
6654         support dibv5, fix bugs. (from Mike Alexander)
6655
6656         * select.c (Fget_selection_internal):
6657         * select.c (select_convert_out):
6658
6659         * sysdep.c:
6660         * sysdep.c (xemacs_stat):
6661         renamed.
6662
6663         * sysdep.c (mkdir):
6664         * sysdep.c (rmdir):
6665         but keep original stat() here because we provide encapsulation
6666         around these funs.
6667
6668         * sysfile.h:
6669         * sysfile.h (fstat):
6670         remove stat garbage.
6671
6672         * syswindows.h:
6673         fix X/MSW conflict.
6674         don't include tchar.h.  it's inappropriate because it makes
6675         compile-time distinctions when we want runtime distinctions.
6676         (we provide our own tchar replacements)
6677
6678         * toolbar.c:
6679         use default object printer for toolbar-button.
6680
6681         * unexcw.c:
6682         make sure we don't encapsulate.
6683
6684         * window.c (vars_of_window):
6685         emphasize that temp-buffer-show-hook is obsolete.
6686
6687 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6688
6689         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6690         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6691
6692         * events.c (Fevent_timestamp_lessp):
6693         Not 64-bit clean.  Use EMACS_INT, not int.
6694
6695 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6696
6697         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6698         unsigned int and changed the last enum to
6699         lrecord_type_last_built_in_type.
6700         (lrecord_implementations_table): changed prototype to know how
6701         long the array is supposed to be.
6702         (lrecord_type_count): new unsigned int to keep track of the
6703         current number of lisp lrecord types.
6704         (DEFINE_EXTERNAL_LRECORD):
6705         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6706         dynamic-modules to declare new lisp types. They are the same
6707         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6708         int for each new type, and increment lrecord_type_count by 1.
6709
6710         * alloc.c (lrecord_implementations_table): Changed to reference
6711         lrecord_type_last_built_in_type for the size of the array.
6712         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6713
6714 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6715
6716         * glyphs.h (check_valid_item_list): Renamed from
6717         check_valid_item_list_1.
6718
6719 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6720
6721         * select.c (Qselect_coerce): New.
6722         * select.c (Vselection_coercion_alist): New.
6723         * select.c (syms_of_select): Declare.
6724         * select.c (get-selection-internal): Use it.
6725         Use the new select-coerce functionality.
6726
6727         * select.c (select_coerce): New.
6728         * select.h (select_coerce): Declare.
6729         New function to coerce one type of data into another.
6730
6731 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6732
6733         * callproc.c (Fcall_process_internal):
6734         (Fcall_process_internal):
6735         * process-unix.c (unix_create_process):
6736         Save and restore the value of errno, so that error messages are accurate.
6737
6738 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6739
6740         * elhash.c (print_hash_table):
6741         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6742         Prettify docstrings and indentation.
6743
6744 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6745
6746         * window.c (Fwindow_pixel_edges): Subtract frame border and
6747         gutter size.
6748
6749 2000-07-31  Andy Piper  <andy@xemacs.org>
6750
6751         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6752         will acknowledge the change.
6753
6754         * glyphs.h: declare tab_control_order_only_changed.
6755
6756         * glyphs-x.c (x_tab_control_redisplay): use
6757         tab_control_order_only_changed.
6758
6759         * glyphs-widget.c (tab_control_order_only_changed): new function.
6760
6761         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6762         tab_control_order_only_changed.
6763
6764         * gui.c (gui_item_equal_sans_selected): new function.
6765         (gui_item_equal): use it.
6766
6767         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6768         :properties in favor of :items..
6769
6770         * glyphs-widget.c (check_valid_item_list): rename from
6771         check_valid_item_list_1.
6772         (check_valid_item_list_1): renamed.
6773         (combo_box_validate): deprecate :properties in favor of :items.
6774         (widget_instantiate): ditto.
6775         (tab_control_update): ditto.
6776         (image_instantiator_combo_box): ditto.
6777         (image_instantiator_tree_view): ditto.
6778         (image_instantiator_tab_control): ditto.
6779         (layout_post_instantiate): remove dead code.
6780
6781         * print.c (debug_print_no_newline): only write to debugger if in
6782         WIN32_NATIVE.
6783
6784         * elhash.c (Fmake_hash_table): update doc string.
6785
6786         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6787         messages whilst in GC. This at least stops XEmacs crashing but has
6788         the potential for wierd behaviour.
6789
6790 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6791
6792         * config.h.in:
6793         Make existence of s&m files optional.
6794
6795         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6796         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6797         * s/gnu.h: Remove HAVE_GETLOADAVG.
6798         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6799         * s/sol2.h: Remove HAVE_GETLOADAVG.
6800         * lisp.h: Remove getloadavg() declaration.
6801         * fns.c:
6802         Include <sys/loadavg.h> if available.
6803         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6804         * config.h.in:  Group together getloadavg()-related macros.
6805         Use only configure-time tests to detect getloadavg().
6806
6807 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6808
6809         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6810
6811 2000-07-25  Andy Piper  <andy@xemacs.org>
6812
6813         * syswindows.h: add tchar.h for native builds.
6814
6815         * frame.c (syms_of_frame): remove set-glyph-image.
6816
6817         * general-slots.h: add Qset_glyph_image.
6818
6819         * glyphs-widget.c (layout_update): add domain arg to
6820         set-glyph-image.
6821         (syms_of_glyphs_widget): remove set-glyph-image.
6822
6823 2000-07-23  Ben Wing  <ben@xemacs.org>
6824
6825         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6826         Vpopup_frame_list.
6827
6828 2000-07-22  Andy Piper  <andy@xemacs.org>
6829
6830         * symsinit.h: add syms_of_win32().
6831
6832         * gui-msw.c (syms_of_gui_mswindows): remove
6833         Fmswindows_shell_execute.
6834         (Fmswindows_shell_execute): moved to win32.c.
6835
6836         * emacs.c (main_1): add syms_of_win32 ().
6837
6838         * win32.c (init_potentially_nonexistent_functions): rewrite in
6839         compiler-friendly terms.
6840         (Fmswindows_shell_execute): move here from gui-msw.c.
6841         (syms_of_win32): new.
6842
6843         * device-msw.c (Fmswindows_printer_list): clean up args to
6844         EnumPrinters.
6845         Don't include tchar under cygwin or mingw.
6846         (msprinter_default_printer): make cygwin-friendly.
6847
6848 2000-07-21  Andy Piper  <andy@xemacs.org>
6849
6850         * glyphs-widget.c (image_instantiator_tree_view): use tab
6851         control's update function.
6852         (layout_property): new function. Retrieve items.
6853
6854         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6855         function. Re-populate the tree view from the pending items.
6856
6857         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6858         is designated the parent if the domain is an image instance. This
6859         is needed so that dirtiness can be cascade up the hierarchy and
6860         thus for layout children to be redisplayed correctly.
6861         (allocate_image_instance): rename glyph -> parent.
6862
6863         * redisplay.h: change redisplay_output_layout signature.
6864
6865         * redisplay-msw.c (mswindows_output_display_block): use domain
6866         arg.
6867
6868         * redisplay-x.c (x_output_display_block): use domain arg.
6869
6870 2000-07-10  Andy Piper  <andy@xemacs.org>
6871
6872         * window.c (Fset_window_configuration): add comment.
6873
6874         * redisplay-output.c (compare_runes):
6875         (redisplay_output_subwindow): redisplay rather than update subwindow.
6876         (redisplay_output_layout): ditto.
6877
6878         * redisplay-msw.c (mswindows_frame_output_end):
6879         (mswindows_frame_output_end): make defer window pos optional.
6880
6881         * lisp.h: add Flast.
6882
6883         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6884         normalize method. Change update method to be for changed
6885         instantiators. Add redisplay method. Change signature of layout
6886         method.
6887         (struct Lisp_Image_Instance): add instantiator.
6888         (IMAGE_INSTANCE_INSTANTIATOR): new.
6889         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6890         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6891         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6892
6893         * glyphs.c:
6894         (find_instantiator_differences): new function.
6895         (Fset_instantiator_property): new convenience function.
6896         (check_image_instance_structure): strictly check for vector
6897         instantiators.
6898         (normalize_image_instantiator): make non-static.
6899         (instantiate_image_instantiator): pass on dest_mask and use new
6900         signatures for image_instance_layout and friends.
6901         (mark_image_instance): mark the instantiator. Mark the subwindow
6902         face not the widget face.
6903         (image_instance_equal): add instantiator.
6904         (image_instance_hash): ditto.
6905         (allocate_image_instance): ditto.
6906         (Fset_image_instance_property): removed.
6907         (Fimage_instance_file_name): ditto.
6908         (Fcolorize_image_instance): ditto.
6909         (image_instance_layout): add offsets to be set.
6910         (update_image_instance): new function. update an image instance
6911         from its changed instantiator.
6912         (inherit_normalize): add dest_mask.
6913         (xbm_normalize): ditto.
6914         (xface_normalize): ditto.
6915         (xpm_normalize): ditto.
6916         (text_update): set_property -> update.
6917         (image_instantiate): use the glyph identity as a hash key, not the
6918         instantiator.
6919         (glyph_width): use new image_instance_layout signature.
6920         (glyph_ascent): ditto.
6921         (glyph_descent): ditto.
6922         (glyph_height): ditto.
6923         (glyph_query_geometry): ressurrect.
6924         (glyph_layout): ditto.
6925         (redisplay_subwindow): update -> redisplay.
6926         (syms_of_glyphs): add Fset_instantiator_property.
6927         (image_instantiator_format_create): set_property -> update.
6928
6929         * glyphs-x.c:
6930         (autodetect_normalize): add dest_maks to signature.
6931         (x_redisplay_subwindow): update -> redisplay.
6932         (x_redisplay_widget): ditto.
6933         (x_button_redisplay): ditto.
6934         (x_progress_gauge_redisplay): ditto.
6935         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6936         stacking order.
6937         (console_type_create_glyphs_x): update -> redisplay.
6938         (image_instantiator_format_create_glyphs_x): ditto.
6939
6940         * glyphs-widget.c:
6941         (check_valid_instantiator): disallow glyphs in the instantiator,
6942         they must now be vectors.
6943         (check_valid_instantiator_list): ditto.
6944         (glyph_instantiator_to_glyph): use internal symbol rather than
6945         intern.
6946         (widget_update): renamed from widget_set_property. Call cascaded
6947         update methods.
6948         (redisplay_widget): renamed from update_widget.
6949         (widget_layout): image_instance_layout now takes position as well
6950         as size.
6951         (widget_normalize): ditto.
6952         (widget_instantiate): ditto.
6953         (tab_control_query_geometry) ditto.:
6954         (tab_control_update): renamed from tab_control_set_property.
6955         (progress_gauge_update): set_property -> update.
6956         (layout_normalize): rewrite so that child instantiators are
6957         normalized also.
6958         (layout_update): new function. Create glyphs from the normalized
6959         children and cope with any other layout keywords. We do not
6960         instantiate children here that will be take care of by
6961         redisplay_output_layout.
6962         (layout_instantiate): call layout_update and not much else.
6963         (layout_post_instantiate): not sure whether this is needed
6964         anymore.
6965         (layout_query_geometry): query glyph geometry rather than
6966         image_instance geometry.
6967         (layout_layout): set offsets from pass in parameters. Use glyph
6968         geometry and layout functions rather than image instance ones.
6969         (native_layout_layout): ditto.
6970         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6971         (image_instantiator_widget): set_property -> update.
6972         (image_instantiator_buttons): ditto.
6973         (image_instantiator_progress_guage): ditto.
6974         (image_instantiator_tab_control): ditto.
6975         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6976         (image_instantiator_layout): add update method.
6977
6978         * glyphs-msw.c (bmp_normalize):
6979         (mswindows_resource_normalize): add dest_mask so that it can be
6980         proprogated by layout_normalize.
6981         (begin_defer_window_pos): make optional because it may not be the
6982         right thing to do and it introduces differences with X.
6983         (mswindows_unmap_subwindow): ditto.
6984         (mswindows_map_subwindow): ditto.
6985         (mswindows_redisplay_subwindow): renamed from
6986         mswindows_update_subwindow.
6987         (mswindows_redisplay_widget): ditto.
6988         (mswindows_button_redisplay): renamed from
6989         mswindows_button_update. Update is now what the instantiation
6990         function does for a changed instantiator.
6991         (mswindows_progress_gauge_instantiate): set the progress value
6992         here if appropriate.
6993         (mswindows_tab_control_redisplay): cope with re-ordering of the
6994         members of the tab widget by simply selecting the new top
6995         widget. This makes things appear ok if you click on a tab.
6996         (mswindows_combo_box_instantiate): image_instance_layout now takes
6997         position as well as size.
6998         (mswindows_progress_gauge_redisplay): renamed from
6999         mswindows_progress_gauge_update.
7000         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7001         (image_instantiator_format_create_glyphs_mswindows): ditto.
7002
7003         * glyphs-eimage.c (jpeg_normalize):
7004         (gif_normalize):
7005         (png_normalize):
7006         (tiff_normalize): add dest_mask so that it can be proprogated by
7007         layout_normalize.
7008
7009         * elhash.c:
7010         (print_hash_table):
7011         (hash_table_weakness_validate):
7012         (decode_hash_table_weakness):
7013         (Fhash_table_weakness):
7014         (Fhash_table_type):
7015         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7016
7017         * console.h (struct console_methods): move update_* to
7018         redisplay_*.
7019
7020 2000-07-20  Ben Wing  <ben@xemacs.org>
7021
7022         * *.[ch] (XSETOBJ): remove unused middle argument.
7023         lisp-disunion.h: correct wrap_object() to one argument.
7024
7025 2000-07-15  Ben Wing  <ben@xemacs.org>
7026
7027         * s/cygwin32.h:
7028         * s/cygwin32.h (CYGWIN_CONV_PATH):
7029         Add missing logb prototype for v1.1.
7030         Use post-b20 names and alias to pre-b20 names when pre-b20.
7031
7032         * s/windowsnt.h: [5].
7033
7034 2000-07-15  Ben Wing  <ben@xemacs.org>
7035
7036         * Makefile.in.in (x_objs):
7037         * Makefile.in.in (sheap_objs):
7038         * Makefile.in.in (objs):
7039         added win32.o, cosmetic cleanups.
7040
7041         * alloc.c (Fmake_byte_code):
7042         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7043         etc. macros which declare their own args now.
7044
7045         * alloc.c (syms_of_alloc):
7046         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7047
7048         * buffer.c:
7049         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7050
7051         * buffer.c (Fget_file_buffer):
7052         Fixed GCPRO problem.
7053
7054         * buffer.c (get_truename_buffer):
7055         Fixed comment about GC checking.
7056
7057         * buffer.c (syms_of_buffer):
7058         Undeclared those dedicated frame funs.
7059         [2].
7060
7061         * buffer.h:
7062         Define convenience macros for internal/external conversions.
7063         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7064         and Qenvironment_variable_encoding for cleaner code.
7065
7066         * bufslots.h:
7067         Remove dedicated-frame; in lisp.
7068
7069         * bytecode.c (funcall_compiled_function):
7070         [1].
7071
7072         * bytecode.c (syms_of_bytecode):
7073         [2].
7074
7075         * console-msw.c:
7076         * console-msw.c (mswindows_show_console): Rewrote.
7077
7078         * console-msw.c (Fmswindows_debugging_output): New.
7079         Sends to OutputDebugString (special MSWin debugger interface).
7080
7081         * console-msw.c (Fmswindows_message_box):
7082         Fixed stupid bugs so it works when called from kill-emacs.
7083
7084         * console-msw.c (syms_of_console_mswindows):
7085         Declare Fmswindows_debugging_output.
7086
7087         * console-msw.h:
7088         New MSWin prototypes.
7089
7090         * console-msw.h (struct mswindows_frame):
7091         New entry last-click-mods for improved button-modifier support.
7092
7093         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7094         New struct entry `popup' with corresponding accessor.
7095
7096         * console-x.c:
7097         * console-x.c (split_up_display_spec):
7098         * console-x.c (get_display_arg_connection):
7099         * console-x.c (x_semi_canonicalize_console_connection):
7100         * console-x.c (x_canonicalize_device_connection):
7101         [[[6]]]: Change char to more specific type.
7102         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7103
7104         * console-x.c (x_semi_canonicalize_console_connection):
7105         * console-x.c (x_canonicalize_device_connection):
7106         [[[9]]]: Fix up error signalling to use new structured error system.
7107
7108         * console-x.h:
7109         [[[4]]]: Define codesys aliases:
7110         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7111         Qx_color_name_encoding, Qx_display_name_encoding.
7112
7113         * console.h (struct console_methods):
7114         New method make_dialog_box_internal supersedes older
7115         popup_dialog_box method.
7116
7117         * data.c:
7118         Define many new errors, part of new structured errors.
7119
7120         * data.c (init_errors_once_early):
7121         * data.c (syms_of_data):
7122         [2].
7123
7124         * device-msw.c (mswindows_init_device):
7125         [[[5]]]: Cleanup to support NT 3.51.
7126
7127         * device-msw.c (decode_devmode): Cleanup.
7128
7129         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7130         * device-msw.c (mswindows_handle_print_dialog_box):
7131         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7132         * device-msw.c (syms_of_device_mswindows):
7133         Delete the dialog box primitives recently introduced by Kirill and
7134         instead interface to general dialog box interface.
7135
7136         * device-x.c:
7137         * device-x.c (compute_x_app_name):
7138         * device-x.c (x_init_device):
7139         * device-x.c (Fx_valid_keysym_name_p):
7140         * device-x.c (Fx_set_font_path):
7141         [6].
7142         [7].
7143
7144         * device.h (wrap_device): New.
7145         First of its kind; meant to replace XSETDEVICE.
7146
7147         * dialog-msw.c: Many file-dialog symbols.
7148
7149         * dialog-msw.c (mswindows_register_popup_frame): New.
7150         * dialog-msw.c (mswindows_is_dialog_msg): New.
7151         For supporting kbd traversal in dialog boxes.
7152
7153         * dialog-msw.c (dialog_proc):
7154         Support hitting ESC in dialogs.
7155
7156         * dialog-msw.c (struct):
7157         Common dialog box errors.
7158
7159         * dialog-msw.c (handle_file_dialog_box): New.
7160         Add file dialog code.
7161
7162         * dialog-msw.c (handle_question_dialog_box):
7163         Redo existing code to support new question dialog syntax.
7164
7165         * dialog-msw.c (console_type_create_dialog_mswindows):
7166         We support new dialog console method.
7167
7168         * dialog-msw.c (syms_of_dialog_mswindows):
7169         * dialog-msw.c (vars_of_dialog_mswindows):
7170         New file dialog symbols, vars.
7171
7172         * dialog-x.c:
7173         * dialog-x.c (maybe_run_dbox_text_callback):
7174         * dialog-x.c (dbox_descriptor_to_widget_value):
7175         * dialog-x.c (x_make_dialog_box_internal):
7176         * dialog-x.c (console_type_create_dialog_x):
7177         Mule-ize entire file.
7178         Redo to support question dialog syntax.
7179         [6].
7180
7181         * dialog.c:
7182         * dialog.c (Fmake_dialog_box_internal):
7183         * dialog.c (syms_of_dialog):
7184         Kill old popup-dialog-box, replace with new primitive.
7185         Just call device method or signal error.
7186
7187         * eldap.c (Fldap_open):
7188         * eldap.c (Fldap_search_basic):
7189         * eldap.c (Fldap_add):
7190         * eldap.c (Fldap_modify):
7191         [1].
7192         [7].
7193
7194         * emacs.c:
7195         * emacs.c (make_arg_list_1):
7196         * emacs.c (make_arg_list):
7197         Mule-ize call to dll_init().
7198         [6].
7199         [8].
7200
7201         * emacs.c (make_argc_argv):
7202         * emacs.c (free_argc_argv):
7203         * emacs.c (init_cmdargs):
7204         * emacs.c (main_1):
7205         * emacs.c (Fkill_emacs):
7206         * emacs.c (Fdump_emacs):
7207         Update comments about what can be used in syms_* etc.
7208         Call init_win32() when necessary.
7209         Fix up MS Win dialog box in kill-buffer to actually work right.
7210         [7].
7211
7212         * eval.c:
7213         * eval.c (For):
7214         * eval.c (Fand):
7215         * eval.c (Fprogn):
7216         * eval.c (Fprog1):
7217         * eval.c (Fprog2):
7218         * eval.c (FletX):
7219         * eval.c (Flet):
7220         * eval.c (condition_case_3):
7221         * eval.c (Feval):
7222         * eval.c (function_argcount):
7223         * eval.c (funcall_lambda):
7224         [1].
7225
7226         * eval.c (type_error): New.
7227         * eval.c (maybe_type_error): New.
7228         * eval.c (continuable_type_error): New.
7229         * eval.c (maybe_continuable_type_error): New.
7230         * eval.c (type_error_with_frob): New.
7231         * eval.c (maybe_type_error_with_frob): New.
7232         * eval.c (continuable_type_error_with_frob): New.
7233         * eval.c (maybe_continuable_type_error_with_frob): New.
7234         New functions for use with structured errors.
7235
7236         * event-Xt.c:
7237         * event-Xt.c (x_event_to_emacs_event):
7238         Buttons are now modifiers too.
7239
7240         * event-Xt.c (emacs_Xt_current_event_timestamp):
7241         Implement new event method.
7242         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7243
7244         * event-msw.c:
7245         * event-msw.c (ntpipe_shove_writer): [5].
7246         * event-msw.c (mswindows_enqueue_mouse_button_event):
7247         * event-msw.c (mswindows_drain_windows_queue):
7248         * event-msw.c (mswindows_wnd_proc): [7].
7249         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7250         * event-msw.c (mswindows_modifier_state):
7251         Throughout: support new button modifiers.
7252
7253         * event-msw.c (emacs_mswindows_current_event_timestamp):
7254         Implement new event method.
7255         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7256
7257         * event-stream.c:
7258         * event-stream.c (event_stream_current_event_timestamp): New.
7259         * event-stream.c (maybe_kbd_translate): New functionality.
7260         * event-stream.c (vars_of_event_stream):
7261         Document new kbd-translate-table functionality.
7262
7263         * event-stream.c (Fcurrent_event_timestamp): New.
7264         New primitive for use in fabricated events.
7265         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7266
7267         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7268
7269         * events.c:
7270         * events.c (Fmake_event):
7271         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7272         [1].
7273         [9].
7274
7275         * events.c (format_event_object): fix gcc warnings.
7276
7277         * events.c (Fevent_timestamp): Document new primitives.
7278
7279         * events.c (TIMESTAMP_HALFSPACE): New.
7280
7281         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7282         comparing timestamps correctly (half-space algorithm).
7283
7284         * events.c (Fevent_modifier_bits): Doc fix.
7285
7286         * events.c (Fevent_modifiers): Major doc addition.
7287         * events.c (event_x_y_pixel_internal): Typo fix.
7288         * events.c (syms_of_events): Declare new primitives.
7289
7290         * events.h:
7291         Update long comment for button modifiers, timestamps.
7292
7293         * events.h (struct event_stream):
7294         New current_event_timestamp method.
7295
7296         * extents.c:
7297         * extents.c (extent_in_region_p):
7298         * extents.c (decode_extent):
7299         * extents.c (Fset_extent_parent):
7300         * extents.c (decode_map_extents_flags):
7301         Fix gcc warnings.
7302         [9].
7303
7304         * extents.c (struct extent_at_arg):
7305         * extents.c (decode_extent_at_flag):
7306         * extents.c (extent_at_mapper):
7307         * extents.c (extent_at_bytind):
7308         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7309         * extents.c (Fextents_at): New primitive. [9].
7310         * extents.c (symbol_to_glyph_layout): [9].
7311         Support new primitive `extents-at'.
7312
7313
7314         * extents.c (get_text_property_bytind):
7315         extent_at_bytind has another arg.
7316         [9].
7317
7318         * extents.c (syms_of_extents): New primitive.
7319
7320         * file-coding.c (Fmake_coding_system): [1].
7321         * file-coding.c (subsidiary_coding_system): fix gcc warning
7322         * file-coding.c (syms_of_file_coding): [2].
7323
7324         * fileio.c (Fexpand_file_name):
7325         * fileio.c (Fsysnetunam):
7326         * fileio.c (Ffile_exists_p):
7327         * fileio.c (Ffile_executable_p):
7328         * fileio.c (Fverify_visited_file_modtime):
7329         Clean up GCPROing.
7330
7331         * fileio.c (syms_of_fileio): [2].
7332
7333         * filelock.c (lock_file_1):
7334         * filelock.c (current_lock_owner):
7335         * filelock.c (lock_if_free):
7336         * filelock.c (lock_file):
7337         * filelock.c (unlock_file):
7338         Clean up GCPROing.
7339
7340         * fns.c (concat): Fix gcc warning.
7341
7342         * fns.c (Fmember):
7343         * fns.c (Fold_member):
7344         * fns.c (Fmemq):
7345         * fns.c (Fold_memq):
7346         * fns.c (memq_no_quit):
7347         * fns.c (Fassoc):
7348         * fns.c (Fold_assoc):
7349         * fns.c (Fassq):
7350         * fns.c (Fold_assq):
7351         * fns.c (assq_no_quit):
7352         * fns.c (Frassoc):
7353         * fns.c (Fold_rassoc):
7354         * fns.c (Frassq):
7355         * fns.c (Fold_rassq):
7356         * fns.c (rassq_no_quit):
7357         * fns.c (Fdelete):
7358         * fns.c (Fold_delete):
7359         * fns.c (Fdelq):
7360         * fns.c (Fold_delq):
7361         * fns.c (delq_no_quit):
7362         * fns.c (Fremassoc):
7363         * fns.c (Fremassq):
7364         * fns.c (remassq_no_quit):
7365         * fns.c (Fremrassoc):
7366         * fns.c (Fremrassq):
7367         * fns.c (remrassq_no_quit):
7368         * fns.c (Freverse):
7369         * fns.c (mapcar1):
7370         [1].
7371
7372         * frame-msw.c (mswindows_init_frame_1):
7373         * frame-msw.c (mswindows_delete_frame):
7374         Register popups with dialog code so keyboard traversing works.
7375
7376         * frame-tty.c (tty_raise_frame_no_select): [1].
7377
7378         * frame-x.c:
7379         * frame-x.c (x_set_frame_text_value):
7380         * frame-x.c (x_set_frame_properties):
7381         * frame-x.c (x_create_widgets):
7382         [7].
7383
7384         * frame.c:
7385         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7386
7387         * frame.h (wrap_frame): New.
7388         Macro like wrap_device.
7389
7390         * general.c:
7391         * general.c (SYMBOL):
7392         * general.c (syms_of_general):
7393         Major reorg.  This is now just a wrapper and symbols themselves
7394         are listed in general-slots.h.
7395
7396         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7397         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7398
7399         * glyphs-msw.c (mswindows_native_layout_instantiate):
7400         Add DS_CONTROL so keyboard traversal will work.
7401
7402         * glyphs-widget.c:
7403         * glyphs-widget.c (syms_of_glyphs_widget):
7404         Move some symbols to general-slots.h.
7405
7406         * glyphs-x.c:
7407         * glyphs-x.c (xbm_instantiate_1):
7408         * glyphs-x.c (x_xbm_instantiate):
7409         * glyphs-x.c (x_xface_instantiate):
7410         * glyphs-x.c (autodetect_instantiate):
7411         * glyphs-x.c (cursor_font_instantiate):
7412         * glyphs-x.c (x_update_widget):
7413         * glyphs-x.c (x_widget_instantiate):
7414         * glyphs.c (bitmap_to_lisp_data):
7415         * glyphs.c (pixmap_to_lisp_data):
7416         [7].
7417
7418         * glyphs.c (syms_of_glyphs):
7419         [2].
7420
7421         * gui-x.c:
7422         * gui-x.c (print_widget_value):
7423         * gui-x.c (menu_separator_style_and_to_external):
7424         * gui-x.c (add_accel_and_to_external):
7425         * gui-x.c (button_item_to_widget_value):
7426         * gui-x.c (gui_items_to_widget_values_1):
7427         * gui-x.c (gui_items_to_widget_values):
7428         * gui-x.c (syms_of_gui_x):
7429         * gui-x.c (vars_of_gui_x):
7430         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7431         [9].
7432
7433         * gui-x.h:
7434         Muleize, prototype changes matching gui-x.c.
7435
7436         * gui.c:
7437         * gui.c (separator_string_p):
7438         * gui.c (gui_item_add_keyval_pair):
7439         * gui.c (make_gui_item_from_keywords_internal):
7440         * gui.c (signal_too_long_error):
7441         * gui.c (parse_gui_item_tree_item):
7442         * gui.c (syms_of_gui):
7443         * gui.c (vars_of_gui):
7444         * gui.h:
7445         menu-no-selection-hook moved here (used by MSWin).
7446         Move some symbols to general-slots.h.
7447         [6].
7448         [9].
7449
7450         * insdel.c (get_buffer_pos_char):
7451         * insdel.c (get_buffer_range_char):
7452         Add GC comments.
7453
7454         * keymap.c (keymap_lookup_directly):
7455         * keymap.c (keymap_store):
7456         * keymap.c (ensure_meta_prefix_char_keymapp):
7457         * keymap.c (describe_map):
7458         * keymap.h:
7459         Support new button modifiers.
7460
7461         * lisp-disunion.h (wrap_object):
7462         * lisp-disunion.h (XSETOBJ):
7463         Rename make_obj to wrap_object.
7464
7465         * lisp-union.h:
7466         * lisp-union.h (make_int):
7467         * lisp-union.h (make_char):
7468         Support wrap_object.
7469
7470         * lisp.h:
7471         * lisp.h (LIST_LOOP):
7472         * lisp.h (EXTERNAL_LIST_LOOP):
7473         * lisp.h (LIST_LOOP_2):
7474         * lisp.h (EXTERNAL_LIST_LOOP_1):
7475         * lisp.h (EXTERNAL_LIST_LOOP_2):
7476         * lisp.h (EXTERNAL_LIST_LOOP_3):
7477         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7478         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7479         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7480         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7481         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7482         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7483         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7484         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7485         * lisp.h (struct Lisp_Symbol):
7486         * lisp.h (maybe_continuable_error_with_frob):
7487         Fix up section comments.
7488         Add new types for char to indicate usage.
7489         Delete symbols auto-generated from general-slots.h.
7490         Add prototypes for structured error functions.
7491         Add long comments describing looping macros and change interface
7492         so that lvalues are automatically declared.
7493         Add NO_DECLARE macro in case callers want to declare lvalues
7494         themselves.
7495
7496         * lread.c (read_syntax_error):
7497         * lread.c (continuable_read_syntax_error):
7498         * lread.c (read_structure):
7499         * lread.c (sequence_reader):
7500         * lread.c (read_list_conser):
7501         * lread.c (read_compiled_function):
7502         Rename syntax_error and continuable_syntax_error to avoid clash
7503         with same-named structured error functions.
7504
7505         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7506         * menubar-msw.c (populate_menu_add_item):
7507         * menubar-msw.c (populate_or_checksum_helper):
7508         [5].
7509         [9].
7510
7511         * menubar-x.c:
7512         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7513         Mule-ize whole file.
7514
7515         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7516
7517         * mule-charset.c (Fmake_charset):
7518         * mule-wnnfns.c (Fwnn_set_param):
7519         [1].
7520
7521         * ntproc.c (create_child):
7522         * ntproc.c (Fwin32_set_current_locale):
7523         Add comments portending doom.
7524
7525         * objects-msw.c:
7526         * objects-msw.c (old_font_enum_callback_2):
7527         * objects-msw.c (font_enum_callback_1):
7528         * objects-msw.c (mswindows_enumerate_fonts):
7529         [5].
7530
7531         * objects-x.c:
7532         * objects-x.c (allocate_nearest_color):
7533         * objects-x.c (x_parse_nearest_color):
7534         * objects-x.c (x_initialize_color_instance):
7535         * objects-x.c (x_print_color_instance):
7536         * objects-x.c (x_finalize_color_instance):
7537         * objects-x.c (x_valid_color_name_p):
7538         * objects-x.c (x_initialize_font_instance):
7539         * objects-x.c (x_print_font_instance):
7540         * objects-x.c (valid_x_font_name_p):
7541         * objects-x.c (truename_via_FONT_prop):
7542         * objects-x.c (truename_via_random_props):
7543         * objects-x.c (truename_via_XListFonts):
7544         * objects-x.c (x_font_truename):
7545         * objects-x.c (x_font_instance_truename):
7546         * objects-x.c (x_font_instance_properties):
7547         * objects-x.c (x_list_fonts):
7548         * objects-x.c (x_find_charset_font):
7549         Mule-ize entire file.
7550         [7].
7551
7552         * objects-x.h:
7553         Mule-verify.
7554
7555         * print.c:
7556         * print.c (std_handle_out_external):
7557         * print.c (debug_print_no_newline):
7558         * print.c (syms_of_print):
7559         Output to all debugger kinds in debug-print.
7560         Fix console-output code under MSWin to actually work.
7561
7562         * process-nt.c (send_signal):
7563         * process-nt.c (nt_create_process):
7564         Use newer Unicode macros.
7565
7566         * process-unix.c (unix_create_process):
7567         * process-unix.c (unix_canonicalize_host_name):
7568         * process-unix.c (unix_open_network_stream):
7569         [7].
7570
7571         * scrollbar-x.c:
7572         Mule-verify.
7573
7574         * search.c (syms_of_search):
7575         [2].
7576
7577         * select-msw.c (mswindows_destroy_selection):
7578         Use LIST_LOOP_2.
7579
7580         * select-x.c (symbol_to_x_atom):
7581         [7].
7582
7583         * select.c (syms_of_select):
7584         [2].
7585
7586         * sound.c (Fplay_sound_file):
7587         [7].
7588
7589         * specifier.c:
7590         * specifier.c (decode_specifier_type):
7591         * specifier.c (Fvalid_specifier_locale_type_p):
7592         * specifier.c (check_valid_locale_or_locale_type):
7593         * specifier.c (decode_locale):
7594         * specifier.c (decode_locale_type):
7595         * specifier.c (decode_locale_list):
7596         * specifier.c (check_valid_domain):
7597         * specifier.c (decode_specifier_tag_set):
7598         * specifier.c (Fcanonicalize_tag_set):
7599         * specifier.c (Fdefine_specifier_tag):
7600         * specifier.c (Fspecifier_tag_predicate):
7601         * specifier.c (check_valid_inst_list):
7602         * specifier.c (check_valid_spec_list):
7603         * specifier.c (decode_how_to_add_specification):
7604         * specifier.c (check_modifiable_specifier):
7605         * specifier.c (specifier_add_spec):
7606         * specifier.c (boolean_validate):
7607         * specifier.c (display_table_validate):
7608         [9].
7609
7610         * specifier.c (syms_of_specifier):
7611         Move some symbols to general-slots.h.
7612         [2].
7613
7614         * symbols.c:
7615         * symbols.c (Fmapatoms):
7616         * symbols.c (Fapropos_internal):
7617         Add GCPROs.
7618
7619         * symbols.c (set_default_buffer_slot_variable):
7620         * symbols.c (set_default_console_slot_variable):
7621         [1].
7622
7623         * symbols.c (defsymbol_massage_name_1):
7624         * symbols.c (defkeyword_massage_name):
7625         * symbols.c (deferror_1):
7626         * symbols.c (deferror):
7627         * symbols.c (deferror_massage_name_and_message):
7628         * symeval.h:
7629         * symeval.h (DEFSYMBOL):
7630         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7631
7632         * symbols.c (syms_of_symbols):
7633         [2].
7634
7635         * symsinit.h:
7636         * symsinit.h (init_win32): New.
7637         Also new is syms_of_dialog_mswindows.
7638
7639         * syswindows.h:
7640         Add new Unicode macros, missing Cygwin wide-char functions,
7641         convenience conversion macros for Qmswindows_tstr, macros for
7642         encapsulating required MSWin <-> Cygwin filename conversions,
7643         prototype for dynamically-extracted (not in NT 3.51) functions.
7644
7645         * toolbar-x.c:
7646         Mule-verify.
7647
7648         * tooltalk.c (Fadd_tooltalk_message_arg):
7649         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7650         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7651         [7].
7652
7653         * tooltalk.c (syms_of_tooltalk):
7654         [2].
7655
7656         * unexnt.c:
7657         * unexnt.c (unexec):
7658         Fix up headers, declaration of unexec() to be more standard.
7659
7660 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7661
7662         * offix.h: Revert change to guard macros - they're used in offix.c!
7663
7664 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7665
7666         * lisp.h: Defsubred Fdelete.
7667
7668         * console-msw.h:  (msprinter_default_printer): Added.
7669
7670         * console-msw.c (msprinter_canonicalize_console_connection):
7671         (msprinter_canonicalize_device_connection): Added.
7672
7673         * device-msw.c (msprinter_default_printer):
7674         (Fmswingows_get_default_printer):
7675         (signal_enum_priner_error):
7676         (Fmswingows_printer_list): Added.
7677
7678 2000-07-19  Martin Buchholz <martin@xemacs.org>
7679
7680         * XEmacs 21.2.35 is released.
7681
7682 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7683
7684         * select-x.c (x_handle_selection_request):
7685         Text selected in xemacs and pasted into xterm failed to appear.
7686         Spelling fixes and cosmetic changes.
7687
7688 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7689
7690         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7691         XEmacs frame (fix for doubling chars in dialog boxes).
7692
7693 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7694
7695         * select.c (select_convert_in, select_convert_out):
7696         Don't call intern() every time.
7697
7698         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7699         * select.c (vars_of_select): Initialise them.
7700
7701 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7702
7703         * select.c (selection-coercible-types): New.
7704
7705         * select.c (own-selection-internal):
7706         * select.c (get-selection-internal):
7707         MULE bug fix - these should default to COMPOUND_TEXT and not
7708         STRING for MULE. I think.
7709
7710         * select.c (select_convert_out): Use selection-coercible-types
7711         to find types that we can attempt to perform coercions on.
7712
7713 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7714
7715         * mule-wnnfns.c:
7716         * mule-canna.c:
7717         Add coding: cookie to identify encoding.
7718
7719         * mule-canna.c (CANNA_mode_keys): make static.
7720         Use proper prototypes, even for functions of no arguments.
7721         Remove external prototype for Fding().
7722
7723         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7724
7725         * select.c (syms_of_select): Add missing DEFSUBR.
7726
7727 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7728
7729         * select.c (get_selection_internal, own_selection_internal):
7730         Make the type default to STRING, rather than placing a nil type
7731         into Vselection_alist.
7732
7733 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7734
7735         * gpmevent.c (tty_selection_exists_p):
7736         * gpmevent.c (tty_own_selection):
7737         Updated parameter lists.
7738
7739 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7740
7741         * select.h (selection-alist): Removed declaration.
7742
7743         * select.h (get_local_selection):
7744         * select.c (get_local_selection):
7745         Made static.
7746
7747         * select.h (convert_selection): Removed declaration.
7748         * select.c (convert_selection): Removed.
7749         This function belongs in Lisp.
7750
7751         * select.h (select_convert_in): Declare.
7752         * select.h (select_convert_out): Declare.
7753         * select.c (select_convert_in): New.
7754         * select.c (select_convert_out): New.
7755         New conversion functions for other files to call.
7756
7757         * select.h (select_notify_buffer_kill): Declare.
7758         * select.c (select_notify_buffer_kill): New.
7759         New functions that get called from kill-buffer.
7760
7761         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7762         X-specific lisp code.
7763
7764         * select.h: Declare some of the lisp-visible functions for
7765         external use.
7766
7767         * select.c (clean_local_selection_data): Removed. This was
7768         a disgusting function, and previously should have been in
7769         select-x.c in any case. The functionality is now provided
7770         in select-convert-from-integer (select.el).
7771
7772         * select.c (available-selection-types): Fixed stupidity where
7773         INTEGER and ATOM got added twice. Also add STRING when we see an
7774         extent.
7775
7776         * select.c (get-selection-internal): Removed symbol stripping. No
7777         longer causes conversion when data comes from the internal cache.
7778
7779         * select.c (syms_of_select): Added new functions.
7780
7781         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7782         error checking - previously this called abort!
7783
7784         * select-x.c (x_own_selection): Changed comment.
7785
7786         * select-x.c (x_handle_selection_request): Use select_convert_out.
7787         Don't mess with selection-alist; it's an internal variable of select.c.
7788
7789         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7790
7791         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7792         rather than messing with selection-alist.
7793
7794         * select-msw.c (mswindows_get_foreign_selection):
7795         Use TO_INTERNAL_FORMAT rather than hacking.
7796
7797 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7798
7799         * process-unix.c (unix_open_multicast_group):
7800         (unix_open_multicast_group): Remove useless casts.
7801
7802 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7803
7804         * sound.c (Fplay_sound): Fix `unused variable' warning.
7805
7806         * emacs.c (main): Use correct type for _environ on SCO5.
7807
7808 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7809
7810         * console.h (own_selection_method):
7811         * console.h (selection_exists_p_method):
7812         * console.h (available_selection_types_method): New.
7813         * console.h (register_selection_data_type_method): New.
7814         * console.h (selection_data_type_name): New.
7815
7816         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7817         function & alist to track GlobalAlloc()'d handles that need
7818         releasing when the clipboard data gets replaced or emptied.
7819
7820         * event-msw.c (mswindows_wnd_proc): Call it.
7821
7822         * lisp.h, general.c (Qappend): New symbol representing a
7823         `how-to-add' mode.
7824
7825         * select.c (own-selection-internal):
7826         * select.c (selection-exists-p):
7827         * select.c (available-selection-types): New.
7828         * select.c (register-selection-data-type): New.
7829         * select.c (selection-data-type-name): New.  New functions to deal
7830         with device-specific selection data formats.
7831         * select.c (selection-converter-out-alist): Renamed.
7832         * select.c (selection-converter-in-alist): New.
7833         * select.c (selection-appender-alist): New.  Added new alists.
7834         * select.c (syms_of_select, vars_of_select): Added new symbols &
7835         variables.
7836         * select.c (get_local_selection): Split.
7837         * select.c: Removed spurious type checking - selections may now be
7838         of any type, not just strings.
7839         * select.c (own-selection-internal):
7840
7841         * select.h, select.c (convert_selection): New. Created
7842         convert_selection() function based on get_local_selection().
7843         * select.h, select.c (QCF_*): New symbols representing mswindows
7844         clipboard formats.
7845         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7846         symbols representing `how-to-add' modes.
7847
7848         * select-msw.c (x_sym_p): New.
7849         * select-msw.c (symbol_to_ms_cf): New.
7850         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7851         symbols & clipboard formats. Can also handle string names.
7852         * select-msw.c (mswindows_own_selection):
7853         * select-msw.c (mswindows_selection_exists_p):
7854         Added `data-type' parameter. Use it.
7855         * select-msw.c (mswindows_available_selection_types): New.
7856         * select-msw.c (mswindows_register_selection_data_type): New.
7857         * select-msw.c (mswindows_selection_data_type_name): New.
7858         * select-msw.c (mswindows_own_selection):
7859         * select-msw.c (mswindows_get_foreign_selection):
7860         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7861         * select-msw.c (console_create_select_mswindows): Added new methods.
7862         * select-msw.c (mswindows_destroy_selection): New.
7863         * select-msw.c (Vhandle_alist): New list.
7864         * select-msw.c (mswindows_own_selection):
7865
7866         * select-x.c (x_own_selection):
7867         * select-x.c (x_selection_exists_p):
7868         * select-x.c: Added some comments about maybe using new
7869         functionality.
7870         * select-x.c (x_own_selection):
7871
7872         * specifier.c: Remove definition of Qappend (now in general.c)
7873         * specifier.c (syms_of_specifier): Remove Qappend.
7874
7875 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7876
7877         * config.h.in: Add socklen_t.
7878
7879         * s/decosf4-0.h: No special compiler flags needed or desired.
7880         In particular, undefine _BSD for DEC OSF 4.0.
7881
7882 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7883
7884         * redisplay-msw.c (msprinter_frame_output_end): Added.
7885         (console_type_create_redisplay_mswindows): Referred the above.
7886
7887         * frame.c (setup_frame_without_minibuffer): Do not create a
7888         default minibuffer frame on a printer device.
7889
7890         * frame-msw.c (apply_dc_geometry): Added.
7891         (msprinter_start_page):
7892         (msprinter_init_frame_3):
7893         (msprinter_eject_page): Use it.
7894
7895         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7896         and removed residual duplex and orientation properties.
7897
7898 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7899
7900         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7901
7902         * unexalpha.c: Remove system prototypes from C sources!
7903
7904 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7905
7906         * eval.c: Remove references to M-x edit-options in DEFUNs for
7907         `defvar' and `defconst'.
7908
7909 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7910
7911         * config.h.in: Remove SMART_INCLUDE hackery.
7912
7913         PostgreSQL hacking:
7914         * config.h.in: Don't use SMART_INCLUDE.
7915
7916         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7917         * inline.c: Simply #include "postgresql.h"
7918         * postgresql.c:
7919         - Don't use SMART_INCLUDE
7920         - Use simply "const".
7921         - Use standard doc string conventions.
7922         - Use correct type for result of PQstatus.
7923
7924 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7925
7926         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7927
7928         C++ compilation changes.
7929         * config.h.in (EXTERN_C): Define.
7930         * config.h.in (not): This is also a C++ keyword.
7931         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7932         * cm.c: Use EXTERN_C.
7933         * redisplay-tty.c: Use EXTERN_C.
7934         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7935
7936 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7937
7938         * general.c: Remove duplicate definition for Qfunction.
7939
7940 2000-07-08  Ben Wing  <ben@xemacs.org>
7941
7942         * device-msw.c (msprinter_init_device):
7943         * device-msw.c (sync_printer_with_devmode):
7944         * device-msw.c (handle_devmode_changes):
7945         * device-msw.c (print_dialog_worker):
7946         * device-msw.c (Fmsprinter_apply_settings):
7947         * device-msw.c (hash_devmode):
7948         * device-msw.c (Fmsprinter_settings_despecialize):
7949         use Qmswindows_tstr, not Qctext.
7950
7951         * vm-limit.c (check_memory_limits):
7952         avoid infinite loop printing warning messages.
7953
7954 2000-07-05  Craig Lanning  <lanning@scra.org>
7955
7956         * Makefile.in.in: Add support for including the Windows resources
7957         when building with the cygwin and mingw targets.
7958
7959         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7960         not set or not correct.
7961         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7962         (init_initial_directory): Don't try to use $PWD on the
7963         WIN32_NATIVE target.
7964
7965         * s\cygwin32.h:
7966         [[Add -mwindows to eliminate console window.]] not required --ben
7967         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7968         (MAIL_USE_POP): removed; now handled by configure.
7969
7970         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7971         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7972         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7973         (MAIL_USE_POP): removed; now handled by configure.
7974         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7975         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7976         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7977         constant string.
7978         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7979         up from <winsock.h> via systime.h.
7980         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7981         (getpagesize): from Dan Holmsand, added.
7982         Added #endif which was left dangling by Ben's mega patch; added
7983         comment to help prevent this in the future.
7984
7985         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7986
7987 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7988
7989         * console-msw.h (struct mswindows_device): Removed unnecessary
7990         cached device geometry values.
7991         Added update_tick and an accessor macro.
7992         (Lisp_Devmode): Added lrecord declaration.
7993         (struct msprinter_device): Contain devmode as a Lisp object.
7994         Added mswindows_get_selected_frame_hwnd();
7995
7996         * console.h (struct console_methods): Indentation nitpicking.
7997
7998         * device-msw.c (mswindows_init_device): Do not initialize geometry
7999         cache. Initialize update tick.
8000         (mswindows_device_system_metrics): Ask the device for its geometry.
8001         (global_free_2_maybe):
8002         (devmode_to_hglobal):
8003         (handle_printer_changes):
8004         (ensure_not_printing):
8005         (print_dialog_worker):
8006         (Fmsprinter_print_setup_dialog):
8007         (Fmsprinter_print_dialog):
8008         (plist_get_margin):
8009         (plist_set_margin):
8010         (Fmsprinter_page_setup_dialog): Added functions.
8011         (sync_printer_with_devmode):
8012         (handle_devmode_changes):
8013         (Fmsprinter_get_settings):
8014         (Fmsprinter_select_settings):
8015         (Fmsprinter_apply_settings):
8016         (allocate_devmode):
8017         (Fmsprinter_settings_copy):
8018         (Fmsprinter_settings_despecialize):
8019         (print_devmode):
8020         (finalize_devmode):
8021         (equal_devmode):
8022         (hash_devmode): Added functions
8023         (syms_of_device_mswindows): Init devmode lrecord class.
8024
8025         * device.h: Added an exfun for find-device.
8026
8027         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8028         geometry; although, recreate the device compatible DC.
8029
8030         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8031         (msprinter_init_frame_3):
8032         (msprinter_frame_property):
8033         (msprinter_internal_frame_property_p):
8034         (msprinter_frame_properties):
8035         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8036         print job properties (will move to device settings).
8037
8038         * lisp.h: Added symbols.
8039
8040         * general.c (syms_of_general): Declared them.
8041
8042         * hash.c (string_hash): Added.
8043
8044         * lrecord.h (lrecord_type): Added devmode lrecord type.
8045
8046 2000-07-02  Mike Sperber <mike@xemacs.org>
8047
8048         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8049         FreeBSD 4.0.
8050
8051 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8052
8053         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8054         integer.
8055
8056 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8057
8058         * data.c (Fstring_to_number): Don't recognize floating point if
8059         base is not 10.
8060
8061 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8062
8063         * glyphs-widget.c (tab_control_query_geometry):
8064         (widget_query_geometry):
8065         (button_query_geometry):
8066         * glyphs.c (text_query_geometry):
8067         Enforce type correctness.
8068
8069 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8070
8071         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8072         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8073
8074 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8075
8076         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8077         conflicts with gcc's fixincluded version of FOO.h.
8078
8079         * glyphs.h (image_instance_geometry): Remove trailing `,'
8080
8081 2000-06-08  Mike Alexander  <mta@arbortext.com>
8082
8083         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8084         (shove_thread): Don't write the same output twice
8085         (make_ntpipe_output_stream): Increase priority of shove thread
8086         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8087         chance to run
8088         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8089         it.
8090
8091 2000-06-12  Ben Wing  <ben@xemacs.org>
8092
8093         * s\mingw32.h (sigset):
8094         * s\windowsnt.h (sigset):
8095         rename msw_ to mswindows_ for consistency with general convention.
8096
8097 2000-06-12  Ben Wing  <ben@xemacs.org>
8098
8099         * console-msw.c:
8100         * console-msw.c (mswindows_get_console_hwnd):
8101         * console-msw.c (mswindows_ensure_console_allocated):
8102         * console-msw.c (mswindows_hide_console):
8103         * console-msw.c (mswindows_show_console):
8104         * console-msw.c (mswindows_ensure_console_buffered):
8105         * console-msw.c (mswindows_output_console_string):
8106         * console-msw.c (mswindows_windows9x_p):
8107         * console-msw.h:
8108         * device-msw.c (mswindows_get_workspace_coords):
8109         * device-msw.c (mswindows_device_system_metrics):
8110         * dialog-msw.c (mswindows_popup_dialog_box):
8111         * event-msw.c (mswindows_wnd_proc):
8112         * frame-msw.c (mswindows_size_frame_internal):
8113         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8114         * menubar-msw.c (displayable_menu_item):
8115         * menubar-msw.c (mswindows_char_is_accelerator):
8116         * nt.c:
8117         * nt.c (mswindows_sigset):
8118         * nt.c (mswindows_sigrelse):
8119         * nt.c (mswindows_sigpause):
8120         * nt.c (mswindows_raise):
8121         * nt.c (timer_proc):
8122         * ntproc.c:
8123         * ntproc.c (find_child_console):
8124         * ntproc.c (sys_kill):
8125         * print.c:
8126         * print.c (std_handle_out_external):
8127         * process-nt.c (find_child_console):
8128         * process-nt.c (send_signal_the_95_way):
8129         * process-nt.c (ensure_console_window_exists):
8130         * process-nt.c (nt_create_process):
8131         * syssignal.h:
8132         rename msw_ to mswindows_ for consistency with general convention.
8133
8134         * emacs.c:
8135         * dumper.c:
8136         include nt.h, not syswindows.h.
8137
8138         * nt.c (mswindows_fstat):
8139         * nt.c (mswindows_stat):
8140         prefix mswindows_ instead of attempting to directly override the
8141         library functions.  fix declarations.
8142
8143         * nt.h:
8144         include syswindows.h.  move some sysdep.h stuff here.
8145
8146         * ntheap.h:
8147         include syswindows.h, not <windows.h>.
8148
8149         * ntplay.c:
8150         clean up headers.
8151
8152         * sysdep.c:
8153         clean up headers.
8154
8155         * sysdep.c (sys_fstat):
8156         * sysdep.c (sys_stat):
8157         call mswindows versions when appropriate.
8158
8159         * sysdep.h:
8160         move mswin decls to nt.h.
8161
8162         * syswindows.h:
8163         add long comment describing appropriate use of the various windows
8164         headers.
8165
8166 2000-06-11  Ben Wing  <ben@xemacs.org>
8167
8168         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8169
8170 2000-06-10  Ben Wing  <ben@xemacs.org>
8171
8172         * Makefile.in.in (release):
8173         Correction to make sure xemacs.exe always dumped when correct.
8174
8175         * alloca.c:
8176         * balloon_help.c:
8177         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8178
8179         * buffer.c (set_buffer_internal):
8180         [[[[2]]]]: Remove HAVE_FEP code.
8181
8182         * buffer.c (init_initial_directory):
8183         [3].
8184
8185         * bytecode.c:
8186         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8187         individual files.
8188
8189         * callproc.c:
8190         * callproc.c (call_process_cleanup):
8191         * callproc.c (Fold_call_process_internal):
8192         * callproc.c (child_setup):
8193         * callproc.c (getenv_internal):
8194         * callproc.c (init_callproc):
8195         * callproc.c (vars_of_callproc):
8196         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8197         __CYGWIN32__ -> CYGWIN.
8198         DOS_NT -> WIN32_NATIVE.
8199         Remove MSDOS support/references, converting to WIN32_NATIVE
8200           where correct.
8201         __MINGW32__ -> MINGW.
8202         Fix windows.h includes.
8203         Remove bogus HAVE_NTGUI.
8204
8205         * config.h.in:
8206         [2].
8207
8208         * console-msw.c:
8209         mswindows_message_outputted added for use in allowing startup
8210         errors on the console to be seen.
8211
8212         * console-msw.c (msw_ensure_console_allocated):
8213         * console-msw.c (msw_output_console_string):
8214         * console-msw.c (DHEADER):
8215         * console-msw.c (DOPAQUE_DATA):
8216         * console-msw.c (DEVENT):
8217         * console-msw.c (DCONS):
8218         * console-msw.c (DCONSCDR):
8219         * console-msw.c (DSTRING):
8220         * console-msw.c (DVECTOR):
8221         * console-msw.c (DSYMBOL):
8222         * console-msw.c (DSYMNAME):
8223         Fix warnings.
8224
8225         * console-stream.c (stream_init_console):
8226         Fix text/binary problems.
8227
8228         * device-msw.c:
8229         * device-msw.c (mswindows_finish_init_device):
8230         * device-msw.c (mswindows_delete_device):
8231         [1].
8232
8233         * device.c (handle_asynch_device_change):
8234         [3].
8235
8236         * dgif_lib.c:
8237         * dgif_lib.c (DGifOpenFileName):
8238         * dgif_lib.c (DGifOpenFileHandle):
8239         * dgif_lib.c (DGifGetLine):
8240         * dgif_lib.c (DGifGetPixel):
8241         Added config.h/lisp.h, fix up includes.
8242         [1].
8243
8244         * dired-msw.c:
8245         [4].
8246
8247         * dired.c:
8248         * dired.c (file_name_completion):
8249         * dired.c (Ffile_attributes):
8250         * dired.c (syms_of_dired):
8251         [1].
8252
8253         * dumper.c:
8254         * dumper.c (pdump_file_unmap):
8255         * dumper.c (pdump_load):
8256         [1].
8257
8258         * editfns.c:
8259         * editfns.c (Ftemp_directory):
8260         * editfns.c (user_login_name):
8261         * editfns.c (Fuser_real_login_name):
8262         * editfns.c (get_home_directory):
8263         [1].
8264
8265         * elhash.c (finish_marking_weak_hash_tables):
8266         [[[[5]]]]: Fix GCC warnings.
8267
8268         * emacs.c:
8269         * emacs.c (mswindows_handle_hardware_exceptions):
8270         * emacs.c (make_arg_list_1):
8271         * emacs.c (main_1):
8272         * emacs.c (Fkill_emacs):
8273         * emacs.c (Fdump_emacs):
8274         [1].
8275         Fix problems with nested crashes, add long comment.
8276
8277         * event-Xt.c (init_event_Xt_late):
8278         [1].
8279
8280         * event-msw.c:
8281         * event-msw.c (mswindows_dde_callback):
8282         * event-msw.c (mswindows_handle_sticky_modifiers):
8283         * event-msw.c (mswindows_wnd_proc):
8284         [1].
8285         [5].
8286
8287         * events.c (character_to_event):
8288         [1].
8289
8290         * fileio.c:
8291         * fileio.c (Ffile_name_directory):
8292         * fileio.c (Ffile_name_nondirectory):
8293         * fileio.c (directory_file_name):
8294         * fileio.c (Fexpand_file_name):
8295         * fileio.c (Fsubstitute_in_file_name):
8296         * fileio.c (Ffile_name_absolute_p):
8297         * fileio.c (check_executable):
8298         * fileio.c (Ffile_readable_p):
8299         * fileio.c (Ffile_accessible_directory_p):
8300         * fileio.c (Ffile_modes):
8301         * fileio.c (Funix_sync):
8302         * fileio.c (vars_of_fileio):
8303         [1]. [4].
8304
8305         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8306
8307         Expand getdefdir defn.
8308         Fix bogus rename() comment.
8309
8310         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8311         to use standard XEmacs include files, e.g. sysfile.h, rather
8312         than system-specific includes.
8313
8314         * fns.c:
8315         * fns.c (Fsubseq):
8316         [5]. [6].
8317
8318         * frame.c (vars_of_frame):
8319         [1].
8320
8321         * getloadavg.c:
8322         * getloadavg.c (getloadavg):
8323         [1]. [6].
8324         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8325         (We don't use it elsewhere in the code; just add a comment.)
8326
8327         * gif_io.c:
8328         [6].
8329         Add config.h.
8330
8331         * glyphs-msw.c:
8332         * glyphs-msw.c (mswindows_resource_instantiate):
8333         [1].
8334
8335         * glyphs-x.c (x_native_layout_instantiate):
8336         [5].
8337
8338         * gui-msw.c (Fmswindows_shell_execute):
8339         [1].
8340
8341         * insdel.c:
8342         [4].
8343
8344         * lisp.h:
8345         [4]. [5].
8346
8347         * lread.c (locate_file_in_directory_mapper):
8348         [1].
8349
8350         * lstream.c:
8351         [4].
8352
8353         * mem-limits.h:
8354         * mem-limits.h (get_lim_data):
8355         [1].
8356
8357         * menubar-msw.c:
8358         [4].
8359
8360         * ndir.h:
8361         [1].
8362
8363         * nt.c:
8364         * nt.c (getwd):
8365         * nt.c (closedir):
8366         * nt.c (rva_to_section):
8367         * nt.c (mswindows_executable_type):
8368         [1]. [6].
8369         Fix closedir() defn.
8370
8371         * nt.h:
8372         [[[[8]]]]: *_OK defs moved to sysfile.h.
8373
8374         * ntproc.c:
8375         [6]. [7].
8376
8377         * objects-x.c:
8378         [4].
8379
8380         * print.c:
8381         * print.c (std_handle_out_external):
8382         [1]. [4].
8383
8384         * process-nt.c:
8385         * process-nt.c (nt_create_process):
8386         [6].
8387         try to fix process quoting somewhat.
8388
8389         * process-unix.c (unix_create_process):
8390         [1].
8391
8392         * process.c:
8393         * process.c (vars_of_process):
8394         Add Vnull_device.
8395
8396         * process.h:
8397         [1].
8398
8399         * realpath.c:
8400         * realpath.c (xrealpath):
8401         [1].
8402
8403         * redisplay-tty.c (init_tty_for_redisplay):
8404         [3].
8405
8406         * redisplay.c:
8407         [4]. [6].
8408
8409         * scrollbar-msw.c:
8410         [4].
8411
8412         * sheap.c:
8413         * sheap.c (more_static_core):
8414         * sheap.c (report_sheap_usage):
8415         [5]. [6].
8416
8417         * signal.c:
8418         * signal.c (alarm_signal):
8419         [1]. [6].
8420
8421         * sound.c:
8422         [6].
8423
8424         * strftime.c:
8425         * strftime.c (zone_name):
8426         [1]. [5].
8427
8428         * symsinit.h (init_sunpro):
8429         [1].
8430
8431         * syscommctrl.h:
8432         commctrl.h not in Cygwin b20.1.
8433
8434         * sysdep.c:
8435         * sysdep.c (endif):
8436         * sysdep.c (sys_subshell):
8437         * sysdep.c (init_baud_rate):
8438         * sysdep.c (emacs_get_tty):
8439         * sysdep.c (emacs_set_tty):
8440         * sysdep.c (tty_init_sys_modes_on_device):
8441         * sysdep.c (init_system_name):
8442         * sysdep.c (sys_open):
8443         * sysdep.c (interruptible_open):
8444         * sysdep.c (sys_fopen):
8445         * sysdep.c (sys_mkdir):
8446         * sysdep.c (sys_rename):
8447         * sysdep.c (get_process_times_1):
8448         [1]. [6].
8449
8450         * sysdep.h:
8451         [1].
8452
8453         * sysdir.h:
8454         * sysdir.h (DIRENTRY_NONEMPTY):
8455         [1]. [6].
8456
8457         * sysdll.c (dll_init):
8458         * sysdll.h:
8459         [1].
8460
8461         * sysfile.h:
8462         [1]. [6]. [8].
8463         added text/binary defs.
8464
8465         * sysfloat.h:
8466         [1].
8467
8468         * sysproc.h:
8469         * sysproc.h (EDESTADDRREQ):
8470         * sysproc.h (poll_fds_for_input):
8471         [1]. [6].
8472
8473         * syspwd.h:
8474         [6].
8475
8476         * syssignal.h:
8477         [1].
8478
8479         * systime.h:
8480         [1]. [6].
8481
8482         * systty.h:
8483         [1].
8484
8485         * syswindows.h:
8486         [1].
8487         Always define WIN32_LEAN_AND_MEAN.
8488
8489         * unexcw.c (unexec):
8490         [5].
8491
8492         * unexec.c:
8493         * unexec.c (copy_text_and_data):
8494         * unexec.c (adjust_lnnoptrs):
8495         [1].
8496
8497         * unexnt.c:
8498         * unexnt.c (_start):
8499         [1].
8500
8501 2000-06-07  Ben Wing  <ben@xemacs.org>
8502
8503         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8504         was used only as a model.  We've long since extracted any useful
8505         logic or code out of this. (I just did an exhaustive search.)
8506
8507         * s\msdos.h: Removed.
8508
8509         * s\windows95.h: Removed.
8510
8511 2000-06-10  Ben Wing  <ben@xemacs.org>
8512
8513         * s\cygwin32.h:
8514         [1]. [5].
8515         Don't use extern with fun defs.
8516
8517         * s\mingw32.h:
8518         [1]. [7].
8519         Remove nt\inc include.
8520         Remove getdisk, getdefdir. (The former is unused, the latter
8521         expanded in fileio.h.)
8522
8523         * s\windowsnt.h:
8524         * s\windowsnt.h (WIN32_NATIVE):
8525         * s\windowsnt.h (HAVE_STRCASECMP):
8526         [1]. [7].
8527         Add long comment about preprocessor changes.
8528         Remove getdisk, getdefdir. (The former is unused, the latter
8529         expanded in fileio.h.)
8530
8531 2000-06-10  Ben Wing  <ben@xemacs.org>
8532
8533         * m\arm.h:
8534         * m\delta.h:
8535         * m\intel386.h:
8536         * m\sequent.h:
8537         * m\template.h:
8538         * m\windowsnt.h:
8539         [1].
8540         Remove bogus/unused NO_SOCK_SIGIO.
8541
8542 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8543
8544         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8545         not an Emchar.
8546
8547 2000-06-04  Mike Sperber <mike@xemacs.org>
8548
8549         * casetab.c (set_case_table): For `set-standard-case-table',
8550         actually deposit the new case tables where the rest of XEmacs can
8551         see them.
8552
8553 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8554
8555         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8556
8557 2000-06-05  Ben Wing  <ben@xemacs.org>
8558
8559         * callproc.c (child_setup): Don't do close_load_descs() under
8560         MS Windows.  Put in a comment explaining why.
8561
8562 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8563
8564         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8565         Toolkit shell" which breaks `kill-compilation' on Windows NT
8566         native, retaining STDERR handling improvements.
8567
8568 2000-06-01  Andreas Jaeger  <aj@suse.de>
8569
8570         * s/s390.h: Support for S390, based on a patch by Martin
8571         Schwidefsky <schwidefsky@de.ibm.com>.
8572
8573 2000-05-30  Andy Piper  <andy@xemacs.org>
8574
8575         * window.c (allocate_window):
8576         (make_dummy_parent):
8577         (Fset_window_configuration): use new hashtable type.
8578
8579         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8580         (struct image_instantiator_methods):
8581         (struct Lisp_Image_Instance): make instance geometry signed.
8582
8583         * glyphs.c (instantiate_image_instantiator):
8584         (image_instance_query_geometry):
8585         (image_instance_layout):
8586         (image_instance_layout):
8587         (query_string_geometry):
8588         (text_query_geometry):
8589         (image_instantiate):
8590         (image_instantiate):
8591         (cache_subwindow_instance_in_frame_maybe):
8592         (subwindow_query_geometry): make instance geometry signed.
8593
8594         * glyphs-widget.c (widget_query_geometry):
8595         (widget_layout):
8596         (button_query_geometry):
8597         (tree_view_query_geometry):
8598         (tab_control_query_geometry):
8599         (layout_query_geometry):
8600         (layout_layout):
8601         (native_layout_layout): make instance geometry signed.
8602
8603 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8604
8605         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8606         constant.
8607
8608         * general.c (syms_of_general): Add Qfull_assoc symbol.
8609
8610         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8611         correctly.
8612         (decode_weak_list_type): Decode full-assoc type.
8613         (encode_weak_list_type): Encode full-assoc type.
8614         (Fmake_weak_list): Update doc string.
8615
8616 2000-05-30  Andy Piper  <andy@xemacs.org>
8617
8618         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8619
8620         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8621         (decode_hash_table_weakness): ditto.
8622         (Fhash_table_weakness): ditto.
8623         (Fhash_table_type): ditto.
8624         (finish_marking_weak_hash_tables): ditto.
8625         (hash_table_weakness_validate): ditto.
8626         (syms_of_elhash): ditto.
8627
8628 2000-05-28  Martin Buchholz <martin@xemacs.org>
8629
8630         * XEmacs 21.2.34 is released.
8631
8632 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8633
8634         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8635         start cache.
8636         (updating_line_start_cache): Gone.
8637         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8638         generic code to force a minimum of 1 line laid out in the
8639         CMOTION_DISP case.
8640
8641 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8642
8643         * glyphs.c (instantiate_image_instantiator): Check for initialized
8644         height & width no longer special cases IMAGE_NOTHING.
8645         (nothing_instantiate): Set height and width of instance.
8646
8647 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8648
8649         * unexelf.c (unexec): Search for ".data" section.
8650         Initialize new_data2_offset from old_data_index.
8651         Remove redundant check for ElfW.
8652
8653 2000-05-23  Andy Piper  <andy@xemacs.org>
8654
8655         * glyphs.c (get_image_instantiator_governing_domain): allow more
8656         specific domains as the governing domain rather than expecting an
8657         exact match. This fixes problems with layouts.
8658
8659 2000-05-22  Andy Piper  <andy@xemacs.org>
8660
8661         * redisplay-output.c (compare_runes): check for non-images
8662
8663         * glyphs.c (set_glyph_dirty_p): ditto.
8664         (update_glyph_cachel_data): ditto.
8665
8666         * glyphs-widget.c (layout_post_instantiate): ditto.
8667         (layout_post_instantiate): ditto.
8668
8669         * event-msw.c (mswindows_wnd_proc): warning removal.
8670
8671 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8672
8673         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8674
8675         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8676
8677         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8678
8679         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8680         (mswindows_executable_type): mingw32 now has enough headers for
8681         this to work.
8682
8683 2000-05-20  Andy Piper  <andy@xemacs.org>
8684
8685         * console-msw.c (mswindows_output_last_error): ; -> ,
8686
8687 2000-05-12  Andy Piper  <andy@xemacs.org>
8688
8689         * console-msw.c (FROB): compare ints with ints.
8690
8691 2000-05-11  Andy Piper  <andy@xemacs.org>
8692
8693         * glyphs-x.c (x_finalize_image_instance): make minimal build
8694         happy.
8695
8696 2000-05-20  Ben Wing  <ben@xemacs.org>
8697
8698         * event-Xt.c:
8699         * event-Xt.c (vars_of_event_Xt):
8700         move modifier-keys-are-sticky to event-stream.c.
8701
8702         * event-msw.c:
8703         * event-msw.c (mswindows_enqueue_mouse_button_event):
8704         * event-msw.c (key_needs_default_processing_p):
8705         * event-msw.c (XEMSW_LCONTROL):
8706         * event-msw.c (mswindows_handle_sticky_modifiers):
8707         * event-msw.c (FROB):
8708         * event-msw.c (clear_sticky_modifiers):
8709         * event-msw.c (output_modifier_keyboard_state):
8710         * event-msw.c (output_alt_keyboard_state):
8711         * event-msw.c (mswindows_wnd_proc):
8712         * event-msw.c (mswindows_modifier_state):
8713         * event-msw.c (emacs_mswindows_handle_magic_event):
8714         implement sticky modifiers.
8715
8716         * event-stream.c:
8717         * event-stream.c (vars_of_event_stream):
8718         move modifier-keys-are-sticky here.
8719
8720         * lisp.h:
8721         add CHECK_FUNCTION.
8722
8723         * rangetab.c:
8724         implement map-range-table.
8725
8726
8727 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8728
8729         * redisplay-tty.c (reset_tty_modes):
8730         (tty_redisplay_shutdown): Adjust argument type to
8731         tty_frame_output_end.
8732
8733 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8734
8735         * eval.c (Fbacktrace): Don't output a line with only right
8736         parenthesis.
8737
8738 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8739
8740         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8741         (Fpq_reset_poll): Ditto.
8742
8743 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8744
8745         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8746
8747 2000-05-16  Ben Wing  <ben@xemacs.org>
8748
8749         * buffer.c:
8750         * buffer.c (dfc_convert_to/from_internal_format):
8751         * buffer.c (reinit_vars_of_buffer):
8752         Fix conversion functions to allow reentrancy.
8753
8754         * console-msw.c:
8755         * console-msw.c (mswindows_output_last_error):
8756         New fun, generally useful -- output a human-readable
8757         version of GetLastError() on the console.
8758
8759         * console-msw.h:
8760         * console-msw.h (struct mswindows_frame):
8761         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8762
8763         * console-stream.c (stream_output_begin):
8764         * console-stream.c (stream_output_end):
8765         * console-stream.c (stream_output_vertical_divider):
8766         * console-stream.c (stream_clear_region):
8767         * console-stream.c (stream_flash):
8768         * console-stream.c (console_type_create_stream):
8769         Delete blank stream methods, not needed.
8770
8771         * console.h (struct console_methods):
8772         Split begin/end methods into window and frame.
8773
8774         * event-msw.c:
8775         * event-msw.c (mswindows_handle_paint):
8776         * event-msw.c (output_alt_keyboard_state):
8777         * event-msw.c (mswindows_wnd_proc):
8778         * event-msw.c (vars_of_event_mswindows):
8779         Comment about problems with ignored-expose.
8780         Define mswindows-debug-events; not really implemented.
8781
8782         * frame-msw.c (mswindows_init_frame_1):
8783         random cleanups.
8784
8785         * glyphs-msw.c:
8786         * glyphs-msw.c (begin_defer_window_pos):
8787         * glyphs-msw.c (mswindows_unmap_subwindow):
8788         * glyphs-msw.c (mswindows_map_subwindow):
8789         * glyphs-msw.c (mswindows_resize_subwindow):
8790         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8791
8792         * glyphs.c (make_image_instance_1):
8793         Fix crash.
8794
8795         * gutter.c (Fredisplay_gutter_area):
8796         Use new begin/end methods.
8797
8798         * lisp.h (Dynarr_new2):
8799         New creation fun.
8800
8801         * redisplay-msw.c:
8802         * redisplay-msw.c (mswindows_frame_output_begin):
8803         * redisplay-msw.c (mswindows_frame_output_end):
8804         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8805         New begin/end methods -- handle DeferWindowPos.
8806
8807         * redisplay-output.c (redisplay_move_cursor):
8808         * redisplay-output.c (redraw_cursor_in_window):
8809         * redisplay-output.c (redisplay_update_line):
8810         * redisplay-output.c (redisplay_output_window):
8811         New begin/end methods.
8812
8813         * redisplay-tty.c:
8814         * redisplay-tty.c (tty_frame_output_begin):
8815         * redisplay-tty.c (tty_frame_output_end):
8816         * redisplay-tty.c (console_type_create_redisplay_tty):
8817         New begin/end methods.
8818
8819         * redisplay-x.c:
8820         * redisplay-x.c (x_window_output_begin):
8821         * redisplay-x.c (x_window_output_end):
8822         * redisplay-x.c (console_type_create_redisplay_x):
8823         New begin/end methods.
8824
8825         * redisplay.c (redisplay_frame):
8826         * redisplay.c (Fredisplay_echo_area):
8827         New begin/end methods.
8828         use MAYBE_DEVMETH for clear_frame; it may not exist.
8829
8830         * window.h (WINDOW_XFRAME):
8831         WINDOW_XFOO macros -- get locale and decode struct pointer.
8832
8833
8834 2000-05-12  Ben Wing  <ben@xemacs.org>
8835
8836         * emacs.c:
8837         * emacs.c (ensure_no_quitting_from_now_on):
8838         * emacs.c (fatal_error_signal):
8839         * emacs.c (mswindows_handle_hardware_exceptions):
8840         * emacs.c (main):
8841         * emacs.c (Fkill_emacs):
8842         * emacs.c (shut_down_emacs):
8843         * emacs.c (assert_failed):
8844         various improvements in fatal error handling.
8845
8846         * eval.c:
8847         move preparing_for_armageddon to emacs.c.
8848
8849         * lisp.h:
8850         declare fatal_error_in_progress.
8851
8852         * print.c:
8853         * print.c (std_handle_out_external):
8854         * print.c (std_handle_out_va):
8855         * print.c (stderr_out):
8856         * print.c (stdout_out):
8857         use console under mswin when no standard output.
8858         don't do code conversion during fatal error.
8859
8860         * scrollbar.c (Fscrollbar_page_up):
8861         * scrollbar.c (Fscrollbar_page_down):
8862         fix missing else.  reindent.
8863
8864 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8865
8866         Emergency fix.
8867
8868         * glyphs.h (GLYPH_CACHEL_DESCENT):
8869         (GLYPH_CACHEL_DESCENT):
8870         (GLYPH_CACHEL_DESCENT):
8871         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8872         used in case these are inline functions.
8873         Use more absurd values to error check.
8874
8875         include window.h for error check functions.
8876
8877 2000-05-11  Ben Wing  <ben@xemacs.org>
8878
8879         * cmdloop.c (Freally_early_error_handler):
8880         Display message box under windows; otherwise, message will disappear
8881         before it can be viewed.
8882
8883         * console-msw.c:
8884         * console-msw.c (Fmswindows_message_box):
8885         * console-msw.c (FROB):
8886         * console-msw.c (syms_of_console_mswindows):
8887         Define new fun `mswindows-message-box'.
8888         #### I will merge this into `popup-dialog-box'; just give me
8889         a bit of time.
8890
8891         * general.c:
8892         * general.c (syms_of_general):
8893         Some new symbols used in `mswindows-message-box'.
8894
8895         * glyphs.c:
8896         * glyphs.c (Fset_image_instance_property):
8897         put warning in this fun.
8898
8899         * glyphs.h:
8900         * glyphs.h (GLYPH_CACHEL_WIDTH):
8901         * glyphs.h (GLYPH_CACHEL_ASCENT):
8902         * glyphs.h (GLYPH_CACHEL):
8903         * glyphs.h (GLYPH_CACHEL_GLYPH):
8904         define error-checking versions to try to catch a bug i've seen --
8905         redisplay gets in an infinite loop because the glyph width of the
8906         continuation glyph is 65535.
8907
8908         * lisp.h:
8909         Extern message-box stuff.
8910
8911         * window.c (allocate_window):
8912         * window.c (make_dummy_parent):
8913         * window.c (Fset_window_configuration):
8914         Use EQUAL not EQ for subwindow caches to make them work a bit
8915         better. (Something is still very broken.)
8916
8917
8918 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8919
8920         * glyphs.c (image_instantiate): Suppress gcc warnings.
8921         (Fmake_image_instance): Fix doc string.
8922         * specifier.c (Fmake_specifier): Ditto.
8923
8924 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8925
8926         * paths.h.in (PATH_LOCK): Removed.
8927         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8928         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8929
8930 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8931
8932         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8933         Document (featurep '(and xemacs 21.02)).
8934
8935 2000-05-09  Ben Wing  <ben@xemacs.org>
8936
8937         * buffer.c (complex_vars_of_buffer):
8938         update modeline-format doc.
8939
8940         * device.h:
8941         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8942
8943         * emacs.c:
8944         timeline of all released versions of Emacs, for use in creating
8945         authorship comments and in synching up.
8946
8947         * glyphs-widget.c (image_instantiator_buttons):
8948         * glyphs-widget.c (image_instantiator_edit_fields):
8949         * glyphs-widget.c (image_instantiator_combo_box):
8950         * glyphs-widget.c (image_instantiator_scrollbar):
8951         * glyphs-widget.c (image_instantiator_progress_guage):
8952         * glyphs-widget.c (image_instantiator_tree_view):
8953         * glyphs-widget.c (image_instantiator_tab_control):
8954         * glyphs-widget.c (image_instantiator_labels):
8955         * glyphs-widget.c (image_instantiator_layout):
8956         * glyphs-widget.c (image_instantiator_native_layout):
8957         rename decode_domain method to governing_domain.
8958
8959         * glyphs.c:
8960         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8961         * glyphs.c (add_entry_to_device_ii_format_list):
8962         make sure we don't put an entry more than once into the list.
8963         * glyphs.c (check_instance_cache_mapper):
8964         *************************************************************
8965         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8966         HAVE BEEN GETTING.
8967         *************************************************************
8968         * glyphs.c (get_image_instantiator_governing_domain):
8969         clean up, expand on new concept of governing domain.
8970         * glyphs.c (instantiate_image_instantiator):
8971         * glyphs.c (allocate_image_instance):
8972         use governing_domain instead of cache_domain in naming.
8973         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8974         * glyphs.c (make_image_instance_1):
8975         * glyphs.c (Fmake_image_instance):
8976         allow for any domain (not just device), and process the
8977         governing domain correctly.  very big doc fix.
8978         * glyphs.c (Fimage_instance_domain):
8979         new primitive, to retrieve the governing domain of an image instance.
8980         * glyphs.c (image_instantiate):
8981         use new governing_domain stuff.  this fixes a crash you could get
8982         by instantiating certain widget glyphs in frame locales. (should
8983         signal an error instead of crashing.)
8984         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8985         * glyphs.c (Fglyphp): clean up doc.
8986         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8987         * glyphs.c (syms_of_glyphs):
8988         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8989         * glyphs.c (image_instantiator_format_create): add some comments about
8990         bogus code.
8991         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8992         for current-display-table. (Apparently Hrjove implemented in 1998 a
8993         design I wrote up in 1996, but didn't update the doc string.)
8994
8995         * glyphs.h: clean up a doc string.
8996         * glyphs.h (governing_domain):
8997         * glyphs.h (struct image_instantiator_methods):
8998         changes for governing_domain stuff.
8999
9000         * gutter.c:
9001         * gutter.c (Fgutter_specifier_p):
9002         * gutter.c (Fgutter_size_specifier_p):
9003         * gutter.c (Fgutter_visible_specifier_p):
9004         * objects.c:
9005         * objects.c (Fcolor_specifier_p):
9006         * objects.c (Ffont_specifier_p):
9007         * objects.c (Fface_boolean_specifier_p):
9008         doc strings moved to make-*-specifier.
9009
9010         * redisplay.c (add_disp_table_entry_runes_1):
9011         * redisplay.c (generate_fstring_runes):
9012         * redisplay.c (screen):
9013         add random comments and doc strings.
9014
9015         * specifier.c:
9016         * specifier.c (Fmake_specifier):
9017         major overhaul of this doc string.
9018
9019         * specifier.c (Fvalid_specifier_domain_p):
9020         comment about the bogosity of image instances being domains.
9021         * specifier.c (decode_domain):
9022         now non-static, used in glyphs.c.
9023         * specifier.c (specifier_instance):
9024         comment about the bogosity of image instances being domains.
9025         * specifier.c (Fgeneric_specifier_p):
9026         move doc string to make-generic-specifier.
9027         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9028         rebackslashify.
9029
9030         * specifier.h:
9031         * specifier.h (DOMAIN_FRAME):
9032         * specifier.h (DOMAIN_LIVE_P):
9033         * specifier.h (DOMAIN_XDEVICE):
9034         rebackslashify.
9035         add comments about problems with these macros.
9036         prototype for decode_domain.
9037
9038         * toolbar.c:
9039         * toolbar.c (Ftoolbar_specifier_p):
9040         move doc string to `make-toolbar-specifier'.
9041
9042         * window.c (window_unmap_subwindows_cache_mapper):
9043         *************************************************************
9044         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9045         HAVE BEEN GETTING.
9046         *************************************************************
9047
9048 2000-05-09  Andy Piper  <andy@xemacs.org>
9049
9050         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9051
9052         * window.c (Fset_window_configuration): reset the frame subwindow
9053         cache and re-initialize the window subwindow caches.
9054
9055         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9056
9057 2000-05-09  Ben Wing  <ben@xemacs.org>
9058
9059         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9060         DWORD.
9061
9062 2000-04-26  Mike Woolley  <mike@bulsara.com>
9063
9064         * ntheap.c: Changed recreate_heap to limit the amount reserved
9065         for the heap to that which is actually available. Also now
9066         displays a message box (with some dignostics) in the event that
9067         it still can't start.
9068
9069 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9070
9071         * callproc.c (Fold_call_process_internal): GCPRO path
9072
9073 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9074
9075         Patch by Bill Perry.
9076
9077         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9078         back data instead of #ifdef.
9079         (Fscrollbar_page_down): ditto.
9080
9081 2000-05-07  Ben Wing  <ben@xemacs.org>
9082
9083         * buffer.h:
9084         Kludge for defining Qmswindows_tstr.
9085
9086         * nt.c:
9087         * nt.c (open_input_file):
9088         * nt.c (open_output_file):
9089         * nt.c (rva_to_section):
9090         * nt.c (mswindows_executable_type):
9091         Move all memory-mapped-file routines here (some were in unexnt.c,
9092         which is bad because they are used by process-nt.c, and unexnt
9093         won't be around when portable dumping).  Synched the above routines
9094         with FSF 20.6.
9095
9096         * nt.h:
9097         Removed ifdef'd out bogus code.
9098         Fixed some prototypes.
9099
9100         * nt.h (file_data):
9101         * nt.h (OFFSET_TO_RVA):
9102         * nt.h (RVA_TO_OFFSET):
9103         * nt.h (RVA_TO_PTR):
9104         Moved the memory-mapped-file structures, macros and prototypes
9105         here, to parallel nt.c.  ntheap.h should really be removed
9106         entirely, and it's a non-portable-dumper specific file.
9107
9108         * ntheap.h (round_to_next):
9109         Moved the memory-mapped-file structures, macros and prototypes
9110         to nt.h.
9111
9112         * ntproc.c (compare_env):
9113         Moved rva_to_section and mswindows_executable_type to nt.c.
9114         Moved compare_env to process-nt.c.
9115         ntproc.c will die, one day.
9116
9117         * ntproc.c (sys_spawnve):
9118         Account for win32_ -> mswindows_.
9119
9120         * process-nt.c:
9121         * process-nt.c (struct nt_process_data):
9122         * process-nt.c (ensure_console_window_exists):
9123         * process-nt.c (compare_env):
9124         * process-nt.c (nt_create_process):
9125         * process-nt.c (nt_kill_process_by_pid):
9126         * process-nt.c (syms_of_process_nt):
9127         * process-nt.c (vars_of_process_nt):
9128         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9129         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9130         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9131         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9132         Move compare_env here from ntproc.c.
9133
9134         * process.c (Fprocess_send_region):
9135         Takes an optional fourth argument, BUFFER, which should fix some
9136         problems with call-process.
9137
9138         * syscommctrl.h:
9139         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9140
9141         * syswindows.h:
9142         Move ICC_BAR_CLASSES to syscommctrl.h.
9143         Add preliminary macros for MSWindows/Mule.  More to come.
9144
9145         * unexnt.c:
9146         * unexnt.c (unexec):
9147         open_output_file moved to nt.c.
9148
9149
9150 2000-05-05  Andy Piper  <andy@xemacs.org>
9151
9152         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9153         instance from the frame cache also since GC may catch up too late
9154         to make frame deletion sane.
9155
9156 2000-05-04  Andy Piper  <andy@xemacs.org>
9157
9158         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9159         (x_finalize_image_instance): ungcpro on deletion.
9160
9161         * glyphs.c (image_instantiator_format_create): give pointers a
9162         query geometry method so that the geometry is at least set.
9163
9164         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9165         initialize layouts if using widgets.
9166
9167 2000-05-03  Andy Piper  <andy@xemacs.org>
9168
9169         * nt.c: remove bogus reference to sysmmsystem.h
9170
9171         * gui-x.c (popup_selection_callback): fix no selection abort.
9172
9173 2000-05-02  Andy Piper  <andy@xemacs.org>
9174
9175         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9176         (mswindows_widget_instantiate): ditto.
9177
9178         * glyphs-widget.c (initialize_widget_image_instance): initialize
9179         children correctly.
9180         (widget_instantiate): cope with children and items in the same
9181         instance.
9182
9183         * glyphs.c (mark_image_instance): cope with children as a first
9184         class member.
9185         (image_instance_equal): ditto.
9186         (image_instance_hash): ditto.
9187         (image_instance_changed): ditto.
9188
9189 2000-04-30  Andy Piper  <andy@xemacs.org>
9190
9191         * glyphs.c (subwindow_query_geometry): new function. Return some
9192         defaults.
9193         (subwindow_instantiate): don't assign dimensions if none have been
9194         given.
9195         (image_instantiator_format_create): add subwindow_query_geometry.
9196         (print_image_instance): cope with layouts as widgets.
9197
9198 2000-04-29  Andy Piper  <andy@xemacs.org>
9199
9200         * frame.c (delete_frame_internal): call
9201         free_frame_subwindow_instance_cache so that all subwindows are
9202         finalized before their parent.
9203         (mark_frame): remove subwindow_cachels.
9204         (Fmake_frame): remove subwindow_cachel manipulation.
9205         (allocate_frame_core): subwindow_instance_cache is a weak list.
9206         (delete_frame_internal): set subwindow_instance_cache to nil.
9207
9208         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9209         finalization safe.
9210         (mswindows_finalize_image_instance): use the device
9211         not the domain as the domain may have died already.
9212
9213         * glyphs-x.c (x_finalize_image_instance): ditto.
9214         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9215         HEIGHT.
9216
9217         * redisplay-output.c (redisplay_unmap_subwindows): update for
9218         subwindow instance cache as a weak list.
9219         (redisplay_unmap_subwindows_maybe): ditto.
9220         (redisplay_unmap_subwindows_except_us): ditto.
9221
9222         * glyphs.c (unmap_subwindow): error checking will check the domain
9223         so don't deal with it here. Don't use cachels anymore.
9224         (map_subwindow): ditto.
9225         (update_subwindow_cachel_data): remove old accessor names.
9226         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9227         (Fresize_subwindow): don't update cachel.
9228         (mark_subwindow_cachels):
9229         (update_subwindow_cachel_data):
9230         (add_subwindow_cachel):
9231         (get_subwindow_cachel_index):
9232         (update_subwindow_cachel):
9233         (reset_subwindow_cachels):
9234         (mark_subwindow_cachels_as_not_updated): deleted.
9235         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9236         subwindow instance to the frame cache.
9237         (find_matching_subwindow): update for subwindow instance cache as
9238         a weak list.
9239         (update_widget_instances): ditto.
9240         (image_instance_type_to_mask):inlined.
9241         (free_frame_subwindow_instance_cache): new function. finalize all
9242         subwindows that are instantiated.
9243
9244         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9245         of cachel information.
9246         (IMAGE_INSTANCE_DISPLAY_X):
9247         (IMAGE_INSTANCE_DISPLAY_Y):
9248         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9249         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9250         (XIMAGE_INSTANCE_DISPLAY_X):
9251         (XIMAGE_INSTANCE_DISPLAY_Y):
9252         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9253         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9254         remove subwindow_cachel structure and function references.
9255         (image_instance_type_to_mask): inline from glyphs.c
9256
9257         * redisplay.c (redisplay_frame): remove subwindow_cachel
9258         references.
9259
9260         * frame.h (struct frame): remove subwindow_cachels.
9261         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9262
9263         * frameslots.h: add subwindow_instance_cache.
9264
9265         * window.c (replace_window): check subwindow cache of replacement.
9266         (window_unmap_subwindows_cache_mapper):
9267         (window_unmap_subwindows): new functions. Unmap all subwindows
9268         cached on this window.
9269         (mark_window_as_deleted): unmap all subwindows.
9270
9271 2000-04-27  Andy Piper  <andy@xemacs.org>
9272
9273         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9274
9275         * glyphs-widget.c (widget_layout): return something.
9276         (layout_layout): return something. Fail if not initialized.
9277         (layout_query_geometry): ditto.
9278         (image_instantiator_native_layout): new function. Initialized the
9279         native layout type.
9280         (widget_instantiate): don't do layout stuff here.
9281
9282         * glyphs.c (instantiate_image_instantiator): reorded calling or
9283         instantiate and post_instantiate with layout in between.
9284         (image_instance_layout): be more selective about deciding whether
9285         the layout has been done or not.
9286
9287         * glyphs.h (struct image_instantiator_methods): return a value
9288         from layout_method.
9289
9290 2000-04-26  Andy Piper  <andy@xemacs.org>
9291
9292         * glyphs.c (allocate_image_instance): make initial width and
9293         height unspecified. Set initialized to 0.
9294
9295         * syscommctrl.h new file. Encapsulates commctrl.h.
9296
9297         * syswindows.h new file. Encapsulates windows.h.
9298
9299         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9300         * nt.c: ditto.
9301         * console-msw.h: ditto.
9302
9303         * redisplay-tty.c (tty_output_display_block): remove layout references.
9304
9305         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9306         window handle rather than just the frame.
9307
9308         * glyphs.c (mark_image_instance): remove layout references.
9309         (print_image_instance): ditto.
9310         (image_instance_equal): ditto.
9311         (image_instance_hash): ditto.
9312         (decode_image_instance_type): ditto.
9313         (encode_image_instance_type): ditto.
9314         (image_instantiate): ditto.
9315         (allocate_glyph): ditto.
9316         (Fimage_instance_height): ditto.
9317         (Fimage_instance_width): ditto.
9318         (update_subwindow): ditto.
9319
9320         * redisplay-x.c (x_output_display_block): recode for layouts as
9321         widgets.
9322
9323         * redisplay-output.c (redisplay_output_layout): recode for layouts
9324         as widgets.
9325         (compare_runes): remove layout references.
9326
9327         * redisplay-msw.c (mswindows_output_display_block): recode for
9328         layouts as widgets.
9329
9330         * glyphs-widget.c (image_instantiator_layout): remove
9331         layout_possible_dest_types.
9332         (layout_possible_dest_types): deleted.
9333
9334         * glyphs.h (image_instance_type): remove layout references.
9335         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9336         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9337         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9338
9339 2000-04-25  Andy Piper  <andy@xemacs.org>
9340
9341         * glyphs-widget.c (image_instantiator_buttons):
9342         (image_instantiator_edit_fields):
9343         (image_instantiator_combo_box):
9344         (image_instantiator_scrollbar):
9345         (image_instantiator_progress_guage):
9346         (image_instantiator_tree_view):
9347         (image_instantiator_tab_control):
9348         (image_instantiator_labels):
9349         (image_instantiator_layout): call default post_instantiate method.
9350         (widget_post_instantiate): new function. Simply lays out the
9351         widgets.
9352
9353         * glyphs.h (struct image_instantiator_methods): add
9354         post_instantiate method.
9355
9356         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9357         method calls.
9358
9359 2000-04-23  Andy Piper  <andy@xemacs.org>
9360
9361         * glyphs.h (struct image_instantiator_methods): add
9362         decode_domain_method.
9363         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9364         derived from the domain.
9365         (IMAGE_INSTANCE_FRAME): new accessor.
9366         (XIMAGE_INSTANCE_FRAME): ditto.
9367
9368         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9369         instead of _SUBWINDOW_FRAME.
9370         (finalize_image_instance): ditto.
9371         (Fimage_instance_foreground): ditto.
9372         (Fimage_instance_background): ditto.
9373         (image_instantiate): ditto.
9374         (update_subwindow_cachel): ditto.
9375         (update_subwindow): ditto.
9376         (unmap_subwindow): ditto.
9377         (map_subwindow): ditto
9378         (subwindow_instantiate): ditto.
9379         * glyphs-msw.c (mswindows_update_widget): ditto.
9380         (mswindows_progress_gauge_instantiate): ditto.
9381         (mswindows_tab_control_update): ditto.
9382         * glyphs-x.c (x_update_widget): ditto.
9383         (x_widget_instantiate): ditto.
9384         (x_tab_control_instantiate): ditto.
9385         (x_tab_control_update): ditto.
9386         * event-msw.c (mswindows_wnd_proc): ditto
9387
9388         * glyphs-widget.c (image_instantiator_layout): use
9389         subwindow_decode_domain.
9390         (image_instantiator_buttons): ditto.
9391         (image_instantiator_edit_fields): ditto.
9392         (image_instantiator_combo_box): ditto.
9393         (image_instantiator_scrollbar): ditto.
9394         (image_instantiator_progress_guage): ditto.
9395         (image_instantiator_tree_view): ditto.
9396         (image_instantiator_tab_control): ditto.
9397         (image_instantiator_labels): ditto.
9398         (image_instantiator_layout): ditto.
9399
9400         * glyphs.c: add instance error checking to many functions.
9401         (instantiate_image_instantiator): decode device from cache_domain.
9402         (image_instantiate): partially rewrite by using
9403         decode_image_instantiator_domain to determine what domain the
9404         instance needs to be cached in.
9405         (decode_image_instantiator_domain): new function. Determine what
9406         domain the image needs to be cached in.
9407         (check_window_subwindow_cache): new error checking function.
9408         (check_instance_cache_mapper): ditto.
9409         (check_image_instance_structure): ditto.
9410         (subwindow_decode_domain): new function. Encodes a window as a
9411         subwindow's cache domain.
9412         (image_instantiator_format_create): use it for text and
9413         subwindows.
9414
9415 2000-04-21  Andy Piper  <andy@xemacs.org>
9416
9417         * glyphs.c (image_instance_device): new function.
9418         (image_instance_frame): new function.
9419         (image_instance_window): new function.
9420         (image_instance_live_p): new function.
9421
9422         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9423         cache to nil.
9424
9425         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9426         (IMAGE_INSTANCE_DOMAIN): new accessor.
9427         (XIMAGE_INSTANCE_DOMAIN): ditto.
9428
9429         * glyphs-x.c (x_finalize_image_instance): device->domain.
9430
9431         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9432         (mswindows_finalize_image_instance): ditto.
9433
9434         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9435         (gif_instantiate): ditto.
9436         (png_instantiate): ditto.
9437         (tiff_instantiate): ditto.
9438
9439         * glyphs.c (instantiate_image_instantiator): use domain rather
9440         than device.
9441         (mark_image_instance): device -> domain.
9442         (print_image_instance): ditto.
9443         (finalize_image_instance): ditto.
9444         (image_instance_equal): ditto.
9445         (allocate_image_instance): ditto.
9446         (Fcolorize_image_instance): ditto.
9447         (query_string_geometry): ditto.
9448         (image_instantiate): ditto
9449         (query_string_font): ditto.
9450         (image_instantiate): ditto.
9451         (update_subwindow): ditto.
9452         (unmap_subwindow): ditto.
9453         (map_subwindow): ditto.
9454         (subwindow_instantiate): ditto.
9455
9456         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9457         (DOMAIN_FRAME): ditto.
9458         (DOMAIN_WINDOW): ditto.
9459         (DOMAIN_LIVE_P): ditto.
9460         (XDOMAIN_DEVICE): ditto.
9461         (XDOMAIN_FRAME): ditto.
9462         (XDOMAIN_WINDOW): ditto.
9463
9464         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9465         a valid specifier domain.
9466
9467 2000-04-19  Andy Piper  <andy@xemacs.org>
9468
9469         * glyphs-widget.c (syms_of_glyphs_widget): remove
9470         widget-callback-current-channel.
9471         (vars_of_glyphs_widget): ditto.
9472         * glyphs.h: ditto
9473
9474         * gui.c (get_gui_callback): revert to previous behaviour.
9475
9476 2000-04-18  Andy Piper  <andy@xemacs.org>
9477
9478         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9479         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9480         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9481
9482         * glyphs.c (image_instance_equal): add margin_width.
9483         (image_instance_hash): ditto.
9484
9485         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9486         (layout_query_geometry): ditto.
9487         (layout_layout): ditto.
9488         (syms_of_glyphs_widget): add margin-width.
9489         (image_instantiator_layout): allow margin-width.
9490
9491         * glyphs.c (update_widget_instances): make a normal function.
9492         (syms_of_glyphs): remove Qupdate_widget_instances.
9493         * glyphs.h: ditto.
9494
9495         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9496         so that we don't corrupt ideas about the last event or
9497         command. Remove widget-callback-current-channel fiddling.
9498         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9499
9500 2000-05-01  Martin Buchholz <martin@xemacs.org>
9501
9502         * XEmacs 21.2.33 is released.
9503
9504 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9505
9506         * make-src-depend: Allow dots in header file name.
9507
9508 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9509
9510         * mule-charset.h (struct charset_lookup): Add
9511         next_allocated_1_byte_leading_byte and
9512         next_allocated_2_byte_leading_byte.
9513         * mule-charset.c: Move above two variables so that those values
9514         will be dumped.
9515
9516 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9517
9518         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9519         when string length is zero.
9520         (find_charsets_in_emchar_string): Ditto.
9521
9522 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9523
9524         * lisp.h: extern Qdialog and Qmenubar.
9525
9526         * gui-x.c: added events.h.
9527                 also fixed typo which made the file uncompilable.
9528
9529         * general.c: Added Qmenubar and Qdialog
9530
9531 2000-04-28  Ben Wing  <ben@xemacs.org>
9532
9533         * frame-msw.c (mswindows_init_frame_1):
9534         * frame-msw.c (mswindows_mark_frame):
9535         * event-msw.c (mswindows_enqueue_dispatch_event):
9536         * console-msw.h:
9537         * console-msw.h (struct mswindows_frame):
9538         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9539         there are now three hash tables for callbacks.
9540         mswindows_enqueue_dispatch_event is no longer static.
9541
9542         * dialog-x.c (maybe_run_dbox_text_callback):
9543         * dialog-x.c (dbox_descriptor_to_widget_value):
9544         switch to new cons3 form for callbacks.
9545
9546         * glyphs-msw.c (mswindows_register_gui_item):
9547         * glyphs-msw.c (mswindows_widget_instantiate):
9548         * glyphs-msw.c (add_tree_item):
9549         * glyphs-msw.c (add_tab_item):
9550         new image instance parameter, so it can be passed to callback-ex.
9551         respect :callback-ex as well as :callback.
9552
9553         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9554         add :callback-ex.
9555
9556         * glyphs.c (print_image_instance):
9557         prettify, e.g. now prints widget type.
9558
9559         * gui-x.h:
9560         certain funs have new image instance parameter.
9561
9562         * gui.c:
9563         * gui.c (get_gui_callback):
9564         * gui.c (gui_item_add_keyval_pair):
9565         * gui.c (gui_item_init):
9566         * gui.c (gui_add_item_keywords_to_plist):
9567         * gui.c (mark_gui_item):
9568         * gui.c (gui_item_hash):
9569         * gui.c (gui_item_equal):
9570         * gui.c (copy_gui_item):
9571         * gui.c (syms_of_gui):
9572         recognize callback-ex in a number of places.
9573         also, fix the annoying "can't get out of yes-no dialog" bug.
9574
9575         * gui.h:
9576         * gui.h (struct Lisp_Gui_Item):
9577         recognize callback-ex in a number of places.
9578
9579         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9580         new parameter in button_item_to_widget_value.
9581
9582         * glyphs-x.c (x_update_widget):
9583         * glyphs-x.c (x_button_instantiate):
9584         * glyphs-x.c (x_button_update):
9585         * glyphs-x.c (x_progress_gauge_instantiate):
9586         * glyphs-x.c (x_edit_field_instantiate):
9587         * glyphs-x.c (x_combo_box_instantiate):
9588         * glyphs-x.c (x_tab_control_instantiate):
9589         * glyphs-x.c (x_label_instantiate):
9590         new image instance parameter in various places.
9591
9592         * event-Xt.c:
9593         * event-Xt.c (enqueue_Xt_dispatch_event):
9594         this fun gets exported.
9595
9596         * gui-msw.c:
9597         * gui-msw.c (mswindows_handle_gui_wm_command):
9598         handle both :callback and :callback-ex, and generate our own
9599         event because it's one of the callback-ex arguments.
9600
9601         * gui-x.c:
9602         * gui-x.c (popup_selection_callback):
9603         handle both :callback and :callback-ex, and generate our own
9604         event because it's one of the callback-ex arguments.
9605         * gui-x.c (button_item_to_widget_value):
9606         * gui-x.c (gui_items_to_widget_values_1):
9607         * gui-x.c (gui_item_children_to_widget_values):
9608         * gui-x.c (gui_items_to_widget_values):
9609         new image instance parameter in various places.
9610
9611         * fns.c (Freplace_list):
9612         fix small typo in doc string.
9613
9614         * lisp.h:
9615         declare enqueue_Xt_dispatch_event.
9616
9617 2000-04-28  Ben Wing  <ben@xemacs.org>
9618
9619         * buffer.c:
9620         * buffer.c (Frecord_buffer):
9621         * buffer.c (syms_of_buffer):
9622         delete record-buffer-hook.
9623
9624         * fns.c:
9625         * fns.c (Freplace_list):
9626         * fns.c (syms_of_fns):
9627         new primitive replace-list.
9628
9629         * frameslots.h:
9630         slot for old buffer-alist.
9631
9632         * lisp.h:
9633         exfun replace-list.
9634
9635         * redisplay.c:
9636         * redisplay.c (redisplay_frame):
9637         * redisplay.c (syms_of_redisplay):
9638         * redisplay.c (vars_of_redisplay):
9639         new hook buffer-list-changed-hook.
9640         call it.
9641
9642 2000-04-27  Ben Wing  <ben@xemacs.org>
9643
9644         * extents.h: extern in_modeline_generation.
9645
9646         * redisplay.c (generate_formatted_string_db): set
9647         in_modeline_generation.
9648
9649         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9650         flags if in modeline generation.  otherwise frame-modified-tick
9651         is ticked far too often.
9652         Declare in_modeline_generation.
9653
9654 2000-04-26  Ben Wing  <ben@xemacs.org>
9655
9656         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9657         option.
9658         (vars_of_emacs): add quick-build as an error-checking option.
9659         A bit kludgy, but there doesn't seem much point in creating
9660         a real var for this.
9661
9662         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9663
9664 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9665
9666         * redisplay.h (struct display_line): Add a new variable,
9667         line_continuation.
9668
9669         * redisplay.c (create_text_block): Set dl->line_continuation if
9670         the line continues.
9671         (create_string_text_block): Ditto.
9672         (regenerate_window_incrementally): Use line_continuation instead
9673         of searching continuation glyph.
9674         (add_margin_runes): Call add_glyph_rune.
9675         (add_glyph_rune): Handle margin glyph.
9676
9677 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9678
9679         * filelock.c (fill_in_lock_file_name):
9680         ANSIfy.
9681         Check for IS_ANY_SEP instead of '/'.
9682         (lock_file_1):
9683         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9684         Never check errno without first seeing that system call failed.
9685         (unlock_file): Add GCPRO.
9686         (Flock_buffer): Fix docstring.
9687         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9688
9689 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9690
9691         * sysdep.c (get_pty_max_bytes):
9692         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9693         strings longer than 252 bytes.
9694
9695         * md5.c: Unconditionally include ANSI header <limits.h>
9696
9697         * glyphs-x.c (convert_EImage_to_XImage):
9698         * lisp-union.h (union Lisp_Object):
9699         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9700
9701 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9702
9703         * filelock.c (current_lock_owner): Remove unused variable o, p.
9704
9705 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9706
9707         * callint.c: Remove multiply defined symbol Qlet
9708         (syms_of_callint): ditto.
9709
9710 2000-04-14  Andy Piper  <andy@xemacs.org>
9711
9712         * general.c (syms_of_general): add last-command, this-command, let
9713         and funcall.
9714
9715         * lisp.h: declare various symbols.
9716
9717         * glyphs.h: declare Qwidget_callback_current_channel;
9718
9719         * glyphs-widget.c (syms_of_glyphs_widget): add
9720         Qgui_callback_current_channel.
9721         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9722
9723         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9724         widget-callback-current-channel when invoking the interactive
9725         arg. Also bind last-command and next-command when invoking the
9726         widget updates.
9727         * gui-x.c (popup_selection_callback): ditto.
9728
9729         * gui.c (get_gui_callback): massage args so that we are always
9730         calling eval. This allows us to add our own variable bindings
9731         outside.
9732
9733         * glyphs-x.c (x_button_instantiate): use
9734         gui_items_to_widget_values since this is GC safe.
9735         (x_progress_gauge_instantiate): ditto.
9736         (x_edit_field_instantiate): ditto.
9737         (x_label_instantiate): ditto.
9738
9739         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9740         (emacs_Xt_event_widget_focus_out): new function
9741         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9742         focus.
9743         (emacs_Xt_event_add_widget_actions): new function. add focus
9744         functions as actions.
9745         (init_event_Xt_late): use it.
9746
9747 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9748
9749         * event-stream.c (Fdispatch_event): Doc fix.
9750
9751 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9752
9753         * postgresql.c: Remove all references to PQsetenv*.
9754
9755         * postgresql.h: Remove references to PGsetenvHandler object.
9756         * lrecord.h (lrecord_type): Ditto.
9757
9758 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9759
9760         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9761         real_heigh and real_width members, and accessor macros for these.
9762
9763         * glyphs-msw.c (init_image_instance_geometry): New function.
9764         (init_image_instance_from_dibitmap): Use it.
9765         (mswindows_resource_instantiate): Use it.
9766         (init_image_instance_from_xbm_inline): Use it.
9767         (mswindows_initialize_image_instance_mask): Use real bitmap
9768         geometry.
9769         (mswindows_create_resized_bitmap): Ditto.
9770         (mswindows_create_resized_mask): Ditto.
9771
9772         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9773         and bitmap to their surface size.
9774
9775 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9776
9777         * process-unix.c (unix_send_process): Guard against process MIA
9778         after Faccept_process_output.
9779
9780 2000-04-11  Ben Wing  <ben@xemacs.org>
9781
9782         * eval.c (unbind_to_hairy): fix brokenness introduced by
9783         nanosecond speed improvements.
9784
9785 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9786
9787         * sunplay.c (init_device): To play sounds correctly, the device
9788         apparently needs to be initialized at least once by XEmacs.  Make
9789         it so.
9790
9791 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9792
9793         * redisplay.c (add_margin_runes): Add text image glyph
9794           handling.
9795
9796 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9797
9798         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9799         gcc is newer than 2.5.
9800
9801 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9802
9803         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9804
9805         * fns.c (size_bit_vector):
9806         * alloc.c (size_vector):
9807         (make_vector_internal):
9808         (make_bit_vector_internal):
9809         (sweep_bit_vectors_1):
9810         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9811
9812 2000-04-06  Andy Piper  <andy@xemacs.org>
9813
9814         * gmalloc.c (malloc): undo previous change.
9815         (malloc): ditto.
9816         (free): ditto.
9817         (realloc): ditto.
9818
9819 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9820
9821         * line-number.c (buffer_line_number): Revert to former version.
9822
9823 2000-04-06  Andy Piper  <andy@xemacs.org>
9824
9825         * gmalloc.c (malloc): add error checking.
9826         (malloc): ditto.
9827         (free): ditto.
9828         (realloc): ditto.
9829
9830         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9831         button_item_to_widget_value arg.
9832
9833         * glyphs-x.c (x_button_instantiate): add extra
9834         button_item_to_widget_value arg.
9835         (x_progress_gauge_instantiate): ditto.
9836         (x_edit_field_instantiate): ditto.
9837         (x_label_instantiate): ditto.
9838
9839         * gui-x.c (gui_items_to_widget_values_1): add extra
9840         button_item_to_widget_value arg.
9841         (button_item_to_widget_value): add extra menu_item_p arg.
9842
9843         * gui-x.h: change signature of button_item_to_widget_value.
9844
9845         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9846         button_item_to_widget_value arg.
9847
9848 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9849
9850         * buffer.h (struct buffer): auto_save_modified should be long.
9851
9852 2000-04-05  Andy Piper  <andy@xemacs.org>
9853
9854         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9855         type.
9856         (button_query_geometry): give a little more room so that athena
9857         buttons fit.
9858
9859 2000-04-05  Andy Piper  <andy@xemacs.org>
9860
9861         * faces.c (complex_vars_of_faces): The widget face should inherit
9862         the font of the gui-element face.
9863
9864 2000-04-04  Andy Piper  <andy@xemacs.org>
9865
9866         * glyphs-x.c (x_button_update): new function. unconditionally
9867         update a button's state when the instance is dirty.
9868         (image_instantiator_format_create_glyphs_x): add x_button_update.
9869         (x_widget_instantiate): remove old resize cruft.
9870
9871 2000-04-02  Andy Piper  <andy@xemacs.org>
9872
9873         * frame.c (change_frame_size_1): The introduction of gutters means
9874         that we need to allow 0 as a potential frame dimension.
9875
9876 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9877
9878         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9879         image glyph if allow_cursor.
9880         (add_hscroll_rune): Don't allow cursor to border glyph.
9881         (create_text_block): Ditto.
9882
9883         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9884         text not in buffer.
9885         (redisplay_output_layout): Call ensure_face_cachel_complete for
9886         text image glyph.
9887
9888
9889 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9890
9891         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9892
9893         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9894         not in buffer
9895
9896         * redisplay-tty.c (tty_output_display_block): Delete the routine
9897         for text image glyph
9898         * redisplay-x.c (x_output_display_block): ditto
9899         * redisplay-msw.c (mswindows_output_display_block): ditto
9900
9901 2000-02-02  Mike Alexander  <mta@arbortext.com>
9902
9903         Note: Some of these were committed by accident as part of other
9904         patches.
9905
9906         * regex.c (regex_compile): Avoid compiler warnings.
9907
9908         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9909
9910         * nt.h: Declare term_ntproc correctly.
9911
9912         * nt.c: Remove incorrect declaration of get_home_directory which
9913         is declared correctly in lisp.h.
9914
9915         * keymap.c (get_keyelt): Avoid compiler warnings.
9916         (raw_lookup_key_mapper): Avoid compiler warnings.
9917
9918         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9919
9920         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9921
9922         * filemode.c (mode_string): Avoid compiler warnings.
9923
9924         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9925         avoid warning.
9926
9927         * events-mod.h: Undef some things that winuser.h defines differently.
9928
9929         * data.c (Faset): Avoid compiler warnings.
9930
9931         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9932
9933 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9934
9935         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9936         Fall through to simple beep on error.
9937         Replace "extern" by real header file.
9938
9939         * linuxplay.c: Use nativesound.h
9940         (play_sound_data): Return error code. Be less verbose on error.
9941
9942         * sunplay.c: Use nativesound.h
9943         (play_sound_data): Return error code. Be less verbose on error.
9944
9945         * ntplay.c: Use nativesound.h
9946         (play_sound_data): Return fake error code
9947
9948         * sgiplay.c: Use nativesound.h
9949         (play_sound_data): Return error code
9950
9951         * hpplay.c: Use nativesound.h, partially implement
9952         new error code. Break compilation until finished.
9953         (play_sound_data): error code.
9954
9955         * nativesound.h (play_sound_file):
9956           (play_sound_data): Prototype in new header.
9957
9958 2000-03-31  Andy Piper  <andy@xemacs.org>
9959
9960         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9961         for toggle and radio buttons.
9962         (image_instantiator_buttons): use it.
9963
9964 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9965
9966         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9967         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9968         found. Scrollbar event probably belonged to some old config.
9969
9970 2000-03-31  Andy Piper  <andy@xemacs.org>
9971
9972         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9973         than 1.
9974         (initialize_widget_image_instance): default layout to
9975         LAYOUT_HORIZONTAL rather than 0.
9976         (widget_instantiate): reverse the item list at the end rather than
9977         every iteration.
9978         (layout_layout): re-code for the border text at the front of the
9979         item list rather than at the end.
9980         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9981         provided by the user.
9982         (widget_query_geometry): comment.
9983
9984 2000-03-30  Andy Piper  <andy@xemacs.org>
9985
9986         * glyphs-widget.c (image_instantiator_layout): allow standard
9987         widget keywords in layouts.
9988
9989         * gutter.c (output_gutter): cope with nil gutter contents.
9990
9991         * frame.c (Fset_frame_properties): add gutter docs.
9992
9993 2000-03-29  Andy Piper  <andy@xemacs.org>
9994
9995         * toolbar-msw.c (TBSTYLE_FLAT): add.
9996         (mswindows_output_toolbar): minor fiddling.
9997
9998 2000-03-29  Andy Piper  <andy@xemacs.org>
9999
10000         * gutter.c (output_gutter): force gutter size recalculation if
10001         what we are trying to display won't fit.
10002         (update_gutter_geometry): new function. A per-gutter version of
10003         update_frame_gutter_geometry.
10004         (update_frame_gutter_geometry): use it.
10005         (redraw_exposed_gutter): add extra debugging output.
10006
10007 2000-03-28  Mike Alexander  <mta@arbortext.com>
10008
10009         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10010         (pdump_file_unmap): Implement it on Windows
10011         (pdump_file_get): Save alocated handles for pdump_file_unmap
10012
10013 2000-03-28  Andy Piper  <andy@xemacs.org>
10014
10015         * gui.c (get_gui_callback): treat Quit specially.
10016
10017 2000-03-27  Andy Piper  <andy@xemacs.org>
10018
10019         * glyphs.c (image_instantiate): be careful to check in the same
10020         way we assigned.
10021
10022 2000-03-27  Didier Verna  <didier@xemacs.org>
10023
10024         * config.h.in: define the proper SMART_INCLUDE macro.
10025         handle renaming of `foo_h_path' to `foo_h_file'.
10026
10027         * database.c: ditto.
10028
10029         * emacs.c: ditto.
10030
10031         * linuxplay.c: ditto.
10032
10033         * terminfo.c: ditto.
10034
10035         * tooltalk.h: ditto.
10036
10037 2000-03-27  Andy Piper  <andy@xemacs.org>
10038
10039         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10040         gets updated whenever the face might have changed.
10041
10042 2000-03-26  Mike Alexander  <mta@arbortext.com>
10043
10044         * dumper.c (pdump_resource_free): Fix the comment.
10045
10046 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10047
10048         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10049
10050 2000-03-22  Mike Alexander  <mta@arbortext.com>
10051
10052         * dumper.c: Include Windows headers on Windows
10053         (pdump_resource_free): Add a body to the function
10054         (pdump_load): exe_name -> exe_path and add some comments.
10055
10056 2000-03-25  Mike Alexander  <mta@arbortext.com>
10057
10058         * gui.c (copy_gui_item_tree): Return a value in all cases
10059
10060 2000-03-21  Didier Verna  <didier@xemacs.org>
10061
10062         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10063         lwlib/config.h.in.
10064         (SMART_INCLUDE): new macro.
10065         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10066         the proper location.
10067
10068         * postgresql.c: use it.
10069
10070         * inline.c: ditto.
10071
10072 2000-03-24  Andy Piper  <andy@xemacs.org>
10073
10074         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10075         do this.
10076
10077 2000-03-24  Andy Piper  <andy@xemacs.org>
10078
10079         * redisplay-output.c (compare_runes): use image_instance_changed
10080         to detect changes. Do not depend on glyphs_changed, only depend on
10081         dirtiness.
10082          (redisplay_output_layout): add debug messages.
10083         (compare_runes): ditto.
10084
10085         * glyphs.h: declare new functions.
10086         (struct Lisp_Image_Instance): remove percent and associated
10087         accessors.
10088
10089         * gui.h: declare new copying functions.
10090
10091         * gui.c (copy_gui_item_tree): new function.
10092         (copy_gui_item): new function.
10093         (gui_item_id_hash): revert to standard hash.
10094         (gui_item_hash): ditto.
10095         (gui_item_hash_internal): deleted.
10096         (mark_gui_item): mark value.
10097         (gui_item_add_keyval_pair): add value.
10098         (gui_item_init): ditto.
10099         (gui_add_item_keywords_to_plist): ditto.
10100         (gui_item_equal): ditto.
10101         (syms_of_gui): add Q_value.
10102
10103         * glyphs-x.c (x_progress_gauge_update): use pending items and
10104         value for setting the state.
10105         (x_update_widget): don't set items from pending here.
10106
10107         * glyphs-widget.c (update_widget): update items here.
10108         (progress_gauge_set_property): use items for storing value. Put
10109         new value in pending items.
10110
10111         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10112         items for new value. Convert percent -> value.
10113         (mswindows_tab_control_update): don't update items here.
10114
10115         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10116         (update_subwindow): ditto.
10117         (image_instance_changed): new function. Compare hash values and
10118         past and present widget items.
10119         (image_instantiate): We more careful about where we instantiate
10120         things.
10121         (image_instantiate): add error checking.
10122
10123         * gutter.c (syms_of_gutter): use -hook.
10124
10125 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10126
10127         * console-tty.c (Fset_console_tty_input_coding_system): Use
10128         Qkeyboard.
10129         (Fset_console_tty_output_coding_system): Use Qterminal.
10130         (tty_init_console): Use Qkeyboard and Qterminal.
10131
10132 2000-03-21  Ben Wing  <ben@xemacs.org>
10133
10134         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10135         From Mike Alexander <mta@arbortext.com>.
10136
10137 2000-03-21  Ben Wing  <ben@xemacs.org>
10138
10139         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10140         process brokenness.  Proper implementation to come.
10141         * callproc.c:
10142         Rename call-process-internal to old-call-process-internal.
10143         New impl. in process.el.
10144
10145 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10146
10147         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10148
10149 2000-03-20  Andy Piper  <andy@xemacs.org>
10150
10151         * glyphs.c (full_list_hash): make hashes of the same elements in
10152         different orders return different values.
10153
10154 2000-03-20  Martin Buchholz <martin@xemacs.org>
10155
10156         * XEmacs 21.2.32 is released.
10157
10158 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10159
10160         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10161         (DFC_MALLOC_USE_CONVERTED_DATA):
10162         Add aliasing-safe casts to allow use with char* or unsigned char*
10163         lvalues.
10164
10165         * eldap.c (Fldap_open):
10166         (Fldap_search_basic):
10167         (Fldap_add):
10168         (Fldap_modify):
10169         Make C++-compilable.
10170         Make sure GCPRO'ed variables are initialized.
10171         Use temp variables to avoid repeated calls to Flength.
10172
10173 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10174
10175         * sysfile.h:
10176         Make sure PATH_MAX is always defined.
10177         Include limits.h for PATH_MAX.
10178         Deprecate use of MAXPATHLEN.
10179
10180 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10181
10182         * emacs.c: Add reinit_vars_of_fileio.
10183         * symsinit.h: Add reinit_vars_of_fileio.
10184         * fileio.c (reinit_vars_of_fileio): New.
10185         * fileio.c (Fmake_temp_name):
10186         Initialize temp_name random number from microseconds to make
10187         collisions even less likely.  Initialize always at process startup
10188         time.  (make-temp-name) used to return the same file name twice in
10189         a row when PDUMP.
10190         Random stylistic fiddling.
10191         Comment fixes.
10192
10193 2000-03-20  Andy Piper  <andy@xemacs.org>
10194
10195         * glyphs.c (image_instantiate): allow text glyphs to be
10196         instantiated in the minibuffer window.
10197
10198 2000-03-19  Andy Piper  <andy@xemacs.org>
10199
10200         * glyphs.c (image_instance_hash): be careful about which items we
10201         hash on.
10202
10203         * glyphs-widget.c (tab_control_set_property): record into pending
10204         items rather than the actual items.
10205
10206         * glyphs-x.c (x_update_widget): use pending items to update with.
10207
10208         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10209         to update with.
10210
10211         * glyphs.c (mark_image_instance): mark pending items.
10212
10213         * window.c (Fset_window_configuration): record the buffer.
10214         (Fselect_window): totally revert previous change which breaks many
10215         things.
10216
10217 2000-03-18  Andy Piper  <andy@xemacs.org>
10218
10219         * glyphs-msw.c (mswindows_tab_control_update): force selected
10220         item.
10221
10222         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10223         window domain cache, otherwise we get inconsistencies at
10224         startup. There is something fishy at startup which can lead to the
10225         minibuffer being the selected window when the gutter content is
10226         instantiated.
10227
10228         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10229         gcpros.
10230         (parse_gui_item_tree_children): ditto.
10231         (parse_gui_item_tree_item): ditto.
10232
10233         * glyphs.c (Fupdate_widget_instances): return something.
10234
10235 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10236
10237         * window.c (Fselect_window): Undo 2000-03-17 change.
10238
10239 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10240
10241         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10242         against v7.0 libraries.  Insta-coredump city until the postgres
10243         folks fix it.
10244
10245 2000-03-17  Andy Piper  <andy@xemacs.org>
10246
10247         * faces.c (complex_vars_of_faces): don't give the widget face an
10248         inherited background pixmap.
10249
10250         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10251         selected item.
10252
10253         * event-stream.c (Fdispatch_non_command_events): return something.
10254
10255         * gutter.c (output_gutter): use widget face.
10256         (clear_gutter): ditto.
10257
10258         * NEWS: adjust again.
10259
10260         * window.c (Fselect_window): make sure this runs to completion to
10261         avoid oddities with Fset_window_configuration.
10262         (Fcurrent_window_configuration): in general do not save the
10263         minibuffer as the selected window.
10264
10265         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10266
10267 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10268
10269         * emacs.c (Frunning_temacs_p): Revert previous patch.
10270         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10271
10272 2000-03-16  Andy Piper  <andy@xemacs.org>
10273
10274         * glyphs-x.c (x_tab_control_update): if no widget values then
10275         return.
10276
10277         * NEWS: update for new features.
10278
10279         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10280         synthetic event to the native system.
10281         (reinit_vars_of_event_Xt): set force_event_pending to
10282         emacs_Xt_force_event_pending.
10283
10284         * events.h (struct event_stream): add force_event_pending.
10285
10286         * specifier.c (recompute_one_cached_specifier_in_window): add
10287         comment.
10288
10289         * redisplay.c (redisplay_frame): don't call
10290         update_frame_subwindows. Reset subwindow cachels when
10291         subwindows_changed, removing this was an optimization too far.
10292
10293         * redisplay-output.c (compare_runes): reorganize so that we catch
10294         glyph changes when we want them. Set optimize_output when this
10295         would help layouts.
10296         (redisplay_output_layout): remove frame_really_changed, use
10297         optimize_output instead.
10298
10299         * redisplay-msw.c (mswindows_output_display_block): reset
10300         optimize_output after outputting a glyph.
10301         * redisplay-x.c (x_output_display_block): ditto.
10302         * redisplay-tty.c (tty_output_display_block): ditto.
10303
10304         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10305         functions.
10306         (gutter_specs_changed): do specific gutter positions.
10307         (top_gutter_specs_changed): new function. Only update the
10308         specified gutter specs.
10309         (bottom_gutter_specs_changed): ditto.
10310         (left_gutter_specs_changed): ditto.
10311         (right_gutter_specs_changed): ditto.
10312
10313         * gui.c (gui_item_hash_internal): new function, does a real hash.
10314         (gui_item_id_hash): use it.
10315         (gui_item_hash): hash the eval'ed gui_item.
10316
10317         * gui-x.c (popup_selection_callback): send an eval event to call
10318         Fupdate_widget_instances.
10319
10320         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10321         to call Fupdate_widget_instances.
10322
10323         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10324         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10325
10326         * glyphs.c: (update_frame_subwindows): deleted.
10327         (Fupdate_widget_instances): new function for updating the dirty
10328         state of widgets that might have changed.
10329         (syms_of_glyphs): add Qupdate_widget_instances.
10330         (full_list_hash): hash a list completely.
10331         (image_instance_hash): use it for items and properties.
10332
10333         * frame-msw.c (mswindows_size_frame_internal): remove unused
10334         variable.
10335
10336         * faces.h (struct face_cachel): fix comment.
10337
10338         * event-stream.c (Fdispatch_non_command_events): new
10339         function. Process non-command events, forcing an event cycle
10340         beforehand.
10341         (syms_of_event_stream): declare.
10342         (event_stream_force_event_pending): new function. Force an event
10343         on the native event queue so that an event cycle will occur next
10344         time we check.
10345
10346         * event-msw.c:
10347         (struct ntpipe_shove_stream):
10348         (mswindows_enqueue_dispatch_event):
10349         (mswindows_dequeue_dispatch_event):
10350         (mswindows_cancel_dispatch_event):
10351         (mswindows_pump_outstanding_events):
10352         (mswindows_drain_windows_queue):
10353         (mswindows_handle_paint):
10354         (mswindows_wnd_proc):
10355         (mswindows_key_to_emacs_keysym):
10356         (get_process_input_waitable):
10357         (emacs_mswindows_delete_stream_pair): re-indent file.
10358         (mswindows_need_event): do not process further fds if the windows
10359         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10360         fixes the 100% cpu problem.
10361         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10362
10363 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10364
10365         * alloc.h: New.
10366         * dumper.h: New.
10367         * dumper.c: New.
10368
10369         * emacs.c: Moved dump file searching to dumper.c.
10370         (Frunning_temacs_p): Fixed.
10371
10372         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10373         last_lrecord_type_index_assigned.
10374
10375 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10376
10377         * symsinit.h: Added reinit parameter to init_console_stream
10378         declaration.
10379
10380         * lisp.h: Added file parameter to pdump_load declaration.
10381
10382         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10383         support.  Added dump file searching.
10384
10385         * config.h.in: Added EMACS_PROGNAME.
10386
10387         * console-stream.c (init_console_stream): Fix reinitialisation
10388         when running from temacs.
10389
10390         * alloc.c (pdump): Add id support.
10391         (pdump_load): Add file parameter and signature/id support.
10392
10393         * Makefile.in.in: Add full pdump support.
10394
10395 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10396
10397         * postgresql.c: Update documentation to reflect latest code
10398         status.
10399         (print_result): Show tuple counts in printed representation when
10400         appropriate.
10401         (Fpq_put_nbytes): MULE-ize.
10402         (Fpq_get_line_async): Ditto.
10403
10404 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10405
10406         * postgresql.c (Fpq_lo_import): Fix return value.
10407         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10408
10409 2000-03-13  Ben Wing  <ben@xemacs.org>
10410
10411         * alloc.c (pdump_load):
10412         Fix compile warning under mswin.
10413
10414 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10415
10416         * postgresql.c: Mule-ization, bug fixes.
10417         Use PG_CODING to encapsulate coding system name changes.
10418         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10419         (pg-coding-system): Create.
10420
10421         (Fpq_conn_defaults): Mule-ize.
10422         (Fpq_connectdb): Mule-ize & bug fix.
10423         (Fpq_connect_start): Mule-ize.
10424         (Fpq_set_client_encoding): Mule-ize.
10425         (Fpq_finish): Document `DEAD' connection status.
10426         (Fpq_clear): Ditto.
10427         (Fpq_pgconn): Mule-ize.
10428         (Fpq_exec): Mule-ize & bug fix.
10429         (Fpq_send_query): Ditto.
10430         (Fpq_get_result): Ditto.
10431         (Fpq_res_status): Mule-ize.
10432         (Fpq_result_error_message): Mule-ize.
10433         (Fpq_ntuples): fix comments.
10434         (Fpq_fname): Mule-ize.
10435         (Fpq_fnumber): Mule-ize.
10436         (Fpq_ftype): fix comments.
10437         (Fpq_get_value): Mule-ize.
10438         (Fpq_cmd_status): Ditto.
10439         (Fpq_cmd_tuples): Ditto.
10440         (Fpq_oid_value): Ditto.
10441         (Fpq_notifies): Ditto.
10442         (Fpq_lo_import): Ditto.
10443         (Fpq_lo_export): Ditto.
10444         (Fpq_get_line): Ditto.
10445         (Fpq_put_line): Mule-ize and bug fix.
10446         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10447
10448 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10449
10450         * postgresql.c (vars_of_postgresql): Mule-ize.
10451         (Fpq_conn_defaults): Ditto.
10452
10453 2000-03-12  Ben Wing  <ben@xemacs.org>
10454
10455         * alloc.c (Fmake_byte_code):
10456         * alloc.c (debug_string_purity_print):
10457         * alloc.c (pdump_backtrace):
10458         * alloc.c (pdump_get_indirect_count):
10459         * alloc.c (pdump_register_sub):
10460         * alloc.c (pdump_register_object):
10461         * alloc.c (pdump_register_struct):
10462         * alloc.c (pdump_dump_data):
10463         * alloc.c (pdump_reloc_one):
10464         Minor cleanups.
10465
10466         * console-msw.c:
10467         * console-msw.c (GetConsoleHwnd):
10468         * console-msw.c (msw_hide_console):
10469         * console-msw.c (msw_show_console):
10470         * console-msw.c (msw_ensure_console_buffered):
10471         * console-msw.c (msw_output_console_string):
10472         * console-msw.c (console_type_create_mswindows):
10473
10474         a) Added functions to manipulate the console window for use with
10475         shell support.
10476
10477         b) Added support for writing text to the console, which is now
10478         used under Windows when xemacs is not being run non-interactively,
10479         to write text that would otherwise be destined for stdout because
10480         under these circumstances, text written to stdout tends to
10481         disappear and not be seen.
10482
10483         * console-msw.h:
10484         * event-Xt.c:
10485         * event-Xt.c (x_event_to_emacs_event):
10486         * event-Xt.c (describe_event_window):
10487         * events-mod.h (XEMACS_MOD_CONTROL):
10488         * events.c:
10489         * events.c (Fmake_event):
10490         * events.c (character_to_event):
10491         * events.c (event_to_character):
10492         * events.c (format_event_object):
10493         * events.c (Fevent_modifiers):
10494         * events.h:
10495         * events.h (struct key_data):
10496         * events.h (struct button_data):
10497         * events.h (struct misc_user_data):
10498         * frame-x.c (Fcde_start_drag_internal):
10499         * frame-x.c (Foffix_start_drag_internal):
10500         * gpmevent.c (Freceive_gpm_event):
10501         * keymap.c:
10502         * keymap.c (bucky_sym_to_bucky_bit):
10503         * keymap.c (control_meta_superify):
10504         * keymap.c (make_key_description):
10505         * keymap.c (keymap_lookup_directly):
10506         * keymap.c (create_bucky_submap):
10507         * keymap.c (keymap_store):
10508         * keymap.c (define_key_check_and_coerce_keysym):
10509         * keymap.c (define_key_parser):
10510         * keymap.c (define_key_alternate_name):
10511         * keymap.c (Fdefine_key):
10512         * keymap.c (raw_lookup_key_mapper):
10513         * keymap.c (struct map_keymap_unsorted_closure):
10514         * keymap.c (map_keymap_unsorted_mapper):
10515         * keymap.c (map_keymap_sort_predicate):
10516         * keymap.c (map_keymap_sorted):
10517         * keymap.c (accessible_keymaps_mapper_1):
10518         * keymap.c (where_is_recursive_mapper):
10519         * keymap.c (describe_map_mapper):
10520         * keymap.c (describe_map_sort_predicate):
10521         * keymap.c (describe_map):
10522         * keymap.c (complex_vars_of_keymap):
10523         And a number of other files, the key modifier preprocessor
10524         constants that xemacs uses have names that conflict with constants
10525         defined under MS Windows for other purposes, so they were renamed
10526         to begin with the prefix XEMACS_. The variables that hold such
10527         modifiers were changed to consistently be of type int to fix
10528         various compile warnings.
10529
10530         * console.c (complex_vars_of_console):
10531         * device.c:
10532         * device-msw.c:
10533         * device-msw.c (mswindows_finish_init_device):
10534         * device-msw.c (msw_get_workspace_coords):
10535         * device-msw.c (mswindows_device_system_metrics):
10536         and various other files, added support for a new
10537         device property called offset-workspace which returns the position
10538         of the upper left corner of the workspace area and goes along with
10539         the existing size-workspace property.
10540
10541         * dialog-msw.c:
10542         * dialog-msw.c (push_bufbyte_string_as_unicode):
10543         * dialog-msw.c (mswindows_popup_dialog_box):
10544         Added support for XEmacs-style accelerator specifications in
10545         button text.  Note: I didn't add support for this under X Windows,
10546         and somebody needs to do this.
10547
10548         * dialog.c:
10549         * dialog.c (Fpopup_dialog_box):
10550         Documented the support for accelerators that was just mentioned.
10551
10552         editfns.c (get_home_directory): Changed behavior under Windows
10553         when HOME not defined; former behavior was irretrievably broken.
10554
10555         * emacs.c:
10556         * emacs.c (main_1):
10557         * emacs.c (main):
10558         * minibuf.c (clear_echo_area_internal):
10559         * minibuf.c (echo_area_append):
10560         * print.c:
10561         * print.c (std_handle_out_external):
10562         * print.c (std_handle_out_va):
10563         * print.c (fatal):
10564         * print.c (write_string_to_stdio_stream):
10565         * print.c (output_string):
10566         * print.c (debug_print):
10567         * print.c (debug_backtrace):
10568         * print.c (debug_short_backtrace):
10569         Cleaned up the code that prints text to stdout so that this can be
10570         changed to output into a console window instead under MS Windows,
10571         as described above.
10572
10573         * eval.c:
10574         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10575         * eval.c (internal_catch):
10576         * eval.c (unwind_to_catch):
10577         * eval.c (throw_or_bomb_out):
10578         * eval.c (condition_case_1):
10579         * eval.c (signal_1):
10580         * eval.c (check_error_state_sanity):
10581         * eval.c (call_with_suspended_errors_1):
10582         * eval.c (call_with_suspended_errors):
10583         * eval.c (reinit_vars_of_eval):
10584         Added code to catch throw loops and check for a pesky bug that may
10585         be gone now.
10586
10587         * event-msw.c:
10588         * event-msw.c (key_needs_default_processing_p):
10589         * event-msw.c (mswindows_wnd_proc):
10590         * event-msw.c (mswindows_modifier_state):
10591         * event-msw.c (emacs_mswindows_quit_p):
10592         * event-msw.c (vars_of_event_mswindows):
10593         a) Added support for using the alt key to select menu items as is
10594         standard under MS Windows.  This is controlled using the variable
10595         menu-accelerator-enabled, just like under X Windows.  There is an
10596         option on the options menu to turn this support on.  I really
10597         think that it should be on by default under Windows, but I'm not
10598         going to make this change yet.
10599
10600         b)  Added support for dynamic display size changes under Windows.
10601
10602         * event-stream.c:
10603         * event-stream.c (maybe_echo_keys):
10604         * event-stream.c (Fnext_event):
10605         * event-stream.c (command_builder_find_leaf):
10606         * event-stream.c (lookup_command_event):
10607         * event-stream.c (execute_command_event):
10608         * event-stream.c (pre_command_hook):
10609         * event-stream.c (post_command_hook):
10610         * event-stream.c (syms_of_event_stream):
10611         * event-stream.c (vars_of_event_stream):
10612         * event-stream.c (complex_vars_of_event_stream):
10613         * events.h (struct command_builder):
10614
10615         a) Tried to clean up a little bit the horribly written x-specific
10616         accelerator code that crept into this file.  I moved this code
10617         into menubar-x.c where it belongs. I also needed to move the
10618         command builder structure into the file events.h because it is
10619         accessed directly by this accelerator code.  What I didn't do, but
10620         which should be done at some point, is to properly abstract this
10621         code using device methods instead of the kludgy way that it
10622         currently hooks into the event code.
10623
10624         b) Added the lisp variables this-command-properties and
10625         last-command- properties, which should be used to synchronize two
10626         adjacent commands in preference to playing games with the variable
10627         this-command, which is typically what happens.
10628
10629         c) Added some slightly nasty code to hook into the lisp support
10630         for shifted- motion-key selection.  This is actually necessary for
10631         somewhat complicated reasons, which are described in
10632         simple.el. (NB: I think the proper thing would be to have the code
10633         that calls the pre and post command hooks also call out to generic
10634         lisp functions in simple.el, where all built-in stuff could be
10635         added.  I will think about this more.)
10636
10637         * event-unixoid.c (poll_fds_for_input):
10638         * lread.c (readchar):
10639         * redisplay-tty.c (tty_clear_frame):
10640         * redisplay-x.c (x_get_gc):
10641         * signal.c (interrupt_signal):
10642         And a whole bunch of other files: fixed up places that printed
10643         directly to stderr to instead call the function stderr_out so that
10644         the changes I made under Windows work correctly.
10645
10646         * filemode.c (mode_string):
10647         Warning fixes.
10648
10649         * frame-msw.c:
10650         * frame-msw.c (mswindows_size_frame_internal):
10651         Fixed the computation of frame size and position to keep the frame
10652         within the workspace area, rather than within the physical
10653         dimensions of the screen, so that the frame doesn't overlap window
10654         manager decorations, such as the start menu and toolbar, typically
10655         at the bottom of the screen.
10656
10657         * frame.c (vars_of_frame):
10658         Changed the default frame title format under MS Windows to consist
10659         of buffername-XEmacs, which is standard under MS Windows.  I think
10660         it might be a good idea to change this everywhere because I think
10661         it is superior to the current frame title format, but this is the
10662         kind of change that is likely to cause some people to get annoyed,
10663         so I'm not making it.
10664
10665         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10666
10667         * gui-msw.c (mswindows_handle_gui_wm_command):
10668         Fixed compile warnings.
10669
10670         * gui-x.c:
10671         * gui-x.c (strdup_and_add_accel):
10672         * gui-x.c (button_item_to_widget_value):
10673         * gui-x.h:
10674         Added code to automatically put an accelerator onto the beginning
10675         of menu items that don't have one as is now the standard, and is
10676         described more later.  Also fixed things so that the menu item
10677         name can be an evaluated expression, again a new standard.
10678
10679         * gui.c:
10680         * gui.c (gui_item_add_keyval_pair):
10681         * gui.c (make_gui_item_from_keywords_internal):
10682         * gui.c (gui_add_item_keywords_to_plist):
10683         * gui.c (gui_item_accelerator):
10684         * gui.c (gui_name_accelerator):
10685         * gui.c (gui_item_included_p):
10686         * gui.c (gui_item_display_flush_left):
10687         * gui.c (gui_item_display_flush_right):
10688         * gui.c (parse_gui_item_tree_item):
10689         * gui.c (parse_gui_item_tree_children):
10690         * gui.c (parse_gui_item_tree_list):
10691         Mule-ized.  Cleanup.  GCPRO addition.
10692
10693         * line-number.c (buffer_line_number):
10694         * lisp.h:
10695         * lisp.h (EMACS_INT_MAX):
10696         Added the manifest constant EMACS_INT_MIN corresponding to the
10697         existing constant EMACS_INT_MAX.  This is partially to fix compile
10698         warnings under Windows, and partly for cleanliness.
10699
10700         * menubar-msw.c:
10701         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10702         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10703         * menubar-msw.c (displayable_menu_item):
10704         * menubar-msw.c (populate_menu_add_item):
10705         * menubar-msw.c (populate_or_checksum_helper):
10706         * menubar-msw.c (populate_menu):
10707         * menubar-msw.c (update_frame_menubar_maybe):
10708         * menubar-msw.c (prune_menubar):
10709         * menubar-msw.c (msw_char_is_accelerator):
10710         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10711         * menubar-msw.c (mswindows_handle_wm_command):
10712         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10713         * menubar-msw.c (mswindows_handle_wm_initmenu):
10714         * menubar-msw.c (mswindows_update_frame_menubars):
10715         * menubar-msw.c (mswindows_free_frame_menubars):
10716         * menubar-msw.c (mswindows_popup_menu):
10717         Fixed a bug in handling accelerators where an extra character
10718         would be displayed in the menu item.  Also generalized the
10719         function displayable_menu_item because it is now used by the
10720         dialog box code as well.  And finally, added code in the functions
10721         that create the menubar to extract a list of accelerators for the
10722         top level menubar, which is used in the event code to determine
10723         whether a particular alt-key combination should be used to invoke
10724         a menu item, or should be passed through to access the standard
10725         XEmacs keymap binding for this key combination.
10726
10727         Much needed GCPROing.
10728
10729         * menubar-x.c:
10730         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10731         * menubar-x.c (menu_item_descriptor_to_widget_value):
10732         * menubar-x.c (restore_in_menu_callback):
10733         * menubar-x.c (x_popup_menu):
10734         * menubar-x.c (menu_move_up):
10735         * menubar-x.c (menu_move_down):
10736         * menubar-x.c (menu_move_left):
10737         * menubar-x.c (menu_move_right):
10738         * menubar-x.c (menu_select_item):
10739         * menubar-x.c (command_builder_operate_menu_accelerator):
10740         * menubar-x.c (menu_accelerator_junk_on_error):
10741         * menubar-x.c (command_builder_find_menu_accelerator):
10742         * menubar-x.c (Faccelerate_menu):
10743         * menubar.h:
10744         Moved a whole bunch of code here that was previously in
10745         event-stream.c as described above.  There is also code connected
10746         to the new standard of adding an accelerator to the beginning of
10747         menu items that don't have one as described above and below.
10748
10749         * menubar.c:
10750         * menubar.c (menu_parse_submenu_keywords):
10751         * menubar.c (Fmenu_find_real_submenu):
10752         * menubar.c (Fnormalize_menu_item_name):
10753         * menubar.c (syms_of_menubar):
10754         * menubar.c (vars_of_menubar):
10755         * menubar.c (complex_vars_of_menubar):
10756
10757         a) Cleaned up a bunch of documentation and improved it.
10758
10759         b) XEmacs now automatically adds an accelerator onto the beginning
10760         of any menu items that don't have one.  I did this because there
10761         will inevitably be some menu items on the main menubar that don't
10762         have accelerators on them because the package that adds that
10763         particular menu item hasn't yet been fixed up to have accelerators
10764         in them and it looked rather strange to have some items with and
10765         some items without accelerators, especially since even in items
10766         without accelerators, you can, at least under windows, still
10767         access the item through an accelerator corresponding to the first
10768         character in the item's name.  If people don't like this behavior,
10769         I can add a variable to turn it off optionally, but I'm not sure
10770         this is a good idea because we really do need to have accelerators
10771         on all of the menu items, and if a package doesn't like the
10772         accelerators being put on the first character, then it should put
10773         the accelerators where they belong.
10774
10775         c) I made a behavior change, which is that the descriptor that
10776         specifies the text of the menu item, which formerly was just a
10777         string, can now also be an evaluated expression.  This makes this
10778         descriptor parallel with all of the others, which could also be
10779         evaluated expressions.  This also obviates the need for the
10780         keyword :label, which was previously listed in the documentation
10781         as unimplemented, and which was for the same purpose.
10782
10783         d) GCPROing.
10784
10785         * ntproc.c:
10786         * ntproc.c (new_child):
10787         * ntproc.c (sys_spawnve):
10788         * ntproc.c (find_child_console):
10789         * ntproc.c (sys_kill):
10790         Fixed compile warnings.  By the way, this file should really go
10791         away entirely, and this will happen as soon as Kirill makes his
10792         final round of process cleanups, which affect the function
10793         call-process.
10794
10795         * process-nt.c:
10796         * process-nt.c (struct nt_process_data):
10797         * process-nt.c (find_process_from_pid):
10798         * process-nt.c (send_signal_the_nt_way):
10799         * process-nt.c (enable_child_signals):
10800         * process-nt.c (find_child_console):
10801         * process-nt.c (send_signal_the_95_way):
10802         * process-nt.c (nt_finalize_process_data):
10803         * process-nt.c (ensure_console_window_exists):
10804         * process-nt.c (nt_create_process):
10805         * process-nt.c (nt_kill_child_process):
10806         * process-nt.c (nt_kill_process_by_pid):
10807         * process-nt.c (nt_open_network_stream):
10808         * process-nt.c (vars_of_process_nt):
10809         Copied over code from Emacs 20.5 to correctly send signals to sub-
10810         processes under Windows 95.  Also added code to automatically
10811         create and hide console window when a sub-process is created under
10812         Windows 95, which obviates the need for the separate runemacs.exe
10813         executable, and finally implemented some variables that were
10814         implemented in Emacs 20.5, but previously not in XEmacs.  These
10815         include mswindows- start-process-share-console and
10816         mswindows-start-process-inherit-error-mode. (Both of these only
10817         apply to Windows 95.)
10818
10819         * regex.c (regex_compile): Fixed a compile warning.
10820
10821         * select-msw.c:
10822         * select-msw.c (mswindows_own_selection):
10823         * select-msw.c (mswindows_get_foreign_selection):
10824         * select-msw.c (mswindows_disown_selection):
10825         * select-msw.c (console_type_create_select_mswindows):
10826         * select-msw.c (syms_of_select_mswindows):
10827         Cleaned up the file and implemented the device method
10828         selection_exists_p, which had accidentally been left out.  Also
10829         removed four lisp functions that were remnants from before the
10830         time when the selection code was properly device abstracted.
10831         These functions are no longer needed because there are generic
10832         equivalents, and because they were added recently and don't exist
10833         in FSF Emacs, I don't think there's any problem with just deleting
10834         them.
10835
10836         * sysdep.c:
10837         * sysdep.c (sys_subshell):
10838         Fixed a compile warning, although in this case there's probably
10839         something wrong with this code, and it ought to be looked into
10840         more thoroughly by somebody who understands it.
10841
10842         * window.c:
10843         * window.c (Fwindow_text_area_height):
10844         * window.c (Fwindow_width):
10845         * window.c (Fwindow_full_width):
10846         * window.c (Fwindow_pixel_width):
10847         * window.c (debug_print_window):
10848         * window.c (syms_of_window):
10849         Added functions window-text-area-height and window-full-width,
10850         which are functions for returning various width and height
10851         characteristics of a window. (One of these functions is necessary
10852         for making the file dialog box work correctly, and the other one
10853         was added for completeness.)  Also added a table to the
10854         documentation for window-height which describes the entire scheme
10855         for accessing width and height characteristics of a window.
10856
10857 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10858
10859         * nt.c (fstat): Added a comment for another problem with
10860         non-encapsulated [f]stat(), reported by Adrian Aichner
10861         <aichner@ecf.teradyne.com>.
10862
10863 2000-03-11  Andy Piper  <andy@xemacs.org>
10864
10865         * window.c (make_dummy_parent): initialize subwindow instance
10866         cache.
10867         (Fset_window_configuration): zero extent_modiff.
10868
10869 2000-03-10  Andy Piper  <andy@xemacs.org>
10870
10871         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10872         more changes can be triggered.
10873         (Fredisplay_frame): ditto.
10874         (Fredraw_device): ditto.
10875         (Fredisplay_device): ditto.
10876         (redisplay_frame): make non-static.
10877         (redisplay_frame): call update_frame_gutter_geometry outside of
10878         display proper.
10879
10880         * gutter.h: declare update_frame_gutter_geometry.
10881
10882         * redisplay.h: declare redisplay_frame.
10883
10884         * gutter.c (update_frame_gutter_geometry): move geometry changes
10885         in update_frame_gutters here. Geometry changes can only occur
10886         outside of redisplay.
10887         (update_frame_gutters): remove geometry change code.
10888         (Fredisplay_gutter_area): make sure that we are in display when we
10889         update and that we have flushed any size changes.
10890
10891 2000-03-11  Andy Piper  <andy@xemacs.org>
10892
10893         * alloc.c (pdump_dump_data): remove i & count shadows.
10894
10895 2000-02-27  Mike Alexander  <mta@arbortext.com>
10896
10897         * sysdep.h: Declare pdump_read_file
10898
10899         * sysdep.c (pdump_read_file): New function
10900
10901         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10902         dump data
10903
10904 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10905
10906         * lrecord.h: add `lrecord_type_pgsetenv'.
10907
10908 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10909
10910         * symsinit.h: declare (vars|syms)_of* functions.
10911         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10912
10913 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10914
10915         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10916
10917         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10918         GCCs.
10919
10920         * emacs.c (main_1): Call postgres initialization code.
10921
10922         * postgresql.h: New file.  PostgreSQL RDBMS support.
10923         * postgresql.c: New file.
10924
10925 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10926
10927         * redisplay-output.c (redisplay_output_display_block): Disable
10928         redundant code.
10929
10930 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10931
10932         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10933         (Fcanna_henkan_next): Ditto.
10934         (Fcanna_bunsetu_henkou): Ditto.
10935         (Fcanna_henkan_kakutei): Ditto.
10936         (Fcanna_henkan_end): Ditto.
10937         (Fcanna_henkan_quit): Ditto.
10938         (Fcanna_henkan_next): Set retun value correctly.
10939         (c2mu): Use unsigned char instead of signed char.
10940
10941 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10942
10943         * emacs.c (main_1): Always call syms_of_gui.
10944         * inline.c: include gui.h
10945
10946 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10947
10948         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10949         converted to Lisp_Object.
10950         (Qtop_bottom): New variable.
10951         (syms_of_redisplay): Initialize it.
10952         * redisplay.h (Vvisible_bell): Ditto.
10953         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10954         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10955         only flash top and bottom.
10956
10957 2000-03-08  Andy Piper  <andy@xemacs.org>
10958
10959         * buffer.c (Frename_buffer): record new buffer name the right way.
10960
10961 2000-03-08  Andy Piper  <andy@xemacs.org>
10962
10963         * glyphs.c (update_subwindow): increase hash depth so that widget
10964         items get picked up properly.
10965
10966         * redisplay-output.c (compare_runes): increase hash depth so that
10967         widget items get picked up properly.
10968
10969 2000-03-08  Andy Piper  <andy@xemacs.org>
10970
10971         * gutter.c (output_gutter): add some debug.
10972
10973         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10974         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10975         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10976
10977         * redisplay-output.c (compare_runes): use display_hash to
10978         determine if glyphs really are not the same.
10979
10980         * glyphs.c (update_subwindow): check display_hash to see if
10981         anything really needs to be updated. If not then do
10982         nothing. Record the display_hash after updating.
10983         (image_instance_equal): compare the image_instance face also.
10984
10985 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10986
10987         * redisplay.h: Fix comment style.
10988
10989 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10990
10991         * consle-msw.h (struct mswindows_frame):
10992         Added new member paint_pending to indicate whether a WM_PAINT
10993         magic event has been queued for this frame.
10994
10995         * event-msw.c (mswindows_drain_windows_queue):
10996         Don't queue a WM_PAINT magic event if one is already queued.
10997         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10998
10999         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11000
11001 2000-03-07  Didier Verna  <didier@xemacs.org>
11002
11003         * dired.c: #include `regex.h' after `sysfile.h'.
11004
11005 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11006
11007         * sound.c (init_nas_sound): Fix compiler warning.
11008
11009         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11010         (FREE_STRUCT_P):
11011         (MARK_STRUCT_AS_FREE):
11012         (MARK_STRUCT_AS_NOT_FREE):
11013         Make `gcc -fstrict-aliasing' work properly.
11014
11015 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11016
11017         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11018         (mswindows_delete_device): Call CoUnnitialize().
11019
11020         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11021
11022 2000-02-25    <CraigL@DyCon.com>
11023
11024         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11025         <errno.h>.
11026
11027         * sysdep.c: This extern declaration for environ prevents MinGW
11028         from finding the variable in CRTDLL.DLL.
11029
11030         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11031         windows headers.
11032         (SHGFI_EXETYPE): ..
11033         (WM_MOUSEWHEEL): ..
11034         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11035         definitions.
11036         (MMRESULT): Removed, now defined in cygwin's windows headers.
11037         (TIMECAPS): ..
11038         (uid_t,gid_t,pid_t,ssize_t): ..
11039         (_timeb): Removed, MinGW defines both _timeb and timeb.
11040         (HAVE_H_ERRNO): Added.
11041         (HAVE_TZNAME): Added, configure is not detecting this.
11042
11043 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11044
11045         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11046         * syntax.c (syntax_match): Use it.
11047
11048         * cmds.c: Import auto-fill-chars from FSF Emacs.
11049         (Vauto_fill_chars): New variables.
11050         (internal_self_insert): Check Vauto_fill_chars.
11051         (vars_of_cmds):
11052         Declare auto-fill-chars as a Lisp variable and initialize it.
11053
11054 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11055
11056         * fileio.c (Fmake_symbolic_link):
11057         (Ffile_symlink_p):
11058         Run handlers even if local machine doesn't have symlinks.
11059
11060 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11061
11062         * event-msw.c (mswindows_drain_windows_queue):
11063         Don't generate paint magic events for non-XEmacs frames.
11064
11065 2000-03-05  Andy Piper  <andy@xemacs.org>
11066
11067         * redisplay.c (redisplay_frame): generate_displayable_area and
11068         friends assumes that we are not in GC, we therefore have to make
11069         sure that this doesn't happen.
11070
11071         * gutter.c (calculate_gutter_size): generate_displayable_area
11072         assumes that we are not in GC, we therefore have to make sure that
11073         this doesn't happen.
11074
11075 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11076
11077         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11078
11079 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11080
11081         * redisplay.c (regenerate_window): Make sure we set a sane value
11082         for end_pos even if we jump out of the loop.
11083         (regenerate_window): Answer Ben's question :-).
11084         (start_end_of_last_line): Add may_error argument.
11085         (start_of_last_line):
11086         (end_of_last_line): Pass may_error = 0.
11087         (end_of_last_line_may_error): New function.
11088         (pixel_to_glyph_translation): Use it, so we don't crash in
11089         event_to_glyph.
11090
11091 2000-03-04  Andy Piper  <andy@xemacs.org>
11092
11093         * window.h (struct window): add gutter_extent_modiff.
11094
11095         * window.c (allocate_window): zero out gutter_extent_modiff.
11096
11097         * redisplay.h: declare sync_display_line_structs.
11098
11099         * redisplay.c (add_glyph_rune): add a better comment.
11100
11101         * redisplay-output.c (sync_display_line_structs): made non-static.
11102         (compare_runes): remove unneccesary glyph cachel access.
11103
11104         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11105
11106         * gutter.c (output_gutter): don't output the gutter if extent
11107         changes only involve extents in buffers. use 4 sets of display
11108         lines.
11109         (gutter_extent_signal_changed_region_maybe): new function. Mark
11110         extents in gutters as changed.
11111         (update_frame_gutters): use 4 sets of display lines.
11112         (reset_gutter_display_lines): ditto.
11113         (free_frame_gutters): ditto.
11114         (redraw_exposed_gutter): force output of gutters.
11115
11116         * frame.h (struct frame): add 4 sets of gutter display lines.
11117
11118         * extents.c: (extent_changed_for_redisplay): signal changes to
11119         extents in strings in the gutter as well as extents in buffers.
11120
11121 2000-03-02  Andy Piper  <andy@xemacs.org>
11122
11123         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11124
11125         * frame.c (Fmake_frame): make sure the gutters get initialized
11126         after the frame is visible.
11127         (set_frame_selected_window): re-arrange compilation macros a
11128         little.
11129         (change_frame_size_1): mark gutters changed.
11130
11131         * device.c (Fset_device_class): mark gutters changed.
11132
11133 2000-03-01  Andy Piper  <andy@xemacs.org>
11134
11135         * window.c (window_top_frame_gutter_height): deleted.
11136         (window_bottom_frame_gutter_height): ditto.
11137         (window_left_frame_gutter_height): ditto.
11138         (window_right_frame_gutter_height): ditto.
11139         (window_top_gutter_height): don't use them.
11140         (window_bottom_gutter_height): ditto.
11141         (window_left_gutter_width): ditto.
11142         (window_right_gutter_width): ditto.
11143         (Fsplit_window): ditto.
11144         (Fwindow_pixel_edges): don't use border dimensions here.
11145
11146         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11147         (update_scrollbar_instance): ditto.
11148
11149         * redisplay.c (generate_modeline): don't take gutters into account.
11150         (generate_modeline): ditto.
11151         (redisplay_frame): small gutter display optimization.
11152
11153         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11154
11155         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11156         gutters into account.
11157
11158         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11159         for window position and type.
11160
11161         * gutter.c (get_gutter_coords): fix for frame gutters.
11162         (update_frame_gutters): update frame geometry if the gutters have
11163         changed.
11164         (init_frame_gutters): record current gutter geometries.
11165
11166         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11167         var.
11168         (mswindows_widget_instantiate): ditto.
11169
11170         * frame.h (struct frame): add current_gutter_bounds.
11171
11172         * frame.c (change_frame_size_1): position window and minibuffer
11173         appropriately taking into account the frame gutters.
11174
11175         * frame-x.c: (x_initialize_frame_size): take into account the
11176         frame gutters.
11177
11178 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11179
11180         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11181
11182 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11183
11184         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11185
11186 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11187
11188         * file-coding.c (reset_decoding_stream): Clear previous
11189         detection state when autodetect.
11190
11191 2000-02-29  Didier Verna  <didier@xemacs.org>
11192
11193         * extents.c (set_extent_glyph_1): don't require extents to be
11194         attached.
11195
11196 2000-02-27  Andy Piper  <andy@xemacs.org>
11197
11198         * gutter.c (Fset_default_gutter_position): don't default left and
11199         right gutter visibility to t.
11200         (Fset_default_gutter_position): run
11201         default-gutter-position-changed-hook.
11202         (syms_of_gutter): add default-gutter-position-changed-hook.
11203
11204 2000-02-26  Andy Piper  <andy@xemacs.org>
11205
11206         * specifier.c (Fmake_specifier): add gutter references.
11207
11208         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11209
11210         * lisp.h: declare Fvalid_plist_p.
11211
11212         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11213         as changed.
11214         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11215         well as its visibility so that it gets reconstructed.
11216         (construct_window_gutter_spec): new function. Construct a string
11217         to be displayed in the gutter from a plist of strings. Take care
11218         to only use elements that are declared as visible.
11219         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11220         WINDOW_GUTTER.
11221         (gutter_validate): allow plists of strings in the specifier.
11222         (gutter_specs_changed): construct the real_gutter from the gutter
11223         specs using construct_window_gutter_spec.
11224         (gutter_visible_validate): gutter-visible is a new specifier type.
11225         (Fgutter_visible_specifier_p): new function for the new specifier.
11226         (syms_of_gutter): declare gutter-visible and
11227         Fgutter_visible_specifier_p.
11228         (specifier_type_create_gutter): intitalize new gutter-visible
11229         specifier.
11230         (reinit_specifier_type_create_gutter): ditto.
11231         (specifier_vars_of_gutter): use new specifier type for gutter
11232         visibility.
11233         (init_frame_gutters): construct real_gutter correctly.
11234         (Fgutter_specifier_p): beef up documentation.
11235         (Fgutter_size_specifier_p): ditto.
11236
11237         * winslots.h: add real_gutter slots.
11238
11239 2000-02-25  Andy Piper  <andy@xemacs.org>
11240
11241         * device-msw.c: Be kind to older cygwin versions. From Raymond
11242         Toy <toy@rtp.ericsson.se>.
11243
11244         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11245         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11246
11247 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11248
11249         * elhash.c (MARK_OBJ): Practice macro hygiene.
11250
11251 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11252
11253         * miscplay.c: s/__inline__/inline/g;
11254         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11255         (get_device_compdc): INLINE ==> static inline
11256         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11257         find -name '*.h' | \
11258         xargs global-replace \
11259         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11260
11261 2000-02-25  Andy Piper  <andy@xemacs.org>
11262
11263         * window.c (window_top_frame_gutter_height): new function.
11264         (window_top_window_gutter_height): ditto.
11265         (window_top_gutter_height): use them.
11266         (window_bottom_frame_gutter_height): new function.
11267         (window_bottom_window_gutter_height): ditto.
11268         (window_bottom_gutter_height): use them.
11269         (window_left_window_gutter_width): new function.
11270         (window_left_frame_gutter_width): ditto.
11271         (window_left_gutter_width): use them.
11272         (window_right_window_gutter_width): new function.
11273         (window_right_frame_gutter_width): ditto.
11274         (window_right_gutter_width): use them.
11275         (window_pixel_height): new function. calulate window pixel height
11276         with frame gutter involvement.
11277         (Fsplit_window): calculate new sizes taking frame gutters into
11278         account.
11279         (window_char_height_to_pixel_height): don't include frame gutters.
11280         (window_char_height): use window_pixel_height.
11281         (window_pixheight): rename from window_pixel_height.
11282         (change_window_height): use it.
11283         (window_pixel_height_to_char_height): don't include frame gutters.
11284         (window_char_width_to_pixel_width): ditto.
11285
11286 2000-02-25  Andy Piper  <andy@xemacs.org>
11287
11288         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11289         if it is.
11290
11291 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11292
11293         * alloc.c (staticpro):
11294         (staticpro_nodump):
11295         (dumpstruct):
11296         (dumpopaque):
11297         (pdump_wire):
11298         (pdump_wire_list):
11299         (compact_string_chars):
11300         (pdump_dump_wired):
11301         Convert:  if (foo) abort();  ==>  assert (! foo);
11302
11303         * eldap.c (Fldap_search_basic):
11304         (Fldap_add):
11305         (Fldap_modify):
11306         (Fldap_delete):
11307         Fix compiler warnings, and possible crashes if (random) return
11308         value were to be used.
11309
11310 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11311
11312         * device-msw.c: Workaround ResetDC failure.
11313
11314         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11315         applying a devmode.
11316
11317         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11318         (mswindows_text_width): Do not start printer page.
11319
11320         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11321
11322         * glyphs-msw.c: Added image methods to msprinter console and
11323         msprinter-specific image instantiation.
11324
11325 2000-02-20  Mike Alexander  <mta@arbortext.com>
11326
11327         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11328         to avoid crashes when selection-sets-clipboard is on
11329         (mswindows_own_selection): ditto
11330
11331 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11332
11333         * glyphs-msw.c:
11334         * redisplay-msw.c (get_frame_dc):
11335         (get_frame_compdc):
11336         * console-msw.h:
11337         * device-msw.c (mswindows_init_device):
11338         (mswindows_delete_device):
11339         (msprinter_init_device):
11340         (msprinter_delete_device):
11341         * frame-msw.c (mswindows_init_frame_1):
11342         (mswindows_delete_frame):
11343         (msprinter_init_frame_3):
11344         (msprinter_delete_frame): Move compatible DC to device object from
11345         frame object, for both mswindows and msprinter. Only one at a time
11346         is needed, it is a real waste to have one per frame!
11347
11348 2000-02-23  Andy Piper  <andy@xemacs.org>
11349
11350         * glyphs.c: add dynamic width and height elements.
11351         (image_instance_equal): ditto.
11352
11353         * glyphs-widget.c (widget_query_geometry): calculate width and
11354         height dynamically if required.
11355         (initialize_widget_image_instance): initialize dynamic dimensions.
11356         (widget_instantiate): pick-up dynamic dimensions.
11357
11358         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11359         dynamic determination. Add appropriate macros.
11360
11361         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11362         dimensions safe.
11363         (WINDOW_GUTTER_SIZE): ditto.
11364         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11365
11366         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11367         inline.
11368         (get_frame_dc): ditto.
11369
11370         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11371         here.
11372
11373 2000-02-23  Martin Buchholz <martin@xemacs.org>
11374
11375         * XEmacs 21.2.31 is released.
11376
11377 2000-02-22  Ben Wing <ben@xemacs.org>
11378
11379         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11380
11381 2000-02-22  Andy Piper  <andy@xemacs.org>
11382
11383         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11384
11385 2000-02-21  Mike Sperber <mike@xemacs.org>
11386
11387         * .dbxrc:
11388         * .gdbinit:
11389         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11390         variables.
11391
11392 2000-02-21  Mike Sperber <mike@xemacs.org>
11393
11394         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11395
11396 2000-02-21  Martin Buchholz <martin@xemacs.org>
11397
11398         * XEmacs 21.2.30 is released.
11399
11400 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11401
11402         Performance hacking.
11403         * *.c (syms_of_*):
11404         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11405         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11406         * emacs.c (main_1):
11407         * lisp.h (DEFUN):
11408         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11409         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11410         * symeval.h (DEFVAR_SYMVAL_FWD):
11411         * symbols.c (guts_of_unbound_marker):
11412         Make all c_readonly objects also lisp_readonly and marked for life.
11413         * lrecord.h (struct lrecord_implementation):
11414         Document flags better.
11415         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11416         * lrecord.h (DECLARE_LRECORD):
11417         * lrecord.h (XSETRECORD):
11418         * lrecord.h (RECORDP):
11419         * lrecord.h (RECORD_TYPEP):
11420         * lrecord.h (RECORD_MARKER): New.
11421         * lrecord.h (error_check_*):
11422         * lrecord.h (CONCHECK_NONRECORD):
11423         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11424         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11425         * lrecord.h (set_lheader_implementation):
11426         * lrecord.h (enum lrecord_type): New.
11427         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11428         * alloc.c (disksave_object_finalization_1):
11429         * alloc.c (mark_object):
11430         * alloc.c (lrecord_type_index):
11431         * alloc.c (tick_lcrecord_stats):
11432         * alloc.c (Fgarbage_collect):
11433         * alloc.c (init_alloc_once_early):
11434         * alloc.c (pdump_load):
11435         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11436         * alloc.c (lrecord_type_index): Delete.
11437         Make lisp object type indexes be constant.
11438           Makes (byte-compile) 5% faster.
11439         Put all marker functions into their own array.
11440           Makes (garbage-collect) 5% faster.
11441         Optimize SYMBOL_VALUE_MAGIC_P.
11442           Makes (byte-compile) 2-3% faster.
11443         * config.h.in (gc_checking_assert): New.
11444         * alloc.c: Use gc_checking_assert().
11445         * .dbxrc: Make compatible with new object type implementation.
11446         * .gdbinit: Make compatible with new object type implementation.
11447         * alloc.c: Delete all symbols defined only for debugging, such as
11448         Lisp_Type_Vector and lrecord_charset.
11449
11450 2000-02-21  Andy Piper  <andy@xemacs.org>
11451
11452         * gui-msw.c (Fmswindows_shell_execute): fix file location
11453         problems.
11454
11455         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11456         unshowing so that set_window_buffer doesn't undo
11457         kill_buffer_hook's hard work.
11458
11459         * glyphs-widget.c (tab_control_query_geometry): don't count the
11460         first item when calculating geometry.
11461
11462         * glyphs.c (map_subwindow): remove redundant code.
11463         (update_frame_subwindows): be more circumspect about when to
11464         update subwindows.
11465
11466         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11467         when items haven't changed. Update faces if faces have changed as
11468         well as just the widget face.
11469         (x_tab_control_update): Update faces if faces have changed as well
11470         as just the widget face.
11471
11472 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11473
11474         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11475         registration.
11476         (build_syscolor_string): Use mswindows_color_to_string to try to
11477         get a named color.
11478         (mswindows_device_system_metrics): Reverse the foreground and
11479         background colors so that they match the documentation.
11480
11481         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11482         they match the default Windows palette.
11483         (mswindows_color_to_string): New function.
11484
11485 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11486
11487         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11488
11489 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11490
11491         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11492         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11493
11494         * symbols.c (init_symbols_once_early): Removed obsolete
11495         DATA_SEG_BITS related kludge.
11496         (defvar_magic): Ditto.
11497
11498         * malloc.c: Removed obsolete DATA_SEG_BITS
11499         * ralloc.c: Ditto.
11500         * mem-limits.h: Ditto.
11501
11502         * Makefile.in.in: Removed obsolete HAVE_SHM
11503         * emacs.c: Ditto.
11504
11505 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11506
11507         *  device-msw.c (mswindows_delete_device): Free DDE string
11508         handles.
11509
11510 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11511
11512         * keymap.c (get_keyelt):
11513         * unexnt.c (unexec):
11514         * vm-limit.c (memory_warnings):
11515         * ntheap.c (recreate_heap):
11516         * ntheap.h (UNINIT_PTR):
11517         * select-msw.c (Fmswindows_get_clipboard):
11518         (Fmswindows_set_clipboard):
11519         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11520         * objects-msw.c:
11521         * menubar-msw.c (displayable_menu_item):
11522         * glyphs-msw.c:
11523         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11524         * sysdep.c (sys_subshell):
11525         * process-nt.c (nt_create_process):
11526         * nt.c (normalize_filename):
11527         (dostounix_filename):
11528         (unixtodos_filename):
11529         * ntproc.c (win32_executable_type):
11530         * ntplay.c (play_sound_data_1):
11531         (play_sound_file):
11532         * editfns.c (get_home_directory):
11533         * event-msw.c (struct winsock_stream):
11534         (mswindows_dde_callback):
11535         * device-msw.c (msprinter_init_device):
11536         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11537
11538         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11539         mswindows_clear_toolbar were swapped!
11540
11541         * objects-msw.c:(colormap_t):
11542         (fontmap_t):
11543         * emacs.c (struct standard_args): Fixed const jumble.
11544
11545         * glyphs-widget.c (update_widget): Fixed comparison notation.
11546
11547         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11548
11549         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11550         __declspec(noreturn) syntax.
11551
11552 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11553
11554         * eldap.c (Fldap_open):
11555         (Fldap_search_basic):
11556         (Fldap_add):
11557         (Fldap_modify):
11558         Use new coding system conversion macros.
11559
11560 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11561
11562         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11563
11564 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11565
11566         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11567         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11568
11569         * eldap.c (Qadd, Qreplace): New constant symbols
11570         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11571         interruptions by XEmacs signals
11572         Remove unnecessary calls to slow_down_interrupts and
11573         speed_up_interrupts
11574         (Fldap_search_basic): Renamed from Fldap_search_internal
11575         Added new optional parameter VERBOSE that triggers the
11576         display of progress messages
11577         Remove unnecessary calls to slow_down_interrupts and
11578         speed_up_interrupts
11579         LDAP result code analysis rewritten
11580         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11581         (syms_of_eldap): Define the new symbols and functions
11582
11583
11584 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11585
11586         * realpath.c: Determine PATH_MAX maximally portably.
11587
11588         * insdel.c (bytecount_to_charcount): Optimize.
11589         The function used to be optimized for entirely ASCII sequences.
11590         Now it is optimized for successive characters from the same
11591         charset.  This also wins big for _mostly_ ASCII sequences.
11592
11593         * fileio.c (Ffile_truename): convert return from realpath() using
11594         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11595         - Rewrite GCPROing slightly.
11596
11597         * sysdep.c (sys_open): Do filename conversion, like all other
11598         sys_* functions.  Fixes bug:
11599         (let ((file-name-coding-system 'iso-8859-2))
11600            (write-region x y latin2-name))
11601         ==> writes filename using internal encoding.
11602
11603 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11604
11605         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11606         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11607         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11608         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11609         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11610         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11611         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11612         (CONST_IF_NOT_DEBUG): Delete.
11613         * alloc.c (this_one_is_unmarkable): Delete.
11614         (mark_object): Don't check for this_one_is_unmarkable. Use the
11615         c_readonly flag instead.
11616         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11617
11618 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11619
11620         * event-msw.c (mswindows_drain_windows_queue):
11621         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11622         away redundant repaint events.
11623
11624 2000-02-17  Andy Piper  <andy@xemacs.org>
11625
11626         * redisplay.h: declare mark_redisplay_structs.
11627
11628         * redisplay.c (redisplay_window):
11629         (redisplay_frame): don't check subwindows_state_changed.
11630         (mark_redisplay): mark gutters here.
11631
11632         * glyphs.c: (instantiate_image_instantiator): always layout if we
11633         haven't done so already.
11634         (allocate_image_instance): don't mark as dirty.
11635         (update_subwindow): bind inhibit_quit.
11636
11637         * gutter.c (mark_gutters): new function.
11638
11639         * glyphs-x.c (x_update_widget): Always resize to get round a
11640         widget bug.
11641
11642         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11643         breaking absolutely everything.
11644
11645         * gutter.h: declare mark_gutters.
11646
11647 2000-02-16  Martin Buchholz <martin@xemacs.org>
11648
11649         * XEmacs 21.2.29 is released.
11650
11651 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11652
11653         * fns.c (size_bit_vector): Fix computation of the size.
11654
11655 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11656
11657         * *.[ch]: Change CONST to const globally.
11658         find -name '*.[ch]' | \
11659         xargs global-replace \
11660         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11661         - Remove vestigial references to CONST_IS_LOSING
11662
11663 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11664
11665         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11666         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11667         events instead of dispatching them directly.
11668         (mswindows_handle_paint): New function to do repainting.
11669         (mswindows_wnd_proc):
11670         (emacs_mswindows_handle_magic_event): Call above function.
11671
11672 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11673
11674         * objects-msw.c (mswindows_create_font_variant): Return the new
11675         font handle.
11676         (initialize_font_instance): Get font metrics from the underlined
11677         variant of the font to cope with the case where the underlined
11678         font has a bigger descent.
11679
11680 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11681
11682         * gui.c (gui_item_accelerator): Return the first underlined
11683         character in item name.
11684
11685 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11686
11687         * lisp.h: Added Qprinter.
11688
11689         * general.c (syms_of_general): Initialized it.
11690
11691         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11692         (get_frame_dc):
11693         (get_frame_compdc): Made inline.
11694
11695         * console.h (struct console_methods): Added eject_page method.
11696
11697         * frame.h: Added FRAME_DISPLAY_P and friends.
11698         Aligned backslahes in many macros in more readable fashion.
11699         Added page_number to struct frame, and an accessor macro
11700         for it.
11701
11702         * defice.h: Added DEVICE_DISPLAY_P and friends.
11703
11704         * device.c (Fdevice_printer_p): Used these.
11705
11706         * frame.c (allocate_frame_core): Initialize page number.
11707         (Fprint_job_page_number):
11708         (Fprint_job_eject_page): Implemented.
11709
11710         * frame-msw.c (msprinter_eject_page): Added method.
11711         (msprinter_start_page): Added.
11712
11713         * window.c (Fwindow_truncated_p): Fixed docstring.
11714         (Fwindow_last_line_visible_height): Implemented.
11715
11716 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11717
11718         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11719
11720 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11721
11722         * syntax.c (scan_words): Always advance at least one character.
11723
11724 2000-02-13  Andy Piper  <andy@xemacs.org>
11725
11726         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11727         to make sure the glyph is in the cachels.
11728
11729         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11730         global image instance flag.
11731         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11732         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11733
11734         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11735         (Fset_image_instance_property): mark layout as changed.
11736         (invalidate_glyph_geometry_maybe): mark layout as changed.
11737         (glyph_width): use new NEEDS_LAYOUT macro.
11738         (glyph_ascent): ditto.
11739         (glyph_descent): ditto.
11740         (glyph_height): ditto.
11741         (image_instance_layout): mark layout as clean after laying out.
11742         (update_subwindow): don't mark layout as clean here.
11743
11744         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11745         should no longer be needed.
11746
11747         * glyphs-x.c (x_update_widget): sanitize asserts.
11748         (x_finalize_image_instance): sanitize assignment to widgets.
11749
11750         * glyphs-widget.c (widget_instantiate): don't need to clear the
11751         layout flag here.
11752
11753 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11754
11755         * sysdep.c (getcwd): Use standard prototype.
11756         * sysdep.h (getcwd): Use standard prototype.
11757
11758         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11759         (sequence, start, end).
11760         Remove redundant type checking.
11761         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11762         view of `caller-protects') to avoid a crash where the real fix was
11763         found elsewhere.
11764
11765 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11766
11767         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11768
11769         * s/sol2.h: Remove feature macro initialization.
11770
11771         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11772         (vector_hash): New.  Code from internal_hash.
11773         * lrecord.h:
11774         Fix up allocation subsystem comments.
11775
11776         * config.h.in: Add __EXTENSIONS__ for Solaris.
11777
11778         * systime.h (EMACS_GETTIMEOFDAY): New.
11779         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11780         Remove Solaris-specific code.
11781         Use void* for the (ignored) second arg for gettimeofday().
11782
11783         * elhash.c (hash_table_hash): Implement it, finally.
11784         * elhash.c:  Use hashcode_t.
11785
11786         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11787         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11788
11789         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11790         * fns.c (size_bit_vector):
11791         * alloc.c (size_vector):
11792         (make_vector_internal):
11793         (make_bit_vector_internal):
11794         (sweep_bit_vectors_1):
11795         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11796
11797 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11798
11799         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11800         Include strings.h to avoid warnings for bzero and strcasecmp.
11801
11802 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11803
11804         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11805         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11806
11807         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11808         sequence.
11809
11810 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11811
11812         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11813         use a value field instead.
11814         (symbol_value_forward_forward): Use value field.
11815         (DEFVAR_SYMVAL_FWD): Use value field.
11816         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11817         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11818         (DEFVAR_CONST_INT): Ditto.
11819         (DEFVAR_BOOL): Ditto.
11820         (DEFVAR_CONST_BOOL): Ditto.
11821         (DEFVAR_INT_MAGIC): Ditto.
11822         (DEFVAR_BOOL_MAGIC): Ditto.
11823
11824         * symbols.c (guts_of_unbound_marker): Use value field.
11825         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11826         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11827
11828         * lisp.h: Declare dumpopaque and noninteractive1.
11829
11830         * alloc.c (dumpopaque): Added.
11831         (pdump_dump_opaquevec): Added.
11832         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11833         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11834         noninteractive.
11835
11836 2000-02-10  Andy Piper  <andy@xemacs.org>
11837
11838         * glyphs.c (image_instance_layout): if the size changes, mark it
11839         as such.
11840
11841         * redisplay-output.c (redisplay_output_layout): Update the
11842         subwindow here.
11843         (redisplay_output_subwindow): ditto.
11844
11845         * glyphs.c (update_subwindow): make sure we reset flags for
11846         layouts as well as everything else.
11847
11848         * glyphs-widget.c (layout_layout): don't need to set the instances
11849         dimensions here.
11850
11851 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11852
11853         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11854         not HAVE_DLOPEN, which is a lower-level thing.
11855
11856         * .cvsignore: Ignore gmon.out
11857
11858 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11859
11860         * .cvsignore: Ignore portable dumper xemacs.dmp file
11861
11862 2000-02-09  Andy Piper  <andy@xemacs.org>
11863
11864         * redisplay-output.c (redisplay_output_layout): be more clever
11865         about when we output based on the changed flags.
11866
11867         * glyphs.h (struct image_instantiator_methods): add update_method.
11868         (struct Lisp_Image_Instance): add changed flags. Declare new
11869         macros for manipulating them.
11870
11871         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11872         (image_instance_parent_glyph): find an image_instance's parent
11873         glyph or image_instance.
11874         (image_instance_layout): mark the size as changed.
11875         (set_image_instance_dirty_p): new function. mark an image
11876         instance, plus all of its parents, as dirty.
11877         (Fset_image_instance_property): use it.
11878         (Fglyph_animated_timeout_handler): use it.
11879         (update_subwindow): call update_widget and device methods for
11880         update_subwindow. Mark all changed flags as clean.
11881         (Fresize_subwindow): mark size as changed.
11882
11883         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11884         failures.
11885         (x_update_subwindow): only resize subwindows here.
11886         (x_update_widget): new function. Update all changed properties of
11887         a widget.
11888         (x_resize_subwindow): deleted.
11889         (x_widget_set_property): deleted.
11890         (x_progress_gauge_set_property): deleted.
11891         (x_progress_gauge_update): new function. Implement recorded
11892         changes.
11893         (x_tab_control_update): ditto.
11894         (x_tab_control_set_property): deleted.
11895         (console_type_create_glyphs_x): declare new functions.
11896         (image_instantiator_format_create_glyphs_x): ditto.
11897
11898         * glyphs-widget.c (widget_set_property): mark text changed.
11899         (update_widget): new function. Update properties of a widget.
11900         (widget_instantiate): for layouts make sure we set their
11901         children's parent correctly.
11902         (tab_control_set_property): new function. Record changes that will
11903         take place under redisplay's control.
11904         (progress_gauge_set_property): ditto.
11905         (image_instantiator_progress_guage): declare new functions.
11906         (image_instantiator_tab_control): ditto.
11907
11908         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11909         now.
11910         (mswindows_update_widget): new function. Update all properties on
11911         a widget that have changed.
11912         (mswindows_button_update): new function. Update a button's set
11913         state.
11914         (mswindows_tab_control_update): new function. Update the items in
11915         a tab.
11916         (mswindows_tab_control_set_property): deleted.
11917         (mswindows_progress_gauge_update): new function. Update the
11918         progress gauge's progress.
11919         (mswindows_widget_set_property): deleted. This is all done
11920         asynchronously now.
11921         (mswindows_progress_gauge_set_property): ditto.
11922         (console_type_create_glyphs_mswindows): declare new methods.
11923         (image_instantiator_format_create_glyphs_mswindows): ditto.
11924
11925         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11926         (msprinter_set_frame_properties): ditto.
11927
11928         * console.h (struct console_methods): Add update_widget_method.
11929
11930 2000-02-09  Andy Piper  <andy@xemacs.org>
11931
11932         * gui-msw.c (Fmswindows_shell_execute): Make
11933         mswindows-shell-execute industrial strength.
11934
11935 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11936
11937         * lrecord.h: Make macro argument `props' match member function `plist'.
11938         * fns.c (Fget):
11939         * fns.c (Fput):
11940         * fns.c (Fremprop):
11941         * fns.c (Fobject_plist):
11942         * alloc.c:
11943         * symbols.c:
11944         Object property list frobbing cleanup.
11945         - Allow any lisp object (compared with `eq'), not just symbols, as
11946           keys in object plists.
11947         - Move symbol plist frobbing into symbols.c, where it belongs.
11948         - Move string plist frobbing into alloc.c, where it belongs.
11949         - Everything's an lrecord now, so no need to test for symbolp, etc.
11950         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11951
11952         * extents.c: Reorder code to remove declarations.
11953
11954         * frame.h (store_in_alist): Remove useless declaration.
11955
11956 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11957
11958         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11959         * config.h.in: Add HAVE_XCONVERTCASE.
11960
11961 2000-02-07  Andy Piper  <andy@xemacs.org>
11962
11963         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11964         it breaks many things.
11965
11966 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11967
11968         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11969         actually can start a common comment type.
11970         * src/syntax.h (SYNTAX_END_P): ditto for end.
11971
11972 2000-02-07  Martin Buchholz <martin@xemacs.org>
11973
11974         * XEmacs 21.2.28 is released.
11975
11976 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11977
11978         * event-Xt.c (x_keysym_to_character): New.
11979         (maybe_define_x_key_as_self_inserting_character): New.
11980         (x_has_keysym): New.
11981         Auto-define all keys on the keyboard as self-insert-key.
11982
11983 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11984
11985         * menubar.c (vars_of_menubar): A small code simplification.
11986
11987         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11988
11989         * ExternalShell.c:
11990         * ExternalClient.c:
11991         * EmacsShell-sub.c:
11992         * EmacsManager.c:
11993         * EmacsFrame.c:
11994         Use consistent style for specifying X resources.
11995
11996         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11997         This makes (dontusethis-set-symbol-value-handler) actually usable.
11998
11999         * lrecord.h (lrecord_decription_type):
12000         * alloc.c (pdump_register_sub):
12001         (pdump_dump_data):
12002         (pdump_reloc_one):
12003         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12004         Comply with XEmacs coding style.
12005         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12006         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12007
12008         * keymap.c (Faccessible_keymaps):
12009         Make (accessible-keymaps map "\C-h") do the Right Thing.
12010         Make (accessible-keymaps map []) do the Right Thing.
12011         Make (accessible-keymaps map "") do the Right Thing.
12012         (check_keymap_definition_loop): New function.
12013         (keymap_store_internal): Keep luser from shooting self in foot,
12014           via (define-key ctl-x-4-map "p" global-map).
12015         Remove fullness slot from struct Lisp_Keymap, since hash tables
12016         are now reliable.
12017         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12018
12019 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12020
12021         * redisplay.c (init_redisplay): Fix small memory leak.
12022         * elhash.h:
12023         * elhash.c (pdump_reorganize_hash_table):
12024         Rename from reorganize_hash_table. Change prototype.
12025         Reuse the original memory for hentries.  Save 100k.
12026         * alloc.c (PDUMP_READ): new macro.
12027         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12028         * alloc.c: No need to #ifndef before #undef.
12029
12030         * print.c: Allow debug_print() to print readably by modifying
12031         debug_print_readably.  Use consistent variable names.
12032
12033         * .dbxrc: Try to get things to work even if stopped in a function
12034         without source available by explicitly specifying source files.
12035 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12036
12037         * unexnt.c (_start): Removed bogus code which caused loading heap
12038         from differrent executable file.
12039         Removed bogus assignment to _fmode, which caused inconsistencies.
12040
12041 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12042
12043         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12044         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12045         Do not preliminary `#define signal sigset'.
12046
12047         * systime.h: Do not prototype environ on windows nt and cygwin,
12048         this conflicts with system header.
12049
12050         * syssignal.h: Use correct define for WINDOWSNT
12051
12052         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12053         with system header.
12054
12055         * sysdep.c (near start of file): Fixed commentary and rearranged
12056         ifdefs in readable order.
12057         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12058         (start_of_text):
12059         (end_of_text):
12060         (end_of_data): Do not compile in if using PDUMP.
12061
12062         * symsinit.h: Prototyped vars_of_nt().
12063
12064         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12065         (find_child_console): Use it.
12066         (sys_kill): Use it.
12067
12068         * ntheap.h: Do not extern os_subtype.
12069
12070         * ntheap.c (cache_system_info): Do not cache unneeded:
12071         nt_major_version, nt_minor_version and os_subtype.
12072         (recreate_heap): Do not compile in when PDUMPing.
12073
12074         * nt.c (geteuid and friends): Use the new varibale
12075         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12076         (init_user_info): Removed the above mentioned hackery.
12077         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12078         stat has been fixed in the C runtime.
12079         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12080
12081         * file-coding.c (struct file_coding_dump): Do not define
12082         ucs_to_mule_table in the struct if not MULE.
12083         (struct struct lrecord_description fcd_description_1): Do not dump
12084         the above.
12085
12086         * emacs.c (main_1): Call vars_of_nt().
12087         (right before Fdump_emacs_data): Don't need lastfile if using both
12088         portabe dumper and system malloc.
12089
12090         * alloc.c (Fmemory_limit): Conditionalized out.
12091         (pdump): Use OPEN_BINARY for the portable dump file.
12092         (pdump_load): Ditto.
12093
12094 2000-02-02  Mike Alexander  <mta@arbortext.com>
12095
12096         * nt.c (convert_time): Set tm_isdst before calling mktime and
12097         avoid calling it at all if the compiler supports 64 bit integers.
12098         Also initialize utc_base_ft before using it.
12099
12100 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12101
12102         * frame.c (change_frame_size_1): Take f->internal_border_width
12103         into consideration when calculating the width of the frame.
12104
12105 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12106
12107         * window.c (frame_min_height):
12108         (frame_size_valid_p):
12109         (frame_pixsize_valid_p): Added.
12110         (check_frame_size): Generalized.
12111
12112         * window.h: Prototyped the above.
12113
12114         * lisp.h:
12115         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12116         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12117         Deleted Vwin32_* and Vbinary_process_* unused variables.
12118
12119         * device-msw.c (msprinter_init_device): Do not get printer font
12120         list; Added DEVMODE functions.
12121
12122         * frame-msw.c: Added lots of printer code.
12123
12124         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12125         general.c.
12126
12127         * console-msw.h: Added more msprinter device private slots.
12128
12129 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12130
12131         * event-msw.c (key_needs_default_processing_p): Added.
12132         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12133
12134 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12135
12136         * glyphs.c (image_instance_layout): Mark image instance as clean
12137         after layout.
12138         (glyph_dirty_p): Removed redundant function.
12139         (invalidate_glyph_geometry_maybe): Added.
12140         (update_glyph_cachel_data): Call it.
12141
12142         * glyphs.h: Prototyped it.
12143
12144         * redisplay.c (add_glyph_rune): Call it.
12145         (redisplay_window): Reset glyphs cachels when frame faces have
12146         changed, thus forcing recomputation of built-in border glyphs.
12147
12148 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12149
12150         * Makefile.in.in: Make portable dumper and purify play well together.
12151         Add imperfect, but better than nothing, support for pdump.
12152         Remove xemacs.dmp when temacs is re-generated.
12153         Don't ignore errors when dumping xemacs.
12154
12155         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12156
12157 2000-01-28  Andy Piper  <andy@xemacs.org>
12158
12159         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12160         (setup_normal_frame): ditto.
12161         (setup_frame_without_minibuffer): ditto.
12162         (setup_minibuffer_frame): ditto.
12163         (delete_frame_internal): ditto.
12164         (Fmake_frame_invisible): ditto.
12165         (Ficonify_frame): ditto.
12166
12167         * window.h: change Fset_window_buffer signature.
12168
12169         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12170         (Fset_window_buffer): allow recording of buffer if the window is
12171         the selected window.
12172         (window_loop): Use new Fset_window signature.
12173
12174 2000-01-23  Daniel Pittman  <daniel@danann.net>
12175
12176         * config.h.in: Added template for `HAVE_ATHENA_3D'
12177
12178 2000-01-29  Andy Piper  <andy@xemacs.org>
12179
12180         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12181
12182         * gutter.c (output_gutter): Don't output if the window isn't live.
12183
12184 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12185
12186         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12187         of 01/12/00: Moved SetFocus back here where it belongs.
12188
12189 2000-01-23  Andy Piper  <andy@xemacs.org>
12190
12191         * s/cygwin32.h: declare printer things.
12192
12193 2000-01-26  Andy Piper  <andy@xemacs.org>
12194
12195         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12196         Alexander.
12197
12198 2000-01-24  Andy Piper  <andy@xemacs.org>
12199
12200         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12201         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12202
12203         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12204
12205         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12206
12207         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12208
12209         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12210         (mswindows_output_display_block): Avoid local shadows.
12211
12212         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12213         (mswindows_enqueue_mouse_button_event): ditto.
12214         (mswindows_handle_gui_wm_command): remove declaration.
12215
12216         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12217         warnings.
12218
12219         * console-msw.h: Avoid shadows.
12220         (mswindows_get_toolbar_button_text):
12221         (emacs_mswindows_create_stream_pair):
12222         (emacs_mswindows_delete_stream_pair):
12223         (mswindows_handle_toolbar_wm_command): declare.
12224
12225         * device-msw.c (build_syscolor_string): Avoid shadows.
12226
12227 2000-01-23  Andy Piper  <andy@xemacs.org>
12228
12229         * glyphs-widget.c (widget_instantiate): reverse the items for
12230         layouts so that children are in the expected order.
12231
12232 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12233
12234         * ralloc.c: safe_bcopy ==> memmove
12235         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12236         * s/msdos.h: Remove BCOPY macros.
12237         * insdel.c (gap_right): Remove BCOPY conditional code.
12238         * insdel.c (gap_left): Remove BCOPY conditional code.
12239         XEmacs demands a working ANSI C compiler - hence memmove.
12240
12241         * regex.c (regex_compile): Remove accidental use of trigraphs.
12242
12243 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12244
12245         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12246         event timestamp.
12247
12248 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12249
12250         * event-msw.c (mswindows_drain_windows_queue): Added the
12251         parameter.
12252         (mswindows_need_event): Commented the call to
12253         mswindows_drain_windows_queue().
12254         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12255         only.
12256
12257         * console-msw.h: Moved a few function prototypes here from
12258         event-msw.c.
12259
12260         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12261         parameter from unsigned short to unsigned long.
12262         (Fmswindows_shell_execute): Added return value.
12263
12264 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12265
12266         * sysdep.c (init_system_name):
12267           process-unix.c (unix_canonicalized_host_name):
12268         Don't call freeaddrinfo() if getaddrinfo() fails.
12269
12270         * process-unix.c (unix_open_unix_network_stream):
12271         Moved the code to get a port # into address loop.
12272
12273 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12274
12275         * buffer.c (reinit_vars_of_buffer):
12276         The right place to initialize conversion_in_dynarr and
12277         conversion_out_dynarr.
12278
12279         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12280
12281         * process-unix.c (unix_canonicalize_host_name): Muleize.
12282         (unix_open_network_stream): Muleize.
12283
12284         * buffer.h: Fix up prototypes for ralloc.c functions.
12285
12286 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12287         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12288         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12289                 instead of gethostbyname()
12290         * process-unix.c: In unix_canonicalize_host_name() and
12291                 unix_open_network_stream(), add code to use getaddrinfo()
12292                 instead of gethostbyname().
12293
12294 2000-01-27  Daniel Pittman <daniel@danann.net>
12295
12296         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12297         libs when built with flat Athena.
12298
12299 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12300
12301         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12302         Use coding standards for function prototypes.
12303
12304 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12305
12306         * dialog-msw.c (push_lisp_string_as_unicode):
12307         * doc.c (unparesseuxify_doc_string):
12308         * dired.c (Fuser_name_completion_1):
12309         * dired.c (Fuser_name_all_completions):
12310         * dired.c (free_user_cache):
12311         * dired.c (user_name_completion):
12312         * console-x.c (get_display_arg_connection):
12313         * minibuf.c (clear_echo_area_internal):
12314         * minibuf.c (echo_area_append):
12315         * eldap.c (Fldap_open):
12316         * eldap.c (Fldap_search_internal):
12317         * frame-x.c (x_set_frame_text_value):
12318         * frame-x.c (x_set_frame_properties):
12319         * frame-x.c (x_create_widgets):
12320         * redisplay-tty.c (term_get_fkeys_1):
12321         * objects-x.c (x_parse_nearest_color):
12322         * objects-x.c (x_valid_color_name_p):
12323         * objects-x.c (x_initialize_font_instance):
12324         * objects-x.c (x_list_fonts):
12325         * objects-x.c (x_find_charset_font):
12326         * tooltalk.c (Fadd_tooltalk_message_arg):
12327         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12328         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12329         * process-unix.c (unix_create_process):
12330         * ntproc.c (sys_spawnve):
12331         * sound.c (Fplay_sound_file):
12332         * sound.c (Fplay_sound):
12333         * buffer.c (init_initial_directory):
12334         * buffer.c (init_buffer):
12335         * editfns.c (init_editfns):
12336         * editfns.c (Ftemp_directory):
12337         * editfns.c (Fuser_full_name):
12338         * editfns.c (uncache_home_directory):
12339         * editfns.c (get_home_directory):
12340         * editfns.c (Fuser_home_directory):
12341         * editfns.c (Fformat_time_string):
12342         * editfns.c (Fcurrent_time_string):
12343         * gui-x.c (button_item_to_widget_value):
12344         * database.c (Fopen_database):
12345         * event-Xt.c (x_to_emacs_keysym):
12346         * event-Xt.c (x_event_to_emacs_event):
12347         * event-Xt.c (describe_event_window):
12348         * event-msw.c (mswindows_wnd_proc):
12349         * glyphs-eimage.c (jpeg_instantiate):
12350         * glyphs-eimage.c (gif_instantiate):
12351         * glyphs-eimage.c (png_instantiate):
12352         * glyphs-eimage.c (tiff_instantiate):
12353         * glyphs-x.c (xbm_instantiate_1):
12354         * glyphs-x.c (x_xbm_instantiate):
12355         * glyphs-x.c (x_xface_instantiate):
12356         * glyphs-x.c (autodetect_instantiate):
12357         * glyphs-x.c (cursor_font_instantiate):
12358         * glyphs-x.c (x_widget_instantiate):
12359         * glyphs-x.c (x_widget_set_property):
12360         * glyphs-x.c (x_widget_property):
12361         * glyphs-x.c (BUILD_GLYPH_INST):
12362         * print.c (write_string_to_stdio_stream):
12363         * print.c (output_string):
12364         * print.c (Falternate_debugging_output):
12365         * print.c (Fexternal_debugging_output):
12366         * glyphs-msw.c (extract_xpm_color_names):
12367         * glyphs-msw.c (mswindows_xpm_instantiate):
12368         * glyphs-msw.c (bmp_instantiate):
12369         * glyphs-msw.c (resource_name_to_resource):
12370         * glyphs-msw.c (mswindows_resource_instantiate):
12371         * glyphs-msw.c (xbm_instantiate_1):
12372         * glyphs-msw.c (mswindows_xbm_instantiate):
12373         * glyphs-msw.c (mswindows_xface_instantiate):
12374         * glyphs-msw.c (mswindows_widget_instantiate):
12375         * glyphs-msw.c (add_tree_item):
12376         * glyphs-msw.c (add_tab_item):
12377         * glyphs-msw.c (mswindows_combo_box_instantiate):
12378         * glyphs-msw.c (mswindows_widget_property):
12379         * glyphs-msw.c (mswindows_combo_box_property):
12380         * glyphs-msw.c (mswindows_widget_set_property):
12381         * console.c (stuff_buffered_input):
12382         * objects-msw.c (mswindows_initialize_color_instance):
12383         * objects-msw.c (mswindows_valid_color_name_p):
12384         * objects-msw.c (mswindows_list_fonts):
12385         * objects-msw.c (mswindows_font_instance_truename):
12386         * bytecode.c (optimize_compiled_function):
12387         * select-x.c (symbol_to_x_atom):
12388         * select-x.c (x_atom_to_symbol):
12389         * select-x.c (hack_motif_clipboard_selection):
12390         * select-x.c (selection_data_to_lisp_data):
12391         * select-x.c (lisp_data_to_selection_data):
12392         * select-x.c (Fx_get_cutbuffer_internal):
12393         * select-x.c (Fx_store_cutbuffer_internal):
12394         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12395         * buffer.h (TO_INTERNAL_FORMAT): New function.
12396         * emacs.c (make_arg_list_1):
12397         * emacs.c (make_argc_argv):
12398         * emacs.c (main_1):
12399         * emacs.c (Fdump_emacs):
12400         * emacs.c (split_string_by_emchar_1):
12401         * file-coding.h:
12402         * lisp.h:
12403         * lstream.h:
12404         * symsinit.h:
12405         * device-x.c (x_init_device):
12406         * device-x.c (Fx_valid_keysym_name_p):
12407         * device-x.c (Fx_get_font_path):
12408         * device-x.c (Fx_set_font_path):
12409         * glyphs.c (bitmap_to_lisp_data):
12410         * glyphs.c (pixmap_to_lisp_data):
12411         * alloc.c (make_ext_string): Use coding system arguments.  Update
12412         all callers.
12413         * alloc.c (build_string):
12414         * callproc.c (child_setup):
12415         * callproc.c (init_callproc):
12416         * fileio.c (lisp_strerror):
12417         * fileio.c (directory_file_name):
12418         * fileio.c (Fexpand_file_name):
12419         * fileio.c (Ffile_truename):
12420         * fileio.c (Fsysnetunam):
12421         * fileio.c (Fdo_auto_save):
12422         * sysdep.c (sys_readdir):
12423         * tests.c: New file.  Allow adding C tests.
12424         Replace GET_* macros with a more comprehensible and flexible
12425         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12426         Modify all calls.
12427         Any coding system can be used to do format conversion.
12428         Eliminate enum external_data_format.
12429         Eliminate convert_to_external_format.
12430         Eliminate convert_to_internal_format.
12431         Make sure file-name, keyboard, terminal, and ctext are always
12432         defined as coding systems or aliases.  Make
12433         file-name-coding-system, terminal-coding-system, and
12434         keyboard-coding-system magical variables that are equivalent to
12435         defining the corresponding coding system aliases.
12436
12437         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12438         * file-coding.c (Fcoding_system_alias_p): New function.
12439         * file-coding.c (Fcoding_system_aliasee): New function.
12440         * file-coding.c (append_suffix_to_symbol): New function.
12441         * file-coding.c (dangling_coding_system_alias_p): New function.
12442         * file-coding.c (Ffind_coding_system):
12443         * file-coding.c (Fcopy_coding_system):
12444         * file-coding.c (encode_coding_no_conversion):
12445         * file-coding.c (syms_of_file_coding):
12446         * file-coding.c (vars_of_file_coding):
12447         Rewrite coding system alias code.
12448         Allow nested aliases, like symbolic links.
12449         Allow redefinition of coding system aliases.
12450         Prevent existence of dangling coding system aliases.
12451
12452         * dired.c (Fuser_name_completion_1):
12453         * dired.c (Fuser_name_all_completions):
12454         A crash would happen if user did QUIT in the middle of building
12455         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12456
12457         * lisp.h:
12458         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12459
12460         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12461         an unsigned char *.  Update all callers.
12462
12463 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12464
12465         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12466
12467 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12468
12469         * elhash.c (hentry_description): Use more portable definition.
12470         (resize_hash_table): Initialize new hentries using
12471         xnew_array_and_zero, thereby simplifying the code.
12472
12473         * mule-charset.c (make_charset): Make sure entire object is
12474         initialized, to avoid Purify warnings.
12475
12476         * alloc.c (resize_string): Fix unlikely crash with big strings.
12477
12478 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12479
12480         * realpath.c (xrealpath):
12481         Don't call getwd().
12482
12483 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12484
12485         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12486
12487 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12488
12489         * unexelfsgi.c (unexec): Change the way we decide which segment
12490         should be extended.
12491
12492         Assumption that .bss section should be outside the PT_LOADable
12493         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12494         it's present) is inside the 'data' segment. This would fail the
12495         test which was used to find a segment to grow and cover new
12496         heap. Instead of this assumption, I created another one - on IRIX
12497         the segment to grow should start below .bss and it's address
12498         should extent above the end of .bss. Once this segment is
12499         identified, it's grown to accommodate the new heap and new
12500         zero-length .bss section is added at the end of .data2.
12501
12502 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12503
12504         * eval.c (Feval): Wrong number of arguments should use original
12505         function, not the indirect_function version of it.
12506
12507 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12508
12509         * glyphs-x.c (x_button_instantiate): Don't add image if
12510         it is not a pixmap.
12511         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12512         is relative.
12513
12514 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12515
12516         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12517         declaration.
12518         (DEFVAR_INT_MAGIC): Ditto.
12519         (DEFVAR_BOOL_MAGIC): Ditto.
12520         * glyphs.h: Reindent backslash.
12521
12522 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12523
12524         * glyphs-widget.c (layout_query_geometry):
12525         (layout_layout): Use correct types for gheight, gwidth.
12526
12527 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12528
12529         * EmacsManager.c (QueryGeometry): Purified.
12530
12531 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12532
12533         * alloc.c (make_float): Make sure entire object is initialized, to
12534         avoid Purify warnings.
12535         (pdump_register_sub): Remove useless assignment.
12536         (pdump): Use xmalloc, not malloc.
12537         (pdump_load): Use xmalloc, not malloc.
12538
12539 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12540
12541         * callproc.c:
12542         * dired-msw.c:
12543         * fileio.c:
12544         * process-nt.c:
12545         * redisplay-msw.c:
12546         * sysdep.c: Removed redundant #include <windows.h>
12547
12548 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12549
12550         * frame.c (delete_frame_internal): Do not delete device when its
12551         implementation so declares.
12552         (delete_frame_internal): Set device selected frame to nil when
12553         last frame goes away.
12554
12555         * device-msw.c (msprinter_device_system_metrics): Implemented.
12556         (mswindows_device_system_metrics): Added 'device-dpi property.
12557
12558         * device.c: (Fdevice_printer_p): Added.
12559         Added 'offset-workspace device metric.
12560
12561         * console.h (device_metrics): Declared DM_offset_workspace.
12562
12563 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12564
12565         * fileio.c (Ffile_truename): Remove pointless and confusing
12566         initialization of elen.
12567
12568         * glyphs-widget.c: Compiler warning fixes.
12569
12570 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12571
12572         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12573         instead of a Lisp_Object as argument to make it consistent with
12574         the other LIVE_P macros.
12575         (CHECK_LIVE_PROCESS): New macro.
12576
12577         * process.c: Declare Qprocess_live_p.
12578         (Fprocess_live_p): New function.
12579         (create_process): Use PROCESS_LIVE_P.
12580         (read_process_output): Ditto.
12581         (set_process_filter): Ditto.
12582         (Fdelete_process): Ditto.
12583         (kill_buffer_processes): Ditto
12584         (process_send_signal): Use CHECK_LIVE_PROCESS.
12585         (Fprocess_input_coding_system): Check whether process is still
12586         alive (fix PR#1061).
12587         (Fprocess_output_coding_system): Ditto.
12588         (Fprocess_coding_system): Ditto.
12589         (Fset_process_input_coding_system): Ditto.
12590         (Fset_process_output_coding_system): Ditto.
12591
12592 2000-01-23  Andy Piper  <andy@xemacs.org>
12593
12594         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12595         layout and widget.
12596
12597         * glyphs.c (mark_image_instance): take into account changed
12598         image_instance format.
12599         (image_instance_equal): ditto.
12600         (image_instance_hash): ditto.
12601
12602         * glyphs-widget.c (widget_instantiate): Incorporate layout
12603         instantiation here. Delay layout of the layout until later.
12604         (layout_instantiate): deleted.
12605         (layout_query_geometry): new function. get the geometry of a
12606         layout.
12607         (layout_layout): layout a layout dynamically.
12608         (image_instantiator_widget): New function - splitting up
12609         image_instantiator_format_create_glyphs_widget for netwinder
12610         compilation.
12611         (image_instantiator_buttons):
12612         (image_instantiator_edit_fields):
12613         (image_instantiator_combo_box):
12614         (image_instantiator_scrollbar):
12615         (image_instantiator_progress_guage):
12616         (image_instantiator_tree_view):
12617         (image_instantiator_tab_control):
12618         (image_instantiator_labels):
12619         (image_instantiator_layout): ditto.
12620         (image_instantiator_format_create_glyphs_widget): Call preceding
12621         functions.
12622
12623 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12624
12625         * process.c (Fset_process_coding_system):
12626         * device-x.c (Fx_keysym_hash_table):
12627         Docstring fixes.
12628
12629         * lstream.c (Lstream_write): Return documented value, not 0.
12630
12631         * fileio.c (directory_file_name):
12632         (Fsubstitute_in_file_name):
12633         (Fsubstitute_insert_file_contents_internal):
12634         (Fwrite_region_internal):
12635         * emacs.c:
12636         * sysdep.c:
12637         * getloadavg.c:
12638         * systty.h:
12639         Remove vestigial APOLLO-conditional code.
12640
12641 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12642
12643         * getpagesize.h: Add guard macros.
12644         * libsst.h: Add guard macros.
12645         * libst.h: Add guard macros.
12646         * line-number.h: Add guard macros.
12647         * ndir.h: Add guard macros.
12648         * sysfloat.h: Add guard macros.
12649         * sysfile.h: Add guard macros.
12650         * sysproc.h: Add guard macros.
12651         * syswait.h: Add guard macros.
12652         * xintrinsic.h: Add guard macros.
12653         * xintrinsicp.h: Add guard macros.
12654         * xmmanager.h: Add guard macros.
12655         * xmmanagerp.h: Add guard macros.
12656         * xmprimitive.h: Add guard macros.
12657         * xmu.h: Add guard macros.
12658         * gpmevent.h: Add copyright statement. Add guard macros.
12659         * miscplay.h: Add guard macros.
12660         * *.h: Use consistent C-standards-approved guard macro names.
12661
12662         * opaque.c (make_opaque): Switch parameter order.
12663         * opaque.h (make_opaque): Switch parameter order.
12664         Update all callers.
12665         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12666
12667         * config.h.in (type_checking_assert): Added.
12668         (bufpos_checking_assert): Added.
12669
12670 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12671
12672         * alloc.c: Harmless pdump changes.
12673         - Use countof().
12674         - spell alignment correctly.
12675         * sysdep.c: Use countof()
12676
12677 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12678
12679         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12680         initially_selected_for_input() console method, default to 0.
12681         (semi_canonicalize_console_connection): Try to delegate to
12682         canonicalize_console_connection if no such console method.
12683         (canonicalize_console_connection): Vice versa.
12684         (print_console): Do not print nil connection.
12685
12686         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12687         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12688         (XDEVIMPF_FRAMELESS_OK): Added.
12689         (CONSOLE_INHERITS_METHOD): Added.
12690
12691         * console-msw.c (mswindows_canonicalize_console_connection):
12692         Added.
12693         (mswindows_canonicalize_device_connection): Added.
12694
12695         * console-msw.h (struct msprinter_device): Added this struct and
12696         accessor macros.
12697         (mswindows_device): Made fontlist a lisp object.
12698
12699         * device.c (semi_canonicalize_device_connection):  Try to delegate
12700         to canonicalize_device_connection if no such console method.
12701         (canonicalize_device_connection): Vice versa.
12702         (print_device): Do not print nil connection.
12703
12704         * device-msw.c (mswindows_init_device): Call InitCommonControls
12705         when have widgets.
12706         (mswindows_delete_device): Removed fontlist deallocation.
12707         (mswindows_mark_device): Added.
12708
12709         * events.c (event_equal): Added abort() at unreached code.
12710         (event_hash): Ditto.
12711
12712         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12713         fallback tags of Windows devices.
12714
12715         * general.c (syms_of_general): Initialized Qmsprinter.
12716
12717         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12718         of fallback tags of Windows devices.
12719
12720         * lisp.h: Declared Qmsprinter.
12721
12722         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12723         of strings.
12724         (mswindows_list_fonts): Ditto.
12725         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12726         that it can be used by both mswindows and msprinter devices.
12727         (initialize_font_instance): Added.
12728         (mswindows_initialize_font_instance): Use it.
12729         (msprinter_initialize_font_instance): Added.
12730
12731         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12732         and implementation flags check.
12733         (redisplay_without_hooks): Changed the call to the above.
12734         (Fredraw_device): Ditto.
12735         (Fredisplay_device): Ditto.
12736
12737         * redisplay-msw.c (get_frame_dc): Implemented.
12738         (get_frame_compdc): Implemented.
12739         (many functions): Use the two functions above to get device
12740         contexts, ether for a window or a printer.
12741
12742 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12743
12744         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12745         initialization here.
12746         (init_symbols_once_early): Call it.
12747         * emacs.c (main_1): Call it.
12748         * symsinit.h: Declare it.
12749
12750 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12751
12752         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12753         Lisp_Object.
12754         (pdump_backtrace): Ditto.
12755         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12756         (pdump_get_entry): Abort if trying to register a null pointer.
12757         (pdump_dump_data): Cleanup types when relocating.
12758         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12759         (pdump_dump_rtables): Remove bad casts.
12760         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12761         Lisp_Object instead of a EMACS_INT for the hashtable
12762         reorganization.
12763
12764 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12765
12766         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12767
12768         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12769
12770         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12771
12772         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12773
12774 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12775
12776         * faces.h (FACE_STRIKETHRU_P): Added.
12777
12778         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12779         of font variants.
12780
12781         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12782         (mswindows_set_dc_font): New function, aware of font variants,
12783         separated from mswindows_update_dc.
12784
12785         * objects-msw.h (struct mswindows_font_instance_data): Added
12786         definition.
12787
12788         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12789         cached fonts and the data structure.
12790         (mswindows_initialize_font_instance): Added creation of font data
12791         structure.
12792         (mswindows_print_font_instance): Print at least something.
12793         (mswindows_create_font_variant): Implemented.
12794         (mswindows_get_hfont): Implemented.
12795
12796 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12797
12798         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12799         prototyping problem with msvc.
12800
12801         * emacs.c (main_1): added syms_of_gui_mswindows() call
12802
12803         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12804         syms_of_gui_mswindows() function
12805
12806         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12807
12808 2000-01-18  Martin Buchholz <martin@xemacs.org>
12809
12810         * XEmacs 21.2.27 is released.
12811
12812 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12813
12814         * glyphs-eimage.c (struct tiff_error_struct):
12815         (tiff_error_func):
12816         (tiff_warning_func):
12817         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12818
12819         * unexmips.c:
12820         * unexhp9k3.c:
12821         * unexfreebsd.c:
12822         * unexec.c: Remove vestigial Lucid C code.
12823         * unexalpha.c:
12824         * unexaix.c:
12825         * termcap.c:
12826         * libsst.c: Ansify.
12827         Remove declarations of errno and strerror().
12828
12829         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12830
12831         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12832
12833 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12834
12835         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12836         Optimize.
12837
12838 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12839
12840         * md5.c:
12841         * file-coding.c:
12842         * file-coding.h:
12843         Change enum eol_type to eol_type_t.
12844
12845 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12846
12847         * gui.c (get_gui_callback): Check cons before accessing car.
12848
12849 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12850
12851         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12852         (XSETSPECIFIER_TYPE): Ditto.
12853
12854 2000-01-17  Didier Verna  <didier@xemacs.org>
12855
12856         * redisplay.c (generate_fstring_runes): compute string size in
12857         characters, not bytes.
12858
12859 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12860
12861         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12862
12863 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12864
12865         * print.c (print_error_message): Call print_prepare().
12866
12867 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12868
12869         * .dbxrc: Renamed from dbxrc.
12870
12871         * events.c (event_to_character):
12872         Use `assert (foo)' instead of `if (!foo) abort()'
12873
12874         * .gdbinit (xtype): Add documentation.
12875         * .gdbinit (check-temacs): New function.
12876         * .gdbinit (check-xemacs): New function.
12877         * dbxrc (check-xemacs): New function.
12878         * dbxrc (check-xemacs): New function.
12879
12880 2000-01-14  Andy Piper  <andy@xemacs.org>
12881
12882         * glyphs-widget.c (widget_query_geometry): Make sure that we
12883         calculate default dimensions correctly.
12884
12885 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12886
12887         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12888
12889         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12890         pdump_wire'd variable.
12891
12892         * emacs.c: (main_1): Conditionalized calls to
12893         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12894
12895 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12896
12897         * window.c (Fset_window_configuration):
12898         * sysdep.c (_start):
12899         * input-method-motif.c (res):
12900         * event-Xt.c (Xt_process_to_emacs_event):
12901         Simple compiler warning fixes.
12902
12903         * bytecode.c (funcall_compiled_function): Use the original
12904         function symbol on the backtrace list in preference to the
12905         compiled_function object in error messages.
12906
12907 2000-01-13  Andy Piper  <andy@xemacs.org>
12908
12909         * glyphs-x.c (update_widget_face): Make sure we update the widget
12910         background as well as foreground.
12911
12912 2000-01-13  Andy Piper  <andy@xemacs.org>
12913
12914         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12915         fields to subwindow.
12916         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12917         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12918         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12919         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12920
12921         * glyphs-widget.c (check_valid_tab_orientation): new function.
12922         (initialize_widget_image_instance): zero orientation and
12923         justification.
12924         (widget_instantiate): pick up orientation.
12925         (tab_control_query_geometry): return appropriate values for
12926         vertical tabs.
12927
12928         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12929         appropriate creation flags for left, right and bottom tabs.
12930
12931         * s/cygwin32.h: add tab definitions.
12932
12933 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12934
12935         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12936         frame upon hiding a subwindow.
12937         (mswindows_button_instantiate): Changed the push button style to
12938         BS_PUSHBUTTON.
12939         (mswindows_button_instantiate): Removed button BS_NOTIFY
12940         style.
12941         (mswindows_button_instantiate): Removed redundant check for
12942         a disabled gui item.
12943         (mswindows_button_instantiate): Made use of WS_TABSTOP
12944         consistent: "operable" controls (edit, button, tree, scroll) have
12945         this style, "display-only" ones (static, progress gauge) do
12946         not. This style is currently ignored by XEmacs though. Also,
12947         removed the WS_EX_CONTROLPARENT style - it is not for children,
12948         it is for their parents!
12949         (mswindows_edit_field_instantiate): Ditto.
12950         (mswindows_progress_gauge_instantiate): Ditto.
12951         (mswindows_tree_view_instantiate): Ditto.
12952         (mswindows_tab_control_instantiate): Ditto.
12953         (mswindows_scrollbar_instantiate): Ditto.
12954         (mswindows_combo_box_instantiate): Ditto.
12955         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12956         style to the "clip" window.
12957         (mswindows_button_instantiate): Removed compilation warning by
12958         equally typing terms of the ?: operator.
12959
12960 2000-01-12  Didier Verna  <didier@xemacs.org>
12961
12962         * redisplay.c (generate_fstring_runes): new parameter holding the
12963         last modeline-format extent.
12964         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12965         extent, fill the glyph block with it.
12966         (generate_fstring_runes): handle these parameters.
12967         (generate_formatted_string_db): ditto.
12968
12969         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12970         glyphs'extents in the modeline.
12971
12972 1999-01-11  Mike Woolley  <mike@bulsara.com>
12973
12974         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12975         256Mb, as a workaround for the non-starting problem many people
12976         have experienced.
12977
12978 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12979
12980         * console-tty.c (Fset_console_tty_output_coding_system):
12981         Force redrawing tty frame.
12982
12983 2000-01-10  Didier Verna  <didier@xemacs.org>
12984
12985         * redisplay.c (generate_fstring_runes): fix size computation bug.
12986
12987 2000-01-09  William M. Perry <wmperry@aventail.com>
12988
12989         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12990
12991 2000-01-09  Andy Piper  <andy@xemacs.org>
12992
12993         * glyphs-msw.c: index -> i to avoid shadows.
12994         (xbm_create_bitmap_from_data): make static.
12995         (check_valid_string_or_int): deleted.
12996         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12997
12998         * glyphs-x.c (x_update_subwindow): remove unused args.
12999
13000         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13001         back pointer - this is done in allocate_image_instance.
13002         (query_string_font): return Qnil to make the compiler happy.
13003         (unmap_subwindow): set to ~0 to make the compiler happy.
13004         (glyph_query_geometry): comment out until used.
13005         (glyph_layout): ditto.
13006
13007 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13008
13009         * insdel.c (signal_after_change): Remove extraneous unbind_to().