update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * text-coding.c (char_encode_as_entity_reference): New function.
4         (char_encode_utf8): Use `char_encode_as_entity_reference'.
5
6 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
7
8         * text-coding.c (decode_coding_big5): Support entity-reference
9         decoding feature.
10
11 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * text-coding.c (allocate_coding_system): Initialize initial
14         charsets for CODESYS_UTF8.
15         (Fmake_coding_system): Accept charset-g0, charset-g1 and
16         charset-g2 for CODESYS_UTF8.
17         (decode_coding_utf8): Use charset-g0.
18         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
19         to force variants to map to UCS.
20
21 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * text-coding.c (Qutf_8_mcs): New variable.
24         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
25         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
26         instead of `utf-8' in UTF-2000.
27
28 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
29
30         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
31         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
32         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
33         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
34         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
35         CONVERSION_96x96x96x96 are introduced.
36         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
37         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
38         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
39
40         * char-ucs.h (CONVERSION_94): New macro.
41         (CONVERSION_96): New macro.
42         (CONVERSION_94x94): New macro.
43         (CONVERSION_96x96): New macro.
44         (CONVERSION_94x94x94): New macro.
45         (CONVERSION_96x96x96): New macro.
46         (CONVERSION_94x94x94x60): New macro.
47         (CONVERSION_94x94x94x94): New macro.
48         (CONVERSION_96x96x96x96): New macro.
49
50 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
51
52         * chartab.c (Vcharacter_variant_table): Deleted.
53         (Fchar_variants): Use character-attribute `->ucs-variants' instead
54         of `Vcharacter_variant_table'.
55         (Fput_char_attribute): Likewise.
56         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
57         (complex_vars_of_chartab): Likewise.
58
59 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
60
61         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
62
63         * fns.c (Qideographic_structure): New variable.
64         (Qkeyword_char): New variable.
65         (ids_format_unit): New function.
66         (Fideographic_structure_to_ids): New function.
67         (syms_of_fns): Add new symbols `ideographic-structure' and
68         `:char'; add new builtin function `ideographic-structure-to-ids'.
69
70         * data.c (Fchar_ref_p): New function.
71         (syms_of_data): Add new builtin function `char-ref-p'.
72
73         * chartab.h: Add an EXFUN for `Ffind_char'.
74
75 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * text-coding.c (Vcharacter_composition_table): Deleted.
78         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
79         in every UTF-2000.
80
81         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
82         UTF-2000.
83         (Vcharacter_composition_table): Deleted.
84         (Fget_composite_char): Use the implementation for external-DB
85         support in every UTF-2000.
86         (Fput_char_attribute): Likewise.
87         (char_attribute_system_db_file): Don't define if external-DB
88         feature is not available.
89         (Fsave_char_attribute_table): Likewise.
90         (Fmount_char_attribute_table): Likewise.
91         (Fclose_char_attribute_table): Likewise.
92         (Freset_char_attribute_table): Likewise.
93         (Fload_char_attribute_table): Likewise.
94         (syms_of_chartab): Don't define `save-char-attribute-table',
95         `mount-char-attribute-table', `reset-char-attribute-table',
96         `close-char-attribute-table' and `load-char-attribute-table' if
97         external-DB feature is not available.
98         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
99
100 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
101
102         * text-coding.c (Qcomposition): Add extern if external-DB feature
103         is supported.
104         (Vcharacter_composition_table): Don't add extern if external-DB
105         feature is supported.
106         (COMPOSE_ADD_CHAR): Modify for new data-representation of
107         character composition rule if external-DB feature is supported.
108
109         * chartab.c (Vcharacter_composition_table): Don't define if
110         external-DB feature is supported.
111         (Qcomposition): New variable.
112         (Fget_composite_char): New implementation for external-DB support.
113         (Fput_char_attribute): Use `composition' property of each
114         character instead of `Vcharacter_composition_table' to store
115         character-composition rules if external-DB feature is supported.
116         (syms_of_chartab): Add new symbol `composition'.
117         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
118         external-DB feature is supported.
119
120 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
121
122         * chartab.c (Vchar_db_stingy_mode): New variable.
123         (load_char_attribute_maybe): Close database if
124         Vchar_db_stingy_mode is not NIL.
125         (Fload_char_attribute_table_map_function): Use
126         `get_char_id_table_0' instead of `get_char_id_table'.
127         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
128
129         * chartab.h (get_char_id_table_0): New inline function.
130         (get_char_id_table): Use `get_char_id_table_0'.
131
132 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
133
134         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
135         and `COMPOSE_ADD_CHAR'.
136         (decode_coding_iso2022): Use `decode_flush_er_chars'.
137
138 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
139
140         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
141         instead of `DECODE_ADD_UCS_CHAR'.
142         (COMPOSE_ADD_CHAR): Likewise.
143
144 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
145
146         * text-coding.c (decode_flush_er_chars): New inline function.
147         (decode_add_er_char): New function.
148         (decode_coding_utf8): Use `decode_flush_er_chars' and
149         `decode_add_er_char'.
150
151 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
152
153         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
154         done before `decode_output_utf8_partial_char'.
155
156         * mule-charset.c (complex_vars_of_mule_charset): Specify
157         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
158         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
159
160 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * mule-charset.c (decode_defined_char): New function; search
163         mother.
164         (decode_builtin_char): Don't search mother if
165         XCHARSET_MAX_CODE(charset) == 0.
166         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
167         == 0 even if code >= XCHARSET_MAX_CODE(charset).
168         (Fdecode_char): Use `decode_defined_char' instead of
169         `DECODE_DEFINED_CHAR'.
170         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
171         mother of `Vcharset_ucs_jis'.
172
173         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
174         instead of `DECODE_DEFINED_CHAR'.
175
176         * char-ucs.h (decode_defined_char): Renamed from
177         `DECODE_DEFINED_CHAR'; changed to normal function.
178         (DECODE_CHAR): Use `decode_defined_char' instead of
179         `DECODE_DEFINED_CHAR'.
180
181         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
182
183 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
186
187         * text-coding.c (Vcoded_charset_entity_reference_alist): New
188         variable.
189         (Quse_entity_reference): New variable.
190         (Qd): New variable.
191         (Qx): New variable.
192         (QX): New variable.
193         (coding_system_description): Add description for
194         `ccs_priority_list'.
195         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
196         (allocate_coding_system): Initialize `ccs_priority_list' in
197         UTF-2000.
198         (Fmake_coding_system): Add description about
199         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
200         (codesys).
201         (Fcoding_system_property): Accept `disable-composition' and
202         `use-entity-reference' in UTF-2000.
203         (struct decoding_stream): Add new member `er_counter' and `er_buf'
204         in UTF-2000.
205         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
206         (decode_coding_utf8): Decode entity-reference if
207         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
208         (char_encode_utf8): Encode non-Unicode characters as
209         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
210         (str->codesys).
211         (syms_of_file_coding): Add new symbols `use-entity-reference',
212         `d', `x', `X'.
213         (vars_of_file_coding): Add new variable
214         `coded-charset-entity-reference-alist'.
215         (complex_vars_of_file_coding): Declare `disable-composition' and
216         `use-entity-reference' to be coding-system-properties in UTF-2000.
217
218         * file-coding.h (struct Lisp_Coding_System): Add new member
219         `use_entity_reference' and `ccs_priority_list'.
220         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
221         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
222         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
223
224 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
225
226         * chartab.c (save_uint8_byte_table): Don't clear the table.
227         (save_uint16_byte_table): Likewise.
228         (save_byte_table): Likewise.
229         (Fmount_char_attribute_table): New function.
230         (syms_of_chartab): Add new builtin function
231         `mount-char-attribute-table'.
232
233 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * mule-charset.c (Fsave_charset_mapping_table): Open database as
236         "w+" mode.
237         (load_char_decoding_entry_maybe): Open database as read-only mode.
238
239         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
240         open database as "w+" mode.
241         (load_char_attribute_maybe): Open database as read-only mode.
242         (Fload_char_attribute_table): Likewise.
243
244 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
245
246         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
247         (char_table_description): Delete member `db_file'.
248         (Fmake_char_table): Don't refer `ct->db_file'.
249         (Fcopy_char_table): Likewise.
250         (Fsave_char_attribute_table): Likewise.
251         (Fclose_char_attribute_table): Likewise.
252         (Freset_char_attribute_table): Likewise.
253         (load_char_attribute_maybe): Likewise.
254         (Fload_char_attribute_table): Likewise.
255
256         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
257
258 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
259
260         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
261         (Fsave_char_attribute_table): Don't check `ct->db_file' if
262         `ct->db' is living.
263         (load_char_attribute_maybe): Likewise.
264         (Fload_char_attribute_table): Likewise.
265
266 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
267
268         * chartab.c (Fclose_char_attribute_table): Set Qnil on
269         `ct->db_file' unconditionally.
270
271 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
272
273         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
274         UTF-2000.
275         (char_table_description): Add description for `db_file' and `db'
276         in UTF-2000.
277         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
278         UTF-2000.
279         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
280         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
281         (Fclose_char_attribute_table): New function.
282         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
283         (load_char_attribute_maybe): Change interface; use `cit->db_file'
284         and `cit->db'.
285         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
286         (syms_of_chartab): Add new builtin function
287         `Fclose_char_attribute_table'.
288
289 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
290
291         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
292         `db' in UTF-2000.
293         (load_char_attribute_maybe): Change interface.
294         (get_char_id_table): Modify for `load_char_attribute_maybe'.
295
296 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
297
298         * database.h: Add an EXFUN for `Fdatabase_live_p'.
299
300 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
303         instead of `DECODE_CHAR' for mother; don't use special code for
304         chinese-big5 to use code space of chinese-big5-1 and
305         chinese-big5-2.
306         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
307         `MAX_CHAR_BIG5_CDP' for chinese-big5.
308
309         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
310         (MAX_CHAR_BIG5_CDP): Revival.
311
312 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
315         the XLFD registry-encoding name of `chinese-big5'.
316
317 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
318
319         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
320         (Qchinese_big5_cdp): Deleted.
321         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
322         (complex_vars_of_mule_charset): Delete coded-charset
323         `chinese-big5-cdp'.
324
325         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
326         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
327         `CHARSET_ID_OFFSET - n' for private CCS.
328         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
329         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
330         of `MIN_LEADING_BYTE'.
331         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
332         `(CHARSET_ID_OFFSET - 97)'.
333         (MIN_CHAR_BIG5_CDP): Deleted.
334         (MAX_CHAR_BIG5_CDP): Deleted.
335
336 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
339
340 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
343         (vars_of_mule): Add new variable `utf-2000-version' [moved from
344         chartab.c].
345
346         * chartab.c (Vutf_2000_version): Moved to mule.c.
347         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
348
349 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
350
351         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
352         when HAVE_CHISE_CLIENT is not defined.
353
354         * mule.c (vars_of_mule): Provide feature `chise' when
355         HAVE_CHISE_CLIENT is defined.
356
357 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
358
359         * config.h.in (UTF2000): Add comment.
360         (HAVE_CHISE_CLIENT): New macro.
361
362 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
363
364         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
365         CONSP.
366         (Fput_char_attribute): Likewise.
367         (char_attribute_system_db_file): Encode file-name of attribute.
368         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
369         the initial value.
370
371 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
372
373         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
374         (Fsave_charset_mapping_table): Use
375         `char_attribute_system_db_file'.
376         (load_char_decoding_entry_maybe): Likewise.
377
378         * chartab.h (Qsystem_char_id): New external variable.
379         (char_attribute_system_db_file): New prototype.
380
381         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
382         (char_attribute_system_db_file): New function.
383         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
384         (Freset_char_attribute_table): Likewise.
385         (load_char_attribute_maybe): Likewise.
386         (Fload_char_attribute_table): Likewise.
387         (syms_of_chartab): Add new symbol `system-char-id'.
388
389 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
390
391         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
392         `XCHARSET_GRAPHIC(ccs)'.
393
394 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
397
398 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
399
400         * chartab.c (Q_ucs_variants): New variable.
401         (syms_of_chartab): Add new symbol `->ucs-variants'.
402         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
403         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
404         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
405
406         * mule-charset.c (load_char_decoding_entry_maybe): New function.
407
408         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
409         `HAVE_DATABASE' is defined.
410         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
411         `HAVE_DATABASE' is defined.
412
413 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
414
415         * chartab.c (Fsave_char_attribute_table): Don't clear internal
416         attribute-table.
417         (Freset_char_attribute_table): New function.
418         (syms_of_chartab): Add new builtin function
419         `reset-char-attribute-table'.
420
421 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
422
423         * chartab.c (load_char_attribute_maybe): Don't make directories.
424
425 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
426
427         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
428
429         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
430         for decoding-table.
431
432 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
433
434         * mule-charset.c (Fsave_charset_mapping_table): Use
435         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
436
437         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
438         instead of `XCHARSET_CHARS'.
439
440 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
441
442         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
443         (XCHARSET_BYTE_SIZE): Likewise.
444
445         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
446         mule-charset.c].
447         (XCHARSET_BYTE_SIZE): Likewise.
448
449 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
450
451         * chartab.c (Fput_char_attribute): Use exec-directory instead of
452         data-directory to store database.
453         (Fsave_char_attribute_table): Likewise.
454         (load_char_attribute_maybe): Likewise.
455         (Fload_char_attribute_table): Likewise.
456
457 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
458
459         * mule-charset.c (Fsave_charset_mapping_table): New function.
460         (syms_of_mule_charset): Add new builtin function
461         `save-charset-mapping-table'.
462
463 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * char-ucs.h (decoding_table_check_elements): Delete prototype.
466         (get_ccs_octet_table): New inline function.
467         (put_ccs_octet_table): Likewise.
468         (decoding_table_put_char): Use `get_ccs_octet_table' and
469         `put_ccs_octet_table'.
470         (decoding_table_remove_char): Use `decoding_table_put_char'.
471         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
472
473         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
474         into encoding_table.
475         (make_charset): Use Qunbound instead Qnil as initial value of
476         decoding_table.
477
478 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
479
480         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
481         element is Qunloaded.
482         (map_over_uint16_byte_table): Likewise.
483         (map_over_byte_table): Likewise.
484         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
485         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
486         database support, load encoding-table of the specified
487         coded-charset if it is not loaded yet.
488         (save_uint8_byte_table): New function of UTF-2000 with external
489         database support.
490         (save_uint16_byte_table): Likewise.
491         (save_byte_table): Likewise.
492         (Fput_char_attribute): Don't store value into external database
493         even if the external database feature is supported in UTF-2000;
494         set `attribute' as name of char-table if the external database
495         feature is supported.
496         (Fsave_char_attribute_table): New function in UTF-2000.
497         (syms_of_chartab): Add new builtin function
498         `save-char-attribute-table' in UTF-2000.
499
500 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
501
502         * chartab.c (char_attribute_table_to_put): New variable in
503         UTF-2000.
504         (Qput_char_table_map_function): Likewise.
505         (value_to_put): Likewise.
506         (Fput_char_table_map_function): New function in UTF-2000.
507         (put_char_table): Use `Fmap_char_attribute' for
508         CHARTAB_RANGE_CHARSET in UTF-2000.
509         (Fput_char_attribute): Store symbol instead of string in
510         `XCHAR_TABLE_NAME (table)'.
511         (load_char_attribute_maybe): Likewise.
512         (syms_of_chartab): Add new symbol/function
513         `put-char-table-map-function'.
514
515 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
516
517         * database.h: Add new EXFUN for `Fmap_database'.
518
519         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
520         (syms_of_database): Likewise.
521
522         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
523         UTF-2000.
524         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
525         (XCHAR_TABLE_UNLOADED): Likewise.
526
527         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
528         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
529         HAVE_DATABASE is defined.
530         (char_attribute_table_to_load): New variable of UTF-2000 with
531         external database support.
532         (Qload_char_attribute_table_map_function): Likewise.
533         (Fload_char_attribute_table_map_function): New function of
534         UTF-2000 with external database support.
535         (Fload_char_attribute_table): New function of UTF-2000.
536         (Fmap_char_attribute): Call Fload_char_attribute_table if
537         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
538         (syms_of_chartab): Add new symbol and function
539         `load-char-attribute-table-map-function' in UTF-2000 with external
540         database support; add new function `load-char-attribute-table' in
541         UTF-2000.
542
543 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * chartab.h (load_char_attribute_maybe): New prototype for
546         UTF-2000 with DATABASE support.
547         (get_char_id_table): Use `load_char_attribute_maybe' if
548         HAVE_DATABASE is defined.
549
550         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
551         with DATABASE support.
552
553 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * chartab.c (Fput_char_attribute): Use S-expression as key of
556         external database.
557
558         * chartab.h (get_char_id_table): Use S-expression as key of
559         external database.
560
561 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
562
563         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
564         if an element is not loaded, load the corresponding attributes
565         from an external database.
566         (map_over_uint16_byte_table): Likewise.
567         (map_over_byte_table): Likewise.
568         (map_char_table): Modify for `map_over_uint8_byte_table',
569         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
570         element is not loaded, load the corresponding attributes from an
571         external database.
572         (Fput_char_attribute): Change initial values to Qunloaded.
573
574         * chartab.h (get_char_id_table): If a character attribute is not
575         loaded and the attribute value is not found in an external
576         database, store Qunbound as the attribute value.
577
578 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
579
580         * chartab.c (BT_UINT8_unloaded): New macro.
581         (UINT8_VALUE_P): Accept Qunloaded.
582         (UINT8_ENCODE): Likewise.
583         (UINT8_DECODE): Likewise.
584         (BT_UINT16_unloaded): New macro.
585         (UINT16_VALUE_P): Accept Qunloaded.
586         (UINT16_ENCODE): Likewise.
587         (UINT16_DECODE): Likewise.
588         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
589         BT_UINT16_unloaded.
590         (mark_char_table): Mark `ct->name' in UTF-2000.
591         (char_table_description): Add `name' in UTF-2000.
592         (Fmake_char_table): Initialize `ct->name'.
593         (Fcopy_char_table): Copy `ct->name'.
594         (Fput_char_attribute): Store value into an external database if
595         HAVE_DATABASE is defined.
596
597         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
598         UTF-2000.
599         (CHAR_TABLE_NAME): New macro in UTF-2000.
600         (XCHAR_TABLE_NAME): New macro in UTF-2000.
601         (get_char_id_table): Try to read an external database if Qunloaded
602         is stored in a table.
603
604         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
605         Qunloaded.
606
607 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * database.h: Add EXFUN definitions for Fopen_database,
610         Fput_database, Fget_database and Fclose_database.
611
612         * data.c (Qunloaded): New variable in UTF-2000.
613
614         * lisp.h (Qunloaded): New variable in UTF-2000.
615
616 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * mule-charset.c (put_char_ccs_code_point): Modify for
619         `decoding_table_remove_char' and `decoding_table_put_char'.
620         (remove_char_ccs): Modify for `decoding_table_remove_char'.
621
622         * char-ucs.h (decoding_table_remove_char): Change arguments to
623         hide decoding_table vector.
624         (decoding_table_put_char): Likewise.
625
626 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
627
628         * mule-charset.c (decoding_table_remove_char): Moved to
629         char-ucs.h.
630         (decoding_table_put_char): Likewise.
631
632         * char-ucs.h (decoding_table_check_elements): New prototype [moved
633         from mule-charset.c].
634         (decoding_table_remove_char): New inline function [moved from
635         mule-charset.c].
636         (decoding_table_put_char): Likewise.
637
638 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
639
640         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
641         extension.
642
643 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
644
645         * mule-charset.c (decode_builtin_char): Support mother charsets.
646
647 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
648
649         * mule-charset.c (Q94x94x60): New variable.
650         (charset_code_point): Support conversion `94x94x60'.
651         (Fmake_charset): Likewise.
652         (syms_of_mule_charset): Add new symbol `94x94x60'.
653
654         * char-ucs.h (CONVERSION_94x94x60): New macro.
655
656 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * mule-charset.c (charset_code_point): Unify code about
659         `code-offset'.
660
661 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
662
663         * mule-charset.c (charset_code_point): Merge code about builtin
664         characters into code about mother charsets; don't use
665         `range_charset_code_point'.
666         (range_charset_code_point): Deleted.
667
668 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * mule-charset.c (Qcode_offset): New variable.
671         (Fmake_charset): Use `XUINT' to get value of `min-code' and
672         `max-code'; accept new property `code-offset'.
673         (syms_of_mule_charset): Add new symbol `code-offset'.
674
675 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
676
677         * mule-charset.c (range_charset_code_point): Fixed.
678
679 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * mule-charset.c (decode_builtin_char): Change semantics of
682         code-offset of coded-charset.
683         (charset_code_point): Likewise.
684         (range_charset_code_point): Likewise.
685         (complex_vars_of_mule_charset): Modify for the change.
686
687 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule-charset.c (Fencode_char): Reverse arguments.
690
691         * mule-charset.c (charset_code_point): Fixed.
692
693 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * mule-charset.c (Vcharset_mojikyo): Deleted.
696         (Vcharset_mojikyo_2022_1): Deleted.
697         (Vcharset_mojikyo_pj_{1..21}): Deleted.
698         (Qmin_code): New variable in UTF-2000.
699         (Qmax_code): Likewise.
700         (Qmother): Likewise.
701         (Qconversion): Likewise.
702         (Q94x60): Likewise.
703         (Qmojikyo): Deleted.
704         (Qmojikyo_2022_1): Deleted.
705         (Qmojikyo_pj_{1..22}): Deleted.
706         (mark_charset): Mark `cs->mother'.
707         (charset_description): Add description for `mother'.
708         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
709         new arguments `mother' and `conversion'; use
710         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
711         (charset_code_point): Moved from char-ucs.h; support `mother'
712         charset feature.
713         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
714         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
715         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
716         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
717         allow 2 as the value of `graphic' in UTF-2000; add new properties
718         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
719         require `final' in UTF-2000; modify for `make_charset'.
720         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
721         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
722         (Fcharset_property): Support `mother', `min-code' and `max-code'.
723         (Fencode_char): New function.
724         (syms_of_mule_charset): Add new builtin function `encode-char' in
725         UTF-2000; add new symbols `min-code', `max-code', `mother',
726         `conversion' and `94x60'; delete symbols `mojikyo',
727         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
728         (complex_vars_of_mule_charset): Modify for `make_charset' change;
729         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
730         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
731
732         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
733         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
734
735         * char-ucs.h (Vcharset_mojikyo): Deleted.
736         (Vcharset_mojikyo_2022_1): Deleted.
737         (LEADING_BYTE_MOJIKYO): Deleted.
738         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
739         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
740         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
741         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
742         add new member `mother'; add new member `conversion'.
743         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
744         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
745         (CHARSET_MOTHER): New macro.
746         (CHARSET_CONVERSION): New macro.
747         (CONVERSION_IDENTICAL): New macro.
748         (CONVERSION_94x60): New macro.
749         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
750         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
751         (XCHARSET_MOTHER): New macro.
752         (XCHARSET_CONVERSION): New macro.
753         (MIN_CHAR_MOJIKYO): Deleted.
754         (MAX_CHAR_MOJIKYO): Deleted.
755         (DECODE_MOJIKYO_2022): Deleted.
756         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
757         (charset_code_point): Changed to non-inline function.
758         (encode_char_1): Use `charset_code_point'.
759         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
760
761 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * lread.c (read_compiled_function): Fix prototype.
764         (read_vector): Likewise.
765
766 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * lrecord.h (struct lrecord_header): Delete `older'.
769         (set_lheader_implementation): Delete code for `older'.
770         (set_lheader_older_implementation): Deleted.
771         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
772         (OLDER_RECORD_P): Deleted.
773         (OLDER_RECORD_HEADER_P): Deleted.
774         (alloc_older_lcrecord): Deleted.
775         (alloc_older_lcrecord_type): Deleted.
776
777         * alloc.c (all_older_lcrecords): Deleted.
778         (alloc_older_lcrecord): Deleted.
779         (disksave_object_finalization_1): Delete code for older objects.
780         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
781         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
782
783 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * mule-charset.c (decoding_table_put_char): Use `make_vector'
786         instead of `make_older_vector'.
787         (put_char_ccs_code_point): Likewise.
788         (mark_charset): Mark `cs->decoding_table'.
789         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
790
791         * lisp.h (make_older_vector): Deleted.
792         (make_vector_newer): Deleted.
793
794         * config.h.in (HAVE_GGC): Deleted.
795
796         * alloc.c (make_older_vector): Deleted.
797         (make_vector_newer_1): Deleted.
798         (make_vector_newer): Deleted.
799
800 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
801
802         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
803         (Qideograph_daikanwa_2): New variable.
804         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
805         (complex_vars_of_mule_charset): Add new coded-charset
806         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
807         `LEADING_BYTE_DAIKANWA'.
808
809         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
810         (LEADING_BYTE_DAIKANWA_1): New macro.
811         (LEADING_BYTE_DAIKANWA_2): New macro.
812         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
813
814 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * mule-charset.c (complex_vars_of_mule_charset): Change
817         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
818         the second revised version.
819
820 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
821
822         * mule-charset.c (Vcharset_ucs_smp): New variable.
823         (Vcharset_ucs_sip): New variable.
824         (Qucs_smp): New variable.
825         (Qucs_sip): New variable.
826         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
827         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
828         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
829         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
830         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
831         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
832
833         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
834         (LEADING_BYTE_UCS_SIP): New macro.
835         (MIN_CHAR_SMP): New macro.
836         (MAX_CHAR_SMP): New macro.
837         (MIN_CHAR_SIP): New macro.
838         (MAX_CHAR_SIP): New macro.
839
840 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
841
842         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
843         utf-2000.
844
845 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
848         value; don't store value into `encoding_table' of `Lisp_Charset'.
849         (mark_charset): `encoding_table' was deleted.
850         (charset_description): Likewise.
851         (make_charset): Likewise.
852         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
853         `put_char_ccs_code_point'.
854
855         * chartab.h (Fput_char_attribute): New EXFUN.
856
857         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
858         is unified with normal symbol space.
859         (Fget_char_attribute): Likewise.
860         (Fput_char_attribute): Likewise; behavior of
861         `put_char_ccs_code_point' is changed.
862
863         * char-ucs.h: Include "elhash.h".
864         (Vchar_attribute_hash_table): New external variable.
865         (struct Lisp_Charset): Delete `encoding_table'.
866         (CHARSET_ENCODING_TABLE): New implementation; refer
867         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
868         `Lisp_Charset'.
869
870 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
873         (cs) == 0.
874
875 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * text-coding.c (char_encode_big5): Prefer charset-g1 than
878         `chinese-big5'.
879
880 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
881
882         * chartab.c (uint8_byte_table_description): New constant.
883         (uint8-byte-table): Use `uint8_byte_table_description'.
884         (uint16_byte_table_description): New constant.
885         (uint16-byte-table): Use `uint16_byte_table_description'.
886
887 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
888
889         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
890         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
891
892 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
893
894         * mule-charset.c (Vcharset_ucs_ks): New variable.
895         (Qucs_ks): New variable.
896         (syms_of_mule_charset): Add new symbol `ucs-ks'.
897         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
898
899         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
900
901 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
904         (Fdecode_char): Likewise.
905
906         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
907         chartab.h.
908         (Fdefine_char): Modify for Fdecode_char.
909         (Ffind_char): Likewise.
910
911         * mule-charset.c (Fdecode_char): Add new optional argument
912         `defined-only'.
913         (Fdecode_builtin_char): Modify for `Fdecode_char'.
914
915 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
916
917         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
918         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
919         (allocate_coding_system): Initialize initial-charsets of
920         CODESYS_BIG5 in XEmacs UTF-2000.
921         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
922         CODESYS_BIG5 in XEmacs UTF-2000.
923         (decode_coding_big5): Use initial-charset-g0 and -g1 of
924         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
925
926         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
927         variables.
928         (Qideograph_hanziku_{1 .. 12}): Likewise.
929         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
930         .. 12}'.
931         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
932         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
933         `ideograph-hanziku-{1 .. 12}'.
934
935         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
936         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
937         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
938         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
939         (DECODE_DEFINED_CHAR): New inline function.
940         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
941
942 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
943
944         * mule-charset.c (Vcharset_china3_jef): Renamed from
945         `Vcharset_japanese_jef_china3'.
946         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
947         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
948         `{MIN|MAX}_CHAR_JEF_CHINA3'..
949         (syms_of_mule_charset): Rename `china3-jef' from
950         `japanese-jef-china3'.
951         (complex_vars_of_mule_charset): Likewise; rename
952         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
953
954         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
955         `LEADING_BYTE_JEF_CHINA3'.
956         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
957         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
958
959 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
960
961         * mule-charset.c (encode_builtin_char_1): Comment out special code
962         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
963
964         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
965         (MAX_CHAR_MOJIKYO_0): Comment out.
966         (MIN_CHAR_CBETA): Changed to 0x00E20000.
967         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
968         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
969         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
970
971 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
972
973         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
974         (Qideograph_cbeta): New variable.
975         (encode_builtin_char_1): Comment out special code for
976         coded-charset `mojikyo' and `japanese-jef-china3'.
977         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
978         (complex_vars_of_mule_charset): Add new coded-charset
979         `ideograph-cbeta'.
980
981         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
982         (MIN_CHAR_CBETA): New macro.
983         (MAX_CHAR_CBETA): New macro.
984
985 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
986
987         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
988         (LEADING_BYTE_JEF_CHINA3): New macro.
989         (MIN_CHAR_JEF_CHINA3): New macro.
990         (MAX_CHAR_JEF_CHINA3): Likewise.
991         (DECODE_CHAR): Fixed.
992
993 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
996         (Qjapanese_jef_china3): New variable.
997         (encode_builtin_char_1): Support `japanese-jef-china3'.
998         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
999         (complex_vars_of_mule_charset): Add new coded-charset
1000         `japanese-jef-china3'.
1001
1002 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1005         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1006         94^4, 96^3, 96^4, 128^n and 256^n set.
1007         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1008         (map_char_table): Likewise.
1009
1010 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011
1012         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1013         UTF-2000.
1014
1015 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * chartab.h (get_char_id_table): New inline function.
1018
1019         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1020         function.
1021
1022 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1023
1024         * chartab.h (decode_char_table_range): New prototype in XEmacs
1025         UTF-2000.
1026         (put_char_id_table): New inline function in XEmacs UTF-2000.
1027
1028         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1029         function.
1030         (decode_char_table_range): Delete static declaration in XEmacs
1031         UTF-2000.
1032
1033 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034
1035         * chartab.c (put_char_id_table): Use `put_char_table'.
1036
1037 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1038
1039         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1040         (map_over_uint16_byte_table): Likewise.
1041         (map_over_byte_table): Likewise.
1042         (map_char_table): Modify for `map_over_uint8_byte_table',
1043         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1044         UTF-2000.
1045
1046 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047
1048         * chartab.c (struct map_char_table_for_charset_arg): New
1049         structure.
1050         (map_char_table_for_charset_fun): New function.
1051         (map_char_table): Use `map_char_table' for encoding_table of
1052         `range->charset'.
1053
1054 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055
1056         * chartab.c (map_char_table): Check a character is found in
1057         range->charset instead of non default value is defined in
1058         char-table when range is CHARTAB_RANGE_ROW.
1059
1060 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1061
1062         * chartab.c (map_char_id_table): Deleted.
1063         (Fmap_char_attribute): Use `map_char_table' instead of
1064         `map_char_id_table'.
1065
1066 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067
1068         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1069         UTF-2000.
1070         (update_syntax_table): Deleted in XEmacs UTF-2000.
1071
1072         * syntax.c (find_defun_start): Use `syntax_table' instead of
1073         `mirror_syntax_table' in XEmacs UTF-2000.
1074         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1075         UTF-2000.
1076         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1077         XEmacs UTF-2000.
1078         (Fmatching_paren): Likewise.
1079         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1080         in XEmacs UTF-2000.
1081         (find_start_of_comment): Likewise.
1082         (find_end_of_comment): Likewise.
1083         (Fforward_comment): Likewise.
1084         (scan_lists): Likewise.
1085         (char_quoted): Likewise.
1086         (Fbackward_prefix_chars): Likewise.
1087         (scan_sexps_forward): Likewise.
1088         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1089         (update_syntax_table): Likewise.
1090
1091         * search.c (skip_chars): Use `syntax_table' instead of
1092         `mirror_syntax_table' in XEmacs UTF-2000.
1093         (wordify): Likewise.
1094         (Freplace_match): Likewise.
1095
1096         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1097         `mirror_syntax_table' in XEmacs UTF-2000.
1098         (WORDCHAR_P_UNSAFE): Likewise.
1099         (re_match_2_internal): Likewise.
1100
1101         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1102         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1103
1104         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1105         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1106
1107         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1108         XEmacs UTF-2000.
1109
1110         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1111         UTF-2000.
1112         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1113         (char_table_description): Delete `mirror_table' in XEmacs
1114         UTF-2000.
1115         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1116         UTF-2000.
1117         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1118         (Fcopy_char_table): Likewise.
1119         (put_char_table): Don't call `update_syntax_table' in XEmacs
1120         UTF-2000.
1121
1122         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1123         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1124         (casify_region_internal): Likewise.
1125
1126         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1127
1128         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1129         `mirror_syntax_table' in XEmacs UTF-2000.
1130
1131         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1132         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1133         (Fexpand_abbrev): Likewise.
1134
1135 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1136
1137         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1138
1139 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1140
1141         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1142         (map_over_uint16_byte_table): Likewise.
1143         (map_over_byte_table): Likewise.
1144         (get_char_id_table): Refer `cit->default_value'.
1145         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1146         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1147         of character-id ranges.
1148         (mark_char_table): Mark `ct->default_value'.
1149         (char_table_description): Add `default_value'.
1150         (fill_char_table): Use `default_value'.
1151         (decode_char_table_range): Decode `nil' as
1152         `CHARTAB_RANGE_DEFAULT'.
1153         (get_char_id_table): Refer `cit->default_value'.
1154         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1155         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1156         temporary hack; check value of char-table is bound or not.
1157         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1158
1159         * chartab.h (struct Lisp_Char_Table): Add new member
1160         `default_value' in XEmacs UTF-2000.
1161         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1162         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1163         UTF-2000.
1164
1165 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166
1167         * chartab.h (Lisp_Char_ID_Table): Deleted.
1168
1169         * chartab.c (char_table_description): Fix typo.
1170         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1171         `Lisp_Char_ID_Table'.
1172
1173 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1176         `CHAR_ID_TABLE_P'.
1177
1178         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1179         `CHAR_ID_TABLE_P'.
1180
1181         * chartab.h (XCHAR_ID_TABLE): Deleted.
1182         (XSETCHAR_ID_TABLE): Deleted.
1183         (CHAR_ID_TABLE_P): Deleted.
1184
1185         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1186         `CHAR_ID_TABLE_P'.
1187         (Fget_composite_char): Likewise.
1188         (put_char_table): Likewise.
1189         (add_char_attribute_alist_mapper): Fixed.
1190         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1191         `CHAR_ID_TABLE_P'.
1192         (Fget_char_attribute): Likewise.
1193         (Fget_char_attribute): Likewise.
1194         (Fmap_char_attribute): Likewise.
1195
1196         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1197         `CHAR_ID_TABLE_P'.
1198         (encode_char_1): Likewise.
1199
1200 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201
1202         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1203         `XCHAR_ID_TABLE'.
1204
1205         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1206         instead of `XCHAR_ID_TABLE'.
1207         (remove_char_ccs): Likewise.
1208
1209         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1210         `XCHAR_ID_TABLE'.
1211         (Fget_composite_char): Likewise.
1212         (Fchar_variants): Likewise.
1213         (put_char_table): Likewise.
1214         (add_char_attribute_alist_mapper): Likewise.
1215         (Fchar_attribute_alist): Likewise.
1216         (Fget_char_attribute): Likewise.
1217         (Fput_char_attribute): Likewise.
1218         (Fmap_char_attribute): Likewise.
1219         (Fmap_char_attribute): Likewise.
1220
1221         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1222         `XCHAR_ID_TABLE'.
1223         (encode_char_1): Likewise.
1224
1225 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1228         `Lisp_Char_ID_Table'.
1229         (mark_char_id_table): Deleted.
1230         (print_char_id_table): Likewise.
1231         (char_id_table_equal): Likewise.
1232         (char_id_table_hash): Likewise.
1233         (char_id_table_description): Likewise.
1234         (char_id_table): Likewise.
1235         (make_char_id_table): Use `Fmake_char_table' and
1236         `fill_char_table'.
1237         (get_char_id_table): Use `Lisp_Char_Table' instead of
1238         `Lisp_Char_ID_Table'.
1239         (put_char_id_table): Likewise.
1240         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1241         `XCHAR_ID_TABLE'.
1242         (Fremove_char_attribute): Likewise.
1243         (syms_of_chartab): Don't define type `char-id-table'.
1244
1245         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1246         (char_id_table): Likewise.
1247         (GC_CHAR_ID_TABLE_P): Likewise.
1248         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1249         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1250         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1251         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1252         (get_char_id_table): Use `Lisp_Char_Table' instead of
1253         `Lisp_Char_ID_Table'.
1254         (put_char_id_table_0): Likewise.
1255         (put_char_id_table): Likewise.
1256
1257 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1258
1259         * chartab.h: Lisp_Byte_Table related codes are moved from
1260         chartab.h.
1261
1262         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1263
1264 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1265
1266         * chartab.h: Don't include "chartab.h".
1267         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1268         (Lisp_Char_ID_Table): Likewise.
1269         (char_id_table): Likewise.
1270         (XCHAR_ID_TABLE): Likewise.
1271         (XSETCHAR_ID_TABLE): Likewise.
1272         (CHAR_ID_TABLE_P): Likewise.
1273         (GC_CHAR_ID_TABLE_P): Likewise.
1274         (get_char_id_table): Likewise.
1275
1276         * char-ucs.h: Include "chartab.h".
1277         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1278         (Lisp_Char_ID_Table): Likewise.
1279         (char_id_table): Likewise.
1280         (XCHAR_ID_TABLE): Likewise.
1281         (XSETCHAR_ID_TABLE): Likewise.
1282         (CHAR_ID_TABLE_P): Likewise.
1283         (GC_CHAR_ID_TABLE_P): Likewise.
1284         (get_char_id_table): Likewise.
1285
1286 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1287
1288         * chartab.c (copy_uint8_byte_table): New function.
1289         (copy_uint16_byte_table): New function.
1290         (copy_byte_table): New function.
1291         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1292         characters to call.
1293         (map_over_uint16_byte_table): Likewise.
1294         (map_over_byte_table): Likewise.
1295         (get_byte_table): Move prototype to chartab.h.
1296         (put_byte_table): Likewise.
1297         (put_char_id_table_0): Moved to chartab.h.
1298         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1299         (char_table_entry_equal): Likewise.
1300         (char_table_entry_hash): Likewise.
1301         (char_table_entry_description): Likewise.
1302         (char_table_entry): Likewise.
1303         (make_char_table_entry): Likewise.
1304         (copy_char_table_entry): Likewise.
1305         (get_non_ascii_char_table_value): Likewise.
1306         (map_over_charset_ascii): Likewise.
1307         (map_over_charset_control_1): Likewise.
1308         (map_over_charset_row): Likewise.
1309         (map_over_other_charset): Likewise.
1310         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1311         (print_char_table): Likewise.
1312         (char_table_equal): Likewise.
1313         (char_table_hash): Likewise.
1314         (char_table_description): Likewise.
1315         (fill_char_table): Likewise.
1316         (Fcopy_char_table): Likewise.
1317         (get_char_table): Likewise.
1318         (Fget_range_char_table): Likewise.
1319         (put_char_table): Likewise.
1320         (map_char_table): Likewise.
1321         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1322         UTF-2000.
1323
1324 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1327         `Vauto_fill_chars' in XEmacs UTF-2000.
1328
1329         * chartab.h (get_byte_table): New prototype [moved from
1330         chartab.c].
1331         (put_byte_table): Likewise [moved from chartab.c].
1332         (put_char_id_table_0): New inline function [moved from chartab.c].
1333         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1334         (Lisp_Char_Table_Entry): Likewise.
1335         (char_table_entry): Likewise.
1336         (XCHAR_TABLE_ENTRY): Likewise.
1337         (XSETCHAR_TABLE_ENTRY): Likewise.
1338         (CHAR_TABLE_ENTRYP): Likewise.
1339         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1340         (NUM_ASCII_CHARS): Likewise.
1341         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1342         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1343
1344 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1345
1346         * chartab.c (get_char_id_table): Change interface.
1347         (put_char_id_table_0): New function.
1348         (put_char_id_table): Change interface; new implementation.
1349         (Fget_composite_char): Modify for interface change of
1350         `get_char_id_table'.
1351         (Fchar_variants): Likewise.
1352         (add_char_attribute_alist_mapper): Likewise.
1353         (Fchar_attribute_alist): Likewise.
1354         (Fget_char_attribute): Likewise.
1355         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1356         as same as character as the first argument like `put-char-table';
1357         modify for interface change of `put_char_id_table'.
1358         (Fremove_char_attribute): Modify for interface change of
1359         `put_char_id_table'.
1360
1361 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * text-coding.c: Sync up with XEmacs 21.2.41.
1364         (COMPOSE_ADD_CHAR): Modify for interface change of
1365         `get_char_id_table'.
1366
1367         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1368         change of `put_char_id_table'.
1369         (remove_char_ccs): Likewise.
1370
1371         * chartab.h (put_char_id_table): Change interface.
1372
1373         * char-ucs.h (get_char_id_table): Change interface.
1374         (charset_code_point): Modify for interface change of
1375         `get_char_id_table'.
1376         (encode_char_1): Likewise.
1377
1378 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1381         argument `ccs'.
1382         (map_over_uint16_byte_table): Likewise.
1383         (map_over_byte_table): Likewise.
1384         (map_char_id_table): Add new argument `range' like
1385         `map_char_table'.
1386         (Fmap_char_attribute): Add new argument `range' like
1387         `Fmap_char_table'.
1388
1389 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1390
1391         * chartab.c (map_over_uint8_byte_table): Change interface of
1392         mapping function to use struct chartab_range instead of Emchar.
1393         (map_over_uint16_byte_table): Likewise.
1394         (map_over_byte_table): Likewise.
1395         (map_char_id_table): Likewise.
1396         (struct slow_map_char_id_table_arg): Deleted.
1397         (slow_map_char_id_table_fun): Deleted.
1398         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1399         function `slow_map_char_table_fun' instead of struct
1400         `slow_map_char_id_table_arg' and function
1401         `slow_map_char_id_table_fun'.
1402
1403 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1404
1405         * mule-charset.c: Move char-it-table related codes to chartab.c.
1406         (Vutf_2000_version): Moved to chartab.c.
1407         (Fdefine_char): Likewise.
1408         (Ffind_char): Likewise.
1409         (syms_of_mule_charset): Move types `uint8-byte-table',
1410         `uint16-byte-table', `byte-table' and `char-id-table' to
1411         chartab.c; move functions `char_attribute_list,
1412         `find_char_attribute_table, `char_attribute_alist,
1413         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1414         `map_char_attribute, `define_char, `find_char, `char_variants and
1415         `get_composite_char to chartab.c; move symbols `=>ucs',
1416         `->decomposition', `compat', `isolated', `initial', `medial',
1417         `final', `vertical', `noBreak', `fraction', `super', `sub',
1418         `circle', `square', `wide', `narrow', `small' and `font' to
1419         chartab.c.
1420         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1421         setting codes for `Vcharacter_composition_table' and
1422         `Vcharacter_variant_table' to chartab.c.
1423         (complex_vars_of_mule_charset): Move setting code for
1424         `Vchar_attribute_hash_table' to chartab.c.
1425
1426         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1427         (make_char_id_table): New prototype.
1428         (put_char_id_table): Likewise.
1429         (Fget_char_attribute): Likewise.
1430
1431         * chartab.c: Move char-id-table related code from mule-charset.c.
1432         (Vutf_2000_version): Moved from mule-charset.c.
1433
1434         * char-ucs.h (Qucs): New external variable.
1435         (put_char_ccs_code_point): New prototype.
1436         (remove_char_ccs): Likewise.
1437
1438 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1439
1440         * mule-charset.c (Vcharset_ucs_jis): New variable.
1441         (Qucs_jis): Likewise.
1442         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1443         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1444
1445         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1446
1447 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1448
1449         * mule-charset.c (map_over_uint8_byte_table): New function.
1450         (map_over_uint16_byte_table): Likewise.
1451         (map_over_byte_table): Likewise.
1452         (map_char_id_table): Likewise.
1453         (slow_map_char_id_table_fun): Likewise.
1454         (Fmap_char_attribute): Likewise.
1455         (syms_of_mule_charset): Add new function `map-char-attribute'.
1456
1457 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1460         (syms_of_mule_charset): Add new function `find-char'.
1461
1462 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1465         XEmacs UTF-2000.
1466         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1467         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1468         XEmacs UTF-2000.
1469         (complex_vars_of_mule_charset): Add new coded-charset
1470         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1471         `ideograph-gt-pj-*'.
1472
1473         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1474
1475 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * mule-charset.c (encode_builtin_char_1): Purge codes about
1478         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1479         {MIN|MAX}_CHAR_HEBREW.
1480         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1481         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1482
1483         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1484         (MAX_CHAR_GREEK): Purged.
1485         (MIN_CHAR_CYRILLIC): Purged.
1486         (MAX_CHAR_CYRILLIC): Purged.
1487         (MIN_CHAR_HEBREW): Commented out.
1488         (MAX_CHAR_HEBREW): Likewise.
1489
1490 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1491
1492         * mule-charset.c (Qto_ucs): New variable.
1493         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1494         (Fdefine_char): Likewise.
1495         (syms_of_mule_charset): Add new symbol `=>ucs'.
1496
1497 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1498
1499         * mule-charset.c (Fdecode_char): Fixed.
1500
1501 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1504         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1505         "tcvn5712-1".
1506
1507 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1508
1509         * mule-charset.c (Vcharset_ucs_big5): New variable.
1510         (Qucs_big5): Likewise.
1511         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1512         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1513
1514         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1515
1516 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1517
1518         * mule-charset.c (decode_builtin_char): Check Big5 code range
1519         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1520
1521 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522
1523         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1524         (Qchinese_gb12345): Likewise.
1525         (Fdecode_builtin_char): Fixed.
1526         (syms_of_mule_charset): Add `chinese-gb12345'.
1527         (complex_vars_of_mule_charset): Add coded-charset
1528         `chinese-gb12345'.
1529
1530         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1531         (LEADING_BYTE_CHINESE_GB12345): New macro.
1532
1533 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534
1535         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1536         and `latin-viscii-upper' for `latin-viscii'.
1537
1538 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (Fdecode_builtin_char): Comment out
1541         regularization code for ISO-IR GR representation.
1542
1543 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * mule-charset.c (decode_builtin_char): New function; renamed from
1546         `make_builtin_char'; return -1 instead of signal.
1547         (Fdecode_builtin_char): Use `decode_builtin_char'.
1548
1549         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1550         `make_builtin_char'.
1551         (DECODE_CHAR): Use `decode_builtin_char' instead of
1552         `make_builtin_char'; use mapping table of `chinese-big5' for
1553         `chinese-big5-{1,2}'.
1554
1555 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1556
1557         * text-coding.c (char_encode_big5): New function.
1558         (char_finish_big5): Likewise.
1559         (reset_encoding_stream): Use `char_encode_big5' and
1560         `char_finish_big5' for CODESYS_BIG5.
1561         (mule_encode): Don't use `encode_coding_big5'.
1562         (encode_coding_big5): Deleted.
1563
1564 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1565
1566         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1567         0x81- in XEmacs UTF-2000.
1568         (detect_coding_big5): Likewise.
1569
1570 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1573         generate character-id if the CCS property does not have
1574         corresponding predefined character.
1575         (make_builtin_char): Return -1 if corresponding predefined
1576         character is not found.
1577         (Fdecode_char): Return nil if corresponding character is not
1578         found.
1579         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1580         don't map to builtin ucs space.
1581
1582 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1583
1584         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1585         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1586
1587 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588
1589         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1590         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1591         (Qideograph_gt): Likewise.
1592         (Qideograph_gt_pj_{1..11}): Likewise.
1593         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1594         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1595         `ideograph-gt-pj-11'.
1596         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1597         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1598         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1599
1600         * char-ucs.h (LEADING_BYTE_GT): New macro.
1601         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1602         (MIN_CHAR_GT): Likewise.
1603         (MAX_CHAR_GT): Likewise.
1604
1605 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1608         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1609
1610         * doprnt.c (unsigned_int_converters): Add `c'.
1611         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1612
1613         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1614         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1615         `MIN_CHAR_MOJIKYO'.
1616         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1617         (MAX_CHAR_MOJIKYO_0): New macro.
1618         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1619
1620 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1621
1622         * mule-charset.c (Fdefine_char): Delete cemented out code.
1623         (encode_builtin_char_1): Modify for new allocation of builtin
1624         Mojikyo characters.
1625
1626         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1627
1628 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1629
1630         * mule-charset.c (Vcharset_ucs_cns): New variable.
1631         (Qucs_cns): New variable.
1632         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1633         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1634
1635 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1636
1637         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1638
1639 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1640
1641         * search.c (search_buffer): Make `charset_base_code' as
1642         character-id >> 6 to eliminate the corresponding last byte in
1643         UTF-8 representation [I'm not sure it is right thing].
1644         (boyer_moore): Likewise.
1645
1646 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1647
1648         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1649         representation in MULE.
1650
1651 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652
1653         * text-coding.c (Fmake_coding_system): Use
1654         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1655         `EXTERNAL_PROPERTY_LIST_LOOP'.
1656
1657 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * text-coding.c (decode_output_utf8_partial_char): New function.
1660         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1661
1662 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663
1664         * text-coding.c (decode_coding_utf8): Output original byte
1665         sequence if it is broken; change order of conditions.
1666
1667         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1668         of conditions.
1669
1670         * mb-multibyte.h (BYTE_ASCII_P):
1671         Use bit ops for char-signedness safety.
1672         (BYTE_C0_P): Use bit ops for char-signedness safety.
1673         (BYTE_C1_P): Use bit ops for char-signedness safety.
1674
1675         * character.h: (XCHAR_OR_CHAR_INT):
1676         Always use inline function.
1677         Remove redundant type checking assert() - XINT will abort quite
1678         nicely.
1679
1680 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1681
1682         * text-coding.c: (Fencode_shift_jis_char):
1683         (Fencode_big5_char):
1684         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1685         Replace 0 with '\0' when working with bytes.
1686         Replace initial "(" with "\(" in docstrings.
1687
1688         (Fmake_coding_system):
1689         When type is ccl and value is vector, register it with a proper
1690         symbol.  And checks whether the given ccl program is valid.
1691         (mule_decode): When calling ccl_driver, if src indicates
1692         NULL pointer, set an empty string instead.
1693         (mule_encode): Likewise.
1694
1695         (detect_eol_type):
1696         (detect_coding_sjis):
1697         (decode_coding_sjis):
1698         (detect_coding_big5):
1699         (decode_coding_big5):
1700         (detect_coding_ucs4):
1701         (decode_coding_ucs4):
1702         (detect_coding_utf8):
1703         (decode_coding_utf8):
1704         (detect_coding_iso2022):
1705         (decode_coding_iso2022):
1706         (decode_coding_no_conversion):
1707         (mule_decode):
1708         Make all detecting and decoding functions take an Extbyte * arg.
1709         (text_encode_generic):
1710         (encode_coding_big5):
1711         (encode_coding_no_conversion):
1712         (mule_encode):
1713         Make all encoding functions take a Bufbyte * arg.
1714         Use size_t instead of unsigned int for memory sizes.
1715         Only cast to unsigned char whenever dereferencing Extbyte *.
1716
1717         (struct lrecord_description fcd_description_1): Use countof.
1718         (complex_vars_of_file_coding):
1719         Use countof instead of sizeof.
1720         Use CHECK_NATNUM instead of CHECK_INT.
1721
1722 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1723
1724         * mule-charset.c (Fget_char_attribute): Add new optional argument
1725         `default-value'.
1726         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1727         (remove_char_ccs): Likewise.
1728
1729 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1730
1731         * text-coding.c (char_encode_shift_jis): New implementation in
1732         UTF-2000.
1733         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1734         ...)'.
1735
1736         * mule-charset.c (Vcharset_chinese_big5): New variable in
1737         UTF-2000.
1738         (Qchinese_big5): New variable in UTF-2000.
1739         (BIG5_SAME_ROW): New macro in UTF-2000.
1740         (make_builtin_char): Use builtin characters of
1741         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1742         characters of `Vcharset_chinese_big5'.
1743         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1744         (complex_vars_of_mule_charset): Add new coded-charset
1745         `chinese-big5' in UTF-2000.
1746
1747         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1748         (Vcharset_chinese_big5): New external variable declaration.
1749         (Vcharset_japanese_jisx0208_1990): Likewise.
1750
1751 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752
1753         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1754         function.
1755         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1756
1757 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1758
1759         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1760         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1761         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1762         `mojikyo-pj-*'.
1763
1764 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1767
1768 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1771         to 0.17.
1772
1773 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1776         for `CHARSET_BY_ATTRIBUTES'.
1777         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1778         `CHARSET_BY_ATTRIBUTES'.
1779
1780         * text-coding.c (struct decoding_stream): Rename member `CH' to
1781         `CPOS'.
1782         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1783         (decode_coding_sjis): Likewise.
1784         (decode_coding_big5): Likewise.
1785         (decode_coding_ucs4): Likewise.
1786         (decode_coding_utf8): Likewise.
1787         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1788         `CHARSET_BY_ATTRIBUTES'.
1789         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1790         `str->counter'; decode 3, 4 bytes sets.
1791         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1792         sets.
1793         (decode_coding_no_conversion): Use `str->cpos' instead of
1794         `str->ch'.
1795
1796         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1797         (Qmojikyo_2022_1): New variable.
1798         (make_charset): Don't use `CHARSET_TYPE_*'.
1799         (range_charset_code_point): Support coded-charset
1800         `mojikyo-2022-1'.
1801         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1802         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1803         `CHARSET_BY_ATTRIBUTES'.
1804         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1805         `CHARSET_BY_ATTRIBUTES'.
1806         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1807         (complex_vars_of_mule_charset): Add new coded-charset
1808         `mojikyo-2022-1'.
1809
1810         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1811         interface; changed to inline function.
1812
1813         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1814         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1815         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1816         (CHARSET_TYPE_94): Deleted.
1817         (CHARSET_TYPE_94X94): Deleted.
1818         (CHARSET_TYPE_96): Deleted.
1819         (CHARSET_TYPE_96X96): Deleted.
1820         (CHARSET_TYPE_128): Deleted.
1821         (CHARSET_TYPE_128X128): Deleted.
1822         (CHARSET_TYPE_256): Deleted.
1823         (CHARSET_TYPE_256X256): Deleted.
1824         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1825         to inline function.
1826         (DECODE_MOJIKYO_2022): New inline function.
1827         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1828         `Vcharset_mojikyo_2022_1'.
1829
1830 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1831
1832         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1833         instead of `EQ'.
1834         (put_byte_table): Likewise.
1835         (char_id_table_equal): Use `get_byte_table' [new implementation].
1836
1837 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * mule-charset.c: Include <limits.h> in UTF-2000.
1840         (BT_UINT8_MIN): New macro in UTF-2000.
1841         (BT_UINT8_MAX): New macro in UTF-2000.
1842         (BT_UINT8_t): New macro in UTF-2000.
1843         (BT_UINT8_nil): New macro in UTF-2000.
1844         (BT_UINT8_unbound): New macro in UTF-2000.
1845         (INT_UINT8_P): New inline function in UTF-2000.
1846         (UINT8_VALUE_P): New inline function in UTF-2000.
1847         (UINT8_ENCODE): New inline function in UTF-2000.
1848         (UINT8_DECODE): New inline function in UTF-2000.
1849         (mark_uint8_byte_table): New function in UTF-2000.
1850         (print_uint8_byte_table): New function in UTF-2000.
1851         (uint8_byte_table_equal): New function in UTF-2000.
1852         (uint8_byte_table_hash): New function in UTF-2000.
1853         (make_uint8_byte_table): New function in UTF-2000.
1854         (uint8_byte_table_same_value_p): New function in UTF-2000.
1855         (BT_UINT16_MIN): New macro in UTF-2000.
1856         (BT_UINT16_MAX): New macro in UTF-2000.
1857         (BT_UINT16_t): New macro in UTF-2000.
1858         (BT_UINT16_nil): New macro in UTF-2000.
1859         (BT_UINT16_unbound): New macro in UTF-2000.
1860         (INT_UINT16_P): New inline function in UTF-2000.
1861         (UINT16_VALUE_P): New inline function in UTF-2000.
1862         (UINT16_ENCODE): New inline function in UTF-2000.
1863         (UINT16_DECODE): New inline function in UTF-2000.
1864         (UINT8_TO_UINT16): New inline function in UTF-2000.
1865         (mark_uint16_byte_table): New function in UTF-2000.
1866         (print_uint16_byte_table): New function in UTF-2000.
1867         (uint16_byte_table_equal): New function in UTF-2000.
1868         (uint16_byte_table_hash): New function in UTF-2000.
1869         (make_uint16_byte_table): New function in UTF-2000.
1870         (uint16_byte_table_same_value_p): New function in UTF-2000.
1871         (print_byte_table): New function in UTF-2000.
1872         (byte-table): Use `print_byte_table' as printer.
1873         (make_byte_table): Delete second argument `older'.
1874         (byte_table_same_value_p): New function in UTF-2000.
1875         (copy_byte_table): Deleted.
1876         (get_byte_table): New function in UTF-2000.
1877         (put_byte_table): New function in UTF-2000.
1878         (print_char_id_table): New function in UTF-2000.
1879         (char-id-table): Use `print_char_id_table' as printer.
1880         (make_char_id_table): Delete second argument `older'.
1881         (get_char_id_table): Use `get_byte_table [new implementation].
1882         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1883         implementation].
1884         (Ffind_char_attribute_table): New function in UTF-2000.
1885         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1886         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1887         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1888         (syms_of_mule_charset): Add new function
1889         `find-char-attribute-table' in UTF-2000.
1890
1891         * lrecord.h (enum lrecord_type): Add
1892         `lrecord_type_uint16_byte_table' and
1893         `lrecord_type_uint8_byte_table'.
1894
1895         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1896         (Lisp_Uint8_Byte_Table): New type.
1897         (XUINT8_BYTE_TABLE): New macro.
1898         (XSETUINT8_BYTE_TABLE): New macro.
1899         (UINT8_BYTE_TABLE_P): New macro.
1900         (GC_UINT8_BYTE_TABLE_P): New macro.
1901         (struct Lisp_Uint16_Byte_Table): New structure.
1902         (Lisp_Uint16_Byte_Table): New type.
1903         (XUINT16_BYTE_TABLE): New macro.
1904         (XSETUINT16_BYTE_TABLE): New macro.
1905         (UINT16_BYTE_TABLE_P): New macro.
1906         (GC_UINT16_BYTE_TABLE_P): New macro.
1907
1908 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909
1910         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1911         (Vcharacter_ideographic_strokes_table): Deleted.
1912         (Vcharacter_total_strokes_table): Deleted.
1913         (Vcharacter_morohashi_daikanwa_table): Deleted.
1914         (Vcharacter_decomposition_table): Deleted.
1915         (Qname): Deleted because it is duplicated.
1916         (Qideographic_radical): Deleted.
1917         (Qideographic_strokes): Deleted.
1918         (Qtotal_strokes): Deleted.
1919         (Qmorohashi_daikanwa): Deleted.
1920         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1921         `ideographic-radical', `ideographic-strokes', `total-strokes',
1922         `morohashi-daikanwa' and `->decomposition'.
1923         (Fget_char_attribute): Likewise.
1924         (Fput_char_attribute): Likewise; use `make-vector' instead of
1925         `make_older_vector' for `->decomposition' value.
1926         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1927         `ideograph-daikanwa'.
1928         (syms_of_mule_charset): Delete builtin symbols `name',
1929         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1930         `morohashi-daikanwa'.
1931         (vars_of_mule_charset): Don't setup
1932         `Vcharacter_ideographic_radical_table',
1933         `Vcharacter_ideographic_strokes_table',
1934         `Vcharacter_total_strokes_table',
1935         `Vcharacter_morohashi_daikanwa_table' and
1936         `Vcharacter_decomposition_table'.
1937
1938 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1941         `make_older_vector', `make_vector_newer_1' and
1942         `make_vector_newer'.
1943
1944         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1945         `make_older_vector' and `make_vector_newer'.
1946
1947         * config.h.in (HAVE_GGC): New macro.
1948
1949 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1950
1951         * mule-charset.c (struct char_attribute_list_closure): New
1952         structure in UTF-2000.
1953         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1954         (Fchar_attribute_list): Likewise.
1955         (Fset_charset_mapping_table): Use `make_vector_newer'.
1956         (Fdecode_builtin_char): New function in UTF-2000.
1957         (syms_of_mule_charset): Add new function `char-attribute-list' and
1958         `decode-builtin-char' in UTF-2000.
1959
1960         * lisp.h (make_vector_newer): New prototype.
1961
1962         * alloc.c (make_vector_newer_1): New function.
1963         (make_vector_newer): New function.
1964
1965 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1966
1967         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1968         50100)'.
1969
1970 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1971
1972         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1973         (Vcharacter_attribute_table): Deleted.
1974         (Vcharacter_name_table): Deleted.
1975         (put_char_attribute): Deleted.
1976         (remove_char_attribute): Deleted.
1977         (struct char_attribute_alist_closure): New structure.
1978         (add_char_attribute_alist_mapper): New function.
1979         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1980         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1981         (Fget_char_attribute): Likewise.
1982         (Fput_char_attribute): Likewise.
1983         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1984         of `remove_char_attribute'.
1985         (Fdefine_char): Return character.
1986         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1987         and `Vcharacter_name_table'.
1988         (complex_vars_of_mule_charset): Likewise
1989         `Vchar_attribute_hash_table'.
1990
1991 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * character.h (CHARC_CHARSET): New macro.
1994         (CHARC_CHARSET_ID): New macro.
1995         (CHARC_CODE_POINT): New macro.
1996         (CHARC_COLUMNS): New macro.
1997         (CHARC_TO_CHAR): New inline function.
1998         (CHARC_EQ): New inline function.
1999         (CHARC_ASCII_EQ): New inline function.
2000         (CHARC_IS_SPACE): New inline function.
2001         (ASCII_TO_CHARC): New inline function.
2002
2003         * char-ucs.h (encode_char_2): Deleted.
2004         (ENCODE_CHAR): Use `encode_char_1' again.
2005         (breakup_char_1): Likewise.
2006         (CHAR_TO_CHARC): New inline function.
2007
2008         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2009
2010 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011
2012         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2013         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2014         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2015         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2016         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2017         `CHARC_IS_SPACE'.
2018         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2019
2020         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2021         `CHARC_CODE_POINT'.
2022         (x_output_display_block): Use `CHARC_CHARSET' and
2023         `CHARC_ASCII_EQ'.
2024
2025         * redisplay-tty.c (tty_output_display_block): Use
2026         `CHARC_ASCII_EQ'.
2027         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2028
2029         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2030
2031         * insdel.c (find_charsets_in_charc_string): Use
2032         `CHARC_CHARSET_ID'.
2033         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2034         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2035         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2036         (convert_charc_string_into_malloced_string): Likewise.
2037
2038 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2041         instead of <Emchar_dynarr *> for buf; use
2042         `convert_bufbyte_string_into_charc_dynarr' instead of
2043         `convert_bufbyte_string_into_emchar_dynarr'; use
2044         `find_charsets_in_charc_string' instead of
2045         `find_charsets_in_emchar_string'.
2046
2047         * redisplay.h:
2048         - Include "character.h".
2049         (struct rune): New member `cglyph'; delete member `chr'.
2050
2051         * redisplay.c (redisplay_text_width_charc_string): New function;
2052         delete `redisplay_text_width_emchar_string'.
2053         (rtw_charc_dynarr): New variable; renamed from
2054         `rtw_emchar_dynarr'.
2055         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2056         `rtw_emchar_dynarr'; use
2057         `convert_bufbyte_string_into_charc_dynarr' instead of
2058         `convert_bufbyte_string_into_emchar_dynarr'; use
2059         `redisplay_text_width_charc_string' instead of
2060         `redisplay_text_width_emchar_string'.
2061         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2062         instead of `rtw_emchar_dynarr'; use
2063         `convert_bufbyte_string_into_charc_dynarr' instead of
2064         `convert_bufbyte_string_into_emchar_dynarr'.
2065         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2066         `redisplay_text_width_charc_string' instead of
2067         `redisplay_text_width_emchar_string'.
2068         (create_text_block): Modify for <struct rune> change.
2069         (generate_formatted_string_db): Likewise.
2070         (create_string_text_block): Likewise.
2071         (pixel_to_glyph_translation): Likewise.
2072
2073         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2074         instead of <const Emchar *>.
2075         (x_text_width): Likewise.
2076         (x_output_display_block): Use <Charc_dynarr *> instead
2077         <Emchar_dynarr *>; modify for <structure rune> change.
2078         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2079         *>.
2080
2081         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2082         <const Emchar *>; use `charc_string_displayed_columns' instead of
2083         `emchar_string_displayed_columns'.
2084         (tty_output_display_block): Use <Charc_dynarr *> instead of
2085         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2086         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2087         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2088         `tty_output_emchar_dynarr_dynarr'.
2089         (tty_output_charc_dynarr): New function; delete
2090         `tty_output_charc_dynarr'.
2091
2092         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2093         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2094         <Emchar_dynarr *> for buf; use
2095         `convert_bufbyte_string_into_charc_dynarr' instead of
2096         `convert_bufbyte_string_into_emchar_dynarr'.
2097
2098         * frame.c (title_string_charc_dynarr): New variable; renamed from
2099         `title_string_emchar_dynarr'.
2100         (generate_title_string): Use `title_string_charc_dynarr' instead
2101         of `title_string_emchar_dynarr'; use
2102         `convert_charc_string_into_malloced_string' instead of
2103         `convert_emchar_string_into_malloced_string'.
2104         (init_frame): Use `title_string_charc_dynarr' instead of
2105         `title_string_emchar_dynarr'.
2106
2107         * console.h:
2108         - Include "character.h".
2109         (struct console_methods): Use <const Charc *> instead of <const
2110         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2111         <Emchar_dynarr *> in output_string_method.
2112
2113         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2114         <Emchar_dynarr *>.
2115
2116         * console-stream.c (stream_text_width): Use <const Charc *>
2117         instead of <const Emchar *>.
2118
2119         * character.h (Charc_dynarr): New type.
2120
2121         * char-ucs.h (structure Charc): New structure; define new type
2122         `Charc'.
2123
2124         * char-lb.h (DECODE_CHAR): New inline function.
2125         (encode_char_1): New inline function.
2126         (ENCODE_CHAR): New macro.
2127         (structure Charc): New structure; define new type `Charc'.
2128
2129         * char-1byte.h (Vcharset_control_1): New macro.
2130         (Vcharset_latin_iso8859_1): New macro.
2131         (DECODE_CHAR): New inline function.
2132         (encode_char_1): New inline function.
2133         (ENCODE_CHAR): New macro.
2134         (structure Charc): New structure; define new type `Charc'.
2135
2136         * insdel.c (find_charsets_in_charc_string): New function; delete
2137         `find_charsets_in_emchar_string'.
2138         (charc_string_displayed_columns): New function; delete
2139         `emchar_string_displayed_columns'.
2140         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2141         `convert_bufbyte_string_into_emchar_dynarr'.
2142         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2143         `convert_charc_string_into_bufbyte_dynarr'.
2144         (convert_charc_string_into_malloced_string): New function; delete
2145         `convert_charc_string_into_malloced_string'.
2146
2147         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2148         `find_charsets_in_emchar_string'.
2149         (charc_string_displayed_columns): New prototype; delete
2150         `emchar_string_displayed_columns'.
2151         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2152         `convert_charc_string_into_bufbyte_dynarr'.
2153         (convert_charc_string_into_malloced_string): New prototype; delete
2154         `convert_charc_string_into_malloced_string'.
2155
2156 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2157
2158         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2159
2160 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2161
2162         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2163
2164         * char-ucs.h: Use <short> for <Charset_ID>.
2165
2166         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2167         <Charset_ID>.
2168
2169 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170
2171         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2172         to 0.16.
2173
2174 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2175
2176         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2177         variable.
2178         (Qmorohashi_daikanwa): New variable.
2179         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2180         for `morohashi-daikanwa' attribute.
2181         (Fget_char_attribute): Likewise.
2182         (Fput_char_attribute): Likewise.
2183         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2184         has the same value of `ideograph-daikanwa'.
2185         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2186         (vars_of_mule_charset): Setup
2187         `Vcharacter_morohashi_daikanwa_table'.
2188
2189 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190
2191         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2192         attributes.
2193         (add_charset_to_list_mapper): Add `key' instead of
2194         `XCHARSET_NAME (value)' to return aliases.
2195
2196 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2199         variable.
2200         (Vcharacter_ideographic_strokes_table): New variable.
2201         (Qideographic_radical): New variable.
2202         (Qideographic_strokes): New variable.
2203         (Fchar_attribute_alist): Use
2204         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2205         attribute; use `Vcharacter_ideographic_strokes_table' for
2206         `ideographic-strokes' attribute.
2207         (Fget_char_attribute): Likewise.
2208         (Fput_char_attribute): Likewise.
2209         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2210         `ideographic-strokes'.
2211         (vars_of_mule_charset): Setup
2212         `Vcharacter_ideographic_radical_table' and
2213         `Vcharacter_ideographic_strokes_table'.
2214
2215 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2216
2217         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2218         (Qtotal_strokes): New variable.
2219         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2220         `total-strokes' attribute.
2221         (Fget_char_attribute): Likewise.
2222         (Fput_char_attribute): Likewise.
2223         (syms_of_mule_charset): Add new symbol `total-strokes'.
2224         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2225
2226 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2227
2228         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2229         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2230         are found.
2231         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2232         `->decomposition' attribute.
2233         (Fput_char_attribute): Likewise.
2234         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2235
2236 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2237
2238         * mule-charset.c (decoding_table_check_elements): New function.
2239         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2240
2241 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * mule-charset.c (Fset_charset_mapping_table): Use
2244         `put_char_ccs_code_point'.
2245
2246 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * mule-charset.c (decoding_table_put_char): New inline function.
2249         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2250
2251 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2254         (XCHARSET_BYTE_SIZE): New macro.
2255         (decoding_table_remove_char): New inline function.
2256         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2257         `decoding_table_remove_char'.
2258         (remove_char_ccs): Use `decoding_table_remove_char'.
2259         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2260
2261 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2262
2263         * mule-charset.c (Vcharacter_name_table): New variable.
2264         (Qname): New variable.
2265         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2266         attribute.
2267         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2268         `Vcharacter_name_table' for `name' attribute.
2269         (Fremove_char_attribute): Use function `remove_char_ccs'.
2270         (put_char_ccs_code_point): New function.
2271         (remove_char_ccs): New function.
2272         (syms_of_mule_charset): Add new symbol `name'.
2273         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2274
2275 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2276
2277         * mule-charset.c (make_byte_table): Add new argument `older'.
2278         (make_char_id_table): Likewise.
2279         (copy_char_id_table): Comment out because it is not used.
2280         (put_char_id_table): Modify for `make_byte_table'.
2281         (Fput_char_attribute): Make encoding_table as older object;
2282         inherit older bit of `Vcharacter_composition_table'.
2283         (mark_charset): Don't mark `cs->encoding_table'.
2284         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2285         normal object; make `Vcharacter_composition_table' as an older
2286         object; delete staticpro for `Vcharacter_composition_table'; make
2287         `Vcharacter_variant_table' as a normal object.
2288
2289         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2290         (mark_object): Don't check older object in UTF-2000.
2291
2292         * lrecord.h (struct lrecord_header): Add new member `older' in
2293         UTF-2000.
2294         (set_lheader_implementation): Setup `SLI_header->older' in
2295         UTF-2000.
2296         (set_lheader_older_implementation): New macro in UTF-2000.
2297         (OLDER_RECORD_P): New macro in UTF-2000.
2298         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2299         (alloc_older_lcrecord): New prototype in UTF-2000.
2300         (alloc_older_lcrecord_type): New macro in UTF-2000.
2301
2302 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303
2304         * mule-charset.c (byte_table_description): Use
2305         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2306         (char_id_table_description): Delete bogus `, 1'.
2307         (Fget_char_attribute): Refer encoding_table of each coded-charset
2308         to get value of coded-charset attribute of a character.
2309         (Fput_char_attribute): Use `make_older_vector' instead of
2310         `make_vector'; use encoding_table of each coded-charset to store
2311         value of coded-charset attribute of a character.
2312         (Fremove_char_attribute): Use encoding_table of each coded-charset
2313         to store value of coded-charset attribute of a character.
2314         (mark_charset): Mark `cs->encoding_table'; don't mark
2315         `cs->decoding_table'.
2316         (charset_description): Add description of new member
2317         `encoding_table'.
2318         (make_charset): Initialize `encoding_table'.
2319
2320         * char-ucs.h (struct Lisp_Charset): Add new member
2321         `encoding_table'.
2322         (CHARSET_ENCODING_TABLE): New macro.
2323         (XCHARSET_ENCODING_TABLE): New macro.
2324         (charset_code_point): New implementation.
2325         (encode_char_1): Likewise.
2326
2327         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2328         (disksave_object_finalization_1): Call finalizers of
2329         `all_older_lcrecords' in UTF-2000.
2330         (make_older_vector): New function in UTF-2000.
2331         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2332         UTF-2000.
2333
2334         * lisp.h (make_older_vector): New prototype in UTF-2000.
2335
2336 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2337
2338         * lrecord.h (enum lrecord_type): Rename
2339         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2340
2341         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2342         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2343         `get_char_code_table'.
2344
2345         * mule-charset.c (mark_char_id_table): Renamed from
2346         `mark_char_code_table'.
2347         (char_id_table_equal): Renamed from `char_code_table_equal'.
2348         (char_id_table_hash): Renamed from `char_code_table_hash'.
2349         (make_char_id_table): Renamed from `make_char_code_table'.
2350         (copy_char_id_table): Renamed from `copy_char_code_table'.
2351         (get_char_id_table): Renamed from `get_char_code_table'.
2352         (put_char_id_table): Renamed from `put_char_code_table'.
2353         (to_char_id): Renamed from `to_char_code'.
2354
2355         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2356         `Lisp_Char_Code_Table'.
2357         (char_id_table): Renamed from `char_code_table'.
2358         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2359         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2360         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2361         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2362         (get_char_id_table): Renamed from `get_char_code_table'.
2363
2364 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365
2366         * lrecord.h (enum lrecord_type): Rename
2367         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2368
2369         * mule-charset.c (mark_byte_table): Renamed from
2370         `mark_char_byte_table'.
2371         (byte_table_equal): Renamed from `char_byte_table_equal'.
2372         (byte_table_hash): Renamed from `byte_table_hash'.
2373         (make_byte_table): Renamed from `make_byte_table'.
2374         (copy_byte_table): Renamed from `copy_char_byte_table'.
2375
2376         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2377         `Lisp_Char_Byte_Table'.
2378         (byte_table): Renamed from `char_byte_table'.
2379         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2380         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2381         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2382         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2383
2384 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2387         (dfc_convert_to_internal_format): Likewise.
2388         
2389         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2390         * text-coding.c (Fcoding_system_alias_p): New function.
2391         * text-coding.c (Fcoding_system_aliasee): New function.
2392         * text-coding.c (append_suffix_to_symbol): New function.
2393         * text-coding.c (dangling_coding_system_alias_p): New function.
2394         * text-coding.c (Ffind_coding_system):
2395         * text-coding.c (Fcopy_coding_system):
2396         * text-coding.c (encode_coding_no_conversion):
2397         * text-coding.c (syms_of_file_coding):
2398         * text-coding.c (vars_of_file_coding):
2399         Rewrite coding system alias code.
2400         Allow nested aliases, like symbolic links.
2401         Allow redefinition of coding system aliases.
2402         Prevent existence of dangling coding system aliases.
2403         Eliminate convert_to_external_format.
2404         Eliminate convert_to_internal_format.
2405         
2406         * text-coding.c: Change enum eol_type to eol_type_t.
2407
2408 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2411         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2412
2413         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2414         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2415
2416 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2417
2418         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2419         `ideograph-daikanwa'.
2420
2421         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2422         (Vcharset_ucs_bmp): Likewise.
2423         (Vcharset_mojikyo): Add new extern variable definition.
2424         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2425         (Vcharset_latin_iso8859_3): Likewise.
2426         (Vcharset_latin_iso8859_4): Likewise.
2427         (Vcharset_latin_iso8859_9): Likewise.
2428         (Vcharset_latin_viscii_lower): Likewise.
2429         (Vcharset_latin_viscii_upper): Likewise.
2430         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2431         `mojikyo' code-point is used to decode.
2432         (encode_char_2): New function [to convert `mojikyo' code-point to
2433         Mojikyo font encoding].
2434         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2435         (breakup_char_1): Likewise.
2436         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2437
2438 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2439
2440         * text-coding.c (Fmake_coding_system): Add document about
2441         `disable-composition' property.
2442
2443 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2444
2445         * text-coding.c (Qdisable_composition): New variable; delete
2446         `Qcomposite'.
2447         (Fmake_coding_system): Add new property `disable-composite';
2448         delete property `composite'.
2449         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2450         instead of `!CODING_SYSTEM_COMPOSITE'.
2451         (syms_of_file_coding): Add new symbol `disable-composition';
2452         delete symbol `composite'.
2453
2454         * file-coding.h (struct Lisp_Coding_System): Add
2455         `disable_composition'; delete `enable_composition'.
2456         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2457         `CODING_SYSTEM_COMPOSITE'.
2458         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2459         `XCODING_SYSTEM_COMPOSITE'.
2460
2461 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462
2463         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2464         to 0.15.
2465
2466 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2467
2468         * text-coding.c (Qcomposite): New variable.
2469         (Fmake_coding_system): Add new property `composite'.
2470         (struct decoding_stream): Add `combined_char_count',
2471         `combined_chars' and `combining_table' in UTF-2000.
2472         (COMPOSE_FLUSH_CHARS): New macro.
2473         (COMPOSE_ADD_CHAR): New macro.
2474         (reset_decoding_stream): Reset `str->combined_char_count' and
2475         `str->combining_table' in UTF-2000.
2476         (decode_coding_iso2022): Modify for character-decomposition.
2477         (syms_of_file_coding): Add new symbol `composite'.
2478
2479 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2480
2481         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2482         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2483         of `Vcharacter_composition_table' if `->decomposition' property
2484         has only 1 element.
2485         (Qlatin_tcvn5712): New variable.
2486         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2487         (complex_vars_of_mule_charset): Add new coded-charset
2488         `latin-tcvn5712'.
2489
2490         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2491
2492 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2493
2494         * file-coding.h (struct Lisp_Coding_System): Add
2495         `enable_composition'.
2496         (CODING_SYSTEM_COMPOSITE): New macro.
2497         (XCODING_SYSTEM_COMPOSITE): New macro.
2498
2499 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2500
2501         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2502
2503 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2504
2505         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2506         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2507
2508 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2509
2510         * mule-charset.c (Vcharset_mojikyo): New variable.
2511         (Fdefine_char): Don't use coded-charset which does not have
2512         non-builtin character range to allocate character-id.
2513         (Qmojikyo): New variable.
2514         (syms_of_mule_charset): Add new symbol `mojikyo'.
2515         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2516
2517         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2518         (LEADING_BYTE_MOJIKYO): New macro.
2519         (MIN_CHAR_MOJIKYO): New macro.
2520         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2521         (MAX_CHAR_MOJIKYO): New macro.
2522
2523 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2524
2525         * mule-charset.c (remove_char_attribute): Fixed.
2526
2527 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2528
2529         * mule-charset.c (remove_char_attribute): New function.
2530         (Fremove_char_attribute): New function.
2531         (encode_builtin_char_1): Comment out builtin-support for
2532         greek-iso8859-7 and cyrillic-iso8859-5.
2533         (Fdecode_char): Check `code' is an integer.
2534         (syms_of_mule_charset): Add `remove-char-attribute'.
2535         (MIN_CHAR_GREEK): Deleted.
2536         (MAX_CHAR_GREEK): Likewise.
2537         (MIN_CHAR_CYRILLIC): Likewise.
2538         (MAX_CHAR_CYRILLIC): Likewise.
2539         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2540         MAX_CHAR_GREEK for `greek-iso8859-7'.
2541
2542         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2543         (MAX_CHAR_GREEK): Likewise.
2544         (MIN_CHAR_CYRILLIC): Likewise.
2545         (MAX_CHAR_CYRILLIC): Likewise.
2546
2547 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2548
2549         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2550         format is used without `ucs' property.
2551         (Fdecode_char): Fix problem with GR representation.
2552         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2553         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2554
2555 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2556
2557         * mule-charset.c (make_builtin_char): New function.
2558         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2559         (Fset_charset_mapping_table): Modify for new representation of
2560         code-point.
2561         (Fdecode_char): New function.
2562         (syms_of_mule_charset): Add new builtin function `decode-char' in
2563         UTF-2000.
2564
2565         * char-ucs.h (make_builtin_char): New prototype.
2566         (DECODE_CHAR): New inline function.
2567         (MAKE_CHAR): Use `DECODE_CHAR'.
2568
2569 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2570
2571         * text-coding.c (parse_charset_conversion_specs): Use
2572         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2573         `XCHARSET_TYPE'.
2574         (iso2022_designate): Likewise.
2575
2576         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2577         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2578
2579         * mule-charset.c (Vcharset_ucs): New variable.
2580         (print_charset): Change design; use `CHARSET_CHARS' and
2581         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2582         (make_charset): Change signature to specify `chars' and
2583         `dimension' instead of `type'.
2584         (range_charset_code_point): Modify for 256^n-set.
2585         (encode_builtin_char_1): Encode as `ucs' in default.
2586         (Fmake_charset): Modify for `make_charset'.
2587         (Fmake_reverse_direction_charset): Likewise.
2588         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2589         UTF-2000.
2590         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2591         for `make_charset'.
2592
2593         * char-ucs.h (Vcharset_ucs): New variable.
2594         (LEADING_BYTE_UCS): New macro.
2595         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2596         and `chars' to `unsigned short' from `unsigned int'.
2597         (CHARSET_TYPE): Deleted.
2598         (XCHARSET_TYPE): Deleted.
2599
2600 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2601
2602         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2603
2604         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2605         (ENCODE_CHAR): New macro.
2606
2607 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2608
2609         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2610         to 0.14 (Kawachi-Katakami).
2611
2612 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2613
2614         * text-coding.c (char_encode_shift_jis): Modify for
2615         `charset_code_point'.
2616         (char_encode_iso2022): Likewise.
2617
2618         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2619         (integer) instead of list of <Lisp_Object>s (integers) as the
2620         format of code-point of a coded-charset.
2621         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2622         (encode_builtin_char_1): New function; delete
2623         `split_builtin_char'.
2624         (charset_code_point): Return <int> instead of <Lisp_Object>.
2625         (Fsplit_char): Don't use `SPLIT_CHAR'.
2626
2627         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2628         prototype for `split_builtin_char'.
2629         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2630         (charset_code_point): Likewise.
2631         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2632         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2633
2634 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2635
2636         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2637         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2638
2639 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2640
2641         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2642
2643         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2644         (MAX_CHAR_OBS_94x94): Deleted.
2645
2646 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2647
2648         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2649
2650         * char-ucs.h (MAX_CHAR_BMP): New macro.
2651
2652 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2653
2654         * text-coding.c: Sync with r21-2-24.
2655
2656 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2657
2658         * file-coding.c: Modify for UTF-2000.
2659
2660 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2661
2662         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2663         to 0.13 (Takaida).
2664
2665 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2666
2667         * mule-charset.c (split_builtin_char): Delete builtin support for
2668         `katakana-jisx0201'.
2669         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2670         BMP area in builtin representation.
2671
2672         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2673         `Vcharset_katakana_jisx0201'.
2674
2675 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2676
2677         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2678         (Qisolated): New variable.
2679         (Qinitial): New variable.
2680         (Qmedial): New variable.
2681         (Qfinal): New variable.
2682         (Qvertical): New variable.
2683         (Qsmall): New variable.
2684         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2685         `Qvertical' and `Qsmall'.
2686         (Qmojikyo_pj_[1 .. 21]): New variable.
2687         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2688         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2689         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2690         .. 21]'.
2691
2692 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2693
2694         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2695         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2696         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2697
2698 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2699
2700         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2701         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2702         BMP.
2703         (Qjapanese_jisx0208_1990): New variable.
2704         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2705         (complex_vars_of_mule_charset): Add new coded-charset
2706         `japanese-jisx0208-1990'.
2707
2708         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2709         (MIN_CHAR_JIS_X0208_1990): New macro.
2710         (MAX_CHAR_JIS_X0208_1990): New macro.
2711
2712 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2713
2714         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2715         coded-charset is not found.
2716
2717 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2718
2719         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2720         (Fdefine_char): Use `Fmake_char'.
2721
2722 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2723
2724         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2725         (Vcharset_hiragana_jisx0208): Deleted.
2726         (Vcharset_katakana_jisx0208): Deleted.
2727         (Qideograph_daikanwa): New variable.
2728         (Qhiragana_jisx0208): Deleted.
2729         (Qkatakana_jisx0208): Deleted.
2730         (split_builtin_char): Split `ideograph-daikanwa'.
2731         (Fsplit_char): New implementation for UTF-2000.
2732         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2733         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2734         (complex_vars_of_mule_charset): Add new coded-charset
2735         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2736         `katakana-jisx0208'.
2737
2738         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2739         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2740         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2741         (MIN_CHAR_DAIKANWA): New macro.
2742         (MAX_CHAR_DAIKANWA): New macro.
2743
2744 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2745
2746         * data.c (Fstring_to_number): Don't recognize floating point if
2747         base is not 10.
2748
2749 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2750
2751         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2752
2753 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2754
2755         * mule-charset.c (Qsquare): New variable.
2756         (to_char_code): Add `Qsquare'.
2757         (syms_of_mule_charset): Add new symbol `square'.
2758
2759 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2760
2761         * mule-charset.c (Qcircle): New variable.
2762         (to_char_code): Add `Qcircle'.
2763         (syms_of_mule_charset): Add new symbol `circle'.
2764
2765 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2766
2767         * mule-charset.c (Qfont): New variable.
2768         (to_char_code): Add `Qfont'.
2769         (syms_of_mule_charset): Add new symbol `font'.
2770
2771 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2772
2773         * mule-charset.c (Qsub): New variable.
2774         (to_char_code): Add `Qsub'.
2775         (syms_of_mule_charset): Add new symbol `sub'.
2776
2777 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2778
2779         * mule-charset.c (Fput_char_attribute): Convert each element of
2780         VALUE to GL position if ATTRIBUTE is a GR-set,
2781
2782 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2783
2784         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2785         coded-charset is a GR-set.
2786
2787 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2788
2789         * mule-charset.c (Fput_char_attribute): Check each element of
2790         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2791
2792 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2793
2794         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2795         UTF-2000.
2796         (Qethiopic_ucs): New variable in UTF-2000.
2797         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2798         (complex_vars_of_mule_charset): Add new coded-charset
2799         `ethiopic-ucs' in UTF-2000.
2800
2801         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2802         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2803         9)'.
2804         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2805         10)'.
2806         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2807
2808 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2809
2810         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2811         `ascii'.
2812
2813 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2814
2815         * mule-charset.c (Vcharacter_variant_table): New variable.
2816         (Q_ucs): New variable.
2817         (Fchar_variants): New function.
2818         (Fput_char_attribute): Register `->ucs' value to
2819         `Vcharacter_variant_table'.
2820         (syms_of_mule_charset): Add new function `char-variants' and new
2821         symbol `->ucs'.
2822         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2823
2824 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2825
2826         * mule-charset.c (get_char_code_table): Allow negative character
2827         code.
2828         (put_char_code_table): Likewise.
2829         (Vcharacter_composition_table): New variable.
2830         (Q_decomposition): New variable.
2831         (Qwide): New variable.
2832         (Qnarrow): New variable.
2833         (Qcompat): New variable.
2834         (QnoBreak): New variable.
2835         (Qsuper): New variable.
2836         (Qfraction): New variable.
2837         (to_char_code): New function.
2838         (Fget_composite_char): New function.
2839         (Fput_char_attribute): Register `->decomposition' value to
2840         `Vcharacter_composition_table'.
2841         (syms_of_mule_charset): Add new function `get-composite-char', new
2842         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2843         `super' and `fraction'.
2844         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2845
2846 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2847
2848         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2849         character; copy the return value.
2850
2851 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2852
2853         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2854
2855         * mule-charset.c (range_charset_code_point): Must use make_int.
2856         (split_builtin_char): New function.
2857
2858 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2859
2860         * mule-charset.c (char_byte_table): Change name from
2861         "char-code-table" to "char-byte-table".
2862         (mark_char_code_table): New function.
2863         (char_code_table_equal): New function.
2864         (char_code_table_hash): New function.
2865         (char_code_table_description): New constant.
2866         (char_code_table): New type.
2867         (make_char_code_table): New function.
2868         (copy_char_code_table): New function.
2869         (get_char_code_table): Modify for `char_code_table' type.
2870         (put_char_code_table): Likewise.
2871         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2872         (Kashiwara).
2873
2874         * char-ucs.h (char_code_table): New type.
2875         (XCHAR_CODE_TABLE): New macro.
2876         (XSETCHAR_CODE_TABLE): New macro.
2877         (CHAR_CODE_TABLE_P): New macro.
2878         (GC_CHAR_CODE_TABLE_P): New macro.
2879         (struct Lisp_Char_Code_Table): New structure.
2880
2881 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2882
2883         * mule-charset.c (Fmake_charset): Setup byte_offset for
2884         {94|96}^n-set.
2885
2886 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2887
2888         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2889         character.
2890
2891 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2892
2893         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2894         is found.
2895
2896 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2897
2898         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2899         charset, it is regarded as a charset.
2900         (put_char_attribute): New function in UTF-2000.
2901         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2902         charset, mapping-table of the charset is modified.
2903         (Fdefine_char): New function in UTF-2000.
2904         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2905         `Fput_char_attribute'.
2906         (syms_of_mule_charset): Add new function `define-char' and new
2907         symbol `ucs' in UTF-2000.
2908         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2909
2910 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2911
2912         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2913         non-UTF-2000 configuration.
2914
2915 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2916
2917         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2918         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2919
2920         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2921         deleted.
2922         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2923         (Fset_charset_mapping_table): Likewise.
2924
2925         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2926         (CHARSET_ENCODING_TABLE): Delete.
2927         (XCHARSET_ENCODING_TABLE): Delete.
2928         (charset_code_point): New interface.
2929
2930 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2931
2932         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2933         instead of `charset_get_byte1' and `charset_get_byte2'.
2934
2935         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2936         (charset_get_byte2): Deleted.
2937
2938 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2939
2940         * char-ucs.h (SPLIT_CHAR): New inline function.
2941         (breakup_char_1): Use `SPLIT_CHAR'.
2942
2943         * mule-charset.c (range_charset_code_point): New function.
2944         (charset_code_point): New function.
2945
2946         * char-ucs.h (range_charset_code_point): New interface.
2947         (breakup_char_1): Use `range_charset_code_point'.
2948
2949 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2950
2951         * mule-charset.c (Fmake_charset): Delete unused local variable
2952         `code_offset'.
2953
2954         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2955         (breakup_char_1): Find a charset and code-point in
2956         `Vcharacter_attribute_table'.
2957
2958 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2959
2960         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2961         to 0.10 (Yao).
2962
2963 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2964
2965         * mule-charset.c (Vcharacter_attribute_table): New variable.
2966         (Fchar_attribute_alist): New function.
2967         (Fget_char_attribute): New function.
2968         (Fput_char_attribute): New function.
2969         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2970         too.
2971         (syms_of_mule_charset): Add new function `char-attribute-alist',
2972         `get-char-attribute' and `put-char-attribute'.
2973         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2974
2975 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2976
2977         * mule-charset.c (Fmake_charset): Just use
2978         `get_unallocated_leading_byte'.
2979
2980         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2981         sets; don't use final-byte based number for private sets.
2982
2983 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2984
2985         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2986         integer.
2987
2988 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2989
2990         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2991         to 0.9.
2992
2993 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2994
2995         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2996         of `CHAR_LEADING_BYTE' in UTF-2000.
2997
2998         * insdel.c (find_charsets_in_bufbyte_string): Use
2999         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3000         (find_charsets_in_emchar_string): Likewise.
3001
3002         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3003         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3004
3005         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3006         (CHAR_CHARSET_ID): New macro.
3007
3008 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3009
3010         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3011         charset-id - MIN_LEADING_BYTE.
3012         (put_char_table): Likewise.
3013
3014 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3015
3016         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3017         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3018         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3019         (CHARSET_ID_OFFSET): New macro.
3020         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3021         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3022         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3023         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3024         4).
3025         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3026         5).
3027         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3028         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3029         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3030         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3031         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3032
3033 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3034
3035         * mule-charset.c (next_allocated_leading_byte): New variable in
3036         UTF-2000.
3037         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3038         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3039         (get_unallocated_leading_byte): Simply use
3040         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3041         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3042         UTF-2000.
3043
3044         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3045         (MAX_LEADING_BYTE_PRIVATE): New macro.
3046         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3047         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3048
3049 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3050
3051         * mule-charset.c (Fmake_charset): Allocate final-byte based
3052         charset-id for 94-set, 96-set and 94x94-set.
3053
3054 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3055
3056         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3057         ambiguous `else'.
3058         (Fmake_charset): Likewise.
3059         (complex_vars_of_mule_charset): Modify the font registry of
3060         `ucs-bmp' not to match `Ethiopic-Unicode'.
3061
3062 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3063
3064         * mule-charset.c (complex_vars_of_mule_charset): Add font
3065         registory of `ucs-bmp'.
3066
3067 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3068
3069         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3070         coded-charsets in `default-coded-charset-priority-list' when
3071         breaking up a character.
3072
3073         * mule-charset.c (Vcharset_latin_viscii): New variable.
3074         (Qlatin_viscii): New variable.
3075         (make_charset): Don't use `decoding_table'.
3076         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3077         byte_offset.
3078         (Fset_charset_mapping_table): New implementation.
3079         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3080         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3081         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3082         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3083         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3084         charset `latin_viscii'.
3085
3086         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3087         (CHARSET_TYPE_94X94): Change to 1 from 2.
3088         (CHARSET_TYPE_96): Change to 2 from 1.
3089         (CHARSET_TYPE_128): New macro.
3090         (CHARSET_TYPE_128X128): Change to 5 from 4.
3091         (CHARSET_TYPE_256): New macro.
3092         (CHARSET_TYPE_256X256): Change to 7 from 5.
3093         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3094
3095 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3096
3097         * text-coding.c (char_encode_shift_jis): Refer
3098         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3099         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3100
3101         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3102         (char_byte_table_equal): New function in UTF-2000.
3103         (char_byte_table_hash): New function in UTF-2000.
3104         (char_byte_table_description): New constant in UTF-2000.
3105         (char_byte_table): New type in UTF-2000.
3106         (make_char_byte_table): New function in UTF-2000.
3107         (copy_char_byte_table): New function in UTF-2000.
3108         (make_char_code_table): New macro in UTF-2000.
3109         (get_char_code_table): New function in UTF-2000.
3110         (put_char_code_table): New function in UTF-2000.
3111         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3112         (charset_description): Add setting in UTF-2000.
3113         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3114         `CHARSET_TO_BYTE1_TABLE(cs)'.
3115         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3116         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3117         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3118         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3119         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3120         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3121         `CHARSET_TO_BYTE2_TABLE(cs)'.
3122
3123         * char-ucs.h (char_byte_table): New type.
3124         (XCHAR_BYTE_TABLE): New macro.
3125         (XSETCHAR_BYTE_TABLE): New macro.
3126         (CHAR_BYTE_TABLE_P): New macro.
3127         (GC_CHAR_BYTE_TABLE_P): New macro.
3128         (struct Lisp_Char_Byte_Table): New structure.
3129         (get_char_code_table): New interface.
3130         (Emchar_to_byte_table): Deleted.
3131         (get_byte_from_character_table): Deleted.
3132         (struct Lisp_Charset): Add `encoding_table'; delete
3133         `to_byte1_table' and `to_byte2_table'.
3134         (CHARSET_ENCODING_TABLE): New macro.
3135         (CHARSET_TO_BYTE1_TABLE): Deleted.
3136         (CHARSET_TO_BYTE2_TABLE): Deleted.
3137         (XCHARSET_ENCODING_TABLE): New macro.
3138         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3139         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3140
3141 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3142
3143         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3144         `vietnamese-viscii-*'.
3145
3146 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3147
3148         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3149         (Qvietnamese_viscii_upper): New variable.
3150         (Fdefine_charset_alias): New function.
3151         (syms_of_mule_charset): Add new function `define-charset-alias'.
3152         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3153         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3154         `latin-viscii-*'.
3155
3156 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3157
3158         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3159         (MAX_CHAR_OBS_94x94): New macro.
3160         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3161         for 94x94 sets.
3162
3163         * mule-charset.c (put_byte_from_character_table): Change unit size
3164         from 128 to 256.
3165         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3166         not defined.
3167         (Fmake_reverse_direction_charset): Modify dummy argument of
3168         `make_charset' for non-UTF-2000 environment.
3169
3170 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3171
3172         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3173
3174         * mule-charset.c (destroy_byte_from_character_table): New macro.
3175         (latin_jisx0201_to_ucs): Deleted.
3176         (latin_iso8859_2_to_ucs): Deleted.
3177         (latin_iso8859_3_to_ucs): Deleted.
3178         (latin_iso8859_4_to_ucs): Deleted.
3179         (latin_iso8859_9_to_ucs): Deleted.
3180         (latin_viscii_lower_to_ucs): Deleted.
3181         (latin_viscii_upper_to_ucs): Deleted.
3182         (mark_charset): Mark `cs->decoding_table'.
3183         (Fcharset_mapping_table): Fix DOC-string.
3184         (Fset_charset_mapping_table): New function.
3185         (syms_of_mule_charset): Add nwe function
3186         `set-charset-mapping-table'.
3187         (complex_vars_of_mule_charset): Don't setup and use
3188         `latin_*_to_ucs'.
3189
3190 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3191
3192         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3193         charset.
3194
3195 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3196
3197         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3198         (Vcharset_katakana_jisx0208): New variable.
3199         (Qhiragana_jisx0208): New variable.
3200         (Qkatakana_jisx0208): New variable.
3201         (make_charset): Add new argument `byte_offset'.
3202         (charset_get_byte1): Modify for new coded-charset definition; use
3203         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3204         `XCHARSET_BYTE_OFFSET'.
3205         (Fmake_charset): Modify for `make_charset'.
3206         (Fmake_reverse_direction_charset): Likewise.
3207         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3208         `katakana-jisx0208'.
3209         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3210         `.'  in font registry of charset `katakana-jisx0201',
3211         `latin-jisx0201', `vietnamese-viscii-lower' and
3212         `vietnamese-viscii-upper'; modify DOC-string of charset
3213         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3214         registry of charset `japanese-jisx0208' not to use font for JIS
3215         X0208:1990; add new charset `hiragana-jisx0208' and
3216         `katakana-jisx0208'.
3217
3218         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3219         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3220         (struct Lisp_Charset): Add `byte_offset'.
3221         (CHARSET_BYTE_OFFSET): New macro.
3222         (XCHARSET_UCS_MIN): New macro.
3223         (XCHARSET_UCS_MAX): New macro.
3224         (XCHARSET_CODE_OFFSET): New macro.
3225         (XCHARSET_BYTE_OFFSET): New macro.
3226         (MIN_CHAR_HIRAGANA): New macro.
3227         (MAX_CHAR_HIRAGANA): New macro.
3228         (MIN_CHAR_KATAKANA): New macro.
3229         (MAX_CHAR_KATAKANA): New macro.
3230         (MAKE_CHAR): Modify for new coded-charset definition; use
3231         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3232         `XCHARSET_BYTE_OFFSET'.
3233
3234 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3235
3236         * mule-charset.c (CHAR96): Deleted.
3237         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3238         <Lisp_Object>.
3239         (latin_iso8859_2_to_ucs): Likewise.
3240         (latin_iso8859_3_to_ucs): Likewise.
3241         (latin_iso8859_4_to_ucs): Likewise.
3242         (latin_iso8859_9_to_ucs): Likewise.
3243         (latin_viscii_lower_to_ucs): Likewise.
3244         (latin_viscii_upper_to_ucs): Likewise.
3245         (latin_tcvn5712_to_ucs): Commented out.
3246         (make_charset): Change type of argument `decoding_table' from
3247         <Emchar*> to <Lisp_Object> [vector of characters].
3248         (Fmake_charset): Modify for `make_charset'.
3249         (Fmake_reverse_direction_charset): Likewise.
3250         (Fcharset_mapping_table): New function in UTF-2000.
3251         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3252         UTF-2000.
3253         (complex_vars_of_mule_charset): Modify for type change of
3254         `*_to_ucs'; modify for `make_charset'.
3255
3256         * char-ucs.h (struct Lisp_Charset): Change type of
3257         `decoding_table' from <Emchar*> to <Lisp_Object>.
3258         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3259
3260 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3261
3262         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3263         error with non-UTF-2000-Mule.
3264
3265 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3266
3267         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3268         in lisp again].
3269         (Vcharset_chinese_cns11643_4): Likewise.
3270         (Vcharset_chinese_cns11643_5): Likewise.
3271         (Vcharset_chinese_cns11643_6): Likewise.
3272         (Vcharset_chinese_cns11643_7): Likewise.
3273         (Qchinese_cns11643_3): Likewise.
3274         (Qchinese_cns11643_4): Likewise.
3275         (Qchinese_cns11643_5): Likewise.
3276         (Qchinese_cns11643_6): Likewise.
3277         (Qchinese_cns11643_7): Likewise.
3278         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3279         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3280         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3281         (complex_vars_of_mule_charset): Likewise.
3282
3283 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3284
3285         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3286         96-set.
3287         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3288         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3289
3290 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3291
3292         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3293         0xFF60.
3294         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3295         (breakup_char_1): Likewise.
3296
3297         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3298         one of them includes the specified character.
3299
3300 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3301
3302         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3303
3304 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3305
3306         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3307
3308 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3309
3310         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3311         definition for non-UTF-2000 Mule.
3312         (latin_iso8859_3_to_ucs): Likewise.
3313         (latin_iso8859_4_to_ucs): Likewise.
3314         (latin_iso8859_9_to_ucs): Likewise.
3315         (latin_jisx0201_to_ucs): Likewise.
3316         (MIN_CHAR_THAI): Likewise.
3317         (MAX_CHAR_THAI): Likewise.
3318         (MIN_CHAR_GREEK): Likewise.
3319         (MAX_CHAR_GREEK): Likewise.
3320         (MIN_CHAR_HEBREW): Likewise.
3321         (MAX_CHAR_HEBREW): Likewise.
3322         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3323         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3324         (MIN_CHAR_CYRILLIC): Likewise.
3325         (MAX_CHAR_CYRILLIC): Likewise.
3326
3327 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3328
3329         * char-ucs.h (breakup_char_1): Use
3330         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3331         thai-tis620 and katakana-jisx0201 area.
3332
3333 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3334
3335         * char-ucs.h (breakup_char_1): Use
3336         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3337         area.
3338
3339         * text-coding.c (reset_encoding_stream): Fixed.
3340         (char_encode_ucs4): Delete `& 255'.
3341
3342         * char-ucs.h (breakup_char_1): Use
3343         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3344
3345 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3346
3347         * file-coding.c (Fmake_coding_system): Don't set up
3348         `codesys->fixed.size'.
3349         (encode_coding_no_conversion): Don't refer
3350         `str->codesys->fixed.size'.
3351
3352 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3353
3354         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3355         (latin_a_char_to_byte1): Deleted.
3356         (latin_a_char_to_byte2): Deleted.
3357
3358 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3359
3360         * mule-charset.c (make_charset): Add new argument `ucs_min',
3361         `ucs_max' and `code_offset'.
3362         (charset_get_byte1): New implementation [delete specific charset
3363         depended implementations].
3364         (Fmake_charset): Modify for `make_charset'.
3365         (Fmake_reverse_direction_charset): Likewise.
3366         (complex_vars_of_mule_charset): Likewise.
3367
3368         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3369         `code_offset'.
3370         (CHARSET_UCS_MIN): New macro.
3371         (CHARSET_UCS_MAX): New macro.
3372         (CHARSET_CODE_OFFSET): New macro.
3373         (MAKE_CHAR): Delete charset depended definitions [except
3374         katakana-jisx0201].
3375
3376 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3377
3378         * char-ucs.h (breakup_char_1): Use
3379         `Vdefault_coded_charset_priority_list' for C0-Controls,
3380         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3381
3382 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3383
3384         * char-ucs.h (charset_get_byte1): New function.
3385         (XCHARSET_GET_BYTE1): Deleted.
3386         (charset_get_byte2): New function.
3387         (XCHARSET_GET_BYTE2): Deleted.
3388         (Vdefault_coded_charset_priority_list): New external variable.
3389         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3390         `Vdefault_preferred_coded_charset_list'.
3391
3392         * mule-charset.c (charset_get_byte1): New function.
3393         (charset_get_byte2): New function.
3394         (Vdefault_coded_charset_priority_list): New variable.
3395         (vars_of_mule_charset): Add new variable
3396         `default-coded-charset-priority-list'.
3397
3398 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3399
3400         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3401         (XCHARSET_GET_BYTE2): New inline function.
3402         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3403         `XCHARSET_GET_BYTE2'.
3404
3405 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3406
3407         * mule-charset.c (make_charset): Initialize
3408         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3409         NULL if table is not defined.
3410
3411 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3412
3413         * text-coding.c (char_encode_shift_jis): Use
3414         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3415         `ucs_to_latin_jisx0201'.
3416
3417         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3418         (ucs_to_latin_iso8859_2): Deleted.
3419         (ucs_to_latin_iso8859_3): Deleted.
3420         (ucs_to_latin_iso8859_4): Deleted.
3421         (ucs_to_latin_iso8859_9): Deleted.
3422         (ucs_to_latin_viscii_lower): Deleted.
3423         (ucs_to_latin_viscii_upper): Deleted.
3424         (ucs_to_latin_tcvn5712): Deleted.
3425         (make_charset): Add new argument `decoding_table'; set up
3426         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3427         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3428         `decoding_table' is defined in UTF-2000.
3429         (Fmake_charset): Modify for `make_charset'.
3430         (Fmake_reverse_direction_charset): Likewise.
3431         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3432         and `GENERATE_96_SET'.
3433
3434         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3435         (ucs_to_latin_jisx0201): Deleted.
3436         (latin_iso8859_2_to_ucs): Deleted.
3437         (ucs_to_latin_iso8859_2): Deleted.
3438         (latin_iso8859_3_to_ucs): Deleted.
3439         (ucs_to_latin_iso8859_3): Deleted.
3440         (latin_iso8859_4_to_ucs): Deleted.
3441         (ucs_to_latin_iso8859_4): Deleted.
3442         (latin_iso8859_9_to_ucs): Deleted.
3443         (ucs_to_latin_iso8859_9): Deleted.
3444         (latin_viscii_lower_to_ucs): Deleted.
3445         (ucs_to_latin_viscii_lower): Deleted.
3446         (latin_viscii_upper_to_ucs): Deleted.
3447         (ucs_to_latin_viscii_upper): Deleted.
3448         (struct Lisp_Charset): Renamed `encoding_table' to
3449         `to_byte1_table'; add `to_byte2_table'.
3450         (CHARSET_DECODING_TABLE): New macro.
3451         (CHARSET_TO_BYTE1_TABLE): New macro.
3452         (CHARSET_TO_BYTE2_TABLE): New macro.
3453         (XCHARSET_DECODING_TABLE): New macro.
3454         (XCHARSET_TO_BYTE1_TABLE): New macro.
3455         (XCHARSET_TO_BYTE2_TABLE): New macro.
3456         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3457         tables.
3458         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3459         don't use `ucs_to_*' tables.
3460
3461 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3462
3463         * text-coding.c (Fmake_coding_system): Don't set up
3464         `codesys->fixed.size'.
3465         (encode_coding_no_conversion): Use `if' instead of `switch'.
3466
3467         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3468
3469 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3470
3471         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3472         (Fmake_charset): Modify for `make_charset'.
3473         (Fmake_reverse_direction_charset): Likewise.
3474         (complex_vars_of_mule_charset): Likewise.
3475
3476 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3477
3478         * text-coding.c (char_encode_shift_jis): Use table
3479         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3480
3481 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3482
3483         * text-coding.c (text_encode_generic): Use `if' instead of
3484         `switch'.
3485         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3486         decode JIS-Latin.
3487
3488 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3489
3490         * text-coding.c (encode_coding_sjis): Deleted.
3491         (char_encode_shift_jis): New function.
3492         (char_finish_shift_jis): New function.
3493         (reset_encoding_stream): Set up `encode_char' and `finish' for
3494         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3495         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3496         (char_encode_utf8): Treat `eol_type'.
3497
3498 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3499
3500         * file-coding.c (decode_coding_iso2022): Use
3501         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3502
3503 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3504
3505         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3506         to 0.7 (Hirano).
3507
3508 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3509
3510         * char-lb.h (CHAR_COLUMNS): New macro.
3511
3512 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3513
3514         * text-coding.c (char_encode_ucs4): New function.
3515         (char_finish_ucs4): New function.
3516         (encode_coding_ucs4): Deleted.
3517         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3518         (text_encode_generic): Delete local variable `charset' and `half'.
3519         (ucs_to_mule_table): Deleted.
3520         (mule_to_ucs_table): Deleted.
3521         (Fset_ucs_char): Deleted.
3522         (ucs_to_char): Deleted.
3523         (Fucs_char): Deleted.
3524         (Fset_char_ucs): Deleted.
3525         (Fchar_ucs): Deleted.
3526         (decode_ucs4): Deleted.
3527         (mule_char_to_ucs4): Deleted.
3528         (encode_ucs4): Deleted.
3529         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3530         (decode_coding_utf8): Likewise.
3531         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3532         (char_encode_iso2022): Fixed.
3533         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3534         `Fset_char_ucs' and `Fchar_ucs'.
3535         (complex_vars_of_file_coding): Don't initialize
3536         `ucs_to_mule_table'.
3537
3538         * objects-tty.c (tty_initialize_font_instance): Don't use
3539         `XCHARSET_COLUMNS'.
3540
3541         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3542         UTF-2000.
3543
3544         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3545         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3546
3547         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3548         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3549         (emchar_string_displayed_columns): Likewise.
3550
3551         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3552         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3553         (string_column_at_point): Likewise.
3554         (Fmove_to_column): Likewise.
3555
3556         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3557         `encoding_table' and `decoding_table'.
3558         (CHARSET_REP_BYTES): Deleted.
3559         (XCHARSET_REP_BYTES): Deleted.
3560         (XCHARSET_COLUMNS): Deleted.
3561         (CHAR_COLUMNS): New macro.
3562         (lookup_composite_char): Deleted unconditionally.
3563         (composite_char_string): Likewise.
3564
3565 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3566
3567         * char-ucs.h (Emchar_to_byte_table): New type.
3568         (get_byte_from_character_table): New function interface.
3569         (Vcharset_latin_jisx0201): New variable.
3570         (latin_jisx0201_to_ucs): New variable.
3571         (ucs_to_latin_jisx0201): New variable.
3572         (Vcharset_latin_iso8859_2): New variable.
3573         (latin_iso8859_2_to_ucs): New variable.
3574         (ucs_to_latin_iso8859_2): New variable.
3575         (Vcharset_latin_iso8859_3): New variable.
3576         (latin_iso8859_3_to_ucs): New variable.
3577         (ucs_to_latin_iso8859_3): New variable.
3578         (Vcharset_latin_iso8859_4): New variable.
3579         (latin_iso8859_4_to_ucs): New variable.
3580         (ucs_to_latin_iso8859_4): New variable.
3581         (Vcharset_latin_iso8859_9): New variable.
3582         (latin_iso8859_9_to_ucs): New variable.
3583         (ucs_to_latin_iso8859_9): New variable.
3584         (Vcharset_latin_viscii_lower): New variable.
3585         (latin_viscii_lower_to_ucs): New variable.
3586         (ucs_to_latin_viscii_lower): New variable.
3587         (Vcharset_latin_viscii_upper): New variable.
3588         (latin_viscii_upper_to_ucs): New variable.
3589         (ucs_to_latin_viscii_upper): New variable.
3590         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3591         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3592         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3593         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3594         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3595         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3596         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3597         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3598         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3599         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3600
3601         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3602         (Vcharset_latin_viscii_upper): New variable.
3603         (make_byte_from_character_table): New function.
3604         (put_byte_from_character_table): New function.
3605         (get_byte_from_character_table): New function.
3606         (CHAR96): New macro.
3607         (ucs_to_latin_jisx0201): New variable.
3608         (latin_jisx0201_to_ucs): New variable.
3609         (ucs_to_latin_iso8859_2): New variable.
3610         (latin_iso8859_2_to_ucs): New variable.
3611         (ucs_to_latin_iso8859_3): New variable.
3612         (latin_iso8859_3_to_ucs): New variable.
3613         (ucs_to_latin_iso8859_4): New variable.
3614         (latin_iso8859_4_to_ucs): New variable.
3615         (ucs_to_latin_iso8859_9): New variable.
3616         (latin_iso8859_9_to_ucs): New variable.
3617         (ucs_to_latin_viscii_lower): New variable.
3618         (latin_viscii_lower_to_ucs): New variable.
3619         (ucs_to_latin_viscii_upper): New variable.
3620         (latin_viscii_upper_to_ucs): New variable.
3621         (ucs_to_latin_tcvn5712): New variable.
3622         (latin_tcvn5712_to_ucs): New variable.
3623         (Qlatin_viscii_lower): New variable.
3624         (Qlatin_viscii_upper): New variable.
3625         (syms_of_mule_charset): Set up new symbol
3626         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3627         (complex_vars_of_mule_charset): Set up new charset
3628         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3629         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3630         `ucs_to_<CHARSET>' tables.
3631
3632 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3633
3634         * text-coding.c: New file.
3635
3636 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3637
3638         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3639
3640         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3641         (MAKE_CHAR): Modify for `ucs-bmp'.
3642         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3643         non-MULE characters of BMP.
3644
3645 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3646
3647         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3648         to 0.6.
3649
3650 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3651
3652         * lstream.h:
3653         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3654         - Include character.h for `CHAR_ASCII_P'.
3655
3656         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3657
3658         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3659         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3660
3661         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3662         (BYTE_C0_P): Likewise.
3663         (BYTE_C1_P): Likewise.
3664         (Lstream_get_emchar_1): Likewise.
3665         (Lstream_fput_emchar): Likewise.
3666         (Lstream_funget_emchar): Likewise.
3667         (copy_internal_to_external): Likewise.
3668         (copy_external_to_internal): Likewise.
3669
3670         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3671         (BYTE_C0_P): Likewise.
3672         (BYTE_C1_P): Likewise.
3673         (Lstream_get_emchar_1): Likewise.
3674         (Lstream_fput_emchar): Likewise.
3675         (Lstream_funget_emchar): Likewise.
3676         (copy_internal_to_external): Likewise.
3677         (copy_external_to_internal): Likewise.
3678
3679         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3680         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3681
3682         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3683         (BYTE_ASCII_P): Moved to mb-1byte.h.
3684
3685 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3686
3687         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3688
3689         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3690         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3691         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3692         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3693         (VALIDATE_CHARPTR_FORWARD): Likewise.
3694         (simple_charptr_emchar): Moved to mb-multibyte.h.
3695         (simple_set_charptr_emchar): Likewise.
3696         (simple_charptr_copy_char): Likewise.
3697         (non_ascii_charptr_emchar): Likewise.
3698         (non_ascii_set_charptr_emchar): Likewise.
3699         (non_ascii_charptr_copy_char): Likewise.
3700         (charptr_emchar): Moved to mb-*byte.h.
3701         (set_charptr_emchar): Likewise.
3702         (charptr_copy_char): Likewise.
3703
3704         * mb-1byte.h, mb-multibyte.h: New files.
3705
3706 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3707
3708         * mb-utf-8.h (MULTIBYTE): New macro.
3709         (MAX_EMCHAR_LEN): Moved from buffer.h.
3710         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3711
3712         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3713
3714         * mb-lb.h, multibyte.h: New files.
3715
3716         * char-1byte.h (Charset_ID): Moved from buffer.h.
3717         (MIN_LEADING_BYTE): Likewise.
3718         (LEADING_BYTE_ASCII): Likewise.
3719         (NUM_LEADING_BYTES): Likewise.
3720         (CHARSETP): Likewise.
3721         (CHARSET_BY_LEADING_BYTE): Likewise.
3722         (XCHARSET_LEADING_BYTE): Likewise.
3723         (XCHARSET_GRAPHIC): Likewise.
3724         (XCHARSET_COLUMNS): Likewise.
3725         (XCHARSET_DIMENSION): Likewise.
3726         (CHAR_CHARSET): Likewise.
3727         (CHAR_LEADING_BYTE): Likewise.
3728         (BREAKUP_CHAR): Likewise.
3729         (Vcharset_ascii): Likewise.
3730
3731         * buffer.h: Include multibyte.h unconditionally.
3732         (VALID_CHARPTR_P): Moved to multibyte.h.
3733         (ASSERT_VALID_CHARPTR): Likewise.
3734         (REAL_INC_CHARPTR): Likewise.
3735         (REAL_INC_CHARBYTIND): Likewise.
3736         (REAL_DEC_CHARPTR): Likewise.
3737         (INC_CHARPTR): Likewise.
3738         (INC_CHARBYTIND): Likewise.
3739         (DEC_CHARPTR): Likewise.
3740         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3741         (VALIDATE_CHARPTR_FORWARD): Likewise.
3742         (charptr_n_addr): Likewise.
3743         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3744         (simple_charptr_emchar): Moved to multibyte.h.
3745         (simple_set_charptr_emchar): Likewise.
3746         (simple_charptr_copy_char): Likewise.
3747         (non_ascii_charptr_emchar): Likewise.
3748         (non_ascii_set_charptr_emchar): Likewise.
3749         (non_ascii_charptr_copy_char): Likewise.
3750         (charptr_emchar): Likewise.
3751         (set_charptr_emchar): Likewise.
3752         (charptr_copy_char): Likewise.
3753         (charptr_emchar_n): Likewise.
3754         (Charset_ID): Moved to char-1byte.h.
3755         (Vcharset_ascii): Likewise.
3756         (CHAR_CHARSET): Likewise.
3757         (CHAR_LEADING_BYTE): Likewise.
3758         (LEADING_BYTE_ASCII): Likewise.
3759         (NUM_LEADING_BYTES): Likewise.
3760         (MIN_LEADING_BYTE): Likewise.
3761         (CHARSETP): Likewise.
3762         (CHARSET_BY_LEADING_BYTE): Likewise.
3763         (XCHARSET_LEADING_BYTE): Likewise.
3764         (XCHARSET_GRAPHIC): Likewise.
3765         (XCHARSET_COLUMNS): Likewise.
3766         (XCHARSET_DIMENSION): Likewise.
3767         (BREAKUP_CHAR): Likewise.
3768
3769 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3770
3771         * character.h: Add document about interface for characters.
3772
3773         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3774         (MAKE_CHAR): Delete comment about
3775         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3776         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3777         (BREAKUP_CHAR): Modify name of arguments.
3778         (CHAR_CHARSET): Modify name of argument.
3779
3780         * buffer.h: Delete document about Emchar accessors.
3781
3782 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3783
3784         * character.h (CHAR_INTP): Moved from buffer.h
3785         (CHAR_OR_CHAR_INTP): Likewise.
3786         (XCHAR_OR_CHAR_INT): Likewise.
3787         (CHECK_CHAR_COERCE_INT): Likewise.
3788
3789         * buffer.h (CHAR_INTP): Moved to character.h
3790         (CHAR_OR_CHAR_INTP): Likewise.
3791         (XCHAR_OR_CHAR_INT): Likewise.
3792         (CHECK_CHAR_COERCE_INT): Likewise.
3793
3794 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3795
3796         * character.h:
3797         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3798         - Include char-1byte.h, char-lb.h or char-ucs.h.
3799
3800         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3801
3802         * buffer.h: Include character unconditionally.
3803         (valid_char_p): Moved to char-*.h.
3804         (non_ascii_valid_char_p): Moved to char-lb.h.
3805
3806         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3807
3808 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3809
3810         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3811         in UTF-2000 because it is not ported yet and not to use
3812         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3813         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3814         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3815
3816         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3817         (CHAR_ASCII_P): Moved from character.h.
3818
3819         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3820         (CHAR_ASCII_P): Likewise.
3821         (CHAR_FIELD1_MASK): Deleted.
3822         (CHAR_FIELD2_MASK): Deleted.
3823         (CHAR_FIELD3_MASK): Deleted.
3824         (MAX_CHAR_BASIC_LATIN): New macro.
3825         (CHAR_FIELD1): Deleted.
3826         (CHAR_FIELD2_INTERNAL): Deleted.
3827         (CHAR_FIELD3_INTERNAL): Deleted.
3828         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3829         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3830         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3831         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3832         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3833         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3834         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3835         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3836         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3837         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3838         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3839         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3840         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3841         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3842         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3843         (MIN_CHAR_COMPOSITION): Deleted.
3844         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3845         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3846
3847 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3848
3849         * buffer.h: Include mb-utf-8.h in UTF-2000.
3850
3851         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3852
3853         * mb-utf-8.h: New file.
3854
3855 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3856
3857         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3858         instead of `int'.
3859
3860         * mule-charset.h, buffer.h (Charset_ID): New type.
3861
3862 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3863
3864         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3865         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3866         instead of `MULE_CHAR_PRIVATE_OFFSET',
3867         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3868         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3869         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3870
3871         * character.h (Vcharset_japanese_jisx0212): New variable
3872         definition.
3873
3874 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3875
3876         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3877         (charset_by_attributes): Delete array about direction.
3878         (latin_a_char_to_charset): New variable in UTF-2000.
3879         (latin_a_char_to_byte1): New variable in UTF-2000.
3880         (latin_a_char_to_byte2): New variable in UTF-2000.
3881         (Qucs_bmp): New variable.
3882         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3883         `Bufbyte'.
3884         (next_allocated_2_byte_leading_byte): Likewise.
3885         (non_ascii_set_charptr_emchar): Likewise.
3886         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3887         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3888         `charset_by_attributes'.
3889         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3890         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3891         and `CHARSET_BY_LEADING_BYTE'.
3892         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3893         `utf-2000-version' to `vars_of_mule_charset'.
3894         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3895         define `leading-code-private-11' in UTF-2000; move setting of
3896         `utf-2000-version' from `syms_of_mule_charset'.
3897         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3898         UTF-2000.
3899
3900         * character.h (Charset_ID): New type.
3901         (LEADING_BYTE_UCS_BMP): New macro.
3902         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3903         (CHARSET_ID_OFFSET_94): New macro.
3904         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3905         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3906         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3907         final-byte.
3908         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3909         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3910         (CHARSET_ID_OFFSET_96): New macro.
3911         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3912         CHARSET_ID_OFFSET_96 and final-byte.
3913         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3914         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3915         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3916         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3917         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3918         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3919         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3920         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3921         (LEADING_BYTE_THAI_TIS620): Likewise.
3922         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3923         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3924         (CHARSET_ID_OFFSET_94x94): New macro.
3925         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3926         CHARSET_ID_OFFSET_94x94 and final-byte.
3927         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3928         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3929         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3930         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3931         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3932         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3933         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3934         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3935         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3936         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3937         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3938         (CHARSET_TYPE_128X128): New macro.
3939         (CHARSET_TYPE_256X256): New macro.
3940         (XCHARSET_PRIVATE_P): Delete unconditionally.
3941         (charset_by_attributes): Delete array about direction.
3942         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3943         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3944         (MIN_CHAR_94): New macro.
3945         (MAX_CHAR_94): New macro.
3946         (MIN_CHAR_96): New macro.
3947         (MAX_CHAR_96): New macro.
3948         (MIN_CHAR_94x94): New macro.
3949         (MAX_CHAR_94x94): New macro.
3950         (MIN_CHAR_96x96): New macro.
3951         (MAX_CHAR_96x96): New macro.
3952         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3953         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3954         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3955         - 32)'.
3956         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3957         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3958         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3959         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3960         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3961         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3962         `XCHARSET_LEADING_BYTE' to make code-point.
3963         (latin_a_char_to_charset): New variable.
3964         (latin_a_char_to_byte1): New variable.
3965         (latin_a_char_to_byte2): New variable.
3966         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3967         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3968         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3969
3970         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3971         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3972         (find_charsets_in_emchar_string): Likewise.
3973         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3974
3975         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3976         `int'.
3977         (decode_coding_iso2022): Likewise.
3978
3979         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3980         of `unsigned char'.
3981
3982         * redisplay.c (redisplay_text_width_emchar_string): Use
3983         `Charset_ID' instead of `unsigned char'.
3984         (redisplay_frame_text_width_string): Likewise.
3985
3986         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3987         `unsigned char'.
3988
3989         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3990         instead of `unsigned char'.
3991         (face_cachel_charset_font_metric_info): Likewise.
3992
3993         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3994         (get_non_ascii_char_table_value): Likewise.
3995         (get_char_table): Likewise.
3996         (put_char_table): Likewise.
3997         (map_over_other_charset): Likewise.
3998         (map_char_table): Likewise.
3999
4000         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4001         instead of `unsigned char'.
4002
4003 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4004
4005         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4006         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4007
4008         * mule-charset.c (leading_code_private_11): Don't define in
4009         UTF-2000.
4010
4011         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4012         in UTF-2000 because it is not ported yet and not to use
4013         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4014
4015 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4016
4017         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4018
4019 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4020
4021         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4022         in UTF-2000.
4023
4024         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4025         of unsigned char to store leading-byte.
4026
4027         * chartab.c (get_non_ascii_char_table_value): Don't use
4028         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4029
4030         * file-coding.c (encode_coding_big5): Delete bogus implementation
4031         in UTF2000.
4032
4033         * character.h (LEADING_BYTE_*): Delete definition for
4034         non-UTF-2000.
4035         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4036         (LEADING_BYTE_PREFIX_P): Deleted.
4037         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4038         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4039         (BUFBYTE_LEADING_BYTE_P): Deleted.
4040         (CHARSET_PRIVATE_P): Deleted unconditionally.
4041         (rep_bytes_by_first_byte): Deleted unconditionally.
4042         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4043         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4044         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4045         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4046         (CHAR_FIELD2): Deleted.
4047         (CHAR_FIELD3): Deleted.
4048         (MAKE_CHAR): Delete definition for non-UTF-2000.
4049         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4050         (breakup_char_1): New implementation.
4051         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4052         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4053
4054 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4055
4056         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4057         condition.
4058
4059 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4060
4061         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4062         (CHARSET_PRIVATE_P): Likewise.
4063         (XCHARSET_PRIVATE_P): Likewise.
4064         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4065
4066         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4067         UTF2000.
4068         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4069
4070 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4071
4072         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4073         (NUM_LEADING_BYTES): Changed from 128 to 256.
4074         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4075         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4076         UTF2000.
4077         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4078
4079         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4080         UTF2000.
4081         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4082         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4083         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4084         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4085         (Qchinese_cns11643_3): New variable in UTF2000.
4086         (Qchinese_cns11643_4): New variable in UTF2000.
4087         (Qchinese_cns11643_5): New variable in UTF2000.
4088         (Qchinese_cns11643_6): New variable in UTF2000.
4089         (Qchinese_cns11643_7): New variable in UTF2000.
4090         (syms_of_mule_charset): Define `chinese-cns11643-3',
4091         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4092         and `chinese-cns11643-7' in UTF2000.
4093         (vars_of_mule_charset): Initialize
4094         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4095         + 1 in UTF2000.
4096         (complex_vars_of_mule_charset): Setup charset
4097         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4098         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4099
4100 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4101
4102         * mule-charset.c: Move setting for `leading-code-private-11' from
4103         `syms_of_mule_charset' to `vars_of_mule_charset'.
4104
4105 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4106
4107         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4108         and `NUM_LEADING_BYTES' in assert.
4109
4110 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4111
4112         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4113         instead of 128.
4114         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4115         `NUM_LEADING_BYTES' instead of 128.
4116
4117 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4118
4119         * mule-charset.h (charset_by_leading_byte): Use
4120         `NUM_LEADING_BYTES' instead of 128.
4121         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4122
4123         * mule-charset.c (charset_by_leading_byte): Use
4124         `NUM_LEADING_BYTES' instead of 128.
4125         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4126
4127         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4128         128.
4129
4130 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4131
4132         * mule-charset.c (syms_of_mule_charset): Update to
4133         0.4 (Shin-Imamiya).
4134
4135 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4136
4137         * file-coding.c (encode_coding_sjis): New implementation for
4138         UTF2000.  (decode_coding_sjis): Ditto.
4139
4140 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4141
4142         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4143         Don't define in UTF2000.
4144
4145         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4146         defined.
4147
4148         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4149         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4150         MULE.
4151
4152 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4153
4154         * config.h.in (CHAR_IS_UCS4): New macro.
4155
4156         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4157         conventional MULE representation.
4158         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4159
4160         * mule-charset.h: Reverted to original.
4161
4162         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4163         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4164         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4165
4166         * character.h: New file.
4167
4168         * file-coding.c (Fmake_coding_system): Set 1 to
4169         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4170         defined.
4171         (encode_coding_no_conversion): New implementation for UTF2000.
4172
4173         * file-coding.h (struct Lisp_Coding_System): Add new member
4174         `fixed.size'.
4175
4176 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4177
4178         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4179         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4180         (encode_coding_iso2022): New implementation for UTF2000.
4181
4182 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4183
4184         * mule-canna.c (c2mu): New implementation for UTF2000.
4185         (m2c): Likewise.
4186
4187 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4188
4189         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4190
4191 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4192
4193         * file-coding.c (reset_encoding_stream): Set 0 to
4194         `str->iso2022.current_char_boundary' in UTF2000.
4195         (encode_utf8): Don't define in UTF2000.
4196         (encode_coding_utf8): New implementation for UTF-8 representation
4197         of UTF2000.
4198         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4199
4200 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4201
4202         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4203
4204         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4205         UTF2000.
4206         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4207
4208         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4209
4210         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4211         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4212         as UTF-8 in UTF2000.
4213         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4214         (non_ascii_valid_char_p): Don't define in UTF2000.
4215         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4216         (Lstream_get_emchar_1): Likewise.
4217         (utf-2000-version): New variable in UTF2000.
4218
4219         * lread.c (read_escape): Add new reader `u'.
4220
4221         * insdel.c (three_to_one_table): Don't define in UTF2000.
4222         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4223         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4224         UTF2000.
4225         (bytind_to_bufpos_func): Likewise.
4226         (buffer_mule_signal_inserted_region): Likewise.
4227         (vars_of_insdel): Don't initialize `three_to_one_table'.
4228         (init_buffer_text): Use `buf->text->mule_size' instead of
4229         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4230         UTF2000.
4231
4232         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4233         UTF-8 representation in UTF2000.
4234         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4235         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4236         (decode_coding_iso2022): Don't define local variable `lb' in
4237         UTF2000; don't use LEADING_BYTE in UTF2000; use
4238         `DECODE_ADD_UCS_CHAR' in UTF2000.
4239         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4240
4241         * config.h.in (UTF2000): New macro.
4242
4243         * buffer.h (struct buffer_text): Add new member `mule_size' and
4244         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4245         (valid_char_p): Return always 1 in UTF2000.
4246         (MAX_EMCHAR_LEN): 6 in UTF2000.
4247         (three_to_one_table): Don't define in UTF2000.
4248         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4249         UTF2000.
4250         (real_bytind_to_bufpos): Likewise.
4251
4252         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4253
4254 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4257         representation change.
4258         (Vutf_2000_version): New variable.
4259         (leading_code_private_11): New variable.
4260         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4261         `leading-code-private-11'.
4262
4263         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4264         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4265         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4266         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4267         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4268         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4269         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4270         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4271         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4272         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4273         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4274         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4275         (MIN_CHAR_GREEK): New macro.
4276         (MAX_CHAR_GREEK): New macro.
4277         (MIN_CHAR_CYRILLIC): New macro.
4278         (MAX_CHAR_CYRILLIC): New macro.
4279         (MIN_CHAR_HEBREW): New macro.
4280         (MAX_CHAR_HEBREW): New macro.
4281         (MIN_CHAR_THAI): New macro.
4282         (MAX_CHAR_THAI): New macro.
4283         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4284         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4285         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4286         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4287         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4288         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4289         (CHAR_FIELD2): New inline function.
4290         (CHAR_FIELD3): New inline function.
4291         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4292         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4293         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4294         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4295         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4296         (MIN_CHAR_COMPOSITION): Likewise.
4297         (CHAR_LEADING_BYTE): Modified for character representation change.
4298         (MAKE_CHAR): Likewise.
4299
4300         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4301         (Vcharset_greek_iso8859_7): Likewise.
4302         (Vcharset_cyrillic_iso8859_5): Likewise.
4303         (Vcharset_hebrew_iso8859_8): Likewise.
4304         (Vcharset_thai_tis620): Likewise.
4305         (Vcharset_katakana_jisx0201): Likewise.
4306
4307 2001-02-08  Martin Buchholz <martin@xemacs.org>
4308
4309         * XEmacs 21.2.44 "Thalia" is released.
4310
4311 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4312
4313         Fixes crashes in kill-emacs on some systems.
4314         * process-unix.c (unix_kill_child_process):
4315         It's OK for kill() to fail with ESRCH.
4316
4317 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4318
4319         Contortions to make .gdbinit tricks work on most systems.
4320         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4321         * alloc.c (dbg_valmask): Make non-const.
4322         * alloc.c (dbg_typemask): Make non-const.
4323         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4324         * alloc.c (dbg_valbits): Make non-const.
4325         * alloc.c (dbg_gctypebits): Make non-const.
4326         * .gdbinit (decode_object): Make it work with AIX cc.
4327
4328 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4329
4330         * elhash.c (make_general_lisp_hash_table):
4331         Use simpler and more efficient calloc to clear entries.
4332
4333 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4334
4335         * window.c (window_scroll): Work around an AIX C compiler bug.
4336         Fixes 'scroll-up' does nothing problem with xlC.
4337
4338 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4339
4340         * .gdbinit: Remove obsolete comment.
4341
4342 2001-01-31  Mike Alexander  <mta@arbortext.com>
4343
4344         * select.c (Fown_selection_internal): Set owned_p for device
4345         method correctly.
4346
4347 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4348
4349         Port to g++ 2.97.
4350         "not" cannot be used as a macro name as it is an operator in C++
4351         * config.h.in: Stop #defining `not'.
4352         * chartab.c (check_category_char): not ==> not_p
4353         * chartab.h: Likewise.
4354         * regex.c (re_match_2_internal): Likewise.
4355
4356 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4357
4358         * lisp-disunion.h: Fix up comments.
4359
4360 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4361
4362         * keymap.c (define_key_check_and_coerce_keysym):
4363         (syms_of_keymap):
4364         Support mouse-6 and mouse-7 bindings in the obvious way.
4365
4366 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4367
4368         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4369
4370 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4371
4372         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4373         Previous patch missed DEFVAR_INT_MAGIC.
4374         Make sure future DEFVAR_foo use correct types.
4375         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4376         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4377         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4378         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4379         * (DEFVAR_INT): Likewise.
4380         * redisplay.c (vertical_clip): Should be of type Fixnum.
4381         * redisplay.c (horizontal_clip): Likewise.
4382         * lisp.h (dump_add_opaque_int): New.
4383         (dump_add_opaque_fixnum): New.
4384
4385 2001-01-29  Andy Piper  <andy@xemacs.org>
4386
4387         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4388         since they can be eval'ed
4389
4390 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4391
4392         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4393         Oops, XEmacs redefines `class'.  Use `typename' instead.
4394
4395 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4396
4397         * dumper.c: Fix C++ compile errors.
4398
4399 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4400
4401         * tparam.c: Use correct prototypes.
4402
4403 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4404
4405         * sysproc.h: #include util.h for NetBSD's openpty.
4406
4407 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4408
4409         More 64-bit correctness.
4410         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4411         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4412         Fix up comments.
4413         This finally finishes the 64-bit SGI port.
4414         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4415         * symbols.c: Fix up comments and type casts.
4416         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4417         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4418         * symeval.h (Fixnum): New type.
4419         * symeval.h (symbol_value_type): Fix up comment.
4420
4421         * commands.h:
4422         * nt.c:
4423         * emacs.c:
4424         * data.c:
4425         * redisplay.c:
4426         * abbrev.c:
4427         * dired-msw.c:
4428         * event-Xt.c:
4429         * eldap.c:
4430         * window.c:
4431         * sound.c:
4432         * event-stream.c:
4433         * eval.c:
4434         * buffer.c:
4435         * mule-canna.c: A million DEFVAR_INTs here...
4436         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4437         * extents.c:
4438         * cmdloop.c:
4439         * lisp.h:
4440         * select-x.c:
4441         * console-x.h:
4442         * event-msw.c:
4443         * mule-wnnfns.c:
4444         * hpplay.c:
4445         * ralloc.c:
4446         * alloc.c:
4447         * keymap.c:
4448         * profile.c:
4449         s/int/Fixnum/g in DEFVAR_INT declarations.
4450
4451 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4452
4453         Port pdump to SGI alignment-sensitive environment.
4454         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4455         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4456         properly aligned.
4457         Define and use aligned reading and writing macros.
4458         Use buffered stdio instead of posix i/o for faster dumping.
4459         Eliminate kludgy 256 byte space for header.
4460         Read and write from dump file using structs for alignment safety.
4461         * dumper.c (pdump_align_stream): New.
4462         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4463         * dumper.c (PDUMP_READ_ALIGNED): New.
4464         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4465         * dumper.c (pdump_static_Lisp_Object): New struct.
4466         * dumper.c (pdump_static_pointer): New struct.
4467         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4468         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4469         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4470         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4471
4472         * dumper.c (pdump_backtrace):
4473         * dumper.c (pdump_get_indirect_count):
4474         * dumper.c (pdump_register_object):
4475         * dumper.c (pdump_register_struct):
4476         * dumper.c (pdump_reloc_one):
4477         * dumper.c (pdump_scan_by_alignment):
4478         * dumper.c (pdump_dump_from_root_struct_ptrs):
4479         * dumper.c (pdump_dump_opaques):
4480         * dumper.c (pdump_dump_rtables):
4481         * dumper.c (pdump_dump_from_root_objects):
4482         * dumper.c (pdump):
4483         * dumper.c (pdump_load_finish):
4484         Use aligned reading and writing.
4485
4486         * dumper.c (pdump_free): Make static.
4487         * dumper.c (pdump_hFile): Likewise.
4488         * dumper.c (pdump_hMap): Likewise.
4489
4490 2001-01-26  Martin Buchholz <martin@xemacs.org>
4491
4492         * XEmacs 21.2.43 "Terspichore" is released.
4493
4494 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4495
4496         Type fiddling for window_config.saved_windows_count
4497         * window.c (struct window_config): 
4498         Make saved_windows_count member unsigned.
4499         * window.c (sizeof_window_config_for_n_windows): 
4500         Make parameter unsigned.
4501         * window.c (mark_window_config):
4502         * window.c (window_config_equal):
4503         * window.c (free_window_configuration):
4504         * window.c (Fset_window_configuration):
4505         * window.c (count_windows):
4506         * window.c (Fcurrent_window_configuration):
4507         * window.c (reinit_vars_of_window):
4508         Update all callers and users.
4509
4510 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4511
4512         Alignment correctness for flexible arrays.
4513         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4514         Make alignment-correct. Add interesting comments.
4515         * alloc.c (size_vector):
4516         * alloc.c (make_vector_internal):
4517         * alloc.c (make_bit_vector_internal):
4518         * alloc.c (sweep_bit_vectors_1):
4519         * fns.c (size_bit_vector):
4520         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4521         * window.c (sizeof_window_config_for_n_windows): 
4522         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4523
4524 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4525
4526         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4527
4528 2001-01-23  Andy Piper  <andy@xemacs.org>
4529
4530         * select.c (Fown_selection_internal): pass owned_p
4531
4532         * select-msw.c (mswindows_own_selection): New Signature.
4533
4534         * console.h (struct console_methods): add owned_p to
4535         _own_selection.
4536
4537         * select-x.c (x_own_selection): pass owned_p
4538         (hack_motif_clipboard_selection): use owned_p
4539         (vars_of_select_x): new variable -
4540         x_selection_strict_motif_ownership.
4541
4542 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4543
4544         * specifier.h (specifier_data_offset): Remove pointless parens.
4545         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4546
4547 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4548
4549         Make Lisp_Object sizeof methods be alignment-correct.
4550         pdump must restore objects to the same alignment as the C compiler
4551         assumes.  It really matters on SGIs.
4552         * lstream.c (aligned_sizeof_lstream): New.
4553         (sizeof_lstream): Use aligned_sizeof_lstream.
4554         (Lstream_new): Likewise.
4555         * opaque.c (aligned_sizeof_opaque): New.
4556         (sizeof_opaque): Use aligned_sizeof_opaque.
4557         (make_opaque): Likewise.
4558         * specifier.c (aligned_sizeof_specifier): New.
4559         (sizeof_specifier): Use aligned_sizeof_specifier.
4560         (make_specifier_internal): Likewise.
4561
4562 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4563
4564         * lstream.h (struct lstream): Use max_align_t for trailing data.
4565         * specifier.h (struct Lisp_Specifier): Likewise.
4566
4567 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4568
4569         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4570         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4571         (CCL_SUSPEND): Likewise.
4572         (CCL_INVALID_CMD): Likewise.
4573         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4574         (ccl_driver): Likewise.
4575         (CCL_WRITE_CHAR): Macro hygiene.
4576         (CCL_WRITE_STRING): Macro hygiene.
4577
4578 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4579
4580         Port "portable" dumper to SunOS 4 and HP-UX.
4581         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4582         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4583         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4584
4585 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4586
4587         * lisp.h (ALIGNOF): A better definition for C++.
4588
4589 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4590
4591         Macro hygiene.
4592         Fix printf warnings: int format, long int arg.
4593         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4594         (PUSH_FAILURE_POINT): Use correct printf formats.
4595         (POP_FAILURE_POINT): Use correct printf formats.  
4596         Use do {...} while (0)
4597
4598 2001-01-20  Martin Buchholz <martin@xemacs.org>
4599
4600         * XEmacs 21.2.42 "Poseidon" is released.
4601
4602 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4603
4604         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4605
4606 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4607
4608         De-kludgify FIXED_TYPE free list frobbing.
4609         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4610         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4611         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4612         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4613         * alloc.c (LRECORD_FREE_P): New.
4614         * alloc.c (MARK_LRECORD_AS_FREE): New.
4615         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4616         * alloc.c (STRUCT_FREE_P): Deleted.
4617         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4618         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4619         * alloc.c (STRING_CHARS_FREE_P): New.
4620         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4621         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4622         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4623         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4624         * alloc.c (resize_string): Use new definitions.
4625         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4626         * alloc.c (verify_string_chars_integrity): Use new definitions.
4627         * alloc.c (compact_string_chars): Use new definitions.
4628         * alloc.c: Update monster comments.
4629         * lrecord.h (lrecord_type): Add some new lrecord types for
4630         alloc.c's use.
4631
4632 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4633
4634         Improve alignment hackery.
4635         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4636         (max_align_t): Moved from opaque.h - general purpose.
4637         (ALIGN_PTR): Use size_t, not long.
4638         * opaque.h (max_align_t): Move to lisp.h.
4639
4640 2001-01-18  Norbert Koch  <nk@LF.net>
4641
4642         * gui.h: Fix and add prototypes to fix build problems.
4643
4644 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4645
4646         temacs is going away, so `dump-temacs' is now a bad name.
4647         * .dbxrc (dump-temacs): Rename to `dmp'.
4648         * .gdbinit (dump-temacs): Rename to `dmp'.
4649
4650 2001-01-17  Andy Piper  <andy@xemacs.org>
4651
4652         * glyphs.c (print_image_instance): comment to make martin happy.
4653
4654         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4655         change.
4656
4657         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4658         activation.
4659         (mswindows_tab_control_redisplay): warning suppression.
4660
4661         * glyphs-widget.c (widget_update): re-write to cope with updated
4662         items.
4663         (widget_instantiate): use new gui_item functions.
4664         (tab_control_update): deleted.
4665         (progress_gauge_update): deleted.
4666         (image_instantiator_progress_guage): take out update reference.
4667         (image_instantiator_tree_view): ditto.
4668         (image_instantiator_tab_control): ditto.
4669
4670         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4671         Right the new way.
4672         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4673         return whether anything was changed.
4674         (update_gui_item_keywords): as it sounds.
4675
4676         * gui.h: declare widget_gui_parse_item_keywords.
4677
4678         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4679         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4680
4681 2001-01-17  Martin Buchholz <martin@xemacs.org>
4682
4683         * XEmacs 21.2.41 "Polyhymnia" is released.
4684
4685 2001-01-16  Didier Verna  <didier@xemacs.org>
4686
4687         * glyphs.c (image_instantiate): don't use fallbacks when
4688         instantiating a face's background pixmap by inheritance.
4689
4690 2001-01-14  Mike Sperber <mike@xemacs.org>
4691
4692         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4693         Conditionalize accordingly.
4694
4695 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4696
4697         * dumper.c (pdump_file_get): Fix a compiler warning.
4698
4699 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4700
4701         Make Purify happy when pdumping.
4702         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4703         iniitalizing all bits of new lisp object memory.
4704         * symbols.c (Fmake_local_variable): Likewise.
4705         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4706         * symbols.c (Fdefvaralias): Likewise.
4707         * mule-charset.c (vars_of_mule_charset): Likewise.
4708
4709 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4710         Add the `-nd' flag when running pre-dump operations under the debugger.
4711         * .dbxrc (run-temacs): Add `-nd'.
4712         * .dbxrc (update-elc): Likewise.
4713         * .dbxrc (dump-temacs): Likewise.
4714         * .gdbinit (run-temacs): Likewise.
4715         * .gdbinit (check-temacs): Likewise.
4716         * .gdbinit (update-elc): Likewise.
4717         * .gdbinit (dump-temacs): Likewise.
4718
4719 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4720
4721         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4722         export OBJECT_MODE=64
4723         configure --pdump --use-union-type=no
4724         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4725         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4726
4727         * miscplay.c (sndcnv8U_2mono):
4728         Avoid two uses of `++' in the same expression.
4729         Suppresses a GCC warning.
4730
4731 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4732
4733         Make sure future compilers don't miscompile alloc.c.
4734         * alloc.c:
4735         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4736         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4737
4738 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4739
4740         * dumper.c: A little post-pdump-rename comment fixup.
4741
4742 2001-01-09  Jerry James  <james@eecs.ku.edu>
4743
4744         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4745
4746 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4747
4748         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4749         script:
4750         #!/bin/sh
4751         replace_symbol () {
4752           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4753         }
4754
4755         replace_symbol pdump_wire_lists pdump_weak_object_chains
4756         replace_symbol pdump_wire_list dump_add_weak_object_chain
4757
4758         replace_symbol pdump_wires pdump_root_objects
4759         replace_symbol pdump_wire dump_add_root_object
4760
4761         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4762         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4763
4764         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4765         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4766         replace_symbol dumpstructinfo pdump_root_struct_ptr
4767         replace_symbol dumpstruct dump_add_root_struct_ptr
4768
4769         replace_symbol dumpopaque dump_add_opaque
4770         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4771         replace_symbol dumpopaqueinfos pdump_opaques
4772         replace_symbol dumpopaqueinfo pdump_opaque
4773
4774         replace_symbol nb_structdump nb_root_struct_ptrs
4775         replace_symbol nb_opaquedump nb_opaques
4776
4777         replace_symbol align_table pdump_align_table
4778         replace_symbol dump_header pdump_header
4779
4780         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4781         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4782
4783
4784 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4785
4786         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4787         optimizing bytecount_to_charcount().
4788
4789 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4790
4791         * config.h.in:
4792         (HAVE_DLFCN_H): Removed.
4793         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4794
4795 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4796
4797         Portable dumper maintainability improvements.
4798         * alloc.c (staticpro):
4799         * alloc.c (staticpro_nodump):
4800         * alloc.c (garbage_collect_1):
4801         * alloc.c (reinit_alloc_once_early):
4802         * alloc.c (init_alloc_once_early):
4803         * alloc.c: Move dumper functions to alloc.c.
4804         * dumper.c (pdump_backtrace):
4805         * dumper.c (pdump_dump_structs):
4806         * dumper.c (pdump_dump_opaques):
4807         * dumper.c (pdump_dump_rtables):
4808         * dumper.c (pdump_dump_wired):
4809         * dumper.c (pdump):
4810         * dumper.c (pdump_load_check):
4811         * dumper.c (pdump_load_finish):
4812         * dumper.c (pdump_file_unmap):
4813         * dumper.c (pdump_file_get):
4814         * dumper.c (pdump_resource_free):
4815         * dumper.c (pdump_resource_get):
4816         * dumper.c (pdump_file_free):
4817         * dumper.c (pdump_file_try):
4818         * dumper.c (pdump_load):
4819         Remove fixed size limits on staticpro(), staticpro_nodump(),
4820         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4821         Remove custom code for dumping lrecord_implementations_table - use
4822         dumpopaque instead.
4823         Remove (most of the) custom code for dumping staticpros - dump it
4824         like any other dynarr.
4825
4826         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4827         * dumper.c: Moved functions from alloc.c.
4828         * alloc.c (dumpstruct): Moved to dumper.c.
4829         * alloc.c (dumpopaque): Likewise.
4830         * alloc.c (pdump_wire): Likewise.
4831         * alloc.c (pdump_wire_list): Likewise.
4832
4833         * lisp.h (Dynarr_sizeof): New.
4834         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4835         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4836         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4837
4838         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4839         * lisp.h (dumpopaque): ditto.
4840         * lisp.h (pdump_wire): ditto.
4841         * lisp.h (pdump_wire_list): ditto.
4842
4843 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4844
4845         * make-src-depend (PrintPatternDeps):
4846         Use `sort' to make output independent of perl version.
4847
4848 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4849
4850         Port to Netbsd 1.5.
4851         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4852         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4853
4854 2001-01-03  Didier Verna  <didier@xemacs.org>
4855
4856         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4857         that `focus_frame' is alive before thinking of calling
4858         `redisplay_redraw_cursor' on it.
4859
4860 2001-01-08  Martin Buchholz <martin@xemacs.org>
4861
4862         * XEmacs 21.2.40 is released.
4863
4864 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4865
4866         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4867
4868 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4869
4870         * alloc.c (dbg_valmask): Make const.
4871         * alloc.c (dbg_typemask): Make const.
4872         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4873         * alloc.c (dbg_valbits): Make const.
4874         * alloc.c (dbg_gctypebits): Make const.
4875
4876 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4877
4878         * redisplay-x.c (x_bevel_area):
4879         redisplay.h (struct rune):
4880         Typo fixes in comments.
4881
4882 2001-01-05  Andy Piper  <andy@xemacs.org>
4883
4884         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4885         adjustment.
4886
4887         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4888
4889 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4890
4891         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4892
4893         * mule-ccl.c (stack_idx_of_map_multiple):
4894         Non const global data must not be initialized!
4895         Found by MIYASHITA Hisashi.
4896
4897 2001-01-02  Andy Piper  <andy@xemacs.org>
4898
4899         * frame.c (change_frame_size): make sure frame size is always
4900         marked as changed.
4901
4902         * glyphs.c (image_instance_layout): minor code reuse.
4903
4904         * window.c (Fcurrent_window_configuration): revert previous
4905         change.
4906
4907 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4908
4909         * glyphs.h:
4910         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4911
4912 2000-12-31  Andy Piper  <andy@xemacs.org>
4913
4914         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4915         when widget gets unmapped.
4916
4917         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4918         function. Make sure widgets losing focus don't just drop it.
4919         (handle_focus_event_1): record the widget with focus.
4920
4921 2000-12-31  Andy Piper  <andy@xemacs.org>
4922
4923         * window.c (allocate_window): use
4924         make_image_instance_cache_hash_table.
4925         (make_dummy_parent): ditto.
4926         (Fset_window_configuration): ditto.
4927
4928         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4929
4930         * glyphs.c (process_image_string_instantiator): use
4931         INSTANTIATOR_TYPE.
4932         (get_image_instantiator_governing_domain): ditto.
4933         (normalize_image_instantiator): ditto.
4934         (instantiate_image_instantiator): ditto.
4935         (make_image_instance_1): ditto.
4936         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4937         (instantiator_eq_equal): new function for use with instance hash
4938         tables.
4939         (instantiator_eq_hash): ditto.
4940         (make_image_instance_cache_hash_table): create a suitable hash
4941         table for storing image instances.
4942
4943         * elhash.h (hash_table_weakness): new internal weakness type
4944         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4945         declare new functions.
4946
4947         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4948         another weakness type for glyphs.
4949         (make_standard_lisp_hash_table): new function split out from
4950         make_general_lisp_hash_table.
4951         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4952         (hash_table_instantiate): ditto.
4953         (Fmake_hash_table): ditto.
4954
4955 2000-12-31  Martin Buchholz <martin@xemacs.org>
4956
4957         * XEmacs 21.2.39 is released.
4958
4959 2000-12-29  Andy Piper  <andy@xemacs.org>
4960
4961         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4962
4963         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4964         the frame has changed so that we pick up geometry changes such as
4965         menubar visibility.
4966
4967 2000-12-28  Andy Piper  <andy@xemacs.org>
4968
4969         * lastfile.c (my_ebss): make a char array so we can pad the
4970         bss. Fixes cygwin unexec.
4971
4972         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4973
4974 2000-12-26  Andy Piper  <andy@xemacs.org>
4975
4976         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4977         comments and try and be more precise about a non-/SIGIO world.
4978         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4979         SIGIO.
4980
4981         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4982         we don't normalize to zero width or height.
4983
4984 2000-12-24  Andy Piper  <andy@xemacs.org>
4985
4986         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4987
4988 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4989
4990         * s/sco5.h: SCO 5 has pty support.
4991
4992 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4993
4994         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4995         input-method-xlib.c contains whole contents of input-method-xfs.c,
4996         so we can use input-method-xlib.c's code for USE_XFONTSET
4997         using #ifdefs.
4998         * input-method-xfs.c: removed.
4999
5000 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
5001
5002         * file-coding.h (enum coding_category_type): reorder enumerators to
5003         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
5004         (now one greater than largest real coding_category_type enumerator).
5005         * file-coding.c (coding_category_symbol, coding_category_by_priority,
5006         coding_category_system, fcd_descriptihon_1, decode_coding_category,
5007         Fcoding_category_list, Fset_coding_priority_list,
5008         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
5009         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
5010
5011 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5012
5013         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
5014         * redisplay-output.c (redisplay_output_window): Clear top of window
5015         when face is changed.
5016         * redisplay-x.c (x_redraw_exposed_window): Call
5017         redisplay_clear_top_of_window.
5018         * redisplay.h: Publish redisplay_clear_top_of_window.
5019
5020 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5021
5022         * buffer.c (Fkill_buffer): Map over all devices.
5023         * window.c (window_loop): Remove UNSHOW_BUFFER code.
5024         (list_windows): New function.
5025         (list_all_windows): Ditto.
5026         (Freplace_buffer_in_windows): Use them.
5027
5028 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5029
5030         * database.c (berkdb_subtype): Recognize new subtype `queue'.
5031         (Fopen_database): Use `db_create' instead of `db_open'.
5032         (syms_of_database): Initialize Qqueue.
5033
5034 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5035
5036         * buffer.c (common_init_complex_vars_of_buffer): Initialize
5037         buffer_local_face_property.
5038         * buffer.h (struct buffer): New member buffer_local_face_property.
5039         * window.c (Fset_window_buffer):  Mark window's face as changed
5040         when buffer has buffer local face.
5041         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
5042         * objects.c (color_after_change): Set buffer_local_face_property
5043         when locale of face specifier is buffer.
5044         * objects.c (font_after_change): Ditto.
5045         * objects.c (face_boolean_after_change): Ditto.
5046         * glyphs.c (image_after_change): Ditto.
5047
5048 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5049
5050         * nt.c (mswindows_fstat): Report file permissions, volume serial
5051         number, etc. Code adapted from FSF Emacs 20.7.
5052
5053 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5054
5055         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
5056         of stat when we don't have symbolic links, to make sure
5057         mswindows_stat is called on mswindows.
5058
5059 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5060
5061         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
5062
5063 2000-12-12  Martin Buchholz  <martin@xemacs.org>
5064
5065         * doprnt.c (emacs_doprnt_1): More printing fixes.
5066         Make printing of numbers compatible with libc and FSF Emacs.
5067         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
5068         Use the system printf to do most of the hard work of formatting,
5069         instead of doprnt_1().
5070         Calculate memory to allocate for format string.
5071         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
5072         (doprnt_1): Cleaner code and documentation.
5073
5074 2000-12-01  Jerry James  <james@eecs.ukans.edu>
5075
5076         * Makefile.in.in: Use the loop variable to install headers.
5077
5078 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5079
5080         * window.c (Fsplit_window): Don't invalidate face cache.
5081
5082 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5083
5084         * minibuf.c (Fall_completions): Undo the previous change
5085         which removed checking elements start with space.
5086
5087 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5088
5089         * mule-canna.c: Didier suppression.
5090
5091 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5092
5093         * mule-canna.c: rename static unsigned char buf[] to key_buffer
5094         (warning suppression).  Add English comment translations.
5095
5096 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5097
5098         * unexelfsgi.c (unexec): Better test for mmap failure.
5099
5100 2000-12-05  Martin Buchholz <martin@xemacs.org>
5101
5102         * XEmacs 21.2.38 is released.
5103
5104 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5105
5106         * redisplay.c (bar-cursor): Make a user variable.
5107
5108         * symsinit.h: Add init_postgresql_from_environment.
5109
5110 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5111
5112         * regex.c: Convert to clean C.
5113
5114 2000-12-05  Dan Holmsand  <dan@eyebee.com>
5115
5116         * realpath.c:
5117         Don't #include sysfile.h. Revert to duplicating PATH_MAX
5118         initialization.
5119         (sys_readlink): renamed to system_readlink to avoid conflict with
5120         the other sys_readlink.
5121
5122 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
5123
5124         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5125
5126 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
5127
5128         * postgresql.c (init_postgresql_from_environment): new function.
5129         (vars_of_postgresql): Move code initializing Lisp variables out and
5130         into init_postgresql_from_environment.
5131         emacs.c (main_1): Call init_postgresql_from_environment if and only
5132         if running a dumped XEmacs.
5133
5134 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5135
5136         * buffer.c: Make find-file-compare-truenames default to true on
5137         windows.
5138
5139         * realpath.c (win32_abs_start):
5140         (cygwin_readlink):
5141         (win32_readlink): New functions.
5142         (xrealpath): Return really real filenames on windows.
5143
5144         * fileio.c (Ffile_truename): Make file-truename work on windows.
5145
5146 2000-11-29  Didier Verna  <didier@xemacs.org>
5147
5148         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5149         * faces.c (update_face_cachel_data): use it.
5150         * faces.c (add_face_cachel): use it. Complete background pixmap
5151         frobbing in face cache if `update_face_cachel_data' has not done so.
5152
5153 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5154
5155         * search.c (string_match_1): Don't set last_thing_searched
5156         when search failed.
5157
5158 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5159
5160         * buffer.c: Include casetab.h
5161         (common_init_complex_vars_of_buffer): Use new case-table object.
5162         * buffer.h: Include casetab.h
5163         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5164         (DOWNCASE_TABLE_OF): Ditto.
5165         * bufslots.h: Remove char-tables and add case-table.
5166         * casetab.c: Include casetab.h
5167         (CASE_TABLE_P): Removed.
5168         (mark_case_table): New function.
5169         (allocate_case_table): New function.
5170         (Fcase_table_p): Use new case-table.
5171         (case_table_char): New function.
5172         (Fget_case_table): Ditto.
5173         (Fput_case_table): Ditto.
5174         (Fput_case_table_pair): Ditto.
5175         (Fcopy_case_table): Ditto.
5176         (Fcurrent_case_table): Return case-table.
5177         (Fstandard_case_table): Return case-table.
5178         (Fset_case_table): Fix doc-string.
5179         (set_case_table): Use case-table
5180         (syms_of_casetab): DEFSUBR new functions.
5181         (complex_vars_of_casetab): Set up standard case-table.
5182         * casetab.h: New file.
5183         * editfns.c: Include casetab.h
5184         (Fcompare_buffer_substrings): Use case-table.
5185         * inline.c: Include casetab.h
5186         * lisp.h: Remove bogus extern.
5187         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5188         * search.c: Include casetab.h
5189         (TRANSLATE_ASCII): Removed.
5190         (TRANSLATE): Unconditionally translate character.
5191         (looking_at_1): Use case-table.
5192         (string_match_1): Ditto.
5193         (fast_string_match): Ditto.
5194         (search_command): Ditto.
5195         (search_buffer): Separate boyer_moore.  Check whether
5196         boyer_moore is possible.
5197         (simple_search): New function.
5198         (boyer_moore): Separated from search_buffer. Translate char.
5199
5200 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5201
5202         * regex.c (RE_TR_ASCII): Removed.
5203         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5204         (PATFETCH): Call PATFETCH_RAW.
5205         (PATFETCH_RAW): Fetch Emchar.
5206         (PATUNFETCH): Decrement charptr.
5207         (GET_BUFFER_SPACE): Rename b to buf_end.
5208         (BUF_PUSH): Ditto.
5209         (BUF_PUSH_2): Ditto.
5210         (BUF_PUSH_3): Ditto.
5211         (EXTEND_BUFFER): Ditto.
5212         (SET_LIST_BIT): Ditto.
5213         (regex_compile): Ditto.  Translate non ASCII char.
5214         (compile_range): Ditto.
5215         (re_search_2): Ditto.
5216         (re_match_2_internal): Compare Emchar.
5217         (bcmp_translate): Ditto.
5218
5219 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5220
5221         * lisp.h (basic char/int typedefs):  comment improvement.
5222
5223 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5224
5225         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5226         unstomp inhibit_site_lisp.  Improve comments.
5227
5228 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5229
5230         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5231
5232 2000-11-28  Andy Piper  <andy@xemacs.org>
5233
5234         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5235         clipped display for windows in the gutter also.
5236         (redisplay_display_boxes_in_window_p): change semantics of return
5237         codes to be more intuitive.
5238
5239         * gutter.h: declare display_boxes_in_gutter_p.
5240
5241         * gutter.c (display_boxes_in_gutter_p): new function for
5242         redisplay.
5243
5244 2000-11-22  Andy Piper  <andy@xemacs.org>
5245
5246         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5247         autodetect domain.
5248
5249 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5250
5251         * callproc.c (Fold_call_process_internal):
5252         * gpm.c (Freceive_gpm_event):
5253         (tty_get_foreign_selection): Might be just warning supression.
5254         * fileio.c (Fwrite_region_internal):
5255         (Fset_visited_file_modtime):
5256         * keymap.c (event_matches_key_specifier_p):
5257         Initialize GCPROed variable.
5258
5259         * menubar-x.c (command_builder_find_menu_accelerator):
5260         Initialize before use.
5261
5262 2000-11-23  Andy Piper  <andy@xemacs.org>
5263
5264         * unexcw.c (unexec): make the resulting executable executable.
5265
5266 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5267
5268         * doc.c (get_doc_string):
5269         Use size_t, not int, for result of XSTRING_LENGTH.
5270
5271         * cmds.c (Fdelete_char):
5272         * cmds.c (Fpoint_at_eol):
5273         * cmds.c (Fself_insert_command):
5274         Use EMACS_INT, not int, for result of XINT.
5275         Someday, someone will want to insert more than 2**31 identical characters.
5276
5277         * cmds.c (Fdelete_char):
5278         * cmds.c (Fdelete_backward_char):
5279         * syntax.c (Fforward_word):
5280         * syntax.c (Fforward_comment):
5281         Make COUNT argument optional, for consistency with forward-char et al.
5282
5283 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5284
5285         * lisp.h:
5286         * print.c (long_to_string):
5287         Return a useful value: the pointer at end of data written.
5288
5289         * doprnt.c:
5290         Use `static const char * const' for constant strings.
5291         (union printf_arg): Delete `i', `ui' members.
5292         (get_doprnt_args):
5293         (emacs_doprnt_1):
5294         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5295         Do all printf-ing via the `l' specifier.
5296         Use EMACS_INT instead of int.
5297         Optimize.
5298
5299 2000-11-20  Didier Verna  <didier@xemacs.org>
5300
5301         * faces.c (update_face_cachel_data): don't frob the background
5302         pixmap when the window is being created. The face is needed but
5303         does not exist yet.
5304
5305 2000-11-20  Andy Piper  <andy@xemacs.org>
5306
5307         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5308         messing with a debug environment.
5309
5310 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5311
5312         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5313
5314 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5315
5316         * casetab.c (Fcase_table_p): Fix compile error and crash.
5317
5318 2000-11-18  Philip Aston  <philipa@mail.com>
5319
5320         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5321
5322 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5323
5324         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5325         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5326
5327 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5328
5329         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5330         * unexelf.c: Use HAVE_ELF_H.
5331         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5332         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5333         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5334         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5335         for testing.
5336         So this is an unexelfsgi.c from a different line of development.
5337
5338 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5339
5340         * regex.c (RE_TR_ASCII): New function.
5341         (RE_TRANSLATE): Call it.
5342
5343 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5344
5345         * buffer.h (TRT_TABLE_OF): Remove assert.
5346         (IN_TRT_TABLE_DOMAIN): Removed.
5347
5348 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5349
5350         * free-hook.c (log_gcpro):
5351         (show_gcprohist): Add support for GCPRO5.
5352
5353 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5354
5355         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5356
5357 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5358
5359         * symeval.h: Declare flush_all_buffer_local_cache.
5360
5361         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5362         (flush_buffer_local_cache): Added.
5363         (flush_all_buffer_local_cache): Added.
5364
5365         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5366
5367         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5368         (pdump_dump_data): Ditto.
5369         (pdump_reloc_one): Ditto.
5370         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5371         before dumping.
5372
5373
5374 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5375
5376         * buffer.c: Remove if 0'ed entry.
5377         * buffer.h: Rewrite TRT to use char-table.
5378         * bufslots.h: Remove mirror tables.
5379         * casetab.c: Remove mirror tables.
5380         (CASE_TABLE_P): New macro.
5381         (Fcase_table_p): Element of a case table is string or char-table.
5382         (make_mirror_trt_table): Removed.
5383         (set_case_table): Setup char-table from strings for backward
5384         compatibility.
5385         * dired.c (Fdirectory_files):
5386         * dired-msw.c: (mswindows_get_files):
5387         * lisp.h: Change prototype of re_pattern_buffer.
5388         * regex.c: (RE_TRANSLATE): New macro.
5389         (TRANSLATE_P): Ditto.
5390         Change translate to type RE_TRANSLATE_TYPE.
5391         * regex.h: Define RE_TRANSLATE_TYPE
5392         * search.c (TRANSLATE): New macro.
5393         (TRANSLATE_ASCII): New macro.
5394         Translate table is changed to Lisp_Object.
5395         (signal_failure): Inhibit return.
5396
5397 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5398
5399         * device-msw.c:
5400         * eldap.c:
5401         * event-Xt.c:
5402         * event-stream.c:
5403         * print.c:
5404         Do UNGCPRO before return.
5405
5406 2000-11-14  Martin Buchholz <martin@xemacs.org>
5407
5408         * XEmacs 21.2.37 is released.
5409
5410 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5411
5412         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5413         Add comments about discarded return value.
5414
5415 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5416
5417         * callint.c:
5418         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5419
5420 2000-10-27  Andy Piper  <andy@xemacs.org>
5421
5422         * gutter.c (Fset_default_gutter_position): default left and right
5423         gutters to visible.
5424         (calculate_gutter_size): calculate resonable heuristic for left
5425         and right gutter sizes.
5426         (specifier_vars_of_gutter): change left and right gutter sizes to
5427         autodetect.
5428         (calculate_gutter_size_from_display_lines): new function.
5429         (output_gutter): check for resizing on left and right gutters.
5430         (clear_gutter): don't special case top and left gutters.
5431         (specifier_vars_of_gutter): use new signature for
5432         set_specifier_caching.
5433
5434         * glyphs-x.c (x_redisplay_widget): spelling fix.
5435         * glyphs.c (specifier_vars_of_glyphs):
5436         * menubar.c (specifier_vars_of_menubar):
5437         * redisplay.c (specifier_vars_of_redisplay):
5438         * toolbar.c (specifier_vars_of_toolbar):
5439         * window.c (specifier_vars_of_window):
5440         * scrollbar.c (specifier_vars_of_scrollbar):
5441         (complex_vars_of_scrollbar): use new signature for
5442         set_specifier_caching.
5443
5444         * specifier.c (set_specifier_caching): include recompute flag.
5445         (recompute_one_cached_specifier_in_window): always recompute if
5446         flag set.
5447         (recompute_one_cached_specifier_in_frame): ditto.
5448
5449         * specifier.h (struct specifier_caching): add recompute flag.
5450
5451 2000-10-24  Andy Piper  <andy@xemacs.org>
5452
5453         * unexcw.c (copy_executable_and_dump_data_section): add new
5454         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5455         5.0 happy.
5456
5457 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5458
5459         * console-x.h (x_device): New member modifier_release_time.
5460         * event-Xt.c (x_handle_sticky_modifiers):
5461         Bound interval modifier keys are sticky.
5462         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5463         * events.h: extern it.
5464
5465 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5466
5467         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5468
5469 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5470
5471         * event-stream.c (execute_command_event): Preserve current_events
5472         and the like when event is misc-user-event.
5473         Inhibit quit during the call to maybe_echo_keys.
5474
5475 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5476
5477         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5478         symlink when buffer is killed.
5479         (inhibit_clash_detection): New variable.
5480
5481 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5482
5483         * console.c (Fset_input_method): Trigger redisplay on tty.
5484
5485 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5486
5487         * process.c (Fprocess_status): Revert to previous behavior:
5488         (process-status "nosuchprocess") ==> nil
5489
5490 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5491
5492         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5493         Work around another GCC 2.95.2 optimizer bug.
5494
5495 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5496
5497         * process.c (Fget_process): Use LIST_LOOP_2.
5498         (kill_buffer_processes): Use LIST_LOOP_2.
5499
5500         * minibuf.c (Fall_completions):
5501         Delete old non-functional code for FSF fourth argument.
5502
5503         * frame.c (frame_matches_frame_spec):
5504         Renamed from `frame_matches_frametype'.  Update all callers.
5505         (device_matches_device_spec):
5506         Renamed from 'device_matches_console_spec'.  Update all callers.
5507
5508         * doc.c (Fsubstitute_command_keys):
5509         Remove buffer overflow crash.  Small code cleanups.
5510
5511         * casetab.c (check_case_table): Simpler code.
5512
5513         * window.c (Freplace_buffer_in_windows):
5514         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5515         (and similar implementation) as Fdelete_windows_on.
5516         Update all callers.
5517
5518         * alloc.c (Fmake_list):
5519         * alloc.c (make_vector):
5520         * alloc.c (Fmake_vector):
5521         * alloc.c (make_bit_vector):
5522         * alloc.c (Fmake_bit_vector):
5523         * alloc.c (Fbit_vector):
5524         * alloc.c (Fmake_string):
5525         * alloc.c (Fpurecopy):
5526         * alloc.c (Fmemory_limit):
5527         * buffer.c:
5528         * buffer.c (Fget_buffer):
5529         * buffer.c (Fkill_buffer):
5530         * buffer.c (complex_vars_of_buffer):
5531         * bytecode.c (Fcompiled_function_stack_depth):
5532         * callint.c (Fprefix_numeric_value):
5533         * event-stream.c:
5534         * event-stream.c (Fread_key_sequence):
5535         * casetab.c:
5536         * casetab.c (Fcase_table_p):
5537         * casetab.c (check_case_table):
5538         * casetab.c (Fset_case_table):
5539         * casetab.c (Fset_standard_case_table):
5540         * chartab.c:
5541         * chartab.c (Fchar_table_type):
5542         * chartab.c (Freset_char_table):
5543         * chartab.c (Fget_char_table):
5544         * chartab.c (Fget_range_char_table):
5545         * chartab.c (Fput_char_table):
5546         * chartab.c (Fmap_char_table):
5547         * chartab.c (Fcategory_table_p):
5548         * chartab.c (Fcheck_category_at):
5549         * chartab.c (Fchar_in_category_p):
5550         * chartab.c (Fcategory_table):
5551         * chartab.c (Fcopy_category_table):
5552         * chartab.c (Fset_category_table):
5553         * chartab.c (Fcategory_designator_p):
5554         * chartab.c (Fcategory_table_value_p):
5555         * cmds.c (Fdelete_char):
5556         * cmds.c (Fdelete_backward_char):
5557         * cmds.c (Fself_insert_command):
5558         * cmds.c (Fself_insert_internal):
5559         * console.c (Fvalid_console_type_p):
5560         * console.c (Fcdfw_console):
5561         * console.c (Fconsole_type):
5562         * console.c (Fconsole_name):
5563         * console.c (Fconsole_device_list):
5564         * console.c (Fconsole_on_window_system_p):
5565         * data.c:
5566         * data.c (Feq):
5567         * data.c (Fold_eq):
5568         * data.c (Fsubr_interactive):
5569         * data.c (Fchar_to_int):
5570         * data.c (Fint_to_char):
5571         * data.c (Fsetcar):
5572         * data.c (Fsetcdr):
5573         * data.c (Fnumber_to_string):
5574         * data.c (Fstring_to_number):
5575         * data.c (Frem):
5576         * database.c (mark_database):
5577         * database.c (finalize_database):
5578         * database.c (Fdatabase_live_p):
5579         * database.c (Fdatabasep):
5580         * device-x.c (Fx_get_resource):
5581         * device.c (Fdfw_device):
5582         * dired.c:
5583         * dired.c (Ffile_name_completion):
5584         * dired.c (Ffile_name_all_completions):
5585         * dired.c (Fuser_name_completion):
5586         * dired.c (Fuser_name_completion_1):
5587         * dired.c (Fuser_name_all_completions):
5588         * doc.c (Fdocumentation):
5589         * doc.c (Fdocumentation_property):
5590         * doc.c (Fsubstitute_command_keys):
5591         * editfns.c:
5592         * editfns.c (Fchar_to_string):
5593         * editfns.c (Fstring_to_char):
5594         * editfns.c (Ftemp_directory):
5595         * editfns.c (Finsert_char):
5596         * editfns.c (Fbuffer_substring_no_properties):
5597         * editfns.c (Fnarrow_to_region):
5598         * editfns.c (Fchar_equal):
5599         * editfns.c (Fchar_Equal):
5600         * editfns.c (Ftranspose_regions):
5601         * emacs.c (Fdump_emacs):
5602         * eval.c (Fthrow):
5603         * eval.c (Fcommand_execute):
5604         * eval.c (Fautoload):
5605         * eval.c (Fbacktrace):
5606         * eval.c (Fbacktrace_frame):
5607         * events.c:
5608         * events.c (Fcopy_event):
5609         * events.c (Fcharacter_to_event):
5610         * events.c (Fevent_button):
5611         * events.c (Fevent_process):
5612         * extents.c:
5613         * extents.c (Fnext_extent_change):
5614         * extents.c (Fextent_property):
5615         * faces.c (Ffacep):
5616         * faces.c (Fmake_face):
5617         * file-coding.c:
5618         * file-coding.c (Fencode_shift_jis_char):
5619         * file-coding.c (Fencode_big5_char):
5620         * fileio.c (Ffile_name_directory):
5621         * fileio.c (Ffile_name_nondirectory):
5622         * fileio.c (Ffile_name_as_directory):
5623         * fileio.c (Fdirectory_file_name):
5624         * fileio.c (Ffile_truename):
5625         * fileio.c (Fsubstitute_in_file_name):
5626         * fileio.c (Ffile_modes):
5627         * fileio.c (Fset_file_modes):
5628         * fileio.c (Fset_default_file_modes):
5629         * fileio.c (Fverify_visited_file_modtime):
5630         * floatfns.c (Facos):
5631         * floatfns.c (Fasin):
5632         * floatfns.c (Fatan):
5633         * floatfns.c (Fcos):
5634         * floatfns.c (Fsin):
5635         * floatfns.c (Ftan):
5636         * floatfns.c (Fbessel_j0):
5637         * floatfns.c (Fbessel_j1):
5638         * floatfns.c (Fbessel_jn):
5639         * floatfns.c (Fbessel_y0):
5640         * floatfns.c (Fbessel_y1):
5641         * floatfns.c (Fbessel_yn):
5642         * floatfns.c (Ferf):
5643         * floatfns.c (Ferfc):
5644         * floatfns.c (Flog_gamma):
5645         * floatfns.c (Fexp):
5646         * floatfns.c (Fexpt):
5647         * floatfns.c (Flog):
5648         * floatfns.c (Flog10):
5649         * floatfns.c (Fsqrt):
5650         * floatfns.c (Fcube_root):
5651         * floatfns.c (Facosh):
5652         * floatfns.c (Fasinh):
5653         * floatfns.c (Fatanh):
5654         * floatfns.c (Fcosh):
5655         * floatfns.c (Fsinh):
5656         * floatfns.c (Ftanh):
5657         * floatfns.c (Fabs):
5658         * floatfns.c (Ffloat):
5659         * floatfns.c (Flogb):
5660         * floatfns.c (Fceiling):
5661         * floatfns.c (Ffloor):
5662         * floatfns.c (Fround):
5663         * floatfns.c (Ftruncate):
5664         * floatfns.c (Ffceiling):
5665         * floatfns.c (Fffloor):
5666         * floatfns.c (Ffround):
5667         * floatfns.c (Fftruncate):
5668         * fns.c (Fstring_equal):
5669         * fns.c (Fstring_lessp):
5670         * fns.c (concat2):
5671         * fns.c (concat3):
5672         * fns.c (vconcat2):
5673         * fns.c (vconcat3):
5674         * fns.c (Fsubstring):
5675         * fns.c (Fassoc):
5676         * fns.c (Fold_assoc):
5677         * fns.c (assoc_no_quit):
5678         * fns.c (Fassq):
5679         * fns.c (Fold_assq):
5680         * fns.c (assq_no_quit):
5681         * fns.c (Frassoc):
5682         * fns.c (Fold_rassoc):
5683         * fns.c (Frassq):
5684         * fns.c (Fold_rassq):
5685         * fns.c (rassq_no_quit):
5686         * fns.c (Fremassoc):
5687         * fns.c (remassoc_no_quit):
5688         * fns.c (Fremassq):
5689         * fns.c (remassq_no_quit):
5690         * fns.c (Fremrassoc):
5691         * fns.c (Fremrassq):
5692         * fns.c (remrassq_no_quit):
5693         * fns.c (Fsort):
5694         * fns.c (Fplist_get):
5695         * fns.c (Fplist_put):
5696         * fns.c (Fplist_remprop):
5697         * fns.c (Fplist_member):
5698         * fns.c (Flax_plist_get):
5699         * fns.c (Flax_plist_put):
5700         * fns.c (Flax_plist_remprop):
5701         * fns.c (Flax_plist_member):
5702         * fns.c (Fequal):
5703         * fns.c (Fold_equal):
5704         * fns.c (Frequire):
5705         * fns.c (Fbase64_encode_region):
5706         * fns.c (Fbase64_encode_string):
5707         * fns.c (Fbase64_decode_region):
5708         * frame.c:
5709         * frame.c (frame_matches_frame_spec):
5710         * frame.c (device_matches_device_spec):
5711         * frame.c (next_frame):
5712         * frame.c (previous_frame):
5713         * frame.c (Fnext_frame):
5714         * frame.c (Fprevious_frame):
5715         * frame.c (Fframe_property):
5716         * frame.c (Fset_frame_height):
5717         * frame.c (Fset_frame_size):
5718         * frame.h:
5719         * glyphs.c:
5720         * glyphs.c (if):
5721         * glyphs.c (decode_error_behavior_flag):
5722         * glyphs.c (Fmake_image_instance):
5723         * indent.c (Findent_to):
5724         * intl.c (Fignore_defer_gettext):
5725         * keymap.c (Fkeymapp):
5726         * keymap.c (Flookup_key):
5727         * lread.c:
5728         * lread.c (Fload_internal):
5729         * lread.c (Feval_buffer):
5730         * lread.c (Feval_region):
5731         * macros.c (Fexecute_kbd_macro):
5732         * marker.c (set_marker_internal):
5733         * marker.c (Fset_marker):
5734         * marker.c (set_marker_restricted):
5735         * marker.c (Fcopy_marker):
5736         * marker.c (noseeum_copy_marker):
5737         * menubar.c:
5738         * menubar.c (Fpopup_menu):
5739         * minibuf.c:
5740         * mule-charset.c (Fcharset_name):
5741         * mule-charset.c (Fchar_charset):
5742         * mule-charset.c (Fchar_octet):
5743         * mule-charset.c (Fsplit_char):
5744         * mule-wnnfns.c (Fwnn_open):
5745         * mule-wnnfns.c (Fwnn_dict_comment):
5746         * mule-wnnfns.c (Fwnn_quit_henkan):
5747         * mule-wnnfns.c (Fwnn_word_toroku):
5748         * mule-wnnfns.c (Fwnn_word_sakujo):
5749         * mule-wnnfns.c (Fwnn_word_use):
5750         * mule-wnnfns.c (Fwnn_hindo_set):
5751         * objects.c:
5752         * objects.c (Fmake_color_instance):
5753         * objects.c (Fmake_font_instance):
5754         * print.c (Fwrite_char):
5755         * process.c:
5756         * process.c (mark_process):
5757         * process.c (print_process):
5758         * process.c (get_process_from_usid):
5759         * process.c (Fprocessp):
5760         * process.c (Fprocess_live_p):
5761         * process.c (Fget_process):
5762         * process.c (Fget_buffer_process):
5763         * process.c (get_process):
5764         * process.c (Fprocess_id):
5765         * process.c (Fprocess_name):
5766         * process.c (Fprocess_command):
5767         * process.c (init_process_io_handles):
5768         * process.c (start_process_unwind):
5769         * process.c (Fstart_process_internal):
5770         * process.c (Fopen_multicast_group_internal):
5771         * process.c (Fset_process_window_size):
5772         * process.c (read_process_output):
5773         * process.c (send_process):
5774         * process.c (Fprocess_tty_name):
5775         * process.c (Fset_process_buffer):
5776         * process.c (Fprocess_buffer):
5777         * process.c (Fprocess_mark):
5778         * process.c (set_process_filter):
5779         * process.c (Fset_process_filter):
5780         * process.c (Fprocess_filter):
5781         * process.c (Fprocess_send_region):
5782         * process.c (Fprocess_send_string):
5783         * process.c (exec_sentinel):
5784         * process.c (Fset_process_sentinel):
5785         * process.c (Fprocess_sentinel):
5786         * process.c (status_notify):
5787         * process.c (Fprocess_status):
5788         * process.c (Fprocess_exit_status):
5789         * process.c (process_send_signal):
5790         * process.c (Fprocess_send_eof):
5791         * process.c (deactivate_process):
5792         * process.c (remove_process):
5793         * process.c (Fdelete_process):
5794         * process.c (kill_buffer_processes):
5795         * process.c (Fprocess_kill_without_query):
5796         * process.c (Fprocess_kill_without_query_p):
5797         * rangetab.c:
5798         * rangetab.c (Fget_range_table):
5799         * rangetab.c (Fput_range_table):
5800         * rangetab.c (Fremove_range_table):
5801         * rangetab.c (Fclear_range_table):
5802         * search.c:
5803         * search.c (Fskip_chars_forward):
5804         * search.c (Fskip_chars_backward):
5805         * search.c (Fskip_syntax_forward):
5806         * search.c (Fskip_syntax_backward):
5807         * search.c (search_command):
5808         * search.c (Freplace_match):
5809         * search.c (Fregexp_quote):
5810         * select.c (Fown_selection_internal):
5811         * select.c (Fselection_owner_p):
5812         * select.c (Fselection_exists_p):
5813         * select.c (Fget_selection_internal):
5814         * specifier.c:
5815         * symbols.c:
5816         * symbols.c (Fintern):
5817         * symbols.c (Fintern_soft):
5818         * symbols.c (Funintern):
5819         * symbols.c (Fapropos_internal):
5820         * symbols.c (Fset_default):
5821         * syntax.c:
5822         * syntax.c (Fsyntax_table_p):
5823         * syntax.c (Fcopy_syntax_table):
5824         * syntax.c (Fset_syntax_table):
5825         * syntax.c (Fchar_syntax):
5826         * syntax.c (syntax_match):
5827         * syntax.c (Fmatching_paren):
5828         * syntax.c (Fforward_word):
5829         * syntax.c (scan_lists):
5830         * syntax.c (Fscan_lists):
5831         * syntax.c (Fscan_sexps):
5832         * syntax.c (Fparse_partial_sexp):
5833         * toolbar.c (Fcheck_toolbar_button_syntax):
5834         * tooltalk.doc:
5835         * window.c:
5836         * window.c (Fwindowp):
5837         * window.c (Fwindow_live_p):
5838         * window.c (Fwindow_point):
5839         * window.c (Fdelete_window):
5840         * window.c (Fnext_window):
5841         * window.c (Fprevious_window):
5842         * window.c (Fother_window):
5843         * window.c (window_loop):
5844         * window.c (Fget_lru_window):
5845         * window.c (Fsplit_window):
5846         * window.c (Fenlarge_window):
5847         * window.c (Fenlarge_window_pixels):
5848         * window.c (Fshrink_window):
5849         * window.c (Fshrink_window_pixels):
5850         * window.c (change_window_height):
5851         * window.c (Fwindow_configuration_p):
5852         * window.c (Fcurrent_window_configuration):
5853         * window.h:
5854         * casefiddle.c (casify_object):
5855         * casefiddle.c (Fupcase):
5856         * casefiddle.c (Fdowncase):
5857         * casefiddle.c (Fcapitalize):
5858         * casefiddle.c (Fupcase_initials):
5859         * casefiddle.c (casify_region_internal):
5860         * casefiddle.c (casify_region):
5861         * casefiddle.c (Fupcase_region):
5862         * casefiddle.c (Fdowncase_region):
5863         * casefiddle.c (Fcapitalize_region):
5864         * casefiddle.c (Fupcase_initials_region):
5865         * casefiddle.c (Fupcase_word):
5866         * casefiddle.c (Fdowncase_word):
5867         * casefiddle.c (Fcapitalize_word):
5868         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5869         Replace 0 with '\0' when working with bytes.
5870         Replace initial "(" with "\(" in docstrings.
5871
5872 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5873
5874         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5875
5876         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5877
5878 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5879
5880         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5881
5882 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5883
5884         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5885         correctly.
5886
5887 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5888
5889         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5890         (inhibit_auto_save_session): New variable.
5891         (vars_of_fileio): Declare and initialize them.
5892         * fileio.c (Fdo_auto_save): Don't create session file if
5893         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5894
5895 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5896
5897         * sgiplay.c (play_internal): C++ compilability.
5898         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5899         * callproc.c (Fold_call_process_internal):
5900         Remove unused vars `env', `first'.
5901         * scrollbar.c (update_scrollbar_instance):
5902         #### unused var `current_window'.
5903         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5904         etc. within #ifdef NOT_YET.
5905         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5906         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5907         * specifier.c (specifier_instance):
5908         #### unused var `tag'.
5909         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5910
5911 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5912
5913         * fns.c (Fbutlast):
5914         * fns.c (list_sort):
5915         * fns.c (Ffillarray):
5916         * fns.c (bytecode_nconc2):
5917         * fns.c (Fnconc):
5918         * fns.c (mapcar1):
5919         * fns.c (Fmapconcat):
5920         Be pedantically 64-bit correct.  For the time when someone will
5921         want to have a list with length > 2**32.
5922
5923         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5924         Work around MIPSpro compiler bug.
5925
5926         * process-unix.c (unix_kill_child_process): Add snarky comment.
5927         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5928
5929         * config.h.in: Oops, _getpt ==> _getpty
5930
5931 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5932
5933         * config.h.in:
5934         * regex.c:
5935         Use void*, not char*, as return type of alloca().
5936
5937         * alloc.c (free_marker): Side effect inside assert expression!
5938
5939 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5940
5941         * mule-charset.c (Fset_charset_ccl_program): To check
5942         if the given ccl program is valid, use setup_ccl_program()
5943         instead of CHECK_VECTOR().
5944         (Fmake_charset): Likewise.
5945
5946 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5947
5948         * faces.c (get_extent_fragment_face_cache_index):
5949         Fix cachel.merged_faces memory leak.
5950
5951 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5952
5953         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5954         Reset MSB of octets obtained by DECODE_SJIS
5955         because of the incompatibility with Emacs.
5956         (ccl_driver)<CCL_ENCODE_SJIS>:
5957         Set MSB of octets before passing them to
5958         ENCODE_SJIS because of the incompatibility
5959         with Emacs.
5960
5961 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5962
5963         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5964         (DECLARE_LRECORD): Undo the last change.
5965         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5966
5967 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5968
5969         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5970         the implementation to lrecord_implementations_table.
5971
5972 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5973
5974         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5975         initial value of `lrecord_type_##c_name' and
5976         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5977         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5978         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5979         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5980         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5981
5982 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5983
5984         * miscplay.c (sndcnv8S_2mono):
5985         (sndcnv2monounsigned):
5986         (sndcnvULaw_2linear):
5987         (sndcnv16swap):
5988         Remove implementation-defined behavior.
5989
5990 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5991
5992         * input-method-xlib.c: Warning suppression.
5993
5994 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5995
5996         * mule-ccl.c: Sync up with Emacs 21.0.90.
5997         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5998         Do nothing.
5999         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
6000         Likewise.
6001         (ccl_driver[WriteMultibyteChar2]): Bug fix.
6002         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
6003         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
6004         leading char belongs to official 2-dimensional charset.
6005         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
6006         write the given character as is.  Otherwise,
6007         if it is a multibyte char, convert it by
6008         non_ascii_set_charptr_emchar, then write it.
6009         (CCL_WRITE_STRING): Likewise.
6010         (ccl_get_compiled_code): New function.
6011         (setup_ccl_program): When ccl_prog is invalid,
6012         return -1.
6013         (Fregister_code_conversion_map): New function.
6014         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
6015
6016         * mule-ccl.h: Sync up with Emacs 21.0.90.
6017         (Fregister_ccl_program): export it.
6018
6019         * redisplay-msw.c (separate_textual_runs):
6020         If ccl program is not valid, don't do ccl conversion.
6021
6022         * redisplay-x.c (separate_textual_runs): Ditto.
6023
6024         * file-coding.c (Fmake_coding_system):
6025         When type is ccl and value is vector, register it
6026         with a proper symbol.  And checks whether the
6027         given ccl program is valid.
6028         (mule_decode): When calling ccl_driver, if src indicates
6029         NULL pointer, set an empty string instead.
6030         (mule_encode): Likewise.
6031
6032 2000-10-11  Martin Buchholz  <martin@xemacs.org>
6033
6034         The following large batch of changes gets us back to a state of
6035         C++ compilability.  Extbyte is now a char, which means that
6036         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
6037
6038         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
6039
6040         * sound.c (Fplay_sound): Type correctness.
6041
6042         * select-x.c (hack_motif_clipboard_selection): Type correctness.
6043         (x_get_window_property): Type correctness.
6044         (receive_incremental_selection): unsigned char ==> Extbyte
6045         (selection_data_to_lisp_data): unsigned char ==> Extbyte
6046         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
6047         (Fx_store_cutbuffer_internal): Type correctness.
6048
6049         * process-unix.c (try_to_initialize_subtty): Type correctness.
6050
6051         * objects-x.c (x_print_color_instance): Type correctness.
6052         (x_print_font_instance): Type correctness.
6053         (x_list_fonts): SExtbyte ==> Extbyte.
6054         (valid_x_font_name_p): SExtbyte ==> Extbyte.
6055         (x_find_charset_font): SExtbyte ==> Extbyte.
6056         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
6057         (truename_via_XListFonts): SExtbyte ==> Extbyte.
6058         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
6059         Use bufbyte_strcmp.
6060
6061         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
6062         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
6063         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
6064         (BYTE_C0_P): Use bit ops for char-signedness safety.
6065         (BYTE_C1_P): Use bit ops for char-signedness safety.
6066         (CHARSET_BY_LEADING_BYTE):
6067         (CHARSET_BY_ATTRIBUTES):
6068         Always use inline function.
6069         Use type_checking_assert.
6070         Hide chlook.
6071
6072         * mule-charset.c (non_ascii_charptr_copy_char):
6073         Modify to work with both ASCII and non-ASCII characters.
6074         Improve docs and variable names.
6075         Replace over-clever fall-through switch with a simple loop.
6076         (Lstream_get_emchar_1):
6077         Replace over-clever fall-through switch with a simple loop.
6078
6079         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6080         Warning suppression.
6081
6082         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6083         the return value of Lstream_getc, which could be EOF as well.
6084
6085         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6086
6087         * lisp.h: Make Extbyte a char, not unsigned char, so that external
6088         APIs can be used on Extbytes without casts.  Risky!
6089         (SExtbyte): Remove.
6090         (UExtbyte): Remove.
6091
6092         * input-method-xlib.c (XIM_init_device):
6093         Use Xlib.h instead of IntrinsicP.h.
6094         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6095         which will break in X11R7.
6096         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6097         to call XRegisterIMInstantiateCallback with correct types.
6098
6099         * gui-x.c (button_item_to_widget_value): Type correctness.
6100
6101         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
6102
6103         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6104         (xbm_instantiate_1): Type correctness.
6105         (BUILD_GLYPH_INST):  Type correctness.
6106
6107         * fileio.c (Fsubstitute_in_file_name): Type correctness.
6108
6109         * file-coding.c:
6110         (decode_coding_sjis):
6111         (decode_coding_big5):
6112         (decode_coding_ucs4):
6113         (decode_coding_utf8):
6114         (decode_coding_iso2022):
6115         (decode_coding_no_conversion):
6116         Make all decoding functions take an Extbyte * arg.
6117         (encode_coding_sjis):
6118         (encode_coding_big5):
6119         (encode_coding_ucs4):
6120         (encode_coding_utf8):
6121         (encode_coding_iso2022):
6122         (encode_coding_no_conversion):
6123         Make all encoding functions take a Bufbyte * arg.
6124         Use size_t instead of unsigned int for memory sizes.
6125         Only cast to unsigned char whenever dereferencing Extbyte *.
6126
6127         * doc.c (unparesseuxify_doc_string): Type correctness.
6128
6129         * console-x.c (split_up_display_spec):
6130         Rewrite without using details of internal string representation.
6131         (x_semi_canonicalize_device_connection): Type correctness.
6132
6133         * config.h.in:
6134         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6135         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6136         (HAVE_XFREE386): Removed.
6137
6138         * buffer.h (DEC_CHARPTR): `const' correctness.
6139         (bufbyte_strcmp): New.
6140         (bufbyte_memcmp): New.
6141
6142         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6143
6144         * buffer.h (XCHAR_OR_CHAR_INT):
6145         Always use inline function.
6146         Remove redundant type checking assert() - XINT will abort quite nicely.
6147
6148 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6149
6150         * search.c (Freplace_match): Set newtext to an empty string.
6151
6152 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6153
6154         * s/decosf1-3.h: Remove #include of stropts.h
6155         * s/ptx.h: Remove #include of stropts.h
6156         * s/usg5-4.h: Remove #include of stropts.h
6157         * sysproc.h:
6158         * config.h.in:
6159         Use stropts.h, not sys/stropts.h.
6160         Use strtio.h, not sys/strtio.h.
6161
6162 2000-10-04  Martin Buchholz <martin@xemacs.org>
6163
6164         * XEmacs 21.2.36 is released.
6165
6166 2000-09-21  Andy Piper  <andy@xemacs.org>
6167
6168         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6169         changes still involve copying the widget tree.
6170         (update_widget_face): make sure a change is register in the widget
6171         tree. Call update_tab_widget_face appropriately.
6172         (update_tab_widget_face): ditto.
6173         (x_tab_control_redisplay): make sure non-structural changes still
6174         involve copying the widget tree.
6175
6176 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6177
6178         * lread.c (locate_file): Check the path element is non-nil.
6179
6180 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6181
6182         * lisp.h: Warning suppression for SCO compilers.
6183
6184         * redisplay-tty.c (reset_tty_modes): Fix crash.
6185         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6186
6187 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6188
6189         Big signal/process handling overhaul.  Bugs fixed:
6190         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6191         M-x comint-kill-subjob should work for both values nil and t of
6192         process-connection-type. It was broken on most platforms.
6193         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6194         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6195         * process-unix.c: Signal/Process handling overhaul.
6196         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6197         (allocate_pty): Use all available modern methods of allocating
6198         ptys, falling back to old style BSD allocation as a last resort.
6199         Use allegedly more secure Unix98 pty allocation by default.
6200         (allocate_pty_the_old_fashioned_way): New. the last resort.
6201         (unix_create_process): Push ptem, ldterm, ttcompat where
6202         available.  Autoconfiscate.
6203         (try_to_initialize_subtty): New.
6204         (unix_kill_child_process): Proper signal handling for ptys on most
6205         platforms, using special knowledge of AIX, BSD, etc...
6206         (unix_create_process): Always disconnect_controlling_terminal() for
6207         subprocesses, whether using ptys or not.
6208         * process.h: Remove old getpt-dependent PTY code.
6209         * process.c (Fprocess_send_signal): New, obvious generic function.
6210         (decode_signal): New.
6211         (Finterrupt_process):
6212         (Fkill_process):
6213         (Fquit_process):
6214         (Fstop_process):
6215         (Fcontinue_process):
6216         (Fsignal_process): Use decode_signal.
6217         (process_send_signal):
6218         Many docstring corrections.
6219         Allow any signal to be sent to a process object.
6220         * config.h.in: Add symbols for big signal/process overhaul.
6221         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6222         * sysproc.h: Include process-related headers, where available:
6223         sys/stropts.h sys/strtio.h pty.h libutil.h
6224         * s/irix4-0.h:
6225         * s/irix5-0.h:
6226         * s/cygwin32.h:
6227         * s/gnu.h:
6228         * s/linux.h:
6229         * s/hpux.h:
6230         * s/aix3-1.h:
6231         Remove old S&M pty stuff.
6232         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6233         * systty.h: Simplify cpp hackery, improve comments.
6234         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6235
6236         * editfns.c (Fformat_time_string):
6237         Be a little more paranoid with the return value of ctime.
6238
6239         * fileio.c (check_executable):
6240         (check_writable):
6241         Use symbolic constants X_OK, W_OK.
6242
6243         * console-x.c (split_up_display_spec): Fix a warning.
6244
6245 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6246
6247         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6248         * ntproc.c (sys_spawnve): make_string ==> build_string
6249         Small clarity improvements.
6250
6251 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6252
6253         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6254
6255         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6256
6257         * config.h.in (HAVE_STRCASECMP): Remove.
6258
6259 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6260
6261         * redisplay-output.c (redisplay_output_pixmap):
6262         Cleaner and possibly more 64-bit correct code.
6263
6264 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6265
6266         * dumper.c (pdump_load_finish): move restoration of
6267         `noninteractive1' to emacs.c (main_1).
6268         * emacs.c (main_1): protect LISP-visible command-line flags
6269         from pdump_load().
6270
6271 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6272
6273         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6274         DUMP_TARGET instead of literal program names.
6275
6276 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6277
6278         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6279
6280 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6281
6282         * *: Spelling mega-patch
6283
6284 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6285
6286         * fns.c (bad_bad_turtle):
6287         Delete "Eek!" comment, since we fixed the bug to which it refers.
6288
6289 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6290
6291         * alloca.c: Replace REGISTER with register.
6292
6293 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6294
6295         * file-coding.c (ucs_to_char): Use countof.
6296
6297 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6298
6299         * file-coding.c: (ucs_to_char):
6300         (complex_vars_of_file_coding):
6301         Use countof instead of sizeof.
6302         Use CHECK_NATNUM instead of CHECK_INT.
6303
6304         * sysdep.c (strcasecmp): Remove.
6305         * device-x.c (ascii_strcasecmp): New.
6306         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6307         Avoid using non-standard non-portable strcasecmp.
6308
6309 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6310
6311         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6312         * font-lock.c: remove reference to emacsfns.h.
6313         * search.c: small doc improvement.
6314         * event-Xt.c: correct file names in comments.
6315         * console-x.h Correct file names in comments.
6316         * frame.c: Correct file names in comments.
6317         * event-stream.c: remove Energize from comments.
6318
6319 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6320
6321         * symeval.h (DEFERROR_STANDARD):
6322         (DEFERROR):
6323         (DEFSYMBOL):
6324         (DEFSYMBOL_NO_DUMP):
6325         (DEFSYMBOL_MULTIWORD_PREDICATE):
6326         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6327         (DEFKEYWORD):
6328         The construct &##name is not sensible C.
6329         Fixes compilation errors with Unixware native compiler.
6330
6331 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6332
6333         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6334         (next_frame_internal): Removed.  We now just have next_frame.
6335         (next_frame):
6336         Write a simpler and cleaner one-pass algorithm.
6337         Remove called_from_delete_device arg and #ifdefed-out code.
6338         (previous_frame):
6339         Renamed from prev_frame.  Update callers.
6340         Cleaned up to have an analogous implementation to next_frame.
6341         (other_visible_frames_internal): Remove the
6342         called_from_delete_device bogus arg, and hence, remove this
6343         function.  Just use other_visible_frames().
6344
6345         * window.c (Fnext_window):
6346         Prettify docstring.
6347         Since next_frame() is guaranteed to return a frame, remove check
6348         for nil inserted in previous patch.
6349         (Fprevious_window):
6350         Prettify docstring.
6351         Make code look more like Fnext_window.
6352         (window_loop):
6353         Respect the `console' arg when iterating through windows.
6354         Fixes bug: (get-buffer-window buffer t device) not respecting
6355         the `device' arg.
6356         This function needs more work, as others have pointed out.
6357
6358         * frame.h: Rename prev_frame to previous_frame.
6359         device_matches_console_spec no longer takes a `frame' arg.
6360
6361         * s/gnu.h:
6362         * s/linux.h:
6363         * s/hpux.h:
6364         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6365         From "Golubev I. N." <gin@mo.msk.ru>.
6366
6367         * make-src-depend: Fix typo.
6368
6369 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6370
6371         * window.c (Fnext_window):
6372         next_frame() might return nil, not a frame.
6373         Fixes this crash:
6374         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6375
6376         * frame.c (next_frame_internal):
6377         We've passed a frame if we've passed its device.
6378         Fixes this crash:
6379         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6380 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6381
6382 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6383
6384         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6385         Allow option to suppress accelerators in menu/dialog items.
6386         (populate_or_checksum_helper): Pass dialog title through above.
6387
6388 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6389
6390         * event-msw.c (mswindows_key_to_emacs_keysym):
6391         Add "pause" key, fix "menu" key.
6392
6393 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6394
6395         * eval.c (reinit_vars_of_eval):
6396         Increase max_lisp_eval_depth to 1000,
6397         required for thai-xtis.el to byte-compile under some circumstances.
6398
6399 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6400
6401         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6402         From Kenichi Handa.
6403
6404 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6405
6406         * make-src-depend: Make the generated Makefiles smaller.
6407
6408         * s/hpux.h (SETUP_SLAVE_PTY):
6409         Provide a %d in the format string for the errno argument.
6410
6411         * editfns.c (Ftemp_directory):
6412         Warning fix.
6413         Avoid buffer overrun on very long file name.
6414
6415         * input-method-xlib.c (XIM_init_device):
6416         6th parameter of XRegisterIMInstantiateCallback has different
6417         pointer types on different OSes, so simply cast to (void *).
6418
6419         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6420
6421         * sysdll.c (dll_open):
6422         shl_load will hang hard if passed a NULL filename.
6423         Simply return NULL for compatibility with dlopen.
6424         * sysdll.c: Conform to XEmacs coding standards.
6425
6426         * sysdep.c (get_pty_max_bytes):
6427         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6428
6429 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6430
6431         * tooltalk.c: Add #include <syssignal.h>
6432
6433 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6434
6435         * s/hpux.h: Don't use undefined function sigunblock().
6436
6437 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6438
6439         * config.h.in: Add HAVE_BALLOON_HELP.
6440         * emacs.c: Use HAVE_BALLOON_HELP.
6441         * Makefile.in.in (x_objs):
6442         Make Balloon Help conditional on finding shape.h.
6443
6444 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6445
6446         * syntax.c (regex_emacs_buffer_p): New variable.
6447         * syntax.h (regex_emacs_buffer_p): extern.
6448         * search.c (looking_at_1):
6449         (string_match_1):
6450         (fast_string_match):
6451         (search_buffer): Set regex_emacs_buffer_p.
6452         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6453         when before_dot, at_dot, after_dot.
6454
6455 2000-08-23  Andy Piper  <andy@xemacs.org>
6456
6457         * gui-x.c (popup_selection_callback): Only set action_occurred
6458         when we really have an image instance.
6459         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6460
6461 2000-08-23  Andy Piper  <andy@xemacs.org>
6462
6463         * gui-msw.c (mswindows_handle_gui_wm_command): set
6464         action_occurred.
6465         * gui-x.c (popup_selection_callback): ditto.
6466
6467         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6468         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6469         (struct Lisp_Image_Instance): add action_occurred flag.
6470
6471         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6472         (image_instance_changed): ditto.
6473         (reset_frame_subwindow_instance_cache): only unmap windows - do
6474         not remove them from the cache also.
6475
6476         * glyphs-widget.c (tab_control_update): better debug.
6477         (progress_gauge_update): ditto.
6478         (layout_update): ditto.
6479         (layout_instantiate): ditto.
6480         (tab_control_order_only_changed): cope with null pending items.
6481
6482         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6483         debug. Force selection of an item when an action occurred. Cope
6484         with null pending_items.
6485         (mswindows_progress_gauge_redisplay): better debug.
6486         * glyphs-x.c (x_tab_control_redisplay): ditto.
6487
6488         * redisplay.c (redisplay_frame): reset the frame cache if the
6489         frame is garbaged.
6490
6491         * window.c (Fset_window_configuration): potentially re-enable
6492         frame cache reset.
6493         (window_unmap_subwindows): need to finalize instances here since
6494         it is only used in mark_window_as_deleted.
6495
6496 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6497
6498         * nas.c (SndOpenDataForReading):
6499         nas.c (WaveOpenDataForReading):
6500         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6501         Somehow escaped from the 2000-08-14 patch.
6502
6503 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6504
6505         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6506         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6507
6508 2000-08-21  Andy Piper  <andy@xemacs.org>
6509
6510         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6511         window if it is not already displayed.
6512
6513         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6514         it is not already displayed.
6515
6516         * window.c (Fset_window_configuration): don't reset the frame
6517         cache.
6518
6519         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6520         instances from the frame cache if we are actually finalizing them.
6521         (reset_frame_subwindow_instance_cache): reset frame cache only
6522         after unmapping everything.
6523         (map_subwindow): set displayed flag after mapping.
6524
6525 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6526
6527         * data.c (indirect_function):
6528         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6529
6530         * eval.c (function_argcount):
6531         Use original function when signaling errors.
6532
6533 2000-08-18  Andy Piper  <andy@xemacs.org>
6534
6535         * frame.c (delete_frame_internal): use new
6536         free_frame_subwindow_instances name.
6537
6538         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6539         (add_tab_item): make return type correct.
6540         (mswindows_tab_control_instantiate): assert index of tab.
6541         (mswindows_tab_control_redisplay): Re-code to use
6542         gui_item_equal_sans_selected and gui_item_list_find_selected.
6543
6544         * glyphs-widget.c (tab_control_update): Correct comment.
6545
6546         * window.c (window_unmap_subwindows): use new
6547         unmap_subwindow_instance_cache_mapper.
6548         (window_unmap_subwindows_cache_mapper): deleted.
6549         (Fset_window_configuration): comparisons should now be with
6550         EQ. Preserve the subwindow instance cache across configuration
6551         changes.
6552         (allocate_window): ditto.
6553         (make_dummy_parent): ditto.
6554
6555         * glyphs.c (free_frame_subwindow_instances): rename from
6556         free_frame_subwindow_instance_cache. finalize all instances rather
6557         than just those in the display cache.
6558         (finalize_all_subwindow_instances): walk windows unmapping and
6559         finalizing subwindows.
6560         (unmap_subwindow_instance_cache_mapper): moved from
6561         window.c. Allow finalization as well as unmapping.
6562
6563         * gui.c (gui_item_list_find_selected): new function.
6564
6565         * gui.h (gui_item_list_find_selected): declare.
6566
6567         * glyphs-x.c (x_tab_control_redisplay): pick tab
6568         explicitly. Re-code to use gui_item_equal_sans_selected and
6569         gui_item_list_find_selected.
6570
6571         * glyphs-x.h: add lwlib-utils.h
6572
6573         * buffer.c (Frecord_buffer): undo previous change.
6574
6575 2000-08-09  Vin Shelton  <acs@xemacs.org>
6576
6577         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6578         possible.  Create temporary files more securely.  The patch was
6579         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6580         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6581         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6582         for details.
6583
6584 2000-08-07  Ben Wing  <ben@xemacs.org>
6585
6586         * getloadavg.c: remove duplicate (and windows-breaking)
6587         includes of fcntl.h and sys/file.h.
6588
6589         * nt.c: remove duplicate getloadavg() definition.
6590
6591         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6592         encodings.
6593
6594 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6595
6596         * eval.c (function_argcount): If function needs to be autoloaded
6597         actually use the loaded definition.
6598         GCPRO function.
6599
6600 2000-08-05  Ben Wing  <ben@xemacs.org>
6601
6602         * getloadavg.c: add prototype for getloadavg().  remove
6603         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6604         of the code).  remove duplicate header includes.
6605
6606         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6607
6608         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6609         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6610         useful load average.
6611
6612         * alloc.c (reinit_alloc_once_early): removed references to
6613         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6614         the lisp vars are the only things referencing the malloc_sbrk_*
6615         vars, and they were already if 0'd out.  these vars only exist
6616         in the older malloc.c, which is basically unused, and they're
6617         only for informational purposes.
6618
6619         * m\*.h: removed useless VIRT_ADDR_VARIES.
6620
6621         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6622
6623 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6624
6625         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6626         color if the image is a mono pixmap.
6627
6628 2000-07-30  Ben Wing  <ben@xemacs.org>
6629
6630         * Makefile.in.in (release):
6631         Remove stray @.
6632
6633         * buffer.c (directory_is_current_directory):
6634         * dired-msw.c (mswindows_get_files):
6635         * dired.c:
6636         * dired.c (Fdirectory_files):
6637         * dired.c (file_name_completion_stat):
6638         * dired.c (Ffile_attributes):
6639         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6640         preprocessor tricks, to avoid problems on some machines
6641         (e.g. SCO).
6642
6643         * callproc.c (egetenv): GC docs.
6644
6645         * console-msw.h:
6646         * console-msw.h (struct mswindows_dialog_id):
6647         * lrecord.h (lrecord_type):
6648         New object for use with MSW dialogs.
6649
6650         * console.h (struct console_methods):
6651         New enable/disable frame methods, for proper modal dialogs.
6652
6653         * device-msw.c (msprinter_default_printer): Fix to follow
6654         proper Mule conventions.
6655
6656         * device-msw.c:
6657         * device-msw.c (signal_open_printer_error):
6658         * device-msw.c (msprinter_init_device):
6659         * device-msw.c (ensure_not_printing):
6660         * device-msw.c (plist_get_margin):
6661         * device-msw.c (Fmsprinter_select_settings):
6662         * device-msw.c (finalize_devmode):
6663         * device-msw.c (Fmsprinter_settings_despecialize):
6664         * device-msw.c (signal_enum_priner_error):
6665         * extents.c (decode_extent):
6666         * extents.c (decode_map_extents_flags):
6667         * extents.c (decode_extent_at_flag):
6668         * extents.c (Fextent_at):
6669         * extents.c (Fextents_at):
6670         * extents.c (symbol_to_glyph_layout):
6671         [[[[2]]]] Use structured errors.
6672
6673         * dialog-msw.c:
6674         * dialog-msw.c (mswindows_is_dialog_msg):
6675         * dialog-msw.c (mark_mswindows_dialog_id):
6676         * dialog-msw.c (dialog_proc):
6677         * dialog-msw.c (handle_question_dialog_box):
6678         * dialog-msw.c (syms_of_dialog_mswindows):
6679         Define new object to clean up marking; use it as a dialog identifier.
6680         Call new delete-dialog-box-hook.
6681
6682         * dialog-x.c (dbox_selection_callback):
6683         * dialog-x.c (dbox_descriptor_to_widget_value):
6684         * dialog-x.c (x_make_dialog_box_internal):
6685         Call new delete-dialog-box-hook.
6686         Return an id.
6687
6688         * dialog.c:
6689         * dialog.c (syms_of_dialog):
6690         * dialog.c (vars_of_dialog):
6691         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6692
6693         * eval.c:
6694         * eval.c (signal_call_debugger):
6695         when noninteractive, output stack traces on the console instead
6696         of in a (never-seen) buffer.
6697
6698         * eval.c (signal_type_error):
6699         * eval.c (invalid_argument_2):
6700         * lisp.h:
6701         new funs for use w/structured errors.
6702
6703         * event-Xt.c:
6704         * event-Xt.c (x_to_emacs_keysym):
6705         * event-Xt.c (describe_event):
6706         * event-Xt.c (emacs_Xt_event_handler):
6707         * event-Xt.c (vars_of_event_Xt):
6708         * event-msw.c:
6709         * event-msw.c (mswindows_wnd_proc):
6710         * event-msw.c (vars_of_event_mswindows):
6711         rename {x,mswindows}-debug-events to debug-{}-events for
6712         consistency with other debug-foo variables.
6713
6714         * event-stream.c:
6715         document next-event more clearly.
6716
6717         * fileio.c (Ffile_name_directory):
6718         * fileio.c (Ffile_name_nondirectory):
6719         * fileio.c (Funhandled_file_name_directory):
6720         * fileio.c (file_name_as_directory):
6721         * fileio.c (Ffile_name_as_directory):
6722         * fileio.c (directory_file_name):
6723         * fileio.c (Fdirectory_file_name):
6724         * fileio.c (Fmake_temp_name):
6725         * fileio.c (Ffile_truename):
6726         * fileio.c (Fsubstitute_in_file_name):
6727         * fileio.c (expand_and_dir_to_file):
6728         * fileio.c (barf_or_query_if_file_exists):
6729         * fileio.c (check_executable):
6730         * fileio.c (Ffile_exists_p):
6731         * fileio.c (Ffile_writable_p):
6732         * fileio.c (Ffile_directory_p):
6733         * fileio.c (Ffile_regular_p):
6734         * fileio.c (Ffile_modes):
6735         * fileio.c (Ffile_newer_than_file_p):
6736         * fileio.c (Fverify_visited_file_modtime):
6737         * fileio.c (Fset_visited_file_modtime):
6738         * fileio.c (auto_save_1):
6739         (1). (2).
6740         fix up gcpro's.
6741
6742         * frame-msw.c:
6743         * frame-msw.c (mswindows_init_frame_1):
6744         * frame-msw.c (mswindows_enable_frame):
6745         * frame-msw.c (error_frame_unsizable):
6746         * frame-msw.c (msprinter_init_frame_1):
6747         * frame-msw.c (msprinter_init_frame_3):
6748         * frame-msw.c (console_type_create_frame_mswindows):
6749         (2).
6750         implement new enable/disable frame methods.
6751
6752         * frame-x.c:
6753         * frame-x.c (x_enable_frame):
6754         * frame-x.c (console_type_create_frame_x):
6755         implement new enable/disable frame methods.
6756
6757         * frame.c:
6758         * frame.c (Fdisable_frame):
6759         * frame.c (syms_of_frame):
6760         * frame.h (struct frame):
6761         implement new enable/disable frame methods/functions.
6762
6763         * general-slots.h:
6764         add initial-focus.
6765
6766         * glyphs-msw.c (mswindows_widget_instantiate):
6767         comment that initial-focus should be implemented.
6768
6769         * glyphs-widget.c:
6770         * glyphs-widget.c (check_valid_instantiator):
6771         * glyphs-widget.c (check_valid_orientation):
6772         * glyphs-widget.c (check_valid_tab_orientation):
6773         * glyphs-widget.c (check_valid_justification):
6774         * glyphs-widget.c (check_valid_border):
6775         * glyphs-widget.c (check_valid_callback):
6776         * glyphs-widget.c (check_valid_int_or_function):
6777         * glyphs-widget.c (check_valid_string_or_vector):
6778         * glyphs-widget.c (check_valid_item_list_1):
6779         * glyphs-widget.c (widget_validate):
6780         * glyphs-widget.c (combo_box_validate):
6781         * glyphs-widget.c (widget_instantiate):
6782         * glyphs-widget.c (syms_of_glyphs_widget):
6783         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6784         * glyphs-widget.c (image_instantiator_combo_box):
6785         * glyphs-widget.c (image_instantiator_scrollbar):
6786         * glyphs-widget.c (image_instantiator_tab_control):
6787         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6788         (2).
6789         support (unimplemented) keyword initial-focus.
6790         reindent long macros.
6791
6792         * glyphs-x.c (x_redisplay_widget):
6793         * glyphs-x.c (x_button_instantiate):
6794         * glyphs-x.c (x_button_redisplay):
6795         * glyphs-x.c (x_progress_gauge_instantiate):
6796         * glyphs-x.c (x_edit_field_instantiate):
6797         * glyphs-x.c (x_combo_box_instantiate):
6798         * glyphs-x.c (x_tab_control_instantiate):
6799         * glyphs-x.c (x_label_instantiate):
6800         * gui-x.c:
6801         * gui-x.c (button_item_to_widget_value):
6802         * gui-x.c (gui_items_to_widget_values_1):
6803         * gui-x.c (gui_item_children_to_widget_values):
6804         * gui-x.c (gui_items_to_widget_values):
6805         * gui-x.h:
6806         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6807         add new flag to gui-parsing routines to indicate whether
6808         accelerator specs should be supported.
6809
6810         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6811
6812         * glyphs.h (struct Lisp_Image_Instance):
6813         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6814         add initial-focus flag.
6815
6816         * gui.c:
6817         * gui.c (syms_of_gui):
6818         * gui.c (vars_of_gui):
6819         clean up menu-no-selection-hook.
6820
6821         * gui.h:
6822         support delete-dialog-box-hook.
6823
6824         * lread.c (Fload_internal):
6825         * lread.c (locate_file_in_directory_mapper):
6826         (1).
6827
6828         * lrecord.h:
6829         * lrecord.h (struct toolbar_button):
6830         * lrecord.h (syms_of_toolbar):
6831         document how to create a new object.
6832
6833         * menubar-msw.c (mswindows_char_is_accelerator):
6834         may be called on frames w/o menus.
6835
6836         * menubar.c (vars_of_menubar):
6837         clean up :filter docs.
6838
6839         * nt.c (readdir):
6840         * ntproc.c:
6841         (1).
6842
6843         * process-nt.c:
6844         * process-nt.c (validate_signal_number):
6845         * process-nt.c (signal_cannot_launch):
6846         * process-nt.c (nt_create_process):
6847         * process-nt.c (nt_send_process):
6848         * process-nt.c (nt_kill_child_process):
6849         * process-nt.c (nt_open_network_stream):
6850         * process-nt.c (syms_of_process_nt):
6851         (2).
6852         delete quote-handling.  call new lisp code that does it better.
6853
6854         * process-unix.c (connect_to_file_descriptor):
6855         * process-unix.c (allocate_pty):
6856         * process-unix.c (unix_send_process):
6857         * process-unix.c (unix_kill_child_process):
6858         * process-unix.c (unix_open_network_stream):
6859         * process-unix.c (unix_open_multicast_group):
6860         (1). (2).
6861
6862         * process.c:
6863         * process.c (Fstart_process_internal):
6864         (2).  need to canonicalize process path even if absolute.
6865
6866         * select-msw.c (symbol_to_ms_cf):
6867         * select-msw.c (ms_cf_to_symbol):
6868         * select-msw.c (cf_is_autofreed):
6869         * select-msw.c (mswindows_destroy_selection):
6870         * select.c:
6871         * select.c (syms_of_select):
6872         * select.h:
6873         support dibv5, fix bugs. (from Mike Alexander)
6874
6875         * select.c (Fget_selection_internal):
6876         * select.c (select_convert_out):
6877
6878         * sysdep.c:
6879         * sysdep.c (xemacs_stat):
6880         renamed.
6881
6882         * sysdep.c (mkdir):
6883         * sysdep.c (rmdir):
6884         but keep original stat() here because we provide encapsulation
6885         around these funs.
6886
6887         * sysfile.h:
6888         * sysfile.h (fstat):
6889         remove stat garbage.
6890
6891         * syswindows.h:
6892         fix X/MSW conflict.
6893         don't include tchar.h.  it's inappropriate because it makes
6894         compile-time distinctions when we want runtime distinctions.
6895         (we provide our own tchar replacements)
6896
6897         * toolbar.c:
6898         use default object printer for toolbar-button.
6899
6900         * unexcw.c:
6901         make sure we don't encapsulate.
6902
6903         * window.c (vars_of_window):
6904         emphasize that temp-buffer-show-hook is obsolete.
6905
6906 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6907
6908         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6909         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6910
6911         * events.c (Fevent_timestamp_lessp):
6912         Not 64-bit clean.  Use EMACS_INT, not int.
6913
6914 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6915
6916         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6917         unsigned int and changed the last enum to
6918         lrecord_type_last_built_in_type.
6919         (lrecord_implementations_table): changed prototype to know how
6920         long the array is supposed to be.
6921         (lrecord_type_count): new unsigned int to keep track of the
6922         current number of lisp lrecord types.
6923         (DEFINE_EXTERNAL_LRECORD):
6924         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6925         dynamic-modules to declare new lisp types. They are the same
6926         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6927         int for each new type, and increment lrecord_type_count by 1.
6928
6929         * alloc.c (lrecord_implementations_table): Changed to reference
6930         lrecord_type_last_built_in_type for the size of the array.
6931         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6932
6933 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6934
6935         * glyphs.h (check_valid_item_list): Renamed from
6936         check_valid_item_list_1.
6937
6938 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6939
6940         * select.c (Qselect_coerce): New.
6941         * select.c (Vselection_coercion_alist): New.
6942         * select.c (syms_of_select): Declare.
6943         * select.c (get-selection-internal): Use it.
6944         Use the new select-coerce functionality.
6945
6946         * select.c (select_coerce): New.
6947         * select.h (select_coerce): Declare.
6948         New function to coerce one type of data into another.
6949
6950 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6951
6952         * callproc.c (Fcall_process_internal):
6953         (Fcall_process_internal):
6954         * process-unix.c (unix_create_process):
6955         Save and restore the value of errno, so that error messages are accurate.
6956
6957 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6958
6959         * elhash.c (print_hash_table):
6960         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6961         Prettify docstrings and indentation.
6962
6963 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6964
6965         * window.c (Fwindow_pixel_edges): Subtract frame border and
6966         gutter size.
6967
6968 2000-07-31  Andy Piper  <andy@xemacs.org>
6969
6970         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6971         will acknowledge the change.
6972
6973         * glyphs.h: declare tab_control_order_only_changed.
6974
6975         * glyphs-x.c (x_tab_control_redisplay): use
6976         tab_control_order_only_changed.
6977
6978         * glyphs-widget.c (tab_control_order_only_changed): new function.
6979
6980         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6981         tab_control_order_only_changed.
6982
6983         * gui.c (gui_item_equal_sans_selected): new function.
6984         (gui_item_equal): use it.
6985
6986         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6987         :properties in favor of :items..
6988
6989         * glyphs-widget.c (check_valid_item_list): rename from
6990         check_valid_item_list_1.
6991         (check_valid_item_list_1): renamed.
6992         (combo_box_validate): deprecate :properties in favor of :items.
6993         (widget_instantiate): ditto.
6994         (tab_control_update): ditto.
6995         (image_instantiator_combo_box): ditto.
6996         (image_instantiator_tree_view): ditto.
6997         (image_instantiator_tab_control): ditto.
6998         (layout_post_instantiate): remove dead code.
6999
7000         * print.c (debug_print_no_newline): only write to debugger if in
7001         WIN32_NATIVE.
7002
7003         * elhash.c (Fmake_hash_table): update doc string.
7004
7005         * event-msw.c (mswindows_wnd_proc): don't allow processing of
7006         messages whilst in GC. This at least stops XEmacs crashing but has
7007         the potential for wierd behaviour.
7008
7009 2000-07-31  Martin Buchholz  <martin@xemacs.org>
7010
7011         * config.h.in:
7012         Make existence of s&m files optional.
7013
7014         * s/bsd386.h: Remove HAVE_GETLOADAVG.
7015         * s/freebsd.h: Remove HAVE_GETLOADAVG.
7016         * s/gnu.h: Remove HAVE_GETLOADAVG.
7017         * s/netbsd.h: Remove HAVE_GETLOADAVG.
7018         * s/sol2.h: Remove HAVE_GETLOADAVG.
7019         * lisp.h: Remove getloadavg() declaration.
7020         * fns.c:
7021         Include <sys/loadavg.h> if available.
7022         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
7023         * config.h.in:  Group together getloadavg()-related macros.
7024         Use only configure-time tests to detect getloadavg().
7025
7026 2000-07-30  Martin Buchholz  <martin@xemacs.org>
7027
7028         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
7029
7030 2000-07-25  Andy Piper  <andy@xemacs.org>
7031
7032         * syswindows.h: add tchar.h for native builds.
7033
7034         * frame.c (syms_of_frame): remove set-glyph-image.
7035
7036         * general-slots.h: add Qset_glyph_image.
7037
7038         * glyphs-widget.c (layout_update): add domain arg to
7039         set-glyph-image.
7040         (syms_of_glyphs_widget): remove set-glyph-image.
7041
7042 2000-07-23  Ben Wing  <ben@xemacs.org>
7043
7044         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
7045         Vpopup_frame_list.
7046
7047 2000-07-22  Andy Piper  <andy@xemacs.org>
7048
7049         * symsinit.h: add syms_of_win32().
7050
7051         * gui-msw.c (syms_of_gui_mswindows): remove
7052         Fmswindows_shell_execute.
7053         (Fmswindows_shell_execute): moved to win32.c.
7054
7055         * emacs.c (main_1): add syms_of_win32 ().
7056
7057         * win32.c (init_potentially_nonexistent_functions): rewrite in
7058         compiler-friendly terms.
7059         (Fmswindows_shell_execute): move here from gui-msw.c.
7060         (syms_of_win32): new.
7061
7062         * device-msw.c (Fmswindows_printer_list): clean up args to
7063         EnumPrinters.
7064         Don't include tchar under cygwin or mingw.
7065         (msprinter_default_printer): make cygwin-friendly.
7066
7067 2000-07-21  Andy Piper  <andy@xemacs.org>
7068
7069         * glyphs-widget.c (image_instantiator_tree_view): use tab
7070         control's update function.
7071         (layout_property): new function. Retrieve items.
7072
7073         * glyphs-msw.c (mswindows_tree_view_redisplay): new
7074         function. Re-populate the tree view from the pending items.
7075
7076         * glyphs.c (instantiate_image_instantiator): Make sure the domain
7077         is designated the parent if the domain is an image instance. This
7078         is needed so that dirtiness can be cascade up the hierarchy and
7079         thus for layout children to be redisplayed correctly.
7080         (allocate_image_instance): rename glyph -> parent.
7081
7082         * redisplay.h: change redisplay_output_layout signature.
7083
7084         * redisplay-msw.c (mswindows_output_display_block): use domain
7085         arg.
7086
7087         * redisplay-x.c (x_output_display_block): use domain arg.
7088
7089 2000-07-10  Andy Piper  <andy@xemacs.org>
7090
7091         * window.c (Fset_window_configuration): add comment.
7092
7093         * redisplay-output.c (compare_runes):
7094         (redisplay_output_subwindow): redisplay rather than update subwindow.
7095         (redisplay_output_layout): ditto.
7096
7097         * redisplay-msw.c (mswindows_frame_output_end):
7098         (mswindows_frame_output_end): make defer window pos optional.
7099
7100         * lisp.h: add Flast.
7101
7102         * glyphs.h (struct image_instantiator_methods): add dest_mask top
7103         normalize method. Change update method to be for changed
7104         instantiators. Add redisplay method. Change signature of layout
7105         method.
7106         (struct Lisp_Image_Instance): add instantiator.
7107         (IMAGE_INSTANCE_INSTANTIATOR): new.
7108         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7109         (XIMAGE_INSTANCE_INSTANTIATOR): new.
7110         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7111
7112         * glyphs.c:
7113         (find_instantiator_differences): new function.
7114         (Fset_instantiator_property): new convenience function.
7115         (check_image_instance_structure): strictly check for vector
7116         instantiators.
7117         (normalize_image_instantiator): make non-static.
7118         (instantiate_image_instantiator): pass on dest_mask and use new
7119         signatures for image_instance_layout and friends.
7120         (mark_image_instance): mark the instantiator. Mark the subwindow
7121         face not the widget face.
7122         (image_instance_equal): add instantiator.
7123         (image_instance_hash): ditto.
7124         (allocate_image_instance): ditto.
7125         (Fset_image_instance_property): removed.
7126         (Fimage_instance_file_name): ditto.
7127         (Fcolorize_image_instance): ditto.
7128         (image_instance_layout): add offsets to be set.
7129         (update_image_instance): new function. update an image instance
7130         from its changed instantiator.
7131         (inherit_normalize): add dest_mask.
7132         (xbm_normalize): ditto.
7133         (xface_normalize): ditto.
7134         (xpm_normalize): ditto.
7135         (text_update): set_property -> update.
7136         (image_instantiate): use the glyph identity as a hash key, not the
7137         instantiator.
7138         (glyph_width): use new image_instance_layout signature.
7139         (glyph_ascent): ditto.
7140         (glyph_descent): ditto.
7141         (glyph_height): ditto.
7142         (glyph_query_geometry): ressurrect.
7143         (glyph_layout): ditto.
7144         (redisplay_subwindow): update -> redisplay.
7145         (syms_of_glyphs): add Fset_instantiator_property.
7146         (image_instantiator_format_create): set_property -> update.
7147
7148         * glyphs-x.c:
7149         (autodetect_normalize): add dest_maks to signature.
7150         (x_redisplay_subwindow): update -> redisplay.
7151         (x_redisplay_widget): ditto.
7152         (x_button_redisplay): ditto.
7153         (x_progress_gauge_redisplay): ditto.
7154         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7155         stacking order.
7156         (console_type_create_glyphs_x): update -> redisplay.
7157         (image_instantiator_format_create_glyphs_x): ditto.
7158
7159         * glyphs-widget.c:
7160         (check_valid_instantiator): disallow glyphs in the instantiator,
7161         they must now be vectors.
7162         (check_valid_instantiator_list): ditto.
7163         (glyph_instantiator_to_glyph): use internal symbol rather than
7164         intern.
7165         (widget_update): renamed from widget_set_property. Call cascaded
7166         update methods.
7167         (redisplay_widget): renamed from update_widget.
7168         (widget_layout): image_instance_layout now takes position as well
7169         as size.
7170         (widget_normalize): ditto.
7171         (widget_instantiate): ditto.
7172         (tab_control_query_geometry) ditto.:
7173         (tab_control_update): renamed from tab_control_set_property.
7174         (progress_gauge_update): set_property -> update.
7175         (layout_normalize): rewrite so that child instantiators are
7176         normalized also.
7177         (layout_update): new function. Create glyphs from the normalized
7178         children and cope with any other layout keywords. We do not
7179         instantiate children here that will be take care of by
7180         redisplay_output_layout.
7181         (layout_instantiate): call layout_update and not much else.
7182         (layout_post_instantiate): not sure whether this is needed
7183         anymore.
7184         (layout_query_geometry): query glyph geometry rather than
7185         image_instance geometry.
7186         (layout_layout): set offsets from pass in parameters. Use glyph
7187         geometry and layout functions rather than image instance ones.
7188         (native_layout_layout): ditto.
7189         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7190         (image_instantiator_widget): set_property -> update.
7191         (image_instantiator_buttons): ditto.
7192         (image_instantiator_progress_guage): ditto.
7193         (image_instantiator_tab_control): ditto.
7194         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7195         (image_instantiator_layout): add update method.
7196
7197         * glyphs-msw.c (bmp_normalize):
7198         (mswindows_resource_normalize): add dest_mask so that it can be
7199         proprogated by layout_normalize.
7200         (begin_defer_window_pos): make optional because it may not be the
7201         right thing to do and it introduces differences with X.
7202         (mswindows_unmap_subwindow): ditto.
7203         (mswindows_map_subwindow): ditto.
7204         (mswindows_redisplay_subwindow): renamed from
7205         mswindows_update_subwindow.
7206         (mswindows_redisplay_widget): ditto.
7207         (mswindows_button_redisplay): renamed from
7208         mswindows_button_update. Update is now what the instantiation
7209         function does for a changed instantiator.
7210         (mswindows_progress_gauge_instantiate): set the progress value
7211         here if appropriate.
7212         (mswindows_tab_control_redisplay): cope with re-ordering of the
7213         members of the tab widget by simply selecting the new top
7214         widget. This makes things appear ok if you click on a tab.
7215         (mswindows_combo_box_instantiate): image_instance_layout now takes
7216         position as well as size.
7217         (mswindows_progress_gauge_redisplay): renamed from
7218         mswindows_progress_gauge_update.
7219         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7220         (image_instantiator_format_create_glyphs_mswindows): ditto.
7221
7222         * glyphs-eimage.c (jpeg_normalize):
7223         (gif_normalize):
7224         (png_normalize):
7225         (tiff_normalize): add dest_mask so that it can be proprogated by
7226         layout_normalize.
7227
7228         * elhash.c:
7229         (print_hash_table):
7230         (hash_table_weakness_validate):
7231         (decode_hash_table_weakness):
7232         (Fhash_table_weakness):
7233         (Fhash_table_type):
7234         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7235
7236         * console.h (struct console_methods): move update_* to
7237         redisplay_*.
7238
7239 2000-07-20  Ben Wing  <ben@xemacs.org>
7240
7241         * *.[ch] (XSETOBJ): remove unused middle argument.
7242         lisp-disunion.h: correct wrap_object() to one argument.
7243
7244 2000-07-15  Ben Wing  <ben@xemacs.org>
7245
7246         * s/cygwin32.h:
7247         * s/cygwin32.h (CYGWIN_CONV_PATH):
7248         Add missing logb prototype for v1.1.
7249         Use post-b20 names and alias to pre-b20 names when pre-b20.
7250
7251         * s/windowsnt.h: [5].
7252
7253 2000-07-15  Ben Wing  <ben@xemacs.org>
7254
7255         * Makefile.in.in (x_objs):
7256         * Makefile.in.in (sheap_objs):
7257         * Makefile.in.in (objs):
7258         added win32.o, cosmetic cleanups.
7259
7260         * alloc.c (Fmake_byte_code):
7261         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7262         etc. macros which declare their own args now.
7263
7264         * alloc.c (syms_of_alloc):
7265         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7266
7267         * buffer.c:
7268         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7269
7270         * buffer.c (Fget_file_buffer):
7271         Fixed GCPRO problem.
7272
7273         * buffer.c (get_truename_buffer):
7274         Fixed comment about GC checking.
7275
7276         * buffer.c (syms_of_buffer):
7277         Undeclared those dedicated frame funs.
7278         [2].
7279
7280         * buffer.h:
7281         Define convenience macros for internal/external conversions.
7282         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7283         and Qenvironment_variable_encoding for cleaner code.
7284
7285         * bufslots.h:
7286         Remove dedicated-frame; in lisp.
7287
7288         * bytecode.c (funcall_compiled_function):
7289         [1].
7290
7291         * bytecode.c (syms_of_bytecode):
7292         [2].
7293
7294         * console-msw.c:
7295         * console-msw.c (mswindows_show_console): Rewrote.
7296
7297         * console-msw.c (Fmswindows_debugging_output): New.
7298         Sends to OutputDebugString (special MSWin debugger interface).
7299
7300         * console-msw.c (Fmswindows_message_box):
7301         Fixed stupid bugs so it works when called from kill-emacs.
7302
7303         * console-msw.c (syms_of_console_mswindows):
7304         Declare Fmswindows_debugging_output.
7305
7306         * console-msw.h:
7307         New MSWin prototypes.
7308
7309         * console-msw.h (struct mswindows_frame):
7310         New entry last-click-mods for improved button-modifier support.
7311
7312         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7313         New struct entry `popup' with corresponding accessor.
7314
7315         * console-x.c:
7316         * console-x.c (split_up_display_spec):
7317         * console-x.c (get_display_arg_connection):
7318         * console-x.c (x_semi_canonicalize_console_connection):
7319         * console-x.c (x_canonicalize_device_connection):
7320         [[[6]]]: Change char to more specific type.
7321         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7322
7323         * console-x.c (x_semi_canonicalize_console_connection):
7324         * console-x.c (x_canonicalize_device_connection):
7325         [[[9]]]: Fix up error signalling to use new structured error system.
7326
7327         * console-x.h:
7328         [[[4]]]: Define codesys aliases:
7329         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7330         Qx_color_name_encoding, Qx_display_name_encoding.
7331
7332         * console.h (struct console_methods):
7333         New method make_dialog_box_internal supersedes older
7334         popup_dialog_box method.
7335
7336         * data.c:
7337         Define many new errors, part of new structured errors.
7338
7339         * data.c (init_errors_once_early):
7340         * data.c (syms_of_data):
7341         [2].
7342
7343         * device-msw.c (mswindows_init_device):
7344         [[[5]]]: Cleanup to support NT 3.51.
7345
7346         * device-msw.c (decode_devmode): Cleanup.
7347
7348         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7349         * device-msw.c (mswindows_handle_print_dialog_box):
7350         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7351         * device-msw.c (syms_of_device_mswindows):
7352         Delete the dialog box primitives recently introduced by Kirill and
7353         instead interface to general dialog box interface.
7354
7355         * device-x.c:
7356         * device-x.c (compute_x_app_name):
7357         * device-x.c (x_init_device):
7358         * device-x.c (Fx_valid_keysym_name_p):
7359         * device-x.c (Fx_set_font_path):
7360         [6].
7361         [7].
7362
7363         * device.h (wrap_device): New.
7364         First of its kind; meant to replace XSETDEVICE.
7365
7366         * dialog-msw.c: Many file-dialog symbols.
7367
7368         * dialog-msw.c (mswindows_register_popup_frame): New.
7369         * dialog-msw.c (mswindows_is_dialog_msg): New.
7370         For supporting kbd traversal in dialog boxes.
7371
7372         * dialog-msw.c (dialog_proc):
7373         Support hitting ESC in dialogs.
7374
7375         * dialog-msw.c (struct):
7376         Common dialog box errors.
7377
7378         * dialog-msw.c (handle_file_dialog_box): New.
7379         Add file dialog code.
7380
7381         * dialog-msw.c (handle_question_dialog_box):
7382         Redo existing code to support new question dialog syntax.
7383
7384         * dialog-msw.c (console_type_create_dialog_mswindows):
7385         We support new dialog console method.
7386
7387         * dialog-msw.c (syms_of_dialog_mswindows):
7388         * dialog-msw.c (vars_of_dialog_mswindows):
7389         New file dialog symbols, vars.
7390
7391         * dialog-x.c:
7392         * dialog-x.c (maybe_run_dbox_text_callback):
7393         * dialog-x.c (dbox_descriptor_to_widget_value):
7394         * dialog-x.c (x_make_dialog_box_internal):
7395         * dialog-x.c (console_type_create_dialog_x):
7396         Mule-ize entire file.
7397         Redo to support question dialog syntax.
7398         [6].
7399
7400         * dialog.c:
7401         * dialog.c (Fmake_dialog_box_internal):
7402         * dialog.c (syms_of_dialog):
7403         Kill old popup-dialog-box, replace with new primitive.
7404         Just call device method or signal error.
7405
7406         * eldap.c (Fldap_open):
7407         * eldap.c (Fldap_search_basic):
7408         * eldap.c (Fldap_add):
7409         * eldap.c (Fldap_modify):
7410         [1].
7411         [7].
7412
7413         * emacs.c:
7414         * emacs.c (make_arg_list_1):
7415         * emacs.c (make_arg_list):
7416         Mule-ize call to dll_init().
7417         [6].
7418         [8].
7419
7420         * emacs.c (make_argc_argv):
7421         * emacs.c (free_argc_argv):
7422         * emacs.c (init_cmdargs):
7423         * emacs.c (main_1):
7424         * emacs.c (Fkill_emacs):
7425         * emacs.c (Fdump_emacs):
7426         Update comments about what can be used in syms_* etc.
7427         Call init_win32() when necessary.
7428         Fix up MS Win dialog box in kill-buffer to actually work right.
7429         [7].
7430
7431         * eval.c:
7432         * eval.c (For):
7433         * eval.c (Fand):
7434         * eval.c (Fprogn):
7435         * eval.c (Fprog1):
7436         * eval.c (Fprog2):
7437         * eval.c (FletX):
7438         * eval.c (Flet):
7439         * eval.c (condition_case_3):
7440         * eval.c (Feval):
7441         * eval.c (function_argcount):
7442         * eval.c (funcall_lambda):
7443         [1].
7444
7445         * eval.c (type_error): New.
7446         * eval.c (maybe_type_error): New.
7447         * eval.c (continuable_type_error): New.
7448         * eval.c (maybe_continuable_type_error): New.
7449         * eval.c (type_error_with_frob): New.
7450         * eval.c (maybe_type_error_with_frob): New.
7451         * eval.c (continuable_type_error_with_frob): New.
7452         * eval.c (maybe_continuable_type_error_with_frob): New.
7453         New functions for use with structured errors.
7454
7455         * event-Xt.c:
7456         * event-Xt.c (x_event_to_emacs_event):
7457         Buttons are now modifiers too.
7458
7459         * event-Xt.c (emacs_Xt_current_event_timestamp):
7460         Implement new event method.
7461         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7462
7463         * event-msw.c:
7464         * event-msw.c (ntpipe_shove_writer): [5].
7465         * event-msw.c (mswindows_enqueue_mouse_button_event):
7466         * event-msw.c (mswindows_drain_windows_queue):
7467         * event-msw.c (mswindows_wnd_proc): [7].
7468         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7469         * event-msw.c (mswindows_modifier_state):
7470         Throughout: support new button modifiers.
7471
7472         * event-msw.c (emacs_mswindows_current_event_timestamp):
7473         Implement new event method.
7474         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7475
7476         * event-stream.c:
7477         * event-stream.c (event_stream_current_event_timestamp): New.
7478         * event-stream.c (maybe_kbd_translate): New functionality.
7479         * event-stream.c (vars_of_event_stream):
7480         Document new kbd-translate-table functionality.
7481
7482         * event-stream.c (Fcurrent_event_timestamp): New.
7483         New primitive for use in fabricated events.
7484         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7485
7486         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7487
7488         * events.c:
7489         * events.c (Fmake_event):
7490         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7491         [1].
7492         [9].
7493
7494         * events.c (format_event_object): fix gcc warnings.
7495
7496         * events.c (Fevent_timestamp): Document new primitives.
7497
7498         * events.c (TIMESTAMP_HALFSPACE): New.
7499
7500         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7501         comparing timestamps correctly (half-space algorithm).
7502
7503         * events.c (Fevent_modifier_bits): Doc fix.
7504
7505         * events.c (Fevent_modifiers): Major doc addition.
7506         * events.c (event_x_y_pixel_internal): Typo fix.
7507         * events.c (syms_of_events): Declare new primitives.
7508
7509         * events.h:
7510         Update long comment for button modifiers, timestamps.
7511
7512         * events.h (struct event_stream):
7513         New current_event_timestamp method.
7514
7515         * extents.c:
7516         * extents.c (extent_in_region_p):
7517         * extents.c (decode_extent):
7518         * extents.c (Fset_extent_parent):
7519         * extents.c (decode_map_extents_flags):
7520         Fix gcc warnings.
7521         [9].
7522
7523         * extents.c (struct extent_at_arg):
7524         * extents.c (decode_extent_at_flag):
7525         * extents.c (extent_at_mapper):
7526         * extents.c (extent_at_bytind):
7527         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7528         * extents.c (Fextents_at): New primitive. [9].
7529         * extents.c (symbol_to_glyph_layout): [9].
7530         Support new primitive `extents-at'.
7531
7532
7533         * extents.c (get_text_property_bytind):
7534         extent_at_bytind has another arg.
7535         [9].
7536
7537         * extents.c (syms_of_extents): New primitive.
7538
7539         * file-coding.c (Fmake_coding_system): [1].
7540         * file-coding.c (subsidiary_coding_system): fix gcc warning
7541         * file-coding.c (syms_of_file_coding): [2].
7542
7543         * fileio.c (Fexpand_file_name):
7544         * fileio.c (Fsysnetunam):
7545         * fileio.c (Ffile_exists_p):
7546         * fileio.c (Ffile_executable_p):
7547         * fileio.c (Fverify_visited_file_modtime):
7548         Clean up GCPROing.
7549
7550         * fileio.c (syms_of_fileio): [2].
7551
7552         * filelock.c (lock_file_1):
7553         * filelock.c (current_lock_owner):
7554         * filelock.c (lock_if_free):
7555         * filelock.c (lock_file):
7556         * filelock.c (unlock_file):
7557         Clean up GCPROing.
7558
7559         * fns.c (concat): Fix gcc warning.
7560
7561         * fns.c (Fmember):
7562         * fns.c (Fold_member):
7563         * fns.c (Fmemq):
7564         * fns.c (Fold_memq):
7565         * fns.c (memq_no_quit):
7566         * fns.c (Fassoc):
7567         * fns.c (Fold_assoc):
7568         * fns.c (Fassq):
7569         * fns.c (Fold_assq):
7570         * fns.c (assq_no_quit):
7571         * fns.c (Frassoc):
7572         * fns.c (Fold_rassoc):
7573         * fns.c (Frassq):
7574         * fns.c (Fold_rassq):
7575         * fns.c (rassq_no_quit):
7576         * fns.c (Fdelete):
7577         * fns.c (Fold_delete):
7578         * fns.c (Fdelq):
7579         * fns.c (Fold_delq):
7580         * fns.c (delq_no_quit):
7581         * fns.c (Fremassoc):
7582         * fns.c (Fremassq):
7583         * fns.c (remassq_no_quit):
7584         * fns.c (Fremrassoc):
7585         * fns.c (Fremrassq):
7586         * fns.c (remrassq_no_quit):
7587         * fns.c (Freverse):
7588         * fns.c (mapcar1):
7589         [1].
7590
7591         * frame-msw.c (mswindows_init_frame_1):
7592         * frame-msw.c (mswindows_delete_frame):
7593         Register popups with dialog code so keyboard traversing works.
7594
7595         * frame-tty.c (tty_raise_frame_no_select): [1].
7596
7597         * frame-x.c:
7598         * frame-x.c (x_set_frame_text_value):
7599         * frame-x.c (x_set_frame_properties):
7600         * frame-x.c (x_create_widgets):
7601         [7].
7602
7603         * frame.c:
7604         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7605
7606         * frame.h (wrap_frame): New.
7607         Macro like wrap_device.
7608
7609         * general.c:
7610         * general.c (SYMBOL):
7611         * general.c (syms_of_general):
7612         Major reorg.  This is now just a wrapper and symbols themselves
7613         are listed in general-slots.h.
7614
7615         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7616         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7617
7618         * glyphs-msw.c (mswindows_native_layout_instantiate):
7619         Add DS_CONTROL so keyboard traversal will work.
7620
7621         * glyphs-widget.c:
7622         * glyphs-widget.c (syms_of_glyphs_widget):
7623         Move some symbols to general-slots.h.
7624
7625         * glyphs-x.c:
7626         * glyphs-x.c (xbm_instantiate_1):
7627         * glyphs-x.c (x_xbm_instantiate):
7628         * glyphs-x.c (x_xface_instantiate):
7629         * glyphs-x.c (autodetect_instantiate):
7630         * glyphs-x.c (cursor_font_instantiate):
7631         * glyphs-x.c (x_update_widget):
7632         * glyphs-x.c (x_widget_instantiate):
7633         * glyphs.c (bitmap_to_lisp_data):
7634         * glyphs.c (pixmap_to_lisp_data):
7635         [7].
7636
7637         * glyphs.c (syms_of_glyphs):
7638         [2].
7639
7640         * gui-x.c:
7641         * gui-x.c (print_widget_value):
7642         * gui-x.c (menu_separator_style_and_to_external):
7643         * gui-x.c (add_accel_and_to_external):
7644         * gui-x.c (button_item_to_widget_value):
7645         * gui-x.c (gui_items_to_widget_values_1):
7646         * gui-x.c (gui_items_to_widget_values):
7647         * gui-x.c (syms_of_gui_x):
7648         * gui-x.c (vars_of_gui_x):
7649         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7650         [9].
7651
7652         * gui-x.h:
7653         Muleize, prototype changes matching gui-x.c.
7654
7655         * gui.c:
7656         * gui.c (separator_string_p):
7657         * gui.c (gui_item_add_keyval_pair):
7658         * gui.c (make_gui_item_from_keywords_internal):
7659         * gui.c (signal_too_long_error):
7660         * gui.c (parse_gui_item_tree_item):
7661         * gui.c (syms_of_gui):
7662         * gui.c (vars_of_gui):
7663         * gui.h:
7664         menu-no-selection-hook moved here (used by MSWin).
7665         Move some symbols to general-slots.h.
7666         [6].
7667         [9].
7668
7669         * insdel.c (get_buffer_pos_char):
7670         * insdel.c (get_buffer_range_char):
7671         Add GC comments.
7672
7673         * keymap.c (keymap_lookup_directly):
7674         * keymap.c (keymap_store):
7675         * keymap.c (ensure_meta_prefix_char_keymapp):
7676         * keymap.c (describe_map):
7677         * keymap.h:
7678         Support new button modifiers.
7679
7680         * lisp-disunion.h (wrap_object):
7681         * lisp-disunion.h (XSETOBJ):
7682         Rename make_obj to wrap_object.
7683
7684         * lisp-union.h:
7685         * lisp-union.h (make_int):
7686         * lisp-union.h (make_char):
7687         Support wrap_object.
7688
7689         * lisp.h:
7690         * lisp.h (LIST_LOOP):
7691         * lisp.h (EXTERNAL_LIST_LOOP):
7692         * lisp.h (LIST_LOOP_2):
7693         * lisp.h (EXTERNAL_LIST_LOOP_1):
7694         * lisp.h (EXTERNAL_LIST_LOOP_2):
7695         * lisp.h (EXTERNAL_LIST_LOOP_3):
7696         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7697         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7698         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7699         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7700         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7701         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7702         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7703         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7704         * lisp.h (struct Lisp_Symbol):
7705         * lisp.h (maybe_continuable_error_with_frob):
7706         Fix up section comments.
7707         Add new types for char to indicate usage.
7708         Delete symbols auto-generated from general-slots.h.
7709         Add prototypes for structured error functions.
7710         Add long comments describing looping macros and change interface
7711         so that lvalues are automatically declared.
7712         Add NO_DECLARE macro in case callers want to declare lvalues
7713         themselves.
7714
7715         * lread.c (read_syntax_error):
7716         * lread.c (continuable_read_syntax_error):
7717         * lread.c (read_structure):
7718         * lread.c (sequence_reader):
7719         * lread.c (read_list_conser):
7720         * lread.c (read_compiled_function):
7721         Rename syntax_error and continuable_syntax_error to avoid clash
7722         with same-named structured error functions.
7723
7724         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7725         * menubar-msw.c (populate_menu_add_item):
7726         * menubar-msw.c (populate_or_checksum_helper):
7727         [5].
7728         [9].
7729
7730         * menubar-x.c:
7731         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7732         Mule-ize whole file.
7733
7734         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7735
7736         * mule-charset.c (Fmake_charset):
7737         * mule-wnnfns.c (Fwnn_set_param):
7738         [1].
7739
7740         * ntproc.c (create_child):
7741         * ntproc.c (Fwin32_set_current_locale):
7742         Add comments portending doom.
7743
7744         * objects-msw.c:
7745         * objects-msw.c (old_font_enum_callback_2):
7746         * objects-msw.c (font_enum_callback_1):
7747         * objects-msw.c (mswindows_enumerate_fonts):
7748         [5].
7749
7750         * objects-x.c:
7751         * objects-x.c (allocate_nearest_color):
7752         * objects-x.c (x_parse_nearest_color):
7753         * objects-x.c (x_initialize_color_instance):
7754         * objects-x.c (x_print_color_instance):
7755         * objects-x.c (x_finalize_color_instance):
7756         * objects-x.c (x_valid_color_name_p):
7757         * objects-x.c (x_initialize_font_instance):
7758         * objects-x.c (x_print_font_instance):
7759         * objects-x.c (valid_x_font_name_p):
7760         * objects-x.c (truename_via_FONT_prop):
7761         * objects-x.c (truename_via_random_props):
7762         * objects-x.c (truename_via_XListFonts):
7763         * objects-x.c (x_font_truename):
7764         * objects-x.c (x_font_instance_truename):
7765         * objects-x.c (x_font_instance_properties):
7766         * objects-x.c (x_list_fonts):
7767         * objects-x.c (x_find_charset_font):
7768         Mule-ize entire file.
7769         [7].
7770
7771         * objects-x.h:
7772         Mule-verify.
7773
7774         * print.c:
7775         * print.c (std_handle_out_external):
7776         * print.c (debug_print_no_newline):
7777         * print.c (syms_of_print):
7778         Output to all debugger kinds in debug-print.
7779         Fix console-output code under MSWin to actually work.
7780
7781         * process-nt.c (send_signal):
7782         * process-nt.c (nt_create_process):
7783         Use newer Unicode macros.
7784
7785         * process-unix.c (unix_create_process):
7786         * process-unix.c (unix_canonicalize_host_name):
7787         * process-unix.c (unix_open_network_stream):
7788         [7].
7789
7790         * scrollbar-x.c:
7791         Mule-verify.
7792
7793         * search.c (syms_of_search):
7794         [2].
7795
7796         * select-msw.c (mswindows_destroy_selection):
7797         Use LIST_LOOP_2.
7798
7799         * select-x.c (symbol_to_x_atom):
7800         [7].
7801
7802         * select.c (syms_of_select):
7803         [2].
7804
7805         * sound.c (Fplay_sound_file):
7806         [7].
7807
7808         * specifier.c:
7809         * specifier.c (decode_specifier_type):
7810         * specifier.c (Fvalid_specifier_locale_type_p):
7811         * specifier.c (check_valid_locale_or_locale_type):
7812         * specifier.c (decode_locale):
7813         * specifier.c (decode_locale_type):
7814         * specifier.c (decode_locale_list):
7815         * specifier.c (check_valid_domain):
7816         * specifier.c (decode_specifier_tag_set):
7817         * specifier.c (Fcanonicalize_tag_set):
7818         * specifier.c (Fdefine_specifier_tag):
7819         * specifier.c (Fspecifier_tag_predicate):
7820         * specifier.c (check_valid_inst_list):
7821         * specifier.c (check_valid_spec_list):
7822         * specifier.c (decode_how_to_add_specification):
7823         * specifier.c (check_modifiable_specifier):
7824         * specifier.c (specifier_add_spec):
7825         * specifier.c (boolean_validate):
7826         * specifier.c (display_table_validate):
7827         [9].
7828
7829         * specifier.c (syms_of_specifier):
7830         Move some symbols to general-slots.h.
7831         [2].
7832
7833         * symbols.c:
7834         * symbols.c (Fmapatoms):
7835         * symbols.c (Fapropos_internal):
7836         Add GCPROs.
7837
7838         * symbols.c (set_default_buffer_slot_variable):
7839         * symbols.c (set_default_console_slot_variable):
7840         [1].
7841
7842         * symbols.c (defsymbol_massage_name_1):
7843         * symbols.c (defkeyword_massage_name):
7844         * symbols.c (deferror_1):
7845         * symbols.c (deferror):
7846         * symbols.c (deferror_massage_name_and_message):
7847         * symeval.h:
7848         * symeval.h (DEFSYMBOL):
7849         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7850
7851         * symbols.c (syms_of_symbols):
7852         [2].
7853
7854         * symsinit.h:
7855         * symsinit.h (init_win32): New.
7856         Also new is syms_of_dialog_mswindows.
7857
7858         * syswindows.h:
7859         Add new Unicode macros, missing Cygwin wide-char functions,
7860         convenience conversion macros for Qmswindows_tstr, macros for
7861         encapsulating required MSWin <-> Cygwin filename conversions,
7862         prototype for dynamically-extracted (not in NT 3.51) functions.
7863
7864         * toolbar-x.c:
7865         Mule-verify.
7866
7867         * tooltalk.c (Fadd_tooltalk_message_arg):
7868         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7869         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7870         [7].
7871
7872         * tooltalk.c (syms_of_tooltalk):
7873         [2].
7874
7875         * unexnt.c:
7876         * unexnt.c (unexec):
7877         Fix up headers, declaration of unexec() to be more standard.
7878
7879 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7880
7881         * offix.h: Revert change to guard macros - they're used in offix.c!
7882
7883 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7884
7885         * lisp.h: Defsubred Fdelete.
7886
7887         * console-msw.h:  (msprinter_default_printer): Added.
7888
7889         * console-msw.c (msprinter_canonicalize_console_connection):
7890         (msprinter_canonicalize_device_connection): Added.
7891
7892         * device-msw.c (msprinter_default_printer):
7893         (Fmswingows_get_default_printer):
7894         (signal_enum_priner_error):
7895         (Fmswingows_printer_list): Added.
7896
7897 2000-07-19  Martin Buchholz <martin@xemacs.org>
7898
7899         * XEmacs 21.2.35 is released.
7900
7901 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7902
7903         * select-x.c (x_handle_selection_request):
7904         Text selected in xemacs and pasted into xterm failed to appear.
7905         Spelling fixes and cosmetic changes.
7906
7907 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7908
7909         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7910         XEmacs frame (fix for doubling chars in dialog boxes).
7911
7912 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7913
7914         * select.c (select_convert_in, select_convert_out):
7915         Don't call intern() every time.
7916
7917         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7918         * select.c (vars_of_select): Initialise them.
7919
7920 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7921
7922         * select.c (selection-coercible-types): New.
7923
7924         * select.c (own-selection-internal):
7925         * select.c (get-selection-internal):
7926         MULE bug fix - these should default to COMPOUND_TEXT and not
7927         STRING for MULE. I think.
7928
7929         * select.c (select_convert_out): Use selection-coercible-types
7930         to find types that we can attempt to perform coercions on.
7931
7932 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7933
7934         * mule-wnnfns.c:
7935         * mule-canna.c:
7936         Add coding: cookie to identify encoding.
7937
7938         * mule-canna.c (CANNA_mode_keys): make static.
7939         Use proper prototypes, even for functions of no arguments.
7940         Remove external prototype for Fding().
7941
7942         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7943
7944         * select.c (syms_of_select): Add missing DEFSUBR.
7945
7946 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7947
7948         * select.c (get_selection_internal, own_selection_internal):
7949         Make the type default to STRING, rather than placing a nil type
7950         into Vselection_alist.
7951
7952 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7953
7954         * gpmevent.c (tty_selection_exists_p):
7955         * gpmevent.c (tty_own_selection):
7956         Updated parameter lists.
7957
7958 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7959
7960         * select.h (selection-alist): Removed declaration.
7961
7962         * select.h (get_local_selection):
7963         * select.c (get_local_selection):
7964         Made static.
7965
7966         * select.h (convert_selection): Removed declaration.
7967         * select.c (convert_selection): Removed.
7968         This function belongs in Lisp.
7969
7970         * select.h (select_convert_in): Declare.
7971         * select.h (select_convert_out): Declare.
7972         * select.c (select_convert_in): New.
7973         * select.c (select_convert_out): New.
7974         New conversion functions for other files to call.
7975
7976         * select.h (select_notify_buffer_kill): Declare.
7977         * select.c (select_notify_buffer_kill): New.
7978         New functions that get called from kill-buffer.
7979
7980         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7981         X-specific lisp code.
7982
7983         * select.h: Declare some of the lisp-visible functions for
7984         external use.
7985
7986         * select.c (clean_local_selection_data): Removed. This was
7987         a disgusting function, and previously should have been in
7988         select-x.c in any case. The functionality is now provided
7989         in select-convert-from-integer (select.el).
7990
7991         * select.c (available-selection-types): Fixed stupidity where
7992         INTEGER and ATOM got added twice. Also add STRING when we see an
7993         extent.
7994
7995         * select.c (get-selection-internal): Removed symbol stripping. No
7996         longer causes conversion when data comes from the internal cache.
7997
7998         * select.c (syms_of_select): Added new functions.
7999
8000         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
8001         error checking - previously this called abort!
8002
8003         * select-x.c (x_own_selection): Changed comment.
8004
8005         * select-x.c (x_handle_selection_request): Use select_convert_out.
8006         Don't mess with selection-alist; it's an internal variable of select.c.
8007
8008         * select-x.c (x_get_foreign_selection): Use select_convert_in.
8009
8010         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
8011         rather than messing with selection-alist.
8012
8013         * select-msw.c (mswindows_get_foreign_selection):
8014         Use TO_INTERNAL_FORMAT rather than hacking.
8015
8016 2000-07-14  Martin Buchholz  <martin@xemacs.org>
8017
8018         * process-unix.c (unix_open_multicast_group):
8019         (unix_open_multicast_group): Remove useless casts.
8020
8021 2000-07-13  Martin Buchholz  <martin@xemacs.org>
8022
8023         * sound.c (Fplay_sound): Fix `unused variable' warning.
8024
8025         * emacs.c (main): Use correct type for _environ on SCO5.
8026
8027 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
8028
8029         * console.h (own_selection_method):
8030         * console.h (selection_exists_p_method):
8031         * console.h (available_selection_types_method): New.
8032         * console.h (register_selection_data_type_method): New.
8033         * console.h (selection_data_type_name): New.
8034
8035         * console-msw.h (mswindows_destroy_selection): Declare it.  New
8036         function & alist to track GlobalAlloc()'d handles that need
8037         releasing when the clipboard data gets replaced or emptied.
8038
8039         * event-msw.c (mswindows_wnd_proc): Call it.
8040
8041         * lisp.h, general.c (Qappend): New symbol representing a
8042         `how-to-add' mode.
8043
8044         * select.c (own-selection-internal):
8045         * select.c (selection-exists-p):
8046         * select.c (available-selection-types): New.
8047         * select.c (register-selection-data-type): New.
8048         * select.c (selection-data-type-name): New.  New functions to deal
8049         with device-specific selection data formats.
8050         * select.c (selection-converter-out-alist): Renamed.
8051         * select.c (selection-converter-in-alist): New.
8052         * select.c (selection-appender-alist): New.  Added new alists.
8053         * select.c (syms_of_select, vars_of_select): Added new symbols &
8054         variables.
8055         * select.c (get_local_selection): Split.
8056         * select.c: Removed spurious type checking - selections may now be
8057         of any type, not just strings.
8058         * select.c (own-selection-internal):
8059
8060         * select.h, select.c (convert_selection): New. Created
8061         convert_selection() function based on get_local_selection().
8062         * select.h, select.c (QCF_*): New symbols representing mswindows
8063         clipboard formats.
8064         * select.h, select.c (Qreplace_all, Qreplace_existing): New
8065         symbols representing `how-to-add' modes.
8066
8067         * select-msw.c (x_sym_p): New.
8068         * select-msw.c (symbol_to_ms_cf): New.
8069         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
8070         symbols & clipboard formats. Can also handle string names.
8071         * select-msw.c (mswindows_own_selection):
8072         * select-msw.c (mswindows_selection_exists_p):
8073         Added `data-type' parameter. Use it.
8074         * select-msw.c (mswindows_available_selection_types): New.
8075         * select-msw.c (mswindows_register_selection_data_type): New.
8076         * select-msw.c (mswindows_selection_data_type_name): New.
8077         * select-msw.c (mswindows_own_selection):
8078         * select-msw.c (mswindows_get_foreign_selection):
8079         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
8080         * select-msw.c (console_create_select_mswindows): Added new methods.
8081         * select-msw.c (mswindows_destroy_selection): New.
8082         * select-msw.c (Vhandle_alist): New list.
8083         * select-msw.c (mswindows_own_selection):
8084
8085         * select-x.c (x_own_selection):
8086         * select-x.c (x_selection_exists_p):
8087         * select-x.c: Added some comments about maybe using new
8088         functionality.
8089         * select-x.c (x_own_selection):
8090
8091         * specifier.c: Remove definition of Qappend (now in general.c)
8092         * specifier.c (syms_of_specifier): Remove Qappend.
8093
8094 2000-07-12  Martin Buchholz  <martin@xemacs.org>
8095
8096         * config.h.in: Add socklen_t.
8097
8098         * s/decosf4-0.h: No special compiler flags needed or desired.
8099         In particular, undefine _BSD for DEC OSF 4.0.
8100
8101 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8102
8103         * redisplay-msw.c (msprinter_frame_output_end): Added.
8104         (console_type_create_redisplay_mswindows): Referred the above.
8105
8106         * frame.c (setup_frame_without_minibuffer): Do not create a
8107         default minibuffer frame on a printer device.
8108
8109         * frame-msw.c (apply_dc_geometry): Added.
8110         (msprinter_start_page):
8111         (msprinter_init_frame_3):
8112         (msprinter_eject_page): Use it.
8113
8114         * console-msw.h (struct msprinter_frame): Added pix_left and top,
8115         and removed residual duplex and orientation properties.
8116
8117 2000-07-11  Martin Buchholz  <martin@xemacs.org>
8118
8119         * eval.c (function_argcount): Work around a DEC CC compiler bug.
8120
8121         * unexalpha.c: Remove system prototypes from C sources!
8122
8123 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
8124
8125         * eval.c: Remove references to M-x edit-options in DEFUNs for
8126         `defvar' and `defconst'.
8127
8128 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8129
8130         * config.h.in: Remove SMART_INCLUDE hackery.
8131
8132         PostgreSQL hacking:
8133         * config.h.in: Don't use SMART_INCLUDE.
8134
8135         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8136         * inline.c: Simply #include "postgresql.h"
8137         * postgresql.c:
8138         - Don't use SMART_INCLUDE
8139         - Use simply "const".
8140         - Use standard doc string conventions.
8141         - Use correct type for result of PQstatus.
8142
8143 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8144
8145         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8146
8147         C++ compilation changes.
8148         * config.h.in (EXTERN_C): Define.
8149         * config.h.in (not): This is also a C++ keyword.
8150         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8151         * cm.c: Use EXTERN_C.
8152         * redisplay-tty.c: Use EXTERN_C.
8153         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8154
8155 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8156
8157         * general.c: Remove duplicate definition for Qfunction.
8158
8159 2000-07-08  Ben Wing  <ben@xemacs.org>
8160
8161         * device-msw.c (msprinter_init_device):
8162         * device-msw.c (sync_printer_with_devmode):
8163         * device-msw.c (handle_devmode_changes):
8164         * device-msw.c (print_dialog_worker):
8165         * device-msw.c (Fmsprinter_apply_settings):
8166         * device-msw.c (hash_devmode):
8167         * device-msw.c (Fmsprinter_settings_despecialize):
8168         use Qmswindows_tstr, not Qctext.
8169
8170         * vm-limit.c (check_memory_limits):
8171         avoid infinite loop printing warning messages.
8172
8173 2000-07-05  Craig Lanning  <lanning@scra.org>
8174
8175         * Makefile.in.in: Add support for including the Windows resources
8176         when building with the cygwin and mingw targets.
8177
8178         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8179         not set or not correct.
8180         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8181         (init_initial_directory): Don't try to use $PWD on the
8182         WIN32_NATIVE target.
8183
8184         * s\cygwin32.h:
8185         [[Add -mwindows to eliminate console window.]] not required --ben
8186         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8187         (MAIL_USE_POP): removed; now handled by configure.
8188
8189         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8190         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8191         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8192         (MAIL_USE_POP): removed; now handled by configure.
8193         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8194         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8195         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8196         constant string.
8197         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8198         up from <winsock.h> via systime.h.
8199         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8200         (getpagesize): from Dan Holmsand, added.
8201         Added #endif which was left dangling by Ben's mega patch; added
8202         comment to help prevent this in the future.
8203
8204         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8205
8206 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8207
8208         * console-msw.h (struct mswindows_device): Removed unnecessary
8209         cached device geometry values.
8210         Added update_tick and an accessor macro.
8211         (Lisp_Devmode): Added lrecord declaration.
8212         (struct msprinter_device): Contain devmode as a Lisp object.
8213         Added mswindows_get_selected_frame_hwnd();
8214
8215         * console.h (struct console_methods): Indentation nitpicking.
8216
8217         * device-msw.c (mswindows_init_device): Do not initialize geometry
8218         cache. Initialize update tick.
8219         (mswindows_device_system_metrics): Ask the device for its geometry.
8220         (global_free_2_maybe):
8221         (devmode_to_hglobal):
8222         (handle_printer_changes):
8223         (ensure_not_printing):
8224         (print_dialog_worker):
8225         (Fmsprinter_print_setup_dialog):
8226         (Fmsprinter_print_dialog):
8227         (plist_get_margin):
8228         (plist_set_margin):
8229         (Fmsprinter_page_setup_dialog): Added functions.
8230         (sync_printer_with_devmode):
8231         (handle_devmode_changes):
8232         (Fmsprinter_get_settings):
8233         (Fmsprinter_select_settings):
8234         (Fmsprinter_apply_settings):
8235         (allocate_devmode):
8236         (Fmsprinter_settings_copy):
8237         (Fmsprinter_settings_despecialize):
8238         (print_devmode):
8239         (finalize_devmode):
8240         (equal_devmode):
8241         (hash_devmode): Added functions
8242         (syms_of_device_mswindows): Init devmode lrecord class.
8243
8244         * device.h: Added an exfun for find-device.
8245
8246         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8247         geometry; although, recreate the device compatible DC.
8248
8249         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8250         (msprinter_init_frame_3):
8251         (msprinter_frame_property):
8252         (msprinter_internal_frame_property_p):
8253         (msprinter_frame_properties):
8254         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8255         print job properties (will move to device settings).
8256
8257         * lisp.h: Added symbols.
8258
8259         * general.c (syms_of_general): Declared them.
8260
8261         * hash.c (string_hash): Added.
8262
8263         * lrecord.h (lrecord_type): Added devmode lrecord type.
8264
8265 2000-07-02  Mike Sperber <mike@xemacs.org>
8266
8267         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8268         FreeBSD 4.0.
8269
8270 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8271
8272         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8273         integer.
8274
8275 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8276
8277         * data.c (Fstring_to_number): Don't recognize floating point if
8278         base is not 10.
8279
8280 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8281
8282         * glyphs-widget.c (tab_control_query_geometry):
8283         (widget_query_geometry):
8284         (button_query_geometry):
8285         * glyphs.c (text_query_geometry):
8286         Enforce type correctness.
8287
8288 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8289
8290         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8291         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8292
8293 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8294
8295         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8296         conflicts with gcc's fixincluded version of FOO.h.
8297
8298         * glyphs.h (image_instance_geometry): Remove trailing `,'
8299
8300 2000-06-08  Mike Alexander  <mta@arbortext.com>
8301
8302         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8303         (shove_thread): Don't write the same output twice
8304         (make_ntpipe_output_stream): Increase priority of shove thread
8305         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8306         chance to run
8307         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8308         it.
8309
8310 2000-06-12  Ben Wing  <ben@xemacs.org>
8311
8312         * s\mingw32.h (sigset):
8313         * s\windowsnt.h (sigset):
8314         rename msw_ to mswindows_ for consistency with general convention.
8315
8316 2000-06-12  Ben Wing  <ben@xemacs.org>
8317
8318         * console-msw.c:
8319         * console-msw.c (mswindows_get_console_hwnd):
8320         * console-msw.c (mswindows_ensure_console_allocated):
8321         * console-msw.c (mswindows_hide_console):
8322         * console-msw.c (mswindows_show_console):
8323         * console-msw.c (mswindows_ensure_console_buffered):
8324         * console-msw.c (mswindows_output_console_string):
8325         * console-msw.c (mswindows_windows9x_p):
8326         * console-msw.h:
8327         * device-msw.c (mswindows_get_workspace_coords):
8328         * device-msw.c (mswindows_device_system_metrics):
8329         * dialog-msw.c (mswindows_popup_dialog_box):
8330         * event-msw.c (mswindows_wnd_proc):
8331         * frame-msw.c (mswindows_size_frame_internal):
8332         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8333         * menubar-msw.c (displayable_menu_item):
8334         * menubar-msw.c (mswindows_char_is_accelerator):
8335         * nt.c:
8336         * nt.c (mswindows_sigset):
8337         * nt.c (mswindows_sigrelse):
8338         * nt.c (mswindows_sigpause):
8339         * nt.c (mswindows_raise):
8340         * nt.c (timer_proc):
8341         * ntproc.c:
8342         * ntproc.c (find_child_console):
8343         * ntproc.c (sys_kill):
8344         * print.c:
8345         * print.c (std_handle_out_external):
8346         * process-nt.c (find_child_console):
8347         * process-nt.c (send_signal_the_95_way):
8348         * process-nt.c (ensure_console_window_exists):
8349         * process-nt.c (nt_create_process):
8350         * syssignal.h:
8351         rename msw_ to mswindows_ for consistency with general convention.
8352
8353         * emacs.c:
8354         * dumper.c:
8355         include nt.h, not syswindows.h.
8356
8357         * nt.c (mswindows_fstat):
8358         * nt.c (mswindows_stat):
8359         prefix mswindows_ instead of attempting to directly override the
8360         library functions.  fix declarations.
8361
8362         * nt.h:
8363         include syswindows.h.  move some sysdep.h stuff here.
8364
8365         * ntheap.h:
8366         include syswindows.h, not <windows.h>.
8367
8368         * ntplay.c:
8369         clean up headers.
8370
8371         * sysdep.c:
8372         clean up headers.
8373
8374         * sysdep.c (sys_fstat):
8375         * sysdep.c (sys_stat):
8376         call mswindows versions when appropriate.
8377
8378         * sysdep.h:
8379         move mswin decls to nt.h.
8380
8381         * syswindows.h:
8382         add long comment describing appropriate use of the various windows
8383         headers.
8384
8385 2000-06-11  Ben Wing  <ben@xemacs.org>
8386
8387         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8388
8389 2000-06-10  Ben Wing  <ben@xemacs.org>
8390
8391         * Makefile.in.in (release):
8392         Correction to make sure xemacs.exe always dumped when correct.
8393
8394         * alloca.c:
8395         * balloon_help.c:
8396         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8397
8398         * buffer.c (set_buffer_internal):
8399         [[[[2]]]]: Remove HAVE_FEP code.
8400
8401         * buffer.c (init_initial_directory):
8402         [3].
8403
8404         * bytecode.c:
8405         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8406         individual files.
8407
8408         * callproc.c:
8409         * callproc.c (call_process_cleanup):
8410         * callproc.c (Fold_call_process_internal):
8411         * callproc.c (child_setup):
8412         * callproc.c (getenv_internal):
8413         * callproc.c (init_callproc):
8414         * callproc.c (vars_of_callproc):
8415         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8416         __CYGWIN32__ -> CYGWIN.
8417         DOS_NT -> WIN32_NATIVE.
8418         Remove MSDOS support/references, converting to WIN32_NATIVE
8419           where correct.
8420         __MINGW32__ -> MINGW.
8421         Fix windows.h includes.
8422         Remove bogus HAVE_NTGUI.
8423
8424         * config.h.in:
8425         [2].
8426
8427         * console-msw.c:
8428         mswindows_message_outputted added for use in allowing startup
8429         errors on the console to be seen.
8430
8431         * console-msw.c (msw_ensure_console_allocated):
8432         * console-msw.c (msw_output_console_string):
8433         * console-msw.c (DHEADER):
8434         * console-msw.c (DOPAQUE_DATA):
8435         * console-msw.c (DEVENT):
8436         * console-msw.c (DCONS):
8437         * console-msw.c (DCONSCDR):
8438         * console-msw.c (DSTRING):
8439         * console-msw.c (DVECTOR):
8440         * console-msw.c (DSYMBOL):
8441         * console-msw.c (DSYMNAME):
8442         Fix warnings.
8443
8444         * console-stream.c (stream_init_console):
8445         Fix text/binary problems.
8446
8447         * device-msw.c:
8448         * device-msw.c (mswindows_finish_init_device):
8449         * device-msw.c (mswindows_delete_device):
8450         [1].
8451
8452         * device.c (handle_asynch_device_change):
8453         [3].
8454
8455         * dgif_lib.c:
8456         * dgif_lib.c (DGifOpenFileName):
8457         * dgif_lib.c (DGifOpenFileHandle):
8458         * dgif_lib.c (DGifGetLine):
8459         * dgif_lib.c (DGifGetPixel):
8460         Added config.h/lisp.h, fix up includes.
8461         [1].
8462
8463         * dired-msw.c:
8464         [4].
8465
8466         * dired.c:
8467         * dired.c (file_name_completion):
8468         * dired.c (Ffile_attributes):
8469         * dired.c (syms_of_dired):
8470         [1].
8471
8472         * dumper.c:
8473         * dumper.c (pdump_file_unmap):
8474         * dumper.c (pdump_load):
8475         [1].
8476
8477         * editfns.c:
8478         * editfns.c (Ftemp_directory):
8479         * editfns.c (user_login_name):
8480         * editfns.c (Fuser_real_login_name):
8481         * editfns.c (get_home_directory):
8482         [1].
8483
8484         * elhash.c (finish_marking_weak_hash_tables):
8485         [[[[5]]]]: Fix GCC warnings.
8486
8487         * emacs.c:
8488         * emacs.c (mswindows_handle_hardware_exceptions):
8489         * emacs.c (make_arg_list_1):
8490         * emacs.c (main_1):
8491         * emacs.c (Fkill_emacs):
8492         * emacs.c (Fdump_emacs):
8493         [1].
8494         Fix problems with nested crashes, add long comment.
8495
8496         * event-Xt.c (init_event_Xt_late):
8497         [1].
8498
8499         * event-msw.c:
8500         * event-msw.c (mswindows_dde_callback):
8501         * event-msw.c (mswindows_handle_sticky_modifiers):
8502         * event-msw.c (mswindows_wnd_proc):
8503         [1].
8504         [5].
8505
8506         * events.c (character_to_event):
8507         [1].
8508
8509         * fileio.c:
8510         * fileio.c (Ffile_name_directory):
8511         * fileio.c (Ffile_name_nondirectory):
8512         * fileio.c (directory_file_name):
8513         * fileio.c (Fexpand_file_name):
8514         * fileio.c (Fsubstitute_in_file_name):
8515         * fileio.c (Ffile_name_absolute_p):
8516         * fileio.c (check_executable):
8517         * fileio.c (Ffile_readable_p):
8518         * fileio.c (Ffile_accessible_directory_p):
8519         * fileio.c (Ffile_modes):
8520         * fileio.c (Funix_sync):
8521         * fileio.c (vars_of_fileio):
8522         [1]. [4].
8523
8524         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8525
8526         Expand getdefdir defn.
8527         Fix bogus rename() comment.
8528
8529         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8530         to use standard XEmacs include files, e.g. sysfile.h, rather
8531         than system-specific includes.
8532
8533         * fns.c:
8534         * fns.c (Fsubseq):
8535         [5]. [6].
8536
8537         * frame.c (vars_of_frame):
8538         [1].
8539
8540         * getloadavg.c:
8541         * getloadavg.c (getloadavg):
8542         [1]. [6].
8543         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8544         (We don't use it elsewhere in the code; just add a comment.)
8545
8546         * gif_io.c:
8547         [6].
8548         Add config.h.
8549
8550         * glyphs-msw.c:
8551         * glyphs-msw.c (mswindows_resource_instantiate):
8552         [1].
8553
8554         * glyphs-x.c (x_native_layout_instantiate):
8555         [5].
8556
8557         * gui-msw.c (Fmswindows_shell_execute):
8558         [1].
8559
8560         * insdel.c:
8561         [4].
8562
8563         * lisp.h:
8564         [4]. [5].
8565
8566         * lread.c (locate_file_in_directory_mapper):
8567         [1].
8568
8569         * lstream.c:
8570         [4].
8571
8572         * mem-limits.h:
8573         * mem-limits.h (get_lim_data):
8574         [1].
8575
8576         * menubar-msw.c:
8577         [4].
8578
8579         * ndir.h:
8580         [1].
8581
8582         * nt.c:
8583         * nt.c (getwd):
8584         * nt.c (closedir):
8585         * nt.c (rva_to_section):
8586         * nt.c (mswindows_executable_type):
8587         [1]. [6].
8588         Fix closedir() defn.
8589
8590         * nt.h:
8591         [[[[8]]]]: *_OK defs moved to sysfile.h.
8592
8593         * ntproc.c:
8594         [6]. [7].
8595
8596         * objects-x.c:
8597         [4].
8598
8599         * print.c:
8600         * print.c (std_handle_out_external):
8601         [1]. [4].
8602
8603         * process-nt.c:
8604         * process-nt.c (nt_create_process):
8605         [6].
8606         try to fix process quoting somewhat.
8607
8608         * process-unix.c (unix_create_process):
8609         [1].
8610
8611         * process.c:
8612         * process.c (vars_of_process):
8613         Add Vnull_device.
8614
8615         * process.h:
8616         [1].
8617
8618         * realpath.c:
8619         * realpath.c (xrealpath):
8620         [1].
8621
8622         * redisplay-tty.c (init_tty_for_redisplay):
8623         [3].
8624
8625         * redisplay.c:
8626         [4]. [6].
8627
8628         * scrollbar-msw.c:
8629         [4].
8630
8631         * sheap.c:
8632         * sheap.c (more_static_core):
8633         * sheap.c (report_sheap_usage):
8634         [5]. [6].
8635
8636         * signal.c:
8637         * signal.c (alarm_signal):
8638         [1]. [6].
8639
8640         * sound.c:
8641         [6].
8642
8643         * strftime.c:
8644         * strftime.c (zone_name):
8645         [1]. [5].
8646
8647         * symsinit.h (init_sunpro):
8648         [1].
8649
8650         * syscommctrl.h:
8651         commctrl.h not in Cygwin b20.1.
8652
8653         * sysdep.c:
8654         * sysdep.c (endif):
8655         * sysdep.c (sys_subshell):
8656         * sysdep.c (init_baud_rate):
8657         * sysdep.c (emacs_get_tty):
8658         * sysdep.c (emacs_set_tty):
8659         * sysdep.c (tty_init_sys_modes_on_device):
8660         * sysdep.c (init_system_name):
8661         * sysdep.c (sys_open):
8662         * sysdep.c (interruptible_open):
8663         * sysdep.c (sys_fopen):
8664         * sysdep.c (sys_mkdir):
8665         * sysdep.c (sys_rename):
8666         * sysdep.c (get_process_times_1):
8667         [1]. [6].
8668
8669         * sysdep.h:
8670         [1].
8671
8672         * sysdir.h:
8673         * sysdir.h (DIRENTRY_NONEMPTY):
8674         [1]. [6].
8675
8676         * sysdll.c (dll_init):
8677         * sysdll.h:
8678         [1].
8679
8680         * sysfile.h:
8681         [1]. [6]. [8].
8682         added text/binary defs.
8683
8684         * sysfloat.h:
8685         [1].
8686
8687         * sysproc.h:
8688         * sysproc.h (EDESTADDRREQ):
8689         * sysproc.h (poll_fds_for_input):
8690         [1]. [6].
8691
8692         * syspwd.h:
8693         [6].
8694
8695         * syssignal.h:
8696         [1].
8697
8698         * systime.h:
8699         [1]. [6].
8700
8701         * systty.h:
8702         [1].
8703
8704         * syswindows.h:
8705         [1].
8706         Always define WIN32_LEAN_AND_MEAN.
8707
8708         * unexcw.c (unexec):
8709         [5].
8710
8711         * unexec.c:
8712         * unexec.c (copy_text_and_data):
8713         * unexec.c (adjust_lnnoptrs):
8714         [1].
8715
8716         * unexnt.c:
8717         * unexnt.c (_start):
8718         [1].
8719
8720 2000-06-07  Ben Wing  <ben@xemacs.org>
8721
8722         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8723         was used only as a model.  We've long since extracted any useful
8724         logic or code out of this. (I just did an exhaustive search.)
8725
8726         * s\msdos.h: Removed.
8727
8728         * s\windows95.h: Removed.
8729
8730 2000-06-10  Ben Wing  <ben@xemacs.org>
8731
8732         * s\cygwin32.h:
8733         [1]. [5].
8734         Don't use extern with fun defs.
8735
8736         * s\mingw32.h:
8737         [1]. [7].
8738         Remove nt\inc include.
8739         Remove getdisk, getdefdir. (The former is unused, the latter
8740         expanded in fileio.h.)
8741
8742         * s\windowsnt.h:
8743         * s\windowsnt.h (WIN32_NATIVE):
8744         * s\windowsnt.h (HAVE_STRCASECMP):
8745         [1]. [7].
8746         Add long comment about preprocessor changes.
8747         Remove getdisk, getdefdir. (The former is unused, the latter
8748         expanded in fileio.h.)
8749
8750 2000-06-10  Ben Wing  <ben@xemacs.org>
8751
8752         * m\arm.h:
8753         * m\delta.h:
8754         * m\intel386.h:
8755         * m\sequent.h:
8756         * m\template.h:
8757         * m\windowsnt.h:
8758         [1].
8759         Remove bogus/unused NO_SOCK_SIGIO.
8760
8761 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8762
8763         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8764         not an Emchar.
8765
8766 2000-06-04  Mike Sperber <mike@xemacs.org>
8767
8768         * casetab.c (set_case_table): For `set-standard-case-table',
8769         actually deposit the new case tables where the rest of XEmacs can
8770         see them.
8771
8772 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8773
8774         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8775
8776 2000-06-05  Ben Wing  <ben@xemacs.org>
8777
8778         * callproc.c (child_setup): Don't do close_load_descs() under
8779         MS Windows.  Put in a comment explaining why.
8780
8781 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8782
8783         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8784         Toolkit shell" which breaks `kill-compilation' on Windows NT
8785         native, retaining STDERR handling improvements.
8786
8787 2000-06-01  Andreas Jaeger  <aj@suse.de>
8788
8789         * s/s390.h: Support for S390, based on a patch by Martin
8790         Schwidefsky <schwidefsky@de.ibm.com>.
8791
8792 2000-05-30  Andy Piper  <andy@xemacs.org>
8793
8794         * window.c (allocate_window):
8795         (make_dummy_parent):
8796         (Fset_window_configuration): use new hashtable type.
8797
8798         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8799         (struct image_instantiator_methods):
8800         (struct Lisp_Image_Instance): make instance geometry signed.
8801
8802         * glyphs.c (instantiate_image_instantiator):
8803         (image_instance_query_geometry):
8804         (image_instance_layout):
8805         (image_instance_layout):
8806         (query_string_geometry):
8807         (text_query_geometry):
8808         (image_instantiate):
8809         (image_instantiate):
8810         (cache_subwindow_instance_in_frame_maybe):
8811         (subwindow_query_geometry): make instance geometry signed.
8812
8813         * glyphs-widget.c (widget_query_geometry):
8814         (widget_layout):
8815         (button_query_geometry):
8816         (tree_view_query_geometry):
8817         (tab_control_query_geometry):
8818         (layout_query_geometry):
8819         (layout_layout):
8820         (native_layout_layout): make instance geometry signed.
8821
8822 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8823
8824         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8825         constant.
8826
8827         * general.c (syms_of_general): Add Qfull_assoc symbol.
8828
8829         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8830         correctly.
8831         (decode_weak_list_type): Decode full-assoc type.
8832         (encode_weak_list_type): Encode full-assoc type.
8833         (Fmake_weak_list): Update doc string.
8834
8835 2000-05-30  Andy Piper  <andy@xemacs.org>
8836
8837         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8838
8839         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8840         (decode_hash_table_weakness): ditto.
8841         (Fhash_table_weakness): ditto.
8842         (Fhash_table_type): ditto.
8843         (finish_marking_weak_hash_tables): ditto.
8844         (hash_table_weakness_validate): ditto.
8845         (syms_of_elhash): ditto.
8846
8847 2000-05-28  Martin Buchholz <martin@xemacs.org>
8848
8849         * XEmacs 21.2.34 is released.
8850
8851 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8852
8853         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8854         start cache.
8855         (updating_line_start_cache): Gone.
8856         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8857         generic code to force a minimum of 1 line laid out in the
8858         CMOTION_DISP case.
8859
8860 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8861
8862         * glyphs.c (instantiate_image_instantiator): Check for initialized
8863         height & width no longer special cases IMAGE_NOTHING.
8864         (nothing_instantiate): Set height and width of instance.
8865
8866 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8867
8868         * unexelf.c (unexec): Search for ".data" section.
8869         Initialize new_data2_offset from old_data_index.
8870         Remove redundant check for ElfW.
8871
8872 2000-05-23  Andy Piper  <andy@xemacs.org>
8873
8874         * glyphs.c (get_image_instantiator_governing_domain): allow more
8875         specific domains as the governing domain rather than expecting an
8876         exact match. This fixes problems with layouts.
8877
8878 2000-05-22  Andy Piper  <andy@xemacs.org>
8879
8880         * redisplay-output.c (compare_runes): check for non-images
8881
8882         * glyphs.c (set_glyph_dirty_p): ditto.
8883         (update_glyph_cachel_data): ditto.
8884
8885         * glyphs-widget.c (layout_post_instantiate): ditto.
8886         (layout_post_instantiate): ditto.
8887
8888         * event-msw.c (mswindows_wnd_proc): warning removal.
8889
8890 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8891
8892         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8893
8894         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8895
8896         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8897
8898         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8899         (mswindows_executable_type): mingw32 now has enough headers for
8900         this to work.
8901
8902 2000-05-20  Andy Piper  <andy@xemacs.org>
8903
8904         * console-msw.c (mswindows_output_last_error): ; -> ,
8905
8906 2000-05-12  Andy Piper  <andy@xemacs.org>
8907
8908         * console-msw.c (FROB): compare ints with ints.
8909
8910 2000-05-11  Andy Piper  <andy@xemacs.org>
8911
8912         * glyphs-x.c (x_finalize_image_instance): make minimal build
8913         happy.
8914
8915 2000-05-20  Ben Wing  <ben@xemacs.org>
8916
8917         * event-Xt.c:
8918         * event-Xt.c (vars_of_event_Xt):
8919         move modifier-keys-are-sticky to event-stream.c.
8920
8921         * event-msw.c:
8922         * event-msw.c (mswindows_enqueue_mouse_button_event):
8923         * event-msw.c (key_needs_default_processing_p):
8924         * event-msw.c (XEMSW_LCONTROL):
8925         * event-msw.c (mswindows_handle_sticky_modifiers):
8926         * event-msw.c (FROB):
8927         * event-msw.c (clear_sticky_modifiers):
8928         * event-msw.c (output_modifier_keyboard_state):
8929         * event-msw.c (output_alt_keyboard_state):
8930         * event-msw.c (mswindows_wnd_proc):
8931         * event-msw.c (mswindows_modifier_state):
8932         * event-msw.c (emacs_mswindows_handle_magic_event):
8933         implement sticky modifiers.
8934
8935         * event-stream.c:
8936         * event-stream.c (vars_of_event_stream):
8937         move modifier-keys-are-sticky here.
8938
8939         * lisp.h:
8940         add CHECK_FUNCTION.
8941
8942         * rangetab.c:
8943         implement map-range-table.
8944
8945
8946 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8947
8948         * redisplay-tty.c (reset_tty_modes):
8949         (tty_redisplay_shutdown): Adjust argument type to
8950         tty_frame_output_end.
8951
8952 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8953
8954         * eval.c (Fbacktrace): Don't output a line with only right
8955         parenthesis.
8956
8957 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8958
8959         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8960         (Fpq_reset_poll): Ditto.
8961
8962 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8963
8964         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8965
8966 2000-05-16  Ben Wing  <ben@xemacs.org>
8967
8968         * buffer.c:
8969         * buffer.c (dfc_convert_to/from_internal_format):
8970         * buffer.c (reinit_vars_of_buffer):
8971         Fix conversion functions to allow reentrancy.
8972
8973         * console-msw.c:
8974         * console-msw.c (mswindows_output_last_error):
8975         New fun, generally useful -- output a human-readable
8976         version of GetLastError() on the console.
8977
8978         * console-msw.h:
8979         * console-msw.h (struct mswindows_frame):
8980         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8981
8982         * console-stream.c (stream_output_begin):
8983         * console-stream.c (stream_output_end):
8984         * console-stream.c (stream_output_vertical_divider):
8985         * console-stream.c (stream_clear_region):
8986         * console-stream.c (stream_flash):
8987         * console-stream.c (console_type_create_stream):
8988         Delete blank stream methods, not needed.
8989
8990         * console.h (struct console_methods):
8991         Split begin/end methods into window and frame.
8992
8993         * event-msw.c:
8994         * event-msw.c (mswindows_handle_paint):
8995         * event-msw.c (output_alt_keyboard_state):
8996         * event-msw.c (mswindows_wnd_proc):
8997         * event-msw.c (vars_of_event_mswindows):
8998         Comment about problems with ignored-expose.
8999         Define mswindows-debug-events; not really implemented.
9000
9001         * frame-msw.c (mswindows_init_frame_1):
9002         random cleanups.
9003
9004         * glyphs-msw.c:
9005         * glyphs-msw.c (begin_defer_window_pos):
9006         * glyphs-msw.c (mswindows_unmap_subwindow):
9007         * glyphs-msw.c (mswindows_map_subwindow):
9008         * glyphs-msw.c (mswindows_resize_subwindow):
9009         Use DeferWindowPos to reduce flashing when mapping/unmapping.
9010
9011         * glyphs.c (make_image_instance_1):
9012         Fix crash.
9013
9014         * gutter.c (Fredisplay_gutter_area):
9015         Use new begin/end methods.
9016
9017         * lisp.h (Dynarr_new2):
9018         New creation fun.
9019
9020         * redisplay-msw.c:
9021         * redisplay-msw.c (mswindows_frame_output_begin):
9022         * redisplay-msw.c (mswindows_frame_output_end):
9023         * redisplay-msw.c (console_type_create_redisplay_mswindows):
9024         New begin/end methods -- handle DeferWindowPos.
9025
9026         * redisplay-output.c (redisplay_move_cursor):
9027         * redisplay-output.c (redraw_cursor_in_window):
9028         * redisplay-output.c (redisplay_update_line):
9029         * redisplay-output.c (redisplay_output_window):
9030         New begin/end methods.
9031
9032         * redisplay-tty.c:
9033         * redisplay-tty.c (tty_frame_output_begin):
9034         * redisplay-tty.c (tty_frame_output_end):
9035         * redisplay-tty.c (console_type_create_redisplay_tty):
9036         New begin/end methods.
9037
9038         * redisplay-x.c:
9039         * redisplay-x.c (x_window_output_begin):
9040         * redisplay-x.c (x_window_output_end):
9041         * redisplay-x.c (console_type_create_redisplay_x):
9042         New begin/end methods.
9043
9044         * redisplay.c (redisplay_frame):
9045         * redisplay.c (Fredisplay_echo_area):
9046         New begin/end methods.
9047         use MAYBE_DEVMETH for clear_frame; it may not exist.
9048
9049         * window.h (WINDOW_XFRAME):
9050         WINDOW_XFOO macros -- get locale and decode struct pointer.
9051
9052
9053 2000-05-12  Ben Wing  <ben@xemacs.org>
9054
9055         * emacs.c:
9056         * emacs.c (ensure_no_quitting_from_now_on):
9057         * emacs.c (fatal_error_signal):
9058         * emacs.c (mswindows_handle_hardware_exceptions):
9059         * emacs.c (main):
9060         * emacs.c (Fkill_emacs):
9061         * emacs.c (shut_down_emacs):
9062         * emacs.c (assert_failed):
9063         various improvements in fatal error handling.
9064
9065         * eval.c:
9066         move preparing_for_armageddon to emacs.c.
9067
9068         * lisp.h:
9069         declare fatal_error_in_progress.
9070
9071         * print.c:
9072         * print.c (std_handle_out_external):
9073         * print.c (std_handle_out_va):
9074         * print.c (stderr_out):
9075         * print.c (stdout_out):
9076         use console under mswin when no standard output.
9077         don't do code conversion during fatal error.
9078
9079         * scrollbar.c (Fscrollbar_page_up):
9080         * scrollbar.c (Fscrollbar_page_down):
9081         fix missing else.  reindent.
9082
9083 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
9084
9085         Emergency fix.
9086
9087         * glyphs.h (GLYPH_CACHEL_DESCENT):
9088         (GLYPH_CACHEL_DESCENT):
9089         (GLYPH_CACHEL_DESCENT):
9090         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9091         used in case these are inline functions.
9092         Use more absurd values to error check.
9093
9094         include window.h for error check functions.
9095
9096 2000-05-11  Ben Wing  <ben@xemacs.org>
9097
9098         * cmdloop.c (Freally_early_error_handler):
9099         Display message box under windows; otherwise, message will disappear
9100         before it can be viewed.
9101
9102         * console-msw.c:
9103         * console-msw.c (Fmswindows_message_box):
9104         * console-msw.c (FROB):
9105         * console-msw.c (syms_of_console_mswindows):
9106         Define new fun `mswindows-message-box'.
9107         #### I will merge this into `popup-dialog-box'; just give me
9108         a bit of time.
9109
9110         * general.c:
9111         * general.c (syms_of_general):
9112         Some new symbols used in `mswindows-message-box'.
9113
9114         * glyphs.c:
9115         * glyphs.c (Fset_image_instance_property):
9116         put warning in this fun.
9117
9118         * glyphs.h:
9119         * glyphs.h (GLYPH_CACHEL_WIDTH):
9120         * glyphs.h (GLYPH_CACHEL_ASCENT):
9121         * glyphs.h (GLYPH_CACHEL):
9122         * glyphs.h (GLYPH_CACHEL_GLYPH):
9123         define error-checking versions to try to catch a bug i've seen --
9124         redisplay gets in an infinite loop because the glyph width of the
9125         continuation glyph is 65535.
9126
9127         * lisp.h:
9128         Extern message-box stuff.
9129
9130         * window.c (allocate_window):
9131         * window.c (make_dummy_parent):
9132         * window.c (Fset_window_configuration):
9133         Use EQUAL not EQ for subwindow caches to make them work a bit
9134         better. (Something is still very broken.)
9135
9136
9137 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9138
9139         * glyphs.c (image_instantiate): Suppress gcc warnings.
9140         (Fmake_image_instance): Fix doc string.
9141         * specifier.c (Fmake_specifier): Ditto.
9142
9143 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9144
9145         * paths.h.in (PATH_LOCK): Removed.
9146         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9147         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9148
9149 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9150
9151         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9152         Document (featurep '(and xemacs 21.02)).
9153
9154 2000-05-09  Ben Wing  <ben@xemacs.org>
9155
9156         * buffer.c (complex_vars_of_buffer):
9157         update modeline-format doc.
9158
9159         * device.h:
9160         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9161
9162         * emacs.c:
9163         timeline of all released versions of Emacs, for use in creating
9164         authorship comments and in synching up.
9165
9166         * glyphs-widget.c (image_instantiator_buttons):
9167         * glyphs-widget.c (image_instantiator_edit_fields):
9168         * glyphs-widget.c (image_instantiator_combo_box):
9169         * glyphs-widget.c (image_instantiator_scrollbar):
9170         * glyphs-widget.c (image_instantiator_progress_guage):
9171         * glyphs-widget.c (image_instantiator_tree_view):
9172         * glyphs-widget.c (image_instantiator_tab_control):
9173         * glyphs-widget.c (image_instantiator_labels):
9174         * glyphs-widget.c (image_instantiator_layout):
9175         * glyphs-widget.c (image_instantiator_native_layout):
9176         rename decode_domain method to governing_domain.
9177
9178         * glyphs.c:
9179         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9180         * glyphs.c (add_entry_to_device_ii_format_list):
9181         make sure we don't put an entry more than once into the list.
9182         * glyphs.c (check_instance_cache_mapper):
9183         *************************************************************
9184         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9185         HAVE BEEN GETTING.
9186         *************************************************************
9187         * glyphs.c (get_image_instantiator_governing_domain):
9188         clean up, expand on new concept of governing domain.
9189         * glyphs.c (instantiate_image_instantiator):
9190         * glyphs.c (allocate_image_instance):
9191         use governing_domain instead of cache_domain in naming.
9192         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9193         * glyphs.c (make_image_instance_1):
9194         * glyphs.c (Fmake_image_instance):
9195         allow for any domain (not just device), and process the
9196         governing domain correctly.  very big doc fix.
9197         * glyphs.c (Fimage_instance_domain):
9198         new primitive, to retrieve the governing domain of an image instance.
9199         * glyphs.c (image_instantiate):
9200         use new governing_domain stuff.  this fixes a crash you could get
9201         by instantiating certain widget glyphs in frame locales. (should
9202         signal an error instead of crashing.)
9203         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9204         * glyphs.c (Fglyphp): clean up doc.
9205         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9206         * glyphs.c (syms_of_glyphs):
9207         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9208         * glyphs.c (image_instantiator_format_create): add some comments about
9209         bogus code.
9210         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9211         for current-display-table. (Apparently Hrjove implemented in 1998 a
9212         design I wrote up in 1996, but didn't update the doc string.)
9213
9214         * glyphs.h: clean up a doc string.
9215         * glyphs.h (governing_domain):
9216         * glyphs.h (struct image_instantiator_methods):
9217         changes for governing_domain stuff.
9218
9219         * gutter.c:
9220         * gutter.c (Fgutter_specifier_p):
9221         * gutter.c (Fgutter_size_specifier_p):
9222         * gutter.c (Fgutter_visible_specifier_p):
9223         * objects.c:
9224         * objects.c (Fcolor_specifier_p):
9225         * objects.c (Ffont_specifier_p):
9226         * objects.c (Fface_boolean_specifier_p):
9227         doc strings moved to make-*-specifier.
9228
9229         * redisplay.c (add_disp_table_entry_runes_1):
9230         * redisplay.c (generate_fstring_runes):
9231         * redisplay.c (screen):
9232         add random comments and doc strings.
9233
9234         * specifier.c:
9235         * specifier.c (Fmake_specifier):
9236         major overhaul of this doc string.
9237
9238         * specifier.c (Fvalid_specifier_domain_p):
9239         comment about the bogosity of image instances being domains.
9240         * specifier.c (decode_domain):
9241         now non-static, used in glyphs.c.
9242         * specifier.c (specifier_instance):
9243         comment about the bogosity of image instances being domains.
9244         * specifier.c (Fgeneric_specifier_p):
9245         move doc string to make-generic-specifier.
9246         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9247         rebackslashify.
9248
9249         * specifier.h:
9250         * specifier.h (DOMAIN_FRAME):
9251         * specifier.h (DOMAIN_LIVE_P):
9252         * specifier.h (DOMAIN_XDEVICE):
9253         rebackslashify.
9254         add comments about problems with these macros.
9255         prototype for decode_domain.
9256
9257         * toolbar.c:
9258         * toolbar.c (Ftoolbar_specifier_p):
9259         move doc string to `make-toolbar-specifier'.
9260
9261         * window.c (window_unmap_subwindows_cache_mapper):
9262         *************************************************************
9263         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9264         HAVE BEEN GETTING.
9265         *************************************************************
9266
9267 2000-05-09  Andy Piper  <andy@xemacs.org>
9268
9269         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9270
9271         * window.c (Fset_window_configuration): reset the frame subwindow
9272         cache and re-initialize the window subwindow caches.
9273
9274         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9275
9276 2000-05-09  Ben Wing  <ben@xemacs.org>
9277
9278         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9279         DWORD.
9280
9281 2000-04-26  Mike Woolley  <mike@bulsara.com>
9282
9283         * ntheap.c: Changed recreate_heap to limit the amount reserved
9284         for the heap to that which is actually available. Also now
9285         displays a message box (with some dignostics) in the event that
9286         it still can't start.
9287
9288 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9289
9290         * callproc.c (Fold_call_process_internal): GCPRO path
9291
9292 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9293
9294         Patch by Bill Perry.
9295
9296         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9297         back data instead of #ifdef.
9298         (Fscrollbar_page_down): ditto.
9299
9300 2000-05-07  Ben Wing  <ben@xemacs.org>
9301
9302         * buffer.h:
9303         Kludge for defining Qmswindows_tstr.
9304
9305         * nt.c:
9306         * nt.c (open_input_file):
9307         * nt.c (open_output_file):
9308         * nt.c (rva_to_section):
9309         * nt.c (mswindows_executable_type):
9310         Move all memory-mapped-file routines here (some were in unexnt.c,
9311         which is bad because they are used by process-nt.c, and unexnt
9312         won't be around when portable dumping).  Synched the above routines
9313         with FSF 20.6.
9314
9315         * nt.h:
9316         Removed ifdef'd out bogus code.
9317         Fixed some prototypes.
9318
9319         * nt.h (file_data):
9320         * nt.h (OFFSET_TO_RVA):
9321         * nt.h (RVA_TO_OFFSET):
9322         * nt.h (RVA_TO_PTR):
9323         Moved the memory-mapped-file structures, macros and prototypes
9324         here, to parallel nt.c.  ntheap.h should really be removed
9325         entirely, and it's a non-portable-dumper specific file.
9326
9327         * ntheap.h (round_to_next):
9328         Moved the memory-mapped-file structures, macros and prototypes
9329         to nt.h.
9330
9331         * ntproc.c (compare_env):
9332         Moved rva_to_section and mswindows_executable_type to nt.c.
9333         Moved compare_env to process-nt.c.
9334         ntproc.c will die, one day.
9335
9336         * ntproc.c (sys_spawnve):
9337         Account for win32_ -> mswindows_.
9338
9339         * process-nt.c:
9340         * process-nt.c (struct nt_process_data):
9341         * process-nt.c (ensure_console_window_exists):
9342         * process-nt.c (compare_env):
9343         * process-nt.c (nt_create_process):
9344         * process-nt.c (nt_kill_process_by_pid):
9345         * process-nt.c (syms_of_process_nt):
9346         * process-nt.c (vars_of_process_nt):
9347         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9348         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9349         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9350         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9351         Move compare_env here from ntproc.c.
9352
9353         * process.c (Fprocess_send_region):
9354         Takes an optional fourth argument, BUFFER, which should fix some
9355         problems with call-process.
9356
9357         * syscommctrl.h:
9358         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9359
9360         * syswindows.h:
9361         Move ICC_BAR_CLASSES to syscommctrl.h.
9362         Add preliminary macros for MSWindows/Mule.  More to come.
9363
9364         * unexnt.c:
9365         * unexnt.c (unexec):
9366         open_output_file moved to nt.c.
9367
9368
9369 2000-05-05  Andy Piper  <andy@xemacs.org>
9370
9371         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9372         instance from the frame cache also since GC may catch up too late
9373         to make frame deletion sane.
9374
9375 2000-05-04  Andy Piper  <andy@xemacs.org>
9376
9377         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9378         (x_finalize_image_instance): ungcpro on deletion.
9379
9380         * glyphs.c (image_instantiator_format_create): give pointers a
9381         query geometry method so that the geometry is at least set.
9382
9383         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9384         initialize layouts if using widgets.
9385
9386 2000-05-03  Andy Piper  <andy@xemacs.org>
9387
9388         * nt.c: remove bogus reference to sysmmsystem.h
9389
9390         * gui-x.c (popup_selection_callback): fix no selection abort.
9391
9392 2000-05-02  Andy Piper  <andy@xemacs.org>
9393
9394         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9395         (mswindows_widget_instantiate): ditto.
9396
9397         * glyphs-widget.c (initialize_widget_image_instance): initialize
9398         children correctly.
9399         (widget_instantiate): cope with children and items in the same
9400         instance.
9401
9402         * glyphs.c (mark_image_instance): cope with children as a first
9403         class member.
9404         (image_instance_equal): ditto.
9405         (image_instance_hash): ditto.
9406         (image_instance_changed): ditto.
9407
9408 2000-04-30  Andy Piper  <andy@xemacs.org>
9409
9410         * glyphs.c (subwindow_query_geometry): new function. Return some
9411         defaults.
9412         (subwindow_instantiate): don't assign dimensions if none have been
9413         given.
9414         (image_instantiator_format_create): add subwindow_query_geometry.
9415         (print_image_instance): cope with layouts as widgets.
9416
9417 2000-04-29  Andy Piper  <andy@xemacs.org>
9418
9419         * frame.c (delete_frame_internal): call
9420         free_frame_subwindow_instance_cache so that all subwindows are
9421         finalized before their parent.
9422         (mark_frame): remove subwindow_cachels.
9423         (Fmake_frame): remove subwindow_cachel manipulation.
9424         (allocate_frame_core): subwindow_instance_cache is a weak list.
9425         (delete_frame_internal): set subwindow_instance_cache to nil.
9426
9427         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9428         finalization safe.
9429         (mswindows_finalize_image_instance): use the device
9430         not the domain as the domain may have died already.
9431
9432         * glyphs-x.c (x_finalize_image_instance): ditto.
9433         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9434         HEIGHT.
9435
9436         * redisplay-output.c (redisplay_unmap_subwindows): update for
9437         subwindow instance cache as a weak list.
9438         (redisplay_unmap_subwindows_maybe): ditto.
9439         (redisplay_unmap_subwindows_except_us): ditto.
9440
9441         * glyphs.c (unmap_subwindow): error checking will check the domain
9442         so don't deal with it here. Don't use cachels anymore.
9443         (map_subwindow): ditto.
9444         (update_subwindow_cachel_data): remove old accessor names.
9445         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9446         (Fresize_subwindow): don't update cachel.
9447         (mark_subwindow_cachels):
9448         (update_subwindow_cachel_data):
9449         (add_subwindow_cachel):
9450         (get_subwindow_cachel_index):
9451         (update_subwindow_cachel):
9452         (reset_subwindow_cachels):
9453         (mark_subwindow_cachels_as_not_updated): deleted.
9454         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9455         subwindow instance to the frame cache.
9456         (find_matching_subwindow): update for subwindow instance cache as
9457         a weak list.
9458         (update_widget_instances): ditto.
9459         (image_instance_type_to_mask):inlined.
9460         (free_frame_subwindow_instance_cache): new function. finalize all
9461         subwindows that are instantiated.
9462
9463         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9464         of cachel information.
9465         (IMAGE_INSTANCE_DISPLAY_X):
9466         (IMAGE_INSTANCE_DISPLAY_Y):
9467         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9468         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9469         (XIMAGE_INSTANCE_DISPLAY_X):
9470         (XIMAGE_INSTANCE_DISPLAY_Y):
9471         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9472         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9473         remove subwindow_cachel structure and function references.
9474         (image_instance_type_to_mask): inline from glyphs.c
9475
9476         * redisplay.c (redisplay_frame): remove subwindow_cachel
9477         references.
9478
9479         * frame.h (struct frame): remove subwindow_cachels.
9480         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9481
9482         * frameslots.h: add subwindow_instance_cache.
9483
9484         * window.c (replace_window): check subwindow cache of replacement.
9485         (window_unmap_subwindows_cache_mapper):
9486         (window_unmap_subwindows): new functions. Unmap all subwindows
9487         cached on this window.
9488         (mark_window_as_deleted): unmap all subwindows.
9489
9490 2000-04-27  Andy Piper  <andy@xemacs.org>
9491
9492         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9493
9494         * glyphs-widget.c (widget_layout): return something.
9495         (layout_layout): return something. Fail if not initialized.
9496         (layout_query_geometry): ditto.
9497         (image_instantiator_native_layout): new function. Initialized the
9498         native layout type.
9499         (widget_instantiate): don't do layout stuff here.
9500
9501         * glyphs.c (instantiate_image_instantiator): reorded calling or
9502         instantiate and post_instantiate with layout in between.
9503         (image_instance_layout): be more selective about deciding whether
9504         the layout has been done or not.
9505
9506         * glyphs.h (struct image_instantiator_methods): return a value
9507         from layout_method.
9508
9509 2000-04-26  Andy Piper  <andy@xemacs.org>
9510
9511         * glyphs.c (allocate_image_instance): make initial width and
9512         height unspecified. Set initialized to 0.
9513
9514         * syscommctrl.h new file. Encapsulates commctrl.h.
9515
9516         * syswindows.h new file. Encapsulates windows.h.
9517
9518         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9519         * nt.c: ditto.
9520         * console-msw.h: ditto.
9521
9522         * redisplay-tty.c (tty_output_display_block): remove layout references.
9523
9524         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9525         window handle rather than just the frame.
9526
9527         * glyphs.c (mark_image_instance): remove layout references.
9528         (print_image_instance): ditto.
9529         (image_instance_equal): ditto.
9530         (image_instance_hash): ditto.
9531         (decode_image_instance_type): ditto.
9532         (encode_image_instance_type): ditto.
9533         (image_instantiate): ditto.
9534         (allocate_glyph): ditto.
9535         (Fimage_instance_height): ditto.
9536         (Fimage_instance_width): ditto.
9537         (update_subwindow): ditto.
9538
9539         * redisplay-x.c (x_output_display_block): recode for layouts as
9540         widgets.
9541
9542         * redisplay-output.c (redisplay_output_layout): recode for layouts
9543         as widgets.
9544         (compare_runes): remove layout references.
9545
9546         * redisplay-msw.c (mswindows_output_display_block): recode for
9547         layouts as widgets.
9548
9549         * glyphs-widget.c (image_instantiator_layout): remove
9550         layout_possible_dest_types.
9551         (layout_possible_dest_types): deleted.
9552
9553         * glyphs.h (image_instance_type): remove layout references.
9554         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9555         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9556         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9557
9558 2000-04-25  Andy Piper  <andy@xemacs.org>
9559
9560         * glyphs-widget.c (image_instantiator_buttons):
9561         (image_instantiator_edit_fields):
9562         (image_instantiator_combo_box):
9563         (image_instantiator_scrollbar):
9564         (image_instantiator_progress_guage):
9565         (image_instantiator_tree_view):
9566         (image_instantiator_tab_control):
9567         (image_instantiator_labels):
9568         (image_instantiator_layout): call default post_instantiate method.
9569         (widget_post_instantiate): new function. Simply lays out the
9570         widgets.
9571
9572         * glyphs.h (struct image_instantiator_methods): add
9573         post_instantiate method.
9574
9575         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9576         method calls.
9577
9578 2000-04-23  Andy Piper  <andy@xemacs.org>
9579
9580         * glyphs.h (struct image_instantiator_methods): add
9581         decode_domain_method.
9582         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9583         derived from the domain.
9584         (IMAGE_INSTANCE_FRAME): new accessor.
9585         (XIMAGE_INSTANCE_FRAME): ditto.
9586
9587         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9588         instead of _SUBWINDOW_FRAME.
9589         (finalize_image_instance): ditto.
9590         (Fimage_instance_foreground): ditto.
9591         (Fimage_instance_background): ditto.
9592         (image_instantiate): ditto.
9593         (update_subwindow_cachel): ditto.
9594         (update_subwindow): ditto.
9595         (unmap_subwindow): ditto.
9596         (map_subwindow): ditto
9597         (subwindow_instantiate): ditto.
9598         * glyphs-msw.c (mswindows_update_widget): ditto.
9599         (mswindows_progress_gauge_instantiate): ditto.
9600         (mswindows_tab_control_update): ditto.
9601         * glyphs-x.c (x_update_widget): ditto.
9602         (x_widget_instantiate): ditto.
9603         (x_tab_control_instantiate): ditto.
9604         (x_tab_control_update): ditto.
9605         * event-msw.c (mswindows_wnd_proc): ditto
9606
9607         * glyphs-widget.c (image_instantiator_layout): use
9608         subwindow_decode_domain.
9609         (image_instantiator_buttons): ditto.
9610         (image_instantiator_edit_fields): ditto.
9611         (image_instantiator_combo_box): ditto.
9612         (image_instantiator_scrollbar): ditto.
9613         (image_instantiator_progress_guage): ditto.
9614         (image_instantiator_tree_view): ditto.
9615         (image_instantiator_tab_control): ditto.
9616         (image_instantiator_labels): ditto.
9617         (image_instantiator_layout): ditto.
9618
9619         * glyphs.c: add instance error checking to many functions.
9620         (instantiate_image_instantiator): decode device from cache_domain.
9621         (image_instantiate): partially rewrite by using
9622         decode_image_instantiator_domain to determine what domain the
9623         instance needs to be cached in.
9624         (decode_image_instantiator_domain): new function. Determine what
9625         domain the image needs to be cached in.
9626         (check_window_subwindow_cache): new error checking function.
9627         (check_instance_cache_mapper): ditto.
9628         (check_image_instance_structure): ditto.
9629         (subwindow_decode_domain): new function. Encodes a window as a
9630         subwindow's cache domain.
9631         (image_instantiator_format_create): use it for text and
9632         subwindows.
9633
9634 2000-04-21  Andy Piper  <andy@xemacs.org>
9635
9636         * glyphs.c (image_instance_device): new function.
9637         (image_instance_frame): new function.
9638         (image_instance_window): new function.
9639         (image_instance_live_p): new function.
9640
9641         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9642         cache to nil.
9643
9644         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9645         (IMAGE_INSTANCE_DOMAIN): new accessor.
9646         (XIMAGE_INSTANCE_DOMAIN): ditto.
9647
9648         * glyphs-x.c (x_finalize_image_instance): device->domain.
9649
9650         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9651         (mswindows_finalize_image_instance): ditto.
9652
9653         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9654         (gif_instantiate): ditto.
9655         (png_instantiate): ditto.
9656         (tiff_instantiate): ditto.
9657
9658         * glyphs.c (instantiate_image_instantiator): use domain rather
9659         than device.
9660         (mark_image_instance): device -> domain.
9661         (print_image_instance): ditto.
9662         (finalize_image_instance): ditto.
9663         (image_instance_equal): ditto.
9664         (allocate_image_instance): ditto.
9665         (Fcolorize_image_instance): ditto.
9666         (query_string_geometry): ditto.
9667         (image_instantiate): ditto
9668         (query_string_font): ditto.
9669         (image_instantiate): ditto.
9670         (update_subwindow): ditto.
9671         (unmap_subwindow): ditto.
9672         (map_subwindow): ditto.
9673         (subwindow_instantiate): ditto.
9674
9675         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9676         (DOMAIN_FRAME): ditto.
9677         (DOMAIN_WINDOW): ditto.
9678         (DOMAIN_LIVE_P): ditto.
9679         (XDOMAIN_DEVICE): ditto.
9680         (XDOMAIN_FRAME): ditto.
9681         (XDOMAIN_WINDOW): ditto.
9682
9683         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9684         a valid specifier domain.
9685
9686 2000-04-19  Andy Piper  <andy@xemacs.org>
9687
9688         * glyphs-widget.c (syms_of_glyphs_widget): remove
9689         widget-callback-current-channel.
9690         (vars_of_glyphs_widget): ditto.
9691         * glyphs.h: ditto
9692
9693         * gui.c (get_gui_callback): revert to previous behaviour.
9694
9695 2000-04-18  Andy Piper  <andy@xemacs.org>
9696
9697         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9698         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9699         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9700
9701         * glyphs.c (image_instance_equal): add margin_width.
9702         (image_instance_hash): ditto.
9703
9704         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9705         (layout_query_geometry): ditto.
9706         (layout_layout): ditto.
9707         (syms_of_glyphs_widget): add margin-width.
9708         (image_instantiator_layout): allow margin-width.
9709
9710         * glyphs.c (update_widget_instances): make a normal function.
9711         (syms_of_glyphs): remove Qupdate_widget_instances.
9712         * glyphs.h: ditto.
9713
9714         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9715         so that we don't corrupt ideas about the last event or
9716         command. Remove widget-callback-current-channel fiddling.
9717         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9718
9719 2000-05-01  Martin Buchholz <martin@xemacs.org>
9720
9721         * XEmacs 21.2.33 is released.
9722
9723 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9724
9725         * make-src-depend: Allow dots in header file name.
9726
9727 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9728
9729         * mule-charset.h (struct charset_lookup): Add
9730         next_allocated_1_byte_leading_byte and
9731         next_allocated_2_byte_leading_byte.
9732         * mule-charset.c: Move above two variables so that those values
9733         will be dumped.
9734
9735 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9736
9737         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9738         when string length is zero.
9739         (find_charsets_in_emchar_string): Ditto.
9740
9741 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9742
9743         * lisp.h: extern Qdialog and Qmenubar.
9744
9745         * gui-x.c: added events.h.
9746                 also fixed typo which made the file uncompilable.
9747
9748         * general.c: Added Qmenubar and Qdialog
9749
9750 2000-04-28  Ben Wing  <ben@xemacs.org>
9751
9752         * frame-msw.c (mswindows_init_frame_1):
9753         * frame-msw.c (mswindows_mark_frame):
9754         * event-msw.c (mswindows_enqueue_dispatch_event):
9755         * console-msw.h:
9756         * console-msw.h (struct mswindows_frame):
9757         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9758         there are now three hash tables for callbacks.
9759         mswindows_enqueue_dispatch_event is no longer static.
9760
9761         * dialog-x.c (maybe_run_dbox_text_callback):
9762         * dialog-x.c (dbox_descriptor_to_widget_value):
9763         switch to new cons3 form for callbacks.
9764
9765         * glyphs-msw.c (mswindows_register_gui_item):
9766         * glyphs-msw.c (mswindows_widget_instantiate):
9767         * glyphs-msw.c (add_tree_item):
9768         * glyphs-msw.c (add_tab_item):
9769         new image instance parameter, so it can be passed to callback-ex.
9770         respect :callback-ex as well as :callback.
9771
9772         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9773         add :callback-ex.
9774
9775         * glyphs.c (print_image_instance):
9776         prettify, e.g. now prints widget type.
9777
9778         * gui-x.h:
9779         certain funs have new image instance parameter.
9780
9781         * gui.c:
9782         * gui.c (get_gui_callback):
9783         * gui.c (gui_item_add_keyval_pair):
9784         * gui.c (gui_item_init):
9785         * gui.c (gui_add_item_keywords_to_plist):
9786         * gui.c (mark_gui_item):
9787         * gui.c (gui_item_hash):
9788         * gui.c (gui_item_equal):
9789         * gui.c (copy_gui_item):
9790         * gui.c (syms_of_gui):
9791         recognize callback-ex in a number of places.
9792         also, fix the annoying "can't get out of yes-no dialog" bug.
9793
9794         * gui.h:
9795         * gui.h (struct Lisp_Gui_Item):
9796         recognize callback-ex in a number of places.
9797
9798         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9799         new parameter in button_item_to_widget_value.
9800
9801         * glyphs-x.c (x_update_widget):
9802         * glyphs-x.c (x_button_instantiate):
9803         * glyphs-x.c (x_button_update):
9804         * glyphs-x.c (x_progress_gauge_instantiate):
9805         * glyphs-x.c (x_edit_field_instantiate):
9806         * glyphs-x.c (x_combo_box_instantiate):
9807         * glyphs-x.c (x_tab_control_instantiate):
9808         * glyphs-x.c (x_label_instantiate):
9809         new image instance parameter in various places.
9810
9811         * event-Xt.c:
9812         * event-Xt.c (enqueue_Xt_dispatch_event):
9813         this fun gets exported.
9814
9815         * gui-msw.c:
9816         * gui-msw.c (mswindows_handle_gui_wm_command):
9817         handle both :callback and :callback-ex, and generate our own
9818         event because it's one of the callback-ex arguments.
9819
9820         * gui-x.c:
9821         * gui-x.c (popup_selection_callback):
9822         handle both :callback and :callback-ex, and generate our own
9823         event because it's one of the callback-ex arguments.
9824         * gui-x.c (button_item_to_widget_value):
9825         * gui-x.c (gui_items_to_widget_values_1):
9826         * gui-x.c (gui_item_children_to_widget_values):
9827         * gui-x.c (gui_items_to_widget_values):
9828         new image instance parameter in various places.
9829
9830         * fns.c (Freplace_list):
9831         fix small typo in doc string.
9832
9833         * lisp.h:
9834         declare enqueue_Xt_dispatch_event.
9835
9836 2000-04-28  Ben Wing  <ben@xemacs.org>
9837
9838         * buffer.c:
9839         * buffer.c (Frecord_buffer):
9840         * buffer.c (syms_of_buffer):
9841         delete record-buffer-hook.
9842
9843         * fns.c:
9844         * fns.c (Freplace_list):
9845         * fns.c (syms_of_fns):
9846         new primitive replace-list.
9847
9848         * frameslots.h:
9849         slot for old buffer-alist.
9850
9851         * lisp.h:
9852         exfun replace-list.
9853
9854         * redisplay.c:
9855         * redisplay.c (redisplay_frame):
9856         * redisplay.c (syms_of_redisplay):
9857         * redisplay.c (vars_of_redisplay):
9858         new hook buffer-list-changed-hook.
9859         call it.
9860
9861 2000-04-27  Ben Wing  <ben@xemacs.org>
9862
9863         * extents.h: extern in_modeline_generation.
9864
9865         * redisplay.c (generate_formatted_string_db): set
9866         in_modeline_generation.
9867
9868         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9869         flags if in modeline generation.  otherwise frame-modified-tick
9870         is ticked far too often.
9871         Declare in_modeline_generation.
9872
9873 2000-04-26  Ben Wing  <ben@xemacs.org>
9874
9875         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9876         option.
9877         (vars_of_emacs): add quick-build as an error-checking option.
9878         A bit kludgy, but there doesn't seem much point in creating
9879         a real var for this.
9880
9881         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9882
9883 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9884
9885         * redisplay.h (struct display_line): Add a new variable,
9886         line_continuation.
9887
9888         * redisplay.c (create_text_block): Set dl->line_continuation if
9889         the line continues.
9890         (create_string_text_block): Ditto.
9891         (regenerate_window_incrementally): Use line_continuation instead
9892         of searching continuation glyph.
9893         (add_margin_runes): Call add_glyph_rune.
9894         (add_glyph_rune): Handle margin glyph.
9895
9896 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9897
9898         * filelock.c (fill_in_lock_file_name):
9899         ANSIfy.
9900         Check for IS_ANY_SEP instead of '/'.
9901         (lock_file_1):
9902         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9903         Never check errno without first seeing that system call failed.
9904         (unlock_file): Add GCPRO.
9905         (Flock_buffer): Fix docstring.
9906         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9907
9908 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9909
9910         * sysdep.c (get_pty_max_bytes):
9911         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9912         strings longer than 252 bytes.
9913
9914         * md5.c: Unconditionally include ANSI header <limits.h>
9915
9916         * glyphs-x.c (convert_EImage_to_XImage):
9917         * lisp-union.h (union Lisp_Object):
9918         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9919
9920 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9921
9922         * filelock.c (current_lock_owner): Remove unused variable o, p.
9923
9924 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9925
9926         * callint.c: Remove multiply defined symbol Qlet
9927         (syms_of_callint): ditto.
9928
9929 2000-04-14  Andy Piper  <andy@xemacs.org>
9930
9931         * general.c (syms_of_general): add last-command, this-command, let
9932         and funcall.
9933
9934         * lisp.h: declare various symbols.
9935
9936         * glyphs.h: declare Qwidget_callback_current_channel;
9937
9938         * glyphs-widget.c (syms_of_glyphs_widget): add
9939         Qgui_callback_current_channel.
9940         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9941
9942         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9943         widget-callback-current-channel when invoking the interactive
9944         arg. Also bind last-command and next-command when invoking the
9945         widget updates.
9946         * gui-x.c (popup_selection_callback): ditto.
9947
9948         * gui.c (get_gui_callback): massage args so that we are always
9949         calling eval. This allows us to add our own variable bindings
9950         outside.
9951
9952         * glyphs-x.c (x_button_instantiate): use
9953         gui_items_to_widget_values since this is GC safe.
9954         (x_progress_gauge_instantiate): ditto.
9955         (x_edit_field_instantiate): ditto.
9956         (x_label_instantiate): ditto.
9957
9958         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9959         (emacs_Xt_event_widget_focus_out): new function
9960         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9961         focus.
9962         (emacs_Xt_event_add_widget_actions): new function. add focus
9963         functions as actions.
9964         (init_event_Xt_late): use it.
9965
9966 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9967
9968         * event-stream.c (Fdispatch_event): Doc fix.
9969
9970 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9971
9972         * postgresql.c: Remove all references to PQsetenv*.
9973
9974         * postgresql.h: Remove references to PGsetenvHandler object.
9975         * lrecord.h (lrecord_type): Ditto.
9976
9977 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9978
9979         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9980         real_heigh and real_width members, and accessor macros for these.
9981
9982         * glyphs-msw.c (init_image_instance_geometry): New function.
9983         (init_image_instance_from_dibitmap): Use it.
9984         (mswindows_resource_instantiate): Use it.
9985         (init_image_instance_from_xbm_inline): Use it.
9986         (mswindows_initialize_image_instance_mask): Use real bitmap
9987         geometry.
9988         (mswindows_create_resized_bitmap): Ditto.
9989         (mswindows_create_resized_mask): Ditto.
9990
9991         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9992         and bitmap to their surface size.
9993
9994 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9995
9996         * process-unix.c (unix_send_process): Guard against process MIA
9997         after Faccept_process_output.
9998
9999 2000-04-11  Ben Wing  <ben@xemacs.org>
10000
10001         * eval.c (unbind_to_hairy): fix brokenness introduced by
10002         nanosecond speed improvements.
10003
10004 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
10005
10006         * sunplay.c (init_device): To play sounds correctly, the device
10007         apparently needs to be initialized at least once by XEmacs.  Make
10008         it so.
10009
10010 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10011
10012         * redisplay.c (add_margin_runes): Add text image glyph
10013           handling.
10014
10015 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10016
10017         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
10018         gcc is newer than 2.5.
10019
10020 2000-04-06  Colin Rafferty  <colin@xemacs.org>
10021
10022         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
10023
10024         * fns.c (size_bit_vector):
10025         * alloc.c (size_vector):
10026         (make_vector_internal):
10027         (make_bit_vector_internal):
10028         (sweep_bit_vectors_1):
10029         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
10030
10031 2000-04-06  Andy Piper  <andy@xemacs.org>
10032
10033         * gmalloc.c (malloc): undo previous change.
10034         (malloc): ditto.
10035         (free): ditto.
10036         (realloc): ditto.
10037
10038 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
10039
10040         * line-number.c (buffer_line_number): Revert to former version.
10041
10042 2000-04-06  Andy Piper  <andy@xemacs.org>
10043
10044         * gmalloc.c (malloc): add error checking.
10045         (malloc): ditto.
10046         (free): ditto.
10047         (realloc): ditto.
10048
10049         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
10050         button_item_to_widget_value arg.
10051
10052         * glyphs-x.c (x_button_instantiate): add extra
10053         button_item_to_widget_value arg.
10054         (x_progress_gauge_instantiate): ditto.
10055         (x_edit_field_instantiate): ditto.
10056         (x_label_instantiate): ditto.
10057
10058         * gui-x.c (gui_items_to_widget_values_1): add extra
10059         button_item_to_widget_value arg.
10060         (button_item_to_widget_value): add extra menu_item_p arg.
10061
10062         * gui-x.h: change signature of button_item_to_widget_value.
10063
10064         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
10065         button_item_to_widget_value arg.
10066
10067 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10068
10069         * buffer.h (struct buffer): auto_save_modified should be long.
10070
10071 2000-04-05  Andy Piper  <andy@xemacs.org>
10072
10073         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
10074         type.
10075         (button_query_geometry): give a little more room so that athena
10076         buttons fit.
10077
10078 2000-04-05  Andy Piper  <andy@xemacs.org>
10079
10080         * faces.c (complex_vars_of_faces): The widget face should inherit
10081         the font of the gui-element face.
10082
10083 2000-04-04  Andy Piper  <andy@xemacs.org>
10084
10085         * glyphs-x.c (x_button_update): new function. unconditionally
10086         update a button's state when the instance is dirty.
10087         (image_instantiator_format_create_glyphs_x): add x_button_update.
10088         (x_widget_instantiate): remove old resize cruft.
10089
10090 2000-04-02  Andy Piper  <andy@xemacs.org>
10091
10092         * frame.c (change_frame_size_1): The introduction of gutters means
10093         that we need to allow 0 as a potential frame dimension.
10094
10095 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10096
10097         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10098         image glyph if allow_cursor.
10099         (add_hscroll_rune): Don't allow cursor to border glyph.
10100         (create_text_block): Ditto.
10101
10102         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10103         text not in buffer.
10104         (redisplay_output_layout): Call ensure_face_cachel_complete for
10105         text image glyph.
10106
10107
10108 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10109
10110         * redisplay.c (add_glyph_rune): Adding text image as text runes.
10111
10112         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10113         not in buffer
10114
10115         * redisplay-tty.c (tty_output_display_block): Delete the routine
10116         for text image glyph
10117         * redisplay-x.c (x_output_display_block): ditto
10118         * redisplay-msw.c (mswindows_output_display_block): ditto
10119
10120 2000-02-02  Mike Alexander  <mta@arbortext.com>
10121
10122         Note: Some of these were committed by accident as part of other
10123         patches.
10124
10125         * regex.c (regex_compile): Avoid compiler warnings.
10126
10127         * ntproc.c (sys_spawnve): Avoid compiler warnings.
10128
10129         * nt.h: Declare term_ntproc correctly.
10130
10131         * nt.c: Remove incorrect declaration of get_home_directory which
10132         is declared correctly in lisp.h.
10133
10134         * keymap.c (get_keyelt): Avoid compiler warnings.
10135         (raw_lookup_key_mapper): Avoid compiler warnings.
10136
10137         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10138
10139         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10140
10141         * filemode.c (mode_string): Avoid compiler warnings.
10142
10143         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10144         avoid warning.
10145
10146         * events-mod.h: Undef some things that winuser.h defines differently.
10147
10148         * data.c (Faset): Avoid compiler warnings.
10149
10150         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10151
10152 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10153
10154         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10155         Fall through to simple beep on error.
10156         Replace "extern" by real header file.
10157
10158         * linuxplay.c: Use nativesound.h
10159         (play_sound_data): Return error code. Be less verbose on error.
10160
10161         * sunplay.c: Use nativesound.h
10162         (play_sound_data): Return error code. Be less verbose on error.
10163
10164         * ntplay.c: Use nativesound.h
10165         (play_sound_data): Return fake error code
10166
10167         * sgiplay.c: Use nativesound.h
10168         (play_sound_data): Return error code
10169
10170         * hpplay.c: Use nativesound.h, partially implement
10171         new error code. Break compilation until finished.
10172         (play_sound_data): error code.
10173
10174         * nativesound.h (play_sound_file):
10175           (play_sound_data): Prototype in new header.
10176
10177 2000-03-31  Andy Piper  <andy@xemacs.org>
10178
10179         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10180         for toggle and radio buttons.
10181         (image_instantiator_buttons): use it.
10182
10183 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10184
10185         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10186         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10187         found. Scrollbar event probably belonged to some old config.
10188
10189 2000-03-31  Andy Piper  <andy@xemacs.org>
10190
10191         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10192         than 1.
10193         (initialize_widget_image_instance): default layout to
10194         LAYOUT_HORIZONTAL rather than 0.
10195         (widget_instantiate): reverse the item list at the end rather than
10196         every iteration.
10197         (layout_layout): re-code for the border text at the front of the
10198         item list rather than at the end.
10199         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10200         provided by the user.
10201         (widget_query_geometry): comment.
10202
10203 2000-03-30  Andy Piper  <andy@xemacs.org>
10204
10205         * glyphs-widget.c (image_instantiator_layout): allow standard
10206         widget keywords in layouts.
10207
10208         * gutter.c (output_gutter): cope with nil gutter contents.
10209
10210         * frame.c (Fset_frame_properties): add gutter docs.
10211
10212 2000-03-29  Andy Piper  <andy@xemacs.org>
10213
10214         * toolbar-msw.c (TBSTYLE_FLAT): add.
10215         (mswindows_output_toolbar): minor fiddling.
10216
10217 2000-03-29  Andy Piper  <andy@xemacs.org>
10218
10219         * gutter.c (output_gutter): force gutter size recalculation if
10220         what we are trying to display won't fit.
10221         (update_gutter_geometry): new function. A per-gutter version of
10222         update_frame_gutter_geometry.
10223         (update_frame_gutter_geometry): use it.
10224         (redraw_exposed_gutter): add extra debugging output.
10225
10226 2000-03-28  Mike Alexander  <mta@arbortext.com>
10227
10228         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10229         (pdump_file_unmap): Implement it on Windows
10230         (pdump_file_get): Save alocated handles for pdump_file_unmap
10231
10232 2000-03-28  Andy Piper  <andy@xemacs.org>
10233
10234         * gui.c (get_gui_callback): treat Quit specially.
10235
10236 2000-03-27  Andy Piper  <andy@xemacs.org>
10237
10238         * glyphs.c (image_instantiate): be careful to check in the same
10239         way we assigned.
10240
10241 2000-03-27  Didier Verna  <didier@xemacs.org>
10242
10243         * config.h.in: define the proper SMART_INCLUDE macro.
10244         handle renaming of `foo_h_path' to `foo_h_file'.
10245
10246         * database.c: ditto.
10247
10248         * emacs.c: ditto.
10249
10250         * linuxplay.c: ditto.
10251
10252         * terminfo.c: ditto.
10253
10254         * tooltalk.h: ditto.
10255
10256 2000-03-27  Andy Piper  <andy@xemacs.org>
10257
10258         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10259         gets updated whenever the face might have changed.
10260
10261 2000-03-26  Mike Alexander  <mta@arbortext.com>
10262
10263         * dumper.c (pdump_resource_free): Fix the comment.
10264
10265 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10266
10267         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10268
10269 2000-03-22  Mike Alexander  <mta@arbortext.com>
10270
10271         * dumper.c: Include Windows headers on Windows
10272         (pdump_resource_free): Add a body to the function
10273         (pdump_load): exe_name -> exe_path and add some comments.
10274
10275 2000-03-25  Mike Alexander  <mta@arbortext.com>
10276
10277         * gui.c (copy_gui_item_tree): Return a value in all cases
10278
10279 2000-03-21  Didier Verna  <didier@xemacs.org>
10280
10281         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10282         lwlib/config.h.in.
10283         (SMART_INCLUDE): new macro.
10284         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10285         the proper location.
10286
10287         * postgresql.c: use it.
10288
10289         * inline.c: ditto.
10290
10291 2000-03-24  Andy Piper  <andy@xemacs.org>
10292
10293         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10294         do this.
10295
10296 2000-03-24  Andy Piper  <andy@xemacs.org>
10297
10298         * redisplay-output.c (compare_runes): use image_instance_changed
10299         to detect changes. Do not depend on glyphs_changed, only depend on
10300         dirtiness.
10301          (redisplay_output_layout): add debug messages.
10302         (compare_runes): ditto.
10303
10304         * glyphs.h: declare new functions.
10305         (struct Lisp_Image_Instance): remove percent and associated
10306         accessors.
10307
10308         * gui.h: declare new copying functions.
10309
10310         * gui.c (copy_gui_item_tree): new function.
10311         (copy_gui_item): new function.
10312         (gui_item_id_hash): revert to standard hash.
10313         (gui_item_hash): ditto.
10314         (gui_item_hash_internal): deleted.
10315         (mark_gui_item): mark value.
10316         (gui_item_add_keyval_pair): add value.
10317         (gui_item_init): ditto.
10318         (gui_add_item_keywords_to_plist): ditto.
10319         (gui_item_equal): ditto.
10320         (syms_of_gui): add Q_value.
10321
10322         * glyphs-x.c (x_progress_gauge_update): use pending items and
10323         value for setting the state.
10324         (x_update_widget): don't set items from pending here.
10325
10326         * glyphs-widget.c (update_widget): update items here.
10327         (progress_gauge_set_property): use items for storing value. Put
10328         new value in pending items.
10329
10330         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10331         items for new value. Convert percent -> value.
10332         (mswindows_tab_control_update): don't update items here.
10333
10334         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10335         (update_subwindow): ditto.
10336         (image_instance_changed): new function. Compare hash values and
10337         past and present widget items.
10338         (image_instantiate): We more careful about where we instantiate
10339         things.
10340         (image_instantiate): add error checking.
10341
10342         * gutter.c (syms_of_gutter): use -hook.
10343
10344 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10345
10346         * console-tty.c (Fset_console_tty_input_coding_system): Use
10347         Qkeyboard.
10348         (Fset_console_tty_output_coding_system): Use Qterminal.
10349         (tty_init_console): Use Qkeyboard and Qterminal.
10350
10351 2000-03-21  Ben Wing  <ben@xemacs.org>
10352
10353         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10354         From Mike Alexander <mta@arbortext.com>.
10355
10356 2000-03-21  Ben Wing  <ben@xemacs.org>
10357
10358         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10359         process brokenness.  Proper implementation to come.
10360         * callproc.c:
10361         Rename call-process-internal to old-call-process-internal.
10362         New impl. in process.el.
10363
10364 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10365
10366         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10367
10368 2000-03-20  Andy Piper  <andy@xemacs.org>
10369
10370         * glyphs.c (full_list_hash): make hashes of the same elements in
10371         different orders return different values.
10372
10373 2000-03-20  Martin Buchholz <martin@xemacs.org>
10374
10375         * XEmacs 21.2.32 is released.
10376
10377 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10378
10379         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10380         (DFC_MALLOC_USE_CONVERTED_DATA):
10381         Add aliasing-safe casts to allow use with char* or unsigned char*
10382         lvalues.
10383
10384         * eldap.c (Fldap_open):
10385         (Fldap_search_basic):
10386         (Fldap_add):
10387         (Fldap_modify):
10388         Make C++-compilable.
10389         Make sure GCPRO'ed variables are initialized.
10390         Use temp variables to avoid repeated calls to Flength.
10391
10392 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10393
10394         * sysfile.h:
10395         Make sure PATH_MAX is always defined.
10396         Include limits.h for PATH_MAX.
10397         Deprecate use of MAXPATHLEN.
10398
10399 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10400
10401         * emacs.c: Add reinit_vars_of_fileio.
10402         * symsinit.h: Add reinit_vars_of_fileio.
10403         * fileio.c (reinit_vars_of_fileio): New.
10404         * fileio.c (Fmake_temp_name):
10405         Initialize temp_name random number from microseconds to make
10406         collisions even less likely.  Initialize always at process startup
10407         time.  (make-temp-name) used to return the same file name twice in
10408         a row when PDUMP.
10409         Random stylistic fiddling.
10410         Comment fixes.
10411
10412 2000-03-20  Andy Piper  <andy@xemacs.org>
10413
10414         * glyphs.c (image_instantiate): allow text glyphs to be
10415         instantiated in the minibuffer window.
10416
10417 2000-03-19  Andy Piper  <andy@xemacs.org>
10418
10419         * glyphs.c (image_instance_hash): be careful about which items we
10420         hash on.
10421
10422         * glyphs-widget.c (tab_control_set_property): record into pending
10423         items rather than the actual items.
10424
10425         * glyphs-x.c (x_update_widget): use pending items to update with.
10426
10427         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10428         to update with.
10429
10430         * glyphs.c (mark_image_instance): mark pending items.
10431
10432         * window.c (Fset_window_configuration): record the buffer.
10433         (Fselect_window): totally revert previous change which breaks many
10434         things.
10435
10436 2000-03-18  Andy Piper  <andy@xemacs.org>
10437
10438         * glyphs-msw.c (mswindows_tab_control_update): force selected
10439         item.
10440
10441         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10442         window domain cache, otherwise we get inconsistencies at
10443         startup. There is something fishy at startup which can lead to the
10444         minibuffer being the selected window when the gutter content is
10445         instantiated.
10446
10447         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10448         gcpros.
10449         (parse_gui_item_tree_children): ditto.
10450         (parse_gui_item_tree_item): ditto.
10451
10452         * glyphs.c (Fupdate_widget_instances): return something.
10453
10454 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10455
10456         * window.c (Fselect_window): Undo 2000-03-17 change.
10457
10458 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10459
10460         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10461         against v7.0 libraries.  Insta-coredump city until the postgres
10462         folks fix it.
10463
10464 2000-03-17  Andy Piper  <andy@xemacs.org>
10465
10466         * faces.c (complex_vars_of_faces): don't give the widget face an
10467         inherited background pixmap.
10468
10469         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10470         selected item.
10471
10472         * event-stream.c (Fdispatch_non_command_events): return something.
10473
10474         * gutter.c (output_gutter): use widget face.
10475         (clear_gutter): ditto.
10476
10477         * NEWS: adjust again.
10478
10479         * window.c (Fselect_window): make sure this runs to completion to
10480         avoid oddities with Fset_window_configuration.
10481         (Fcurrent_window_configuration): in general do not save the
10482         minibuffer as the selected window.
10483
10484         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10485
10486 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10487
10488         * emacs.c (Frunning_temacs_p): Revert previous patch.
10489         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10490
10491 2000-03-16  Andy Piper  <andy@xemacs.org>
10492
10493         * glyphs-x.c (x_tab_control_update): if no widget values then
10494         return.
10495
10496         * NEWS: update for new features.
10497
10498         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10499         synthetic event to the native system.
10500         (reinit_vars_of_event_Xt): set force_event_pending to
10501         emacs_Xt_force_event_pending.
10502
10503         * events.h (struct event_stream): add force_event_pending.
10504
10505         * specifier.c (recompute_one_cached_specifier_in_window): add
10506         comment.
10507
10508         * redisplay.c (redisplay_frame): don't call
10509         update_frame_subwindows. Reset subwindow cachels when
10510         subwindows_changed, removing this was an optimization too far.
10511
10512         * redisplay-output.c (compare_runes): reorganize so that we catch
10513         glyph changes when we want them. Set optimize_output when this
10514         would help layouts.
10515         (redisplay_output_layout): remove frame_really_changed, use
10516         optimize_output instead.
10517
10518         * redisplay-msw.c (mswindows_output_display_block): reset
10519         optimize_output after outputting a glyph.
10520         * redisplay-x.c (x_output_display_block): ditto.
10521         * redisplay-tty.c (tty_output_display_block): ditto.
10522
10523         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10524         functions.
10525         (gutter_specs_changed): do specific gutter positions.
10526         (top_gutter_specs_changed): new function. Only update the
10527         specified gutter specs.
10528         (bottom_gutter_specs_changed): ditto.
10529         (left_gutter_specs_changed): ditto.
10530         (right_gutter_specs_changed): ditto.
10531
10532         * gui.c (gui_item_hash_internal): new function, does a real hash.
10533         (gui_item_id_hash): use it.
10534         (gui_item_hash): hash the eval'ed gui_item.
10535
10536         * gui-x.c (popup_selection_callback): send an eval event to call
10537         Fupdate_widget_instances.
10538
10539         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10540         to call Fupdate_widget_instances.
10541
10542         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10543         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10544
10545         * glyphs.c: (update_frame_subwindows): deleted.
10546         (Fupdate_widget_instances): new function for updating the dirty
10547         state of widgets that might have changed.
10548         (syms_of_glyphs): add Qupdate_widget_instances.
10549         (full_list_hash): hash a list completely.
10550         (image_instance_hash): use it for items and properties.
10551
10552         * frame-msw.c (mswindows_size_frame_internal): remove unused
10553         variable.
10554
10555         * faces.h (struct face_cachel): fix comment.
10556
10557         * event-stream.c (Fdispatch_non_command_events): new
10558         function. Process non-command events, forcing an event cycle
10559         beforehand.
10560         (syms_of_event_stream): declare.
10561         (event_stream_force_event_pending): new function. Force an event
10562         on the native event queue so that an event cycle will occur next
10563         time we check.
10564
10565         * event-msw.c:
10566         (struct ntpipe_shove_stream):
10567         (mswindows_enqueue_dispatch_event):
10568         (mswindows_dequeue_dispatch_event):
10569         (mswindows_cancel_dispatch_event):
10570         (mswindows_pump_outstanding_events):
10571         (mswindows_drain_windows_queue):
10572         (mswindows_handle_paint):
10573         (mswindows_wnd_proc):
10574         (mswindows_key_to_emacs_keysym):
10575         (get_process_input_waitable):
10576         (emacs_mswindows_delete_stream_pair): re-indent file.
10577         (mswindows_need_event): do not process further fds if the windows
10578         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10579         fixes the 100% cpu problem.
10580         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10581
10582 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10583
10584         * alloc.h: New.
10585         * dumper.h: New.
10586         * dumper.c: New.
10587
10588         * emacs.c: Moved dump file searching to dumper.c.
10589         (Frunning_temacs_p): Fixed.
10590
10591         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10592         last_lrecord_type_index_assigned.
10593
10594 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10595
10596         * symsinit.h: Added reinit parameter to init_console_stream
10597         declaration.
10598
10599         * lisp.h: Added file parameter to pdump_load declaration.
10600
10601         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10602         support.  Added dump file searching.
10603
10604         * config.h.in: Added EMACS_PROGNAME.
10605
10606         * console-stream.c (init_console_stream): Fix reinitialisation
10607         when running from temacs.
10608
10609         * alloc.c (pdump): Add id support.
10610         (pdump_load): Add file parameter and signature/id support.
10611
10612         * Makefile.in.in: Add full pdump support.
10613
10614 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10615
10616         * postgresql.c: Update documentation to reflect latest code
10617         status.
10618         (print_result): Show tuple counts in printed representation when
10619         appropriate.
10620         (Fpq_put_nbytes): MULE-ize.
10621         (Fpq_get_line_async): Ditto.
10622
10623 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10624
10625         * postgresql.c (Fpq_lo_import): Fix return value.
10626         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10627
10628 2000-03-13  Ben Wing  <ben@xemacs.org>
10629
10630         * alloc.c (pdump_load):
10631         Fix compile warning under mswin.
10632
10633 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10634
10635         * postgresql.c: Mule-ization, bug fixes.
10636         Use PG_CODING to encapsulate coding system name changes.
10637         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10638         (pg-coding-system): Create.
10639
10640         (Fpq_conn_defaults): Mule-ize.
10641         (Fpq_connectdb): Mule-ize & bug fix.
10642         (Fpq_connect_start): Mule-ize.
10643         (Fpq_set_client_encoding): Mule-ize.
10644         (Fpq_finish): Document `DEAD' connection status.
10645         (Fpq_clear): Ditto.
10646         (Fpq_pgconn): Mule-ize.
10647         (Fpq_exec): Mule-ize & bug fix.
10648         (Fpq_send_query): Ditto.
10649         (Fpq_get_result): Ditto.
10650         (Fpq_res_status): Mule-ize.
10651         (Fpq_result_error_message): Mule-ize.
10652         (Fpq_ntuples): fix comments.
10653         (Fpq_fname): Mule-ize.
10654         (Fpq_fnumber): Mule-ize.
10655         (Fpq_ftype): fix comments.
10656         (Fpq_get_value): Mule-ize.
10657         (Fpq_cmd_status): Ditto.
10658         (Fpq_cmd_tuples): Ditto.
10659         (Fpq_oid_value): Ditto.
10660         (Fpq_notifies): Ditto.
10661         (Fpq_lo_import): Ditto.
10662         (Fpq_lo_export): Ditto.
10663         (Fpq_get_line): Ditto.
10664         (Fpq_put_line): Mule-ize and bug fix.
10665         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10666
10667 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10668
10669         * postgresql.c (vars_of_postgresql): Mule-ize.
10670         (Fpq_conn_defaults): Ditto.
10671
10672 2000-03-12  Ben Wing  <ben@xemacs.org>
10673
10674         * alloc.c (Fmake_byte_code):
10675         * alloc.c (debug_string_purity_print):
10676         * alloc.c (pdump_backtrace):
10677         * alloc.c (pdump_get_indirect_count):
10678         * alloc.c (pdump_register_sub):
10679         * alloc.c (pdump_register_object):
10680         * alloc.c (pdump_register_struct):
10681         * alloc.c (pdump_dump_data):
10682         * alloc.c (pdump_reloc_one):
10683         Minor cleanups.
10684
10685         * console-msw.c:
10686         * console-msw.c (GetConsoleHwnd):
10687         * console-msw.c (msw_hide_console):
10688         * console-msw.c (msw_show_console):
10689         * console-msw.c (msw_ensure_console_buffered):
10690         * console-msw.c (msw_output_console_string):
10691         * console-msw.c (console_type_create_mswindows):
10692
10693         a) Added functions to manipulate the console window for use with
10694         shell support.
10695
10696         b) Added support for writing text to the console, which is now
10697         used under Windows when xemacs is not being run non-interactively,
10698         to write text that would otherwise be destined for stdout because
10699         under these circumstances, text written to stdout tends to
10700         disappear and not be seen.
10701
10702         * console-msw.h:
10703         * event-Xt.c:
10704         * event-Xt.c (x_event_to_emacs_event):
10705         * event-Xt.c (describe_event_window):
10706         * events-mod.h (XEMACS_MOD_CONTROL):
10707         * events.c:
10708         * events.c (Fmake_event):
10709         * events.c (character_to_event):
10710         * events.c (event_to_character):
10711         * events.c (format_event_object):
10712         * events.c (Fevent_modifiers):
10713         * events.h:
10714         * events.h (struct key_data):
10715         * events.h (struct button_data):
10716         * events.h (struct misc_user_data):
10717         * frame-x.c (Fcde_start_drag_internal):
10718         * frame-x.c (Foffix_start_drag_internal):
10719         * gpmevent.c (Freceive_gpm_event):
10720         * keymap.c:
10721         * keymap.c (bucky_sym_to_bucky_bit):
10722         * keymap.c (control_meta_superify):
10723         * keymap.c (make_key_description):
10724         * keymap.c (keymap_lookup_directly):
10725         * keymap.c (create_bucky_submap):
10726         * keymap.c (keymap_store):
10727         * keymap.c (define_key_check_and_coerce_keysym):
10728         * keymap.c (define_key_parser):
10729         * keymap.c (define_key_alternate_name):
10730         * keymap.c (Fdefine_key):
10731         * keymap.c (raw_lookup_key_mapper):
10732         * keymap.c (struct map_keymap_unsorted_closure):
10733         * keymap.c (map_keymap_unsorted_mapper):
10734         * keymap.c (map_keymap_sort_predicate):
10735         * keymap.c (map_keymap_sorted):
10736         * keymap.c (accessible_keymaps_mapper_1):
10737         * keymap.c (where_is_recursive_mapper):
10738         * keymap.c (describe_map_mapper):
10739         * keymap.c (describe_map_sort_predicate):
10740         * keymap.c (describe_map):
10741         * keymap.c (complex_vars_of_keymap):
10742         And a number of other files, the key modifier preprocessor
10743         constants that xemacs uses have names that conflict with constants
10744         defined under MS Windows for other purposes, so they were renamed
10745         to begin with the prefix XEMACS_. The variables that hold such
10746         modifiers were changed to consistently be of type int to fix
10747         various compile warnings.
10748
10749         * console.c (complex_vars_of_console):
10750         * device.c:
10751         * device-msw.c:
10752         * device-msw.c (mswindows_finish_init_device):
10753         * device-msw.c (msw_get_workspace_coords):
10754         * device-msw.c (mswindows_device_system_metrics):
10755         and various other files, added support for a new
10756         device property called offset-workspace which returns the position
10757         of the upper left corner of the workspace area and goes along with
10758         the existing size-workspace property.
10759
10760         * dialog-msw.c:
10761         * dialog-msw.c (push_bufbyte_string_as_unicode):
10762         * dialog-msw.c (mswindows_popup_dialog_box):
10763         Added support for XEmacs-style accelerator specifications in
10764         button text.  Note: I didn't add support for this under X Windows,
10765         and somebody needs to do this.
10766
10767         * dialog.c:
10768         * dialog.c (Fpopup_dialog_box):
10769         Documented the support for accelerators that was just mentioned.
10770
10771         editfns.c (get_home_directory): Changed behavior under Windows
10772         when HOME not defined; former behavior was irretrievably broken.
10773
10774         * emacs.c:
10775         * emacs.c (main_1):
10776         * emacs.c (main):
10777         * minibuf.c (clear_echo_area_internal):
10778         * minibuf.c (echo_area_append):
10779         * print.c:
10780         * print.c (std_handle_out_external):
10781         * print.c (std_handle_out_va):
10782         * print.c (fatal):
10783         * print.c (write_string_to_stdio_stream):
10784         * print.c (output_string):
10785         * print.c (debug_print):
10786         * print.c (debug_backtrace):
10787         * print.c (debug_short_backtrace):
10788         Cleaned up the code that prints text to stdout so that this can be
10789         changed to output into a console window instead under MS Windows,
10790         as described above.
10791
10792         * eval.c:
10793         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10794         * eval.c (internal_catch):
10795         * eval.c (unwind_to_catch):
10796         * eval.c (throw_or_bomb_out):
10797         * eval.c (condition_case_1):
10798         * eval.c (signal_1):
10799         * eval.c (check_error_state_sanity):
10800         * eval.c (call_with_suspended_errors_1):
10801         * eval.c (call_with_suspended_errors):
10802         * eval.c (reinit_vars_of_eval):
10803         Added code to catch throw loops and check for a pesky bug that may
10804         be gone now.
10805
10806         * event-msw.c:
10807         * event-msw.c (key_needs_default_processing_p):
10808         * event-msw.c (mswindows_wnd_proc):
10809         * event-msw.c (mswindows_modifier_state):
10810         * event-msw.c (emacs_mswindows_quit_p):
10811         * event-msw.c (vars_of_event_mswindows):
10812         a) Added support for using the alt key to select menu items as is
10813         standard under MS Windows.  This is controlled using the variable
10814         menu-accelerator-enabled, just like under X Windows.  There is an
10815         option on the options menu to turn this support on.  I really
10816         think that it should be on by default under Windows, but I'm not
10817         going to make this change yet.
10818
10819         b)  Added support for dynamic display size changes under Windows.
10820
10821         * event-stream.c:
10822         * event-stream.c (maybe_echo_keys):
10823         * event-stream.c (Fnext_event):
10824         * event-stream.c (command_builder_find_leaf):
10825         * event-stream.c (lookup_command_event):
10826         * event-stream.c (execute_command_event):
10827         * event-stream.c (pre_command_hook):
10828         * event-stream.c (post_command_hook):
10829         * event-stream.c (syms_of_event_stream):
10830         * event-stream.c (vars_of_event_stream):
10831         * event-stream.c (complex_vars_of_event_stream):
10832         * events.h (struct command_builder):
10833
10834         a) Tried to clean up a little bit the horribly written x-specific
10835         accelerator code that crept into this file.  I moved this code
10836         into menubar-x.c where it belongs. I also needed to move the
10837         command builder structure into the file events.h because it is
10838         accessed directly by this accelerator code.  What I didn't do, but
10839         which should be done at some point, is to properly abstract this
10840         code using device methods instead of the kludgy way that it
10841         currently hooks into the event code.
10842
10843         b) Added the lisp variables this-command-properties and
10844         last-command- properties, which should be used to synchronize two
10845         adjacent commands in preference to playing games with the variable
10846         this-command, which is typically what happens.
10847
10848         c) Added some slightly nasty code to hook into the lisp support
10849         for shifted- motion-key selection.  This is actually necessary for
10850         somewhat complicated reasons, which are described in
10851         simple.el. (NB: I think the proper thing would be to have the code
10852         that calls the pre and post command hooks also call out to generic
10853         lisp functions in simple.el, where all built-in stuff could be
10854         added.  I will think about this more.)
10855
10856         * event-unixoid.c (poll_fds_for_input):
10857         * lread.c (readchar):
10858         * redisplay-tty.c (tty_clear_frame):
10859         * redisplay-x.c (x_get_gc):
10860         * signal.c (interrupt_signal):
10861         And a whole bunch of other files: fixed up places that printed
10862         directly to stderr to instead call the function stderr_out so that
10863         the changes I made under Windows work correctly.
10864
10865         * filemode.c (mode_string):
10866         Warning fixes.
10867
10868         * frame-msw.c:
10869         * frame-msw.c (mswindows_size_frame_internal):
10870         Fixed the computation of frame size and position to keep the frame
10871         within the workspace area, rather than within the physical
10872         dimensions of the screen, so that the frame doesn't overlap window
10873         manager decorations, such as the start menu and toolbar, typically
10874         at the bottom of the screen.
10875
10876         * frame.c (vars_of_frame):
10877         Changed the default frame title format under MS Windows to consist
10878         of buffername-XEmacs, which is standard under MS Windows.  I think
10879         it might be a good idea to change this everywhere because I think
10880         it is superior to the current frame title format, but this is the
10881         kind of change that is likely to cause some people to get annoyed,
10882         so I'm not making it.
10883
10884         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10885
10886         * gui-msw.c (mswindows_handle_gui_wm_command):
10887         Fixed compile warnings.
10888
10889         * gui-x.c:
10890         * gui-x.c (strdup_and_add_accel):
10891         * gui-x.c (button_item_to_widget_value):
10892         * gui-x.h:
10893         Added code to automatically put an accelerator onto the beginning
10894         of menu items that don't have one as is now the standard, and is
10895         described more later.  Also fixed things so that the menu item
10896         name can be an evaluated expression, again a new standard.
10897
10898         * gui.c:
10899         * gui.c (gui_item_add_keyval_pair):
10900         * gui.c (make_gui_item_from_keywords_internal):
10901         * gui.c (gui_add_item_keywords_to_plist):
10902         * gui.c (gui_item_accelerator):
10903         * gui.c (gui_name_accelerator):
10904         * gui.c (gui_item_included_p):
10905         * gui.c (gui_item_display_flush_left):
10906         * gui.c (gui_item_display_flush_right):
10907         * gui.c (parse_gui_item_tree_item):
10908         * gui.c (parse_gui_item_tree_children):
10909         * gui.c (parse_gui_item_tree_list):
10910         Mule-ized.  Cleanup.  GCPRO addition.
10911
10912         * line-number.c (buffer_line_number):
10913         * lisp.h:
10914         * lisp.h (EMACS_INT_MAX):
10915         Added the manifest constant EMACS_INT_MIN corresponding to the
10916         existing constant EMACS_INT_MAX.  This is partially to fix compile
10917         warnings under Windows, and partly for cleanliness.
10918
10919         * menubar-msw.c:
10920         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10921         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10922         * menubar-msw.c (displayable_menu_item):
10923         * menubar-msw.c (populate_menu_add_item):
10924         * menubar-msw.c (populate_or_checksum_helper):
10925         * menubar-msw.c (populate_menu):
10926         * menubar-msw.c (update_frame_menubar_maybe):
10927         * menubar-msw.c (prune_menubar):
10928         * menubar-msw.c (msw_char_is_accelerator):
10929         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10930         * menubar-msw.c (mswindows_handle_wm_command):
10931         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10932         * menubar-msw.c (mswindows_handle_wm_initmenu):
10933         * menubar-msw.c (mswindows_update_frame_menubars):
10934         * menubar-msw.c (mswindows_free_frame_menubars):
10935         * menubar-msw.c (mswindows_popup_menu):
10936         Fixed a bug in handling accelerators where an extra character
10937         would be displayed in the menu item.  Also generalized the
10938         function displayable_menu_item because it is now used by the
10939         dialog box code as well.  And finally, added code in the functions
10940         that create the menubar to extract a list of accelerators for the
10941         top level menubar, which is used in the event code to determine
10942         whether a particular alt-key combination should be used to invoke
10943         a menu item, or should be passed through to access the standard
10944         XEmacs keymap binding for this key combination.
10945
10946         Much needed GCPROing.
10947
10948         * menubar-x.c:
10949         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10950         * menubar-x.c (menu_item_descriptor_to_widget_value):
10951         * menubar-x.c (restore_in_menu_callback):
10952         * menubar-x.c (x_popup_menu):
10953         * menubar-x.c (menu_move_up):
10954         * menubar-x.c (menu_move_down):
10955         * menubar-x.c (menu_move_left):
10956         * menubar-x.c (menu_move_right):
10957         * menubar-x.c (menu_select_item):
10958         * menubar-x.c (command_builder_operate_menu_accelerator):
10959         * menubar-x.c (menu_accelerator_junk_on_error):
10960         * menubar-x.c (command_builder_find_menu_accelerator):
10961         * menubar-x.c (Faccelerate_menu):
10962         * menubar.h:
10963         Moved a whole bunch of code here that was previously in
10964         event-stream.c as described above.  There is also code connected
10965         to the new standard of adding an accelerator to the beginning of
10966         menu items that don't have one as described above and below.
10967
10968         * menubar.c:
10969         * menubar.c (menu_parse_submenu_keywords):
10970         * menubar.c (Fmenu_find_real_submenu):
10971         * menubar.c (Fnormalize_menu_item_name):
10972         * menubar.c (syms_of_menubar):
10973         * menubar.c (vars_of_menubar):
10974         * menubar.c (complex_vars_of_menubar):
10975
10976         a) Cleaned up a bunch of documentation and improved it.
10977
10978         b) XEmacs now automatically adds an accelerator onto the beginning
10979         of any menu items that don't have one.  I did this because there
10980         will inevitably be some menu items on the main menubar that don't
10981         have accelerators on them because the package that adds that
10982         particular menu item hasn't yet been fixed up to have accelerators
10983         in them and it looked rather strange to have some items with and
10984         some items without accelerators, especially since even in items
10985         without accelerators, you can, at least under windows, still
10986         access the item through an accelerator corresponding to the first
10987         character in the item's name.  If people don't like this behavior,
10988         I can add a variable to turn it off optionally, but I'm not sure
10989         this is a good idea because we really do need to have accelerators
10990         on all of the menu items, and if a package doesn't like the
10991         accelerators being put on the first character, then it should put
10992         the accelerators where they belong.
10993
10994         c) I made a behavior change, which is that the descriptor that
10995         specifies the text of the menu item, which formerly was just a
10996         string, can now also be an evaluated expression.  This makes this
10997         descriptor parallel with all of the others, which could also be
10998         evaluated expressions.  This also obviates the need for the
10999         keyword :label, which was previously listed in the documentation
11000         as unimplemented, and which was for the same purpose.
11001
11002         d) GCPROing.
11003
11004         * ntproc.c:
11005         * ntproc.c (new_child):
11006         * ntproc.c (sys_spawnve):
11007         * ntproc.c (find_child_console):
11008         * ntproc.c (sys_kill):
11009         Fixed compile warnings.  By the way, this file should really go
11010         away entirely, and this will happen as soon as Kirill makes his
11011         final round of process cleanups, which affect the function
11012         call-process.
11013
11014         * process-nt.c:
11015         * process-nt.c (struct nt_process_data):
11016         * process-nt.c (find_process_from_pid):
11017         * process-nt.c (send_signal_the_nt_way):
11018         * process-nt.c (enable_child_signals):
11019         * process-nt.c (find_child_console):
11020         * process-nt.c (send_signal_the_95_way):
11021         * process-nt.c (nt_finalize_process_data):
11022         * process-nt.c (ensure_console_window_exists):
11023         * process-nt.c (nt_create_process):
11024         * process-nt.c (nt_kill_child_process):
11025         * process-nt.c (nt_kill_process_by_pid):
11026         * process-nt.c (nt_open_network_stream):
11027         * process-nt.c (vars_of_process_nt):
11028         Copied over code from Emacs 20.5 to correctly send signals to sub-
11029         processes under Windows 95.  Also added code to automatically
11030         create and hide console window when a sub-process is created under
11031         Windows 95, which obviates the need for the separate runemacs.exe
11032         executable, and finally implemented some variables that were
11033         implemented in Emacs 20.5, but previously not in XEmacs.  These
11034         include mswindows- start-process-share-console and
11035         mswindows-start-process-inherit-error-mode. (Both of these only
11036         apply to Windows 95.)
11037
11038         * regex.c (regex_compile): Fixed a compile warning.
11039
11040         * select-msw.c:
11041         * select-msw.c (mswindows_own_selection):
11042         * select-msw.c (mswindows_get_foreign_selection):
11043         * select-msw.c (mswindows_disown_selection):
11044         * select-msw.c (console_type_create_select_mswindows):
11045         * select-msw.c (syms_of_select_mswindows):
11046         Cleaned up the file and implemented the device method
11047         selection_exists_p, which had accidentally been left out.  Also
11048         removed four lisp functions that were remnants from before the
11049         time when the selection code was properly device abstracted.
11050         These functions are no longer needed because there are generic
11051         equivalents, and because they were added recently and don't exist
11052         in FSF Emacs, I don't think there's any problem with just deleting
11053         them.
11054
11055         * sysdep.c:
11056         * sysdep.c (sys_subshell):
11057         Fixed a compile warning, although in this case there's probably
11058         something wrong with this code, and it ought to be looked into
11059         more thoroughly by somebody who understands it.
11060
11061         * window.c:
11062         * window.c (Fwindow_text_area_height):
11063         * window.c (Fwindow_width):
11064         * window.c (Fwindow_full_width):
11065         * window.c (Fwindow_pixel_width):
11066         * window.c (debug_print_window):
11067         * window.c (syms_of_window):
11068         Added functions window-text-area-height and window-full-width,
11069         which are functions for returning various width and height
11070         characteristics of a window. (One of these functions is necessary
11071         for making the file dialog box work correctly, and the other one
11072         was added for completeness.)  Also added a table to the
11073         documentation for window-height which describes the entire scheme
11074         for accessing width and height characteristics of a window.
11075
11076 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11077
11078         * nt.c (fstat): Added a comment for another problem with
11079         non-encapsulated [f]stat(), reported by Adrian Aichner
11080         <aichner@ecf.teradyne.com>.
11081
11082 2000-03-11  Andy Piper  <andy@xemacs.org>
11083
11084         * window.c (make_dummy_parent): initialize subwindow instance
11085         cache.
11086         (Fset_window_configuration): zero extent_modiff.
11087
11088 2000-03-10  Andy Piper  <andy@xemacs.org>
11089
11090         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11091         more changes can be triggered.
11092         (Fredisplay_frame): ditto.
11093         (Fredraw_device): ditto.
11094         (Fredisplay_device): ditto.
11095         (redisplay_frame): make non-static.
11096         (redisplay_frame): call update_frame_gutter_geometry outside of
11097         display proper.
11098
11099         * gutter.h: declare update_frame_gutter_geometry.
11100
11101         * redisplay.h: declare redisplay_frame.
11102
11103         * gutter.c (update_frame_gutter_geometry): move geometry changes
11104         in update_frame_gutters here. Geometry changes can only occur
11105         outside of redisplay.
11106         (update_frame_gutters): remove geometry change code.
11107         (Fredisplay_gutter_area): make sure that we are in display when we
11108         update and that we have flushed any size changes.
11109
11110 2000-03-11  Andy Piper  <andy@xemacs.org>
11111
11112         * alloc.c (pdump_dump_data): remove i & count shadows.
11113
11114 2000-02-27  Mike Alexander  <mta@arbortext.com>
11115
11116         * sysdep.h: Declare pdump_read_file
11117
11118         * sysdep.c (pdump_read_file): New function
11119
11120         * alloc.c (pdump_load): Call pdump_read_file to get the portable
11121         dump data
11122
11123 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11124
11125         * lrecord.h: add `lrecord_type_pgsetenv'.
11126
11127 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
11128
11129         * symsinit.h: declare (vars|syms)_of* functions.
11130         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11131
11132 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
11133
11134         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11135
11136         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11137         GCCs.
11138
11139         * emacs.c (main_1): Call postgres initialization code.
11140
11141         * postgresql.h: New file.  PostgreSQL RDBMS support.
11142         * postgresql.c: New file.
11143
11144 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11145
11146         * redisplay-output.c (redisplay_output_display_block): Disable
11147         redundant code.
11148
11149 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11150
11151         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11152         (Fcanna_henkan_next): Ditto.
11153         (Fcanna_bunsetu_henkou): Ditto.
11154         (Fcanna_henkan_kakutei): Ditto.
11155         (Fcanna_henkan_end): Ditto.
11156         (Fcanna_henkan_quit): Ditto.
11157         (Fcanna_henkan_next): Set retun value correctly.
11158         (c2mu): Use unsigned char instead of signed char.
11159
11160 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11161
11162         * emacs.c (main_1): Always call syms_of_gui.
11163         * inline.c: include gui.h
11164
11165 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11166
11167         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11168         converted to Lisp_Object.
11169         (Qtop_bottom): New variable.
11170         (syms_of_redisplay): Initialize it.
11171         * redisplay.h (Vvisible_bell): Ditto.
11172         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11173         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11174         only flash top and bottom.
11175
11176 2000-03-08  Andy Piper  <andy@xemacs.org>
11177
11178         * buffer.c (Frename_buffer): record new buffer name the right way.
11179
11180 2000-03-08  Andy Piper  <andy@xemacs.org>
11181
11182         * glyphs.c (update_subwindow): increase hash depth so that widget
11183         items get picked up properly.
11184
11185         * redisplay-output.c (compare_runes): increase hash depth so that
11186         widget items get picked up properly.
11187
11188 2000-03-08  Andy Piper  <andy@xemacs.org>
11189
11190         * gutter.c (output_gutter): add some debug.
11191
11192         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11193         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11194         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11195
11196         * redisplay-output.c (compare_runes): use display_hash to
11197         determine if glyphs really are not the same.
11198
11199         * glyphs.c (update_subwindow): check display_hash to see if
11200         anything really needs to be updated. If not then do
11201         nothing. Record the display_hash after updating.
11202         (image_instance_equal): compare the image_instance face also.
11203
11204 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11205
11206         * redisplay.h: Fix comment style.
11207
11208 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11209
11210         * consle-msw.h (struct mswindows_frame):
11211         Added new member paint_pending to indicate whether a WM_PAINT
11212         magic event has been queued for this frame.
11213
11214         * event-msw.c (mswindows_drain_windows_queue):
11215         Don't queue a WM_PAINT magic event if one is already queued.
11216         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11217
11218         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11219
11220 2000-03-07  Didier Verna  <didier@xemacs.org>
11221
11222         * dired.c: #include `regex.h' after `sysfile.h'.
11223
11224 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11225
11226         * sound.c (init_nas_sound): Fix compiler warning.
11227
11228         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11229         (FREE_STRUCT_P):
11230         (MARK_STRUCT_AS_FREE):
11231         (MARK_STRUCT_AS_NOT_FREE):
11232         Make `gcc -fstrict-aliasing' work properly.
11233
11234 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11235
11236         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11237         (mswindows_delete_device): Call CoUnnitialize().
11238
11239         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11240
11241 2000-02-25    <CraigL@DyCon.com>
11242
11243         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11244         <errno.h>.
11245
11246         * sysdep.c: This extern declaration for environ prevents MinGW
11247         from finding the variable in CRTDLL.DLL.
11248
11249         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11250         windows headers.
11251         (SHGFI_EXETYPE): ..
11252         (WM_MOUSEWHEEL): ..
11253         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11254         definitions.
11255         (MMRESULT): Removed, now defined in cygwin's windows headers.
11256         (TIMECAPS): ..
11257         (uid_t,gid_t,pid_t,ssize_t): ..
11258         (_timeb): Removed, MinGW defines both _timeb and timeb.
11259         (HAVE_H_ERRNO): Added.
11260         (HAVE_TZNAME): Added, configure is not detecting this.
11261
11262 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11263
11264         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11265         * syntax.c (syntax_match): Use it.
11266
11267         * cmds.c: Import auto-fill-chars from FSF Emacs.
11268         (Vauto_fill_chars): New variables.
11269         (internal_self_insert): Check Vauto_fill_chars.
11270         (vars_of_cmds):
11271         Declare auto-fill-chars as a Lisp variable and initialize it.
11272
11273 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11274
11275         * fileio.c (Fmake_symbolic_link):
11276         (Ffile_symlink_p):
11277         Run handlers even if local machine doesn't have symlinks.
11278
11279 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11280
11281         * event-msw.c (mswindows_drain_windows_queue):
11282         Don't generate paint magic events for non-XEmacs frames.
11283
11284 2000-03-05  Andy Piper  <andy@xemacs.org>
11285
11286         * redisplay.c (redisplay_frame): generate_displayable_area and
11287         friends assumes that we are not in GC, we therefore have to make
11288         sure that this doesn't happen.
11289
11290         * gutter.c (calculate_gutter_size): generate_displayable_area
11291         assumes that we are not in GC, we therefore have to make sure that
11292         this doesn't happen.
11293
11294 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11295
11296         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11297
11298 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11299
11300         * redisplay.c (regenerate_window): Make sure we set a sane value
11301         for end_pos even if we jump out of the loop.
11302         (regenerate_window): Answer Ben's question :-).
11303         (start_end_of_last_line): Add may_error argument.
11304         (start_of_last_line):
11305         (end_of_last_line): Pass may_error = 0.
11306         (end_of_last_line_may_error): New function.
11307         (pixel_to_glyph_translation): Use it, so we don't crash in
11308         event_to_glyph.
11309
11310 2000-03-04  Andy Piper  <andy@xemacs.org>
11311
11312         * window.h (struct window): add gutter_extent_modiff.
11313
11314         * window.c (allocate_window): zero out gutter_extent_modiff.
11315
11316         * redisplay.h: declare sync_display_line_structs.
11317
11318         * redisplay.c (add_glyph_rune): add a better comment.
11319
11320         * redisplay-output.c (sync_display_line_structs): made non-static.
11321         (compare_runes): remove unneccesary glyph cachel access.
11322
11323         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11324
11325         * gutter.c (output_gutter): don't output the gutter if extent
11326         changes only involve extents in buffers. use 4 sets of display
11327         lines.
11328         (gutter_extent_signal_changed_region_maybe): new function. Mark
11329         extents in gutters as changed.
11330         (update_frame_gutters): use 4 sets of display lines.
11331         (reset_gutter_display_lines): ditto.
11332         (free_frame_gutters): ditto.
11333         (redraw_exposed_gutter): force output of gutters.
11334
11335         * frame.h (struct frame): add 4 sets of gutter display lines.
11336
11337         * extents.c: (extent_changed_for_redisplay): signal changes to
11338         extents in strings in the gutter as well as extents in buffers.
11339
11340 2000-03-02  Andy Piper  <andy@xemacs.org>
11341
11342         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11343
11344         * frame.c (Fmake_frame): make sure the gutters get initialized
11345         after the frame is visible.
11346         (set_frame_selected_window): re-arrange compilation macros a
11347         little.
11348         (change_frame_size_1): mark gutters changed.
11349
11350         * device.c (Fset_device_class): mark gutters changed.
11351
11352 2000-03-01  Andy Piper  <andy@xemacs.org>
11353
11354         * window.c (window_top_frame_gutter_height): deleted.
11355         (window_bottom_frame_gutter_height): ditto.
11356         (window_left_frame_gutter_height): ditto.
11357         (window_right_frame_gutter_height): ditto.
11358         (window_top_gutter_height): don't use them.
11359         (window_bottom_gutter_height): ditto.
11360         (window_left_gutter_width): ditto.
11361         (window_right_gutter_width): ditto.
11362         (Fsplit_window): ditto.
11363         (Fwindow_pixel_edges): don't use border dimensions here.
11364
11365         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11366         (update_scrollbar_instance): ditto.
11367
11368         * redisplay.c (generate_modeline): don't take gutters into account.
11369         (generate_modeline): ditto.
11370         (redisplay_frame): small gutter display optimization.
11371
11372         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11373
11374         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11375         gutters into account.
11376
11377         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11378         for window position and type.
11379
11380         * gutter.c (get_gutter_coords): fix for frame gutters.
11381         (update_frame_gutters): update frame geometry if the gutters have
11382         changed.
11383         (init_frame_gutters): record current gutter geometries.
11384
11385         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11386         var.
11387         (mswindows_widget_instantiate): ditto.
11388
11389         * frame.h (struct frame): add current_gutter_bounds.
11390
11391         * frame.c (change_frame_size_1): position window and minibuffer
11392         appropriately taking into account the frame gutters.
11393
11394         * frame-x.c: (x_initialize_frame_size): take into account the
11395         frame gutters.
11396
11397 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11398
11399         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11400
11401 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11402
11403         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11404
11405 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11406
11407         * file-coding.c (reset_decoding_stream): Clear previous
11408         detection state when autodetect.
11409
11410 2000-02-29  Didier Verna  <didier@xemacs.org>
11411
11412         * extents.c (set_extent_glyph_1): don't require extents to be
11413         attached.
11414
11415 2000-02-27  Andy Piper  <andy@xemacs.org>
11416
11417         * gutter.c (Fset_default_gutter_position): don't default left and
11418         right gutter visibility to t.
11419         (Fset_default_gutter_position): run
11420         default-gutter-position-changed-hook.
11421         (syms_of_gutter): add default-gutter-position-changed-hook.
11422
11423 2000-02-26  Andy Piper  <andy@xemacs.org>
11424
11425         * specifier.c (Fmake_specifier): add gutter references.
11426
11427         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11428
11429         * lisp.h: declare Fvalid_plist_p.
11430
11431         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11432         as changed.
11433         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11434         well as its visibility so that it gets reconstructed.
11435         (construct_window_gutter_spec): new function. Construct a string
11436         to be displayed in the gutter from a plist of strings. Take care
11437         to only use elements that are declared as visible.
11438         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11439         WINDOW_GUTTER.
11440         (gutter_validate): allow plists of strings in the specifier.
11441         (gutter_specs_changed): construct the real_gutter from the gutter
11442         specs using construct_window_gutter_spec.
11443         (gutter_visible_validate): gutter-visible is a new specifier type.
11444         (Fgutter_visible_specifier_p): new function for the new specifier.
11445         (syms_of_gutter): declare gutter-visible and
11446         Fgutter_visible_specifier_p.
11447         (specifier_type_create_gutter): intitalize new gutter-visible
11448         specifier.
11449         (reinit_specifier_type_create_gutter): ditto.
11450         (specifier_vars_of_gutter): use new specifier type for gutter
11451         visibility.
11452         (init_frame_gutters): construct real_gutter correctly.
11453         (Fgutter_specifier_p): beef up documentation.
11454         (Fgutter_size_specifier_p): ditto.
11455
11456         * winslots.h: add real_gutter slots.
11457
11458 2000-02-25  Andy Piper  <andy@xemacs.org>
11459
11460         * device-msw.c: Be kind to older cygwin versions. From Raymond
11461         Toy <toy@rtp.ericsson.se>.
11462
11463         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11464         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11465
11466 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11467
11468         * elhash.c (MARK_OBJ): Practice macro hygiene.
11469
11470 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11471
11472         * miscplay.c: s/__inline__/inline/g;
11473         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11474         (get_device_compdc): INLINE ==> static inline
11475         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11476         find -name '*.h' | \
11477         xargs global-replace \
11478         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11479
11480 2000-02-25  Andy Piper  <andy@xemacs.org>
11481
11482         * window.c (window_top_frame_gutter_height): new function.
11483         (window_top_window_gutter_height): ditto.
11484         (window_top_gutter_height): use them.
11485         (window_bottom_frame_gutter_height): new function.
11486         (window_bottom_window_gutter_height): ditto.
11487         (window_bottom_gutter_height): use them.
11488         (window_left_window_gutter_width): new function.
11489         (window_left_frame_gutter_width): ditto.
11490         (window_left_gutter_width): use them.
11491         (window_right_window_gutter_width): new function.
11492         (window_right_frame_gutter_width): ditto.
11493         (window_right_gutter_width): use them.
11494         (window_pixel_height): new function. calulate window pixel height
11495         with frame gutter involvement.
11496         (Fsplit_window): calculate new sizes taking frame gutters into
11497         account.
11498         (window_char_height_to_pixel_height): don't include frame gutters.
11499         (window_char_height): use window_pixel_height.
11500         (window_pixheight): rename from window_pixel_height.
11501         (change_window_height): use it.
11502         (window_pixel_height_to_char_height): don't include frame gutters.
11503         (window_char_width_to_pixel_width): ditto.
11504
11505 2000-02-25  Andy Piper  <andy@xemacs.org>
11506
11507         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11508         if it is.
11509
11510 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11511
11512         * alloc.c (staticpro):
11513         (staticpro_nodump):
11514         (dumpstruct):
11515         (dumpopaque):
11516         (pdump_wire):
11517         (pdump_wire_list):
11518         (compact_string_chars):
11519         (pdump_dump_wired):
11520         Convert:  if (foo) abort();  ==>  assert (! foo);
11521
11522         * eldap.c (Fldap_search_basic):
11523         (Fldap_add):
11524         (Fldap_modify):
11525         (Fldap_delete):
11526         Fix compiler warnings, and possible crashes if (random) return
11527         value were to be used.
11528
11529 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11530
11531         * device-msw.c: Workaround ResetDC failure.
11532
11533         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11534         applying a devmode.
11535
11536         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11537         (mswindows_text_width): Do not start printer page.
11538
11539         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11540
11541         * glyphs-msw.c: Added image methods to msprinter console and
11542         msprinter-specific image instantiation.
11543
11544 2000-02-20  Mike Alexander  <mta@arbortext.com>
11545
11546         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11547         to avoid crashes when selection-sets-clipboard is on
11548         (mswindows_own_selection): ditto
11549
11550 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11551
11552         * glyphs-msw.c:
11553         * redisplay-msw.c (get_frame_dc):
11554         (get_frame_compdc):
11555         * console-msw.h:
11556         * device-msw.c (mswindows_init_device):
11557         (mswindows_delete_device):
11558         (msprinter_init_device):
11559         (msprinter_delete_device):
11560         * frame-msw.c (mswindows_init_frame_1):
11561         (mswindows_delete_frame):
11562         (msprinter_init_frame_3):
11563         (msprinter_delete_frame): Move compatible DC to device object from
11564         frame object, for both mswindows and msprinter. Only one at a time
11565         is needed, it is a real waste to have one per frame!
11566
11567 2000-02-23  Andy Piper  <andy@xemacs.org>
11568
11569         * glyphs.c: add dynamic width and height elements.
11570         (image_instance_equal): ditto.
11571
11572         * glyphs-widget.c (widget_query_geometry): calculate width and
11573         height dynamically if required.
11574         (initialize_widget_image_instance): initialize dynamic dimensions.
11575         (widget_instantiate): pick-up dynamic dimensions.
11576
11577         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11578         dynamic determination. Add appropriate macros.
11579
11580         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11581         dimensions safe.
11582         (WINDOW_GUTTER_SIZE): ditto.
11583         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11584
11585         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11586         inline.
11587         (get_frame_dc): ditto.
11588
11589         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11590         here.
11591
11592 2000-02-23  Martin Buchholz <martin@xemacs.org>
11593
11594         * XEmacs 21.2.31 is released.
11595
11596 2000-02-22  Ben Wing <ben@xemacs.org>
11597
11598         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11599
11600 2000-02-22  Andy Piper  <andy@xemacs.org>
11601
11602         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11603
11604 2000-02-21  Mike Sperber <mike@xemacs.org>
11605
11606         * .dbxrc:
11607         * .gdbinit:
11608         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11609         variables.
11610
11611 2000-02-21  Mike Sperber <mike@xemacs.org>
11612
11613         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11614
11615 2000-02-21  Martin Buchholz <martin@xemacs.org>
11616
11617         * XEmacs 21.2.30 is released.
11618
11619 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11620
11621         Performance hacking.
11622         * *.c (syms_of_*):
11623         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11624         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11625         * emacs.c (main_1):
11626         * lisp.h (DEFUN):
11627         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11628         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11629         * symeval.h (DEFVAR_SYMVAL_FWD):
11630         * symbols.c (guts_of_unbound_marker):
11631         Make all c_readonly objects also lisp_readonly and marked for life.
11632         * lrecord.h (struct lrecord_implementation):
11633         Document flags better.
11634         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11635         * lrecord.h (DECLARE_LRECORD):
11636         * lrecord.h (XSETRECORD):
11637         * lrecord.h (RECORDP):
11638         * lrecord.h (RECORD_TYPEP):
11639         * lrecord.h (RECORD_MARKER): New.
11640         * lrecord.h (error_check_*):
11641         * lrecord.h (CONCHECK_NONRECORD):
11642         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11643         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11644         * lrecord.h (set_lheader_implementation):
11645         * lrecord.h (enum lrecord_type): New.
11646         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11647         * alloc.c (disksave_object_finalization_1):
11648         * alloc.c (mark_object):
11649         * alloc.c (lrecord_type_index):
11650         * alloc.c (tick_lcrecord_stats):
11651         * alloc.c (Fgarbage_collect):
11652         * alloc.c (init_alloc_once_early):
11653         * alloc.c (pdump_load):
11654         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11655         * alloc.c (lrecord_type_index): Delete.
11656         Make lisp object type indexes be constant.
11657           Makes (byte-compile) 5% faster.
11658         Put all marker functions into their own array.
11659           Makes (garbage-collect) 5% faster.
11660         Optimize SYMBOL_VALUE_MAGIC_P.
11661           Makes (byte-compile) 2-3% faster.
11662         * config.h.in (gc_checking_assert): New.
11663         * alloc.c: Use gc_checking_assert().
11664         * .dbxrc: Make compatible with new object type implementation.
11665         * .gdbinit: Make compatible with new object type implementation.
11666         * alloc.c: Delete all symbols defined only for debugging, such as
11667         Lisp_Type_Vector and lrecord_charset.
11668
11669 2000-02-21  Andy Piper  <andy@xemacs.org>
11670
11671         * gui-msw.c (Fmswindows_shell_execute): fix file location
11672         problems.
11673
11674         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11675         unshowing so that set_window_buffer doesn't undo
11676         kill_buffer_hook's hard work.
11677
11678         * glyphs-widget.c (tab_control_query_geometry): don't count the
11679         first item when calculating geometry.
11680
11681         * glyphs.c (map_subwindow): remove redundant code.
11682         (update_frame_subwindows): be more circumspect about when to
11683         update subwindows.
11684
11685         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11686         when items haven't changed. Update faces if faces have changed as
11687         well as just the widget face.
11688         (x_tab_control_update): Update faces if faces have changed as well
11689         as just the widget face.
11690
11691 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11692
11693         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11694         registration.
11695         (build_syscolor_string): Use mswindows_color_to_string to try to
11696         get a named color.
11697         (mswindows_device_system_metrics): Reverse the foreground and
11698         background colors so that they match the documentation.
11699
11700         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11701         they match the default Windows palette.
11702         (mswindows_color_to_string): New function.
11703
11704 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11705
11706         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11707
11708 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11709
11710         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11711         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11712
11713         * symbols.c (init_symbols_once_early): Removed obsolete
11714         DATA_SEG_BITS related kludge.
11715         (defvar_magic): Ditto.
11716
11717         * malloc.c: Removed obsolete DATA_SEG_BITS
11718         * ralloc.c: Ditto.
11719         * mem-limits.h: Ditto.
11720
11721         * Makefile.in.in: Removed obsolete HAVE_SHM
11722         * emacs.c: Ditto.
11723
11724 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11725
11726         *  device-msw.c (mswindows_delete_device): Free DDE string
11727         handles.
11728
11729 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11730
11731         * keymap.c (get_keyelt):
11732         * unexnt.c (unexec):
11733         * vm-limit.c (memory_warnings):
11734         * ntheap.c (recreate_heap):
11735         * ntheap.h (UNINIT_PTR):
11736         * select-msw.c (Fmswindows_get_clipboard):
11737         (Fmswindows_set_clipboard):
11738         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11739         * objects-msw.c:
11740         * menubar-msw.c (displayable_menu_item):
11741         * glyphs-msw.c:
11742         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11743         * sysdep.c (sys_subshell):
11744         * process-nt.c (nt_create_process):
11745         * nt.c (normalize_filename):
11746         (dostounix_filename):
11747         (unixtodos_filename):
11748         * ntproc.c (win32_executable_type):
11749         * ntplay.c (play_sound_data_1):
11750         (play_sound_file):
11751         * editfns.c (get_home_directory):
11752         * event-msw.c (struct winsock_stream):
11753         (mswindows_dde_callback):
11754         * device-msw.c (msprinter_init_device):
11755         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11756
11757         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11758         mswindows_clear_toolbar were swapped!
11759
11760         * objects-msw.c:(colormap_t):
11761         (fontmap_t):
11762         * emacs.c (struct standard_args): Fixed const jumble.
11763
11764         * glyphs-widget.c (update_widget): Fixed comparison notation.
11765
11766         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11767
11768         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11769         __declspec(noreturn) syntax.
11770
11771 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11772
11773         * eldap.c (Fldap_open):
11774         (Fldap_search_basic):
11775         (Fldap_add):
11776         (Fldap_modify):
11777         Use new coding system conversion macros.
11778
11779 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11780
11781         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11782
11783 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11784
11785         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11786         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11787
11788         * eldap.c (Qadd, Qreplace): New constant symbols
11789         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11790         interruptions by XEmacs signals
11791         Remove unnecessary calls to slow_down_interrupts and
11792         speed_up_interrupts
11793         (Fldap_search_basic): Renamed from Fldap_search_internal
11794         Added new optional parameter VERBOSE that triggers the
11795         display of progress messages
11796         Remove unnecessary calls to slow_down_interrupts and
11797         speed_up_interrupts
11798         LDAP result code analysis rewritten
11799         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11800         (syms_of_eldap): Define the new symbols and functions
11801
11802
11803 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11804
11805         * realpath.c: Determine PATH_MAX maximally portably.
11806
11807         * insdel.c (bytecount_to_charcount): Optimize.
11808         The function used to be optimized for entirely ASCII sequences.
11809         Now it is optimized for successive characters from the same
11810         charset.  This also wins big for _mostly_ ASCII sequences.
11811
11812         * fileio.c (Ffile_truename): convert return from realpath() using
11813         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11814         - Rewrite GCPROing slightly.
11815
11816         * sysdep.c (sys_open): Do filename conversion, like all other
11817         sys_* functions.  Fixes bug:
11818         (let ((file-name-coding-system 'iso-8859-2))
11819            (write-region x y latin2-name))
11820         ==> writes filename using internal encoding.
11821
11822 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11823
11824         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11825         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11826         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11827         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11828         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11829         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11830         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11831         (CONST_IF_NOT_DEBUG): Delete.
11832         * alloc.c (this_one_is_unmarkable): Delete.
11833         (mark_object): Don't check for this_one_is_unmarkable. Use the
11834         c_readonly flag instead.
11835         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11836
11837 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11838
11839         * event-msw.c (mswindows_drain_windows_queue):
11840         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11841         away redundant repaint events.
11842
11843 2000-02-17  Andy Piper  <andy@xemacs.org>
11844
11845         * redisplay.h: declare mark_redisplay_structs.
11846
11847         * redisplay.c (redisplay_window):
11848         (redisplay_frame): don't check subwindows_state_changed.
11849         (mark_redisplay): mark gutters here.
11850
11851         * glyphs.c: (instantiate_image_instantiator): always layout if we
11852         haven't done so already.
11853         (allocate_image_instance): don't mark as dirty.
11854         (update_subwindow): bind inhibit_quit.
11855
11856         * gutter.c (mark_gutters): new function.
11857
11858         * glyphs-x.c (x_update_widget): Always resize to get round a
11859         widget bug.
11860
11861         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11862         breaking absolutely everything.
11863
11864         * gutter.h: declare mark_gutters.
11865
11866 2000-02-16  Martin Buchholz <martin@xemacs.org>
11867
11868         * XEmacs 21.2.29 is released.
11869
11870 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11871
11872         * fns.c (size_bit_vector): Fix computation of the size.
11873
11874 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11875
11876         * *.[ch]: Change CONST to const globally.
11877         find -name '*.[ch]' | \
11878         xargs global-replace \
11879         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11880         - Remove vestigial references to CONST_IS_LOSING
11881
11882 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11883
11884         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11885         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11886         events instead of dispatching them directly.
11887         (mswindows_handle_paint): New function to do repainting.
11888         (mswindows_wnd_proc):
11889         (emacs_mswindows_handle_magic_event): Call above function.
11890
11891 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11892
11893         * objects-msw.c (mswindows_create_font_variant): Return the new
11894         font handle.
11895         (initialize_font_instance): Get font metrics from the underlined
11896         variant of the font to cope with the case where the underlined
11897         font has a bigger descent.
11898
11899 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11900
11901         * gui.c (gui_item_accelerator): Return the first underlined
11902         character in item name.
11903
11904 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11905
11906         * lisp.h: Added Qprinter.
11907
11908         * general.c (syms_of_general): Initialized it.
11909
11910         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11911         (get_frame_dc):
11912         (get_frame_compdc): Made inline.
11913
11914         * console.h (struct console_methods): Added eject_page method.
11915
11916         * frame.h: Added FRAME_DISPLAY_P and friends.
11917         Aligned backslahes in many macros in more readable fashion.
11918         Added page_number to struct frame, and an accessor macro
11919         for it.
11920
11921         * defice.h: Added DEVICE_DISPLAY_P and friends.
11922
11923         * device.c (Fdevice_printer_p): Used these.
11924
11925         * frame.c (allocate_frame_core): Initialize page number.
11926         (Fprint_job_page_number):
11927         (Fprint_job_eject_page): Implemented.
11928
11929         * frame-msw.c (msprinter_eject_page): Added method.
11930         (msprinter_start_page): Added.
11931
11932         * window.c (Fwindow_truncated_p): Fixed docstring.
11933         (Fwindow_last_line_visible_height): Implemented.
11934
11935 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11936
11937         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11938
11939 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11940
11941         * syntax.c (scan_words): Always advance at least one character.
11942
11943 2000-02-13  Andy Piper  <andy@xemacs.org>
11944
11945         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11946         to make sure the glyph is in the cachels.
11947
11948         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11949         global image instance flag.
11950         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11951         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11952
11953         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11954         (Fset_image_instance_property): mark layout as changed.
11955         (invalidate_glyph_geometry_maybe): mark layout as changed.
11956         (glyph_width): use new NEEDS_LAYOUT macro.
11957         (glyph_ascent): ditto.
11958         (glyph_descent): ditto.
11959         (glyph_height): ditto.
11960         (image_instance_layout): mark layout as clean after laying out.
11961         (update_subwindow): don't mark layout as clean here.
11962
11963         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11964         should no longer be needed.
11965
11966         * glyphs-x.c (x_update_widget): sanitize asserts.
11967         (x_finalize_image_instance): sanitize assignment to widgets.
11968
11969         * glyphs-widget.c (widget_instantiate): don't need to clear the
11970         layout flag here.
11971
11972 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11973
11974         * sysdep.c (getcwd): Use standard prototype.
11975         * sysdep.h (getcwd): Use standard prototype.
11976
11977         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11978         (sequence, start, end).
11979         Remove redundant type checking.
11980         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11981         view of `caller-protects') to avoid a crash where the real fix was
11982         found elsewhere.
11983
11984 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11985
11986         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11987
11988         * s/sol2.h: Remove feature macro initialization.
11989
11990         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11991         (vector_hash): New.  Code from internal_hash.
11992         * lrecord.h:
11993         Fix up allocation subsystem comments.
11994
11995         * config.h.in: Add __EXTENSIONS__ for Solaris.
11996
11997         * systime.h (EMACS_GETTIMEOFDAY): New.
11998         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11999         Remove Solaris-specific code.
12000         Use void* for the (ignored) second arg for gettimeofday().
12001
12002         * elhash.c (hash_table_hash): Implement it, finally.
12003         * elhash.c:  Use hashcode_t.
12004
12005         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
12006         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
12007
12008         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
12009         * fns.c (size_bit_vector):
12010         * alloc.c (size_vector):
12011         (make_vector_internal):
12012         (make_bit_vector_internal):
12013         (sweep_bit_vectors_1):
12014         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
12015
12016 2000-02-10  Martin Buchholz  <martin@xemacs.org>
12017
12018         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
12019         Include strings.h to avoid warnings for bzero and strcasecmp.
12020
12021 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12022
12023         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
12024         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
12025
12026         * fns.c (size_bit_vector): New.  Declare bit vectors as a
12027         sequence.
12028
12029 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12030
12031         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
12032         use a value field instead.
12033         (symbol_value_forward_forward): Use value field.
12034         (DEFVAR_SYMVAL_FWD): Use value field.
12035         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
12036         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
12037         (DEFVAR_CONST_INT): Ditto.
12038         (DEFVAR_BOOL): Ditto.
12039         (DEFVAR_CONST_BOOL): Ditto.
12040         (DEFVAR_INT_MAGIC): Ditto.
12041         (DEFVAR_BOOL_MAGIC): Ditto.
12042
12043         * symbols.c (guts_of_unbound_marker): Use value field.
12044         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
12045         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
12046
12047         * lisp.h: Declare dumpopaque and noninteractive1.
12048
12049         * alloc.c (dumpopaque): Added.
12050         (pdump_dump_opaquevec): Added.
12051         (pdump): Call pdump_dump_opaquevec to dump opaque data.
12052         (pdump_load): Reload opaque data.  Sync noninteractive1 with
12053         noninteractive.
12054
12055 2000-02-10  Andy Piper  <andy@xemacs.org>
12056
12057         * glyphs.c (image_instance_layout): if the size changes, mark it
12058         as such.
12059
12060         * redisplay-output.c (redisplay_output_layout): Update the
12061         subwindow here.
12062         (redisplay_output_subwindow): ditto.
12063
12064         * glyphs.c (update_subwindow): make sure we reset flags for
12065         layouts as well as everything else.
12066
12067         * glyphs-widget.c (layout_layout): don't need to set the instances
12068         dimensions here.
12069
12070 2000-02-09  Martin Buchholz  <martin@xemacs.org>
12071
12072         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
12073         not HAVE_DLOPEN, which is a lower-level thing.
12074
12075         * .cvsignore: Ignore gmon.out
12076
12077 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
12078
12079         * .cvsignore: Ignore portable dumper xemacs.dmp file
12080
12081 2000-02-09  Andy Piper  <andy@xemacs.org>
12082
12083         * redisplay-output.c (redisplay_output_layout): be more clever
12084         about when we output based on the changed flags.
12085
12086         * glyphs.h (struct image_instantiator_methods): add update_method.
12087         (struct Lisp_Image_Instance): add changed flags. Declare new
12088         macros for manipulating them.
12089
12090         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12091         (image_instance_parent_glyph): find an image_instance's parent
12092         glyph or image_instance.
12093         (image_instance_layout): mark the size as changed.
12094         (set_image_instance_dirty_p): new function. mark an image
12095         instance, plus all of its parents, as dirty.
12096         (Fset_image_instance_property): use it.
12097         (Fglyph_animated_timeout_handler): use it.
12098         (update_subwindow): call update_widget and device methods for
12099         update_subwindow. Mark all changed flags as clean.
12100         (Fresize_subwindow): mark size as changed.
12101
12102         * glyphs-x.c (x_finalize_image_instance): try and detect gc
12103         failures.
12104         (x_update_subwindow): only resize subwindows here.
12105         (x_update_widget): new function. Update all changed properties of
12106         a widget.
12107         (x_resize_subwindow): deleted.
12108         (x_widget_set_property): deleted.
12109         (x_progress_gauge_set_property): deleted.
12110         (x_progress_gauge_update): new function. Implement recorded
12111         changes.
12112         (x_tab_control_update): ditto.
12113         (x_tab_control_set_property): deleted.
12114         (console_type_create_glyphs_x): declare new functions.
12115         (image_instantiator_format_create_glyphs_x): ditto.
12116
12117         * glyphs-widget.c (widget_set_property): mark text changed.
12118         (update_widget): new function. Update properties of a widget.
12119         (widget_instantiate): for layouts make sure we set their
12120         children's parent correctly.
12121         (tab_control_set_property): new function. Record changes that will
12122         take place under redisplay's control.
12123         (progress_gauge_set_property): ditto.
12124         (image_instantiator_progress_guage): declare new functions.
12125         (image_instantiator_tab_control): ditto.
12126
12127         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12128         now.
12129         (mswindows_update_widget): new function. Update all properties on
12130         a widget that have changed.
12131         (mswindows_button_update): new function. Update a button's set
12132         state.
12133         (mswindows_tab_control_update): new function. Update the items in
12134         a tab.
12135         (mswindows_tab_control_set_property): deleted.
12136         (mswindows_progress_gauge_update): new function. Update the
12137         progress gauge's progress.
12138         (mswindows_widget_set_property): deleted. This is all done
12139         asynchronously now.
12140         (mswindows_progress_gauge_set_property): ditto.
12141         (console_type_create_glyphs_mswindows): declare new methods.
12142         (image_instantiator_format_create_glyphs_mswindows): ditto.
12143
12144         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12145         (msprinter_set_frame_properties): ditto.
12146
12147         * console.h (struct console_methods): Add update_widget_method.
12148
12149 2000-02-09  Andy Piper  <andy@xemacs.org>
12150
12151         * gui-msw.c (Fmswindows_shell_execute): Make
12152         mswindows-shell-execute industrial strength.
12153
12154 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12155
12156         * lrecord.h: Make macro argument `props' match member function `plist'.
12157         * fns.c (Fget):
12158         * fns.c (Fput):
12159         * fns.c (Fremprop):
12160         * fns.c (Fobject_plist):
12161         * alloc.c:
12162         * symbols.c:
12163         Object property list frobbing cleanup.
12164         - Allow any lisp object (compared with `eq'), not just symbols, as
12165           keys in object plists.
12166         - Move symbol plist frobbing into symbols.c, where it belongs.
12167         - Move string plist frobbing into alloc.c, where it belongs.
12168         - Everything's an lrecord now, so no need to test for symbolp, etc.
12169         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12170
12171         * extents.c: Reorder code to remove declarations.
12172
12173         * frame.h (store_in_alist): Remove useless declaration.
12174
12175 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12176
12177         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12178         * config.h.in: Add HAVE_XCONVERTCASE.
12179
12180 2000-02-07  Andy Piper  <andy@xemacs.org>
12181
12182         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12183         it breaks many things.
12184
12185 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12186
12187         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12188         actually can start a common comment type.
12189         * src/syntax.h (SYNTAX_END_P): ditto for end.
12190
12191 2000-02-07  Martin Buchholz <martin@xemacs.org>
12192
12193         * XEmacs 21.2.28 is released.
12194
12195 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12196
12197         * event-Xt.c (x_keysym_to_character): New.
12198         (maybe_define_x_key_as_self_inserting_character): New.
12199         (x_has_keysym): New.
12200         Auto-define all keys on the keyboard as self-insert-key.
12201
12202 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12203
12204         * menubar.c (vars_of_menubar): A small code simplification.
12205
12206         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12207
12208         * ExternalShell.c:
12209         * ExternalClient.c:
12210         * EmacsShell-sub.c:
12211         * EmacsManager.c:
12212         * EmacsFrame.c:
12213         Use consistent style for specifying X resources.
12214
12215         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12216         This makes (dontusethis-set-symbol-value-handler) actually usable.
12217
12218         * lrecord.h (lrecord_decription_type):
12219         * alloc.c (pdump_register_sub):
12220         (pdump_dump_data):
12221         (pdump_reloc_one):
12222         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12223         Comply with XEmacs coding style.
12224         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12225         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12226
12227         * keymap.c (Faccessible_keymaps):
12228         Make (accessible-keymaps map "\C-h") do the Right Thing.
12229         Make (accessible-keymaps map []) do the Right Thing.
12230         Make (accessible-keymaps map "") do the Right Thing.
12231         (check_keymap_definition_loop): New function.
12232         (keymap_store_internal): Keep luser from shooting self in foot,
12233           via (define-key ctl-x-4-map "p" global-map).
12234         Remove fullness slot from struct Lisp_Keymap, since hash tables
12235         are now reliable.
12236         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12237
12238 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12239
12240         * redisplay.c (init_redisplay): Fix small memory leak.
12241         * elhash.h:
12242         * elhash.c (pdump_reorganize_hash_table):
12243         Rename from reorganize_hash_table. Change prototype.
12244         Reuse the original memory for hentries.  Save 100k.
12245         * alloc.c (PDUMP_READ): new macro.
12246         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12247         * alloc.c: No need to #ifndef before #undef.
12248
12249         * print.c: Allow debug_print() to print readably by modifying
12250         debug_print_readably.  Use consistent variable names.
12251
12252         * .dbxrc: Try to get things to work even if stopped in a function
12253         without source available by explicitly specifying source files.
12254 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12255
12256         * unexnt.c (_start): Removed bogus code which caused loading heap
12257         from differrent executable file.
12258         Removed bogus assignment to _fmode, which caused inconsistencies.
12259
12260 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12261
12262         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12263         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12264         Do not preliminary `#define signal sigset'.
12265
12266         * systime.h: Do not prototype environ on windows nt and cygwin,
12267         this conflicts with system header.
12268
12269         * syssignal.h: Use correct define for WINDOWSNT
12270
12271         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12272         with system header.
12273
12274         * sysdep.c (near start of file): Fixed commentary and rearranged
12275         ifdefs in readable order.
12276         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12277         (start_of_text):
12278         (end_of_text):
12279         (end_of_data): Do not compile in if using PDUMP.
12280
12281         * symsinit.h: Prototyped vars_of_nt().
12282
12283         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12284         (find_child_console): Use it.
12285         (sys_kill): Use it.
12286
12287         * ntheap.h: Do not extern os_subtype.
12288
12289         * ntheap.c (cache_system_info): Do not cache unneeded:
12290         nt_major_version, nt_minor_version and os_subtype.
12291         (recreate_heap): Do not compile in when PDUMPing.
12292
12293         * nt.c (geteuid and friends): Use the new varibale
12294         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12295         (init_user_info): Removed the above mentioned hackery.
12296         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12297         stat has been fixed in the C runtime.
12298         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12299
12300         * file-coding.c (struct file_coding_dump): Do not define
12301         ucs_to_mule_table in the struct if not MULE.
12302         (struct struct lrecord_description fcd_description_1): Do not dump
12303         the above.
12304
12305         * emacs.c (main_1): Call vars_of_nt().
12306         (right before Fdump_emacs_data): Don't need lastfile if using both
12307         portabe dumper and system malloc.
12308
12309         * alloc.c (Fmemory_limit): Conditionalized out.
12310         (pdump): Use OPEN_BINARY for the portable dump file.
12311         (pdump_load): Ditto.
12312
12313 2000-02-02  Mike Alexander  <mta@arbortext.com>
12314
12315         * nt.c (convert_time): Set tm_isdst before calling mktime and
12316         avoid calling it at all if the compiler supports 64 bit integers.
12317         Also initialize utc_base_ft before using it.
12318
12319 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12320
12321         * frame.c (change_frame_size_1): Take f->internal_border_width
12322         into consideration when calculating the width of the frame.
12323
12324 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12325
12326         * window.c (frame_min_height):
12327         (frame_size_valid_p):
12328         (frame_pixsize_valid_p): Added.
12329         (check_frame_size): Generalized.
12330
12331         * window.h: Prototyped the above.
12332
12333         * lisp.h:
12334         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12335         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12336         Deleted Vwin32_* and Vbinary_process_* unused variables.
12337
12338         * device-msw.c (msprinter_init_device): Do not get printer font
12339         list; Added DEVMODE functions.
12340
12341         * frame-msw.c: Added lots of printer code.
12342
12343         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12344         general.c.
12345
12346         * console-msw.h: Added more msprinter device private slots.
12347
12348 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12349
12350         * event-msw.c (key_needs_default_processing_p): Added.
12351         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12352
12353 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12354
12355         * glyphs.c (image_instance_layout): Mark image instance as clean
12356         after layout.
12357         (glyph_dirty_p): Removed redundant function.
12358         (invalidate_glyph_geometry_maybe): Added.
12359         (update_glyph_cachel_data): Call it.
12360
12361         * glyphs.h: Prototyped it.
12362
12363         * redisplay.c (add_glyph_rune): Call it.
12364         (redisplay_window): Reset glyphs cachels when frame faces have
12365         changed, thus forcing recomputation of built-in border glyphs.
12366
12367 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12368
12369         * Makefile.in.in: Make portable dumper and purify play well together.
12370         Add imperfect, but better than nothing, support for pdump.
12371         Remove xemacs.dmp when temacs is re-generated.
12372         Don't ignore errors when dumping xemacs.
12373
12374         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12375
12376 2000-01-28  Andy Piper  <andy@xemacs.org>
12377
12378         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12379         (setup_normal_frame): ditto.
12380         (setup_frame_without_minibuffer): ditto.
12381         (setup_minibuffer_frame): ditto.
12382         (delete_frame_internal): ditto.
12383         (Fmake_frame_invisible): ditto.
12384         (Ficonify_frame): ditto.
12385
12386         * window.h: change Fset_window_buffer signature.
12387
12388         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12389         (Fset_window_buffer): allow recording of buffer if the window is
12390         the selected window.
12391         (window_loop): Use new Fset_window signature.
12392
12393 2000-01-23  Daniel Pittman  <daniel@danann.net>
12394
12395         * config.h.in: Added template for `HAVE_ATHENA_3D'
12396
12397 2000-01-29  Andy Piper  <andy@xemacs.org>
12398
12399         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12400
12401         * gutter.c (output_gutter): Don't output if the window isn't live.
12402
12403 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12404
12405         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12406         of 01/12/00: Moved SetFocus back here where it belongs.
12407
12408 2000-01-23  Andy Piper  <andy@xemacs.org>
12409
12410         * s/cygwin32.h: declare printer things.
12411
12412 2000-01-26  Andy Piper  <andy@xemacs.org>
12413
12414         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12415         Alexander.
12416
12417 2000-01-24  Andy Piper  <andy@xemacs.org>
12418
12419         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12420         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12421
12422         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12423
12424         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12425
12426         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12427
12428         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12429         (mswindows_output_display_block): Avoid local shadows.
12430
12431         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12432         (mswindows_enqueue_mouse_button_event): ditto.
12433         (mswindows_handle_gui_wm_command): remove declaration.
12434
12435         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12436         warnings.
12437
12438         * console-msw.h: Avoid shadows.
12439         (mswindows_get_toolbar_button_text):
12440         (emacs_mswindows_create_stream_pair):
12441         (emacs_mswindows_delete_stream_pair):
12442         (mswindows_handle_toolbar_wm_command): declare.
12443
12444         * device-msw.c (build_syscolor_string): Avoid shadows.
12445
12446 2000-01-23  Andy Piper  <andy@xemacs.org>
12447
12448         * glyphs-widget.c (widget_instantiate): reverse the items for
12449         layouts so that children are in the expected order.
12450
12451 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12452
12453         * ralloc.c: safe_bcopy ==> memmove
12454         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12455         * s/msdos.h: Remove BCOPY macros.
12456         * insdel.c (gap_right): Remove BCOPY conditional code.
12457         * insdel.c (gap_left): Remove BCOPY conditional code.
12458         XEmacs demands a working ANSI C compiler - hence memmove.
12459
12460         * regex.c (regex_compile): Remove accidental use of trigraphs.
12461
12462 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12463
12464         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12465         event timestamp.
12466
12467 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12468
12469         * event-msw.c (mswindows_drain_windows_queue): Added the
12470         parameter.
12471         (mswindows_need_event): Commented the call to
12472         mswindows_drain_windows_queue().
12473         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12474         only.
12475
12476         * console-msw.h: Moved a few function prototypes here from
12477         event-msw.c.
12478
12479         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12480         parameter from unsigned short to unsigned long.
12481         (Fmswindows_shell_execute): Added return value.
12482
12483 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12484
12485         * sysdep.c (init_system_name):
12486           process-unix.c (unix_canonicalized_host_name):
12487         Don't call freeaddrinfo() if getaddrinfo() fails.
12488
12489         * process-unix.c (unix_open_unix_network_stream):
12490         Moved the code to get a port # into address loop.
12491
12492 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12493
12494         * buffer.c (reinit_vars_of_buffer):
12495         The right place to initialize conversion_in_dynarr and
12496         conversion_out_dynarr.
12497
12498         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12499
12500         * process-unix.c (unix_canonicalize_host_name): Muleize.
12501         (unix_open_network_stream): Muleize.
12502
12503         * buffer.h: Fix up prototypes for ralloc.c functions.
12504
12505 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12506         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12507         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12508                 instead of gethostbyname()
12509         * process-unix.c: In unix_canonicalize_host_name() and
12510                 unix_open_network_stream(), add code to use getaddrinfo()
12511                 instead of gethostbyname().
12512
12513 2000-01-27  Daniel Pittman <daniel@danann.net>
12514
12515         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12516         libs when built with flat Athena.
12517
12518 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12519
12520         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12521         Use coding standards for function prototypes.
12522
12523 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12524
12525         * dialog-msw.c (push_lisp_string_as_unicode):
12526         * doc.c (unparesseuxify_doc_string):
12527         * dired.c (Fuser_name_completion_1):
12528         * dired.c (Fuser_name_all_completions):
12529         * dired.c (free_user_cache):
12530         * dired.c (user_name_completion):
12531         * console-x.c (get_display_arg_connection):
12532         * minibuf.c (clear_echo_area_internal):
12533         * minibuf.c (echo_area_append):
12534         * eldap.c (Fldap_open):
12535         * eldap.c (Fldap_search_internal):
12536         * frame-x.c (x_set_frame_text_value):
12537         * frame-x.c (x_set_frame_properties):
12538         * frame-x.c (x_create_widgets):
12539         * redisplay-tty.c (term_get_fkeys_1):
12540         * objects-x.c (x_parse_nearest_color):
12541         * objects-x.c (x_valid_color_name_p):
12542         * objects-x.c (x_initialize_font_instance):
12543         * objects-x.c (x_list_fonts):
12544         * objects-x.c (x_find_charset_font):
12545         * tooltalk.c (Fadd_tooltalk_message_arg):
12546         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12547         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12548         * process-unix.c (unix_create_process):
12549         * ntproc.c (sys_spawnve):
12550         * sound.c (Fplay_sound_file):
12551         * sound.c (Fplay_sound):
12552         * buffer.c (init_initial_directory):
12553         * buffer.c (init_buffer):
12554         * editfns.c (init_editfns):
12555         * editfns.c (Ftemp_directory):
12556         * editfns.c (Fuser_full_name):
12557         * editfns.c (uncache_home_directory):
12558         * editfns.c (get_home_directory):
12559         * editfns.c (Fuser_home_directory):
12560         * editfns.c (Fformat_time_string):
12561         * editfns.c (Fcurrent_time_string):
12562         * gui-x.c (button_item_to_widget_value):
12563         * database.c (Fopen_database):
12564         * event-Xt.c (x_to_emacs_keysym):
12565         * event-Xt.c (x_event_to_emacs_event):
12566         * event-Xt.c (describe_event_window):
12567         * event-msw.c (mswindows_wnd_proc):
12568         * glyphs-eimage.c (jpeg_instantiate):
12569         * glyphs-eimage.c (gif_instantiate):
12570         * glyphs-eimage.c (png_instantiate):
12571         * glyphs-eimage.c (tiff_instantiate):
12572         * glyphs-x.c (xbm_instantiate_1):
12573         * glyphs-x.c (x_xbm_instantiate):
12574         * glyphs-x.c (x_xface_instantiate):
12575         * glyphs-x.c (autodetect_instantiate):
12576         * glyphs-x.c (cursor_font_instantiate):
12577         * glyphs-x.c (x_widget_instantiate):
12578         * glyphs-x.c (x_widget_set_property):
12579         * glyphs-x.c (x_widget_property):
12580         * glyphs-x.c (BUILD_GLYPH_INST):
12581         * print.c (write_string_to_stdio_stream):
12582         * print.c (output_string):
12583         * print.c (Falternate_debugging_output):
12584         * print.c (Fexternal_debugging_output):
12585         * glyphs-msw.c (extract_xpm_color_names):
12586         * glyphs-msw.c (mswindows_xpm_instantiate):
12587         * glyphs-msw.c (bmp_instantiate):
12588         * glyphs-msw.c (resource_name_to_resource):
12589         * glyphs-msw.c (mswindows_resource_instantiate):
12590         * glyphs-msw.c (xbm_instantiate_1):
12591         * glyphs-msw.c (mswindows_xbm_instantiate):
12592         * glyphs-msw.c (mswindows_xface_instantiate):
12593         * glyphs-msw.c (mswindows_widget_instantiate):
12594         * glyphs-msw.c (add_tree_item):
12595         * glyphs-msw.c (add_tab_item):
12596         * glyphs-msw.c (mswindows_combo_box_instantiate):
12597         * glyphs-msw.c (mswindows_widget_property):
12598         * glyphs-msw.c (mswindows_combo_box_property):
12599         * glyphs-msw.c (mswindows_widget_set_property):
12600         * console.c (stuff_buffered_input):
12601         * objects-msw.c (mswindows_initialize_color_instance):
12602         * objects-msw.c (mswindows_valid_color_name_p):
12603         * objects-msw.c (mswindows_list_fonts):
12604         * objects-msw.c (mswindows_font_instance_truename):
12605         * bytecode.c (optimize_compiled_function):
12606         * select-x.c (symbol_to_x_atom):
12607         * select-x.c (x_atom_to_symbol):
12608         * select-x.c (hack_motif_clipboard_selection):
12609         * select-x.c (selection_data_to_lisp_data):
12610         * select-x.c (lisp_data_to_selection_data):
12611         * select-x.c (Fx_get_cutbuffer_internal):
12612         * select-x.c (Fx_store_cutbuffer_internal):
12613         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12614         * buffer.h (TO_INTERNAL_FORMAT): New function.
12615         * emacs.c (make_arg_list_1):
12616         * emacs.c (make_argc_argv):
12617         * emacs.c (main_1):
12618         * emacs.c (Fdump_emacs):
12619         * emacs.c (split_string_by_emchar_1):
12620         * file-coding.h:
12621         * lisp.h:
12622         * lstream.h:
12623         * symsinit.h:
12624         * device-x.c (x_init_device):
12625         * device-x.c (Fx_valid_keysym_name_p):
12626         * device-x.c (Fx_get_font_path):
12627         * device-x.c (Fx_set_font_path):
12628         * glyphs.c (bitmap_to_lisp_data):
12629         * glyphs.c (pixmap_to_lisp_data):
12630         * alloc.c (make_ext_string): Use coding system arguments.  Update
12631         all callers.
12632         * alloc.c (build_string):
12633         * callproc.c (child_setup):
12634         * callproc.c (init_callproc):
12635         * fileio.c (lisp_strerror):
12636         * fileio.c (directory_file_name):
12637         * fileio.c (Fexpand_file_name):
12638         * fileio.c (Ffile_truename):
12639         * fileio.c (Fsysnetunam):
12640         * fileio.c (Fdo_auto_save):
12641         * sysdep.c (sys_readdir):
12642         * tests.c: New file.  Allow adding C tests.
12643         Replace GET_* macros with a more comprehensible and flexible
12644         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12645         Modify all calls.
12646         Any coding system can be used to do format conversion.
12647         Eliminate enum external_data_format.
12648         Eliminate convert_to_external_format.
12649         Eliminate convert_to_internal_format.
12650         Make sure file-name, keyboard, terminal, and ctext are always
12651         defined as coding systems or aliases.  Make
12652         file-name-coding-system, terminal-coding-system, and
12653         keyboard-coding-system magical variables that are equivalent to
12654         defining the corresponding coding system aliases.
12655
12656         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12657         * file-coding.c (Fcoding_system_alias_p): New function.
12658         * file-coding.c (Fcoding_system_aliasee): New function.
12659         * file-coding.c (append_suffix_to_symbol): New function.
12660         * file-coding.c (dangling_coding_system_alias_p): New function.
12661         * file-coding.c (Ffind_coding_system):
12662         * file-coding.c (Fcopy_coding_system):
12663         * file-coding.c (encode_coding_no_conversion):
12664         * file-coding.c (syms_of_file_coding):
12665         * file-coding.c (vars_of_file_coding):
12666         Rewrite coding system alias code.
12667         Allow nested aliases, like symbolic links.
12668         Allow redefinition of coding system aliases.
12669         Prevent existence of dangling coding system aliases.
12670
12671         * dired.c (Fuser_name_completion_1):
12672         * dired.c (Fuser_name_all_completions):
12673         A crash would happen if user did QUIT in the middle of building
12674         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12675
12676         * lisp.h:
12677         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12678
12679         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12680         an unsigned char *.  Update all callers.
12681
12682 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12683
12684         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12685
12686 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12687
12688         * elhash.c (hentry_description): Use more portable definition.
12689         (resize_hash_table): Initialize new hentries using
12690         xnew_array_and_zero, thereby simplifying the code.
12691
12692         * mule-charset.c (make_charset): Make sure entire object is
12693         initialized, to avoid Purify warnings.
12694
12695         * alloc.c (resize_string): Fix unlikely crash with big strings.
12696
12697 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12698
12699         * realpath.c (xrealpath):
12700         Don't call getwd().
12701
12702 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12703
12704         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12705
12706 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12707
12708         * unexelfsgi.c (unexec): Change the way we decide which segment
12709         should be extended.
12710
12711         Assumption that .bss section should be outside the PT_LOADable
12712         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12713         it's present) is inside the 'data' segment. This would fail the
12714         test which was used to find a segment to grow and cover new
12715         heap. Instead of this assumption, I created another one - on IRIX
12716         the segment to grow should start below .bss and it's address
12717         should extent above the end of .bss. Once this segment is
12718         identified, it's grown to accommodate the new heap and new
12719         zero-length .bss section is added at the end of .data2.
12720
12721 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12722
12723         * eval.c (Feval): Wrong number of arguments should use original
12724         function, not the indirect_function version of it.
12725
12726 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12727
12728         * glyphs-x.c (x_button_instantiate): Don't add image if
12729         it is not a pixmap.
12730         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12731         is relative.
12732
12733 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12734
12735         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12736         declaration.
12737         (DEFVAR_INT_MAGIC): Ditto.
12738         (DEFVAR_BOOL_MAGIC): Ditto.
12739         * glyphs.h: Reindent backslash.
12740
12741 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12742
12743         * glyphs-widget.c (layout_query_geometry):
12744         (layout_layout): Use correct types for gheight, gwidth.
12745
12746 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12747
12748         * EmacsManager.c (QueryGeometry): Purified.
12749
12750 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12751
12752         * alloc.c (make_float): Make sure entire object is initialized, to
12753         avoid Purify warnings.
12754         (pdump_register_sub): Remove useless assignment.
12755         (pdump): Use xmalloc, not malloc.
12756         (pdump_load): Use xmalloc, not malloc.
12757
12758 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12759
12760         * callproc.c:
12761         * dired-msw.c:
12762         * fileio.c:
12763         * process-nt.c:
12764         * redisplay-msw.c:
12765         * sysdep.c: Removed redundant #include <windows.h>
12766
12767 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12768
12769         * frame.c (delete_frame_internal): Do not delete device when its
12770         implementation so declares.
12771         (delete_frame_internal): Set device selected frame to nil when
12772         last frame goes away.
12773
12774         * device-msw.c (msprinter_device_system_metrics): Implemented.
12775         (mswindows_device_system_metrics): Added 'device-dpi property.
12776
12777         * device.c: (Fdevice_printer_p): Added.
12778         Added 'offset-workspace device metric.
12779
12780         * console.h (device_metrics): Declared DM_offset_workspace.
12781
12782 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12783
12784         * fileio.c (Ffile_truename): Remove pointless and confusing
12785         initialization of elen.
12786
12787         * glyphs-widget.c: Compiler warning fixes.
12788
12789 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12790
12791         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12792         instead of a Lisp_Object as argument to make it consistent with
12793         the other LIVE_P macros.
12794         (CHECK_LIVE_PROCESS): New macro.
12795
12796         * process.c: Declare Qprocess_live_p.
12797         (Fprocess_live_p): New function.
12798         (create_process): Use PROCESS_LIVE_P.
12799         (read_process_output): Ditto.
12800         (set_process_filter): Ditto.
12801         (Fdelete_process): Ditto.
12802         (kill_buffer_processes): Ditto
12803         (process_send_signal): Use CHECK_LIVE_PROCESS.
12804         (Fprocess_input_coding_system): Check whether process is still
12805         alive (fix PR#1061).
12806         (Fprocess_output_coding_system): Ditto.
12807         (Fprocess_coding_system): Ditto.
12808         (Fset_process_input_coding_system): Ditto.
12809         (Fset_process_output_coding_system): Ditto.
12810
12811 2000-01-23  Andy Piper  <andy@xemacs.org>
12812
12813         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12814         layout and widget.
12815
12816         * glyphs.c (mark_image_instance): take into account changed
12817         image_instance format.
12818         (image_instance_equal): ditto.
12819         (image_instance_hash): ditto.
12820
12821         * glyphs-widget.c (widget_instantiate): Incorporate layout
12822         instantiation here. Delay layout of the layout until later.
12823         (layout_instantiate): deleted.
12824         (layout_query_geometry): new function. get the geometry of a
12825         layout.
12826         (layout_layout): layout a layout dynamically.
12827         (image_instantiator_widget): New function - splitting up
12828         image_instantiator_format_create_glyphs_widget for netwinder
12829         compilation.
12830         (image_instantiator_buttons):
12831         (image_instantiator_edit_fields):
12832         (image_instantiator_combo_box):
12833         (image_instantiator_scrollbar):
12834         (image_instantiator_progress_guage):
12835         (image_instantiator_tree_view):
12836         (image_instantiator_tab_control):
12837         (image_instantiator_labels):
12838         (image_instantiator_layout): ditto.
12839         (image_instantiator_format_create_glyphs_widget): Call preceding
12840         functions.
12841
12842 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12843
12844         * process.c (Fset_process_coding_system):
12845         * device-x.c (Fx_keysym_hash_table):
12846         Docstring fixes.
12847
12848         * lstream.c (Lstream_write): Return documented value, not 0.
12849
12850         * fileio.c (directory_file_name):
12851         (Fsubstitute_in_file_name):
12852         (Fsubstitute_insert_file_contents_internal):
12853         (Fwrite_region_internal):
12854         * emacs.c:
12855         * sysdep.c:
12856         * getloadavg.c:
12857         * systty.h:
12858         Remove vestigial APOLLO-conditional code.
12859
12860 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12861
12862         * getpagesize.h: Add guard macros.
12863         * libsst.h: Add guard macros.
12864         * libst.h: Add guard macros.
12865         * line-number.h: Add guard macros.
12866         * ndir.h: Add guard macros.
12867         * sysfloat.h: Add guard macros.
12868         * sysfile.h: Add guard macros.
12869         * sysproc.h: Add guard macros.
12870         * syswait.h: Add guard macros.
12871         * xintrinsic.h: Add guard macros.
12872         * xintrinsicp.h: Add guard macros.
12873         * xmmanager.h: Add guard macros.
12874         * xmmanagerp.h: Add guard macros.
12875         * xmprimitive.h: Add guard macros.
12876         * xmu.h: Add guard macros.
12877         * gpmevent.h: Add copyright statement. Add guard macros.
12878         * miscplay.h: Add guard macros.
12879         * *.h: Use consistent C-standards-approved guard macro names.
12880
12881         * opaque.c (make_opaque): Switch parameter order.
12882         * opaque.h (make_opaque): Switch parameter order.
12883         Update all callers.
12884         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12885
12886         * config.h.in (type_checking_assert): Added.
12887         (bufpos_checking_assert): Added.
12888
12889 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12890
12891         * alloc.c: Harmless pdump changes.
12892         - Use countof().
12893         - spell alignment correctly.
12894         * sysdep.c: Use countof()
12895
12896 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12897
12898         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12899         initially_selected_for_input() console method, default to 0.
12900         (semi_canonicalize_console_connection): Try to delegate to
12901         canonicalize_console_connection if no such console method.
12902         (canonicalize_console_connection): Vice versa.
12903         (print_console): Do not print nil connection.
12904
12905         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12906         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12907         (XDEVIMPF_FRAMELESS_OK): Added.
12908         (CONSOLE_INHERITS_METHOD): Added.
12909
12910         * console-msw.c (mswindows_canonicalize_console_connection):
12911         Added.
12912         (mswindows_canonicalize_device_connection): Added.
12913
12914         * console-msw.h (struct msprinter_device): Added this struct and
12915         accessor macros.
12916         (mswindows_device): Made fontlist a lisp object.
12917
12918         * device.c (semi_canonicalize_device_connection):  Try to delegate
12919         to canonicalize_device_connection if no such console method.
12920         (canonicalize_device_connection): Vice versa.
12921         (print_device): Do not print nil connection.
12922
12923         * device-msw.c (mswindows_init_device): Call InitCommonControls
12924         when have widgets.
12925         (mswindows_delete_device): Removed fontlist deallocation.
12926         (mswindows_mark_device): Added.
12927
12928         * events.c (event_equal): Added abort() at unreached code.
12929         (event_hash): Ditto.
12930
12931         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12932         fallback tags of Windows devices.
12933
12934         * general.c (syms_of_general): Initialized Qmsprinter.
12935
12936         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12937         of fallback tags of Windows devices.
12938
12939         * lisp.h: Declared Qmsprinter.
12940
12941         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12942         of strings.
12943         (mswindows_list_fonts): Ditto.
12944         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12945         that it can be used by both mswindows and msprinter devices.
12946         (initialize_font_instance): Added.
12947         (mswindows_initialize_font_instance): Use it.
12948         (msprinter_initialize_font_instance): Added.
12949
12950         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12951         and implementation flags check.
12952         (redisplay_without_hooks): Changed the call to the above.
12953         (Fredraw_device): Ditto.
12954         (Fredisplay_device): Ditto.
12955
12956         * redisplay-msw.c (get_frame_dc): Implemented.
12957         (get_frame_compdc): Implemented.
12958         (many functions): Use the two functions above to get device
12959         contexts, ether for a window or a printer.
12960
12961 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12962
12963         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12964         initialization here.
12965         (init_symbols_once_early): Call it.
12966         * emacs.c (main_1): Call it.
12967         * symsinit.h: Declare it.
12968
12969 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12970
12971         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12972         Lisp_Object.
12973         (pdump_backtrace): Ditto.
12974         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12975         (pdump_get_entry): Abort if trying to register a null pointer.
12976         (pdump_dump_data): Cleanup types when relocating.
12977         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12978         (pdump_dump_rtables): Remove bad casts.
12979         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12980         Lisp_Object instead of a EMACS_INT for the hashtable
12981         reorganization.
12982
12983 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12984
12985         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12986
12987         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12988
12989         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12990
12991         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12992
12993 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12994
12995         * faces.h (FACE_STRIKETHRU_P): Added.
12996
12997         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12998         of font variants.
12999
13000         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
13001         (mswindows_set_dc_font): New function, aware of font variants,
13002         separated from mswindows_update_dc.
13003
13004         * objects-msw.h (struct mswindows_font_instance_data): Added
13005         definition.
13006
13007         * objects-msw.c (mswindows_finalize_font_instance): Delete all
13008         cached fonts and the data structure.
13009         (mswindows_initialize_font_instance): Added creation of font data
13010         structure.
13011         (mswindows_print_font_instance): Print at least something.
13012         (mswindows_create_font_variant): Implemented.
13013         (mswindows_get_hfont): Implemented.
13014
13015 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
13016
13017         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
13018         prototyping problem with msvc.
13019
13020         * emacs.c (main_1): added syms_of_gui_mswindows() call
13021
13022         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
13023         syms_of_gui_mswindows() function
13024
13025         * symsinit.h: added the prototype for syms_of_gui_mswindows()
13026
13027 2000-01-18  Martin Buchholz <martin@xemacs.org>
13028
13029         * XEmacs 21.2.27 is released.
13030
13031 2000-01-18  Martin Buchholz  <martin@xemacs.org>
13032
13033         * glyphs-eimage.c (struct tiff_error_struct):
13034         (tiff_error_func):
13035         (tiff_warning_func):
13036         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
13037
13038         * unexmips.c:
13039         * unexhp9k3.c:
13040         * unexfreebsd.c:
13041         * unexec.c: Remove vestigial Lucid C code.
13042         * unexalpha.c:
13043         * unexaix.c:
13044         * termcap.c:
13045         * libsst.c: Ansify.
13046         Remove declarations of errno and strerror().
13047
13048         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
13049
13050         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
13051
13052 2000-01-16  Martin Buchholz  <martin@xemacs.org>
13053
13054         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
13055         Optimize.
13056
13057 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13058
13059         * md5.c:
13060         * file-coding.c:
13061         * file-coding.h:
13062         Change enum eol_type to eol_type_t.
13063
13064 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13065
13066         * gui.c (get_gui_callback): Check cons before accessing car.
13067
13068 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13069
13070         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
13071         (XSETSPECIFIER_TYPE): Ditto.
13072
13073 2000-01-17  Didier Verna  <didier@xemacs.org>
13074
13075         * redisplay.c (generate_fstring_runes): compute string size in
13076         characters, not bytes.
13077
13078 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13079
13080         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13081
13082 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
13083
13084         * print.c (print_error_message): Call print_prepare().
13085
13086 2000-01-14  Martin Buchholz  <martin@xemacs.org>
13087
13088         * .dbxrc: Renamed from dbxrc.
13089
13090         * events.c (event_to_character):
13091         Use `assert (foo)' instead of `if (!foo) abort()'
13092
13093         * .gdbinit (xtype): Add documentation.
13094         * .gdbinit (check-temacs): New function.
13095         * .gdbinit (check-xemacs): New function.
13096         * dbxrc (check-xemacs): New function.
13097         * dbxrc (check-xemacs): New function.
13098
13099 2000-01-14  Andy Piper  <andy@xemacs.org>
13100
13101         * glyphs-widget.c (widget_query_geometry): Make sure that we
13102         calculate default dimensions correctly.
13103
13104 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13105
13106         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13107
13108         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13109         pdump_wire'd variable.
13110
13111         * emacs.c: (main_1): Conditionalized calls to
13112         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13113
13114 2000-01-13  Martin Buchholz  <martin@xemacs.org>
13115
13116         * window.c (Fset_window_configuration):
13117         * sysdep.c (_start):
13118         * input-method-motif.c (res):
13119         * event-Xt.c (Xt_process_to_emacs_event):
13120         Simple compiler warning fixes.
13121
13122         * bytecode.c (funcall_compiled_function): Use the original
13123         function symbol on the backtrace list in preference to the
13124         compiled_function object in error messages.
13125
13126 2000-01-13  Andy Piper  <andy@xemacs.org>
13127
13128         * glyphs-x.c (update_widget_face): Make sure we update the widget
13129         background as well as foreground.
13130
13131 2000-01-13  Andy Piper  <andy@xemacs.org>
13132
13133         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13134         fields to subwindow.
13135         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13136         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13137         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13138         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13139
13140         * glyphs-widget.c (check_valid_tab_orientation): new function.
13141         (initialize_widget_image_instance): zero orientation and
13142         justification.
13143         (widget_instantiate): pick up orientation.
13144         (tab_control_query_geometry): return appropriate values for
13145         vertical tabs.
13146
13147         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13148         appropriate creation flags for left, right and bottom tabs.
13149
13150         * s/cygwin32.h: add tab definitions.
13151
13152 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13153
13154         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13155         frame upon hiding a subwindow.
13156         (mswindows_button_instantiate): Changed the push button style to
13157         BS_PUSHBUTTON.
13158         (mswindows_button_instantiate): Removed button BS_NOTIFY
13159         style.
13160         (mswindows_button_instantiate): Removed redundant check for
13161         a disabled gui item.
13162         (mswindows_button_instantiate): Made use of WS_TABSTOP
13163         consistent: "operable" controls (edit, button, tree, scroll) have
13164         this style, "display-only" ones (static, progress gauge) do
13165         not. This style is currently ignored by XEmacs though. Also,
13166         removed the WS_EX_CONTROLPARENT style - it is not for children,
13167         it is for their parents!
13168         (mswindows_edit_field_instantiate): Ditto.
13169         (mswindows_progress_gauge_instantiate): Ditto.
13170         (mswindows_tree_view_instantiate): Ditto.
13171         (mswindows_tab_control_instantiate): Ditto.
13172         (mswindows_scrollbar_instantiate): Ditto.
13173         (mswindows_combo_box_instantiate): Ditto.
13174         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13175         style to the "clip" window.
13176         (mswindows_button_instantiate): Removed compilation warning by
13177         equally typing terms of the ?: operator.
13178
13179 2000-01-12  Didier Verna  <didier@xemacs.org>
13180
13181         * redisplay.c (generate_fstring_runes): new parameter holding the
13182         last modeline-format extent.
13183         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13184         extent, fill the glyph block with it.
13185         (generate_fstring_runes): handle these parameters.
13186         (generate_formatted_string_db): ditto.
13187
13188         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13189         glyphs'extents in the modeline.
13190
13191 1999-01-11  Mike Woolley  <mike@bulsara.com>
13192
13193         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13194         256Mb, as a workaround for the non-starting problem many people
13195         have experienced.
13196
13197 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13198
13199         * console-tty.c (Fset_console_tty_output_coding_system):
13200         Force redrawing tty frame.
13201
13202 2000-01-10  Didier Verna  <didier@xemacs.org>
13203
13204         * redisplay.c (generate_fstring_runes): fix size computation bug.
13205
13206 2000-01-09  William M. Perry <wmperry@aventail.com>
13207
13208         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13209
13210 2000-01-09  Andy Piper  <andy@xemacs.org>
13211
13212         * glyphs-msw.c: index -> i to avoid shadows.
13213         (xbm_create_bitmap_from_data): make static.
13214         (check_valid_string_or_int): deleted.
13215         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13216
13217         * glyphs-x.c (x_update_subwindow): remove unused args.
13218
13219         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13220         back pointer - this is done in allocate_image_instance.
13221         (query_string_font): return Qnil to make the compiler happy.
13222         (unmap_subwindow): set to ~0 to make the compiler happy.
13223         (glyph_query_geometry): comment out until used.
13224         (glyph_layout): ditto.
13225
13226 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13227
13228         * insdel.c (signal_after_change): Remove extraneous unbind_to().