update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * text-coding.c (decode_coding_big5): Support entity-reference
4         decoding feature.
5
6 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * text-coding.c (allocate_coding_system): Initialize initial
9         charsets for CODESYS_UTF8.
10         (Fmake_coding_system): Accept charset-g0, charset-g1 and
11         charset-g2 for CODESYS_UTF8.
12         (decode_coding_utf8): Use charset-g0.
13         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
14         to force variants to map to UCS.
15
16 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * text-coding.c (Qutf_8_mcs): New variable.
19         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
20         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
21         instead of `utf-8' in UTF-2000.
22
23 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
24
25         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
26         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
27         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
28         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
29         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
30         CONVERSION_96x96x96x96 are introduced.
31         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
32         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
33         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
34
35         * char-ucs.h (CONVERSION_94): New macro.
36         (CONVERSION_96): New macro.
37         (CONVERSION_94x94): New macro.
38         (CONVERSION_96x96): New macro.
39         (CONVERSION_94x94x94): New macro.
40         (CONVERSION_96x96x96): New macro.
41         (CONVERSION_94x94x94x60): New macro.
42         (CONVERSION_94x94x94x94): New macro.
43         (CONVERSION_96x96x96x96): New macro.
44
45 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
46
47         * chartab.c (Vcharacter_variant_table): Deleted.
48         (Fchar_variants): Use character-attribute `->ucs-variants' instead
49         of `Vcharacter_variant_table'.
50         (Fput_char_attribute): Likewise.
51         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
52         (complex_vars_of_chartab): Likewise.
53
54 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
55
56         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
57
58         * fns.c (Qideographic_structure): New variable.
59         (Qkeyword_char): New variable.
60         (ids_format_unit): New function.
61         (Fideographic_structure_to_ids): New function.
62         (syms_of_fns): Add new symbols `ideographic-structure' and
63         `:char'; add new builtin function `ideographic-structure-to-ids'.
64
65         * data.c (Fchar_ref_p): New function.
66         (syms_of_data): Add new builtin function `char-ref-p'.
67
68         * chartab.h: Add an EXFUN for `Ffind_char'.
69
70 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * text-coding.c (Vcharacter_composition_table): Deleted.
73         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
74         in every UTF-2000.
75
76         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
77         UTF-2000.
78         (Vcharacter_composition_table): Deleted.
79         (Fget_composite_char): Use the implementation for external-DB
80         support in every UTF-2000.
81         (Fput_char_attribute): Likewise.
82         (char_attribute_system_db_file): Don't define if external-DB
83         feature is not available.
84         (Fsave_char_attribute_table): Likewise.
85         (Fmount_char_attribute_table): Likewise.
86         (Fclose_char_attribute_table): Likewise.
87         (Freset_char_attribute_table): Likewise.
88         (Fload_char_attribute_table): Likewise.
89         (syms_of_chartab): Don't define `save-char-attribute-table',
90         `mount-char-attribute-table', `reset-char-attribute-table',
91         `close-char-attribute-table' and `load-char-attribute-table' if
92         external-DB feature is not available.
93         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
94
95 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
96
97         * text-coding.c (Qcomposition): Add extern if external-DB feature
98         is supported.
99         (Vcharacter_composition_table): Don't add extern if external-DB
100         feature is supported.
101         (COMPOSE_ADD_CHAR): Modify for new data-representation of
102         character composition rule if external-DB feature is supported.
103
104         * chartab.c (Vcharacter_composition_table): Don't define if
105         external-DB feature is supported.
106         (Qcomposition): New variable.
107         (Fget_composite_char): New implementation for external-DB support.
108         (Fput_char_attribute): Use `composition' property of each
109         character instead of `Vcharacter_composition_table' to store
110         character-composition rules if external-DB feature is supported.
111         (syms_of_chartab): Add new symbol `composition'.
112         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
113         external-DB feature is supported.
114
115 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
116
117         * chartab.c (Vchar_db_stingy_mode): New variable.
118         (load_char_attribute_maybe): Close database if
119         Vchar_db_stingy_mode is not NIL.
120         (Fload_char_attribute_table_map_function): Use
121         `get_char_id_table_0' instead of `get_char_id_table'.
122         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
123
124         * chartab.h (get_char_id_table_0): New inline function.
125         (get_char_id_table): Use `get_char_id_table_0'.
126
127 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
128
129         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
130         and `COMPOSE_ADD_CHAR'.
131         (decode_coding_iso2022): Use `decode_flush_er_chars'.
132
133 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
134
135         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
136         instead of `DECODE_ADD_UCS_CHAR'.
137         (COMPOSE_ADD_CHAR): Likewise.
138
139 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
140
141         * text-coding.c (decode_flush_er_chars): New inline function.
142         (decode_add_er_char): New function.
143         (decode_coding_utf8): Use `decode_flush_er_chars' and
144         `decode_add_er_char'.
145
146 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
147
148         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
149         done before `decode_output_utf8_partial_char'.
150
151         * mule-charset.c (complex_vars_of_mule_charset): Specify
152         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
153         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
154
155 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * mule-charset.c (decode_defined_char): New function; search
158         mother.
159         (decode_builtin_char): Don't search mother if
160         XCHARSET_MAX_CODE(charset) == 0.
161         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
162         == 0 even if code >= XCHARSET_MAX_CODE(charset).
163         (Fdecode_char): Use `decode_defined_char' instead of
164         `DECODE_DEFINED_CHAR'.
165         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
166         mother of `Vcharset_ucs_jis'.
167
168         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
169         instead of `DECODE_DEFINED_CHAR'.
170
171         * char-ucs.h (decode_defined_char): Renamed from
172         `DECODE_DEFINED_CHAR'; changed to normal function.
173         (DECODE_CHAR): Use `decode_defined_char' instead of
174         `DECODE_DEFINED_CHAR'.
175
176         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
177
178 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
181
182         * text-coding.c (Vcoded_charset_entity_reference_alist): New
183         variable.
184         (Quse_entity_reference): New variable.
185         (Qd): New variable.
186         (Qx): New variable.
187         (QX): New variable.
188         (coding_system_description): Add description for
189         `ccs_priority_list'.
190         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
191         (allocate_coding_system): Initialize `ccs_priority_list' in
192         UTF-2000.
193         (Fmake_coding_system): Add description about
194         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
195         (codesys).
196         (Fcoding_system_property): Accept `disable-composition' and
197         `use-entity-reference' in UTF-2000.
198         (struct decoding_stream): Add new member `er_counter' and `er_buf'
199         in UTF-2000.
200         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
201         (decode_coding_utf8): Decode entity-reference if
202         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
203         (char_encode_utf8): Encode non-Unicode characters as
204         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
205         (str->codesys).
206         (syms_of_file_coding): Add new symbols `use-entity-reference',
207         `d', `x', `X'.
208         (vars_of_file_coding): Add new variable
209         `coded-charset-entity-reference-alist'.
210         (complex_vars_of_file_coding): Declare `disable-composition' and
211         `use-entity-reference' to be coding-system-properties in UTF-2000.
212
213         * file-coding.h (struct Lisp_Coding_System): Add new member
214         `use_entity_reference' and `ccs_priority_list'.
215         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
216         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
217         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
218
219 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
220
221         * chartab.c (save_uint8_byte_table): Don't clear the table.
222         (save_uint16_byte_table): Likewise.
223         (save_byte_table): Likewise.
224         (Fmount_char_attribute_table): New function.
225         (syms_of_chartab): Add new builtin function
226         `mount-char-attribute-table'.
227
228 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * mule-charset.c (Fsave_charset_mapping_table): Open database as
231         "w+" mode.
232         (load_char_decoding_entry_maybe): Open database as read-only mode.
233
234         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
235         open database as "w+" mode.
236         (load_char_attribute_maybe): Open database as read-only mode.
237         (Fload_char_attribute_table): Likewise.
238
239 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
242         (char_table_description): Delete member `db_file'.
243         (Fmake_char_table): Don't refer `ct->db_file'.
244         (Fcopy_char_table): Likewise.
245         (Fsave_char_attribute_table): Likewise.
246         (Fclose_char_attribute_table): Likewise.
247         (Freset_char_attribute_table): Likewise.
248         (load_char_attribute_maybe): Likewise.
249         (Fload_char_attribute_table): Likewise.
250
251         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
252
253 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
254
255         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
256         (Fsave_char_attribute_table): Don't check `ct->db_file' if
257         `ct->db' is living.
258         (load_char_attribute_maybe): Likewise.
259         (Fload_char_attribute_table): Likewise.
260
261 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
262
263         * chartab.c (Fclose_char_attribute_table): Set Qnil on
264         `ct->db_file' unconditionally.
265
266 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
267
268         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
269         UTF-2000.
270         (char_table_description): Add description for `db_file' and `db'
271         in UTF-2000.
272         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
273         UTF-2000.
274         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
275         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
276         (Fclose_char_attribute_table): New function.
277         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
278         (load_char_attribute_maybe): Change interface; use `cit->db_file'
279         and `cit->db'.
280         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
281         (syms_of_chartab): Add new builtin function
282         `Fclose_char_attribute_table'.
283
284 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
285
286         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
287         `db' in UTF-2000.
288         (load_char_attribute_maybe): Change interface.
289         (get_char_id_table): Modify for `load_char_attribute_maybe'.
290
291 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
292
293         * database.h: Add an EXFUN for `Fdatabase_live_p'.
294
295 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
296
297         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
298         instead of `DECODE_CHAR' for mother; don't use special code for
299         chinese-big5 to use code space of chinese-big5-1 and
300         chinese-big5-2.
301         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
302         `MAX_CHAR_BIG5_CDP' for chinese-big5.
303
304         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
305         (MAX_CHAR_BIG5_CDP): Revival.
306
307 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
308
309         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
310         the XLFD registry-encoding name of `chinese-big5'.
311
312 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
313
314         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
315         (Qchinese_big5_cdp): Deleted.
316         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
317         (complex_vars_of_mule_charset): Delete coded-charset
318         `chinese-big5-cdp'.
319
320         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
321         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
322         `CHARSET_ID_OFFSET - n' for private CCS.
323         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
324         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
325         of `MIN_LEADING_BYTE'.
326         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
327         `(CHARSET_ID_OFFSET - 97)'.
328         (MIN_CHAR_BIG5_CDP): Deleted.
329         (MAX_CHAR_BIG5_CDP): Deleted.
330
331 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
334
335 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
338         (vars_of_mule): Add new variable `utf-2000-version' [moved from
339         chartab.c].
340
341         * chartab.c (Vutf_2000_version): Moved to mule.c.
342         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
343
344 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
345
346         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
347         when HAVE_CHISE_CLIENT is not defined.
348
349         * mule.c (vars_of_mule): Provide feature `chise' when
350         HAVE_CHISE_CLIENT is defined.
351
352 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
353
354         * config.h.in (UTF2000): Add comment.
355         (HAVE_CHISE_CLIENT): New macro.
356
357 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
358
359         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
360         CONSP.
361         (Fput_char_attribute): Likewise.
362         (char_attribute_system_db_file): Encode file-name of attribute.
363         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
364         the initial value.
365
366 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
367
368         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
369         (Fsave_charset_mapping_table): Use
370         `char_attribute_system_db_file'.
371         (load_char_decoding_entry_maybe): Likewise.
372
373         * chartab.h (Qsystem_char_id): New external variable.
374         (char_attribute_system_db_file): New prototype.
375
376         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
377         (char_attribute_system_db_file): New function.
378         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
379         (Freset_char_attribute_table): Likewise.
380         (load_char_attribute_maybe): Likewise.
381         (Fload_char_attribute_table): Likewise.
382         (syms_of_chartab): Add new symbol `system-char-id'.
383
384 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
385
386         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
387         `XCHARSET_GRAPHIC(ccs)'.
388
389 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
392
393 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
394
395         * chartab.c (Q_ucs_variants): New variable.
396         (syms_of_chartab): Add new symbol `->ucs-variants'.
397         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
398         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
399         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
400
401         * mule-charset.c (load_char_decoding_entry_maybe): New function.
402
403         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
404         `HAVE_DATABASE' is defined.
405         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
406         `HAVE_DATABASE' is defined.
407
408 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
409
410         * chartab.c (Fsave_char_attribute_table): Don't clear internal
411         attribute-table.
412         (Freset_char_attribute_table): New function.
413         (syms_of_chartab): Add new builtin function
414         `reset-char-attribute-table'.
415
416 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
417
418         * chartab.c (load_char_attribute_maybe): Don't make directories.
419
420 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
423
424         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
425         for decoding-table.
426
427 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
428
429         * mule-charset.c (Fsave_charset_mapping_table): Use
430         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
431
432         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
433         instead of `XCHARSET_CHARS'.
434
435 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
436
437         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
438         (XCHARSET_BYTE_SIZE): Likewise.
439
440         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
441         mule-charset.c].
442         (XCHARSET_BYTE_SIZE): Likewise.
443
444 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
445
446         * chartab.c (Fput_char_attribute): Use exec-directory instead of
447         data-directory to store database.
448         (Fsave_char_attribute_table): Likewise.
449         (load_char_attribute_maybe): Likewise.
450         (Fload_char_attribute_table): Likewise.
451
452 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * mule-charset.c (Fsave_charset_mapping_table): New function.
455         (syms_of_mule_charset): Add new builtin function
456         `save-charset-mapping-table'.
457
458 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * char-ucs.h (decoding_table_check_elements): Delete prototype.
461         (get_ccs_octet_table): New inline function.
462         (put_ccs_octet_table): Likewise.
463         (decoding_table_put_char): Use `get_ccs_octet_table' and
464         `put_ccs_octet_table'.
465         (decoding_table_remove_char): Use `decoding_table_put_char'.
466         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
467
468         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
469         into encoding_table.
470         (make_charset): Use Qunbound instead Qnil as initial value of
471         decoding_table.
472
473 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
474
475         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
476         element is Qunloaded.
477         (map_over_uint16_byte_table): Likewise.
478         (map_over_byte_table): Likewise.
479         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
480         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
481         database support, load encoding-table of the specified
482         coded-charset if it is not loaded yet.
483         (save_uint8_byte_table): New function of UTF-2000 with external
484         database support.
485         (save_uint16_byte_table): Likewise.
486         (save_byte_table): Likewise.
487         (Fput_char_attribute): Don't store value into external database
488         even if the external database feature is supported in UTF-2000;
489         set `attribute' as name of char-table if the external database
490         feature is supported.
491         (Fsave_char_attribute_table): New function in UTF-2000.
492         (syms_of_chartab): Add new builtin function
493         `save-char-attribute-table' in UTF-2000.
494
495 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
496
497         * chartab.c (char_attribute_table_to_put): New variable in
498         UTF-2000.
499         (Qput_char_table_map_function): Likewise.
500         (value_to_put): Likewise.
501         (Fput_char_table_map_function): New function in UTF-2000.
502         (put_char_table): Use `Fmap_char_attribute' for
503         CHARTAB_RANGE_CHARSET in UTF-2000.
504         (Fput_char_attribute): Store symbol instead of string in
505         `XCHAR_TABLE_NAME (table)'.
506         (load_char_attribute_maybe): Likewise.
507         (syms_of_chartab): Add new symbol/function
508         `put-char-table-map-function'.
509
510 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
511
512         * database.h: Add new EXFUN for `Fmap_database'.
513
514         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
515         (syms_of_database): Likewise.
516
517         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
518         UTF-2000.
519         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
520         (XCHAR_TABLE_UNLOADED): Likewise.
521
522         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
523         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
524         HAVE_DATABASE is defined.
525         (char_attribute_table_to_load): New variable of UTF-2000 with
526         external database support.
527         (Qload_char_attribute_table_map_function): Likewise.
528         (Fload_char_attribute_table_map_function): New function of
529         UTF-2000 with external database support.
530         (Fload_char_attribute_table): New function of UTF-2000.
531         (Fmap_char_attribute): Call Fload_char_attribute_table if
532         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
533         (syms_of_chartab): Add new symbol and function
534         `load-char-attribute-table-map-function' in UTF-2000 with external
535         database support; add new function `load-char-attribute-table' in
536         UTF-2000.
537
538 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * chartab.h (load_char_attribute_maybe): New prototype for
541         UTF-2000 with DATABASE support.
542         (get_char_id_table): Use `load_char_attribute_maybe' if
543         HAVE_DATABASE is defined.
544
545         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
546         with DATABASE support.
547
548 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
549
550         * chartab.c (Fput_char_attribute): Use S-expression as key of
551         external database.
552
553         * chartab.h (get_char_id_table): Use S-expression as key of
554         external database.
555
556 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
559         if an element is not loaded, load the corresponding attributes
560         from an external database.
561         (map_over_uint16_byte_table): Likewise.
562         (map_over_byte_table): Likewise.
563         (map_char_table): Modify for `map_over_uint8_byte_table',
564         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
565         element is not loaded, load the corresponding attributes from an
566         external database.
567         (Fput_char_attribute): Change initial values to Qunloaded.
568
569         * chartab.h (get_char_id_table): If a character attribute is not
570         loaded and the attribute value is not found in an external
571         database, store Qunbound as the attribute value.
572
573 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
574
575         * chartab.c (BT_UINT8_unloaded): New macro.
576         (UINT8_VALUE_P): Accept Qunloaded.
577         (UINT8_ENCODE): Likewise.
578         (UINT8_DECODE): Likewise.
579         (BT_UINT16_unloaded): New macro.
580         (UINT16_VALUE_P): Accept Qunloaded.
581         (UINT16_ENCODE): Likewise.
582         (UINT16_DECODE): Likewise.
583         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
584         BT_UINT16_unloaded.
585         (mark_char_table): Mark `ct->name' in UTF-2000.
586         (char_table_description): Add `name' in UTF-2000.
587         (Fmake_char_table): Initialize `ct->name'.
588         (Fcopy_char_table): Copy `ct->name'.
589         (Fput_char_attribute): Store value into an external database if
590         HAVE_DATABASE is defined.
591
592         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
593         UTF-2000.
594         (CHAR_TABLE_NAME): New macro in UTF-2000.
595         (XCHAR_TABLE_NAME): New macro in UTF-2000.
596         (get_char_id_table): Try to read an external database if Qunloaded
597         is stored in a table.
598
599         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
600         Qunloaded.
601
602 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
603
604         * database.h: Add EXFUN definitions for Fopen_database,
605         Fput_database, Fget_database and Fclose_database.
606
607         * data.c (Qunloaded): New variable in UTF-2000.
608
609         * lisp.h (Qunloaded): New variable in UTF-2000.
610
611 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * mule-charset.c (put_char_ccs_code_point): Modify for
614         `decoding_table_remove_char' and `decoding_table_put_char'.
615         (remove_char_ccs): Modify for `decoding_table_remove_char'.
616
617         * char-ucs.h (decoding_table_remove_char): Change arguments to
618         hide decoding_table vector.
619         (decoding_table_put_char): Likewise.
620
621 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * mule-charset.c (decoding_table_remove_char): Moved to
624         char-ucs.h.
625         (decoding_table_put_char): Likewise.
626
627         * char-ucs.h (decoding_table_check_elements): New prototype [moved
628         from mule-charset.c].
629         (decoding_table_remove_char): New inline function [moved from
630         mule-charset.c].
631         (decoding_table_put_char): Likewise.
632
633 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
634
635         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
636         extension.
637
638 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
639
640         * mule-charset.c (decode_builtin_char): Support mother charsets.
641
642 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
643
644         * mule-charset.c (Q94x94x60): New variable.
645         (charset_code_point): Support conversion `94x94x60'.
646         (Fmake_charset): Likewise.
647         (syms_of_mule_charset): Add new symbol `94x94x60'.
648
649         * char-ucs.h (CONVERSION_94x94x60): New macro.
650
651 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
652
653         * mule-charset.c (charset_code_point): Unify code about
654         `code-offset'.
655
656 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * mule-charset.c (charset_code_point): Merge code about builtin
659         characters into code about mother charsets; don't use
660         `range_charset_code_point'.
661         (range_charset_code_point): Deleted.
662
663 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * mule-charset.c (Qcode_offset): New variable.
666         (Fmake_charset): Use `XUINT' to get value of `min-code' and
667         `max-code'; accept new property `code-offset'.
668         (syms_of_mule_charset): Add new symbol `code-offset'.
669
670 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * mule-charset.c (range_charset_code_point): Fixed.
673
674 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * mule-charset.c (decode_builtin_char): Change semantics of
677         code-offset of coded-charset.
678         (charset_code_point): Likewise.
679         (range_charset_code_point): Likewise.
680         (complex_vars_of_mule_charset): Modify for the change.
681
682 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * mule-charset.c (Fencode_char): Reverse arguments.
685
686         * mule-charset.c (charset_code_point): Fixed.
687
688 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
689
690         * mule-charset.c (Vcharset_mojikyo): Deleted.
691         (Vcharset_mojikyo_2022_1): Deleted.
692         (Vcharset_mojikyo_pj_{1..21}): Deleted.
693         (Qmin_code): New variable in UTF-2000.
694         (Qmax_code): Likewise.
695         (Qmother): Likewise.
696         (Qconversion): Likewise.
697         (Q94x60): Likewise.
698         (Qmojikyo): Deleted.
699         (Qmojikyo_2022_1): Deleted.
700         (Qmojikyo_pj_{1..22}): Deleted.
701         (mark_charset): Mark `cs->mother'.
702         (charset_description): Add description for `mother'.
703         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
704         new arguments `mother' and `conversion'; use
705         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
706         (charset_code_point): Moved from char-ucs.h; support `mother'
707         charset feature.
708         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
709         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
710         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
711         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
712         allow 2 as the value of `graphic' in UTF-2000; add new properties
713         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
714         require `final' in UTF-2000; modify for `make_charset'.
715         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
716         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
717         (Fcharset_property): Support `mother', `min-code' and `max-code'.
718         (Fencode_char): New function.
719         (syms_of_mule_charset): Add new builtin function `encode-char' in
720         UTF-2000; add new symbols `min-code', `max-code', `mother',
721         `conversion' and `94x60'; delete symbols `mojikyo',
722         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
723         (complex_vars_of_mule_charset): Modify for `make_charset' change;
724         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
725         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
726
727         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
728         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
729
730         * char-ucs.h (Vcharset_mojikyo): Deleted.
731         (Vcharset_mojikyo_2022_1): Deleted.
732         (LEADING_BYTE_MOJIKYO): Deleted.
733         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
734         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
735         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
736         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
737         add new member `mother'; add new member `conversion'.
738         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
739         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
740         (CHARSET_MOTHER): New macro.
741         (CHARSET_CONVERSION): New macro.
742         (CONVERSION_IDENTICAL): New macro.
743         (CONVERSION_94x60): New macro.
744         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
745         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
746         (XCHARSET_MOTHER): New macro.
747         (XCHARSET_CONVERSION): New macro.
748         (MIN_CHAR_MOJIKYO): Deleted.
749         (MAX_CHAR_MOJIKYO): Deleted.
750         (DECODE_MOJIKYO_2022): Deleted.
751         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
752         (charset_code_point): Changed to non-inline function.
753         (encode_char_1): Use `charset_code_point'.
754         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
755
756 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * lread.c (read_compiled_function): Fix prototype.
759         (read_vector): Likewise.
760
761 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * lrecord.h (struct lrecord_header): Delete `older'.
764         (set_lheader_implementation): Delete code for `older'.
765         (set_lheader_older_implementation): Deleted.
766         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
767         (OLDER_RECORD_P): Deleted.
768         (OLDER_RECORD_HEADER_P): Deleted.
769         (alloc_older_lcrecord): Deleted.
770         (alloc_older_lcrecord_type): Deleted.
771
772         * alloc.c (all_older_lcrecords): Deleted.
773         (alloc_older_lcrecord): Deleted.
774         (disksave_object_finalization_1): Delete code for older objects.
775         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
776         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
777
778 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * mule-charset.c (decoding_table_put_char): Use `make_vector'
781         instead of `make_older_vector'.
782         (put_char_ccs_code_point): Likewise.
783         (mark_charset): Mark `cs->decoding_table'.
784         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
785
786         * lisp.h (make_older_vector): Deleted.
787         (make_vector_newer): Deleted.
788
789         * config.h.in (HAVE_GGC): Deleted.
790
791         * alloc.c (make_older_vector): Deleted.
792         (make_vector_newer_1): Deleted.
793         (make_vector_newer): Deleted.
794
795 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
796
797         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
798         (Qideograph_daikanwa_2): New variable.
799         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
800         (complex_vars_of_mule_charset): Add new coded-charset
801         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
802         `LEADING_BYTE_DAIKANWA'.
803
804         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
805         (LEADING_BYTE_DAIKANWA_1): New macro.
806         (LEADING_BYTE_DAIKANWA_2): New macro.
807         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
808
809 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * mule-charset.c (complex_vars_of_mule_charset): Change
812         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
813         the second revised version.
814
815 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
816
817         * mule-charset.c (Vcharset_ucs_smp): New variable.
818         (Vcharset_ucs_sip): New variable.
819         (Qucs_smp): New variable.
820         (Qucs_sip): New variable.
821         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
822         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
823         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
824         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
825         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
826         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
827
828         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
829         (LEADING_BYTE_UCS_SIP): New macro.
830         (MIN_CHAR_SMP): New macro.
831         (MAX_CHAR_SMP): New macro.
832         (MIN_CHAR_SIP): New macro.
833         (MAX_CHAR_SIP): New macro.
834
835 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
836
837         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
838         utf-2000.
839
840 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
843         value; don't store value into `encoding_table' of `Lisp_Charset'.
844         (mark_charset): `encoding_table' was deleted.
845         (charset_description): Likewise.
846         (make_charset): Likewise.
847         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
848         `put_char_ccs_code_point'.
849
850         * chartab.h (Fput_char_attribute): New EXFUN.
851
852         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
853         is unified with normal symbol space.
854         (Fget_char_attribute): Likewise.
855         (Fput_char_attribute): Likewise; behavior of
856         `put_char_ccs_code_point' is changed.
857
858         * char-ucs.h: Include "elhash.h".
859         (Vchar_attribute_hash_table): New external variable.
860         (struct Lisp_Charset): Delete `encoding_table'.
861         (CHARSET_ENCODING_TABLE): New implementation; refer
862         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
863         `Lisp_Charset'.
864
865 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
868         (cs) == 0.
869
870 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * text-coding.c (char_encode_big5): Prefer charset-g1 than
873         `chinese-big5'.
874
875 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * chartab.c (uint8_byte_table_description): New constant.
878         (uint8-byte-table): Use `uint8_byte_table_description'.
879         (uint16_byte_table_description): New constant.
880         (uint16-byte-table): Use `uint16_byte_table_description'.
881
882 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
885         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
886
887 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
888
889         * mule-charset.c (Vcharset_ucs_ks): New variable.
890         (Qucs_ks): New variable.
891         (syms_of_mule_charset): Add new symbol `ucs-ks'.
892         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
893
894         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
895
896 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
899         (Fdecode_char): Likewise.
900
901         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
902         chartab.h.
903         (Fdefine_char): Modify for Fdecode_char.
904         (Ffind_char): Likewise.
905
906         * mule-charset.c (Fdecode_char): Add new optional argument
907         `defined-only'.
908         (Fdecode_builtin_char): Modify for `Fdecode_char'.
909
910 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
913         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
914         (allocate_coding_system): Initialize initial-charsets of
915         CODESYS_BIG5 in XEmacs UTF-2000.
916         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
917         CODESYS_BIG5 in XEmacs UTF-2000.
918         (decode_coding_big5): Use initial-charset-g0 and -g1 of
919         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
920
921         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
922         variables.
923         (Qideograph_hanziku_{1 .. 12}): Likewise.
924         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
925         .. 12}'.
926         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
927         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
928         `ideograph-hanziku-{1 .. 12}'.
929
930         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
931         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
932         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
933         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
934         (DECODE_DEFINED_CHAR): New inline function.
935         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
936
937 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * mule-charset.c (Vcharset_china3_jef): Renamed from
940         `Vcharset_japanese_jef_china3'.
941         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
942         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
943         `{MIN|MAX}_CHAR_JEF_CHINA3'..
944         (syms_of_mule_charset): Rename `china3-jef' from
945         `japanese-jef-china3'.
946         (complex_vars_of_mule_charset): Likewise; rename
947         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
948
949         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
950         `LEADING_BYTE_JEF_CHINA3'.
951         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
952         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
953
954 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
955
956         * mule-charset.c (encode_builtin_char_1): Comment out special code
957         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
958
959         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
960         (MAX_CHAR_MOJIKYO_0): Comment out.
961         (MIN_CHAR_CBETA): Changed to 0x00E20000.
962         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
963         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
964         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
965
966 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
967
968         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
969         (Qideograph_cbeta): New variable.
970         (encode_builtin_char_1): Comment out special code for
971         coded-charset `mojikyo' and `japanese-jef-china3'.
972         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
973         (complex_vars_of_mule_charset): Add new coded-charset
974         `ideograph-cbeta'.
975
976         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
977         (MIN_CHAR_CBETA): New macro.
978         (MAX_CHAR_CBETA): New macro.
979
980 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
981
982         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
983         (LEADING_BYTE_JEF_CHINA3): New macro.
984         (MIN_CHAR_JEF_CHINA3): New macro.
985         (MAX_CHAR_JEF_CHINA3): Likewise.
986         (DECODE_CHAR): Fixed.
987
988 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
989
990         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
991         (Qjapanese_jef_china3): New variable.
992         (encode_builtin_char_1): Support `japanese-jef-china3'.
993         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
994         (complex_vars_of_mule_charset): Add new coded-charset
995         `japanese-jef-china3'.
996
997 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1000         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1001         94^4, 96^3, 96^4, 128^n and 256^n set.
1002         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1003         (map_char_table): Likewise.
1004
1005 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1008         UTF-2000.
1009
1010 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011
1012         * chartab.h (get_char_id_table): New inline function.
1013
1014         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1015         function.
1016
1017 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1018
1019         * chartab.h (decode_char_table_range): New prototype in XEmacs
1020         UTF-2000.
1021         (put_char_id_table): New inline function in XEmacs UTF-2000.
1022
1023         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1024         function.
1025         (decode_char_table_range): Delete static declaration in XEmacs
1026         UTF-2000.
1027
1028 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1029
1030         * chartab.c (put_char_id_table): Use `put_char_table'.
1031
1032 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1033
1034         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1035         (map_over_uint16_byte_table): Likewise.
1036         (map_over_byte_table): Likewise.
1037         (map_char_table): Modify for `map_over_uint8_byte_table',
1038         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1039         UTF-2000.
1040
1041 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * chartab.c (struct map_char_table_for_charset_arg): New
1044         structure.
1045         (map_char_table_for_charset_fun): New function.
1046         (map_char_table): Use `map_char_table' for encoding_table of
1047         `range->charset'.
1048
1049 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050
1051         * chartab.c (map_char_table): Check a character is found in
1052         range->charset instead of non default value is defined in
1053         char-table when range is CHARTAB_RANGE_ROW.
1054
1055 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1056
1057         * chartab.c (map_char_id_table): Deleted.
1058         (Fmap_char_attribute): Use `map_char_table' instead of
1059         `map_char_id_table'.
1060
1061 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1062
1063         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1064         UTF-2000.
1065         (update_syntax_table): Deleted in XEmacs UTF-2000.
1066
1067         * syntax.c (find_defun_start): Use `syntax_table' instead of
1068         `mirror_syntax_table' in XEmacs UTF-2000.
1069         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1070         UTF-2000.
1071         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1072         XEmacs UTF-2000.
1073         (Fmatching_paren): Likewise.
1074         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1075         in XEmacs UTF-2000.
1076         (find_start_of_comment): Likewise.
1077         (find_end_of_comment): Likewise.
1078         (Fforward_comment): Likewise.
1079         (scan_lists): Likewise.
1080         (char_quoted): Likewise.
1081         (Fbackward_prefix_chars): Likewise.
1082         (scan_sexps_forward): Likewise.
1083         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1084         (update_syntax_table): Likewise.
1085
1086         * search.c (skip_chars): Use `syntax_table' instead of
1087         `mirror_syntax_table' in XEmacs UTF-2000.
1088         (wordify): Likewise.
1089         (Freplace_match): Likewise.
1090
1091         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1092         `mirror_syntax_table' in XEmacs UTF-2000.
1093         (WORDCHAR_P_UNSAFE): Likewise.
1094         (re_match_2_internal): Likewise.
1095
1096         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1097         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1098
1099         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1100         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1101
1102         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1103         XEmacs UTF-2000.
1104
1105         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1106         UTF-2000.
1107         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1108         (char_table_description): Delete `mirror_table' in XEmacs
1109         UTF-2000.
1110         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1111         UTF-2000.
1112         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1113         (Fcopy_char_table): Likewise.
1114         (put_char_table): Don't call `update_syntax_table' in XEmacs
1115         UTF-2000.
1116
1117         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1118         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1119         (casify_region_internal): Likewise.
1120
1121         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1122
1123         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1124         `mirror_syntax_table' in XEmacs UTF-2000.
1125
1126         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1127         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1128         (Fexpand_abbrev): Likewise.
1129
1130 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1131
1132         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1133
1134 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1135
1136         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1137         (map_over_uint16_byte_table): Likewise.
1138         (map_over_byte_table): Likewise.
1139         (get_char_id_table): Refer `cit->default_value'.
1140         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1141         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1142         of character-id ranges.
1143         (mark_char_table): Mark `ct->default_value'.
1144         (char_table_description): Add `default_value'.
1145         (fill_char_table): Use `default_value'.
1146         (decode_char_table_range): Decode `nil' as
1147         `CHARTAB_RANGE_DEFAULT'.
1148         (get_char_id_table): Refer `cit->default_value'.
1149         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1150         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1151         temporary hack; check value of char-table is bound or not.
1152         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1153
1154         * chartab.h (struct Lisp_Char_Table): Add new member
1155         `default_value' in XEmacs UTF-2000.
1156         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1157         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1158         UTF-2000.
1159
1160 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1161
1162         * chartab.h (Lisp_Char_ID_Table): Deleted.
1163
1164         * chartab.c (char_table_description): Fix typo.
1165         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1166         `Lisp_Char_ID_Table'.
1167
1168 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169
1170         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1171         `CHAR_ID_TABLE_P'.
1172
1173         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1174         `CHAR_ID_TABLE_P'.
1175
1176         * chartab.h (XCHAR_ID_TABLE): Deleted.
1177         (XSETCHAR_ID_TABLE): Deleted.
1178         (CHAR_ID_TABLE_P): Deleted.
1179
1180         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1181         `CHAR_ID_TABLE_P'.
1182         (Fget_composite_char): Likewise.
1183         (put_char_table): Likewise.
1184         (add_char_attribute_alist_mapper): Fixed.
1185         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1186         `CHAR_ID_TABLE_P'.
1187         (Fget_char_attribute): Likewise.
1188         (Fget_char_attribute): Likewise.
1189         (Fmap_char_attribute): Likewise.
1190
1191         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1192         `CHAR_ID_TABLE_P'.
1193         (encode_char_1): Likewise.
1194
1195 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196
1197         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1198         `XCHAR_ID_TABLE'.
1199
1200         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1201         instead of `XCHAR_ID_TABLE'.
1202         (remove_char_ccs): Likewise.
1203
1204         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1205         `XCHAR_ID_TABLE'.
1206         (Fget_composite_char): Likewise.
1207         (Fchar_variants): Likewise.
1208         (put_char_table): Likewise.
1209         (add_char_attribute_alist_mapper): Likewise.
1210         (Fchar_attribute_alist): Likewise.
1211         (Fget_char_attribute): Likewise.
1212         (Fput_char_attribute): Likewise.
1213         (Fmap_char_attribute): Likewise.
1214         (Fmap_char_attribute): Likewise.
1215
1216         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1217         `XCHAR_ID_TABLE'.
1218         (encode_char_1): Likewise.
1219
1220 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1223         `Lisp_Char_ID_Table'.
1224         (mark_char_id_table): Deleted.
1225         (print_char_id_table): Likewise.
1226         (char_id_table_equal): Likewise.
1227         (char_id_table_hash): Likewise.
1228         (char_id_table_description): Likewise.
1229         (char_id_table): Likewise.
1230         (make_char_id_table): Use `Fmake_char_table' and
1231         `fill_char_table'.
1232         (get_char_id_table): Use `Lisp_Char_Table' instead of
1233         `Lisp_Char_ID_Table'.
1234         (put_char_id_table): Likewise.
1235         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1236         `XCHAR_ID_TABLE'.
1237         (Fremove_char_attribute): Likewise.
1238         (syms_of_chartab): Don't define type `char-id-table'.
1239
1240         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1241         (char_id_table): Likewise.
1242         (GC_CHAR_ID_TABLE_P): Likewise.
1243         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1244         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1245         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1246         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1247         (get_char_id_table): Use `Lisp_Char_Table' instead of
1248         `Lisp_Char_ID_Table'.
1249         (put_char_id_table_0): Likewise.
1250         (put_char_id_table): Likewise.
1251
1252 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1253
1254         * chartab.h: Lisp_Byte_Table related codes are moved from
1255         chartab.h.
1256
1257         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1258
1259 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1260
1261         * chartab.h: Don't include "chartab.h".
1262         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1263         (Lisp_Char_ID_Table): Likewise.
1264         (char_id_table): Likewise.
1265         (XCHAR_ID_TABLE): Likewise.
1266         (XSETCHAR_ID_TABLE): Likewise.
1267         (CHAR_ID_TABLE_P): Likewise.
1268         (GC_CHAR_ID_TABLE_P): Likewise.
1269         (get_char_id_table): Likewise.
1270
1271         * char-ucs.h: Include "chartab.h".
1272         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1273         (Lisp_Char_ID_Table): Likewise.
1274         (char_id_table): Likewise.
1275         (XCHAR_ID_TABLE): Likewise.
1276         (XSETCHAR_ID_TABLE): Likewise.
1277         (CHAR_ID_TABLE_P): Likewise.
1278         (GC_CHAR_ID_TABLE_P): Likewise.
1279         (get_char_id_table): Likewise.
1280
1281 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1282
1283         * chartab.c (copy_uint8_byte_table): New function.
1284         (copy_uint16_byte_table): New function.
1285         (copy_byte_table): New function.
1286         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1287         characters to call.
1288         (map_over_uint16_byte_table): Likewise.
1289         (map_over_byte_table): Likewise.
1290         (get_byte_table): Move prototype to chartab.h.
1291         (put_byte_table): Likewise.
1292         (put_char_id_table_0): Moved to chartab.h.
1293         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1294         (char_table_entry_equal): Likewise.
1295         (char_table_entry_hash): Likewise.
1296         (char_table_entry_description): Likewise.
1297         (char_table_entry): Likewise.
1298         (make_char_table_entry): Likewise.
1299         (copy_char_table_entry): Likewise.
1300         (get_non_ascii_char_table_value): Likewise.
1301         (map_over_charset_ascii): Likewise.
1302         (map_over_charset_control_1): Likewise.
1303         (map_over_charset_row): Likewise.
1304         (map_over_other_charset): Likewise.
1305         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1306         (print_char_table): Likewise.
1307         (char_table_equal): Likewise.
1308         (char_table_hash): Likewise.
1309         (char_table_description): Likewise.
1310         (fill_char_table): Likewise.
1311         (Fcopy_char_table): Likewise.
1312         (get_char_table): Likewise.
1313         (Fget_range_char_table): Likewise.
1314         (put_char_table): Likewise.
1315         (map_char_table): Likewise.
1316         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1317         UTF-2000.
1318
1319 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1320
1321         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1322         `Vauto_fill_chars' in XEmacs UTF-2000.
1323
1324         * chartab.h (get_byte_table): New prototype [moved from
1325         chartab.c].
1326         (put_byte_table): Likewise [moved from chartab.c].
1327         (put_char_id_table_0): New inline function [moved from chartab.c].
1328         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1329         (Lisp_Char_Table_Entry): Likewise.
1330         (char_table_entry): Likewise.
1331         (XCHAR_TABLE_ENTRY): Likewise.
1332         (XSETCHAR_TABLE_ENTRY): Likewise.
1333         (CHAR_TABLE_ENTRYP): Likewise.
1334         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1335         (NUM_ASCII_CHARS): Likewise.
1336         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1337         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1338
1339 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1340
1341         * chartab.c (get_char_id_table): Change interface.
1342         (put_char_id_table_0): New function.
1343         (put_char_id_table): Change interface; new implementation.
1344         (Fget_composite_char): Modify for interface change of
1345         `get_char_id_table'.
1346         (Fchar_variants): Likewise.
1347         (add_char_attribute_alist_mapper): Likewise.
1348         (Fchar_attribute_alist): Likewise.
1349         (Fget_char_attribute): Likewise.
1350         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1351         as same as character as the first argument like `put-char-table';
1352         modify for interface change of `put_char_id_table'.
1353         (Fremove_char_attribute): Modify for interface change of
1354         `put_char_id_table'.
1355
1356 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * text-coding.c: Sync up with XEmacs 21.2.41.
1359         (COMPOSE_ADD_CHAR): Modify for interface change of
1360         `get_char_id_table'.
1361
1362         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1363         change of `put_char_id_table'.
1364         (remove_char_ccs): Likewise.
1365
1366         * chartab.h (put_char_id_table): Change interface.
1367
1368         * char-ucs.h (get_char_id_table): Change interface.
1369         (charset_code_point): Modify for interface change of
1370         `get_char_id_table'.
1371         (encode_char_1): Likewise.
1372
1373 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1376         argument `ccs'.
1377         (map_over_uint16_byte_table): Likewise.
1378         (map_over_byte_table): Likewise.
1379         (map_char_id_table): Add new argument `range' like
1380         `map_char_table'.
1381         (Fmap_char_attribute): Add new argument `range' like
1382         `Fmap_char_table'.
1383
1384 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * chartab.c (map_over_uint8_byte_table): Change interface of
1387         mapping function to use struct chartab_range instead of Emchar.
1388         (map_over_uint16_byte_table): Likewise.
1389         (map_over_byte_table): Likewise.
1390         (map_char_id_table): Likewise.
1391         (struct slow_map_char_id_table_arg): Deleted.
1392         (slow_map_char_id_table_fun): Deleted.
1393         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1394         function `slow_map_char_table_fun' instead of struct
1395         `slow_map_char_id_table_arg' and function
1396         `slow_map_char_id_table_fun'.
1397
1398 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399
1400         * mule-charset.c: Move char-it-table related codes to chartab.c.
1401         (Vutf_2000_version): Moved to chartab.c.
1402         (Fdefine_char): Likewise.
1403         (Ffind_char): Likewise.
1404         (syms_of_mule_charset): Move types `uint8-byte-table',
1405         `uint16-byte-table', `byte-table' and `char-id-table' to
1406         chartab.c; move functions `char_attribute_list,
1407         `find_char_attribute_table, `char_attribute_alist,
1408         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1409         `map_char_attribute, `define_char, `find_char, `char_variants and
1410         `get_composite_char to chartab.c; move symbols `=>ucs',
1411         `->decomposition', `compat', `isolated', `initial', `medial',
1412         `final', `vertical', `noBreak', `fraction', `super', `sub',
1413         `circle', `square', `wide', `narrow', `small' and `font' to
1414         chartab.c.
1415         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1416         setting codes for `Vcharacter_composition_table' and
1417         `Vcharacter_variant_table' to chartab.c.
1418         (complex_vars_of_mule_charset): Move setting code for
1419         `Vchar_attribute_hash_table' to chartab.c.
1420
1421         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1422         (make_char_id_table): New prototype.
1423         (put_char_id_table): Likewise.
1424         (Fget_char_attribute): Likewise.
1425
1426         * chartab.c: Move char-id-table related code from mule-charset.c.
1427         (Vutf_2000_version): Moved from mule-charset.c.
1428
1429         * char-ucs.h (Qucs): New external variable.
1430         (put_char_ccs_code_point): New prototype.
1431         (remove_char_ccs): Likewise.
1432
1433 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1434
1435         * mule-charset.c (Vcharset_ucs_jis): New variable.
1436         (Qucs_jis): Likewise.
1437         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1438         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1439
1440         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1441
1442 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * mule-charset.c (map_over_uint8_byte_table): New function.
1445         (map_over_uint16_byte_table): Likewise.
1446         (map_over_byte_table): Likewise.
1447         (map_char_id_table): Likewise.
1448         (slow_map_char_id_table_fun): Likewise.
1449         (Fmap_char_attribute): Likewise.
1450         (syms_of_mule_charset): Add new function `map-char-attribute'.
1451
1452 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1455         (syms_of_mule_charset): Add new function `find-char'.
1456
1457 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1460         XEmacs UTF-2000.
1461         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1462         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1463         XEmacs UTF-2000.
1464         (complex_vars_of_mule_charset): Add new coded-charset
1465         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1466         `ideograph-gt-pj-*'.
1467
1468         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1469
1470 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * mule-charset.c (encode_builtin_char_1): Purge codes about
1473         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1474         {MIN|MAX}_CHAR_HEBREW.
1475         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1476         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1477
1478         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1479         (MAX_CHAR_GREEK): Purged.
1480         (MIN_CHAR_CYRILLIC): Purged.
1481         (MAX_CHAR_CYRILLIC): Purged.
1482         (MIN_CHAR_HEBREW): Commented out.
1483         (MAX_CHAR_HEBREW): Likewise.
1484
1485 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * mule-charset.c (Qto_ucs): New variable.
1488         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1489         (Fdefine_char): Likewise.
1490         (syms_of_mule_charset): Add new symbol `=>ucs'.
1491
1492 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1493
1494         * mule-charset.c (Fdecode_char): Fixed.
1495
1496 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497
1498         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1499         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1500         "tcvn5712-1".
1501
1502 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * mule-charset.c (Vcharset_ucs_big5): New variable.
1505         (Qucs_big5): Likewise.
1506         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1507         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1508
1509         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1510
1511 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512
1513         * mule-charset.c (decode_builtin_char): Check Big5 code range
1514         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1515
1516 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1517
1518         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1519         (Qchinese_gb12345): Likewise.
1520         (Fdecode_builtin_char): Fixed.
1521         (syms_of_mule_charset): Add `chinese-gb12345'.
1522         (complex_vars_of_mule_charset): Add coded-charset
1523         `chinese-gb12345'.
1524
1525         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1526         (LEADING_BYTE_CHINESE_GB12345): New macro.
1527
1528 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1529
1530         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1531         and `latin-viscii-upper' for `latin-viscii'.
1532
1533 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534
1535         * mule-charset.c (Fdecode_builtin_char): Comment out
1536         regularization code for ISO-IR GR representation.
1537
1538 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (decode_builtin_char): New function; renamed from
1541         `make_builtin_char'; return -1 instead of signal.
1542         (Fdecode_builtin_char): Use `decode_builtin_char'.
1543
1544         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1545         `make_builtin_char'.
1546         (DECODE_CHAR): Use `decode_builtin_char' instead of
1547         `make_builtin_char'; use mapping table of `chinese-big5' for
1548         `chinese-big5-{1,2}'.
1549
1550 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1551
1552         * text-coding.c (char_encode_big5): New function.
1553         (char_finish_big5): Likewise.
1554         (reset_encoding_stream): Use `char_encode_big5' and
1555         `char_finish_big5' for CODESYS_BIG5.
1556         (mule_encode): Don't use `encode_coding_big5'.
1557         (encode_coding_big5): Deleted.
1558
1559 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1560
1561         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1562         0x81- in XEmacs UTF-2000.
1563         (detect_coding_big5): Likewise.
1564
1565 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566
1567         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1568         generate character-id if the CCS property does not have
1569         corresponding predefined character.
1570         (make_builtin_char): Return -1 if corresponding predefined
1571         character is not found.
1572         (Fdecode_char): Return nil if corresponding character is not
1573         found.
1574         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1575         don't map to builtin ucs space.
1576
1577 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1580         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1581
1582 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1583
1584         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1585         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1586         (Qideograph_gt): Likewise.
1587         (Qideograph_gt_pj_{1..11}): Likewise.
1588         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1589         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1590         `ideograph-gt-pj-11'.
1591         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1592         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1593         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1594
1595         * char-ucs.h (LEADING_BYTE_GT): New macro.
1596         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1597         (MIN_CHAR_GT): Likewise.
1598         (MAX_CHAR_GT): Likewise.
1599
1600 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1603         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1604
1605         * doprnt.c (unsigned_int_converters): Add `c'.
1606         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1607
1608         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1609         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1610         `MIN_CHAR_MOJIKYO'.
1611         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1612         (MAX_CHAR_MOJIKYO_0): New macro.
1613         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1614
1615 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * mule-charset.c (Fdefine_char): Delete cemented out code.
1618         (encode_builtin_char_1): Modify for new allocation of builtin
1619         Mojikyo characters.
1620
1621         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1622
1623 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1624
1625         * mule-charset.c (Vcharset_ucs_cns): New variable.
1626         (Qucs_cns): New variable.
1627         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1628         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1629
1630 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631
1632         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1633
1634 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1635
1636         * search.c (search_buffer): Make `charset_base_code' as
1637         character-id >> 6 to eliminate the corresponding last byte in
1638         UTF-8 representation [I'm not sure it is right thing].
1639         (boyer_moore): Likewise.
1640
1641 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1642
1643         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1644         representation in MULE.
1645
1646 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * text-coding.c (Fmake_coding_system): Use
1649         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1650         `EXTERNAL_PROPERTY_LIST_LOOP'.
1651
1652 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * text-coding.c (decode_output_utf8_partial_char): New function.
1655         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1656
1657 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * text-coding.c (decode_coding_utf8): Output original byte
1660         sequence if it is broken; change order of conditions.
1661
1662         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1663         of conditions.
1664
1665         * mb-multibyte.h (BYTE_ASCII_P):
1666         Use bit ops for char-signedness safety.
1667         (BYTE_C0_P): Use bit ops for char-signedness safety.
1668         (BYTE_C1_P): Use bit ops for char-signedness safety.
1669
1670         * character.h: (XCHAR_OR_CHAR_INT):
1671         Always use inline function.
1672         Remove redundant type checking assert() - XINT will abort quite
1673         nicely.
1674
1675 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1676
1677         * text-coding.c: (Fencode_shift_jis_char):
1678         (Fencode_big5_char):
1679         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1680         Replace 0 with '\0' when working with bytes.
1681         Replace initial "(" with "\(" in docstrings.
1682
1683         (Fmake_coding_system):
1684         When type is ccl and value is vector, register it with a proper
1685         symbol.  And checks whether the given ccl program is valid.
1686         (mule_decode): When calling ccl_driver, if src indicates
1687         NULL pointer, set an empty string instead.
1688         (mule_encode): Likewise.
1689
1690         (detect_eol_type):
1691         (detect_coding_sjis):
1692         (decode_coding_sjis):
1693         (detect_coding_big5):
1694         (decode_coding_big5):
1695         (detect_coding_ucs4):
1696         (decode_coding_ucs4):
1697         (detect_coding_utf8):
1698         (decode_coding_utf8):
1699         (detect_coding_iso2022):
1700         (decode_coding_iso2022):
1701         (decode_coding_no_conversion):
1702         (mule_decode):
1703         Make all detecting and decoding functions take an Extbyte * arg.
1704         (text_encode_generic):
1705         (encode_coding_big5):
1706         (encode_coding_no_conversion):
1707         (mule_encode):
1708         Make all encoding functions take a Bufbyte * arg.
1709         Use size_t instead of unsigned int for memory sizes.
1710         Only cast to unsigned char whenever dereferencing Extbyte *.
1711
1712         (struct lrecord_description fcd_description_1): Use countof.
1713         (complex_vars_of_file_coding):
1714         Use countof instead of sizeof.
1715         Use CHECK_NATNUM instead of CHECK_INT.
1716
1717 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1718
1719         * mule-charset.c (Fget_char_attribute): Add new optional argument
1720         `default-value'.
1721         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1722         (remove_char_ccs): Likewise.
1723
1724 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * text-coding.c (char_encode_shift_jis): New implementation in
1727         UTF-2000.
1728         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1729         ...)'.
1730
1731         * mule-charset.c (Vcharset_chinese_big5): New variable in
1732         UTF-2000.
1733         (Qchinese_big5): New variable in UTF-2000.
1734         (BIG5_SAME_ROW): New macro in UTF-2000.
1735         (make_builtin_char): Use builtin characters of
1736         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1737         characters of `Vcharset_chinese_big5'.
1738         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1739         (complex_vars_of_mule_charset): Add new coded-charset
1740         `chinese-big5' in UTF-2000.
1741
1742         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1743         (Vcharset_chinese_big5): New external variable declaration.
1744         (Vcharset_japanese_jisx0208_1990): Likewise.
1745
1746 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1747
1748         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1749         function.
1750         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1751
1752 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1753
1754         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1755         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1756         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1757         `mojikyo-pj-*'.
1758
1759 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1760
1761         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1762
1763 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1764
1765         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1766         to 0.17.
1767
1768 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1771         for `CHARSET_BY_ATTRIBUTES'.
1772         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1773         `CHARSET_BY_ATTRIBUTES'.
1774
1775         * text-coding.c (struct decoding_stream): Rename member `CH' to
1776         `CPOS'.
1777         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1778         (decode_coding_sjis): Likewise.
1779         (decode_coding_big5): Likewise.
1780         (decode_coding_ucs4): Likewise.
1781         (decode_coding_utf8): Likewise.
1782         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1783         `CHARSET_BY_ATTRIBUTES'.
1784         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1785         `str->counter'; decode 3, 4 bytes sets.
1786         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1787         sets.
1788         (decode_coding_no_conversion): Use `str->cpos' instead of
1789         `str->ch'.
1790
1791         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1792         (Qmojikyo_2022_1): New variable.
1793         (make_charset): Don't use `CHARSET_TYPE_*'.
1794         (range_charset_code_point): Support coded-charset
1795         `mojikyo-2022-1'.
1796         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1797         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1798         `CHARSET_BY_ATTRIBUTES'.
1799         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1800         `CHARSET_BY_ATTRIBUTES'.
1801         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1802         (complex_vars_of_mule_charset): Add new coded-charset
1803         `mojikyo-2022-1'.
1804
1805         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1806         interface; changed to inline function.
1807
1808         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1809         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1810         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1811         (CHARSET_TYPE_94): Deleted.
1812         (CHARSET_TYPE_94X94): Deleted.
1813         (CHARSET_TYPE_96): Deleted.
1814         (CHARSET_TYPE_96X96): Deleted.
1815         (CHARSET_TYPE_128): Deleted.
1816         (CHARSET_TYPE_128X128): Deleted.
1817         (CHARSET_TYPE_256): Deleted.
1818         (CHARSET_TYPE_256X256): Deleted.
1819         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1820         to inline function.
1821         (DECODE_MOJIKYO_2022): New inline function.
1822         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1823         `Vcharset_mojikyo_2022_1'.
1824
1825 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1826
1827         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1828         instead of `EQ'.
1829         (put_byte_table): Likewise.
1830         (char_id_table_equal): Use `get_byte_table' [new implementation].
1831
1832 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1833
1834         * mule-charset.c: Include <limits.h> in UTF-2000.
1835         (BT_UINT8_MIN): New macro in UTF-2000.
1836         (BT_UINT8_MAX): New macro in UTF-2000.
1837         (BT_UINT8_t): New macro in UTF-2000.
1838         (BT_UINT8_nil): New macro in UTF-2000.
1839         (BT_UINT8_unbound): New macro in UTF-2000.
1840         (INT_UINT8_P): New inline function in UTF-2000.
1841         (UINT8_VALUE_P): New inline function in UTF-2000.
1842         (UINT8_ENCODE): New inline function in UTF-2000.
1843         (UINT8_DECODE): New inline function in UTF-2000.
1844         (mark_uint8_byte_table): New function in UTF-2000.
1845         (print_uint8_byte_table): New function in UTF-2000.
1846         (uint8_byte_table_equal): New function in UTF-2000.
1847         (uint8_byte_table_hash): New function in UTF-2000.
1848         (make_uint8_byte_table): New function in UTF-2000.
1849         (uint8_byte_table_same_value_p): New function in UTF-2000.
1850         (BT_UINT16_MIN): New macro in UTF-2000.
1851         (BT_UINT16_MAX): New macro in UTF-2000.
1852         (BT_UINT16_t): New macro in UTF-2000.
1853         (BT_UINT16_nil): New macro in UTF-2000.
1854         (BT_UINT16_unbound): New macro in UTF-2000.
1855         (INT_UINT16_P): New inline function in UTF-2000.
1856         (UINT16_VALUE_P): New inline function in UTF-2000.
1857         (UINT16_ENCODE): New inline function in UTF-2000.
1858         (UINT16_DECODE): New inline function in UTF-2000.
1859         (UINT8_TO_UINT16): New inline function in UTF-2000.
1860         (mark_uint16_byte_table): New function in UTF-2000.
1861         (print_uint16_byte_table): New function in UTF-2000.
1862         (uint16_byte_table_equal): New function in UTF-2000.
1863         (uint16_byte_table_hash): New function in UTF-2000.
1864         (make_uint16_byte_table): New function in UTF-2000.
1865         (uint16_byte_table_same_value_p): New function in UTF-2000.
1866         (print_byte_table): New function in UTF-2000.
1867         (byte-table): Use `print_byte_table' as printer.
1868         (make_byte_table): Delete second argument `older'.
1869         (byte_table_same_value_p): New function in UTF-2000.
1870         (copy_byte_table): Deleted.
1871         (get_byte_table): New function in UTF-2000.
1872         (put_byte_table): New function in UTF-2000.
1873         (print_char_id_table): New function in UTF-2000.
1874         (char-id-table): Use `print_char_id_table' as printer.
1875         (make_char_id_table): Delete second argument `older'.
1876         (get_char_id_table): Use `get_byte_table [new implementation].
1877         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1878         implementation].
1879         (Ffind_char_attribute_table): New function in UTF-2000.
1880         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1881         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1882         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1883         (syms_of_mule_charset): Add new function
1884         `find-char-attribute-table' in UTF-2000.
1885
1886         * lrecord.h (enum lrecord_type): Add
1887         `lrecord_type_uint16_byte_table' and
1888         `lrecord_type_uint8_byte_table'.
1889
1890         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1891         (Lisp_Uint8_Byte_Table): New type.
1892         (XUINT8_BYTE_TABLE): New macro.
1893         (XSETUINT8_BYTE_TABLE): New macro.
1894         (UINT8_BYTE_TABLE_P): New macro.
1895         (GC_UINT8_BYTE_TABLE_P): New macro.
1896         (struct Lisp_Uint16_Byte_Table): New structure.
1897         (Lisp_Uint16_Byte_Table): New type.
1898         (XUINT16_BYTE_TABLE): New macro.
1899         (XSETUINT16_BYTE_TABLE): New macro.
1900         (UINT16_BYTE_TABLE_P): New macro.
1901         (GC_UINT16_BYTE_TABLE_P): New macro.
1902
1903 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1904
1905         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1906         (Vcharacter_ideographic_strokes_table): Deleted.
1907         (Vcharacter_total_strokes_table): Deleted.
1908         (Vcharacter_morohashi_daikanwa_table): Deleted.
1909         (Vcharacter_decomposition_table): Deleted.
1910         (Qname): Deleted because it is duplicated.
1911         (Qideographic_radical): Deleted.
1912         (Qideographic_strokes): Deleted.
1913         (Qtotal_strokes): Deleted.
1914         (Qmorohashi_daikanwa): Deleted.
1915         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1916         `ideographic-radical', `ideographic-strokes', `total-strokes',
1917         `morohashi-daikanwa' and `->decomposition'.
1918         (Fget_char_attribute): Likewise.
1919         (Fput_char_attribute): Likewise; use `make-vector' instead of
1920         `make_older_vector' for `->decomposition' value.
1921         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1922         `ideograph-daikanwa'.
1923         (syms_of_mule_charset): Delete builtin symbols `name',
1924         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1925         `morohashi-daikanwa'.
1926         (vars_of_mule_charset): Don't setup
1927         `Vcharacter_ideographic_radical_table',
1928         `Vcharacter_ideographic_strokes_table',
1929         `Vcharacter_total_strokes_table',
1930         `Vcharacter_morohashi_daikanwa_table' and
1931         `Vcharacter_decomposition_table'.
1932
1933 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1934
1935         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1936         `make_older_vector', `make_vector_newer_1' and
1937         `make_vector_newer'.
1938
1939         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1940         `make_older_vector' and `make_vector_newer'.
1941
1942         * config.h.in (HAVE_GGC): New macro.
1943
1944 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1945
1946         * mule-charset.c (struct char_attribute_list_closure): New
1947         structure in UTF-2000.
1948         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1949         (Fchar_attribute_list): Likewise.
1950         (Fset_charset_mapping_table): Use `make_vector_newer'.
1951         (Fdecode_builtin_char): New function in UTF-2000.
1952         (syms_of_mule_charset): Add new function `char-attribute-list' and
1953         `decode-builtin-char' in UTF-2000.
1954
1955         * lisp.h (make_vector_newer): New prototype.
1956
1957         * alloc.c (make_vector_newer_1): New function.
1958         (make_vector_newer): New function.
1959
1960 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1963         50100)'.
1964
1965 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1966
1967         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1968         (Vcharacter_attribute_table): Deleted.
1969         (Vcharacter_name_table): Deleted.
1970         (put_char_attribute): Deleted.
1971         (remove_char_attribute): Deleted.
1972         (struct char_attribute_alist_closure): New structure.
1973         (add_char_attribute_alist_mapper): New function.
1974         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1975         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1976         (Fget_char_attribute): Likewise.
1977         (Fput_char_attribute): Likewise.
1978         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1979         of `remove_char_attribute'.
1980         (Fdefine_char): Return character.
1981         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1982         and `Vcharacter_name_table'.
1983         (complex_vars_of_mule_charset): Likewise
1984         `Vchar_attribute_hash_table'.
1985
1986 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1987
1988         * character.h (CHARC_CHARSET): New macro.
1989         (CHARC_CHARSET_ID): New macro.
1990         (CHARC_CODE_POINT): New macro.
1991         (CHARC_COLUMNS): New macro.
1992         (CHARC_TO_CHAR): New inline function.
1993         (CHARC_EQ): New inline function.
1994         (CHARC_ASCII_EQ): New inline function.
1995         (CHARC_IS_SPACE): New inline function.
1996         (ASCII_TO_CHARC): New inline function.
1997
1998         * char-ucs.h (encode_char_2): Deleted.
1999         (ENCODE_CHAR): Use `encode_char_1' again.
2000         (breakup_char_1): Likewise.
2001         (CHAR_TO_CHARC): New inline function.
2002
2003         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2004
2005 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006
2007         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2008         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2009         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2010         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2011         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2012         `CHARC_IS_SPACE'.
2013         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2014
2015         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2016         `CHARC_CODE_POINT'.
2017         (x_output_display_block): Use `CHARC_CHARSET' and
2018         `CHARC_ASCII_EQ'.
2019
2020         * redisplay-tty.c (tty_output_display_block): Use
2021         `CHARC_ASCII_EQ'.
2022         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2023
2024         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2025
2026         * insdel.c (find_charsets_in_charc_string): Use
2027         `CHARC_CHARSET_ID'.
2028         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2029         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2030         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2031         (convert_charc_string_into_malloced_string): Likewise.
2032
2033 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2034
2035         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2036         instead of <Emchar_dynarr *> for buf; use
2037         `convert_bufbyte_string_into_charc_dynarr' instead of
2038         `convert_bufbyte_string_into_emchar_dynarr'; use
2039         `find_charsets_in_charc_string' instead of
2040         `find_charsets_in_emchar_string'.
2041
2042         * redisplay.h:
2043         - Include "character.h".
2044         (struct rune): New member `cglyph'; delete member `chr'.
2045
2046         * redisplay.c (redisplay_text_width_charc_string): New function;
2047         delete `redisplay_text_width_emchar_string'.
2048         (rtw_charc_dynarr): New variable; renamed from
2049         `rtw_emchar_dynarr'.
2050         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2051         `rtw_emchar_dynarr'; use
2052         `convert_bufbyte_string_into_charc_dynarr' instead of
2053         `convert_bufbyte_string_into_emchar_dynarr'; use
2054         `redisplay_text_width_charc_string' instead of
2055         `redisplay_text_width_emchar_string'.
2056         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2057         instead of `rtw_emchar_dynarr'; use
2058         `convert_bufbyte_string_into_charc_dynarr' instead of
2059         `convert_bufbyte_string_into_emchar_dynarr'.
2060         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2061         `redisplay_text_width_charc_string' instead of
2062         `redisplay_text_width_emchar_string'.
2063         (create_text_block): Modify for <struct rune> change.
2064         (generate_formatted_string_db): Likewise.
2065         (create_string_text_block): Likewise.
2066         (pixel_to_glyph_translation): Likewise.
2067
2068         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2069         instead of <const Emchar *>.
2070         (x_text_width): Likewise.
2071         (x_output_display_block): Use <Charc_dynarr *> instead
2072         <Emchar_dynarr *>; modify for <structure rune> change.
2073         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2074         *>.
2075
2076         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2077         <const Emchar *>; use `charc_string_displayed_columns' instead of
2078         `emchar_string_displayed_columns'.
2079         (tty_output_display_block): Use <Charc_dynarr *> instead of
2080         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2081         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2082         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2083         `tty_output_emchar_dynarr_dynarr'.
2084         (tty_output_charc_dynarr): New function; delete
2085         `tty_output_charc_dynarr'.
2086
2087         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2088         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2089         <Emchar_dynarr *> for buf; use
2090         `convert_bufbyte_string_into_charc_dynarr' instead of
2091         `convert_bufbyte_string_into_emchar_dynarr'.
2092
2093         * frame.c (title_string_charc_dynarr): New variable; renamed from
2094         `title_string_emchar_dynarr'.
2095         (generate_title_string): Use `title_string_charc_dynarr' instead
2096         of `title_string_emchar_dynarr'; use
2097         `convert_charc_string_into_malloced_string' instead of
2098         `convert_emchar_string_into_malloced_string'.
2099         (init_frame): Use `title_string_charc_dynarr' instead of
2100         `title_string_emchar_dynarr'.
2101
2102         * console.h:
2103         - Include "character.h".
2104         (struct console_methods): Use <const Charc *> instead of <const
2105         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2106         <Emchar_dynarr *> in output_string_method.
2107
2108         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2109         <Emchar_dynarr *>.
2110
2111         * console-stream.c (stream_text_width): Use <const Charc *>
2112         instead of <const Emchar *>.
2113
2114         * character.h (Charc_dynarr): New type.
2115
2116         * char-ucs.h (structure Charc): New structure; define new type
2117         `Charc'.
2118
2119         * char-lb.h (DECODE_CHAR): New inline function.
2120         (encode_char_1): New inline function.
2121         (ENCODE_CHAR): New macro.
2122         (structure Charc): New structure; define new type `Charc'.
2123
2124         * char-1byte.h (Vcharset_control_1): New macro.
2125         (Vcharset_latin_iso8859_1): New macro.
2126         (DECODE_CHAR): New inline function.
2127         (encode_char_1): New inline function.
2128         (ENCODE_CHAR): New macro.
2129         (structure Charc): New structure; define new type `Charc'.
2130
2131         * insdel.c (find_charsets_in_charc_string): New function; delete
2132         `find_charsets_in_emchar_string'.
2133         (charc_string_displayed_columns): New function; delete
2134         `emchar_string_displayed_columns'.
2135         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2136         `convert_bufbyte_string_into_emchar_dynarr'.
2137         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2138         `convert_charc_string_into_bufbyte_dynarr'.
2139         (convert_charc_string_into_malloced_string): New function; delete
2140         `convert_charc_string_into_malloced_string'.
2141
2142         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2143         `find_charsets_in_emchar_string'.
2144         (charc_string_displayed_columns): New prototype; delete
2145         `emchar_string_displayed_columns'.
2146         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2147         `convert_charc_string_into_bufbyte_dynarr'.
2148         (convert_charc_string_into_malloced_string): New prototype; delete
2149         `convert_charc_string_into_malloced_string'.
2150
2151 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2154
2155 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2156
2157         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2158
2159         * char-ucs.h: Use <short> for <Charset_ID>.
2160
2161         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2162         <Charset_ID>.
2163
2164 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2165
2166         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2167         to 0.16.
2168
2169 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170
2171         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2172         variable.
2173         (Qmorohashi_daikanwa): New variable.
2174         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2175         for `morohashi-daikanwa' attribute.
2176         (Fget_char_attribute): Likewise.
2177         (Fput_char_attribute): Likewise.
2178         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2179         has the same value of `ideograph-daikanwa'.
2180         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2181         (vars_of_mule_charset): Setup
2182         `Vcharacter_morohashi_daikanwa_table'.
2183
2184 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185
2186         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2187         attributes.
2188         (add_charset_to_list_mapper): Add `key' instead of
2189         `XCHARSET_NAME (value)' to return aliases.
2190
2191 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2192
2193         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2194         variable.
2195         (Vcharacter_ideographic_strokes_table): New variable.
2196         (Qideographic_radical): New variable.
2197         (Qideographic_strokes): New variable.
2198         (Fchar_attribute_alist): Use
2199         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2200         attribute; use `Vcharacter_ideographic_strokes_table' for
2201         `ideographic-strokes' attribute.
2202         (Fget_char_attribute): Likewise.
2203         (Fput_char_attribute): Likewise.
2204         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2205         `ideographic-strokes'.
2206         (vars_of_mule_charset): Setup
2207         `Vcharacter_ideographic_radical_table' and
2208         `Vcharacter_ideographic_strokes_table'.
2209
2210 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2211
2212         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2213         (Qtotal_strokes): New variable.
2214         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2215         `total-strokes' attribute.
2216         (Fget_char_attribute): Likewise.
2217         (Fput_char_attribute): Likewise.
2218         (syms_of_mule_charset): Add new symbol `total-strokes'.
2219         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2220
2221 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2222
2223         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2224         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2225         are found.
2226         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2227         `->decomposition' attribute.
2228         (Fput_char_attribute): Likewise.
2229         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2230
2231 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2232
2233         * mule-charset.c (decoding_table_check_elements): New function.
2234         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2235
2236 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2237
2238         * mule-charset.c (Fset_charset_mapping_table): Use
2239         `put_char_ccs_code_point'.
2240
2241 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * mule-charset.c (decoding_table_put_char): New inline function.
2244         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2245
2246 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2249         (XCHARSET_BYTE_SIZE): New macro.
2250         (decoding_table_remove_char): New inline function.
2251         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2252         `decoding_table_remove_char'.
2253         (remove_char_ccs): Use `decoding_table_remove_char'.
2254         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2255
2256 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * mule-charset.c (Vcharacter_name_table): New variable.
2259         (Qname): New variable.
2260         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2261         attribute.
2262         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2263         `Vcharacter_name_table' for `name' attribute.
2264         (Fremove_char_attribute): Use function `remove_char_ccs'.
2265         (put_char_ccs_code_point): New function.
2266         (remove_char_ccs): New function.
2267         (syms_of_mule_charset): Add new symbol `name'.
2268         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2269
2270 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271
2272         * mule-charset.c (make_byte_table): Add new argument `older'.
2273         (make_char_id_table): Likewise.
2274         (copy_char_id_table): Comment out because it is not used.
2275         (put_char_id_table): Modify for `make_byte_table'.
2276         (Fput_char_attribute): Make encoding_table as older object;
2277         inherit older bit of `Vcharacter_composition_table'.
2278         (mark_charset): Don't mark `cs->encoding_table'.
2279         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2280         normal object; make `Vcharacter_composition_table' as an older
2281         object; delete staticpro for `Vcharacter_composition_table'; make
2282         `Vcharacter_variant_table' as a normal object.
2283
2284         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2285         (mark_object): Don't check older object in UTF-2000.
2286
2287         * lrecord.h (struct lrecord_header): Add new member `older' in
2288         UTF-2000.
2289         (set_lheader_implementation): Setup `SLI_header->older' in
2290         UTF-2000.
2291         (set_lheader_older_implementation): New macro in UTF-2000.
2292         (OLDER_RECORD_P): New macro in UTF-2000.
2293         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2294         (alloc_older_lcrecord): New prototype in UTF-2000.
2295         (alloc_older_lcrecord_type): New macro in UTF-2000.
2296
2297 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2298
2299         * mule-charset.c (byte_table_description): Use
2300         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2301         (char_id_table_description): Delete bogus `, 1'.
2302         (Fget_char_attribute): Refer encoding_table of each coded-charset
2303         to get value of coded-charset attribute of a character.
2304         (Fput_char_attribute): Use `make_older_vector' instead of
2305         `make_vector'; use encoding_table of each coded-charset to store
2306         value of coded-charset attribute of a character.
2307         (Fremove_char_attribute): Use encoding_table of each coded-charset
2308         to store value of coded-charset attribute of a character.
2309         (mark_charset): Mark `cs->encoding_table'; don't mark
2310         `cs->decoding_table'.
2311         (charset_description): Add description of new member
2312         `encoding_table'.
2313         (make_charset): Initialize `encoding_table'.
2314
2315         * char-ucs.h (struct Lisp_Charset): Add new member
2316         `encoding_table'.
2317         (CHARSET_ENCODING_TABLE): New macro.
2318         (XCHARSET_ENCODING_TABLE): New macro.
2319         (charset_code_point): New implementation.
2320         (encode_char_1): Likewise.
2321
2322         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2323         (disksave_object_finalization_1): Call finalizers of
2324         `all_older_lcrecords' in UTF-2000.
2325         (make_older_vector): New function in UTF-2000.
2326         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2327         UTF-2000.
2328
2329         * lisp.h (make_older_vector): New prototype in UTF-2000.
2330
2331 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332
2333         * lrecord.h (enum lrecord_type): Rename
2334         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2335
2336         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2337         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2338         `get_char_code_table'.
2339
2340         * mule-charset.c (mark_char_id_table): Renamed from
2341         `mark_char_code_table'.
2342         (char_id_table_equal): Renamed from `char_code_table_equal'.
2343         (char_id_table_hash): Renamed from `char_code_table_hash'.
2344         (make_char_id_table): Renamed from `make_char_code_table'.
2345         (copy_char_id_table): Renamed from `copy_char_code_table'.
2346         (get_char_id_table): Renamed from `get_char_code_table'.
2347         (put_char_id_table): Renamed from `put_char_code_table'.
2348         (to_char_id): Renamed from `to_char_code'.
2349
2350         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2351         `Lisp_Char_Code_Table'.
2352         (char_id_table): Renamed from `char_code_table'.
2353         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2354         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2355         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2356         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2357         (get_char_id_table): Renamed from `get_char_code_table'.
2358
2359 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360
2361         * lrecord.h (enum lrecord_type): Rename
2362         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2363
2364         * mule-charset.c (mark_byte_table): Renamed from
2365         `mark_char_byte_table'.
2366         (byte_table_equal): Renamed from `char_byte_table_equal'.
2367         (byte_table_hash): Renamed from `byte_table_hash'.
2368         (make_byte_table): Renamed from `make_byte_table'.
2369         (copy_byte_table): Renamed from `copy_char_byte_table'.
2370
2371         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2372         `Lisp_Char_Byte_Table'.
2373         (byte_table): Renamed from `char_byte_table'.
2374         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2375         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2376         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2377         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2378
2379 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2380
2381         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2382         (dfc_convert_to_internal_format): Likewise.
2383         
2384         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2385         * text-coding.c (Fcoding_system_alias_p): New function.
2386         * text-coding.c (Fcoding_system_aliasee): New function.
2387         * text-coding.c (append_suffix_to_symbol): New function.
2388         * text-coding.c (dangling_coding_system_alias_p): New function.
2389         * text-coding.c (Ffind_coding_system):
2390         * text-coding.c (Fcopy_coding_system):
2391         * text-coding.c (encode_coding_no_conversion):
2392         * text-coding.c (syms_of_file_coding):
2393         * text-coding.c (vars_of_file_coding):
2394         Rewrite coding system alias code.
2395         Allow nested aliases, like symbolic links.
2396         Allow redefinition of coding system aliases.
2397         Prevent existence of dangling coding system aliases.
2398         Eliminate convert_to_external_format.
2399         Eliminate convert_to_internal_format.
2400         
2401         * text-coding.c: Change enum eol_type to eol_type_t.
2402
2403 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2404
2405         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2406         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2407
2408         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2409         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2410
2411 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2412
2413         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2414         `ideograph-daikanwa'.
2415
2416         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2417         (Vcharset_ucs_bmp): Likewise.
2418         (Vcharset_mojikyo): Add new extern variable definition.
2419         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2420         (Vcharset_latin_iso8859_3): Likewise.
2421         (Vcharset_latin_iso8859_4): Likewise.
2422         (Vcharset_latin_iso8859_9): Likewise.
2423         (Vcharset_latin_viscii_lower): Likewise.
2424         (Vcharset_latin_viscii_upper): Likewise.
2425         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2426         `mojikyo' code-point is used to decode.
2427         (encode_char_2): New function [to convert `mojikyo' code-point to
2428         Mojikyo font encoding].
2429         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2430         (breakup_char_1): Likewise.
2431         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2432
2433 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2434
2435         * text-coding.c (Fmake_coding_system): Add document about
2436         `disable-composition' property.
2437
2438 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2439
2440         * text-coding.c (Qdisable_composition): New variable; delete
2441         `Qcomposite'.
2442         (Fmake_coding_system): Add new property `disable-composite';
2443         delete property `composite'.
2444         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2445         instead of `!CODING_SYSTEM_COMPOSITE'.
2446         (syms_of_file_coding): Add new symbol `disable-composition';
2447         delete symbol `composite'.
2448
2449         * file-coding.h (struct Lisp_Coding_System): Add
2450         `disable_composition'; delete `enable_composition'.
2451         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2452         `CODING_SYSTEM_COMPOSITE'.
2453         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2454         `XCODING_SYSTEM_COMPOSITE'.
2455
2456 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2457
2458         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2459         to 0.15.
2460
2461 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462
2463         * text-coding.c (Qcomposite): New variable.
2464         (Fmake_coding_system): Add new property `composite'.
2465         (struct decoding_stream): Add `combined_char_count',
2466         `combined_chars' and `combining_table' in UTF-2000.
2467         (COMPOSE_FLUSH_CHARS): New macro.
2468         (COMPOSE_ADD_CHAR): New macro.
2469         (reset_decoding_stream): Reset `str->combined_char_count' and
2470         `str->combining_table' in UTF-2000.
2471         (decode_coding_iso2022): Modify for character-decomposition.
2472         (syms_of_file_coding): Add new symbol `composite'.
2473
2474 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2475
2476         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2477         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2478         of `Vcharacter_composition_table' if `->decomposition' property
2479         has only 1 element.
2480         (Qlatin_tcvn5712): New variable.
2481         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2482         (complex_vars_of_mule_charset): Add new coded-charset
2483         `latin-tcvn5712'.
2484
2485         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2486
2487 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * file-coding.h (struct Lisp_Coding_System): Add
2490         `enable_composition'.
2491         (CODING_SYSTEM_COMPOSITE): New macro.
2492         (XCODING_SYSTEM_COMPOSITE): New macro.
2493
2494 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2495
2496         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2497
2498 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2499
2500         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2501         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2502
2503 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2504
2505         * mule-charset.c (Vcharset_mojikyo): New variable.
2506         (Fdefine_char): Don't use coded-charset which does not have
2507         non-builtin character range to allocate character-id.
2508         (Qmojikyo): New variable.
2509         (syms_of_mule_charset): Add new symbol `mojikyo'.
2510         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2511
2512         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2513         (LEADING_BYTE_MOJIKYO): New macro.
2514         (MIN_CHAR_MOJIKYO): New macro.
2515         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2516         (MAX_CHAR_MOJIKYO): New macro.
2517
2518 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2519
2520         * mule-charset.c (remove_char_attribute): Fixed.
2521
2522 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2523
2524         * mule-charset.c (remove_char_attribute): New function.
2525         (Fremove_char_attribute): New function.
2526         (encode_builtin_char_1): Comment out builtin-support for
2527         greek-iso8859-7 and cyrillic-iso8859-5.
2528         (Fdecode_char): Check `code' is an integer.
2529         (syms_of_mule_charset): Add `remove-char-attribute'.
2530         (MIN_CHAR_GREEK): Deleted.
2531         (MAX_CHAR_GREEK): Likewise.
2532         (MIN_CHAR_CYRILLIC): Likewise.
2533         (MAX_CHAR_CYRILLIC): Likewise.
2534         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2535         MAX_CHAR_GREEK for `greek-iso8859-7'.
2536
2537         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2538         (MAX_CHAR_GREEK): Likewise.
2539         (MIN_CHAR_CYRILLIC): Likewise.
2540         (MAX_CHAR_CYRILLIC): Likewise.
2541
2542 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2543
2544         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2545         format is used without `ucs' property.
2546         (Fdecode_char): Fix problem with GR representation.
2547         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2548         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2549
2550 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2551
2552         * mule-charset.c (make_builtin_char): New function.
2553         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2554         (Fset_charset_mapping_table): Modify for new representation of
2555         code-point.
2556         (Fdecode_char): New function.
2557         (syms_of_mule_charset): Add new builtin function `decode-char' in
2558         UTF-2000.
2559
2560         * char-ucs.h (make_builtin_char): New prototype.
2561         (DECODE_CHAR): New inline function.
2562         (MAKE_CHAR): Use `DECODE_CHAR'.
2563
2564 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2565
2566         * text-coding.c (parse_charset_conversion_specs): Use
2567         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2568         `XCHARSET_TYPE'.
2569         (iso2022_designate): Likewise.
2570
2571         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2572         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2573
2574         * mule-charset.c (Vcharset_ucs): New variable.
2575         (print_charset): Change design; use `CHARSET_CHARS' and
2576         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2577         (make_charset): Change signature to specify `chars' and
2578         `dimension' instead of `type'.
2579         (range_charset_code_point): Modify for 256^n-set.
2580         (encode_builtin_char_1): Encode as `ucs' in default.
2581         (Fmake_charset): Modify for `make_charset'.
2582         (Fmake_reverse_direction_charset): Likewise.
2583         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2584         UTF-2000.
2585         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2586         for `make_charset'.
2587
2588         * char-ucs.h (Vcharset_ucs): New variable.
2589         (LEADING_BYTE_UCS): New macro.
2590         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2591         and `chars' to `unsigned short' from `unsigned int'.
2592         (CHARSET_TYPE): Deleted.
2593         (XCHARSET_TYPE): Deleted.
2594
2595 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2596
2597         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2598
2599         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2600         (ENCODE_CHAR): New macro.
2601
2602 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2603
2604         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2605         to 0.14 (Kawachi-Katakami).
2606
2607 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2608
2609         * text-coding.c (char_encode_shift_jis): Modify for
2610         `charset_code_point'.
2611         (char_encode_iso2022): Likewise.
2612
2613         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2614         (integer) instead of list of <Lisp_Object>s (integers) as the
2615         format of code-point of a coded-charset.
2616         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2617         (encode_builtin_char_1): New function; delete
2618         `split_builtin_char'.
2619         (charset_code_point): Return <int> instead of <Lisp_Object>.
2620         (Fsplit_char): Don't use `SPLIT_CHAR'.
2621
2622         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2623         prototype for `split_builtin_char'.
2624         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2625         (charset_code_point): Likewise.
2626         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2627         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2628
2629 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2630
2631         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2632         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2633
2634 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2635
2636         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2637
2638         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2639         (MAX_CHAR_OBS_94x94): Deleted.
2640
2641 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2642
2643         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2644
2645         * char-ucs.h (MAX_CHAR_BMP): New macro.
2646
2647 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2648
2649         * text-coding.c: Sync with r21-2-24.
2650
2651 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2652
2653         * file-coding.c: Modify for UTF-2000.
2654
2655 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2656
2657         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2658         to 0.13 (Takaida).
2659
2660 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2661
2662         * mule-charset.c (split_builtin_char): Delete builtin support for
2663         `katakana-jisx0201'.
2664         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2665         BMP area in builtin representation.
2666
2667         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2668         `Vcharset_katakana_jisx0201'.
2669
2670 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2671
2672         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2673         (Qisolated): New variable.
2674         (Qinitial): New variable.
2675         (Qmedial): New variable.
2676         (Qfinal): New variable.
2677         (Qvertical): New variable.
2678         (Qsmall): New variable.
2679         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2680         `Qvertical' and `Qsmall'.
2681         (Qmojikyo_pj_[1 .. 21]): New variable.
2682         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2683         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2684         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2685         .. 21]'.
2686
2687 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2688
2689         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2690         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2691         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2692
2693 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2694
2695         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2696         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2697         BMP.
2698         (Qjapanese_jisx0208_1990): New variable.
2699         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2700         (complex_vars_of_mule_charset): Add new coded-charset
2701         `japanese-jisx0208-1990'.
2702
2703         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2704         (MIN_CHAR_JIS_X0208_1990): New macro.
2705         (MAX_CHAR_JIS_X0208_1990): New macro.
2706
2707 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2708
2709         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2710         coded-charset is not found.
2711
2712 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2713
2714         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2715         (Fdefine_char): Use `Fmake_char'.
2716
2717 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2718
2719         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2720         (Vcharset_hiragana_jisx0208): Deleted.
2721         (Vcharset_katakana_jisx0208): Deleted.
2722         (Qideograph_daikanwa): New variable.
2723         (Qhiragana_jisx0208): Deleted.
2724         (Qkatakana_jisx0208): Deleted.
2725         (split_builtin_char): Split `ideograph-daikanwa'.
2726         (Fsplit_char): New implementation for UTF-2000.
2727         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2728         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2729         (complex_vars_of_mule_charset): Add new coded-charset
2730         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2731         `katakana-jisx0208'.
2732
2733         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2734         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2735         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2736         (MIN_CHAR_DAIKANWA): New macro.
2737         (MAX_CHAR_DAIKANWA): New macro.
2738
2739 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2740
2741         * data.c (Fstring_to_number): Don't recognize floating point if
2742         base is not 10.
2743
2744 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2745
2746         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2747
2748 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2749
2750         * mule-charset.c (Qsquare): New variable.
2751         (to_char_code): Add `Qsquare'.
2752         (syms_of_mule_charset): Add new symbol `square'.
2753
2754 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2755
2756         * mule-charset.c (Qcircle): New variable.
2757         (to_char_code): Add `Qcircle'.
2758         (syms_of_mule_charset): Add new symbol `circle'.
2759
2760 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2761
2762         * mule-charset.c (Qfont): New variable.
2763         (to_char_code): Add `Qfont'.
2764         (syms_of_mule_charset): Add new symbol `font'.
2765
2766 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2767
2768         * mule-charset.c (Qsub): New variable.
2769         (to_char_code): Add `Qsub'.
2770         (syms_of_mule_charset): Add new symbol `sub'.
2771
2772 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2773
2774         * mule-charset.c (Fput_char_attribute): Convert each element of
2775         VALUE to GL position if ATTRIBUTE is a GR-set,
2776
2777 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2778
2779         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2780         coded-charset is a GR-set.
2781
2782 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2783
2784         * mule-charset.c (Fput_char_attribute): Check each element of
2785         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2786
2787 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2788
2789         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2790         UTF-2000.
2791         (Qethiopic_ucs): New variable in UTF-2000.
2792         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2793         (complex_vars_of_mule_charset): Add new coded-charset
2794         `ethiopic-ucs' in UTF-2000.
2795
2796         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2797         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2798         9)'.
2799         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2800         10)'.
2801         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2802
2803 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2804
2805         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2806         `ascii'.
2807
2808 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2809
2810         * mule-charset.c (Vcharacter_variant_table): New variable.
2811         (Q_ucs): New variable.
2812         (Fchar_variants): New function.
2813         (Fput_char_attribute): Register `->ucs' value to
2814         `Vcharacter_variant_table'.
2815         (syms_of_mule_charset): Add new function `char-variants' and new
2816         symbol `->ucs'.
2817         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2818
2819 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2820
2821         * mule-charset.c (get_char_code_table): Allow negative character
2822         code.
2823         (put_char_code_table): Likewise.
2824         (Vcharacter_composition_table): New variable.
2825         (Q_decomposition): New variable.
2826         (Qwide): New variable.
2827         (Qnarrow): New variable.
2828         (Qcompat): New variable.
2829         (QnoBreak): New variable.
2830         (Qsuper): New variable.
2831         (Qfraction): New variable.
2832         (to_char_code): New function.
2833         (Fget_composite_char): New function.
2834         (Fput_char_attribute): Register `->decomposition' value to
2835         `Vcharacter_composition_table'.
2836         (syms_of_mule_charset): Add new function `get-composite-char', new
2837         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2838         `super' and `fraction'.
2839         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2840
2841 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2842
2843         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2844         character; copy the return value.
2845
2846 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2847
2848         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2849
2850         * mule-charset.c (range_charset_code_point): Must use make_int.
2851         (split_builtin_char): New function.
2852
2853 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2854
2855         * mule-charset.c (char_byte_table): Change name from
2856         "char-code-table" to "char-byte-table".
2857         (mark_char_code_table): New function.
2858         (char_code_table_equal): New function.
2859         (char_code_table_hash): New function.
2860         (char_code_table_description): New constant.
2861         (char_code_table): New type.
2862         (make_char_code_table): New function.
2863         (copy_char_code_table): New function.
2864         (get_char_code_table): Modify for `char_code_table' type.
2865         (put_char_code_table): Likewise.
2866         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2867         (Kashiwara).
2868
2869         * char-ucs.h (char_code_table): New type.
2870         (XCHAR_CODE_TABLE): New macro.
2871         (XSETCHAR_CODE_TABLE): New macro.
2872         (CHAR_CODE_TABLE_P): New macro.
2873         (GC_CHAR_CODE_TABLE_P): New macro.
2874         (struct Lisp_Char_Code_Table): New structure.
2875
2876 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2877
2878         * mule-charset.c (Fmake_charset): Setup byte_offset for
2879         {94|96}^n-set.
2880
2881 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2882
2883         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2884         character.
2885
2886 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2887
2888         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2889         is found.
2890
2891 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2892
2893         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2894         charset, it is regarded as a charset.
2895         (put_char_attribute): New function in UTF-2000.
2896         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2897         charset, mapping-table of the charset is modified.
2898         (Fdefine_char): New function in UTF-2000.
2899         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2900         `Fput_char_attribute'.
2901         (syms_of_mule_charset): Add new function `define-char' and new
2902         symbol `ucs' in UTF-2000.
2903         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2904
2905 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2906
2907         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2908         non-UTF-2000 configuration.
2909
2910 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2911
2912         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2913         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2914
2915         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2916         deleted.
2917         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2918         (Fset_charset_mapping_table): Likewise.
2919
2920         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2921         (CHARSET_ENCODING_TABLE): Delete.
2922         (XCHARSET_ENCODING_TABLE): Delete.
2923         (charset_code_point): New interface.
2924
2925 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2926
2927         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2928         instead of `charset_get_byte1' and `charset_get_byte2'.
2929
2930         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2931         (charset_get_byte2): Deleted.
2932
2933 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2934
2935         * char-ucs.h (SPLIT_CHAR): New inline function.
2936         (breakup_char_1): Use `SPLIT_CHAR'.
2937
2938         * mule-charset.c (range_charset_code_point): New function.
2939         (charset_code_point): New function.
2940
2941         * char-ucs.h (range_charset_code_point): New interface.
2942         (breakup_char_1): Use `range_charset_code_point'.
2943
2944 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2945
2946         * mule-charset.c (Fmake_charset): Delete unused local variable
2947         `code_offset'.
2948
2949         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2950         (breakup_char_1): Find a charset and code-point in
2951         `Vcharacter_attribute_table'.
2952
2953 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2954
2955         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2956         to 0.10 (Yao).
2957
2958 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2959
2960         * mule-charset.c (Vcharacter_attribute_table): New variable.
2961         (Fchar_attribute_alist): New function.
2962         (Fget_char_attribute): New function.
2963         (Fput_char_attribute): New function.
2964         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2965         too.
2966         (syms_of_mule_charset): Add new function `char-attribute-alist',
2967         `get-char-attribute' and `put-char-attribute'.
2968         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2969
2970 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2971
2972         * mule-charset.c (Fmake_charset): Just use
2973         `get_unallocated_leading_byte'.
2974
2975         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2976         sets; don't use final-byte based number for private sets.
2977
2978 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2979
2980         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2981         integer.
2982
2983 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2984
2985         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2986         to 0.9.
2987
2988 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2989
2990         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2991         of `CHAR_LEADING_BYTE' in UTF-2000.
2992
2993         * insdel.c (find_charsets_in_bufbyte_string): Use
2994         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2995         (find_charsets_in_emchar_string): Likewise.
2996
2997         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2998         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2999
3000         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3001         (CHAR_CHARSET_ID): New macro.
3002
3003 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3004
3005         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3006         charset-id - MIN_LEADING_BYTE.
3007         (put_char_table): Likewise.
3008
3009 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3010
3011         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3012         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3013         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3014         (CHARSET_ID_OFFSET): New macro.
3015         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3016         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3017         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3018         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3019         4).
3020         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3021         5).
3022         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3023         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3024         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3025         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3026         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3027
3028 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3029
3030         * mule-charset.c (next_allocated_leading_byte): New variable in
3031         UTF-2000.
3032         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3033         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3034         (get_unallocated_leading_byte): Simply use
3035         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3036         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3037         UTF-2000.
3038
3039         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3040         (MAX_LEADING_BYTE_PRIVATE): New macro.
3041         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3042         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3043
3044 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3045
3046         * mule-charset.c (Fmake_charset): Allocate final-byte based
3047         charset-id for 94-set, 96-set and 94x94-set.
3048
3049 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3050
3051         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3052         ambiguous `else'.
3053         (Fmake_charset): Likewise.
3054         (complex_vars_of_mule_charset): Modify the font registry of
3055         `ucs-bmp' not to match `Ethiopic-Unicode'.
3056
3057 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3058
3059         * mule-charset.c (complex_vars_of_mule_charset): Add font
3060         registory of `ucs-bmp'.
3061
3062 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3063
3064         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3065         coded-charsets in `default-coded-charset-priority-list' when
3066         breaking up a character.
3067
3068         * mule-charset.c (Vcharset_latin_viscii): New variable.
3069         (Qlatin_viscii): New variable.
3070         (make_charset): Don't use `decoding_table'.
3071         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3072         byte_offset.
3073         (Fset_charset_mapping_table): New implementation.
3074         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3075         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3076         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3077         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3078         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3079         charset `latin_viscii'.
3080
3081         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3082         (CHARSET_TYPE_94X94): Change to 1 from 2.
3083         (CHARSET_TYPE_96): Change to 2 from 1.
3084         (CHARSET_TYPE_128): New macro.
3085         (CHARSET_TYPE_128X128): Change to 5 from 4.
3086         (CHARSET_TYPE_256): New macro.
3087         (CHARSET_TYPE_256X256): Change to 7 from 5.
3088         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3089
3090 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3091
3092         * text-coding.c (char_encode_shift_jis): Refer
3093         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3094         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3095
3096         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3097         (char_byte_table_equal): New function in UTF-2000.
3098         (char_byte_table_hash): New function in UTF-2000.
3099         (char_byte_table_description): New constant in UTF-2000.
3100         (char_byte_table): New type in UTF-2000.
3101         (make_char_byte_table): New function in UTF-2000.
3102         (copy_char_byte_table): New function in UTF-2000.
3103         (make_char_code_table): New macro in UTF-2000.
3104         (get_char_code_table): New function in UTF-2000.
3105         (put_char_code_table): New function in UTF-2000.
3106         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3107         (charset_description): Add setting in UTF-2000.
3108         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3109         `CHARSET_TO_BYTE1_TABLE(cs)'.
3110         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3111         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3112         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3113         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3114         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3115         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3116         `CHARSET_TO_BYTE2_TABLE(cs)'.
3117
3118         * char-ucs.h (char_byte_table): New type.
3119         (XCHAR_BYTE_TABLE): New macro.
3120         (XSETCHAR_BYTE_TABLE): New macro.
3121         (CHAR_BYTE_TABLE_P): New macro.
3122         (GC_CHAR_BYTE_TABLE_P): New macro.
3123         (struct Lisp_Char_Byte_Table): New structure.
3124         (get_char_code_table): New interface.
3125         (Emchar_to_byte_table): Deleted.
3126         (get_byte_from_character_table): Deleted.
3127         (struct Lisp_Charset): Add `encoding_table'; delete
3128         `to_byte1_table' and `to_byte2_table'.
3129         (CHARSET_ENCODING_TABLE): New macro.
3130         (CHARSET_TO_BYTE1_TABLE): Deleted.
3131         (CHARSET_TO_BYTE2_TABLE): Deleted.
3132         (XCHARSET_ENCODING_TABLE): New macro.
3133         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3134         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3135
3136 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3137
3138         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3139         `vietnamese-viscii-*'.
3140
3141 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3142
3143         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3144         (Qvietnamese_viscii_upper): New variable.
3145         (Fdefine_charset_alias): New function.
3146         (syms_of_mule_charset): Add new function `define-charset-alias'.
3147         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3148         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3149         `latin-viscii-*'.
3150
3151 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3152
3153         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3154         (MAX_CHAR_OBS_94x94): New macro.
3155         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3156         for 94x94 sets.
3157
3158         * mule-charset.c (put_byte_from_character_table): Change unit size
3159         from 128 to 256.
3160         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3161         not defined.
3162         (Fmake_reverse_direction_charset): Modify dummy argument of
3163         `make_charset' for non-UTF-2000 environment.
3164
3165 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3166
3167         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3168
3169         * mule-charset.c (destroy_byte_from_character_table): New macro.
3170         (latin_jisx0201_to_ucs): Deleted.
3171         (latin_iso8859_2_to_ucs): Deleted.
3172         (latin_iso8859_3_to_ucs): Deleted.
3173         (latin_iso8859_4_to_ucs): Deleted.
3174         (latin_iso8859_9_to_ucs): Deleted.
3175         (latin_viscii_lower_to_ucs): Deleted.
3176         (latin_viscii_upper_to_ucs): Deleted.
3177         (mark_charset): Mark `cs->decoding_table'.
3178         (Fcharset_mapping_table): Fix DOC-string.
3179         (Fset_charset_mapping_table): New function.
3180         (syms_of_mule_charset): Add nwe function
3181         `set-charset-mapping-table'.
3182         (complex_vars_of_mule_charset): Don't setup and use
3183         `latin_*_to_ucs'.
3184
3185 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3186
3187         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3188         charset.
3189
3190 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3191
3192         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3193         (Vcharset_katakana_jisx0208): New variable.
3194         (Qhiragana_jisx0208): New variable.
3195         (Qkatakana_jisx0208): New variable.
3196         (make_charset): Add new argument `byte_offset'.
3197         (charset_get_byte1): Modify for new coded-charset definition; use
3198         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3199         `XCHARSET_BYTE_OFFSET'.
3200         (Fmake_charset): Modify for `make_charset'.
3201         (Fmake_reverse_direction_charset): Likewise.
3202         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3203         `katakana-jisx0208'.
3204         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3205         `.'  in font registry of charset `katakana-jisx0201',
3206         `latin-jisx0201', `vietnamese-viscii-lower' and
3207         `vietnamese-viscii-upper'; modify DOC-string of charset
3208         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3209         registry of charset `japanese-jisx0208' not to use font for JIS
3210         X0208:1990; add new charset `hiragana-jisx0208' and
3211         `katakana-jisx0208'.
3212
3213         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3214         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3215         (struct Lisp_Charset): Add `byte_offset'.
3216         (CHARSET_BYTE_OFFSET): New macro.
3217         (XCHARSET_UCS_MIN): New macro.
3218         (XCHARSET_UCS_MAX): New macro.
3219         (XCHARSET_CODE_OFFSET): New macro.
3220         (XCHARSET_BYTE_OFFSET): New macro.
3221         (MIN_CHAR_HIRAGANA): New macro.
3222         (MAX_CHAR_HIRAGANA): New macro.
3223         (MIN_CHAR_KATAKANA): New macro.
3224         (MAX_CHAR_KATAKANA): New macro.
3225         (MAKE_CHAR): Modify for new coded-charset definition; use
3226         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3227         `XCHARSET_BYTE_OFFSET'.
3228
3229 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3230
3231         * mule-charset.c (CHAR96): Deleted.
3232         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3233         <Lisp_Object>.
3234         (latin_iso8859_2_to_ucs): Likewise.
3235         (latin_iso8859_3_to_ucs): Likewise.
3236         (latin_iso8859_4_to_ucs): Likewise.
3237         (latin_iso8859_9_to_ucs): Likewise.
3238         (latin_viscii_lower_to_ucs): Likewise.
3239         (latin_viscii_upper_to_ucs): Likewise.
3240         (latin_tcvn5712_to_ucs): Commented out.
3241         (make_charset): Change type of argument `decoding_table' from
3242         <Emchar*> to <Lisp_Object> [vector of characters].
3243         (Fmake_charset): Modify for `make_charset'.
3244         (Fmake_reverse_direction_charset): Likewise.
3245         (Fcharset_mapping_table): New function in UTF-2000.
3246         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3247         UTF-2000.
3248         (complex_vars_of_mule_charset): Modify for type change of
3249         `*_to_ucs'; modify for `make_charset'.
3250
3251         * char-ucs.h (struct Lisp_Charset): Change type of
3252         `decoding_table' from <Emchar*> to <Lisp_Object>.
3253         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3254
3255 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3256
3257         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3258         error with non-UTF-2000-Mule.
3259
3260 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3261
3262         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3263         in lisp again].
3264         (Vcharset_chinese_cns11643_4): Likewise.
3265         (Vcharset_chinese_cns11643_5): Likewise.
3266         (Vcharset_chinese_cns11643_6): Likewise.
3267         (Vcharset_chinese_cns11643_7): Likewise.
3268         (Qchinese_cns11643_3): Likewise.
3269         (Qchinese_cns11643_4): Likewise.
3270         (Qchinese_cns11643_5): Likewise.
3271         (Qchinese_cns11643_6): Likewise.
3272         (Qchinese_cns11643_7): Likewise.
3273         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3274         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3275         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3276         (complex_vars_of_mule_charset): Likewise.
3277
3278 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3279
3280         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3281         96-set.
3282         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3283         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3284
3285 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3286
3287         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3288         0xFF60.
3289         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3290         (breakup_char_1): Likewise.
3291
3292         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3293         one of them includes the specified character.
3294
3295 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3296
3297         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3298
3299 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3300
3301         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3302
3303 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3304
3305         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3306         definition for non-UTF-2000 Mule.
3307         (latin_iso8859_3_to_ucs): Likewise.
3308         (latin_iso8859_4_to_ucs): Likewise.
3309         (latin_iso8859_9_to_ucs): Likewise.
3310         (latin_jisx0201_to_ucs): Likewise.
3311         (MIN_CHAR_THAI): Likewise.
3312         (MAX_CHAR_THAI): Likewise.
3313         (MIN_CHAR_GREEK): Likewise.
3314         (MAX_CHAR_GREEK): Likewise.
3315         (MIN_CHAR_HEBREW): Likewise.
3316         (MAX_CHAR_HEBREW): Likewise.
3317         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3318         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3319         (MIN_CHAR_CYRILLIC): Likewise.
3320         (MAX_CHAR_CYRILLIC): Likewise.
3321
3322 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3323
3324         * char-ucs.h (breakup_char_1): Use
3325         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3326         thai-tis620 and katakana-jisx0201 area.
3327
3328 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3329
3330         * char-ucs.h (breakup_char_1): Use
3331         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3332         area.
3333
3334         * text-coding.c (reset_encoding_stream): Fixed.
3335         (char_encode_ucs4): Delete `& 255'.
3336
3337         * char-ucs.h (breakup_char_1): Use
3338         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3339
3340 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3341
3342         * file-coding.c (Fmake_coding_system): Don't set up
3343         `codesys->fixed.size'.
3344         (encode_coding_no_conversion): Don't refer
3345         `str->codesys->fixed.size'.
3346
3347 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3348
3349         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3350         (latin_a_char_to_byte1): Deleted.
3351         (latin_a_char_to_byte2): Deleted.
3352
3353 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3354
3355         * mule-charset.c (make_charset): Add new argument `ucs_min',
3356         `ucs_max' and `code_offset'.
3357         (charset_get_byte1): New implementation [delete specific charset
3358         depended implementations].
3359         (Fmake_charset): Modify for `make_charset'.
3360         (Fmake_reverse_direction_charset): Likewise.
3361         (complex_vars_of_mule_charset): Likewise.
3362
3363         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3364         `code_offset'.
3365         (CHARSET_UCS_MIN): New macro.
3366         (CHARSET_UCS_MAX): New macro.
3367         (CHARSET_CODE_OFFSET): New macro.
3368         (MAKE_CHAR): Delete charset depended definitions [except
3369         katakana-jisx0201].
3370
3371 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3372
3373         * char-ucs.h (breakup_char_1): Use
3374         `Vdefault_coded_charset_priority_list' for C0-Controls,
3375         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3376
3377 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3378
3379         * char-ucs.h (charset_get_byte1): New function.
3380         (XCHARSET_GET_BYTE1): Deleted.
3381         (charset_get_byte2): New function.
3382         (XCHARSET_GET_BYTE2): Deleted.
3383         (Vdefault_coded_charset_priority_list): New external variable.
3384         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3385         `Vdefault_preferred_coded_charset_list'.
3386
3387         * mule-charset.c (charset_get_byte1): New function.
3388         (charset_get_byte2): New function.
3389         (Vdefault_coded_charset_priority_list): New variable.
3390         (vars_of_mule_charset): Add new variable
3391         `default-coded-charset-priority-list'.
3392
3393 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3394
3395         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3396         (XCHARSET_GET_BYTE2): New inline function.
3397         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3398         `XCHARSET_GET_BYTE2'.
3399
3400 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3401
3402         * mule-charset.c (make_charset): Initialize
3403         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3404         NULL if table is not defined.
3405
3406 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3407
3408         * text-coding.c (char_encode_shift_jis): Use
3409         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3410         `ucs_to_latin_jisx0201'.
3411
3412         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3413         (ucs_to_latin_iso8859_2): Deleted.
3414         (ucs_to_latin_iso8859_3): Deleted.
3415         (ucs_to_latin_iso8859_4): Deleted.
3416         (ucs_to_latin_iso8859_9): Deleted.
3417         (ucs_to_latin_viscii_lower): Deleted.
3418         (ucs_to_latin_viscii_upper): Deleted.
3419         (ucs_to_latin_tcvn5712): Deleted.
3420         (make_charset): Add new argument `decoding_table'; set up
3421         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3422         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3423         `decoding_table' is defined in UTF-2000.
3424         (Fmake_charset): Modify for `make_charset'.
3425         (Fmake_reverse_direction_charset): Likewise.
3426         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3427         and `GENERATE_96_SET'.
3428
3429         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3430         (ucs_to_latin_jisx0201): Deleted.
3431         (latin_iso8859_2_to_ucs): Deleted.
3432         (ucs_to_latin_iso8859_2): Deleted.
3433         (latin_iso8859_3_to_ucs): Deleted.
3434         (ucs_to_latin_iso8859_3): Deleted.
3435         (latin_iso8859_4_to_ucs): Deleted.
3436         (ucs_to_latin_iso8859_4): Deleted.
3437         (latin_iso8859_9_to_ucs): Deleted.
3438         (ucs_to_latin_iso8859_9): Deleted.
3439         (latin_viscii_lower_to_ucs): Deleted.
3440         (ucs_to_latin_viscii_lower): Deleted.
3441         (latin_viscii_upper_to_ucs): Deleted.
3442         (ucs_to_latin_viscii_upper): Deleted.
3443         (struct Lisp_Charset): Renamed `encoding_table' to
3444         `to_byte1_table'; add `to_byte2_table'.
3445         (CHARSET_DECODING_TABLE): New macro.
3446         (CHARSET_TO_BYTE1_TABLE): New macro.
3447         (CHARSET_TO_BYTE2_TABLE): New macro.
3448         (XCHARSET_DECODING_TABLE): New macro.
3449         (XCHARSET_TO_BYTE1_TABLE): New macro.
3450         (XCHARSET_TO_BYTE2_TABLE): New macro.
3451         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3452         tables.
3453         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3454         don't use `ucs_to_*' tables.
3455
3456 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3457
3458         * text-coding.c (Fmake_coding_system): Don't set up
3459         `codesys->fixed.size'.
3460         (encode_coding_no_conversion): Use `if' instead of `switch'.
3461
3462         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3463
3464 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3465
3466         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3467         (Fmake_charset): Modify for `make_charset'.
3468         (Fmake_reverse_direction_charset): Likewise.
3469         (complex_vars_of_mule_charset): Likewise.
3470
3471 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3472
3473         * text-coding.c (char_encode_shift_jis): Use table
3474         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3475
3476 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3477
3478         * text-coding.c (text_encode_generic): Use `if' instead of
3479         `switch'.
3480         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3481         decode JIS-Latin.
3482
3483 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3484
3485         * text-coding.c (encode_coding_sjis): Deleted.
3486         (char_encode_shift_jis): New function.
3487         (char_finish_shift_jis): New function.
3488         (reset_encoding_stream): Set up `encode_char' and `finish' for
3489         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3490         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3491         (char_encode_utf8): Treat `eol_type'.
3492
3493 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3494
3495         * file-coding.c (decode_coding_iso2022): Use
3496         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3497
3498 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3499
3500         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3501         to 0.7 (Hirano).
3502
3503 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3504
3505         * char-lb.h (CHAR_COLUMNS): New macro.
3506
3507 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3508
3509         * text-coding.c (char_encode_ucs4): New function.
3510         (char_finish_ucs4): New function.
3511         (encode_coding_ucs4): Deleted.
3512         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3513         (text_encode_generic): Delete local variable `charset' and `half'.
3514         (ucs_to_mule_table): Deleted.
3515         (mule_to_ucs_table): Deleted.
3516         (Fset_ucs_char): Deleted.
3517         (ucs_to_char): Deleted.
3518         (Fucs_char): Deleted.
3519         (Fset_char_ucs): Deleted.
3520         (Fchar_ucs): Deleted.
3521         (decode_ucs4): Deleted.
3522         (mule_char_to_ucs4): Deleted.
3523         (encode_ucs4): Deleted.
3524         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3525         (decode_coding_utf8): Likewise.
3526         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3527         (char_encode_iso2022): Fixed.
3528         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3529         `Fset_char_ucs' and `Fchar_ucs'.
3530         (complex_vars_of_file_coding): Don't initialize
3531         `ucs_to_mule_table'.
3532
3533         * objects-tty.c (tty_initialize_font_instance): Don't use
3534         `XCHARSET_COLUMNS'.
3535
3536         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3537         UTF-2000.
3538
3539         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3540         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3541
3542         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3543         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3544         (emchar_string_displayed_columns): Likewise.
3545
3546         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3547         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3548         (string_column_at_point): Likewise.
3549         (Fmove_to_column): Likewise.
3550
3551         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3552         `encoding_table' and `decoding_table'.
3553         (CHARSET_REP_BYTES): Deleted.
3554         (XCHARSET_REP_BYTES): Deleted.
3555         (XCHARSET_COLUMNS): Deleted.
3556         (CHAR_COLUMNS): New macro.
3557         (lookup_composite_char): Deleted unconditionally.
3558         (composite_char_string): Likewise.
3559
3560 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3561
3562         * char-ucs.h (Emchar_to_byte_table): New type.
3563         (get_byte_from_character_table): New function interface.
3564         (Vcharset_latin_jisx0201): New variable.
3565         (latin_jisx0201_to_ucs): New variable.
3566         (ucs_to_latin_jisx0201): New variable.
3567         (Vcharset_latin_iso8859_2): New variable.
3568         (latin_iso8859_2_to_ucs): New variable.
3569         (ucs_to_latin_iso8859_2): New variable.
3570         (Vcharset_latin_iso8859_3): New variable.
3571         (latin_iso8859_3_to_ucs): New variable.
3572         (ucs_to_latin_iso8859_3): New variable.
3573         (Vcharset_latin_iso8859_4): New variable.
3574         (latin_iso8859_4_to_ucs): New variable.
3575         (ucs_to_latin_iso8859_4): New variable.
3576         (Vcharset_latin_iso8859_9): New variable.
3577         (latin_iso8859_9_to_ucs): New variable.
3578         (ucs_to_latin_iso8859_9): New variable.
3579         (Vcharset_latin_viscii_lower): New variable.
3580         (latin_viscii_lower_to_ucs): New variable.
3581         (ucs_to_latin_viscii_lower): New variable.
3582         (Vcharset_latin_viscii_upper): New variable.
3583         (latin_viscii_upper_to_ucs): New variable.
3584         (ucs_to_latin_viscii_upper): New variable.
3585         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3586         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3587         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3588         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3589         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3590         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3591         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3592         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3593         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3594         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3595
3596         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3597         (Vcharset_latin_viscii_upper): New variable.
3598         (make_byte_from_character_table): New function.
3599         (put_byte_from_character_table): New function.
3600         (get_byte_from_character_table): New function.
3601         (CHAR96): New macro.
3602         (ucs_to_latin_jisx0201): New variable.
3603         (latin_jisx0201_to_ucs): New variable.
3604         (ucs_to_latin_iso8859_2): New variable.
3605         (latin_iso8859_2_to_ucs): New variable.
3606         (ucs_to_latin_iso8859_3): New variable.
3607         (latin_iso8859_3_to_ucs): New variable.
3608         (ucs_to_latin_iso8859_4): New variable.
3609         (latin_iso8859_4_to_ucs): New variable.
3610         (ucs_to_latin_iso8859_9): New variable.
3611         (latin_iso8859_9_to_ucs): New variable.
3612         (ucs_to_latin_viscii_lower): New variable.
3613         (latin_viscii_lower_to_ucs): New variable.
3614         (ucs_to_latin_viscii_upper): New variable.
3615         (latin_viscii_upper_to_ucs): New variable.
3616         (ucs_to_latin_tcvn5712): New variable.
3617         (latin_tcvn5712_to_ucs): New variable.
3618         (Qlatin_viscii_lower): New variable.
3619         (Qlatin_viscii_upper): New variable.
3620         (syms_of_mule_charset): Set up new symbol
3621         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3622         (complex_vars_of_mule_charset): Set up new charset
3623         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3624         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3625         `ucs_to_<CHARSET>' tables.
3626
3627 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3628
3629         * text-coding.c: New file.
3630
3631 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3632
3633         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3634
3635         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3636         (MAKE_CHAR): Modify for `ucs-bmp'.
3637         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3638         non-MULE characters of BMP.
3639
3640 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3641
3642         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3643         to 0.6.
3644
3645 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3646
3647         * lstream.h:
3648         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3649         - Include character.h for `CHAR_ASCII_P'.
3650
3651         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3652
3653         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3654         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3655
3656         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3657         (BYTE_C0_P): Likewise.
3658         (BYTE_C1_P): Likewise.
3659         (Lstream_get_emchar_1): Likewise.
3660         (Lstream_fput_emchar): Likewise.
3661         (Lstream_funget_emchar): Likewise.
3662         (copy_internal_to_external): Likewise.
3663         (copy_external_to_internal): Likewise.
3664
3665         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.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         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3675         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3676
3677         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3678         (BYTE_ASCII_P): Moved to mb-1byte.h.
3679
3680 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3681
3682         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3683
3684         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3685         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3686         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3687         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3688         (VALIDATE_CHARPTR_FORWARD): Likewise.
3689         (simple_charptr_emchar): Moved to mb-multibyte.h.
3690         (simple_set_charptr_emchar): Likewise.
3691         (simple_charptr_copy_char): Likewise.
3692         (non_ascii_charptr_emchar): Likewise.
3693         (non_ascii_set_charptr_emchar): Likewise.
3694         (non_ascii_charptr_copy_char): Likewise.
3695         (charptr_emchar): Moved to mb-*byte.h.
3696         (set_charptr_emchar): Likewise.
3697         (charptr_copy_char): Likewise.
3698
3699         * mb-1byte.h, mb-multibyte.h: New files.
3700
3701 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3702
3703         * mb-utf-8.h (MULTIBYTE): New macro.
3704         (MAX_EMCHAR_LEN): Moved from buffer.h.
3705         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3706
3707         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3708
3709         * mb-lb.h, multibyte.h: New files.
3710
3711         * char-1byte.h (Charset_ID): Moved from buffer.h.
3712         (MIN_LEADING_BYTE): Likewise.
3713         (LEADING_BYTE_ASCII): Likewise.
3714         (NUM_LEADING_BYTES): Likewise.
3715         (CHARSETP): Likewise.
3716         (CHARSET_BY_LEADING_BYTE): Likewise.
3717         (XCHARSET_LEADING_BYTE): Likewise.
3718         (XCHARSET_GRAPHIC): Likewise.
3719         (XCHARSET_COLUMNS): Likewise.
3720         (XCHARSET_DIMENSION): Likewise.
3721         (CHAR_CHARSET): Likewise.
3722         (CHAR_LEADING_BYTE): Likewise.
3723         (BREAKUP_CHAR): Likewise.
3724         (Vcharset_ascii): Likewise.
3725
3726         * buffer.h: Include multibyte.h unconditionally.
3727         (VALID_CHARPTR_P): Moved to multibyte.h.
3728         (ASSERT_VALID_CHARPTR): Likewise.
3729         (REAL_INC_CHARPTR): Likewise.
3730         (REAL_INC_CHARBYTIND): Likewise.
3731         (REAL_DEC_CHARPTR): Likewise.
3732         (INC_CHARPTR): Likewise.
3733         (INC_CHARBYTIND): Likewise.
3734         (DEC_CHARPTR): Likewise.
3735         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3736         (VALIDATE_CHARPTR_FORWARD): Likewise.
3737         (charptr_n_addr): Likewise.
3738         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3739         (simple_charptr_emchar): Moved to multibyte.h.
3740         (simple_set_charptr_emchar): Likewise.
3741         (simple_charptr_copy_char): Likewise.
3742         (non_ascii_charptr_emchar): Likewise.
3743         (non_ascii_set_charptr_emchar): Likewise.
3744         (non_ascii_charptr_copy_char): Likewise.
3745         (charptr_emchar): Likewise.
3746         (set_charptr_emchar): Likewise.
3747         (charptr_copy_char): Likewise.
3748         (charptr_emchar_n): Likewise.
3749         (Charset_ID): Moved to char-1byte.h.
3750         (Vcharset_ascii): Likewise.
3751         (CHAR_CHARSET): Likewise.
3752         (CHAR_LEADING_BYTE): Likewise.
3753         (LEADING_BYTE_ASCII): Likewise.
3754         (NUM_LEADING_BYTES): Likewise.
3755         (MIN_LEADING_BYTE): Likewise.
3756         (CHARSETP): Likewise.
3757         (CHARSET_BY_LEADING_BYTE): Likewise.
3758         (XCHARSET_LEADING_BYTE): Likewise.
3759         (XCHARSET_GRAPHIC): Likewise.
3760         (XCHARSET_COLUMNS): Likewise.
3761         (XCHARSET_DIMENSION): Likewise.
3762         (BREAKUP_CHAR): Likewise.
3763
3764 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3765
3766         * character.h: Add document about interface for characters.
3767
3768         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3769         (MAKE_CHAR): Delete comment about
3770         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3771         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3772         (BREAKUP_CHAR): Modify name of arguments.
3773         (CHAR_CHARSET): Modify name of argument.
3774
3775         * buffer.h: Delete document about Emchar accessors.
3776
3777 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3778
3779         * character.h (CHAR_INTP): Moved from buffer.h
3780         (CHAR_OR_CHAR_INTP): Likewise.
3781         (XCHAR_OR_CHAR_INT): Likewise.
3782         (CHECK_CHAR_COERCE_INT): Likewise.
3783
3784         * buffer.h (CHAR_INTP): Moved to character.h
3785         (CHAR_OR_CHAR_INTP): Likewise.
3786         (XCHAR_OR_CHAR_INT): Likewise.
3787         (CHECK_CHAR_COERCE_INT): Likewise.
3788
3789 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3790
3791         * character.h:
3792         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3793         - Include char-1byte.h, char-lb.h or char-ucs.h.
3794
3795         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3796
3797         * buffer.h: Include character unconditionally.
3798         (valid_char_p): Moved to char-*.h.
3799         (non_ascii_valid_char_p): Moved to char-lb.h.
3800
3801         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3802
3803 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3804
3805         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3806         in UTF-2000 because it is not ported yet and not to use
3807         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3808         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3809         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3810
3811         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3812         (CHAR_ASCII_P): Moved from character.h.
3813
3814         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3815         (CHAR_ASCII_P): Likewise.
3816         (CHAR_FIELD1_MASK): Deleted.
3817         (CHAR_FIELD2_MASK): Deleted.
3818         (CHAR_FIELD3_MASK): Deleted.
3819         (MAX_CHAR_BASIC_LATIN): New macro.
3820         (CHAR_FIELD1): Deleted.
3821         (CHAR_FIELD2_INTERNAL): Deleted.
3822         (CHAR_FIELD3_INTERNAL): Deleted.
3823         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3824         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3825         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3826         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3827         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3828         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3829         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3830         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3831         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3832         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3833         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3834         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3835         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3836         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3837         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3838         (MIN_CHAR_COMPOSITION): Deleted.
3839         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3840         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3841
3842 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3843
3844         * buffer.h: Include mb-utf-8.h in UTF-2000.
3845
3846         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3847
3848         * mb-utf-8.h: New file.
3849
3850 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3851
3852         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3853         instead of `int'.
3854
3855         * mule-charset.h, buffer.h (Charset_ID): New type.
3856
3857 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3858
3859         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3860         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3861         instead of `MULE_CHAR_PRIVATE_OFFSET',
3862         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3863         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3864         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3865
3866         * character.h (Vcharset_japanese_jisx0212): New variable
3867         definition.
3868
3869 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3870
3871         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3872         (charset_by_attributes): Delete array about direction.
3873         (latin_a_char_to_charset): New variable in UTF-2000.
3874         (latin_a_char_to_byte1): New variable in UTF-2000.
3875         (latin_a_char_to_byte2): New variable in UTF-2000.
3876         (Qucs_bmp): New variable.
3877         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3878         `Bufbyte'.
3879         (next_allocated_2_byte_leading_byte): Likewise.
3880         (non_ascii_set_charptr_emchar): Likewise.
3881         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3882         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3883         `charset_by_attributes'.
3884         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3885         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3886         and `CHARSET_BY_LEADING_BYTE'.
3887         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3888         `utf-2000-version' to `vars_of_mule_charset'.
3889         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3890         define `leading-code-private-11' in UTF-2000; move setting of
3891         `utf-2000-version' from `syms_of_mule_charset'.
3892         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3893         UTF-2000.
3894
3895         * character.h (Charset_ID): New type.
3896         (LEADING_BYTE_UCS_BMP): New macro.
3897         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3898         (CHARSET_ID_OFFSET_94): New macro.
3899         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3900         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3901         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3902         final-byte.
3903         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3904         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3905         (CHARSET_ID_OFFSET_96): New macro.
3906         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3907         CHARSET_ID_OFFSET_96 and final-byte.
3908         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3909         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3910         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3911         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3912         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3913         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3914         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3915         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3916         (LEADING_BYTE_THAI_TIS620): Likewise.
3917         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3918         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3919         (CHARSET_ID_OFFSET_94x94): New macro.
3920         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3921         CHARSET_ID_OFFSET_94x94 and final-byte.
3922         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3923         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3924         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3925         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3926         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3927         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3928         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3929         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3930         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3931         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3932         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3933         (CHARSET_TYPE_128X128): New macro.
3934         (CHARSET_TYPE_256X256): New macro.
3935         (XCHARSET_PRIVATE_P): Delete unconditionally.
3936         (charset_by_attributes): Delete array about direction.
3937         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3938         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3939         (MIN_CHAR_94): New macro.
3940         (MAX_CHAR_94): New macro.
3941         (MIN_CHAR_96): New macro.
3942         (MAX_CHAR_96): New macro.
3943         (MIN_CHAR_94x94): New macro.
3944         (MAX_CHAR_94x94): New macro.
3945         (MIN_CHAR_96x96): New macro.
3946         (MAX_CHAR_96x96): New macro.
3947         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3948         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3949         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3950         - 32)'.
3951         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3952         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3953         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3954         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3955         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3956         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3957         `XCHARSET_LEADING_BYTE' to make code-point.
3958         (latin_a_char_to_charset): New variable.
3959         (latin_a_char_to_byte1): New variable.
3960         (latin_a_char_to_byte2): New variable.
3961         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3962         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3963         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3964
3965         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3966         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3967         (find_charsets_in_emchar_string): Likewise.
3968         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3969
3970         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3971         `int'.
3972         (decode_coding_iso2022): Likewise.
3973
3974         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3975         of `unsigned char'.
3976
3977         * redisplay.c (redisplay_text_width_emchar_string): Use
3978         `Charset_ID' instead of `unsigned char'.
3979         (redisplay_frame_text_width_string): Likewise.
3980
3981         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3982         `unsigned char'.
3983
3984         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3985         instead of `unsigned char'.
3986         (face_cachel_charset_font_metric_info): Likewise.
3987
3988         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3989         (get_non_ascii_char_table_value): Likewise.
3990         (get_char_table): Likewise.
3991         (put_char_table): Likewise.
3992         (map_over_other_charset): Likewise.
3993         (map_char_table): Likewise.
3994
3995         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3996         instead of `unsigned char'.
3997
3998 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3999
4000         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4001         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4002
4003         * mule-charset.c (leading_code_private_11): Don't define in
4004         UTF-2000.
4005
4006         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4007         in UTF-2000 because it is not ported yet and not to use
4008         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4009
4010 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4011
4012         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4013
4014 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4015
4016         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4017         in UTF-2000.
4018
4019         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4020         of unsigned char to store leading-byte.
4021
4022         * chartab.c (get_non_ascii_char_table_value): Don't use
4023         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4024
4025         * file-coding.c (encode_coding_big5): Delete bogus implementation
4026         in UTF2000.
4027
4028         * character.h (LEADING_BYTE_*): Delete definition for
4029         non-UTF-2000.
4030         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4031         (LEADING_BYTE_PREFIX_P): Deleted.
4032         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4033         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4034         (BUFBYTE_LEADING_BYTE_P): Deleted.
4035         (CHARSET_PRIVATE_P): Deleted unconditionally.
4036         (rep_bytes_by_first_byte): Deleted unconditionally.
4037         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4038         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4039         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4040         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4041         (CHAR_FIELD2): Deleted.
4042         (CHAR_FIELD3): Deleted.
4043         (MAKE_CHAR): Delete definition for non-UTF-2000.
4044         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4045         (breakup_char_1): New implementation.
4046         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4047         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4048
4049 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4050
4051         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4052         condition.
4053
4054 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4055
4056         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4057         (CHARSET_PRIVATE_P): Likewise.
4058         (XCHARSET_PRIVATE_P): Likewise.
4059         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4060
4061         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4062         UTF2000.
4063         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4064
4065 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4066
4067         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4068         (NUM_LEADING_BYTES): Changed from 128 to 256.
4069         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4070         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4071         UTF2000.
4072         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4073
4074         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4075         UTF2000.
4076         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4077         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4078         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4079         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4080         (Qchinese_cns11643_3): New variable in UTF2000.
4081         (Qchinese_cns11643_4): New variable in UTF2000.
4082         (Qchinese_cns11643_5): New variable in UTF2000.
4083         (Qchinese_cns11643_6): New variable in UTF2000.
4084         (Qchinese_cns11643_7): New variable in UTF2000.
4085         (syms_of_mule_charset): Define `chinese-cns11643-3',
4086         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4087         and `chinese-cns11643-7' in UTF2000.
4088         (vars_of_mule_charset): Initialize
4089         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4090         + 1 in UTF2000.
4091         (complex_vars_of_mule_charset): Setup charset
4092         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4093         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4094
4095 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4096
4097         * mule-charset.c: Move setting for `leading-code-private-11' from
4098         `syms_of_mule_charset' to `vars_of_mule_charset'.
4099
4100 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4101
4102         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4103         and `NUM_LEADING_BYTES' in assert.
4104
4105 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4106
4107         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4108         instead of 128.
4109         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4110         `NUM_LEADING_BYTES' instead of 128.
4111
4112 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4113
4114         * mule-charset.h (charset_by_leading_byte): Use
4115         `NUM_LEADING_BYTES' instead of 128.
4116         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4117
4118         * mule-charset.c (charset_by_leading_byte): Use
4119         `NUM_LEADING_BYTES' instead of 128.
4120         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4121
4122         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4123         128.
4124
4125 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4126
4127         * mule-charset.c (syms_of_mule_charset): Update to
4128         0.4 (Shin-Imamiya).
4129
4130 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4131
4132         * file-coding.c (encode_coding_sjis): New implementation for
4133         UTF2000.  (decode_coding_sjis): Ditto.
4134
4135 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4136
4137         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4138         Don't define in UTF2000.
4139
4140         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4141         defined.
4142
4143         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4144         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4145         MULE.
4146
4147 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4148
4149         * config.h.in (CHAR_IS_UCS4): New macro.
4150
4151         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4152         conventional MULE representation.
4153         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4154
4155         * mule-charset.h: Reverted to original.
4156
4157         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4158         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4159         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4160
4161         * character.h: New file.
4162
4163         * file-coding.c (Fmake_coding_system): Set 1 to
4164         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4165         defined.
4166         (encode_coding_no_conversion): New implementation for UTF2000.
4167
4168         * file-coding.h (struct Lisp_Coding_System): Add new member
4169         `fixed.size'.
4170
4171 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4172
4173         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4174         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4175         (encode_coding_iso2022): New implementation for UTF2000.
4176
4177 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4178
4179         * mule-canna.c (c2mu): New implementation for UTF2000.
4180         (m2c): Likewise.
4181
4182 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4183
4184         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4185
4186 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4187
4188         * file-coding.c (reset_encoding_stream): Set 0 to
4189         `str->iso2022.current_char_boundary' in UTF2000.
4190         (encode_utf8): Don't define in UTF2000.
4191         (encode_coding_utf8): New implementation for UTF-8 representation
4192         of UTF2000.
4193         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4194
4195 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4198
4199         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4200         UTF2000.
4201         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4202
4203         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4204
4205         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4206         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4207         as UTF-8 in UTF2000.
4208         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4209         (non_ascii_valid_char_p): Don't define in UTF2000.
4210         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4211         (Lstream_get_emchar_1): Likewise.
4212         (utf-2000-version): New variable in UTF2000.
4213
4214         * lread.c (read_escape): Add new reader `u'.
4215
4216         * insdel.c (three_to_one_table): Don't define in UTF2000.
4217         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4218         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4219         UTF2000.
4220         (bytind_to_bufpos_func): Likewise.
4221         (buffer_mule_signal_inserted_region): Likewise.
4222         (vars_of_insdel): Don't initialize `three_to_one_table'.
4223         (init_buffer_text): Use `buf->text->mule_size' instead of
4224         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4225         UTF2000.
4226
4227         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4228         UTF-8 representation in UTF2000.
4229         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4230         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4231         (decode_coding_iso2022): Don't define local variable `lb' in
4232         UTF2000; don't use LEADING_BYTE in UTF2000; use
4233         `DECODE_ADD_UCS_CHAR' in UTF2000.
4234         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4235
4236         * config.h.in (UTF2000): New macro.
4237
4238         * buffer.h (struct buffer_text): Add new member `mule_size' and
4239         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4240         (valid_char_p): Return always 1 in UTF2000.
4241         (MAX_EMCHAR_LEN): 6 in UTF2000.
4242         (three_to_one_table): Don't define in UTF2000.
4243         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4244         UTF2000.
4245         (real_bytind_to_bufpos): Likewise.
4246
4247         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4248
4249 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4250
4251         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4252         representation change.
4253         (Vutf_2000_version): New variable.
4254         (leading_code_private_11): New variable.
4255         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4256         `leading-code-private-11'.
4257
4258         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4259         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4260         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4261         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4262         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4263         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4264         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4265         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4266         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4267         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4268         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4269         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4270         (MIN_CHAR_GREEK): New macro.
4271         (MAX_CHAR_GREEK): New macro.
4272         (MIN_CHAR_CYRILLIC): New macro.
4273         (MAX_CHAR_CYRILLIC): New macro.
4274         (MIN_CHAR_HEBREW): New macro.
4275         (MAX_CHAR_HEBREW): New macro.
4276         (MIN_CHAR_THAI): New macro.
4277         (MAX_CHAR_THAI): New macro.
4278         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4279         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4280         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4281         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4282         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4283         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4284         (CHAR_FIELD2): New inline function.
4285         (CHAR_FIELD3): New inline function.
4286         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4287         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4288         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4289         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4290         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4291         (MIN_CHAR_COMPOSITION): Likewise.
4292         (CHAR_LEADING_BYTE): Modified for character representation change.
4293         (MAKE_CHAR): Likewise.
4294
4295         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4296         (Vcharset_greek_iso8859_7): Likewise.
4297         (Vcharset_cyrillic_iso8859_5): Likewise.
4298         (Vcharset_hebrew_iso8859_8): Likewise.
4299         (Vcharset_thai_tis620): Likewise.
4300         (Vcharset_katakana_jisx0201): Likewise.
4301
4302 2001-02-08  Martin Buchholz <martin@xemacs.org>
4303
4304         * XEmacs 21.2.44 "Thalia" is released.
4305
4306 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4307
4308         Fixes crashes in kill-emacs on some systems.
4309         * process-unix.c (unix_kill_child_process):
4310         It's OK for kill() to fail with ESRCH.
4311
4312 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4313
4314         Contortions to make .gdbinit tricks work on most systems.
4315         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4316         * alloc.c (dbg_valmask): Make non-const.
4317         * alloc.c (dbg_typemask): Make non-const.
4318         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4319         * alloc.c (dbg_valbits): Make non-const.
4320         * alloc.c (dbg_gctypebits): Make non-const.
4321         * .gdbinit (decode_object): Make it work with AIX cc.
4322
4323 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4324
4325         * elhash.c (make_general_lisp_hash_table):
4326         Use simpler and more efficient calloc to clear entries.
4327
4328 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4329
4330         * window.c (window_scroll): Work around an AIX C compiler bug.
4331         Fixes 'scroll-up' does nothing problem with xlC.
4332
4333 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4334
4335         * .gdbinit: Remove obsolete comment.
4336
4337 2001-01-31  Mike Alexander  <mta@arbortext.com>
4338
4339         * select.c (Fown_selection_internal): Set owned_p for device
4340         method correctly.
4341
4342 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4343
4344         Port to g++ 2.97.
4345         "not" cannot be used as a macro name as it is an operator in C++
4346         * config.h.in: Stop #defining `not'.
4347         * chartab.c (check_category_char): not ==> not_p
4348         * chartab.h: Likewise.
4349         * regex.c (re_match_2_internal): Likewise.
4350
4351 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4352
4353         * lisp-disunion.h: Fix up comments.
4354
4355 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4356
4357         * keymap.c (define_key_check_and_coerce_keysym):
4358         (syms_of_keymap):
4359         Support mouse-6 and mouse-7 bindings in the obvious way.
4360
4361 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4362
4363         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4364
4365 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4366
4367         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4368         Previous patch missed DEFVAR_INT_MAGIC.
4369         Make sure future DEFVAR_foo use correct types.
4370         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4371         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4372         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4373         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4374         * (DEFVAR_INT): Likewise.
4375         * redisplay.c (vertical_clip): Should be of type Fixnum.
4376         * redisplay.c (horizontal_clip): Likewise.
4377         * lisp.h (dump_add_opaque_int): New.
4378         (dump_add_opaque_fixnum): New.
4379
4380 2001-01-29  Andy Piper  <andy@xemacs.org>
4381
4382         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4383         since they can be eval'ed
4384
4385 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4386
4387         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4388         Oops, XEmacs redefines `class'.  Use `typename' instead.
4389
4390 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4391
4392         * dumper.c: Fix C++ compile errors.
4393
4394 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4395
4396         * tparam.c: Use correct prototypes.
4397
4398 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4399
4400         * sysproc.h: #include util.h for NetBSD's openpty.
4401
4402 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4403
4404         More 64-bit correctness.
4405         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4406         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4407         Fix up comments.
4408         This finally finishes the 64-bit SGI port.
4409         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4410         * symbols.c: Fix up comments and type casts.
4411         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4412         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4413         * symeval.h (Fixnum): New type.
4414         * symeval.h (symbol_value_type): Fix up comment.
4415
4416         * commands.h:
4417         * nt.c:
4418         * emacs.c:
4419         * data.c:
4420         * redisplay.c:
4421         * abbrev.c:
4422         * dired-msw.c:
4423         * event-Xt.c:
4424         * eldap.c:
4425         * window.c:
4426         * sound.c:
4427         * event-stream.c:
4428         * eval.c:
4429         * buffer.c:
4430         * mule-canna.c: A million DEFVAR_INTs here...
4431         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4432         * extents.c:
4433         * cmdloop.c:
4434         * lisp.h:
4435         * select-x.c:
4436         * console-x.h:
4437         * event-msw.c:
4438         * mule-wnnfns.c:
4439         * hpplay.c:
4440         * ralloc.c:
4441         * alloc.c:
4442         * keymap.c:
4443         * profile.c:
4444         s/int/Fixnum/g in DEFVAR_INT declarations.
4445
4446 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4447
4448         Port pdump to SGI alignment-sensitive environment.
4449         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4450         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4451         properly aligned.
4452         Define and use aligned reading and writing macros.
4453         Use buffered stdio instead of posix i/o for faster dumping.
4454         Eliminate kludgy 256 byte space for header.
4455         Read and write from dump file using structs for alignment safety.
4456         * dumper.c (pdump_align_stream): New.
4457         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4458         * dumper.c (PDUMP_READ_ALIGNED): New.
4459         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4460         * dumper.c (pdump_static_Lisp_Object): New struct.
4461         * dumper.c (pdump_static_pointer): New struct.
4462         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4463         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4464         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4465         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4466
4467         * dumper.c (pdump_backtrace):
4468         * dumper.c (pdump_get_indirect_count):
4469         * dumper.c (pdump_register_object):
4470         * dumper.c (pdump_register_struct):
4471         * dumper.c (pdump_reloc_one):
4472         * dumper.c (pdump_scan_by_alignment):
4473         * dumper.c (pdump_dump_from_root_struct_ptrs):
4474         * dumper.c (pdump_dump_opaques):
4475         * dumper.c (pdump_dump_rtables):
4476         * dumper.c (pdump_dump_from_root_objects):
4477         * dumper.c (pdump):
4478         * dumper.c (pdump_load_finish):
4479         Use aligned reading and writing.
4480
4481         * dumper.c (pdump_free): Make static.
4482         * dumper.c (pdump_hFile): Likewise.
4483         * dumper.c (pdump_hMap): Likewise.
4484
4485 2001-01-26  Martin Buchholz <martin@xemacs.org>
4486
4487         * XEmacs 21.2.43 "Terspichore" is released.
4488
4489 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4490
4491         Type fiddling for window_config.saved_windows_count
4492         * window.c (struct window_config): 
4493         Make saved_windows_count member unsigned.
4494         * window.c (sizeof_window_config_for_n_windows): 
4495         Make parameter unsigned.
4496         * window.c (mark_window_config):
4497         * window.c (window_config_equal):
4498         * window.c (free_window_configuration):
4499         * window.c (Fset_window_configuration):
4500         * window.c (count_windows):
4501         * window.c (Fcurrent_window_configuration):
4502         * window.c (reinit_vars_of_window):
4503         Update all callers and users.
4504
4505 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4506
4507         Alignment correctness for flexible arrays.
4508         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4509         Make alignment-correct. Add interesting comments.
4510         * alloc.c (size_vector):
4511         * alloc.c (make_vector_internal):
4512         * alloc.c (make_bit_vector_internal):
4513         * alloc.c (sweep_bit_vectors_1):
4514         * fns.c (size_bit_vector):
4515         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4516         * window.c (sizeof_window_config_for_n_windows): 
4517         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4518
4519 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4520
4521         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4522
4523 2001-01-23  Andy Piper  <andy@xemacs.org>
4524
4525         * select.c (Fown_selection_internal): pass owned_p
4526
4527         * select-msw.c (mswindows_own_selection): New Signature.
4528
4529         * console.h (struct console_methods): add owned_p to
4530         _own_selection.
4531
4532         * select-x.c (x_own_selection): pass owned_p
4533         (hack_motif_clipboard_selection): use owned_p
4534         (vars_of_select_x): new variable -
4535         x_selection_strict_motif_ownership.
4536
4537 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4538
4539         * specifier.h (specifier_data_offset): Remove pointless parens.
4540         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4541
4542 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4543
4544         Make Lisp_Object sizeof methods be alignment-correct.
4545         pdump must restore objects to the same alignment as the C compiler
4546         assumes.  It really matters on SGIs.
4547         * lstream.c (aligned_sizeof_lstream): New.
4548         (sizeof_lstream): Use aligned_sizeof_lstream.
4549         (Lstream_new): Likewise.
4550         * opaque.c (aligned_sizeof_opaque): New.
4551         (sizeof_opaque): Use aligned_sizeof_opaque.
4552         (make_opaque): Likewise.
4553         * specifier.c (aligned_sizeof_specifier): New.
4554         (sizeof_specifier): Use aligned_sizeof_specifier.
4555         (make_specifier_internal): Likewise.
4556
4557 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4558
4559         * lstream.h (struct lstream): Use max_align_t for trailing data.
4560         * specifier.h (struct Lisp_Specifier): Likewise.
4561
4562 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4563
4564         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4565         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4566         (CCL_SUSPEND): Likewise.
4567         (CCL_INVALID_CMD): Likewise.
4568         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4569         (ccl_driver): Likewise.
4570         (CCL_WRITE_CHAR): Macro hygiene.
4571         (CCL_WRITE_STRING): Macro hygiene.
4572
4573 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4574
4575         Port "portable" dumper to SunOS 4 and HP-UX.
4576         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4577         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4578         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4579
4580 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4581
4582         * lisp.h (ALIGNOF): A better definition for C++.
4583
4584 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4585
4586         Macro hygiene.
4587         Fix printf warnings: int format, long int arg.
4588         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4589         (PUSH_FAILURE_POINT): Use correct printf formats.
4590         (POP_FAILURE_POINT): Use correct printf formats.  
4591         Use do {...} while (0)
4592
4593 2001-01-20  Martin Buchholz <martin@xemacs.org>
4594
4595         * XEmacs 21.2.42 "Poseidon" is released.
4596
4597 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4598
4599         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4600
4601 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4602
4603         De-kludgify FIXED_TYPE free list frobbing.
4604         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4605         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4606         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4607         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4608         * alloc.c (LRECORD_FREE_P): New.
4609         * alloc.c (MARK_LRECORD_AS_FREE): New.
4610         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4611         * alloc.c (STRUCT_FREE_P): Deleted.
4612         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4613         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4614         * alloc.c (STRING_CHARS_FREE_P): New.
4615         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4616         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4617         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4618         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4619         * alloc.c (resize_string): Use new definitions.
4620         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4621         * alloc.c (verify_string_chars_integrity): Use new definitions.
4622         * alloc.c (compact_string_chars): Use new definitions.
4623         * alloc.c: Update monster comments.
4624         * lrecord.h (lrecord_type): Add some new lrecord types for
4625         alloc.c's use.
4626
4627 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4628
4629         Improve alignment hackery.
4630         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4631         (max_align_t): Moved from opaque.h - general purpose.
4632         (ALIGN_PTR): Use size_t, not long.
4633         * opaque.h (max_align_t): Move to lisp.h.
4634
4635 2001-01-18  Norbert Koch  <nk@LF.net>
4636
4637         * gui.h: Fix and add prototypes to fix build problems.
4638
4639 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4640
4641         temacs is going away, so `dump-temacs' is now a bad name.
4642         * .dbxrc (dump-temacs): Rename to `dmp'.
4643         * .gdbinit (dump-temacs): Rename to `dmp'.
4644
4645 2001-01-17  Andy Piper  <andy@xemacs.org>
4646
4647         * glyphs.c (print_image_instance): comment to make martin happy.
4648
4649         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4650         change.
4651
4652         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4653         activation.
4654         (mswindows_tab_control_redisplay): warning suppression.
4655
4656         * glyphs-widget.c (widget_update): re-write to cope with updated
4657         items.
4658         (widget_instantiate): use new gui_item functions.
4659         (tab_control_update): deleted.
4660         (progress_gauge_update): deleted.
4661         (image_instantiator_progress_guage): take out update reference.
4662         (image_instantiator_tree_view): ditto.
4663         (image_instantiator_tab_control): ditto.
4664
4665         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4666         Right the new way.
4667         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4668         return whether anything was changed.
4669         (update_gui_item_keywords): as it sounds.
4670
4671         * gui.h: declare widget_gui_parse_item_keywords.
4672
4673         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4674         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4675
4676 2001-01-17  Martin Buchholz <martin@xemacs.org>
4677
4678         * XEmacs 21.2.41 "Polyhymnia" is released.
4679
4680 2001-01-16  Didier Verna  <didier@xemacs.org>
4681
4682         * glyphs.c (image_instantiate): don't use fallbacks when
4683         instantiating a face's background pixmap by inheritance.
4684
4685 2001-01-14  Mike Sperber <mike@xemacs.org>
4686
4687         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4688         Conditionalize accordingly.
4689
4690 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4691
4692         * dumper.c (pdump_file_get): Fix a compiler warning.
4693
4694 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4695
4696         Make Purify happy when pdumping.
4697         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4698         iniitalizing all bits of new lisp object memory.
4699         * symbols.c (Fmake_local_variable): Likewise.
4700         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4701         * symbols.c (Fdefvaralias): Likewise.
4702         * mule-charset.c (vars_of_mule_charset): Likewise.
4703
4704 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4705         Add the `-nd' flag when running pre-dump operations under the debugger.
4706         * .dbxrc (run-temacs): Add `-nd'.
4707         * .dbxrc (update-elc): Likewise.
4708         * .dbxrc (dump-temacs): Likewise.
4709         * .gdbinit (run-temacs): Likewise.
4710         * .gdbinit (check-temacs): Likewise.
4711         * .gdbinit (update-elc): Likewise.
4712         * .gdbinit (dump-temacs): Likewise.
4713
4714 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4715
4716         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4717         export OBJECT_MODE=64
4718         configure --pdump --use-union-type=no
4719         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4720         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4721
4722         * miscplay.c (sndcnv8U_2mono):
4723         Avoid two uses of `++' in the same expression.
4724         Suppresses a GCC warning.
4725
4726 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4727
4728         Make sure future compilers don't miscompile alloc.c.
4729         * alloc.c:
4730         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4731         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4732
4733 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4734
4735         * dumper.c: A little post-pdump-rename comment fixup.
4736
4737 2001-01-09  Jerry James  <james@eecs.ku.edu>
4738
4739         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4740
4741 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4742
4743         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4744         script:
4745         #!/bin/sh
4746         replace_symbol () {
4747           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4748         }
4749
4750         replace_symbol pdump_wire_lists pdump_weak_object_chains
4751         replace_symbol pdump_wire_list dump_add_weak_object_chain
4752
4753         replace_symbol pdump_wires pdump_root_objects
4754         replace_symbol pdump_wire dump_add_root_object
4755
4756         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4757         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4758
4759         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4760         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4761         replace_symbol dumpstructinfo pdump_root_struct_ptr
4762         replace_symbol dumpstruct dump_add_root_struct_ptr
4763
4764         replace_symbol dumpopaque dump_add_opaque
4765         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4766         replace_symbol dumpopaqueinfos pdump_opaques
4767         replace_symbol dumpopaqueinfo pdump_opaque
4768
4769         replace_symbol nb_structdump nb_root_struct_ptrs
4770         replace_symbol nb_opaquedump nb_opaques
4771
4772         replace_symbol align_table pdump_align_table
4773         replace_symbol dump_header pdump_header
4774
4775         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4776         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4777
4778
4779 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4780
4781         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4782         optimizing bytecount_to_charcount().
4783
4784 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4785
4786         * config.h.in:
4787         (HAVE_DLFCN_H): Removed.
4788         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4789
4790 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4791
4792         Portable dumper maintainability improvements.
4793         * alloc.c (staticpro):
4794         * alloc.c (staticpro_nodump):
4795         * alloc.c (garbage_collect_1):
4796         * alloc.c (reinit_alloc_once_early):
4797         * alloc.c (init_alloc_once_early):
4798         * alloc.c: Move dumper functions to alloc.c.
4799         * dumper.c (pdump_backtrace):
4800         * dumper.c (pdump_dump_structs):
4801         * dumper.c (pdump_dump_opaques):
4802         * dumper.c (pdump_dump_rtables):
4803         * dumper.c (pdump_dump_wired):
4804         * dumper.c (pdump):
4805         * dumper.c (pdump_load_check):
4806         * dumper.c (pdump_load_finish):
4807         * dumper.c (pdump_file_unmap):
4808         * dumper.c (pdump_file_get):
4809         * dumper.c (pdump_resource_free):
4810         * dumper.c (pdump_resource_get):
4811         * dumper.c (pdump_file_free):
4812         * dumper.c (pdump_file_try):
4813         * dumper.c (pdump_load):
4814         Remove fixed size limits on staticpro(), staticpro_nodump(),
4815         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4816         Remove custom code for dumping lrecord_implementations_table - use
4817         dumpopaque instead.
4818         Remove (most of the) custom code for dumping staticpros - dump it
4819         like any other dynarr.
4820
4821         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4822         * dumper.c: Moved functions from alloc.c.
4823         * alloc.c (dumpstruct): Moved to dumper.c.
4824         * alloc.c (dumpopaque): Likewise.
4825         * alloc.c (pdump_wire): Likewise.
4826         * alloc.c (pdump_wire_list): Likewise.
4827
4828         * lisp.h (Dynarr_sizeof): New.
4829         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4830         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4831         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4832
4833         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4834         * lisp.h (dumpopaque): ditto.
4835         * lisp.h (pdump_wire): ditto.
4836         * lisp.h (pdump_wire_list): ditto.
4837
4838 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4839
4840         * make-src-depend (PrintPatternDeps):
4841         Use `sort' to make output independent of perl version.
4842
4843 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4844
4845         Port to Netbsd 1.5.
4846         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4847         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4848
4849 2001-01-03  Didier Verna  <didier@xemacs.org>
4850
4851         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4852         that `focus_frame' is alive before thinking of calling
4853         `redisplay_redraw_cursor' on it.
4854
4855 2001-01-08  Martin Buchholz <martin@xemacs.org>
4856
4857         * XEmacs 21.2.40 is released.
4858
4859 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4860
4861         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4862
4863 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4864
4865         * alloc.c (dbg_valmask): Make const.
4866         * alloc.c (dbg_typemask): Make const.
4867         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4868         * alloc.c (dbg_valbits): Make const.
4869         * alloc.c (dbg_gctypebits): Make const.
4870
4871 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4872
4873         * redisplay-x.c (x_bevel_area):
4874         redisplay.h (struct rune):
4875         Typo fixes in comments.
4876
4877 2001-01-05  Andy Piper  <andy@xemacs.org>
4878
4879         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4880         adjustment.
4881
4882         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4883
4884 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4885
4886         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4887
4888         * mule-ccl.c (stack_idx_of_map_multiple):
4889         Non const global data must not be initialized!
4890         Found by MIYASHITA Hisashi.
4891
4892 2001-01-02  Andy Piper  <andy@xemacs.org>
4893
4894         * frame.c (change_frame_size): make sure frame size is always
4895         marked as changed.
4896
4897         * glyphs.c (image_instance_layout): minor code reuse.
4898
4899         * window.c (Fcurrent_window_configuration): revert previous
4900         change.
4901
4902 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4903
4904         * glyphs.h:
4905         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4906
4907 2000-12-31  Andy Piper  <andy@xemacs.org>
4908
4909         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4910         when widget gets unmapped.
4911
4912         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4913         function. Make sure widgets losing focus don't just drop it.
4914         (handle_focus_event_1): record the widget with focus.
4915
4916 2000-12-31  Andy Piper  <andy@xemacs.org>
4917
4918         * window.c (allocate_window): use
4919         make_image_instance_cache_hash_table.
4920         (make_dummy_parent): ditto.
4921         (Fset_window_configuration): ditto.
4922
4923         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4924
4925         * glyphs.c (process_image_string_instantiator): use
4926         INSTANTIATOR_TYPE.
4927         (get_image_instantiator_governing_domain): ditto.
4928         (normalize_image_instantiator): ditto.
4929         (instantiate_image_instantiator): ditto.
4930         (make_image_instance_1): ditto.
4931         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4932         (instantiator_eq_equal): new function for use with instance hash
4933         tables.
4934         (instantiator_eq_hash): ditto.
4935         (make_image_instance_cache_hash_table): create a suitable hash
4936         table for storing image instances.
4937
4938         * elhash.h (hash_table_weakness): new internal weakness type
4939         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4940         declare new functions.
4941
4942         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4943         another weakness type for glyphs.
4944         (make_standard_lisp_hash_table): new function split out from
4945         make_general_lisp_hash_table.
4946         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4947         (hash_table_instantiate): ditto.
4948         (Fmake_hash_table): ditto.
4949
4950 2000-12-31  Martin Buchholz <martin@xemacs.org>
4951
4952         * XEmacs 21.2.39 is released.
4953
4954 2000-12-29  Andy Piper  <andy@xemacs.org>
4955
4956         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4957
4958         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4959         the frame has changed so that we pick up geometry changes such as
4960         menubar visibility.
4961
4962 2000-12-28  Andy Piper  <andy@xemacs.org>
4963
4964         * lastfile.c (my_ebss): make a char array so we can pad the
4965         bss. Fixes cygwin unexec.
4966
4967         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4968
4969 2000-12-26  Andy Piper  <andy@xemacs.org>
4970
4971         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4972         comments and try and be more precise about a non-/SIGIO world.
4973         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4974         SIGIO.
4975
4976         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4977         we don't normalize to zero width or height.
4978
4979 2000-12-24  Andy Piper  <andy@xemacs.org>
4980
4981         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4982
4983 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4984
4985         * s/sco5.h: SCO 5 has pty support.
4986
4987 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4988
4989         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4990         input-method-xlib.c contains whole contents of input-method-xfs.c,
4991         so we can use input-method-xlib.c's code for USE_XFONTSET
4992         using #ifdefs.
4993         * input-method-xfs.c: removed.
4994
4995 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4996
4997         * file-coding.h (enum coding_category_type): reorder enumerators to
4998         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4999         (now one greater than largest real coding_category_type enumerator).
5000         * file-coding.c (coding_category_symbol, coding_category_by_priority,
5001         coding_category_system, fcd_descriptihon_1, decode_coding_category,
5002         Fcoding_category_list, Fset_coding_priority_list,
5003         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
5004         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
5005
5006 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5007
5008         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
5009         * redisplay-output.c (redisplay_output_window): Clear top of window
5010         when face is changed.
5011         * redisplay-x.c (x_redraw_exposed_window): Call
5012         redisplay_clear_top_of_window.
5013         * redisplay.h: Publish redisplay_clear_top_of_window.
5014
5015 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5016
5017         * buffer.c (Fkill_buffer): Map over all devices.
5018         * window.c (window_loop): Remove UNSHOW_BUFFER code.
5019         (list_windows): New function.
5020         (list_all_windows): Ditto.
5021         (Freplace_buffer_in_windows): Use them.
5022
5023 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5024
5025         * database.c (berkdb_subtype): Recognize new subtype `queue'.
5026         (Fopen_database): Use `db_create' instead of `db_open'.
5027         (syms_of_database): Initialize Qqueue.
5028
5029 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5030
5031         * buffer.c (common_init_complex_vars_of_buffer): Initialize
5032         buffer_local_face_property.
5033         * buffer.h (struct buffer): New member buffer_local_face_property.
5034         * window.c (Fset_window_buffer):  Mark window's face as changed
5035         when buffer has buffer local face.
5036         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
5037         * objects.c (color_after_change): Set buffer_local_face_property
5038         when locale of face specifier is buffer.
5039         * objects.c (font_after_change): Ditto.
5040         * objects.c (face_boolean_after_change): Ditto.
5041         * glyphs.c (image_after_change): Ditto.
5042
5043 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5044
5045         * nt.c (mswindows_fstat): Report file permissions, volume serial
5046         number, etc. Code adapted from FSF Emacs 20.7.
5047
5048 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5049
5050         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
5051         of stat when we don't have symbolic links, to make sure
5052         mswindows_stat is called on mswindows.
5053
5054 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5055
5056         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
5057
5058 2000-12-12  Martin Buchholz  <martin@xemacs.org>
5059
5060         * doprnt.c (emacs_doprnt_1): More printing fixes.
5061         Make printing of numbers compatible with libc and FSF Emacs.
5062         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
5063         Use the system printf to do most of the hard work of formatting,
5064         instead of doprnt_1().
5065         Calculate memory to allocate for format string.
5066         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
5067         (doprnt_1): Cleaner code and documentation.
5068
5069 2000-12-01  Jerry James  <james@eecs.ukans.edu>
5070
5071         * Makefile.in.in: Use the loop variable to install headers.
5072
5073 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5074
5075         * window.c (Fsplit_window): Don't invalidate face cache.
5076
5077 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5078
5079         * minibuf.c (Fall_completions): Undo the previous change
5080         which removed checking elements start with space.
5081
5082 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5083
5084         * mule-canna.c: Didier suppression.
5085
5086 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5087
5088         * mule-canna.c: rename static unsigned char buf[] to key_buffer
5089         (warning suppression).  Add English comment translations.
5090
5091 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5092
5093         * unexelfsgi.c (unexec): Better test for mmap failure.
5094
5095 2000-12-05  Martin Buchholz <martin@xemacs.org>
5096
5097         * XEmacs 21.2.38 is released.
5098
5099 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5100
5101         * redisplay.c (bar-cursor): Make a user variable.
5102
5103         * symsinit.h: Add init_postgresql_from_environment.
5104
5105 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5106
5107         * regex.c: Convert to clean C.
5108
5109 2000-12-05  Dan Holmsand  <dan@eyebee.com>
5110
5111         * realpath.c:
5112         Don't #include sysfile.h. Revert to duplicating PATH_MAX
5113         initialization.
5114         (sys_readlink): renamed to system_readlink to avoid conflict with
5115         the other sys_readlink.
5116
5117 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
5118
5119         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5120
5121 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
5122
5123         * postgresql.c (init_postgresql_from_environment): new function.
5124         (vars_of_postgresql): Move code initializing Lisp variables out and
5125         into init_postgresql_from_environment.
5126         emacs.c (main_1): Call init_postgresql_from_environment if and only
5127         if running a dumped XEmacs.
5128
5129 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5130
5131         * buffer.c: Make find-file-compare-truenames default to true on
5132         windows.
5133
5134         * realpath.c (win32_abs_start):
5135         (cygwin_readlink):
5136         (win32_readlink): New functions.
5137         (xrealpath): Return really real filenames on windows.
5138
5139         * fileio.c (Ffile_truename): Make file-truename work on windows.
5140
5141 2000-11-29  Didier Verna  <didier@xemacs.org>
5142
5143         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5144         * faces.c (update_face_cachel_data): use it.
5145         * faces.c (add_face_cachel): use it. Complete background pixmap
5146         frobbing in face cache if `update_face_cachel_data' has not done so.
5147
5148 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5149
5150         * search.c (string_match_1): Don't set last_thing_searched
5151         when search failed.
5152
5153 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5154
5155         * buffer.c: Include casetab.h
5156         (common_init_complex_vars_of_buffer): Use new case-table object.
5157         * buffer.h: Include casetab.h
5158         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5159         (DOWNCASE_TABLE_OF): Ditto.
5160         * bufslots.h: Remove char-tables and add case-table.
5161         * casetab.c: Include casetab.h
5162         (CASE_TABLE_P): Removed.
5163         (mark_case_table): New function.
5164         (allocate_case_table): New function.
5165         (Fcase_table_p): Use new case-table.
5166         (case_table_char): New function.
5167         (Fget_case_table): Ditto.
5168         (Fput_case_table): Ditto.
5169         (Fput_case_table_pair): Ditto.
5170         (Fcopy_case_table): Ditto.
5171         (Fcurrent_case_table): Return case-table.
5172         (Fstandard_case_table): Return case-table.
5173         (Fset_case_table): Fix doc-string.
5174         (set_case_table): Use case-table
5175         (syms_of_casetab): DEFSUBR new functions.
5176         (complex_vars_of_casetab): Set up standard case-table.
5177         * casetab.h: New file.
5178         * editfns.c: Include casetab.h
5179         (Fcompare_buffer_substrings): Use case-table.
5180         * inline.c: Include casetab.h
5181         * lisp.h: Remove bogus extern.
5182         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5183         * search.c: Include casetab.h
5184         (TRANSLATE_ASCII): Removed.
5185         (TRANSLATE): Unconditionally translate character.
5186         (looking_at_1): Use case-table.
5187         (string_match_1): Ditto.
5188         (fast_string_match): Ditto.
5189         (search_command): Ditto.
5190         (search_buffer): Separate boyer_moore.  Check whether
5191         boyer_moore is possible.
5192         (simple_search): New function.
5193         (boyer_moore): Separated from search_buffer. Translate char.
5194
5195 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5196
5197         * regex.c (RE_TR_ASCII): Removed.
5198         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5199         (PATFETCH): Call PATFETCH_RAW.
5200         (PATFETCH_RAW): Fetch Emchar.
5201         (PATUNFETCH): Decrement charptr.
5202         (GET_BUFFER_SPACE): Rename b to buf_end.
5203         (BUF_PUSH): Ditto.
5204         (BUF_PUSH_2): Ditto.
5205         (BUF_PUSH_3): Ditto.
5206         (EXTEND_BUFFER): Ditto.
5207         (SET_LIST_BIT): Ditto.
5208         (regex_compile): Ditto.  Translate non ASCII char.
5209         (compile_range): Ditto.
5210         (re_search_2): Ditto.
5211         (re_match_2_internal): Compare Emchar.
5212         (bcmp_translate): Ditto.
5213
5214 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5215
5216         * lisp.h (basic char/int typedefs):  comment improvement.
5217
5218 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5219
5220         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5221         unstomp inhibit_site_lisp.  Improve comments.
5222
5223 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5224
5225         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5226
5227 2000-11-28  Andy Piper  <andy@xemacs.org>
5228
5229         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5230         clipped display for windows in the gutter also.
5231         (redisplay_display_boxes_in_window_p): change semantics of return
5232         codes to be more intuitive.
5233
5234         * gutter.h: declare display_boxes_in_gutter_p.
5235
5236         * gutter.c (display_boxes_in_gutter_p): new function for
5237         redisplay.
5238
5239 2000-11-22  Andy Piper  <andy@xemacs.org>
5240
5241         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5242         autodetect domain.
5243
5244 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5245
5246         * callproc.c (Fold_call_process_internal):
5247         * gpm.c (Freceive_gpm_event):
5248         (tty_get_foreign_selection): Might be just warning supression.
5249         * fileio.c (Fwrite_region_internal):
5250         (Fset_visited_file_modtime):
5251         * keymap.c (event_matches_key_specifier_p):
5252         Initialize GCPROed variable.
5253
5254         * menubar-x.c (command_builder_find_menu_accelerator):
5255         Initialize before use.
5256
5257 2000-11-23  Andy Piper  <andy@xemacs.org>
5258
5259         * unexcw.c (unexec): make the resulting executable executable.
5260
5261 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5262
5263         * doc.c (get_doc_string):
5264         Use size_t, not int, for result of XSTRING_LENGTH.
5265
5266         * cmds.c (Fdelete_char):
5267         * cmds.c (Fpoint_at_eol):
5268         * cmds.c (Fself_insert_command):
5269         Use EMACS_INT, not int, for result of XINT.
5270         Someday, someone will want to insert more than 2**31 identical characters.
5271
5272         * cmds.c (Fdelete_char):
5273         * cmds.c (Fdelete_backward_char):
5274         * syntax.c (Fforward_word):
5275         * syntax.c (Fforward_comment):
5276         Make COUNT argument optional, for consistency with forward-char et al.
5277
5278 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5279
5280         * lisp.h:
5281         * print.c (long_to_string):
5282         Return a useful value: the pointer at end of data written.
5283
5284         * doprnt.c:
5285         Use `static const char * const' for constant strings.
5286         (union printf_arg): Delete `i', `ui' members.
5287         (get_doprnt_args):
5288         (emacs_doprnt_1):
5289         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5290         Do all printf-ing via the `l' specifier.
5291         Use EMACS_INT instead of int.
5292         Optimize.
5293
5294 2000-11-20  Didier Verna  <didier@xemacs.org>
5295
5296         * faces.c (update_face_cachel_data): don't frob the background
5297         pixmap when the window is being created. The face is needed but
5298         does not exist yet.
5299
5300 2000-11-20  Andy Piper  <andy@xemacs.org>
5301
5302         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5303         messing with a debug environment.
5304
5305 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5306
5307         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5308
5309 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5310
5311         * casetab.c (Fcase_table_p): Fix compile error and crash.
5312
5313 2000-11-18  Philip Aston  <philipa@mail.com>
5314
5315         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5316
5317 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5318
5319         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5320         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5321
5322 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5323
5324         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5325         * unexelf.c: Use HAVE_ELF_H.
5326         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5327         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5328         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5329         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5330         for testing.
5331         So this is an unexelfsgi.c from a different line of development.
5332
5333 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5334
5335         * regex.c (RE_TR_ASCII): New function.
5336         (RE_TRANSLATE): Call it.
5337
5338 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5339
5340         * buffer.h (TRT_TABLE_OF): Remove assert.
5341         (IN_TRT_TABLE_DOMAIN): Removed.
5342
5343 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5344
5345         * free-hook.c (log_gcpro):
5346         (show_gcprohist): Add support for GCPRO5.
5347
5348 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5349
5350         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5351
5352 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5353
5354         * symeval.h: Declare flush_all_buffer_local_cache.
5355
5356         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5357         (flush_buffer_local_cache): Added.
5358         (flush_all_buffer_local_cache): Added.
5359
5360         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5361
5362         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5363         (pdump_dump_data): Ditto.
5364         (pdump_reloc_one): Ditto.
5365         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5366         before dumping.
5367
5368
5369 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5370
5371         * buffer.c: Remove if 0'ed entry.
5372         * buffer.h: Rewrite TRT to use char-table.
5373         * bufslots.h: Remove mirror tables.
5374         * casetab.c: Remove mirror tables.
5375         (CASE_TABLE_P): New macro.
5376         (Fcase_table_p): Element of a case table is string or char-table.
5377         (make_mirror_trt_table): Removed.
5378         (set_case_table): Setup char-table from strings for backward
5379         compatibility.
5380         * dired.c (Fdirectory_files):
5381         * dired-msw.c: (mswindows_get_files):
5382         * lisp.h: Change prototype of re_pattern_buffer.
5383         * regex.c: (RE_TRANSLATE): New macro.
5384         (TRANSLATE_P): Ditto.
5385         Change translate to type RE_TRANSLATE_TYPE.
5386         * regex.h: Define RE_TRANSLATE_TYPE
5387         * search.c (TRANSLATE): New macro.
5388         (TRANSLATE_ASCII): New macro.
5389         Translate table is changed to Lisp_Object.
5390         (signal_failure): Inhibit return.
5391
5392 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5393
5394         * device-msw.c:
5395         * eldap.c:
5396         * event-Xt.c:
5397         * event-stream.c:
5398         * print.c:
5399         Do UNGCPRO before return.
5400
5401 2000-11-14  Martin Buchholz <martin@xemacs.org>
5402
5403         * XEmacs 21.2.37 is released.
5404
5405 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5406
5407         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5408         Add comments about discarded return value.
5409
5410 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5411
5412         * callint.c:
5413         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5414
5415 2000-10-27  Andy Piper  <andy@xemacs.org>
5416
5417         * gutter.c (Fset_default_gutter_position): default left and right
5418         gutters to visible.
5419         (calculate_gutter_size): calculate resonable heuristic for left
5420         and right gutter sizes.
5421         (specifier_vars_of_gutter): change left and right gutter sizes to
5422         autodetect.
5423         (calculate_gutter_size_from_display_lines): new function.
5424         (output_gutter): check for resizing on left and right gutters.
5425         (clear_gutter): don't special case top and left gutters.
5426         (specifier_vars_of_gutter): use new signature for
5427         set_specifier_caching.
5428
5429         * glyphs-x.c (x_redisplay_widget): spelling fix.
5430         * glyphs.c (specifier_vars_of_glyphs):
5431         * menubar.c (specifier_vars_of_menubar):
5432         * redisplay.c (specifier_vars_of_redisplay):
5433         * toolbar.c (specifier_vars_of_toolbar):
5434         * window.c (specifier_vars_of_window):
5435         * scrollbar.c (specifier_vars_of_scrollbar):
5436         (complex_vars_of_scrollbar): use new signature for
5437         set_specifier_caching.
5438
5439         * specifier.c (set_specifier_caching): include recompute flag.
5440         (recompute_one_cached_specifier_in_window): always recompute if
5441         flag set.
5442         (recompute_one_cached_specifier_in_frame): ditto.
5443
5444         * specifier.h (struct specifier_caching): add recompute flag.
5445
5446 2000-10-24  Andy Piper  <andy@xemacs.org>
5447
5448         * unexcw.c (copy_executable_and_dump_data_section): add new
5449         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5450         5.0 happy.
5451
5452 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5453
5454         * console-x.h (x_device): New member modifier_release_time.
5455         * event-Xt.c (x_handle_sticky_modifiers):
5456         Bound interval modifier keys are sticky.
5457         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5458         * events.h: extern it.
5459
5460 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5461
5462         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5463
5464 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5465
5466         * event-stream.c (execute_command_event): Preserve current_events
5467         and the like when event is misc-user-event.
5468         Inhibit quit during the call to maybe_echo_keys.
5469
5470 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5471
5472         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5473         symlink when buffer is killed.
5474         (inhibit_clash_detection): New variable.
5475
5476 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5477
5478         * console.c (Fset_input_method): Trigger redisplay on tty.
5479
5480 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5481
5482         * process.c (Fprocess_status): Revert to previous behavior:
5483         (process-status "nosuchprocess") ==> nil
5484
5485 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5486
5487         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5488         Work around another GCC 2.95.2 optimizer bug.
5489
5490 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5491
5492         * process.c (Fget_process): Use LIST_LOOP_2.
5493         (kill_buffer_processes): Use LIST_LOOP_2.
5494
5495         * minibuf.c (Fall_completions):
5496         Delete old non-functional code for FSF fourth argument.
5497
5498         * frame.c (frame_matches_frame_spec):
5499         Renamed from `frame_matches_frametype'.  Update all callers.
5500         (device_matches_device_spec):
5501         Renamed from 'device_matches_console_spec'.  Update all callers.
5502
5503         * doc.c (Fsubstitute_command_keys):
5504         Remove buffer overflow crash.  Small code cleanups.
5505
5506         * casetab.c (check_case_table): Simpler code.
5507
5508         * window.c (Freplace_buffer_in_windows):
5509         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5510         (and similar implementation) as Fdelete_windows_on.
5511         Update all callers.
5512
5513         * alloc.c (Fmake_list):
5514         * alloc.c (make_vector):
5515         * alloc.c (Fmake_vector):
5516         * alloc.c (make_bit_vector):
5517         * alloc.c (Fmake_bit_vector):
5518         * alloc.c (Fbit_vector):
5519         * alloc.c (Fmake_string):
5520         * alloc.c (Fpurecopy):
5521         * alloc.c (Fmemory_limit):
5522         * buffer.c:
5523         * buffer.c (Fget_buffer):
5524         * buffer.c (Fkill_buffer):
5525         * buffer.c (complex_vars_of_buffer):
5526         * bytecode.c (Fcompiled_function_stack_depth):
5527         * callint.c (Fprefix_numeric_value):
5528         * event-stream.c:
5529         * event-stream.c (Fread_key_sequence):
5530         * casetab.c:
5531         * casetab.c (Fcase_table_p):
5532         * casetab.c (check_case_table):
5533         * casetab.c (Fset_case_table):
5534         * casetab.c (Fset_standard_case_table):
5535         * chartab.c:
5536         * chartab.c (Fchar_table_type):
5537         * chartab.c (Freset_char_table):
5538         * chartab.c (Fget_char_table):
5539         * chartab.c (Fget_range_char_table):
5540         * chartab.c (Fput_char_table):
5541         * chartab.c (Fmap_char_table):
5542         * chartab.c (Fcategory_table_p):
5543         * chartab.c (Fcheck_category_at):
5544         * chartab.c (Fchar_in_category_p):
5545         * chartab.c (Fcategory_table):
5546         * chartab.c (Fcopy_category_table):
5547         * chartab.c (Fset_category_table):
5548         * chartab.c (Fcategory_designator_p):
5549         * chartab.c (Fcategory_table_value_p):
5550         * cmds.c (Fdelete_char):
5551         * cmds.c (Fdelete_backward_char):
5552         * cmds.c (Fself_insert_command):
5553         * cmds.c (Fself_insert_internal):
5554         * console.c (Fvalid_console_type_p):
5555         * console.c (Fcdfw_console):
5556         * console.c (Fconsole_type):
5557         * console.c (Fconsole_name):
5558         * console.c (Fconsole_device_list):
5559         * console.c (Fconsole_on_window_system_p):
5560         * data.c:
5561         * data.c (Feq):
5562         * data.c (Fold_eq):
5563         * data.c (Fsubr_interactive):
5564         * data.c (Fchar_to_int):
5565         * data.c (Fint_to_char):
5566         * data.c (Fsetcar):
5567         * data.c (Fsetcdr):
5568         * data.c (Fnumber_to_string):
5569         * data.c (Fstring_to_number):
5570         * data.c (Frem):
5571         * database.c (mark_database):
5572         * database.c (finalize_database):
5573         * database.c (Fdatabase_live_p):
5574         * database.c (Fdatabasep):
5575         * device-x.c (Fx_get_resource):
5576         * device.c (Fdfw_device):
5577         * dired.c:
5578         * dired.c (Ffile_name_completion):
5579         * dired.c (Ffile_name_all_completions):
5580         * dired.c (Fuser_name_completion):
5581         * dired.c (Fuser_name_completion_1):
5582         * dired.c (Fuser_name_all_completions):
5583         * doc.c (Fdocumentation):
5584         * doc.c (Fdocumentation_property):
5585         * doc.c (Fsubstitute_command_keys):
5586         * editfns.c:
5587         * editfns.c (Fchar_to_string):
5588         * editfns.c (Fstring_to_char):
5589         * editfns.c (Ftemp_directory):
5590         * editfns.c (Finsert_char):
5591         * editfns.c (Fbuffer_substring_no_properties):
5592         * editfns.c (Fnarrow_to_region):
5593         * editfns.c (Fchar_equal):
5594         * editfns.c (Fchar_Equal):
5595         * editfns.c (Ftranspose_regions):
5596         * emacs.c (Fdump_emacs):
5597         * eval.c (Fthrow):
5598         * eval.c (Fcommand_execute):
5599         * eval.c (Fautoload):
5600         * eval.c (Fbacktrace):
5601         * eval.c (Fbacktrace_frame):
5602         * events.c:
5603         * events.c (Fcopy_event):
5604         * events.c (Fcharacter_to_event):
5605         * events.c (Fevent_button):
5606         * events.c (Fevent_process):
5607         * extents.c:
5608         * extents.c (Fnext_extent_change):
5609         * extents.c (Fextent_property):
5610         * faces.c (Ffacep):
5611         * faces.c (Fmake_face):
5612         * file-coding.c:
5613         * file-coding.c (Fencode_shift_jis_char):
5614         * file-coding.c (Fencode_big5_char):
5615         * fileio.c (Ffile_name_directory):
5616         * fileio.c (Ffile_name_nondirectory):
5617         * fileio.c (Ffile_name_as_directory):
5618         * fileio.c (Fdirectory_file_name):
5619         * fileio.c (Ffile_truename):
5620         * fileio.c (Fsubstitute_in_file_name):
5621         * fileio.c (Ffile_modes):
5622         * fileio.c (Fset_file_modes):
5623         * fileio.c (Fset_default_file_modes):
5624         * fileio.c (Fverify_visited_file_modtime):
5625         * floatfns.c (Facos):
5626         * floatfns.c (Fasin):
5627         * floatfns.c (Fatan):
5628         * floatfns.c (Fcos):
5629         * floatfns.c (Fsin):
5630         * floatfns.c (Ftan):
5631         * floatfns.c (Fbessel_j0):
5632         * floatfns.c (Fbessel_j1):
5633         * floatfns.c (Fbessel_jn):
5634         * floatfns.c (Fbessel_y0):
5635         * floatfns.c (Fbessel_y1):
5636         * floatfns.c (Fbessel_yn):
5637         * floatfns.c (Ferf):
5638         * floatfns.c (Ferfc):
5639         * floatfns.c (Flog_gamma):
5640         * floatfns.c (Fexp):
5641         * floatfns.c (Fexpt):
5642         * floatfns.c (Flog):
5643         * floatfns.c (Flog10):
5644         * floatfns.c (Fsqrt):
5645         * floatfns.c (Fcube_root):
5646         * floatfns.c (Facosh):
5647         * floatfns.c (Fasinh):
5648         * floatfns.c (Fatanh):
5649         * floatfns.c (Fcosh):
5650         * floatfns.c (Fsinh):
5651         * floatfns.c (Ftanh):
5652         * floatfns.c (Fabs):
5653         * floatfns.c (Ffloat):
5654         * floatfns.c (Flogb):
5655         * floatfns.c (Fceiling):
5656         * floatfns.c (Ffloor):
5657         * floatfns.c (Fround):
5658         * floatfns.c (Ftruncate):
5659         * floatfns.c (Ffceiling):
5660         * floatfns.c (Fffloor):
5661         * floatfns.c (Ffround):
5662         * floatfns.c (Fftruncate):
5663         * fns.c (Fstring_equal):
5664         * fns.c (Fstring_lessp):
5665         * fns.c (concat2):
5666         * fns.c (concat3):
5667         * fns.c (vconcat2):
5668         * fns.c (vconcat3):
5669         * fns.c (Fsubstring):
5670         * fns.c (Fassoc):
5671         * fns.c (Fold_assoc):
5672         * fns.c (assoc_no_quit):
5673         * fns.c (Fassq):
5674         * fns.c (Fold_assq):
5675         * fns.c (assq_no_quit):
5676         * fns.c (Frassoc):
5677         * fns.c (Fold_rassoc):
5678         * fns.c (Frassq):
5679         * fns.c (Fold_rassq):
5680         * fns.c (rassq_no_quit):
5681         * fns.c (Fremassoc):
5682         * fns.c (remassoc_no_quit):
5683         * fns.c (Fremassq):
5684         * fns.c (remassq_no_quit):
5685         * fns.c (Fremrassoc):
5686         * fns.c (Fremrassq):
5687         * fns.c (remrassq_no_quit):
5688         * fns.c (Fsort):
5689         * fns.c (Fplist_get):
5690         * fns.c (Fplist_put):
5691         * fns.c (Fplist_remprop):
5692         * fns.c (Fplist_member):
5693         * fns.c (Flax_plist_get):
5694         * fns.c (Flax_plist_put):
5695         * fns.c (Flax_plist_remprop):
5696         * fns.c (Flax_plist_member):
5697         * fns.c (Fequal):
5698         * fns.c (Fold_equal):
5699         * fns.c (Frequire):
5700         * fns.c (Fbase64_encode_region):
5701         * fns.c (Fbase64_encode_string):
5702         * fns.c (Fbase64_decode_region):
5703         * frame.c:
5704         * frame.c (frame_matches_frame_spec):
5705         * frame.c (device_matches_device_spec):
5706         * frame.c (next_frame):
5707         * frame.c (previous_frame):
5708         * frame.c (Fnext_frame):
5709         * frame.c (Fprevious_frame):
5710         * frame.c (Fframe_property):
5711         * frame.c (Fset_frame_height):
5712         * frame.c (Fset_frame_size):
5713         * frame.h:
5714         * glyphs.c:
5715         * glyphs.c (if):
5716         * glyphs.c (decode_error_behavior_flag):
5717         * glyphs.c (Fmake_image_instance):
5718         * indent.c (Findent_to):
5719         * intl.c (Fignore_defer_gettext):
5720         * keymap.c (Fkeymapp):
5721         * keymap.c (Flookup_key):
5722         * lread.c:
5723         * lread.c (Fload_internal):
5724         * lread.c (Feval_buffer):
5725         * lread.c (Feval_region):
5726         * macros.c (Fexecute_kbd_macro):
5727         * marker.c (set_marker_internal):
5728         * marker.c (Fset_marker):
5729         * marker.c (set_marker_restricted):
5730         * marker.c (Fcopy_marker):
5731         * marker.c (noseeum_copy_marker):
5732         * menubar.c:
5733         * menubar.c (Fpopup_menu):
5734         * minibuf.c:
5735         * mule-charset.c (Fcharset_name):
5736         * mule-charset.c (Fchar_charset):
5737         * mule-charset.c (Fchar_octet):
5738         * mule-charset.c (Fsplit_char):
5739         * mule-wnnfns.c (Fwnn_open):
5740         * mule-wnnfns.c (Fwnn_dict_comment):
5741         * mule-wnnfns.c (Fwnn_quit_henkan):
5742         * mule-wnnfns.c (Fwnn_word_toroku):
5743         * mule-wnnfns.c (Fwnn_word_sakujo):
5744         * mule-wnnfns.c (Fwnn_word_use):
5745         * mule-wnnfns.c (Fwnn_hindo_set):
5746         * objects.c:
5747         * objects.c (Fmake_color_instance):
5748         * objects.c (Fmake_font_instance):
5749         * print.c (Fwrite_char):
5750         * process.c:
5751         * process.c (mark_process):
5752         * process.c (print_process):
5753         * process.c (get_process_from_usid):
5754         * process.c (Fprocessp):
5755         * process.c (Fprocess_live_p):
5756         * process.c (Fget_process):
5757         * process.c (Fget_buffer_process):
5758         * process.c (get_process):
5759         * process.c (Fprocess_id):
5760         * process.c (Fprocess_name):
5761         * process.c (Fprocess_command):
5762         * process.c (init_process_io_handles):
5763         * process.c (start_process_unwind):
5764         * process.c (Fstart_process_internal):
5765         * process.c (Fopen_multicast_group_internal):
5766         * process.c (Fset_process_window_size):
5767         * process.c (read_process_output):
5768         * process.c (send_process):
5769         * process.c (Fprocess_tty_name):
5770         * process.c (Fset_process_buffer):
5771         * process.c (Fprocess_buffer):
5772         * process.c (Fprocess_mark):
5773         * process.c (set_process_filter):
5774         * process.c (Fset_process_filter):
5775         * process.c (Fprocess_filter):
5776         * process.c (Fprocess_send_region):
5777         * process.c (Fprocess_send_string):
5778         * process.c (exec_sentinel):
5779         * process.c (Fset_process_sentinel):
5780         * process.c (Fprocess_sentinel):
5781         * process.c (status_notify):
5782         * process.c (Fprocess_status):
5783         * process.c (Fprocess_exit_status):
5784         * process.c (process_send_signal):
5785         * process.c (Fprocess_send_eof):
5786         * process.c (deactivate_process):
5787         * process.c (remove_process):
5788         * process.c (Fdelete_process):
5789         * process.c (kill_buffer_processes):
5790         * process.c (Fprocess_kill_without_query):
5791         * process.c (Fprocess_kill_without_query_p):
5792         * rangetab.c:
5793         * rangetab.c (Fget_range_table):
5794         * rangetab.c (Fput_range_table):
5795         * rangetab.c (Fremove_range_table):
5796         * rangetab.c (Fclear_range_table):
5797         * search.c:
5798         * search.c (Fskip_chars_forward):
5799         * search.c (Fskip_chars_backward):
5800         * search.c (Fskip_syntax_forward):
5801         * search.c (Fskip_syntax_backward):
5802         * search.c (search_command):
5803         * search.c (Freplace_match):
5804         * search.c (Fregexp_quote):
5805         * select.c (Fown_selection_internal):
5806         * select.c (Fselection_owner_p):
5807         * select.c (Fselection_exists_p):
5808         * select.c (Fget_selection_internal):
5809         * specifier.c:
5810         * symbols.c:
5811         * symbols.c (Fintern):
5812         * symbols.c (Fintern_soft):
5813         * symbols.c (Funintern):
5814         * symbols.c (Fapropos_internal):
5815         * symbols.c (Fset_default):
5816         * syntax.c:
5817         * syntax.c (Fsyntax_table_p):
5818         * syntax.c (Fcopy_syntax_table):
5819         * syntax.c (Fset_syntax_table):
5820         * syntax.c (Fchar_syntax):
5821         * syntax.c (syntax_match):
5822         * syntax.c (Fmatching_paren):
5823         * syntax.c (Fforward_word):
5824         * syntax.c (scan_lists):
5825         * syntax.c (Fscan_lists):
5826         * syntax.c (Fscan_sexps):
5827         * syntax.c (Fparse_partial_sexp):
5828         * toolbar.c (Fcheck_toolbar_button_syntax):
5829         * tooltalk.doc:
5830         * window.c:
5831         * window.c (Fwindowp):
5832         * window.c (Fwindow_live_p):
5833         * window.c (Fwindow_point):
5834         * window.c (Fdelete_window):
5835         * window.c (Fnext_window):
5836         * window.c (Fprevious_window):
5837         * window.c (Fother_window):
5838         * window.c (window_loop):
5839         * window.c (Fget_lru_window):
5840         * window.c (Fsplit_window):
5841         * window.c (Fenlarge_window):
5842         * window.c (Fenlarge_window_pixels):
5843         * window.c (Fshrink_window):
5844         * window.c (Fshrink_window_pixels):
5845         * window.c (change_window_height):
5846         * window.c (Fwindow_configuration_p):
5847         * window.c (Fcurrent_window_configuration):
5848         * window.h:
5849         * casefiddle.c (casify_object):
5850         * casefiddle.c (Fupcase):
5851         * casefiddle.c (Fdowncase):
5852         * casefiddle.c (Fcapitalize):
5853         * casefiddle.c (Fupcase_initials):
5854         * casefiddle.c (casify_region_internal):
5855         * casefiddle.c (casify_region):
5856         * casefiddle.c (Fupcase_region):
5857         * casefiddle.c (Fdowncase_region):
5858         * casefiddle.c (Fcapitalize_region):
5859         * casefiddle.c (Fupcase_initials_region):
5860         * casefiddle.c (Fupcase_word):
5861         * casefiddle.c (Fdowncase_word):
5862         * casefiddle.c (Fcapitalize_word):
5863         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5864         Replace 0 with '\0' when working with bytes.
5865         Replace initial "(" with "\(" in docstrings.
5866
5867 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5868
5869         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5870
5871         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5872
5873 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5874
5875         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5876
5877 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5878
5879         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5880         correctly.
5881
5882 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5883
5884         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5885         (inhibit_auto_save_session): New variable.
5886         (vars_of_fileio): Declare and initialize them.
5887         * fileio.c (Fdo_auto_save): Don't create session file if
5888         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5889
5890 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5891
5892         * sgiplay.c (play_internal): C++ compilability.
5893         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5894         * callproc.c (Fold_call_process_internal):
5895         Remove unused vars `env', `first'.
5896         * scrollbar.c (update_scrollbar_instance):
5897         #### unused var `current_window'.
5898         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5899         etc. within #ifdef NOT_YET.
5900         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5901         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5902         * specifier.c (specifier_instance):
5903         #### unused var `tag'.
5904         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5905
5906 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5907
5908         * fns.c (Fbutlast):
5909         * fns.c (list_sort):
5910         * fns.c (Ffillarray):
5911         * fns.c (bytecode_nconc2):
5912         * fns.c (Fnconc):
5913         * fns.c (mapcar1):
5914         * fns.c (Fmapconcat):
5915         Be pedantically 64-bit correct.  For the time when someone will
5916         want to have a list with length > 2**32.
5917
5918         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5919         Work around MIPSpro compiler bug.
5920
5921         * process-unix.c (unix_kill_child_process): Add snarky comment.
5922         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5923
5924         * config.h.in: Oops, _getpt ==> _getpty
5925
5926 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5927
5928         * config.h.in:
5929         * regex.c:
5930         Use void*, not char*, as return type of alloca().
5931
5932         * alloc.c (free_marker): Side effect inside assert expression!
5933
5934 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5935
5936         * mule-charset.c (Fset_charset_ccl_program): To check
5937         if the given ccl program is valid, use setup_ccl_program()
5938         instead of CHECK_VECTOR().
5939         (Fmake_charset): Likewise.
5940
5941 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5942
5943         * faces.c (get_extent_fragment_face_cache_index):
5944         Fix cachel.merged_faces memory leak.
5945
5946 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5947
5948         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5949         Reset MSB of octets obtained by DECODE_SJIS
5950         because of the incompatibility with Emacs.
5951         (ccl_driver)<CCL_ENCODE_SJIS>:
5952         Set MSB of octets before passing them to
5953         ENCODE_SJIS because of the incompatibility
5954         with Emacs.
5955
5956 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5957
5958         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5959         (DECLARE_LRECORD): Undo the last change.
5960         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5961
5962 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5963
5964         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5965         the implementation to lrecord_implementations_table.
5966
5967 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5968
5969         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5970         initial value of `lrecord_type_##c_name' and
5971         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5972         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5973         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5974         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5975         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5976
5977 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5978
5979         * miscplay.c (sndcnv8S_2mono):
5980         (sndcnv2monounsigned):
5981         (sndcnvULaw_2linear):
5982         (sndcnv16swap):
5983         Remove implementation-defined behavior.
5984
5985 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5986
5987         * input-method-xlib.c: Warning suppression.
5988
5989 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5990
5991         * mule-ccl.c: Sync up with Emacs 21.0.90.
5992         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5993         Do nothing.
5994         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5995         Likewise.
5996         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5997         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5998         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5999         leading char belongs to official 2-dimensional charset.
6000         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
6001         write the given character as is.  Otherwise,
6002         if it is a multibyte char, convert it by
6003         non_ascii_set_charptr_emchar, then write it.
6004         (CCL_WRITE_STRING): Likewise.
6005         (ccl_get_compiled_code): New function.
6006         (setup_ccl_program): When ccl_prog is invalid,
6007         return -1.
6008         (Fregister_code_conversion_map): New function.
6009         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
6010
6011         * mule-ccl.h: Sync up with Emacs 21.0.90.
6012         (Fregister_ccl_program): export it.
6013
6014         * redisplay-msw.c (separate_textual_runs):
6015         If ccl program is not valid, don't do ccl conversion.
6016
6017         * redisplay-x.c (separate_textual_runs): Ditto.
6018
6019         * file-coding.c (Fmake_coding_system):
6020         When type is ccl and value is vector, register it
6021         with a proper symbol.  And checks whether the
6022         given ccl program is valid.
6023         (mule_decode): When calling ccl_driver, if src indicates
6024         NULL pointer, set an empty string instead.
6025         (mule_encode): Likewise.
6026
6027 2000-10-11  Martin Buchholz  <martin@xemacs.org>
6028
6029         The following large batch of changes gets us back to a state of
6030         C++ compilability.  Extbyte is now a char, which means that
6031         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
6032
6033         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
6034
6035         * sound.c (Fplay_sound): Type correctness.
6036
6037         * select-x.c (hack_motif_clipboard_selection): Type correctness.
6038         (x_get_window_property): Type correctness.
6039         (receive_incremental_selection): unsigned char ==> Extbyte
6040         (selection_data_to_lisp_data): unsigned char ==> Extbyte
6041         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
6042         (Fx_store_cutbuffer_internal): Type correctness.
6043
6044         * process-unix.c (try_to_initialize_subtty): Type correctness.
6045
6046         * objects-x.c (x_print_color_instance): Type correctness.
6047         (x_print_font_instance): Type correctness.
6048         (x_list_fonts): SExtbyte ==> Extbyte.
6049         (valid_x_font_name_p): SExtbyte ==> Extbyte.
6050         (x_find_charset_font): SExtbyte ==> Extbyte.
6051         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
6052         (truename_via_XListFonts): SExtbyte ==> Extbyte.
6053         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
6054         Use bufbyte_strcmp.
6055
6056         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
6057         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
6058         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
6059         (BYTE_C0_P): Use bit ops for char-signedness safety.
6060         (BYTE_C1_P): Use bit ops for char-signedness safety.
6061         (CHARSET_BY_LEADING_BYTE):
6062         (CHARSET_BY_ATTRIBUTES):
6063         Always use inline function.
6064         Use type_checking_assert.
6065         Hide chlook.
6066
6067         * mule-charset.c (non_ascii_charptr_copy_char):
6068         Modify to work with both ASCII and non-ASCII characters.
6069         Improve docs and variable names.
6070         Replace over-clever fall-through switch with a simple loop.
6071         (Lstream_get_emchar_1):
6072         Replace over-clever fall-through switch with a simple loop.
6073
6074         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6075         Warning suppression.
6076
6077         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6078         the return value of Lstream_getc, which could be EOF as well.
6079
6080         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6081
6082         * lisp.h: Make Extbyte a char, not unsigned char, so that external
6083         APIs can be used on Extbytes without casts.  Risky!
6084         (SExtbyte): Remove.
6085         (UExtbyte): Remove.
6086
6087         * input-method-xlib.c (XIM_init_device):
6088         Use Xlib.h instead of IntrinsicP.h.
6089         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6090         which will break in X11R7.
6091         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6092         to call XRegisterIMInstantiateCallback with correct types.
6093
6094         * gui-x.c (button_item_to_widget_value): Type correctness.
6095
6096         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
6097
6098         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6099         (xbm_instantiate_1): Type correctness.
6100         (BUILD_GLYPH_INST):  Type correctness.
6101
6102         * fileio.c (Fsubstitute_in_file_name): Type correctness.
6103
6104         * file-coding.c:
6105         (decode_coding_sjis):
6106         (decode_coding_big5):
6107         (decode_coding_ucs4):
6108         (decode_coding_utf8):
6109         (decode_coding_iso2022):
6110         (decode_coding_no_conversion):
6111         Make all decoding functions take an Extbyte * arg.
6112         (encode_coding_sjis):
6113         (encode_coding_big5):
6114         (encode_coding_ucs4):
6115         (encode_coding_utf8):
6116         (encode_coding_iso2022):
6117         (encode_coding_no_conversion):
6118         Make all encoding functions take a Bufbyte * arg.
6119         Use size_t instead of unsigned int for memory sizes.
6120         Only cast to unsigned char whenever dereferencing Extbyte *.
6121
6122         * doc.c (unparesseuxify_doc_string): Type correctness.
6123
6124         * console-x.c (split_up_display_spec):
6125         Rewrite without using details of internal string representation.
6126         (x_semi_canonicalize_device_connection): Type correctness.
6127
6128         * config.h.in:
6129         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6130         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6131         (HAVE_XFREE386): Removed.
6132
6133         * buffer.h (DEC_CHARPTR): `const' correctness.
6134         (bufbyte_strcmp): New.
6135         (bufbyte_memcmp): New.
6136
6137         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6138
6139         * buffer.h (XCHAR_OR_CHAR_INT):
6140         Always use inline function.
6141         Remove redundant type checking assert() - XINT will abort quite nicely.
6142
6143 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6144
6145         * search.c (Freplace_match): Set newtext to an empty string.
6146
6147 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6148
6149         * s/decosf1-3.h: Remove #include of stropts.h
6150         * s/ptx.h: Remove #include of stropts.h
6151         * s/usg5-4.h: Remove #include of stropts.h
6152         * sysproc.h:
6153         * config.h.in:
6154         Use stropts.h, not sys/stropts.h.
6155         Use strtio.h, not sys/strtio.h.
6156
6157 2000-10-04  Martin Buchholz <martin@xemacs.org>
6158
6159         * XEmacs 21.2.36 is released.
6160
6161 2000-09-21  Andy Piper  <andy@xemacs.org>
6162
6163         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6164         changes still involve copying the widget tree.
6165         (update_widget_face): make sure a change is register in the widget
6166         tree. Call update_tab_widget_face appropriately.
6167         (update_tab_widget_face): ditto.
6168         (x_tab_control_redisplay): make sure non-structural changes still
6169         involve copying the widget tree.
6170
6171 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6172
6173         * lread.c (locate_file): Check the path element is non-nil.
6174
6175 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6176
6177         * lisp.h: Warning suppression for SCO compilers.
6178
6179         * redisplay-tty.c (reset_tty_modes): Fix crash.
6180         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6181
6182 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6183
6184         Big signal/process handling overhaul.  Bugs fixed:
6185         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6186         M-x comint-kill-subjob should work for both values nil and t of
6187         process-connection-type. It was broken on most platforms.
6188         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6189         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6190         * process-unix.c: Signal/Process handling overhaul.
6191         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6192         (allocate_pty): Use all available modern methods of allocating
6193         ptys, falling back to old style BSD allocation as a last resort.
6194         Use allegedly more secure Unix98 pty allocation by default.
6195         (allocate_pty_the_old_fashioned_way): New. the last resort.
6196         (unix_create_process): Push ptem, ldterm, ttcompat where
6197         available.  Autoconfiscate.
6198         (try_to_initialize_subtty): New.
6199         (unix_kill_child_process): Proper signal handling for ptys on most
6200         platforms, using special knowledge of AIX, BSD, etc...
6201         (unix_create_process): Always disconnect_controlling_terminal() for
6202         subprocesses, whether using ptys or not.
6203         * process.h: Remove old getpt-dependent PTY code.
6204         * process.c (Fprocess_send_signal): New, obvious generic function.
6205         (decode_signal): New.
6206         (Finterrupt_process):
6207         (Fkill_process):
6208         (Fquit_process):
6209         (Fstop_process):
6210         (Fcontinue_process):
6211         (Fsignal_process): Use decode_signal.
6212         (process_send_signal):
6213         Many docstring corrections.
6214         Allow any signal to be sent to a process object.
6215         * config.h.in: Add symbols for big signal/process overhaul.
6216         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6217         * sysproc.h: Include process-related headers, where available:
6218         sys/stropts.h sys/strtio.h pty.h libutil.h
6219         * s/irix4-0.h:
6220         * s/irix5-0.h:
6221         * s/cygwin32.h:
6222         * s/gnu.h:
6223         * s/linux.h:
6224         * s/hpux.h:
6225         * s/aix3-1.h:
6226         Remove old S&M pty stuff.
6227         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6228         * systty.h: Simplify cpp hackery, improve comments.
6229         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6230
6231         * editfns.c (Fformat_time_string):
6232         Be a little more paranoid with the return value of ctime.
6233
6234         * fileio.c (check_executable):
6235         (check_writable):
6236         Use symbolic constants X_OK, W_OK.
6237
6238         * console-x.c (split_up_display_spec): Fix a warning.
6239
6240 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6241
6242         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6243         * ntproc.c (sys_spawnve): make_string ==> build_string
6244         Small clarity improvements.
6245
6246 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6247
6248         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6249
6250         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6251
6252         * config.h.in (HAVE_STRCASECMP): Remove.
6253
6254 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6255
6256         * redisplay-output.c (redisplay_output_pixmap):
6257         Cleaner and possibly more 64-bit correct code.
6258
6259 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6260
6261         * dumper.c (pdump_load_finish): move restoration of
6262         `noninteractive1' to emacs.c (main_1).
6263         * emacs.c (main_1): protect LISP-visible command-line flags
6264         from pdump_load().
6265
6266 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6267
6268         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6269         DUMP_TARGET instead of literal program names.
6270
6271 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6272
6273         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6274
6275 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6276
6277         * *: Spelling mega-patch
6278
6279 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6280
6281         * fns.c (bad_bad_turtle):
6282         Delete "Eek!" comment, since we fixed the bug to which it refers.
6283
6284 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6285
6286         * alloca.c: Replace REGISTER with register.
6287
6288 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6289
6290         * file-coding.c (ucs_to_char): Use countof.
6291
6292 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6293
6294         * file-coding.c: (ucs_to_char):
6295         (complex_vars_of_file_coding):
6296         Use countof instead of sizeof.
6297         Use CHECK_NATNUM instead of CHECK_INT.
6298
6299         * sysdep.c (strcasecmp): Remove.
6300         * device-x.c (ascii_strcasecmp): New.
6301         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6302         Avoid using non-standard non-portable strcasecmp.
6303
6304 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6305
6306         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6307         * font-lock.c: remove reference to emacsfns.h.
6308         * search.c: small doc improvement.
6309         * event-Xt.c: correct file names in comments.
6310         * console-x.h Correct file names in comments.
6311         * frame.c: Correct file names in comments.
6312         * event-stream.c: remove Energize from comments.
6313
6314 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6315
6316         * symeval.h (DEFERROR_STANDARD):
6317         (DEFERROR):
6318         (DEFSYMBOL):
6319         (DEFSYMBOL_NO_DUMP):
6320         (DEFSYMBOL_MULTIWORD_PREDICATE):
6321         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6322         (DEFKEYWORD):
6323         The construct &##name is not sensible C.
6324         Fixes compilation errors with Unixware native compiler.
6325
6326 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6327
6328         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6329         (next_frame_internal): Removed.  We now just have next_frame.
6330         (next_frame):
6331         Write a simpler and cleaner one-pass algorithm.
6332         Remove called_from_delete_device arg and #ifdefed-out code.
6333         (previous_frame):
6334         Renamed from prev_frame.  Update callers.
6335         Cleaned up to have an analogous implementation to next_frame.
6336         (other_visible_frames_internal): Remove the
6337         called_from_delete_device bogus arg, and hence, remove this
6338         function.  Just use other_visible_frames().
6339
6340         * window.c (Fnext_window):
6341         Prettify docstring.
6342         Since next_frame() is guaranteed to return a frame, remove check
6343         for nil inserted in previous patch.
6344         (Fprevious_window):
6345         Prettify docstring.
6346         Make code look more like Fnext_window.
6347         (window_loop):
6348         Respect the `console' arg when iterating through windows.
6349         Fixes bug: (get-buffer-window buffer t device) not respecting
6350         the `device' arg.
6351         This function needs more work, as others have pointed out.
6352
6353         * frame.h: Rename prev_frame to previous_frame.
6354         device_matches_console_spec no longer takes a `frame' arg.
6355
6356         * s/gnu.h:
6357         * s/linux.h:
6358         * s/hpux.h:
6359         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6360         From "Golubev I. N." <gin@mo.msk.ru>.
6361
6362         * make-src-depend: Fix typo.
6363
6364 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6365
6366         * window.c (Fnext_window):
6367         next_frame() might return nil, not a frame.
6368         Fixes this crash:
6369         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6370
6371         * frame.c (next_frame_internal):
6372         We've passed a frame if we've passed its device.
6373         Fixes this crash:
6374         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6375 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6376
6377 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6378
6379         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6380         Allow option to suppress accelerators in menu/dialog items.
6381         (populate_or_checksum_helper): Pass dialog title through above.
6382
6383 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6384
6385         * event-msw.c (mswindows_key_to_emacs_keysym):
6386         Add "pause" key, fix "menu" key.
6387
6388 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6389
6390         * eval.c (reinit_vars_of_eval):
6391         Increase max_lisp_eval_depth to 1000,
6392         required for thai-xtis.el to byte-compile under some circumstances.
6393
6394 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6395
6396         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6397         From Kenichi Handa.
6398
6399 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6400
6401         * make-src-depend: Make the generated Makefiles smaller.
6402
6403         * s/hpux.h (SETUP_SLAVE_PTY):
6404         Provide a %d in the format string for the errno argument.
6405
6406         * editfns.c (Ftemp_directory):
6407         Warning fix.
6408         Avoid buffer overrun on very long file name.
6409
6410         * input-method-xlib.c (XIM_init_device):
6411         6th parameter of XRegisterIMInstantiateCallback has different
6412         pointer types on different OSes, so simply cast to (void *).
6413
6414         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6415
6416         * sysdll.c (dll_open):
6417         shl_load will hang hard if passed a NULL filename.
6418         Simply return NULL for compatibility with dlopen.
6419         * sysdll.c: Conform to XEmacs coding standards.
6420
6421         * sysdep.c (get_pty_max_bytes):
6422         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6423
6424 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6425
6426         * tooltalk.c: Add #include <syssignal.h>
6427
6428 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6429
6430         * s/hpux.h: Don't use undefined function sigunblock().
6431
6432 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6433
6434         * config.h.in: Add HAVE_BALLOON_HELP.
6435         * emacs.c: Use HAVE_BALLOON_HELP.
6436         * Makefile.in.in (x_objs):
6437         Make Balloon Help conditional on finding shape.h.
6438
6439 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6440
6441         * syntax.c (regex_emacs_buffer_p): New variable.
6442         * syntax.h (regex_emacs_buffer_p): extern.
6443         * search.c (looking_at_1):
6444         (string_match_1):
6445         (fast_string_match):
6446         (search_buffer): Set regex_emacs_buffer_p.
6447         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6448         when before_dot, at_dot, after_dot.
6449
6450 2000-08-23  Andy Piper  <andy@xemacs.org>
6451
6452         * gui-x.c (popup_selection_callback): Only set action_occurred
6453         when we really have an image instance.
6454         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6455
6456 2000-08-23  Andy Piper  <andy@xemacs.org>
6457
6458         * gui-msw.c (mswindows_handle_gui_wm_command): set
6459         action_occurred.
6460         * gui-x.c (popup_selection_callback): ditto.
6461
6462         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6463         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6464         (struct Lisp_Image_Instance): add action_occurred flag.
6465
6466         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6467         (image_instance_changed): ditto.
6468         (reset_frame_subwindow_instance_cache): only unmap windows - do
6469         not remove them from the cache also.
6470
6471         * glyphs-widget.c (tab_control_update): better debug.
6472         (progress_gauge_update): ditto.
6473         (layout_update): ditto.
6474         (layout_instantiate): ditto.
6475         (tab_control_order_only_changed): cope with null pending items.
6476
6477         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6478         debug. Force selection of an item when an action occurred. Cope
6479         with null pending_items.
6480         (mswindows_progress_gauge_redisplay): better debug.
6481         * glyphs-x.c (x_tab_control_redisplay): ditto.
6482
6483         * redisplay.c (redisplay_frame): reset the frame cache if the
6484         frame is garbaged.
6485
6486         * window.c (Fset_window_configuration): potentially re-enable
6487         frame cache reset.
6488         (window_unmap_subwindows): need to finalize instances here since
6489         it is only used in mark_window_as_deleted.
6490
6491 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6492
6493         * nas.c (SndOpenDataForReading):
6494         nas.c (WaveOpenDataForReading):
6495         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6496         Somehow escaped from the 2000-08-14 patch.
6497
6498 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6499
6500         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6501         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6502
6503 2000-08-21  Andy Piper  <andy@xemacs.org>
6504
6505         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6506         window if it is not already displayed.
6507
6508         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6509         it is not already displayed.
6510
6511         * window.c (Fset_window_configuration): don't reset the frame
6512         cache.
6513
6514         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6515         instances from the frame cache if we are actually finalizing them.
6516         (reset_frame_subwindow_instance_cache): reset frame cache only
6517         after unmapping everything.
6518         (map_subwindow): set displayed flag after mapping.
6519
6520 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6521
6522         * data.c (indirect_function):
6523         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6524
6525         * eval.c (function_argcount):
6526         Use original function when signaling errors.
6527
6528 2000-08-18  Andy Piper  <andy@xemacs.org>
6529
6530         * frame.c (delete_frame_internal): use new
6531         free_frame_subwindow_instances name.
6532
6533         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6534         (add_tab_item): make return type correct.
6535         (mswindows_tab_control_instantiate): assert index of tab.
6536         (mswindows_tab_control_redisplay): Re-code to use
6537         gui_item_equal_sans_selected and gui_item_list_find_selected.
6538
6539         * glyphs-widget.c (tab_control_update): Correct comment.
6540
6541         * window.c (window_unmap_subwindows): use new
6542         unmap_subwindow_instance_cache_mapper.
6543         (window_unmap_subwindows_cache_mapper): deleted.
6544         (Fset_window_configuration): comparisons should now be with
6545         EQ. Preserve the subwindow instance cache across configuration
6546         changes.
6547         (allocate_window): ditto.
6548         (make_dummy_parent): ditto.
6549
6550         * glyphs.c (free_frame_subwindow_instances): rename from
6551         free_frame_subwindow_instance_cache. finalize all instances rather
6552         than just those in the display cache.
6553         (finalize_all_subwindow_instances): walk windows unmapping and
6554         finalizing subwindows.
6555         (unmap_subwindow_instance_cache_mapper): moved from
6556         window.c. Allow finalization as well as unmapping.
6557
6558         * gui.c (gui_item_list_find_selected): new function.
6559
6560         * gui.h (gui_item_list_find_selected): declare.
6561
6562         * glyphs-x.c (x_tab_control_redisplay): pick tab
6563         explicitly. Re-code to use gui_item_equal_sans_selected and
6564         gui_item_list_find_selected.
6565
6566         * glyphs-x.h: add lwlib-utils.h
6567
6568         * buffer.c (Frecord_buffer): undo previous change.
6569
6570 2000-08-09  Vin Shelton  <acs@xemacs.org>
6571
6572         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6573         possible.  Create temporary files more securely.  The patch was
6574         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6575         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6576         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6577         for details.
6578
6579 2000-08-07  Ben Wing  <ben@xemacs.org>
6580
6581         * getloadavg.c: remove duplicate (and windows-breaking)
6582         includes of fcntl.h and sys/file.h.
6583
6584         * nt.c: remove duplicate getloadavg() definition.
6585
6586         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6587         encodings.
6588
6589 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6590
6591         * eval.c (function_argcount): If function needs to be autoloaded
6592         actually use the loaded definition.
6593         GCPRO function.
6594
6595 2000-08-05  Ben Wing  <ben@xemacs.org>
6596
6597         * getloadavg.c: add prototype for getloadavg().  remove
6598         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6599         of the code).  remove duplicate header includes.
6600
6601         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6602
6603         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6604         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6605         useful load average.
6606
6607         * alloc.c (reinit_alloc_once_early): removed references to
6608         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6609         the lisp vars are the only things referencing the malloc_sbrk_*
6610         vars, and they were already if 0'd out.  these vars only exist
6611         in the older malloc.c, which is basically unused, and they're
6612         only for informational purposes.
6613
6614         * m\*.h: removed useless VIRT_ADDR_VARIES.
6615
6616         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6617
6618 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6619
6620         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6621         color if the image is a mono pixmap.
6622
6623 2000-07-30  Ben Wing  <ben@xemacs.org>
6624
6625         * Makefile.in.in (release):
6626         Remove stray @.
6627
6628         * buffer.c (directory_is_current_directory):
6629         * dired-msw.c (mswindows_get_files):
6630         * dired.c:
6631         * dired.c (Fdirectory_files):
6632         * dired.c (file_name_completion_stat):
6633         * dired.c (Ffile_attributes):
6634         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6635         preprocessor tricks, to avoid problems on some machines
6636         (e.g. SCO).
6637
6638         * callproc.c (egetenv): GC docs.
6639
6640         * console-msw.h:
6641         * console-msw.h (struct mswindows_dialog_id):
6642         * lrecord.h (lrecord_type):
6643         New object for use with MSW dialogs.
6644
6645         * console.h (struct console_methods):
6646         New enable/disable frame methods, for proper modal dialogs.
6647
6648         * device-msw.c (msprinter_default_printer): Fix to follow
6649         proper Mule conventions.
6650
6651         * device-msw.c:
6652         * device-msw.c (signal_open_printer_error):
6653         * device-msw.c (msprinter_init_device):
6654         * device-msw.c (ensure_not_printing):
6655         * device-msw.c (plist_get_margin):
6656         * device-msw.c (Fmsprinter_select_settings):
6657         * device-msw.c (finalize_devmode):
6658         * device-msw.c (Fmsprinter_settings_despecialize):
6659         * device-msw.c (signal_enum_priner_error):
6660         * extents.c (decode_extent):
6661         * extents.c (decode_map_extents_flags):
6662         * extents.c (decode_extent_at_flag):
6663         * extents.c (Fextent_at):
6664         * extents.c (Fextents_at):
6665         * extents.c (symbol_to_glyph_layout):
6666         [[[[2]]]] Use structured errors.
6667
6668         * dialog-msw.c:
6669         * dialog-msw.c (mswindows_is_dialog_msg):
6670         * dialog-msw.c (mark_mswindows_dialog_id):
6671         * dialog-msw.c (dialog_proc):
6672         * dialog-msw.c (handle_question_dialog_box):
6673         * dialog-msw.c (syms_of_dialog_mswindows):
6674         Define new object to clean up marking; use it as a dialog identifier.
6675         Call new delete-dialog-box-hook.
6676
6677         * dialog-x.c (dbox_selection_callback):
6678         * dialog-x.c (dbox_descriptor_to_widget_value):
6679         * dialog-x.c (x_make_dialog_box_internal):
6680         Call new delete-dialog-box-hook.
6681         Return an id.
6682
6683         * dialog.c:
6684         * dialog.c (syms_of_dialog):
6685         * dialog.c (vars_of_dialog):
6686         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6687
6688         * eval.c:
6689         * eval.c (signal_call_debugger):
6690         when noninteractive, output stack traces on the console instead
6691         of in a (never-seen) buffer.
6692
6693         * eval.c (signal_type_error):
6694         * eval.c (invalid_argument_2):
6695         * lisp.h:
6696         new funs for use w/structured errors.
6697
6698         * event-Xt.c:
6699         * event-Xt.c (x_to_emacs_keysym):
6700         * event-Xt.c (describe_event):
6701         * event-Xt.c (emacs_Xt_event_handler):
6702         * event-Xt.c (vars_of_event_Xt):
6703         * event-msw.c:
6704         * event-msw.c (mswindows_wnd_proc):
6705         * event-msw.c (vars_of_event_mswindows):
6706         rename {x,mswindows}-debug-events to debug-{}-events for
6707         consistency with other debug-foo variables.
6708
6709         * event-stream.c:
6710         document next-event more clearly.
6711
6712         * fileio.c (Ffile_name_directory):
6713         * fileio.c (Ffile_name_nondirectory):
6714         * fileio.c (Funhandled_file_name_directory):
6715         * fileio.c (file_name_as_directory):
6716         * fileio.c (Ffile_name_as_directory):
6717         * fileio.c (directory_file_name):
6718         * fileio.c (Fdirectory_file_name):
6719         * fileio.c (Fmake_temp_name):
6720         * fileio.c (Ffile_truename):
6721         * fileio.c (Fsubstitute_in_file_name):
6722         * fileio.c (expand_and_dir_to_file):
6723         * fileio.c (barf_or_query_if_file_exists):
6724         * fileio.c (check_executable):
6725         * fileio.c (Ffile_exists_p):
6726         * fileio.c (Ffile_writable_p):
6727         * fileio.c (Ffile_directory_p):
6728         * fileio.c (Ffile_regular_p):
6729         * fileio.c (Ffile_modes):
6730         * fileio.c (Ffile_newer_than_file_p):
6731         * fileio.c (Fverify_visited_file_modtime):
6732         * fileio.c (Fset_visited_file_modtime):
6733         * fileio.c (auto_save_1):
6734         (1). (2).
6735         fix up gcpro's.
6736
6737         * frame-msw.c:
6738         * frame-msw.c (mswindows_init_frame_1):
6739         * frame-msw.c (mswindows_enable_frame):
6740         * frame-msw.c (error_frame_unsizable):
6741         * frame-msw.c (msprinter_init_frame_1):
6742         * frame-msw.c (msprinter_init_frame_3):
6743         * frame-msw.c (console_type_create_frame_mswindows):
6744         (2).
6745         implement new enable/disable frame methods.
6746
6747         * frame-x.c:
6748         * frame-x.c (x_enable_frame):
6749         * frame-x.c (console_type_create_frame_x):
6750         implement new enable/disable frame methods.
6751
6752         * frame.c:
6753         * frame.c (Fdisable_frame):
6754         * frame.c (syms_of_frame):
6755         * frame.h (struct frame):
6756         implement new enable/disable frame methods/functions.
6757
6758         * general-slots.h:
6759         add initial-focus.
6760
6761         * glyphs-msw.c (mswindows_widget_instantiate):
6762         comment that initial-focus should be implemented.
6763
6764         * glyphs-widget.c:
6765         * glyphs-widget.c (check_valid_instantiator):
6766         * glyphs-widget.c (check_valid_orientation):
6767         * glyphs-widget.c (check_valid_tab_orientation):
6768         * glyphs-widget.c (check_valid_justification):
6769         * glyphs-widget.c (check_valid_border):
6770         * glyphs-widget.c (check_valid_callback):
6771         * glyphs-widget.c (check_valid_int_or_function):
6772         * glyphs-widget.c (check_valid_string_or_vector):
6773         * glyphs-widget.c (check_valid_item_list_1):
6774         * glyphs-widget.c (widget_validate):
6775         * glyphs-widget.c (combo_box_validate):
6776         * glyphs-widget.c (widget_instantiate):
6777         * glyphs-widget.c (syms_of_glyphs_widget):
6778         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6779         * glyphs-widget.c (image_instantiator_combo_box):
6780         * glyphs-widget.c (image_instantiator_scrollbar):
6781         * glyphs-widget.c (image_instantiator_tab_control):
6782         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6783         (2).
6784         support (unimplemented) keyword initial-focus.
6785         reindent long macros.
6786
6787         * glyphs-x.c (x_redisplay_widget):
6788         * glyphs-x.c (x_button_instantiate):
6789         * glyphs-x.c (x_button_redisplay):
6790         * glyphs-x.c (x_progress_gauge_instantiate):
6791         * glyphs-x.c (x_edit_field_instantiate):
6792         * glyphs-x.c (x_combo_box_instantiate):
6793         * glyphs-x.c (x_tab_control_instantiate):
6794         * glyphs-x.c (x_label_instantiate):
6795         * gui-x.c:
6796         * gui-x.c (button_item_to_widget_value):
6797         * gui-x.c (gui_items_to_widget_values_1):
6798         * gui-x.c (gui_item_children_to_widget_values):
6799         * gui-x.c (gui_items_to_widget_values):
6800         * gui-x.h:
6801         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6802         add new flag to gui-parsing routines to indicate whether
6803         accelerator specs should be supported.
6804
6805         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6806
6807         * glyphs.h (struct Lisp_Image_Instance):
6808         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6809         add initial-focus flag.
6810
6811         * gui.c:
6812         * gui.c (syms_of_gui):
6813         * gui.c (vars_of_gui):
6814         clean up menu-no-selection-hook.
6815
6816         * gui.h:
6817         support delete-dialog-box-hook.
6818
6819         * lread.c (Fload_internal):
6820         * lread.c (locate_file_in_directory_mapper):
6821         (1).
6822
6823         * lrecord.h:
6824         * lrecord.h (struct toolbar_button):
6825         * lrecord.h (syms_of_toolbar):
6826         document how to create a new object.
6827
6828         * menubar-msw.c (mswindows_char_is_accelerator):
6829         may be called on frames w/o menus.
6830
6831         * menubar.c (vars_of_menubar):
6832         clean up :filter docs.
6833
6834         * nt.c (readdir):
6835         * ntproc.c:
6836         (1).
6837
6838         * process-nt.c:
6839         * process-nt.c (validate_signal_number):
6840         * process-nt.c (signal_cannot_launch):
6841         * process-nt.c (nt_create_process):
6842         * process-nt.c (nt_send_process):
6843         * process-nt.c (nt_kill_child_process):
6844         * process-nt.c (nt_open_network_stream):
6845         * process-nt.c (syms_of_process_nt):
6846         (2).
6847         delete quote-handling.  call new lisp code that does it better.
6848
6849         * process-unix.c (connect_to_file_descriptor):
6850         * process-unix.c (allocate_pty):
6851         * process-unix.c (unix_send_process):
6852         * process-unix.c (unix_kill_child_process):
6853         * process-unix.c (unix_open_network_stream):
6854         * process-unix.c (unix_open_multicast_group):
6855         (1). (2).
6856
6857         * process.c:
6858         * process.c (Fstart_process_internal):
6859         (2).  need to canonicalize process path even if absolute.
6860
6861         * select-msw.c (symbol_to_ms_cf):
6862         * select-msw.c (ms_cf_to_symbol):
6863         * select-msw.c (cf_is_autofreed):
6864         * select-msw.c (mswindows_destroy_selection):
6865         * select.c:
6866         * select.c (syms_of_select):
6867         * select.h:
6868         support dibv5, fix bugs. (from Mike Alexander)
6869
6870         * select.c (Fget_selection_internal):
6871         * select.c (select_convert_out):
6872
6873         * sysdep.c:
6874         * sysdep.c (xemacs_stat):
6875         renamed.
6876
6877         * sysdep.c (mkdir):
6878         * sysdep.c (rmdir):
6879         but keep original stat() here because we provide encapsulation
6880         around these funs.
6881
6882         * sysfile.h:
6883         * sysfile.h (fstat):
6884         remove stat garbage.
6885
6886         * syswindows.h:
6887         fix X/MSW conflict.
6888         don't include tchar.h.  it's inappropriate because it makes
6889         compile-time distinctions when we want runtime distinctions.
6890         (we provide our own tchar replacements)
6891
6892         * toolbar.c:
6893         use default object printer for toolbar-button.
6894
6895         * unexcw.c:
6896         make sure we don't encapsulate.
6897
6898         * window.c (vars_of_window):
6899         emphasize that temp-buffer-show-hook is obsolete.
6900
6901 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6902
6903         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6904         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6905
6906         * events.c (Fevent_timestamp_lessp):
6907         Not 64-bit clean.  Use EMACS_INT, not int.
6908
6909 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6910
6911         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6912         unsigned int and changed the last enum to
6913         lrecord_type_last_built_in_type.
6914         (lrecord_implementations_table): changed prototype to know how
6915         long the array is supposed to be.
6916         (lrecord_type_count): new unsigned int to keep track of the
6917         current number of lisp lrecord types.
6918         (DEFINE_EXTERNAL_LRECORD):
6919         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6920         dynamic-modules to declare new lisp types. They are the same
6921         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6922         int for each new type, and increment lrecord_type_count by 1.
6923
6924         * alloc.c (lrecord_implementations_table): Changed to reference
6925         lrecord_type_last_built_in_type for the size of the array.
6926         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6927
6928 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6929
6930         * glyphs.h (check_valid_item_list): Renamed from
6931         check_valid_item_list_1.
6932
6933 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6934
6935         * select.c (Qselect_coerce): New.
6936         * select.c (Vselection_coercion_alist): New.
6937         * select.c (syms_of_select): Declare.
6938         * select.c (get-selection-internal): Use it.
6939         Use the new select-coerce functionality.
6940
6941         * select.c (select_coerce): New.
6942         * select.h (select_coerce): Declare.
6943         New function to coerce one type of data into another.
6944
6945 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6946
6947         * callproc.c (Fcall_process_internal):
6948         (Fcall_process_internal):
6949         * process-unix.c (unix_create_process):
6950         Save and restore the value of errno, so that error messages are accurate.
6951
6952 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6953
6954         * elhash.c (print_hash_table):
6955         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6956         Prettify docstrings and indentation.
6957
6958 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6959
6960         * window.c (Fwindow_pixel_edges): Subtract frame border and
6961         gutter size.
6962
6963 2000-07-31  Andy Piper  <andy@xemacs.org>
6964
6965         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6966         will acknowledge the change.
6967
6968         * glyphs.h: declare tab_control_order_only_changed.
6969
6970         * glyphs-x.c (x_tab_control_redisplay): use
6971         tab_control_order_only_changed.
6972
6973         * glyphs-widget.c (tab_control_order_only_changed): new function.
6974
6975         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6976         tab_control_order_only_changed.
6977
6978         * gui.c (gui_item_equal_sans_selected): new function.
6979         (gui_item_equal): use it.
6980
6981         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6982         :properties in favor of :items..
6983
6984         * glyphs-widget.c (check_valid_item_list): rename from
6985         check_valid_item_list_1.
6986         (check_valid_item_list_1): renamed.
6987         (combo_box_validate): deprecate :properties in favor of :items.
6988         (widget_instantiate): ditto.
6989         (tab_control_update): ditto.
6990         (image_instantiator_combo_box): ditto.
6991         (image_instantiator_tree_view): ditto.
6992         (image_instantiator_tab_control): ditto.
6993         (layout_post_instantiate): remove dead code.
6994
6995         * print.c (debug_print_no_newline): only write to debugger if in
6996         WIN32_NATIVE.
6997
6998         * elhash.c (Fmake_hash_table): update doc string.
6999
7000         * event-msw.c (mswindows_wnd_proc): don't allow processing of
7001         messages whilst in GC. This at least stops XEmacs crashing but has
7002         the potential for wierd behaviour.
7003
7004 2000-07-31  Martin Buchholz  <martin@xemacs.org>
7005
7006         * config.h.in:
7007         Make existence of s&m files optional.
7008
7009         * s/bsd386.h: Remove HAVE_GETLOADAVG.
7010         * s/freebsd.h: Remove HAVE_GETLOADAVG.
7011         * s/gnu.h: Remove HAVE_GETLOADAVG.
7012         * s/netbsd.h: Remove HAVE_GETLOADAVG.
7013         * s/sol2.h: Remove HAVE_GETLOADAVG.
7014         * lisp.h: Remove getloadavg() declaration.
7015         * fns.c:
7016         Include <sys/loadavg.h> if available.
7017         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
7018         * config.h.in:  Group together getloadavg()-related macros.
7019         Use only configure-time tests to detect getloadavg().
7020
7021 2000-07-30  Martin Buchholz  <martin@xemacs.org>
7022
7023         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
7024
7025 2000-07-25  Andy Piper  <andy@xemacs.org>
7026
7027         * syswindows.h: add tchar.h for native builds.
7028
7029         * frame.c (syms_of_frame): remove set-glyph-image.
7030
7031         * general-slots.h: add Qset_glyph_image.
7032
7033         * glyphs-widget.c (layout_update): add domain arg to
7034         set-glyph-image.
7035         (syms_of_glyphs_widget): remove set-glyph-image.
7036
7037 2000-07-23  Ben Wing  <ben@xemacs.org>
7038
7039         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
7040         Vpopup_frame_list.
7041
7042 2000-07-22  Andy Piper  <andy@xemacs.org>
7043
7044         * symsinit.h: add syms_of_win32().
7045
7046         * gui-msw.c (syms_of_gui_mswindows): remove
7047         Fmswindows_shell_execute.
7048         (Fmswindows_shell_execute): moved to win32.c.
7049
7050         * emacs.c (main_1): add syms_of_win32 ().
7051
7052         * win32.c (init_potentially_nonexistent_functions): rewrite in
7053         compiler-friendly terms.
7054         (Fmswindows_shell_execute): move here from gui-msw.c.
7055         (syms_of_win32): new.
7056
7057         * device-msw.c (Fmswindows_printer_list): clean up args to
7058         EnumPrinters.
7059         Don't include tchar under cygwin or mingw.
7060         (msprinter_default_printer): make cygwin-friendly.
7061
7062 2000-07-21  Andy Piper  <andy@xemacs.org>
7063
7064         * glyphs-widget.c (image_instantiator_tree_view): use tab
7065         control's update function.
7066         (layout_property): new function. Retrieve items.
7067
7068         * glyphs-msw.c (mswindows_tree_view_redisplay): new
7069         function. Re-populate the tree view from the pending items.
7070
7071         * glyphs.c (instantiate_image_instantiator): Make sure the domain
7072         is designated the parent if the domain is an image instance. This
7073         is needed so that dirtiness can be cascade up the hierarchy and
7074         thus for layout children to be redisplayed correctly.
7075         (allocate_image_instance): rename glyph -> parent.
7076
7077         * redisplay.h: change redisplay_output_layout signature.
7078
7079         * redisplay-msw.c (mswindows_output_display_block): use domain
7080         arg.
7081
7082         * redisplay-x.c (x_output_display_block): use domain arg.
7083
7084 2000-07-10  Andy Piper  <andy@xemacs.org>
7085
7086         * window.c (Fset_window_configuration): add comment.
7087
7088         * redisplay-output.c (compare_runes):
7089         (redisplay_output_subwindow): redisplay rather than update subwindow.
7090         (redisplay_output_layout): ditto.
7091
7092         * redisplay-msw.c (mswindows_frame_output_end):
7093         (mswindows_frame_output_end): make defer window pos optional.
7094
7095         * lisp.h: add Flast.
7096
7097         * glyphs.h (struct image_instantiator_methods): add dest_mask top
7098         normalize method. Change update method to be for changed
7099         instantiators. Add redisplay method. Change signature of layout
7100         method.
7101         (struct Lisp_Image_Instance): add instantiator.
7102         (IMAGE_INSTANCE_INSTANTIATOR): new.
7103         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7104         (XIMAGE_INSTANCE_INSTANTIATOR): new.
7105         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7106
7107         * glyphs.c:
7108         (find_instantiator_differences): new function.
7109         (Fset_instantiator_property): new convenience function.
7110         (check_image_instance_structure): strictly check for vector
7111         instantiators.
7112         (normalize_image_instantiator): make non-static.
7113         (instantiate_image_instantiator): pass on dest_mask and use new
7114         signatures for image_instance_layout and friends.
7115         (mark_image_instance): mark the instantiator. Mark the subwindow
7116         face not the widget face.
7117         (image_instance_equal): add instantiator.
7118         (image_instance_hash): ditto.
7119         (allocate_image_instance): ditto.
7120         (Fset_image_instance_property): removed.
7121         (Fimage_instance_file_name): ditto.
7122         (Fcolorize_image_instance): ditto.
7123         (image_instance_layout): add offsets to be set.
7124         (update_image_instance): new function. update an image instance
7125         from its changed instantiator.
7126         (inherit_normalize): add dest_mask.
7127         (xbm_normalize): ditto.
7128         (xface_normalize): ditto.
7129         (xpm_normalize): ditto.
7130         (text_update): set_property -> update.
7131         (image_instantiate): use the glyph identity as a hash key, not the
7132         instantiator.
7133         (glyph_width): use new image_instance_layout signature.
7134         (glyph_ascent): ditto.
7135         (glyph_descent): ditto.
7136         (glyph_height): ditto.
7137         (glyph_query_geometry): ressurrect.
7138         (glyph_layout): ditto.
7139         (redisplay_subwindow): update -> redisplay.
7140         (syms_of_glyphs): add Fset_instantiator_property.
7141         (image_instantiator_format_create): set_property -> update.
7142
7143         * glyphs-x.c:
7144         (autodetect_normalize): add dest_maks to signature.
7145         (x_redisplay_subwindow): update -> redisplay.
7146         (x_redisplay_widget): ditto.
7147         (x_button_redisplay): ditto.
7148         (x_progress_gauge_redisplay): ditto.
7149         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7150         stacking order.
7151         (console_type_create_glyphs_x): update -> redisplay.
7152         (image_instantiator_format_create_glyphs_x): ditto.
7153
7154         * glyphs-widget.c:
7155         (check_valid_instantiator): disallow glyphs in the instantiator,
7156         they must now be vectors.
7157         (check_valid_instantiator_list): ditto.
7158         (glyph_instantiator_to_glyph): use internal symbol rather than
7159         intern.
7160         (widget_update): renamed from widget_set_property. Call cascaded
7161         update methods.
7162         (redisplay_widget): renamed from update_widget.
7163         (widget_layout): image_instance_layout now takes position as well
7164         as size.
7165         (widget_normalize): ditto.
7166         (widget_instantiate): ditto.
7167         (tab_control_query_geometry) ditto.:
7168         (tab_control_update): renamed from tab_control_set_property.
7169         (progress_gauge_update): set_property -> update.
7170         (layout_normalize): rewrite so that child instantiators are
7171         normalized also.
7172         (layout_update): new function. Create glyphs from the normalized
7173         children and cope with any other layout keywords. We do not
7174         instantiate children here that will be take care of by
7175         redisplay_output_layout.
7176         (layout_instantiate): call layout_update and not much else.
7177         (layout_post_instantiate): not sure whether this is needed
7178         anymore.
7179         (layout_query_geometry): query glyph geometry rather than
7180         image_instance geometry.
7181         (layout_layout): set offsets from pass in parameters. Use glyph
7182         geometry and layout functions rather than image instance ones.
7183         (native_layout_layout): ditto.
7184         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7185         (image_instantiator_widget): set_property -> update.
7186         (image_instantiator_buttons): ditto.
7187         (image_instantiator_progress_guage): ditto.
7188         (image_instantiator_tab_control): ditto.
7189         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7190         (image_instantiator_layout): add update method.
7191
7192         * glyphs-msw.c (bmp_normalize):
7193         (mswindows_resource_normalize): add dest_mask so that it can be
7194         proprogated by layout_normalize.
7195         (begin_defer_window_pos): make optional because it may not be the
7196         right thing to do and it introduces differences with X.
7197         (mswindows_unmap_subwindow): ditto.
7198         (mswindows_map_subwindow): ditto.
7199         (mswindows_redisplay_subwindow): renamed from
7200         mswindows_update_subwindow.
7201         (mswindows_redisplay_widget): ditto.
7202         (mswindows_button_redisplay): renamed from
7203         mswindows_button_update. Update is now what the instantiation
7204         function does for a changed instantiator.
7205         (mswindows_progress_gauge_instantiate): set the progress value
7206         here if appropriate.
7207         (mswindows_tab_control_redisplay): cope with re-ordering of the
7208         members of the tab widget by simply selecting the new top
7209         widget. This makes things appear ok if you click on a tab.
7210         (mswindows_combo_box_instantiate): image_instance_layout now takes
7211         position as well as size.
7212         (mswindows_progress_gauge_redisplay): renamed from
7213         mswindows_progress_gauge_update.
7214         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7215         (image_instantiator_format_create_glyphs_mswindows): ditto.
7216
7217         * glyphs-eimage.c (jpeg_normalize):
7218         (gif_normalize):
7219         (png_normalize):
7220         (tiff_normalize): add dest_mask so that it can be proprogated by
7221         layout_normalize.
7222
7223         * elhash.c:
7224         (print_hash_table):
7225         (hash_table_weakness_validate):
7226         (decode_hash_table_weakness):
7227         (Fhash_table_weakness):
7228         (Fhash_table_type):
7229         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7230
7231         * console.h (struct console_methods): move update_* to
7232         redisplay_*.
7233
7234 2000-07-20  Ben Wing  <ben@xemacs.org>
7235
7236         * *.[ch] (XSETOBJ): remove unused middle argument.
7237         lisp-disunion.h: correct wrap_object() to one argument.
7238
7239 2000-07-15  Ben Wing  <ben@xemacs.org>
7240
7241         * s/cygwin32.h:
7242         * s/cygwin32.h (CYGWIN_CONV_PATH):
7243         Add missing logb prototype for v1.1.
7244         Use post-b20 names and alias to pre-b20 names when pre-b20.
7245
7246         * s/windowsnt.h: [5].
7247
7248 2000-07-15  Ben Wing  <ben@xemacs.org>
7249
7250         * Makefile.in.in (x_objs):
7251         * Makefile.in.in (sheap_objs):
7252         * Makefile.in.in (objs):
7253         added win32.o, cosmetic cleanups.
7254
7255         * alloc.c (Fmake_byte_code):
7256         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7257         etc. macros which declare their own args now.
7258
7259         * alloc.c (syms_of_alloc):
7260         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7261
7262         * buffer.c:
7263         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7264
7265         * buffer.c (Fget_file_buffer):
7266         Fixed GCPRO problem.
7267
7268         * buffer.c (get_truename_buffer):
7269         Fixed comment about GC checking.
7270
7271         * buffer.c (syms_of_buffer):
7272         Undeclared those dedicated frame funs.
7273         [2].
7274
7275         * buffer.h:
7276         Define convenience macros for internal/external conversions.
7277         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7278         and Qenvironment_variable_encoding for cleaner code.
7279
7280         * bufslots.h:
7281         Remove dedicated-frame; in lisp.
7282
7283         * bytecode.c (funcall_compiled_function):
7284         [1].
7285
7286         * bytecode.c (syms_of_bytecode):
7287         [2].
7288
7289         * console-msw.c:
7290         * console-msw.c (mswindows_show_console): Rewrote.
7291
7292         * console-msw.c (Fmswindows_debugging_output): New.
7293         Sends to OutputDebugString (special MSWin debugger interface).
7294
7295         * console-msw.c (Fmswindows_message_box):
7296         Fixed stupid bugs so it works when called from kill-emacs.
7297
7298         * console-msw.c (syms_of_console_mswindows):
7299         Declare Fmswindows_debugging_output.
7300
7301         * console-msw.h:
7302         New MSWin prototypes.
7303
7304         * console-msw.h (struct mswindows_frame):
7305         New entry last-click-mods for improved button-modifier support.
7306
7307         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7308         New struct entry `popup' with corresponding accessor.
7309
7310         * console-x.c:
7311         * console-x.c (split_up_display_spec):
7312         * console-x.c (get_display_arg_connection):
7313         * console-x.c (x_semi_canonicalize_console_connection):
7314         * console-x.c (x_canonicalize_device_connection):
7315         [[[6]]]: Change char to more specific type.
7316         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7317
7318         * console-x.c (x_semi_canonicalize_console_connection):
7319         * console-x.c (x_canonicalize_device_connection):
7320         [[[9]]]: Fix up error signalling to use new structured error system.
7321
7322         * console-x.h:
7323         [[[4]]]: Define codesys aliases:
7324         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7325         Qx_color_name_encoding, Qx_display_name_encoding.
7326
7327         * console.h (struct console_methods):
7328         New method make_dialog_box_internal supersedes older
7329         popup_dialog_box method.
7330
7331         * data.c:
7332         Define many new errors, part of new structured errors.
7333
7334         * data.c (init_errors_once_early):
7335         * data.c (syms_of_data):
7336         [2].
7337
7338         * device-msw.c (mswindows_init_device):
7339         [[[5]]]: Cleanup to support NT 3.51.
7340
7341         * device-msw.c (decode_devmode): Cleanup.
7342
7343         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7344         * device-msw.c (mswindows_handle_print_dialog_box):
7345         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7346         * device-msw.c (syms_of_device_mswindows):
7347         Delete the dialog box primitives recently introduced by Kirill and
7348         instead interface to general dialog box interface.
7349
7350         * device-x.c:
7351         * device-x.c (compute_x_app_name):
7352         * device-x.c (x_init_device):
7353         * device-x.c (Fx_valid_keysym_name_p):
7354         * device-x.c (Fx_set_font_path):
7355         [6].
7356         [7].
7357
7358         * device.h (wrap_device): New.
7359         First of its kind; meant to replace XSETDEVICE.
7360
7361         * dialog-msw.c: Many file-dialog symbols.
7362
7363         * dialog-msw.c (mswindows_register_popup_frame): New.
7364         * dialog-msw.c (mswindows_is_dialog_msg): New.
7365         For supporting kbd traversal in dialog boxes.
7366
7367         * dialog-msw.c (dialog_proc):
7368         Support hitting ESC in dialogs.
7369
7370         * dialog-msw.c (struct):
7371         Common dialog box errors.
7372
7373         * dialog-msw.c (handle_file_dialog_box): New.
7374         Add file dialog code.
7375
7376         * dialog-msw.c (handle_question_dialog_box):
7377         Redo existing code to support new question dialog syntax.
7378
7379         * dialog-msw.c (console_type_create_dialog_mswindows):
7380         We support new dialog console method.
7381
7382         * dialog-msw.c (syms_of_dialog_mswindows):
7383         * dialog-msw.c (vars_of_dialog_mswindows):
7384         New file dialog symbols, vars.
7385
7386         * dialog-x.c:
7387         * dialog-x.c (maybe_run_dbox_text_callback):
7388         * dialog-x.c (dbox_descriptor_to_widget_value):
7389         * dialog-x.c (x_make_dialog_box_internal):
7390         * dialog-x.c (console_type_create_dialog_x):
7391         Mule-ize entire file.
7392         Redo to support question dialog syntax.
7393         [6].
7394
7395         * dialog.c:
7396         * dialog.c (Fmake_dialog_box_internal):
7397         * dialog.c (syms_of_dialog):
7398         Kill old popup-dialog-box, replace with new primitive.
7399         Just call device method or signal error.
7400
7401         * eldap.c (Fldap_open):
7402         * eldap.c (Fldap_search_basic):
7403         * eldap.c (Fldap_add):
7404         * eldap.c (Fldap_modify):
7405         [1].
7406         [7].
7407
7408         * emacs.c:
7409         * emacs.c (make_arg_list_1):
7410         * emacs.c (make_arg_list):
7411         Mule-ize call to dll_init().
7412         [6].
7413         [8].
7414
7415         * emacs.c (make_argc_argv):
7416         * emacs.c (free_argc_argv):
7417         * emacs.c (init_cmdargs):
7418         * emacs.c (main_1):
7419         * emacs.c (Fkill_emacs):
7420         * emacs.c (Fdump_emacs):
7421         Update comments about what can be used in syms_* etc.
7422         Call init_win32() when necessary.
7423         Fix up MS Win dialog box in kill-buffer to actually work right.
7424         [7].
7425
7426         * eval.c:
7427         * eval.c (For):
7428         * eval.c (Fand):
7429         * eval.c (Fprogn):
7430         * eval.c (Fprog1):
7431         * eval.c (Fprog2):
7432         * eval.c (FletX):
7433         * eval.c (Flet):
7434         * eval.c (condition_case_3):
7435         * eval.c (Feval):
7436         * eval.c (function_argcount):
7437         * eval.c (funcall_lambda):
7438         [1].
7439
7440         * eval.c (type_error): New.
7441         * eval.c (maybe_type_error): New.
7442         * eval.c (continuable_type_error): New.
7443         * eval.c (maybe_continuable_type_error): New.
7444         * eval.c (type_error_with_frob): New.
7445         * eval.c (maybe_type_error_with_frob): New.
7446         * eval.c (continuable_type_error_with_frob): New.
7447         * eval.c (maybe_continuable_type_error_with_frob): New.
7448         New functions for use with structured errors.
7449
7450         * event-Xt.c:
7451         * event-Xt.c (x_event_to_emacs_event):
7452         Buttons are now modifiers too.
7453
7454         * event-Xt.c (emacs_Xt_current_event_timestamp):
7455         Implement new event method.
7456         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7457
7458         * event-msw.c:
7459         * event-msw.c (ntpipe_shove_writer): [5].
7460         * event-msw.c (mswindows_enqueue_mouse_button_event):
7461         * event-msw.c (mswindows_drain_windows_queue):
7462         * event-msw.c (mswindows_wnd_proc): [7].
7463         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7464         * event-msw.c (mswindows_modifier_state):
7465         Throughout: support new button modifiers.
7466
7467         * event-msw.c (emacs_mswindows_current_event_timestamp):
7468         Implement new event method.
7469         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7470
7471         * event-stream.c:
7472         * event-stream.c (event_stream_current_event_timestamp): New.
7473         * event-stream.c (maybe_kbd_translate): New functionality.
7474         * event-stream.c (vars_of_event_stream):
7475         Document new kbd-translate-table functionality.
7476
7477         * event-stream.c (Fcurrent_event_timestamp): New.
7478         New primitive for use in fabricated events.
7479         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7480
7481         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7482
7483         * events.c:
7484         * events.c (Fmake_event):
7485         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7486         [1].
7487         [9].
7488
7489         * events.c (format_event_object): fix gcc warnings.
7490
7491         * events.c (Fevent_timestamp): Document new primitives.
7492
7493         * events.c (TIMESTAMP_HALFSPACE): New.
7494
7495         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7496         comparing timestamps correctly (half-space algorithm).
7497
7498         * events.c (Fevent_modifier_bits): Doc fix.
7499
7500         * events.c (Fevent_modifiers): Major doc addition.
7501         * events.c (event_x_y_pixel_internal): Typo fix.
7502         * events.c (syms_of_events): Declare new primitives.
7503
7504         * events.h:
7505         Update long comment for button modifiers, timestamps.
7506
7507         * events.h (struct event_stream):
7508         New current_event_timestamp method.
7509
7510         * extents.c:
7511         * extents.c (extent_in_region_p):
7512         * extents.c (decode_extent):
7513         * extents.c (Fset_extent_parent):
7514         * extents.c (decode_map_extents_flags):
7515         Fix gcc warnings.
7516         [9].
7517
7518         * extents.c (struct extent_at_arg):
7519         * extents.c (decode_extent_at_flag):
7520         * extents.c (extent_at_mapper):
7521         * extents.c (extent_at_bytind):
7522         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7523         * extents.c (Fextents_at): New primitive. [9].
7524         * extents.c (symbol_to_glyph_layout): [9].
7525         Support new primitive `extents-at'.
7526
7527
7528         * extents.c (get_text_property_bytind):
7529         extent_at_bytind has another arg.
7530         [9].
7531
7532         * extents.c (syms_of_extents): New primitive.
7533
7534         * file-coding.c (Fmake_coding_system): [1].
7535         * file-coding.c (subsidiary_coding_system): fix gcc warning
7536         * file-coding.c (syms_of_file_coding): [2].
7537
7538         * fileio.c (Fexpand_file_name):
7539         * fileio.c (Fsysnetunam):
7540         * fileio.c (Ffile_exists_p):
7541         * fileio.c (Ffile_executable_p):
7542         * fileio.c (Fverify_visited_file_modtime):
7543         Clean up GCPROing.
7544
7545         * fileio.c (syms_of_fileio): [2].
7546
7547         * filelock.c (lock_file_1):
7548         * filelock.c (current_lock_owner):
7549         * filelock.c (lock_if_free):
7550         * filelock.c (lock_file):
7551         * filelock.c (unlock_file):
7552         Clean up GCPROing.
7553
7554         * fns.c (concat): Fix gcc warning.
7555
7556         * fns.c (Fmember):
7557         * fns.c (Fold_member):
7558         * fns.c (Fmemq):
7559         * fns.c (Fold_memq):
7560         * fns.c (memq_no_quit):
7561         * fns.c (Fassoc):
7562         * fns.c (Fold_assoc):
7563         * fns.c (Fassq):
7564         * fns.c (Fold_assq):
7565         * fns.c (assq_no_quit):
7566         * fns.c (Frassoc):
7567         * fns.c (Fold_rassoc):
7568         * fns.c (Frassq):
7569         * fns.c (Fold_rassq):
7570         * fns.c (rassq_no_quit):
7571         * fns.c (Fdelete):
7572         * fns.c (Fold_delete):
7573         * fns.c (Fdelq):
7574         * fns.c (Fold_delq):
7575         * fns.c (delq_no_quit):
7576         * fns.c (Fremassoc):
7577         * fns.c (Fremassq):
7578         * fns.c (remassq_no_quit):
7579         * fns.c (Fremrassoc):
7580         * fns.c (Fremrassq):
7581         * fns.c (remrassq_no_quit):
7582         * fns.c (Freverse):
7583         * fns.c (mapcar1):
7584         [1].
7585
7586         * frame-msw.c (mswindows_init_frame_1):
7587         * frame-msw.c (mswindows_delete_frame):
7588         Register popups with dialog code so keyboard traversing works.
7589
7590         * frame-tty.c (tty_raise_frame_no_select): [1].
7591
7592         * frame-x.c:
7593         * frame-x.c (x_set_frame_text_value):
7594         * frame-x.c (x_set_frame_properties):
7595         * frame-x.c (x_create_widgets):
7596         [7].
7597
7598         * frame.c:
7599         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7600
7601         * frame.h (wrap_frame): New.
7602         Macro like wrap_device.
7603
7604         * general.c:
7605         * general.c (SYMBOL):
7606         * general.c (syms_of_general):
7607         Major reorg.  This is now just a wrapper and symbols themselves
7608         are listed in general-slots.h.
7609
7610         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7611         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7612
7613         * glyphs-msw.c (mswindows_native_layout_instantiate):
7614         Add DS_CONTROL so keyboard traversal will work.
7615
7616         * glyphs-widget.c:
7617         * glyphs-widget.c (syms_of_glyphs_widget):
7618         Move some symbols to general-slots.h.
7619
7620         * glyphs-x.c:
7621         * glyphs-x.c (xbm_instantiate_1):
7622         * glyphs-x.c (x_xbm_instantiate):
7623         * glyphs-x.c (x_xface_instantiate):
7624         * glyphs-x.c (autodetect_instantiate):
7625         * glyphs-x.c (cursor_font_instantiate):
7626         * glyphs-x.c (x_update_widget):
7627         * glyphs-x.c (x_widget_instantiate):
7628         * glyphs.c (bitmap_to_lisp_data):
7629         * glyphs.c (pixmap_to_lisp_data):
7630         [7].
7631
7632         * glyphs.c (syms_of_glyphs):
7633         [2].
7634
7635         * gui-x.c:
7636         * gui-x.c (print_widget_value):
7637         * gui-x.c (menu_separator_style_and_to_external):
7638         * gui-x.c (add_accel_and_to_external):
7639         * gui-x.c (button_item_to_widget_value):
7640         * gui-x.c (gui_items_to_widget_values_1):
7641         * gui-x.c (gui_items_to_widget_values):
7642         * gui-x.c (syms_of_gui_x):
7643         * gui-x.c (vars_of_gui_x):
7644         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7645         [9].
7646
7647         * gui-x.h:
7648         Muleize, prototype changes matching gui-x.c.
7649
7650         * gui.c:
7651         * gui.c (separator_string_p):
7652         * gui.c (gui_item_add_keyval_pair):
7653         * gui.c (make_gui_item_from_keywords_internal):
7654         * gui.c (signal_too_long_error):
7655         * gui.c (parse_gui_item_tree_item):
7656         * gui.c (syms_of_gui):
7657         * gui.c (vars_of_gui):
7658         * gui.h:
7659         menu-no-selection-hook moved here (used by MSWin).
7660         Move some symbols to general-slots.h.
7661         [6].
7662         [9].
7663
7664         * insdel.c (get_buffer_pos_char):
7665         * insdel.c (get_buffer_range_char):
7666         Add GC comments.
7667
7668         * keymap.c (keymap_lookup_directly):
7669         * keymap.c (keymap_store):
7670         * keymap.c (ensure_meta_prefix_char_keymapp):
7671         * keymap.c (describe_map):
7672         * keymap.h:
7673         Support new button modifiers.
7674
7675         * lisp-disunion.h (wrap_object):
7676         * lisp-disunion.h (XSETOBJ):
7677         Rename make_obj to wrap_object.
7678
7679         * lisp-union.h:
7680         * lisp-union.h (make_int):
7681         * lisp-union.h (make_char):
7682         Support wrap_object.
7683
7684         * lisp.h:
7685         * lisp.h (LIST_LOOP):
7686         * lisp.h (EXTERNAL_LIST_LOOP):
7687         * lisp.h (LIST_LOOP_2):
7688         * lisp.h (EXTERNAL_LIST_LOOP_1):
7689         * lisp.h (EXTERNAL_LIST_LOOP_2):
7690         * lisp.h (EXTERNAL_LIST_LOOP_3):
7691         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7692         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7693         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7694         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7695         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7696         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7697         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7698         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7699         * lisp.h (struct Lisp_Symbol):
7700         * lisp.h (maybe_continuable_error_with_frob):
7701         Fix up section comments.
7702         Add new types for char to indicate usage.
7703         Delete symbols auto-generated from general-slots.h.
7704         Add prototypes for structured error functions.
7705         Add long comments describing looping macros and change interface
7706         so that lvalues are automatically declared.
7707         Add NO_DECLARE macro in case callers want to declare lvalues
7708         themselves.
7709
7710         * lread.c (read_syntax_error):
7711         * lread.c (continuable_read_syntax_error):
7712         * lread.c (read_structure):
7713         * lread.c (sequence_reader):
7714         * lread.c (read_list_conser):
7715         * lread.c (read_compiled_function):
7716         Rename syntax_error and continuable_syntax_error to avoid clash
7717         with same-named structured error functions.
7718
7719         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7720         * menubar-msw.c (populate_menu_add_item):
7721         * menubar-msw.c (populate_or_checksum_helper):
7722         [5].
7723         [9].
7724
7725         * menubar-x.c:
7726         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7727         Mule-ize whole file.
7728
7729         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7730
7731         * mule-charset.c (Fmake_charset):
7732         * mule-wnnfns.c (Fwnn_set_param):
7733         [1].
7734
7735         * ntproc.c (create_child):
7736         * ntproc.c (Fwin32_set_current_locale):
7737         Add comments portending doom.
7738
7739         * objects-msw.c:
7740         * objects-msw.c (old_font_enum_callback_2):
7741         * objects-msw.c (font_enum_callback_1):
7742         * objects-msw.c (mswindows_enumerate_fonts):
7743         [5].
7744
7745         * objects-x.c:
7746         * objects-x.c (allocate_nearest_color):
7747         * objects-x.c (x_parse_nearest_color):
7748         * objects-x.c (x_initialize_color_instance):
7749         * objects-x.c (x_print_color_instance):
7750         * objects-x.c (x_finalize_color_instance):
7751         * objects-x.c (x_valid_color_name_p):
7752         * objects-x.c (x_initialize_font_instance):
7753         * objects-x.c (x_print_font_instance):
7754         * objects-x.c (valid_x_font_name_p):
7755         * objects-x.c (truename_via_FONT_prop):
7756         * objects-x.c (truename_via_random_props):
7757         * objects-x.c (truename_via_XListFonts):
7758         * objects-x.c (x_font_truename):
7759         * objects-x.c (x_font_instance_truename):
7760         * objects-x.c (x_font_instance_properties):
7761         * objects-x.c (x_list_fonts):
7762         * objects-x.c (x_find_charset_font):
7763         Mule-ize entire file.
7764         [7].
7765
7766         * objects-x.h:
7767         Mule-verify.
7768
7769         * print.c:
7770         * print.c (std_handle_out_external):
7771         * print.c (debug_print_no_newline):
7772         * print.c (syms_of_print):
7773         Output to all debugger kinds in debug-print.
7774         Fix console-output code under MSWin to actually work.
7775
7776         * process-nt.c (send_signal):
7777         * process-nt.c (nt_create_process):
7778         Use newer Unicode macros.
7779
7780         * process-unix.c (unix_create_process):
7781         * process-unix.c (unix_canonicalize_host_name):
7782         * process-unix.c (unix_open_network_stream):
7783         [7].
7784
7785         * scrollbar-x.c:
7786         Mule-verify.
7787
7788         * search.c (syms_of_search):
7789         [2].
7790
7791         * select-msw.c (mswindows_destroy_selection):
7792         Use LIST_LOOP_2.
7793
7794         * select-x.c (symbol_to_x_atom):
7795         [7].
7796
7797         * select.c (syms_of_select):
7798         [2].
7799
7800         * sound.c (Fplay_sound_file):
7801         [7].
7802
7803         * specifier.c:
7804         * specifier.c (decode_specifier_type):
7805         * specifier.c (Fvalid_specifier_locale_type_p):
7806         * specifier.c (check_valid_locale_or_locale_type):
7807         * specifier.c (decode_locale):
7808         * specifier.c (decode_locale_type):
7809         * specifier.c (decode_locale_list):
7810         * specifier.c (check_valid_domain):
7811         * specifier.c (decode_specifier_tag_set):
7812         * specifier.c (Fcanonicalize_tag_set):
7813         * specifier.c (Fdefine_specifier_tag):
7814         * specifier.c (Fspecifier_tag_predicate):
7815         * specifier.c (check_valid_inst_list):
7816         * specifier.c (check_valid_spec_list):
7817         * specifier.c (decode_how_to_add_specification):
7818         * specifier.c (check_modifiable_specifier):
7819         * specifier.c (specifier_add_spec):
7820         * specifier.c (boolean_validate):
7821         * specifier.c (display_table_validate):
7822         [9].
7823
7824         * specifier.c (syms_of_specifier):
7825         Move some symbols to general-slots.h.
7826         [2].
7827
7828         * symbols.c:
7829         * symbols.c (Fmapatoms):
7830         * symbols.c (Fapropos_internal):
7831         Add GCPROs.
7832
7833         * symbols.c (set_default_buffer_slot_variable):
7834         * symbols.c (set_default_console_slot_variable):
7835         [1].
7836
7837         * symbols.c (defsymbol_massage_name_1):
7838         * symbols.c (defkeyword_massage_name):
7839         * symbols.c (deferror_1):
7840         * symbols.c (deferror):
7841         * symbols.c (deferror_massage_name_and_message):
7842         * symeval.h:
7843         * symeval.h (DEFSYMBOL):
7844         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7845
7846         * symbols.c (syms_of_symbols):
7847         [2].
7848
7849         * symsinit.h:
7850         * symsinit.h (init_win32): New.
7851         Also new is syms_of_dialog_mswindows.
7852
7853         * syswindows.h:
7854         Add new Unicode macros, missing Cygwin wide-char functions,
7855         convenience conversion macros for Qmswindows_tstr, macros for
7856         encapsulating required MSWin <-> Cygwin filename conversions,
7857         prototype for dynamically-extracted (not in NT 3.51) functions.
7858
7859         * toolbar-x.c:
7860         Mule-verify.
7861
7862         * tooltalk.c (Fadd_tooltalk_message_arg):
7863         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7864         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7865         [7].
7866
7867         * tooltalk.c (syms_of_tooltalk):
7868         [2].
7869
7870         * unexnt.c:
7871         * unexnt.c (unexec):
7872         Fix up headers, declaration of unexec() to be more standard.
7873
7874 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7875
7876         * offix.h: Revert change to guard macros - they're used in offix.c!
7877
7878 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7879
7880         * lisp.h: Defsubred Fdelete.
7881
7882         * console-msw.h:  (msprinter_default_printer): Added.
7883
7884         * console-msw.c (msprinter_canonicalize_console_connection):
7885         (msprinter_canonicalize_device_connection): Added.
7886
7887         * device-msw.c (msprinter_default_printer):
7888         (Fmswingows_get_default_printer):
7889         (signal_enum_priner_error):
7890         (Fmswingows_printer_list): Added.
7891
7892 2000-07-19  Martin Buchholz <martin@xemacs.org>
7893
7894         * XEmacs 21.2.35 is released.
7895
7896 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7897
7898         * select-x.c (x_handle_selection_request):
7899         Text selected in xemacs and pasted into xterm failed to appear.
7900         Spelling fixes and cosmetic changes.
7901
7902 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7903
7904         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7905         XEmacs frame (fix for doubling chars in dialog boxes).
7906
7907 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7908
7909         * select.c (select_convert_in, select_convert_out):
7910         Don't call intern() every time.
7911
7912         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7913         * select.c (vars_of_select): Initialise them.
7914
7915 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7916
7917         * select.c (selection-coercible-types): New.
7918
7919         * select.c (own-selection-internal):
7920         * select.c (get-selection-internal):
7921         MULE bug fix - these should default to COMPOUND_TEXT and not
7922         STRING for MULE. I think.
7923
7924         * select.c (select_convert_out): Use selection-coercible-types
7925         to find types that we can attempt to perform coercions on.
7926
7927 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7928
7929         * mule-wnnfns.c:
7930         * mule-canna.c:
7931         Add coding: cookie to identify encoding.
7932
7933         * mule-canna.c (CANNA_mode_keys): make static.
7934         Use proper prototypes, even for functions of no arguments.
7935         Remove external prototype for Fding().
7936
7937         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7938
7939         * select.c (syms_of_select): Add missing DEFSUBR.
7940
7941 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7942
7943         * select.c (get_selection_internal, own_selection_internal):
7944         Make the type default to STRING, rather than placing a nil type
7945         into Vselection_alist.
7946
7947 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7948
7949         * gpmevent.c (tty_selection_exists_p):
7950         * gpmevent.c (tty_own_selection):
7951         Updated parameter lists.
7952
7953 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7954
7955         * select.h (selection-alist): Removed declaration.
7956
7957         * select.h (get_local_selection):
7958         * select.c (get_local_selection):
7959         Made static.
7960
7961         * select.h (convert_selection): Removed declaration.
7962         * select.c (convert_selection): Removed.
7963         This function belongs in Lisp.
7964
7965         * select.h (select_convert_in): Declare.
7966         * select.h (select_convert_out): Declare.
7967         * select.c (select_convert_in): New.
7968         * select.c (select_convert_out): New.
7969         New conversion functions for other files to call.
7970
7971         * select.h (select_notify_buffer_kill): Declare.
7972         * select.c (select_notify_buffer_kill): New.
7973         New functions that get called from kill-buffer.
7974
7975         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7976         X-specific lisp code.
7977
7978         * select.h: Declare some of the lisp-visible functions for
7979         external use.
7980
7981         * select.c (clean_local_selection_data): Removed. This was
7982         a disgusting function, and previously should have been in
7983         select-x.c in any case. The functionality is now provided
7984         in select-convert-from-integer (select.el).
7985
7986         * select.c (available-selection-types): Fixed stupidity where
7987         INTEGER and ATOM got added twice. Also add STRING when we see an
7988         extent.
7989
7990         * select.c (get-selection-internal): Removed symbol stripping. No
7991         longer causes conversion when data comes from the internal cache.
7992
7993         * select.c (syms_of_select): Added new functions.
7994
7995         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7996         error checking - previously this called abort!
7997
7998         * select-x.c (x_own_selection): Changed comment.
7999
8000         * select-x.c (x_handle_selection_request): Use select_convert_out.
8001         Don't mess with selection-alist; it's an internal variable of select.c.
8002
8003         * select-x.c (x_get_foreign_selection): Use select_convert_in.
8004
8005         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
8006         rather than messing with selection-alist.
8007
8008         * select-msw.c (mswindows_get_foreign_selection):
8009         Use TO_INTERNAL_FORMAT rather than hacking.
8010
8011 2000-07-14  Martin Buchholz  <martin@xemacs.org>
8012
8013         * process-unix.c (unix_open_multicast_group):
8014         (unix_open_multicast_group): Remove useless casts.
8015
8016 2000-07-13  Martin Buchholz  <martin@xemacs.org>
8017
8018         * sound.c (Fplay_sound): Fix `unused variable' warning.
8019
8020         * emacs.c (main): Use correct type for _environ on SCO5.
8021
8022 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
8023
8024         * console.h (own_selection_method):
8025         * console.h (selection_exists_p_method):
8026         * console.h (available_selection_types_method): New.
8027         * console.h (register_selection_data_type_method): New.
8028         * console.h (selection_data_type_name): New.
8029
8030         * console-msw.h (mswindows_destroy_selection): Declare it.  New
8031         function & alist to track GlobalAlloc()'d handles that need
8032         releasing when the clipboard data gets replaced or emptied.
8033
8034         * event-msw.c (mswindows_wnd_proc): Call it.
8035
8036         * lisp.h, general.c (Qappend): New symbol representing a
8037         `how-to-add' mode.
8038
8039         * select.c (own-selection-internal):
8040         * select.c (selection-exists-p):
8041         * select.c (available-selection-types): New.
8042         * select.c (register-selection-data-type): New.
8043         * select.c (selection-data-type-name): New.  New functions to deal
8044         with device-specific selection data formats.
8045         * select.c (selection-converter-out-alist): Renamed.
8046         * select.c (selection-converter-in-alist): New.
8047         * select.c (selection-appender-alist): New.  Added new alists.
8048         * select.c (syms_of_select, vars_of_select): Added new symbols &
8049         variables.
8050         * select.c (get_local_selection): Split.
8051         * select.c: Removed spurious type checking - selections may now be
8052         of any type, not just strings.
8053         * select.c (own-selection-internal):
8054
8055         * select.h, select.c (convert_selection): New. Created
8056         convert_selection() function based on get_local_selection().
8057         * select.h, select.c (QCF_*): New symbols representing mswindows
8058         clipboard formats.
8059         * select.h, select.c (Qreplace_all, Qreplace_existing): New
8060         symbols representing `how-to-add' modes.
8061
8062         * select-msw.c (x_sym_p): New.
8063         * select-msw.c (symbol_to_ms_cf): New.
8064         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
8065         symbols & clipboard formats. Can also handle string names.
8066         * select-msw.c (mswindows_own_selection):
8067         * select-msw.c (mswindows_selection_exists_p):
8068         Added `data-type' parameter. Use it.
8069         * select-msw.c (mswindows_available_selection_types): New.
8070         * select-msw.c (mswindows_register_selection_data_type): New.
8071         * select-msw.c (mswindows_selection_data_type_name): New.
8072         * select-msw.c (mswindows_own_selection):
8073         * select-msw.c (mswindows_get_foreign_selection):
8074         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
8075         * select-msw.c (console_create_select_mswindows): Added new methods.
8076         * select-msw.c (mswindows_destroy_selection): New.
8077         * select-msw.c (Vhandle_alist): New list.
8078         * select-msw.c (mswindows_own_selection):
8079
8080         * select-x.c (x_own_selection):
8081         * select-x.c (x_selection_exists_p):
8082         * select-x.c: Added some comments about maybe using new
8083         functionality.
8084         * select-x.c (x_own_selection):
8085
8086         * specifier.c: Remove definition of Qappend (now in general.c)
8087         * specifier.c (syms_of_specifier): Remove Qappend.
8088
8089 2000-07-12  Martin Buchholz  <martin@xemacs.org>
8090
8091         * config.h.in: Add socklen_t.
8092
8093         * s/decosf4-0.h: No special compiler flags needed or desired.
8094         In particular, undefine _BSD for DEC OSF 4.0.
8095
8096 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8097
8098         * redisplay-msw.c (msprinter_frame_output_end): Added.
8099         (console_type_create_redisplay_mswindows): Referred the above.
8100
8101         * frame.c (setup_frame_without_minibuffer): Do not create a
8102         default minibuffer frame on a printer device.
8103
8104         * frame-msw.c (apply_dc_geometry): Added.
8105         (msprinter_start_page):
8106         (msprinter_init_frame_3):
8107         (msprinter_eject_page): Use it.
8108
8109         * console-msw.h (struct msprinter_frame): Added pix_left and top,
8110         and removed residual duplex and orientation properties.
8111
8112 2000-07-11  Martin Buchholz  <martin@xemacs.org>
8113
8114         * eval.c (function_argcount): Work around a DEC CC compiler bug.
8115
8116         * unexalpha.c: Remove system prototypes from C sources!
8117
8118 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
8119
8120         * eval.c: Remove references to M-x edit-options in DEFUNs for
8121         `defvar' and `defconst'.
8122
8123 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8124
8125         * config.h.in: Remove SMART_INCLUDE hackery.
8126
8127         PostgreSQL hacking:
8128         * config.h.in: Don't use SMART_INCLUDE.
8129
8130         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8131         * inline.c: Simply #include "postgresql.h"
8132         * postgresql.c:
8133         - Don't use SMART_INCLUDE
8134         - Use simply "const".
8135         - Use standard doc string conventions.
8136         - Use correct type for result of PQstatus.
8137
8138 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8139
8140         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8141
8142         C++ compilation changes.
8143         * config.h.in (EXTERN_C): Define.
8144         * config.h.in (not): This is also a C++ keyword.
8145         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8146         * cm.c: Use EXTERN_C.
8147         * redisplay-tty.c: Use EXTERN_C.
8148         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8149
8150 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8151
8152         * general.c: Remove duplicate definition for Qfunction.
8153
8154 2000-07-08  Ben Wing  <ben@xemacs.org>
8155
8156         * device-msw.c (msprinter_init_device):
8157         * device-msw.c (sync_printer_with_devmode):
8158         * device-msw.c (handle_devmode_changes):
8159         * device-msw.c (print_dialog_worker):
8160         * device-msw.c (Fmsprinter_apply_settings):
8161         * device-msw.c (hash_devmode):
8162         * device-msw.c (Fmsprinter_settings_despecialize):
8163         use Qmswindows_tstr, not Qctext.
8164
8165         * vm-limit.c (check_memory_limits):
8166         avoid infinite loop printing warning messages.
8167
8168 2000-07-05  Craig Lanning  <lanning@scra.org>
8169
8170         * Makefile.in.in: Add support for including the Windows resources
8171         when building with the cygwin and mingw targets.
8172
8173         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8174         not set or not correct.
8175         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8176         (init_initial_directory): Don't try to use $PWD on the
8177         WIN32_NATIVE target.
8178
8179         * s\cygwin32.h:
8180         [[Add -mwindows to eliminate console window.]] not required --ben
8181         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8182         (MAIL_USE_POP): removed; now handled by configure.
8183
8184         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8185         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8186         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8187         (MAIL_USE_POP): removed; now handled by configure.
8188         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8189         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8190         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8191         constant string.
8192         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8193         up from <winsock.h> via systime.h.
8194         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8195         (getpagesize): from Dan Holmsand, added.
8196         Added #endif which was left dangling by Ben's mega patch; added
8197         comment to help prevent this in the future.
8198
8199         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8200
8201 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8202
8203         * console-msw.h (struct mswindows_device): Removed unnecessary
8204         cached device geometry values.
8205         Added update_tick and an accessor macro.
8206         (Lisp_Devmode): Added lrecord declaration.
8207         (struct msprinter_device): Contain devmode as a Lisp object.
8208         Added mswindows_get_selected_frame_hwnd();
8209
8210         * console.h (struct console_methods): Indentation nitpicking.
8211
8212         * device-msw.c (mswindows_init_device): Do not initialize geometry
8213         cache. Initialize update tick.
8214         (mswindows_device_system_metrics): Ask the device for its geometry.
8215         (global_free_2_maybe):
8216         (devmode_to_hglobal):
8217         (handle_printer_changes):
8218         (ensure_not_printing):
8219         (print_dialog_worker):
8220         (Fmsprinter_print_setup_dialog):
8221         (Fmsprinter_print_dialog):
8222         (plist_get_margin):
8223         (plist_set_margin):
8224         (Fmsprinter_page_setup_dialog): Added functions.
8225         (sync_printer_with_devmode):
8226         (handle_devmode_changes):
8227         (Fmsprinter_get_settings):
8228         (Fmsprinter_select_settings):
8229         (Fmsprinter_apply_settings):
8230         (allocate_devmode):
8231         (Fmsprinter_settings_copy):
8232         (Fmsprinter_settings_despecialize):
8233         (print_devmode):
8234         (finalize_devmode):
8235         (equal_devmode):
8236         (hash_devmode): Added functions
8237         (syms_of_device_mswindows): Init devmode lrecord class.
8238
8239         * device.h: Added an exfun for find-device.
8240
8241         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8242         geometry; although, recreate the device compatible DC.
8243
8244         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8245         (msprinter_init_frame_3):
8246         (msprinter_frame_property):
8247         (msprinter_internal_frame_property_p):
8248         (msprinter_frame_properties):
8249         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8250         print job properties (will move to device settings).
8251
8252         * lisp.h: Added symbols.
8253
8254         * general.c (syms_of_general): Declared them.
8255
8256         * hash.c (string_hash): Added.
8257
8258         * lrecord.h (lrecord_type): Added devmode lrecord type.
8259
8260 2000-07-02  Mike Sperber <mike@xemacs.org>
8261
8262         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8263         FreeBSD 4.0.
8264
8265 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8266
8267         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8268         integer.
8269
8270 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8271
8272         * data.c (Fstring_to_number): Don't recognize floating point if
8273         base is not 10.
8274
8275 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8276
8277         * glyphs-widget.c (tab_control_query_geometry):
8278         (widget_query_geometry):
8279         (button_query_geometry):
8280         * glyphs.c (text_query_geometry):
8281         Enforce type correctness.
8282
8283 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8284
8285         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8286         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8287
8288 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8289
8290         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8291         conflicts with gcc's fixincluded version of FOO.h.
8292
8293         * glyphs.h (image_instance_geometry): Remove trailing `,'
8294
8295 2000-06-08  Mike Alexander  <mta@arbortext.com>
8296
8297         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8298         (shove_thread): Don't write the same output twice
8299         (make_ntpipe_output_stream): Increase priority of shove thread
8300         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8301         chance to run
8302         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8303         it.
8304
8305 2000-06-12  Ben Wing  <ben@xemacs.org>
8306
8307         * s\mingw32.h (sigset):
8308         * s\windowsnt.h (sigset):
8309         rename msw_ to mswindows_ for consistency with general convention.
8310
8311 2000-06-12  Ben Wing  <ben@xemacs.org>
8312
8313         * console-msw.c:
8314         * console-msw.c (mswindows_get_console_hwnd):
8315         * console-msw.c (mswindows_ensure_console_allocated):
8316         * console-msw.c (mswindows_hide_console):
8317         * console-msw.c (mswindows_show_console):
8318         * console-msw.c (mswindows_ensure_console_buffered):
8319         * console-msw.c (mswindows_output_console_string):
8320         * console-msw.c (mswindows_windows9x_p):
8321         * console-msw.h:
8322         * device-msw.c (mswindows_get_workspace_coords):
8323         * device-msw.c (mswindows_device_system_metrics):
8324         * dialog-msw.c (mswindows_popup_dialog_box):
8325         * event-msw.c (mswindows_wnd_proc):
8326         * frame-msw.c (mswindows_size_frame_internal):
8327         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8328         * menubar-msw.c (displayable_menu_item):
8329         * menubar-msw.c (mswindows_char_is_accelerator):
8330         * nt.c:
8331         * nt.c (mswindows_sigset):
8332         * nt.c (mswindows_sigrelse):
8333         * nt.c (mswindows_sigpause):
8334         * nt.c (mswindows_raise):
8335         * nt.c (timer_proc):
8336         * ntproc.c:
8337         * ntproc.c (find_child_console):
8338         * ntproc.c (sys_kill):
8339         * print.c:
8340         * print.c (std_handle_out_external):
8341         * process-nt.c (find_child_console):
8342         * process-nt.c (send_signal_the_95_way):
8343         * process-nt.c (ensure_console_window_exists):
8344         * process-nt.c (nt_create_process):
8345         * syssignal.h:
8346         rename msw_ to mswindows_ for consistency with general convention.
8347
8348         * emacs.c:
8349         * dumper.c:
8350         include nt.h, not syswindows.h.
8351
8352         * nt.c (mswindows_fstat):
8353         * nt.c (mswindows_stat):
8354         prefix mswindows_ instead of attempting to directly override the
8355         library functions.  fix declarations.
8356
8357         * nt.h:
8358         include syswindows.h.  move some sysdep.h stuff here.
8359
8360         * ntheap.h:
8361         include syswindows.h, not <windows.h>.
8362
8363         * ntplay.c:
8364         clean up headers.
8365
8366         * sysdep.c:
8367         clean up headers.
8368
8369         * sysdep.c (sys_fstat):
8370         * sysdep.c (sys_stat):
8371         call mswindows versions when appropriate.
8372
8373         * sysdep.h:
8374         move mswin decls to nt.h.
8375
8376         * syswindows.h:
8377         add long comment describing appropriate use of the various windows
8378         headers.
8379
8380 2000-06-11  Ben Wing  <ben@xemacs.org>
8381
8382         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8383
8384 2000-06-10  Ben Wing  <ben@xemacs.org>
8385
8386         * Makefile.in.in (release):
8387         Correction to make sure xemacs.exe always dumped when correct.
8388
8389         * alloca.c:
8390         * balloon_help.c:
8391         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8392
8393         * buffer.c (set_buffer_internal):
8394         [[[[2]]]]: Remove HAVE_FEP code.
8395
8396         * buffer.c (init_initial_directory):
8397         [3].
8398
8399         * bytecode.c:
8400         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8401         individual files.
8402
8403         * callproc.c:
8404         * callproc.c (call_process_cleanup):
8405         * callproc.c (Fold_call_process_internal):
8406         * callproc.c (child_setup):
8407         * callproc.c (getenv_internal):
8408         * callproc.c (init_callproc):
8409         * callproc.c (vars_of_callproc):
8410         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8411         __CYGWIN32__ -> CYGWIN.
8412         DOS_NT -> WIN32_NATIVE.
8413         Remove MSDOS support/references, converting to WIN32_NATIVE
8414           where correct.
8415         __MINGW32__ -> MINGW.
8416         Fix windows.h includes.
8417         Remove bogus HAVE_NTGUI.
8418
8419         * config.h.in:
8420         [2].
8421
8422         * console-msw.c:
8423         mswindows_message_outputted added for use in allowing startup
8424         errors on the console to be seen.
8425
8426         * console-msw.c (msw_ensure_console_allocated):
8427         * console-msw.c (msw_output_console_string):
8428         * console-msw.c (DHEADER):
8429         * console-msw.c (DOPAQUE_DATA):
8430         * console-msw.c (DEVENT):
8431         * console-msw.c (DCONS):
8432         * console-msw.c (DCONSCDR):
8433         * console-msw.c (DSTRING):
8434         * console-msw.c (DVECTOR):
8435         * console-msw.c (DSYMBOL):
8436         * console-msw.c (DSYMNAME):
8437         Fix warnings.
8438
8439         * console-stream.c (stream_init_console):
8440         Fix text/binary problems.
8441
8442         * device-msw.c:
8443         * device-msw.c (mswindows_finish_init_device):
8444         * device-msw.c (mswindows_delete_device):
8445         [1].
8446
8447         * device.c (handle_asynch_device_change):
8448         [3].
8449
8450         * dgif_lib.c:
8451         * dgif_lib.c (DGifOpenFileName):
8452         * dgif_lib.c (DGifOpenFileHandle):
8453         * dgif_lib.c (DGifGetLine):
8454         * dgif_lib.c (DGifGetPixel):
8455         Added config.h/lisp.h, fix up includes.
8456         [1].
8457
8458         * dired-msw.c:
8459         [4].
8460
8461         * dired.c:
8462         * dired.c (file_name_completion):
8463         * dired.c (Ffile_attributes):
8464         * dired.c (syms_of_dired):
8465         [1].
8466
8467         * dumper.c:
8468         * dumper.c (pdump_file_unmap):
8469         * dumper.c (pdump_load):
8470         [1].
8471
8472         * editfns.c:
8473         * editfns.c (Ftemp_directory):
8474         * editfns.c (user_login_name):
8475         * editfns.c (Fuser_real_login_name):
8476         * editfns.c (get_home_directory):
8477         [1].
8478
8479         * elhash.c (finish_marking_weak_hash_tables):
8480         [[[[5]]]]: Fix GCC warnings.
8481
8482         * emacs.c:
8483         * emacs.c (mswindows_handle_hardware_exceptions):
8484         * emacs.c (make_arg_list_1):
8485         * emacs.c (main_1):
8486         * emacs.c (Fkill_emacs):
8487         * emacs.c (Fdump_emacs):
8488         [1].
8489         Fix problems with nested crashes, add long comment.
8490
8491         * event-Xt.c (init_event_Xt_late):
8492         [1].
8493
8494         * event-msw.c:
8495         * event-msw.c (mswindows_dde_callback):
8496         * event-msw.c (mswindows_handle_sticky_modifiers):
8497         * event-msw.c (mswindows_wnd_proc):
8498         [1].
8499         [5].
8500
8501         * events.c (character_to_event):
8502         [1].
8503
8504         * fileio.c:
8505         * fileio.c (Ffile_name_directory):
8506         * fileio.c (Ffile_name_nondirectory):
8507         * fileio.c (directory_file_name):
8508         * fileio.c (Fexpand_file_name):
8509         * fileio.c (Fsubstitute_in_file_name):
8510         * fileio.c (Ffile_name_absolute_p):
8511         * fileio.c (check_executable):
8512         * fileio.c (Ffile_readable_p):
8513         * fileio.c (Ffile_accessible_directory_p):
8514         * fileio.c (Ffile_modes):
8515         * fileio.c (Funix_sync):
8516         * fileio.c (vars_of_fileio):
8517         [1]. [4].
8518
8519         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8520
8521         Expand getdefdir defn.
8522         Fix bogus rename() comment.
8523
8524         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8525         to use standard XEmacs include files, e.g. sysfile.h, rather
8526         than system-specific includes.
8527
8528         * fns.c:
8529         * fns.c (Fsubseq):
8530         [5]. [6].
8531
8532         * frame.c (vars_of_frame):
8533         [1].
8534
8535         * getloadavg.c:
8536         * getloadavg.c (getloadavg):
8537         [1]. [6].
8538         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8539         (We don't use it elsewhere in the code; just add a comment.)
8540
8541         * gif_io.c:
8542         [6].
8543         Add config.h.
8544
8545         * glyphs-msw.c:
8546         * glyphs-msw.c (mswindows_resource_instantiate):
8547         [1].
8548
8549         * glyphs-x.c (x_native_layout_instantiate):
8550         [5].
8551
8552         * gui-msw.c (Fmswindows_shell_execute):
8553         [1].
8554
8555         * insdel.c:
8556         [4].
8557
8558         * lisp.h:
8559         [4]. [5].
8560
8561         * lread.c (locate_file_in_directory_mapper):
8562         [1].
8563
8564         * lstream.c:
8565         [4].
8566
8567         * mem-limits.h:
8568         * mem-limits.h (get_lim_data):
8569         [1].
8570
8571         * menubar-msw.c:
8572         [4].
8573
8574         * ndir.h:
8575         [1].
8576
8577         * nt.c:
8578         * nt.c (getwd):
8579         * nt.c (closedir):
8580         * nt.c (rva_to_section):
8581         * nt.c (mswindows_executable_type):
8582         [1]. [6].
8583         Fix closedir() defn.
8584
8585         * nt.h:
8586         [[[[8]]]]: *_OK defs moved to sysfile.h.
8587
8588         * ntproc.c:
8589         [6]. [7].
8590
8591         * objects-x.c:
8592         [4].
8593
8594         * print.c:
8595         * print.c (std_handle_out_external):
8596         [1]. [4].
8597
8598         * process-nt.c:
8599         * process-nt.c (nt_create_process):
8600         [6].
8601         try to fix process quoting somewhat.
8602
8603         * process-unix.c (unix_create_process):
8604         [1].
8605
8606         * process.c:
8607         * process.c (vars_of_process):
8608         Add Vnull_device.
8609
8610         * process.h:
8611         [1].
8612
8613         * realpath.c:
8614         * realpath.c (xrealpath):
8615         [1].
8616
8617         * redisplay-tty.c (init_tty_for_redisplay):
8618         [3].
8619
8620         * redisplay.c:
8621         [4]. [6].
8622
8623         * scrollbar-msw.c:
8624         [4].
8625
8626         * sheap.c:
8627         * sheap.c (more_static_core):
8628         * sheap.c (report_sheap_usage):
8629         [5]. [6].
8630
8631         * signal.c:
8632         * signal.c (alarm_signal):
8633         [1]. [6].
8634
8635         * sound.c:
8636         [6].
8637
8638         * strftime.c:
8639         * strftime.c (zone_name):
8640         [1]. [5].
8641
8642         * symsinit.h (init_sunpro):
8643         [1].
8644
8645         * syscommctrl.h:
8646         commctrl.h not in Cygwin b20.1.
8647
8648         * sysdep.c:
8649         * sysdep.c (endif):
8650         * sysdep.c (sys_subshell):
8651         * sysdep.c (init_baud_rate):
8652         * sysdep.c (emacs_get_tty):
8653         * sysdep.c (emacs_set_tty):
8654         * sysdep.c (tty_init_sys_modes_on_device):
8655         * sysdep.c (init_system_name):
8656         * sysdep.c (sys_open):
8657         * sysdep.c (interruptible_open):
8658         * sysdep.c (sys_fopen):
8659         * sysdep.c (sys_mkdir):
8660         * sysdep.c (sys_rename):
8661         * sysdep.c (get_process_times_1):
8662         [1]. [6].
8663
8664         * sysdep.h:
8665         [1].
8666
8667         * sysdir.h:
8668         * sysdir.h (DIRENTRY_NONEMPTY):
8669         [1]. [6].
8670
8671         * sysdll.c (dll_init):
8672         * sysdll.h:
8673         [1].
8674
8675         * sysfile.h:
8676         [1]. [6]. [8].
8677         added text/binary defs.
8678
8679         * sysfloat.h:
8680         [1].
8681
8682         * sysproc.h:
8683         * sysproc.h (EDESTADDRREQ):
8684         * sysproc.h (poll_fds_for_input):
8685         [1]. [6].
8686
8687         * syspwd.h:
8688         [6].
8689
8690         * syssignal.h:
8691         [1].
8692
8693         * systime.h:
8694         [1]. [6].
8695
8696         * systty.h:
8697         [1].
8698
8699         * syswindows.h:
8700         [1].
8701         Always define WIN32_LEAN_AND_MEAN.
8702
8703         * unexcw.c (unexec):
8704         [5].
8705
8706         * unexec.c:
8707         * unexec.c (copy_text_and_data):
8708         * unexec.c (adjust_lnnoptrs):
8709         [1].
8710
8711         * unexnt.c:
8712         * unexnt.c (_start):
8713         [1].
8714
8715 2000-06-07  Ben Wing  <ben@xemacs.org>
8716
8717         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8718         was used only as a model.  We've long since extracted any useful
8719         logic or code out of this. (I just did an exhaustive search.)
8720
8721         * s\msdos.h: Removed.
8722
8723         * s\windows95.h: Removed.
8724
8725 2000-06-10  Ben Wing  <ben@xemacs.org>
8726
8727         * s\cygwin32.h:
8728         [1]. [5].
8729         Don't use extern with fun defs.
8730
8731         * s\mingw32.h:
8732         [1]. [7].
8733         Remove nt\inc include.
8734         Remove getdisk, getdefdir. (The former is unused, the latter
8735         expanded in fileio.h.)
8736
8737         * s\windowsnt.h:
8738         * s\windowsnt.h (WIN32_NATIVE):
8739         * s\windowsnt.h (HAVE_STRCASECMP):
8740         [1]. [7].
8741         Add long comment about preprocessor changes.
8742         Remove getdisk, getdefdir. (The former is unused, the latter
8743         expanded in fileio.h.)
8744
8745 2000-06-10  Ben Wing  <ben@xemacs.org>
8746
8747         * m\arm.h:
8748         * m\delta.h:
8749         * m\intel386.h:
8750         * m\sequent.h:
8751         * m\template.h:
8752         * m\windowsnt.h:
8753         [1].
8754         Remove bogus/unused NO_SOCK_SIGIO.
8755
8756 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8757
8758         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8759         not an Emchar.
8760
8761 2000-06-04  Mike Sperber <mike@xemacs.org>
8762
8763         * casetab.c (set_case_table): For `set-standard-case-table',
8764         actually deposit the new case tables where the rest of XEmacs can
8765         see them.
8766
8767 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8768
8769         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8770
8771 2000-06-05  Ben Wing  <ben@xemacs.org>
8772
8773         * callproc.c (child_setup): Don't do close_load_descs() under
8774         MS Windows.  Put in a comment explaining why.
8775
8776 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8777
8778         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8779         Toolkit shell" which breaks `kill-compilation' on Windows NT
8780         native, retaining STDERR handling improvements.
8781
8782 2000-06-01  Andreas Jaeger  <aj@suse.de>
8783
8784         * s/s390.h: Support for S390, based on a patch by Martin
8785         Schwidefsky <schwidefsky@de.ibm.com>.
8786
8787 2000-05-30  Andy Piper  <andy@xemacs.org>
8788
8789         * window.c (allocate_window):
8790         (make_dummy_parent):
8791         (Fset_window_configuration): use new hashtable type.
8792
8793         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8794         (struct image_instantiator_methods):
8795         (struct Lisp_Image_Instance): make instance geometry signed.
8796
8797         * glyphs.c (instantiate_image_instantiator):
8798         (image_instance_query_geometry):
8799         (image_instance_layout):
8800         (image_instance_layout):
8801         (query_string_geometry):
8802         (text_query_geometry):
8803         (image_instantiate):
8804         (image_instantiate):
8805         (cache_subwindow_instance_in_frame_maybe):
8806         (subwindow_query_geometry): make instance geometry signed.
8807
8808         * glyphs-widget.c (widget_query_geometry):
8809         (widget_layout):
8810         (button_query_geometry):
8811         (tree_view_query_geometry):
8812         (tab_control_query_geometry):
8813         (layout_query_geometry):
8814         (layout_layout):
8815         (native_layout_layout): make instance geometry signed.
8816
8817 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8818
8819         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8820         constant.
8821
8822         * general.c (syms_of_general): Add Qfull_assoc symbol.
8823
8824         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8825         correctly.
8826         (decode_weak_list_type): Decode full-assoc type.
8827         (encode_weak_list_type): Encode full-assoc type.
8828         (Fmake_weak_list): Update doc string.
8829
8830 2000-05-30  Andy Piper  <andy@xemacs.org>
8831
8832         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8833
8834         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8835         (decode_hash_table_weakness): ditto.
8836         (Fhash_table_weakness): ditto.
8837         (Fhash_table_type): ditto.
8838         (finish_marking_weak_hash_tables): ditto.
8839         (hash_table_weakness_validate): ditto.
8840         (syms_of_elhash): ditto.
8841
8842 2000-05-28  Martin Buchholz <martin@xemacs.org>
8843
8844         * XEmacs 21.2.34 is released.
8845
8846 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8847
8848         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8849         start cache.
8850         (updating_line_start_cache): Gone.
8851         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8852         generic code to force a minimum of 1 line laid out in the
8853         CMOTION_DISP case.
8854
8855 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8856
8857         * glyphs.c (instantiate_image_instantiator): Check for initialized
8858         height & width no longer special cases IMAGE_NOTHING.
8859         (nothing_instantiate): Set height and width of instance.
8860
8861 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8862
8863         * unexelf.c (unexec): Search for ".data" section.
8864         Initialize new_data2_offset from old_data_index.
8865         Remove redundant check for ElfW.
8866
8867 2000-05-23  Andy Piper  <andy@xemacs.org>
8868
8869         * glyphs.c (get_image_instantiator_governing_domain): allow more
8870         specific domains as the governing domain rather than expecting an
8871         exact match. This fixes problems with layouts.
8872
8873 2000-05-22  Andy Piper  <andy@xemacs.org>
8874
8875         * redisplay-output.c (compare_runes): check for non-images
8876
8877         * glyphs.c (set_glyph_dirty_p): ditto.
8878         (update_glyph_cachel_data): ditto.
8879
8880         * glyphs-widget.c (layout_post_instantiate): ditto.
8881         (layout_post_instantiate): ditto.
8882
8883         * event-msw.c (mswindows_wnd_proc): warning removal.
8884
8885 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8886
8887         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8888
8889         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8890
8891         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8892
8893         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8894         (mswindows_executable_type): mingw32 now has enough headers for
8895         this to work.
8896
8897 2000-05-20  Andy Piper  <andy@xemacs.org>
8898
8899         * console-msw.c (mswindows_output_last_error): ; -> ,
8900
8901 2000-05-12  Andy Piper  <andy@xemacs.org>
8902
8903         * console-msw.c (FROB): compare ints with ints.
8904
8905 2000-05-11  Andy Piper  <andy@xemacs.org>
8906
8907         * glyphs-x.c (x_finalize_image_instance): make minimal build
8908         happy.
8909
8910 2000-05-20  Ben Wing  <ben@xemacs.org>
8911
8912         * event-Xt.c:
8913         * event-Xt.c (vars_of_event_Xt):
8914         move modifier-keys-are-sticky to event-stream.c.
8915
8916         * event-msw.c:
8917         * event-msw.c (mswindows_enqueue_mouse_button_event):
8918         * event-msw.c (key_needs_default_processing_p):
8919         * event-msw.c (XEMSW_LCONTROL):
8920         * event-msw.c (mswindows_handle_sticky_modifiers):
8921         * event-msw.c (FROB):
8922         * event-msw.c (clear_sticky_modifiers):
8923         * event-msw.c (output_modifier_keyboard_state):
8924         * event-msw.c (output_alt_keyboard_state):
8925         * event-msw.c (mswindows_wnd_proc):
8926         * event-msw.c (mswindows_modifier_state):
8927         * event-msw.c (emacs_mswindows_handle_magic_event):
8928         implement sticky modifiers.
8929
8930         * event-stream.c:
8931         * event-stream.c (vars_of_event_stream):
8932         move modifier-keys-are-sticky here.
8933
8934         * lisp.h:
8935         add CHECK_FUNCTION.
8936
8937         * rangetab.c:
8938         implement map-range-table.
8939
8940
8941 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8942
8943         * redisplay-tty.c (reset_tty_modes):
8944         (tty_redisplay_shutdown): Adjust argument type to
8945         tty_frame_output_end.
8946
8947 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8948
8949         * eval.c (Fbacktrace): Don't output a line with only right
8950         parenthesis.
8951
8952 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8953
8954         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8955         (Fpq_reset_poll): Ditto.
8956
8957 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8958
8959         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8960
8961 2000-05-16  Ben Wing  <ben@xemacs.org>
8962
8963         * buffer.c:
8964         * buffer.c (dfc_convert_to/from_internal_format):
8965         * buffer.c (reinit_vars_of_buffer):
8966         Fix conversion functions to allow reentrancy.
8967
8968         * console-msw.c:
8969         * console-msw.c (mswindows_output_last_error):
8970         New fun, generally useful -- output a human-readable
8971         version of GetLastError() on the console.
8972
8973         * console-msw.h:
8974         * console-msw.h (struct mswindows_frame):
8975         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8976
8977         * console-stream.c (stream_output_begin):
8978         * console-stream.c (stream_output_end):
8979         * console-stream.c (stream_output_vertical_divider):
8980         * console-stream.c (stream_clear_region):
8981         * console-stream.c (stream_flash):
8982         * console-stream.c (console_type_create_stream):
8983         Delete blank stream methods, not needed.
8984
8985         * console.h (struct console_methods):
8986         Split begin/end methods into window and frame.
8987
8988         * event-msw.c:
8989         * event-msw.c (mswindows_handle_paint):
8990         * event-msw.c (output_alt_keyboard_state):
8991         * event-msw.c (mswindows_wnd_proc):
8992         * event-msw.c (vars_of_event_mswindows):
8993         Comment about problems with ignored-expose.
8994         Define mswindows-debug-events; not really implemented.
8995
8996         * frame-msw.c (mswindows_init_frame_1):
8997         random cleanups.
8998
8999         * glyphs-msw.c:
9000         * glyphs-msw.c (begin_defer_window_pos):
9001         * glyphs-msw.c (mswindows_unmap_subwindow):
9002         * glyphs-msw.c (mswindows_map_subwindow):
9003         * glyphs-msw.c (mswindows_resize_subwindow):
9004         Use DeferWindowPos to reduce flashing when mapping/unmapping.
9005
9006         * glyphs.c (make_image_instance_1):
9007         Fix crash.
9008
9009         * gutter.c (Fredisplay_gutter_area):
9010         Use new begin/end methods.
9011
9012         * lisp.h (Dynarr_new2):
9013         New creation fun.
9014
9015         * redisplay-msw.c:
9016         * redisplay-msw.c (mswindows_frame_output_begin):
9017         * redisplay-msw.c (mswindows_frame_output_end):
9018         * redisplay-msw.c (console_type_create_redisplay_mswindows):
9019         New begin/end methods -- handle DeferWindowPos.
9020
9021         * redisplay-output.c (redisplay_move_cursor):
9022         * redisplay-output.c (redraw_cursor_in_window):
9023         * redisplay-output.c (redisplay_update_line):
9024         * redisplay-output.c (redisplay_output_window):
9025         New begin/end methods.
9026
9027         * redisplay-tty.c:
9028         * redisplay-tty.c (tty_frame_output_begin):
9029         * redisplay-tty.c (tty_frame_output_end):
9030         * redisplay-tty.c (console_type_create_redisplay_tty):
9031         New begin/end methods.
9032
9033         * redisplay-x.c:
9034         * redisplay-x.c (x_window_output_begin):
9035         * redisplay-x.c (x_window_output_end):
9036         * redisplay-x.c (console_type_create_redisplay_x):
9037         New begin/end methods.
9038
9039         * redisplay.c (redisplay_frame):
9040         * redisplay.c (Fredisplay_echo_area):
9041         New begin/end methods.
9042         use MAYBE_DEVMETH for clear_frame; it may not exist.
9043
9044         * window.h (WINDOW_XFRAME):
9045         WINDOW_XFOO macros -- get locale and decode struct pointer.
9046
9047
9048 2000-05-12  Ben Wing  <ben@xemacs.org>
9049
9050         * emacs.c:
9051         * emacs.c (ensure_no_quitting_from_now_on):
9052         * emacs.c (fatal_error_signal):
9053         * emacs.c (mswindows_handle_hardware_exceptions):
9054         * emacs.c (main):
9055         * emacs.c (Fkill_emacs):
9056         * emacs.c (shut_down_emacs):
9057         * emacs.c (assert_failed):
9058         various improvements in fatal error handling.
9059
9060         * eval.c:
9061         move preparing_for_armageddon to emacs.c.
9062
9063         * lisp.h:
9064         declare fatal_error_in_progress.
9065
9066         * print.c:
9067         * print.c (std_handle_out_external):
9068         * print.c (std_handle_out_va):
9069         * print.c (stderr_out):
9070         * print.c (stdout_out):
9071         use console under mswin when no standard output.
9072         don't do code conversion during fatal error.
9073
9074         * scrollbar.c (Fscrollbar_page_up):
9075         * scrollbar.c (Fscrollbar_page_down):
9076         fix missing else.  reindent.
9077
9078 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
9079
9080         Emergency fix.
9081
9082         * glyphs.h (GLYPH_CACHEL_DESCENT):
9083         (GLYPH_CACHEL_DESCENT):
9084         (GLYPH_CACHEL_DESCENT):
9085         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9086         used in case these are inline functions.
9087         Use more absurd values to error check.
9088
9089         include window.h for error check functions.
9090
9091 2000-05-11  Ben Wing  <ben@xemacs.org>
9092
9093         * cmdloop.c (Freally_early_error_handler):
9094         Display message box under windows; otherwise, message will disappear
9095         before it can be viewed.
9096
9097         * console-msw.c:
9098         * console-msw.c (Fmswindows_message_box):
9099         * console-msw.c (FROB):
9100         * console-msw.c (syms_of_console_mswindows):
9101         Define new fun `mswindows-message-box'.
9102         #### I will merge this into `popup-dialog-box'; just give me
9103         a bit of time.
9104
9105         * general.c:
9106         * general.c (syms_of_general):
9107         Some new symbols used in `mswindows-message-box'.
9108
9109         * glyphs.c:
9110         * glyphs.c (Fset_image_instance_property):
9111         put warning in this fun.
9112
9113         * glyphs.h:
9114         * glyphs.h (GLYPH_CACHEL_WIDTH):
9115         * glyphs.h (GLYPH_CACHEL_ASCENT):
9116         * glyphs.h (GLYPH_CACHEL):
9117         * glyphs.h (GLYPH_CACHEL_GLYPH):
9118         define error-checking versions to try to catch a bug i've seen --
9119         redisplay gets in an infinite loop because the glyph width of the
9120         continuation glyph is 65535.
9121
9122         * lisp.h:
9123         Extern message-box stuff.
9124
9125         * window.c (allocate_window):
9126         * window.c (make_dummy_parent):
9127         * window.c (Fset_window_configuration):
9128         Use EQUAL not EQ for subwindow caches to make them work a bit
9129         better. (Something is still very broken.)
9130
9131
9132 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9133
9134         * glyphs.c (image_instantiate): Suppress gcc warnings.
9135         (Fmake_image_instance): Fix doc string.
9136         * specifier.c (Fmake_specifier): Ditto.
9137
9138 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9139
9140         * paths.h.in (PATH_LOCK): Removed.
9141         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9142         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9143
9144 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9145
9146         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9147         Document (featurep '(and xemacs 21.02)).
9148
9149 2000-05-09  Ben Wing  <ben@xemacs.org>
9150
9151         * buffer.c (complex_vars_of_buffer):
9152         update modeline-format doc.
9153
9154         * device.h:
9155         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9156
9157         * emacs.c:
9158         timeline of all released versions of Emacs, for use in creating
9159         authorship comments and in synching up.
9160
9161         * glyphs-widget.c (image_instantiator_buttons):
9162         * glyphs-widget.c (image_instantiator_edit_fields):
9163         * glyphs-widget.c (image_instantiator_combo_box):
9164         * glyphs-widget.c (image_instantiator_scrollbar):
9165         * glyphs-widget.c (image_instantiator_progress_guage):
9166         * glyphs-widget.c (image_instantiator_tree_view):
9167         * glyphs-widget.c (image_instantiator_tab_control):
9168         * glyphs-widget.c (image_instantiator_labels):
9169         * glyphs-widget.c (image_instantiator_layout):
9170         * glyphs-widget.c (image_instantiator_native_layout):
9171         rename decode_domain method to governing_domain.
9172
9173         * glyphs.c:
9174         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9175         * glyphs.c (add_entry_to_device_ii_format_list):
9176         make sure we don't put an entry more than once into the list.
9177         * glyphs.c (check_instance_cache_mapper):
9178         *************************************************************
9179         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9180         HAVE BEEN GETTING.
9181         *************************************************************
9182         * glyphs.c (get_image_instantiator_governing_domain):
9183         clean up, expand on new concept of governing domain.
9184         * glyphs.c (instantiate_image_instantiator):
9185         * glyphs.c (allocate_image_instance):
9186         use governing_domain instead of cache_domain in naming.
9187         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9188         * glyphs.c (make_image_instance_1):
9189         * glyphs.c (Fmake_image_instance):
9190         allow for any domain (not just device), and process the
9191         governing domain correctly.  very big doc fix.
9192         * glyphs.c (Fimage_instance_domain):
9193         new primitive, to retrieve the governing domain of an image instance.
9194         * glyphs.c (image_instantiate):
9195         use new governing_domain stuff.  this fixes a crash you could get
9196         by instantiating certain widget glyphs in frame locales. (should
9197         signal an error instead of crashing.)
9198         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9199         * glyphs.c (Fglyphp): clean up doc.
9200         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9201         * glyphs.c (syms_of_glyphs):
9202         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9203         * glyphs.c (image_instantiator_format_create): add some comments about
9204         bogus code.
9205         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9206         for current-display-table. (Apparently Hrjove implemented in 1998 a
9207         design I wrote up in 1996, but didn't update the doc string.)
9208
9209         * glyphs.h: clean up a doc string.
9210         * glyphs.h (governing_domain):
9211         * glyphs.h (struct image_instantiator_methods):
9212         changes for governing_domain stuff.
9213
9214         * gutter.c:
9215         * gutter.c (Fgutter_specifier_p):
9216         * gutter.c (Fgutter_size_specifier_p):
9217         * gutter.c (Fgutter_visible_specifier_p):
9218         * objects.c:
9219         * objects.c (Fcolor_specifier_p):
9220         * objects.c (Ffont_specifier_p):
9221         * objects.c (Fface_boolean_specifier_p):
9222         doc strings moved to make-*-specifier.
9223
9224         * redisplay.c (add_disp_table_entry_runes_1):
9225         * redisplay.c (generate_fstring_runes):
9226         * redisplay.c (screen):
9227         add random comments and doc strings.
9228
9229         * specifier.c:
9230         * specifier.c (Fmake_specifier):
9231         major overhaul of this doc string.
9232
9233         * specifier.c (Fvalid_specifier_domain_p):
9234         comment about the bogosity of image instances being domains.
9235         * specifier.c (decode_domain):
9236         now non-static, used in glyphs.c.
9237         * specifier.c (specifier_instance):
9238         comment about the bogosity of image instances being domains.
9239         * specifier.c (Fgeneric_specifier_p):
9240         move doc string to make-generic-specifier.
9241         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9242         rebackslashify.
9243
9244         * specifier.h:
9245         * specifier.h (DOMAIN_FRAME):
9246         * specifier.h (DOMAIN_LIVE_P):
9247         * specifier.h (DOMAIN_XDEVICE):
9248         rebackslashify.
9249         add comments about problems with these macros.
9250         prototype for decode_domain.
9251
9252         * toolbar.c:
9253         * toolbar.c (Ftoolbar_specifier_p):
9254         move doc string to `make-toolbar-specifier'.
9255
9256         * window.c (window_unmap_subwindows_cache_mapper):
9257         *************************************************************
9258         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9259         HAVE BEEN GETTING.
9260         *************************************************************
9261
9262 2000-05-09  Andy Piper  <andy@xemacs.org>
9263
9264         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9265
9266         * window.c (Fset_window_configuration): reset the frame subwindow
9267         cache and re-initialize the window subwindow caches.
9268
9269         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9270
9271 2000-05-09  Ben Wing  <ben@xemacs.org>
9272
9273         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9274         DWORD.
9275
9276 2000-04-26  Mike Woolley  <mike@bulsara.com>
9277
9278         * ntheap.c: Changed recreate_heap to limit the amount reserved
9279         for the heap to that which is actually available. Also now
9280         displays a message box (with some dignostics) in the event that
9281         it still can't start.
9282
9283 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9284
9285         * callproc.c (Fold_call_process_internal): GCPRO path
9286
9287 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9288
9289         Patch by Bill Perry.
9290
9291         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9292         back data instead of #ifdef.
9293         (Fscrollbar_page_down): ditto.
9294
9295 2000-05-07  Ben Wing  <ben@xemacs.org>
9296
9297         * buffer.h:
9298         Kludge for defining Qmswindows_tstr.
9299
9300         * nt.c:
9301         * nt.c (open_input_file):
9302         * nt.c (open_output_file):
9303         * nt.c (rva_to_section):
9304         * nt.c (mswindows_executable_type):
9305         Move all memory-mapped-file routines here (some were in unexnt.c,
9306         which is bad because they are used by process-nt.c, and unexnt
9307         won't be around when portable dumping).  Synched the above routines
9308         with FSF 20.6.
9309
9310         * nt.h:
9311         Removed ifdef'd out bogus code.
9312         Fixed some prototypes.
9313
9314         * nt.h (file_data):
9315         * nt.h (OFFSET_TO_RVA):
9316         * nt.h (RVA_TO_OFFSET):
9317         * nt.h (RVA_TO_PTR):
9318         Moved the memory-mapped-file structures, macros and prototypes
9319         here, to parallel nt.c.  ntheap.h should really be removed
9320         entirely, and it's a non-portable-dumper specific file.
9321
9322         * ntheap.h (round_to_next):
9323         Moved the memory-mapped-file structures, macros and prototypes
9324         to nt.h.
9325
9326         * ntproc.c (compare_env):
9327         Moved rva_to_section and mswindows_executable_type to nt.c.
9328         Moved compare_env to process-nt.c.
9329         ntproc.c will die, one day.
9330
9331         * ntproc.c (sys_spawnve):
9332         Account for win32_ -> mswindows_.
9333
9334         * process-nt.c:
9335         * process-nt.c (struct nt_process_data):
9336         * process-nt.c (ensure_console_window_exists):
9337         * process-nt.c (compare_env):
9338         * process-nt.c (nt_create_process):
9339         * process-nt.c (nt_kill_process_by_pid):
9340         * process-nt.c (syms_of_process_nt):
9341         * process-nt.c (vars_of_process_nt):
9342         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9343         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9344         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9345         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9346         Move compare_env here from ntproc.c.
9347
9348         * process.c (Fprocess_send_region):
9349         Takes an optional fourth argument, BUFFER, which should fix some
9350         problems with call-process.
9351
9352         * syscommctrl.h:
9353         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9354
9355         * syswindows.h:
9356         Move ICC_BAR_CLASSES to syscommctrl.h.
9357         Add preliminary macros for MSWindows/Mule.  More to come.
9358
9359         * unexnt.c:
9360         * unexnt.c (unexec):
9361         open_output_file moved to nt.c.
9362
9363
9364 2000-05-05  Andy Piper  <andy@xemacs.org>
9365
9366         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9367         instance from the frame cache also since GC may catch up too late
9368         to make frame deletion sane.
9369
9370 2000-05-04  Andy Piper  <andy@xemacs.org>
9371
9372         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9373         (x_finalize_image_instance): ungcpro on deletion.
9374
9375         * glyphs.c (image_instantiator_format_create): give pointers a
9376         query geometry method so that the geometry is at least set.
9377
9378         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9379         initialize layouts if using widgets.
9380
9381 2000-05-03  Andy Piper  <andy@xemacs.org>
9382
9383         * nt.c: remove bogus reference to sysmmsystem.h
9384
9385         * gui-x.c (popup_selection_callback): fix no selection abort.
9386
9387 2000-05-02  Andy Piper  <andy@xemacs.org>
9388
9389         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9390         (mswindows_widget_instantiate): ditto.
9391
9392         * glyphs-widget.c (initialize_widget_image_instance): initialize
9393         children correctly.
9394         (widget_instantiate): cope with children and items in the same
9395         instance.
9396
9397         * glyphs.c (mark_image_instance): cope with children as a first
9398         class member.
9399         (image_instance_equal): ditto.
9400         (image_instance_hash): ditto.
9401         (image_instance_changed): ditto.
9402
9403 2000-04-30  Andy Piper  <andy@xemacs.org>
9404
9405         * glyphs.c (subwindow_query_geometry): new function. Return some
9406         defaults.
9407         (subwindow_instantiate): don't assign dimensions if none have been
9408         given.
9409         (image_instantiator_format_create): add subwindow_query_geometry.
9410         (print_image_instance): cope with layouts as widgets.
9411
9412 2000-04-29  Andy Piper  <andy@xemacs.org>
9413
9414         * frame.c (delete_frame_internal): call
9415         free_frame_subwindow_instance_cache so that all subwindows are
9416         finalized before their parent.
9417         (mark_frame): remove subwindow_cachels.
9418         (Fmake_frame): remove subwindow_cachel manipulation.
9419         (allocate_frame_core): subwindow_instance_cache is a weak list.
9420         (delete_frame_internal): set subwindow_instance_cache to nil.
9421
9422         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9423         finalization safe.
9424         (mswindows_finalize_image_instance): use the device
9425         not the domain as the domain may have died already.
9426
9427         * glyphs-x.c (x_finalize_image_instance): ditto.
9428         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9429         HEIGHT.
9430
9431         * redisplay-output.c (redisplay_unmap_subwindows): update for
9432         subwindow instance cache as a weak list.
9433         (redisplay_unmap_subwindows_maybe): ditto.
9434         (redisplay_unmap_subwindows_except_us): ditto.
9435
9436         * glyphs.c (unmap_subwindow): error checking will check the domain
9437         so don't deal with it here. Don't use cachels anymore.
9438         (map_subwindow): ditto.
9439         (update_subwindow_cachel_data): remove old accessor names.
9440         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9441         (Fresize_subwindow): don't update cachel.
9442         (mark_subwindow_cachels):
9443         (update_subwindow_cachel_data):
9444         (add_subwindow_cachel):
9445         (get_subwindow_cachel_index):
9446         (update_subwindow_cachel):
9447         (reset_subwindow_cachels):
9448         (mark_subwindow_cachels_as_not_updated): deleted.
9449         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9450         subwindow instance to the frame cache.
9451         (find_matching_subwindow): update for subwindow instance cache as
9452         a weak list.
9453         (update_widget_instances): ditto.
9454         (image_instance_type_to_mask):inlined.
9455         (free_frame_subwindow_instance_cache): new function. finalize all
9456         subwindows that are instantiated.
9457
9458         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9459         of cachel information.
9460         (IMAGE_INSTANCE_DISPLAY_X):
9461         (IMAGE_INSTANCE_DISPLAY_Y):
9462         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9463         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9464         (XIMAGE_INSTANCE_DISPLAY_X):
9465         (XIMAGE_INSTANCE_DISPLAY_Y):
9466         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9467         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9468         remove subwindow_cachel structure and function references.
9469         (image_instance_type_to_mask): inline from glyphs.c
9470
9471         * redisplay.c (redisplay_frame): remove subwindow_cachel
9472         references.
9473
9474         * frame.h (struct frame): remove subwindow_cachels.
9475         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9476
9477         * frameslots.h: add subwindow_instance_cache.
9478
9479         * window.c (replace_window): check subwindow cache of replacement.
9480         (window_unmap_subwindows_cache_mapper):
9481         (window_unmap_subwindows): new functions. Unmap all subwindows
9482         cached on this window.
9483         (mark_window_as_deleted): unmap all subwindows.
9484
9485 2000-04-27  Andy Piper  <andy@xemacs.org>
9486
9487         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9488
9489         * glyphs-widget.c (widget_layout): return something.
9490         (layout_layout): return something. Fail if not initialized.
9491         (layout_query_geometry): ditto.
9492         (image_instantiator_native_layout): new function. Initialized the
9493         native layout type.
9494         (widget_instantiate): don't do layout stuff here.
9495
9496         * glyphs.c (instantiate_image_instantiator): reorded calling or
9497         instantiate and post_instantiate with layout in between.
9498         (image_instance_layout): be more selective about deciding whether
9499         the layout has been done or not.
9500
9501         * glyphs.h (struct image_instantiator_methods): return a value
9502         from layout_method.
9503
9504 2000-04-26  Andy Piper  <andy@xemacs.org>
9505
9506         * glyphs.c (allocate_image_instance): make initial width and
9507         height unspecified. Set initialized to 0.
9508
9509         * syscommctrl.h new file. Encapsulates commctrl.h.
9510
9511         * syswindows.h new file. Encapsulates windows.h.
9512
9513         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9514         * nt.c: ditto.
9515         * console-msw.h: ditto.
9516
9517         * redisplay-tty.c (tty_output_display_block): remove layout references.
9518
9519         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9520         window handle rather than just the frame.
9521
9522         * glyphs.c (mark_image_instance): remove layout references.
9523         (print_image_instance): ditto.
9524         (image_instance_equal): ditto.
9525         (image_instance_hash): ditto.
9526         (decode_image_instance_type): ditto.
9527         (encode_image_instance_type): ditto.
9528         (image_instantiate): ditto.
9529         (allocate_glyph): ditto.
9530         (Fimage_instance_height): ditto.
9531         (Fimage_instance_width): ditto.
9532         (update_subwindow): ditto.
9533
9534         * redisplay-x.c (x_output_display_block): recode for layouts as
9535         widgets.
9536
9537         * redisplay-output.c (redisplay_output_layout): recode for layouts
9538         as widgets.
9539         (compare_runes): remove layout references.
9540
9541         * redisplay-msw.c (mswindows_output_display_block): recode for
9542         layouts as widgets.
9543
9544         * glyphs-widget.c (image_instantiator_layout): remove
9545         layout_possible_dest_types.
9546         (layout_possible_dest_types): deleted.
9547
9548         * glyphs.h (image_instance_type): remove layout references.
9549         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9550         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9551         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9552
9553 2000-04-25  Andy Piper  <andy@xemacs.org>
9554
9555         * glyphs-widget.c (image_instantiator_buttons):
9556         (image_instantiator_edit_fields):
9557         (image_instantiator_combo_box):
9558         (image_instantiator_scrollbar):
9559         (image_instantiator_progress_guage):
9560         (image_instantiator_tree_view):
9561         (image_instantiator_tab_control):
9562         (image_instantiator_labels):
9563         (image_instantiator_layout): call default post_instantiate method.
9564         (widget_post_instantiate): new function. Simply lays out the
9565         widgets.
9566
9567         * glyphs.h (struct image_instantiator_methods): add
9568         post_instantiate method.
9569
9570         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9571         method calls.
9572
9573 2000-04-23  Andy Piper  <andy@xemacs.org>
9574
9575         * glyphs.h (struct image_instantiator_methods): add
9576         decode_domain_method.
9577         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9578         derived from the domain.
9579         (IMAGE_INSTANCE_FRAME): new accessor.
9580         (XIMAGE_INSTANCE_FRAME): ditto.
9581
9582         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9583         instead of _SUBWINDOW_FRAME.
9584         (finalize_image_instance): ditto.
9585         (Fimage_instance_foreground): ditto.
9586         (Fimage_instance_background): ditto.
9587         (image_instantiate): ditto.
9588         (update_subwindow_cachel): ditto.
9589         (update_subwindow): ditto.
9590         (unmap_subwindow): ditto.
9591         (map_subwindow): ditto
9592         (subwindow_instantiate): ditto.
9593         * glyphs-msw.c (mswindows_update_widget): ditto.
9594         (mswindows_progress_gauge_instantiate): ditto.
9595         (mswindows_tab_control_update): ditto.
9596         * glyphs-x.c (x_update_widget): ditto.
9597         (x_widget_instantiate): ditto.
9598         (x_tab_control_instantiate): ditto.
9599         (x_tab_control_update): ditto.
9600         * event-msw.c (mswindows_wnd_proc): ditto
9601
9602         * glyphs-widget.c (image_instantiator_layout): use
9603         subwindow_decode_domain.
9604         (image_instantiator_buttons): ditto.
9605         (image_instantiator_edit_fields): ditto.
9606         (image_instantiator_combo_box): ditto.
9607         (image_instantiator_scrollbar): ditto.
9608         (image_instantiator_progress_guage): ditto.
9609         (image_instantiator_tree_view): ditto.
9610         (image_instantiator_tab_control): ditto.
9611         (image_instantiator_labels): ditto.
9612         (image_instantiator_layout): ditto.
9613
9614         * glyphs.c: add instance error checking to many functions.
9615         (instantiate_image_instantiator): decode device from cache_domain.
9616         (image_instantiate): partially rewrite by using
9617         decode_image_instantiator_domain to determine what domain the
9618         instance needs to be cached in.
9619         (decode_image_instantiator_domain): new function. Determine what
9620         domain the image needs to be cached in.
9621         (check_window_subwindow_cache): new error checking function.
9622         (check_instance_cache_mapper): ditto.
9623         (check_image_instance_structure): ditto.
9624         (subwindow_decode_domain): new function. Encodes a window as a
9625         subwindow's cache domain.
9626         (image_instantiator_format_create): use it for text and
9627         subwindows.
9628
9629 2000-04-21  Andy Piper  <andy@xemacs.org>
9630
9631         * glyphs.c (image_instance_device): new function.
9632         (image_instance_frame): new function.
9633         (image_instance_window): new function.
9634         (image_instance_live_p): new function.
9635
9636         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9637         cache to nil.
9638
9639         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9640         (IMAGE_INSTANCE_DOMAIN): new accessor.
9641         (XIMAGE_INSTANCE_DOMAIN): ditto.
9642
9643         * glyphs-x.c (x_finalize_image_instance): device->domain.
9644
9645         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9646         (mswindows_finalize_image_instance): ditto.
9647
9648         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9649         (gif_instantiate): ditto.
9650         (png_instantiate): ditto.
9651         (tiff_instantiate): ditto.
9652
9653         * glyphs.c (instantiate_image_instantiator): use domain rather
9654         than device.
9655         (mark_image_instance): device -> domain.
9656         (print_image_instance): ditto.
9657         (finalize_image_instance): ditto.
9658         (image_instance_equal): ditto.
9659         (allocate_image_instance): ditto.
9660         (Fcolorize_image_instance): ditto.
9661         (query_string_geometry): ditto.
9662         (image_instantiate): ditto
9663         (query_string_font): ditto.
9664         (image_instantiate): ditto.
9665         (update_subwindow): ditto.
9666         (unmap_subwindow): ditto.
9667         (map_subwindow): ditto.
9668         (subwindow_instantiate): ditto.
9669
9670         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9671         (DOMAIN_FRAME): ditto.
9672         (DOMAIN_WINDOW): ditto.
9673         (DOMAIN_LIVE_P): ditto.
9674         (XDOMAIN_DEVICE): ditto.
9675         (XDOMAIN_FRAME): ditto.
9676         (XDOMAIN_WINDOW): ditto.
9677
9678         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9679         a valid specifier domain.
9680
9681 2000-04-19  Andy Piper  <andy@xemacs.org>
9682
9683         * glyphs-widget.c (syms_of_glyphs_widget): remove
9684         widget-callback-current-channel.
9685         (vars_of_glyphs_widget): ditto.
9686         * glyphs.h: ditto
9687
9688         * gui.c (get_gui_callback): revert to previous behaviour.
9689
9690 2000-04-18  Andy Piper  <andy@xemacs.org>
9691
9692         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9693         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9694         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9695
9696         * glyphs.c (image_instance_equal): add margin_width.
9697         (image_instance_hash): ditto.
9698
9699         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9700         (layout_query_geometry): ditto.
9701         (layout_layout): ditto.
9702         (syms_of_glyphs_widget): add margin-width.
9703         (image_instantiator_layout): allow margin-width.
9704
9705         * glyphs.c (update_widget_instances): make a normal function.
9706         (syms_of_glyphs): remove Qupdate_widget_instances.
9707         * glyphs.h: ditto.
9708
9709         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9710         so that we don't corrupt ideas about the last event or
9711         command. Remove widget-callback-current-channel fiddling.
9712         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9713
9714 2000-05-01  Martin Buchholz <martin@xemacs.org>
9715
9716         * XEmacs 21.2.33 is released.
9717
9718 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9719
9720         * make-src-depend: Allow dots in header file name.
9721
9722 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9723
9724         * mule-charset.h (struct charset_lookup): Add
9725         next_allocated_1_byte_leading_byte and
9726         next_allocated_2_byte_leading_byte.
9727         * mule-charset.c: Move above two variables so that those values
9728         will be dumped.
9729
9730 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9731
9732         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9733         when string length is zero.
9734         (find_charsets_in_emchar_string): Ditto.
9735
9736 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9737
9738         * lisp.h: extern Qdialog and Qmenubar.
9739
9740         * gui-x.c: added events.h.
9741                 also fixed typo which made the file uncompilable.
9742
9743         * general.c: Added Qmenubar and Qdialog
9744
9745 2000-04-28  Ben Wing  <ben@xemacs.org>
9746
9747         * frame-msw.c (mswindows_init_frame_1):
9748         * frame-msw.c (mswindows_mark_frame):
9749         * event-msw.c (mswindows_enqueue_dispatch_event):
9750         * console-msw.h:
9751         * console-msw.h (struct mswindows_frame):
9752         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9753         there are now three hash tables for callbacks.
9754         mswindows_enqueue_dispatch_event is no longer static.
9755
9756         * dialog-x.c (maybe_run_dbox_text_callback):
9757         * dialog-x.c (dbox_descriptor_to_widget_value):
9758         switch to new cons3 form for callbacks.
9759
9760         * glyphs-msw.c (mswindows_register_gui_item):
9761         * glyphs-msw.c (mswindows_widget_instantiate):
9762         * glyphs-msw.c (add_tree_item):
9763         * glyphs-msw.c (add_tab_item):
9764         new image instance parameter, so it can be passed to callback-ex.
9765         respect :callback-ex as well as :callback.
9766
9767         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9768         add :callback-ex.
9769
9770         * glyphs.c (print_image_instance):
9771         prettify, e.g. now prints widget type.
9772
9773         * gui-x.h:
9774         certain funs have new image instance parameter.
9775
9776         * gui.c:
9777         * gui.c (get_gui_callback):
9778         * gui.c (gui_item_add_keyval_pair):
9779         * gui.c (gui_item_init):
9780         * gui.c (gui_add_item_keywords_to_plist):
9781         * gui.c (mark_gui_item):
9782         * gui.c (gui_item_hash):
9783         * gui.c (gui_item_equal):
9784         * gui.c (copy_gui_item):
9785         * gui.c (syms_of_gui):
9786         recognize callback-ex in a number of places.
9787         also, fix the annoying "can't get out of yes-no dialog" bug.
9788
9789         * gui.h:
9790         * gui.h (struct Lisp_Gui_Item):
9791         recognize callback-ex in a number of places.
9792
9793         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9794         new parameter in button_item_to_widget_value.
9795
9796         * glyphs-x.c (x_update_widget):
9797         * glyphs-x.c (x_button_instantiate):
9798         * glyphs-x.c (x_button_update):
9799         * glyphs-x.c (x_progress_gauge_instantiate):
9800         * glyphs-x.c (x_edit_field_instantiate):
9801         * glyphs-x.c (x_combo_box_instantiate):
9802         * glyphs-x.c (x_tab_control_instantiate):
9803         * glyphs-x.c (x_label_instantiate):
9804         new image instance parameter in various places.
9805
9806         * event-Xt.c:
9807         * event-Xt.c (enqueue_Xt_dispatch_event):
9808         this fun gets exported.
9809
9810         * gui-msw.c:
9811         * gui-msw.c (mswindows_handle_gui_wm_command):
9812         handle both :callback and :callback-ex, and generate our own
9813         event because it's one of the callback-ex arguments.
9814
9815         * gui-x.c:
9816         * gui-x.c (popup_selection_callback):
9817         handle both :callback and :callback-ex, and generate our own
9818         event because it's one of the callback-ex arguments.
9819         * gui-x.c (button_item_to_widget_value):
9820         * gui-x.c (gui_items_to_widget_values_1):
9821         * gui-x.c (gui_item_children_to_widget_values):
9822         * gui-x.c (gui_items_to_widget_values):
9823         new image instance parameter in various places.
9824
9825         * fns.c (Freplace_list):
9826         fix small typo in doc string.
9827
9828         * lisp.h:
9829         declare enqueue_Xt_dispatch_event.
9830
9831 2000-04-28  Ben Wing  <ben@xemacs.org>
9832
9833         * buffer.c:
9834         * buffer.c (Frecord_buffer):
9835         * buffer.c (syms_of_buffer):
9836         delete record-buffer-hook.
9837
9838         * fns.c:
9839         * fns.c (Freplace_list):
9840         * fns.c (syms_of_fns):
9841         new primitive replace-list.
9842
9843         * frameslots.h:
9844         slot for old buffer-alist.
9845
9846         * lisp.h:
9847         exfun replace-list.
9848
9849         * redisplay.c:
9850         * redisplay.c (redisplay_frame):
9851         * redisplay.c (syms_of_redisplay):
9852         * redisplay.c (vars_of_redisplay):
9853         new hook buffer-list-changed-hook.
9854         call it.
9855
9856 2000-04-27  Ben Wing  <ben@xemacs.org>
9857
9858         * extents.h: extern in_modeline_generation.
9859
9860         * redisplay.c (generate_formatted_string_db): set
9861         in_modeline_generation.
9862
9863         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9864         flags if in modeline generation.  otherwise frame-modified-tick
9865         is ticked far too often.
9866         Declare in_modeline_generation.
9867
9868 2000-04-26  Ben Wing  <ben@xemacs.org>
9869
9870         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9871         option.
9872         (vars_of_emacs): add quick-build as an error-checking option.
9873         A bit kludgy, but there doesn't seem much point in creating
9874         a real var for this.
9875
9876         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9877
9878 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9879
9880         * redisplay.h (struct display_line): Add a new variable,
9881         line_continuation.
9882
9883         * redisplay.c (create_text_block): Set dl->line_continuation if
9884         the line continues.
9885         (create_string_text_block): Ditto.
9886         (regenerate_window_incrementally): Use line_continuation instead
9887         of searching continuation glyph.
9888         (add_margin_runes): Call add_glyph_rune.
9889         (add_glyph_rune): Handle margin glyph.
9890
9891 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9892
9893         * filelock.c (fill_in_lock_file_name):
9894         ANSIfy.
9895         Check for IS_ANY_SEP instead of '/'.
9896         (lock_file_1):
9897         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9898         Never check errno without first seeing that system call failed.
9899         (unlock_file): Add GCPRO.
9900         (Flock_buffer): Fix docstring.
9901         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9902
9903 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9904
9905         * sysdep.c (get_pty_max_bytes):
9906         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9907         strings longer than 252 bytes.
9908
9909         * md5.c: Unconditionally include ANSI header <limits.h>
9910
9911         * glyphs-x.c (convert_EImage_to_XImage):
9912         * lisp-union.h (union Lisp_Object):
9913         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9914
9915 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9916
9917         * filelock.c (current_lock_owner): Remove unused variable o, p.
9918
9919 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9920
9921         * callint.c: Remove multiply defined symbol Qlet
9922         (syms_of_callint): ditto.
9923
9924 2000-04-14  Andy Piper  <andy@xemacs.org>
9925
9926         * general.c (syms_of_general): add last-command, this-command, let
9927         and funcall.
9928
9929         * lisp.h: declare various symbols.
9930
9931         * glyphs.h: declare Qwidget_callback_current_channel;
9932
9933         * glyphs-widget.c (syms_of_glyphs_widget): add
9934         Qgui_callback_current_channel.
9935         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9936
9937         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9938         widget-callback-current-channel when invoking the interactive
9939         arg. Also bind last-command and next-command when invoking the
9940         widget updates.
9941         * gui-x.c (popup_selection_callback): ditto.
9942
9943         * gui.c (get_gui_callback): massage args so that we are always
9944         calling eval. This allows us to add our own variable bindings
9945         outside.
9946
9947         * glyphs-x.c (x_button_instantiate): use
9948         gui_items_to_widget_values since this is GC safe.
9949         (x_progress_gauge_instantiate): ditto.
9950         (x_edit_field_instantiate): ditto.
9951         (x_label_instantiate): ditto.
9952
9953         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9954         (emacs_Xt_event_widget_focus_out): new function
9955         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9956         focus.
9957         (emacs_Xt_event_add_widget_actions): new function. add focus
9958         functions as actions.
9959         (init_event_Xt_late): use it.
9960
9961 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9962
9963         * event-stream.c (Fdispatch_event): Doc fix.
9964
9965 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9966
9967         * postgresql.c: Remove all references to PQsetenv*.
9968
9969         * postgresql.h: Remove references to PGsetenvHandler object.
9970         * lrecord.h (lrecord_type): Ditto.
9971
9972 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9973
9974         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9975         real_heigh and real_width members, and accessor macros for these.
9976
9977         * glyphs-msw.c (init_image_instance_geometry): New function.
9978         (init_image_instance_from_dibitmap): Use it.
9979         (mswindows_resource_instantiate): Use it.
9980         (init_image_instance_from_xbm_inline): Use it.
9981         (mswindows_initialize_image_instance_mask): Use real bitmap
9982         geometry.
9983         (mswindows_create_resized_bitmap): Ditto.
9984         (mswindows_create_resized_mask): Ditto.
9985
9986         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9987         and bitmap to their surface size.
9988
9989 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9990
9991         * process-unix.c (unix_send_process): Guard against process MIA
9992         after Faccept_process_output.
9993
9994 2000-04-11  Ben Wing  <ben@xemacs.org>
9995
9996         * eval.c (unbind_to_hairy): fix brokenness introduced by
9997         nanosecond speed improvements.
9998
9999 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
10000
10001         * sunplay.c (init_device): To play sounds correctly, the device
10002         apparently needs to be initialized at least once by XEmacs.  Make
10003         it so.
10004
10005 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10006
10007         * redisplay.c (add_margin_runes): Add text image glyph
10008           handling.
10009
10010 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10011
10012         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
10013         gcc is newer than 2.5.
10014
10015 2000-04-06  Colin Rafferty  <colin@xemacs.org>
10016
10017         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
10018
10019         * fns.c (size_bit_vector):
10020         * alloc.c (size_vector):
10021         (make_vector_internal):
10022         (make_bit_vector_internal):
10023         (sweep_bit_vectors_1):
10024         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
10025
10026 2000-04-06  Andy Piper  <andy@xemacs.org>
10027
10028         * gmalloc.c (malloc): undo previous change.
10029         (malloc): ditto.
10030         (free): ditto.
10031         (realloc): ditto.
10032
10033 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
10034
10035         * line-number.c (buffer_line_number): Revert to former version.
10036
10037 2000-04-06  Andy Piper  <andy@xemacs.org>
10038
10039         * gmalloc.c (malloc): add error checking.
10040         (malloc): ditto.
10041         (free): ditto.
10042         (realloc): ditto.
10043
10044         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
10045         button_item_to_widget_value arg.
10046
10047         * glyphs-x.c (x_button_instantiate): add extra
10048         button_item_to_widget_value arg.
10049         (x_progress_gauge_instantiate): ditto.
10050         (x_edit_field_instantiate): ditto.
10051         (x_label_instantiate): ditto.
10052
10053         * gui-x.c (gui_items_to_widget_values_1): add extra
10054         button_item_to_widget_value arg.
10055         (button_item_to_widget_value): add extra menu_item_p arg.
10056
10057         * gui-x.h: change signature of button_item_to_widget_value.
10058
10059         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
10060         button_item_to_widget_value arg.
10061
10062 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10063
10064         * buffer.h (struct buffer): auto_save_modified should be long.
10065
10066 2000-04-05  Andy Piper  <andy@xemacs.org>
10067
10068         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
10069         type.
10070         (button_query_geometry): give a little more room so that athena
10071         buttons fit.
10072
10073 2000-04-05  Andy Piper  <andy@xemacs.org>
10074
10075         * faces.c (complex_vars_of_faces): The widget face should inherit
10076         the font of the gui-element face.
10077
10078 2000-04-04  Andy Piper  <andy@xemacs.org>
10079
10080         * glyphs-x.c (x_button_update): new function. unconditionally
10081         update a button's state when the instance is dirty.
10082         (image_instantiator_format_create_glyphs_x): add x_button_update.
10083         (x_widget_instantiate): remove old resize cruft.
10084
10085 2000-04-02  Andy Piper  <andy@xemacs.org>
10086
10087         * frame.c (change_frame_size_1): The introduction of gutters means
10088         that we need to allow 0 as a potential frame dimension.
10089
10090 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10091
10092         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10093         image glyph if allow_cursor.
10094         (add_hscroll_rune): Don't allow cursor to border glyph.
10095         (create_text_block): Ditto.
10096
10097         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10098         text not in buffer.
10099         (redisplay_output_layout): Call ensure_face_cachel_complete for
10100         text image glyph.
10101
10102
10103 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10104
10105         * redisplay.c (add_glyph_rune): Adding text image as text runes.
10106
10107         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10108         not in buffer
10109
10110         * redisplay-tty.c (tty_output_display_block): Delete the routine
10111         for text image glyph
10112         * redisplay-x.c (x_output_display_block): ditto
10113         * redisplay-msw.c (mswindows_output_display_block): ditto
10114
10115 2000-02-02  Mike Alexander  <mta@arbortext.com>
10116
10117         Note: Some of these were committed by accident as part of other
10118         patches.
10119
10120         * regex.c (regex_compile): Avoid compiler warnings.
10121
10122         * ntproc.c (sys_spawnve): Avoid compiler warnings.
10123
10124         * nt.h: Declare term_ntproc correctly.
10125
10126         * nt.c: Remove incorrect declaration of get_home_directory which
10127         is declared correctly in lisp.h.
10128
10129         * keymap.c (get_keyelt): Avoid compiler warnings.
10130         (raw_lookup_key_mapper): Avoid compiler warnings.
10131
10132         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10133
10134         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10135
10136         * filemode.c (mode_string): Avoid compiler warnings.
10137
10138         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10139         avoid warning.
10140
10141         * events-mod.h: Undef some things that winuser.h defines differently.
10142
10143         * data.c (Faset): Avoid compiler warnings.
10144
10145         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10146
10147 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10148
10149         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10150         Fall through to simple beep on error.
10151         Replace "extern" by real header file.
10152
10153         * linuxplay.c: Use nativesound.h
10154         (play_sound_data): Return error code. Be less verbose on error.
10155
10156         * sunplay.c: Use nativesound.h
10157         (play_sound_data): Return error code. Be less verbose on error.
10158
10159         * ntplay.c: Use nativesound.h
10160         (play_sound_data): Return fake error code
10161
10162         * sgiplay.c: Use nativesound.h
10163         (play_sound_data): Return error code
10164
10165         * hpplay.c: Use nativesound.h, partially implement
10166         new error code. Break compilation until finished.
10167         (play_sound_data): error code.
10168
10169         * nativesound.h (play_sound_file):
10170           (play_sound_data): Prototype in new header.
10171
10172 2000-03-31  Andy Piper  <andy@xemacs.org>
10173
10174         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10175         for toggle and radio buttons.
10176         (image_instantiator_buttons): use it.
10177
10178 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10179
10180         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10181         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10182         found. Scrollbar event probably belonged to some old config.
10183
10184 2000-03-31  Andy Piper  <andy@xemacs.org>
10185
10186         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10187         than 1.
10188         (initialize_widget_image_instance): default layout to
10189         LAYOUT_HORIZONTAL rather than 0.
10190         (widget_instantiate): reverse the item list at the end rather than
10191         every iteration.
10192         (layout_layout): re-code for the border text at the front of the
10193         item list rather than at the end.
10194         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10195         provided by the user.
10196         (widget_query_geometry): comment.
10197
10198 2000-03-30  Andy Piper  <andy@xemacs.org>
10199
10200         * glyphs-widget.c (image_instantiator_layout): allow standard
10201         widget keywords in layouts.
10202
10203         * gutter.c (output_gutter): cope with nil gutter contents.
10204
10205         * frame.c (Fset_frame_properties): add gutter docs.
10206
10207 2000-03-29  Andy Piper  <andy@xemacs.org>
10208
10209         * toolbar-msw.c (TBSTYLE_FLAT): add.
10210         (mswindows_output_toolbar): minor fiddling.
10211
10212 2000-03-29  Andy Piper  <andy@xemacs.org>
10213
10214         * gutter.c (output_gutter): force gutter size recalculation if
10215         what we are trying to display won't fit.
10216         (update_gutter_geometry): new function. A per-gutter version of
10217         update_frame_gutter_geometry.
10218         (update_frame_gutter_geometry): use it.
10219         (redraw_exposed_gutter): add extra debugging output.
10220
10221 2000-03-28  Mike Alexander  <mta@arbortext.com>
10222
10223         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10224         (pdump_file_unmap): Implement it on Windows
10225         (pdump_file_get): Save alocated handles for pdump_file_unmap
10226
10227 2000-03-28  Andy Piper  <andy@xemacs.org>
10228
10229         * gui.c (get_gui_callback): treat Quit specially.
10230
10231 2000-03-27  Andy Piper  <andy@xemacs.org>
10232
10233         * glyphs.c (image_instantiate): be careful to check in the same
10234         way we assigned.
10235
10236 2000-03-27  Didier Verna  <didier@xemacs.org>
10237
10238         * config.h.in: define the proper SMART_INCLUDE macro.
10239         handle renaming of `foo_h_path' to `foo_h_file'.
10240
10241         * database.c: ditto.
10242
10243         * emacs.c: ditto.
10244
10245         * linuxplay.c: ditto.
10246
10247         * terminfo.c: ditto.
10248
10249         * tooltalk.h: ditto.
10250
10251 2000-03-27  Andy Piper  <andy@xemacs.org>
10252
10253         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10254         gets updated whenever the face might have changed.
10255
10256 2000-03-26  Mike Alexander  <mta@arbortext.com>
10257
10258         * dumper.c (pdump_resource_free): Fix the comment.
10259
10260 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10261
10262         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10263
10264 2000-03-22  Mike Alexander  <mta@arbortext.com>
10265
10266         * dumper.c: Include Windows headers on Windows
10267         (pdump_resource_free): Add a body to the function
10268         (pdump_load): exe_name -> exe_path and add some comments.
10269
10270 2000-03-25  Mike Alexander  <mta@arbortext.com>
10271
10272         * gui.c (copy_gui_item_tree): Return a value in all cases
10273
10274 2000-03-21  Didier Verna  <didier@xemacs.org>
10275
10276         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10277         lwlib/config.h.in.
10278         (SMART_INCLUDE): new macro.
10279         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10280         the proper location.
10281
10282         * postgresql.c: use it.
10283
10284         * inline.c: ditto.
10285
10286 2000-03-24  Andy Piper  <andy@xemacs.org>
10287
10288         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10289         do this.
10290
10291 2000-03-24  Andy Piper  <andy@xemacs.org>
10292
10293         * redisplay-output.c (compare_runes): use image_instance_changed
10294         to detect changes. Do not depend on glyphs_changed, only depend on
10295         dirtiness.
10296          (redisplay_output_layout): add debug messages.
10297         (compare_runes): ditto.
10298
10299         * glyphs.h: declare new functions.
10300         (struct Lisp_Image_Instance): remove percent and associated
10301         accessors.
10302
10303         * gui.h: declare new copying functions.
10304
10305         * gui.c (copy_gui_item_tree): new function.
10306         (copy_gui_item): new function.
10307         (gui_item_id_hash): revert to standard hash.
10308         (gui_item_hash): ditto.
10309         (gui_item_hash_internal): deleted.
10310         (mark_gui_item): mark value.
10311         (gui_item_add_keyval_pair): add value.
10312         (gui_item_init): ditto.
10313         (gui_add_item_keywords_to_plist): ditto.
10314         (gui_item_equal): ditto.
10315         (syms_of_gui): add Q_value.
10316
10317         * glyphs-x.c (x_progress_gauge_update): use pending items and
10318         value for setting the state.
10319         (x_update_widget): don't set items from pending here.
10320
10321         * glyphs-widget.c (update_widget): update items here.
10322         (progress_gauge_set_property): use items for storing value. Put
10323         new value in pending items.
10324
10325         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10326         items for new value. Convert percent -> value.
10327         (mswindows_tab_control_update): don't update items here.
10328
10329         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10330         (update_subwindow): ditto.
10331         (image_instance_changed): new function. Compare hash values and
10332         past and present widget items.
10333         (image_instantiate): We more careful about where we instantiate
10334         things.
10335         (image_instantiate): add error checking.
10336
10337         * gutter.c (syms_of_gutter): use -hook.
10338
10339 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10340
10341         * console-tty.c (Fset_console_tty_input_coding_system): Use
10342         Qkeyboard.
10343         (Fset_console_tty_output_coding_system): Use Qterminal.
10344         (tty_init_console): Use Qkeyboard and Qterminal.
10345
10346 2000-03-21  Ben Wing  <ben@xemacs.org>
10347
10348         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10349         From Mike Alexander <mta@arbortext.com>.
10350
10351 2000-03-21  Ben Wing  <ben@xemacs.org>
10352
10353         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10354         process brokenness.  Proper implementation to come.
10355         * callproc.c:
10356         Rename call-process-internal to old-call-process-internal.
10357         New impl. in process.el.
10358
10359 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10360
10361         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10362
10363 2000-03-20  Andy Piper  <andy@xemacs.org>
10364
10365         * glyphs.c (full_list_hash): make hashes of the same elements in
10366         different orders return different values.
10367
10368 2000-03-20  Martin Buchholz <martin@xemacs.org>
10369
10370         * XEmacs 21.2.32 is released.
10371
10372 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10373
10374         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10375         (DFC_MALLOC_USE_CONVERTED_DATA):
10376         Add aliasing-safe casts to allow use with char* or unsigned char*
10377         lvalues.
10378
10379         * eldap.c (Fldap_open):
10380         (Fldap_search_basic):
10381         (Fldap_add):
10382         (Fldap_modify):
10383         Make C++-compilable.
10384         Make sure GCPRO'ed variables are initialized.
10385         Use temp variables to avoid repeated calls to Flength.
10386
10387 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10388
10389         * sysfile.h:
10390         Make sure PATH_MAX is always defined.
10391         Include limits.h for PATH_MAX.
10392         Deprecate use of MAXPATHLEN.
10393
10394 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10395
10396         * emacs.c: Add reinit_vars_of_fileio.
10397         * symsinit.h: Add reinit_vars_of_fileio.
10398         * fileio.c (reinit_vars_of_fileio): New.
10399         * fileio.c (Fmake_temp_name):
10400         Initialize temp_name random number from microseconds to make
10401         collisions even less likely.  Initialize always at process startup
10402         time.  (make-temp-name) used to return the same file name twice in
10403         a row when PDUMP.
10404         Random stylistic fiddling.
10405         Comment fixes.
10406
10407 2000-03-20  Andy Piper  <andy@xemacs.org>
10408
10409         * glyphs.c (image_instantiate): allow text glyphs to be
10410         instantiated in the minibuffer window.
10411
10412 2000-03-19  Andy Piper  <andy@xemacs.org>
10413
10414         * glyphs.c (image_instance_hash): be careful about which items we
10415         hash on.
10416
10417         * glyphs-widget.c (tab_control_set_property): record into pending
10418         items rather than the actual items.
10419
10420         * glyphs-x.c (x_update_widget): use pending items to update with.
10421
10422         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10423         to update with.
10424
10425         * glyphs.c (mark_image_instance): mark pending items.
10426
10427         * window.c (Fset_window_configuration): record the buffer.
10428         (Fselect_window): totally revert previous change which breaks many
10429         things.
10430
10431 2000-03-18  Andy Piper  <andy@xemacs.org>
10432
10433         * glyphs-msw.c (mswindows_tab_control_update): force selected
10434         item.
10435
10436         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10437         window domain cache, otherwise we get inconsistencies at
10438         startup. There is something fishy at startup which can lead to the
10439         minibuffer being the selected window when the gutter content is
10440         instantiated.
10441
10442         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10443         gcpros.
10444         (parse_gui_item_tree_children): ditto.
10445         (parse_gui_item_tree_item): ditto.
10446
10447         * glyphs.c (Fupdate_widget_instances): return something.
10448
10449 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10450
10451         * window.c (Fselect_window): Undo 2000-03-17 change.
10452
10453 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10454
10455         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10456         against v7.0 libraries.  Insta-coredump city until the postgres
10457         folks fix it.
10458
10459 2000-03-17  Andy Piper  <andy@xemacs.org>
10460
10461         * faces.c (complex_vars_of_faces): don't give the widget face an
10462         inherited background pixmap.
10463
10464         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10465         selected item.
10466
10467         * event-stream.c (Fdispatch_non_command_events): return something.
10468
10469         * gutter.c (output_gutter): use widget face.
10470         (clear_gutter): ditto.
10471
10472         * NEWS: adjust again.
10473
10474         * window.c (Fselect_window): make sure this runs to completion to
10475         avoid oddities with Fset_window_configuration.
10476         (Fcurrent_window_configuration): in general do not save the
10477         minibuffer as the selected window.
10478
10479         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10480
10481 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10482
10483         * emacs.c (Frunning_temacs_p): Revert previous patch.
10484         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10485
10486 2000-03-16  Andy Piper  <andy@xemacs.org>
10487
10488         * glyphs-x.c (x_tab_control_update): if no widget values then
10489         return.
10490
10491         * NEWS: update for new features.
10492
10493         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10494         synthetic event to the native system.
10495         (reinit_vars_of_event_Xt): set force_event_pending to
10496         emacs_Xt_force_event_pending.
10497
10498         * events.h (struct event_stream): add force_event_pending.
10499
10500         * specifier.c (recompute_one_cached_specifier_in_window): add
10501         comment.
10502
10503         * redisplay.c (redisplay_frame): don't call
10504         update_frame_subwindows. Reset subwindow cachels when
10505         subwindows_changed, removing this was an optimization too far.
10506
10507         * redisplay-output.c (compare_runes): reorganize so that we catch
10508         glyph changes when we want them. Set optimize_output when this
10509         would help layouts.
10510         (redisplay_output_layout): remove frame_really_changed, use
10511         optimize_output instead.
10512
10513         * redisplay-msw.c (mswindows_output_display_block): reset
10514         optimize_output after outputting a glyph.
10515         * redisplay-x.c (x_output_display_block): ditto.
10516         * redisplay-tty.c (tty_output_display_block): ditto.
10517
10518         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10519         functions.
10520         (gutter_specs_changed): do specific gutter positions.
10521         (top_gutter_specs_changed): new function. Only update the
10522         specified gutter specs.
10523         (bottom_gutter_specs_changed): ditto.
10524         (left_gutter_specs_changed): ditto.
10525         (right_gutter_specs_changed): ditto.
10526
10527         * gui.c (gui_item_hash_internal): new function, does a real hash.
10528         (gui_item_id_hash): use it.
10529         (gui_item_hash): hash the eval'ed gui_item.
10530
10531         * gui-x.c (popup_selection_callback): send an eval event to call
10532         Fupdate_widget_instances.
10533
10534         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10535         to call Fupdate_widget_instances.
10536
10537         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10538         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10539
10540         * glyphs.c: (update_frame_subwindows): deleted.
10541         (Fupdate_widget_instances): new function for updating the dirty
10542         state of widgets that might have changed.
10543         (syms_of_glyphs): add Qupdate_widget_instances.
10544         (full_list_hash): hash a list completely.
10545         (image_instance_hash): use it for items and properties.
10546
10547         * frame-msw.c (mswindows_size_frame_internal): remove unused
10548         variable.
10549
10550         * faces.h (struct face_cachel): fix comment.
10551
10552         * event-stream.c (Fdispatch_non_command_events): new
10553         function. Process non-command events, forcing an event cycle
10554         beforehand.
10555         (syms_of_event_stream): declare.
10556         (event_stream_force_event_pending): new function. Force an event
10557         on the native event queue so that an event cycle will occur next
10558         time we check.
10559
10560         * event-msw.c:
10561         (struct ntpipe_shove_stream):
10562         (mswindows_enqueue_dispatch_event):
10563         (mswindows_dequeue_dispatch_event):
10564         (mswindows_cancel_dispatch_event):
10565         (mswindows_pump_outstanding_events):
10566         (mswindows_drain_windows_queue):
10567         (mswindows_handle_paint):
10568         (mswindows_wnd_proc):
10569         (mswindows_key_to_emacs_keysym):
10570         (get_process_input_waitable):
10571         (emacs_mswindows_delete_stream_pair): re-indent file.
10572         (mswindows_need_event): do not process further fds if the windows
10573         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10574         fixes the 100% cpu problem.
10575         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10576
10577 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10578
10579         * alloc.h: New.
10580         * dumper.h: New.
10581         * dumper.c: New.
10582
10583         * emacs.c: Moved dump file searching to dumper.c.
10584         (Frunning_temacs_p): Fixed.
10585
10586         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10587         last_lrecord_type_index_assigned.
10588
10589 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10590
10591         * symsinit.h: Added reinit parameter to init_console_stream
10592         declaration.
10593
10594         * lisp.h: Added file parameter to pdump_load declaration.
10595
10596         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10597         support.  Added dump file searching.
10598
10599         * config.h.in: Added EMACS_PROGNAME.
10600
10601         * console-stream.c (init_console_stream): Fix reinitialisation
10602         when running from temacs.
10603
10604         * alloc.c (pdump): Add id support.
10605         (pdump_load): Add file parameter and signature/id support.
10606
10607         * Makefile.in.in: Add full pdump support.
10608
10609 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10610
10611         * postgresql.c: Update documentation to reflect latest code
10612         status.
10613         (print_result): Show tuple counts in printed representation when
10614         appropriate.
10615         (Fpq_put_nbytes): MULE-ize.
10616         (Fpq_get_line_async): Ditto.
10617
10618 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10619
10620         * postgresql.c (Fpq_lo_import): Fix return value.
10621         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10622
10623 2000-03-13  Ben Wing  <ben@xemacs.org>
10624
10625         * alloc.c (pdump_load):
10626         Fix compile warning under mswin.
10627
10628 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10629
10630         * postgresql.c: Mule-ization, bug fixes.
10631         Use PG_CODING to encapsulate coding system name changes.
10632         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10633         (pg-coding-system): Create.
10634
10635         (Fpq_conn_defaults): Mule-ize.
10636         (Fpq_connectdb): Mule-ize & bug fix.
10637         (Fpq_connect_start): Mule-ize.
10638         (Fpq_set_client_encoding): Mule-ize.
10639         (Fpq_finish): Document `DEAD' connection status.
10640         (Fpq_clear): Ditto.
10641         (Fpq_pgconn): Mule-ize.
10642         (Fpq_exec): Mule-ize & bug fix.
10643         (Fpq_send_query): Ditto.
10644         (Fpq_get_result): Ditto.
10645         (Fpq_res_status): Mule-ize.
10646         (Fpq_result_error_message): Mule-ize.
10647         (Fpq_ntuples): fix comments.
10648         (Fpq_fname): Mule-ize.
10649         (Fpq_fnumber): Mule-ize.
10650         (Fpq_ftype): fix comments.
10651         (Fpq_get_value): Mule-ize.
10652         (Fpq_cmd_status): Ditto.
10653         (Fpq_cmd_tuples): Ditto.
10654         (Fpq_oid_value): Ditto.
10655         (Fpq_notifies): Ditto.
10656         (Fpq_lo_import): Ditto.
10657         (Fpq_lo_export): Ditto.
10658         (Fpq_get_line): Ditto.
10659         (Fpq_put_line): Mule-ize and bug fix.
10660         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10661
10662 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10663
10664         * postgresql.c (vars_of_postgresql): Mule-ize.
10665         (Fpq_conn_defaults): Ditto.
10666
10667 2000-03-12  Ben Wing  <ben@xemacs.org>
10668
10669         * alloc.c (Fmake_byte_code):
10670         * alloc.c (debug_string_purity_print):
10671         * alloc.c (pdump_backtrace):
10672         * alloc.c (pdump_get_indirect_count):
10673         * alloc.c (pdump_register_sub):
10674         * alloc.c (pdump_register_object):
10675         * alloc.c (pdump_register_struct):
10676         * alloc.c (pdump_dump_data):
10677         * alloc.c (pdump_reloc_one):
10678         Minor cleanups.
10679
10680         * console-msw.c:
10681         * console-msw.c (GetConsoleHwnd):
10682         * console-msw.c (msw_hide_console):
10683         * console-msw.c (msw_show_console):
10684         * console-msw.c (msw_ensure_console_buffered):
10685         * console-msw.c (msw_output_console_string):
10686         * console-msw.c (console_type_create_mswindows):
10687
10688         a) Added functions to manipulate the console window for use with
10689         shell support.
10690
10691         b) Added support for writing text to the console, which is now
10692         used under Windows when xemacs is not being run non-interactively,
10693         to write text that would otherwise be destined for stdout because
10694         under these circumstances, text written to stdout tends to
10695         disappear and not be seen.
10696
10697         * console-msw.h:
10698         * event-Xt.c:
10699         * event-Xt.c (x_event_to_emacs_event):
10700         * event-Xt.c (describe_event_window):
10701         * events-mod.h (XEMACS_MOD_CONTROL):
10702         * events.c:
10703         * events.c (Fmake_event):
10704         * events.c (character_to_event):
10705         * events.c (event_to_character):
10706         * events.c (format_event_object):
10707         * events.c (Fevent_modifiers):
10708         * events.h:
10709         * events.h (struct key_data):
10710         * events.h (struct button_data):
10711         * events.h (struct misc_user_data):
10712         * frame-x.c (Fcde_start_drag_internal):
10713         * frame-x.c (Foffix_start_drag_internal):
10714         * gpmevent.c (Freceive_gpm_event):
10715         * keymap.c:
10716         * keymap.c (bucky_sym_to_bucky_bit):
10717         * keymap.c (control_meta_superify):
10718         * keymap.c (make_key_description):
10719         * keymap.c (keymap_lookup_directly):
10720         * keymap.c (create_bucky_submap):
10721         * keymap.c (keymap_store):
10722         * keymap.c (define_key_check_and_coerce_keysym):
10723         * keymap.c (define_key_parser):
10724         * keymap.c (define_key_alternate_name):
10725         * keymap.c (Fdefine_key):
10726         * keymap.c (raw_lookup_key_mapper):
10727         * keymap.c (struct map_keymap_unsorted_closure):
10728         * keymap.c (map_keymap_unsorted_mapper):
10729         * keymap.c (map_keymap_sort_predicate):
10730         * keymap.c (map_keymap_sorted):
10731         * keymap.c (accessible_keymaps_mapper_1):
10732         * keymap.c (where_is_recursive_mapper):
10733         * keymap.c (describe_map_mapper):
10734         * keymap.c (describe_map_sort_predicate):
10735         * keymap.c (describe_map):
10736         * keymap.c (complex_vars_of_keymap):
10737         And a number of other files, the key modifier preprocessor
10738         constants that xemacs uses have names that conflict with constants
10739         defined under MS Windows for other purposes, so they were renamed
10740         to begin with the prefix XEMACS_. The variables that hold such
10741         modifiers were changed to consistently be of type int to fix
10742         various compile warnings.
10743
10744         * console.c (complex_vars_of_console):
10745         * device.c:
10746         * device-msw.c:
10747         * device-msw.c (mswindows_finish_init_device):
10748         * device-msw.c (msw_get_workspace_coords):
10749         * device-msw.c (mswindows_device_system_metrics):
10750         and various other files, added support for a new
10751         device property called offset-workspace which returns the position
10752         of the upper left corner of the workspace area and goes along with
10753         the existing size-workspace property.
10754
10755         * dialog-msw.c:
10756         * dialog-msw.c (push_bufbyte_string_as_unicode):
10757         * dialog-msw.c (mswindows_popup_dialog_box):
10758         Added support for XEmacs-style accelerator specifications in
10759         button text.  Note: I didn't add support for this under X Windows,
10760         and somebody needs to do this.
10761
10762         * dialog.c:
10763         * dialog.c (Fpopup_dialog_box):
10764         Documented the support for accelerators that was just mentioned.
10765
10766         editfns.c (get_home_directory): Changed behavior under Windows
10767         when HOME not defined; former behavior was irretrievably broken.
10768
10769         * emacs.c:
10770         * emacs.c (main_1):
10771         * emacs.c (main):
10772         * minibuf.c (clear_echo_area_internal):
10773         * minibuf.c (echo_area_append):
10774         * print.c:
10775         * print.c (std_handle_out_external):
10776         * print.c (std_handle_out_va):
10777         * print.c (fatal):
10778         * print.c (write_string_to_stdio_stream):
10779         * print.c (output_string):
10780         * print.c (debug_print):
10781         * print.c (debug_backtrace):
10782         * print.c (debug_short_backtrace):
10783         Cleaned up the code that prints text to stdout so that this can be
10784         changed to output into a console window instead under MS Windows,
10785         as described above.
10786
10787         * eval.c:
10788         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10789         * eval.c (internal_catch):
10790         * eval.c (unwind_to_catch):
10791         * eval.c (throw_or_bomb_out):
10792         * eval.c (condition_case_1):
10793         * eval.c (signal_1):
10794         * eval.c (check_error_state_sanity):
10795         * eval.c (call_with_suspended_errors_1):
10796         * eval.c (call_with_suspended_errors):
10797         * eval.c (reinit_vars_of_eval):
10798         Added code to catch throw loops and check for a pesky bug that may
10799         be gone now.
10800
10801         * event-msw.c:
10802         * event-msw.c (key_needs_default_processing_p):
10803         * event-msw.c (mswindows_wnd_proc):
10804         * event-msw.c (mswindows_modifier_state):
10805         * event-msw.c (emacs_mswindows_quit_p):
10806         * event-msw.c (vars_of_event_mswindows):
10807         a) Added support for using the alt key to select menu items as is
10808         standard under MS Windows.  This is controlled using the variable
10809         menu-accelerator-enabled, just like under X Windows.  There is an
10810         option on the options menu to turn this support on.  I really
10811         think that it should be on by default under Windows, but I'm not
10812         going to make this change yet.
10813
10814         b)  Added support for dynamic display size changes under Windows.
10815
10816         * event-stream.c:
10817         * event-stream.c (maybe_echo_keys):
10818         * event-stream.c (Fnext_event):
10819         * event-stream.c (command_builder_find_leaf):
10820         * event-stream.c (lookup_command_event):
10821         * event-stream.c (execute_command_event):
10822         * event-stream.c (pre_command_hook):
10823         * event-stream.c (post_command_hook):
10824         * event-stream.c (syms_of_event_stream):
10825         * event-stream.c (vars_of_event_stream):
10826         * event-stream.c (complex_vars_of_event_stream):
10827         * events.h (struct command_builder):
10828
10829         a) Tried to clean up a little bit the horribly written x-specific
10830         accelerator code that crept into this file.  I moved this code
10831         into menubar-x.c where it belongs. I also needed to move the
10832         command builder structure into the file events.h because it is
10833         accessed directly by this accelerator code.  What I didn't do, but
10834         which should be done at some point, is to properly abstract this
10835         code using device methods instead of the kludgy way that it
10836         currently hooks into the event code.
10837
10838         b) Added the lisp variables this-command-properties and
10839         last-command- properties, which should be used to synchronize two
10840         adjacent commands in preference to playing games with the variable
10841         this-command, which is typically what happens.
10842
10843         c) Added some slightly nasty code to hook into the lisp support
10844         for shifted- motion-key selection.  This is actually necessary for
10845         somewhat complicated reasons, which are described in
10846         simple.el. (NB: I think the proper thing would be to have the code
10847         that calls the pre and post command hooks also call out to generic
10848         lisp functions in simple.el, where all built-in stuff could be
10849         added.  I will think about this more.)
10850
10851         * event-unixoid.c (poll_fds_for_input):
10852         * lread.c (readchar):
10853         * redisplay-tty.c (tty_clear_frame):
10854         * redisplay-x.c (x_get_gc):
10855         * signal.c (interrupt_signal):
10856         And a whole bunch of other files: fixed up places that printed
10857         directly to stderr to instead call the function stderr_out so that
10858         the changes I made under Windows work correctly.
10859
10860         * filemode.c (mode_string):
10861         Warning fixes.
10862
10863         * frame-msw.c:
10864         * frame-msw.c (mswindows_size_frame_internal):
10865         Fixed the computation of frame size and position to keep the frame
10866         within the workspace area, rather than within the physical
10867         dimensions of the screen, so that the frame doesn't overlap window
10868         manager decorations, such as the start menu and toolbar, typically
10869         at the bottom of the screen.
10870
10871         * frame.c (vars_of_frame):
10872         Changed the default frame title format under MS Windows to consist
10873         of buffername-XEmacs, which is standard under MS Windows.  I think
10874         it might be a good idea to change this everywhere because I think
10875         it is superior to the current frame title format, but this is the
10876         kind of change that is likely to cause some people to get annoyed,
10877         so I'm not making it.
10878
10879         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10880
10881         * gui-msw.c (mswindows_handle_gui_wm_command):
10882         Fixed compile warnings.
10883
10884         * gui-x.c:
10885         * gui-x.c (strdup_and_add_accel):
10886         * gui-x.c (button_item_to_widget_value):
10887         * gui-x.h:
10888         Added code to automatically put an accelerator onto the beginning
10889         of menu items that don't have one as is now the standard, and is
10890         described more later.  Also fixed things so that the menu item
10891         name can be an evaluated expression, again a new standard.
10892
10893         * gui.c:
10894         * gui.c (gui_item_add_keyval_pair):
10895         * gui.c (make_gui_item_from_keywords_internal):
10896         * gui.c (gui_add_item_keywords_to_plist):
10897         * gui.c (gui_item_accelerator):
10898         * gui.c (gui_name_accelerator):
10899         * gui.c (gui_item_included_p):
10900         * gui.c (gui_item_display_flush_left):
10901         * gui.c (gui_item_display_flush_right):
10902         * gui.c (parse_gui_item_tree_item):
10903         * gui.c (parse_gui_item_tree_children):
10904         * gui.c (parse_gui_item_tree_list):
10905         Mule-ized.  Cleanup.  GCPRO addition.
10906
10907         * line-number.c (buffer_line_number):
10908         * lisp.h:
10909         * lisp.h (EMACS_INT_MAX):
10910         Added the manifest constant EMACS_INT_MIN corresponding to the
10911         existing constant EMACS_INT_MAX.  This is partially to fix compile
10912         warnings under Windows, and partly for cleanliness.
10913
10914         * menubar-msw.c:
10915         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10916         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10917         * menubar-msw.c (displayable_menu_item):
10918         * menubar-msw.c (populate_menu_add_item):
10919         * menubar-msw.c (populate_or_checksum_helper):
10920         * menubar-msw.c (populate_menu):
10921         * menubar-msw.c (update_frame_menubar_maybe):
10922         * menubar-msw.c (prune_menubar):
10923         * menubar-msw.c (msw_char_is_accelerator):
10924         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10925         * menubar-msw.c (mswindows_handle_wm_command):
10926         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10927         * menubar-msw.c (mswindows_handle_wm_initmenu):
10928         * menubar-msw.c (mswindows_update_frame_menubars):
10929         * menubar-msw.c (mswindows_free_frame_menubars):
10930         * menubar-msw.c (mswindows_popup_menu):
10931         Fixed a bug in handling accelerators where an extra character
10932         would be displayed in the menu item.  Also generalized the
10933         function displayable_menu_item because it is now used by the
10934         dialog box code as well.  And finally, added code in the functions
10935         that create the menubar to extract a list of accelerators for the
10936         top level menubar, which is used in the event code to determine
10937         whether a particular alt-key combination should be used to invoke
10938         a menu item, or should be passed through to access the standard
10939         XEmacs keymap binding for this key combination.
10940
10941         Much needed GCPROing.
10942
10943         * menubar-x.c:
10944         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10945         * menubar-x.c (menu_item_descriptor_to_widget_value):
10946         * menubar-x.c (restore_in_menu_callback):
10947         * menubar-x.c (x_popup_menu):
10948         * menubar-x.c (menu_move_up):
10949         * menubar-x.c (menu_move_down):
10950         * menubar-x.c (menu_move_left):
10951         * menubar-x.c (menu_move_right):
10952         * menubar-x.c (menu_select_item):
10953         * menubar-x.c (command_builder_operate_menu_accelerator):
10954         * menubar-x.c (menu_accelerator_junk_on_error):
10955         * menubar-x.c (command_builder_find_menu_accelerator):
10956         * menubar-x.c (Faccelerate_menu):
10957         * menubar.h:
10958         Moved a whole bunch of code here that was previously in
10959         event-stream.c as described above.  There is also code connected
10960         to the new standard of adding an accelerator to the beginning of
10961         menu items that don't have one as described above and below.
10962
10963         * menubar.c:
10964         * menubar.c (menu_parse_submenu_keywords):
10965         * menubar.c (Fmenu_find_real_submenu):
10966         * menubar.c (Fnormalize_menu_item_name):
10967         * menubar.c (syms_of_menubar):
10968         * menubar.c (vars_of_menubar):
10969         * menubar.c (complex_vars_of_menubar):
10970
10971         a) Cleaned up a bunch of documentation and improved it.
10972
10973         b) XEmacs now automatically adds an accelerator onto the beginning
10974         of any menu items that don't have one.  I did this because there
10975         will inevitably be some menu items on the main menubar that don't
10976         have accelerators on them because the package that adds that
10977         particular menu item hasn't yet been fixed up to have accelerators
10978         in them and it looked rather strange to have some items with and
10979         some items without accelerators, especially since even in items
10980         without accelerators, you can, at least under windows, still
10981         access the item through an accelerator corresponding to the first
10982         character in the item's name.  If people don't like this behavior,
10983         I can add a variable to turn it off optionally, but I'm not sure
10984         this is a good idea because we really do need to have accelerators
10985         on all of the menu items, and if a package doesn't like the
10986         accelerators being put on the first character, then it should put
10987         the accelerators where they belong.
10988
10989         c) I made a behavior change, which is that the descriptor that
10990         specifies the text of the menu item, which formerly was just a
10991         string, can now also be an evaluated expression.  This makes this
10992         descriptor parallel with all of the others, which could also be
10993         evaluated expressions.  This also obviates the need for the
10994         keyword :label, which was previously listed in the documentation
10995         as unimplemented, and which was for the same purpose.
10996
10997         d) GCPROing.
10998
10999         * ntproc.c:
11000         * ntproc.c (new_child):
11001         * ntproc.c (sys_spawnve):
11002         * ntproc.c (find_child_console):
11003         * ntproc.c (sys_kill):
11004         Fixed compile warnings.  By the way, this file should really go
11005         away entirely, and this will happen as soon as Kirill makes his
11006         final round of process cleanups, which affect the function
11007         call-process.
11008
11009         * process-nt.c:
11010         * process-nt.c (struct nt_process_data):
11011         * process-nt.c (find_process_from_pid):
11012         * process-nt.c (send_signal_the_nt_way):
11013         * process-nt.c (enable_child_signals):
11014         * process-nt.c (find_child_console):
11015         * process-nt.c (send_signal_the_95_way):
11016         * process-nt.c (nt_finalize_process_data):
11017         * process-nt.c (ensure_console_window_exists):
11018         * process-nt.c (nt_create_process):
11019         * process-nt.c (nt_kill_child_process):
11020         * process-nt.c (nt_kill_process_by_pid):
11021         * process-nt.c (nt_open_network_stream):
11022         * process-nt.c (vars_of_process_nt):
11023         Copied over code from Emacs 20.5 to correctly send signals to sub-
11024         processes under Windows 95.  Also added code to automatically
11025         create and hide console window when a sub-process is created under
11026         Windows 95, which obviates the need for the separate runemacs.exe
11027         executable, and finally implemented some variables that were
11028         implemented in Emacs 20.5, but previously not in XEmacs.  These
11029         include mswindows- start-process-share-console and
11030         mswindows-start-process-inherit-error-mode. (Both of these only
11031         apply to Windows 95.)
11032
11033         * regex.c (regex_compile): Fixed a compile warning.
11034
11035         * select-msw.c:
11036         * select-msw.c (mswindows_own_selection):
11037         * select-msw.c (mswindows_get_foreign_selection):
11038         * select-msw.c (mswindows_disown_selection):
11039         * select-msw.c (console_type_create_select_mswindows):
11040         * select-msw.c (syms_of_select_mswindows):
11041         Cleaned up the file and implemented the device method
11042         selection_exists_p, which had accidentally been left out.  Also
11043         removed four lisp functions that were remnants from before the
11044         time when the selection code was properly device abstracted.
11045         These functions are no longer needed because there are generic
11046         equivalents, and because they were added recently and don't exist
11047         in FSF Emacs, I don't think there's any problem with just deleting
11048         them.
11049
11050         * sysdep.c:
11051         * sysdep.c (sys_subshell):
11052         Fixed a compile warning, although in this case there's probably
11053         something wrong with this code, and it ought to be looked into
11054         more thoroughly by somebody who understands it.
11055
11056         * window.c:
11057         * window.c (Fwindow_text_area_height):
11058         * window.c (Fwindow_width):
11059         * window.c (Fwindow_full_width):
11060         * window.c (Fwindow_pixel_width):
11061         * window.c (debug_print_window):
11062         * window.c (syms_of_window):
11063         Added functions window-text-area-height and window-full-width,
11064         which are functions for returning various width and height
11065         characteristics of a window. (One of these functions is necessary
11066         for making the file dialog box work correctly, and the other one
11067         was added for completeness.)  Also added a table to the
11068         documentation for window-height which describes the entire scheme
11069         for accessing width and height characteristics of a window.
11070
11071 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11072
11073         * nt.c (fstat): Added a comment for another problem with
11074         non-encapsulated [f]stat(), reported by Adrian Aichner
11075         <aichner@ecf.teradyne.com>.
11076
11077 2000-03-11  Andy Piper  <andy@xemacs.org>
11078
11079         * window.c (make_dummy_parent): initialize subwindow instance
11080         cache.
11081         (Fset_window_configuration): zero extent_modiff.
11082
11083 2000-03-10  Andy Piper  <andy@xemacs.org>
11084
11085         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11086         more changes can be triggered.
11087         (Fredisplay_frame): ditto.
11088         (Fredraw_device): ditto.
11089         (Fredisplay_device): ditto.
11090         (redisplay_frame): make non-static.
11091         (redisplay_frame): call update_frame_gutter_geometry outside of
11092         display proper.
11093
11094         * gutter.h: declare update_frame_gutter_geometry.
11095
11096         * redisplay.h: declare redisplay_frame.
11097
11098         * gutter.c (update_frame_gutter_geometry): move geometry changes
11099         in update_frame_gutters here. Geometry changes can only occur
11100         outside of redisplay.
11101         (update_frame_gutters): remove geometry change code.
11102         (Fredisplay_gutter_area): make sure that we are in display when we
11103         update and that we have flushed any size changes.
11104
11105 2000-03-11  Andy Piper  <andy@xemacs.org>
11106
11107         * alloc.c (pdump_dump_data): remove i & count shadows.
11108
11109 2000-02-27  Mike Alexander  <mta@arbortext.com>
11110
11111         * sysdep.h: Declare pdump_read_file
11112
11113         * sysdep.c (pdump_read_file): New function
11114
11115         * alloc.c (pdump_load): Call pdump_read_file to get the portable
11116         dump data
11117
11118 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11119
11120         * lrecord.h: add `lrecord_type_pgsetenv'.
11121
11122 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
11123
11124         * symsinit.h: declare (vars|syms)_of* functions.
11125         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11126
11127 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
11128
11129         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11130
11131         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11132         GCCs.
11133
11134         * emacs.c (main_1): Call postgres initialization code.
11135
11136         * postgresql.h: New file.  PostgreSQL RDBMS support.
11137         * postgresql.c: New file.
11138
11139 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11140
11141         * redisplay-output.c (redisplay_output_display_block): Disable
11142         redundant code.
11143
11144 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11145
11146         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11147         (Fcanna_henkan_next): Ditto.
11148         (Fcanna_bunsetu_henkou): Ditto.
11149         (Fcanna_henkan_kakutei): Ditto.
11150         (Fcanna_henkan_end): Ditto.
11151         (Fcanna_henkan_quit): Ditto.
11152         (Fcanna_henkan_next): Set retun value correctly.
11153         (c2mu): Use unsigned char instead of signed char.
11154
11155 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11156
11157         * emacs.c (main_1): Always call syms_of_gui.
11158         * inline.c: include gui.h
11159
11160 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11161
11162         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11163         converted to Lisp_Object.
11164         (Qtop_bottom): New variable.
11165         (syms_of_redisplay): Initialize it.
11166         * redisplay.h (Vvisible_bell): Ditto.
11167         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11168         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11169         only flash top and bottom.
11170
11171 2000-03-08  Andy Piper  <andy@xemacs.org>
11172
11173         * buffer.c (Frename_buffer): record new buffer name the right way.
11174
11175 2000-03-08  Andy Piper  <andy@xemacs.org>
11176
11177         * glyphs.c (update_subwindow): increase hash depth so that widget
11178         items get picked up properly.
11179
11180         * redisplay-output.c (compare_runes): increase hash depth so that
11181         widget items get picked up properly.
11182
11183 2000-03-08  Andy Piper  <andy@xemacs.org>
11184
11185         * gutter.c (output_gutter): add some debug.
11186
11187         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11188         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11189         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11190
11191         * redisplay-output.c (compare_runes): use display_hash to
11192         determine if glyphs really are not the same.
11193
11194         * glyphs.c (update_subwindow): check display_hash to see if
11195         anything really needs to be updated. If not then do
11196         nothing. Record the display_hash after updating.
11197         (image_instance_equal): compare the image_instance face also.
11198
11199 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11200
11201         * redisplay.h: Fix comment style.
11202
11203 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11204
11205         * consle-msw.h (struct mswindows_frame):
11206         Added new member paint_pending to indicate whether a WM_PAINT
11207         magic event has been queued for this frame.
11208
11209         * event-msw.c (mswindows_drain_windows_queue):
11210         Don't queue a WM_PAINT magic event if one is already queued.
11211         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11212
11213         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11214
11215 2000-03-07  Didier Verna  <didier@xemacs.org>
11216
11217         * dired.c: #include `regex.h' after `sysfile.h'.
11218
11219 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11220
11221         * sound.c (init_nas_sound): Fix compiler warning.
11222
11223         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11224         (FREE_STRUCT_P):
11225         (MARK_STRUCT_AS_FREE):
11226         (MARK_STRUCT_AS_NOT_FREE):
11227         Make `gcc -fstrict-aliasing' work properly.
11228
11229 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11230
11231         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11232         (mswindows_delete_device): Call CoUnnitialize().
11233
11234         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11235
11236 2000-02-25    <CraigL@DyCon.com>
11237
11238         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11239         <errno.h>.
11240
11241         * sysdep.c: This extern declaration for environ prevents MinGW
11242         from finding the variable in CRTDLL.DLL.
11243
11244         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11245         windows headers.
11246         (SHGFI_EXETYPE): ..
11247         (WM_MOUSEWHEEL): ..
11248         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11249         definitions.
11250         (MMRESULT): Removed, now defined in cygwin's windows headers.
11251         (TIMECAPS): ..
11252         (uid_t,gid_t,pid_t,ssize_t): ..
11253         (_timeb): Removed, MinGW defines both _timeb and timeb.
11254         (HAVE_H_ERRNO): Added.
11255         (HAVE_TZNAME): Added, configure is not detecting this.
11256
11257 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11258
11259         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11260         * syntax.c (syntax_match): Use it.
11261
11262         * cmds.c: Import auto-fill-chars from FSF Emacs.
11263         (Vauto_fill_chars): New variables.
11264         (internal_self_insert): Check Vauto_fill_chars.
11265         (vars_of_cmds):
11266         Declare auto-fill-chars as a Lisp variable and initialize it.
11267
11268 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11269
11270         * fileio.c (Fmake_symbolic_link):
11271         (Ffile_symlink_p):
11272         Run handlers even if local machine doesn't have symlinks.
11273
11274 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11275
11276         * event-msw.c (mswindows_drain_windows_queue):
11277         Don't generate paint magic events for non-XEmacs frames.
11278
11279 2000-03-05  Andy Piper  <andy@xemacs.org>
11280
11281         * redisplay.c (redisplay_frame): generate_displayable_area and
11282         friends assumes that we are not in GC, we therefore have to make
11283         sure that this doesn't happen.
11284
11285         * gutter.c (calculate_gutter_size): generate_displayable_area
11286         assumes that we are not in GC, we therefore have to make sure that
11287         this doesn't happen.
11288
11289 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11290
11291         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11292
11293 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11294
11295         * redisplay.c (regenerate_window): Make sure we set a sane value
11296         for end_pos even if we jump out of the loop.
11297         (regenerate_window): Answer Ben's question :-).
11298         (start_end_of_last_line): Add may_error argument.
11299         (start_of_last_line):
11300         (end_of_last_line): Pass may_error = 0.
11301         (end_of_last_line_may_error): New function.
11302         (pixel_to_glyph_translation): Use it, so we don't crash in
11303         event_to_glyph.
11304
11305 2000-03-04  Andy Piper  <andy@xemacs.org>
11306
11307         * window.h (struct window): add gutter_extent_modiff.
11308
11309         * window.c (allocate_window): zero out gutter_extent_modiff.
11310
11311         * redisplay.h: declare sync_display_line_structs.
11312
11313         * redisplay.c (add_glyph_rune): add a better comment.
11314
11315         * redisplay-output.c (sync_display_line_structs): made non-static.
11316         (compare_runes): remove unneccesary glyph cachel access.
11317
11318         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11319
11320         * gutter.c (output_gutter): don't output the gutter if extent
11321         changes only involve extents in buffers. use 4 sets of display
11322         lines.
11323         (gutter_extent_signal_changed_region_maybe): new function. Mark
11324         extents in gutters as changed.
11325         (update_frame_gutters): use 4 sets of display lines.
11326         (reset_gutter_display_lines): ditto.
11327         (free_frame_gutters): ditto.
11328         (redraw_exposed_gutter): force output of gutters.
11329
11330         * frame.h (struct frame): add 4 sets of gutter display lines.
11331
11332         * extents.c: (extent_changed_for_redisplay): signal changes to
11333         extents in strings in the gutter as well as extents in buffers.
11334
11335 2000-03-02  Andy Piper  <andy@xemacs.org>
11336
11337         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11338
11339         * frame.c (Fmake_frame): make sure the gutters get initialized
11340         after the frame is visible.
11341         (set_frame_selected_window): re-arrange compilation macros a
11342         little.
11343         (change_frame_size_1): mark gutters changed.
11344
11345         * device.c (Fset_device_class): mark gutters changed.
11346
11347 2000-03-01  Andy Piper  <andy@xemacs.org>
11348
11349         * window.c (window_top_frame_gutter_height): deleted.
11350         (window_bottom_frame_gutter_height): ditto.
11351         (window_left_frame_gutter_height): ditto.
11352         (window_right_frame_gutter_height): ditto.
11353         (window_top_gutter_height): don't use them.
11354         (window_bottom_gutter_height): ditto.
11355         (window_left_gutter_width): ditto.
11356         (window_right_gutter_width): ditto.
11357         (Fsplit_window): ditto.
11358         (Fwindow_pixel_edges): don't use border dimensions here.
11359
11360         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11361         (update_scrollbar_instance): ditto.
11362
11363         * redisplay.c (generate_modeline): don't take gutters into account.
11364         (generate_modeline): ditto.
11365         (redisplay_frame): small gutter display optimization.
11366
11367         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11368
11369         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11370         gutters into account.
11371
11372         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11373         for window position and type.
11374
11375         * gutter.c (get_gutter_coords): fix for frame gutters.
11376         (update_frame_gutters): update frame geometry if the gutters have
11377         changed.
11378         (init_frame_gutters): record current gutter geometries.
11379
11380         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11381         var.
11382         (mswindows_widget_instantiate): ditto.
11383
11384         * frame.h (struct frame): add current_gutter_bounds.
11385
11386         * frame.c (change_frame_size_1): position window and minibuffer
11387         appropriately taking into account the frame gutters.
11388
11389         * frame-x.c: (x_initialize_frame_size): take into account the
11390         frame gutters.
11391
11392 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11393
11394         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11395
11396 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11397
11398         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11399
11400 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11401
11402         * file-coding.c (reset_decoding_stream): Clear previous
11403         detection state when autodetect.
11404
11405 2000-02-29  Didier Verna  <didier@xemacs.org>
11406
11407         * extents.c (set_extent_glyph_1): don't require extents to be
11408         attached.
11409
11410 2000-02-27  Andy Piper  <andy@xemacs.org>
11411
11412         * gutter.c (Fset_default_gutter_position): don't default left and
11413         right gutter visibility to t.
11414         (Fset_default_gutter_position): run
11415         default-gutter-position-changed-hook.
11416         (syms_of_gutter): add default-gutter-position-changed-hook.
11417
11418 2000-02-26  Andy Piper  <andy@xemacs.org>
11419
11420         * specifier.c (Fmake_specifier): add gutter references.
11421
11422         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11423
11424         * lisp.h: declare Fvalid_plist_p.
11425
11426         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11427         as changed.
11428         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11429         well as its visibility so that it gets reconstructed.
11430         (construct_window_gutter_spec): new function. Construct a string
11431         to be displayed in the gutter from a plist of strings. Take care
11432         to only use elements that are declared as visible.
11433         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11434         WINDOW_GUTTER.
11435         (gutter_validate): allow plists of strings in the specifier.
11436         (gutter_specs_changed): construct the real_gutter from the gutter
11437         specs using construct_window_gutter_spec.
11438         (gutter_visible_validate): gutter-visible is a new specifier type.
11439         (Fgutter_visible_specifier_p): new function for the new specifier.
11440         (syms_of_gutter): declare gutter-visible and
11441         Fgutter_visible_specifier_p.
11442         (specifier_type_create_gutter): intitalize new gutter-visible
11443         specifier.
11444         (reinit_specifier_type_create_gutter): ditto.
11445         (specifier_vars_of_gutter): use new specifier type for gutter
11446         visibility.
11447         (init_frame_gutters): construct real_gutter correctly.
11448         (Fgutter_specifier_p): beef up documentation.
11449         (Fgutter_size_specifier_p): ditto.
11450
11451         * winslots.h: add real_gutter slots.
11452
11453 2000-02-25  Andy Piper  <andy@xemacs.org>
11454
11455         * device-msw.c: Be kind to older cygwin versions. From Raymond
11456         Toy <toy@rtp.ericsson.se>.
11457
11458         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11459         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11460
11461 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11462
11463         * elhash.c (MARK_OBJ): Practice macro hygiene.
11464
11465 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11466
11467         * miscplay.c: s/__inline__/inline/g;
11468         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11469         (get_device_compdc): INLINE ==> static inline
11470         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11471         find -name '*.h' | \
11472         xargs global-replace \
11473         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11474
11475 2000-02-25  Andy Piper  <andy@xemacs.org>
11476
11477         * window.c (window_top_frame_gutter_height): new function.
11478         (window_top_window_gutter_height): ditto.
11479         (window_top_gutter_height): use them.
11480         (window_bottom_frame_gutter_height): new function.
11481         (window_bottom_window_gutter_height): ditto.
11482         (window_bottom_gutter_height): use them.
11483         (window_left_window_gutter_width): new function.
11484         (window_left_frame_gutter_width): ditto.
11485         (window_left_gutter_width): use them.
11486         (window_right_window_gutter_width): new function.
11487         (window_right_frame_gutter_width): ditto.
11488         (window_right_gutter_width): use them.
11489         (window_pixel_height): new function. calulate window pixel height
11490         with frame gutter involvement.
11491         (Fsplit_window): calculate new sizes taking frame gutters into
11492         account.
11493         (window_char_height_to_pixel_height): don't include frame gutters.
11494         (window_char_height): use window_pixel_height.
11495         (window_pixheight): rename from window_pixel_height.
11496         (change_window_height): use it.
11497         (window_pixel_height_to_char_height): don't include frame gutters.
11498         (window_char_width_to_pixel_width): ditto.
11499
11500 2000-02-25  Andy Piper  <andy@xemacs.org>
11501
11502         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11503         if it is.
11504
11505 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11506
11507         * alloc.c (staticpro):
11508         (staticpro_nodump):
11509         (dumpstruct):
11510         (dumpopaque):
11511         (pdump_wire):
11512         (pdump_wire_list):
11513         (compact_string_chars):
11514         (pdump_dump_wired):
11515         Convert:  if (foo) abort();  ==>  assert (! foo);
11516
11517         * eldap.c (Fldap_search_basic):
11518         (Fldap_add):
11519         (Fldap_modify):
11520         (Fldap_delete):
11521         Fix compiler warnings, and possible crashes if (random) return
11522         value were to be used.
11523
11524 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11525
11526         * device-msw.c: Workaround ResetDC failure.
11527
11528         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11529         applying a devmode.
11530
11531         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11532         (mswindows_text_width): Do not start printer page.
11533
11534         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11535
11536         * glyphs-msw.c: Added image methods to msprinter console and
11537         msprinter-specific image instantiation.
11538
11539 2000-02-20  Mike Alexander  <mta@arbortext.com>
11540
11541         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11542         to avoid crashes when selection-sets-clipboard is on
11543         (mswindows_own_selection): ditto
11544
11545 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11546
11547         * glyphs-msw.c:
11548         * redisplay-msw.c (get_frame_dc):
11549         (get_frame_compdc):
11550         * console-msw.h:
11551         * device-msw.c (mswindows_init_device):
11552         (mswindows_delete_device):
11553         (msprinter_init_device):
11554         (msprinter_delete_device):
11555         * frame-msw.c (mswindows_init_frame_1):
11556         (mswindows_delete_frame):
11557         (msprinter_init_frame_3):
11558         (msprinter_delete_frame): Move compatible DC to device object from
11559         frame object, for both mswindows and msprinter. Only one at a time
11560         is needed, it is a real waste to have one per frame!
11561
11562 2000-02-23  Andy Piper  <andy@xemacs.org>
11563
11564         * glyphs.c: add dynamic width and height elements.
11565         (image_instance_equal): ditto.
11566
11567         * glyphs-widget.c (widget_query_geometry): calculate width and
11568         height dynamically if required.
11569         (initialize_widget_image_instance): initialize dynamic dimensions.
11570         (widget_instantiate): pick-up dynamic dimensions.
11571
11572         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11573         dynamic determination. Add appropriate macros.
11574
11575         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11576         dimensions safe.
11577         (WINDOW_GUTTER_SIZE): ditto.
11578         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11579
11580         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11581         inline.
11582         (get_frame_dc): ditto.
11583
11584         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11585         here.
11586
11587 2000-02-23  Martin Buchholz <martin@xemacs.org>
11588
11589         * XEmacs 21.2.31 is released.
11590
11591 2000-02-22  Ben Wing <ben@xemacs.org>
11592
11593         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11594
11595 2000-02-22  Andy Piper  <andy@xemacs.org>
11596
11597         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11598
11599 2000-02-21  Mike Sperber <mike@xemacs.org>
11600
11601         * .dbxrc:
11602         * .gdbinit:
11603         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11604         variables.
11605
11606 2000-02-21  Mike Sperber <mike@xemacs.org>
11607
11608         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11609
11610 2000-02-21  Martin Buchholz <martin@xemacs.org>
11611
11612         * XEmacs 21.2.30 is released.
11613
11614 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11615
11616         Performance hacking.
11617         * *.c (syms_of_*):
11618         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11619         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11620         * emacs.c (main_1):
11621         * lisp.h (DEFUN):
11622         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11623         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11624         * symeval.h (DEFVAR_SYMVAL_FWD):
11625         * symbols.c (guts_of_unbound_marker):
11626         Make all c_readonly objects also lisp_readonly and marked for life.
11627         * lrecord.h (struct lrecord_implementation):
11628         Document flags better.
11629         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11630         * lrecord.h (DECLARE_LRECORD):
11631         * lrecord.h (XSETRECORD):
11632         * lrecord.h (RECORDP):
11633         * lrecord.h (RECORD_TYPEP):
11634         * lrecord.h (RECORD_MARKER): New.
11635         * lrecord.h (error_check_*):
11636         * lrecord.h (CONCHECK_NONRECORD):
11637         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11638         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11639         * lrecord.h (set_lheader_implementation):
11640         * lrecord.h (enum lrecord_type): New.
11641         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11642         * alloc.c (disksave_object_finalization_1):
11643         * alloc.c (mark_object):
11644         * alloc.c (lrecord_type_index):
11645         * alloc.c (tick_lcrecord_stats):
11646         * alloc.c (Fgarbage_collect):
11647         * alloc.c (init_alloc_once_early):
11648         * alloc.c (pdump_load):
11649         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11650         * alloc.c (lrecord_type_index): Delete.
11651         Make lisp object type indexes be constant.
11652           Makes (byte-compile) 5% faster.
11653         Put all marker functions into their own array.
11654           Makes (garbage-collect) 5% faster.
11655         Optimize SYMBOL_VALUE_MAGIC_P.
11656           Makes (byte-compile) 2-3% faster.
11657         * config.h.in (gc_checking_assert): New.
11658         * alloc.c: Use gc_checking_assert().
11659         * .dbxrc: Make compatible with new object type implementation.
11660         * .gdbinit: Make compatible with new object type implementation.
11661         * alloc.c: Delete all symbols defined only for debugging, such as
11662         Lisp_Type_Vector and lrecord_charset.
11663
11664 2000-02-21  Andy Piper  <andy@xemacs.org>
11665
11666         * gui-msw.c (Fmswindows_shell_execute): fix file location
11667         problems.
11668
11669         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11670         unshowing so that set_window_buffer doesn't undo
11671         kill_buffer_hook's hard work.
11672
11673         * glyphs-widget.c (tab_control_query_geometry): don't count the
11674         first item when calculating geometry.
11675
11676         * glyphs.c (map_subwindow): remove redundant code.
11677         (update_frame_subwindows): be more circumspect about when to
11678         update subwindows.
11679
11680         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11681         when items haven't changed. Update faces if faces have changed as
11682         well as just the widget face.
11683         (x_tab_control_update): Update faces if faces have changed as well
11684         as just the widget face.
11685
11686 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11687
11688         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11689         registration.
11690         (build_syscolor_string): Use mswindows_color_to_string to try to
11691         get a named color.
11692         (mswindows_device_system_metrics): Reverse the foreground and
11693         background colors so that they match the documentation.
11694
11695         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11696         they match the default Windows palette.
11697         (mswindows_color_to_string): New function.
11698
11699 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11700
11701         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11702
11703 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11704
11705         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11706         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11707
11708         * symbols.c (init_symbols_once_early): Removed obsolete
11709         DATA_SEG_BITS related kludge.
11710         (defvar_magic): Ditto.
11711
11712         * malloc.c: Removed obsolete DATA_SEG_BITS
11713         * ralloc.c: Ditto.
11714         * mem-limits.h: Ditto.
11715
11716         * Makefile.in.in: Removed obsolete HAVE_SHM
11717         * emacs.c: Ditto.
11718
11719 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11720
11721         *  device-msw.c (mswindows_delete_device): Free DDE string
11722         handles.
11723
11724 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11725
11726         * keymap.c (get_keyelt):
11727         * unexnt.c (unexec):
11728         * vm-limit.c (memory_warnings):
11729         * ntheap.c (recreate_heap):
11730         * ntheap.h (UNINIT_PTR):
11731         * select-msw.c (Fmswindows_get_clipboard):
11732         (Fmswindows_set_clipboard):
11733         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11734         * objects-msw.c:
11735         * menubar-msw.c (displayable_menu_item):
11736         * glyphs-msw.c:
11737         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11738         * sysdep.c (sys_subshell):
11739         * process-nt.c (nt_create_process):
11740         * nt.c (normalize_filename):
11741         (dostounix_filename):
11742         (unixtodos_filename):
11743         * ntproc.c (win32_executable_type):
11744         * ntplay.c (play_sound_data_1):
11745         (play_sound_file):
11746         * editfns.c (get_home_directory):
11747         * event-msw.c (struct winsock_stream):
11748         (mswindows_dde_callback):
11749         * device-msw.c (msprinter_init_device):
11750         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11751
11752         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11753         mswindows_clear_toolbar were swapped!
11754
11755         * objects-msw.c:(colormap_t):
11756         (fontmap_t):
11757         * emacs.c (struct standard_args): Fixed const jumble.
11758
11759         * glyphs-widget.c (update_widget): Fixed comparison notation.
11760
11761         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11762
11763         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11764         __declspec(noreturn) syntax.
11765
11766 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11767
11768         * eldap.c (Fldap_open):
11769         (Fldap_search_basic):
11770         (Fldap_add):
11771         (Fldap_modify):
11772         Use new coding system conversion macros.
11773
11774 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11775
11776         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11777
11778 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11779
11780         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11781         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11782
11783         * eldap.c (Qadd, Qreplace): New constant symbols
11784         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11785         interruptions by XEmacs signals
11786         Remove unnecessary calls to slow_down_interrupts and
11787         speed_up_interrupts
11788         (Fldap_search_basic): Renamed from Fldap_search_internal
11789         Added new optional parameter VERBOSE that triggers the
11790         display of progress messages
11791         Remove unnecessary calls to slow_down_interrupts and
11792         speed_up_interrupts
11793         LDAP result code analysis rewritten
11794         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11795         (syms_of_eldap): Define the new symbols and functions
11796
11797
11798 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11799
11800         * realpath.c: Determine PATH_MAX maximally portably.
11801
11802         * insdel.c (bytecount_to_charcount): Optimize.
11803         The function used to be optimized for entirely ASCII sequences.
11804         Now it is optimized for successive characters from the same
11805         charset.  This also wins big for _mostly_ ASCII sequences.
11806
11807         * fileio.c (Ffile_truename): convert return from realpath() using
11808         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11809         - Rewrite GCPROing slightly.
11810
11811         * sysdep.c (sys_open): Do filename conversion, like all other
11812         sys_* functions.  Fixes bug:
11813         (let ((file-name-coding-system 'iso-8859-2))
11814            (write-region x y latin2-name))
11815         ==> writes filename using internal encoding.
11816
11817 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11818
11819         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11820         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11821         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11822         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11823         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11824         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11825         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11826         (CONST_IF_NOT_DEBUG): Delete.
11827         * alloc.c (this_one_is_unmarkable): Delete.
11828         (mark_object): Don't check for this_one_is_unmarkable. Use the
11829         c_readonly flag instead.
11830         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11831
11832 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11833
11834         * event-msw.c (mswindows_drain_windows_queue):
11835         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11836         away redundant repaint events.
11837
11838 2000-02-17  Andy Piper  <andy@xemacs.org>
11839
11840         * redisplay.h: declare mark_redisplay_structs.
11841
11842         * redisplay.c (redisplay_window):
11843         (redisplay_frame): don't check subwindows_state_changed.
11844         (mark_redisplay): mark gutters here.
11845
11846         * glyphs.c: (instantiate_image_instantiator): always layout if we
11847         haven't done so already.
11848         (allocate_image_instance): don't mark as dirty.
11849         (update_subwindow): bind inhibit_quit.
11850
11851         * gutter.c (mark_gutters): new function.
11852
11853         * glyphs-x.c (x_update_widget): Always resize to get round a
11854         widget bug.
11855
11856         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11857         breaking absolutely everything.
11858
11859         * gutter.h: declare mark_gutters.
11860
11861 2000-02-16  Martin Buchholz <martin@xemacs.org>
11862
11863         * XEmacs 21.2.29 is released.
11864
11865 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11866
11867         * fns.c (size_bit_vector): Fix computation of the size.
11868
11869 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11870
11871         * *.[ch]: Change CONST to const globally.
11872         find -name '*.[ch]' | \
11873         xargs global-replace \
11874         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11875         - Remove vestigial references to CONST_IS_LOSING
11876
11877 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11878
11879         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11880         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11881         events instead of dispatching them directly.
11882         (mswindows_handle_paint): New function to do repainting.
11883         (mswindows_wnd_proc):
11884         (emacs_mswindows_handle_magic_event): Call above function.
11885
11886 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11887
11888         * objects-msw.c (mswindows_create_font_variant): Return the new
11889         font handle.
11890         (initialize_font_instance): Get font metrics from the underlined
11891         variant of the font to cope with the case where the underlined
11892         font has a bigger descent.
11893
11894 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11895
11896         * gui.c (gui_item_accelerator): Return the first underlined
11897         character in item name.
11898
11899 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11900
11901         * lisp.h: Added Qprinter.
11902
11903         * general.c (syms_of_general): Initialized it.
11904
11905         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11906         (get_frame_dc):
11907         (get_frame_compdc): Made inline.
11908
11909         * console.h (struct console_methods): Added eject_page method.
11910
11911         * frame.h: Added FRAME_DISPLAY_P and friends.
11912         Aligned backslahes in many macros in more readable fashion.
11913         Added page_number to struct frame, and an accessor macro
11914         for it.
11915
11916         * defice.h: Added DEVICE_DISPLAY_P and friends.
11917
11918         * device.c (Fdevice_printer_p): Used these.
11919
11920         * frame.c (allocate_frame_core): Initialize page number.
11921         (Fprint_job_page_number):
11922         (Fprint_job_eject_page): Implemented.
11923
11924         * frame-msw.c (msprinter_eject_page): Added method.
11925         (msprinter_start_page): Added.
11926
11927         * window.c (Fwindow_truncated_p): Fixed docstring.
11928         (Fwindow_last_line_visible_height): Implemented.
11929
11930 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11931
11932         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11933
11934 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11935
11936         * syntax.c (scan_words): Always advance at least one character.
11937
11938 2000-02-13  Andy Piper  <andy@xemacs.org>
11939
11940         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11941         to make sure the glyph is in the cachels.
11942
11943         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11944         global image instance flag.
11945         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11946         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11947
11948         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11949         (Fset_image_instance_property): mark layout as changed.
11950         (invalidate_glyph_geometry_maybe): mark layout as changed.
11951         (glyph_width): use new NEEDS_LAYOUT macro.
11952         (glyph_ascent): ditto.
11953         (glyph_descent): ditto.
11954         (glyph_height): ditto.
11955         (image_instance_layout): mark layout as clean after laying out.
11956         (update_subwindow): don't mark layout as clean here.
11957
11958         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11959         should no longer be needed.
11960
11961         * glyphs-x.c (x_update_widget): sanitize asserts.
11962         (x_finalize_image_instance): sanitize assignment to widgets.
11963
11964         * glyphs-widget.c (widget_instantiate): don't need to clear the
11965         layout flag here.
11966
11967 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11968
11969         * sysdep.c (getcwd): Use standard prototype.
11970         * sysdep.h (getcwd): Use standard prototype.
11971
11972         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11973         (sequence, start, end).
11974         Remove redundant type checking.
11975         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11976         view of `caller-protects') to avoid a crash where the real fix was
11977         found elsewhere.
11978
11979 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11980
11981         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11982
11983         * s/sol2.h: Remove feature macro initialization.
11984
11985         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11986         (vector_hash): New.  Code from internal_hash.
11987         * lrecord.h:
11988         Fix up allocation subsystem comments.
11989
11990         * config.h.in: Add __EXTENSIONS__ for Solaris.
11991
11992         * systime.h (EMACS_GETTIMEOFDAY): New.
11993         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11994         Remove Solaris-specific code.
11995         Use void* for the (ignored) second arg for gettimeofday().
11996
11997         * elhash.c (hash_table_hash): Implement it, finally.
11998         * elhash.c:  Use hashcode_t.
11999
12000         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
12001         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
12002
12003         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
12004         * fns.c (size_bit_vector):
12005         * alloc.c (size_vector):
12006         (make_vector_internal):
12007         (make_bit_vector_internal):
12008         (sweep_bit_vectors_1):
12009         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
12010
12011 2000-02-10  Martin Buchholz  <martin@xemacs.org>
12012
12013         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
12014         Include strings.h to avoid warnings for bzero and strcasecmp.
12015
12016 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12017
12018         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
12019         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
12020
12021         * fns.c (size_bit_vector): New.  Declare bit vectors as a
12022         sequence.
12023
12024 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12025
12026         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
12027         use a value field instead.
12028         (symbol_value_forward_forward): Use value field.
12029         (DEFVAR_SYMVAL_FWD): Use value field.
12030         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
12031         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
12032         (DEFVAR_CONST_INT): Ditto.
12033         (DEFVAR_BOOL): Ditto.
12034         (DEFVAR_CONST_BOOL): Ditto.
12035         (DEFVAR_INT_MAGIC): Ditto.
12036         (DEFVAR_BOOL_MAGIC): Ditto.
12037
12038         * symbols.c (guts_of_unbound_marker): Use value field.
12039         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
12040         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
12041
12042         * lisp.h: Declare dumpopaque and noninteractive1.
12043
12044         * alloc.c (dumpopaque): Added.
12045         (pdump_dump_opaquevec): Added.
12046         (pdump): Call pdump_dump_opaquevec to dump opaque data.
12047         (pdump_load): Reload opaque data.  Sync noninteractive1 with
12048         noninteractive.
12049
12050 2000-02-10  Andy Piper  <andy@xemacs.org>
12051
12052         * glyphs.c (image_instance_layout): if the size changes, mark it
12053         as such.
12054
12055         * redisplay-output.c (redisplay_output_layout): Update the
12056         subwindow here.
12057         (redisplay_output_subwindow): ditto.
12058
12059         * glyphs.c (update_subwindow): make sure we reset flags for
12060         layouts as well as everything else.
12061
12062         * glyphs-widget.c (layout_layout): don't need to set the instances
12063         dimensions here.
12064
12065 2000-02-09  Martin Buchholz  <martin@xemacs.org>
12066
12067         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
12068         not HAVE_DLOPEN, which is a lower-level thing.
12069
12070         * .cvsignore: Ignore gmon.out
12071
12072 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
12073
12074         * .cvsignore: Ignore portable dumper xemacs.dmp file
12075
12076 2000-02-09  Andy Piper  <andy@xemacs.org>
12077
12078         * redisplay-output.c (redisplay_output_layout): be more clever
12079         about when we output based on the changed flags.
12080
12081         * glyphs.h (struct image_instantiator_methods): add update_method.
12082         (struct Lisp_Image_Instance): add changed flags. Declare new
12083         macros for manipulating them.
12084
12085         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12086         (image_instance_parent_glyph): find an image_instance's parent
12087         glyph or image_instance.
12088         (image_instance_layout): mark the size as changed.
12089         (set_image_instance_dirty_p): new function. mark an image
12090         instance, plus all of its parents, as dirty.
12091         (Fset_image_instance_property): use it.
12092         (Fglyph_animated_timeout_handler): use it.
12093         (update_subwindow): call update_widget and device methods for
12094         update_subwindow. Mark all changed flags as clean.
12095         (Fresize_subwindow): mark size as changed.
12096
12097         * glyphs-x.c (x_finalize_image_instance): try and detect gc
12098         failures.
12099         (x_update_subwindow): only resize subwindows here.
12100         (x_update_widget): new function. Update all changed properties of
12101         a widget.
12102         (x_resize_subwindow): deleted.
12103         (x_widget_set_property): deleted.
12104         (x_progress_gauge_set_property): deleted.
12105         (x_progress_gauge_update): new function. Implement recorded
12106         changes.
12107         (x_tab_control_update): ditto.
12108         (x_tab_control_set_property): deleted.
12109         (console_type_create_glyphs_x): declare new functions.
12110         (image_instantiator_format_create_glyphs_x): ditto.
12111
12112         * glyphs-widget.c (widget_set_property): mark text changed.
12113         (update_widget): new function. Update properties of a widget.
12114         (widget_instantiate): for layouts make sure we set their
12115         children's parent correctly.
12116         (tab_control_set_property): new function. Record changes that will
12117         take place under redisplay's control.
12118         (progress_gauge_set_property): ditto.
12119         (image_instantiator_progress_guage): declare new functions.
12120         (image_instantiator_tab_control): ditto.
12121
12122         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12123         now.
12124         (mswindows_update_widget): new function. Update all properties on
12125         a widget that have changed.
12126         (mswindows_button_update): new function. Update a button's set
12127         state.
12128         (mswindows_tab_control_update): new function. Update the items in
12129         a tab.
12130         (mswindows_tab_control_set_property): deleted.
12131         (mswindows_progress_gauge_update): new function. Update the
12132         progress gauge's progress.
12133         (mswindows_widget_set_property): deleted. This is all done
12134         asynchronously now.
12135         (mswindows_progress_gauge_set_property): ditto.
12136         (console_type_create_glyphs_mswindows): declare new methods.
12137         (image_instantiator_format_create_glyphs_mswindows): ditto.
12138
12139         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12140         (msprinter_set_frame_properties): ditto.
12141
12142         * console.h (struct console_methods): Add update_widget_method.
12143
12144 2000-02-09  Andy Piper  <andy@xemacs.org>
12145
12146         * gui-msw.c (Fmswindows_shell_execute): Make
12147         mswindows-shell-execute industrial strength.
12148
12149 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12150
12151         * lrecord.h: Make macro argument `props' match member function `plist'.
12152         * fns.c (Fget):
12153         * fns.c (Fput):
12154         * fns.c (Fremprop):
12155         * fns.c (Fobject_plist):
12156         * alloc.c:
12157         * symbols.c:
12158         Object property list frobbing cleanup.
12159         - Allow any lisp object (compared with `eq'), not just symbols, as
12160           keys in object plists.
12161         - Move symbol plist frobbing into symbols.c, where it belongs.
12162         - Move string plist frobbing into alloc.c, where it belongs.
12163         - Everything's an lrecord now, so no need to test for symbolp, etc.
12164         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12165
12166         * extents.c: Reorder code to remove declarations.
12167
12168         * frame.h (store_in_alist): Remove useless declaration.
12169
12170 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12171
12172         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12173         * config.h.in: Add HAVE_XCONVERTCASE.
12174
12175 2000-02-07  Andy Piper  <andy@xemacs.org>
12176
12177         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12178         it breaks many things.
12179
12180 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12181
12182         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12183         actually can start a common comment type.
12184         * src/syntax.h (SYNTAX_END_P): ditto for end.
12185
12186 2000-02-07  Martin Buchholz <martin@xemacs.org>
12187
12188         * XEmacs 21.2.28 is released.
12189
12190 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12191
12192         * event-Xt.c (x_keysym_to_character): New.
12193         (maybe_define_x_key_as_self_inserting_character): New.
12194         (x_has_keysym): New.
12195         Auto-define all keys on the keyboard as self-insert-key.
12196
12197 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12198
12199         * menubar.c (vars_of_menubar): A small code simplification.
12200
12201         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12202
12203         * ExternalShell.c:
12204         * ExternalClient.c:
12205         * EmacsShell-sub.c:
12206         * EmacsManager.c:
12207         * EmacsFrame.c:
12208         Use consistent style for specifying X resources.
12209
12210         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12211         This makes (dontusethis-set-symbol-value-handler) actually usable.
12212
12213         * lrecord.h (lrecord_decription_type):
12214         * alloc.c (pdump_register_sub):
12215         (pdump_dump_data):
12216         (pdump_reloc_one):
12217         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12218         Comply with XEmacs coding style.
12219         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12220         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12221
12222         * keymap.c (Faccessible_keymaps):
12223         Make (accessible-keymaps map "\C-h") do the Right Thing.
12224         Make (accessible-keymaps map []) do the Right Thing.
12225         Make (accessible-keymaps map "") do the Right Thing.
12226         (check_keymap_definition_loop): New function.
12227         (keymap_store_internal): Keep luser from shooting self in foot,
12228           via (define-key ctl-x-4-map "p" global-map).
12229         Remove fullness slot from struct Lisp_Keymap, since hash tables
12230         are now reliable.
12231         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12232
12233 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12234
12235         * redisplay.c (init_redisplay): Fix small memory leak.
12236         * elhash.h:
12237         * elhash.c (pdump_reorganize_hash_table):
12238         Rename from reorganize_hash_table. Change prototype.
12239         Reuse the original memory for hentries.  Save 100k.
12240         * alloc.c (PDUMP_READ): new macro.
12241         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12242         * alloc.c: No need to #ifndef before #undef.
12243
12244         * print.c: Allow debug_print() to print readably by modifying
12245         debug_print_readably.  Use consistent variable names.
12246
12247         * .dbxrc: Try to get things to work even if stopped in a function
12248         without source available by explicitly specifying source files.
12249 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12250
12251         * unexnt.c (_start): Removed bogus code which caused loading heap
12252         from differrent executable file.
12253         Removed bogus assignment to _fmode, which caused inconsistencies.
12254
12255 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12256
12257         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12258         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12259         Do not preliminary `#define signal sigset'.
12260
12261         * systime.h: Do not prototype environ on windows nt and cygwin,
12262         this conflicts with system header.
12263
12264         * syssignal.h: Use correct define for WINDOWSNT
12265
12266         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12267         with system header.
12268
12269         * sysdep.c (near start of file): Fixed commentary and rearranged
12270         ifdefs in readable order.
12271         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12272         (start_of_text):
12273         (end_of_text):
12274         (end_of_data): Do not compile in if using PDUMP.
12275
12276         * symsinit.h: Prototyped vars_of_nt().
12277
12278         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12279         (find_child_console): Use it.
12280         (sys_kill): Use it.
12281
12282         * ntheap.h: Do not extern os_subtype.
12283
12284         * ntheap.c (cache_system_info): Do not cache unneeded:
12285         nt_major_version, nt_minor_version and os_subtype.
12286         (recreate_heap): Do not compile in when PDUMPing.
12287
12288         * nt.c (geteuid and friends): Use the new varibale
12289         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12290         (init_user_info): Removed the above mentioned hackery.
12291         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12292         stat has been fixed in the C runtime.
12293         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12294
12295         * file-coding.c (struct file_coding_dump): Do not define
12296         ucs_to_mule_table in the struct if not MULE.
12297         (struct struct lrecord_description fcd_description_1): Do not dump
12298         the above.
12299
12300         * emacs.c (main_1): Call vars_of_nt().
12301         (right before Fdump_emacs_data): Don't need lastfile if using both
12302         portabe dumper and system malloc.
12303
12304         * alloc.c (Fmemory_limit): Conditionalized out.
12305         (pdump): Use OPEN_BINARY for the portable dump file.
12306         (pdump_load): Ditto.
12307
12308 2000-02-02  Mike Alexander  <mta@arbortext.com>
12309
12310         * nt.c (convert_time): Set tm_isdst before calling mktime and
12311         avoid calling it at all if the compiler supports 64 bit integers.
12312         Also initialize utc_base_ft before using it.
12313
12314 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12315
12316         * frame.c (change_frame_size_1): Take f->internal_border_width
12317         into consideration when calculating the width of the frame.
12318
12319 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12320
12321         * window.c (frame_min_height):
12322         (frame_size_valid_p):
12323         (frame_pixsize_valid_p): Added.
12324         (check_frame_size): Generalized.
12325
12326         * window.h: Prototyped the above.
12327
12328         * lisp.h:
12329         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12330         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12331         Deleted Vwin32_* and Vbinary_process_* unused variables.
12332
12333         * device-msw.c (msprinter_init_device): Do not get printer font
12334         list; Added DEVMODE functions.
12335
12336         * frame-msw.c: Added lots of printer code.
12337
12338         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12339         general.c.
12340
12341         * console-msw.h: Added more msprinter device private slots.
12342
12343 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12344
12345         * event-msw.c (key_needs_default_processing_p): Added.
12346         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12347
12348 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12349
12350         * glyphs.c (image_instance_layout): Mark image instance as clean
12351         after layout.
12352         (glyph_dirty_p): Removed redundant function.
12353         (invalidate_glyph_geometry_maybe): Added.
12354         (update_glyph_cachel_data): Call it.
12355
12356         * glyphs.h: Prototyped it.
12357
12358         * redisplay.c (add_glyph_rune): Call it.
12359         (redisplay_window): Reset glyphs cachels when frame faces have
12360         changed, thus forcing recomputation of built-in border glyphs.
12361
12362 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12363
12364         * Makefile.in.in: Make portable dumper and purify play well together.
12365         Add imperfect, but better than nothing, support for pdump.
12366         Remove xemacs.dmp when temacs is re-generated.
12367         Don't ignore errors when dumping xemacs.
12368
12369         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12370
12371 2000-01-28  Andy Piper  <andy@xemacs.org>
12372
12373         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12374         (setup_normal_frame): ditto.
12375         (setup_frame_without_minibuffer): ditto.
12376         (setup_minibuffer_frame): ditto.
12377         (delete_frame_internal): ditto.
12378         (Fmake_frame_invisible): ditto.
12379         (Ficonify_frame): ditto.
12380
12381         * window.h: change Fset_window_buffer signature.
12382
12383         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12384         (Fset_window_buffer): allow recording of buffer if the window is
12385         the selected window.
12386         (window_loop): Use new Fset_window signature.
12387
12388 2000-01-23  Daniel Pittman  <daniel@danann.net>
12389
12390         * config.h.in: Added template for `HAVE_ATHENA_3D'
12391
12392 2000-01-29  Andy Piper  <andy@xemacs.org>
12393
12394         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12395
12396         * gutter.c (output_gutter): Don't output if the window isn't live.
12397
12398 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12399
12400         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12401         of 01/12/00: Moved SetFocus back here where it belongs.
12402
12403 2000-01-23  Andy Piper  <andy@xemacs.org>
12404
12405         * s/cygwin32.h: declare printer things.
12406
12407 2000-01-26  Andy Piper  <andy@xemacs.org>
12408
12409         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12410         Alexander.
12411
12412 2000-01-24  Andy Piper  <andy@xemacs.org>
12413
12414         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12415         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12416
12417         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12418
12419         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12420
12421         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12422
12423         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12424         (mswindows_output_display_block): Avoid local shadows.
12425
12426         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12427         (mswindows_enqueue_mouse_button_event): ditto.
12428         (mswindows_handle_gui_wm_command): remove declaration.
12429
12430         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12431         warnings.
12432
12433         * console-msw.h: Avoid shadows.
12434         (mswindows_get_toolbar_button_text):
12435         (emacs_mswindows_create_stream_pair):
12436         (emacs_mswindows_delete_stream_pair):
12437         (mswindows_handle_toolbar_wm_command): declare.
12438
12439         * device-msw.c (build_syscolor_string): Avoid shadows.
12440
12441 2000-01-23  Andy Piper  <andy@xemacs.org>
12442
12443         * glyphs-widget.c (widget_instantiate): reverse the items for
12444         layouts so that children are in the expected order.
12445
12446 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12447
12448         * ralloc.c: safe_bcopy ==> memmove
12449         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12450         * s/msdos.h: Remove BCOPY macros.
12451         * insdel.c (gap_right): Remove BCOPY conditional code.
12452         * insdel.c (gap_left): Remove BCOPY conditional code.
12453         XEmacs demands a working ANSI C compiler - hence memmove.
12454
12455         * regex.c (regex_compile): Remove accidental use of trigraphs.
12456
12457 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12458
12459         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12460         event timestamp.
12461
12462 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12463
12464         * event-msw.c (mswindows_drain_windows_queue): Added the
12465         parameter.
12466         (mswindows_need_event): Commented the call to
12467         mswindows_drain_windows_queue().
12468         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12469         only.
12470
12471         * console-msw.h: Moved a few function prototypes here from
12472         event-msw.c.
12473
12474         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12475         parameter from unsigned short to unsigned long.
12476         (Fmswindows_shell_execute): Added return value.
12477
12478 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12479
12480         * sysdep.c (init_system_name):
12481           process-unix.c (unix_canonicalized_host_name):
12482         Don't call freeaddrinfo() if getaddrinfo() fails.
12483
12484         * process-unix.c (unix_open_unix_network_stream):
12485         Moved the code to get a port # into address loop.
12486
12487 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12488
12489         * buffer.c (reinit_vars_of_buffer):
12490         The right place to initialize conversion_in_dynarr and
12491         conversion_out_dynarr.
12492
12493         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12494
12495         * process-unix.c (unix_canonicalize_host_name): Muleize.
12496         (unix_open_network_stream): Muleize.
12497
12498         * buffer.h: Fix up prototypes for ralloc.c functions.
12499
12500 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12501         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12502         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12503                 instead of gethostbyname()
12504         * process-unix.c: In unix_canonicalize_host_name() and
12505                 unix_open_network_stream(), add code to use getaddrinfo()
12506                 instead of gethostbyname().
12507
12508 2000-01-27  Daniel Pittman <daniel@danann.net>
12509
12510         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12511         libs when built with flat Athena.
12512
12513 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12514
12515         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12516         Use coding standards for function prototypes.
12517
12518 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12519
12520         * dialog-msw.c (push_lisp_string_as_unicode):
12521         * doc.c (unparesseuxify_doc_string):
12522         * dired.c (Fuser_name_completion_1):
12523         * dired.c (Fuser_name_all_completions):
12524         * dired.c (free_user_cache):
12525         * dired.c (user_name_completion):
12526         * console-x.c (get_display_arg_connection):
12527         * minibuf.c (clear_echo_area_internal):
12528         * minibuf.c (echo_area_append):
12529         * eldap.c (Fldap_open):
12530         * eldap.c (Fldap_search_internal):
12531         * frame-x.c (x_set_frame_text_value):
12532         * frame-x.c (x_set_frame_properties):
12533         * frame-x.c (x_create_widgets):
12534         * redisplay-tty.c (term_get_fkeys_1):
12535         * objects-x.c (x_parse_nearest_color):
12536         * objects-x.c (x_valid_color_name_p):
12537         * objects-x.c (x_initialize_font_instance):
12538         * objects-x.c (x_list_fonts):
12539         * objects-x.c (x_find_charset_font):
12540         * tooltalk.c (Fadd_tooltalk_message_arg):
12541         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12542         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12543         * process-unix.c (unix_create_process):
12544         * ntproc.c (sys_spawnve):
12545         * sound.c (Fplay_sound_file):
12546         * sound.c (Fplay_sound):
12547         * buffer.c (init_initial_directory):
12548         * buffer.c (init_buffer):
12549         * editfns.c (init_editfns):
12550         * editfns.c (Ftemp_directory):
12551         * editfns.c (Fuser_full_name):
12552         * editfns.c (uncache_home_directory):
12553         * editfns.c (get_home_directory):
12554         * editfns.c (Fuser_home_directory):
12555         * editfns.c (Fformat_time_string):
12556         * editfns.c (Fcurrent_time_string):
12557         * gui-x.c (button_item_to_widget_value):
12558         * database.c (Fopen_database):
12559         * event-Xt.c (x_to_emacs_keysym):
12560         * event-Xt.c (x_event_to_emacs_event):
12561         * event-Xt.c (describe_event_window):
12562         * event-msw.c (mswindows_wnd_proc):
12563         * glyphs-eimage.c (jpeg_instantiate):
12564         * glyphs-eimage.c (gif_instantiate):
12565         * glyphs-eimage.c (png_instantiate):
12566         * glyphs-eimage.c (tiff_instantiate):
12567         * glyphs-x.c (xbm_instantiate_1):
12568         * glyphs-x.c (x_xbm_instantiate):
12569         * glyphs-x.c (x_xface_instantiate):
12570         * glyphs-x.c (autodetect_instantiate):
12571         * glyphs-x.c (cursor_font_instantiate):
12572         * glyphs-x.c (x_widget_instantiate):
12573         * glyphs-x.c (x_widget_set_property):
12574         * glyphs-x.c (x_widget_property):
12575         * glyphs-x.c (BUILD_GLYPH_INST):
12576         * print.c (write_string_to_stdio_stream):
12577         * print.c (output_string):
12578         * print.c (Falternate_debugging_output):
12579         * print.c (Fexternal_debugging_output):
12580         * glyphs-msw.c (extract_xpm_color_names):
12581         * glyphs-msw.c (mswindows_xpm_instantiate):
12582         * glyphs-msw.c (bmp_instantiate):
12583         * glyphs-msw.c (resource_name_to_resource):
12584         * glyphs-msw.c (mswindows_resource_instantiate):
12585         * glyphs-msw.c (xbm_instantiate_1):
12586         * glyphs-msw.c (mswindows_xbm_instantiate):
12587         * glyphs-msw.c (mswindows_xface_instantiate):
12588         * glyphs-msw.c (mswindows_widget_instantiate):
12589         * glyphs-msw.c (add_tree_item):
12590         * glyphs-msw.c (add_tab_item):
12591         * glyphs-msw.c (mswindows_combo_box_instantiate):
12592         * glyphs-msw.c (mswindows_widget_property):
12593         * glyphs-msw.c (mswindows_combo_box_property):
12594         * glyphs-msw.c (mswindows_widget_set_property):
12595         * console.c (stuff_buffered_input):
12596         * objects-msw.c (mswindows_initialize_color_instance):
12597         * objects-msw.c (mswindows_valid_color_name_p):
12598         * objects-msw.c (mswindows_list_fonts):
12599         * objects-msw.c (mswindows_font_instance_truename):
12600         * bytecode.c (optimize_compiled_function):
12601         * select-x.c (symbol_to_x_atom):
12602         * select-x.c (x_atom_to_symbol):
12603         * select-x.c (hack_motif_clipboard_selection):
12604         * select-x.c (selection_data_to_lisp_data):
12605         * select-x.c (lisp_data_to_selection_data):
12606         * select-x.c (Fx_get_cutbuffer_internal):
12607         * select-x.c (Fx_store_cutbuffer_internal):
12608         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12609         * buffer.h (TO_INTERNAL_FORMAT): New function.
12610         * emacs.c (make_arg_list_1):
12611         * emacs.c (make_argc_argv):
12612         * emacs.c (main_1):
12613         * emacs.c (Fdump_emacs):
12614         * emacs.c (split_string_by_emchar_1):
12615         * file-coding.h:
12616         * lisp.h:
12617         * lstream.h:
12618         * symsinit.h:
12619         * device-x.c (x_init_device):
12620         * device-x.c (Fx_valid_keysym_name_p):
12621         * device-x.c (Fx_get_font_path):
12622         * device-x.c (Fx_set_font_path):
12623         * glyphs.c (bitmap_to_lisp_data):
12624         * glyphs.c (pixmap_to_lisp_data):
12625         * alloc.c (make_ext_string): Use coding system arguments.  Update
12626         all callers.
12627         * alloc.c (build_string):
12628         * callproc.c (child_setup):
12629         * callproc.c (init_callproc):
12630         * fileio.c (lisp_strerror):
12631         * fileio.c (directory_file_name):
12632         * fileio.c (Fexpand_file_name):
12633         * fileio.c (Ffile_truename):
12634         * fileio.c (Fsysnetunam):
12635         * fileio.c (Fdo_auto_save):
12636         * sysdep.c (sys_readdir):
12637         * tests.c: New file.  Allow adding C tests.
12638         Replace GET_* macros with a more comprehensible and flexible
12639         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12640         Modify all calls.
12641         Any coding system can be used to do format conversion.
12642         Eliminate enum external_data_format.
12643         Eliminate convert_to_external_format.
12644         Eliminate convert_to_internal_format.
12645         Make sure file-name, keyboard, terminal, and ctext are always
12646         defined as coding systems or aliases.  Make
12647         file-name-coding-system, terminal-coding-system, and
12648         keyboard-coding-system magical variables that are equivalent to
12649         defining the corresponding coding system aliases.
12650
12651         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12652         * file-coding.c (Fcoding_system_alias_p): New function.
12653         * file-coding.c (Fcoding_system_aliasee): New function.
12654         * file-coding.c (append_suffix_to_symbol): New function.
12655         * file-coding.c (dangling_coding_system_alias_p): New function.
12656         * file-coding.c (Ffind_coding_system):
12657         * file-coding.c (Fcopy_coding_system):
12658         * file-coding.c (encode_coding_no_conversion):
12659         * file-coding.c (syms_of_file_coding):
12660         * file-coding.c (vars_of_file_coding):
12661         Rewrite coding system alias code.
12662         Allow nested aliases, like symbolic links.
12663         Allow redefinition of coding system aliases.
12664         Prevent existence of dangling coding system aliases.
12665
12666         * dired.c (Fuser_name_completion_1):
12667         * dired.c (Fuser_name_all_completions):
12668         A crash would happen if user did QUIT in the middle of building
12669         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12670
12671         * lisp.h:
12672         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12673
12674         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12675         an unsigned char *.  Update all callers.
12676
12677 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12678
12679         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12680
12681 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12682
12683         * elhash.c (hentry_description): Use more portable definition.
12684         (resize_hash_table): Initialize new hentries using
12685         xnew_array_and_zero, thereby simplifying the code.
12686
12687         * mule-charset.c (make_charset): Make sure entire object is
12688         initialized, to avoid Purify warnings.
12689
12690         * alloc.c (resize_string): Fix unlikely crash with big strings.
12691
12692 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12693
12694         * realpath.c (xrealpath):
12695         Don't call getwd().
12696
12697 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12698
12699         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12700
12701 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12702
12703         * unexelfsgi.c (unexec): Change the way we decide which segment
12704         should be extended.
12705
12706         Assumption that .bss section should be outside the PT_LOADable
12707         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12708         it's present) is inside the 'data' segment. This would fail the
12709         test which was used to find a segment to grow and cover new
12710         heap. Instead of this assumption, I created another one - on IRIX
12711         the segment to grow should start below .bss and it's address
12712         should extent above the end of .bss. Once this segment is
12713         identified, it's grown to accommodate the new heap and new
12714         zero-length .bss section is added at the end of .data2.
12715
12716 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12717
12718         * eval.c (Feval): Wrong number of arguments should use original
12719         function, not the indirect_function version of it.
12720
12721 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12722
12723         * glyphs-x.c (x_button_instantiate): Don't add image if
12724         it is not a pixmap.
12725         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12726         is relative.
12727
12728 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12729
12730         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12731         declaration.
12732         (DEFVAR_INT_MAGIC): Ditto.
12733         (DEFVAR_BOOL_MAGIC): Ditto.
12734         * glyphs.h: Reindent backslash.
12735
12736 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12737
12738         * glyphs-widget.c (layout_query_geometry):
12739         (layout_layout): Use correct types for gheight, gwidth.
12740
12741 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12742
12743         * EmacsManager.c (QueryGeometry): Purified.
12744
12745 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12746
12747         * alloc.c (make_float): Make sure entire object is initialized, to
12748         avoid Purify warnings.
12749         (pdump_register_sub): Remove useless assignment.
12750         (pdump): Use xmalloc, not malloc.
12751         (pdump_load): Use xmalloc, not malloc.
12752
12753 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12754
12755         * callproc.c:
12756         * dired-msw.c:
12757         * fileio.c:
12758         * process-nt.c:
12759         * redisplay-msw.c:
12760         * sysdep.c: Removed redundant #include <windows.h>
12761
12762 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12763
12764         * frame.c (delete_frame_internal): Do not delete device when its
12765         implementation so declares.
12766         (delete_frame_internal): Set device selected frame to nil when
12767         last frame goes away.
12768
12769         * device-msw.c (msprinter_device_system_metrics): Implemented.
12770         (mswindows_device_system_metrics): Added 'device-dpi property.
12771
12772         * device.c: (Fdevice_printer_p): Added.
12773         Added 'offset-workspace device metric.
12774
12775         * console.h (device_metrics): Declared DM_offset_workspace.
12776
12777 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12778
12779         * fileio.c (Ffile_truename): Remove pointless and confusing
12780         initialization of elen.
12781
12782         * glyphs-widget.c: Compiler warning fixes.
12783
12784 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12785
12786         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12787         instead of a Lisp_Object as argument to make it consistent with
12788         the other LIVE_P macros.
12789         (CHECK_LIVE_PROCESS): New macro.
12790
12791         * process.c: Declare Qprocess_live_p.
12792         (Fprocess_live_p): New function.
12793         (create_process): Use PROCESS_LIVE_P.
12794         (read_process_output): Ditto.
12795         (set_process_filter): Ditto.
12796         (Fdelete_process): Ditto.
12797         (kill_buffer_processes): Ditto
12798         (process_send_signal): Use CHECK_LIVE_PROCESS.
12799         (Fprocess_input_coding_system): Check whether process is still
12800         alive (fix PR#1061).
12801         (Fprocess_output_coding_system): Ditto.
12802         (Fprocess_coding_system): Ditto.
12803         (Fset_process_input_coding_system): Ditto.
12804         (Fset_process_output_coding_system): Ditto.
12805
12806 2000-01-23  Andy Piper  <andy@xemacs.org>
12807
12808         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12809         layout and widget.
12810
12811         * glyphs.c (mark_image_instance): take into account changed
12812         image_instance format.
12813         (image_instance_equal): ditto.
12814         (image_instance_hash): ditto.
12815
12816         * glyphs-widget.c (widget_instantiate): Incorporate layout
12817         instantiation here. Delay layout of the layout until later.
12818         (layout_instantiate): deleted.
12819         (layout_query_geometry): new function. get the geometry of a
12820         layout.
12821         (layout_layout): layout a layout dynamically.
12822         (image_instantiator_widget): New function - splitting up
12823         image_instantiator_format_create_glyphs_widget for netwinder
12824         compilation.
12825         (image_instantiator_buttons):
12826         (image_instantiator_edit_fields):
12827         (image_instantiator_combo_box):
12828         (image_instantiator_scrollbar):
12829         (image_instantiator_progress_guage):
12830         (image_instantiator_tree_view):
12831         (image_instantiator_tab_control):
12832         (image_instantiator_labels):
12833         (image_instantiator_layout): ditto.
12834         (image_instantiator_format_create_glyphs_widget): Call preceding
12835         functions.
12836
12837 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12838
12839         * process.c (Fset_process_coding_system):
12840         * device-x.c (Fx_keysym_hash_table):
12841         Docstring fixes.
12842
12843         * lstream.c (Lstream_write): Return documented value, not 0.
12844
12845         * fileio.c (directory_file_name):
12846         (Fsubstitute_in_file_name):
12847         (Fsubstitute_insert_file_contents_internal):
12848         (Fwrite_region_internal):
12849         * emacs.c:
12850         * sysdep.c:
12851         * getloadavg.c:
12852         * systty.h:
12853         Remove vestigial APOLLO-conditional code.
12854
12855 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12856
12857         * getpagesize.h: Add guard macros.
12858         * libsst.h: Add guard macros.
12859         * libst.h: Add guard macros.
12860         * line-number.h: Add guard macros.
12861         * ndir.h: Add guard macros.
12862         * sysfloat.h: Add guard macros.
12863         * sysfile.h: Add guard macros.
12864         * sysproc.h: Add guard macros.
12865         * syswait.h: Add guard macros.
12866         * xintrinsic.h: Add guard macros.
12867         * xintrinsicp.h: Add guard macros.
12868         * xmmanager.h: Add guard macros.
12869         * xmmanagerp.h: Add guard macros.
12870         * xmprimitive.h: Add guard macros.
12871         * xmu.h: Add guard macros.
12872         * gpmevent.h: Add copyright statement. Add guard macros.
12873         * miscplay.h: Add guard macros.
12874         * *.h: Use consistent C-standards-approved guard macro names.
12875
12876         * opaque.c (make_opaque): Switch parameter order.
12877         * opaque.h (make_opaque): Switch parameter order.
12878         Update all callers.
12879         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12880
12881         * config.h.in (type_checking_assert): Added.
12882         (bufpos_checking_assert): Added.
12883
12884 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12885
12886         * alloc.c: Harmless pdump changes.
12887         - Use countof().
12888         - spell alignment correctly.
12889         * sysdep.c: Use countof()
12890
12891 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12892
12893         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12894         initially_selected_for_input() console method, default to 0.
12895         (semi_canonicalize_console_connection): Try to delegate to
12896         canonicalize_console_connection if no such console method.
12897         (canonicalize_console_connection): Vice versa.
12898         (print_console): Do not print nil connection.
12899
12900         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12901         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12902         (XDEVIMPF_FRAMELESS_OK): Added.
12903         (CONSOLE_INHERITS_METHOD): Added.
12904
12905         * console-msw.c (mswindows_canonicalize_console_connection):
12906         Added.
12907         (mswindows_canonicalize_device_connection): Added.
12908
12909         * console-msw.h (struct msprinter_device): Added this struct and
12910         accessor macros.
12911         (mswindows_device): Made fontlist a lisp object.
12912
12913         * device.c (semi_canonicalize_device_connection):  Try to delegate
12914         to canonicalize_device_connection if no such console method.
12915         (canonicalize_device_connection): Vice versa.
12916         (print_device): Do not print nil connection.
12917
12918         * device-msw.c (mswindows_init_device): Call InitCommonControls
12919         when have widgets.
12920         (mswindows_delete_device): Removed fontlist deallocation.
12921         (mswindows_mark_device): Added.
12922
12923         * events.c (event_equal): Added abort() at unreached code.
12924         (event_hash): Ditto.
12925
12926         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12927         fallback tags of Windows devices.
12928
12929         * general.c (syms_of_general): Initialized Qmsprinter.
12930
12931         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12932         of fallback tags of Windows devices.
12933
12934         * lisp.h: Declared Qmsprinter.
12935
12936         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12937         of strings.
12938         (mswindows_list_fonts): Ditto.
12939         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12940         that it can be used by both mswindows and msprinter devices.
12941         (initialize_font_instance): Added.
12942         (mswindows_initialize_font_instance): Use it.
12943         (msprinter_initialize_font_instance): Added.
12944
12945         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12946         and implementation flags check.
12947         (redisplay_without_hooks): Changed the call to the above.
12948         (Fredraw_device): Ditto.
12949         (Fredisplay_device): Ditto.
12950
12951         * redisplay-msw.c (get_frame_dc): Implemented.
12952         (get_frame_compdc): Implemented.
12953         (many functions): Use the two functions above to get device
12954         contexts, ether for a window or a printer.
12955
12956 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12957
12958         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12959         initialization here.
12960         (init_symbols_once_early): Call it.
12961         * emacs.c (main_1): Call it.
12962         * symsinit.h: Declare it.
12963
12964 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12965
12966         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12967         Lisp_Object.
12968         (pdump_backtrace): Ditto.
12969         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12970         (pdump_get_entry): Abort if trying to register a null pointer.
12971         (pdump_dump_data): Cleanup types when relocating.
12972         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12973         (pdump_dump_rtables): Remove bad casts.
12974         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12975         Lisp_Object instead of a EMACS_INT for the hashtable
12976         reorganization.
12977
12978 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12979
12980         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12981
12982         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12983
12984         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12985
12986         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12987
12988 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12989
12990         * faces.h (FACE_STRIKETHRU_P): Added.
12991
12992         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12993         of font variants.
12994
12995         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12996         (mswindows_set_dc_font): New function, aware of font variants,
12997         separated from mswindows_update_dc.
12998
12999         * objects-msw.h (struct mswindows_font_instance_data): Added
13000         definition.
13001
13002         * objects-msw.c (mswindows_finalize_font_instance): Delete all
13003         cached fonts and the data structure.
13004         (mswindows_initialize_font_instance): Added creation of font data
13005         structure.
13006         (mswindows_print_font_instance): Print at least something.
13007         (mswindows_create_font_variant): Implemented.
13008         (mswindows_get_hfont): Implemented.
13009
13010 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
13011
13012         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
13013         prototyping problem with msvc.
13014
13015         * emacs.c (main_1): added syms_of_gui_mswindows() call
13016
13017         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
13018         syms_of_gui_mswindows() function
13019
13020         * symsinit.h: added the prototype for syms_of_gui_mswindows()
13021
13022 2000-01-18  Martin Buchholz <martin@xemacs.org>
13023
13024         * XEmacs 21.2.27 is released.
13025
13026 2000-01-18  Martin Buchholz  <martin@xemacs.org>
13027
13028         * glyphs-eimage.c (struct tiff_error_struct):
13029         (tiff_error_func):
13030         (tiff_warning_func):
13031         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
13032
13033         * unexmips.c:
13034         * unexhp9k3.c:
13035         * unexfreebsd.c:
13036         * unexec.c: Remove vestigial Lucid C code.
13037         * unexalpha.c:
13038         * unexaix.c:
13039         * termcap.c:
13040         * libsst.c: Ansify.
13041         Remove declarations of errno and strerror().
13042
13043         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
13044
13045         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
13046
13047 2000-01-16  Martin Buchholz  <martin@xemacs.org>
13048
13049         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
13050         Optimize.
13051
13052 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13053
13054         * md5.c:
13055         * file-coding.c:
13056         * file-coding.h:
13057         Change enum eol_type to eol_type_t.
13058
13059 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13060
13061         * gui.c (get_gui_callback): Check cons before accessing car.
13062
13063 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13064
13065         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
13066         (XSETSPECIFIER_TYPE): Ditto.
13067
13068 2000-01-17  Didier Verna  <didier@xemacs.org>
13069
13070         * redisplay.c (generate_fstring_runes): compute string size in
13071         characters, not bytes.
13072
13073 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13074
13075         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13076
13077 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
13078
13079         * print.c (print_error_message): Call print_prepare().
13080
13081 2000-01-14  Martin Buchholz  <martin@xemacs.org>
13082
13083         * .dbxrc: Renamed from dbxrc.
13084
13085         * events.c (event_to_character):
13086         Use `assert (foo)' instead of `if (!foo) abort()'
13087
13088         * .gdbinit (xtype): Add documentation.
13089         * .gdbinit (check-temacs): New function.
13090         * .gdbinit (check-xemacs): New function.
13091         * dbxrc (check-xemacs): New function.
13092         * dbxrc (check-xemacs): New function.
13093
13094 2000-01-14  Andy Piper  <andy@xemacs.org>
13095
13096         * glyphs-widget.c (widget_query_geometry): Make sure that we
13097         calculate default dimensions correctly.
13098
13099 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13100
13101         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13102
13103         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13104         pdump_wire'd variable.
13105
13106         * emacs.c: (main_1): Conditionalized calls to
13107         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13108
13109 2000-01-13  Martin Buchholz  <martin@xemacs.org>
13110
13111         * window.c (Fset_window_configuration):
13112         * sysdep.c (_start):
13113         * input-method-motif.c (res):
13114         * event-Xt.c (Xt_process_to_emacs_event):
13115         Simple compiler warning fixes.
13116
13117         * bytecode.c (funcall_compiled_function): Use the original
13118         function symbol on the backtrace list in preference to the
13119         compiled_function object in error messages.
13120
13121 2000-01-13  Andy Piper  <andy@xemacs.org>
13122
13123         * glyphs-x.c (update_widget_face): Make sure we update the widget
13124         background as well as foreground.
13125
13126 2000-01-13  Andy Piper  <andy@xemacs.org>
13127
13128         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13129         fields to subwindow.
13130         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13131         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13132         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13133         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13134
13135         * glyphs-widget.c (check_valid_tab_orientation): new function.
13136         (initialize_widget_image_instance): zero orientation and
13137         justification.
13138         (widget_instantiate): pick up orientation.
13139         (tab_control_query_geometry): return appropriate values for
13140         vertical tabs.
13141
13142         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13143         appropriate creation flags for left, right and bottom tabs.
13144
13145         * s/cygwin32.h: add tab definitions.
13146
13147 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13148
13149         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13150         frame upon hiding a subwindow.
13151         (mswindows_button_instantiate): Changed the push button style to
13152         BS_PUSHBUTTON.
13153         (mswindows_button_instantiate): Removed button BS_NOTIFY
13154         style.
13155         (mswindows_button_instantiate): Removed redundant check for
13156         a disabled gui item.
13157         (mswindows_button_instantiate): Made use of WS_TABSTOP
13158         consistent: "operable" controls (edit, button, tree, scroll) have
13159         this style, "display-only" ones (static, progress gauge) do
13160         not. This style is currently ignored by XEmacs though. Also,
13161         removed the WS_EX_CONTROLPARENT style - it is not for children,
13162         it is for their parents!
13163         (mswindows_edit_field_instantiate): Ditto.
13164         (mswindows_progress_gauge_instantiate): Ditto.
13165         (mswindows_tree_view_instantiate): Ditto.
13166         (mswindows_tab_control_instantiate): Ditto.
13167         (mswindows_scrollbar_instantiate): Ditto.
13168         (mswindows_combo_box_instantiate): Ditto.
13169         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13170         style to the "clip" window.
13171         (mswindows_button_instantiate): Removed compilation warning by
13172         equally typing terms of the ?: operator.
13173
13174 2000-01-12  Didier Verna  <didier@xemacs.org>
13175
13176         * redisplay.c (generate_fstring_runes): new parameter holding the
13177         last modeline-format extent.
13178         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13179         extent, fill the glyph block with it.
13180         (generate_fstring_runes): handle these parameters.
13181         (generate_formatted_string_db): ditto.
13182
13183         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13184         glyphs'extents in the modeline.
13185
13186 1999-01-11  Mike Woolley  <mike@bulsara.com>
13187
13188         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13189         256Mb, as a workaround for the non-starting problem many people
13190         have experienced.
13191
13192 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13193
13194         * console-tty.c (Fset_console_tty_output_coding_system):
13195         Force redrawing tty frame.
13196
13197 2000-01-10  Didier Verna  <didier@xemacs.org>
13198
13199         * redisplay.c (generate_fstring_runes): fix size computation bug.
13200
13201 2000-01-09  William M. Perry <wmperry@aventail.com>
13202
13203         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13204
13205 2000-01-09  Andy Piper  <andy@xemacs.org>
13206
13207         * glyphs-msw.c: index -> i to avoid shadows.
13208         (xbm_create_bitmap_from_data): make static.
13209         (check_valid_string_or_int): deleted.
13210         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13211
13212         * glyphs-x.c (x_update_subwindow): remove unused args.
13213
13214         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13215         back pointer - this is done in allocate_image_instance.
13216         (query_string_font): return Qnil to make the compiler happy.
13217         (unmap_subwindow): set to ~0 to make the compiler happy.
13218         (glyph_query_geometry): comment out until used.
13219         (glyph_layout): ditto.
13220
13221 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13222
13223         * insdel.c (signal_after_change): Remove extraneous unbind_to().