update.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * text-coding.c (char_encode_big5): Support entity-reference.
4
5 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
6
7         * text-coding.c (char_encode_as_entity_reference): New function.
8         (char_encode_utf8): Use `char_encode_as_entity_reference'.
9
10 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * text-coding.c (decode_coding_big5): Support entity-reference
13         decoding feature.
14
15 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * text-coding.c (allocate_coding_system): Initialize initial
18         charsets for CODESYS_UTF8.
19         (Fmake_coding_system): Accept charset-g0, charset-g1 and
20         charset-g2 for CODESYS_UTF8.
21         (decode_coding_utf8): Use charset-g0.
22         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
23         to force variants to map to UCS.
24
25 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
26
27         * text-coding.c (Qutf_8_mcs): New variable.
28         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
29         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
30         instead of `utf-8' in UTF-2000.
31
32 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
35         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
36         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
37         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
38         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
39         CONVERSION_96x96x96x96 are introduced.
40         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
41         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
42         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
43
44         * char-ucs.h (CONVERSION_94): New macro.
45         (CONVERSION_96): New macro.
46         (CONVERSION_94x94): New macro.
47         (CONVERSION_96x96): New macro.
48         (CONVERSION_94x94x94): New macro.
49         (CONVERSION_96x96x96): New macro.
50         (CONVERSION_94x94x94x60): New macro.
51         (CONVERSION_94x94x94x94): New macro.
52         (CONVERSION_96x96x96x96): New macro.
53
54 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
55
56         * chartab.c (Vcharacter_variant_table): Deleted.
57         (Fchar_variants): Use character-attribute `->ucs-variants' instead
58         of `Vcharacter_variant_table'.
59         (Fput_char_attribute): Likewise.
60         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
61         (complex_vars_of_chartab): Likewise.
62
63 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
64
65         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
66
67         * fns.c (Qideographic_structure): New variable.
68         (Qkeyword_char): New variable.
69         (ids_format_unit): New function.
70         (Fideographic_structure_to_ids): New function.
71         (syms_of_fns): Add new symbols `ideographic-structure' and
72         `:char'; add new builtin function `ideographic-structure-to-ids'.
73
74         * data.c (Fchar_ref_p): New function.
75         (syms_of_data): Add new builtin function `char-ref-p'.
76
77         * chartab.h: Add an EXFUN for `Ffind_char'.
78
79 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * text-coding.c (Vcharacter_composition_table): Deleted.
82         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
83         in every UTF-2000.
84
85         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
86         UTF-2000.
87         (Vcharacter_composition_table): Deleted.
88         (Fget_composite_char): Use the implementation for external-DB
89         support in every UTF-2000.
90         (Fput_char_attribute): Likewise.
91         (char_attribute_system_db_file): Don't define if external-DB
92         feature is not available.
93         (Fsave_char_attribute_table): Likewise.
94         (Fmount_char_attribute_table): Likewise.
95         (Fclose_char_attribute_table): Likewise.
96         (Freset_char_attribute_table): Likewise.
97         (Fload_char_attribute_table): Likewise.
98         (syms_of_chartab): Don't define `save-char-attribute-table',
99         `mount-char-attribute-table', `reset-char-attribute-table',
100         `close-char-attribute-table' and `load-char-attribute-table' if
101         external-DB feature is not available.
102         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
103
104 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
105
106         * text-coding.c (Qcomposition): Add extern if external-DB feature
107         is supported.
108         (Vcharacter_composition_table): Don't add extern if external-DB
109         feature is supported.
110         (COMPOSE_ADD_CHAR): Modify for new data-representation of
111         character composition rule if external-DB feature is supported.
112
113         * chartab.c (Vcharacter_composition_table): Don't define if
114         external-DB feature is supported.
115         (Qcomposition): New variable.
116         (Fget_composite_char): New implementation for external-DB support.
117         (Fput_char_attribute): Use `composition' property of each
118         character instead of `Vcharacter_composition_table' to store
119         character-composition rules if external-DB feature is supported.
120         (syms_of_chartab): Add new symbol `composition'.
121         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
122         external-DB feature is supported.
123
124 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
125
126         * chartab.c (Vchar_db_stingy_mode): New variable.
127         (load_char_attribute_maybe): Close database if
128         Vchar_db_stingy_mode is not NIL.
129         (Fload_char_attribute_table_map_function): Use
130         `get_char_id_table_0' instead of `get_char_id_table'.
131         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
132
133         * chartab.h (get_char_id_table_0): New inline function.
134         (get_char_id_table): Use `get_char_id_table_0'.
135
136 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
137
138         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
139         and `COMPOSE_ADD_CHAR'.
140         (decode_coding_iso2022): Use `decode_flush_er_chars'.
141
142 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
143
144         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
145         instead of `DECODE_ADD_UCS_CHAR'.
146         (COMPOSE_ADD_CHAR): Likewise.
147
148 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
149
150         * text-coding.c (decode_flush_er_chars): New inline function.
151         (decode_add_er_char): New function.
152         (decode_coding_utf8): Use `decode_flush_er_chars' and
153         `decode_add_er_char'.
154
155 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
156
157         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
158         done before `decode_output_utf8_partial_char'.
159
160         * mule-charset.c (complex_vars_of_mule_charset): Specify
161         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
162         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
163
164 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * mule-charset.c (decode_defined_char): New function; search
167         mother.
168         (decode_builtin_char): Don't search mother if
169         XCHARSET_MAX_CODE(charset) == 0.
170         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
171         == 0 even if code >= XCHARSET_MAX_CODE(charset).
172         (Fdecode_char): Use `decode_defined_char' instead of
173         `DECODE_DEFINED_CHAR'.
174         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
175         mother of `Vcharset_ucs_jis'.
176
177         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
178         instead of `DECODE_DEFINED_CHAR'.
179
180         * char-ucs.h (decode_defined_char): Renamed from
181         `DECODE_DEFINED_CHAR'; changed to normal function.
182         (DECODE_CHAR): Use `decode_defined_char' instead of
183         `DECODE_DEFINED_CHAR'.
184
185         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
186
187 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
190
191         * text-coding.c (Vcoded_charset_entity_reference_alist): New
192         variable.
193         (Quse_entity_reference): New variable.
194         (Qd): New variable.
195         (Qx): New variable.
196         (QX): New variable.
197         (coding_system_description): Add description for
198         `ccs_priority_list'.
199         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
200         (allocate_coding_system): Initialize `ccs_priority_list' in
201         UTF-2000.
202         (Fmake_coding_system): Add description about
203         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
204         (codesys).
205         (Fcoding_system_property): Accept `disable-composition' and
206         `use-entity-reference' in UTF-2000.
207         (struct decoding_stream): Add new member `er_counter' and `er_buf'
208         in UTF-2000.
209         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
210         (decode_coding_utf8): Decode entity-reference if
211         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
212         (char_encode_utf8): Encode non-Unicode characters as
213         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
214         (str->codesys).
215         (syms_of_file_coding): Add new symbols `use-entity-reference',
216         `d', `x', `X'.
217         (vars_of_file_coding): Add new variable
218         `coded-charset-entity-reference-alist'.
219         (complex_vars_of_file_coding): Declare `disable-composition' and
220         `use-entity-reference' to be coding-system-properties in UTF-2000.
221
222         * file-coding.h (struct Lisp_Coding_System): Add new member
223         `use_entity_reference' and `ccs_priority_list'.
224         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
225         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
226         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
227
228 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
229
230         * chartab.c (save_uint8_byte_table): Don't clear the table.
231         (save_uint16_byte_table): Likewise.
232         (save_byte_table): Likewise.
233         (Fmount_char_attribute_table): New function.
234         (syms_of_chartab): Add new builtin function
235         `mount-char-attribute-table'.
236
237 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
238
239         * mule-charset.c (Fsave_charset_mapping_table): Open database as
240         "w+" mode.
241         (load_char_decoding_entry_maybe): Open database as read-only mode.
242
243         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
244         open database as "w+" mode.
245         (load_char_attribute_maybe): Open database as read-only mode.
246         (Fload_char_attribute_table): Likewise.
247
248 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
249
250         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
251         (char_table_description): Delete member `db_file'.
252         (Fmake_char_table): Don't refer `ct->db_file'.
253         (Fcopy_char_table): Likewise.
254         (Fsave_char_attribute_table): Likewise.
255         (Fclose_char_attribute_table): Likewise.
256         (Freset_char_attribute_table): Likewise.
257         (load_char_attribute_maybe): Likewise.
258         (Fload_char_attribute_table): Likewise.
259
260         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
261
262 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
265         (Fsave_char_attribute_table): Don't check `ct->db_file' if
266         `ct->db' is living.
267         (load_char_attribute_maybe): Likewise.
268         (Fload_char_attribute_table): Likewise.
269
270 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
271
272         * chartab.c (Fclose_char_attribute_table): Set Qnil on
273         `ct->db_file' unconditionally.
274
275 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
276
277         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
278         UTF-2000.
279         (char_table_description): Add description for `db_file' and `db'
280         in UTF-2000.
281         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
282         UTF-2000.
283         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
284         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
285         (Fclose_char_attribute_table): New function.
286         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
287         (load_char_attribute_maybe): Change interface; use `cit->db_file'
288         and `cit->db'.
289         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
290         (syms_of_chartab): Add new builtin function
291         `Fclose_char_attribute_table'.
292
293 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
294
295         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
296         `db' in UTF-2000.
297         (load_char_attribute_maybe): Change interface.
298         (get_char_id_table): Modify for `load_char_attribute_maybe'.
299
300 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
301
302         * database.h: Add an EXFUN for `Fdatabase_live_p'.
303
304 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
307         instead of `DECODE_CHAR' for mother; don't use special code for
308         chinese-big5 to use code space of chinese-big5-1 and
309         chinese-big5-2.
310         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
311         `MAX_CHAR_BIG5_CDP' for chinese-big5.
312
313         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
314         (MAX_CHAR_BIG5_CDP): Revival.
315
316 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
319         the XLFD registry-encoding name of `chinese-big5'.
320
321 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
322
323         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
324         (Qchinese_big5_cdp): Deleted.
325         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
326         (complex_vars_of_mule_charset): Delete coded-charset
327         `chinese-big5-cdp'.
328
329         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
330         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
331         `CHARSET_ID_OFFSET - n' for private CCS.
332         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
333         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
334         of `MIN_LEADING_BYTE'.
335         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
336         `(CHARSET_ID_OFFSET - 97)'.
337         (MIN_CHAR_BIG5_CDP): Deleted.
338         (MAX_CHAR_BIG5_CDP): Deleted.
339
340 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
343
344 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
345
346         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
347         (vars_of_mule): Add new variable `utf-2000-version' [moved from
348         chartab.c].
349
350         * chartab.c (Vutf_2000_version): Moved to mule.c.
351         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
352
353 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
354
355         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
356         when HAVE_CHISE_CLIENT is not defined.
357
358         * mule.c (vars_of_mule): Provide feature `chise' when
359         HAVE_CHISE_CLIENT is defined.
360
361 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
362
363         * config.h.in (UTF2000): Add comment.
364         (HAVE_CHISE_CLIENT): New macro.
365
366 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
367
368         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
369         CONSP.
370         (Fput_char_attribute): Likewise.
371         (char_attribute_system_db_file): Encode file-name of attribute.
372         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
373         the initial value.
374
375 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
376
377         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
378         (Fsave_charset_mapping_table): Use
379         `char_attribute_system_db_file'.
380         (load_char_decoding_entry_maybe): Likewise.
381
382         * chartab.h (Qsystem_char_id): New external variable.
383         (char_attribute_system_db_file): New prototype.
384
385         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
386         (char_attribute_system_db_file): New function.
387         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
388         (Freset_char_attribute_table): Likewise.
389         (load_char_attribute_maybe): Likewise.
390         (Fload_char_attribute_table): Likewise.
391         (syms_of_chartab): Add new symbol `system-char-id'.
392
393 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
394
395         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
396         `XCHARSET_GRAPHIC(ccs)'.
397
398 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
401
402 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
403
404         * chartab.c (Q_ucs_variants): New variable.
405         (syms_of_chartab): Add new symbol `->ucs-variants'.
406         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
407         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
408         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
409
410         * mule-charset.c (load_char_decoding_entry_maybe): New function.
411
412         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
413         `HAVE_DATABASE' is defined.
414         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
415         `HAVE_DATABASE' is defined.
416
417 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
418
419         * chartab.c (Fsave_char_attribute_table): Don't clear internal
420         attribute-table.
421         (Freset_char_attribute_table): New function.
422         (syms_of_chartab): Add new builtin function
423         `reset-char-attribute-table'.
424
425 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
426
427         * chartab.c (load_char_attribute_maybe): Don't make directories.
428
429 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
430
431         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
432
433         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
434         for decoding-table.
435
436 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
437
438         * mule-charset.c (Fsave_charset_mapping_table): Use
439         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
440
441         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
442         instead of `XCHARSET_CHARS'.
443
444 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
445
446         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
447         (XCHARSET_BYTE_SIZE): Likewise.
448
449         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
450         mule-charset.c].
451         (XCHARSET_BYTE_SIZE): Likewise.
452
453 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
454
455         * chartab.c (Fput_char_attribute): Use exec-directory instead of
456         data-directory to store database.
457         (Fsave_char_attribute_table): Likewise.
458         (load_char_attribute_maybe): Likewise.
459         (Fload_char_attribute_table): Likewise.
460
461 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
462
463         * mule-charset.c (Fsave_charset_mapping_table): New function.
464         (syms_of_mule_charset): Add new builtin function
465         `save-charset-mapping-table'.
466
467 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
468
469         * char-ucs.h (decoding_table_check_elements): Delete prototype.
470         (get_ccs_octet_table): New inline function.
471         (put_ccs_octet_table): Likewise.
472         (decoding_table_put_char): Use `get_ccs_octet_table' and
473         `put_ccs_octet_table'.
474         (decoding_table_remove_char): Use `decoding_table_put_char'.
475         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
476
477         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
478         into encoding_table.
479         (make_charset): Use Qunbound instead Qnil as initial value of
480         decoding_table.
481
482 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
483
484         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
485         element is Qunloaded.
486         (map_over_uint16_byte_table): Likewise.
487         (map_over_byte_table): Likewise.
488         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
489         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
490         database support, load encoding-table of the specified
491         coded-charset if it is not loaded yet.
492         (save_uint8_byte_table): New function of UTF-2000 with external
493         database support.
494         (save_uint16_byte_table): Likewise.
495         (save_byte_table): Likewise.
496         (Fput_char_attribute): Don't store value into external database
497         even if the external database feature is supported in UTF-2000;
498         set `attribute' as name of char-table if the external database
499         feature is supported.
500         (Fsave_char_attribute_table): New function in UTF-2000.
501         (syms_of_chartab): Add new builtin function
502         `save-char-attribute-table' in UTF-2000.
503
504 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
505
506         * chartab.c (char_attribute_table_to_put): New variable in
507         UTF-2000.
508         (Qput_char_table_map_function): Likewise.
509         (value_to_put): Likewise.
510         (Fput_char_table_map_function): New function in UTF-2000.
511         (put_char_table): Use `Fmap_char_attribute' for
512         CHARTAB_RANGE_CHARSET in UTF-2000.
513         (Fput_char_attribute): Store symbol instead of string in
514         `XCHAR_TABLE_NAME (table)'.
515         (load_char_attribute_maybe): Likewise.
516         (syms_of_chartab): Add new symbol/function
517         `put-char-table-map-function'.
518
519 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * database.h: Add new EXFUN for `Fmap_database'.
522
523         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
524         (syms_of_database): Likewise.
525
526         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
527         UTF-2000.
528         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
529         (XCHAR_TABLE_UNLOADED): Likewise.
530
531         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
532         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
533         HAVE_DATABASE is defined.
534         (char_attribute_table_to_load): New variable of UTF-2000 with
535         external database support.
536         (Qload_char_attribute_table_map_function): Likewise.
537         (Fload_char_attribute_table_map_function): New function of
538         UTF-2000 with external database support.
539         (Fload_char_attribute_table): New function of UTF-2000.
540         (Fmap_char_attribute): Call Fload_char_attribute_table if
541         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
542         (syms_of_chartab): Add new symbol and function
543         `load-char-attribute-table-map-function' in UTF-2000 with external
544         database support; add new function `load-char-attribute-table' in
545         UTF-2000.
546
547 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
548
549         * chartab.h (load_char_attribute_maybe): New prototype for
550         UTF-2000 with DATABASE support.
551         (get_char_id_table): Use `load_char_attribute_maybe' if
552         HAVE_DATABASE is defined.
553
554         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
555         with DATABASE support.
556
557 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * chartab.c (Fput_char_attribute): Use S-expression as key of
560         external database.
561
562         * chartab.h (get_char_id_table): Use S-expression as key of
563         external database.
564
565 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
566
567         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
568         if an element is not loaded, load the corresponding attributes
569         from an external database.
570         (map_over_uint16_byte_table): Likewise.
571         (map_over_byte_table): Likewise.
572         (map_char_table): Modify for `map_over_uint8_byte_table',
573         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
574         element is not loaded, load the corresponding attributes from an
575         external database.
576         (Fput_char_attribute): Change initial values to Qunloaded.
577
578         * chartab.h (get_char_id_table): If a character attribute is not
579         loaded and the attribute value is not found in an external
580         database, store Qunbound as the attribute value.
581
582 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * chartab.c (BT_UINT8_unloaded): New macro.
585         (UINT8_VALUE_P): Accept Qunloaded.
586         (UINT8_ENCODE): Likewise.
587         (UINT8_DECODE): Likewise.
588         (BT_UINT16_unloaded): New macro.
589         (UINT16_VALUE_P): Accept Qunloaded.
590         (UINT16_ENCODE): Likewise.
591         (UINT16_DECODE): Likewise.
592         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
593         BT_UINT16_unloaded.
594         (mark_char_table): Mark `ct->name' in UTF-2000.
595         (char_table_description): Add `name' in UTF-2000.
596         (Fmake_char_table): Initialize `ct->name'.
597         (Fcopy_char_table): Copy `ct->name'.
598         (Fput_char_attribute): Store value into an external database if
599         HAVE_DATABASE is defined.
600
601         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
602         UTF-2000.
603         (CHAR_TABLE_NAME): New macro in UTF-2000.
604         (XCHAR_TABLE_NAME): New macro in UTF-2000.
605         (get_char_id_table): Try to read an external database if Qunloaded
606         is stored in a table.
607
608         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
609         Qunloaded.
610
611 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
612
613         * database.h: Add EXFUN definitions for Fopen_database,
614         Fput_database, Fget_database and Fclose_database.
615
616         * data.c (Qunloaded): New variable in UTF-2000.
617
618         * lisp.h (Qunloaded): New variable in UTF-2000.
619
620 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * mule-charset.c (put_char_ccs_code_point): Modify for
623         `decoding_table_remove_char' and `decoding_table_put_char'.
624         (remove_char_ccs): Modify for `decoding_table_remove_char'.
625
626         * char-ucs.h (decoding_table_remove_char): Change arguments to
627         hide decoding_table vector.
628         (decoding_table_put_char): Likewise.
629
630 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * mule-charset.c (decoding_table_remove_char): Moved to
633         char-ucs.h.
634         (decoding_table_put_char): Likewise.
635
636         * char-ucs.h (decoding_table_check_elements): New prototype [moved
637         from mule-charset.c].
638         (decoding_table_remove_char): New inline function [moved from
639         mule-charset.c].
640         (decoding_table_put_char): Likewise.
641
642 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
643
644         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
645         extension.
646
647 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
648
649         * mule-charset.c (decode_builtin_char): Support mother charsets.
650
651 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
652
653         * mule-charset.c (Q94x94x60): New variable.
654         (charset_code_point): Support conversion `94x94x60'.
655         (Fmake_charset): Likewise.
656         (syms_of_mule_charset): Add new symbol `94x94x60'.
657
658         * char-ucs.h (CONVERSION_94x94x60): New macro.
659
660 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
661
662         * mule-charset.c (charset_code_point): Unify code about
663         `code-offset'.
664
665 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
666
667         * mule-charset.c (charset_code_point): Merge code about builtin
668         characters into code about mother charsets; don't use
669         `range_charset_code_point'.
670         (range_charset_code_point): Deleted.
671
672 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * mule-charset.c (Qcode_offset): New variable.
675         (Fmake_charset): Use `XUINT' to get value of `min-code' and
676         `max-code'; accept new property `code-offset'.
677         (syms_of_mule_charset): Add new symbol `code-offset'.
678
679 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * mule-charset.c (range_charset_code_point): Fixed.
682
683 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * mule-charset.c (decode_builtin_char): Change semantics of
686         code-offset of coded-charset.
687         (charset_code_point): Likewise.
688         (range_charset_code_point): Likewise.
689         (complex_vars_of_mule_charset): Modify for the change.
690
691 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (Fencode_char): Reverse arguments.
694
695         * mule-charset.c (charset_code_point): Fixed.
696
697 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * mule-charset.c (Vcharset_mojikyo): Deleted.
700         (Vcharset_mojikyo_2022_1): Deleted.
701         (Vcharset_mojikyo_pj_{1..21}): Deleted.
702         (Qmin_code): New variable in UTF-2000.
703         (Qmax_code): Likewise.
704         (Qmother): Likewise.
705         (Qconversion): Likewise.
706         (Q94x60): Likewise.
707         (Qmojikyo): Deleted.
708         (Qmojikyo_2022_1): Deleted.
709         (Qmojikyo_pj_{1..22}): Deleted.
710         (mark_charset): Mark `cs->mother'.
711         (charset_description): Add description for `mother'.
712         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
713         new arguments `mother' and `conversion'; use
714         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
715         (charset_code_point): Moved from char-ucs.h; support `mother'
716         charset feature.
717         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
718         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
719         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
720         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
721         allow 2 as the value of `graphic' in UTF-2000; add new properties
722         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
723         require `final' in UTF-2000; modify for `make_charset'.
724         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
725         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
726         (Fcharset_property): Support `mother', `min-code' and `max-code'.
727         (Fencode_char): New function.
728         (syms_of_mule_charset): Add new builtin function `encode-char' in
729         UTF-2000; add new symbols `min-code', `max-code', `mother',
730         `conversion' and `94x60'; delete symbols `mojikyo',
731         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
732         (complex_vars_of_mule_charset): Modify for `make_charset' change;
733         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
734         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
735
736         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
737         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
738
739         * char-ucs.h (Vcharset_mojikyo): Deleted.
740         (Vcharset_mojikyo_2022_1): Deleted.
741         (LEADING_BYTE_MOJIKYO): Deleted.
742         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
743         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
744         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
745         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
746         add new member `mother'; add new member `conversion'.
747         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
748         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
749         (CHARSET_MOTHER): New macro.
750         (CHARSET_CONVERSION): New macro.
751         (CONVERSION_IDENTICAL): New macro.
752         (CONVERSION_94x60): New macro.
753         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
754         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
755         (XCHARSET_MOTHER): New macro.
756         (XCHARSET_CONVERSION): New macro.
757         (MIN_CHAR_MOJIKYO): Deleted.
758         (MAX_CHAR_MOJIKYO): Deleted.
759         (DECODE_MOJIKYO_2022): Deleted.
760         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
761         (charset_code_point): Changed to non-inline function.
762         (encode_char_1): Use `charset_code_point'.
763         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
764
765 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * lread.c (read_compiled_function): Fix prototype.
768         (read_vector): Likewise.
769
770 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * lrecord.h (struct lrecord_header): Delete `older'.
773         (set_lheader_implementation): Delete code for `older'.
774         (set_lheader_older_implementation): Deleted.
775         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
776         (OLDER_RECORD_P): Deleted.
777         (OLDER_RECORD_HEADER_P): Deleted.
778         (alloc_older_lcrecord): Deleted.
779         (alloc_older_lcrecord_type): Deleted.
780
781         * alloc.c (all_older_lcrecords): Deleted.
782         (alloc_older_lcrecord): Deleted.
783         (disksave_object_finalization_1): Delete code for older objects.
784         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
785         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
786
787 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * mule-charset.c (decoding_table_put_char): Use `make_vector'
790         instead of `make_older_vector'.
791         (put_char_ccs_code_point): Likewise.
792         (mark_charset): Mark `cs->decoding_table'.
793         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
794
795         * lisp.h (make_older_vector): Deleted.
796         (make_vector_newer): Deleted.
797
798         * config.h.in (HAVE_GGC): Deleted.
799
800         * alloc.c (make_older_vector): Deleted.
801         (make_vector_newer_1): Deleted.
802         (make_vector_newer): Deleted.
803
804 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
805
806         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
807         (Qideograph_daikanwa_2): New variable.
808         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
809         (complex_vars_of_mule_charset): Add new coded-charset
810         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
811         `LEADING_BYTE_DAIKANWA'.
812
813         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
814         (LEADING_BYTE_DAIKANWA_1): New macro.
815         (LEADING_BYTE_DAIKANWA_2): New macro.
816         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
817
818 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
819
820         * mule-charset.c (complex_vars_of_mule_charset): Change
821         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
822         the second revised version.
823
824 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * mule-charset.c (Vcharset_ucs_smp): New variable.
827         (Vcharset_ucs_sip): New variable.
828         (Qucs_smp): New variable.
829         (Qucs_sip): New variable.
830         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
831         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
832         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
833         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
834         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
835         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
836
837         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
838         (LEADING_BYTE_UCS_SIP): New macro.
839         (MIN_CHAR_SMP): New macro.
840         (MAX_CHAR_SMP): New macro.
841         (MIN_CHAR_SIP): New macro.
842         (MAX_CHAR_SIP): New macro.
843
844 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
845
846         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
847         utf-2000.
848
849 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
850
851         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
852         value; don't store value into `encoding_table' of `Lisp_Charset'.
853         (mark_charset): `encoding_table' was deleted.
854         (charset_description): Likewise.
855         (make_charset): Likewise.
856         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
857         `put_char_ccs_code_point'.
858
859         * chartab.h (Fput_char_attribute): New EXFUN.
860
861         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
862         is unified with normal symbol space.
863         (Fget_char_attribute): Likewise.
864         (Fput_char_attribute): Likewise; behavior of
865         `put_char_ccs_code_point' is changed.
866
867         * char-ucs.h: Include "elhash.h".
868         (Vchar_attribute_hash_table): New external variable.
869         (struct Lisp_Charset): Delete `encoding_table'.
870         (CHARSET_ENCODING_TABLE): New implementation; refer
871         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
872         `Lisp_Charset'.
873
874 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
875
876         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
877         (cs) == 0.
878
879 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * text-coding.c (char_encode_big5): Prefer charset-g1 than
882         `chinese-big5'.
883
884 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * chartab.c (uint8_byte_table_description): New constant.
887         (uint8-byte-table): Use `uint8_byte_table_description'.
888         (uint16_byte_table_description): New constant.
889         (uint16-byte-table): Use `uint16_byte_table_description'.
890
891 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
894         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
895
896 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * mule-charset.c (Vcharset_ucs_ks): New variable.
899         (Qucs_ks): New variable.
900         (syms_of_mule_charset): Add new symbol `ucs-ks'.
901         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
902
903         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
904
905 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
906
907         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
908         (Fdecode_char): Likewise.
909
910         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
911         chartab.h.
912         (Fdefine_char): Modify for Fdecode_char.
913         (Ffind_char): Likewise.
914
915         * mule-charset.c (Fdecode_char): Add new optional argument
916         `defined-only'.
917         (Fdecode_builtin_char): Modify for `Fdecode_char'.
918
919 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
922         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
923         (allocate_coding_system): Initialize initial-charsets of
924         CODESYS_BIG5 in XEmacs UTF-2000.
925         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
926         CODESYS_BIG5 in XEmacs UTF-2000.
927         (decode_coding_big5): Use initial-charset-g0 and -g1 of
928         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
929
930         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
931         variables.
932         (Qideograph_hanziku_{1 .. 12}): Likewise.
933         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
934         .. 12}'.
935         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
936         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
937         `ideograph-hanziku-{1 .. 12}'.
938
939         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
940         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
941         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
942         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
943         (DECODE_DEFINED_CHAR): New inline function.
944         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
945
946 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * mule-charset.c (Vcharset_china3_jef): Renamed from
949         `Vcharset_japanese_jef_china3'.
950         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
951         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
952         `{MIN|MAX}_CHAR_JEF_CHINA3'..
953         (syms_of_mule_charset): Rename `china3-jef' from
954         `japanese-jef-china3'.
955         (complex_vars_of_mule_charset): Likewise; rename
956         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
957
958         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
959         `LEADING_BYTE_JEF_CHINA3'.
960         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
961         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
962
963 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * mule-charset.c (encode_builtin_char_1): Comment out special code
966         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
967
968         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
969         (MAX_CHAR_MOJIKYO_0): Comment out.
970         (MIN_CHAR_CBETA): Changed to 0x00E20000.
971         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
972         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
973         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
974
975 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
978         (Qideograph_cbeta): New variable.
979         (encode_builtin_char_1): Comment out special code for
980         coded-charset `mojikyo' and `japanese-jef-china3'.
981         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
982         (complex_vars_of_mule_charset): Add new coded-charset
983         `ideograph-cbeta'.
984
985         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
986         (MIN_CHAR_CBETA): New macro.
987         (MAX_CHAR_CBETA): New macro.
988
989 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
990
991         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
992         (LEADING_BYTE_JEF_CHINA3): New macro.
993         (MIN_CHAR_JEF_CHINA3): New macro.
994         (MAX_CHAR_JEF_CHINA3): Likewise.
995         (DECODE_CHAR): Fixed.
996
997 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1000         (Qjapanese_jef_china3): New variable.
1001         (encode_builtin_char_1): Support `japanese-jef-china3'.
1002         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1003         (complex_vars_of_mule_charset): Add new coded-charset
1004         `japanese-jef-china3'.
1005
1006 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1009         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1010         94^4, 96^3, 96^4, 128^n and 256^n set.
1011         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1012         (map_char_table): Likewise.
1013
1014 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1015
1016         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1017         UTF-2000.
1018
1019 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1020
1021         * chartab.h (get_char_id_table): New inline function.
1022
1023         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1024         function.
1025
1026 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * chartab.h (decode_char_table_range): New prototype in XEmacs
1029         UTF-2000.
1030         (put_char_id_table): New inline function in XEmacs UTF-2000.
1031
1032         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1033         function.
1034         (decode_char_table_range): Delete static declaration in XEmacs
1035         UTF-2000.
1036
1037 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1038
1039         * chartab.c (put_char_id_table): Use `put_char_table'.
1040
1041 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1044         (map_over_uint16_byte_table): Likewise.
1045         (map_over_byte_table): Likewise.
1046         (map_char_table): Modify for `map_over_uint8_byte_table',
1047         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1048         UTF-2000.
1049
1050 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1051
1052         * chartab.c (struct map_char_table_for_charset_arg): New
1053         structure.
1054         (map_char_table_for_charset_fun): New function.
1055         (map_char_table): Use `map_char_table' for encoding_table of
1056         `range->charset'.
1057
1058 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * chartab.c (map_char_table): Check a character is found in
1061         range->charset instead of non default value is defined in
1062         char-table when range is CHARTAB_RANGE_ROW.
1063
1064 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1065
1066         * chartab.c (map_char_id_table): Deleted.
1067         (Fmap_char_attribute): Use `map_char_table' instead of
1068         `map_char_id_table'.
1069
1070 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071
1072         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1073         UTF-2000.
1074         (update_syntax_table): Deleted in XEmacs UTF-2000.
1075
1076         * syntax.c (find_defun_start): Use `syntax_table' instead of
1077         `mirror_syntax_table' in XEmacs UTF-2000.
1078         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1079         UTF-2000.
1080         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1081         XEmacs UTF-2000.
1082         (Fmatching_paren): Likewise.
1083         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1084         in XEmacs UTF-2000.
1085         (find_start_of_comment): Likewise.
1086         (find_end_of_comment): Likewise.
1087         (Fforward_comment): Likewise.
1088         (scan_lists): Likewise.
1089         (char_quoted): Likewise.
1090         (Fbackward_prefix_chars): Likewise.
1091         (scan_sexps_forward): Likewise.
1092         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1093         (update_syntax_table): Likewise.
1094
1095         * search.c (skip_chars): Use `syntax_table' instead of
1096         `mirror_syntax_table' in XEmacs UTF-2000.
1097         (wordify): Likewise.
1098         (Freplace_match): Likewise.
1099
1100         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1101         `mirror_syntax_table' in XEmacs UTF-2000.
1102         (WORDCHAR_P_UNSAFE): Likewise.
1103         (re_match_2_internal): Likewise.
1104
1105         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1106         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1107
1108         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1109         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1110
1111         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1112         XEmacs UTF-2000.
1113
1114         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1115         UTF-2000.
1116         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1117         (char_table_description): Delete `mirror_table' in XEmacs
1118         UTF-2000.
1119         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1120         UTF-2000.
1121         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1122         (Fcopy_char_table): Likewise.
1123         (put_char_table): Don't call `update_syntax_table' in XEmacs
1124         UTF-2000.
1125
1126         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1127         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1128         (casify_region_internal): Likewise.
1129
1130         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1131
1132         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1133         `mirror_syntax_table' in XEmacs UTF-2000.
1134
1135         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1136         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1137         (Fexpand_abbrev): Likewise.
1138
1139 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1140
1141         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1142
1143 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1144
1145         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1146         (map_over_uint16_byte_table): Likewise.
1147         (map_over_byte_table): Likewise.
1148         (get_char_id_table): Refer `cit->default_value'.
1149         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1150         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1151         of character-id ranges.
1152         (mark_char_table): Mark `ct->default_value'.
1153         (char_table_description): Add `default_value'.
1154         (fill_char_table): Use `default_value'.
1155         (decode_char_table_range): Decode `nil' as
1156         `CHARTAB_RANGE_DEFAULT'.
1157         (get_char_id_table): Refer `cit->default_value'.
1158         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1159         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1160         temporary hack; check value of char-table is bound or not.
1161         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1162
1163         * chartab.h (struct Lisp_Char_Table): Add new member
1164         `default_value' in XEmacs UTF-2000.
1165         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1166         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1167         UTF-2000.
1168
1169 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1170
1171         * chartab.h (Lisp_Char_ID_Table): Deleted.
1172
1173         * chartab.c (char_table_description): Fix typo.
1174         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1175         `Lisp_Char_ID_Table'.
1176
1177 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1178
1179         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1180         `CHAR_ID_TABLE_P'.
1181
1182         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1183         `CHAR_ID_TABLE_P'.
1184
1185         * chartab.h (XCHAR_ID_TABLE): Deleted.
1186         (XSETCHAR_ID_TABLE): Deleted.
1187         (CHAR_ID_TABLE_P): Deleted.
1188
1189         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1190         `CHAR_ID_TABLE_P'.
1191         (Fget_composite_char): Likewise.
1192         (put_char_table): Likewise.
1193         (add_char_attribute_alist_mapper): Fixed.
1194         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1195         `CHAR_ID_TABLE_P'.
1196         (Fget_char_attribute): Likewise.
1197         (Fget_char_attribute): Likewise.
1198         (Fmap_char_attribute): Likewise.
1199
1200         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1201         `CHAR_ID_TABLE_P'.
1202         (encode_char_1): Likewise.
1203
1204 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205
1206         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1207         `XCHAR_ID_TABLE'.
1208
1209         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1210         instead of `XCHAR_ID_TABLE'.
1211         (remove_char_ccs): Likewise.
1212
1213         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1214         `XCHAR_ID_TABLE'.
1215         (Fget_composite_char): Likewise.
1216         (Fchar_variants): Likewise.
1217         (put_char_table): Likewise.
1218         (add_char_attribute_alist_mapper): Likewise.
1219         (Fchar_attribute_alist): Likewise.
1220         (Fget_char_attribute): Likewise.
1221         (Fput_char_attribute): Likewise.
1222         (Fmap_char_attribute): Likewise.
1223         (Fmap_char_attribute): Likewise.
1224
1225         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1226         `XCHAR_ID_TABLE'.
1227         (encode_char_1): Likewise.
1228
1229 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1230
1231         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1232         `Lisp_Char_ID_Table'.
1233         (mark_char_id_table): Deleted.
1234         (print_char_id_table): Likewise.
1235         (char_id_table_equal): Likewise.
1236         (char_id_table_hash): Likewise.
1237         (char_id_table_description): Likewise.
1238         (char_id_table): Likewise.
1239         (make_char_id_table): Use `Fmake_char_table' and
1240         `fill_char_table'.
1241         (get_char_id_table): Use `Lisp_Char_Table' instead of
1242         `Lisp_Char_ID_Table'.
1243         (put_char_id_table): Likewise.
1244         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1245         `XCHAR_ID_TABLE'.
1246         (Fremove_char_attribute): Likewise.
1247         (syms_of_chartab): Don't define type `char-id-table'.
1248
1249         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1250         (char_id_table): Likewise.
1251         (GC_CHAR_ID_TABLE_P): Likewise.
1252         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1253         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1254         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1255         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1256         (get_char_id_table): Use `Lisp_Char_Table' instead of
1257         `Lisp_Char_ID_Table'.
1258         (put_char_id_table_0): Likewise.
1259         (put_char_id_table): Likewise.
1260
1261 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1262
1263         * chartab.h: Lisp_Byte_Table related codes are moved from
1264         chartab.h.
1265
1266         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1267
1268 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1269
1270         * chartab.h: Don't include "chartab.h".
1271         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1272         (Lisp_Char_ID_Table): Likewise.
1273         (char_id_table): Likewise.
1274         (XCHAR_ID_TABLE): Likewise.
1275         (XSETCHAR_ID_TABLE): Likewise.
1276         (CHAR_ID_TABLE_P): Likewise.
1277         (GC_CHAR_ID_TABLE_P): Likewise.
1278         (get_char_id_table): Likewise.
1279
1280         * char-ucs.h: Include "chartab.h".
1281         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1282         (Lisp_Char_ID_Table): Likewise.
1283         (char_id_table): Likewise.
1284         (XCHAR_ID_TABLE): Likewise.
1285         (XSETCHAR_ID_TABLE): Likewise.
1286         (CHAR_ID_TABLE_P): Likewise.
1287         (GC_CHAR_ID_TABLE_P): Likewise.
1288         (get_char_id_table): Likewise.
1289
1290 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1291
1292         * chartab.c (copy_uint8_byte_table): New function.
1293         (copy_uint16_byte_table): New function.
1294         (copy_byte_table): New function.
1295         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1296         characters to call.
1297         (map_over_uint16_byte_table): Likewise.
1298         (map_over_byte_table): Likewise.
1299         (get_byte_table): Move prototype to chartab.h.
1300         (put_byte_table): Likewise.
1301         (put_char_id_table_0): Moved to chartab.h.
1302         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1303         (char_table_entry_equal): Likewise.
1304         (char_table_entry_hash): Likewise.
1305         (char_table_entry_description): Likewise.
1306         (char_table_entry): Likewise.
1307         (make_char_table_entry): Likewise.
1308         (copy_char_table_entry): Likewise.
1309         (get_non_ascii_char_table_value): Likewise.
1310         (map_over_charset_ascii): Likewise.
1311         (map_over_charset_control_1): Likewise.
1312         (map_over_charset_row): Likewise.
1313         (map_over_other_charset): Likewise.
1314         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1315         (print_char_table): Likewise.
1316         (char_table_equal): Likewise.
1317         (char_table_hash): Likewise.
1318         (char_table_description): Likewise.
1319         (fill_char_table): Likewise.
1320         (Fcopy_char_table): Likewise.
1321         (get_char_table): Likewise.
1322         (Fget_range_char_table): Likewise.
1323         (put_char_table): Likewise.
1324         (map_char_table): Likewise.
1325         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1326         UTF-2000.
1327
1328 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1331         `Vauto_fill_chars' in XEmacs UTF-2000.
1332
1333         * chartab.h (get_byte_table): New prototype [moved from
1334         chartab.c].
1335         (put_byte_table): Likewise [moved from chartab.c].
1336         (put_char_id_table_0): New inline function [moved from chartab.c].
1337         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1338         (Lisp_Char_Table_Entry): Likewise.
1339         (char_table_entry): Likewise.
1340         (XCHAR_TABLE_ENTRY): Likewise.
1341         (XSETCHAR_TABLE_ENTRY): Likewise.
1342         (CHAR_TABLE_ENTRYP): Likewise.
1343         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1344         (NUM_ASCII_CHARS): Likewise.
1345         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1346         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1347
1348 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * chartab.c (get_char_id_table): Change interface.
1351         (put_char_id_table_0): New function.
1352         (put_char_id_table): Change interface; new implementation.
1353         (Fget_composite_char): Modify for interface change of
1354         `get_char_id_table'.
1355         (Fchar_variants): Likewise.
1356         (add_char_attribute_alist_mapper): Likewise.
1357         (Fchar_attribute_alist): Likewise.
1358         (Fget_char_attribute): Likewise.
1359         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1360         as same as character as the first argument like `put-char-table';
1361         modify for interface change of `put_char_id_table'.
1362         (Fremove_char_attribute): Modify for interface change of
1363         `put_char_id_table'.
1364
1365 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1366
1367         * text-coding.c: Sync up with XEmacs 21.2.41.
1368         (COMPOSE_ADD_CHAR): Modify for interface change of
1369         `get_char_id_table'.
1370
1371         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1372         change of `put_char_id_table'.
1373         (remove_char_ccs): Likewise.
1374
1375         * chartab.h (put_char_id_table): Change interface.
1376
1377         * char-ucs.h (get_char_id_table): Change interface.
1378         (charset_code_point): Modify for interface change of
1379         `get_char_id_table'.
1380         (encode_char_1): Likewise.
1381
1382 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1385         argument `ccs'.
1386         (map_over_uint16_byte_table): Likewise.
1387         (map_over_byte_table): Likewise.
1388         (map_char_id_table): Add new argument `range' like
1389         `map_char_table'.
1390         (Fmap_char_attribute): Add new argument `range' like
1391         `Fmap_char_table'.
1392
1393 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1394
1395         * chartab.c (map_over_uint8_byte_table): Change interface of
1396         mapping function to use struct chartab_range instead of Emchar.
1397         (map_over_uint16_byte_table): Likewise.
1398         (map_over_byte_table): Likewise.
1399         (map_char_id_table): Likewise.
1400         (struct slow_map_char_id_table_arg): Deleted.
1401         (slow_map_char_id_table_fun): Deleted.
1402         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1403         function `slow_map_char_table_fun' instead of struct
1404         `slow_map_char_id_table_arg' and function
1405         `slow_map_char_id_table_fun'.
1406
1407 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * mule-charset.c: Move char-it-table related codes to chartab.c.
1410         (Vutf_2000_version): Moved to chartab.c.
1411         (Fdefine_char): Likewise.
1412         (Ffind_char): Likewise.
1413         (syms_of_mule_charset): Move types `uint8-byte-table',
1414         `uint16-byte-table', `byte-table' and `char-id-table' to
1415         chartab.c; move functions `char_attribute_list,
1416         `find_char_attribute_table, `char_attribute_alist,
1417         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1418         `map_char_attribute, `define_char, `find_char, `char_variants and
1419         `get_composite_char to chartab.c; move symbols `=>ucs',
1420         `->decomposition', `compat', `isolated', `initial', `medial',
1421         `final', `vertical', `noBreak', `fraction', `super', `sub',
1422         `circle', `square', `wide', `narrow', `small' and `font' to
1423         chartab.c.
1424         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1425         setting codes for `Vcharacter_composition_table' and
1426         `Vcharacter_variant_table' to chartab.c.
1427         (complex_vars_of_mule_charset): Move setting code for
1428         `Vchar_attribute_hash_table' to chartab.c.
1429
1430         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1431         (make_char_id_table): New prototype.
1432         (put_char_id_table): Likewise.
1433         (Fget_char_attribute): Likewise.
1434
1435         * chartab.c: Move char-id-table related code from mule-charset.c.
1436         (Vutf_2000_version): Moved from mule-charset.c.
1437
1438         * char-ucs.h (Qucs): New external variable.
1439         (put_char_ccs_code_point): New prototype.
1440         (remove_char_ccs): Likewise.
1441
1442 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1443
1444         * mule-charset.c (Vcharset_ucs_jis): New variable.
1445         (Qucs_jis): Likewise.
1446         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1447         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1448
1449         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1450
1451 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1452
1453         * mule-charset.c (map_over_uint8_byte_table): New function.
1454         (map_over_uint16_byte_table): Likewise.
1455         (map_over_byte_table): Likewise.
1456         (map_char_id_table): Likewise.
1457         (slow_map_char_id_table_fun): Likewise.
1458         (Fmap_char_attribute): Likewise.
1459         (syms_of_mule_charset): Add new function `map-char-attribute'.
1460
1461 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1464         (syms_of_mule_charset): Add new function `find-char'.
1465
1466 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1467
1468         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1469         XEmacs UTF-2000.
1470         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1471         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1472         XEmacs UTF-2000.
1473         (complex_vars_of_mule_charset): Add new coded-charset
1474         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1475         `ideograph-gt-pj-*'.
1476
1477         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1478
1479 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1480
1481         * mule-charset.c (encode_builtin_char_1): Purge codes about
1482         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1483         {MIN|MAX}_CHAR_HEBREW.
1484         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1485         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1486
1487         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1488         (MAX_CHAR_GREEK): Purged.
1489         (MIN_CHAR_CYRILLIC): Purged.
1490         (MAX_CHAR_CYRILLIC): Purged.
1491         (MIN_CHAR_HEBREW): Commented out.
1492         (MAX_CHAR_HEBREW): Likewise.
1493
1494 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1495
1496         * mule-charset.c (Qto_ucs): New variable.
1497         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1498         (Fdefine_char): Likewise.
1499         (syms_of_mule_charset): Add new symbol `=>ucs'.
1500
1501 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * mule-charset.c (Fdecode_char): Fixed.
1504
1505 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1508         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1509         "tcvn5712-1".
1510
1511 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512
1513         * mule-charset.c (Vcharset_ucs_big5): New variable.
1514         (Qucs_big5): Likewise.
1515         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1516         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1517
1518         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1519
1520 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (decode_builtin_char): Check Big5 code range
1523         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1524
1525 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1528         (Qchinese_gb12345): Likewise.
1529         (Fdecode_builtin_char): Fixed.
1530         (syms_of_mule_charset): Add `chinese-gb12345'.
1531         (complex_vars_of_mule_charset): Add coded-charset
1532         `chinese-gb12345'.
1533
1534         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1535         (LEADING_BYTE_CHINESE_GB12345): New macro.
1536
1537 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1540         and `latin-viscii-upper' for `latin-viscii'.
1541
1542 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543
1544         * mule-charset.c (Fdecode_builtin_char): Comment out
1545         regularization code for ISO-IR GR representation.
1546
1547 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1548
1549         * mule-charset.c (decode_builtin_char): New function; renamed from
1550         `make_builtin_char'; return -1 instead of signal.
1551         (Fdecode_builtin_char): Use `decode_builtin_char'.
1552
1553         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1554         `make_builtin_char'.
1555         (DECODE_CHAR): Use `decode_builtin_char' instead of
1556         `make_builtin_char'; use mapping table of `chinese-big5' for
1557         `chinese-big5-{1,2}'.
1558
1559 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1560
1561         * text-coding.c (char_encode_big5): New function.
1562         (char_finish_big5): Likewise.
1563         (reset_encoding_stream): Use `char_encode_big5' and
1564         `char_finish_big5' for CODESYS_BIG5.
1565         (mule_encode): Don't use `encode_coding_big5'.
1566         (encode_coding_big5): Deleted.
1567
1568 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1569
1570         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1571         0x81- in XEmacs UTF-2000.
1572         (detect_coding_big5): Likewise.
1573
1574 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1577         generate character-id if the CCS property does not have
1578         corresponding predefined character.
1579         (make_builtin_char): Return -1 if corresponding predefined
1580         character is not found.
1581         (Fdecode_char): Return nil if corresponding character is not
1582         found.
1583         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1584         don't map to builtin ucs space.
1585
1586 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1587
1588         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1589         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1590
1591 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1592
1593         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1594         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1595         (Qideograph_gt): Likewise.
1596         (Qideograph_gt_pj_{1..11}): Likewise.
1597         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1598         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1599         `ideograph-gt-pj-11'.
1600         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1601         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1602         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1603
1604         * char-ucs.h (LEADING_BYTE_GT): New macro.
1605         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1606         (MIN_CHAR_GT): Likewise.
1607         (MAX_CHAR_GT): Likewise.
1608
1609 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1612         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1613
1614         * doprnt.c (unsigned_int_converters): Add `c'.
1615         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1616
1617         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1618         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1619         `MIN_CHAR_MOJIKYO'.
1620         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1621         (MAX_CHAR_MOJIKYO_0): New macro.
1622         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1623
1624 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1625
1626         * mule-charset.c (Fdefine_char): Delete cemented out code.
1627         (encode_builtin_char_1): Modify for new allocation of builtin
1628         Mojikyo characters.
1629
1630         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1631
1632 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1633
1634         * mule-charset.c (Vcharset_ucs_cns): New variable.
1635         (Qucs_cns): New variable.
1636         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1637         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1638
1639 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640
1641         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1642
1643 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1644
1645         * search.c (search_buffer): Make `charset_base_code' as
1646         character-id >> 6 to eliminate the corresponding last byte in
1647         UTF-8 representation [I'm not sure it is right thing].
1648         (boyer_moore): Likewise.
1649
1650 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1651
1652         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1653         representation in MULE.
1654
1655 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1656
1657         * text-coding.c (Fmake_coding_system): Use
1658         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1659         `EXTERNAL_PROPERTY_LIST_LOOP'.
1660
1661 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662
1663         * text-coding.c (decode_output_utf8_partial_char): New function.
1664         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1665
1666 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * text-coding.c (decode_coding_utf8): Output original byte
1669         sequence if it is broken; change order of conditions.
1670
1671         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1672         of conditions.
1673
1674         * mb-multibyte.h (BYTE_ASCII_P):
1675         Use bit ops for char-signedness safety.
1676         (BYTE_C0_P): Use bit ops for char-signedness safety.
1677         (BYTE_C1_P): Use bit ops for char-signedness safety.
1678
1679         * character.h: (XCHAR_OR_CHAR_INT):
1680         Always use inline function.
1681         Remove redundant type checking assert() - XINT will abort quite
1682         nicely.
1683
1684 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685
1686         * text-coding.c: (Fencode_shift_jis_char):
1687         (Fencode_big5_char):
1688         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1689         Replace 0 with '\0' when working with bytes.
1690         Replace initial "(" with "\(" in docstrings.
1691
1692         (Fmake_coding_system):
1693         When type is ccl and value is vector, register it with a proper
1694         symbol.  And checks whether the given ccl program is valid.
1695         (mule_decode): When calling ccl_driver, if src indicates
1696         NULL pointer, set an empty string instead.
1697         (mule_encode): Likewise.
1698
1699         (detect_eol_type):
1700         (detect_coding_sjis):
1701         (decode_coding_sjis):
1702         (detect_coding_big5):
1703         (decode_coding_big5):
1704         (detect_coding_ucs4):
1705         (decode_coding_ucs4):
1706         (detect_coding_utf8):
1707         (decode_coding_utf8):
1708         (detect_coding_iso2022):
1709         (decode_coding_iso2022):
1710         (decode_coding_no_conversion):
1711         (mule_decode):
1712         Make all detecting and decoding functions take an Extbyte * arg.
1713         (text_encode_generic):
1714         (encode_coding_big5):
1715         (encode_coding_no_conversion):
1716         (mule_encode):
1717         Make all encoding functions take a Bufbyte * arg.
1718         Use size_t instead of unsigned int for memory sizes.
1719         Only cast to unsigned char whenever dereferencing Extbyte *.
1720
1721         (struct lrecord_description fcd_description_1): Use countof.
1722         (complex_vars_of_file_coding):
1723         Use countof instead of sizeof.
1724         Use CHECK_NATNUM instead of CHECK_INT.
1725
1726 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * mule-charset.c (Fget_char_attribute): Add new optional argument
1729         `default-value'.
1730         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1731         (remove_char_ccs): Likewise.
1732
1733 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1734
1735         * text-coding.c (char_encode_shift_jis): New implementation in
1736         UTF-2000.
1737         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1738         ...)'.
1739
1740         * mule-charset.c (Vcharset_chinese_big5): New variable in
1741         UTF-2000.
1742         (Qchinese_big5): New variable in UTF-2000.
1743         (BIG5_SAME_ROW): New macro in UTF-2000.
1744         (make_builtin_char): Use builtin characters of
1745         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1746         characters of `Vcharset_chinese_big5'.
1747         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1748         (complex_vars_of_mule_charset): Add new coded-charset
1749         `chinese-big5' in UTF-2000.
1750
1751         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1752         (Vcharset_chinese_big5): New external variable declaration.
1753         (Vcharset_japanese_jisx0208_1990): Likewise.
1754
1755 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756
1757         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1758         function.
1759         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1760
1761 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1762
1763         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1764         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1765         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1766         `mojikyo-pj-*'.
1767
1768 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1771
1772 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773
1774         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1775         to 0.17.
1776
1777 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1778
1779         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1780         for `CHARSET_BY_ATTRIBUTES'.
1781         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1782         `CHARSET_BY_ATTRIBUTES'.
1783
1784         * text-coding.c (struct decoding_stream): Rename member `CH' to
1785         `CPOS'.
1786         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1787         (decode_coding_sjis): Likewise.
1788         (decode_coding_big5): Likewise.
1789         (decode_coding_ucs4): Likewise.
1790         (decode_coding_utf8): Likewise.
1791         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1792         `CHARSET_BY_ATTRIBUTES'.
1793         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1794         `str->counter'; decode 3, 4 bytes sets.
1795         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1796         sets.
1797         (decode_coding_no_conversion): Use `str->cpos' instead of
1798         `str->ch'.
1799
1800         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1801         (Qmojikyo_2022_1): New variable.
1802         (make_charset): Don't use `CHARSET_TYPE_*'.
1803         (range_charset_code_point): Support coded-charset
1804         `mojikyo-2022-1'.
1805         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1806         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1807         `CHARSET_BY_ATTRIBUTES'.
1808         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1809         `CHARSET_BY_ATTRIBUTES'.
1810         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1811         (complex_vars_of_mule_charset): Add new coded-charset
1812         `mojikyo-2022-1'.
1813
1814         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1815         interface; changed to inline function.
1816
1817         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1818         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1819         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1820         (CHARSET_TYPE_94): Deleted.
1821         (CHARSET_TYPE_94X94): Deleted.
1822         (CHARSET_TYPE_96): Deleted.
1823         (CHARSET_TYPE_96X96): Deleted.
1824         (CHARSET_TYPE_128): Deleted.
1825         (CHARSET_TYPE_128X128): Deleted.
1826         (CHARSET_TYPE_256): Deleted.
1827         (CHARSET_TYPE_256X256): Deleted.
1828         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1829         to inline function.
1830         (DECODE_MOJIKYO_2022): New inline function.
1831         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1832         `Vcharset_mojikyo_2022_1'.
1833
1834 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1837         instead of `EQ'.
1838         (put_byte_table): Likewise.
1839         (char_id_table_equal): Use `get_byte_table' [new implementation].
1840
1841 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * mule-charset.c: Include <limits.h> in UTF-2000.
1844         (BT_UINT8_MIN): New macro in UTF-2000.
1845         (BT_UINT8_MAX): New macro in UTF-2000.
1846         (BT_UINT8_t): New macro in UTF-2000.
1847         (BT_UINT8_nil): New macro in UTF-2000.
1848         (BT_UINT8_unbound): New macro in UTF-2000.
1849         (INT_UINT8_P): New inline function in UTF-2000.
1850         (UINT8_VALUE_P): New inline function in UTF-2000.
1851         (UINT8_ENCODE): New inline function in UTF-2000.
1852         (UINT8_DECODE): New inline function in UTF-2000.
1853         (mark_uint8_byte_table): New function in UTF-2000.
1854         (print_uint8_byte_table): New function in UTF-2000.
1855         (uint8_byte_table_equal): New function in UTF-2000.
1856         (uint8_byte_table_hash): New function in UTF-2000.
1857         (make_uint8_byte_table): New function in UTF-2000.
1858         (uint8_byte_table_same_value_p): New function in UTF-2000.
1859         (BT_UINT16_MIN): New macro in UTF-2000.
1860         (BT_UINT16_MAX): New macro in UTF-2000.
1861         (BT_UINT16_t): New macro in UTF-2000.
1862         (BT_UINT16_nil): New macro in UTF-2000.
1863         (BT_UINT16_unbound): New macro in UTF-2000.
1864         (INT_UINT16_P): New inline function in UTF-2000.
1865         (UINT16_VALUE_P): New inline function in UTF-2000.
1866         (UINT16_ENCODE): New inline function in UTF-2000.
1867         (UINT16_DECODE): New inline function in UTF-2000.
1868         (UINT8_TO_UINT16): New inline function in UTF-2000.
1869         (mark_uint16_byte_table): New function in UTF-2000.
1870         (print_uint16_byte_table): New function in UTF-2000.
1871         (uint16_byte_table_equal): New function in UTF-2000.
1872         (uint16_byte_table_hash): New function in UTF-2000.
1873         (make_uint16_byte_table): New function in UTF-2000.
1874         (uint16_byte_table_same_value_p): New function in UTF-2000.
1875         (print_byte_table): New function in UTF-2000.
1876         (byte-table): Use `print_byte_table' as printer.
1877         (make_byte_table): Delete second argument `older'.
1878         (byte_table_same_value_p): New function in UTF-2000.
1879         (copy_byte_table): Deleted.
1880         (get_byte_table): New function in UTF-2000.
1881         (put_byte_table): New function in UTF-2000.
1882         (print_char_id_table): New function in UTF-2000.
1883         (char-id-table): Use `print_char_id_table' as printer.
1884         (make_char_id_table): Delete second argument `older'.
1885         (get_char_id_table): Use `get_byte_table [new implementation].
1886         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1887         implementation].
1888         (Ffind_char_attribute_table): New function in UTF-2000.
1889         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1890         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1891         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1892         (syms_of_mule_charset): Add new function
1893         `find-char-attribute-table' in UTF-2000.
1894
1895         * lrecord.h (enum lrecord_type): Add
1896         `lrecord_type_uint16_byte_table' and
1897         `lrecord_type_uint8_byte_table'.
1898
1899         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1900         (Lisp_Uint8_Byte_Table): New type.
1901         (XUINT8_BYTE_TABLE): New macro.
1902         (XSETUINT8_BYTE_TABLE): New macro.
1903         (UINT8_BYTE_TABLE_P): New macro.
1904         (GC_UINT8_BYTE_TABLE_P): New macro.
1905         (struct Lisp_Uint16_Byte_Table): New structure.
1906         (Lisp_Uint16_Byte_Table): New type.
1907         (XUINT16_BYTE_TABLE): New macro.
1908         (XSETUINT16_BYTE_TABLE): New macro.
1909         (UINT16_BYTE_TABLE_P): New macro.
1910         (GC_UINT16_BYTE_TABLE_P): New macro.
1911
1912 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1915         (Vcharacter_ideographic_strokes_table): Deleted.
1916         (Vcharacter_total_strokes_table): Deleted.
1917         (Vcharacter_morohashi_daikanwa_table): Deleted.
1918         (Vcharacter_decomposition_table): Deleted.
1919         (Qname): Deleted because it is duplicated.
1920         (Qideographic_radical): Deleted.
1921         (Qideographic_strokes): Deleted.
1922         (Qtotal_strokes): Deleted.
1923         (Qmorohashi_daikanwa): Deleted.
1924         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1925         `ideographic-radical', `ideographic-strokes', `total-strokes',
1926         `morohashi-daikanwa' and `->decomposition'.
1927         (Fget_char_attribute): Likewise.
1928         (Fput_char_attribute): Likewise; use `make-vector' instead of
1929         `make_older_vector' for `->decomposition' value.
1930         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1931         `ideograph-daikanwa'.
1932         (syms_of_mule_charset): Delete builtin symbols `name',
1933         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1934         `morohashi-daikanwa'.
1935         (vars_of_mule_charset): Don't setup
1936         `Vcharacter_ideographic_radical_table',
1937         `Vcharacter_ideographic_strokes_table',
1938         `Vcharacter_total_strokes_table',
1939         `Vcharacter_morohashi_daikanwa_table' and
1940         `Vcharacter_decomposition_table'.
1941
1942 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1943
1944         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1945         `make_older_vector', `make_vector_newer_1' and
1946         `make_vector_newer'.
1947
1948         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1949         `make_older_vector' and `make_vector_newer'.
1950
1951         * config.h.in (HAVE_GGC): New macro.
1952
1953 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954
1955         * mule-charset.c (struct char_attribute_list_closure): New
1956         structure in UTF-2000.
1957         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1958         (Fchar_attribute_list): Likewise.
1959         (Fset_charset_mapping_table): Use `make_vector_newer'.
1960         (Fdecode_builtin_char): New function in UTF-2000.
1961         (syms_of_mule_charset): Add new function `char-attribute-list' and
1962         `decode-builtin-char' in UTF-2000.
1963
1964         * lisp.h (make_vector_newer): New prototype.
1965
1966         * alloc.c (make_vector_newer_1): New function.
1967         (make_vector_newer): New function.
1968
1969 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970
1971         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1972         50100)'.
1973
1974 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975
1976         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1977         (Vcharacter_attribute_table): Deleted.
1978         (Vcharacter_name_table): Deleted.
1979         (put_char_attribute): Deleted.
1980         (remove_char_attribute): Deleted.
1981         (struct char_attribute_alist_closure): New structure.
1982         (add_char_attribute_alist_mapper): New function.
1983         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1984         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1985         (Fget_char_attribute): Likewise.
1986         (Fput_char_attribute): Likewise.
1987         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1988         of `remove_char_attribute'.
1989         (Fdefine_char): Return character.
1990         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1991         and `Vcharacter_name_table'.
1992         (complex_vars_of_mule_charset): Likewise
1993         `Vchar_attribute_hash_table'.
1994
1995 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1996
1997         * character.h (CHARC_CHARSET): New macro.
1998         (CHARC_CHARSET_ID): New macro.
1999         (CHARC_CODE_POINT): New macro.
2000         (CHARC_COLUMNS): New macro.
2001         (CHARC_TO_CHAR): New inline function.
2002         (CHARC_EQ): New inline function.
2003         (CHARC_ASCII_EQ): New inline function.
2004         (CHARC_IS_SPACE): New inline function.
2005         (ASCII_TO_CHARC): New inline function.
2006
2007         * char-ucs.h (encode_char_2): Deleted.
2008         (ENCODE_CHAR): Use `encode_char_1' again.
2009         (breakup_char_1): Likewise.
2010         (CHAR_TO_CHARC): New inline function.
2011
2012         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2013
2014 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2017         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2018         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2019         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2020         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2021         `CHARC_IS_SPACE'.
2022         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2023
2024         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2025         `CHARC_CODE_POINT'.
2026         (x_output_display_block): Use `CHARC_CHARSET' and
2027         `CHARC_ASCII_EQ'.
2028
2029         * redisplay-tty.c (tty_output_display_block): Use
2030         `CHARC_ASCII_EQ'.
2031         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2032
2033         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2034
2035         * insdel.c (find_charsets_in_charc_string): Use
2036         `CHARC_CHARSET_ID'.
2037         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2038         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2039         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2040         (convert_charc_string_into_malloced_string): Likewise.
2041
2042 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2043
2044         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2045         instead of <Emchar_dynarr *> for buf; use
2046         `convert_bufbyte_string_into_charc_dynarr' instead of
2047         `convert_bufbyte_string_into_emchar_dynarr'; use
2048         `find_charsets_in_charc_string' instead of
2049         `find_charsets_in_emchar_string'.
2050
2051         * redisplay.h:
2052         - Include "character.h".
2053         (struct rune): New member `cglyph'; delete member `chr'.
2054
2055         * redisplay.c (redisplay_text_width_charc_string): New function;
2056         delete `redisplay_text_width_emchar_string'.
2057         (rtw_charc_dynarr): New variable; renamed from
2058         `rtw_emchar_dynarr'.
2059         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2060         `rtw_emchar_dynarr'; use
2061         `convert_bufbyte_string_into_charc_dynarr' instead of
2062         `convert_bufbyte_string_into_emchar_dynarr'; use
2063         `redisplay_text_width_charc_string' instead of
2064         `redisplay_text_width_emchar_string'.
2065         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2066         instead of `rtw_emchar_dynarr'; use
2067         `convert_bufbyte_string_into_charc_dynarr' instead of
2068         `convert_bufbyte_string_into_emchar_dynarr'.
2069         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2070         `redisplay_text_width_charc_string' instead of
2071         `redisplay_text_width_emchar_string'.
2072         (create_text_block): Modify for <struct rune> change.
2073         (generate_formatted_string_db): Likewise.
2074         (create_string_text_block): Likewise.
2075         (pixel_to_glyph_translation): Likewise.
2076
2077         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2078         instead of <const Emchar *>.
2079         (x_text_width): Likewise.
2080         (x_output_display_block): Use <Charc_dynarr *> instead
2081         <Emchar_dynarr *>; modify for <structure rune> change.
2082         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2083         *>.
2084
2085         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2086         <const Emchar *>; use `charc_string_displayed_columns' instead of
2087         `emchar_string_displayed_columns'.
2088         (tty_output_display_block): Use <Charc_dynarr *> instead of
2089         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2090         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2091         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2092         `tty_output_emchar_dynarr_dynarr'.
2093         (tty_output_charc_dynarr): New function; delete
2094         `tty_output_charc_dynarr'.
2095
2096         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2097         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2098         <Emchar_dynarr *> for buf; use
2099         `convert_bufbyte_string_into_charc_dynarr' instead of
2100         `convert_bufbyte_string_into_emchar_dynarr'.
2101
2102         * frame.c (title_string_charc_dynarr): New variable; renamed from
2103         `title_string_emchar_dynarr'.
2104         (generate_title_string): Use `title_string_charc_dynarr' instead
2105         of `title_string_emchar_dynarr'; use
2106         `convert_charc_string_into_malloced_string' instead of
2107         `convert_emchar_string_into_malloced_string'.
2108         (init_frame): Use `title_string_charc_dynarr' instead of
2109         `title_string_emchar_dynarr'.
2110
2111         * console.h:
2112         - Include "character.h".
2113         (struct console_methods): Use <const Charc *> instead of <const
2114         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2115         <Emchar_dynarr *> in output_string_method.
2116
2117         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2118         <Emchar_dynarr *>.
2119
2120         * console-stream.c (stream_text_width): Use <const Charc *>
2121         instead of <const Emchar *>.
2122
2123         * character.h (Charc_dynarr): New type.
2124
2125         * char-ucs.h (structure Charc): New structure; define new type
2126         `Charc'.
2127
2128         * char-lb.h (DECODE_CHAR): New inline function.
2129         (encode_char_1): New inline function.
2130         (ENCODE_CHAR): New macro.
2131         (structure Charc): New structure; define new type `Charc'.
2132
2133         * char-1byte.h (Vcharset_control_1): New macro.
2134         (Vcharset_latin_iso8859_1): New macro.
2135         (DECODE_CHAR): New inline function.
2136         (encode_char_1): New inline function.
2137         (ENCODE_CHAR): New macro.
2138         (structure Charc): New structure; define new type `Charc'.
2139
2140         * insdel.c (find_charsets_in_charc_string): New function; delete
2141         `find_charsets_in_emchar_string'.
2142         (charc_string_displayed_columns): New function; delete
2143         `emchar_string_displayed_columns'.
2144         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2145         `convert_bufbyte_string_into_emchar_dynarr'.
2146         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2147         `convert_charc_string_into_bufbyte_dynarr'.
2148         (convert_charc_string_into_malloced_string): New function; delete
2149         `convert_charc_string_into_malloced_string'.
2150
2151         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2152         `find_charsets_in_emchar_string'.
2153         (charc_string_displayed_columns): New prototype; delete
2154         `emchar_string_displayed_columns'.
2155         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2156         `convert_charc_string_into_bufbyte_dynarr'.
2157         (convert_charc_string_into_malloced_string): New prototype; delete
2158         `convert_charc_string_into_malloced_string'.
2159
2160 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2161
2162         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2163
2164 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2165
2166         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2167
2168         * char-ucs.h: Use <short> for <Charset_ID>.
2169
2170         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2171         <Charset_ID>.
2172
2173 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2174
2175         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2176         to 0.16.
2177
2178 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2179
2180         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2181         variable.
2182         (Qmorohashi_daikanwa): New variable.
2183         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2184         for `morohashi-daikanwa' attribute.
2185         (Fget_char_attribute): Likewise.
2186         (Fput_char_attribute): Likewise.
2187         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2188         has the same value of `ideograph-daikanwa'.
2189         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2190         (vars_of_mule_charset): Setup
2191         `Vcharacter_morohashi_daikanwa_table'.
2192
2193 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2196         attributes.
2197         (add_charset_to_list_mapper): Add `key' instead of
2198         `XCHARSET_NAME (value)' to return aliases.
2199
2200 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2201
2202         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2203         variable.
2204         (Vcharacter_ideographic_strokes_table): New variable.
2205         (Qideographic_radical): New variable.
2206         (Qideographic_strokes): New variable.
2207         (Fchar_attribute_alist): Use
2208         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2209         attribute; use `Vcharacter_ideographic_strokes_table' for
2210         `ideographic-strokes' attribute.
2211         (Fget_char_attribute): Likewise.
2212         (Fput_char_attribute): Likewise.
2213         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2214         `ideographic-strokes'.
2215         (vars_of_mule_charset): Setup
2216         `Vcharacter_ideographic_radical_table' and
2217         `Vcharacter_ideographic_strokes_table'.
2218
2219 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2222         (Qtotal_strokes): New variable.
2223         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2224         `total-strokes' attribute.
2225         (Fget_char_attribute): Likewise.
2226         (Fput_char_attribute): Likewise.
2227         (syms_of_mule_charset): Add new symbol `total-strokes'.
2228         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2229
2230 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2233         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2234         are found.
2235         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2236         `->decomposition' attribute.
2237         (Fput_char_attribute): Likewise.
2238         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2239
2240 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241
2242         * mule-charset.c (decoding_table_check_elements): New function.
2243         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2244
2245 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * mule-charset.c (Fset_charset_mapping_table): Use
2248         `put_char_ccs_code_point'.
2249
2250 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251
2252         * mule-charset.c (decoding_table_put_char): New inline function.
2253         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2254
2255 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2256
2257         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2258         (XCHARSET_BYTE_SIZE): New macro.
2259         (decoding_table_remove_char): New inline function.
2260         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2261         `decoding_table_remove_char'.
2262         (remove_char_ccs): Use `decoding_table_remove_char'.
2263         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2264
2265 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * mule-charset.c (Vcharacter_name_table): New variable.
2268         (Qname): New variable.
2269         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2270         attribute.
2271         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2272         `Vcharacter_name_table' for `name' attribute.
2273         (Fremove_char_attribute): Use function `remove_char_ccs'.
2274         (put_char_ccs_code_point): New function.
2275         (remove_char_ccs): New function.
2276         (syms_of_mule_charset): Add new symbol `name'.
2277         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2278
2279 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280
2281         * mule-charset.c (make_byte_table): Add new argument `older'.
2282         (make_char_id_table): Likewise.
2283         (copy_char_id_table): Comment out because it is not used.
2284         (put_char_id_table): Modify for `make_byte_table'.
2285         (Fput_char_attribute): Make encoding_table as older object;
2286         inherit older bit of `Vcharacter_composition_table'.
2287         (mark_charset): Don't mark `cs->encoding_table'.
2288         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2289         normal object; make `Vcharacter_composition_table' as an older
2290         object; delete staticpro for `Vcharacter_composition_table'; make
2291         `Vcharacter_variant_table' as a normal object.
2292
2293         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2294         (mark_object): Don't check older object in UTF-2000.
2295
2296         * lrecord.h (struct lrecord_header): Add new member `older' in
2297         UTF-2000.
2298         (set_lheader_implementation): Setup `SLI_header->older' in
2299         UTF-2000.
2300         (set_lheader_older_implementation): New macro in UTF-2000.
2301         (OLDER_RECORD_P): New macro in UTF-2000.
2302         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2303         (alloc_older_lcrecord): New prototype in UTF-2000.
2304         (alloc_older_lcrecord_type): New macro in UTF-2000.
2305
2306 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * mule-charset.c (byte_table_description): Use
2309         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2310         (char_id_table_description): Delete bogus `, 1'.
2311         (Fget_char_attribute): Refer encoding_table of each coded-charset
2312         to get value of coded-charset attribute of a character.
2313         (Fput_char_attribute): Use `make_older_vector' instead of
2314         `make_vector'; use encoding_table of each coded-charset to store
2315         value of coded-charset attribute of a character.
2316         (Fremove_char_attribute): Use encoding_table of each coded-charset
2317         to store value of coded-charset attribute of a character.
2318         (mark_charset): Mark `cs->encoding_table'; don't mark
2319         `cs->decoding_table'.
2320         (charset_description): Add description of new member
2321         `encoding_table'.
2322         (make_charset): Initialize `encoding_table'.
2323
2324         * char-ucs.h (struct Lisp_Charset): Add new member
2325         `encoding_table'.
2326         (CHARSET_ENCODING_TABLE): New macro.
2327         (XCHARSET_ENCODING_TABLE): New macro.
2328         (charset_code_point): New implementation.
2329         (encode_char_1): Likewise.
2330
2331         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2332         (disksave_object_finalization_1): Call finalizers of
2333         `all_older_lcrecords' in UTF-2000.
2334         (make_older_vector): New function in UTF-2000.
2335         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2336         UTF-2000.
2337
2338         * lisp.h (make_older_vector): New prototype in UTF-2000.
2339
2340 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2341
2342         * lrecord.h (enum lrecord_type): Rename
2343         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2344
2345         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2346         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2347         `get_char_code_table'.
2348
2349         * mule-charset.c (mark_char_id_table): Renamed from
2350         `mark_char_code_table'.
2351         (char_id_table_equal): Renamed from `char_code_table_equal'.
2352         (char_id_table_hash): Renamed from `char_code_table_hash'.
2353         (make_char_id_table): Renamed from `make_char_code_table'.
2354         (copy_char_id_table): Renamed from `copy_char_code_table'.
2355         (get_char_id_table): Renamed from `get_char_code_table'.
2356         (put_char_id_table): Renamed from `put_char_code_table'.
2357         (to_char_id): Renamed from `to_char_code'.
2358
2359         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2360         `Lisp_Char_Code_Table'.
2361         (char_id_table): Renamed from `char_code_table'.
2362         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2363         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2364         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2365         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2366         (get_char_id_table): Renamed from `get_char_code_table'.
2367
2368 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2369
2370         * lrecord.h (enum lrecord_type): Rename
2371         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2372
2373         * mule-charset.c (mark_byte_table): Renamed from
2374         `mark_char_byte_table'.
2375         (byte_table_equal): Renamed from `char_byte_table_equal'.
2376         (byte_table_hash): Renamed from `byte_table_hash'.
2377         (make_byte_table): Renamed from `make_byte_table'.
2378         (copy_byte_table): Renamed from `copy_char_byte_table'.
2379
2380         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2381         `Lisp_Char_Byte_Table'.
2382         (byte_table): Renamed from `char_byte_table'.
2383         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2384         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2385         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2386         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2387
2388 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2389
2390         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2391         (dfc_convert_to_internal_format): Likewise.
2392         
2393         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2394         * text-coding.c (Fcoding_system_alias_p): New function.
2395         * text-coding.c (Fcoding_system_aliasee): New function.
2396         * text-coding.c (append_suffix_to_symbol): New function.
2397         * text-coding.c (dangling_coding_system_alias_p): New function.
2398         * text-coding.c (Ffind_coding_system):
2399         * text-coding.c (Fcopy_coding_system):
2400         * text-coding.c (encode_coding_no_conversion):
2401         * text-coding.c (syms_of_file_coding):
2402         * text-coding.c (vars_of_file_coding):
2403         Rewrite coding system alias code.
2404         Allow nested aliases, like symbolic links.
2405         Allow redefinition of coding system aliases.
2406         Prevent existence of dangling coding system aliases.
2407         Eliminate convert_to_external_format.
2408         Eliminate convert_to_internal_format.
2409         
2410         * text-coding.c: Change enum eol_type to eol_type_t.
2411
2412 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2415         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2416
2417         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2418         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2419
2420 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2421
2422         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2423         `ideograph-daikanwa'.
2424
2425         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2426         (Vcharset_ucs_bmp): Likewise.
2427         (Vcharset_mojikyo): Add new extern variable definition.
2428         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2429         (Vcharset_latin_iso8859_3): Likewise.
2430         (Vcharset_latin_iso8859_4): Likewise.
2431         (Vcharset_latin_iso8859_9): Likewise.
2432         (Vcharset_latin_viscii_lower): Likewise.
2433         (Vcharset_latin_viscii_upper): Likewise.
2434         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2435         `mojikyo' code-point is used to decode.
2436         (encode_char_2): New function [to convert `mojikyo' code-point to
2437         Mojikyo font encoding].
2438         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2439         (breakup_char_1): Likewise.
2440         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2441
2442 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2443
2444         * text-coding.c (Fmake_coding_system): Add document about
2445         `disable-composition' property.
2446
2447 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2448
2449         * text-coding.c (Qdisable_composition): New variable; delete
2450         `Qcomposite'.
2451         (Fmake_coding_system): Add new property `disable-composite';
2452         delete property `composite'.
2453         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2454         instead of `!CODING_SYSTEM_COMPOSITE'.
2455         (syms_of_file_coding): Add new symbol `disable-composition';
2456         delete symbol `composite'.
2457
2458         * file-coding.h (struct Lisp_Coding_System): Add
2459         `disable_composition'; delete `enable_composition'.
2460         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2461         `CODING_SYSTEM_COMPOSITE'.
2462         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2463         `XCODING_SYSTEM_COMPOSITE'.
2464
2465 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2466
2467         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2468         to 0.15.
2469
2470 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2471
2472         * text-coding.c (Qcomposite): New variable.
2473         (Fmake_coding_system): Add new property `composite'.
2474         (struct decoding_stream): Add `combined_char_count',
2475         `combined_chars' and `combining_table' in UTF-2000.
2476         (COMPOSE_FLUSH_CHARS): New macro.
2477         (COMPOSE_ADD_CHAR): New macro.
2478         (reset_decoding_stream): Reset `str->combined_char_count' and
2479         `str->combining_table' in UTF-2000.
2480         (decode_coding_iso2022): Modify for character-decomposition.
2481         (syms_of_file_coding): Add new symbol `composite'.
2482
2483 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2484
2485         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2486         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2487         of `Vcharacter_composition_table' if `->decomposition' property
2488         has only 1 element.
2489         (Qlatin_tcvn5712): New variable.
2490         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2491         (complex_vars_of_mule_charset): Add new coded-charset
2492         `latin-tcvn5712'.
2493
2494         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2495
2496 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2497
2498         * file-coding.h (struct Lisp_Coding_System): Add
2499         `enable_composition'.
2500         (CODING_SYSTEM_COMPOSITE): New macro.
2501         (XCODING_SYSTEM_COMPOSITE): New macro.
2502
2503 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2504
2505         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2506
2507 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2508
2509         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2510         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2511
2512 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2513
2514         * mule-charset.c (Vcharset_mojikyo): New variable.
2515         (Fdefine_char): Don't use coded-charset which does not have
2516         non-builtin character range to allocate character-id.
2517         (Qmojikyo): New variable.
2518         (syms_of_mule_charset): Add new symbol `mojikyo'.
2519         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2520
2521         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2522         (LEADING_BYTE_MOJIKYO): New macro.
2523         (MIN_CHAR_MOJIKYO): New macro.
2524         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2525         (MAX_CHAR_MOJIKYO): New macro.
2526
2527 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2528
2529         * mule-charset.c (remove_char_attribute): Fixed.
2530
2531 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2532
2533         * mule-charset.c (remove_char_attribute): New function.
2534         (Fremove_char_attribute): New function.
2535         (encode_builtin_char_1): Comment out builtin-support for
2536         greek-iso8859-7 and cyrillic-iso8859-5.
2537         (Fdecode_char): Check `code' is an integer.
2538         (syms_of_mule_charset): Add `remove-char-attribute'.
2539         (MIN_CHAR_GREEK): Deleted.
2540         (MAX_CHAR_GREEK): Likewise.
2541         (MIN_CHAR_CYRILLIC): Likewise.
2542         (MAX_CHAR_CYRILLIC): Likewise.
2543         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2544         MAX_CHAR_GREEK for `greek-iso8859-7'.
2545
2546         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2547         (MAX_CHAR_GREEK): Likewise.
2548         (MIN_CHAR_CYRILLIC): Likewise.
2549         (MAX_CHAR_CYRILLIC): Likewise.
2550
2551 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2552
2553         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2554         format is used without `ucs' property.
2555         (Fdecode_char): Fix problem with GR representation.
2556         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2557         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2558
2559 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2560
2561         * mule-charset.c (make_builtin_char): New function.
2562         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2563         (Fset_charset_mapping_table): Modify for new representation of
2564         code-point.
2565         (Fdecode_char): New function.
2566         (syms_of_mule_charset): Add new builtin function `decode-char' in
2567         UTF-2000.
2568
2569         * char-ucs.h (make_builtin_char): New prototype.
2570         (DECODE_CHAR): New inline function.
2571         (MAKE_CHAR): Use `DECODE_CHAR'.
2572
2573 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2574
2575         * text-coding.c (parse_charset_conversion_specs): Use
2576         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2577         `XCHARSET_TYPE'.
2578         (iso2022_designate): Likewise.
2579
2580         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2581         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2582
2583         * mule-charset.c (Vcharset_ucs): New variable.
2584         (print_charset): Change design; use `CHARSET_CHARS' and
2585         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2586         (make_charset): Change signature to specify `chars' and
2587         `dimension' instead of `type'.
2588         (range_charset_code_point): Modify for 256^n-set.
2589         (encode_builtin_char_1): Encode as `ucs' in default.
2590         (Fmake_charset): Modify for `make_charset'.
2591         (Fmake_reverse_direction_charset): Likewise.
2592         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2593         UTF-2000.
2594         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2595         for `make_charset'.
2596
2597         * char-ucs.h (Vcharset_ucs): New variable.
2598         (LEADING_BYTE_UCS): New macro.
2599         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2600         and `chars' to `unsigned short' from `unsigned int'.
2601         (CHARSET_TYPE): Deleted.
2602         (XCHARSET_TYPE): Deleted.
2603
2604 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2605
2606         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2607
2608         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2609         (ENCODE_CHAR): New macro.
2610
2611 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2612
2613         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2614         to 0.14 (Kawachi-Katakami).
2615
2616 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2617
2618         * text-coding.c (char_encode_shift_jis): Modify for
2619         `charset_code_point'.
2620         (char_encode_iso2022): Likewise.
2621
2622         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2623         (integer) instead of list of <Lisp_Object>s (integers) as the
2624         format of code-point of a coded-charset.
2625         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2626         (encode_builtin_char_1): New function; delete
2627         `split_builtin_char'.
2628         (charset_code_point): Return <int> instead of <Lisp_Object>.
2629         (Fsplit_char): Don't use `SPLIT_CHAR'.
2630
2631         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2632         prototype for `split_builtin_char'.
2633         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2634         (charset_code_point): Likewise.
2635         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2636         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2637
2638 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2639
2640         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2641         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2642
2643 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2644
2645         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2646
2647         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2648         (MAX_CHAR_OBS_94x94): Deleted.
2649
2650 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2651
2652         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2653
2654         * char-ucs.h (MAX_CHAR_BMP): New macro.
2655
2656 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2657
2658         * text-coding.c: Sync with r21-2-24.
2659
2660 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2661
2662         * file-coding.c: Modify for UTF-2000.
2663
2664 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2665
2666         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2667         to 0.13 (Takaida).
2668
2669 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2670
2671         * mule-charset.c (split_builtin_char): Delete builtin support for
2672         `katakana-jisx0201'.
2673         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2674         BMP area in builtin representation.
2675
2676         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2677         `Vcharset_katakana_jisx0201'.
2678
2679 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2680
2681         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2682         (Qisolated): New variable.
2683         (Qinitial): New variable.
2684         (Qmedial): New variable.
2685         (Qfinal): New variable.
2686         (Qvertical): New variable.
2687         (Qsmall): New variable.
2688         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2689         `Qvertical' and `Qsmall'.
2690         (Qmojikyo_pj_[1 .. 21]): New variable.
2691         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2692         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2693         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2694         .. 21]'.
2695
2696 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2697
2698         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2699         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2700         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2701
2702 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2703
2704         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2705         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2706         BMP.
2707         (Qjapanese_jisx0208_1990): New variable.
2708         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2709         (complex_vars_of_mule_charset): Add new coded-charset
2710         `japanese-jisx0208-1990'.
2711
2712         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2713         (MIN_CHAR_JIS_X0208_1990): New macro.
2714         (MAX_CHAR_JIS_X0208_1990): New macro.
2715
2716 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2717
2718         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2719         coded-charset is not found.
2720
2721 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2722
2723         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2724         (Fdefine_char): Use `Fmake_char'.
2725
2726 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2727
2728         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2729         (Vcharset_hiragana_jisx0208): Deleted.
2730         (Vcharset_katakana_jisx0208): Deleted.
2731         (Qideograph_daikanwa): New variable.
2732         (Qhiragana_jisx0208): Deleted.
2733         (Qkatakana_jisx0208): Deleted.
2734         (split_builtin_char): Split `ideograph-daikanwa'.
2735         (Fsplit_char): New implementation for UTF-2000.
2736         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2737         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2738         (complex_vars_of_mule_charset): Add new coded-charset
2739         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2740         `katakana-jisx0208'.
2741
2742         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2743         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2744         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2745         (MIN_CHAR_DAIKANWA): New macro.
2746         (MAX_CHAR_DAIKANWA): New macro.
2747
2748 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2749
2750         * data.c (Fstring_to_number): Don't recognize floating point if
2751         base is not 10.
2752
2753 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2754
2755         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2756
2757 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2758
2759         * mule-charset.c (Qsquare): New variable.
2760         (to_char_code): Add `Qsquare'.
2761         (syms_of_mule_charset): Add new symbol `square'.
2762
2763 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2764
2765         * mule-charset.c (Qcircle): New variable.
2766         (to_char_code): Add `Qcircle'.
2767         (syms_of_mule_charset): Add new symbol `circle'.
2768
2769 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2770
2771         * mule-charset.c (Qfont): New variable.
2772         (to_char_code): Add `Qfont'.
2773         (syms_of_mule_charset): Add new symbol `font'.
2774
2775 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2776
2777         * mule-charset.c (Qsub): New variable.
2778         (to_char_code): Add `Qsub'.
2779         (syms_of_mule_charset): Add new symbol `sub'.
2780
2781 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2782
2783         * mule-charset.c (Fput_char_attribute): Convert each element of
2784         VALUE to GL position if ATTRIBUTE is a GR-set,
2785
2786 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2787
2788         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2789         coded-charset is a GR-set.
2790
2791 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2792
2793         * mule-charset.c (Fput_char_attribute): Check each element of
2794         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2795
2796 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2797
2798         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2799         UTF-2000.
2800         (Qethiopic_ucs): New variable in UTF-2000.
2801         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2802         (complex_vars_of_mule_charset): Add new coded-charset
2803         `ethiopic-ucs' in UTF-2000.
2804
2805         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2806         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2807         9)'.
2808         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2809         10)'.
2810         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2811
2812 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2813
2814         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2815         `ascii'.
2816
2817 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2818
2819         * mule-charset.c (Vcharacter_variant_table): New variable.
2820         (Q_ucs): New variable.
2821         (Fchar_variants): New function.
2822         (Fput_char_attribute): Register `->ucs' value to
2823         `Vcharacter_variant_table'.
2824         (syms_of_mule_charset): Add new function `char-variants' and new
2825         symbol `->ucs'.
2826         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2827
2828 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2829
2830         * mule-charset.c (get_char_code_table): Allow negative character
2831         code.
2832         (put_char_code_table): Likewise.
2833         (Vcharacter_composition_table): New variable.
2834         (Q_decomposition): New variable.
2835         (Qwide): New variable.
2836         (Qnarrow): New variable.
2837         (Qcompat): New variable.
2838         (QnoBreak): New variable.
2839         (Qsuper): New variable.
2840         (Qfraction): New variable.
2841         (to_char_code): New function.
2842         (Fget_composite_char): New function.
2843         (Fput_char_attribute): Register `->decomposition' value to
2844         `Vcharacter_composition_table'.
2845         (syms_of_mule_charset): Add new function `get-composite-char', new
2846         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2847         `super' and `fraction'.
2848         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2849
2850 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2851
2852         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2853         character; copy the return value.
2854
2855 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2856
2857         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2858
2859         * mule-charset.c (range_charset_code_point): Must use make_int.
2860         (split_builtin_char): New function.
2861
2862 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2863
2864         * mule-charset.c (char_byte_table): Change name from
2865         "char-code-table" to "char-byte-table".
2866         (mark_char_code_table): New function.
2867         (char_code_table_equal): New function.
2868         (char_code_table_hash): New function.
2869         (char_code_table_description): New constant.
2870         (char_code_table): New type.
2871         (make_char_code_table): New function.
2872         (copy_char_code_table): New function.
2873         (get_char_code_table): Modify for `char_code_table' type.
2874         (put_char_code_table): Likewise.
2875         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2876         (Kashiwara).
2877
2878         * char-ucs.h (char_code_table): New type.
2879         (XCHAR_CODE_TABLE): New macro.
2880         (XSETCHAR_CODE_TABLE): New macro.
2881         (CHAR_CODE_TABLE_P): New macro.
2882         (GC_CHAR_CODE_TABLE_P): New macro.
2883         (struct Lisp_Char_Code_Table): New structure.
2884
2885 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2886
2887         * mule-charset.c (Fmake_charset): Setup byte_offset for
2888         {94|96}^n-set.
2889
2890 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2891
2892         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2893         character.
2894
2895 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2896
2897         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2898         is found.
2899
2900 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2901
2902         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2903         charset, it is regarded as a charset.
2904         (put_char_attribute): New function in UTF-2000.
2905         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2906         charset, mapping-table of the charset is modified.
2907         (Fdefine_char): New function in UTF-2000.
2908         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2909         `Fput_char_attribute'.
2910         (syms_of_mule_charset): Add new function `define-char' and new
2911         symbol `ucs' in UTF-2000.
2912         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2913
2914 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2915
2916         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2917         non-UTF-2000 configuration.
2918
2919 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2920
2921         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2922         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2923
2924         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2925         deleted.
2926         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2927         (Fset_charset_mapping_table): Likewise.
2928
2929         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2930         (CHARSET_ENCODING_TABLE): Delete.
2931         (XCHARSET_ENCODING_TABLE): Delete.
2932         (charset_code_point): New interface.
2933
2934 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2935
2936         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2937         instead of `charset_get_byte1' and `charset_get_byte2'.
2938
2939         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2940         (charset_get_byte2): Deleted.
2941
2942 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2943
2944         * char-ucs.h (SPLIT_CHAR): New inline function.
2945         (breakup_char_1): Use `SPLIT_CHAR'.
2946
2947         * mule-charset.c (range_charset_code_point): New function.
2948         (charset_code_point): New function.
2949
2950         * char-ucs.h (range_charset_code_point): New interface.
2951         (breakup_char_1): Use `range_charset_code_point'.
2952
2953 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2954
2955         * mule-charset.c (Fmake_charset): Delete unused local variable
2956         `code_offset'.
2957
2958         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2959         (breakup_char_1): Find a charset and code-point in
2960         `Vcharacter_attribute_table'.
2961
2962 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2963
2964         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2965         to 0.10 (Yao).
2966
2967 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2968
2969         * mule-charset.c (Vcharacter_attribute_table): New variable.
2970         (Fchar_attribute_alist): New function.
2971         (Fget_char_attribute): New function.
2972         (Fput_char_attribute): New function.
2973         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2974         too.
2975         (syms_of_mule_charset): Add new function `char-attribute-alist',
2976         `get-char-attribute' and `put-char-attribute'.
2977         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2978
2979 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2980
2981         * mule-charset.c (Fmake_charset): Just use
2982         `get_unallocated_leading_byte'.
2983
2984         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2985         sets; don't use final-byte based number for private sets.
2986
2987 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2988
2989         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2990         integer.
2991
2992 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2993
2994         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2995         to 0.9.
2996
2997 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2998
2999         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3000         of `CHAR_LEADING_BYTE' in UTF-2000.
3001
3002         * insdel.c (find_charsets_in_bufbyte_string): Use
3003         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3004         (find_charsets_in_emchar_string): Likewise.
3005
3006         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3007         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3008
3009         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3010         (CHAR_CHARSET_ID): New macro.
3011
3012 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3013
3014         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3015         charset-id - MIN_LEADING_BYTE.
3016         (put_char_table): Likewise.
3017
3018 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3019
3020         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3021         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3022         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3023         (CHARSET_ID_OFFSET): New macro.
3024         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3025         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3026         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3027         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3028         4).
3029         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3030         5).
3031         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3032         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3033         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3034         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3035         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3036
3037 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3038
3039         * mule-charset.c (next_allocated_leading_byte): New variable in
3040         UTF-2000.
3041         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3042         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3043         (get_unallocated_leading_byte): Simply use
3044         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3045         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3046         UTF-2000.
3047
3048         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3049         (MAX_LEADING_BYTE_PRIVATE): New macro.
3050         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3051         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3052
3053 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3054
3055         * mule-charset.c (Fmake_charset): Allocate final-byte based
3056         charset-id for 94-set, 96-set and 94x94-set.
3057
3058 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3059
3060         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3061         ambiguous `else'.
3062         (Fmake_charset): Likewise.
3063         (complex_vars_of_mule_charset): Modify the font registry of
3064         `ucs-bmp' not to match `Ethiopic-Unicode'.
3065
3066 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3067
3068         * mule-charset.c (complex_vars_of_mule_charset): Add font
3069         registory of `ucs-bmp'.
3070
3071 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3072
3073         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3074         coded-charsets in `default-coded-charset-priority-list' when
3075         breaking up a character.
3076
3077         * mule-charset.c (Vcharset_latin_viscii): New variable.
3078         (Qlatin_viscii): New variable.
3079         (make_charset): Don't use `decoding_table'.
3080         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3081         byte_offset.
3082         (Fset_charset_mapping_table): New implementation.
3083         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3084         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3085         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3086         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3087         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3088         charset `latin_viscii'.
3089
3090         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3091         (CHARSET_TYPE_94X94): Change to 1 from 2.
3092         (CHARSET_TYPE_96): Change to 2 from 1.
3093         (CHARSET_TYPE_128): New macro.
3094         (CHARSET_TYPE_128X128): Change to 5 from 4.
3095         (CHARSET_TYPE_256): New macro.
3096         (CHARSET_TYPE_256X256): Change to 7 from 5.
3097         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3098
3099 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3100
3101         * text-coding.c (char_encode_shift_jis): Refer
3102         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3103         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3104
3105         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3106         (char_byte_table_equal): New function in UTF-2000.
3107         (char_byte_table_hash): New function in UTF-2000.
3108         (char_byte_table_description): New constant in UTF-2000.
3109         (char_byte_table): New type in UTF-2000.
3110         (make_char_byte_table): New function in UTF-2000.
3111         (copy_char_byte_table): New function in UTF-2000.
3112         (make_char_code_table): New macro in UTF-2000.
3113         (get_char_code_table): New function in UTF-2000.
3114         (put_char_code_table): New function in UTF-2000.
3115         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3116         (charset_description): Add setting in UTF-2000.
3117         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3118         `CHARSET_TO_BYTE1_TABLE(cs)'.
3119         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3120         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3121         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3122         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3123         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3124         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3125         `CHARSET_TO_BYTE2_TABLE(cs)'.
3126
3127         * char-ucs.h (char_byte_table): New type.
3128         (XCHAR_BYTE_TABLE): New macro.
3129         (XSETCHAR_BYTE_TABLE): New macro.
3130         (CHAR_BYTE_TABLE_P): New macro.
3131         (GC_CHAR_BYTE_TABLE_P): New macro.
3132         (struct Lisp_Char_Byte_Table): New structure.
3133         (get_char_code_table): New interface.
3134         (Emchar_to_byte_table): Deleted.
3135         (get_byte_from_character_table): Deleted.
3136         (struct Lisp_Charset): Add `encoding_table'; delete
3137         `to_byte1_table' and `to_byte2_table'.
3138         (CHARSET_ENCODING_TABLE): New macro.
3139         (CHARSET_TO_BYTE1_TABLE): Deleted.
3140         (CHARSET_TO_BYTE2_TABLE): Deleted.
3141         (XCHARSET_ENCODING_TABLE): New macro.
3142         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3143         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3144
3145 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3146
3147         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3148         `vietnamese-viscii-*'.
3149
3150 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3151
3152         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3153         (Qvietnamese_viscii_upper): New variable.
3154         (Fdefine_charset_alias): New function.
3155         (syms_of_mule_charset): Add new function `define-charset-alias'.
3156         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3157         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3158         `latin-viscii-*'.
3159
3160 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3161
3162         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3163         (MAX_CHAR_OBS_94x94): New macro.
3164         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3165         for 94x94 sets.
3166
3167         * mule-charset.c (put_byte_from_character_table): Change unit size
3168         from 128 to 256.
3169         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3170         not defined.
3171         (Fmake_reverse_direction_charset): Modify dummy argument of
3172         `make_charset' for non-UTF-2000 environment.
3173
3174 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3175
3176         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3177
3178         * mule-charset.c (destroy_byte_from_character_table): New macro.
3179         (latin_jisx0201_to_ucs): Deleted.
3180         (latin_iso8859_2_to_ucs): Deleted.
3181         (latin_iso8859_3_to_ucs): Deleted.
3182         (latin_iso8859_4_to_ucs): Deleted.
3183         (latin_iso8859_9_to_ucs): Deleted.
3184         (latin_viscii_lower_to_ucs): Deleted.
3185         (latin_viscii_upper_to_ucs): Deleted.
3186         (mark_charset): Mark `cs->decoding_table'.
3187         (Fcharset_mapping_table): Fix DOC-string.
3188         (Fset_charset_mapping_table): New function.
3189         (syms_of_mule_charset): Add nwe function
3190         `set-charset-mapping-table'.
3191         (complex_vars_of_mule_charset): Don't setup and use
3192         `latin_*_to_ucs'.
3193
3194 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3195
3196         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3197         charset.
3198
3199 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3200
3201         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3202         (Vcharset_katakana_jisx0208): New variable.
3203         (Qhiragana_jisx0208): New variable.
3204         (Qkatakana_jisx0208): New variable.
3205         (make_charset): Add new argument `byte_offset'.
3206         (charset_get_byte1): Modify for new coded-charset definition; use
3207         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3208         `XCHARSET_BYTE_OFFSET'.
3209         (Fmake_charset): Modify for `make_charset'.
3210         (Fmake_reverse_direction_charset): Likewise.
3211         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3212         `katakana-jisx0208'.
3213         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3214         `.'  in font registry of charset `katakana-jisx0201',
3215         `latin-jisx0201', `vietnamese-viscii-lower' and
3216         `vietnamese-viscii-upper'; modify DOC-string of charset
3217         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3218         registry of charset `japanese-jisx0208' not to use font for JIS
3219         X0208:1990; add new charset `hiragana-jisx0208' and
3220         `katakana-jisx0208'.
3221
3222         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3223         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3224         (struct Lisp_Charset): Add `byte_offset'.
3225         (CHARSET_BYTE_OFFSET): New macro.
3226         (XCHARSET_UCS_MIN): New macro.
3227         (XCHARSET_UCS_MAX): New macro.
3228         (XCHARSET_CODE_OFFSET): New macro.
3229         (XCHARSET_BYTE_OFFSET): New macro.
3230         (MIN_CHAR_HIRAGANA): New macro.
3231         (MAX_CHAR_HIRAGANA): New macro.
3232         (MIN_CHAR_KATAKANA): New macro.
3233         (MAX_CHAR_KATAKANA): New macro.
3234         (MAKE_CHAR): Modify for new coded-charset definition; use
3235         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3236         `XCHARSET_BYTE_OFFSET'.
3237
3238 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3239
3240         * mule-charset.c (CHAR96): Deleted.
3241         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3242         <Lisp_Object>.
3243         (latin_iso8859_2_to_ucs): Likewise.
3244         (latin_iso8859_3_to_ucs): Likewise.
3245         (latin_iso8859_4_to_ucs): Likewise.
3246         (latin_iso8859_9_to_ucs): Likewise.
3247         (latin_viscii_lower_to_ucs): Likewise.
3248         (latin_viscii_upper_to_ucs): Likewise.
3249         (latin_tcvn5712_to_ucs): Commented out.
3250         (make_charset): Change type of argument `decoding_table' from
3251         <Emchar*> to <Lisp_Object> [vector of characters].
3252         (Fmake_charset): Modify for `make_charset'.
3253         (Fmake_reverse_direction_charset): Likewise.
3254         (Fcharset_mapping_table): New function in UTF-2000.
3255         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3256         UTF-2000.
3257         (complex_vars_of_mule_charset): Modify for type change of
3258         `*_to_ucs'; modify for `make_charset'.
3259
3260         * char-ucs.h (struct Lisp_Charset): Change type of
3261         `decoding_table' from <Emchar*> to <Lisp_Object>.
3262         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3263
3264 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3265
3266         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3267         error with non-UTF-2000-Mule.
3268
3269 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3270
3271         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3272         in lisp again].
3273         (Vcharset_chinese_cns11643_4): Likewise.
3274         (Vcharset_chinese_cns11643_5): Likewise.
3275         (Vcharset_chinese_cns11643_6): Likewise.
3276         (Vcharset_chinese_cns11643_7): Likewise.
3277         (Qchinese_cns11643_3): Likewise.
3278         (Qchinese_cns11643_4): Likewise.
3279         (Qchinese_cns11643_5): Likewise.
3280         (Qchinese_cns11643_6): Likewise.
3281         (Qchinese_cns11643_7): Likewise.
3282         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3283         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3284         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3285         (complex_vars_of_mule_charset): Likewise.
3286
3287 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3288
3289         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3290         96-set.
3291         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3292         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3293
3294 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3295
3296         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3297         0xFF60.
3298         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3299         (breakup_char_1): Likewise.
3300
3301         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3302         one of them includes the specified character.
3303
3304 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3305
3306         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3307
3308 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3309
3310         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3311
3312 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3313
3314         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3315         definition for non-UTF-2000 Mule.
3316         (latin_iso8859_3_to_ucs): Likewise.
3317         (latin_iso8859_4_to_ucs): Likewise.
3318         (latin_iso8859_9_to_ucs): Likewise.
3319         (latin_jisx0201_to_ucs): Likewise.
3320         (MIN_CHAR_THAI): Likewise.
3321         (MAX_CHAR_THAI): Likewise.
3322         (MIN_CHAR_GREEK): Likewise.
3323         (MAX_CHAR_GREEK): Likewise.
3324         (MIN_CHAR_HEBREW): Likewise.
3325         (MAX_CHAR_HEBREW): Likewise.
3326         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3327         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3328         (MIN_CHAR_CYRILLIC): Likewise.
3329         (MAX_CHAR_CYRILLIC): Likewise.
3330
3331 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3332
3333         * char-ucs.h (breakup_char_1): Use
3334         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3335         thai-tis620 and katakana-jisx0201 area.
3336
3337 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3338
3339         * char-ucs.h (breakup_char_1): Use
3340         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3341         area.
3342
3343         * text-coding.c (reset_encoding_stream): Fixed.
3344         (char_encode_ucs4): Delete `& 255'.
3345
3346         * char-ucs.h (breakup_char_1): Use
3347         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3348
3349 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3350
3351         * file-coding.c (Fmake_coding_system): Don't set up
3352         `codesys->fixed.size'.
3353         (encode_coding_no_conversion): Don't refer
3354         `str->codesys->fixed.size'.
3355
3356 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3357
3358         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3359         (latin_a_char_to_byte1): Deleted.
3360         (latin_a_char_to_byte2): Deleted.
3361
3362 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3363
3364         * mule-charset.c (make_charset): Add new argument `ucs_min',
3365         `ucs_max' and `code_offset'.
3366         (charset_get_byte1): New implementation [delete specific charset
3367         depended implementations].
3368         (Fmake_charset): Modify for `make_charset'.
3369         (Fmake_reverse_direction_charset): Likewise.
3370         (complex_vars_of_mule_charset): Likewise.
3371
3372         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3373         `code_offset'.
3374         (CHARSET_UCS_MIN): New macro.
3375         (CHARSET_UCS_MAX): New macro.
3376         (CHARSET_CODE_OFFSET): New macro.
3377         (MAKE_CHAR): Delete charset depended definitions [except
3378         katakana-jisx0201].
3379
3380 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3381
3382         * char-ucs.h (breakup_char_1): Use
3383         `Vdefault_coded_charset_priority_list' for C0-Controls,
3384         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3385
3386 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3387
3388         * char-ucs.h (charset_get_byte1): New function.
3389         (XCHARSET_GET_BYTE1): Deleted.
3390         (charset_get_byte2): New function.
3391         (XCHARSET_GET_BYTE2): Deleted.
3392         (Vdefault_coded_charset_priority_list): New external variable.
3393         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3394         `Vdefault_preferred_coded_charset_list'.
3395
3396         * mule-charset.c (charset_get_byte1): New function.
3397         (charset_get_byte2): New function.
3398         (Vdefault_coded_charset_priority_list): New variable.
3399         (vars_of_mule_charset): Add new variable
3400         `default-coded-charset-priority-list'.
3401
3402 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3403
3404         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3405         (XCHARSET_GET_BYTE2): New inline function.
3406         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3407         `XCHARSET_GET_BYTE2'.
3408
3409 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3410
3411         * mule-charset.c (make_charset): Initialize
3412         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3413         NULL if table is not defined.
3414
3415 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3416
3417         * text-coding.c (char_encode_shift_jis): Use
3418         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3419         `ucs_to_latin_jisx0201'.
3420
3421         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3422         (ucs_to_latin_iso8859_2): Deleted.
3423         (ucs_to_latin_iso8859_3): Deleted.
3424         (ucs_to_latin_iso8859_4): Deleted.
3425         (ucs_to_latin_iso8859_9): Deleted.
3426         (ucs_to_latin_viscii_lower): Deleted.
3427         (ucs_to_latin_viscii_upper): Deleted.
3428         (ucs_to_latin_tcvn5712): Deleted.
3429         (make_charset): Add new argument `decoding_table'; set up
3430         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3431         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3432         `decoding_table' is defined in UTF-2000.
3433         (Fmake_charset): Modify for `make_charset'.
3434         (Fmake_reverse_direction_charset): Likewise.
3435         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3436         and `GENERATE_96_SET'.
3437
3438         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3439         (ucs_to_latin_jisx0201): Deleted.
3440         (latin_iso8859_2_to_ucs): Deleted.
3441         (ucs_to_latin_iso8859_2): Deleted.
3442         (latin_iso8859_3_to_ucs): Deleted.
3443         (ucs_to_latin_iso8859_3): Deleted.
3444         (latin_iso8859_4_to_ucs): Deleted.
3445         (ucs_to_latin_iso8859_4): Deleted.
3446         (latin_iso8859_9_to_ucs): Deleted.
3447         (ucs_to_latin_iso8859_9): Deleted.
3448         (latin_viscii_lower_to_ucs): Deleted.
3449         (ucs_to_latin_viscii_lower): Deleted.
3450         (latin_viscii_upper_to_ucs): Deleted.
3451         (ucs_to_latin_viscii_upper): Deleted.
3452         (struct Lisp_Charset): Renamed `encoding_table' to
3453         `to_byte1_table'; add `to_byte2_table'.
3454         (CHARSET_DECODING_TABLE): New macro.
3455         (CHARSET_TO_BYTE1_TABLE): New macro.
3456         (CHARSET_TO_BYTE2_TABLE): New macro.
3457         (XCHARSET_DECODING_TABLE): New macro.
3458         (XCHARSET_TO_BYTE1_TABLE): New macro.
3459         (XCHARSET_TO_BYTE2_TABLE): New macro.
3460         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3461         tables.
3462         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3463         don't use `ucs_to_*' tables.
3464
3465 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3466
3467         * text-coding.c (Fmake_coding_system): Don't set up
3468         `codesys->fixed.size'.
3469         (encode_coding_no_conversion): Use `if' instead of `switch'.
3470
3471         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3472
3473 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3474
3475         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3476         (Fmake_charset): Modify for `make_charset'.
3477         (Fmake_reverse_direction_charset): Likewise.
3478         (complex_vars_of_mule_charset): Likewise.
3479
3480 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3481
3482         * text-coding.c (char_encode_shift_jis): Use table
3483         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3484
3485 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3486
3487         * text-coding.c (text_encode_generic): Use `if' instead of
3488         `switch'.
3489         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3490         decode JIS-Latin.
3491
3492 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3493
3494         * text-coding.c (encode_coding_sjis): Deleted.
3495         (char_encode_shift_jis): New function.
3496         (char_finish_shift_jis): New function.
3497         (reset_encoding_stream): Set up `encode_char' and `finish' for
3498         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3499         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3500         (char_encode_utf8): Treat `eol_type'.
3501
3502 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3503
3504         * file-coding.c (decode_coding_iso2022): Use
3505         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3506
3507 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3508
3509         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3510         to 0.7 (Hirano).
3511
3512 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3513
3514         * char-lb.h (CHAR_COLUMNS): New macro.
3515
3516 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3517
3518         * text-coding.c (char_encode_ucs4): New function.
3519         (char_finish_ucs4): New function.
3520         (encode_coding_ucs4): Deleted.
3521         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3522         (text_encode_generic): Delete local variable `charset' and `half'.
3523         (ucs_to_mule_table): Deleted.
3524         (mule_to_ucs_table): Deleted.
3525         (Fset_ucs_char): Deleted.
3526         (ucs_to_char): Deleted.
3527         (Fucs_char): Deleted.
3528         (Fset_char_ucs): Deleted.
3529         (Fchar_ucs): Deleted.
3530         (decode_ucs4): Deleted.
3531         (mule_char_to_ucs4): Deleted.
3532         (encode_ucs4): Deleted.
3533         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3534         (decode_coding_utf8): Likewise.
3535         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3536         (char_encode_iso2022): Fixed.
3537         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3538         `Fset_char_ucs' and `Fchar_ucs'.
3539         (complex_vars_of_file_coding): Don't initialize
3540         `ucs_to_mule_table'.
3541
3542         * objects-tty.c (tty_initialize_font_instance): Don't use
3543         `XCHARSET_COLUMNS'.
3544
3545         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3546         UTF-2000.
3547
3548         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3549         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3550
3551         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3552         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3553         (emchar_string_displayed_columns): Likewise.
3554
3555         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3556         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3557         (string_column_at_point): Likewise.
3558         (Fmove_to_column): Likewise.
3559
3560         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3561         `encoding_table' and `decoding_table'.
3562         (CHARSET_REP_BYTES): Deleted.
3563         (XCHARSET_REP_BYTES): Deleted.
3564         (XCHARSET_COLUMNS): Deleted.
3565         (CHAR_COLUMNS): New macro.
3566         (lookup_composite_char): Deleted unconditionally.
3567         (composite_char_string): Likewise.
3568
3569 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3570
3571         * char-ucs.h (Emchar_to_byte_table): New type.
3572         (get_byte_from_character_table): New function interface.
3573         (Vcharset_latin_jisx0201): New variable.
3574         (latin_jisx0201_to_ucs): New variable.
3575         (ucs_to_latin_jisx0201): New variable.
3576         (Vcharset_latin_iso8859_2): New variable.
3577         (latin_iso8859_2_to_ucs): New variable.
3578         (ucs_to_latin_iso8859_2): New variable.
3579         (Vcharset_latin_iso8859_3): New variable.
3580         (latin_iso8859_3_to_ucs): New variable.
3581         (ucs_to_latin_iso8859_3): New variable.
3582         (Vcharset_latin_iso8859_4): New variable.
3583         (latin_iso8859_4_to_ucs): New variable.
3584         (ucs_to_latin_iso8859_4): New variable.
3585         (Vcharset_latin_iso8859_9): New variable.
3586         (latin_iso8859_9_to_ucs): New variable.
3587         (ucs_to_latin_iso8859_9): New variable.
3588         (Vcharset_latin_viscii_lower): New variable.
3589         (latin_viscii_lower_to_ucs): New variable.
3590         (ucs_to_latin_viscii_lower): New variable.
3591         (Vcharset_latin_viscii_upper): New variable.
3592         (latin_viscii_upper_to_ucs): New variable.
3593         (ucs_to_latin_viscii_upper): New variable.
3594         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3595         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3596         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3597         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3598         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3599         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3600         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3601         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3602         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3603         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3604
3605         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3606         (Vcharset_latin_viscii_upper): New variable.
3607         (make_byte_from_character_table): New function.
3608         (put_byte_from_character_table): New function.
3609         (get_byte_from_character_table): New function.
3610         (CHAR96): New macro.
3611         (ucs_to_latin_jisx0201): New variable.
3612         (latin_jisx0201_to_ucs): New variable.
3613         (ucs_to_latin_iso8859_2): New variable.
3614         (latin_iso8859_2_to_ucs): New variable.
3615         (ucs_to_latin_iso8859_3): New variable.
3616         (latin_iso8859_3_to_ucs): New variable.
3617         (ucs_to_latin_iso8859_4): New variable.
3618         (latin_iso8859_4_to_ucs): New variable.
3619         (ucs_to_latin_iso8859_9): New variable.
3620         (latin_iso8859_9_to_ucs): New variable.
3621         (ucs_to_latin_viscii_lower): New variable.
3622         (latin_viscii_lower_to_ucs): New variable.
3623         (ucs_to_latin_viscii_upper): New variable.
3624         (latin_viscii_upper_to_ucs): New variable.
3625         (ucs_to_latin_tcvn5712): New variable.
3626         (latin_tcvn5712_to_ucs): New variable.
3627         (Qlatin_viscii_lower): New variable.
3628         (Qlatin_viscii_upper): New variable.
3629         (syms_of_mule_charset): Set up new symbol
3630         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3631         (complex_vars_of_mule_charset): Set up new charset
3632         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3633         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3634         `ucs_to_<CHARSET>' tables.
3635
3636 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3637
3638         * text-coding.c: New file.
3639
3640 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3641
3642         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3643
3644         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3645         (MAKE_CHAR): Modify for `ucs-bmp'.
3646         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3647         non-MULE characters of BMP.
3648
3649 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3650
3651         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3652         to 0.6.
3653
3654 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3655
3656         * lstream.h:
3657         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3658         - Include character.h for `CHAR_ASCII_P'.
3659
3660         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3661
3662         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3663         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3664
3665         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3666         (BYTE_C0_P): Likewise.
3667         (BYTE_C1_P): Likewise.
3668         (Lstream_get_emchar_1): Likewise.
3669         (Lstream_fput_emchar): Likewise.
3670         (Lstream_funget_emchar): Likewise.
3671         (copy_internal_to_external): Likewise.
3672         (copy_external_to_internal): Likewise.
3673
3674         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3675         (BYTE_C0_P): Likewise.
3676         (BYTE_C1_P): Likewise.
3677         (Lstream_get_emchar_1): Likewise.
3678         (Lstream_fput_emchar): Likewise.
3679         (Lstream_funget_emchar): Likewise.
3680         (copy_internal_to_external): Likewise.
3681         (copy_external_to_internal): Likewise.
3682
3683         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3684         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3685
3686         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3687         (BYTE_ASCII_P): Moved to mb-1byte.h.
3688
3689 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3690
3691         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3692
3693         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3694         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3695         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3696         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3697         (VALIDATE_CHARPTR_FORWARD): Likewise.
3698         (simple_charptr_emchar): Moved to mb-multibyte.h.
3699         (simple_set_charptr_emchar): Likewise.
3700         (simple_charptr_copy_char): Likewise.
3701         (non_ascii_charptr_emchar): Likewise.
3702         (non_ascii_set_charptr_emchar): Likewise.
3703         (non_ascii_charptr_copy_char): Likewise.
3704         (charptr_emchar): Moved to mb-*byte.h.
3705         (set_charptr_emchar): Likewise.
3706         (charptr_copy_char): Likewise.
3707
3708         * mb-1byte.h, mb-multibyte.h: New files.
3709
3710 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3711
3712         * mb-utf-8.h (MULTIBYTE): New macro.
3713         (MAX_EMCHAR_LEN): Moved from buffer.h.
3714         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3715
3716         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3717
3718         * mb-lb.h, multibyte.h: New files.
3719
3720         * char-1byte.h (Charset_ID): Moved from buffer.h.
3721         (MIN_LEADING_BYTE): Likewise.
3722         (LEADING_BYTE_ASCII): Likewise.
3723         (NUM_LEADING_BYTES): Likewise.
3724         (CHARSETP): Likewise.
3725         (CHARSET_BY_LEADING_BYTE): Likewise.
3726         (XCHARSET_LEADING_BYTE): Likewise.
3727         (XCHARSET_GRAPHIC): Likewise.
3728         (XCHARSET_COLUMNS): Likewise.
3729         (XCHARSET_DIMENSION): Likewise.
3730         (CHAR_CHARSET): Likewise.
3731         (CHAR_LEADING_BYTE): Likewise.
3732         (BREAKUP_CHAR): Likewise.
3733         (Vcharset_ascii): Likewise.
3734
3735         * buffer.h: Include multibyte.h unconditionally.
3736         (VALID_CHARPTR_P): Moved to multibyte.h.
3737         (ASSERT_VALID_CHARPTR): Likewise.
3738         (REAL_INC_CHARPTR): Likewise.
3739         (REAL_INC_CHARBYTIND): Likewise.
3740         (REAL_DEC_CHARPTR): Likewise.
3741         (INC_CHARPTR): Likewise.
3742         (INC_CHARBYTIND): Likewise.
3743         (DEC_CHARPTR): Likewise.
3744         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3745         (VALIDATE_CHARPTR_FORWARD): Likewise.
3746         (charptr_n_addr): Likewise.
3747         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3748         (simple_charptr_emchar): Moved to multibyte.h.
3749         (simple_set_charptr_emchar): Likewise.
3750         (simple_charptr_copy_char): Likewise.
3751         (non_ascii_charptr_emchar): Likewise.
3752         (non_ascii_set_charptr_emchar): Likewise.
3753         (non_ascii_charptr_copy_char): Likewise.
3754         (charptr_emchar): Likewise.
3755         (set_charptr_emchar): Likewise.
3756         (charptr_copy_char): Likewise.
3757         (charptr_emchar_n): Likewise.
3758         (Charset_ID): Moved to char-1byte.h.
3759         (Vcharset_ascii): Likewise.
3760         (CHAR_CHARSET): Likewise.
3761         (CHAR_LEADING_BYTE): Likewise.
3762         (LEADING_BYTE_ASCII): Likewise.
3763         (NUM_LEADING_BYTES): Likewise.
3764         (MIN_LEADING_BYTE): Likewise.
3765         (CHARSETP): Likewise.
3766         (CHARSET_BY_LEADING_BYTE): Likewise.
3767         (XCHARSET_LEADING_BYTE): Likewise.
3768         (XCHARSET_GRAPHIC): Likewise.
3769         (XCHARSET_COLUMNS): Likewise.
3770         (XCHARSET_DIMENSION): Likewise.
3771         (BREAKUP_CHAR): Likewise.
3772
3773 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3774
3775         * character.h: Add document about interface for characters.
3776
3777         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3778         (MAKE_CHAR): Delete comment about
3779         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3780         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3781         (BREAKUP_CHAR): Modify name of arguments.
3782         (CHAR_CHARSET): Modify name of argument.
3783
3784         * buffer.h: Delete document about Emchar accessors.
3785
3786 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3787
3788         * character.h (CHAR_INTP): Moved from buffer.h
3789         (CHAR_OR_CHAR_INTP): Likewise.
3790         (XCHAR_OR_CHAR_INT): Likewise.
3791         (CHECK_CHAR_COERCE_INT): Likewise.
3792
3793         * buffer.h (CHAR_INTP): Moved to character.h
3794         (CHAR_OR_CHAR_INTP): Likewise.
3795         (XCHAR_OR_CHAR_INT): Likewise.
3796         (CHECK_CHAR_COERCE_INT): Likewise.
3797
3798 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3799
3800         * character.h:
3801         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3802         - Include char-1byte.h, char-lb.h or char-ucs.h.
3803
3804         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3805
3806         * buffer.h: Include character unconditionally.
3807         (valid_char_p): Moved to char-*.h.
3808         (non_ascii_valid_char_p): Moved to char-lb.h.
3809
3810         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3811
3812 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3813
3814         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3815         in UTF-2000 because it is not ported yet and not to use
3816         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3817         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3818         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3819
3820         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3821         (CHAR_ASCII_P): Moved from character.h.
3822
3823         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3824         (CHAR_ASCII_P): Likewise.
3825         (CHAR_FIELD1_MASK): Deleted.
3826         (CHAR_FIELD2_MASK): Deleted.
3827         (CHAR_FIELD3_MASK): Deleted.
3828         (MAX_CHAR_BASIC_LATIN): New macro.
3829         (CHAR_FIELD1): Deleted.
3830         (CHAR_FIELD2_INTERNAL): Deleted.
3831         (CHAR_FIELD3_INTERNAL): Deleted.
3832         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3833         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3834         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3835         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3836         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3837         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3838         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3839         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3840         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3841         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3842         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3843         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3844         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3845         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3846         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3847         (MIN_CHAR_COMPOSITION): Deleted.
3848         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3849         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3850
3851 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3852
3853         * buffer.h: Include mb-utf-8.h in UTF-2000.
3854
3855         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3856
3857         * mb-utf-8.h: New file.
3858
3859 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3860
3861         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3862         instead of `int'.
3863
3864         * mule-charset.h, buffer.h (Charset_ID): New type.
3865
3866 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3867
3868         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3869         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3870         instead of `MULE_CHAR_PRIVATE_OFFSET',
3871         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3872         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3873         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3874
3875         * character.h (Vcharset_japanese_jisx0212): New variable
3876         definition.
3877
3878 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3879
3880         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3881         (charset_by_attributes): Delete array about direction.
3882         (latin_a_char_to_charset): New variable in UTF-2000.
3883         (latin_a_char_to_byte1): New variable in UTF-2000.
3884         (latin_a_char_to_byte2): New variable in UTF-2000.
3885         (Qucs_bmp): New variable.
3886         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3887         `Bufbyte'.
3888         (next_allocated_2_byte_leading_byte): Likewise.
3889         (non_ascii_set_charptr_emchar): Likewise.
3890         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3891         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3892         `charset_by_attributes'.
3893         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3894         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3895         and `CHARSET_BY_LEADING_BYTE'.
3896         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3897         `utf-2000-version' to `vars_of_mule_charset'.
3898         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3899         define `leading-code-private-11' in UTF-2000; move setting of
3900         `utf-2000-version' from `syms_of_mule_charset'.
3901         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3902         UTF-2000.
3903
3904         * character.h (Charset_ID): New type.
3905         (LEADING_BYTE_UCS_BMP): New macro.
3906         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3907         (CHARSET_ID_OFFSET_94): New macro.
3908         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3909         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3910         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3911         final-byte.
3912         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3913         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3914         (CHARSET_ID_OFFSET_96): New macro.
3915         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3916         CHARSET_ID_OFFSET_96 and final-byte.
3917         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3918         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3919         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3920         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3921         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3922         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3923         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3924         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3925         (LEADING_BYTE_THAI_TIS620): Likewise.
3926         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3927         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3928         (CHARSET_ID_OFFSET_94x94): New macro.
3929         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3930         CHARSET_ID_OFFSET_94x94 and final-byte.
3931         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3932         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3933         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3934         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3935         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3936         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3937         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3938         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3939         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3940         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3941         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3942         (CHARSET_TYPE_128X128): New macro.
3943         (CHARSET_TYPE_256X256): New macro.
3944         (XCHARSET_PRIVATE_P): Delete unconditionally.
3945         (charset_by_attributes): Delete array about direction.
3946         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3947         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3948         (MIN_CHAR_94): New macro.
3949         (MAX_CHAR_94): New macro.
3950         (MIN_CHAR_96): New macro.
3951         (MAX_CHAR_96): New macro.
3952         (MIN_CHAR_94x94): New macro.
3953         (MAX_CHAR_94x94): New macro.
3954         (MIN_CHAR_96x96): New macro.
3955         (MAX_CHAR_96x96): New macro.
3956         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3957         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3958         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3959         - 32)'.
3960         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3961         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3962         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3963         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3964         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3965         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3966         `XCHARSET_LEADING_BYTE' to make code-point.
3967         (latin_a_char_to_charset): New variable.
3968         (latin_a_char_to_byte1): New variable.
3969         (latin_a_char_to_byte2): New variable.
3970         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3971         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3972         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3973
3974         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3975         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3976         (find_charsets_in_emchar_string): Likewise.
3977         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3978
3979         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3980         `int'.
3981         (decode_coding_iso2022): Likewise.
3982
3983         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3984         of `unsigned char'.
3985
3986         * redisplay.c (redisplay_text_width_emchar_string): Use
3987         `Charset_ID' instead of `unsigned char'.
3988         (redisplay_frame_text_width_string): Likewise.
3989
3990         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3991         `unsigned char'.
3992
3993         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3994         instead of `unsigned char'.
3995         (face_cachel_charset_font_metric_info): Likewise.
3996
3997         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3998         (get_non_ascii_char_table_value): Likewise.
3999         (get_char_table): Likewise.
4000         (put_char_table): Likewise.
4001         (map_over_other_charset): Likewise.
4002         (map_char_table): Likewise.
4003
4004         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4005         instead of `unsigned char'.
4006
4007 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4008
4009         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4010         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4011
4012         * mule-charset.c (leading_code_private_11): Don't define in
4013         UTF-2000.
4014
4015         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4016         in UTF-2000 because it is not ported yet and not to use
4017         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4018
4019 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4020
4021         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4022
4023 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4024
4025         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4026         in UTF-2000.
4027
4028         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4029         of unsigned char to store leading-byte.
4030
4031         * chartab.c (get_non_ascii_char_table_value): Don't use
4032         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4033
4034         * file-coding.c (encode_coding_big5): Delete bogus implementation
4035         in UTF2000.
4036
4037         * character.h (LEADING_BYTE_*): Delete definition for
4038         non-UTF-2000.
4039         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4040         (LEADING_BYTE_PREFIX_P): Deleted.
4041         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4042         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4043         (BUFBYTE_LEADING_BYTE_P): Deleted.
4044         (CHARSET_PRIVATE_P): Deleted unconditionally.
4045         (rep_bytes_by_first_byte): Deleted unconditionally.
4046         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4047         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4048         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4049         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4050         (CHAR_FIELD2): Deleted.
4051         (CHAR_FIELD3): Deleted.
4052         (MAKE_CHAR): Delete definition for non-UTF-2000.
4053         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4054         (breakup_char_1): New implementation.
4055         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4056         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4057
4058 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4059
4060         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4061         condition.
4062
4063 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4064
4065         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4066         (CHARSET_PRIVATE_P): Likewise.
4067         (XCHARSET_PRIVATE_P): Likewise.
4068         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4069
4070         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4071         UTF2000.
4072         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4073
4074 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4075
4076         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4077         (NUM_LEADING_BYTES): Changed from 128 to 256.
4078         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4079         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4080         UTF2000.
4081         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4082
4083         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4084         UTF2000.
4085         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4086         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4087         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4088         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4089         (Qchinese_cns11643_3): New variable in UTF2000.
4090         (Qchinese_cns11643_4): New variable in UTF2000.
4091         (Qchinese_cns11643_5): New variable in UTF2000.
4092         (Qchinese_cns11643_6): New variable in UTF2000.
4093         (Qchinese_cns11643_7): New variable in UTF2000.
4094         (syms_of_mule_charset): Define `chinese-cns11643-3',
4095         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4096         and `chinese-cns11643-7' in UTF2000.
4097         (vars_of_mule_charset): Initialize
4098         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4099         + 1 in UTF2000.
4100         (complex_vars_of_mule_charset): Setup charset
4101         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4102         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4103
4104 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4105
4106         * mule-charset.c: Move setting for `leading-code-private-11' from
4107         `syms_of_mule_charset' to `vars_of_mule_charset'.
4108
4109 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4110
4111         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4112         and `NUM_LEADING_BYTES' in assert.
4113
4114 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4115
4116         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4117         instead of 128.
4118         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4119         `NUM_LEADING_BYTES' instead of 128.
4120
4121 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4122
4123         * mule-charset.h (charset_by_leading_byte): Use
4124         `NUM_LEADING_BYTES' instead of 128.
4125         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4126
4127         * mule-charset.c (charset_by_leading_byte): Use
4128         `NUM_LEADING_BYTES' instead of 128.
4129         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4130
4131         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4132         128.
4133
4134 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4135
4136         * mule-charset.c (syms_of_mule_charset): Update to
4137         0.4 (Shin-Imamiya).
4138
4139 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4140
4141         * file-coding.c (encode_coding_sjis): New implementation for
4142         UTF2000.  (decode_coding_sjis): Ditto.
4143
4144 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4145
4146         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4147         Don't define in UTF2000.
4148
4149         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4150         defined.
4151
4152         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4153         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4154         MULE.
4155
4156 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4157
4158         * config.h.in (CHAR_IS_UCS4): New macro.
4159
4160         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4161         conventional MULE representation.
4162         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4163
4164         * mule-charset.h: Reverted to original.
4165
4166         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4167         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4168         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4169
4170         * character.h: New file.
4171
4172         * file-coding.c (Fmake_coding_system): Set 1 to
4173         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4174         defined.
4175         (encode_coding_no_conversion): New implementation for UTF2000.
4176
4177         * file-coding.h (struct Lisp_Coding_System): Add new member
4178         `fixed.size'.
4179
4180 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4181
4182         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4183         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4184         (encode_coding_iso2022): New implementation for UTF2000.
4185
4186 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4187
4188         * mule-canna.c (c2mu): New implementation for UTF2000.
4189         (m2c): Likewise.
4190
4191 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4192
4193         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4194
4195 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * file-coding.c (reset_encoding_stream): Set 0 to
4198         `str->iso2022.current_char_boundary' in UTF2000.
4199         (encode_utf8): Don't define in UTF2000.
4200         (encode_coding_utf8): New implementation for UTF-8 representation
4201         of UTF2000.
4202         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4203
4204 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4205
4206         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4207
4208         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4209         UTF2000.
4210         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4211
4212         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4213
4214         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4215         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4216         as UTF-8 in UTF2000.
4217         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4218         (non_ascii_valid_char_p): Don't define in UTF2000.
4219         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4220         (Lstream_get_emchar_1): Likewise.
4221         (utf-2000-version): New variable in UTF2000.
4222
4223         * lread.c (read_escape): Add new reader `u'.
4224
4225         * insdel.c (three_to_one_table): Don't define in UTF2000.
4226         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4227         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4228         UTF2000.
4229         (bytind_to_bufpos_func): Likewise.
4230         (buffer_mule_signal_inserted_region): Likewise.
4231         (vars_of_insdel): Don't initialize `three_to_one_table'.
4232         (init_buffer_text): Use `buf->text->mule_size' instead of
4233         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4234         UTF2000.
4235
4236         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4237         UTF-8 representation in UTF2000.
4238         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4239         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4240         (decode_coding_iso2022): Don't define local variable `lb' in
4241         UTF2000; don't use LEADING_BYTE in UTF2000; use
4242         `DECODE_ADD_UCS_CHAR' in UTF2000.
4243         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4244
4245         * config.h.in (UTF2000): New macro.
4246
4247         * buffer.h (struct buffer_text): Add new member `mule_size' and
4248         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4249         (valid_char_p): Return always 1 in UTF2000.
4250         (MAX_EMCHAR_LEN): 6 in UTF2000.
4251         (three_to_one_table): Don't define in UTF2000.
4252         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4253         UTF2000.
4254         (real_bytind_to_bufpos): Likewise.
4255
4256         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4257
4258 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4261         representation change.
4262         (Vutf_2000_version): New variable.
4263         (leading_code_private_11): New variable.
4264         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4265         `leading-code-private-11'.
4266
4267         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4268         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4269         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4270         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4271         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4272         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4273         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4274         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4275         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4276         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4277         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4278         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4279         (MIN_CHAR_GREEK): New macro.
4280         (MAX_CHAR_GREEK): New macro.
4281         (MIN_CHAR_CYRILLIC): New macro.
4282         (MAX_CHAR_CYRILLIC): New macro.
4283         (MIN_CHAR_HEBREW): New macro.
4284         (MAX_CHAR_HEBREW): New macro.
4285         (MIN_CHAR_THAI): New macro.
4286         (MAX_CHAR_THAI): New macro.
4287         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4288         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4289         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4290         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4291         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4292         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4293         (CHAR_FIELD2): New inline function.
4294         (CHAR_FIELD3): New inline function.
4295         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4296         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4297         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4298         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4299         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4300         (MIN_CHAR_COMPOSITION): Likewise.
4301         (CHAR_LEADING_BYTE): Modified for character representation change.
4302         (MAKE_CHAR): Likewise.
4303
4304         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4305         (Vcharset_greek_iso8859_7): Likewise.
4306         (Vcharset_cyrillic_iso8859_5): Likewise.
4307         (Vcharset_hebrew_iso8859_8): Likewise.
4308         (Vcharset_thai_tis620): Likewise.
4309         (Vcharset_katakana_jisx0201): Likewise.
4310
4311 2001-02-08  Martin Buchholz <martin@xemacs.org>
4312
4313         * XEmacs 21.2.44 "Thalia" is released.
4314
4315 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4316
4317         Fixes crashes in kill-emacs on some systems.
4318         * process-unix.c (unix_kill_child_process):
4319         It's OK for kill() to fail with ESRCH.
4320
4321 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4322
4323         Contortions to make .gdbinit tricks work on most systems.
4324         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4325         * alloc.c (dbg_valmask): Make non-const.
4326         * alloc.c (dbg_typemask): Make non-const.
4327         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4328         * alloc.c (dbg_valbits): Make non-const.
4329         * alloc.c (dbg_gctypebits): Make non-const.
4330         * .gdbinit (decode_object): Make it work with AIX cc.
4331
4332 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4333
4334         * elhash.c (make_general_lisp_hash_table):
4335         Use simpler and more efficient calloc to clear entries.
4336
4337 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4338
4339         * window.c (window_scroll): Work around an AIX C compiler bug.
4340         Fixes 'scroll-up' does nothing problem with xlC.
4341
4342 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4343
4344         * .gdbinit: Remove obsolete comment.
4345
4346 2001-01-31  Mike Alexander  <mta@arbortext.com>
4347
4348         * select.c (Fown_selection_internal): Set owned_p for device
4349         method correctly.
4350
4351 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4352
4353         Port to g++ 2.97.
4354         "not" cannot be used as a macro name as it is an operator in C++
4355         * config.h.in: Stop #defining `not'.
4356         * chartab.c (check_category_char): not ==> not_p
4357         * chartab.h: Likewise.
4358         * regex.c (re_match_2_internal): Likewise.
4359
4360 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4361
4362         * lisp-disunion.h: Fix up comments.
4363
4364 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4365
4366         * keymap.c (define_key_check_and_coerce_keysym):
4367         (syms_of_keymap):
4368         Support mouse-6 and mouse-7 bindings in the obvious way.
4369
4370 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4371
4372         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4373
4374 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4375
4376         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4377         Previous patch missed DEFVAR_INT_MAGIC.
4378         Make sure future DEFVAR_foo use correct types.
4379         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4380         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4381         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4382         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4383         * (DEFVAR_INT): Likewise.
4384         * redisplay.c (vertical_clip): Should be of type Fixnum.
4385         * redisplay.c (horizontal_clip): Likewise.
4386         * lisp.h (dump_add_opaque_int): New.
4387         (dump_add_opaque_fixnum): New.
4388
4389 2001-01-29  Andy Piper  <andy@xemacs.org>
4390
4391         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4392         since they can be eval'ed
4393
4394 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4395
4396         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4397         Oops, XEmacs redefines `class'.  Use `typename' instead.
4398
4399 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4400
4401         * dumper.c: Fix C++ compile errors.
4402
4403 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4404
4405         * tparam.c: Use correct prototypes.
4406
4407 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4408
4409         * sysproc.h: #include util.h for NetBSD's openpty.
4410
4411 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4412
4413         More 64-bit correctness.
4414         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4415         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4416         Fix up comments.
4417         This finally finishes the 64-bit SGI port.
4418         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4419         * symbols.c: Fix up comments and type casts.
4420         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4421         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4422         * symeval.h (Fixnum): New type.
4423         * symeval.h (symbol_value_type): Fix up comment.
4424
4425         * commands.h:
4426         * nt.c:
4427         * emacs.c:
4428         * data.c:
4429         * redisplay.c:
4430         * abbrev.c:
4431         * dired-msw.c:
4432         * event-Xt.c:
4433         * eldap.c:
4434         * window.c:
4435         * sound.c:
4436         * event-stream.c:
4437         * eval.c:
4438         * buffer.c:
4439         * mule-canna.c: A million DEFVAR_INTs here...
4440         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4441         * extents.c:
4442         * cmdloop.c:
4443         * lisp.h:
4444         * select-x.c:
4445         * console-x.h:
4446         * event-msw.c:
4447         * mule-wnnfns.c:
4448         * hpplay.c:
4449         * ralloc.c:
4450         * alloc.c:
4451         * keymap.c:
4452         * profile.c:
4453         s/int/Fixnum/g in DEFVAR_INT declarations.
4454
4455 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4456
4457         Port pdump to SGI alignment-sensitive environment.
4458         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4459         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4460         properly aligned.
4461         Define and use aligned reading and writing macros.
4462         Use buffered stdio instead of posix i/o for faster dumping.
4463         Eliminate kludgy 256 byte space for header.
4464         Read and write from dump file using structs for alignment safety.
4465         * dumper.c (pdump_align_stream): New.
4466         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4467         * dumper.c (PDUMP_READ_ALIGNED): New.
4468         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4469         * dumper.c (pdump_static_Lisp_Object): New struct.
4470         * dumper.c (pdump_static_pointer): New struct.
4471         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4472         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4473         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4474         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4475
4476         * dumper.c (pdump_backtrace):
4477         * dumper.c (pdump_get_indirect_count):
4478         * dumper.c (pdump_register_object):
4479         * dumper.c (pdump_register_struct):
4480         * dumper.c (pdump_reloc_one):
4481         * dumper.c (pdump_scan_by_alignment):
4482         * dumper.c (pdump_dump_from_root_struct_ptrs):
4483         * dumper.c (pdump_dump_opaques):
4484         * dumper.c (pdump_dump_rtables):
4485         * dumper.c (pdump_dump_from_root_objects):
4486         * dumper.c (pdump):
4487         * dumper.c (pdump_load_finish):
4488         Use aligned reading and writing.
4489
4490         * dumper.c (pdump_free): Make static.
4491         * dumper.c (pdump_hFile): Likewise.
4492         * dumper.c (pdump_hMap): Likewise.
4493
4494 2001-01-26  Martin Buchholz <martin@xemacs.org>
4495
4496         * XEmacs 21.2.43 "Terspichore" is released.
4497
4498 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4499
4500         Type fiddling for window_config.saved_windows_count
4501         * window.c (struct window_config): 
4502         Make saved_windows_count member unsigned.
4503         * window.c (sizeof_window_config_for_n_windows): 
4504         Make parameter unsigned.
4505         * window.c (mark_window_config):
4506         * window.c (window_config_equal):
4507         * window.c (free_window_configuration):
4508         * window.c (Fset_window_configuration):
4509         * window.c (count_windows):
4510         * window.c (Fcurrent_window_configuration):
4511         * window.c (reinit_vars_of_window):
4512         Update all callers and users.
4513
4514 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4515
4516         Alignment correctness for flexible arrays.
4517         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4518         Make alignment-correct. Add interesting comments.
4519         * alloc.c (size_vector):
4520         * alloc.c (make_vector_internal):
4521         * alloc.c (make_bit_vector_internal):
4522         * alloc.c (sweep_bit_vectors_1):
4523         * fns.c (size_bit_vector):
4524         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4525         * window.c (sizeof_window_config_for_n_windows): 
4526         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4527
4528 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4529
4530         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4531
4532 2001-01-23  Andy Piper  <andy@xemacs.org>
4533
4534         * select.c (Fown_selection_internal): pass owned_p
4535
4536         * select-msw.c (mswindows_own_selection): New Signature.
4537
4538         * console.h (struct console_methods): add owned_p to
4539         _own_selection.
4540
4541         * select-x.c (x_own_selection): pass owned_p
4542         (hack_motif_clipboard_selection): use owned_p
4543         (vars_of_select_x): new variable -
4544         x_selection_strict_motif_ownership.
4545
4546 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4547
4548         * specifier.h (specifier_data_offset): Remove pointless parens.
4549         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4550
4551 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4552
4553         Make Lisp_Object sizeof methods be alignment-correct.
4554         pdump must restore objects to the same alignment as the C compiler
4555         assumes.  It really matters on SGIs.
4556         * lstream.c (aligned_sizeof_lstream): New.
4557         (sizeof_lstream): Use aligned_sizeof_lstream.
4558         (Lstream_new): Likewise.
4559         * opaque.c (aligned_sizeof_opaque): New.
4560         (sizeof_opaque): Use aligned_sizeof_opaque.
4561         (make_opaque): Likewise.
4562         * specifier.c (aligned_sizeof_specifier): New.
4563         (sizeof_specifier): Use aligned_sizeof_specifier.
4564         (make_specifier_internal): Likewise.
4565
4566 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4567
4568         * lstream.h (struct lstream): Use max_align_t for trailing data.
4569         * specifier.h (struct Lisp_Specifier): Likewise.
4570
4571 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4572
4573         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4574         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4575         (CCL_SUSPEND): Likewise.
4576         (CCL_INVALID_CMD): Likewise.
4577         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4578         (ccl_driver): Likewise.
4579         (CCL_WRITE_CHAR): Macro hygiene.
4580         (CCL_WRITE_STRING): Macro hygiene.
4581
4582 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4583
4584         Port "portable" dumper to SunOS 4 and HP-UX.
4585         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4586         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4587         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4588
4589 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4590
4591         * lisp.h (ALIGNOF): A better definition for C++.
4592
4593 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4594
4595         Macro hygiene.
4596         Fix printf warnings: int format, long int arg.
4597         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4598         (PUSH_FAILURE_POINT): Use correct printf formats.
4599         (POP_FAILURE_POINT): Use correct printf formats.  
4600         Use do {...} while (0)
4601
4602 2001-01-20  Martin Buchholz <martin@xemacs.org>
4603
4604         * XEmacs 21.2.42 "Poseidon" is released.
4605
4606 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4607
4608         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4609
4610 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4611
4612         De-kludgify FIXED_TYPE free list frobbing.
4613         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4614         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4615         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4616         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4617         * alloc.c (LRECORD_FREE_P): New.
4618         * alloc.c (MARK_LRECORD_AS_FREE): New.
4619         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4620         * alloc.c (STRUCT_FREE_P): Deleted.
4621         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4622         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4623         * alloc.c (STRING_CHARS_FREE_P): New.
4624         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4625         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4626         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4627         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4628         * alloc.c (resize_string): Use new definitions.
4629         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4630         * alloc.c (verify_string_chars_integrity): Use new definitions.
4631         * alloc.c (compact_string_chars): Use new definitions.
4632         * alloc.c: Update monster comments.
4633         * lrecord.h (lrecord_type): Add some new lrecord types for
4634         alloc.c's use.
4635
4636 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4637
4638         Improve alignment hackery.
4639         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4640         (max_align_t): Moved from opaque.h - general purpose.
4641         (ALIGN_PTR): Use size_t, not long.
4642         * opaque.h (max_align_t): Move to lisp.h.
4643
4644 2001-01-18  Norbert Koch  <nk@LF.net>
4645
4646         * gui.h: Fix and add prototypes to fix build problems.
4647
4648 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4649
4650         temacs is going away, so `dump-temacs' is now a bad name.
4651         * .dbxrc (dump-temacs): Rename to `dmp'.
4652         * .gdbinit (dump-temacs): Rename to `dmp'.
4653
4654 2001-01-17  Andy Piper  <andy@xemacs.org>
4655
4656         * glyphs.c (print_image_instance): comment to make martin happy.
4657
4658         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4659         change.
4660
4661         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4662         activation.
4663         (mswindows_tab_control_redisplay): warning suppression.
4664
4665         * glyphs-widget.c (widget_update): re-write to cope with updated
4666         items.
4667         (widget_instantiate): use new gui_item functions.
4668         (tab_control_update): deleted.
4669         (progress_gauge_update): deleted.
4670         (image_instantiator_progress_guage): take out update reference.
4671         (image_instantiator_tree_view): ditto.
4672         (image_instantiator_tab_control): ditto.
4673
4674         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4675         Right the new way.
4676         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4677         return whether anything was changed.
4678         (update_gui_item_keywords): as it sounds.
4679
4680         * gui.h: declare widget_gui_parse_item_keywords.
4681
4682         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4683         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4684
4685 2001-01-17  Martin Buchholz <martin@xemacs.org>
4686
4687         * XEmacs 21.2.41 "Polyhymnia" is released.
4688
4689 2001-01-16  Didier Verna  <didier@xemacs.org>
4690
4691         * glyphs.c (image_instantiate): don't use fallbacks when
4692         instantiating a face's background pixmap by inheritance.
4693
4694 2001-01-14  Mike Sperber <mike@xemacs.org>
4695
4696         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4697         Conditionalize accordingly.
4698
4699 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4700
4701         * dumper.c (pdump_file_get): Fix a compiler warning.
4702
4703 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4704
4705         Make Purify happy when pdumping.
4706         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4707         iniitalizing all bits of new lisp object memory.
4708         * symbols.c (Fmake_local_variable): Likewise.
4709         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4710         * symbols.c (Fdefvaralias): Likewise.
4711         * mule-charset.c (vars_of_mule_charset): Likewise.
4712
4713 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4714         Add the `-nd' flag when running pre-dump operations under the debugger.
4715         * .dbxrc (run-temacs): Add `-nd'.
4716         * .dbxrc (update-elc): Likewise.
4717         * .dbxrc (dump-temacs): Likewise.
4718         * .gdbinit (run-temacs): Likewise.
4719         * .gdbinit (check-temacs): Likewise.
4720         * .gdbinit (update-elc): Likewise.
4721         * .gdbinit (dump-temacs): Likewise.
4722
4723 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4724
4725         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4726         export OBJECT_MODE=64
4727         configure --pdump --use-union-type=no
4728         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4729         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4730
4731         * miscplay.c (sndcnv8U_2mono):
4732         Avoid two uses of `++' in the same expression.
4733         Suppresses a GCC warning.
4734
4735 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4736
4737         Make sure future compilers don't miscompile alloc.c.
4738         * alloc.c:
4739         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4740         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4741
4742 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4743
4744         * dumper.c: A little post-pdump-rename comment fixup.
4745
4746 2001-01-09  Jerry James  <james@eecs.ku.edu>
4747
4748         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4749
4750 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4751
4752         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4753         script:
4754         #!/bin/sh
4755         replace_symbol () {
4756           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4757         }
4758
4759         replace_symbol pdump_wire_lists pdump_weak_object_chains
4760         replace_symbol pdump_wire_list dump_add_weak_object_chain
4761
4762         replace_symbol pdump_wires pdump_root_objects
4763         replace_symbol pdump_wire dump_add_root_object
4764
4765         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4766         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4767
4768         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4769         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4770         replace_symbol dumpstructinfo pdump_root_struct_ptr
4771         replace_symbol dumpstruct dump_add_root_struct_ptr
4772
4773         replace_symbol dumpopaque dump_add_opaque
4774         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4775         replace_symbol dumpopaqueinfos pdump_opaques
4776         replace_symbol dumpopaqueinfo pdump_opaque
4777
4778         replace_symbol nb_structdump nb_root_struct_ptrs
4779         replace_symbol nb_opaquedump nb_opaques
4780
4781         replace_symbol align_table pdump_align_table
4782         replace_symbol dump_header pdump_header
4783
4784         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4785         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4786
4787
4788 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4789
4790         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4791         optimizing bytecount_to_charcount().
4792
4793 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4794
4795         * config.h.in:
4796         (HAVE_DLFCN_H): Removed.
4797         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4798
4799 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4800
4801         Portable dumper maintainability improvements.
4802         * alloc.c (staticpro):
4803         * alloc.c (staticpro_nodump):
4804         * alloc.c (garbage_collect_1):
4805         * alloc.c (reinit_alloc_once_early):
4806         * alloc.c (init_alloc_once_early):
4807         * alloc.c: Move dumper functions to alloc.c.
4808         * dumper.c (pdump_backtrace):
4809         * dumper.c (pdump_dump_structs):
4810         * dumper.c (pdump_dump_opaques):
4811         * dumper.c (pdump_dump_rtables):
4812         * dumper.c (pdump_dump_wired):
4813         * dumper.c (pdump):
4814         * dumper.c (pdump_load_check):
4815         * dumper.c (pdump_load_finish):
4816         * dumper.c (pdump_file_unmap):
4817         * dumper.c (pdump_file_get):
4818         * dumper.c (pdump_resource_free):
4819         * dumper.c (pdump_resource_get):
4820         * dumper.c (pdump_file_free):
4821         * dumper.c (pdump_file_try):
4822         * dumper.c (pdump_load):
4823         Remove fixed size limits on staticpro(), staticpro_nodump(),
4824         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4825         Remove custom code for dumping lrecord_implementations_table - use
4826         dumpopaque instead.
4827         Remove (most of the) custom code for dumping staticpros - dump it
4828         like any other dynarr.
4829
4830         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4831         * dumper.c: Moved functions from alloc.c.
4832         * alloc.c (dumpstruct): Moved to dumper.c.
4833         * alloc.c (dumpopaque): Likewise.
4834         * alloc.c (pdump_wire): Likewise.
4835         * alloc.c (pdump_wire_list): Likewise.
4836
4837         * lisp.h (Dynarr_sizeof): New.
4838         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4839         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4840         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4841
4842         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4843         * lisp.h (dumpopaque): ditto.
4844         * lisp.h (pdump_wire): ditto.
4845         * lisp.h (pdump_wire_list): ditto.
4846
4847 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4848
4849         * make-src-depend (PrintPatternDeps):
4850         Use `sort' to make output independent of perl version.
4851
4852 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4853
4854         Port to Netbsd 1.5.
4855         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4856         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4857
4858 2001-01-03  Didier Verna  <didier@xemacs.org>
4859
4860         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4861         that `focus_frame' is alive before thinking of calling
4862         `redisplay_redraw_cursor' on it.
4863
4864 2001-01-08  Martin Buchholz <martin@xemacs.org>
4865
4866         * XEmacs 21.2.40 is released.
4867
4868 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4869
4870         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4871
4872 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4873
4874         * alloc.c (dbg_valmask): Make const.
4875         * alloc.c (dbg_typemask): Make const.
4876         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4877         * alloc.c (dbg_valbits): Make const.
4878         * alloc.c (dbg_gctypebits): Make const.
4879
4880 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4881
4882         * redisplay-x.c (x_bevel_area):
4883         redisplay.h (struct rune):
4884         Typo fixes in comments.
4885
4886 2001-01-05  Andy Piper  <andy@xemacs.org>
4887
4888         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4889         adjustment.
4890
4891         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4892
4893 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4894
4895         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4896
4897         * mule-ccl.c (stack_idx_of_map_multiple):
4898         Non const global data must not be initialized!
4899         Found by MIYASHITA Hisashi.
4900
4901 2001-01-02  Andy Piper  <andy@xemacs.org>
4902
4903         * frame.c (change_frame_size): make sure frame size is always
4904         marked as changed.
4905
4906         * glyphs.c (image_instance_layout): minor code reuse.
4907
4908         * window.c (Fcurrent_window_configuration): revert previous
4909         change.
4910
4911 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4912
4913         * glyphs.h:
4914         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4915
4916 2000-12-31  Andy Piper  <andy@xemacs.org>
4917
4918         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4919         when widget gets unmapped.
4920
4921         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4922         function. Make sure widgets losing focus don't just drop it.
4923         (handle_focus_event_1): record the widget with focus.
4924
4925 2000-12-31  Andy Piper  <andy@xemacs.org>
4926
4927         * window.c (allocate_window): use
4928         make_image_instance_cache_hash_table.
4929         (make_dummy_parent): ditto.
4930         (Fset_window_configuration): ditto.
4931
4932         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4933
4934         * glyphs.c (process_image_string_instantiator): use
4935         INSTANTIATOR_TYPE.
4936         (get_image_instantiator_governing_domain): ditto.
4937         (normalize_image_instantiator): ditto.
4938         (instantiate_image_instantiator): ditto.
4939         (make_image_instance_1): ditto.
4940         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4941         (instantiator_eq_equal): new function for use with instance hash
4942         tables.
4943         (instantiator_eq_hash): ditto.
4944         (make_image_instance_cache_hash_table): create a suitable hash
4945         table for storing image instances.
4946
4947         * elhash.h (hash_table_weakness): new internal weakness type
4948         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4949         declare new functions.
4950
4951         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4952         another weakness type for glyphs.
4953         (make_standard_lisp_hash_table): new function split out from
4954         make_general_lisp_hash_table.
4955         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4956         (hash_table_instantiate): ditto.
4957         (Fmake_hash_table): ditto.
4958
4959 2000-12-31  Martin Buchholz <martin@xemacs.org>
4960
4961         * XEmacs 21.2.39 is released.
4962
4963 2000-12-29  Andy Piper  <andy@xemacs.org>
4964
4965         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4966
4967         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4968         the frame has changed so that we pick up geometry changes such as
4969         menubar visibility.
4970
4971 2000-12-28  Andy Piper  <andy@xemacs.org>
4972
4973         * lastfile.c (my_ebss): make a char array so we can pad the
4974         bss. Fixes cygwin unexec.
4975
4976         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4977
4978 2000-12-26  Andy Piper  <andy@xemacs.org>
4979
4980         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4981         comments and try and be more precise about a non-/SIGIO world.
4982         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4983         SIGIO.
4984
4985         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4986         we don't normalize to zero width or height.
4987
4988 2000-12-24  Andy Piper  <andy@xemacs.org>
4989
4990         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4991
4992 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4993
4994         * s/sco5.h: SCO 5 has pty support.
4995
4996 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4997
4998         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4999         input-method-xlib.c contains whole contents of input-method-xfs.c,
5000         so we can use input-method-xlib.c's code for USE_XFONTSET
5001         using #ifdefs.
5002         * input-method-xfs.c: removed.
5003
5004 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
5005
5006         * file-coding.h (enum coding_category_type): reorder enumerators to
5007         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
5008         (now one greater than largest real coding_category_type enumerator).
5009         * file-coding.c (coding_category_symbol, coding_category_by_priority,
5010         coding_category_system, fcd_descriptihon_1, decode_coding_category,
5011         Fcoding_category_list, Fset_coding_priority_list,
5012         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
5013         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
5014
5015 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5016
5017         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
5018         * redisplay-output.c (redisplay_output_window): Clear top of window
5019         when face is changed.
5020         * redisplay-x.c (x_redraw_exposed_window): Call
5021         redisplay_clear_top_of_window.
5022         * redisplay.h: Publish redisplay_clear_top_of_window.
5023
5024 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5025
5026         * buffer.c (Fkill_buffer): Map over all devices.
5027         * window.c (window_loop): Remove UNSHOW_BUFFER code.
5028         (list_windows): New function.
5029         (list_all_windows): Ditto.
5030         (Freplace_buffer_in_windows): Use them.
5031
5032 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5033
5034         * database.c (berkdb_subtype): Recognize new subtype `queue'.
5035         (Fopen_database): Use `db_create' instead of `db_open'.
5036         (syms_of_database): Initialize Qqueue.
5037
5038 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5039
5040         * buffer.c (common_init_complex_vars_of_buffer): Initialize
5041         buffer_local_face_property.
5042         * buffer.h (struct buffer): New member buffer_local_face_property.
5043         * window.c (Fset_window_buffer):  Mark window's face as changed
5044         when buffer has buffer local face.
5045         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
5046         * objects.c (color_after_change): Set buffer_local_face_property
5047         when locale of face specifier is buffer.
5048         * objects.c (font_after_change): Ditto.
5049         * objects.c (face_boolean_after_change): Ditto.
5050         * glyphs.c (image_after_change): Ditto.
5051
5052 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5053
5054         * nt.c (mswindows_fstat): Report file permissions, volume serial
5055         number, etc. Code adapted from FSF Emacs 20.7.
5056
5057 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5058
5059         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
5060         of stat when we don't have symbolic links, to make sure
5061         mswindows_stat is called on mswindows.
5062
5063 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5064
5065         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
5066
5067 2000-12-12  Martin Buchholz  <martin@xemacs.org>
5068
5069         * doprnt.c (emacs_doprnt_1): More printing fixes.
5070         Make printing of numbers compatible with libc and FSF Emacs.
5071         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
5072         Use the system printf to do most of the hard work of formatting,
5073         instead of doprnt_1().
5074         Calculate memory to allocate for format string.
5075         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
5076         (doprnt_1): Cleaner code and documentation.
5077
5078 2000-12-01  Jerry James  <james@eecs.ukans.edu>
5079
5080         * Makefile.in.in: Use the loop variable to install headers.
5081
5082 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5083
5084         * window.c (Fsplit_window): Don't invalidate face cache.
5085
5086 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5087
5088         * minibuf.c (Fall_completions): Undo the previous change
5089         which removed checking elements start with space.
5090
5091 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5092
5093         * mule-canna.c: Didier suppression.
5094
5095 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5096
5097         * mule-canna.c: rename static unsigned char buf[] to key_buffer
5098         (warning suppression).  Add English comment translations.
5099
5100 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5101
5102         * unexelfsgi.c (unexec): Better test for mmap failure.
5103
5104 2000-12-05  Martin Buchholz <martin@xemacs.org>
5105
5106         * XEmacs 21.2.38 is released.
5107
5108 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5109
5110         * redisplay.c (bar-cursor): Make a user variable.
5111
5112         * symsinit.h: Add init_postgresql_from_environment.
5113
5114 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5115
5116         * regex.c: Convert to clean C.
5117
5118 2000-12-05  Dan Holmsand  <dan@eyebee.com>
5119
5120         * realpath.c:
5121         Don't #include sysfile.h. Revert to duplicating PATH_MAX
5122         initialization.
5123         (sys_readlink): renamed to system_readlink to avoid conflict with
5124         the other sys_readlink.
5125
5126 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
5127
5128         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5129
5130 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
5131
5132         * postgresql.c (init_postgresql_from_environment): new function.
5133         (vars_of_postgresql): Move code initializing Lisp variables out and
5134         into init_postgresql_from_environment.
5135         emacs.c (main_1): Call init_postgresql_from_environment if and only
5136         if running a dumped XEmacs.
5137
5138 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5139
5140         * buffer.c: Make find-file-compare-truenames default to true on
5141         windows.
5142
5143         * realpath.c (win32_abs_start):
5144         (cygwin_readlink):
5145         (win32_readlink): New functions.
5146         (xrealpath): Return really real filenames on windows.
5147
5148         * fileio.c (Ffile_truename): Make file-truename work on windows.
5149
5150 2000-11-29  Didier Verna  <didier@xemacs.org>
5151
5152         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5153         * faces.c (update_face_cachel_data): use it.
5154         * faces.c (add_face_cachel): use it. Complete background pixmap
5155         frobbing in face cache if `update_face_cachel_data' has not done so.
5156
5157 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5158
5159         * search.c (string_match_1): Don't set last_thing_searched
5160         when search failed.
5161
5162 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5163
5164         * buffer.c: Include casetab.h
5165         (common_init_complex_vars_of_buffer): Use new case-table object.
5166         * buffer.h: Include casetab.h
5167         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5168         (DOWNCASE_TABLE_OF): Ditto.
5169         * bufslots.h: Remove char-tables and add case-table.
5170         * casetab.c: Include casetab.h
5171         (CASE_TABLE_P): Removed.
5172         (mark_case_table): New function.
5173         (allocate_case_table): New function.
5174         (Fcase_table_p): Use new case-table.
5175         (case_table_char): New function.
5176         (Fget_case_table): Ditto.
5177         (Fput_case_table): Ditto.
5178         (Fput_case_table_pair): Ditto.
5179         (Fcopy_case_table): Ditto.
5180         (Fcurrent_case_table): Return case-table.
5181         (Fstandard_case_table): Return case-table.
5182         (Fset_case_table): Fix doc-string.
5183         (set_case_table): Use case-table
5184         (syms_of_casetab): DEFSUBR new functions.
5185         (complex_vars_of_casetab): Set up standard case-table.
5186         * casetab.h: New file.
5187         * editfns.c: Include casetab.h
5188         (Fcompare_buffer_substrings): Use case-table.
5189         * inline.c: Include casetab.h
5190         * lisp.h: Remove bogus extern.
5191         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5192         * search.c: Include casetab.h
5193         (TRANSLATE_ASCII): Removed.
5194         (TRANSLATE): Unconditionally translate character.
5195         (looking_at_1): Use case-table.
5196         (string_match_1): Ditto.
5197         (fast_string_match): Ditto.
5198         (search_command): Ditto.
5199         (search_buffer): Separate boyer_moore.  Check whether
5200         boyer_moore is possible.
5201         (simple_search): New function.
5202         (boyer_moore): Separated from search_buffer. Translate char.
5203
5204 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5205
5206         * regex.c (RE_TR_ASCII): Removed.
5207         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5208         (PATFETCH): Call PATFETCH_RAW.
5209         (PATFETCH_RAW): Fetch Emchar.
5210         (PATUNFETCH): Decrement charptr.
5211         (GET_BUFFER_SPACE): Rename b to buf_end.
5212         (BUF_PUSH): Ditto.
5213         (BUF_PUSH_2): Ditto.
5214         (BUF_PUSH_3): Ditto.
5215         (EXTEND_BUFFER): Ditto.
5216         (SET_LIST_BIT): Ditto.
5217         (regex_compile): Ditto.  Translate non ASCII char.
5218         (compile_range): Ditto.
5219         (re_search_2): Ditto.
5220         (re_match_2_internal): Compare Emchar.
5221         (bcmp_translate): Ditto.
5222
5223 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5224
5225         * lisp.h (basic char/int typedefs):  comment improvement.
5226
5227 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5228
5229         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5230         unstomp inhibit_site_lisp.  Improve comments.
5231
5232 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5233
5234         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5235
5236 2000-11-28  Andy Piper  <andy@xemacs.org>
5237
5238         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5239         clipped display for windows in the gutter also.
5240         (redisplay_display_boxes_in_window_p): change semantics of return
5241         codes to be more intuitive.
5242
5243         * gutter.h: declare display_boxes_in_gutter_p.
5244
5245         * gutter.c (display_boxes_in_gutter_p): new function for
5246         redisplay.
5247
5248 2000-11-22  Andy Piper  <andy@xemacs.org>
5249
5250         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5251         autodetect domain.
5252
5253 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5254
5255         * callproc.c (Fold_call_process_internal):
5256         * gpm.c (Freceive_gpm_event):
5257         (tty_get_foreign_selection): Might be just warning supression.
5258         * fileio.c (Fwrite_region_internal):
5259         (Fset_visited_file_modtime):
5260         * keymap.c (event_matches_key_specifier_p):
5261         Initialize GCPROed variable.
5262
5263         * menubar-x.c (command_builder_find_menu_accelerator):
5264         Initialize before use.
5265
5266 2000-11-23  Andy Piper  <andy@xemacs.org>
5267
5268         * unexcw.c (unexec): make the resulting executable executable.
5269
5270 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5271
5272         * doc.c (get_doc_string):
5273         Use size_t, not int, for result of XSTRING_LENGTH.
5274
5275         * cmds.c (Fdelete_char):
5276         * cmds.c (Fpoint_at_eol):
5277         * cmds.c (Fself_insert_command):
5278         Use EMACS_INT, not int, for result of XINT.
5279         Someday, someone will want to insert more than 2**31 identical characters.
5280
5281         * cmds.c (Fdelete_char):
5282         * cmds.c (Fdelete_backward_char):
5283         * syntax.c (Fforward_word):
5284         * syntax.c (Fforward_comment):
5285         Make COUNT argument optional, for consistency with forward-char et al.
5286
5287 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5288
5289         * lisp.h:
5290         * print.c (long_to_string):
5291         Return a useful value: the pointer at end of data written.
5292
5293         * doprnt.c:
5294         Use `static const char * const' for constant strings.
5295         (union printf_arg): Delete `i', `ui' members.
5296         (get_doprnt_args):
5297         (emacs_doprnt_1):
5298         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5299         Do all printf-ing via the `l' specifier.
5300         Use EMACS_INT instead of int.
5301         Optimize.
5302
5303 2000-11-20  Didier Verna  <didier@xemacs.org>
5304
5305         * faces.c (update_face_cachel_data): don't frob the background
5306         pixmap when the window is being created. The face is needed but
5307         does not exist yet.
5308
5309 2000-11-20  Andy Piper  <andy@xemacs.org>
5310
5311         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5312         messing with a debug environment.
5313
5314 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5315
5316         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5317
5318 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5319
5320         * casetab.c (Fcase_table_p): Fix compile error and crash.
5321
5322 2000-11-18  Philip Aston  <philipa@mail.com>
5323
5324         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5325
5326 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5327
5328         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5329         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5330
5331 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5332
5333         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5334         * unexelf.c: Use HAVE_ELF_H.
5335         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5336         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5337         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5338         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5339         for testing.
5340         So this is an unexelfsgi.c from a different line of development.
5341
5342 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5343
5344         * regex.c (RE_TR_ASCII): New function.
5345         (RE_TRANSLATE): Call it.
5346
5347 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5348
5349         * buffer.h (TRT_TABLE_OF): Remove assert.
5350         (IN_TRT_TABLE_DOMAIN): Removed.
5351
5352 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5353
5354         * free-hook.c (log_gcpro):
5355         (show_gcprohist): Add support for GCPRO5.
5356
5357 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5358
5359         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5360
5361 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5362
5363         * symeval.h: Declare flush_all_buffer_local_cache.
5364
5365         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5366         (flush_buffer_local_cache): Added.
5367         (flush_all_buffer_local_cache): Added.
5368
5369         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5370
5371         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5372         (pdump_dump_data): Ditto.
5373         (pdump_reloc_one): Ditto.
5374         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5375         before dumping.
5376
5377
5378 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5379
5380         * buffer.c: Remove if 0'ed entry.
5381         * buffer.h: Rewrite TRT to use char-table.
5382         * bufslots.h: Remove mirror tables.
5383         * casetab.c: Remove mirror tables.
5384         (CASE_TABLE_P): New macro.
5385         (Fcase_table_p): Element of a case table is string or char-table.
5386         (make_mirror_trt_table): Removed.
5387         (set_case_table): Setup char-table from strings for backward
5388         compatibility.
5389         * dired.c (Fdirectory_files):
5390         * dired-msw.c: (mswindows_get_files):
5391         * lisp.h: Change prototype of re_pattern_buffer.
5392         * regex.c: (RE_TRANSLATE): New macro.
5393         (TRANSLATE_P): Ditto.
5394         Change translate to type RE_TRANSLATE_TYPE.
5395         * regex.h: Define RE_TRANSLATE_TYPE
5396         * search.c (TRANSLATE): New macro.
5397         (TRANSLATE_ASCII): New macro.
5398         Translate table is changed to Lisp_Object.
5399         (signal_failure): Inhibit return.
5400
5401 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5402
5403         * device-msw.c:
5404         * eldap.c:
5405         * event-Xt.c:
5406         * event-stream.c:
5407         * print.c:
5408         Do UNGCPRO before return.
5409
5410 2000-11-14  Martin Buchholz <martin@xemacs.org>
5411
5412         * XEmacs 21.2.37 is released.
5413
5414 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5415
5416         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5417         Add comments about discarded return value.
5418
5419 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5420
5421         * callint.c:
5422         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5423
5424 2000-10-27  Andy Piper  <andy@xemacs.org>
5425
5426         * gutter.c (Fset_default_gutter_position): default left and right
5427         gutters to visible.
5428         (calculate_gutter_size): calculate resonable heuristic for left
5429         and right gutter sizes.
5430         (specifier_vars_of_gutter): change left and right gutter sizes to
5431         autodetect.
5432         (calculate_gutter_size_from_display_lines): new function.
5433         (output_gutter): check for resizing on left and right gutters.
5434         (clear_gutter): don't special case top and left gutters.
5435         (specifier_vars_of_gutter): use new signature for
5436         set_specifier_caching.
5437
5438         * glyphs-x.c (x_redisplay_widget): spelling fix.
5439         * glyphs.c (specifier_vars_of_glyphs):
5440         * menubar.c (specifier_vars_of_menubar):
5441         * redisplay.c (specifier_vars_of_redisplay):
5442         * toolbar.c (specifier_vars_of_toolbar):
5443         * window.c (specifier_vars_of_window):
5444         * scrollbar.c (specifier_vars_of_scrollbar):
5445         (complex_vars_of_scrollbar): use new signature for
5446         set_specifier_caching.
5447
5448         * specifier.c (set_specifier_caching): include recompute flag.
5449         (recompute_one_cached_specifier_in_window): always recompute if
5450         flag set.
5451         (recompute_one_cached_specifier_in_frame): ditto.
5452
5453         * specifier.h (struct specifier_caching): add recompute flag.
5454
5455 2000-10-24  Andy Piper  <andy@xemacs.org>
5456
5457         * unexcw.c (copy_executable_and_dump_data_section): add new
5458         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5459         5.0 happy.
5460
5461 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5462
5463         * console-x.h (x_device): New member modifier_release_time.
5464         * event-Xt.c (x_handle_sticky_modifiers):
5465         Bound interval modifier keys are sticky.
5466         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5467         * events.h: extern it.
5468
5469 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5470
5471         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5472
5473 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5474
5475         * event-stream.c (execute_command_event): Preserve current_events
5476         and the like when event is misc-user-event.
5477         Inhibit quit during the call to maybe_echo_keys.
5478
5479 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5480
5481         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5482         symlink when buffer is killed.
5483         (inhibit_clash_detection): New variable.
5484
5485 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5486
5487         * console.c (Fset_input_method): Trigger redisplay on tty.
5488
5489 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5490
5491         * process.c (Fprocess_status): Revert to previous behavior:
5492         (process-status "nosuchprocess") ==> nil
5493
5494 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5495
5496         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5497         Work around another GCC 2.95.2 optimizer bug.
5498
5499 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5500
5501         * process.c (Fget_process): Use LIST_LOOP_2.
5502         (kill_buffer_processes): Use LIST_LOOP_2.
5503
5504         * minibuf.c (Fall_completions):
5505         Delete old non-functional code for FSF fourth argument.
5506
5507         * frame.c (frame_matches_frame_spec):
5508         Renamed from `frame_matches_frametype'.  Update all callers.
5509         (device_matches_device_spec):
5510         Renamed from 'device_matches_console_spec'.  Update all callers.
5511
5512         * doc.c (Fsubstitute_command_keys):
5513         Remove buffer overflow crash.  Small code cleanups.
5514
5515         * casetab.c (check_case_table): Simpler code.
5516
5517         * window.c (Freplace_buffer_in_windows):
5518         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5519         (and similar implementation) as Fdelete_windows_on.
5520         Update all callers.
5521
5522         * alloc.c (Fmake_list):
5523         * alloc.c (make_vector):
5524         * alloc.c (Fmake_vector):
5525         * alloc.c (make_bit_vector):
5526         * alloc.c (Fmake_bit_vector):
5527         * alloc.c (Fbit_vector):
5528         * alloc.c (Fmake_string):
5529         * alloc.c (Fpurecopy):
5530         * alloc.c (Fmemory_limit):
5531         * buffer.c:
5532         * buffer.c (Fget_buffer):
5533         * buffer.c (Fkill_buffer):
5534         * buffer.c (complex_vars_of_buffer):
5535         * bytecode.c (Fcompiled_function_stack_depth):
5536         * callint.c (Fprefix_numeric_value):
5537         * event-stream.c:
5538         * event-stream.c (Fread_key_sequence):
5539         * casetab.c:
5540         * casetab.c (Fcase_table_p):
5541         * casetab.c (check_case_table):
5542         * casetab.c (Fset_case_table):
5543         * casetab.c (Fset_standard_case_table):
5544         * chartab.c:
5545         * chartab.c (Fchar_table_type):
5546         * chartab.c (Freset_char_table):
5547         * chartab.c (Fget_char_table):
5548         * chartab.c (Fget_range_char_table):
5549         * chartab.c (Fput_char_table):
5550         * chartab.c (Fmap_char_table):
5551         * chartab.c (Fcategory_table_p):
5552         * chartab.c (Fcheck_category_at):
5553         * chartab.c (Fchar_in_category_p):
5554         * chartab.c (Fcategory_table):
5555         * chartab.c (Fcopy_category_table):
5556         * chartab.c (Fset_category_table):
5557         * chartab.c (Fcategory_designator_p):
5558         * chartab.c (Fcategory_table_value_p):
5559         * cmds.c (Fdelete_char):
5560         * cmds.c (Fdelete_backward_char):
5561         * cmds.c (Fself_insert_command):
5562         * cmds.c (Fself_insert_internal):
5563         * console.c (Fvalid_console_type_p):
5564         * console.c (Fcdfw_console):
5565         * console.c (Fconsole_type):
5566         * console.c (Fconsole_name):
5567         * console.c (Fconsole_device_list):
5568         * console.c (Fconsole_on_window_system_p):
5569         * data.c:
5570         * data.c (Feq):
5571         * data.c (Fold_eq):
5572         * data.c (Fsubr_interactive):
5573         * data.c (Fchar_to_int):
5574         * data.c (Fint_to_char):
5575         * data.c (Fsetcar):
5576         * data.c (Fsetcdr):
5577         * data.c (Fnumber_to_string):
5578         * data.c (Fstring_to_number):
5579         * data.c (Frem):
5580         * database.c (mark_database):
5581         * database.c (finalize_database):
5582         * database.c (Fdatabase_live_p):
5583         * database.c (Fdatabasep):
5584         * device-x.c (Fx_get_resource):
5585         * device.c (Fdfw_device):
5586         * dired.c:
5587         * dired.c (Ffile_name_completion):
5588         * dired.c (Ffile_name_all_completions):
5589         * dired.c (Fuser_name_completion):
5590         * dired.c (Fuser_name_completion_1):
5591         * dired.c (Fuser_name_all_completions):
5592         * doc.c (Fdocumentation):
5593         * doc.c (Fdocumentation_property):
5594         * doc.c (Fsubstitute_command_keys):
5595         * editfns.c:
5596         * editfns.c (Fchar_to_string):
5597         * editfns.c (Fstring_to_char):
5598         * editfns.c (Ftemp_directory):
5599         * editfns.c (Finsert_char):
5600         * editfns.c (Fbuffer_substring_no_properties):
5601         * editfns.c (Fnarrow_to_region):
5602         * editfns.c (Fchar_equal):
5603         * editfns.c (Fchar_Equal):
5604         * editfns.c (Ftranspose_regions):
5605         * emacs.c (Fdump_emacs):
5606         * eval.c (Fthrow):
5607         * eval.c (Fcommand_execute):
5608         * eval.c (Fautoload):
5609         * eval.c (Fbacktrace):
5610         * eval.c (Fbacktrace_frame):
5611         * events.c:
5612         * events.c (Fcopy_event):
5613         * events.c (Fcharacter_to_event):
5614         * events.c (Fevent_button):
5615         * events.c (Fevent_process):
5616         * extents.c:
5617         * extents.c (Fnext_extent_change):
5618         * extents.c (Fextent_property):
5619         * faces.c (Ffacep):
5620         * faces.c (Fmake_face):
5621         * file-coding.c:
5622         * file-coding.c (Fencode_shift_jis_char):
5623         * file-coding.c (Fencode_big5_char):
5624         * fileio.c (Ffile_name_directory):
5625         * fileio.c (Ffile_name_nondirectory):
5626         * fileio.c (Ffile_name_as_directory):
5627         * fileio.c (Fdirectory_file_name):
5628         * fileio.c (Ffile_truename):
5629         * fileio.c (Fsubstitute_in_file_name):
5630         * fileio.c (Ffile_modes):
5631         * fileio.c (Fset_file_modes):
5632         * fileio.c (Fset_default_file_modes):
5633         * fileio.c (Fverify_visited_file_modtime):
5634         * floatfns.c (Facos):
5635         * floatfns.c (Fasin):
5636         * floatfns.c (Fatan):
5637         * floatfns.c (Fcos):
5638         * floatfns.c (Fsin):
5639         * floatfns.c (Ftan):
5640         * floatfns.c (Fbessel_j0):
5641         * floatfns.c (Fbessel_j1):
5642         * floatfns.c (Fbessel_jn):
5643         * floatfns.c (Fbessel_y0):
5644         * floatfns.c (Fbessel_y1):
5645         * floatfns.c (Fbessel_yn):
5646         * floatfns.c (Ferf):
5647         * floatfns.c (Ferfc):
5648         * floatfns.c (Flog_gamma):
5649         * floatfns.c (Fexp):
5650         * floatfns.c (Fexpt):
5651         * floatfns.c (Flog):
5652         * floatfns.c (Flog10):
5653         * floatfns.c (Fsqrt):
5654         * floatfns.c (Fcube_root):
5655         * floatfns.c (Facosh):
5656         * floatfns.c (Fasinh):
5657         * floatfns.c (Fatanh):
5658         * floatfns.c (Fcosh):
5659         * floatfns.c (Fsinh):
5660         * floatfns.c (Ftanh):
5661         * floatfns.c (Fabs):
5662         * floatfns.c (Ffloat):
5663         * floatfns.c (Flogb):
5664         * floatfns.c (Fceiling):
5665         * floatfns.c (Ffloor):
5666         * floatfns.c (Fround):
5667         * floatfns.c (Ftruncate):
5668         * floatfns.c (Ffceiling):
5669         * floatfns.c (Fffloor):
5670         * floatfns.c (Ffround):
5671         * floatfns.c (Fftruncate):
5672         * fns.c (Fstring_equal):
5673         * fns.c (Fstring_lessp):
5674         * fns.c (concat2):
5675         * fns.c (concat3):
5676         * fns.c (vconcat2):
5677         * fns.c (vconcat3):
5678         * fns.c (Fsubstring):
5679         * fns.c (Fassoc):
5680         * fns.c (Fold_assoc):
5681         * fns.c (assoc_no_quit):
5682         * fns.c (Fassq):
5683         * fns.c (Fold_assq):
5684         * fns.c (assq_no_quit):
5685         * fns.c (Frassoc):
5686         * fns.c (Fold_rassoc):
5687         * fns.c (Frassq):
5688         * fns.c (Fold_rassq):
5689         * fns.c (rassq_no_quit):
5690         * fns.c (Fremassoc):
5691         * fns.c (remassoc_no_quit):
5692         * fns.c (Fremassq):
5693         * fns.c (remassq_no_quit):
5694         * fns.c (Fremrassoc):
5695         * fns.c (Fremrassq):
5696         * fns.c (remrassq_no_quit):
5697         * fns.c (Fsort):
5698         * fns.c (Fplist_get):
5699         * fns.c (Fplist_put):
5700         * fns.c (Fplist_remprop):
5701         * fns.c (Fplist_member):
5702         * fns.c (Flax_plist_get):
5703         * fns.c (Flax_plist_put):
5704         * fns.c (Flax_plist_remprop):
5705         * fns.c (Flax_plist_member):
5706         * fns.c (Fequal):
5707         * fns.c (Fold_equal):
5708         * fns.c (Frequire):
5709         * fns.c (Fbase64_encode_region):
5710         * fns.c (Fbase64_encode_string):
5711         * fns.c (Fbase64_decode_region):
5712         * frame.c:
5713         * frame.c (frame_matches_frame_spec):
5714         * frame.c (device_matches_device_spec):
5715         * frame.c (next_frame):
5716         * frame.c (previous_frame):
5717         * frame.c (Fnext_frame):
5718         * frame.c (Fprevious_frame):
5719         * frame.c (Fframe_property):
5720         * frame.c (Fset_frame_height):
5721         * frame.c (Fset_frame_size):
5722         * frame.h:
5723         * glyphs.c:
5724         * glyphs.c (if):
5725         * glyphs.c (decode_error_behavior_flag):
5726         * glyphs.c (Fmake_image_instance):
5727         * indent.c (Findent_to):
5728         * intl.c (Fignore_defer_gettext):
5729         * keymap.c (Fkeymapp):
5730         * keymap.c (Flookup_key):
5731         * lread.c:
5732         * lread.c (Fload_internal):
5733         * lread.c (Feval_buffer):
5734         * lread.c (Feval_region):
5735         * macros.c (Fexecute_kbd_macro):
5736         * marker.c (set_marker_internal):
5737         * marker.c (Fset_marker):
5738         * marker.c (set_marker_restricted):
5739         * marker.c (Fcopy_marker):
5740         * marker.c (noseeum_copy_marker):
5741         * menubar.c:
5742         * menubar.c (Fpopup_menu):
5743         * minibuf.c:
5744         * mule-charset.c (Fcharset_name):
5745         * mule-charset.c (Fchar_charset):
5746         * mule-charset.c (Fchar_octet):
5747         * mule-charset.c (Fsplit_char):
5748         * mule-wnnfns.c (Fwnn_open):
5749         * mule-wnnfns.c (Fwnn_dict_comment):
5750         * mule-wnnfns.c (Fwnn_quit_henkan):
5751         * mule-wnnfns.c (Fwnn_word_toroku):
5752         * mule-wnnfns.c (Fwnn_word_sakujo):
5753         * mule-wnnfns.c (Fwnn_word_use):
5754         * mule-wnnfns.c (Fwnn_hindo_set):
5755         * objects.c:
5756         * objects.c (Fmake_color_instance):
5757         * objects.c (Fmake_font_instance):
5758         * print.c (Fwrite_char):
5759         * process.c:
5760         * process.c (mark_process):
5761         * process.c (print_process):
5762         * process.c (get_process_from_usid):
5763         * process.c (Fprocessp):
5764         * process.c (Fprocess_live_p):
5765         * process.c (Fget_process):
5766         * process.c (Fget_buffer_process):
5767         * process.c (get_process):
5768         * process.c (Fprocess_id):
5769         * process.c (Fprocess_name):
5770         * process.c (Fprocess_command):
5771         * process.c (init_process_io_handles):
5772         * process.c (start_process_unwind):
5773         * process.c (Fstart_process_internal):
5774         * process.c (Fopen_multicast_group_internal):
5775         * process.c (Fset_process_window_size):
5776         * process.c (read_process_output):
5777         * process.c (send_process):
5778         * process.c (Fprocess_tty_name):
5779         * process.c (Fset_process_buffer):
5780         * process.c (Fprocess_buffer):
5781         * process.c (Fprocess_mark):
5782         * process.c (set_process_filter):
5783         * process.c (Fset_process_filter):
5784         * process.c (Fprocess_filter):
5785         * process.c (Fprocess_send_region):
5786         * process.c (Fprocess_send_string):
5787         * process.c (exec_sentinel):
5788         * process.c (Fset_process_sentinel):
5789         * process.c (Fprocess_sentinel):
5790         * process.c (status_notify):
5791         * process.c (Fprocess_status):
5792         * process.c (Fprocess_exit_status):
5793         * process.c (process_send_signal):
5794         * process.c (Fprocess_send_eof):
5795         * process.c (deactivate_process):
5796         * process.c (remove_process):
5797         * process.c (Fdelete_process):
5798         * process.c (kill_buffer_processes):
5799         * process.c (Fprocess_kill_without_query):
5800         * process.c (Fprocess_kill_without_query_p):
5801         * rangetab.c:
5802         * rangetab.c (Fget_range_table):
5803         * rangetab.c (Fput_range_table):
5804         * rangetab.c (Fremove_range_table):
5805         * rangetab.c (Fclear_range_table):
5806         * search.c:
5807         * search.c (Fskip_chars_forward):
5808         * search.c (Fskip_chars_backward):
5809         * search.c (Fskip_syntax_forward):
5810         * search.c (Fskip_syntax_backward):
5811         * search.c (search_command):
5812         * search.c (Freplace_match):
5813         * search.c (Fregexp_quote):
5814         * select.c (Fown_selection_internal):
5815         * select.c (Fselection_owner_p):
5816         * select.c (Fselection_exists_p):
5817         * select.c (Fget_selection_internal):
5818         * specifier.c:
5819         * symbols.c:
5820         * symbols.c (Fintern):
5821         * symbols.c (Fintern_soft):
5822         * symbols.c (Funintern):
5823         * symbols.c (Fapropos_internal):
5824         * symbols.c (Fset_default):
5825         * syntax.c:
5826         * syntax.c (Fsyntax_table_p):
5827         * syntax.c (Fcopy_syntax_table):
5828         * syntax.c (Fset_syntax_table):
5829         * syntax.c (Fchar_syntax):
5830         * syntax.c (syntax_match):
5831         * syntax.c (Fmatching_paren):
5832         * syntax.c (Fforward_word):
5833         * syntax.c (scan_lists):
5834         * syntax.c (Fscan_lists):
5835         * syntax.c (Fscan_sexps):
5836         * syntax.c (Fparse_partial_sexp):
5837         * toolbar.c (Fcheck_toolbar_button_syntax):
5838         * tooltalk.doc:
5839         * window.c:
5840         * window.c (Fwindowp):
5841         * window.c (Fwindow_live_p):
5842         * window.c (Fwindow_point):
5843         * window.c (Fdelete_window):
5844         * window.c (Fnext_window):
5845         * window.c (Fprevious_window):
5846         * window.c (Fother_window):
5847         * window.c (window_loop):
5848         * window.c (Fget_lru_window):
5849         * window.c (Fsplit_window):
5850         * window.c (Fenlarge_window):
5851         * window.c (Fenlarge_window_pixels):
5852         * window.c (Fshrink_window):
5853         * window.c (Fshrink_window_pixels):
5854         * window.c (change_window_height):
5855         * window.c (Fwindow_configuration_p):
5856         * window.c (Fcurrent_window_configuration):
5857         * window.h:
5858         * casefiddle.c (casify_object):
5859         * casefiddle.c (Fupcase):
5860         * casefiddle.c (Fdowncase):
5861         * casefiddle.c (Fcapitalize):
5862         * casefiddle.c (Fupcase_initials):
5863         * casefiddle.c (casify_region_internal):
5864         * casefiddle.c (casify_region):
5865         * casefiddle.c (Fupcase_region):
5866         * casefiddle.c (Fdowncase_region):
5867         * casefiddle.c (Fcapitalize_region):
5868         * casefiddle.c (Fupcase_initials_region):
5869         * casefiddle.c (Fupcase_word):
5870         * casefiddle.c (Fdowncase_word):
5871         * casefiddle.c (Fcapitalize_word):
5872         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5873         Replace 0 with '\0' when working with bytes.
5874         Replace initial "(" with "\(" in docstrings.
5875
5876 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5877
5878         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5879
5880         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5881
5882 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5883
5884         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5885
5886 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5887
5888         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5889         correctly.
5890
5891 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5892
5893         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5894         (inhibit_auto_save_session): New variable.
5895         (vars_of_fileio): Declare and initialize them.
5896         * fileio.c (Fdo_auto_save): Don't create session file if
5897         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5898
5899 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5900
5901         * sgiplay.c (play_internal): C++ compilability.
5902         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5903         * callproc.c (Fold_call_process_internal):
5904         Remove unused vars `env', `first'.
5905         * scrollbar.c (update_scrollbar_instance):
5906         #### unused var `current_window'.
5907         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5908         etc. within #ifdef NOT_YET.
5909         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5910         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5911         * specifier.c (specifier_instance):
5912         #### unused var `tag'.
5913         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5914
5915 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5916
5917         * fns.c (Fbutlast):
5918         * fns.c (list_sort):
5919         * fns.c (Ffillarray):
5920         * fns.c (bytecode_nconc2):
5921         * fns.c (Fnconc):
5922         * fns.c (mapcar1):
5923         * fns.c (Fmapconcat):
5924         Be pedantically 64-bit correct.  For the time when someone will
5925         want to have a list with length > 2**32.
5926
5927         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5928         Work around MIPSpro compiler bug.
5929
5930         * process-unix.c (unix_kill_child_process): Add snarky comment.
5931         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5932
5933         * config.h.in: Oops, _getpt ==> _getpty
5934
5935 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5936
5937         * config.h.in:
5938         * regex.c:
5939         Use void*, not char*, as return type of alloca().
5940
5941         * alloc.c (free_marker): Side effect inside assert expression!
5942
5943 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5944
5945         * mule-charset.c (Fset_charset_ccl_program): To check
5946         if the given ccl program is valid, use setup_ccl_program()
5947         instead of CHECK_VECTOR().
5948         (Fmake_charset): Likewise.
5949
5950 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5951
5952         * faces.c (get_extent_fragment_face_cache_index):
5953         Fix cachel.merged_faces memory leak.
5954
5955 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5956
5957         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5958         Reset MSB of octets obtained by DECODE_SJIS
5959         because of the incompatibility with Emacs.
5960         (ccl_driver)<CCL_ENCODE_SJIS>:
5961         Set MSB of octets before passing them to
5962         ENCODE_SJIS because of the incompatibility
5963         with Emacs.
5964
5965 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5966
5967         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5968         (DECLARE_LRECORD): Undo the last change.
5969         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5970
5971 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5972
5973         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5974         the implementation to lrecord_implementations_table.
5975
5976 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5977
5978         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5979         initial value of `lrecord_type_##c_name' and
5980         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5981         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5982         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5983         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5984         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5985
5986 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5987
5988         * miscplay.c (sndcnv8S_2mono):
5989         (sndcnv2monounsigned):
5990         (sndcnvULaw_2linear):
5991         (sndcnv16swap):
5992         Remove implementation-defined behavior.
5993
5994 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5995
5996         * input-method-xlib.c: Warning suppression.
5997
5998 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5999
6000         * mule-ccl.c: Sync up with Emacs 21.0.90.
6001         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
6002         Do nothing.
6003         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
6004         Likewise.
6005         (ccl_driver[WriteMultibyteChar2]): Bug fix.
6006         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
6007         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
6008         leading char belongs to official 2-dimensional charset.
6009         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
6010         write the given character as is.  Otherwise,
6011         if it is a multibyte char, convert it by
6012         non_ascii_set_charptr_emchar, then write it.
6013         (CCL_WRITE_STRING): Likewise.
6014         (ccl_get_compiled_code): New function.
6015         (setup_ccl_program): When ccl_prog is invalid,
6016         return -1.
6017         (Fregister_code_conversion_map): New function.
6018         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
6019
6020         * mule-ccl.h: Sync up with Emacs 21.0.90.
6021         (Fregister_ccl_program): export it.
6022
6023         * redisplay-msw.c (separate_textual_runs):
6024         If ccl program is not valid, don't do ccl conversion.
6025
6026         * redisplay-x.c (separate_textual_runs): Ditto.
6027
6028         * file-coding.c (Fmake_coding_system):
6029         When type is ccl and value is vector, register it
6030         with a proper symbol.  And checks whether the
6031         given ccl program is valid.
6032         (mule_decode): When calling ccl_driver, if src indicates
6033         NULL pointer, set an empty string instead.
6034         (mule_encode): Likewise.
6035
6036 2000-10-11  Martin Buchholz  <martin@xemacs.org>
6037
6038         The following large batch of changes gets us back to a state of
6039         C++ compilability.  Extbyte is now a char, which means that
6040         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
6041
6042         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
6043
6044         * sound.c (Fplay_sound): Type correctness.
6045
6046         * select-x.c (hack_motif_clipboard_selection): Type correctness.
6047         (x_get_window_property): Type correctness.
6048         (receive_incremental_selection): unsigned char ==> Extbyte
6049         (selection_data_to_lisp_data): unsigned char ==> Extbyte
6050         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
6051         (Fx_store_cutbuffer_internal): Type correctness.
6052
6053         * process-unix.c (try_to_initialize_subtty): Type correctness.
6054
6055         * objects-x.c (x_print_color_instance): Type correctness.
6056         (x_print_font_instance): Type correctness.
6057         (x_list_fonts): SExtbyte ==> Extbyte.
6058         (valid_x_font_name_p): SExtbyte ==> Extbyte.
6059         (x_find_charset_font): SExtbyte ==> Extbyte.
6060         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
6061         (truename_via_XListFonts): SExtbyte ==> Extbyte.
6062         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
6063         Use bufbyte_strcmp.
6064
6065         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
6066         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
6067         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
6068         (BYTE_C0_P): Use bit ops for char-signedness safety.
6069         (BYTE_C1_P): Use bit ops for char-signedness safety.
6070         (CHARSET_BY_LEADING_BYTE):
6071         (CHARSET_BY_ATTRIBUTES):
6072         Always use inline function.
6073         Use type_checking_assert.
6074         Hide chlook.
6075
6076         * mule-charset.c (non_ascii_charptr_copy_char):
6077         Modify to work with both ASCII and non-ASCII characters.
6078         Improve docs and variable names.
6079         Replace over-clever fall-through switch with a simple loop.
6080         (Lstream_get_emchar_1):
6081         Replace over-clever fall-through switch with a simple loop.
6082
6083         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6084         Warning suppression.
6085
6086         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6087         the return value of Lstream_getc, which could be EOF as well.
6088
6089         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6090
6091         * lisp.h: Make Extbyte a char, not unsigned char, so that external
6092         APIs can be used on Extbytes without casts.  Risky!
6093         (SExtbyte): Remove.
6094         (UExtbyte): Remove.
6095
6096         * input-method-xlib.c (XIM_init_device):
6097         Use Xlib.h instead of IntrinsicP.h.
6098         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6099         which will break in X11R7.
6100         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6101         to call XRegisterIMInstantiateCallback with correct types.
6102
6103         * gui-x.c (button_item_to_widget_value): Type correctness.
6104
6105         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
6106
6107         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6108         (xbm_instantiate_1): Type correctness.
6109         (BUILD_GLYPH_INST):  Type correctness.
6110
6111         * fileio.c (Fsubstitute_in_file_name): Type correctness.
6112
6113         * file-coding.c:
6114         (decode_coding_sjis):
6115         (decode_coding_big5):
6116         (decode_coding_ucs4):
6117         (decode_coding_utf8):
6118         (decode_coding_iso2022):
6119         (decode_coding_no_conversion):
6120         Make all decoding functions take an Extbyte * arg.
6121         (encode_coding_sjis):
6122         (encode_coding_big5):
6123         (encode_coding_ucs4):
6124         (encode_coding_utf8):
6125         (encode_coding_iso2022):
6126         (encode_coding_no_conversion):
6127         Make all encoding functions take a Bufbyte * arg.
6128         Use size_t instead of unsigned int for memory sizes.
6129         Only cast to unsigned char whenever dereferencing Extbyte *.
6130
6131         * doc.c (unparesseuxify_doc_string): Type correctness.
6132
6133         * console-x.c (split_up_display_spec):
6134         Rewrite without using details of internal string representation.
6135         (x_semi_canonicalize_device_connection): Type correctness.
6136
6137         * config.h.in:
6138         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6139         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6140         (HAVE_XFREE386): Removed.
6141
6142         * buffer.h (DEC_CHARPTR): `const' correctness.
6143         (bufbyte_strcmp): New.
6144         (bufbyte_memcmp): New.
6145
6146         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6147
6148         * buffer.h (XCHAR_OR_CHAR_INT):
6149         Always use inline function.
6150         Remove redundant type checking assert() - XINT will abort quite nicely.
6151
6152 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6153
6154         * search.c (Freplace_match): Set newtext to an empty string.
6155
6156 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6157
6158         * s/decosf1-3.h: Remove #include of stropts.h
6159         * s/ptx.h: Remove #include of stropts.h
6160         * s/usg5-4.h: Remove #include of stropts.h
6161         * sysproc.h:
6162         * config.h.in:
6163         Use stropts.h, not sys/stropts.h.
6164         Use strtio.h, not sys/strtio.h.
6165
6166 2000-10-04  Martin Buchholz <martin@xemacs.org>
6167
6168         * XEmacs 21.2.36 is released.
6169
6170 2000-09-21  Andy Piper  <andy@xemacs.org>
6171
6172         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6173         changes still involve copying the widget tree.
6174         (update_widget_face): make sure a change is register in the widget
6175         tree. Call update_tab_widget_face appropriately.
6176         (update_tab_widget_face): ditto.
6177         (x_tab_control_redisplay): make sure non-structural changes still
6178         involve copying the widget tree.
6179
6180 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6181
6182         * lread.c (locate_file): Check the path element is non-nil.
6183
6184 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6185
6186         * lisp.h: Warning suppression for SCO compilers.
6187
6188         * redisplay-tty.c (reset_tty_modes): Fix crash.
6189         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6190
6191 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6192
6193         Big signal/process handling overhaul.  Bugs fixed:
6194         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6195         M-x comint-kill-subjob should work for both values nil and t of
6196         process-connection-type. It was broken on most platforms.
6197         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6198         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6199         * process-unix.c: Signal/Process handling overhaul.
6200         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6201         (allocate_pty): Use all available modern methods of allocating
6202         ptys, falling back to old style BSD allocation as a last resort.
6203         Use allegedly more secure Unix98 pty allocation by default.
6204         (allocate_pty_the_old_fashioned_way): New. the last resort.
6205         (unix_create_process): Push ptem, ldterm, ttcompat where
6206         available.  Autoconfiscate.
6207         (try_to_initialize_subtty): New.
6208         (unix_kill_child_process): Proper signal handling for ptys on most
6209         platforms, using special knowledge of AIX, BSD, etc...
6210         (unix_create_process): Always disconnect_controlling_terminal() for
6211         subprocesses, whether using ptys or not.
6212         * process.h: Remove old getpt-dependent PTY code.
6213         * process.c (Fprocess_send_signal): New, obvious generic function.
6214         (decode_signal): New.
6215         (Finterrupt_process):
6216         (Fkill_process):
6217         (Fquit_process):
6218         (Fstop_process):
6219         (Fcontinue_process):
6220         (Fsignal_process): Use decode_signal.
6221         (process_send_signal):
6222         Many docstring corrections.
6223         Allow any signal to be sent to a process object.
6224         * config.h.in: Add symbols for big signal/process overhaul.
6225         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6226         * sysproc.h: Include process-related headers, where available:
6227         sys/stropts.h sys/strtio.h pty.h libutil.h
6228         * s/irix4-0.h:
6229         * s/irix5-0.h:
6230         * s/cygwin32.h:
6231         * s/gnu.h:
6232         * s/linux.h:
6233         * s/hpux.h:
6234         * s/aix3-1.h:
6235         Remove old S&M pty stuff.
6236         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6237         * systty.h: Simplify cpp hackery, improve comments.
6238         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6239
6240         * editfns.c (Fformat_time_string):
6241         Be a little more paranoid with the return value of ctime.
6242
6243         * fileio.c (check_executable):
6244         (check_writable):
6245         Use symbolic constants X_OK, W_OK.
6246
6247         * console-x.c (split_up_display_spec): Fix a warning.
6248
6249 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6250
6251         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6252         * ntproc.c (sys_spawnve): make_string ==> build_string
6253         Small clarity improvements.
6254
6255 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6256
6257         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6258
6259         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6260
6261         * config.h.in (HAVE_STRCASECMP): Remove.
6262
6263 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6264
6265         * redisplay-output.c (redisplay_output_pixmap):
6266         Cleaner and possibly more 64-bit correct code.
6267
6268 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6269
6270         * dumper.c (pdump_load_finish): move restoration of
6271         `noninteractive1' to emacs.c (main_1).
6272         * emacs.c (main_1): protect LISP-visible command-line flags
6273         from pdump_load().
6274
6275 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6276
6277         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6278         DUMP_TARGET instead of literal program names.
6279
6280 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6281
6282         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6283
6284 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6285
6286         * *: Spelling mega-patch
6287
6288 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6289
6290         * fns.c (bad_bad_turtle):
6291         Delete "Eek!" comment, since we fixed the bug to which it refers.
6292
6293 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6294
6295         * alloca.c: Replace REGISTER with register.
6296
6297 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6298
6299         * file-coding.c (ucs_to_char): Use countof.
6300
6301 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6302
6303         * file-coding.c: (ucs_to_char):
6304         (complex_vars_of_file_coding):
6305         Use countof instead of sizeof.
6306         Use CHECK_NATNUM instead of CHECK_INT.
6307
6308         * sysdep.c (strcasecmp): Remove.
6309         * device-x.c (ascii_strcasecmp): New.
6310         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6311         Avoid using non-standard non-portable strcasecmp.
6312
6313 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6314
6315         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6316         * font-lock.c: remove reference to emacsfns.h.
6317         * search.c: small doc improvement.
6318         * event-Xt.c: correct file names in comments.
6319         * console-x.h Correct file names in comments.
6320         * frame.c: Correct file names in comments.
6321         * event-stream.c: remove Energize from comments.
6322
6323 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6324
6325         * symeval.h (DEFERROR_STANDARD):
6326         (DEFERROR):
6327         (DEFSYMBOL):
6328         (DEFSYMBOL_NO_DUMP):
6329         (DEFSYMBOL_MULTIWORD_PREDICATE):
6330         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6331         (DEFKEYWORD):
6332         The construct &##name is not sensible C.
6333         Fixes compilation errors with Unixware native compiler.
6334
6335 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6336
6337         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6338         (next_frame_internal): Removed.  We now just have next_frame.
6339         (next_frame):
6340         Write a simpler and cleaner one-pass algorithm.
6341         Remove called_from_delete_device arg and #ifdefed-out code.
6342         (previous_frame):
6343         Renamed from prev_frame.  Update callers.
6344         Cleaned up to have an analogous implementation to next_frame.
6345         (other_visible_frames_internal): Remove the
6346         called_from_delete_device bogus arg, and hence, remove this
6347         function.  Just use other_visible_frames().
6348
6349         * window.c (Fnext_window):
6350         Prettify docstring.
6351         Since next_frame() is guaranteed to return a frame, remove check
6352         for nil inserted in previous patch.
6353         (Fprevious_window):
6354         Prettify docstring.
6355         Make code look more like Fnext_window.
6356         (window_loop):
6357         Respect the `console' arg when iterating through windows.
6358         Fixes bug: (get-buffer-window buffer t device) not respecting
6359         the `device' arg.
6360         This function needs more work, as others have pointed out.
6361
6362         * frame.h: Rename prev_frame to previous_frame.
6363         device_matches_console_spec no longer takes a `frame' arg.
6364
6365         * s/gnu.h:
6366         * s/linux.h:
6367         * s/hpux.h:
6368         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6369         From "Golubev I. N." <gin@mo.msk.ru>.
6370
6371         * make-src-depend: Fix typo.
6372
6373 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6374
6375         * window.c (Fnext_window):
6376         next_frame() might return nil, not a frame.
6377         Fixes this crash:
6378         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6379
6380         * frame.c (next_frame_internal):
6381         We've passed a frame if we've passed its device.
6382         Fixes this crash:
6383         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6384 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6385
6386 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6387
6388         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6389         Allow option to suppress accelerators in menu/dialog items.
6390         (populate_or_checksum_helper): Pass dialog title through above.
6391
6392 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6393
6394         * event-msw.c (mswindows_key_to_emacs_keysym):
6395         Add "pause" key, fix "menu" key.
6396
6397 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6398
6399         * eval.c (reinit_vars_of_eval):
6400         Increase max_lisp_eval_depth to 1000,
6401         required for thai-xtis.el to byte-compile under some circumstances.
6402
6403 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6404
6405         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6406         From Kenichi Handa.
6407
6408 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6409
6410         * make-src-depend: Make the generated Makefiles smaller.
6411
6412         * s/hpux.h (SETUP_SLAVE_PTY):
6413         Provide a %d in the format string for the errno argument.
6414
6415         * editfns.c (Ftemp_directory):
6416         Warning fix.
6417         Avoid buffer overrun on very long file name.
6418
6419         * input-method-xlib.c (XIM_init_device):
6420         6th parameter of XRegisterIMInstantiateCallback has different
6421         pointer types on different OSes, so simply cast to (void *).
6422
6423         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6424
6425         * sysdll.c (dll_open):
6426         shl_load will hang hard if passed a NULL filename.
6427         Simply return NULL for compatibility with dlopen.
6428         * sysdll.c: Conform to XEmacs coding standards.
6429
6430         * sysdep.c (get_pty_max_bytes):
6431         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6432
6433 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6434
6435         * tooltalk.c: Add #include <syssignal.h>
6436
6437 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6438
6439         * s/hpux.h: Don't use undefined function sigunblock().
6440
6441 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6442
6443         * config.h.in: Add HAVE_BALLOON_HELP.
6444         * emacs.c: Use HAVE_BALLOON_HELP.
6445         * Makefile.in.in (x_objs):
6446         Make Balloon Help conditional on finding shape.h.
6447
6448 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6449
6450         * syntax.c (regex_emacs_buffer_p): New variable.
6451         * syntax.h (regex_emacs_buffer_p): extern.
6452         * search.c (looking_at_1):
6453         (string_match_1):
6454         (fast_string_match):
6455         (search_buffer): Set regex_emacs_buffer_p.
6456         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6457         when before_dot, at_dot, after_dot.
6458
6459 2000-08-23  Andy Piper  <andy@xemacs.org>
6460
6461         * gui-x.c (popup_selection_callback): Only set action_occurred
6462         when we really have an image instance.
6463         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6464
6465 2000-08-23  Andy Piper  <andy@xemacs.org>
6466
6467         * gui-msw.c (mswindows_handle_gui_wm_command): set
6468         action_occurred.
6469         * gui-x.c (popup_selection_callback): ditto.
6470
6471         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6472         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6473         (struct Lisp_Image_Instance): add action_occurred flag.
6474
6475         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6476         (image_instance_changed): ditto.
6477         (reset_frame_subwindow_instance_cache): only unmap windows - do
6478         not remove them from the cache also.
6479
6480         * glyphs-widget.c (tab_control_update): better debug.
6481         (progress_gauge_update): ditto.
6482         (layout_update): ditto.
6483         (layout_instantiate): ditto.
6484         (tab_control_order_only_changed): cope with null pending items.
6485
6486         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6487         debug. Force selection of an item when an action occurred. Cope
6488         with null pending_items.
6489         (mswindows_progress_gauge_redisplay): better debug.
6490         * glyphs-x.c (x_tab_control_redisplay): ditto.
6491
6492         * redisplay.c (redisplay_frame): reset the frame cache if the
6493         frame is garbaged.
6494
6495         * window.c (Fset_window_configuration): potentially re-enable
6496         frame cache reset.
6497         (window_unmap_subwindows): need to finalize instances here since
6498         it is only used in mark_window_as_deleted.
6499
6500 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6501
6502         * nas.c (SndOpenDataForReading):
6503         nas.c (WaveOpenDataForReading):
6504         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6505         Somehow escaped from the 2000-08-14 patch.
6506
6507 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6508
6509         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6510         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6511
6512 2000-08-21  Andy Piper  <andy@xemacs.org>
6513
6514         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6515         window if it is not already displayed.
6516
6517         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6518         it is not already displayed.
6519
6520         * window.c (Fset_window_configuration): don't reset the frame
6521         cache.
6522
6523         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6524         instances from the frame cache if we are actually finalizing them.
6525         (reset_frame_subwindow_instance_cache): reset frame cache only
6526         after unmapping everything.
6527         (map_subwindow): set displayed flag after mapping.
6528
6529 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6530
6531         * data.c (indirect_function):
6532         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6533
6534         * eval.c (function_argcount):
6535         Use original function when signaling errors.
6536
6537 2000-08-18  Andy Piper  <andy@xemacs.org>
6538
6539         * frame.c (delete_frame_internal): use new
6540         free_frame_subwindow_instances name.
6541
6542         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6543         (add_tab_item): make return type correct.
6544         (mswindows_tab_control_instantiate): assert index of tab.
6545         (mswindows_tab_control_redisplay): Re-code to use
6546         gui_item_equal_sans_selected and gui_item_list_find_selected.
6547
6548         * glyphs-widget.c (tab_control_update): Correct comment.
6549
6550         * window.c (window_unmap_subwindows): use new
6551         unmap_subwindow_instance_cache_mapper.
6552         (window_unmap_subwindows_cache_mapper): deleted.
6553         (Fset_window_configuration): comparisons should now be with
6554         EQ. Preserve the subwindow instance cache across configuration
6555         changes.
6556         (allocate_window): ditto.
6557         (make_dummy_parent): ditto.
6558
6559         * glyphs.c (free_frame_subwindow_instances): rename from
6560         free_frame_subwindow_instance_cache. finalize all instances rather
6561         than just those in the display cache.
6562         (finalize_all_subwindow_instances): walk windows unmapping and
6563         finalizing subwindows.
6564         (unmap_subwindow_instance_cache_mapper): moved from
6565         window.c. Allow finalization as well as unmapping.
6566
6567         * gui.c (gui_item_list_find_selected): new function.
6568
6569         * gui.h (gui_item_list_find_selected): declare.
6570
6571         * glyphs-x.c (x_tab_control_redisplay): pick tab
6572         explicitly. Re-code to use gui_item_equal_sans_selected and
6573         gui_item_list_find_selected.
6574
6575         * glyphs-x.h: add lwlib-utils.h
6576
6577         * buffer.c (Frecord_buffer): undo previous change.
6578
6579 2000-08-09  Vin Shelton  <acs@xemacs.org>
6580
6581         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6582         possible.  Create temporary files more securely.  The patch was
6583         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6584         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6585         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6586         for details.
6587
6588 2000-08-07  Ben Wing  <ben@xemacs.org>
6589
6590         * getloadavg.c: remove duplicate (and windows-breaking)
6591         includes of fcntl.h and sys/file.h.
6592
6593         * nt.c: remove duplicate getloadavg() definition.
6594
6595         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6596         encodings.
6597
6598 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6599
6600         * eval.c (function_argcount): If function needs to be autoloaded
6601         actually use the loaded definition.
6602         GCPRO function.
6603
6604 2000-08-05  Ben Wing  <ben@xemacs.org>
6605
6606         * getloadavg.c: add prototype for getloadavg().  remove
6607         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6608         of the code).  remove duplicate header includes.
6609
6610         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6611
6612         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6613         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6614         useful load average.
6615
6616         * alloc.c (reinit_alloc_once_early): removed references to
6617         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6618         the lisp vars are the only things referencing the malloc_sbrk_*
6619         vars, and they were already if 0'd out.  these vars only exist
6620         in the older malloc.c, which is basically unused, and they're
6621         only for informational purposes.
6622
6623         * m\*.h: removed useless VIRT_ADDR_VARIES.
6624
6625         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6626
6627 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6628
6629         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6630         color if the image is a mono pixmap.
6631
6632 2000-07-30  Ben Wing  <ben@xemacs.org>
6633
6634         * Makefile.in.in (release):
6635         Remove stray @.
6636
6637         * buffer.c (directory_is_current_directory):
6638         * dired-msw.c (mswindows_get_files):
6639         * dired.c:
6640         * dired.c (Fdirectory_files):
6641         * dired.c (file_name_completion_stat):
6642         * dired.c (Ffile_attributes):
6643         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6644         preprocessor tricks, to avoid problems on some machines
6645         (e.g. SCO).
6646
6647         * callproc.c (egetenv): GC docs.
6648
6649         * console-msw.h:
6650         * console-msw.h (struct mswindows_dialog_id):
6651         * lrecord.h (lrecord_type):
6652         New object for use with MSW dialogs.
6653
6654         * console.h (struct console_methods):
6655         New enable/disable frame methods, for proper modal dialogs.
6656
6657         * device-msw.c (msprinter_default_printer): Fix to follow
6658         proper Mule conventions.
6659
6660         * device-msw.c:
6661         * device-msw.c (signal_open_printer_error):
6662         * device-msw.c (msprinter_init_device):
6663         * device-msw.c (ensure_not_printing):
6664         * device-msw.c (plist_get_margin):
6665         * device-msw.c (Fmsprinter_select_settings):
6666         * device-msw.c (finalize_devmode):
6667         * device-msw.c (Fmsprinter_settings_despecialize):
6668         * device-msw.c (signal_enum_priner_error):
6669         * extents.c (decode_extent):
6670         * extents.c (decode_map_extents_flags):
6671         * extents.c (decode_extent_at_flag):
6672         * extents.c (Fextent_at):
6673         * extents.c (Fextents_at):
6674         * extents.c (symbol_to_glyph_layout):
6675         [[[[2]]]] Use structured errors.
6676
6677         * dialog-msw.c:
6678         * dialog-msw.c (mswindows_is_dialog_msg):
6679         * dialog-msw.c (mark_mswindows_dialog_id):
6680         * dialog-msw.c (dialog_proc):
6681         * dialog-msw.c (handle_question_dialog_box):
6682         * dialog-msw.c (syms_of_dialog_mswindows):
6683         Define new object to clean up marking; use it as a dialog identifier.
6684         Call new delete-dialog-box-hook.
6685
6686         * dialog-x.c (dbox_selection_callback):
6687         * dialog-x.c (dbox_descriptor_to_widget_value):
6688         * dialog-x.c (x_make_dialog_box_internal):
6689         Call new delete-dialog-box-hook.
6690         Return an id.
6691
6692         * dialog.c:
6693         * dialog.c (syms_of_dialog):
6694         * dialog.c (vars_of_dialog):
6695         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6696
6697         * eval.c:
6698         * eval.c (signal_call_debugger):
6699         when noninteractive, output stack traces on the console instead
6700         of in a (never-seen) buffer.
6701
6702         * eval.c (signal_type_error):
6703         * eval.c (invalid_argument_2):
6704         * lisp.h:
6705         new funs for use w/structured errors.
6706
6707         * event-Xt.c:
6708         * event-Xt.c (x_to_emacs_keysym):
6709         * event-Xt.c (describe_event):
6710         * event-Xt.c (emacs_Xt_event_handler):
6711         * event-Xt.c (vars_of_event_Xt):
6712         * event-msw.c:
6713         * event-msw.c (mswindows_wnd_proc):
6714         * event-msw.c (vars_of_event_mswindows):
6715         rename {x,mswindows}-debug-events to debug-{}-events for
6716         consistency with other debug-foo variables.
6717
6718         * event-stream.c:
6719         document next-event more clearly.
6720
6721         * fileio.c (Ffile_name_directory):
6722         * fileio.c (Ffile_name_nondirectory):
6723         * fileio.c (Funhandled_file_name_directory):
6724         * fileio.c (file_name_as_directory):
6725         * fileio.c (Ffile_name_as_directory):
6726         * fileio.c (directory_file_name):
6727         * fileio.c (Fdirectory_file_name):
6728         * fileio.c (Fmake_temp_name):
6729         * fileio.c (Ffile_truename):
6730         * fileio.c (Fsubstitute_in_file_name):
6731         * fileio.c (expand_and_dir_to_file):
6732         * fileio.c (barf_or_query_if_file_exists):
6733         * fileio.c (check_executable):
6734         * fileio.c (Ffile_exists_p):
6735         * fileio.c (Ffile_writable_p):
6736         * fileio.c (Ffile_directory_p):
6737         * fileio.c (Ffile_regular_p):
6738         * fileio.c (Ffile_modes):
6739         * fileio.c (Ffile_newer_than_file_p):
6740         * fileio.c (Fverify_visited_file_modtime):
6741         * fileio.c (Fset_visited_file_modtime):
6742         * fileio.c (auto_save_1):
6743         (1). (2).
6744         fix up gcpro's.
6745
6746         * frame-msw.c:
6747         * frame-msw.c (mswindows_init_frame_1):
6748         * frame-msw.c (mswindows_enable_frame):
6749         * frame-msw.c (error_frame_unsizable):
6750         * frame-msw.c (msprinter_init_frame_1):
6751         * frame-msw.c (msprinter_init_frame_3):
6752         * frame-msw.c (console_type_create_frame_mswindows):
6753         (2).
6754         implement new enable/disable frame methods.
6755
6756         * frame-x.c:
6757         * frame-x.c (x_enable_frame):
6758         * frame-x.c (console_type_create_frame_x):
6759         implement new enable/disable frame methods.
6760
6761         * frame.c:
6762         * frame.c (Fdisable_frame):
6763         * frame.c (syms_of_frame):
6764         * frame.h (struct frame):
6765         implement new enable/disable frame methods/functions.
6766
6767         * general-slots.h:
6768         add initial-focus.
6769
6770         * glyphs-msw.c (mswindows_widget_instantiate):
6771         comment that initial-focus should be implemented.
6772
6773         * glyphs-widget.c:
6774         * glyphs-widget.c (check_valid_instantiator):
6775         * glyphs-widget.c (check_valid_orientation):
6776         * glyphs-widget.c (check_valid_tab_orientation):
6777         * glyphs-widget.c (check_valid_justification):
6778         * glyphs-widget.c (check_valid_border):
6779         * glyphs-widget.c (check_valid_callback):
6780         * glyphs-widget.c (check_valid_int_or_function):
6781         * glyphs-widget.c (check_valid_string_or_vector):
6782         * glyphs-widget.c (check_valid_item_list_1):
6783         * glyphs-widget.c (widget_validate):
6784         * glyphs-widget.c (combo_box_validate):
6785         * glyphs-widget.c (widget_instantiate):
6786         * glyphs-widget.c (syms_of_glyphs_widget):
6787         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6788         * glyphs-widget.c (image_instantiator_combo_box):
6789         * glyphs-widget.c (image_instantiator_scrollbar):
6790         * glyphs-widget.c (image_instantiator_tab_control):
6791         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6792         (2).
6793         support (unimplemented) keyword initial-focus.
6794         reindent long macros.
6795
6796         * glyphs-x.c (x_redisplay_widget):
6797         * glyphs-x.c (x_button_instantiate):
6798         * glyphs-x.c (x_button_redisplay):
6799         * glyphs-x.c (x_progress_gauge_instantiate):
6800         * glyphs-x.c (x_edit_field_instantiate):
6801         * glyphs-x.c (x_combo_box_instantiate):
6802         * glyphs-x.c (x_tab_control_instantiate):
6803         * glyphs-x.c (x_label_instantiate):
6804         * gui-x.c:
6805         * gui-x.c (button_item_to_widget_value):
6806         * gui-x.c (gui_items_to_widget_values_1):
6807         * gui-x.c (gui_item_children_to_widget_values):
6808         * gui-x.c (gui_items_to_widget_values):
6809         * gui-x.h:
6810         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6811         add new flag to gui-parsing routines to indicate whether
6812         accelerator specs should be supported.
6813
6814         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6815
6816         * glyphs.h (struct Lisp_Image_Instance):
6817         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6818         add initial-focus flag.
6819
6820         * gui.c:
6821         * gui.c (syms_of_gui):
6822         * gui.c (vars_of_gui):
6823         clean up menu-no-selection-hook.
6824
6825         * gui.h:
6826         support delete-dialog-box-hook.
6827
6828         * lread.c (Fload_internal):
6829         * lread.c (locate_file_in_directory_mapper):
6830         (1).
6831
6832         * lrecord.h:
6833         * lrecord.h (struct toolbar_button):
6834         * lrecord.h (syms_of_toolbar):
6835         document how to create a new object.
6836
6837         * menubar-msw.c (mswindows_char_is_accelerator):
6838         may be called on frames w/o menus.
6839
6840         * menubar.c (vars_of_menubar):
6841         clean up :filter docs.
6842
6843         * nt.c (readdir):
6844         * ntproc.c:
6845         (1).
6846
6847         * process-nt.c:
6848         * process-nt.c (validate_signal_number):
6849         * process-nt.c (signal_cannot_launch):
6850         * process-nt.c (nt_create_process):
6851         * process-nt.c (nt_send_process):
6852         * process-nt.c (nt_kill_child_process):
6853         * process-nt.c (nt_open_network_stream):
6854         * process-nt.c (syms_of_process_nt):
6855         (2).
6856         delete quote-handling.  call new lisp code that does it better.
6857
6858         * process-unix.c (connect_to_file_descriptor):
6859         * process-unix.c (allocate_pty):
6860         * process-unix.c (unix_send_process):
6861         * process-unix.c (unix_kill_child_process):
6862         * process-unix.c (unix_open_network_stream):
6863         * process-unix.c (unix_open_multicast_group):
6864         (1). (2).
6865
6866         * process.c:
6867         * process.c (Fstart_process_internal):
6868         (2).  need to canonicalize process path even if absolute.
6869
6870         * select-msw.c (symbol_to_ms_cf):
6871         * select-msw.c (ms_cf_to_symbol):
6872         * select-msw.c (cf_is_autofreed):
6873         * select-msw.c (mswindows_destroy_selection):
6874         * select.c:
6875         * select.c (syms_of_select):
6876         * select.h:
6877         support dibv5, fix bugs. (from Mike Alexander)
6878
6879         * select.c (Fget_selection_internal):
6880         * select.c (select_convert_out):
6881
6882         * sysdep.c:
6883         * sysdep.c (xemacs_stat):
6884         renamed.
6885
6886         * sysdep.c (mkdir):
6887         * sysdep.c (rmdir):
6888         but keep original stat() here because we provide encapsulation
6889         around these funs.
6890
6891         * sysfile.h:
6892         * sysfile.h (fstat):
6893         remove stat garbage.
6894
6895         * syswindows.h:
6896         fix X/MSW conflict.
6897         don't include tchar.h.  it's inappropriate because it makes
6898         compile-time distinctions when we want runtime distinctions.
6899         (we provide our own tchar replacements)
6900
6901         * toolbar.c:
6902         use default object printer for toolbar-button.
6903
6904         * unexcw.c:
6905         make sure we don't encapsulate.
6906
6907         * window.c (vars_of_window):
6908         emphasize that temp-buffer-show-hook is obsolete.
6909
6910 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6911
6912         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6913         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6914
6915         * events.c (Fevent_timestamp_lessp):
6916         Not 64-bit clean.  Use EMACS_INT, not int.
6917
6918 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6919
6920         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6921         unsigned int and changed the last enum to
6922         lrecord_type_last_built_in_type.
6923         (lrecord_implementations_table): changed prototype to know how
6924         long the array is supposed to be.
6925         (lrecord_type_count): new unsigned int to keep track of the
6926         current number of lisp lrecord types.
6927         (DEFINE_EXTERNAL_LRECORD):
6928         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6929         dynamic-modules to declare new lisp types. They are the same
6930         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6931         int for each new type, and increment lrecord_type_count by 1.
6932
6933         * alloc.c (lrecord_implementations_table): Changed to reference
6934         lrecord_type_last_built_in_type for the size of the array.
6935         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6936
6937 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6938
6939         * glyphs.h (check_valid_item_list): Renamed from
6940         check_valid_item_list_1.
6941
6942 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6943
6944         * select.c (Qselect_coerce): New.
6945         * select.c (Vselection_coercion_alist): New.
6946         * select.c (syms_of_select): Declare.
6947         * select.c (get-selection-internal): Use it.
6948         Use the new select-coerce functionality.
6949
6950         * select.c (select_coerce): New.
6951         * select.h (select_coerce): Declare.
6952         New function to coerce one type of data into another.
6953
6954 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6955
6956         * callproc.c (Fcall_process_internal):
6957         (Fcall_process_internal):
6958         * process-unix.c (unix_create_process):
6959         Save and restore the value of errno, so that error messages are accurate.
6960
6961 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6962
6963         * elhash.c (print_hash_table):
6964         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6965         Prettify docstrings and indentation.
6966
6967 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6968
6969         * window.c (Fwindow_pixel_edges): Subtract frame border and
6970         gutter size.
6971
6972 2000-07-31  Andy Piper  <andy@xemacs.org>
6973
6974         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6975         will acknowledge the change.
6976
6977         * glyphs.h: declare tab_control_order_only_changed.
6978
6979         * glyphs-x.c (x_tab_control_redisplay): use
6980         tab_control_order_only_changed.
6981
6982         * glyphs-widget.c (tab_control_order_only_changed): new function.
6983
6984         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6985         tab_control_order_only_changed.
6986
6987         * gui.c (gui_item_equal_sans_selected): new function.
6988         (gui_item_equal): use it.
6989
6990         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6991         :properties in favor of :items..
6992
6993         * glyphs-widget.c (check_valid_item_list): rename from
6994         check_valid_item_list_1.
6995         (check_valid_item_list_1): renamed.
6996         (combo_box_validate): deprecate :properties in favor of :items.
6997         (widget_instantiate): ditto.
6998         (tab_control_update): ditto.
6999         (image_instantiator_combo_box): ditto.
7000         (image_instantiator_tree_view): ditto.
7001         (image_instantiator_tab_control): ditto.
7002         (layout_post_instantiate): remove dead code.
7003
7004         * print.c (debug_print_no_newline): only write to debugger if in
7005         WIN32_NATIVE.
7006
7007         * elhash.c (Fmake_hash_table): update doc string.
7008
7009         * event-msw.c (mswindows_wnd_proc): don't allow processing of
7010         messages whilst in GC. This at least stops XEmacs crashing but has
7011         the potential for wierd behaviour.
7012
7013 2000-07-31  Martin Buchholz  <martin@xemacs.org>
7014
7015         * config.h.in:
7016         Make existence of s&m files optional.
7017
7018         * s/bsd386.h: Remove HAVE_GETLOADAVG.
7019         * s/freebsd.h: Remove HAVE_GETLOADAVG.
7020         * s/gnu.h: Remove HAVE_GETLOADAVG.
7021         * s/netbsd.h: Remove HAVE_GETLOADAVG.
7022         * s/sol2.h: Remove HAVE_GETLOADAVG.
7023         * lisp.h: Remove getloadavg() declaration.
7024         * fns.c:
7025         Include <sys/loadavg.h> if available.
7026         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
7027         * config.h.in:  Group together getloadavg()-related macros.
7028         Use only configure-time tests to detect getloadavg().
7029
7030 2000-07-30  Martin Buchholz  <martin@xemacs.org>
7031
7032         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
7033
7034 2000-07-25  Andy Piper  <andy@xemacs.org>
7035
7036         * syswindows.h: add tchar.h for native builds.
7037
7038         * frame.c (syms_of_frame): remove set-glyph-image.
7039
7040         * general-slots.h: add Qset_glyph_image.
7041
7042         * glyphs-widget.c (layout_update): add domain arg to
7043         set-glyph-image.
7044         (syms_of_glyphs_widget): remove set-glyph-image.
7045
7046 2000-07-23  Ben Wing  <ben@xemacs.org>
7047
7048         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
7049         Vpopup_frame_list.
7050
7051 2000-07-22  Andy Piper  <andy@xemacs.org>
7052
7053         * symsinit.h: add syms_of_win32().
7054
7055         * gui-msw.c (syms_of_gui_mswindows): remove
7056         Fmswindows_shell_execute.
7057         (Fmswindows_shell_execute): moved to win32.c.
7058
7059         * emacs.c (main_1): add syms_of_win32 ().
7060
7061         * win32.c (init_potentially_nonexistent_functions): rewrite in
7062         compiler-friendly terms.
7063         (Fmswindows_shell_execute): move here from gui-msw.c.
7064         (syms_of_win32): new.
7065
7066         * device-msw.c (Fmswindows_printer_list): clean up args to
7067         EnumPrinters.
7068         Don't include tchar under cygwin or mingw.
7069         (msprinter_default_printer): make cygwin-friendly.
7070
7071 2000-07-21  Andy Piper  <andy@xemacs.org>
7072
7073         * glyphs-widget.c (image_instantiator_tree_view): use tab
7074         control's update function.
7075         (layout_property): new function. Retrieve items.
7076
7077         * glyphs-msw.c (mswindows_tree_view_redisplay): new
7078         function. Re-populate the tree view from the pending items.
7079
7080         * glyphs.c (instantiate_image_instantiator): Make sure the domain
7081         is designated the parent if the domain is an image instance. This
7082         is needed so that dirtiness can be cascade up the hierarchy and
7083         thus for layout children to be redisplayed correctly.
7084         (allocate_image_instance): rename glyph -> parent.
7085
7086         * redisplay.h: change redisplay_output_layout signature.
7087
7088         * redisplay-msw.c (mswindows_output_display_block): use domain
7089         arg.
7090
7091         * redisplay-x.c (x_output_display_block): use domain arg.
7092
7093 2000-07-10  Andy Piper  <andy@xemacs.org>
7094
7095         * window.c (Fset_window_configuration): add comment.
7096
7097         * redisplay-output.c (compare_runes):
7098         (redisplay_output_subwindow): redisplay rather than update subwindow.
7099         (redisplay_output_layout): ditto.
7100
7101         * redisplay-msw.c (mswindows_frame_output_end):
7102         (mswindows_frame_output_end): make defer window pos optional.
7103
7104         * lisp.h: add Flast.
7105
7106         * glyphs.h (struct image_instantiator_methods): add dest_mask top
7107         normalize method. Change update method to be for changed
7108         instantiators. Add redisplay method. Change signature of layout
7109         method.
7110         (struct Lisp_Image_Instance): add instantiator.
7111         (IMAGE_INSTANCE_INSTANTIATOR): new.
7112         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7113         (XIMAGE_INSTANCE_INSTANTIATOR): new.
7114         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7115
7116         * glyphs.c:
7117         (find_instantiator_differences): new function.
7118         (Fset_instantiator_property): new convenience function.
7119         (check_image_instance_structure): strictly check for vector
7120         instantiators.
7121         (normalize_image_instantiator): make non-static.
7122         (instantiate_image_instantiator): pass on dest_mask and use new
7123         signatures for image_instance_layout and friends.
7124         (mark_image_instance): mark the instantiator. Mark the subwindow
7125         face not the widget face.
7126         (image_instance_equal): add instantiator.
7127         (image_instance_hash): ditto.
7128         (allocate_image_instance): ditto.
7129         (Fset_image_instance_property): removed.
7130         (Fimage_instance_file_name): ditto.
7131         (Fcolorize_image_instance): ditto.
7132         (image_instance_layout): add offsets to be set.
7133         (update_image_instance): new function. update an image instance
7134         from its changed instantiator.
7135         (inherit_normalize): add dest_mask.
7136         (xbm_normalize): ditto.
7137         (xface_normalize): ditto.
7138         (xpm_normalize): ditto.
7139         (text_update): set_property -> update.
7140         (image_instantiate): use the glyph identity as a hash key, not the
7141         instantiator.
7142         (glyph_width): use new image_instance_layout signature.
7143         (glyph_ascent): ditto.
7144         (glyph_descent): ditto.
7145         (glyph_height): ditto.
7146         (glyph_query_geometry): ressurrect.
7147         (glyph_layout): ditto.
7148         (redisplay_subwindow): update -> redisplay.
7149         (syms_of_glyphs): add Fset_instantiator_property.
7150         (image_instantiator_format_create): set_property -> update.
7151
7152         * glyphs-x.c:
7153         (autodetect_normalize): add dest_maks to signature.
7154         (x_redisplay_subwindow): update -> redisplay.
7155         (x_redisplay_widget): ditto.
7156         (x_button_redisplay): ditto.
7157         (x_progress_gauge_redisplay): ditto.
7158         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7159         stacking order.
7160         (console_type_create_glyphs_x): update -> redisplay.
7161         (image_instantiator_format_create_glyphs_x): ditto.
7162
7163         * glyphs-widget.c:
7164         (check_valid_instantiator): disallow glyphs in the instantiator,
7165         they must now be vectors.
7166         (check_valid_instantiator_list): ditto.
7167         (glyph_instantiator_to_glyph): use internal symbol rather than
7168         intern.
7169         (widget_update): renamed from widget_set_property. Call cascaded
7170         update methods.
7171         (redisplay_widget): renamed from update_widget.
7172         (widget_layout): image_instance_layout now takes position as well
7173         as size.
7174         (widget_normalize): ditto.
7175         (widget_instantiate): ditto.
7176         (tab_control_query_geometry) ditto.:
7177         (tab_control_update): renamed from tab_control_set_property.
7178         (progress_gauge_update): set_property -> update.
7179         (layout_normalize): rewrite so that child instantiators are
7180         normalized also.
7181         (layout_update): new function. Create glyphs from the normalized
7182         children and cope with any other layout keywords. We do not
7183         instantiate children here that will be take care of by
7184         redisplay_output_layout.
7185         (layout_instantiate): call layout_update and not much else.
7186         (layout_post_instantiate): not sure whether this is needed
7187         anymore.
7188         (layout_query_geometry): query glyph geometry rather than
7189         image_instance geometry.
7190         (layout_layout): set offsets from pass in parameters. Use glyph
7191         geometry and layout functions rather than image instance ones.
7192         (native_layout_layout): ditto.
7193         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7194         (image_instantiator_widget): set_property -> update.
7195         (image_instantiator_buttons): ditto.
7196         (image_instantiator_progress_guage): ditto.
7197         (image_instantiator_tab_control): ditto.
7198         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7199         (image_instantiator_layout): add update method.
7200
7201         * glyphs-msw.c (bmp_normalize):
7202         (mswindows_resource_normalize): add dest_mask so that it can be
7203         proprogated by layout_normalize.
7204         (begin_defer_window_pos): make optional because it may not be the
7205         right thing to do and it introduces differences with X.
7206         (mswindows_unmap_subwindow): ditto.
7207         (mswindows_map_subwindow): ditto.
7208         (mswindows_redisplay_subwindow): renamed from
7209         mswindows_update_subwindow.
7210         (mswindows_redisplay_widget): ditto.
7211         (mswindows_button_redisplay): renamed from
7212         mswindows_button_update. Update is now what the instantiation
7213         function does for a changed instantiator.
7214         (mswindows_progress_gauge_instantiate): set the progress value
7215         here if appropriate.
7216         (mswindows_tab_control_redisplay): cope with re-ordering of the
7217         members of the tab widget by simply selecting the new top
7218         widget. This makes things appear ok if you click on a tab.
7219         (mswindows_combo_box_instantiate): image_instance_layout now takes
7220         position as well as size.
7221         (mswindows_progress_gauge_redisplay): renamed from
7222         mswindows_progress_gauge_update.
7223         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7224         (image_instantiator_format_create_glyphs_mswindows): ditto.
7225
7226         * glyphs-eimage.c (jpeg_normalize):
7227         (gif_normalize):
7228         (png_normalize):
7229         (tiff_normalize): add dest_mask so that it can be proprogated by
7230         layout_normalize.
7231
7232         * elhash.c:
7233         (print_hash_table):
7234         (hash_table_weakness_validate):
7235         (decode_hash_table_weakness):
7236         (Fhash_table_weakness):
7237         (Fhash_table_type):
7238         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7239
7240         * console.h (struct console_methods): move update_* to
7241         redisplay_*.
7242
7243 2000-07-20  Ben Wing  <ben@xemacs.org>
7244
7245         * *.[ch] (XSETOBJ): remove unused middle argument.
7246         lisp-disunion.h: correct wrap_object() to one argument.
7247
7248 2000-07-15  Ben Wing  <ben@xemacs.org>
7249
7250         * s/cygwin32.h:
7251         * s/cygwin32.h (CYGWIN_CONV_PATH):
7252         Add missing logb prototype for v1.1.
7253         Use post-b20 names and alias to pre-b20 names when pre-b20.
7254
7255         * s/windowsnt.h: [5].
7256
7257 2000-07-15  Ben Wing  <ben@xemacs.org>
7258
7259         * Makefile.in.in (x_objs):
7260         * Makefile.in.in (sheap_objs):
7261         * Makefile.in.in (objs):
7262         added win32.o, cosmetic cleanups.
7263
7264         * alloc.c (Fmake_byte_code):
7265         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7266         etc. macros which declare their own args now.
7267
7268         * alloc.c (syms_of_alloc):
7269         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7270
7271         * buffer.c:
7272         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7273
7274         * buffer.c (Fget_file_buffer):
7275         Fixed GCPRO problem.
7276
7277         * buffer.c (get_truename_buffer):
7278         Fixed comment about GC checking.
7279
7280         * buffer.c (syms_of_buffer):
7281         Undeclared those dedicated frame funs.
7282         [2].
7283
7284         * buffer.h:
7285         Define convenience macros for internal/external conversions.
7286         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7287         and Qenvironment_variable_encoding for cleaner code.
7288
7289         * bufslots.h:
7290         Remove dedicated-frame; in lisp.
7291
7292         * bytecode.c (funcall_compiled_function):
7293         [1].
7294
7295         * bytecode.c (syms_of_bytecode):
7296         [2].
7297
7298         * console-msw.c:
7299         * console-msw.c (mswindows_show_console): Rewrote.
7300
7301         * console-msw.c (Fmswindows_debugging_output): New.
7302         Sends to OutputDebugString (special MSWin debugger interface).
7303
7304         * console-msw.c (Fmswindows_message_box):
7305         Fixed stupid bugs so it works when called from kill-emacs.
7306
7307         * console-msw.c (syms_of_console_mswindows):
7308         Declare Fmswindows_debugging_output.
7309
7310         * console-msw.h:
7311         New MSWin prototypes.
7312
7313         * console-msw.h (struct mswindows_frame):
7314         New entry last-click-mods for improved button-modifier support.
7315
7316         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7317         New struct entry `popup' with corresponding accessor.
7318
7319         * console-x.c:
7320         * console-x.c (split_up_display_spec):
7321         * console-x.c (get_display_arg_connection):
7322         * console-x.c (x_semi_canonicalize_console_connection):
7323         * console-x.c (x_canonicalize_device_connection):
7324         [[[6]]]: Change char to more specific type.
7325         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7326
7327         * console-x.c (x_semi_canonicalize_console_connection):
7328         * console-x.c (x_canonicalize_device_connection):
7329         [[[9]]]: Fix up error signalling to use new structured error system.
7330
7331         * console-x.h:
7332         [[[4]]]: Define codesys aliases:
7333         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7334         Qx_color_name_encoding, Qx_display_name_encoding.
7335
7336         * console.h (struct console_methods):
7337         New method make_dialog_box_internal supersedes older
7338         popup_dialog_box method.
7339
7340         * data.c:
7341         Define many new errors, part of new structured errors.
7342
7343         * data.c (init_errors_once_early):
7344         * data.c (syms_of_data):
7345         [2].
7346
7347         * device-msw.c (mswindows_init_device):
7348         [[[5]]]: Cleanup to support NT 3.51.
7349
7350         * device-msw.c (decode_devmode): Cleanup.
7351
7352         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7353         * device-msw.c (mswindows_handle_print_dialog_box):
7354         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7355         * device-msw.c (syms_of_device_mswindows):
7356         Delete the dialog box primitives recently introduced by Kirill and
7357         instead interface to general dialog box interface.
7358
7359         * device-x.c:
7360         * device-x.c (compute_x_app_name):
7361         * device-x.c (x_init_device):
7362         * device-x.c (Fx_valid_keysym_name_p):
7363         * device-x.c (Fx_set_font_path):
7364         [6].
7365         [7].
7366
7367         * device.h (wrap_device): New.
7368         First of its kind; meant to replace XSETDEVICE.
7369
7370         * dialog-msw.c: Many file-dialog symbols.
7371
7372         * dialog-msw.c (mswindows_register_popup_frame): New.
7373         * dialog-msw.c (mswindows_is_dialog_msg): New.
7374         For supporting kbd traversal in dialog boxes.
7375
7376         * dialog-msw.c (dialog_proc):
7377         Support hitting ESC in dialogs.
7378
7379         * dialog-msw.c (struct):
7380         Common dialog box errors.
7381
7382         * dialog-msw.c (handle_file_dialog_box): New.
7383         Add file dialog code.
7384
7385         * dialog-msw.c (handle_question_dialog_box):
7386         Redo existing code to support new question dialog syntax.
7387
7388         * dialog-msw.c (console_type_create_dialog_mswindows):
7389         We support new dialog console method.
7390
7391         * dialog-msw.c (syms_of_dialog_mswindows):
7392         * dialog-msw.c (vars_of_dialog_mswindows):
7393         New file dialog symbols, vars.
7394
7395         * dialog-x.c:
7396         * dialog-x.c (maybe_run_dbox_text_callback):
7397         * dialog-x.c (dbox_descriptor_to_widget_value):
7398         * dialog-x.c (x_make_dialog_box_internal):
7399         * dialog-x.c (console_type_create_dialog_x):
7400         Mule-ize entire file.
7401         Redo to support question dialog syntax.
7402         [6].
7403
7404         * dialog.c:
7405         * dialog.c (Fmake_dialog_box_internal):
7406         * dialog.c (syms_of_dialog):
7407         Kill old popup-dialog-box, replace with new primitive.
7408         Just call device method or signal error.
7409
7410         * eldap.c (Fldap_open):
7411         * eldap.c (Fldap_search_basic):
7412         * eldap.c (Fldap_add):
7413         * eldap.c (Fldap_modify):
7414         [1].
7415         [7].
7416
7417         * emacs.c:
7418         * emacs.c (make_arg_list_1):
7419         * emacs.c (make_arg_list):
7420         Mule-ize call to dll_init().
7421         [6].
7422         [8].
7423
7424         * emacs.c (make_argc_argv):
7425         * emacs.c (free_argc_argv):
7426         * emacs.c (init_cmdargs):
7427         * emacs.c (main_1):
7428         * emacs.c (Fkill_emacs):
7429         * emacs.c (Fdump_emacs):
7430         Update comments about what can be used in syms_* etc.
7431         Call init_win32() when necessary.
7432         Fix up MS Win dialog box in kill-buffer to actually work right.
7433         [7].
7434
7435         * eval.c:
7436         * eval.c (For):
7437         * eval.c (Fand):
7438         * eval.c (Fprogn):
7439         * eval.c (Fprog1):
7440         * eval.c (Fprog2):
7441         * eval.c (FletX):
7442         * eval.c (Flet):
7443         * eval.c (condition_case_3):
7444         * eval.c (Feval):
7445         * eval.c (function_argcount):
7446         * eval.c (funcall_lambda):
7447         [1].
7448
7449         * eval.c (type_error): New.
7450         * eval.c (maybe_type_error): New.
7451         * eval.c (continuable_type_error): New.
7452         * eval.c (maybe_continuable_type_error): New.
7453         * eval.c (type_error_with_frob): New.
7454         * eval.c (maybe_type_error_with_frob): New.
7455         * eval.c (continuable_type_error_with_frob): New.
7456         * eval.c (maybe_continuable_type_error_with_frob): New.
7457         New functions for use with structured errors.
7458
7459         * event-Xt.c:
7460         * event-Xt.c (x_event_to_emacs_event):
7461         Buttons are now modifiers too.
7462
7463         * event-Xt.c (emacs_Xt_current_event_timestamp):
7464         Implement new event method.
7465         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7466
7467         * event-msw.c:
7468         * event-msw.c (ntpipe_shove_writer): [5].
7469         * event-msw.c (mswindows_enqueue_mouse_button_event):
7470         * event-msw.c (mswindows_drain_windows_queue):
7471         * event-msw.c (mswindows_wnd_proc): [7].
7472         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7473         * event-msw.c (mswindows_modifier_state):
7474         Throughout: support new button modifiers.
7475
7476         * event-msw.c (emacs_mswindows_current_event_timestamp):
7477         Implement new event method.
7478         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7479
7480         * event-stream.c:
7481         * event-stream.c (event_stream_current_event_timestamp): New.
7482         * event-stream.c (maybe_kbd_translate): New functionality.
7483         * event-stream.c (vars_of_event_stream):
7484         Document new kbd-translate-table functionality.
7485
7486         * event-stream.c (Fcurrent_event_timestamp): New.
7487         New primitive for use in fabricated events.
7488         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7489
7490         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7491
7492         * events.c:
7493         * events.c (Fmake_event):
7494         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7495         [1].
7496         [9].
7497
7498         * events.c (format_event_object): fix gcc warnings.
7499
7500         * events.c (Fevent_timestamp): Document new primitives.
7501
7502         * events.c (TIMESTAMP_HALFSPACE): New.
7503
7504         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7505         comparing timestamps correctly (half-space algorithm).
7506
7507         * events.c (Fevent_modifier_bits): Doc fix.
7508
7509         * events.c (Fevent_modifiers): Major doc addition.
7510         * events.c (event_x_y_pixel_internal): Typo fix.
7511         * events.c (syms_of_events): Declare new primitives.
7512
7513         * events.h:
7514         Update long comment for button modifiers, timestamps.
7515
7516         * events.h (struct event_stream):
7517         New current_event_timestamp method.
7518
7519         * extents.c:
7520         * extents.c (extent_in_region_p):
7521         * extents.c (decode_extent):
7522         * extents.c (Fset_extent_parent):
7523         * extents.c (decode_map_extents_flags):
7524         Fix gcc warnings.
7525         [9].
7526
7527         * extents.c (struct extent_at_arg):
7528         * extents.c (decode_extent_at_flag):
7529         * extents.c (extent_at_mapper):
7530         * extents.c (extent_at_bytind):
7531         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7532         * extents.c (Fextents_at): New primitive. [9].
7533         * extents.c (symbol_to_glyph_layout): [9].
7534         Support new primitive `extents-at'.
7535
7536
7537         * extents.c (get_text_property_bytind):
7538         extent_at_bytind has another arg.
7539         [9].
7540
7541         * extents.c (syms_of_extents): New primitive.
7542
7543         * file-coding.c (Fmake_coding_system): [1].
7544         * file-coding.c (subsidiary_coding_system): fix gcc warning
7545         * file-coding.c (syms_of_file_coding): [2].
7546
7547         * fileio.c (Fexpand_file_name):
7548         * fileio.c (Fsysnetunam):
7549         * fileio.c (Ffile_exists_p):
7550         * fileio.c (Ffile_executable_p):
7551         * fileio.c (Fverify_visited_file_modtime):
7552         Clean up GCPROing.
7553
7554         * fileio.c (syms_of_fileio): [2].
7555
7556         * filelock.c (lock_file_1):
7557         * filelock.c (current_lock_owner):
7558         * filelock.c (lock_if_free):
7559         * filelock.c (lock_file):
7560         * filelock.c (unlock_file):
7561         Clean up GCPROing.
7562
7563         * fns.c (concat): Fix gcc warning.
7564
7565         * fns.c (Fmember):
7566         * fns.c (Fold_member):
7567         * fns.c (Fmemq):
7568         * fns.c (Fold_memq):
7569         * fns.c (memq_no_quit):
7570         * fns.c (Fassoc):
7571         * fns.c (Fold_assoc):
7572         * fns.c (Fassq):
7573         * fns.c (Fold_assq):
7574         * fns.c (assq_no_quit):
7575         * fns.c (Frassoc):
7576         * fns.c (Fold_rassoc):
7577         * fns.c (Frassq):
7578         * fns.c (Fold_rassq):
7579         * fns.c (rassq_no_quit):
7580         * fns.c (Fdelete):
7581         * fns.c (Fold_delete):
7582         * fns.c (Fdelq):
7583         * fns.c (Fold_delq):
7584         * fns.c (delq_no_quit):
7585         * fns.c (Fremassoc):
7586         * fns.c (Fremassq):
7587         * fns.c (remassq_no_quit):
7588         * fns.c (Fremrassoc):
7589         * fns.c (Fremrassq):
7590         * fns.c (remrassq_no_quit):
7591         * fns.c (Freverse):
7592         * fns.c (mapcar1):
7593         [1].
7594
7595         * frame-msw.c (mswindows_init_frame_1):
7596         * frame-msw.c (mswindows_delete_frame):
7597         Register popups with dialog code so keyboard traversing works.
7598
7599         * frame-tty.c (tty_raise_frame_no_select): [1].
7600
7601         * frame-x.c:
7602         * frame-x.c (x_set_frame_text_value):
7603         * frame-x.c (x_set_frame_properties):
7604         * frame-x.c (x_create_widgets):
7605         [7].
7606
7607         * frame.c:
7608         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7609
7610         * frame.h (wrap_frame): New.
7611         Macro like wrap_device.
7612
7613         * general.c:
7614         * general.c (SYMBOL):
7615         * general.c (syms_of_general):
7616         Major reorg.  This is now just a wrapper and symbols themselves
7617         are listed in general-slots.h.
7618
7619         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7620         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7621
7622         * glyphs-msw.c (mswindows_native_layout_instantiate):
7623         Add DS_CONTROL so keyboard traversal will work.
7624
7625         * glyphs-widget.c:
7626         * glyphs-widget.c (syms_of_glyphs_widget):
7627         Move some symbols to general-slots.h.
7628
7629         * glyphs-x.c:
7630         * glyphs-x.c (xbm_instantiate_1):
7631         * glyphs-x.c (x_xbm_instantiate):
7632         * glyphs-x.c (x_xface_instantiate):
7633         * glyphs-x.c (autodetect_instantiate):
7634         * glyphs-x.c (cursor_font_instantiate):
7635         * glyphs-x.c (x_update_widget):
7636         * glyphs-x.c (x_widget_instantiate):
7637         * glyphs.c (bitmap_to_lisp_data):
7638         * glyphs.c (pixmap_to_lisp_data):
7639         [7].
7640
7641         * glyphs.c (syms_of_glyphs):
7642         [2].
7643
7644         * gui-x.c:
7645         * gui-x.c (print_widget_value):
7646         * gui-x.c (menu_separator_style_and_to_external):
7647         * gui-x.c (add_accel_and_to_external):
7648         * gui-x.c (button_item_to_widget_value):
7649         * gui-x.c (gui_items_to_widget_values_1):
7650         * gui-x.c (gui_items_to_widget_values):
7651         * gui-x.c (syms_of_gui_x):
7652         * gui-x.c (vars_of_gui_x):
7653         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7654         [9].
7655
7656         * gui-x.h:
7657         Muleize, prototype changes matching gui-x.c.
7658
7659         * gui.c:
7660         * gui.c (separator_string_p):
7661         * gui.c (gui_item_add_keyval_pair):
7662         * gui.c (make_gui_item_from_keywords_internal):
7663         * gui.c (signal_too_long_error):
7664         * gui.c (parse_gui_item_tree_item):
7665         * gui.c (syms_of_gui):
7666         * gui.c (vars_of_gui):
7667         * gui.h:
7668         menu-no-selection-hook moved here (used by MSWin).
7669         Move some symbols to general-slots.h.
7670         [6].
7671         [9].
7672
7673         * insdel.c (get_buffer_pos_char):
7674         * insdel.c (get_buffer_range_char):
7675         Add GC comments.
7676
7677         * keymap.c (keymap_lookup_directly):
7678         * keymap.c (keymap_store):
7679         * keymap.c (ensure_meta_prefix_char_keymapp):
7680         * keymap.c (describe_map):
7681         * keymap.h:
7682         Support new button modifiers.
7683
7684         * lisp-disunion.h (wrap_object):
7685         * lisp-disunion.h (XSETOBJ):
7686         Rename make_obj to wrap_object.
7687
7688         * lisp-union.h:
7689         * lisp-union.h (make_int):
7690         * lisp-union.h (make_char):
7691         Support wrap_object.
7692
7693         * lisp.h:
7694         * lisp.h (LIST_LOOP):
7695         * lisp.h (EXTERNAL_LIST_LOOP):
7696         * lisp.h (LIST_LOOP_2):
7697         * lisp.h (EXTERNAL_LIST_LOOP_1):
7698         * lisp.h (EXTERNAL_LIST_LOOP_2):
7699         * lisp.h (EXTERNAL_LIST_LOOP_3):
7700         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7701         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7702         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7703         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7704         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7705         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7706         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7707         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7708         * lisp.h (struct Lisp_Symbol):
7709         * lisp.h (maybe_continuable_error_with_frob):
7710         Fix up section comments.
7711         Add new types for char to indicate usage.
7712         Delete symbols auto-generated from general-slots.h.
7713         Add prototypes for structured error functions.
7714         Add long comments describing looping macros and change interface
7715         so that lvalues are automatically declared.
7716         Add NO_DECLARE macro in case callers want to declare lvalues
7717         themselves.
7718
7719         * lread.c (read_syntax_error):
7720         * lread.c (continuable_read_syntax_error):
7721         * lread.c (read_structure):
7722         * lread.c (sequence_reader):
7723         * lread.c (read_list_conser):
7724         * lread.c (read_compiled_function):
7725         Rename syntax_error and continuable_syntax_error to avoid clash
7726         with same-named structured error functions.
7727
7728         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7729         * menubar-msw.c (populate_menu_add_item):
7730         * menubar-msw.c (populate_or_checksum_helper):
7731         [5].
7732         [9].
7733
7734         * menubar-x.c:
7735         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7736         Mule-ize whole file.
7737
7738         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7739
7740         * mule-charset.c (Fmake_charset):
7741         * mule-wnnfns.c (Fwnn_set_param):
7742         [1].
7743
7744         * ntproc.c (create_child):
7745         * ntproc.c (Fwin32_set_current_locale):
7746         Add comments portending doom.
7747
7748         * objects-msw.c:
7749         * objects-msw.c (old_font_enum_callback_2):
7750         * objects-msw.c (font_enum_callback_1):
7751         * objects-msw.c (mswindows_enumerate_fonts):
7752         [5].
7753
7754         * objects-x.c:
7755         * objects-x.c (allocate_nearest_color):
7756         * objects-x.c (x_parse_nearest_color):
7757         * objects-x.c (x_initialize_color_instance):
7758         * objects-x.c (x_print_color_instance):
7759         * objects-x.c (x_finalize_color_instance):
7760         * objects-x.c (x_valid_color_name_p):
7761         * objects-x.c (x_initialize_font_instance):
7762         * objects-x.c (x_print_font_instance):
7763         * objects-x.c (valid_x_font_name_p):
7764         * objects-x.c (truename_via_FONT_prop):
7765         * objects-x.c (truename_via_random_props):
7766         * objects-x.c (truename_via_XListFonts):
7767         * objects-x.c (x_font_truename):
7768         * objects-x.c (x_font_instance_truename):
7769         * objects-x.c (x_font_instance_properties):
7770         * objects-x.c (x_list_fonts):
7771         * objects-x.c (x_find_charset_font):
7772         Mule-ize entire file.
7773         [7].
7774
7775         * objects-x.h:
7776         Mule-verify.
7777
7778         * print.c:
7779         * print.c (std_handle_out_external):
7780         * print.c (debug_print_no_newline):
7781         * print.c (syms_of_print):
7782         Output to all debugger kinds in debug-print.
7783         Fix console-output code under MSWin to actually work.
7784
7785         * process-nt.c (send_signal):
7786         * process-nt.c (nt_create_process):
7787         Use newer Unicode macros.
7788
7789         * process-unix.c (unix_create_process):
7790         * process-unix.c (unix_canonicalize_host_name):
7791         * process-unix.c (unix_open_network_stream):
7792         [7].
7793
7794         * scrollbar-x.c:
7795         Mule-verify.
7796
7797         * search.c (syms_of_search):
7798         [2].
7799
7800         * select-msw.c (mswindows_destroy_selection):
7801         Use LIST_LOOP_2.
7802
7803         * select-x.c (symbol_to_x_atom):
7804         [7].
7805
7806         * select.c (syms_of_select):
7807         [2].
7808
7809         * sound.c (Fplay_sound_file):
7810         [7].
7811
7812         * specifier.c:
7813         * specifier.c (decode_specifier_type):
7814         * specifier.c (Fvalid_specifier_locale_type_p):
7815         * specifier.c (check_valid_locale_or_locale_type):
7816         * specifier.c (decode_locale):
7817         * specifier.c (decode_locale_type):
7818         * specifier.c (decode_locale_list):
7819         * specifier.c (check_valid_domain):
7820         * specifier.c (decode_specifier_tag_set):
7821         * specifier.c (Fcanonicalize_tag_set):
7822         * specifier.c (Fdefine_specifier_tag):
7823         * specifier.c (Fspecifier_tag_predicate):
7824         * specifier.c (check_valid_inst_list):
7825         * specifier.c (check_valid_spec_list):
7826         * specifier.c (decode_how_to_add_specification):
7827         * specifier.c (check_modifiable_specifier):
7828         * specifier.c (specifier_add_spec):
7829         * specifier.c (boolean_validate):
7830         * specifier.c (display_table_validate):
7831         [9].
7832
7833         * specifier.c (syms_of_specifier):
7834         Move some symbols to general-slots.h.
7835         [2].
7836
7837         * symbols.c:
7838         * symbols.c (Fmapatoms):
7839         * symbols.c (Fapropos_internal):
7840         Add GCPROs.
7841
7842         * symbols.c (set_default_buffer_slot_variable):
7843         * symbols.c (set_default_console_slot_variable):
7844         [1].
7845
7846         * symbols.c (defsymbol_massage_name_1):
7847         * symbols.c (defkeyword_massage_name):
7848         * symbols.c (deferror_1):
7849         * symbols.c (deferror):
7850         * symbols.c (deferror_massage_name_and_message):
7851         * symeval.h:
7852         * symeval.h (DEFSYMBOL):
7853         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7854
7855         * symbols.c (syms_of_symbols):
7856         [2].
7857
7858         * symsinit.h:
7859         * symsinit.h (init_win32): New.
7860         Also new is syms_of_dialog_mswindows.
7861
7862         * syswindows.h:
7863         Add new Unicode macros, missing Cygwin wide-char functions,
7864         convenience conversion macros for Qmswindows_tstr, macros for
7865         encapsulating required MSWin <-> Cygwin filename conversions,
7866         prototype for dynamically-extracted (not in NT 3.51) functions.
7867
7868         * toolbar-x.c:
7869         Mule-verify.
7870
7871         * tooltalk.c (Fadd_tooltalk_message_arg):
7872         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7873         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7874         [7].
7875
7876         * tooltalk.c (syms_of_tooltalk):
7877         [2].
7878
7879         * unexnt.c:
7880         * unexnt.c (unexec):
7881         Fix up headers, declaration of unexec() to be more standard.
7882
7883 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7884
7885         * offix.h: Revert change to guard macros - they're used in offix.c!
7886
7887 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7888
7889         * lisp.h: Defsubred Fdelete.
7890
7891         * console-msw.h:  (msprinter_default_printer): Added.
7892
7893         * console-msw.c (msprinter_canonicalize_console_connection):
7894         (msprinter_canonicalize_device_connection): Added.
7895
7896         * device-msw.c (msprinter_default_printer):
7897         (Fmswingows_get_default_printer):
7898         (signal_enum_priner_error):
7899         (Fmswingows_printer_list): Added.
7900
7901 2000-07-19  Martin Buchholz <martin@xemacs.org>
7902
7903         * XEmacs 21.2.35 is released.
7904
7905 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7906
7907         * select-x.c (x_handle_selection_request):
7908         Text selected in xemacs and pasted into xterm failed to appear.
7909         Spelling fixes and cosmetic changes.
7910
7911 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7912
7913         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7914         XEmacs frame (fix for doubling chars in dialog boxes).
7915
7916 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7917
7918         * select.c (select_convert_in, select_convert_out):
7919         Don't call intern() every time.
7920
7921         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7922         * select.c (vars_of_select): Initialise them.
7923
7924 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7925
7926         * select.c (selection-coercible-types): New.
7927
7928         * select.c (own-selection-internal):
7929         * select.c (get-selection-internal):
7930         MULE bug fix - these should default to COMPOUND_TEXT and not
7931         STRING for MULE. I think.
7932
7933         * select.c (select_convert_out): Use selection-coercible-types
7934         to find types that we can attempt to perform coercions on.
7935
7936 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7937
7938         * mule-wnnfns.c:
7939         * mule-canna.c:
7940         Add coding: cookie to identify encoding.
7941
7942         * mule-canna.c (CANNA_mode_keys): make static.
7943         Use proper prototypes, even for functions of no arguments.
7944         Remove external prototype for Fding().
7945
7946         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7947
7948         * select.c (syms_of_select): Add missing DEFSUBR.
7949
7950 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7951
7952         * select.c (get_selection_internal, own_selection_internal):
7953         Make the type default to STRING, rather than placing a nil type
7954         into Vselection_alist.
7955
7956 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7957
7958         * gpmevent.c (tty_selection_exists_p):
7959         * gpmevent.c (tty_own_selection):
7960         Updated parameter lists.
7961
7962 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7963
7964         * select.h (selection-alist): Removed declaration.
7965
7966         * select.h (get_local_selection):
7967         * select.c (get_local_selection):
7968         Made static.
7969
7970         * select.h (convert_selection): Removed declaration.
7971         * select.c (convert_selection): Removed.
7972         This function belongs in Lisp.
7973
7974         * select.h (select_convert_in): Declare.
7975         * select.h (select_convert_out): Declare.
7976         * select.c (select_convert_in): New.
7977         * select.c (select_convert_out): New.
7978         New conversion functions for other files to call.
7979
7980         * select.h (select_notify_buffer_kill): Declare.
7981         * select.c (select_notify_buffer_kill): New.
7982         New functions that get called from kill-buffer.
7983
7984         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7985         X-specific lisp code.
7986
7987         * select.h: Declare some of the lisp-visible functions for
7988         external use.
7989
7990         * select.c (clean_local_selection_data): Removed. This was
7991         a disgusting function, and previously should have been in
7992         select-x.c in any case. The functionality is now provided
7993         in select-convert-from-integer (select.el).
7994
7995         * select.c (available-selection-types): Fixed stupidity where
7996         INTEGER and ATOM got added twice. Also add STRING when we see an
7997         extent.
7998
7999         * select.c (get-selection-internal): Removed symbol stripping. No
8000         longer causes conversion when data comes from the internal cache.
8001
8002         * select.c (syms_of_select): Added new functions.
8003
8004         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
8005         error checking - previously this called abort!
8006
8007         * select-x.c (x_own_selection): Changed comment.
8008
8009         * select-x.c (x_handle_selection_request): Use select_convert_out.
8010         Don't mess with selection-alist; it's an internal variable of select.c.
8011
8012         * select-x.c (x_get_foreign_selection): Use select_convert_in.
8013
8014         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
8015         rather than messing with selection-alist.
8016
8017         * select-msw.c (mswindows_get_foreign_selection):
8018         Use TO_INTERNAL_FORMAT rather than hacking.
8019
8020 2000-07-14  Martin Buchholz  <martin@xemacs.org>
8021
8022         * process-unix.c (unix_open_multicast_group):
8023         (unix_open_multicast_group): Remove useless casts.
8024
8025 2000-07-13  Martin Buchholz  <martin@xemacs.org>
8026
8027         * sound.c (Fplay_sound): Fix `unused variable' warning.
8028
8029         * emacs.c (main): Use correct type for _environ on SCO5.
8030
8031 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
8032
8033         * console.h (own_selection_method):
8034         * console.h (selection_exists_p_method):
8035         * console.h (available_selection_types_method): New.
8036         * console.h (register_selection_data_type_method): New.
8037         * console.h (selection_data_type_name): New.
8038
8039         * console-msw.h (mswindows_destroy_selection): Declare it.  New
8040         function & alist to track GlobalAlloc()'d handles that need
8041         releasing when the clipboard data gets replaced or emptied.
8042
8043         * event-msw.c (mswindows_wnd_proc): Call it.
8044
8045         * lisp.h, general.c (Qappend): New symbol representing a
8046         `how-to-add' mode.
8047
8048         * select.c (own-selection-internal):
8049         * select.c (selection-exists-p):
8050         * select.c (available-selection-types): New.
8051         * select.c (register-selection-data-type): New.
8052         * select.c (selection-data-type-name): New.  New functions to deal
8053         with device-specific selection data formats.
8054         * select.c (selection-converter-out-alist): Renamed.
8055         * select.c (selection-converter-in-alist): New.
8056         * select.c (selection-appender-alist): New.  Added new alists.
8057         * select.c (syms_of_select, vars_of_select): Added new symbols &
8058         variables.
8059         * select.c (get_local_selection): Split.
8060         * select.c: Removed spurious type checking - selections may now be
8061         of any type, not just strings.
8062         * select.c (own-selection-internal):
8063
8064         * select.h, select.c (convert_selection): New. Created
8065         convert_selection() function based on get_local_selection().
8066         * select.h, select.c (QCF_*): New symbols representing mswindows
8067         clipboard formats.
8068         * select.h, select.c (Qreplace_all, Qreplace_existing): New
8069         symbols representing `how-to-add' modes.
8070
8071         * select-msw.c (x_sym_p): New.
8072         * select-msw.c (symbol_to_ms_cf): New.
8073         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
8074         symbols & clipboard formats. Can also handle string names.
8075         * select-msw.c (mswindows_own_selection):
8076         * select-msw.c (mswindows_selection_exists_p):
8077         Added `data-type' parameter. Use it.
8078         * select-msw.c (mswindows_available_selection_types): New.
8079         * select-msw.c (mswindows_register_selection_data_type): New.
8080         * select-msw.c (mswindows_selection_data_type_name): New.
8081         * select-msw.c (mswindows_own_selection):
8082         * select-msw.c (mswindows_get_foreign_selection):
8083         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
8084         * select-msw.c (console_create_select_mswindows): Added new methods.
8085         * select-msw.c (mswindows_destroy_selection): New.
8086         * select-msw.c (Vhandle_alist): New list.
8087         * select-msw.c (mswindows_own_selection):
8088
8089         * select-x.c (x_own_selection):
8090         * select-x.c (x_selection_exists_p):
8091         * select-x.c: Added some comments about maybe using new
8092         functionality.
8093         * select-x.c (x_own_selection):
8094
8095         * specifier.c: Remove definition of Qappend (now in general.c)
8096         * specifier.c (syms_of_specifier): Remove Qappend.
8097
8098 2000-07-12  Martin Buchholz  <martin@xemacs.org>
8099
8100         * config.h.in: Add socklen_t.
8101
8102         * s/decosf4-0.h: No special compiler flags needed or desired.
8103         In particular, undefine _BSD for DEC OSF 4.0.
8104
8105 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8106
8107         * redisplay-msw.c (msprinter_frame_output_end): Added.
8108         (console_type_create_redisplay_mswindows): Referred the above.
8109
8110         * frame.c (setup_frame_without_minibuffer): Do not create a
8111         default minibuffer frame on a printer device.
8112
8113         * frame-msw.c (apply_dc_geometry): Added.
8114         (msprinter_start_page):
8115         (msprinter_init_frame_3):
8116         (msprinter_eject_page): Use it.
8117
8118         * console-msw.h (struct msprinter_frame): Added pix_left and top,
8119         and removed residual duplex and orientation properties.
8120
8121 2000-07-11  Martin Buchholz  <martin@xemacs.org>
8122
8123         * eval.c (function_argcount): Work around a DEC CC compiler bug.
8124
8125         * unexalpha.c: Remove system prototypes from C sources!
8126
8127 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
8128
8129         * eval.c: Remove references to M-x edit-options in DEFUNs for
8130         `defvar' and `defconst'.
8131
8132 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8133
8134         * config.h.in: Remove SMART_INCLUDE hackery.
8135
8136         PostgreSQL hacking:
8137         * config.h.in: Don't use SMART_INCLUDE.
8138
8139         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8140         * inline.c: Simply #include "postgresql.h"
8141         * postgresql.c:
8142         - Don't use SMART_INCLUDE
8143         - Use simply "const".
8144         - Use standard doc string conventions.
8145         - Use correct type for result of PQstatus.
8146
8147 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8148
8149         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8150
8151         C++ compilation changes.
8152         * config.h.in (EXTERN_C): Define.
8153         * config.h.in (not): This is also a C++ keyword.
8154         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8155         * cm.c: Use EXTERN_C.
8156         * redisplay-tty.c: Use EXTERN_C.
8157         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8158
8159 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8160
8161         * general.c: Remove duplicate definition for Qfunction.
8162
8163 2000-07-08  Ben Wing  <ben@xemacs.org>
8164
8165         * device-msw.c (msprinter_init_device):
8166         * device-msw.c (sync_printer_with_devmode):
8167         * device-msw.c (handle_devmode_changes):
8168         * device-msw.c (print_dialog_worker):
8169         * device-msw.c (Fmsprinter_apply_settings):
8170         * device-msw.c (hash_devmode):
8171         * device-msw.c (Fmsprinter_settings_despecialize):
8172         use Qmswindows_tstr, not Qctext.
8173
8174         * vm-limit.c (check_memory_limits):
8175         avoid infinite loop printing warning messages.
8176
8177 2000-07-05  Craig Lanning  <lanning@scra.org>
8178
8179         * Makefile.in.in: Add support for including the Windows resources
8180         when building with the cygwin and mingw targets.
8181
8182         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8183         not set or not correct.
8184         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8185         (init_initial_directory): Don't try to use $PWD on the
8186         WIN32_NATIVE target.
8187
8188         * s\cygwin32.h:
8189         [[Add -mwindows to eliminate console window.]] not required --ben
8190         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8191         (MAIL_USE_POP): removed; now handled by configure.
8192
8193         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8194         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8195         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8196         (MAIL_USE_POP): removed; now handled by configure.
8197         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8198         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8199         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8200         constant string.
8201         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8202         up from <winsock.h> via systime.h.
8203         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8204         (getpagesize): from Dan Holmsand, added.
8205         Added #endif which was left dangling by Ben's mega patch; added
8206         comment to help prevent this in the future.
8207
8208         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8209
8210 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8211
8212         * console-msw.h (struct mswindows_device): Removed unnecessary
8213         cached device geometry values.
8214         Added update_tick and an accessor macro.
8215         (Lisp_Devmode): Added lrecord declaration.
8216         (struct msprinter_device): Contain devmode as a Lisp object.
8217         Added mswindows_get_selected_frame_hwnd();
8218
8219         * console.h (struct console_methods): Indentation nitpicking.
8220
8221         * device-msw.c (mswindows_init_device): Do not initialize geometry
8222         cache. Initialize update tick.
8223         (mswindows_device_system_metrics): Ask the device for its geometry.
8224         (global_free_2_maybe):
8225         (devmode_to_hglobal):
8226         (handle_printer_changes):
8227         (ensure_not_printing):
8228         (print_dialog_worker):
8229         (Fmsprinter_print_setup_dialog):
8230         (Fmsprinter_print_dialog):
8231         (plist_get_margin):
8232         (plist_set_margin):
8233         (Fmsprinter_page_setup_dialog): Added functions.
8234         (sync_printer_with_devmode):
8235         (handle_devmode_changes):
8236         (Fmsprinter_get_settings):
8237         (Fmsprinter_select_settings):
8238         (Fmsprinter_apply_settings):
8239         (allocate_devmode):
8240         (Fmsprinter_settings_copy):
8241         (Fmsprinter_settings_despecialize):
8242         (print_devmode):
8243         (finalize_devmode):
8244         (equal_devmode):
8245         (hash_devmode): Added functions
8246         (syms_of_device_mswindows): Init devmode lrecord class.
8247
8248         * device.h: Added an exfun for find-device.
8249
8250         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8251         geometry; although, recreate the device compatible DC.
8252
8253         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8254         (msprinter_init_frame_3):
8255         (msprinter_frame_property):
8256         (msprinter_internal_frame_property_p):
8257         (msprinter_frame_properties):
8258         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8259         print job properties (will move to device settings).
8260
8261         * lisp.h: Added symbols.
8262
8263         * general.c (syms_of_general): Declared them.
8264
8265         * hash.c (string_hash): Added.
8266
8267         * lrecord.h (lrecord_type): Added devmode lrecord type.
8268
8269 2000-07-02  Mike Sperber <mike@xemacs.org>
8270
8271         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8272         FreeBSD 4.0.
8273
8274 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8275
8276         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8277         integer.
8278
8279 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8280
8281         * data.c (Fstring_to_number): Don't recognize floating point if
8282         base is not 10.
8283
8284 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8285
8286         * glyphs-widget.c (tab_control_query_geometry):
8287         (widget_query_geometry):
8288         (button_query_geometry):
8289         * glyphs.c (text_query_geometry):
8290         Enforce type correctness.
8291
8292 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8293
8294         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8295         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8296
8297 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8298
8299         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8300         conflicts with gcc's fixincluded version of FOO.h.
8301
8302         * glyphs.h (image_instance_geometry): Remove trailing `,'
8303
8304 2000-06-08  Mike Alexander  <mta@arbortext.com>
8305
8306         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8307         (shove_thread): Don't write the same output twice
8308         (make_ntpipe_output_stream): Increase priority of shove thread
8309         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8310         chance to run
8311         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8312         it.
8313
8314 2000-06-12  Ben Wing  <ben@xemacs.org>
8315
8316         * s\mingw32.h (sigset):
8317         * s\windowsnt.h (sigset):
8318         rename msw_ to mswindows_ for consistency with general convention.
8319
8320 2000-06-12  Ben Wing  <ben@xemacs.org>
8321
8322         * console-msw.c:
8323         * console-msw.c (mswindows_get_console_hwnd):
8324         * console-msw.c (mswindows_ensure_console_allocated):
8325         * console-msw.c (mswindows_hide_console):
8326         * console-msw.c (mswindows_show_console):
8327         * console-msw.c (mswindows_ensure_console_buffered):
8328         * console-msw.c (mswindows_output_console_string):
8329         * console-msw.c (mswindows_windows9x_p):
8330         * console-msw.h:
8331         * device-msw.c (mswindows_get_workspace_coords):
8332         * device-msw.c (mswindows_device_system_metrics):
8333         * dialog-msw.c (mswindows_popup_dialog_box):
8334         * event-msw.c (mswindows_wnd_proc):
8335         * frame-msw.c (mswindows_size_frame_internal):
8336         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8337         * menubar-msw.c (displayable_menu_item):
8338         * menubar-msw.c (mswindows_char_is_accelerator):
8339         * nt.c:
8340         * nt.c (mswindows_sigset):
8341         * nt.c (mswindows_sigrelse):
8342         * nt.c (mswindows_sigpause):
8343         * nt.c (mswindows_raise):
8344         * nt.c (timer_proc):
8345         * ntproc.c:
8346         * ntproc.c (find_child_console):
8347         * ntproc.c (sys_kill):
8348         * print.c:
8349         * print.c (std_handle_out_external):
8350         * process-nt.c (find_child_console):
8351         * process-nt.c (send_signal_the_95_way):
8352         * process-nt.c (ensure_console_window_exists):
8353         * process-nt.c (nt_create_process):
8354         * syssignal.h:
8355         rename msw_ to mswindows_ for consistency with general convention.
8356
8357         * emacs.c:
8358         * dumper.c:
8359         include nt.h, not syswindows.h.
8360
8361         * nt.c (mswindows_fstat):
8362         * nt.c (mswindows_stat):
8363         prefix mswindows_ instead of attempting to directly override the
8364         library functions.  fix declarations.
8365
8366         * nt.h:
8367         include syswindows.h.  move some sysdep.h stuff here.
8368
8369         * ntheap.h:
8370         include syswindows.h, not <windows.h>.
8371
8372         * ntplay.c:
8373         clean up headers.
8374
8375         * sysdep.c:
8376         clean up headers.
8377
8378         * sysdep.c (sys_fstat):
8379         * sysdep.c (sys_stat):
8380         call mswindows versions when appropriate.
8381
8382         * sysdep.h:
8383         move mswin decls to nt.h.
8384
8385         * syswindows.h:
8386         add long comment describing appropriate use of the various windows
8387         headers.
8388
8389 2000-06-11  Ben Wing  <ben@xemacs.org>
8390
8391         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8392
8393 2000-06-10  Ben Wing  <ben@xemacs.org>
8394
8395         * Makefile.in.in (release):
8396         Correction to make sure xemacs.exe always dumped when correct.
8397
8398         * alloca.c:
8399         * balloon_help.c:
8400         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8401
8402         * buffer.c (set_buffer_internal):
8403         [[[[2]]]]: Remove HAVE_FEP code.
8404
8405         * buffer.c (init_initial_directory):
8406         [3].
8407
8408         * bytecode.c:
8409         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8410         individual files.
8411
8412         * callproc.c:
8413         * callproc.c (call_process_cleanup):
8414         * callproc.c (Fold_call_process_internal):
8415         * callproc.c (child_setup):
8416         * callproc.c (getenv_internal):
8417         * callproc.c (init_callproc):
8418         * callproc.c (vars_of_callproc):
8419         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8420         __CYGWIN32__ -> CYGWIN.
8421         DOS_NT -> WIN32_NATIVE.
8422         Remove MSDOS support/references, converting to WIN32_NATIVE
8423           where correct.
8424         __MINGW32__ -> MINGW.
8425         Fix windows.h includes.
8426         Remove bogus HAVE_NTGUI.
8427
8428         * config.h.in:
8429         [2].
8430
8431         * console-msw.c:
8432         mswindows_message_outputted added for use in allowing startup
8433         errors on the console to be seen.
8434
8435         * console-msw.c (msw_ensure_console_allocated):
8436         * console-msw.c (msw_output_console_string):
8437         * console-msw.c (DHEADER):
8438         * console-msw.c (DOPAQUE_DATA):
8439         * console-msw.c (DEVENT):
8440         * console-msw.c (DCONS):
8441         * console-msw.c (DCONSCDR):
8442         * console-msw.c (DSTRING):
8443         * console-msw.c (DVECTOR):
8444         * console-msw.c (DSYMBOL):
8445         * console-msw.c (DSYMNAME):
8446         Fix warnings.
8447
8448         * console-stream.c (stream_init_console):
8449         Fix text/binary problems.
8450
8451         * device-msw.c:
8452         * device-msw.c (mswindows_finish_init_device):
8453         * device-msw.c (mswindows_delete_device):
8454         [1].
8455
8456         * device.c (handle_asynch_device_change):
8457         [3].
8458
8459         * dgif_lib.c:
8460         * dgif_lib.c (DGifOpenFileName):
8461         * dgif_lib.c (DGifOpenFileHandle):
8462         * dgif_lib.c (DGifGetLine):
8463         * dgif_lib.c (DGifGetPixel):
8464         Added config.h/lisp.h, fix up includes.
8465         [1].
8466
8467         * dired-msw.c:
8468         [4].
8469
8470         * dired.c:
8471         * dired.c (file_name_completion):
8472         * dired.c (Ffile_attributes):
8473         * dired.c (syms_of_dired):
8474         [1].
8475
8476         * dumper.c:
8477         * dumper.c (pdump_file_unmap):
8478         * dumper.c (pdump_load):
8479         [1].
8480
8481         * editfns.c:
8482         * editfns.c (Ftemp_directory):
8483         * editfns.c (user_login_name):
8484         * editfns.c (Fuser_real_login_name):
8485         * editfns.c (get_home_directory):
8486         [1].
8487
8488         * elhash.c (finish_marking_weak_hash_tables):
8489         [[[[5]]]]: Fix GCC warnings.
8490
8491         * emacs.c:
8492         * emacs.c (mswindows_handle_hardware_exceptions):
8493         * emacs.c (make_arg_list_1):
8494         * emacs.c (main_1):
8495         * emacs.c (Fkill_emacs):
8496         * emacs.c (Fdump_emacs):
8497         [1].
8498         Fix problems with nested crashes, add long comment.
8499
8500         * event-Xt.c (init_event_Xt_late):
8501         [1].
8502
8503         * event-msw.c:
8504         * event-msw.c (mswindows_dde_callback):
8505         * event-msw.c (mswindows_handle_sticky_modifiers):
8506         * event-msw.c (mswindows_wnd_proc):
8507         [1].
8508         [5].
8509
8510         * events.c (character_to_event):
8511         [1].
8512
8513         * fileio.c:
8514         * fileio.c (Ffile_name_directory):
8515         * fileio.c (Ffile_name_nondirectory):
8516         * fileio.c (directory_file_name):
8517         * fileio.c (Fexpand_file_name):
8518         * fileio.c (Fsubstitute_in_file_name):
8519         * fileio.c (Ffile_name_absolute_p):
8520         * fileio.c (check_executable):
8521         * fileio.c (Ffile_readable_p):
8522         * fileio.c (Ffile_accessible_directory_p):
8523         * fileio.c (Ffile_modes):
8524         * fileio.c (Funix_sync):
8525         * fileio.c (vars_of_fileio):
8526         [1]. [4].
8527
8528         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8529
8530         Expand getdefdir defn.
8531         Fix bogus rename() comment.
8532
8533         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8534         to use standard XEmacs include files, e.g. sysfile.h, rather
8535         than system-specific includes.
8536
8537         * fns.c:
8538         * fns.c (Fsubseq):
8539         [5]. [6].
8540
8541         * frame.c (vars_of_frame):
8542         [1].
8543
8544         * getloadavg.c:
8545         * getloadavg.c (getloadavg):
8546         [1]. [6].
8547         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8548         (We don't use it elsewhere in the code; just add a comment.)
8549
8550         * gif_io.c:
8551         [6].
8552         Add config.h.
8553
8554         * glyphs-msw.c:
8555         * glyphs-msw.c (mswindows_resource_instantiate):
8556         [1].
8557
8558         * glyphs-x.c (x_native_layout_instantiate):
8559         [5].
8560
8561         * gui-msw.c (Fmswindows_shell_execute):
8562         [1].
8563
8564         * insdel.c:
8565         [4].
8566
8567         * lisp.h:
8568         [4]. [5].
8569
8570         * lread.c (locate_file_in_directory_mapper):
8571         [1].
8572
8573         * lstream.c:
8574         [4].
8575
8576         * mem-limits.h:
8577         * mem-limits.h (get_lim_data):
8578         [1].
8579
8580         * menubar-msw.c:
8581         [4].
8582
8583         * ndir.h:
8584         [1].
8585
8586         * nt.c:
8587         * nt.c (getwd):
8588         * nt.c (closedir):
8589         * nt.c (rva_to_section):
8590         * nt.c (mswindows_executable_type):
8591         [1]. [6].
8592         Fix closedir() defn.
8593
8594         * nt.h:
8595         [[[[8]]]]: *_OK defs moved to sysfile.h.
8596
8597         * ntproc.c:
8598         [6]. [7].
8599
8600         * objects-x.c:
8601         [4].
8602
8603         * print.c:
8604         * print.c (std_handle_out_external):
8605         [1]. [4].
8606
8607         * process-nt.c:
8608         * process-nt.c (nt_create_process):
8609         [6].
8610         try to fix process quoting somewhat.
8611
8612         * process-unix.c (unix_create_process):
8613         [1].
8614
8615         * process.c:
8616         * process.c (vars_of_process):
8617         Add Vnull_device.
8618
8619         * process.h:
8620         [1].
8621
8622         * realpath.c:
8623         * realpath.c (xrealpath):
8624         [1].
8625
8626         * redisplay-tty.c (init_tty_for_redisplay):
8627         [3].
8628
8629         * redisplay.c:
8630         [4]. [6].
8631
8632         * scrollbar-msw.c:
8633         [4].
8634
8635         * sheap.c:
8636         * sheap.c (more_static_core):
8637         * sheap.c (report_sheap_usage):
8638         [5]. [6].
8639
8640         * signal.c:
8641         * signal.c (alarm_signal):
8642         [1]. [6].
8643
8644         * sound.c:
8645         [6].
8646
8647         * strftime.c:
8648         * strftime.c (zone_name):
8649         [1]. [5].
8650
8651         * symsinit.h (init_sunpro):
8652         [1].
8653
8654         * syscommctrl.h:
8655         commctrl.h not in Cygwin b20.1.
8656
8657         * sysdep.c:
8658         * sysdep.c (endif):
8659         * sysdep.c (sys_subshell):
8660         * sysdep.c (init_baud_rate):
8661         * sysdep.c (emacs_get_tty):
8662         * sysdep.c (emacs_set_tty):
8663         * sysdep.c (tty_init_sys_modes_on_device):
8664         * sysdep.c (init_system_name):
8665         * sysdep.c (sys_open):
8666         * sysdep.c (interruptible_open):
8667         * sysdep.c (sys_fopen):
8668         * sysdep.c (sys_mkdir):
8669         * sysdep.c (sys_rename):
8670         * sysdep.c (get_process_times_1):
8671         [1]. [6].
8672
8673         * sysdep.h:
8674         [1].
8675
8676         * sysdir.h:
8677         * sysdir.h (DIRENTRY_NONEMPTY):
8678         [1]. [6].
8679
8680         * sysdll.c (dll_init):
8681         * sysdll.h:
8682         [1].
8683
8684         * sysfile.h:
8685         [1]. [6]. [8].
8686         added text/binary defs.
8687
8688         * sysfloat.h:
8689         [1].
8690
8691         * sysproc.h:
8692         * sysproc.h (EDESTADDRREQ):
8693         * sysproc.h (poll_fds_for_input):
8694         [1]. [6].
8695
8696         * syspwd.h:
8697         [6].
8698
8699         * syssignal.h:
8700         [1].
8701
8702         * systime.h:
8703         [1]. [6].
8704
8705         * systty.h:
8706         [1].
8707
8708         * syswindows.h:
8709         [1].
8710         Always define WIN32_LEAN_AND_MEAN.
8711
8712         * unexcw.c (unexec):
8713         [5].
8714
8715         * unexec.c:
8716         * unexec.c (copy_text_and_data):
8717         * unexec.c (adjust_lnnoptrs):
8718         [1].
8719
8720         * unexnt.c:
8721         * unexnt.c (_start):
8722         [1].
8723
8724 2000-06-07  Ben Wing  <ben@xemacs.org>
8725
8726         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8727         was used only as a model.  We've long since extracted any useful
8728         logic or code out of this. (I just did an exhaustive search.)
8729
8730         * s\msdos.h: Removed.
8731
8732         * s\windows95.h: Removed.
8733
8734 2000-06-10  Ben Wing  <ben@xemacs.org>
8735
8736         * s\cygwin32.h:
8737         [1]. [5].
8738         Don't use extern with fun defs.
8739
8740         * s\mingw32.h:
8741         [1]. [7].
8742         Remove nt\inc include.
8743         Remove getdisk, getdefdir. (The former is unused, the latter
8744         expanded in fileio.h.)
8745
8746         * s\windowsnt.h:
8747         * s\windowsnt.h (WIN32_NATIVE):
8748         * s\windowsnt.h (HAVE_STRCASECMP):
8749         [1]. [7].
8750         Add long comment about preprocessor changes.
8751         Remove getdisk, getdefdir. (The former is unused, the latter
8752         expanded in fileio.h.)
8753
8754 2000-06-10  Ben Wing  <ben@xemacs.org>
8755
8756         * m\arm.h:
8757         * m\delta.h:
8758         * m\intel386.h:
8759         * m\sequent.h:
8760         * m\template.h:
8761         * m\windowsnt.h:
8762         [1].
8763         Remove bogus/unused NO_SOCK_SIGIO.
8764
8765 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8766
8767         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8768         not an Emchar.
8769
8770 2000-06-04  Mike Sperber <mike@xemacs.org>
8771
8772         * casetab.c (set_case_table): For `set-standard-case-table',
8773         actually deposit the new case tables where the rest of XEmacs can
8774         see them.
8775
8776 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8777
8778         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8779
8780 2000-06-05  Ben Wing  <ben@xemacs.org>
8781
8782         * callproc.c (child_setup): Don't do close_load_descs() under
8783         MS Windows.  Put in a comment explaining why.
8784
8785 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8786
8787         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8788         Toolkit shell" which breaks `kill-compilation' on Windows NT
8789         native, retaining STDERR handling improvements.
8790
8791 2000-06-01  Andreas Jaeger  <aj@suse.de>
8792
8793         * s/s390.h: Support for S390, based on a patch by Martin
8794         Schwidefsky <schwidefsky@de.ibm.com>.
8795
8796 2000-05-30  Andy Piper  <andy@xemacs.org>
8797
8798         * window.c (allocate_window):
8799         (make_dummy_parent):
8800         (Fset_window_configuration): use new hashtable type.
8801
8802         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8803         (struct image_instantiator_methods):
8804         (struct Lisp_Image_Instance): make instance geometry signed.
8805
8806         * glyphs.c (instantiate_image_instantiator):
8807         (image_instance_query_geometry):
8808         (image_instance_layout):
8809         (image_instance_layout):
8810         (query_string_geometry):
8811         (text_query_geometry):
8812         (image_instantiate):
8813         (image_instantiate):
8814         (cache_subwindow_instance_in_frame_maybe):
8815         (subwindow_query_geometry): make instance geometry signed.
8816
8817         * glyphs-widget.c (widget_query_geometry):
8818         (widget_layout):
8819         (button_query_geometry):
8820         (tree_view_query_geometry):
8821         (tab_control_query_geometry):
8822         (layout_query_geometry):
8823         (layout_layout):
8824         (native_layout_layout): make instance geometry signed.
8825
8826 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8827
8828         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8829         constant.
8830
8831         * general.c (syms_of_general): Add Qfull_assoc symbol.
8832
8833         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8834         correctly.
8835         (decode_weak_list_type): Decode full-assoc type.
8836         (encode_weak_list_type): Encode full-assoc type.
8837         (Fmake_weak_list): Update doc string.
8838
8839 2000-05-30  Andy Piper  <andy@xemacs.org>
8840
8841         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8842
8843         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8844         (decode_hash_table_weakness): ditto.
8845         (Fhash_table_weakness): ditto.
8846         (Fhash_table_type): ditto.
8847         (finish_marking_weak_hash_tables): ditto.
8848         (hash_table_weakness_validate): ditto.
8849         (syms_of_elhash): ditto.
8850
8851 2000-05-28  Martin Buchholz <martin@xemacs.org>
8852
8853         * XEmacs 21.2.34 is released.
8854
8855 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8856
8857         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8858         start cache.
8859         (updating_line_start_cache): Gone.
8860         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8861         generic code to force a minimum of 1 line laid out in the
8862         CMOTION_DISP case.
8863
8864 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8865
8866         * glyphs.c (instantiate_image_instantiator): Check for initialized
8867         height & width no longer special cases IMAGE_NOTHING.
8868         (nothing_instantiate): Set height and width of instance.
8869
8870 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8871
8872         * unexelf.c (unexec): Search for ".data" section.
8873         Initialize new_data2_offset from old_data_index.
8874         Remove redundant check for ElfW.
8875
8876 2000-05-23  Andy Piper  <andy@xemacs.org>
8877
8878         * glyphs.c (get_image_instantiator_governing_domain): allow more
8879         specific domains as the governing domain rather than expecting an
8880         exact match. This fixes problems with layouts.
8881
8882 2000-05-22  Andy Piper  <andy@xemacs.org>
8883
8884         * redisplay-output.c (compare_runes): check for non-images
8885
8886         * glyphs.c (set_glyph_dirty_p): ditto.
8887         (update_glyph_cachel_data): ditto.
8888
8889         * glyphs-widget.c (layout_post_instantiate): ditto.
8890         (layout_post_instantiate): ditto.
8891
8892         * event-msw.c (mswindows_wnd_proc): warning removal.
8893
8894 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8895
8896         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8897
8898         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8899
8900         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8901
8902         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8903         (mswindows_executable_type): mingw32 now has enough headers for
8904         this to work.
8905
8906 2000-05-20  Andy Piper  <andy@xemacs.org>
8907
8908         * console-msw.c (mswindows_output_last_error): ; -> ,
8909
8910 2000-05-12  Andy Piper  <andy@xemacs.org>
8911
8912         * console-msw.c (FROB): compare ints with ints.
8913
8914 2000-05-11  Andy Piper  <andy@xemacs.org>
8915
8916         * glyphs-x.c (x_finalize_image_instance): make minimal build
8917         happy.
8918
8919 2000-05-20  Ben Wing  <ben@xemacs.org>
8920
8921         * event-Xt.c:
8922         * event-Xt.c (vars_of_event_Xt):
8923         move modifier-keys-are-sticky to event-stream.c.
8924
8925         * event-msw.c:
8926         * event-msw.c (mswindows_enqueue_mouse_button_event):
8927         * event-msw.c (key_needs_default_processing_p):
8928         * event-msw.c (XEMSW_LCONTROL):
8929         * event-msw.c (mswindows_handle_sticky_modifiers):
8930         * event-msw.c (FROB):
8931         * event-msw.c (clear_sticky_modifiers):
8932         * event-msw.c (output_modifier_keyboard_state):
8933         * event-msw.c (output_alt_keyboard_state):
8934         * event-msw.c (mswindows_wnd_proc):
8935         * event-msw.c (mswindows_modifier_state):
8936         * event-msw.c (emacs_mswindows_handle_magic_event):
8937         implement sticky modifiers.
8938
8939         * event-stream.c:
8940         * event-stream.c (vars_of_event_stream):
8941         move modifier-keys-are-sticky here.
8942
8943         * lisp.h:
8944         add CHECK_FUNCTION.
8945
8946         * rangetab.c:
8947         implement map-range-table.
8948
8949
8950 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8951
8952         * redisplay-tty.c (reset_tty_modes):
8953         (tty_redisplay_shutdown): Adjust argument type to
8954         tty_frame_output_end.
8955
8956 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8957
8958         * eval.c (Fbacktrace): Don't output a line with only right
8959         parenthesis.
8960
8961 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8962
8963         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8964         (Fpq_reset_poll): Ditto.
8965
8966 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8967
8968         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8969
8970 2000-05-16  Ben Wing  <ben@xemacs.org>
8971
8972         * buffer.c:
8973         * buffer.c (dfc_convert_to/from_internal_format):
8974         * buffer.c (reinit_vars_of_buffer):
8975         Fix conversion functions to allow reentrancy.
8976
8977         * console-msw.c:
8978         * console-msw.c (mswindows_output_last_error):
8979         New fun, generally useful -- output a human-readable
8980         version of GetLastError() on the console.
8981
8982         * console-msw.h:
8983         * console-msw.h (struct mswindows_frame):
8984         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8985
8986         * console-stream.c (stream_output_begin):
8987         * console-stream.c (stream_output_end):
8988         * console-stream.c (stream_output_vertical_divider):
8989         * console-stream.c (stream_clear_region):
8990         * console-stream.c (stream_flash):
8991         * console-stream.c (console_type_create_stream):
8992         Delete blank stream methods, not needed.
8993
8994         * console.h (struct console_methods):
8995         Split begin/end methods into window and frame.
8996
8997         * event-msw.c:
8998         * event-msw.c (mswindows_handle_paint):
8999         * event-msw.c (output_alt_keyboard_state):
9000         * event-msw.c (mswindows_wnd_proc):
9001         * event-msw.c (vars_of_event_mswindows):
9002         Comment about problems with ignored-expose.
9003         Define mswindows-debug-events; not really implemented.
9004
9005         * frame-msw.c (mswindows_init_frame_1):
9006         random cleanups.
9007
9008         * glyphs-msw.c:
9009         * glyphs-msw.c (begin_defer_window_pos):
9010         * glyphs-msw.c (mswindows_unmap_subwindow):
9011         * glyphs-msw.c (mswindows_map_subwindow):
9012         * glyphs-msw.c (mswindows_resize_subwindow):
9013         Use DeferWindowPos to reduce flashing when mapping/unmapping.
9014
9015         * glyphs.c (make_image_instance_1):
9016         Fix crash.
9017
9018         * gutter.c (Fredisplay_gutter_area):
9019         Use new begin/end methods.
9020
9021         * lisp.h (Dynarr_new2):
9022         New creation fun.
9023
9024         * redisplay-msw.c:
9025         * redisplay-msw.c (mswindows_frame_output_begin):
9026         * redisplay-msw.c (mswindows_frame_output_end):
9027         * redisplay-msw.c (console_type_create_redisplay_mswindows):
9028         New begin/end methods -- handle DeferWindowPos.
9029
9030         * redisplay-output.c (redisplay_move_cursor):
9031         * redisplay-output.c (redraw_cursor_in_window):
9032         * redisplay-output.c (redisplay_update_line):
9033         * redisplay-output.c (redisplay_output_window):
9034         New begin/end methods.
9035
9036         * redisplay-tty.c:
9037         * redisplay-tty.c (tty_frame_output_begin):
9038         * redisplay-tty.c (tty_frame_output_end):
9039         * redisplay-tty.c (console_type_create_redisplay_tty):
9040         New begin/end methods.
9041
9042         * redisplay-x.c:
9043         * redisplay-x.c (x_window_output_begin):
9044         * redisplay-x.c (x_window_output_end):
9045         * redisplay-x.c (console_type_create_redisplay_x):
9046         New begin/end methods.
9047
9048         * redisplay.c (redisplay_frame):
9049         * redisplay.c (Fredisplay_echo_area):
9050         New begin/end methods.
9051         use MAYBE_DEVMETH for clear_frame; it may not exist.
9052
9053         * window.h (WINDOW_XFRAME):
9054         WINDOW_XFOO macros -- get locale and decode struct pointer.
9055
9056
9057 2000-05-12  Ben Wing  <ben@xemacs.org>
9058
9059         * emacs.c:
9060         * emacs.c (ensure_no_quitting_from_now_on):
9061         * emacs.c (fatal_error_signal):
9062         * emacs.c (mswindows_handle_hardware_exceptions):
9063         * emacs.c (main):
9064         * emacs.c (Fkill_emacs):
9065         * emacs.c (shut_down_emacs):
9066         * emacs.c (assert_failed):
9067         various improvements in fatal error handling.
9068
9069         * eval.c:
9070         move preparing_for_armageddon to emacs.c.
9071
9072         * lisp.h:
9073         declare fatal_error_in_progress.
9074
9075         * print.c:
9076         * print.c (std_handle_out_external):
9077         * print.c (std_handle_out_va):
9078         * print.c (stderr_out):
9079         * print.c (stdout_out):
9080         use console under mswin when no standard output.
9081         don't do code conversion during fatal error.
9082
9083         * scrollbar.c (Fscrollbar_page_up):
9084         * scrollbar.c (Fscrollbar_page_down):
9085         fix missing else.  reindent.
9086
9087 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
9088
9089         Emergency fix.
9090
9091         * glyphs.h (GLYPH_CACHEL_DESCENT):
9092         (GLYPH_CACHEL_DESCENT):
9093         (GLYPH_CACHEL_DESCENT):
9094         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9095         used in case these are inline functions.
9096         Use more absurd values to error check.
9097
9098         include window.h for error check functions.
9099
9100 2000-05-11  Ben Wing  <ben@xemacs.org>
9101
9102         * cmdloop.c (Freally_early_error_handler):
9103         Display message box under windows; otherwise, message will disappear
9104         before it can be viewed.
9105
9106         * console-msw.c:
9107         * console-msw.c (Fmswindows_message_box):
9108         * console-msw.c (FROB):
9109         * console-msw.c (syms_of_console_mswindows):
9110         Define new fun `mswindows-message-box'.
9111         #### I will merge this into `popup-dialog-box'; just give me
9112         a bit of time.
9113
9114         * general.c:
9115         * general.c (syms_of_general):
9116         Some new symbols used in `mswindows-message-box'.
9117
9118         * glyphs.c:
9119         * glyphs.c (Fset_image_instance_property):
9120         put warning in this fun.
9121
9122         * glyphs.h:
9123         * glyphs.h (GLYPH_CACHEL_WIDTH):
9124         * glyphs.h (GLYPH_CACHEL_ASCENT):
9125         * glyphs.h (GLYPH_CACHEL):
9126         * glyphs.h (GLYPH_CACHEL_GLYPH):
9127         define error-checking versions to try to catch a bug i've seen --
9128         redisplay gets in an infinite loop because the glyph width of the
9129         continuation glyph is 65535.
9130
9131         * lisp.h:
9132         Extern message-box stuff.
9133
9134         * window.c (allocate_window):
9135         * window.c (make_dummy_parent):
9136         * window.c (Fset_window_configuration):
9137         Use EQUAL not EQ for subwindow caches to make them work a bit
9138         better. (Something is still very broken.)
9139
9140
9141 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9142
9143         * glyphs.c (image_instantiate): Suppress gcc warnings.
9144         (Fmake_image_instance): Fix doc string.
9145         * specifier.c (Fmake_specifier): Ditto.
9146
9147 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9148
9149         * paths.h.in (PATH_LOCK): Removed.
9150         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9151         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9152
9153 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9154
9155         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9156         Document (featurep '(and xemacs 21.02)).
9157
9158 2000-05-09  Ben Wing  <ben@xemacs.org>
9159
9160         * buffer.c (complex_vars_of_buffer):
9161         update modeline-format doc.
9162
9163         * device.h:
9164         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9165
9166         * emacs.c:
9167         timeline of all released versions of Emacs, for use in creating
9168         authorship comments and in synching up.
9169
9170         * glyphs-widget.c (image_instantiator_buttons):
9171         * glyphs-widget.c (image_instantiator_edit_fields):
9172         * glyphs-widget.c (image_instantiator_combo_box):
9173         * glyphs-widget.c (image_instantiator_scrollbar):
9174         * glyphs-widget.c (image_instantiator_progress_guage):
9175         * glyphs-widget.c (image_instantiator_tree_view):
9176         * glyphs-widget.c (image_instantiator_tab_control):
9177         * glyphs-widget.c (image_instantiator_labels):
9178         * glyphs-widget.c (image_instantiator_layout):
9179         * glyphs-widget.c (image_instantiator_native_layout):
9180         rename decode_domain method to governing_domain.
9181
9182         * glyphs.c:
9183         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9184         * glyphs.c (add_entry_to_device_ii_format_list):
9185         make sure we don't put an entry more than once into the list.
9186         * glyphs.c (check_instance_cache_mapper):
9187         *************************************************************
9188         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9189         HAVE BEEN GETTING.
9190         *************************************************************
9191         * glyphs.c (get_image_instantiator_governing_domain):
9192         clean up, expand on new concept of governing domain.
9193         * glyphs.c (instantiate_image_instantiator):
9194         * glyphs.c (allocate_image_instance):
9195         use governing_domain instead of cache_domain in naming.
9196         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9197         * glyphs.c (make_image_instance_1):
9198         * glyphs.c (Fmake_image_instance):
9199         allow for any domain (not just device), and process the
9200         governing domain correctly.  very big doc fix.
9201         * glyphs.c (Fimage_instance_domain):
9202         new primitive, to retrieve the governing domain of an image instance.
9203         * glyphs.c (image_instantiate):
9204         use new governing_domain stuff.  this fixes a crash you could get
9205         by instantiating certain widget glyphs in frame locales. (should
9206         signal an error instead of crashing.)
9207         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9208         * glyphs.c (Fglyphp): clean up doc.
9209         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9210         * glyphs.c (syms_of_glyphs):
9211         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9212         * glyphs.c (image_instantiator_format_create): add some comments about
9213         bogus code.
9214         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9215         for current-display-table. (Apparently Hrjove implemented in 1998 a
9216         design I wrote up in 1996, but didn't update the doc string.)
9217
9218         * glyphs.h: clean up a doc string.
9219         * glyphs.h (governing_domain):
9220         * glyphs.h (struct image_instantiator_methods):
9221         changes for governing_domain stuff.
9222
9223         * gutter.c:
9224         * gutter.c (Fgutter_specifier_p):
9225         * gutter.c (Fgutter_size_specifier_p):
9226         * gutter.c (Fgutter_visible_specifier_p):
9227         * objects.c:
9228         * objects.c (Fcolor_specifier_p):
9229         * objects.c (Ffont_specifier_p):
9230         * objects.c (Fface_boolean_specifier_p):
9231         doc strings moved to make-*-specifier.
9232
9233         * redisplay.c (add_disp_table_entry_runes_1):
9234         * redisplay.c (generate_fstring_runes):
9235         * redisplay.c (screen):
9236         add random comments and doc strings.
9237
9238         * specifier.c:
9239         * specifier.c (Fmake_specifier):
9240         major overhaul of this doc string.
9241
9242         * specifier.c (Fvalid_specifier_domain_p):
9243         comment about the bogosity of image instances being domains.
9244         * specifier.c (decode_domain):
9245         now non-static, used in glyphs.c.
9246         * specifier.c (specifier_instance):
9247         comment about the bogosity of image instances being domains.
9248         * specifier.c (Fgeneric_specifier_p):
9249         move doc string to make-generic-specifier.
9250         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9251         rebackslashify.
9252
9253         * specifier.h:
9254         * specifier.h (DOMAIN_FRAME):
9255         * specifier.h (DOMAIN_LIVE_P):
9256         * specifier.h (DOMAIN_XDEVICE):
9257         rebackslashify.
9258         add comments about problems with these macros.
9259         prototype for decode_domain.
9260
9261         * toolbar.c:
9262         * toolbar.c (Ftoolbar_specifier_p):
9263         move doc string to `make-toolbar-specifier'.
9264
9265         * window.c (window_unmap_subwindows_cache_mapper):
9266         *************************************************************
9267         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9268         HAVE BEEN GETTING.
9269         *************************************************************
9270
9271 2000-05-09  Andy Piper  <andy@xemacs.org>
9272
9273         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9274
9275         * window.c (Fset_window_configuration): reset the frame subwindow
9276         cache and re-initialize the window subwindow caches.
9277
9278         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9279
9280 2000-05-09  Ben Wing  <ben@xemacs.org>
9281
9282         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9283         DWORD.
9284
9285 2000-04-26  Mike Woolley  <mike@bulsara.com>
9286
9287         * ntheap.c: Changed recreate_heap to limit the amount reserved
9288         for the heap to that which is actually available. Also now
9289         displays a message box (with some dignostics) in the event that
9290         it still can't start.
9291
9292 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9293
9294         * callproc.c (Fold_call_process_internal): GCPRO path
9295
9296 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9297
9298         Patch by Bill Perry.
9299
9300         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9301         back data instead of #ifdef.
9302         (Fscrollbar_page_down): ditto.
9303
9304 2000-05-07  Ben Wing  <ben@xemacs.org>
9305
9306         * buffer.h:
9307         Kludge for defining Qmswindows_tstr.
9308
9309         * nt.c:
9310         * nt.c (open_input_file):
9311         * nt.c (open_output_file):
9312         * nt.c (rva_to_section):
9313         * nt.c (mswindows_executable_type):
9314         Move all memory-mapped-file routines here (some were in unexnt.c,
9315         which is bad because they are used by process-nt.c, and unexnt
9316         won't be around when portable dumping).  Synched the above routines
9317         with FSF 20.6.
9318
9319         * nt.h:
9320         Removed ifdef'd out bogus code.
9321         Fixed some prototypes.
9322
9323         * nt.h (file_data):
9324         * nt.h (OFFSET_TO_RVA):
9325         * nt.h (RVA_TO_OFFSET):
9326         * nt.h (RVA_TO_PTR):
9327         Moved the memory-mapped-file structures, macros and prototypes
9328         here, to parallel nt.c.  ntheap.h should really be removed
9329         entirely, and it's a non-portable-dumper specific file.
9330
9331         * ntheap.h (round_to_next):
9332         Moved the memory-mapped-file structures, macros and prototypes
9333         to nt.h.
9334
9335         * ntproc.c (compare_env):
9336         Moved rva_to_section and mswindows_executable_type to nt.c.
9337         Moved compare_env to process-nt.c.
9338         ntproc.c will die, one day.
9339
9340         * ntproc.c (sys_spawnve):
9341         Account for win32_ -> mswindows_.
9342
9343         * process-nt.c:
9344         * process-nt.c (struct nt_process_data):
9345         * process-nt.c (ensure_console_window_exists):
9346         * process-nt.c (compare_env):
9347         * process-nt.c (nt_create_process):
9348         * process-nt.c (nt_kill_process_by_pid):
9349         * process-nt.c (syms_of_process_nt):
9350         * process-nt.c (vars_of_process_nt):
9351         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9352         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9353         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9354         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9355         Move compare_env here from ntproc.c.
9356
9357         * process.c (Fprocess_send_region):
9358         Takes an optional fourth argument, BUFFER, which should fix some
9359         problems with call-process.
9360
9361         * syscommctrl.h:
9362         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9363
9364         * syswindows.h:
9365         Move ICC_BAR_CLASSES to syscommctrl.h.
9366         Add preliminary macros for MSWindows/Mule.  More to come.
9367
9368         * unexnt.c:
9369         * unexnt.c (unexec):
9370         open_output_file moved to nt.c.
9371
9372
9373 2000-05-05  Andy Piper  <andy@xemacs.org>
9374
9375         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9376         instance from the frame cache also since GC may catch up too late
9377         to make frame deletion sane.
9378
9379 2000-05-04  Andy Piper  <andy@xemacs.org>
9380
9381         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9382         (x_finalize_image_instance): ungcpro on deletion.
9383
9384         * glyphs.c (image_instantiator_format_create): give pointers a
9385         query geometry method so that the geometry is at least set.
9386
9387         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9388         initialize layouts if using widgets.
9389
9390 2000-05-03  Andy Piper  <andy@xemacs.org>
9391
9392         * nt.c: remove bogus reference to sysmmsystem.h
9393
9394         * gui-x.c (popup_selection_callback): fix no selection abort.
9395
9396 2000-05-02  Andy Piper  <andy@xemacs.org>
9397
9398         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9399         (mswindows_widget_instantiate): ditto.
9400
9401         * glyphs-widget.c (initialize_widget_image_instance): initialize
9402         children correctly.
9403         (widget_instantiate): cope with children and items in the same
9404         instance.
9405
9406         * glyphs.c (mark_image_instance): cope with children as a first
9407         class member.
9408         (image_instance_equal): ditto.
9409         (image_instance_hash): ditto.
9410         (image_instance_changed): ditto.
9411
9412 2000-04-30  Andy Piper  <andy@xemacs.org>
9413
9414         * glyphs.c (subwindow_query_geometry): new function. Return some
9415         defaults.
9416         (subwindow_instantiate): don't assign dimensions if none have been
9417         given.
9418         (image_instantiator_format_create): add subwindow_query_geometry.
9419         (print_image_instance): cope with layouts as widgets.
9420
9421 2000-04-29  Andy Piper  <andy@xemacs.org>
9422
9423         * frame.c (delete_frame_internal): call
9424         free_frame_subwindow_instance_cache so that all subwindows are
9425         finalized before their parent.
9426         (mark_frame): remove subwindow_cachels.
9427         (Fmake_frame): remove subwindow_cachel manipulation.
9428         (allocate_frame_core): subwindow_instance_cache is a weak list.
9429         (delete_frame_internal): set subwindow_instance_cache to nil.
9430
9431         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9432         finalization safe.
9433         (mswindows_finalize_image_instance): use the device
9434         not the domain as the domain may have died already.
9435
9436         * glyphs-x.c (x_finalize_image_instance): ditto.
9437         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9438         HEIGHT.
9439
9440         * redisplay-output.c (redisplay_unmap_subwindows): update for
9441         subwindow instance cache as a weak list.
9442         (redisplay_unmap_subwindows_maybe): ditto.
9443         (redisplay_unmap_subwindows_except_us): ditto.
9444
9445         * glyphs.c (unmap_subwindow): error checking will check the domain
9446         so don't deal with it here. Don't use cachels anymore.
9447         (map_subwindow): ditto.
9448         (update_subwindow_cachel_data): remove old accessor names.
9449         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9450         (Fresize_subwindow): don't update cachel.
9451         (mark_subwindow_cachels):
9452         (update_subwindow_cachel_data):
9453         (add_subwindow_cachel):
9454         (get_subwindow_cachel_index):
9455         (update_subwindow_cachel):
9456         (reset_subwindow_cachels):
9457         (mark_subwindow_cachels_as_not_updated): deleted.
9458         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9459         subwindow instance to the frame cache.
9460         (find_matching_subwindow): update for subwindow instance cache as
9461         a weak list.
9462         (update_widget_instances): ditto.
9463         (image_instance_type_to_mask):inlined.
9464         (free_frame_subwindow_instance_cache): new function. finalize all
9465         subwindows that are instantiated.
9466
9467         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9468         of cachel information.
9469         (IMAGE_INSTANCE_DISPLAY_X):
9470         (IMAGE_INSTANCE_DISPLAY_Y):
9471         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9472         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9473         (XIMAGE_INSTANCE_DISPLAY_X):
9474         (XIMAGE_INSTANCE_DISPLAY_Y):
9475         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9476         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9477         remove subwindow_cachel structure and function references.
9478         (image_instance_type_to_mask): inline from glyphs.c
9479
9480         * redisplay.c (redisplay_frame): remove subwindow_cachel
9481         references.
9482
9483         * frame.h (struct frame): remove subwindow_cachels.
9484         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9485
9486         * frameslots.h: add subwindow_instance_cache.
9487
9488         * window.c (replace_window): check subwindow cache of replacement.
9489         (window_unmap_subwindows_cache_mapper):
9490         (window_unmap_subwindows): new functions. Unmap all subwindows
9491         cached on this window.
9492         (mark_window_as_deleted): unmap all subwindows.
9493
9494 2000-04-27  Andy Piper  <andy@xemacs.org>
9495
9496         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9497
9498         * glyphs-widget.c (widget_layout): return something.
9499         (layout_layout): return something. Fail if not initialized.
9500         (layout_query_geometry): ditto.
9501         (image_instantiator_native_layout): new function. Initialized the
9502         native layout type.
9503         (widget_instantiate): don't do layout stuff here.
9504
9505         * glyphs.c (instantiate_image_instantiator): reorded calling or
9506         instantiate and post_instantiate with layout in between.
9507         (image_instance_layout): be more selective about deciding whether
9508         the layout has been done or not.
9509
9510         * glyphs.h (struct image_instantiator_methods): return a value
9511         from layout_method.
9512
9513 2000-04-26  Andy Piper  <andy@xemacs.org>
9514
9515         * glyphs.c (allocate_image_instance): make initial width and
9516         height unspecified. Set initialized to 0.
9517
9518         * syscommctrl.h new file. Encapsulates commctrl.h.
9519
9520         * syswindows.h new file. Encapsulates windows.h.
9521
9522         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9523         * nt.c: ditto.
9524         * console-msw.h: ditto.
9525
9526         * redisplay-tty.c (tty_output_display_block): remove layout references.
9527
9528         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9529         window handle rather than just the frame.
9530
9531         * glyphs.c (mark_image_instance): remove layout references.
9532         (print_image_instance): ditto.
9533         (image_instance_equal): ditto.
9534         (image_instance_hash): ditto.
9535         (decode_image_instance_type): ditto.
9536         (encode_image_instance_type): ditto.
9537         (image_instantiate): ditto.
9538         (allocate_glyph): ditto.
9539         (Fimage_instance_height): ditto.
9540         (Fimage_instance_width): ditto.
9541         (update_subwindow): ditto.
9542
9543         * redisplay-x.c (x_output_display_block): recode for layouts as
9544         widgets.
9545
9546         * redisplay-output.c (redisplay_output_layout): recode for layouts
9547         as widgets.
9548         (compare_runes): remove layout references.
9549
9550         * redisplay-msw.c (mswindows_output_display_block): recode for
9551         layouts as widgets.
9552
9553         * glyphs-widget.c (image_instantiator_layout): remove
9554         layout_possible_dest_types.
9555         (layout_possible_dest_types): deleted.
9556
9557         * glyphs.h (image_instance_type): remove layout references.
9558         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9559         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9560         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9561
9562 2000-04-25  Andy Piper  <andy@xemacs.org>
9563
9564         * glyphs-widget.c (image_instantiator_buttons):
9565         (image_instantiator_edit_fields):
9566         (image_instantiator_combo_box):
9567         (image_instantiator_scrollbar):
9568         (image_instantiator_progress_guage):
9569         (image_instantiator_tree_view):
9570         (image_instantiator_tab_control):
9571         (image_instantiator_labels):
9572         (image_instantiator_layout): call default post_instantiate method.
9573         (widget_post_instantiate): new function. Simply lays out the
9574         widgets.
9575
9576         * glyphs.h (struct image_instantiator_methods): add
9577         post_instantiate method.
9578
9579         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9580         method calls.
9581
9582 2000-04-23  Andy Piper  <andy@xemacs.org>
9583
9584         * glyphs.h (struct image_instantiator_methods): add
9585         decode_domain_method.
9586         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9587         derived from the domain.
9588         (IMAGE_INSTANCE_FRAME): new accessor.
9589         (XIMAGE_INSTANCE_FRAME): ditto.
9590
9591         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9592         instead of _SUBWINDOW_FRAME.
9593         (finalize_image_instance): ditto.
9594         (Fimage_instance_foreground): ditto.
9595         (Fimage_instance_background): ditto.
9596         (image_instantiate): ditto.
9597         (update_subwindow_cachel): ditto.
9598         (update_subwindow): ditto.
9599         (unmap_subwindow): ditto.
9600         (map_subwindow): ditto
9601         (subwindow_instantiate): ditto.
9602         * glyphs-msw.c (mswindows_update_widget): ditto.
9603         (mswindows_progress_gauge_instantiate): ditto.
9604         (mswindows_tab_control_update): ditto.
9605         * glyphs-x.c (x_update_widget): ditto.
9606         (x_widget_instantiate): ditto.
9607         (x_tab_control_instantiate): ditto.
9608         (x_tab_control_update): ditto.
9609         * event-msw.c (mswindows_wnd_proc): ditto
9610
9611         * glyphs-widget.c (image_instantiator_layout): use
9612         subwindow_decode_domain.
9613         (image_instantiator_buttons): ditto.
9614         (image_instantiator_edit_fields): ditto.
9615         (image_instantiator_combo_box): ditto.
9616         (image_instantiator_scrollbar): ditto.
9617         (image_instantiator_progress_guage): ditto.
9618         (image_instantiator_tree_view): ditto.
9619         (image_instantiator_tab_control): ditto.
9620         (image_instantiator_labels): ditto.
9621         (image_instantiator_layout): ditto.
9622
9623         * glyphs.c: add instance error checking to many functions.
9624         (instantiate_image_instantiator): decode device from cache_domain.
9625         (image_instantiate): partially rewrite by using
9626         decode_image_instantiator_domain to determine what domain the
9627         instance needs to be cached in.
9628         (decode_image_instantiator_domain): new function. Determine what
9629         domain the image needs to be cached in.
9630         (check_window_subwindow_cache): new error checking function.
9631         (check_instance_cache_mapper): ditto.
9632         (check_image_instance_structure): ditto.
9633         (subwindow_decode_domain): new function. Encodes a window as a
9634         subwindow's cache domain.
9635         (image_instantiator_format_create): use it for text and
9636         subwindows.
9637
9638 2000-04-21  Andy Piper  <andy@xemacs.org>
9639
9640         * glyphs.c (image_instance_device): new function.
9641         (image_instance_frame): new function.
9642         (image_instance_window): new function.
9643         (image_instance_live_p): new function.
9644
9645         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9646         cache to nil.
9647
9648         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9649         (IMAGE_INSTANCE_DOMAIN): new accessor.
9650         (XIMAGE_INSTANCE_DOMAIN): ditto.
9651
9652         * glyphs-x.c (x_finalize_image_instance): device->domain.
9653
9654         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9655         (mswindows_finalize_image_instance): ditto.
9656
9657         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9658         (gif_instantiate): ditto.
9659         (png_instantiate): ditto.
9660         (tiff_instantiate): ditto.
9661
9662         * glyphs.c (instantiate_image_instantiator): use domain rather
9663         than device.
9664         (mark_image_instance): device -> domain.
9665         (print_image_instance): ditto.
9666         (finalize_image_instance): ditto.
9667         (image_instance_equal): ditto.
9668         (allocate_image_instance): ditto.
9669         (Fcolorize_image_instance): ditto.
9670         (query_string_geometry): ditto.
9671         (image_instantiate): ditto
9672         (query_string_font): ditto.
9673         (image_instantiate): ditto.
9674         (update_subwindow): ditto.
9675         (unmap_subwindow): ditto.
9676         (map_subwindow): ditto.
9677         (subwindow_instantiate): ditto.
9678
9679         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9680         (DOMAIN_FRAME): ditto.
9681         (DOMAIN_WINDOW): ditto.
9682         (DOMAIN_LIVE_P): ditto.
9683         (XDOMAIN_DEVICE): ditto.
9684         (XDOMAIN_FRAME): ditto.
9685         (XDOMAIN_WINDOW): ditto.
9686
9687         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9688         a valid specifier domain.
9689
9690 2000-04-19  Andy Piper  <andy@xemacs.org>
9691
9692         * glyphs-widget.c (syms_of_glyphs_widget): remove
9693         widget-callback-current-channel.
9694         (vars_of_glyphs_widget): ditto.
9695         * glyphs.h: ditto
9696
9697         * gui.c (get_gui_callback): revert to previous behaviour.
9698
9699 2000-04-18  Andy Piper  <andy@xemacs.org>
9700
9701         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9702         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9703         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9704
9705         * glyphs.c (image_instance_equal): add margin_width.
9706         (image_instance_hash): ditto.
9707
9708         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9709         (layout_query_geometry): ditto.
9710         (layout_layout): ditto.
9711         (syms_of_glyphs_widget): add margin-width.
9712         (image_instantiator_layout): allow margin-width.
9713
9714         * glyphs.c (update_widget_instances): make a normal function.
9715         (syms_of_glyphs): remove Qupdate_widget_instances.
9716         * glyphs.h: ditto.
9717
9718         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9719         so that we don't corrupt ideas about the last event or
9720         command. Remove widget-callback-current-channel fiddling.
9721         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9722
9723 2000-05-01  Martin Buchholz <martin@xemacs.org>
9724
9725         * XEmacs 21.2.33 is released.
9726
9727 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9728
9729         * make-src-depend: Allow dots in header file name.
9730
9731 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9732
9733         * mule-charset.h (struct charset_lookup): Add
9734         next_allocated_1_byte_leading_byte and
9735         next_allocated_2_byte_leading_byte.
9736         * mule-charset.c: Move above two variables so that those values
9737         will be dumped.
9738
9739 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9740
9741         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9742         when string length is zero.
9743         (find_charsets_in_emchar_string): Ditto.
9744
9745 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9746
9747         * lisp.h: extern Qdialog and Qmenubar.
9748
9749         * gui-x.c: added events.h.
9750                 also fixed typo which made the file uncompilable.
9751
9752         * general.c: Added Qmenubar and Qdialog
9753
9754 2000-04-28  Ben Wing  <ben@xemacs.org>
9755
9756         * frame-msw.c (mswindows_init_frame_1):
9757         * frame-msw.c (mswindows_mark_frame):
9758         * event-msw.c (mswindows_enqueue_dispatch_event):
9759         * console-msw.h:
9760         * console-msw.h (struct mswindows_frame):
9761         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9762         there are now three hash tables for callbacks.
9763         mswindows_enqueue_dispatch_event is no longer static.
9764
9765         * dialog-x.c (maybe_run_dbox_text_callback):
9766         * dialog-x.c (dbox_descriptor_to_widget_value):
9767         switch to new cons3 form for callbacks.
9768
9769         * glyphs-msw.c (mswindows_register_gui_item):
9770         * glyphs-msw.c (mswindows_widget_instantiate):
9771         * glyphs-msw.c (add_tree_item):
9772         * glyphs-msw.c (add_tab_item):
9773         new image instance parameter, so it can be passed to callback-ex.
9774         respect :callback-ex as well as :callback.
9775
9776         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9777         add :callback-ex.
9778
9779         * glyphs.c (print_image_instance):
9780         prettify, e.g. now prints widget type.
9781
9782         * gui-x.h:
9783         certain funs have new image instance parameter.
9784
9785         * gui.c:
9786         * gui.c (get_gui_callback):
9787         * gui.c (gui_item_add_keyval_pair):
9788         * gui.c (gui_item_init):
9789         * gui.c (gui_add_item_keywords_to_plist):
9790         * gui.c (mark_gui_item):
9791         * gui.c (gui_item_hash):
9792         * gui.c (gui_item_equal):
9793         * gui.c (copy_gui_item):
9794         * gui.c (syms_of_gui):
9795         recognize callback-ex in a number of places.
9796         also, fix the annoying "can't get out of yes-no dialog" bug.
9797
9798         * gui.h:
9799         * gui.h (struct Lisp_Gui_Item):
9800         recognize callback-ex in a number of places.
9801
9802         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9803         new parameter in button_item_to_widget_value.
9804
9805         * glyphs-x.c (x_update_widget):
9806         * glyphs-x.c (x_button_instantiate):
9807         * glyphs-x.c (x_button_update):
9808         * glyphs-x.c (x_progress_gauge_instantiate):
9809         * glyphs-x.c (x_edit_field_instantiate):
9810         * glyphs-x.c (x_combo_box_instantiate):
9811         * glyphs-x.c (x_tab_control_instantiate):
9812         * glyphs-x.c (x_label_instantiate):
9813         new image instance parameter in various places.
9814
9815         * event-Xt.c:
9816         * event-Xt.c (enqueue_Xt_dispatch_event):
9817         this fun gets exported.
9818
9819         * gui-msw.c:
9820         * gui-msw.c (mswindows_handle_gui_wm_command):
9821         handle both :callback and :callback-ex, and generate our own
9822         event because it's one of the callback-ex arguments.
9823
9824         * gui-x.c:
9825         * gui-x.c (popup_selection_callback):
9826         handle both :callback and :callback-ex, and generate our own
9827         event because it's one of the callback-ex arguments.
9828         * gui-x.c (button_item_to_widget_value):
9829         * gui-x.c (gui_items_to_widget_values_1):
9830         * gui-x.c (gui_item_children_to_widget_values):
9831         * gui-x.c (gui_items_to_widget_values):
9832         new image instance parameter in various places.
9833
9834         * fns.c (Freplace_list):
9835         fix small typo in doc string.
9836
9837         * lisp.h:
9838         declare enqueue_Xt_dispatch_event.
9839
9840 2000-04-28  Ben Wing  <ben@xemacs.org>
9841
9842         * buffer.c:
9843         * buffer.c (Frecord_buffer):
9844         * buffer.c (syms_of_buffer):
9845         delete record-buffer-hook.
9846
9847         * fns.c:
9848         * fns.c (Freplace_list):
9849         * fns.c (syms_of_fns):
9850         new primitive replace-list.
9851
9852         * frameslots.h:
9853         slot for old buffer-alist.
9854
9855         * lisp.h:
9856         exfun replace-list.
9857
9858         * redisplay.c:
9859         * redisplay.c (redisplay_frame):
9860         * redisplay.c (syms_of_redisplay):
9861         * redisplay.c (vars_of_redisplay):
9862         new hook buffer-list-changed-hook.
9863         call it.
9864
9865 2000-04-27  Ben Wing  <ben@xemacs.org>
9866
9867         * extents.h: extern in_modeline_generation.
9868
9869         * redisplay.c (generate_formatted_string_db): set
9870         in_modeline_generation.
9871
9872         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9873         flags if in modeline generation.  otherwise frame-modified-tick
9874         is ticked far too often.
9875         Declare in_modeline_generation.
9876
9877 2000-04-26  Ben Wing  <ben@xemacs.org>
9878
9879         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9880         option.
9881         (vars_of_emacs): add quick-build as an error-checking option.
9882         A bit kludgy, but there doesn't seem much point in creating
9883         a real var for this.
9884
9885         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9886
9887 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9888
9889         * redisplay.h (struct display_line): Add a new variable,
9890         line_continuation.
9891
9892         * redisplay.c (create_text_block): Set dl->line_continuation if
9893         the line continues.
9894         (create_string_text_block): Ditto.
9895         (regenerate_window_incrementally): Use line_continuation instead
9896         of searching continuation glyph.
9897         (add_margin_runes): Call add_glyph_rune.
9898         (add_glyph_rune): Handle margin glyph.
9899
9900 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9901
9902         * filelock.c (fill_in_lock_file_name):
9903         ANSIfy.
9904         Check for IS_ANY_SEP instead of '/'.
9905         (lock_file_1):
9906         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9907         Never check errno without first seeing that system call failed.
9908         (unlock_file): Add GCPRO.
9909         (Flock_buffer): Fix docstring.
9910         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9911
9912 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9913
9914         * sysdep.c (get_pty_max_bytes):
9915         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9916         strings longer than 252 bytes.
9917
9918         * md5.c: Unconditionally include ANSI header <limits.h>
9919
9920         * glyphs-x.c (convert_EImage_to_XImage):
9921         * lisp-union.h (union Lisp_Object):
9922         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9923
9924 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9925
9926         * filelock.c (current_lock_owner): Remove unused variable o, p.
9927
9928 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9929
9930         * callint.c: Remove multiply defined symbol Qlet
9931         (syms_of_callint): ditto.
9932
9933 2000-04-14  Andy Piper  <andy@xemacs.org>
9934
9935         * general.c (syms_of_general): add last-command, this-command, let
9936         and funcall.
9937
9938         * lisp.h: declare various symbols.
9939
9940         * glyphs.h: declare Qwidget_callback_current_channel;
9941
9942         * glyphs-widget.c (syms_of_glyphs_widget): add
9943         Qgui_callback_current_channel.
9944         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9945
9946         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9947         widget-callback-current-channel when invoking the interactive
9948         arg. Also bind last-command and next-command when invoking the
9949         widget updates.
9950         * gui-x.c (popup_selection_callback): ditto.
9951
9952         * gui.c (get_gui_callback): massage args so that we are always
9953         calling eval. This allows us to add our own variable bindings
9954         outside.
9955
9956         * glyphs-x.c (x_button_instantiate): use
9957         gui_items_to_widget_values since this is GC safe.
9958         (x_progress_gauge_instantiate): ditto.
9959         (x_edit_field_instantiate): ditto.
9960         (x_label_instantiate): ditto.
9961
9962         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9963         (emacs_Xt_event_widget_focus_out): new function
9964         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9965         focus.
9966         (emacs_Xt_event_add_widget_actions): new function. add focus
9967         functions as actions.
9968         (init_event_Xt_late): use it.
9969
9970 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9971
9972         * event-stream.c (Fdispatch_event): Doc fix.
9973
9974 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9975
9976         * postgresql.c: Remove all references to PQsetenv*.
9977
9978         * postgresql.h: Remove references to PGsetenvHandler object.
9979         * lrecord.h (lrecord_type): Ditto.
9980
9981 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9982
9983         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9984         real_heigh and real_width members, and accessor macros for these.
9985
9986         * glyphs-msw.c (init_image_instance_geometry): New function.
9987         (init_image_instance_from_dibitmap): Use it.
9988         (mswindows_resource_instantiate): Use it.
9989         (init_image_instance_from_xbm_inline): Use it.
9990         (mswindows_initialize_image_instance_mask): Use real bitmap
9991         geometry.
9992         (mswindows_create_resized_bitmap): Ditto.
9993         (mswindows_create_resized_mask): Ditto.
9994
9995         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9996         and bitmap to their surface size.
9997
9998 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9999
10000         * process-unix.c (unix_send_process): Guard against process MIA
10001         after Faccept_process_output.
10002
10003 2000-04-11  Ben Wing  <ben@xemacs.org>
10004
10005         * eval.c (unbind_to_hairy): fix brokenness introduced by
10006         nanosecond speed improvements.
10007
10008 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
10009
10010         * sunplay.c (init_device): To play sounds correctly, the device
10011         apparently needs to be initialized at least once by XEmacs.  Make
10012         it so.
10013
10014 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10015
10016         * redisplay.c (add_margin_runes): Add text image glyph
10017           handling.
10018
10019 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10020
10021         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
10022         gcc is newer than 2.5.
10023
10024 2000-04-06  Colin Rafferty  <colin@xemacs.org>
10025
10026         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
10027
10028         * fns.c (size_bit_vector):
10029         * alloc.c (size_vector):
10030         (make_vector_internal):
10031         (make_bit_vector_internal):
10032         (sweep_bit_vectors_1):
10033         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
10034
10035 2000-04-06  Andy Piper  <andy@xemacs.org>
10036
10037         * gmalloc.c (malloc): undo previous change.
10038         (malloc): ditto.
10039         (free): ditto.
10040         (realloc): ditto.
10041
10042 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
10043
10044         * line-number.c (buffer_line_number): Revert to former version.
10045
10046 2000-04-06  Andy Piper  <andy@xemacs.org>
10047
10048         * gmalloc.c (malloc): add error checking.
10049         (malloc): ditto.
10050         (free): ditto.
10051         (realloc): ditto.
10052
10053         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
10054         button_item_to_widget_value arg.
10055
10056         * glyphs-x.c (x_button_instantiate): add extra
10057         button_item_to_widget_value arg.
10058         (x_progress_gauge_instantiate): ditto.
10059         (x_edit_field_instantiate): ditto.
10060         (x_label_instantiate): ditto.
10061
10062         * gui-x.c (gui_items_to_widget_values_1): add extra
10063         button_item_to_widget_value arg.
10064         (button_item_to_widget_value): add extra menu_item_p arg.
10065
10066         * gui-x.h: change signature of button_item_to_widget_value.
10067
10068         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
10069         button_item_to_widget_value arg.
10070
10071 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10072
10073         * buffer.h (struct buffer): auto_save_modified should be long.
10074
10075 2000-04-05  Andy Piper  <andy@xemacs.org>
10076
10077         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
10078         type.
10079         (button_query_geometry): give a little more room so that athena
10080         buttons fit.
10081
10082 2000-04-05  Andy Piper  <andy@xemacs.org>
10083
10084         * faces.c (complex_vars_of_faces): The widget face should inherit
10085         the font of the gui-element face.
10086
10087 2000-04-04  Andy Piper  <andy@xemacs.org>
10088
10089         * glyphs-x.c (x_button_update): new function. unconditionally
10090         update a button's state when the instance is dirty.
10091         (image_instantiator_format_create_glyphs_x): add x_button_update.
10092         (x_widget_instantiate): remove old resize cruft.
10093
10094 2000-04-02  Andy Piper  <andy@xemacs.org>
10095
10096         * frame.c (change_frame_size_1): The introduction of gutters means
10097         that we need to allow 0 as a potential frame dimension.
10098
10099 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10100
10101         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10102         image glyph if allow_cursor.
10103         (add_hscroll_rune): Don't allow cursor to border glyph.
10104         (create_text_block): Ditto.
10105
10106         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10107         text not in buffer.
10108         (redisplay_output_layout): Call ensure_face_cachel_complete for
10109         text image glyph.
10110
10111
10112 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10113
10114         * redisplay.c (add_glyph_rune): Adding text image as text runes.
10115
10116         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10117         not in buffer
10118
10119         * redisplay-tty.c (tty_output_display_block): Delete the routine
10120         for text image glyph
10121         * redisplay-x.c (x_output_display_block): ditto
10122         * redisplay-msw.c (mswindows_output_display_block): ditto
10123
10124 2000-02-02  Mike Alexander  <mta@arbortext.com>
10125
10126         Note: Some of these were committed by accident as part of other
10127         patches.
10128
10129         * regex.c (regex_compile): Avoid compiler warnings.
10130
10131         * ntproc.c (sys_spawnve): Avoid compiler warnings.
10132
10133         * nt.h: Declare term_ntproc correctly.
10134
10135         * nt.c: Remove incorrect declaration of get_home_directory which
10136         is declared correctly in lisp.h.
10137
10138         * keymap.c (get_keyelt): Avoid compiler warnings.
10139         (raw_lookup_key_mapper): Avoid compiler warnings.
10140
10141         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10142
10143         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10144
10145         * filemode.c (mode_string): Avoid compiler warnings.
10146
10147         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10148         avoid warning.
10149
10150         * events-mod.h: Undef some things that winuser.h defines differently.
10151
10152         * data.c (Faset): Avoid compiler warnings.
10153
10154         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10155
10156 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10157
10158         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10159         Fall through to simple beep on error.
10160         Replace "extern" by real header file.
10161
10162         * linuxplay.c: Use nativesound.h
10163         (play_sound_data): Return error code. Be less verbose on error.
10164
10165         * sunplay.c: Use nativesound.h
10166         (play_sound_data): Return error code. Be less verbose on error.
10167
10168         * ntplay.c: Use nativesound.h
10169         (play_sound_data): Return fake error code
10170
10171         * sgiplay.c: Use nativesound.h
10172         (play_sound_data): Return error code
10173
10174         * hpplay.c: Use nativesound.h, partially implement
10175         new error code. Break compilation until finished.
10176         (play_sound_data): error code.
10177
10178         * nativesound.h (play_sound_file):
10179           (play_sound_data): Prototype in new header.
10180
10181 2000-03-31  Andy Piper  <andy@xemacs.org>
10182
10183         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10184         for toggle and radio buttons.
10185         (image_instantiator_buttons): use it.
10186
10187 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10188
10189         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10190         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10191         found. Scrollbar event probably belonged to some old config.
10192
10193 2000-03-31  Andy Piper  <andy@xemacs.org>
10194
10195         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10196         than 1.
10197         (initialize_widget_image_instance): default layout to
10198         LAYOUT_HORIZONTAL rather than 0.
10199         (widget_instantiate): reverse the item list at the end rather than
10200         every iteration.
10201         (layout_layout): re-code for the border text at the front of the
10202         item list rather than at the end.
10203         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10204         provided by the user.
10205         (widget_query_geometry): comment.
10206
10207 2000-03-30  Andy Piper  <andy@xemacs.org>
10208
10209         * glyphs-widget.c (image_instantiator_layout): allow standard
10210         widget keywords in layouts.
10211
10212         * gutter.c (output_gutter): cope with nil gutter contents.
10213
10214         * frame.c (Fset_frame_properties): add gutter docs.
10215
10216 2000-03-29  Andy Piper  <andy@xemacs.org>
10217
10218         * toolbar-msw.c (TBSTYLE_FLAT): add.
10219         (mswindows_output_toolbar): minor fiddling.
10220
10221 2000-03-29  Andy Piper  <andy@xemacs.org>
10222
10223         * gutter.c (output_gutter): force gutter size recalculation if
10224         what we are trying to display won't fit.
10225         (update_gutter_geometry): new function. A per-gutter version of
10226         update_frame_gutter_geometry.
10227         (update_frame_gutter_geometry): use it.
10228         (redraw_exposed_gutter): add extra debugging output.
10229
10230 2000-03-28  Mike Alexander  <mta@arbortext.com>
10231
10232         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10233         (pdump_file_unmap): Implement it on Windows
10234         (pdump_file_get): Save alocated handles for pdump_file_unmap
10235
10236 2000-03-28  Andy Piper  <andy@xemacs.org>
10237
10238         * gui.c (get_gui_callback): treat Quit specially.
10239
10240 2000-03-27  Andy Piper  <andy@xemacs.org>
10241
10242         * glyphs.c (image_instantiate): be careful to check in the same
10243         way we assigned.
10244
10245 2000-03-27  Didier Verna  <didier@xemacs.org>
10246
10247         * config.h.in: define the proper SMART_INCLUDE macro.
10248         handle renaming of `foo_h_path' to `foo_h_file'.
10249
10250         * database.c: ditto.
10251
10252         * emacs.c: ditto.
10253
10254         * linuxplay.c: ditto.
10255
10256         * terminfo.c: ditto.
10257
10258         * tooltalk.h: ditto.
10259
10260 2000-03-27  Andy Piper  <andy@xemacs.org>
10261
10262         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10263         gets updated whenever the face might have changed.
10264
10265 2000-03-26  Mike Alexander  <mta@arbortext.com>
10266
10267         * dumper.c (pdump_resource_free): Fix the comment.
10268
10269 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10270
10271         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10272
10273 2000-03-22  Mike Alexander  <mta@arbortext.com>
10274
10275         * dumper.c: Include Windows headers on Windows
10276         (pdump_resource_free): Add a body to the function
10277         (pdump_load): exe_name -> exe_path and add some comments.
10278
10279 2000-03-25  Mike Alexander  <mta@arbortext.com>
10280
10281         * gui.c (copy_gui_item_tree): Return a value in all cases
10282
10283 2000-03-21  Didier Verna  <didier@xemacs.org>
10284
10285         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10286         lwlib/config.h.in.
10287         (SMART_INCLUDE): new macro.
10288         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10289         the proper location.
10290
10291         * postgresql.c: use it.
10292
10293         * inline.c: ditto.
10294
10295 2000-03-24  Andy Piper  <andy@xemacs.org>
10296
10297         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10298         do this.
10299
10300 2000-03-24  Andy Piper  <andy@xemacs.org>
10301
10302         * redisplay-output.c (compare_runes): use image_instance_changed
10303         to detect changes. Do not depend on glyphs_changed, only depend on
10304         dirtiness.
10305          (redisplay_output_layout): add debug messages.
10306         (compare_runes): ditto.
10307
10308         * glyphs.h: declare new functions.
10309         (struct Lisp_Image_Instance): remove percent and associated
10310         accessors.
10311
10312         * gui.h: declare new copying functions.
10313
10314         * gui.c (copy_gui_item_tree): new function.
10315         (copy_gui_item): new function.
10316         (gui_item_id_hash): revert to standard hash.
10317         (gui_item_hash): ditto.
10318         (gui_item_hash_internal): deleted.
10319         (mark_gui_item): mark value.
10320         (gui_item_add_keyval_pair): add value.
10321         (gui_item_init): ditto.
10322         (gui_add_item_keywords_to_plist): ditto.
10323         (gui_item_equal): ditto.
10324         (syms_of_gui): add Q_value.
10325
10326         * glyphs-x.c (x_progress_gauge_update): use pending items and
10327         value for setting the state.
10328         (x_update_widget): don't set items from pending here.
10329
10330         * glyphs-widget.c (update_widget): update items here.
10331         (progress_gauge_set_property): use items for storing value. Put
10332         new value in pending items.
10333
10334         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10335         items for new value. Convert percent -> value.
10336         (mswindows_tab_control_update): don't update items here.
10337
10338         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10339         (update_subwindow): ditto.
10340         (image_instance_changed): new function. Compare hash values and
10341         past and present widget items.
10342         (image_instantiate): We more careful about where we instantiate
10343         things.
10344         (image_instantiate): add error checking.
10345
10346         * gutter.c (syms_of_gutter): use -hook.
10347
10348 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10349
10350         * console-tty.c (Fset_console_tty_input_coding_system): Use
10351         Qkeyboard.
10352         (Fset_console_tty_output_coding_system): Use Qterminal.
10353         (tty_init_console): Use Qkeyboard and Qterminal.
10354
10355 2000-03-21  Ben Wing  <ben@xemacs.org>
10356
10357         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10358         From Mike Alexander <mta@arbortext.com>.
10359
10360 2000-03-21  Ben Wing  <ben@xemacs.org>
10361
10362         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10363         process brokenness.  Proper implementation to come.
10364         * callproc.c:
10365         Rename call-process-internal to old-call-process-internal.
10366         New impl. in process.el.
10367
10368 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10369
10370         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10371
10372 2000-03-20  Andy Piper  <andy@xemacs.org>
10373
10374         * glyphs.c (full_list_hash): make hashes of the same elements in
10375         different orders return different values.
10376
10377 2000-03-20  Martin Buchholz <martin@xemacs.org>
10378
10379         * XEmacs 21.2.32 is released.
10380
10381 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10382
10383         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10384         (DFC_MALLOC_USE_CONVERTED_DATA):
10385         Add aliasing-safe casts to allow use with char* or unsigned char*
10386         lvalues.
10387
10388         * eldap.c (Fldap_open):
10389         (Fldap_search_basic):
10390         (Fldap_add):
10391         (Fldap_modify):
10392         Make C++-compilable.
10393         Make sure GCPRO'ed variables are initialized.
10394         Use temp variables to avoid repeated calls to Flength.
10395
10396 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10397
10398         * sysfile.h:
10399         Make sure PATH_MAX is always defined.
10400         Include limits.h for PATH_MAX.
10401         Deprecate use of MAXPATHLEN.
10402
10403 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10404
10405         * emacs.c: Add reinit_vars_of_fileio.
10406         * symsinit.h: Add reinit_vars_of_fileio.
10407         * fileio.c (reinit_vars_of_fileio): New.
10408         * fileio.c (Fmake_temp_name):
10409         Initialize temp_name random number from microseconds to make
10410         collisions even less likely.  Initialize always at process startup
10411         time.  (make-temp-name) used to return the same file name twice in
10412         a row when PDUMP.
10413         Random stylistic fiddling.
10414         Comment fixes.
10415
10416 2000-03-20  Andy Piper  <andy@xemacs.org>
10417
10418         * glyphs.c (image_instantiate): allow text glyphs to be
10419         instantiated in the minibuffer window.
10420
10421 2000-03-19  Andy Piper  <andy@xemacs.org>
10422
10423         * glyphs.c (image_instance_hash): be careful about which items we
10424         hash on.
10425
10426         * glyphs-widget.c (tab_control_set_property): record into pending
10427         items rather than the actual items.
10428
10429         * glyphs-x.c (x_update_widget): use pending items to update with.
10430
10431         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10432         to update with.
10433
10434         * glyphs.c (mark_image_instance): mark pending items.
10435
10436         * window.c (Fset_window_configuration): record the buffer.
10437         (Fselect_window): totally revert previous change which breaks many
10438         things.
10439
10440 2000-03-18  Andy Piper  <andy@xemacs.org>
10441
10442         * glyphs-msw.c (mswindows_tab_control_update): force selected
10443         item.
10444
10445         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10446         window domain cache, otherwise we get inconsistencies at
10447         startup. There is something fishy at startup which can lead to the
10448         minibuffer being the selected window when the gutter content is
10449         instantiated.
10450
10451         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10452         gcpros.
10453         (parse_gui_item_tree_children): ditto.
10454         (parse_gui_item_tree_item): ditto.
10455
10456         * glyphs.c (Fupdate_widget_instances): return something.
10457
10458 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10459
10460         * window.c (Fselect_window): Undo 2000-03-17 change.
10461
10462 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10463
10464         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10465         against v7.0 libraries.  Insta-coredump city until the postgres
10466         folks fix it.
10467
10468 2000-03-17  Andy Piper  <andy@xemacs.org>
10469
10470         * faces.c (complex_vars_of_faces): don't give the widget face an
10471         inherited background pixmap.
10472
10473         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10474         selected item.
10475
10476         * event-stream.c (Fdispatch_non_command_events): return something.
10477
10478         * gutter.c (output_gutter): use widget face.
10479         (clear_gutter): ditto.
10480
10481         * NEWS: adjust again.
10482
10483         * window.c (Fselect_window): make sure this runs to completion to
10484         avoid oddities with Fset_window_configuration.
10485         (Fcurrent_window_configuration): in general do not save the
10486         minibuffer as the selected window.
10487
10488         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10489
10490 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10491
10492         * emacs.c (Frunning_temacs_p): Revert previous patch.
10493         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10494
10495 2000-03-16  Andy Piper  <andy@xemacs.org>
10496
10497         * glyphs-x.c (x_tab_control_update): if no widget values then
10498         return.
10499
10500         * NEWS: update for new features.
10501
10502         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10503         synthetic event to the native system.
10504         (reinit_vars_of_event_Xt): set force_event_pending to
10505         emacs_Xt_force_event_pending.
10506
10507         * events.h (struct event_stream): add force_event_pending.
10508
10509         * specifier.c (recompute_one_cached_specifier_in_window): add
10510         comment.
10511
10512         * redisplay.c (redisplay_frame): don't call
10513         update_frame_subwindows. Reset subwindow cachels when
10514         subwindows_changed, removing this was an optimization too far.
10515
10516         * redisplay-output.c (compare_runes): reorganize so that we catch
10517         glyph changes when we want them. Set optimize_output when this
10518         would help layouts.
10519         (redisplay_output_layout): remove frame_really_changed, use
10520         optimize_output instead.
10521
10522         * redisplay-msw.c (mswindows_output_display_block): reset
10523         optimize_output after outputting a glyph.
10524         * redisplay-x.c (x_output_display_block): ditto.
10525         * redisplay-tty.c (tty_output_display_block): ditto.
10526
10527         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10528         functions.
10529         (gutter_specs_changed): do specific gutter positions.
10530         (top_gutter_specs_changed): new function. Only update the
10531         specified gutter specs.
10532         (bottom_gutter_specs_changed): ditto.
10533         (left_gutter_specs_changed): ditto.
10534         (right_gutter_specs_changed): ditto.
10535
10536         * gui.c (gui_item_hash_internal): new function, does a real hash.
10537         (gui_item_id_hash): use it.
10538         (gui_item_hash): hash the eval'ed gui_item.
10539
10540         * gui-x.c (popup_selection_callback): send an eval event to call
10541         Fupdate_widget_instances.
10542
10543         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10544         to call Fupdate_widget_instances.
10545
10546         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10547         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10548
10549         * glyphs.c: (update_frame_subwindows): deleted.
10550         (Fupdate_widget_instances): new function for updating the dirty
10551         state of widgets that might have changed.
10552         (syms_of_glyphs): add Qupdate_widget_instances.
10553         (full_list_hash): hash a list completely.
10554         (image_instance_hash): use it for items and properties.
10555
10556         * frame-msw.c (mswindows_size_frame_internal): remove unused
10557         variable.
10558
10559         * faces.h (struct face_cachel): fix comment.
10560
10561         * event-stream.c (Fdispatch_non_command_events): new
10562         function. Process non-command events, forcing an event cycle
10563         beforehand.
10564         (syms_of_event_stream): declare.
10565         (event_stream_force_event_pending): new function. Force an event
10566         on the native event queue so that an event cycle will occur next
10567         time we check.
10568
10569         * event-msw.c:
10570         (struct ntpipe_shove_stream):
10571         (mswindows_enqueue_dispatch_event):
10572         (mswindows_dequeue_dispatch_event):
10573         (mswindows_cancel_dispatch_event):
10574         (mswindows_pump_outstanding_events):
10575         (mswindows_drain_windows_queue):
10576         (mswindows_handle_paint):
10577         (mswindows_wnd_proc):
10578         (mswindows_key_to_emacs_keysym):
10579         (get_process_input_waitable):
10580         (emacs_mswindows_delete_stream_pair): re-indent file.
10581         (mswindows_need_event): do not process further fds if the windows
10582         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10583         fixes the 100% cpu problem.
10584         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10585
10586 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10587
10588         * alloc.h: New.
10589         * dumper.h: New.
10590         * dumper.c: New.
10591
10592         * emacs.c: Moved dump file searching to dumper.c.
10593         (Frunning_temacs_p): Fixed.
10594
10595         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10596         last_lrecord_type_index_assigned.
10597
10598 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10599
10600         * symsinit.h: Added reinit parameter to init_console_stream
10601         declaration.
10602
10603         * lisp.h: Added file parameter to pdump_load declaration.
10604
10605         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10606         support.  Added dump file searching.
10607
10608         * config.h.in: Added EMACS_PROGNAME.
10609
10610         * console-stream.c (init_console_stream): Fix reinitialisation
10611         when running from temacs.
10612
10613         * alloc.c (pdump): Add id support.
10614         (pdump_load): Add file parameter and signature/id support.
10615
10616         * Makefile.in.in: Add full pdump support.
10617
10618 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10619
10620         * postgresql.c: Update documentation to reflect latest code
10621         status.
10622         (print_result): Show tuple counts in printed representation when
10623         appropriate.
10624         (Fpq_put_nbytes): MULE-ize.
10625         (Fpq_get_line_async): Ditto.
10626
10627 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10628
10629         * postgresql.c (Fpq_lo_import): Fix return value.
10630         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10631
10632 2000-03-13  Ben Wing  <ben@xemacs.org>
10633
10634         * alloc.c (pdump_load):
10635         Fix compile warning under mswin.
10636
10637 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10638
10639         * postgresql.c: Mule-ization, bug fixes.
10640         Use PG_CODING to encapsulate coding system name changes.
10641         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10642         (pg-coding-system): Create.
10643
10644         (Fpq_conn_defaults): Mule-ize.
10645         (Fpq_connectdb): Mule-ize & bug fix.
10646         (Fpq_connect_start): Mule-ize.
10647         (Fpq_set_client_encoding): Mule-ize.
10648         (Fpq_finish): Document `DEAD' connection status.
10649         (Fpq_clear): Ditto.
10650         (Fpq_pgconn): Mule-ize.
10651         (Fpq_exec): Mule-ize & bug fix.
10652         (Fpq_send_query): Ditto.
10653         (Fpq_get_result): Ditto.
10654         (Fpq_res_status): Mule-ize.
10655         (Fpq_result_error_message): Mule-ize.
10656         (Fpq_ntuples): fix comments.
10657         (Fpq_fname): Mule-ize.
10658         (Fpq_fnumber): Mule-ize.
10659         (Fpq_ftype): fix comments.
10660         (Fpq_get_value): Mule-ize.
10661         (Fpq_cmd_status): Ditto.
10662         (Fpq_cmd_tuples): Ditto.
10663         (Fpq_oid_value): Ditto.
10664         (Fpq_notifies): Ditto.
10665         (Fpq_lo_import): Ditto.
10666         (Fpq_lo_export): Ditto.
10667         (Fpq_get_line): Ditto.
10668         (Fpq_put_line): Mule-ize and bug fix.
10669         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10670
10671 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10672
10673         * postgresql.c (vars_of_postgresql): Mule-ize.
10674         (Fpq_conn_defaults): Ditto.
10675
10676 2000-03-12  Ben Wing  <ben@xemacs.org>
10677
10678         * alloc.c (Fmake_byte_code):
10679         * alloc.c (debug_string_purity_print):
10680         * alloc.c (pdump_backtrace):
10681         * alloc.c (pdump_get_indirect_count):
10682         * alloc.c (pdump_register_sub):
10683         * alloc.c (pdump_register_object):
10684         * alloc.c (pdump_register_struct):
10685         * alloc.c (pdump_dump_data):
10686         * alloc.c (pdump_reloc_one):
10687         Minor cleanups.
10688
10689         * console-msw.c:
10690         * console-msw.c (GetConsoleHwnd):
10691         * console-msw.c (msw_hide_console):
10692         * console-msw.c (msw_show_console):
10693         * console-msw.c (msw_ensure_console_buffered):
10694         * console-msw.c (msw_output_console_string):
10695         * console-msw.c (console_type_create_mswindows):
10696
10697         a) Added functions to manipulate the console window for use with
10698         shell support.
10699
10700         b) Added support for writing text to the console, which is now
10701         used under Windows when xemacs is not being run non-interactively,
10702         to write text that would otherwise be destined for stdout because
10703         under these circumstances, text written to stdout tends to
10704         disappear and not be seen.
10705
10706         * console-msw.h:
10707         * event-Xt.c:
10708         * event-Xt.c (x_event_to_emacs_event):
10709         * event-Xt.c (describe_event_window):
10710         * events-mod.h (XEMACS_MOD_CONTROL):
10711         * events.c:
10712         * events.c (Fmake_event):
10713         * events.c (character_to_event):
10714         * events.c (event_to_character):
10715         * events.c (format_event_object):
10716         * events.c (Fevent_modifiers):
10717         * events.h:
10718         * events.h (struct key_data):
10719         * events.h (struct button_data):
10720         * events.h (struct misc_user_data):
10721         * frame-x.c (Fcde_start_drag_internal):
10722         * frame-x.c (Foffix_start_drag_internal):
10723         * gpmevent.c (Freceive_gpm_event):
10724         * keymap.c:
10725         * keymap.c (bucky_sym_to_bucky_bit):
10726         * keymap.c (control_meta_superify):
10727         * keymap.c (make_key_description):
10728         * keymap.c (keymap_lookup_directly):
10729         * keymap.c (create_bucky_submap):
10730         * keymap.c (keymap_store):
10731         * keymap.c (define_key_check_and_coerce_keysym):
10732         * keymap.c (define_key_parser):
10733         * keymap.c (define_key_alternate_name):
10734         * keymap.c (Fdefine_key):
10735         * keymap.c (raw_lookup_key_mapper):
10736         * keymap.c (struct map_keymap_unsorted_closure):
10737         * keymap.c (map_keymap_unsorted_mapper):
10738         * keymap.c (map_keymap_sort_predicate):
10739         * keymap.c (map_keymap_sorted):
10740         * keymap.c (accessible_keymaps_mapper_1):
10741         * keymap.c (where_is_recursive_mapper):
10742         * keymap.c (describe_map_mapper):
10743         * keymap.c (describe_map_sort_predicate):
10744         * keymap.c (describe_map):
10745         * keymap.c (complex_vars_of_keymap):
10746         And a number of other files, the key modifier preprocessor
10747         constants that xemacs uses have names that conflict with constants
10748         defined under MS Windows for other purposes, so they were renamed
10749         to begin with the prefix XEMACS_. The variables that hold such
10750         modifiers were changed to consistently be of type int to fix
10751         various compile warnings.
10752
10753         * console.c (complex_vars_of_console):
10754         * device.c:
10755         * device-msw.c:
10756         * device-msw.c (mswindows_finish_init_device):
10757         * device-msw.c (msw_get_workspace_coords):
10758         * device-msw.c (mswindows_device_system_metrics):
10759         and various other files, added support for a new
10760         device property called offset-workspace which returns the position
10761         of the upper left corner of the workspace area and goes along with
10762         the existing size-workspace property.
10763
10764         * dialog-msw.c:
10765         * dialog-msw.c (push_bufbyte_string_as_unicode):
10766         * dialog-msw.c (mswindows_popup_dialog_box):
10767         Added support for XEmacs-style accelerator specifications in
10768         button text.  Note: I didn't add support for this under X Windows,
10769         and somebody needs to do this.
10770
10771         * dialog.c:
10772         * dialog.c (Fpopup_dialog_box):
10773         Documented the support for accelerators that was just mentioned.
10774
10775         editfns.c (get_home_directory): Changed behavior under Windows
10776         when HOME not defined; former behavior was irretrievably broken.
10777
10778         * emacs.c:
10779         * emacs.c (main_1):
10780         * emacs.c (main):
10781         * minibuf.c (clear_echo_area_internal):
10782         * minibuf.c (echo_area_append):
10783         * print.c:
10784         * print.c (std_handle_out_external):
10785         * print.c (std_handle_out_va):
10786         * print.c (fatal):
10787         * print.c (write_string_to_stdio_stream):
10788         * print.c (output_string):
10789         * print.c (debug_print):
10790         * print.c (debug_backtrace):
10791         * print.c (debug_short_backtrace):
10792         Cleaned up the code that prints text to stdout so that this can be
10793         changed to output into a console window instead under MS Windows,
10794         as described above.
10795
10796         * eval.c:
10797         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10798         * eval.c (internal_catch):
10799         * eval.c (unwind_to_catch):
10800         * eval.c (throw_or_bomb_out):
10801         * eval.c (condition_case_1):
10802         * eval.c (signal_1):
10803         * eval.c (check_error_state_sanity):
10804         * eval.c (call_with_suspended_errors_1):
10805         * eval.c (call_with_suspended_errors):
10806         * eval.c (reinit_vars_of_eval):
10807         Added code to catch throw loops and check for a pesky bug that may
10808         be gone now.
10809
10810         * event-msw.c:
10811         * event-msw.c (key_needs_default_processing_p):
10812         * event-msw.c (mswindows_wnd_proc):
10813         * event-msw.c (mswindows_modifier_state):
10814         * event-msw.c (emacs_mswindows_quit_p):
10815         * event-msw.c (vars_of_event_mswindows):
10816         a) Added support for using the alt key to select menu items as is
10817         standard under MS Windows.  This is controlled using the variable
10818         menu-accelerator-enabled, just like under X Windows.  There is an
10819         option on the options menu to turn this support on.  I really
10820         think that it should be on by default under Windows, but I'm not
10821         going to make this change yet.
10822
10823         b)  Added support for dynamic display size changes under Windows.
10824
10825         * event-stream.c:
10826         * event-stream.c (maybe_echo_keys):
10827         * event-stream.c (Fnext_event):
10828         * event-stream.c (command_builder_find_leaf):
10829         * event-stream.c (lookup_command_event):
10830         * event-stream.c (execute_command_event):
10831         * event-stream.c (pre_command_hook):
10832         * event-stream.c (post_command_hook):
10833         * event-stream.c (syms_of_event_stream):
10834         * event-stream.c (vars_of_event_stream):
10835         * event-stream.c (complex_vars_of_event_stream):
10836         * events.h (struct command_builder):
10837
10838         a) Tried to clean up a little bit the horribly written x-specific
10839         accelerator code that crept into this file.  I moved this code
10840         into menubar-x.c where it belongs. I also needed to move the
10841         command builder structure into the file events.h because it is
10842         accessed directly by this accelerator code.  What I didn't do, but
10843         which should be done at some point, is to properly abstract this
10844         code using device methods instead of the kludgy way that it
10845         currently hooks into the event code.
10846
10847         b) Added the lisp variables this-command-properties and
10848         last-command- properties, which should be used to synchronize two
10849         adjacent commands in preference to playing games with the variable
10850         this-command, which is typically what happens.
10851
10852         c) Added some slightly nasty code to hook into the lisp support
10853         for shifted- motion-key selection.  This is actually necessary for
10854         somewhat complicated reasons, which are described in
10855         simple.el. (NB: I think the proper thing would be to have the code
10856         that calls the pre and post command hooks also call out to generic
10857         lisp functions in simple.el, where all built-in stuff could be
10858         added.  I will think about this more.)
10859
10860         * event-unixoid.c (poll_fds_for_input):
10861         * lread.c (readchar):
10862         * redisplay-tty.c (tty_clear_frame):
10863         * redisplay-x.c (x_get_gc):
10864         * signal.c (interrupt_signal):
10865         And a whole bunch of other files: fixed up places that printed
10866         directly to stderr to instead call the function stderr_out so that
10867         the changes I made under Windows work correctly.
10868
10869         * filemode.c (mode_string):
10870         Warning fixes.
10871
10872         * frame-msw.c:
10873         * frame-msw.c (mswindows_size_frame_internal):
10874         Fixed the computation of frame size and position to keep the frame
10875         within the workspace area, rather than within the physical
10876         dimensions of the screen, so that the frame doesn't overlap window
10877         manager decorations, such as the start menu and toolbar, typically
10878         at the bottom of the screen.
10879
10880         * frame.c (vars_of_frame):
10881         Changed the default frame title format under MS Windows to consist
10882         of buffername-XEmacs, which is standard under MS Windows.  I think
10883         it might be a good idea to change this everywhere because I think
10884         it is superior to the current frame title format, but this is the
10885         kind of change that is likely to cause some people to get annoyed,
10886         so I'm not making it.
10887
10888         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10889
10890         * gui-msw.c (mswindows_handle_gui_wm_command):
10891         Fixed compile warnings.
10892
10893         * gui-x.c:
10894         * gui-x.c (strdup_and_add_accel):
10895         * gui-x.c (button_item_to_widget_value):
10896         * gui-x.h:
10897         Added code to automatically put an accelerator onto the beginning
10898         of menu items that don't have one as is now the standard, and is
10899         described more later.  Also fixed things so that the menu item
10900         name can be an evaluated expression, again a new standard.
10901
10902         * gui.c:
10903         * gui.c (gui_item_add_keyval_pair):
10904         * gui.c (make_gui_item_from_keywords_internal):
10905         * gui.c (gui_add_item_keywords_to_plist):
10906         * gui.c (gui_item_accelerator):
10907         * gui.c (gui_name_accelerator):
10908         * gui.c (gui_item_included_p):
10909         * gui.c (gui_item_display_flush_left):
10910         * gui.c (gui_item_display_flush_right):
10911         * gui.c (parse_gui_item_tree_item):
10912         * gui.c (parse_gui_item_tree_children):
10913         * gui.c (parse_gui_item_tree_list):
10914         Mule-ized.  Cleanup.  GCPRO addition.
10915
10916         * line-number.c (buffer_line_number):
10917         * lisp.h:
10918         * lisp.h (EMACS_INT_MAX):
10919         Added the manifest constant EMACS_INT_MIN corresponding to the
10920         existing constant EMACS_INT_MAX.  This is partially to fix compile
10921         warnings under Windows, and partly for cleanliness.
10922
10923         * menubar-msw.c:
10924         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10925         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10926         * menubar-msw.c (displayable_menu_item):
10927         * menubar-msw.c (populate_menu_add_item):
10928         * menubar-msw.c (populate_or_checksum_helper):
10929         * menubar-msw.c (populate_menu):
10930         * menubar-msw.c (update_frame_menubar_maybe):
10931         * menubar-msw.c (prune_menubar):
10932         * menubar-msw.c (msw_char_is_accelerator):
10933         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10934         * menubar-msw.c (mswindows_handle_wm_command):
10935         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10936         * menubar-msw.c (mswindows_handle_wm_initmenu):
10937         * menubar-msw.c (mswindows_update_frame_menubars):
10938         * menubar-msw.c (mswindows_free_frame_menubars):
10939         * menubar-msw.c (mswindows_popup_menu):
10940         Fixed a bug in handling accelerators where an extra character
10941         would be displayed in the menu item.  Also generalized the
10942         function displayable_menu_item because it is now used by the
10943         dialog box code as well.  And finally, added code in the functions
10944         that create the menubar to extract a list of accelerators for the
10945         top level menubar, which is used in the event code to determine
10946         whether a particular alt-key combination should be used to invoke
10947         a menu item, or should be passed through to access the standard
10948         XEmacs keymap binding for this key combination.
10949
10950         Much needed GCPROing.
10951
10952         * menubar-x.c:
10953         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10954         * menubar-x.c (menu_item_descriptor_to_widget_value):
10955         * menubar-x.c (restore_in_menu_callback):
10956         * menubar-x.c (x_popup_menu):
10957         * menubar-x.c (menu_move_up):
10958         * menubar-x.c (menu_move_down):
10959         * menubar-x.c (menu_move_left):
10960         * menubar-x.c (menu_move_right):
10961         * menubar-x.c (menu_select_item):
10962         * menubar-x.c (command_builder_operate_menu_accelerator):
10963         * menubar-x.c (menu_accelerator_junk_on_error):
10964         * menubar-x.c (command_builder_find_menu_accelerator):
10965         * menubar-x.c (Faccelerate_menu):
10966         * menubar.h:
10967         Moved a whole bunch of code here that was previously in
10968         event-stream.c as described above.  There is also code connected
10969         to the new standard of adding an accelerator to the beginning of
10970         menu items that don't have one as described above and below.
10971
10972         * menubar.c:
10973         * menubar.c (menu_parse_submenu_keywords):
10974         * menubar.c (Fmenu_find_real_submenu):
10975         * menubar.c (Fnormalize_menu_item_name):
10976         * menubar.c (syms_of_menubar):
10977         * menubar.c (vars_of_menubar):
10978         * menubar.c (complex_vars_of_menubar):
10979
10980         a) Cleaned up a bunch of documentation and improved it.
10981
10982         b) XEmacs now automatically adds an accelerator onto the beginning
10983         of any menu items that don't have one.  I did this because there
10984         will inevitably be some menu items on the main menubar that don't
10985         have accelerators on them because the package that adds that
10986         particular menu item hasn't yet been fixed up to have accelerators
10987         in them and it looked rather strange to have some items with and
10988         some items without accelerators, especially since even in items
10989         without accelerators, you can, at least under windows, still
10990         access the item through an accelerator corresponding to the first
10991         character in the item's name.  If people don't like this behavior,
10992         I can add a variable to turn it off optionally, but I'm not sure
10993         this is a good idea because we really do need to have accelerators
10994         on all of the menu items, and if a package doesn't like the
10995         accelerators being put on the first character, then it should put
10996         the accelerators where they belong.
10997
10998         c) I made a behavior change, which is that the descriptor that
10999         specifies the text of the menu item, which formerly was just a
11000         string, can now also be an evaluated expression.  This makes this
11001         descriptor parallel with all of the others, which could also be
11002         evaluated expressions.  This also obviates the need for the
11003         keyword :label, which was previously listed in the documentation
11004         as unimplemented, and which was for the same purpose.
11005
11006         d) GCPROing.
11007
11008         * ntproc.c:
11009         * ntproc.c (new_child):
11010         * ntproc.c (sys_spawnve):
11011         * ntproc.c (find_child_console):
11012         * ntproc.c (sys_kill):
11013         Fixed compile warnings.  By the way, this file should really go
11014         away entirely, and this will happen as soon as Kirill makes his
11015         final round of process cleanups, which affect the function
11016         call-process.
11017
11018         * process-nt.c:
11019         * process-nt.c (struct nt_process_data):
11020         * process-nt.c (find_process_from_pid):
11021         * process-nt.c (send_signal_the_nt_way):
11022         * process-nt.c (enable_child_signals):
11023         * process-nt.c (find_child_console):
11024         * process-nt.c (send_signal_the_95_way):
11025         * process-nt.c (nt_finalize_process_data):
11026         * process-nt.c (ensure_console_window_exists):
11027         * process-nt.c (nt_create_process):
11028         * process-nt.c (nt_kill_child_process):
11029         * process-nt.c (nt_kill_process_by_pid):
11030         * process-nt.c (nt_open_network_stream):
11031         * process-nt.c (vars_of_process_nt):
11032         Copied over code from Emacs 20.5 to correctly send signals to sub-
11033         processes under Windows 95.  Also added code to automatically
11034         create and hide console window when a sub-process is created under
11035         Windows 95, which obviates the need for the separate runemacs.exe
11036         executable, and finally implemented some variables that were
11037         implemented in Emacs 20.5, but previously not in XEmacs.  These
11038         include mswindows- start-process-share-console and
11039         mswindows-start-process-inherit-error-mode. (Both of these only
11040         apply to Windows 95.)
11041
11042         * regex.c (regex_compile): Fixed a compile warning.
11043
11044         * select-msw.c:
11045         * select-msw.c (mswindows_own_selection):
11046         * select-msw.c (mswindows_get_foreign_selection):
11047         * select-msw.c (mswindows_disown_selection):
11048         * select-msw.c (console_type_create_select_mswindows):
11049         * select-msw.c (syms_of_select_mswindows):
11050         Cleaned up the file and implemented the device method
11051         selection_exists_p, which had accidentally been left out.  Also
11052         removed four lisp functions that were remnants from before the
11053         time when the selection code was properly device abstracted.
11054         These functions are no longer needed because there are generic
11055         equivalents, and because they were added recently and don't exist
11056         in FSF Emacs, I don't think there's any problem with just deleting
11057         them.
11058
11059         * sysdep.c:
11060         * sysdep.c (sys_subshell):
11061         Fixed a compile warning, although in this case there's probably
11062         something wrong with this code, and it ought to be looked into
11063         more thoroughly by somebody who understands it.
11064
11065         * window.c:
11066         * window.c (Fwindow_text_area_height):
11067         * window.c (Fwindow_width):
11068         * window.c (Fwindow_full_width):
11069         * window.c (Fwindow_pixel_width):
11070         * window.c (debug_print_window):
11071         * window.c (syms_of_window):
11072         Added functions window-text-area-height and window-full-width,
11073         which are functions for returning various width and height
11074         characteristics of a window. (One of these functions is necessary
11075         for making the file dialog box work correctly, and the other one
11076         was added for completeness.)  Also added a table to the
11077         documentation for window-height which describes the entire scheme
11078         for accessing width and height characteristics of a window.
11079
11080 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11081
11082         * nt.c (fstat): Added a comment for another problem with
11083         non-encapsulated [f]stat(), reported by Adrian Aichner
11084         <aichner@ecf.teradyne.com>.
11085
11086 2000-03-11  Andy Piper  <andy@xemacs.org>
11087
11088         * window.c (make_dummy_parent): initialize subwindow instance
11089         cache.
11090         (Fset_window_configuration): zero extent_modiff.
11091
11092 2000-03-10  Andy Piper  <andy@xemacs.org>
11093
11094         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11095         more changes can be triggered.
11096         (Fredisplay_frame): ditto.
11097         (Fredraw_device): ditto.
11098         (Fredisplay_device): ditto.
11099         (redisplay_frame): make non-static.
11100         (redisplay_frame): call update_frame_gutter_geometry outside of
11101         display proper.
11102
11103         * gutter.h: declare update_frame_gutter_geometry.
11104
11105         * redisplay.h: declare redisplay_frame.
11106
11107         * gutter.c (update_frame_gutter_geometry): move geometry changes
11108         in update_frame_gutters here. Geometry changes can only occur
11109         outside of redisplay.
11110         (update_frame_gutters): remove geometry change code.
11111         (Fredisplay_gutter_area): make sure that we are in display when we
11112         update and that we have flushed any size changes.
11113
11114 2000-03-11  Andy Piper  <andy@xemacs.org>
11115
11116         * alloc.c (pdump_dump_data): remove i & count shadows.
11117
11118 2000-02-27  Mike Alexander  <mta@arbortext.com>
11119
11120         * sysdep.h: Declare pdump_read_file
11121
11122         * sysdep.c (pdump_read_file): New function
11123
11124         * alloc.c (pdump_load): Call pdump_read_file to get the portable
11125         dump data
11126
11127 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11128
11129         * lrecord.h: add `lrecord_type_pgsetenv'.
11130
11131 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
11132
11133         * symsinit.h: declare (vars|syms)_of* functions.
11134         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11135
11136 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
11137
11138         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11139
11140         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11141         GCCs.
11142
11143         * emacs.c (main_1): Call postgres initialization code.
11144
11145         * postgresql.h: New file.  PostgreSQL RDBMS support.
11146         * postgresql.c: New file.
11147
11148 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11149
11150         * redisplay-output.c (redisplay_output_display_block): Disable
11151         redundant code.
11152
11153 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11154
11155         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11156         (Fcanna_henkan_next): Ditto.
11157         (Fcanna_bunsetu_henkou): Ditto.
11158         (Fcanna_henkan_kakutei): Ditto.
11159         (Fcanna_henkan_end): Ditto.
11160         (Fcanna_henkan_quit): Ditto.
11161         (Fcanna_henkan_next): Set retun value correctly.
11162         (c2mu): Use unsigned char instead of signed char.
11163
11164 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11165
11166         * emacs.c (main_1): Always call syms_of_gui.
11167         * inline.c: include gui.h
11168
11169 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11170
11171         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11172         converted to Lisp_Object.
11173         (Qtop_bottom): New variable.
11174         (syms_of_redisplay): Initialize it.
11175         * redisplay.h (Vvisible_bell): Ditto.
11176         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11177         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11178         only flash top and bottom.
11179
11180 2000-03-08  Andy Piper  <andy@xemacs.org>
11181
11182         * buffer.c (Frename_buffer): record new buffer name the right way.
11183
11184 2000-03-08  Andy Piper  <andy@xemacs.org>
11185
11186         * glyphs.c (update_subwindow): increase hash depth so that widget
11187         items get picked up properly.
11188
11189         * redisplay-output.c (compare_runes): increase hash depth so that
11190         widget items get picked up properly.
11191
11192 2000-03-08  Andy Piper  <andy@xemacs.org>
11193
11194         * gutter.c (output_gutter): add some debug.
11195
11196         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11197         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11198         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11199
11200         * redisplay-output.c (compare_runes): use display_hash to
11201         determine if glyphs really are not the same.
11202
11203         * glyphs.c (update_subwindow): check display_hash to see if
11204         anything really needs to be updated. If not then do
11205         nothing. Record the display_hash after updating.
11206         (image_instance_equal): compare the image_instance face also.
11207
11208 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11209
11210         * redisplay.h: Fix comment style.
11211
11212 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11213
11214         * consle-msw.h (struct mswindows_frame):
11215         Added new member paint_pending to indicate whether a WM_PAINT
11216         magic event has been queued for this frame.
11217
11218         * event-msw.c (mswindows_drain_windows_queue):
11219         Don't queue a WM_PAINT magic event if one is already queued.
11220         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11221
11222         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11223
11224 2000-03-07  Didier Verna  <didier@xemacs.org>
11225
11226         * dired.c: #include `regex.h' after `sysfile.h'.
11227
11228 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11229
11230         * sound.c (init_nas_sound): Fix compiler warning.
11231
11232         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11233         (FREE_STRUCT_P):
11234         (MARK_STRUCT_AS_FREE):
11235         (MARK_STRUCT_AS_NOT_FREE):
11236         Make `gcc -fstrict-aliasing' work properly.
11237
11238 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11239
11240         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11241         (mswindows_delete_device): Call CoUnnitialize().
11242
11243         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11244
11245 2000-02-25    <CraigL@DyCon.com>
11246
11247         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11248         <errno.h>.
11249
11250         * sysdep.c: This extern declaration for environ prevents MinGW
11251         from finding the variable in CRTDLL.DLL.
11252
11253         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11254         windows headers.
11255         (SHGFI_EXETYPE): ..
11256         (WM_MOUSEWHEEL): ..
11257         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11258         definitions.
11259         (MMRESULT): Removed, now defined in cygwin's windows headers.
11260         (TIMECAPS): ..
11261         (uid_t,gid_t,pid_t,ssize_t): ..
11262         (_timeb): Removed, MinGW defines both _timeb and timeb.
11263         (HAVE_H_ERRNO): Added.
11264         (HAVE_TZNAME): Added, configure is not detecting this.
11265
11266 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11267
11268         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11269         * syntax.c (syntax_match): Use it.
11270
11271         * cmds.c: Import auto-fill-chars from FSF Emacs.
11272         (Vauto_fill_chars): New variables.
11273         (internal_self_insert): Check Vauto_fill_chars.
11274         (vars_of_cmds):
11275         Declare auto-fill-chars as a Lisp variable and initialize it.
11276
11277 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11278
11279         * fileio.c (Fmake_symbolic_link):
11280         (Ffile_symlink_p):
11281         Run handlers even if local machine doesn't have symlinks.
11282
11283 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11284
11285         * event-msw.c (mswindows_drain_windows_queue):
11286         Don't generate paint magic events for non-XEmacs frames.
11287
11288 2000-03-05  Andy Piper  <andy@xemacs.org>
11289
11290         * redisplay.c (redisplay_frame): generate_displayable_area and
11291         friends assumes that we are not in GC, we therefore have to make
11292         sure that this doesn't happen.
11293
11294         * gutter.c (calculate_gutter_size): generate_displayable_area
11295         assumes that we are not in GC, we therefore have to make sure that
11296         this doesn't happen.
11297
11298 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11299
11300         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11301
11302 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11303
11304         * redisplay.c (regenerate_window): Make sure we set a sane value
11305         for end_pos even if we jump out of the loop.
11306         (regenerate_window): Answer Ben's question :-).
11307         (start_end_of_last_line): Add may_error argument.
11308         (start_of_last_line):
11309         (end_of_last_line): Pass may_error = 0.
11310         (end_of_last_line_may_error): New function.
11311         (pixel_to_glyph_translation): Use it, so we don't crash in
11312         event_to_glyph.
11313
11314 2000-03-04  Andy Piper  <andy@xemacs.org>
11315
11316         * window.h (struct window): add gutter_extent_modiff.
11317
11318         * window.c (allocate_window): zero out gutter_extent_modiff.
11319
11320         * redisplay.h: declare sync_display_line_structs.
11321
11322         * redisplay.c (add_glyph_rune): add a better comment.
11323
11324         * redisplay-output.c (sync_display_line_structs): made non-static.
11325         (compare_runes): remove unneccesary glyph cachel access.
11326
11327         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11328
11329         * gutter.c (output_gutter): don't output the gutter if extent
11330         changes only involve extents in buffers. use 4 sets of display
11331         lines.
11332         (gutter_extent_signal_changed_region_maybe): new function. Mark
11333         extents in gutters as changed.
11334         (update_frame_gutters): use 4 sets of display lines.
11335         (reset_gutter_display_lines): ditto.
11336         (free_frame_gutters): ditto.
11337         (redraw_exposed_gutter): force output of gutters.
11338
11339         * frame.h (struct frame): add 4 sets of gutter display lines.
11340
11341         * extents.c: (extent_changed_for_redisplay): signal changes to
11342         extents in strings in the gutter as well as extents in buffers.
11343
11344 2000-03-02  Andy Piper  <andy@xemacs.org>
11345
11346         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11347
11348         * frame.c (Fmake_frame): make sure the gutters get initialized
11349         after the frame is visible.
11350         (set_frame_selected_window): re-arrange compilation macros a
11351         little.
11352         (change_frame_size_1): mark gutters changed.
11353
11354         * device.c (Fset_device_class): mark gutters changed.
11355
11356 2000-03-01  Andy Piper  <andy@xemacs.org>
11357
11358         * window.c (window_top_frame_gutter_height): deleted.
11359         (window_bottom_frame_gutter_height): ditto.
11360         (window_left_frame_gutter_height): ditto.
11361         (window_right_frame_gutter_height): ditto.
11362         (window_top_gutter_height): don't use them.
11363         (window_bottom_gutter_height): ditto.
11364         (window_left_gutter_width): ditto.
11365         (window_right_gutter_width): ditto.
11366         (Fsplit_window): ditto.
11367         (Fwindow_pixel_edges): don't use border dimensions here.
11368
11369         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11370         (update_scrollbar_instance): ditto.
11371
11372         * redisplay.c (generate_modeline): don't take gutters into account.
11373         (generate_modeline): ditto.
11374         (redisplay_frame): small gutter display optimization.
11375
11376         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11377
11378         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11379         gutters into account.
11380
11381         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11382         for window position and type.
11383
11384         * gutter.c (get_gutter_coords): fix for frame gutters.
11385         (update_frame_gutters): update frame geometry if the gutters have
11386         changed.
11387         (init_frame_gutters): record current gutter geometries.
11388
11389         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11390         var.
11391         (mswindows_widget_instantiate): ditto.
11392
11393         * frame.h (struct frame): add current_gutter_bounds.
11394
11395         * frame.c (change_frame_size_1): position window and minibuffer
11396         appropriately taking into account the frame gutters.
11397
11398         * frame-x.c: (x_initialize_frame_size): take into account the
11399         frame gutters.
11400
11401 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11402
11403         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11404
11405 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11406
11407         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11408
11409 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11410
11411         * file-coding.c (reset_decoding_stream): Clear previous
11412         detection state when autodetect.
11413
11414 2000-02-29  Didier Verna  <didier@xemacs.org>
11415
11416         * extents.c (set_extent_glyph_1): don't require extents to be
11417         attached.
11418
11419 2000-02-27  Andy Piper  <andy@xemacs.org>
11420
11421         * gutter.c (Fset_default_gutter_position): don't default left and
11422         right gutter visibility to t.
11423         (Fset_default_gutter_position): run
11424         default-gutter-position-changed-hook.
11425         (syms_of_gutter): add default-gutter-position-changed-hook.
11426
11427 2000-02-26  Andy Piper  <andy@xemacs.org>
11428
11429         * specifier.c (Fmake_specifier): add gutter references.
11430
11431         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11432
11433         * lisp.h: declare Fvalid_plist_p.
11434
11435         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11436         as changed.
11437         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11438         well as its visibility so that it gets reconstructed.
11439         (construct_window_gutter_spec): new function. Construct a string
11440         to be displayed in the gutter from a plist of strings. Take care
11441         to only use elements that are declared as visible.
11442         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11443         WINDOW_GUTTER.
11444         (gutter_validate): allow plists of strings in the specifier.
11445         (gutter_specs_changed): construct the real_gutter from the gutter
11446         specs using construct_window_gutter_spec.
11447         (gutter_visible_validate): gutter-visible is a new specifier type.
11448         (Fgutter_visible_specifier_p): new function for the new specifier.
11449         (syms_of_gutter): declare gutter-visible and
11450         Fgutter_visible_specifier_p.
11451         (specifier_type_create_gutter): intitalize new gutter-visible
11452         specifier.
11453         (reinit_specifier_type_create_gutter): ditto.
11454         (specifier_vars_of_gutter): use new specifier type for gutter
11455         visibility.
11456         (init_frame_gutters): construct real_gutter correctly.
11457         (Fgutter_specifier_p): beef up documentation.
11458         (Fgutter_size_specifier_p): ditto.
11459
11460         * winslots.h: add real_gutter slots.
11461
11462 2000-02-25  Andy Piper  <andy@xemacs.org>
11463
11464         * device-msw.c: Be kind to older cygwin versions. From Raymond
11465         Toy <toy@rtp.ericsson.se>.
11466
11467         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11468         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11469
11470 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11471
11472         * elhash.c (MARK_OBJ): Practice macro hygiene.
11473
11474 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11475
11476         * miscplay.c: s/__inline__/inline/g;
11477         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11478         (get_device_compdc): INLINE ==> static inline
11479         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11480         find -name '*.h' | \
11481         xargs global-replace \
11482         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11483
11484 2000-02-25  Andy Piper  <andy@xemacs.org>
11485
11486         * window.c (window_top_frame_gutter_height): new function.
11487         (window_top_window_gutter_height): ditto.
11488         (window_top_gutter_height): use them.
11489         (window_bottom_frame_gutter_height): new function.
11490         (window_bottom_window_gutter_height): ditto.
11491         (window_bottom_gutter_height): use them.
11492         (window_left_window_gutter_width): new function.
11493         (window_left_frame_gutter_width): ditto.
11494         (window_left_gutter_width): use them.
11495         (window_right_window_gutter_width): new function.
11496         (window_right_frame_gutter_width): ditto.
11497         (window_right_gutter_width): use them.
11498         (window_pixel_height): new function. calulate window pixel height
11499         with frame gutter involvement.
11500         (Fsplit_window): calculate new sizes taking frame gutters into
11501         account.
11502         (window_char_height_to_pixel_height): don't include frame gutters.
11503         (window_char_height): use window_pixel_height.
11504         (window_pixheight): rename from window_pixel_height.
11505         (change_window_height): use it.
11506         (window_pixel_height_to_char_height): don't include frame gutters.
11507         (window_char_width_to_pixel_width): ditto.
11508
11509 2000-02-25  Andy Piper  <andy@xemacs.org>
11510
11511         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11512         if it is.
11513
11514 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11515
11516         * alloc.c (staticpro):
11517         (staticpro_nodump):
11518         (dumpstruct):
11519         (dumpopaque):
11520         (pdump_wire):
11521         (pdump_wire_list):
11522         (compact_string_chars):
11523         (pdump_dump_wired):
11524         Convert:  if (foo) abort();  ==>  assert (! foo);
11525
11526         * eldap.c (Fldap_search_basic):
11527         (Fldap_add):
11528         (Fldap_modify):
11529         (Fldap_delete):
11530         Fix compiler warnings, and possible crashes if (random) return
11531         value were to be used.
11532
11533 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11534
11535         * device-msw.c: Workaround ResetDC failure.
11536
11537         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11538         applying a devmode.
11539
11540         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11541         (mswindows_text_width): Do not start printer page.
11542
11543         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11544
11545         * glyphs-msw.c: Added image methods to msprinter console and
11546         msprinter-specific image instantiation.
11547
11548 2000-02-20  Mike Alexander  <mta@arbortext.com>
11549
11550         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11551         to avoid crashes when selection-sets-clipboard is on
11552         (mswindows_own_selection): ditto
11553
11554 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11555
11556         * glyphs-msw.c:
11557         * redisplay-msw.c (get_frame_dc):
11558         (get_frame_compdc):
11559         * console-msw.h:
11560         * device-msw.c (mswindows_init_device):
11561         (mswindows_delete_device):
11562         (msprinter_init_device):
11563         (msprinter_delete_device):
11564         * frame-msw.c (mswindows_init_frame_1):
11565         (mswindows_delete_frame):
11566         (msprinter_init_frame_3):
11567         (msprinter_delete_frame): Move compatible DC to device object from
11568         frame object, for both mswindows and msprinter. Only one at a time
11569         is needed, it is a real waste to have one per frame!
11570
11571 2000-02-23  Andy Piper  <andy@xemacs.org>
11572
11573         * glyphs.c: add dynamic width and height elements.
11574         (image_instance_equal): ditto.
11575
11576         * glyphs-widget.c (widget_query_geometry): calculate width and
11577         height dynamically if required.
11578         (initialize_widget_image_instance): initialize dynamic dimensions.
11579         (widget_instantiate): pick-up dynamic dimensions.
11580
11581         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11582         dynamic determination. Add appropriate macros.
11583
11584         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11585         dimensions safe.
11586         (WINDOW_GUTTER_SIZE): ditto.
11587         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11588
11589         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11590         inline.
11591         (get_frame_dc): ditto.
11592
11593         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11594         here.
11595
11596 2000-02-23  Martin Buchholz <martin@xemacs.org>
11597
11598         * XEmacs 21.2.31 is released.
11599
11600 2000-02-22  Ben Wing <ben@xemacs.org>
11601
11602         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11603
11604 2000-02-22  Andy Piper  <andy@xemacs.org>
11605
11606         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11607
11608 2000-02-21  Mike Sperber <mike@xemacs.org>
11609
11610         * .dbxrc:
11611         * .gdbinit:
11612         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11613         variables.
11614
11615 2000-02-21  Mike Sperber <mike@xemacs.org>
11616
11617         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11618
11619 2000-02-21  Martin Buchholz <martin@xemacs.org>
11620
11621         * XEmacs 21.2.30 is released.
11622
11623 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11624
11625         Performance hacking.
11626         * *.c (syms_of_*):
11627         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11628         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11629         * emacs.c (main_1):
11630         * lisp.h (DEFUN):
11631         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11632         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11633         * symeval.h (DEFVAR_SYMVAL_FWD):
11634         * symbols.c (guts_of_unbound_marker):
11635         Make all c_readonly objects also lisp_readonly and marked for life.
11636         * lrecord.h (struct lrecord_implementation):
11637         Document flags better.
11638         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11639         * lrecord.h (DECLARE_LRECORD):
11640         * lrecord.h (XSETRECORD):
11641         * lrecord.h (RECORDP):
11642         * lrecord.h (RECORD_TYPEP):
11643         * lrecord.h (RECORD_MARKER): New.
11644         * lrecord.h (error_check_*):
11645         * lrecord.h (CONCHECK_NONRECORD):
11646         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11647         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11648         * lrecord.h (set_lheader_implementation):
11649         * lrecord.h (enum lrecord_type): New.
11650         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11651         * alloc.c (disksave_object_finalization_1):
11652         * alloc.c (mark_object):
11653         * alloc.c (lrecord_type_index):
11654         * alloc.c (tick_lcrecord_stats):
11655         * alloc.c (Fgarbage_collect):
11656         * alloc.c (init_alloc_once_early):
11657         * alloc.c (pdump_load):
11658         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11659         * alloc.c (lrecord_type_index): Delete.
11660         Make lisp object type indexes be constant.
11661           Makes (byte-compile) 5% faster.
11662         Put all marker functions into their own array.
11663           Makes (garbage-collect) 5% faster.
11664         Optimize SYMBOL_VALUE_MAGIC_P.
11665           Makes (byte-compile) 2-3% faster.
11666         * config.h.in (gc_checking_assert): New.
11667         * alloc.c: Use gc_checking_assert().
11668         * .dbxrc: Make compatible with new object type implementation.
11669         * .gdbinit: Make compatible with new object type implementation.
11670         * alloc.c: Delete all symbols defined only for debugging, such as
11671         Lisp_Type_Vector and lrecord_charset.
11672
11673 2000-02-21  Andy Piper  <andy@xemacs.org>
11674
11675         * gui-msw.c (Fmswindows_shell_execute): fix file location
11676         problems.
11677
11678         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11679         unshowing so that set_window_buffer doesn't undo
11680         kill_buffer_hook's hard work.
11681
11682         * glyphs-widget.c (tab_control_query_geometry): don't count the
11683         first item when calculating geometry.
11684
11685         * glyphs.c (map_subwindow): remove redundant code.
11686         (update_frame_subwindows): be more circumspect about when to
11687         update subwindows.
11688
11689         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11690         when items haven't changed. Update faces if faces have changed as
11691         well as just the widget face.
11692         (x_tab_control_update): Update faces if faces have changed as well
11693         as just the widget face.
11694
11695 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11696
11697         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11698         registration.
11699         (build_syscolor_string): Use mswindows_color_to_string to try to
11700         get a named color.
11701         (mswindows_device_system_metrics): Reverse the foreground and
11702         background colors so that they match the documentation.
11703
11704         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11705         they match the default Windows palette.
11706         (mswindows_color_to_string): New function.
11707
11708 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11709
11710         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11711
11712 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11713
11714         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11715         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11716
11717         * symbols.c (init_symbols_once_early): Removed obsolete
11718         DATA_SEG_BITS related kludge.
11719         (defvar_magic): Ditto.
11720
11721         * malloc.c: Removed obsolete DATA_SEG_BITS
11722         * ralloc.c: Ditto.
11723         * mem-limits.h: Ditto.
11724
11725         * Makefile.in.in: Removed obsolete HAVE_SHM
11726         * emacs.c: Ditto.
11727
11728 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11729
11730         *  device-msw.c (mswindows_delete_device): Free DDE string
11731         handles.
11732
11733 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11734
11735         * keymap.c (get_keyelt):
11736         * unexnt.c (unexec):
11737         * vm-limit.c (memory_warnings):
11738         * ntheap.c (recreate_heap):
11739         * ntheap.h (UNINIT_PTR):
11740         * select-msw.c (Fmswindows_get_clipboard):
11741         (Fmswindows_set_clipboard):
11742         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11743         * objects-msw.c:
11744         * menubar-msw.c (displayable_menu_item):
11745         * glyphs-msw.c:
11746         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11747         * sysdep.c (sys_subshell):
11748         * process-nt.c (nt_create_process):
11749         * nt.c (normalize_filename):
11750         (dostounix_filename):
11751         (unixtodos_filename):
11752         * ntproc.c (win32_executable_type):
11753         * ntplay.c (play_sound_data_1):
11754         (play_sound_file):
11755         * editfns.c (get_home_directory):
11756         * event-msw.c (struct winsock_stream):
11757         (mswindows_dde_callback):
11758         * device-msw.c (msprinter_init_device):
11759         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11760
11761         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11762         mswindows_clear_toolbar were swapped!
11763
11764         * objects-msw.c:(colormap_t):
11765         (fontmap_t):
11766         * emacs.c (struct standard_args): Fixed const jumble.
11767
11768         * glyphs-widget.c (update_widget): Fixed comparison notation.
11769
11770         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11771
11772         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11773         __declspec(noreturn) syntax.
11774
11775 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11776
11777         * eldap.c (Fldap_open):
11778         (Fldap_search_basic):
11779         (Fldap_add):
11780         (Fldap_modify):
11781         Use new coding system conversion macros.
11782
11783 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11784
11785         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11786
11787 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11788
11789         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11790         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11791
11792         * eldap.c (Qadd, Qreplace): New constant symbols
11793         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11794         interruptions by XEmacs signals
11795         Remove unnecessary calls to slow_down_interrupts and
11796         speed_up_interrupts
11797         (Fldap_search_basic): Renamed from Fldap_search_internal
11798         Added new optional parameter VERBOSE that triggers the
11799         display of progress messages
11800         Remove unnecessary calls to slow_down_interrupts and
11801         speed_up_interrupts
11802         LDAP result code analysis rewritten
11803         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11804         (syms_of_eldap): Define the new symbols and functions
11805
11806
11807 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11808
11809         * realpath.c: Determine PATH_MAX maximally portably.
11810
11811         * insdel.c (bytecount_to_charcount): Optimize.
11812         The function used to be optimized for entirely ASCII sequences.
11813         Now it is optimized for successive characters from the same
11814         charset.  This also wins big for _mostly_ ASCII sequences.
11815
11816         * fileio.c (Ffile_truename): convert return from realpath() using
11817         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11818         - Rewrite GCPROing slightly.
11819
11820         * sysdep.c (sys_open): Do filename conversion, like all other
11821         sys_* functions.  Fixes bug:
11822         (let ((file-name-coding-system 'iso-8859-2))
11823            (write-region x y latin2-name))
11824         ==> writes filename using internal encoding.
11825
11826 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11827
11828         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11829         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11830         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11831         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11832         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11833         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11834         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11835         (CONST_IF_NOT_DEBUG): Delete.
11836         * alloc.c (this_one_is_unmarkable): Delete.
11837         (mark_object): Don't check for this_one_is_unmarkable. Use the
11838         c_readonly flag instead.
11839         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11840
11841 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11842
11843         * event-msw.c (mswindows_drain_windows_queue):
11844         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11845         away redundant repaint events.
11846
11847 2000-02-17  Andy Piper  <andy@xemacs.org>
11848
11849         * redisplay.h: declare mark_redisplay_structs.
11850
11851         * redisplay.c (redisplay_window):
11852         (redisplay_frame): don't check subwindows_state_changed.
11853         (mark_redisplay): mark gutters here.
11854
11855         * glyphs.c: (instantiate_image_instantiator): always layout if we
11856         haven't done so already.
11857         (allocate_image_instance): don't mark as dirty.
11858         (update_subwindow): bind inhibit_quit.
11859
11860         * gutter.c (mark_gutters): new function.
11861
11862         * glyphs-x.c (x_update_widget): Always resize to get round a
11863         widget bug.
11864
11865         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11866         breaking absolutely everything.
11867
11868         * gutter.h: declare mark_gutters.
11869
11870 2000-02-16  Martin Buchholz <martin@xemacs.org>
11871
11872         * XEmacs 21.2.29 is released.
11873
11874 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11875
11876         * fns.c (size_bit_vector): Fix computation of the size.
11877
11878 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11879
11880         * *.[ch]: Change CONST to const globally.
11881         find -name '*.[ch]' | \
11882         xargs global-replace \
11883         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11884         - Remove vestigial references to CONST_IS_LOSING
11885
11886 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11887
11888         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11889         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11890         events instead of dispatching them directly.
11891         (mswindows_handle_paint): New function to do repainting.
11892         (mswindows_wnd_proc):
11893         (emacs_mswindows_handle_magic_event): Call above function.
11894
11895 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11896
11897         * objects-msw.c (mswindows_create_font_variant): Return the new
11898         font handle.
11899         (initialize_font_instance): Get font metrics from the underlined
11900         variant of the font to cope with the case where the underlined
11901         font has a bigger descent.
11902
11903 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11904
11905         * gui.c (gui_item_accelerator): Return the first underlined
11906         character in item name.
11907
11908 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11909
11910         * lisp.h: Added Qprinter.
11911
11912         * general.c (syms_of_general): Initialized it.
11913
11914         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11915         (get_frame_dc):
11916         (get_frame_compdc): Made inline.
11917
11918         * console.h (struct console_methods): Added eject_page method.
11919
11920         * frame.h: Added FRAME_DISPLAY_P and friends.
11921         Aligned backslahes in many macros in more readable fashion.
11922         Added page_number to struct frame, and an accessor macro
11923         for it.
11924
11925         * defice.h: Added DEVICE_DISPLAY_P and friends.
11926
11927         * device.c (Fdevice_printer_p): Used these.
11928
11929         * frame.c (allocate_frame_core): Initialize page number.
11930         (Fprint_job_page_number):
11931         (Fprint_job_eject_page): Implemented.
11932
11933         * frame-msw.c (msprinter_eject_page): Added method.
11934         (msprinter_start_page): Added.
11935
11936         * window.c (Fwindow_truncated_p): Fixed docstring.
11937         (Fwindow_last_line_visible_height): Implemented.
11938
11939 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11940
11941         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11942
11943 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11944
11945         * syntax.c (scan_words): Always advance at least one character.
11946
11947 2000-02-13  Andy Piper  <andy@xemacs.org>
11948
11949         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11950         to make sure the glyph is in the cachels.
11951
11952         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11953         global image instance flag.
11954         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11955         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11956
11957         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11958         (Fset_image_instance_property): mark layout as changed.
11959         (invalidate_glyph_geometry_maybe): mark layout as changed.
11960         (glyph_width): use new NEEDS_LAYOUT macro.
11961         (glyph_ascent): ditto.
11962         (glyph_descent): ditto.
11963         (glyph_height): ditto.
11964         (image_instance_layout): mark layout as clean after laying out.
11965         (update_subwindow): don't mark layout as clean here.
11966
11967         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11968         should no longer be needed.
11969
11970         * glyphs-x.c (x_update_widget): sanitize asserts.
11971         (x_finalize_image_instance): sanitize assignment to widgets.
11972
11973         * glyphs-widget.c (widget_instantiate): don't need to clear the
11974         layout flag here.
11975
11976 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11977
11978         * sysdep.c (getcwd): Use standard prototype.
11979         * sysdep.h (getcwd): Use standard prototype.
11980
11981         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11982         (sequence, start, end).
11983         Remove redundant type checking.
11984         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11985         view of `caller-protects') to avoid a crash where the real fix was
11986         found elsewhere.
11987
11988 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11989
11990         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11991
11992         * s/sol2.h: Remove feature macro initialization.
11993
11994         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11995         (vector_hash): New.  Code from internal_hash.
11996         * lrecord.h:
11997         Fix up allocation subsystem comments.
11998
11999         * config.h.in: Add __EXTENSIONS__ for Solaris.
12000
12001         * systime.h (EMACS_GETTIMEOFDAY): New.
12002         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
12003         Remove Solaris-specific code.
12004         Use void* for the (ignored) second arg for gettimeofday().
12005
12006         * elhash.c (hash_table_hash): Implement it, finally.
12007         * elhash.c:  Use hashcode_t.
12008
12009         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
12010         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
12011
12012         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
12013         * fns.c (size_bit_vector):
12014         * alloc.c (size_vector):
12015         (make_vector_internal):
12016         (make_bit_vector_internal):
12017         (sweep_bit_vectors_1):
12018         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
12019
12020 2000-02-10  Martin Buchholz  <martin@xemacs.org>
12021
12022         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
12023         Include strings.h to avoid warnings for bzero and strcasecmp.
12024
12025 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12026
12027         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
12028         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
12029
12030         * fns.c (size_bit_vector): New.  Declare bit vectors as a
12031         sequence.
12032
12033 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12034
12035         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
12036         use a value field instead.
12037         (symbol_value_forward_forward): Use value field.
12038         (DEFVAR_SYMVAL_FWD): Use value field.
12039         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
12040         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
12041         (DEFVAR_CONST_INT): Ditto.
12042         (DEFVAR_BOOL): Ditto.
12043         (DEFVAR_CONST_BOOL): Ditto.
12044         (DEFVAR_INT_MAGIC): Ditto.
12045         (DEFVAR_BOOL_MAGIC): Ditto.
12046
12047         * symbols.c (guts_of_unbound_marker): Use value field.
12048         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
12049         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
12050
12051         * lisp.h: Declare dumpopaque and noninteractive1.
12052
12053         * alloc.c (dumpopaque): Added.
12054         (pdump_dump_opaquevec): Added.
12055         (pdump): Call pdump_dump_opaquevec to dump opaque data.
12056         (pdump_load): Reload opaque data.  Sync noninteractive1 with
12057         noninteractive.
12058
12059 2000-02-10  Andy Piper  <andy@xemacs.org>
12060
12061         * glyphs.c (image_instance_layout): if the size changes, mark it
12062         as such.
12063
12064         * redisplay-output.c (redisplay_output_layout): Update the
12065         subwindow here.
12066         (redisplay_output_subwindow): ditto.
12067
12068         * glyphs.c (update_subwindow): make sure we reset flags for
12069         layouts as well as everything else.
12070
12071         * glyphs-widget.c (layout_layout): don't need to set the instances
12072         dimensions here.
12073
12074 2000-02-09  Martin Buchholz  <martin@xemacs.org>
12075
12076         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
12077         not HAVE_DLOPEN, which is a lower-level thing.
12078
12079         * .cvsignore: Ignore gmon.out
12080
12081 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
12082
12083         * .cvsignore: Ignore portable dumper xemacs.dmp file
12084
12085 2000-02-09  Andy Piper  <andy@xemacs.org>
12086
12087         * redisplay-output.c (redisplay_output_layout): be more clever
12088         about when we output based on the changed flags.
12089
12090         * glyphs.h (struct image_instantiator_methods): add update_method.
12091         (struct Lisp_Image_Instance): add changed flags. Declare new
12092         macros for manipulating them.
12093
12094         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12095         (image_instance_parent_glyph): find an image_instance's parent
12096         glyph or image_instance.
12097         (image_instance_layout): mark the size as changed.
12098         (set_image_instance_dirty_p): new function. mark an image
12099         instance, plus all of its parents, as dirty.
12100         (Fset_image_instance_property): use it.
12101         (Fglyph_animated_timeout_handler): use it.
12102         (update_subwindow): call update_widget and device methods for
12103         update_subwindow. Mark all changed flags as clean.
12104         (Fresize_subwindow): mark size as changed.
12105
12106         * glyphs-x.c (x_finalize_image_instance): try and detect gc
12107         failures.
12108         (x_update_subwindow): only resize subwindows here.
12109         (x_update_widget): new function. Update all changed properties of
12110         a widget.
12111         (x_resize_subwindow): deleted.
12112         (x_widget_set_property): deleted.
12113         (x_progress_gauge_set_property): deleted.
12114         (x_progress_gauge_update): new function. Implement recorded
12115         changes.
12116         (x_tab_control_update): ditto.
12117         (x_tab_control_set_property): deleted.
12118         (console_type_create_glyphs_x): declare new functions.
12119         (image_instantiator_format_create_glyphs_x): ditto.
12120
12121         * glyphs-widget.c (widget_set_property): mark text changed.
12122         (update_widget): new function. Update properties of a widget.
12123         (widget_instantiate): for layouts make sure we set their
12124         children's parent correctly.
12125         (tab_control_set_property): new function. Record changes that will
12126         take place under redisplay's control.
12127         (progress_gauge_set_property): ditto.
12128         (image_instantiator_progress_guage): declare new functions.
12129         (image_instantiator_tab_control): ditto.
12130
12131         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12132         now.
12133         (mswindows_update_widget): new function. Update all properties on
12134         a widget that have changed.
12135         (mswindows_button_update): new function. Update a button's set
12136         state.
12137         (mswindows_tab_control_update): new function. Update the items in
12138         a tab.
12139         (mswindows_tab_control_set_property): deleted.
12140         (mswindows_progress_gauge_update): new function. Update the
12141         progress gauge's progress.
12142         (mswindows_widget_set_property): deleted. This is all done
12143         asynchronously now.
12144         (mswindows_progress_gauge_set_property): ditto.
12145         (console_type_create_glyphs_mswindows): declare new methods.
12146         (image_instantiator_format_create_glyphs_mswindows): ditto.
12147
12148         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12149         (msprinter_set_frame_properties): ditto.
12150
12151         * console.h (struct console_methods): Add update_widget_method.
12152
12153 2000-02-09  Andy Piper  <andy@xemacs.org>
12154
12155         * gui-msw.c (Fmswindows_shell_execute): Make
12156         mswindows-shell-execute industrial strength.
12157
12158 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12159
12160         * lrecord.h: Make macro argument `props' match member function `plist'.
12161         * fns.c (Fget):
12162         * fns.c (Fput):
12163         * fns.c (Fremprop):
12164         * fns.c (Fobject_plist):
12165         * alloc.c:
12166         * symbols.c:
12167         Object property list frobbing cleanup.
12168         - Allow any lisp object (compared with `eq'), not just symbols, as
12169           keys in object plists.
12170         - Move symbol plist frobbing into symbols.c, where it belongs.
12171         - Move string plist frobbing into alloc.c, where it belongs.
12172         - Everything's an lrecord now, so no need to test for symbolp, etc.
12173         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12174
12175         * extents.c: Reorder code to remove declarations.
12176
12177         * frame.h (store_in_alist): Remove useless declaration.
12178
12179 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12180
12181         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12182         * config.h.in: Add HAVE_XCONVERTCASE.
12183
12184 2000-02-07  Andy Piper  <andy@xemacs.org>
12185
12186         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12187         it breaks many things.
12188
12189 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12190
12191         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12192         actually can start a common comment type.
12193         * src/syntax.h (SYNTAX_END_P): ditto for end.
12194
12195 2000-02-07  Martin Buchholz <martin@xemacs.org>
12196
12197         * XEmacs 21.2.28 is released.
12198
12199 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12200
12201         * event-Xt.c (x_keysym_to_character): New.
12202         (maybe_define_x_key_as_self_inserting_character): New.
12203         (x_has_keysym): New.
12204         Auto-define all keys on the keyboard as self-insert-key.
12205
12206 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12207
12208         * menubar.c (vars_of_menubar): A small code simplification.
12209
12210         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12211
12212         * ExternalShell.c:
12213         * ExternalClient.c:
12214         * EmacsShell-sub.c:
12215         * EmacsManager.c:
12216         * EmacsFrame.c:
12217         Use consistent style for specifying X resources.
12218
12219         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12220         This makes (dontusethis-set-symbol-value-handler) actually usable.
12221
12222         * lrecord.h (lrecord_decription_type):
12223         * alloc.c (pdump_register_sub):
12224         (pdump_dump_data):
12225         (pdump_reloc_one):
12226         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12227         Comply with XEmacs coding style.
12228         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12229         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12230
12231         * keymap.c (Faccessible_keymaps):
12232         Make (accessible-keymaps map "\C-h") do the Right Thing.
12233         Make (accessible-keymaps map []) do the Right Thing.
12234         Make (accessible-keymaps map "") do the Right Thing.
12235         (check_keymap_definition_loop): New function.
12236         (keymap_store_internal): Keep luser from shooting self in foot,
12237           via (define-key ctl-x-4-map "p" global-map).
12238         Remove fullness slot from struct Lisp_Keymap, since hash tables
12239         are now reliable.
12240         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12241
12242 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12243
12244         * redisplay.c (init_redisplay): Fix small memory leak.
12245         * elhash.h:
12246         * elhash.c (pdump_reorganize_hash_table):
12247         Rename from reorganize_hash_table. Change prototype.
12248         Reuse the original memory for hentries.  Save 100k.
12249         * alloc.c (PDUMP_READ): new macro.
12250         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12251         * alloc.c: No need to #ifndef before #undef.
12252
12253         * print.c: Allow debug_print() to print readably by modifying
12254         debug_print_readably.  Use consistent variable names.
12255
12256         * .dbxrc: Try to get things to work even if stopped in a function
12257         without source available by explicitly specifying source files.
12258 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12259
12260         * unexnt.c (_start): Removed bogus code which caused loading heap
12261         from differrent executable file.
12262         Removed bogus assignment to _fmode, which caused inconsistencies.
12263
12264 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12265
12266         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12267         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12268         Do not preliminary `#define signal sigset'.
12269
12270         * systime.h: Do not prototype environ on windows nt and cygwin,
12271         this conflicts with system header.
12272
12273         * syssignal.h: Use correct define for WINDOWSNT
12274
12275         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12276         with system header.
12277
12278         * sysdep.c (near start of file): Fixed commentary and rearranged
12279         ifdefs in readable order.
12280         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12281         (start_of_text):
12282         (end_of_text):
12283         (end_of_data): Do not compile in if using PDUMP.
12284
12285         * symsinit.h: Prototyped vars_of_nt().
12286
12287         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12288         (find_child_console): Use it.
12289         (sys_kill): Use it.
12290
12291         * ntheap.h: Do not extern os_subtype.
12292
12293         * ntheap.c (cache_system_info): Do not cache unneeded:
12294         nt_major_version, nt_minor_version and os_subtype.
12295         (recreate_heap): Do not compile in when PDUMPing.
12296
12297         * nt.c (geteuid and friends): Use the new varibale
12298         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12299         (init_user_info): Removed the above mentioned hackery.
12300         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12301         stat has been fixed in the C runtime.
12302         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12303
12304         * file-coding.c (struct file_coding_dump): Do not define
12305         ucs_to_mule_table in the struct if not MULE.
12306         (struct struct lrecord_description fcd_description_1): Do not dump
12307         the above.
12308
12309         * emacs.c (main_1): Call vars_of_nt().
12310         (right before Fdump_emacs_data): Don't need lastfile if using both
12311         portabe dumper and system malloc.
12312
12313         * alloc.c (Fmemory_limit): Conditionalized out.
12314         (pdump): Use OPEN_BINARY for the portable dump file.
12315         (pdump_load): Ditto.
12316
12317 2000-02-02  Mike Alexander  <mta@arbortext.com>
12318
12319         * nt.c (convert_time): Set tm_isdst before calling mktime and
12320         avoid calling it at all if the compiler supports 64 bit integers.
12321         Also initialize utc_base_ft before using it.
12322
12323 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12324
12325         * frame.c (change_frame_size_1): Take f->internal_border_width
12326         into consideration when calculating the width of the frame.
12327
12328 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12329
12330         * window.c (frame_min_height):
12331         (frame_size_valid_p):
12332         (frame_pixsize_valid_p): Added.
12333         (check_frame_size): Generalized.
12334
12335         * window.h: Prototyped the above.
12336
12337         * lisp.h:
12338         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12339         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12340         Deleted Vwin32_* and Vbinary_process_* unused variables.
12341
12342         * device-msw.c (msprinter_init_device): Do not get printer font
12343         list; Added DEVMODE functions.
12344
12345         * frame-msw.c: Added lots of printer code.
12346
12347         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12348         general.c.
12349
12350         * console-msw.h: Added more msprinter device private slots.
12351
12352 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12353
12354         * event-msw.c (key_needs_default_processing_p): Added.
12355         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12356
12357 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12358
12359         * glyphs.c (image_instance_layout): Mark image instance as clean
12360         after layout.
12361         (glyph_dirty_p): Removed redundant function.
12362         (invalidate_glyph_geometry_maybe): Added.
12363         (update_glyph_cachel_data): Call it.
12364
12365         * glyphs.h: Prototyped it.
12366
12367         * redisplay.c (add_glyph_rune): Call it.
12368         (redisplay_window): Reset glyphs cachels when frame faces have
12369         changed, thus forcing recomputation of built-in border glyphs.
12370
12371 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12372
12373         * Makefile.in.in: Make portable dumper and purify play well together.
12374         Add imperfect, but better than nothing, support for pdump.
12375         Remove xemacs.dmp when temacs is re-generated.
12376         Don't ignore errors when dumping xemacs.
12377
12378         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12379
12380 2000-01-28  Andy Piper  <andy@xemacs.org>
12381
12382         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12383         (setup_normal_frame): ditto.
12384         (setup_frame_without_minibuffer): ditto.
12385         (setup_minibuffer_frame): ditto.
12386         (delete_frame_internal): ditto.
12387         (Fmake_frame_invisible): ditto.
12388         (Ficonify_frame): ditto.
12389
12390         * window.h: change Fset_window_buffer signature.
12391
12392         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12393         (Fset_window_buffer): allow recording of buffer if the window is
12394         the selected window.
12395         (window_loop): Use new Fset_window signature.
12396
12397 2000-01-23  Daniel Pittman  <daniel@danann.net>
12398
12399         * config.h.in: Added template for `HAVE_ATHENA_3D'
12400
12401 2000-01-29  Andy Piper  <andy@xemacs.org>
12402
12403         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12404
12405         * gutter.c (output_gutter): Don't output if the window isn't live.
12406
12407 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12408
12409         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12410         of 01/12/00: Moved SetFocus back here where it belongs.
12411
12412 2000-01-23  Andy Piper  <andy@xemacs.org>
12413
12414         * s/cygwin32.h: declare printer things.
12415
12416 2000-01-26  Andy Piper  <andy@xemacs.org>
12417
12418         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12419         Alexander.
12420
12421 2000-01-24  Andy Piper  <andy@xemacs.org>
12422
12423         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12424         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12425
12426         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12427
12428         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12429
12430         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12431
12432         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12433         (mswindows_output_display_block): Avoid local shadows.
12434
12435         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12436         (mswindows_enqueue_mouse_button_event): ditto.
12437         (mswindows_handle_gui_wm_command): remove declaration.
12438
12439         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12440         warnings.
12441
12442         * console-msw.h: Avoid shadows.
12443         (mswindows_get_toolbar_button_text):
12444         (emacs_mswindows_create_stream_pair):
12445         (emacs_mswindows_delete_stream_pair):
12446         (mswindows_handle_toolbar_wm_command): declare.
12447
12448         * device-msw.c (build_syscolor_string): Avoid shadows.
12449
12450 2000-01-23  Andy Piper  <andy@xemacs.org>
12451
12452         * glyphs-widget.c (widget_instantiate): reverse the items for
12453         layouts so that children are in the expected order.
12454
12455 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12456
12457         * ralloc.c: safe_bcopy ==> memmove
12458         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12459         * s/msdos.h: Remove BCOPY macros.
12460         * insdel.c (gap_right): Remove BCOPY conditional code.
12461         * insdel.c (gap_left): Remove BCOPY conditional code.
12462         XEmacs demands a working ANSI C compiler - hence memmove.
12463
12464         * regex.c (regex_compile): Remove accidental use of trigraphs.
12465
12466 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12467
12468         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12469         event timestamp.
12470
12471 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12472
12473         * event-msw.c (mswindows_drain_windows_queue): Added the
12474         parameter.
12475         (mswindows_need_event): Commented the call to
12476         mswindows_drain_windows_queue().
12477         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12478         only.
12479
12480         * console-msw.h: Moved a few function prototypes here from
12481         event-msw.c.
12482
12483         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12484         parameter from unsigned short to unsigned long.
12485         (Fmswindows_shell_execute): Added return value.
12486
12487 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12488
12489         * sysdep.c (init_system_name):
12490           process-unix.c (unix_canonicalized_host_name):
12491         Don't call freeaddrinfo() if getaddrinfo() fails.
12492
12493         * process-unix.c (unix_open_unix_network_stream):
12494         Moved the code to get a port # into address loop.
12495
12496 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12497
12498         * buffer.c (reinit_vars_of_buffer):
12499         The right place to initialize conversion_in_dynarr and
12500         conversion_out_dynarr.
12501
12502         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12503
12504         * process-unix.c (unix_canonicalize_host_name): Muleize.
12505         (unix_open_network_stream): Muleize.
12506
12507         * buffer.h: Fix up prototypes for ralloc.c functions.
12508
12509 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12510         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12511         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12512                 instead of gethostbyname()
12513         * process-unix.c: In unix_canonicalize_host_name() and
12514                 unix_open_network_stream(), add code to use getaddrinfo()
12515                 instead of gethostbyname().
12516
12517 2000-01-27  Daniel Pittman <daniel@danann.net>
12518
12519         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12520         libs when built with flat Athena.
12521
12522 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12523
12524         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12525         Use coding standards for function prototypes.
12526
12527 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12528
12529         * dialog-msw.c (push_lisp_string_as_unicode):
12530         * doc.c (unparesseuxify_doc_string):
12531         * dired.c (Fuser_name_completion_1):
12532         * dired.c (Fuser_name_all_completions):
12533         * dired.c (free_user_cache):
12534         * dired.c (user_name_completion):
12535         * console-x.c (get_display_arg_connection):
12536         * minibuf.c (clear_echo_area_internal):
12537         * minibuf.c (echo_area_append):
12538         * eldap.c (Fldap_open):
12539         * eldap.c (Fldap_search_internal):
12540         * frame-x.c (x_set_frame_text_value):
12541         * frame-x.c (x_set_frame_properties):
12542         * frame-x.c (x_create_widgets):
12543         * redisplay-tty.c (term_get_fkeys_1):
12544         * objects-x.c (x_parse_nearest_color):
12545         * objects-x.c (x_valid_color_name_p):
12546         * objects-x.c (x_initialize_font_instance):
12547         * objects-x.c (x_list_fonts):
12548         * objects-x.c (x_find_charset_font):
12549         * tooltalk.c (Fadd_tooltalk_message_arg):
12550         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12551         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12552         * process-unix.c (unix_create_process):
12553         * ntproc.c (sys_spawnve):
12554         * sound.c (Fplay_sound_file):
12555         * sound.c (Fplay_sound):
12556         * buffer.c (init_initial_directory):
12557         * buffer.c (init_buffer):
12558         * editfns.c (init_editfns):
12559         * editfns.c (Ftemp_directory):
12560         * editfns.c (Fuser_full_name):
12561         * editfns.c (uncache_home_directory):
12562         * editfns.c (get_home_directory):
12563         * editfns.c (Fuser_home_directory):
12564         * editfns.c (Fformat_time_string):
12565         * editfns.c (Fcurrent_time_string):
12566         * gui-x.c (button_item_to_widget_value):
12567         * database.c (Fopen_database):
12568         * event-Xt.c (x_to_emacs_keysym):
12569         * event-Xt.c (x_event_to_emacs_event):
12570         * event-Xt.c (describe_event_window):
12571         * event-msw.c (mswindows_wnd_proc):
12572         * glyphs-eimage.c (jpeg_instantiate):
12573         * glyphs-eimage.c (gif_instantiate):
12574         * glyphs-eimage.c (png_instantiate):
12575         * glyphs-eimage.c (tiff_instantiate):
12576         * glyphs-x.c (xbm_instantiate_1):
12577         * glyphs-x.c (x_xbm_instantiate):
12578         * glyphs-x.c (x_xface_instantiate):
12579         * glyphs-x.c (autodetect_instantiate):
12580         * glyphs-x.c (cursor_font_instantiate):
12581         * glyphs-x.c (x_widget_instantiate):
12582         * glyphs-x.c (x_widget_set_property):
12583         * glyphs-x.c (x_widget_property):
12584         * glyphs-x.c (BUILD_GLYPH_INST):
12585         * print.c (write_string_to_stdio_stream):
12586         * print.c (output_string):
12587         * print.c (Falternate_debugging_output):
12588         * print.c (Fexternal_debugging_output):
12589         * glyphs-msw.c (extract_xpm_color_names):
12590         * glyphs-msw.c (mswindows_xpm_instantiate):
12591         * glyphs-msw.c (bmp_instantiate):
12592         * glyphs-msw.c (resource_name_to_resource):
12593         * glyphs-msw.c (mswindows_resource_instantiate):
12594         * glyphs-msw.c (xbm_instantiate_1):
12595         * glyphs-msw.c (mswindows_xbm_instantiate):
12596         * glyphs-msw.c (mswindows_xface_instantiate):
12597         * glyphs-msw.c (mswindows_widget_instantiate):
12598         * glyphs-msw.c (add_tree_item):
12599         * glyphs-msw.c (add_tab_item):
12600         * glyphs-msw.c (mswindows_combo_box_instantiate):
12601         * glyphs-msw.c (mswindows_widget_property):
12602         * glyphs-msw.c (mswindows_combo_box_property):
12603         * glyphs-msw.c (mswindows_widget_set_property):
12604         * console.c (stuff_buffered_input):
12605         * objects-msw.c (mswindows_initialize_color_instance):
12606         * objects-msw.c (mswindows_valid_color_name_p):
12607         * objects-msw.c (mswindows_list_fonts):
12608         * objects-msw.c (mswindows_font_instance_truename):
12609         * bytecode.c (optimize_compiled_function):
12610         * select-x.c (symbol_to_x_atom):
12611         * select-x.c (x_atom_to_symbol):
12612         * select-x.c (hack_motif_clipboard_selection):
12613         * select-x.c (selection_data_to_lisp_data):
12614         * select-x.c (lisp_data_to_selection_data):
12615         * select-x.c (Fx_get_cutbuffer_internal):
12616         * select-x.c (Fx_store_cutbuffer_internal):
12617         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12618         * buffer.h (TO_INTERNAL_FORMAT): New function.
12619         * emacs.c (make_arg_list_1):
12620         * emacs.c (make_argc_argv):
12621         * emacs.c (main_1):
12622         * emacs.c (Fdump_emacs):
12623         * emacs.c (split_string_by_emchar_1):
12624         * file-coding.h:
12625         * lisp.h:
12626         * lstream.h:
12627         * symsinit.h:
12628         * device-x.c (x_init_device):
12629         * device-x.c (Fx_valid_keysym_name_p):
12630         * device-x.c (Fx_get_font_path):
12631         * device-x.c (Fx_set_font_path):
12632         * glyphs.c (bitmap_to_lisp_data):
12633         * glyphs.c (pixmap_to_lisp_data):
12634         * alloc.c (make_ext_string): Use coding system arguments.  Update
12635         all callers.
12636         * alloc.c (build_string):
12637         * callproc.c (child_setup):
12638         * callproc.c (init_callproc):
12639         * fileio.c (lisp_strerror):
12640         * fileio.c (directory_file_name):
12641         * fileio.c (Fexpand_file_name):
12642         * fileio.c (Ffile_truename):
12643         * fileio.c (Fsysnetunam):
12644         * fileio.c (Fdo_auto_save):
12645         * sysdep.c (sys_readdir):
12646         * tests.c: New file.  Allow adding C tests.
12647         Replace GET_* macros with a more comprehensible and flexible
12648         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12649         Modify all calls.
12650         Any coding system can be used to do format conversion.
12651         Eliminate enum external_data_format.
12652         Eliminate convert_to_external_format.
12653         Eliminate convert_to_internal_format.
12654         Make sure file-name, keyboard, terminal, and ctext are always
12655         defined as coding systems or aliases.  Make
12656         file-name-coding-system, terminal-coding-system, and
12657         keyboard-coding-system magical variables that are equivalent to
12658         defining the corresponding coding system aliases.
12659
12660         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12661         * file-coding.c (Fcoding_system_alias_p): New function.
12662         * file-coding.c (Fcoding_system_aliasee): New function.
12663         * file-coding.c (append_suffix_to_symbol): New function.
12664         * file-coding.c (dangling_coding_system_alias_p): New function.
12665         * file-coding.c (Ffind_coding_system):
12666         * file-coding.c (Fcopy_coding_system):
12667         * file-coding.c (encode_coding_no_conversion):
12668         * file-coding.c (syms_of_file_coding):
12669         * file-coding.c (vars_of_file_coding):
12670         Rewrite coding system alias code.
12671         Allow nested aliases, like symbolic links.
12672         Allow redefinition of coding system aliases.
12673         Prevent existence of dangling coding system aliases.
12674
12675         * dired.c (Fuser_name_completion_1):
12676         * dired.c (Fuser_name_all_completions):
12677         A crash would happen if user did QUIT in the middle of building
12678         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12679
12680         * lisp.h:
12681         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12682
12683         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12684         an unsigned char *.  Update all callers.
12685
12686 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12687
12688         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12689
12690 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12691
12692         * elhash.c (hentry_description): Use more portable definition.
12693         (resize_hash_table): Initialize new hentries using
12694         xnew_array_and_zero, thereby simplifying the code.
12695
12696         * mule-charset.c (make_charset): Make sure entire object is
12697         initialized, to avoid Purify warnings.
12698
12699         * alloc.c (resize_string): Fix unlikely crash with big strings.
12700
12701 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12702
12703         * realpath.c (xrealpath):
12704         Don't call getwd().
12705
12706 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12707
12708         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12709
12710 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12711
12712         * unexelfsgi.c (unexec): Change the way we decide which segment
12713         should be extended.
12714
12715         Assumption that .bss section should be outside the PT_LOADable
12716         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12717         it's present) is inside the 'data' segment. This would fail the
12718         test which was used to find a segment to grow and cover new
12719         heap. Instead of this assumption, I created another one - on IRIX
12720         the segment to grow should start below .bss and it's address
12721         should extent above the end of .bss. Once this segment is
12722         identified, it's grown to accommodate the new heap and new
12723         zero-length .bss section is added at the end of .data2.
12724
12725 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12726
12727         * eval.c (Feval): Wrong number of arguments should use original
12728         function, not the indirect_function version of it.
12729
12730 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12731
12732         * glyphs-x.c (x_button_instantiate): Don't add image if
12733         it is not a pixmap.
12734         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12735         is relative.
12736
12737 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12738
12739         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12740         declaration.
12741         (DEFVAR_INT_MAGIC): Ditto.
12742         (DEFVAR_BOOL_MAGIC): Ditto.
12743         * glyphs.h: Reindent backslash.
12744
12745 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12746
12747         * glyphs-widget.c (layout_query_geometry):
12748         (layout_layout): Use correct types for gheight, gwidth.
12749
12750 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12751
12752         * EmacsManager.c (QueryGeometry): Purified.
12753
12754 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12755
12756         * alloc.c (make_float): Make sure entire object is initialized, to
12757         avoid Purify warnings.
12758         (pdump_register_sub): Remove useless assignment.
12759         (pdump): Use xmalloc, not malloc.
12760         (pdump_load): Use xmalloc, not malloc.
12761
12762 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12763
12764         * callproc.c:
12765         * dired-msw.c:
12766         * fileio.c:
12767         * process-nt.c:
12768         * redisplay-msw.c:
12769         * sysdep.c: Removed redundant #include <windows.h>
12770
12771 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12772
12773         * frame.c (delete_frame_internal): Do not delete device when its
12774         implementation so declares.
12775         (delete_frame_internal): Set device selected frame to nil when
12776         last frame goes away.
12777
12778         * device-msw.c (msprinter_device_system_metrics): Implemented.
12779         (mswindows_device_system_metrics): Added 'device-dpi property.
12780
12781         * device.c: (Fdevice_printer_p): Added.
12782         Added 'offset-workspace device metric.
12783
12784         * console.h (device_metrics): Declared DM_offset_workspace.
12785
12786 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12787
12788         * fileio.c (Ffile_truename): Remove pointless and confusing
12789         initialization of elen.
12790
12791         * glyphs-widget.c: Compiler warning fixes.
12792
12793 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12794
12795         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12796         instead of a Lisp_Object as argument to make it consistent with
12797         the other LIVE_P macros.
12798         (CHECK_LIVE_PROCESS): New macro.
12799
12800         * process.c: Declare Qprocess_live_p.
12801         (Fprocess_live_p): New function.
12802         (create_process): Use PROCESS_LIVE_P.
12803         (read_process_output): Ditto.
12804         (set_process_filter): Ditto.
12805         (Fdelete_process): Ditto.
12806         (kill_buffer_processes): Ditto
12807         (process_send_signal): Use CHECK_LIVE_PROCESS.
12808         (Fprocess_input_coding_system): Check whether process is still
12809         alive (fix PR#1061).
12810         (Fprocess_output_coding_system): Ditto.
12811         (Fprocess_coding_system): Ditto.
12812         (Fset_process_input_coding_system): Ditto.
12813         (Fset_process_output_coding_system): Ditto.
12814
12815 2000-01-23  Andy Piper  <andy@xemacs.org>
12816
12817         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12818         layout and widget.
12819
12820         * glyphs.c (mark_image_instance): take into account changed
12821         image_instance format.
12822         (image_instance_equal): ditto.
12823         (image_instance_hash): ditto.
12824
12825         * glyphs-widget.c (widget_instantiate): Incorporate layout
12826         instantiation here. Delay layout of the layout until later.
12827         (layout_instantiate): deleted.
12828         (layout_query_geometry): new function. get the geometry of a
12829         layout.
12830         (layout_layout): layout a layout dynamically.
12831         (image_instantiator_widget): New function - splitting up
12832         image_instantiator_format_create_glyphs_widget for netwinder
12833         compilation.
12834         (image_instantiator_buttons):
12835         (image_instantiator_edit_fields):
12836         (image_instantiator_combo_box):
12837         (image_instantiator_scrollbar):
12838         (image_instantiator_progress_guage):
12839         (image_instantiator_tree_view):
12840         (image_instantiator_tab_control):
12841         (image_instantiator_labels):
12842         (image_instantiator_layout): ditto.
12843         (image_instantiator_format_create_glyphs_widget): Call preceding
12844         functions.
12845
12846 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12847
12848         * process.c (Fset_process_coding_system):
12849         * device-x.c (Fx_keysym_hash_table):
12850         Docstring fixes.
12851
12852         * lstream.c (Lstream_write): Return documented value, not 0.
12853
12854         * fileio.c (directory_file_name):
12855         (Fsubstitute_in_file_name):
12856         (Fsubstitute_insert_file_contents_internal):
12857         (Fwrite_region_internal):
12858         * emacs.c:
12859         * sysdep.c:
12860         * getloadavg.c:
12861         * systty.h:
12862         Remove vestigial APOLLO-conditional code.
12863
12864 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12865
12866         * getpagesize.h: Add guard macros.
12867         * libsst.h: Add guard macros.
12868         * libst.h: Add guard macros.
12869         * line-number.h: Add guard macros.
12870         * ndir.h: Add guard macros.
12871         * sysfloat.h: Add guard macros.
12872         * sysfile.h: Add guard macros.
12873         * sysproc.h: Add guard macros.
12874         * syswait.h: Add guard macros.
12875         * xintrinsic.h: Add guard macros.
12876         * xintrinsicp.h: Add guard macros.
12877         * xmmanager.h: Add guard macros.
12878         * xmmanagerp.h: Add guard macros.
12879         * xmprimitive.h: Add guard macros.
12880         * xmu.h: Add guard macros.
12881         * gpmevent.h: Add copyright statement. Add guard macros.
12882         * miscplay.h: Add guard macros.
12883         * *.h: Use consistent C-standards-approved guard macro names.
12884
12885         * opaque.c (make_opaque): Switch parameter order.
12886         * opaque.h (make_opaque): Switch parameter order.
12887         Update all callers.
12888         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12889
12890         * config.h.in (type_checking_assert): Added.
12891         (bufpos_checking_assert): Added.
12892
12893 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12894
12895         * alloc.c: Harmless pdump changes.
12896         - Use countof().
12897         - spell alignment correctly.
12898         * sysdep.c: Use countof()
12899
12900 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12901
12902         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12903         initially_selected_for_input() console method, default to 0.
12904         (semi_canonicalize_console_connection): Try to delegate to
12905         canonicalize_console_connection if no such console method.
12906         (canonicalize_console_connection): Vice versa.
12907         (print_console): Do not print nil connection.
12908
12909         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12910         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12911         (XDEVIMPF_FRAMELESS_OK): Added.
12912         (CONSOLE_INHERITS_METHOD): Added.
12913
12914         * console-msw.c (mswindows_canonicalize_console_connection):
12915         Added.
12916         (mswindows_canonicalize_device_connection): Added.
12917
12918         * console-msw.h (struct msprinter_device): Added this struct and
12919         accessor macros.
12920         (mswindows_device): Made fontlist a lisp object.
12921
12922         * device.c (semi_canonicalize_device_connection):  Try to delegate
12923         to canonicalize_device_connection if no such console method.
12924         (canonicalize_device_connection): Vice versa.
12925         (print_device): Do not print nil connection.
12926
12927         * device-msw.c (mswindows_init_device): Call InitCommonControls
12928         when have widgets.
12929         (mswindows_delete_device): Removed fontlist deallocation.
12930         (mswindows_mark_device): Added.
12931
12932         * events.c (event_equal): Added abort() at unreached code.
12933         (event_hash): Ditto.
12934
12935         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12936         fallback tags of Windows devices.
12937
12938         * general.c (syms_of_general): Initialized Qmsprinter.
12939
12940         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12941         of fallback tags of Windows devices.
12942
12943         * lisp.h: Declared Qmsprinter.
12944
12945         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12946         of strings.
12947         (mswindows_list_fonts): Ditto.
12948         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12949         that it can be used by both mswindows and msprinter devices.
12950         (initialize_font_instance): Added.
12951         (mswindows_initialize_font_instance): Use it.
12952         (msprinter_initialize_font_instance): Added.
12953
12954         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12955         and implementation flags check.
12956         (redisplay_without_hooks): Changed the call to the above.
12957         (Fredraw_device): Ditto.
12958         (Fredisplay_device): Ditto.
12959
12960         * redisplay-msw.c (get_frame_dc): Implemented.
12961         (get_frame_compdc): Implemented.
12962         (many functions): Use the two functions above to get device
12963         contexts, ether for a window or a printer.
12964
12965 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12966
12967         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12968         initialization here.
12969         (init_symbols_once_early): Call it.
12970         * emacs.c (main_1): Call it.
12971         * symsinit.h: Declare it.
12972
12973 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12974
12975         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12976         Lisp_Object.
12977         (pdump_backtrace): Ditto.
12978         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12979         (pdump_get_entry): Abort if trying to register a null pointer.
12980         (pdump_dump_data): Cleanup types when relocating.
12981         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12982         (pdump_dump_rtables): Remove bad casts.
12983         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12984         Lisp_Object instead of a EMACS_INT for the hashtable
12985         reorganization.
12986
12987 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12988
12989         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12990
12991         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12992
12993         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12994
12995         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12996
12997 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12998
12999         * faces.h (FACE_STRIKETHRU_P): Added.
13000
13001         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
13002         of font variants.
13003
13004         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
13005         (mswindows_set_dc_font): New function, aware of font variants,
13006         separated from mswindows_update_dc.
13007
13008         * objects-msw.h (struct mswindows_font_instance_data): Added
13009         definition.
13010
13011         * objects-msw.c (mswindows_finalize_font_instance): Delete all
13012         cached fonts and the data structure.
13013         (mswindows_initialize_font_instance): Added creation of font data
13014         structure.
13015         (mswindows_print_font_instance): Print at least something.
13016         (mswindows_create_font_variant): Implemented.
13017         (mswindows_get_hfont): Implemented.
13018
13019 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
13020
13021         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
13022         prototyping problem with msvc.
13023
13024         * emacs.c (main_1): added syms_of_gui_mswindows() call
13025
13026         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
13027         syms_of_gui_mswindows() function
13028
13029         * symsinit.h: added the prototype for syms_of_gui_mswindows()
13030
13031 2000-01-18  Martin Buchholz <martin@xemacs.org>
13032
13033         * XEmacs 21.2.27 is released.
13034
13035 2000-01-18  Martin Buchholz  <martin@xemacs.org>
13036
13037         * glyphs-eimage.c (struct tiff_error_struct):
13038         (tiff_error_func):
13039         (tiff_warning_func):
13040         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
13041
13042         * unexmips.c:
13043         * unexhp9k3.c:
13044         * unexfreebsd.c:
13045         * unexec.c: Remove vestigial Lucid C code.
13046         * unexalpha.c:
13047         * unexaix.c:
13048         * termcap.c:
13049         * libsst.c: Ansify.
13050         Remove declarations of errno and strerror().
13051
13052         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
13053
13054         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
13055
13056 2000-01-16  Martin Buchholz  <martin@xemacs.org>
13057
13058         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
13059         Optimize.
13060
13061 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13062
13063         * md5.c:
13064         * file-coding.c:
13065         * file-coding.h:
13066         Change enum eol_type to eol_type_t.
13067
13068 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13069
13070         * gui.c (get_gui_callback): Check cons before accessing car.
13071
13072 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13073
13074         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
13075         (XSETSPECIFIER_TYPE): Ditto.
13076
13077 2000-01-17  Didier Verna  <didier@xemacs.org>
13078
13079         * redisplay.c (generate_fstring_runes): compute string size in
13080         characters, not bytes.
13081
13082 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13083
13084         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13085
13086 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
13087
13088         * print.c (print_error_message): Call print_prepare().
13089
13090 2000-01-14  Martin Buchholz  <martin@xemacs.org>
13091
13092         * .dbxrc: Renamed from dbxrc.
13093
13094         * events.c (event_to_character):
13095         Use `assert (foo)' instead of `if (!foo) abort()'
13096
13097         * .gdbinit (xtype): Add documentation.
13098         * .gdbinit (check-temacs): New function.
13099         * .gdbinit (check-xemacs): New function.
13100         * dbxrc (check-xemacs): New function.
13101         * dbxrc (check-xemacs): New function.
13102
13103 2000-01-14  Andy Piper  <andy@xemacs.org>
13104
13105         * glyphs-widget.c (widget_query_geometry): Make sure that we
13106         calculate default dimensions correctly.
13107
13108 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13109
13110         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13111
13112         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13113         pdump_wire'd variable.
13114
13115         * emacs.c: (main_1): Conditionalized calls to
13116         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13117
13118 2000-01-13  Martin Buchholz  <martin@xemacs.org>
13119
13120         * window.c (Fset_window_configuration):
13121         * sysdep.c (_start):
13122         * input-method-motif.c (res):
13123         * event-Xt.c (Xt_process_to_emacs_event):
13124         Simple compiler warning fixes.
13125
13126         * bytecode.c (funcall_compiled_function): Use the original
13127         function symbol on the backtrace list in preference to the
13128         compiled_function object in error messages.
13129
13130 2000-01-13  Andy Piper  <andy@xemacs.org>
13131
13132         * glyphs-x.c (update_widget_face): Make sure we update the widget
13133         background as well as foreground.
13134
13135 2000-01-13  Andy Piper  <andy@xemacs.org>
13136
13137         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13138         fields to subwindow.
13139         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13140         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13141         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13142         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13143
13144         * glyphs-widget.c (check_valid_tab_orientation): new function.
13145         (initialize_widget_image_instance): zero orientation and
13146         justification.
13147         (widget_instantiate): pick up orientation.
13148         (tab_control_query_geometry): return appropriate values for
13149         vertical tabs.
13150
13151         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13152         appropriate creation flags for left, right and bottom tabs.
13153
13154         * s/cygwin32.h: add tab definitions.
13155
13156 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13157
13158         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13159         frame upon hiding a subwindow.
13160         (mswindows_button_instantiate): Changed the push button style to
13161         BS_PUSHBUTTON.
13162         (mswindows_button_instantiate): Removed button BS_NOTIFY
13163         style.
13164         (mswindows_button_instantiate): Removed redundant check for
13165         a disabled gui item.
13166         (mswindows_button_instantiate): Made use of WS_TABSTOP
13167         consistent: "operable" controls (edit, button, tree, scroll) have
13168         this style, "display-only" ones (static, progress gauge) do
13169         not. This style is currently ignored by XEmacs though. Also,
13170         removed the WS_EX_CONTROLPARENT style - it is not for children,
13171         it is for their parents!
13172         (mswindows_edit_field_instantiate): Ditto.
13173         (mswindows_progress_gauge_instantiate): Ditto.
13174         (mswindows_tree_view_instantiate): Ditto.
13175         (mswindows_tab_control_instantiate): Ditto.
13176         (mswindows_scrollbar_instantiate): Ditto.
13177         (mswindows_combo_box_instantiate): Ditto.
13178         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13179         style to the "clip" window.
13180         (mswindows_button_instantiate): Removed compilation warning by
13181         equally typing terms of the ?: operator.
13182
13183 2000-01-12  Didier Verna  <didier@xemacs.org>
13184
13185         * redisplay.c (generate_fstring_runes): new parameter holding the
13186         last modeline-format extent.
13187         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13188         extent, fill the glyph block with it.
13189         (generate_fstring_runes): handle these parameters.
13190         (generate_formatted_string_db): ditto.
13191
13192         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13193         glyphs'extents in the modeline.
13194
13195 1999-01-11  Mike Woolley  <mike@bulsara.com>
13196
13197         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13198         256Mb, as a workaround for the non-starting problem many people
13199         have experienced.
13200
13201 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13202
13203         * console-tty.c (Fset_console_tty_output_coding_system):
13204         Force redrawing tty frame.
13205
13206 2000-01-10  Didier Verna  <didier@xemacs.org>
13207
13208         * redisplay.c (generate_fstring_runes): fix size computation bug.
13209
13210 2000-01-09  William M. Perry <wmperry@aventail.com>
13211
13212         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13213
13214 2000-01-09  Andy Piper  <andy@xemacs.org>
13215
13216         * glyphs-msw.c: index -> i to avoid shadows.
13217         (xbm_create_bitmap_from_data): make static.
13218         (check_valid_string_or_int): deleted.
13219         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13220
13221         * glyphs-x.c (x_update_subwindow): remove unused args.
13222
13223         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13224         back pointer - this is done in allocate_image_instance.
13225         (query_string_font): return Qnil to make the compiler happy.
13226         (unmap_subwindow): set to ~0 to make the compiler happy.
13227         (glyph_query_geometry): comment out until used.
13228         (glyph_layout): ditto.
13229
13230 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13231
13232         * insdel.c (signal_after_change): Remove extraneous unbind_to().