Sync up with r21-2-47-utf-2000-0_19-b1.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-08-23  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * casetab.c (complex_vars_of_casetab): If uppercase/lowercase is
4         not defined for a character, don't put the identical conversion
5         into the uppercase/lowercase table in UTF-2000.
6
7         * buffer.h (SET_TRT_TABLE_CHAR_1): Set a list instead of a
8         character in a char-attribute in UTF-2000.
9
10 2002-08-23  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * chartab.h: Add an EXFUN for Fmount_char_attribute_table.
13
14         * casetab.c (Q_lowercase): New variable in UTF-2000.
15         (Q_uppercase): Likewise.
16         (Fput_case_table): New implementation in UTF-2000.
17         (Fput_case_table_pair): Likewise.
18         (Fcopy_case_table): Likewise.
19         (syms_of_casetab): Add new symbol `->lowercase' and `->uppercase'.
20         (complex_vars_of_casetab): Use char-attribute `->lowercase' and
21         `->uppercase' in Vstandard_case_table in UTF-2000.
22
23 2002-08-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
24
25         * buffer.h (TRT_TABLE_CHAR_1): New implementation in UTF-2000.
26         (SET_TRT_TABLE_CHAR_1): Likewise.
27
28 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * text-coding.c (decode_add_er_char): Support isolated-chars.
31         (char_encode_as_entity_reference): Likewise.
32
33 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
34
35         * emacs.c (Vutf_2000_lisp_directory): New variable.
36         (Vconfigure_utf_2000_lisp_directory): Likewise.
37         (complex_vars_of_emacs): Add new variable
38         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
39
40 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
41
42         * char-ucs.h (DECODE_CHAR): Delete special code for
43         `chinese-big5-1' and `chinese-big5-2'.
44
45         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
46         (Qbig5_2): Likewise.
47         (decode_defined_char): Support CONVERSION_BIG5_1 and
48         CONVERSION_BIG5_2.
49         (decode_builtin_char): Likewise.
50         (charset_code_point): Likewise.
51         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
52         'conversion in UTF-2000.
53         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
54         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
55         `chinese-big5-2' as children of `chinese-big5'.
56
57         * char-ucs.h (CONVERSION_BIG5_1): New macro.
58         (CONVERSION_BIG5_2): New macro.
59
60 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
61
62         * text-coding.c (char_encode_big5): Support entity-reference.
63
64 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
65
66         * text-coding.c (char_encode_as_entity_reference): New function.
67         (char_encode_utf8): Use `char_encode_as_entity_reference'.
68
69 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
70
71         * text-coding.c (decode_coding_big5): Support entity-reference
72         decoding feature.
73
74 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * text-coding.c (allocate_coding_system): Initialize initial
77         charsets for CODESYS_UTF8.
78         (Fmake_coding_system): Accept charset-g0, charset-g1 and
79         charset-g2 for CODESYS_UTF8.
80         (decode_coding_utf8): Use charset-g0.
81         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
82         to force variants to map to UCS.
83
84 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * text-coding.c (Qutf_8_mcs): New variable.
87         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
88         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
89         instead of `utf-8' in UTF-2000.
90
91 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
92
93         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
94         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
95         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
96         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
97         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
98         CONVERSION_96x96x96x96 are introduced.
99         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
100         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
101         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
102
103         * char-ucs.h (CONVERSION_94): New macro.
104         (CONVERSION_96): New macro.
105         (CONVERSION_94x94): New macro.
106         (CONVERSION_96x96): New macro.
107         (CONVERSION_94x94x94): New macro.
108         (CONVERSION_96x96x96): New macro.
109         (CONVERSION_94x94x94x60): New macro.
110         (CONVERSION_94x94x94x94): New macro.
111         (CONVERSION_96x96x96x96): New macro.
112
113 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
114
115         * chartab.c (Vcharacter_variant_table): Deleted.
116         (Fchar_variants): Use character-attribute `->ucs-variants' instead
117         of `Vcharacter_variant_table'.
118         (Fput_char_attribute): Likewise.
119         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
120         (complex_vars_of_chartab): Likewise.
121
122 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
123
124         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
125
126         * fns.c (Qideographic_structure): New variable.
127         (Qkeyword_char): New variable.
128         (ids_format_unit): New function.
129         (Fideographic_structure_to_ids): New function.
130         (syms_of_fns): Add new symbols `ideographic-structure' and
131         `:char'; add new builtin function `ideographic-structure-to-ids'.
132
133         * data.c (Fchar_ref_p): New function.
134         (syms_of_data): Add new builtin function `char-ref-p'.
135
136         * chartab.h: Add an EXFUN for `Ffind_char'.
137
138 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * text-coding.c (Vcharacter_composition_table): Deleted.
141         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
142         in every UTF-2000.
143
144         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
145         UTF-2000.
146         (Vcharacter_composition_table): Deleted.
147         (Fget_composite_char): Use the implementation for external-DB
148         support in every UTF-2000.
149         (Fput_char_attribute): Likewise.
150         (char_attribute_system_db_file): Don't define if external-DB
151         feature is not available.
152         (Fsave_char_attribute_table): Likewise.
153         (Fmount_char_attribute_table): Likewise.
154         (Fclose_char_attribute_table): Likewise.
155         (Freset_char_attribute_table): Likewise.
156         (Fload_char_attribute_table): Likewise.
157         (syms_of_chartab): Don't define `save-char-attribute-table',
158         `mount-char-attribute-table', `reset-char-attribute-table',
159         `close-char-attribute-table' and `load-char-attribute-table' if
160         external-DB feature is not available.
161         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
162
163 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
164
165         * text-coding.c (Qcomposition): Add extern if external-DB feature
166         is supported.
167         (Vcharacter_composition_table): Don't add extern if external-DB
168         feature is supported.
169         (COMPOSE_ADD_CHAR): Modify for new data-representation of
170         character composition rule if external-DB feature is supported.
171
172         * chartab.c (Vcharacter_composition_table): Don't define if
173         external-DB feature is supported.
174         (Qcomposition): New variable.
175         (Fget_composite_char): New implementation for external-DB support.
176         (Fput_char_attribute): Use `composition' property of each
177         character instead of `Vcharacter_composition_table' to store
178         character-composition rules if external-DB feature is supported.
179         (syms_of_chartab): Add new symbol `composition'.
180         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
181         external-DB feature is supported.
182
183 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
184
185         * chartab.c (Vchar_db_stingy_mode): New variable.
186         (load_char_attribute_maybe): Close database if
187         Vchar_db_stingy_mode is not NIL.
188         (Fload_char_attribute_table_map_function): Use
189         `get_char_id_table_0' instead of `get_char_id_table'.
190         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
191
192         * chartab.h (get_char_id_table_0): New inline function.
193         (get_char_id_table): Use `get_char_id_table_0'.
194
195 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
196
197         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
198         and `COMPOSE_ADD_CHAR'.
199         (decode_coding_iso2022): Use `decode_flush_er_chars'.
200
201 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
202
203         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
204         instead of `DECODE_ADD_UCS_CHAR'.
205         (COMPOSE_ADD_CHAR): Likewise.
206
207 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
208
209         * text-coding.c (decode_flush_er_chars): New inline function.
210         (decode_add_er_char): New function.
211         (decode_coding_utf8): Use `decode_flush_er_chars' and
212         `decode_add_er_char'.
213
214 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
215
216         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
217         done before `decode_output_utf8_partial_char'.
218
219         * mule-charset.c (complex_vars_of_mule_charset): Specify
220         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
221         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
222
223 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * mule-charset.c (decode_defined_char): New function; search
226         mother.
227         (decode_builtin_char): Don't search mother if
228         XCHARSET_MAX_CODE(charset) == 0.
229         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
230         == 0 even if code >= XCHARSET_MAX_CODE(charset).
231         (Fdecode_char): Use `decode_defined_char' instead of
232         `DECODE_DEFINED_CHAR'.
233         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
234         mother of `Vcharset_ucs_jis'.
235
236         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
237         instead of `DECODE_DEFINED_CHAR'.
238
239         * char-ucs.h (decode_defined_char): Renamed from
240         `DECODE_DEFINED_CHAR'; changed to normal function.
241         (DECODE_CHAR): Use `decode_defined_char' instead of
242         `DECODE_DEFINED_CHAR'.
243
244         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
245
246 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
249
250         * text-coding.c (Vcoded_charset_entity_reference_alist): New
251         variable.
252         (Quse_entity_reference): New variable.
253         (Qd): New variable.
254         (Qx): New variable.
255         (QX): New variable.
256         (coding_system_description): Add description for
257         `ccs_priority_list'.
258         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
259         (allocate_coding_system): Initialize `ccs_priority_list' in
260         UTF-2000.
261         (Fmake_coding_system): Add description about
262         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
263         (codesys).
264         (Fcoding_system_property): Accept `disable-composition' and
265         `use-entity-reference' in UTF-2000.
266         (struct decoding_stream): Add new member `er_counter' and `er_buf'
267         in UTF-2000.
268         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
269         (decode_coding_utf8): Decode entity-reference if
270         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
271         (char_encode_utf8): Encode non-Unicode characters as
272         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
273         (str->codesys).
274         (syms_of_file_coding): Add new symbols `use-entity-reference',
275         `d', `x', `X'.
276         (vars_of_file_coding): Add new variable
277         `coded-charset-entity-reference-alist'.
278         (complex_vars_of_file_coding): Declare `disable-composition' and
279         `use-entity-reference' to be coding-system-properties in UTF-2000.
280
281         * file-coding.h (struct Lisp_Coding_System): Add new member
282         `use_entity_reference' and `ccs_priority_list'.
283         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
284         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
285         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
286
287 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
288
289         * chartab.c (save_uint8_byte_table): Don't clear the table.
290         (save_uint16_byte_table): Likewise.
291         (save_byte_table): Likewise.
292         (Fmount_char_attribute_table): New function.
293         (syms_of_chartab): Add new builtin function
294         `mount-char-attribute-table'.
295
296 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * mule-charset.c (Fsave_charset_mapping_table): Open database as
299         "w+" mode.
300         (load_char_decoding_entry_maybe): Open database as read-only mode.
301
302         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
303         open database as "w+" mode.
304         (load_char_attribute_maybe): Open database as read-only mode.
305         (Fload_char_attribute_table): Likewise.
306
307 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
308
309         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
310         (char_table_description): Delete member `db_file'.
311         (Fmake_char_table): Don't refer `ct->db_file'.
312         (Fcopy_char_table): Likewise.
313         (Fsave_char_attribute_table): Likewise.
314         (Fclose_char_attribute_table): Likewise.
315         (Freset_char_attribute_table): Likewise.
316         (load_char_attribute_maybe): Likewise.
317         (Fload_char_attribute_table): Likewise.
318
319         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
320
321 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
324         (Fsave_char_attribute_table): Don't check `ct->db_file' if
325         `ct->db' is living.
326         (load_char_attribute_maybe): Likewise.
327         (Fload_char_attribute_table): Likewise.
328
329 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
330
331         * chartab.c (Fclose_char_attribute_table): Set Qnil on
332         `ct->db_file' unconditionally.
333
334 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
335
336         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
337         UTF-2000.
338         (char_table_description): Add description for `db_file' and `db'
339         in UTF-2000.
340         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
341         UTF-2000.
342         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
343         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
344         (Fclose_char_attribute_table): New function.
345         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
346         (load_char_attribute_maybe): Change interface; use `cit->db_file'
347         and `cit->db'.
348         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
349         (syms_of_chartab): Add new builtin function
350         `Fclose_char_attribute_table'.
351
352 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
353
354         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
355         `db' in UTF-2000.
356         (load_char_attribute_maybe): Change interface.
357         (get_char_id_table): Modify for `load_char_attribute_maybe'.
358
359 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
360
361         * database.h: Add an EXFUN for `Fdatabase_live_p'.
362
363 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
366         instead of `DECODE_CHAR' for mother; don't use special code for
367         chinese-big5 to use code space of chinese-big5-1 and
368         chinese-big5-2.
369         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
370         `MAX_CHAR_BIG5_CDP' for chinese-big5.
371
372         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
373         (MAX_CHAR_BIG5_CDP): Revival.
374
375 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
376
377         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
378         the XLFD registry-encoding name of `chinese-big5'.
379
380 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
381
382         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
383         (Qchinese_big5_cdp): Deleted.
384         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
385         (complex_vars_of_mule_charset): Delete coded-charset
386         `chinese-big5-cdp'.
387
388         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
389         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
390         `CHARSET_ID_OFFSET - n' for private CCS.
391         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
392         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
393         of `MIN_LEADING_BYTE'.
394         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
395         `(CHARSET_ID_OFFSET - 97)'.
396         (MIN_CHAR_BIG5_CDP): Deleted.
397         (MAX_CHAR_BIG5_CDP): Deleted.
398
399 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
400
401         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
402
403 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
406         (vars_of_mule): Add new variable `utf-2000-version' [moved from
407         chartab.c].
408
409         * chartab.c (Vutf_2000_version): Moved to mule.c.
410         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
411
412 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
413
414         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
415         when HAVE_CHISE_CLIENT is not defined.
416
417         * mule.c (vars_of_mule): Provide feature `chise' when
418         HAVE_CHISE_CLIENT is defined.
419
420 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * config.h.in (UTF2000): Add comment.
423         (HAVE_CHISE_CLIENT): New macro.
424
425 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
426
427         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
428         CONSP.
429         (Fput_char_attribute): Likewise.
430         (char_attribute_system_db_file): Encode file-name of attribute.
431         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
432         the initial value.
433
434 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
435
436         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
437         (Fsave_charset_mapping_table): Use
438         `char_attribute_system_db_file'.
439         (load_char_decoding_entry_maybe): Likewise.
440
441         * chartab.h (Qsystem_char_id): New external variable.
442         (char_attribute_system_db_file): New prototype.
443
444         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
445         (char_attribute_system_db_file): New function.
446         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
447         (Freset_char_attribute_table): Likewise.
448         (load_char_attribute_maybe): Likewise.
449         (Fload_char_attribute_table): Likewise.
450         (syms_of_chartab): Add new symbol `system-char-id'.
451
452 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
455         `XCHARSET_GRAPHIC(ccs)'.
456
457 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
460
461 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
462
463         * chartab.c (Q_ucs_variants): New variable.
464         (syms_of_chartab): Add new symbol `->ucs-variants'.
465         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
466         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
467         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
468
469         * mule-charset.c (load_char_decoding_entry_maybe): New function.
470
471         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
472         `HAVE_DATABASE' is defined.
473         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
474         `HAVE_DATABASE' is defined.
475
476 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
477
478         * chartab.c (Fsave_char_attribute_table): Don't clear internal
479         attribute-table.
480         (Freset_char_attribute_table): New function.
481         (syms_of_chartab): Add new builtin function
482         `reset-char-attribute-table'.
483
484 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
485
486         * chartab.c (load_char_attribute_maybe): Don't make directories.
487
488 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
489
490         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
491
492         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
493         for decoding-table.
494
495 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
496
497         * mule-charset.c (Fsave_charset_mapping_table): Use
498         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
499
500         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
501         instead of `XCHARSET_CHARS'.
502
503 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
504
505         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
506         (XCHARSET_BYTE_SIZE): Likewise.
507
508         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
509         mule-charset.c].
510         (XCHARSET_BYTE_SIZE): Likewise.
511
512 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
513
514         * chartab.c (Fput_char_attribute): Use exec-directory instead of
515         data-directory to store database.
516         (Fsave_char_attribute_table): Likewise.
517         (load_char_attribute_maybe): Likewise.
518         (Fload_char_attribute_table): Likewise.
519
520 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
521
522         * mule-charset.c (Fsave_charset_mapping_table): New function.
523         (syms_of_mule_charset): Add new builtin function
524         `save-charset-mapping-table'.
525
526 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * char-ucs.h (decoding_table_check_elements): Delete prototype.
529         (get_ccs_octet_table): New inline function.
530         (put_ccs_octet_table): Likewise.
531         (decoding_table_put_char): Use `get_ccs_octet_table' and
532         `put_ccs_octet_table'.
533         (decoding_table_remove_char): Use `decoding_table_put_char'.
534         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
535
536         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
537         into encoding_table.
538         (make_charset): Use Qunbound instead Qnil as initial value of
539         decoding_table.
540
541 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
542
543         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
544         element is Qunloaded.
545         (map_over_uint16_byte_table): Likewise.
546         (map_over_byte_table): Likewise.
547         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
548         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
549         database support, load encoding-table of the specified
550         coded-charset if it is not loaded yet.
551         (save_uint8_byte_table): New function of UTF-2000 with external
552         database support.
553         (save_uint16_byte_table): Likewise.
554         (save_byte_table): Likewise.
555         (Fput_char_attribute): Don't store value into external database
556         even if the external database feature is supported in UTF-2000;
557         set `attribute' as name of char-table if the external database
558         feature is supported.
559         (Fsave_char_attribute_table): New function in UTF-2000.
560         (syms_of_chartab): Add new builtin function
561         `save-char-attribute-table' in UTF-2000.
562
563 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
564
565         * chartab.c (char_attribute_table_to_put): New variable in
566         UTF-2000.
567         (Qput_char_table_map_function): Likewise.
568         (value_to_put): Likewise.
569         (Fput_char_table_map_function): New function in UTF-2000.
570         (put_char_table): Use `Fmap_char_attribute' for
571         CHARTAB_RANGE_CHARSET in UTF-2000.
572         (Fput_char_attribute): Store symbol instead of string in
573         `XCHAR_TABLE_NAME (table)'.
574         (load_char_attribute_maybe): Likewise.
575         (syms_of_chartab): Add new symbol/function
576         `put-char-table-map-function'.
577
578 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
579
580         * database.h: Add new EXFUN for `Fmap_database'.
581
582         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
583         (syms_of_database): Likewise.
584
585         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
586         UTF-2000.
587         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
588         (XCHAR_TABLE_UNLOADED): Likewise.
589
590         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
591         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
592         HAVE_DATABASE is defined.
593         (char_attribute_table_to_load): New variable of UTF-2000 with
594         external database support.
595         (Qload_char_attribute_table_map_function): Likewise.
596         (Fload_char_attribute_table_map_function): New function of
597         UTF-2000 with external database support.
598         (Fload_char_attribute_table): New function of UTF-2000.
599         (Fmap_char_attribute): Call Fload_char_attribute_table if
600         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
601         (syms_of_chartab): Add new symbol and function
602         `load-char-attribute-table-map-function' in UTF-2000 with external
603         database support; add new function `load-char-attribute-table' in
604         UTF-2000.
605
606 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * chartab.h (load_char_attribute_maybe): New prototype for
609         UTF-2000 with DATABASE support.
610         (get_char_id_table): Use `load_char_attribute_maybe' if
611         HAVE_DATABASE is defined.
612
613         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
614         with DATABASE support.
615
616 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * chartab.c (Fput_char_attribute): Use S-expression as key of
619         external database.
620
621         * chartab.h (get_char_id_table): Use S-expression as key of
622         external database.
623
624 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
627         if an element is not loaded, load the corresponding attributes
628         from an external database.
629         (map_over_uint16_byte_table): Likewise.
630         (map_over_byte_table): Likewise.
631         (map_char_table): Modify for `map_over_uint8_byte_table',
632         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
633         element is not loaded, load the corresponding attributes from an
634         external database.
635         (Fput_char_attribute): Change initial values to Qunloaded.
636
637         * chartab.h (get_char_id_table): If a character attribute is not
638         loaded and the attribute value is not found in an external
639         database, store Qunbound as the attribute value.
640
641 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
642
643         * chartab.c (BT_UINT8_unloaded): New macro.
644         (UINT8_VALUE_P): Accept Qunloaded.
645         (UINT8_ENCODE): Likewise.
646         (UINT8_DECODE): Likewise.
647         (BT_UINT16_unloaded): New macro.
648         (UINT16_VALUE_P): Accept Qunloaded.
649         (UINT16_ENCODE): Likewise.
650         (UINT16_DECODE): Likewise.
651         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
652         BT_UINT16_unloaded.
653         (mark_char_table): Mark `ct->name' in UTF-2000.
654         (char_table_description): Add `name' in UTF-2000.
655         (Fmake_char_table): Initialize `ct->name'.
656         (Fcopy_char_table): Copy `ct->name'.
657         (Fput_char_attribute): Store value into an external database if
658         HAVE_DATABASE is defined.
659
660         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
661         UTF-2000.
662         (CHAR_TABLE_NAME): New macro in UTF-2000.
663         (XCHAR_TABLE_NAME): New macro in UTF-2000.
664         (get_char_id_table): Try to read an external database if Qunloaded
665         is stored in a table.
666
667         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
668         Qunloaded.
669
670 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
671
672         * database.h: Add EXFUN definitions for Fopen_database,
673         Fput_database, Fget_database and Fclose_database.
674
675         * data.c (Qunloaded): New variable in UTF-2000.
676
677         * lisp.h (Qunloaded): New variable in UTF-2000.
678
679 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * mule-charset.c (put_char_ccs_code_point): Modify for
682         `decoding_table_remove_char' and `decoding_table_put_char'.
683         (remove_char_ccs): Modify for `decoding_table_remove_char'.
684
685         * char-ucs.h (decoding_table_remove_char): Change arguments to
686         hide decoding_table vector.
687         (decoding_table_put_char): Likewise.
688
689 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
690
691         * mule-charset.c (decoding_table_remove_char): Moved to
692         char-ucs.h.
693         (decoding_table_put_char): Likewise.
694
695         * char-ucs.h (decoding_table_check_elements): New prototype [moved
696         from mule-charset.c].
697         (decoding_table_remove_char): New inline function [moved from
698         mule-charset.c].
699         (decoding_table_put_char): Likewise.
700
701 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
704         extension.
705
706 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
707
708         * mule-charset.c (decode_builtin_char): Support mother charsets.
709
710 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
711
712         * mule-charset.c (Q94x94x60): New variable.
713         (charset_code_point): Support conversion `94x94x60'.
714         (Fmake_charset): Likewise.
715         (syms_of_mule_charset): Add new symbol `94x94x60'.
716
717         * char-ucs.h (CONVERSION_94x94x60): New macro.
718
719 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
720
721         * mule-charset.c (charset_code_point): Unify code about
722         `code-offset'.
723
724 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
725
726         * mule-charset.c (charset_code_point): Merge code about builtin
727         characters into code about mother charsets; don't use
728         `range_charset_code_point'.
729         (range_charset_code_point): Deleted.
730
731 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * mule-charset.c (Qcode_offset): New variable.
734         (Fmake_charset): Use `XUINT' to get value of `min-code' and
735         `max-code'; accept new property `code-offset'.
736         (syms_of_mule_charset): Add new symbol `code-offset'.
737
738 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * mule-charset.c (range_charset_code_point): Fixed.
741
742 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * mule-charset.c (decode_builtin_char): Change semantics of
745         code-offset of coded-charset.
746         (charset_code_point): Likewise.
747         (range_charset_code_point): Likewise.
748         (complex_vars_of_mule_charset): Modify for the change.
749
750 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * mule-charset.c (Fencode_char): Reverse arguments.
753
754         * mule-charset.c (charset_code_point): Fixed.
755
756 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * mule-charset.c (Vcharset_mojikyo): Deleted.
759         (Vcharset_mojikyo_2022_1): Deleted.
760         (Vcharset_mojikyo_pj_{1..21}): Deleted.
761         (Qmin_code): New variable in UTF-2000.
762         (Qmax_code): Likewise.
763         (Qmother): Likewise.
764         (Qconversion): Likewise.
765         (Q94x60): Likewise.
766         (Qmojikyo): Deleted.
767         (Qmojikyo_2022_1): Deleted.
768         (Qmojikyo_pj_{1..22}): Deleted.
769         (mark_charset): Mark `cs->mother'.
770         (charset_description): Add description for `mother'.
771         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
772         new arguments `mother' and `conversion'; use
773         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
774         (charset_code_point): Moved from char-ucs.h; support `mother'
775         charset feature.
776         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
777         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
778         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
779         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
780         allow 2 as the value of `graphic' in UTF-2000; add new properties
781         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
782         require `final' in UTF-2000; modify for `make_charset'.
783         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
784         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
785         (Fcharset_property): Support `mother', `min-code' and `max-code'.
786         (Fencode_char): New function.
787         (syms_of_mule_charset): Add new builtin function `encode-char' in
788         UTF-2000; add new symbols `min-code', `max-code', `mother',
789         `conversion' and `94x60'; delete symbols `mojikyo',
790         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
791         (complex_vars_of_mule_charset): Modify for `make_charset' change;
792         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
793         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
794
795         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
796         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
797
798         * char-ucs.h (Vcharset_mojikyo): Deleted.
799         (Vcharset_mojikyo_2022_1): Deleted.
800         (LEADING_BYTE_MOJIKYO): Deleted.
801         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
802         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
803         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
804         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
805         add new member `mother'; add new member `conversion'.
806         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
807         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
808         (CHARSET_MOTHER): New macro.
809         (CHARSET_CONVERSION): New macro.
810         (CONVERSION_IDENTICAL): New macro.
811         (CONVERSION_94x60): New macro.
812         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
813         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
814         (XCHARSET_MOTHER): New macro.
815         (XCHARSET_CONVERSION): New macro.
816         (MIN_CHAR_MOJIKYO): Deleted.
817         (MAX_CHAR_MOJIKYO): Deleted.
818         (DECODE_MOJIKYO_2022): Deleted.
819         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
820         (charset_code_point): Changed to non-inline function.
821         (encode_char_1): Use `charset_code_point'.
822         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
823
824 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * lread.c (read_compiled_function): Fix prototype.
827         (read_vector): Likewise.
828
829 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * lrecord.h (struct lrecord_header): Delete `older'.
832         (set_lheader_implementation): Delete code for `older'.
833         (set_lheader_older_implementation): Deleted.
834         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
835         (OLDER_RECORD_P): Deleted.
836         (OLDER_RECORD_HEADER_P): Deleted.
837         (alloc_older_lcrecord): Deleted.
838         (alloc_older_lcrecord_type): Deleted.
839
840         * alloc.c (all_older_lcrecords): Deleted.
841         (alloc_older_lcrecord): Deleted.
842         (disksave_object_finalization_1): Delete code for older objects.
843         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
844         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
845
846 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
847
848         * mule-charset.c (decoding_table_put_char): Use `make_vector'
849         instead of `make_older_vector'.
850         (put_char_ccs_code_point): Likewise.
851         (mark_charset): Mark `cs->decoding_table'.
852         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
853
854         * lisp.h (make_older_vector): Deleted.
855         (make_vector_newer): Deleted.
856
857         * config.h.in (HAVE_GGC): Deleted.
858
859         * alloc.c (make_older_vector): Deleted.
860         (make_vector_newer_1): Deleted.
861         (make_vector_newer): Deleted.
862
863 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
866         (Qideograph_daikanwa_2): New variable.
867         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
868         (complex_vars_of_mule_charset): Add new coded-charset
869         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
870         `LEADING_BYTE_DAIKANWA'.
871
872         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
873         (LEADING_BYTE_DAIKANWA_1): New macro.
874         (LEADING_BYTE_DAIKANWA_2): New macro.
875         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
876
877 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * mule-charset.c (complex_vars_of_mule_charset): Change
880         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
881         the second revised version.
882
883 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
884
885         * mule-charset.c (Vcharset_ucs_smp): New variable.
886         (Vcharset_ucs_sip): New variable.
887         (Qucs_smp): New variable.
888         (Qucs_sip): New variable.
889         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
890         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
891         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
892         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
893         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
894         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
895
896         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
897         (LEADING_BYTE_UCS_SIP): New macro.
898         (MIN_CHAR_SMP): New macro.
899         (MAX_CHAR_SMP): New macro.
900         (MIN_CHAR_SIP): New macro.
901         (MAX_CHAR_SIP): New macro.
902
903 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
904
905         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
906         utf-2000.
907
908 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
911         value; don't store value into `encoding_table' of `Lisp_Charset'.
912         (mark_charset): `encoding_table' was deleted.
913         (charset_description): Likewise.
914         (make_charset): Likewise.
915         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
916         `put_char_ccs_code_point'.
917
918         * chartab.h (Fput_char_attribute): New EXFUN.
919
920         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
921         is unified with normal symbol space.
922         (Fget_char_attribute): Likewise.
923         (Fput_char_attribute): Likewise; behavior of
924         `put_char_ccs_code_point' is changed.
925
926         * char-ucs.h: Include "elhash.h".
927         (Vchar_attribute_hash_table): New external variable.
928         (struct Lisp_Charset): Delete `encoding_table'.
929         (CHARSET_ENCODING_TABLE): New implementation; refer
930         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
931         `Lisp_Charset'.
932
933 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
936         (cs) == 0.
937
938 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
939
940         * text-coding.c (char_encode_big5): Prefer charset-g1 than
941         `chinese-big5'.
942
943 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * chartab.c (uint8_byte_table_description): New constant.
946         (uint8-byte-table): Use `uint8_byte_table_description'.
947         (uint16_byte_table_description): New constant.
948         (uint16-byte-table): Use `uint16_byte_table_description'.
949
950 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
951
952         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
953         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
954
955 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
956
957         * mule-charset.c (Vcharset_ucs_ks): New variable.
958         (Qucs_ks): New variable.
959         (syms_of_mule_charset): Add new symbol `ucs-ks'.
960         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
961
962         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
963
964 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
965
966         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
967         (Fdecode_char): Likewise.
968
969         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
970         chartab.h.
971         (Fdefine_char): Modify for Fdecode_char.
972         (Ffind_char): Likewise.
973
974         * mule-charset.c (Fdecode_char): Add new optional argument
975         `defined-only'.
976         (Fdecode_builtin_char): Modify for `Fdecode_char'.
977
978 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
979
980         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
981         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
982         (allocate_coding_system): Initialize initial-charsets of
983         CODESYS_BIG5 in XEmacs UTF-2000.
984         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
985         CODESYS_BIG5 in XEmacs UTF-2000.
986         (decode_coding_big5): Use initial-charset-g0 and -g1 of
987         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
988
989         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
990         variables.
991         (Qideograph_hanziku_{1 .. 12}): Likewise.
992         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
993         .. 12}'.
994         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
995         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
996         `ideograph-hanziku-{1 .. 12}'.
997
998         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
999         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1000         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1001         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1002         (DECODE_DEFINED_CHAR): New inline function.
1003         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1004
1005 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * mule-charset.c (Vcharset_china3_jef): Renamed from
1008         `Vcharset_japanese_jef_china3'.
1009         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1010         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1011         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1012         (syms_of_mule_charset): Rename `china3-jef' from
1013         `japanese-jef-china3'.
1014         (complex_vars_of_mule_charset): Likewise; rename
1015         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1016
1017         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1018         `LEADING_BYTE_JEF_CHINA3'.
1019         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1020         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1021
1022 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1023
1024         * mule-charset.c (encode_builtin_char_1): Comment out special code
1025         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1026
1027         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1028         (MAX_CHAR_MOJIKYO_0): Comment out.
1029         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1030         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1031         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1032         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1033
1034 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1037         (Qideograph_cbeta): New variable.
1038         (encode_builtin_char_1): Comment out special code for
1039         coded-charset `mojikyo' and `japanese-jef-china3'.
1040         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1041         (complex_vars_of_mule_charset): Add new coded-charset
1042         `ideograph-cbeta'.
1043
1044         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1045         (MIN_CHAR_CBETA): New macro.
1046         (MAX_CHAR_CBETA): New macro.
1047
1048 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1049
1050         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1051         (LEADING_BYTE_JEF_CHINA3): New macro.
1052         (MIN_CHAR_JEF_CHINA3): New macro.
1053         (MAX_CHAR_JEF_CHINA3): Likewise.
1054         (DECODE_CHAR): Fixed.
1055
1056 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057
1058         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1059         (Qjapanese_jef_china3): New variable.
1060         (encode_builtin_char_1): Support `japanese-jef-china3'.
1061         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1062         (complex_vars_of_mule_charset): Add new coded-charset
1063         `japanese-jef-china3'.
1064
1065 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1066
1067         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1068         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1069         94^4, 96^3, 96^4, 128^n and 256^n set.
1070         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1071         (map_char_table): Likewise.
1072
1073 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1076         UTF-2000.
1077
1078 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * chartab.h (get_char_id_table): New inline function.
1081
1082         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1083         function.
1084
1085 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086
1087         * chartab.h (decode_char_table_range): New prototype in XEmacs
1088         UTF-2000.
1089         (put_char_id_table): New inline function in XEmacs UTF-2000.
1090
1091         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1092         function.
1093         (decode_char_table_range): Delete static declaration in XEmacs
1094         UTF-2000.
1095
1096 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * chartab.c (put_char_id_table): Use `put_char_table'.
1099
1100 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1101
1102         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1103         (map_over_uint16_byte_table): Likewise.
1104         (map_over_byte_table): Likewise.
1105         (map_char_table): Modify for `map_over_uint8_byte_table',
1106         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1107         UTF-2000.
1108
1109 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * chartab.c (struct map_char_table_for_charset_arg): New
1112         structure.
1113         (map_char_table_for_charset_fun): New function.
1114         (map_char_table): Use `map_char_table' for encoding_table of
1115         `range->charset'.
1116
1117 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1118
1119         * chartab.c (map_char_table): Check a character is found in
1120         range->charset instead of non default value is defined in
1121         char-table when range is CHARTAB_RANGE_ROW.
1122
1123 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1124
1125         * chartab.c (map_char_id_table): Deleted.
1126         (Fmap_char_attribute): Use `map_char_table' instead of
1127         `map_char_id_table'.
1128
1129 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130
1131         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1132         UTF-2000.
1133         (update_syntax_table): Deleted in XEmacs UTF-2000.
1134
1135         * syntax.c (find_defun_start): Use `syntax_table' instead of
1136         `mirror_syntax_table' in XEmacs UTF-2000.
1137         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1138         UTF-2000.
1139         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1140         XEmacs UTF-2000.
1141         (Fmatching_paren): Likewise.
1142         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1143         in XEmacs UTF-2000.
1144         (find_start_of_comment): Likewise.
1145         (find_end_of_comment): Likewise.
1146         (Fforward_comment): Likewise.
1147         (scan_lists): Likewise.
1148         (char_quoted): Likewise.
1149         (Fbackward_prefix_chars): Likewise.
1150         (scan_sexps_forward): Likewise.
1151         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1152         (update_syntax_table): Likewise.
1153
1154         * search.c (skip_chars): Use `syntax_table' instead of
1155         `mirror_syntax_table' in XEmacs UTF-2000.
1156         (wordify): Likewise.
1157         (Freplace_match): Likewise.
1158
1159         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1160         `mirror_syntax_table' in XEmacs UTF-2000.
1161         (WORDCHAR_P_UNSAFE): Likewise.
1162         (re_match_2_internal): Likewise.
1163
1164         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1165         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1166
1167         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1168         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1169
1170         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1171         XEmacs UTF-2000.
1172
1173         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1174         UTF-2000.
1175         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1176         (char_table_description): Delete `mirror_table' in XEmacs
1177         UTF-2000.
1178         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1179         UTF-2000.
1180         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1181         (Fcopy_char_table): Likewise.
1182         (put_char_table): Don't call `update_syntax_table' in XEmacs
1183         UTF-2000.
1184
1185         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1186         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1187         (casify_region_internal): Likewise.
1188
1189         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1190
1191         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1192         `mirror_syntax_table' in XEmacs UTF-2000.
1193
1194         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1195         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1196         (Fexpand_abbrev): Likewise.
1197
1198 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1199
1200         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1201
1202 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1205         (map_over_uint16_byte_table): Likewise.
1206         (map_over_byte_table): Likewise.
1207         (get_char_id_table): Refer `cit->default_value'.
1208         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1209         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1210         of character-id ranges.
1211         (mark_char_table): Mark `ct->default_value'.
1212         (char_table_description): Add `default_value'.
1213         (fill_char_table): Use `default_value'.
1214         (decode_char_table_range): Decode `nil' as
1215         `CHARTAB_RANGE_DEFAULT'.
1216         (get_char_id_table): Refer `cit->default_value'.
1217         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1218         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1219         temporary hack; check value of char-table is bound or not.
1220         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1221
1222         * chartab.h (struct Lisp_Char_Table): Add new member
1223         `default_value' in XEmacs UTF-2000.
1224         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1225         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1226         UTF-2000.
1227
1228 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * chartab.h (Lisp_Char_ID_Table): Deleted.
1231
1232         * chartab.c (char_table_description): Fix typo.
1233         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1234         `Lisp_Char_ID_Table'.
1235
1236 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1237
1238         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1239         `CHAR_ID_TABLE_P'.
1240
1241         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1242         `CHAR_ID_TABLE_P'.
1243
1244         * chartab.h (XCHAR_ID_TABLE): Deleted.
1245         (XSETCHAR_ID_TABLE): Deleted.
1246         (CHAR_ID_TABLE_P): Deleted.
1247
1248         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1249         `CHAR_ID_TABLE_P'.
1250         (Fget_composite_char): Likewise.
1251         (put_char_table): Likewise.
1252         (add_char_attribute_alist_mapper): Fixed.
1253         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1254         `CHAR_ID_TABLE_P'.
1255         (Fget_char_attribute): Likewise.
1256         (Fget_char_attribute): Likewise.
1257         (Fmap_char_attribute): Likewise.
1258
1259         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1260         `CHAR_ID_TABLE_P'.
1261         (encode_char_1): Likewise.
1262
1263 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1266         `XCHAR_ID_TABLE'.
1267
1268         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1269         instead of `XCHAR_ID_TABLE'.
1270         (remove_char_ccs): Likewise.
1271
1272         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1273         `XCHAR_ID_TABLE'.
1274         (Fget_composite_char): Likewise.
1275         (Fchar_variants): Likewise.
1276         (put_char_table): Likewise.
1277         (add_char_attribute_alist_mapper): Likewise.
1278         (Fchar_attribute_alist): Likewise.
1279         (Fget_char_attribute): Likewise.
1280         (Fput_char_attribute): Likewise.
1281         (Fmap_char_attribute): Likewise.
1282         (Fmap_char_attribute): Likewise.
1283
1284         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1285         `XCHAR_ID_TABLE'.
1286         (encode_char_1): Likewise.
1287
1288 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1291         `Lisp_Char_ID_Table'.
1292         (mark_char_id_table): Deleted.
1293         (print_char_id_table): Likewise.
1294         (char_id_table_equal): Likewise.
1295         (char_id_table_hash): Likewise.
1296         (char_id_table_description): Likewise.
1297         (char_id_table): Likewise.
1298         (make_char_id_table): Use `Fmake_char_table' and
1299         `fill_char_table'.
1300         (get_char_id_table): Use `Lisp_Char_Table' instead of
1301         `Lisp_Char_ID_Table'.
1302         (put_char_id_table): Likewise.
1303         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1304         `XCHAR_ID_TABLE'.
1305         (Fremove_char_attribute): Likewise.
1306         (syms_of_chartab): Don't define type `char-id-table'.
1307
1308         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1309         (char_id_table): Likewise.
1310         (GC_CHAR_ID_TABLE_P): Likewise.
1311         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1312         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1313         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1314         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1315         (get_char_id_table): Use `Lisp_Char_Table' instead of
1316         `Lisp_Char_ID_Table'.
1317         (put_char_id_table_0): Likewise.
1318         (put_char_id_table): Likewise.
1319
1320 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1321
1322         * chartab.h: Lisp_Byte_Table related codes are moved from
1323         chartab.h.
1324
1325         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1326
1327 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1328
1329         * chartab.h: Don't include "chartab.h".
1330         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1331         (Lisp_Char_ID_Table): Likewise.
1332         (char_id_table): Likewise.
1333         (XCHAR_ID_TABLE): Likewise.
1334         (XSETCHAR_ID_TABLE): Likewise.
1335         (CHAR_ID_TABLE_P): Likewise.
1336         (GC_CHAR_ID_TABLE_P): Likewise.
1337         (get_char_id_table): Likewise.
1338
1339         * char-ucs.h: Include "chartab.h".
1340         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1341         (Lisp_Char_ID_Table): Likewise.
1342         (char_id_table): Likewise.
1343         (XCHAR_ID_TABLE): Likewise.
1344         (XSETCHAR_ID_TABLE): Likewise.
1345         (CHAR_ID_TABLE_P): Likewise.
1346         (GC_CHAR_ID_TABLE_P): Likewise.
1347         (get_char_id_table): Likewise.
1348
1349 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1350
1351         * chartab.c (copy_uint8_byte_table): New function.
1352         (copy_uint16_byte_table): New function.
1353         (copy_byte_table): New function.
1354         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1355         characters to call.
1356         (map_over_uint16_byte_table): Likewise.
1357         (map_over_byte_table): Likewise.
1358         (get_byte_table): Move prototype to chartab.h.
1359         (put_byte_table): Likewise.
1360         (put_char_id_table_0): Moved to chartab.h.
1361         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1362         (char_table_entry_equal): Likewise.
1363         (char_table_entry_hash): Likewise.
1364         (char_table_entry_description): Likewise.
1365         (char_table_entry): Likewise.
1366         (make_char_table_entry): Likewise.
1367         (copy_char_table_entry): Likewise.
1368         (get_non_ascii_char_table_value): Likewise.
1369         (map_over_charset_ascii): Likewise.
1370         (map_over_charset_control_1): Likewise.
1371         (map_over_charset_row): Likewise.
1372         (map_over_other_charset): Likewise.
1373         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1374         (print_char_table): Likewise.
1375         (char_table_equal): Likewise.
1376         (char_table_hash): Likewise.
1377         (char_table_description): Likewise.
1378         (fill_char_table): Likewise.
1379         (Fcopy_char_table): Likewise.
1380         (get_char_table): Likewise.
1381         (Fget_range_char_table): Likewise.
1382         (put_char_table): Likewise.
1383         (map_char_table): Likewise.
1384         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1385         UTF-2000.
1386
1387 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1390         `Vauto_fill_chars' in XEmacs UTF-2000.
1391
1392         * chartab.h (get_byte_table): New prototype [moved from
1393         chartab.c].
1394         (put_byte_table): Likewise [moved from chartab.c].
1395         (put_char_id_table_0): New inline function [moved from chartab.c].
1396         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1397         (Lisp_Char_Table_Entry): Likewise.
1398         (char_table_entry): Likewise.
1399         (XCHAR_TABLE_ENTRY): Likewise.
1400         (XSETCHAR_TABLE_ENTRY): Likewise.
1401         (CHAR_TABLE_ENTRYP): Likewise.
1402         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1403         (NUM_ASCII_CHARS): Likewise.
1404         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1405         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1406
1407 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * chartab.c (get_char_id_table): Change interface.
1410         (put_char_id_table_0): New function.
1411         (put_char_id_table): Change interface; new implementation.
1412         (Fget_composite_char): Modify for interface change of
1413         `get_char_id_table'.
1414         (Fchar_variants): Likewise.
1415         (add_char_attribute_alist_mapper): Likewise.
1416         (Fchar_attribute_alist): Likewise.
1417         (Fget_char_attribute): Likewise.
1418         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1419         as same as character as the first argument like `put-char-table';
1420         modify for interface change of `put_char_id_table'.
1421         (Fremove_char_attribute): Modify for interface change of
1422         `put_char_id_table'.
1423
1424 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425
1426         * text-coding.c: Sync up with XEmacs 21.2.41.
1427         (COMPOSE_ADD_CHAR): Modify for interface change of
1428         `get_char_id_table'.
1429
1430         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1431         change of `put_char_id_table'.
1432         (remove_char_ccs): Likewise.
1433
1434         * chartab.h (put_char_id_table): Change interface.
1435
1436         * char-ucs.h (get_char_id_table): Change interface.
1437         (charset_code_point): Modify for interface change of
1438         `get_char_id_table'.
1439         (encode_char_1): Likewise.
1440
1441 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1442
1443         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1444         argument `ccs'.
1445         (map_over_uint16_byte_table): Likewise.
1446         (map_over_byte_table): Likewise.
1447         (map_char_id_table): Add new argument `range' like
1448         `map_char_table'.
1449         (Fmap_char_attribute): Add new argument `range' like
1450         `Fmap_char_table'.
1451
1452 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * chartab.c (map_over_uint8_byte_table): Change interface of
1455         mapping function to use struct chartab_range instead of Emchar.
1456         (map_over_uint16_byte_table): Likewise.
1457         (map_over_byte_table): Likewise.
1458         (map_char_id_table): Likewise.
1459         (struct slow_map_char_id_table_arg): Deleted.
1460         (slow_map_char_id_table_fun): Deleted.
1461         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1462         function `slow_map_char_table_fun' instead of struct
1463         `slow_map_char_id_table_arg' and function
1464         `slow_map_char_id_table_fun'.
1465
1466 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1467
1468         * mule-charset.c: Move char-it-table related codes to chartab.c.
1469         (Vutf_2000_version): Moved to chartab.c.
1470         (Fdefine_char): Likewise.
1471         (Ffind_char): Likewise.
1472         (syms_of_mule_charset): Move types `uint8-byte-table',
1473         `uint16-byte-table', `byte-table' and `char-id-table' to
1474         chartab.c; move functions `char_attribute_list,
1475         `find_char_attribute_table, `char_attribute_alist,
1476         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1477         `map_char_attribute, `define_char, `find_char, `char_variants and
1478         `get_composite_char to chartab.c; move symbols `=>ucs',
1479         `->decomposition', `compat', `isolated', `initial', `medial',
1480         `final', `vertical', `noBreak', `fraction', `super', `sub',
1481         `circle', `square', `wide', `narrow', `small' and `font' to
1482         chartab.c.
1483         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1484         setting codes for `Vcharacter_composition_table' and
1485         `Vcharacter_variant_table' to chartab.c.
1486         (complex_vars_of_mule_charset): Move setting code for
1487         `Vchar_attribute_hash_table' to chartab.c.
1488
1489         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1490         (make_char_id_table): New prototype.
1491         (put_char_id_table): Likewise.
1492         (Fget_char_attribute): Likewise.
1493
1494         * chartab.c: Move char-id-table related code from mule-charset.c.
1495         (Vutf_2000_version): Moved from mule-charset.c.
1496
1497         * char-ucs.h (Qucs): New external variable.
1498         (put_char_ccs_code_point): New prototype.
1499         (remove_char_ccs): Likewise.
1500
1501 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1502
1503         * mule-charset.c (Vcharset_ucs_jis): New variable.
1504         (Qucs_jis): Likewise.
1505         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1506         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1507
1508         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1509
1510 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1511
1512         * mule-charset.c (map_over_uint8_byte_table): New function.
1513         (map_over_uint16_byte_table): Likewise.
1514         (map_over_byte_table): Likewise.
1515         (map_char_id_table): Likewise.
1516         (slow_map_char_id_table_fun): Likewise.
1517         (Fmap_char_attribute): Likewise.
1518         (syms_of_mule_charset): Add new function `map-char-attribute'.
1519
1520 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1523         (syms_of_mule_charset): Add new function `find-char'.
1524
1525 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1528         XEmacs UTF-2000.
1529         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1530         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1531         XEmacs UTF-2000.
1532         (complex_vars_of_mule_charset): Add new coded-charset
1533         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1534         `ideograph-gt-pj-*'.
1535
1536         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1537
1538 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (encode_builtin_char_1): Purge codes about
1541         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1542         {MIN|MAX}_CHAR_HEBREW.
1543         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1544         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1545
1546         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1547         (MAX_CHAR_GREEK): Purged.
1548         (MIN_CHAR_CYRILLIC): Purged.
1549         (MAX_CHAR_CYRILLIC): Purged.
1550         (MIN_CHAR_HEBREW): Commented out.
1551         (MAX_CHAR_HEBREW): Likewise.
1552
1553 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554
1555         * mule-charset.c (Qto_ucs): New variable.
1556         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1557         (Fdefine_char): Likewise.
1558         (syms_of_mule_charset): Add new symbol `=>ucs'.
1559
1560 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561
1562         * mule-charset.c (Fdecode_char): Fixed.
1563
1564 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1565
1566         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1567         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1568         "tcvn5712-1".
1569
1570 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * mule-charset.c (Vcharset_ucs_big5): New variable.
1573         (Qucs_big5): Likewise.
1574         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1575         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1576
1577         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1578
1579 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1580
1581         * mule-charset.c (decode_builtin_char): Check Big5 code range
1582         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1583
1584 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1587         (Qchinese_gb12345): Likewise.
1588         (Fdecode_builtin_char): Fixed.
1589         (syms_of_mule_charset): Add `chinese-gb12345'.
1590         (complex_vars_of_mule_charset): Add coded-charset
1591         `chinese-gb12345'.
1592
1593         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1594         (LEADING_BYTE_CHINESE_GB12345): New macro.
1595
1596 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1597
1598         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1599         and `latin-viscii-upper' for `latin-viscii'.
1600
1601 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602
1603         * mule-charset.c (Fdecode_builtin_char): Comment out
1604         regularization code for ISO-IR GR representation.
1605
1606 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1607
1608         * mule-charset.c (decode_builtin_char): New function; renamed from
1609         `make_builtin_char'; return -1 instead of signal.
1610         (Fdecode_builtin_char): Use `decode_builtin_char'.
1611
1612         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1613         `make_builtin_char'.
1614         (DECODE_CHAR): Use `decode_builtin_char' instead of
1615         `make_builtin_char'; use mapping table of `chinese-big5' for
1616         `chinese-big5-{1,2}'.
1617
1618 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * text-coding.c (char_encode_big5): New function.
1621         (char_finish_big5): Likewise.
1622         (reset_encoding_stream): Use `char_encode_big5' and
1623         `char_finish_big5' for CODESYS_BIG5.
1624         (mule_encode): Don't use `encode_coding_big5'.
1625         (encode_coding_big5): Deleted.
1626
1627 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1630         0x81- in XEmacs UTF-2000.
1631         (detect_coding_big5): Likewise.
1632
1633 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1636         generate character-id if the CCS property does not have
1637         corresponding predefined character.
1638         (make_builtin_char): Return -1 if corresponding predefined
1639         character is not found.
1640         (Fdecode_char): Return nil if corresponding character is not
1641         found.
1642         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1643         don't map to builtin ucs space.
1644
1645 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1646
1647         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1648         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1649
1650 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651
1652         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1653         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1654         (Qideograph_gt): Likewise.
1655         (Qideograph_gt_pj_{1..11}): Likewise.
1656         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1657         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1658         `ideograph-gt-pj-11'.
1659         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1660         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1661         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1662
1663         * char-ucs.h (LEADING_BYTE_GT): New macro.
1664         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1665         (MIN_CHAR_GT): Likewise.
1666         (MAX_CHAR_GT): Likewise.
1667
1668 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1671         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1672
1673         * doprnt.c (unsigned_int_converters): Add `c'.
1674         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1675
1676         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1677         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1678         `MIN_CHAR_MOJIKYO'.
1679         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1680         (MAX_CHAR_MOJIKYO_0): New macro.
1681         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1682
1683 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * mule-charset.c (Fdefine_char): Delete cemented out code.
1686         (encode_builtin_char_1): Modify for new allocation of builtin
1687         Mojikyo characters.
1688
1689         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1690
1691 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692
1693         * mule-charset.c (Vcharset_ucs_cns): New variable.
1694         (Qucs_cns): New variable.
1695         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1696         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1697
1698 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1699
1700         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1701
1702 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1703
1704         * search.c (search_buffer): Make `charset_base_code' as
1705         character-id >> 6 to eliminate the corresponding last byte in
1706         UTF-8 representation [I'm not sure it is right thing].
1707         (boyer_moore): Likewise.
1708
1709 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1710
1711         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1712         representation in MULE.
1713
1714 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * text-coding.c (Fmake_coding_system): Use
1717         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1718         `EXTERNAL_PROPERTY_LIST_LOOP'.
1719
1720 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1721
1722         * text-coding.c (decode_output_utf8_partial_char): New function.
1723         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1724
1725 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1726
1727         * text-coding.c (decode_coding_utf8): Output original byte
1728         sequence if it is broken; change order of conditions.
1729
1730         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1731         of conditions.
1732
1733         * mb-multibyte.h (BYTE_ASCII_P):
1734         Use bit ops for char-signedness safety.
1735         (BYTE_C0_P): Use bit ops for char-signedness safety.
1736         (BYTE_C1_P): Use bit ops for char-signedness safety.
1737
1738         * character.h: (XCHAR_OR_CHAR_INT):
1739         Always use inline function.
1740         Remove redundant type checking assert() - XINT will abort quite
1741         nicely.
1742
1743 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1744
1745         * text-coding.c: (Fencode_shift_jis_char):
1746         (Fencode_big5_char):
1747         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1748         Replace 0 with '\0' when working with bytes.
1749         Replace initial "(" with "\(" in docstrings.
1750
1751         (Fmake_coding_system):
1752         When type is ccl and value is vector, register it with a proper
1753         symbol.  And checks whether the given ccl program is valid.
1754         (mule_decode): When calling ccl_driver, if src indicates
1755         NULL pointer, set an empty string instead.
1756         (mule_encode): Likewise.
1757
1758         (detect_eol_type):
1759         (detect_coding_sjis):
1760         (decode_coding_sjis):
1761         (detect_coding_big5):
1762         (decode_coding_big5):
1763         (detect_coding_ucs4):
1764         (decode_coding_ucs4):
1765         (detect_coding_utf8):
1766         (decode_coding_utf8):
1767         (detect_coding_iso2022):
1768         (decode_coding_iso2022):
1769         (decode_coding_no_conversion):
1770         (mule_decode):
1771         Make all detecting and decoding functions take an Extbyte * arg.
1772         (text_encode_generic):
1773         (encode_coding_big5):
1774         (encode_coding_no_conversion):
1775         (mule_encode):
1776         Make all encoding functions take a Bufbyte * arg.
1777         Use size_t instead of unsigned int for memory sizes.
1778         Only cast to unsigned char whenever dereferencing Extbyte *.
1779
1780         (struct lrecord_description fcd_description_1): Use countof.
1781         (complex_vars_of_file_coding):
1782         Use countof instead of sizeof.
1783         Use CHECK_NATNUM instead of CHECK_INT.
1784
1785 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1786
1787         * mule-charset.c (Fget_char_attribute): Add new optional argument
1788         `default-value'.
1789         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1790         (remove_char_ccs): Likewise.
1791
1792 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793
1794         * text-coding.c (char_encode_shift_jis): New implementation in
1795         UTF-2000.
1796         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1797         ...)'.
1798
1799         * mule-charset.c (Vcharset_chinese_big5): New variable in
1800         UTF-2000.
1801         (Qchinese_big5): New variable in UTF-2000.
1802         (BIG5_SAME_ROW): New macro in UTF-2000.
1803         (make_builtin_char): Use builtin characters of
1804         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1805         characters of `Vcharset_chinese_big5'.
1806         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1807         (complex_vars_of_mule_charset): Add new coded-charset
1808         `chinese-big5' in UTF-2000.
1809
1810         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1811         (Vcharset_chinese_big5): New external variable declaration.
1812         (Vcharset_japanese_jisx0208_1990): Likewise.
1813
1814 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1817         function.
1818         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1819
1820 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1821
1822         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1823         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1824         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1825         `mojikyo-pj-*'.
1826
1827 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1830
1831 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1834         to 0.17.
1835
1836 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1837
1838         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1839         for `CHARSET_BY_ATTRIBUTES'.
1840         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1841         `CHARSET_BY_ATTRIBUTES'.
1842
1843         * text-coding.c (struct decoding_stream): Rename member `CH' to
1844         `CPOS'.
1845         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1846         (decode_coding_sjis): Likewise.
1847         (decode_coding_big5): Likewise.
1848         (decode_coding_ucs4): Likewise.
1849         (decode_coding_utf8): Likewise.
1850         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1851         `CHARSET_BY_ATTRIBUTES'.
1852         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1853         `str->counter'; decode 3, 4 bytes sets.
1854         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1855         sets.
1856         (decode_coding_no_conversion): Use `str->cpos' instead of
1857         `str->ch'.
1858
1859         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1860         (Qmojikyo_2022_1): New variable.
1861         (make_charset): Don't use `CHARSET_TYPE_*'.
1862         (range_charset_code_point): Support coded-charset
1863         `mojikyo-2022-1'.
1864         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1865         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1866         `CHARSET_BY_ATTRIBUTES'.
1867         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1868         `CHARSET_BY_ATTRIBUTES'.
1869         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1870         (complex_vars_of_mule_charset): Add new coded-charset
1871         `mojikyo-2022-1'.
1872
1873         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1874         interface; changed to inline function.
1875
1876         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1877         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1878         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1879         (CHARSET_TYPE_94): Deleted.
1880         (CHARSET_TYPE_94X94): Deleted.
1881         (CHARSET_TYPE_96): Deleted.
1882         (CHARSET_TYPE_96X96): Deleted.
1883         (CHARSET_TYPE_128): Deleted.
1884         (CHARSET_TYPE_128X128): Deleted.
1885         (CHARSET_TYPE_256): Deleted.
1886         (CHARSET_TYPE_256X256): Deleted.
1887         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1888         to inline function.
1889         (DECODE_MOJIKYO_2022): New inline function.
1890         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1891         `Vcharset_mojikyo_2022_1'.
1892
1893 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1894
1895         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1896         instead of `EQ'.
1897         (put_byte_table): Likewise.
1898         (char_id_table_equal): Use `get_byte_table' [new implementation].
1899
1900 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * mule-charset.c: Include <limits.h> in UTF-2000.
1903         (BT_UINT8_MIN): New macro in UTF-2000.
1904         (BT_UINT8_MAX): New macro in UTF-2000.
1905         (BT_UINT8_t): New macro in UTF-2000.
1906         (BT_UINT8_nil): New macro in UTF-2000.
1907         (BT_UINT8_unbound): New macro in UTF-2000.
1908         (INT_UINT8_P): New inline function in UTF-2000.
1909         (UINT8_VALUE_P): New inline function in UTF-2000.
1910         (UINT8_ENCODE): New inline function in UTF-2000.
1911         (UINT8_DECODE): New inline function in UTF-2000.
1912         (mark_uint8_byte_table): New function in UTF-2000.
1913         (print_uint8_byte_table): New function in UTF-2000.
1914         (uint8_byte_table_equal): New function in UTF-2000.
1915         (uint8_byte_table_hash): New function in UTF-2000.
1916         (make_uint8_byte_table): New function in UTF-2000.
1917         (uint8_byte_table_same_value_p): New function in UTF-2000.
1918         (BT_UINT16_MIN): New macro in UTF-2000.
1919         (BT_UINT16_MAX): New macro in UTF-2000.
1920         (BT_UINT16_t): New macro in UTF-2000.
1921         (BT_UINT16_nil): New macro in UTF-2000.
1922         (BT_UINT16_unbound): New macro in UTF-2000.
1923         (INT_UINT16_P): New inline function in UTF-2000.
1924         (UINT16_VALUE_P): New inline function in UTF-2000.
1925         (UINT16_ENCODE): New inline function in UTF-2000.
1926         (UINT16_DECODE): New inline function in UTF-2000.
1927         (UINT8_TO_UINT16): New inline function in UTF-2000.
1928         (mark_uint16_byte_table): New function in UTF-2000.
1929         (print_uint16_byte_table): New function in UTF-2000.
1930         (uint16_byte_table_equal): New function in UTF-2000.
1931         (uint16_byte_table_hash): New function in UTF-2000.
1932         (make_uint16_byte_table): New function in UTF-2000.
1933         (uint16_byte_table_same_value_p): New function in UTF-2000.
1934         (print_byte_table): New function in UTF-2000.
1935         (byte-table): Use `print_byte_table' as printer.
1936         (make_byte_table): Delete second argument `older'.
1937         (byte_table_same_value_p): New function in UTF-2000.
1938         (copy_byte_table): Deleted.
1939         (get_byte_table): New function in UTF-2000.
1940         (put_byte_table): New function in UTF-2000.
1941         (print_char_id_table): New function in UTF-2000.
1942         (char-id-table): Use `print_char_id_table' as printer.
1943         (make_char_id_table): Delete second argument `older'.
1944         (get_char_id_table): Use `get_byte_table [new implementation].
1945         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1946         implementation].
1947         (Ffind_char_attribute_table): New function in UTF-2000.
1948         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1949         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1950         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1951         (syms_of_mule_charset): Add new function
1952         `find-char-attribute-table' in UTF-2000.
1953
1954         * lrecord.h (enum lrecord_type): Add
1955         `lrecord_type_uint16_byte_table' and
1956         `lrecord_type_uint8_byte_table'.
1957
1958         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1959         (Lisp_Uint8_Byte_Table): New type.
1960         (XUINT8_BYTE_TABLE): New macro.
1961         (XSETUINT8_BYTE_TABLE): New macro.
1962         (UINT8_BYTE_TABLE_P): New macro.
1963         (GC_UINT8_BYTE_TABLE_P): New macro.
1964         (struct Lisp_Uint16_Byte_Table): New structure.
1965         (Lisp_Uint16_Byte_Table): New type.
1966         (XUINT16_BYTE_TABLE): New macro.
1967         (XSETUINT16_BYTE_TABLE): New macro.
1968         (UINT16_BYTE_TABLE_P): New macro.
1969         (GC_UINT16_BYTE_TABLE_P): New macro.
1970
1971 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1974         (Vcharacter_ideographic_strokes_table): Deleted.
1975         (Vcharacter_total_strokes_table): Deleted.
1976         (Vcharacter_morohashi_daikanwa_table): Deleted.
1977         (Vcharacter_decomposition_table): Deleted.
1978         (Qname): Deleted because it is duplicated.
1979         (Qideographic_radical): Deleted.
1980         (Qideographic_strokes): Deleted.
1981         (Qtotal_strokes): Deleted.
1982         (Qmorohashi_daikanwa): Deleted.
1983         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1984         `ideographic-radical', `ideographic-strokes', `total-strokes',
1985         `morohashi-daikanwa' and `->decomposition'.
1986         (Fget_char_attribute): Likewise.
1987         (Fput_char_attribute): Likewise; use `make-vector' instead of
1988         `make_older_vector' for `->decomposition' value.
1989         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1990         `ideograph-daikanwa'.
1991         (syms_of_mule_charset): Delete builtin symbols `name',
1992         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1993         `morohashi-daikanwa'.
1994         (vars_of_mule_charset): Don't setup
1995         `Vcharacter_ideographic_radical_table',
1996         `Vcharacter_ideographic_strokes_table',
1997         `Vcharacter_total_strokes_table',
1998         `Vcharacter_morohashi_daikanwa_table' and
1999         `Vcharacter_decomposition_table'.
2000
2001 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002
2003         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2004         `make_older_vector', `make_vector_newer_1' and
2005         `make_vector_newer'.
2006
2007         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2008         `make_older_vector' and `make_vector_newer'.
2009
2010         * config.h.in (HAVE_GGC): New macro.
2011
2012 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2013
2014         * mule-charset.c (struct char_attribute_list_closure): New
2015         structure in UTF-2000.
2016         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2017         (Fchar_attribute_list): Likewise.
2018         (Fset_charset_mapping_table): Use `make_vector_newer'.
2019         (Fdecode_builtin_char): New function in UTF-2000.
2020         (syms_of_mule_charset): Add new function `char-attribute-list' and
2021         `decode-builtin-char' in UTF-2000.
2022
2023         * lisp.h (make_vector_newer): New prototype.
2024
2025         * alloc.c (make_vector_newer_1): New function.
2026         (make_vector_newer): New function.
2027
2028 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2029
2030         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2031         50100)'.
2032
2033 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2034
2035         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2036         (Vcharacter_attribute_table): Deleted.
2037         (Vcharacter_name_table): Deleted.
2038         (put_char_attribute): Deleted.
2039         (remove_char_attribute): Deleted.
2040         (struct char_attribute_alist_closure): New structure.
2041         (add_char_attribute_alist_mapper): New function.
2042         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2043         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2044         (Fget_char_attribute): Likewise.
2045         (Fput_char_attribute): Likewise.
2046         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2047         of `remove_char_attribute'.
2048         (Fdefine_char): Return character.
2049         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2050         and `Vcharacter_name_table'.
2051         (complex_vars_of_mule_charset): Likewise
2052         `Vchar_attribute_hash_table'.
2053
2054 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2055
2056         * character.h (CHARC_CHARSET): New macro.
2057         (CHARC_CHARSET_ID): New macro.
2058         (CHARC_CODE_POINT): New macro.
2059         (CHARC_COLUMNS): New macro.
2060         (CHARC_TO_CHAR): New inline function.
2061         (CHARC_EQ): New inline function.
2062         (CHARC_ASCII_EQ): New inline function.
2063         (CHARC_IS_SPACE): New inline function.
2064         (ASCII_TO_CHARC): New inline function.
2065
2066         * char-ucs.h (encode_char_2): Deleted.
2067         (ENCODE_CHAR): Use `encode_char_1' again.
2068         (breakup_char_1): Likewise.
2069         (CHAR_TO_CHARC): New inline function.
2070
2071         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2072
2073 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074
2075         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2076         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2077         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2078         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2079         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2080         `CHARC_IS_SPACE'.
2081         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2082
2083         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2084         `CHARC_CODE_POINT'.
2085         (x_output_display_block): Use `CHARC_CHARSET' and
2086         `CHARC_ASCII_EQ'.
2087
2088         * redisplay-tty.c (tty_output_display_block): Use
2089         `CHARC_ASCII_EQ'.
2090         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2091
2092         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2093
2094         * insdel.c (find_charsets_in_charc_string): Use
2095         `CHARC_CHARSET_ID'.
2096         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2097         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2098         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2099         (convert_charc_string_into_malloced_string): Likewise.
2100
2101 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2102
2103         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2104         instead of <Emchar_dynarr *> for buf; use
2105         `convert_bufbyte_string_into_charc_dynarr' instead of
2106         `convert_bufbyte_string_into_emchar_dynarr'; use
2107         `find_charsets_in_charc_string' instead of
2108         `find_charsets_in_emchar_string'.
2109
2110         * redisplay.h:
2111         - Include "character.h".
2112         (struct rune): New member `cglyph'; delete member `chr'.
2113
2114         * redisplay.c (redisplay_text_width_charc_string): New function;
2115         delete `redisplay_text_width_emchar_string'.
2116         (rtw_charc_dynarr): New variable; renamed from
2117         `rtw_emchar_dynarr'.
2118         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2119         `rtw_emchar_dynarr'; use
2120         `convert_bufbyte_string_into_charc_dynarr' instead of
2121         `convert_bufbyte_string_into_emchar_dynarr'; use
2122         `redisplay_text_width_charc_string' instead of
2123         `redisplay_text_width_emchar_string'.
2124         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2125         instead of `rtw_emchar_dynarr'; use
2126         `convert_bufbyte_string_into_charc_dynarr' instead of
2127         `convert_bufbyte_string_into_emchar_dynarr'.
2128         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2129         `redisplay_text_width_charc_string' instead of
2130         `redisplay_text_width_emchar_string'.
2131         (create_text_block): Modify for <struct rune> change.
2132         (generate_formatted_string_db): Likewise.
2133         (create_string_text_block): Likewise.
2134         (pixel_to_glyph_translation): Likewise.
2135
2136         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2137         instead of <const Emchar *>.
2138         (x_text_width): Likewise.
2139         (x_output_display_block): Use <Charc_dynarr *> instead
2140         <Emchar_dynarr *>; modify for <structure rune> change.
2141         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2142         *>.
2143
2144         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2145         <const Emchar *>; use `charc_string_displayed_columns' instead of
2146         `emchar_string_displayed_columns'.
2147         (tty_output_display_block): Use <Charc_dynarr *> instead of
2148         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2149         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2150         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2151         `tty_output_emchar_dynarr_dynarr'.
2152         (tty_output_charc_dynarr): New function; delete
2153         `tty_output_charc_dynarr'.
2154
2155         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2156         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2157         <Emchar_dynarr *> for buf; use
2158         `convert_bufbyte_string_into_charc_dynarr' instead of
2159         `convert_bufbyte_string_into_emchar_dynarr'.
2160
2161         * frame.c (title_string_charc_dynarr): New variable; renamed from
2162         `title_string_emchar_dynarr'.
2163         (generate_title_string): Use `title_string_charc_dynarr' instead
2164         of `title_string_emchar_dynarr'; use
2165         `convert_charc_string_into_malloced_string' instead of
2166         `convert_emchar_string_into_malloced_string'.
2167         (init_frame): Use `title_string_charc_dynarr' instead of
2168         `title_string_emchar_dynarr'.
2169
2170         * console.h:
2171         - Include "character.h".
2172         (struct console_methods): Use <const Charc *> instead of <const
2173         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2174         <Emchar_dynarr *> in output_string_method.
2175
2176         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2177         <Emchar_dynarr *>.
2178
2179         * console-stream.c (stream_text_width): Use <const Charc *>
2180         instead of <const Emchar *>.
2181
2182         * character.h (Charc_dynarr): New type.
2183
2184         * char-ucs.h (structure Charc): New structure; define new type
2185         `Charc'.
2186
2187         * char-lb.h (DECODE_CHAR): New inline function.
2188         (encode_char_1): New inline function.
2189         (ENCODE_CHAR): New macro.
2190         (structure Charc): New structure; define new type `Charc'.
2191
2192         * char-1byte.h (Vcharset_control_1): New macro.
2193         (Vcharset_latin_iso8859_1): New macro.
2194         (DECODE_CHAR): New inline function.
2195         (encode_char_1): New inline function.
2196         (ENCODE_CHAR): New macro.
2197         (structure Charc): New structure; define new type `Charc'.
2198
2199         * insdel.c (find_charsets_in_charc_string): New function; delete
2200         `find_charsets_in_emchar_string'.
2201         (charc_string_displayed_columns): New function; delete
2202         `emchar_string_displayed_columns'.
2203         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2204         `convert_bufbyte_string_into_emchar_dynarr'.
2205         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2206         `convert_charc_string_into_bufbyte_dynarr'.
2207         (convert_charc_string_into_malloced_string): New function; delete
2208         `convert_charc_string_into_malloced_string'.
2209
2210         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2211         `find_charsets_in_emchar_string'.
2212         (charc_string_displayed_columns): New prototype; delete
2213         `emchar_string_displayed_columns'.
2214         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2215         `convert_charc_string_into_bufbyte_dynarr'.
2216         (convert_charc_string_into_malloced_string): New prototype; delete
2217         `convert_charc_string_into_malloced_string'.
2218
2219 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2222
2223 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224
2225         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2226
2227         * char-ucs.h: Use <short> for <Charset_ID>.
2228
2229         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2230         <Charset_ID>.
2231
2232 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2233
2234         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2235         to 0.16.
2236
2237 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2240         variable.
2241         (Qmorohashi_daikanwa): New variable.
2242         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2243         for `morohashi-daikanwa' attribute.
2244         (Fget_char_attribute): Likewise.
2245         (Fput_char_attribute): Likewise.
2246         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2247         has the same value of `ideograph-daikanwa'.
2248         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2249         (vars_of_mule_charset): Setup
2250         `Vcharacter_morohashi_daikanwa_table'.
2251
2252 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2253
2254         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2255         attributes.
2256         (add_charset_to_list_mapper): Add `key' instead of
2257         `XCHARSET_NAME (value)' to return aliases.
2258
2259 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2262         variable.
2263         (Vcharacter_ideographic_strokes_table): New variable.
2264         (Qideographic_radical): New variable.
2265         (Qideographic_strokes): New variable.
2266         (Fchar_attribute_alist): Use
2267         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2268         attribute; use `Vcharacter_ideographic_strokes_table' for
2269         `ideographic-strokes' attribute.
2270         (Fget_char_attribute): Likewise.
2271         (Fput_char_attribute): Likewise.
2272         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2273         `ideographic-strokes'.
2274         (vars_of_mule_charset): Setup
2275         `Vcharacter_ideographic_radical_table' and
2276         `Vcharacter_ideographic_strokes_table'.
2277
2278 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2279
2280         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2281         (Qtotal_strokes): New variable.
2282         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2283         `total-strokes' attribute.
2284         (Fget_char_attribute): Likewise.
2285         (Fput_char_attribute): Likewise.
2286         (syms_of_mule_charset): Add new symbol `total-strokes'.
2287         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2288
2289 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2290
2291         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2292         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2293         are found.
2294         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2295         `->decomposition' attribute.
2296         (Fput_char_attribute): Likewise.
2297         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2298
2299 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * mule-charset.c (decoding_table_check_elements): New function.
2302         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2303
2304 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2305
2306         * mule-charset.c (Fset_charset_mapping_table): Use
2307         `put_char_ccs_code_point'.
2308
2309 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310
2311         * mule-charset.c (decoding_table_put_char): New inline function.
2312         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2313
2314 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2315
2316         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2317         (XCHARSET_BYTE_SIZE): New macro.
2318         (decoding_table_remove_char): New inline function.
2319         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2320         `decoding_table_remove_char'.
2321         (remove_char_ccs): Use `decoding_table_remove_char'.
2322         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2323
2324 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * mule-charset.c (Vcharacter_name_table): New variable.
2327         (Qname): New variable.
2328         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2329         attribute.
2330         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2331         `Vcharacter_name_table' for `name' attribute.
2332         (Fremove_char_attribute): Use function `remove_char_ccs'.
2333         (put_char_ccs_code_point): New function.
2334         (remove_char_ccs): New function.
2335         (syms_of_mule_charset): Add new symbol `name'.
2336         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2337
2338 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * mule-charset.c (make_byte_table): Add new argument `older'.
2341         (make_char_id_table): Likewise.
2342         (copy_char_id_table): Comment out because it is not used.
2343         (put_char_id_table): Modify for `make_byte_table'.
2344         (Fput_char_attribute): Make encoding_table as older object;
2345         inherit older bit of `Vcharacter_composition_table'.
2346         (mark_charset): Don't mark `cs->encoding_table'.
2347         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2348         normal object; make `Vcharacter_composition_table' as an older
2349         object; delete staticpro for `Vcharacter_composition_table'; make
2350         `Vcharacter_variant_table' as a normal object.
2351
2352         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2353         (mark_object): Don't check older object in UTF-2000.
2354
2355         * lrecord.h (struct lrecord_header): Add new member `older' in
2356         UTF-2000.
2357         (set_lheader_implementation): Setup `SLI_header->older' in
2358         UTF-2000.
2359         (set_lheader_older_implementation): New macro in UTF-2000.
2360         (OLDER_RECORD_P): New macro in UTF-2000.
2361         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2362         (alloc_older_lcrecord): New prototype in UTF-2000.
2363         (alloc_older_lcrecord_type): New macro in UTF-2000.
2364
2365 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2366
2367         * mule-charset.c (byte_table_description): Use
2368         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2369         (char_id_table_description): Delete bogus `, 1'.
2370         (Fget_char_attribute): Refer encoding_table of each coded-charset
2371         to get value of coded-charset attribute of a character.
2372         (Fput_char_attribute): Use `make_older_vector' instead of
2373         `make_vector'; use encoding_table of each coded-charset to store
2374         value of coded-charset attribute of a character.
2375         (Fremove_char_attribute): Use encoding_table of each coded-charset
2376         to store value of coded-charset attribute of a character.
2377         (mark_charset): Mark `cs->encoding_table'; don't mark
2378         `cs->decoding_table'.
2379         (charset_description): Add description of new member
2380         `encoding_table'.
2381         (make_charset): Initialize `encoding_table'.
2382
2383         * char-ucs.h (struct Lisp_Charset): Add new member
2384         `encoding_table'.
2385         (CHARSET_ENCODING_TABLE): New macro.
2386         (XCHARSET_ENCODING_TABLE): New macro.
2387         (charset_code_point): New implementation.
2388         (encode_char_1): Likewise.
2389
2390         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2391         (disksave_object_finalization_1): Call finalizers of
2392         `all_older_lcrecords' in UTF-2000.
2393         (make_older_vector): New function in UTF-2000.
2394         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2395         UTF-2000.
2396
2397         * lisp.h (make_older_vector): New prototype in UTF-2000.
2398
2399 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2400
2401         * lrecord.h (enum lrecord_type): Rename
2402         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2403
2404         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2405         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2406         `get_char_code_table'.
2407
2408         * mule-charset.c (mark_char_id_table): Renamed from
2409         `mark_char_code_table'.
2410         (char_id_table_equal): Renamed from `char_code_table_equal'.
2411         (char_id_table_hash): Renamed from `char_code_table_hash'.
2412         (make_char_id_table): Renamed from `make_char_code_table'.
2413         (copy_char_id_table): Renamed from `copy_char_code_table'.
2414         (get_char_id_table): Renamed from `get_char_code_table'.
2415         (put_char_id_table): Renamed from `put_char_code_table'.
2416         (to_char_id): Renamed from `to_char_code'.
2417
2418         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2419         `Lisp_Char_Code_Table'.
2420         (char_id_table): Renamed from `char_code_table'.
2421         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2422         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2423         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2424         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2425         (get_char_id_table): Renamed from `get_char_code_table'.
2426
2427 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2428
2429         * lrecord.h (enum lrecord_type): Rename
2430         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2431
2432         * mule-charset.c (mark_byte_table): Renamed from
2433         `mark_char_byte_table'.
2434         (byte_table_equal): Renamed from `char_byte_table_equal'.
2435         (byte_table_hash): Renamed from `byte_table_hash'.
2436         (make_byte_table): Renamed from `make_byte_table'.
2437         (copy_byte_table): Renamed from `copy_char_byte_table'.
2438
2439         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2440         `Lisp_Char_Byte_Table'.
2441         (byte_table): Renamed from `char_byte_table'.
2442         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2443         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2444         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2445         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2446
2447 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2448
2449         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2450         (dfc_convert_to_internal_format): Likewise.
2451         
2452         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2453         * text-coding.c (Fcoding_system_alias_p): New function.
2454         * text-coding.c (Fcoding_system_aliasee): New function.
2455         * text-coding.c (append_suffix_to_symbol): New function.
2456         * text-coding.c (dangling_coding_system_alias_p): New function.
2457         * text-coding.c (Ffind_coding_system):
2458         * text-coding.c (Fcopy_coding_system):
2459         * text-coding.c (encode_coding_no_conversion):
2460         * text-coding.c (syms_of_file_coding):
2461         * text-coding.c (vars_of_file_coding):
2462         Rewrite coding system alias code.
2463         Allow nested aliases, like symbolic links.
2464         Allow redefinition of coding system aliases.
2465         Prevent existence of dangling coding system aliases.
2466         Eliminate convert_to_external_format.
2467         Eliminate convert_to_internal_format.
2468         
2469         * text-coding.c: Change enum eol_type to eol_type_t.
2470
2471 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2472
2473         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2474         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2475
2476         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2477         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2478
2479 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2480
2481         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2482         `ideograph-daikanwa'.
2483
2484         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2485         (Vcharset_ucs_bmp): Likewise.
2486         (Vcharset_mojikyo): Add new extern variable definition.
2487         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2488         (Vcharset_latin_iso8859_3): Likewise.
2489         (Vcharset_latin_iso8859_4): Likewise.
2490         (Vcharset_latin_iso8859_9): Likewise.
2491         (Vcharset_latin_viscii_lower): Likewise.
2492         (Vcharset_latin_viscii_upper): Likewise.
2493         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2494         `mojikyo' code-point is used to decode.
2495         (encode_char_2): New function [to convert `mojikyo' code-point to
2496         Mojikyo font encoding].
2497         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2498         (breakup_char_1): Likewise.
2499         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2500
2501 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2502
2503         * text-coding.c (Fmake_coding_system): Add document about
2504         `disable-composition' property.
2505
2506 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2507
2508         * text-coding.c (Qdisable_composition): New variable; delete
2509         `Qcomposite'.
2510         (Fmake_coding_system): Add new property `disable-composite';
2511         delete property `composite'.
2512         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2513         instead of `!CODING_SYSTEM_COMPOSITE'.
2514         (syms_of_file_coding): Add new symbol `disable-composition';
2515         delete symbol `composite'.
2516
2517         * file-coding.h (struct Lisp_Coding_System): Add
2518         `disable_composition'; delete `enable_composition'.
2519         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2520         `CODING_SYSTEM_COMPOSITE'.
2521         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2522         `XCODING_SYSTEM_COMPOSITE'.
2523
2524 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2527         to 0.15.
2528
2529 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2530
2531         * text-coding.c (Qcomposite): New variable.
2532         (Fmake_coding_system): Add new property `composite'.
2533         (struct decoding_stream): Add `combined_char_count',
2534         `combined_chars' and `combining_table' in UTF-2000.
2535         (COMPOSE_FLUSH_CHARS): New macro.
2536         (COMPOSE_ADD_CHAR): New macro.
2537         (reset_decoding_stream): Reset `str->combined_char_count' and
2538         `str->combining_table' in UTF-2000.
2539         (decode_coding_iso2022): Modify for character-decomposition.
2540         (syms_of_file_coding): Add new symbol `composite'.
2541
2542 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2543
2544         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2545         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2546         of `Vcharacter_composition_table' if `->decomposition' property
2547         has only 1 element.
2548         (Qlatin_tcvn5712): New variable.
2549         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2550         (complex_vars_of_mule_charset): Add new coded-charset
2551         `latin-tcvn5712'.
2552
2553         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2554
2555 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * file-coding.h (struct Lisp_Coding_System): Add
2558         `enable_composition'.
2559         (CODING_SYSTEM_COMPOSITE): New macro.
2560         (XCODING_SYSTEM_COMPOSITE): New macro.
2561
2562 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2563
2564         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2565
2566 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2567
2568         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2569         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2570
2571 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2572
2573         * mule-charset.c (Vcharset_mojikyo): New variable.
2574         (Fdefine_char): Don't use coded-charset which does not have
2575         non-builtin character range to allocate character-id.
2576         (Qmojikyo): New variable.
2577         (syms_of_mule_charset): Add new symbol `mojikyo'.
2578         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2579
2580         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2581         (LEADING_BYTE_MOJIKYO): New macro.
2582         (MIN_CHAR_MOJIKYO): New macro.
2583         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2584         (MAX_CHAR_MOJIKYO): New macro.
2585
2586 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2587
2588         * mule-charset.c (remove_char_attribute): Fixed.
2589
2590 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2591
2592         * mule-charset.c (remove_char_attribute): New function.
2593         (Fremove_char_attribute): New function.
2594         (encode_builtin_char_1): Comment out builtin-support for
2595         greek-iso8859-7 and cyrillic-iso8859-5.
2596         (Fdecode_char): Check `code' is an integer.
2597         (syms_of_mule_charset): Add `remove-char-attribute'.
2598         (MIN_CHAR_GREEK): Deleted.
2599         (MAX_CHAR_GREEK): Likewise.
2600         (MIN_CHAR_CYRILLIC): Likewise.
2601         (MAX_CHAR_CYRILLIC): Likewise.
2602         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2603         MAX_CHAR_GREEK for `greek-iso8859-7'.
2604
2605         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2606         (MAX_CHAR_GREEK): Likewise.
2607         (MIN_CHAR_CYRILLIC): Likewise.
2608         (MAX_CHAR_CYRILLIC): Likewise.
2609
2610 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2611
2612         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2613         format is used without `ucs' property.
2614         (Fdecode_char): Fix problem with GR representation.
2615         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2616         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2617
2618 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2619
2620         * mule-charset.c (make_builtin_char): New function.
2621         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2622         (Fset_charset_mapping_table): Modify for new representation of
2623         code-point.
2624         (Fdecode_char): New function.
2625         (syms_of_mule_charset): Add new builtin function `decode-char' in
2626         UTF-2000.
2627
2628         * char-ucs.h (make_builtin_char): New prototype.
2629         (DECODE_CHAR): New inline function.
2630         (MAKE_CHAR): Use `DECODE_CHAR'.
2631
2632 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2633
2634         * text-coding.c (parse_charset_conversion_specs): Use
2635         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2636         `XCHARSET_TYPE'.
2637         (iso2022_designate): Likewise.
2638
2639         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2640         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2641
2642         * mule-charset.c (Vcharset_ucs): New variable.
2643         (print_charset): Change design; use `CHARSET_CHARS' and
2644         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2645         (make_charset): Change signature to specify `chars' and
2646         `dimension' instead of `type'.
2647         (range_charset_code_point): Modify for 256^n-set.
2648         (encode_builtin_char_1): Encode as `ucs' in default.
2649         (Fmake_charset): Modify for `make_charset'.
2650         (Fmake_reverse_direction_charset): Likewise.
2651         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2652         UTF-2000.
2653         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2654         for `make_charset'.
2655
2656         * char-ucs.h (Vcharset_ucs): New variable.
2657         (LEADING_BYTE_UCS): New macro.
2658         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2659         and `chars' to `unsigned short' from `unsigned int'.
2660         (CHARSET_TYPE): Deleted.
2661         (XCHARSET_TYPE): Deleted.
2662
2663 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2664
2665         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2666
2667         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2668         (ENCODE_CHAR): New macro.
2669
2670 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2671
2672         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2673         to 0.14 (Kawachi-Katakami).
2674
2675 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2676
2677         * text-coding.c (char_encode_shift_jis): Modify for
2678         `charset_code_point'.
2679         (char_encode_iso2022): Likewise.
2680
2681         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2682         (integer) instead of list of <Lisp_Object>s (integers) as the
2683         format of code-point of a coded-charset.
2684         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2685         (encode_builtin_char_1): New function; delete
2686         `split_builtin_char'.
2687         (charset_code_point): Return <int> instead of <Lisp_Object>.
2688         (Fsplit_char): Don't use `SPLIT_CHAR'.
2689
2690         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2691         prototype for `split_builtin_char'.
2692         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2693         (charset_code_point): Likewise.
2694         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2695         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2696
2697 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2698
2699         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2700         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2701
2702 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2703
2704         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2705
2706         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2707         (MAX_CHAR_OBS_94x94): Deleted.
2708
2709 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2710
2711         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2712
2713         * char-ucs.h (MAX_CHAR_BMP): New macro.
2714
2715 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2716
2717         * text-coding.c: Sync with r21-2-24.
2718
2719 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2720
2721         * file-coding.c: Modify for UTF-2000.
2722
2723 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2724
2725         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2726         to 0.13 (Takaida).
2727
2728 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2729
2730         * mule-charset.c (split_builtin_char): Delete builtin support for
2731         `katakana-jisx0201'.
2732         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2733         BMP area in builtin representation.
2734
2735         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2736         `Vcharset_katakana_jisx0201'.
2737
2738 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2739
2740         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2741         (Qisolated): New variable.
2742         (Qinitial): New variable.
2743         (Qmedial): New variable.
2744         (Qfinal): New variable.
2745         (Qvertical): New variable.
2746         (Qsmall): New variable.
2747         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2748         `Qvertical' and `Qsmall'.
2749         (Qmojikyo_pj_[1 .. 21]): New variable.
2750         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2751         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2752         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2753         .. 21]'.
2754
2755 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2756
2757         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2758         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2759         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2760
2761 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2762
2763         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2764         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2765         BMP.
2766         (Qjapanese_jisx0208_1990): New variable.
2767         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2768         (complex_vars_of_mule_charset): Add new coded-charset
2769         `japanese-jisx0208-1990'.
2770
2771         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2772         (MIN_CHAR_JIS_X0208_1990): New macro.
2773         (MAX_CHAR_JIS_X0208_1990): New macro.
2774
2775 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2776
2777         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2778         coded-charset is not found.
2779
2780 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2781
2782         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2783         (Fdefine_char): Use `Fmake_char'.
2784
2785 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2786
2787         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2788         (Vcharset_hiragana_jisx0208): Deleted.
2789         (Vcharset_katakana_jisx0208): Deleted.
2790         (Qideograph_daikanwa): New variable.
2791         (Qhiragana_jisx0208): Deleted.
2792         (Qkatakana_jisx0208): Deleted.
2793         (split_builtin_char): Split `ideograph-daikanwa'.
2794         (Fsplit_char): New implementation for UTF-2000.
2795         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2796         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2797         (complex_vars_of_mule_charset): Add new coded-charset
2798         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2799         `katakana-jisx0208'.
2800
2801         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2802         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2803         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2804         (MIN_CHAR_DAIKANWA): New macro.
2805         (MAX_CHAR_DAIKANWA): New macro.
2806
2807 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2808
2809         * data.c (Fstring_to_number): Don't recognize floating point if
2810         base is not 10.
2811
2812 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2813
2814         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2815
2816 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2817
2818         * mule-charset.c (Qsquare): New variable.
2819         (to_char_code): Add `Qsquare'.
2820         (syms_of_mule_charset): Add new symbol `square'.
2821
2822 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2823
2824         * mule-charset.c (Qcircle): New variable.
2825         (to_char_code): Add `Qcircle'.
2826         (syms_of_mule_charset): Add new symbol `circle'.
2827
2828 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2829
2830         * mule-charset.c (Qfont): New variable.
2831         (to_char_code): Add `Qfont'.
2832         (syms_of_mule_charset): Add new symbol `font'.
2833
2834 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2835
2836         * mule-charset.c (Qsub): New variable.
2837         (to_char_code): Add `Qsub'.
2838         (syms_of_mule_charset): Add new symbol `sub'.
2839
2840 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2841
2842         * mule-charset.c (Fput_char_attribute): Convert each element of
2843         VALUE to GL position if ATTRIBUTE is a GR-set,
2844
2845 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2846
2847         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2848         coded-charset is a GR-set.
2849
2850 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2851
2852         * mule-charset.c (Fput_char_attribute): Check each element of
2853         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2854
2855 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2856
2857         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2858         UTF-2000.
2859         (Qethiopic_ucs): New variable in UTF-2000.
2860         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2861         (complex_vars_of_mule_charset): Add new coded-charset
2862         `ethiopic-ucs' in UTF-2000.
2863
2864         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2865         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2866         9)'.
2867         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2868         10)'.
2869         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2870
2871 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2872
2873         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2874         `ascii'.
2875
2876 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2877
2878         * mule-charset.c (Vcharacter_variant_table): New variable.
2879         (Q_ucs): New variable.
2880         (Fchar_variants): New function.
2881         (Fput_char_attribute): Register `->ucs' value to
2882         `Vcharacter_variant_table'.
2883         (syms_of_mule_charset): Add new function `char-variants' and new
2884         symbol `->ucs'.
2885         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2886
2887 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2888
2889         * mule-charset.c (get_char_code_table): Allow negative character
2890         code.
2891         (put_char_code_table): Likewise.
2892         (Vcharacter_composition_table): New variable.
2893         (Q_decomposition): New variable.
2894         (Qwide): New variable.
2895         (Qnarrow): New variable.
2896         (Qcompat): New variable.
2897         (QnoBreak): New variable.
2898         (Qsuper): New variable.
2899         (Qfraction): New variable.
2900         (to_char_code): New function.
2901         (Fget_composite_char): New function.
2902         (Fput_char_attribute): Register `->decomposition' value to
2903         `Vcharacter_composition_table'.
2904         (syms_of_mule_charset): Add new function `get-composite-char', new
2905         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2906         `super' and `fraction'.
2907         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2908
2909 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2910
2911         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2912         character; copy the return value.
2913
2914 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2915
2916         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2917
2918         * mule-charset.c (range_charset_code_point): Must use make_int.
2919         (split_builtin_char): New function.
2920
2921 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2922
2923         * mule-charset.c (char_byte_table): Change name from
2924         "char-code-table" to "char-byte-table".
2925         (mark_char_code_table): New function.
2926         (char_code_table_equal): New function.
2927         (char_code_table_hash): New function.
2928         (char_code_table_description): New constant.
2929         (char_code_table): New type.
2930         (make_char_code_table): New function.
2931         (copy_char_code_table): New function.
2932         (get_char_code_table): Modify for `char_code_table' type.
2933         (put_char_code_table): Likewise.
2934         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2935         (Kashiwara).
2936
2937         * char-ucs.h (char_code_table): New type.
2938         (XCHAR_CODE_TABLE): New macro.
2939         (XSETCHAR_CODE_TABLE): New macro.
2940         (CHAR_CODE_TABLE_P): New macro.
2941         (GC_CHAR_CODE_TABLE_P): New macro.
2942         (struct Lisp_Char_Code_Table): New structure.
2943
2944 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2945
2946         * mule-charset.c (Fmake_charset): Setup byte_offset for
2947         {94|96}^n-set.
2948
2949 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2950
2951         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2952         character.
2953
2954 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2955
2956         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2957         is found.
2958
2959 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2960
2961         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2962         charset, it is regarded as a charset.
2963         (put_char_attribute): New function in UTF-2000.
2964         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2965         charset, mapping-table of the charset is modified.
2966         (Fdefine_char): New function in UTF-2000.
2967         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2968         `Fput_char_attribute'.
2969         (syms_of_mule_charset): Add new function `define-char' and new
2970         symbol `ucs' in UTF-2000.
2971         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2972
2973 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2974
2975         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2976         non-UTF-2000 configuration.
2977
2978 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2979
2980         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2981         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2982
2983         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2984         deleted.
2985         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2986         (Fset_charset_mapping_table): Likewise.
2987
2988         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2989         (CHARSET_ENCODING_TABLE): Delete.
2990         (XCHARSET_ENCODING_TABLE): Delete.
2991         (charset_code_point): New interface.
2992
2993 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2994
2995         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2996         instead of `charset_get_byte1' and `charset_get_byte2'.
2997
2998         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2999         (charset_get_byte2): Deleted.
3000
3001 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3002
3003         * char-ucs.h (SPLIT_CHAR): New inline function.
3004         (breakup_char_1): Use `SPLIT_CHAR'.
3005
3006         * mule-charset.c (range_charset_code_point): New function.
3007         (charset_code_point): New function.
3008
3009         * char-ucs.h (range_charset_code_point): New interface.
3010         (breakup_char_1): Use `range_charset_code_point'.
3011
3012 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3013
3014         * mule-charset.c (Fmake_charset): Delete unused local variable
3015         `code_offset'.
3016
3017         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3018         (breakup_char_1): Find a charset and code-point in
3019         `Vcharacter_attribute_table'.
3020
3021 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3022
3023         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3024         to 0.10 (Yao).
3025
3026 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3027
3028         * mule-charset.c (Vcharacter_attribute_table): New variable.
3029         (Fchar_attribute_alist): New function.
3030         (Fget_char_attribute): New function.
3031         (Fput_char_attribute): New function.
3032         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3033         too.
3034         (syms_of_mule_charset): Add new function `char-attribute-alist',
3035         `get-char-attribute' and `put-char-attribute'.
3036         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3037
3038 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3039
3040         * mule-charset.c (Fmake_charset): Just use
3041         `get_unallocated_leading_byte'.
3042
3043         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3044         sets; don't use final-byte based number for private sets.
3045
3046 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3047
3048         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3049         integer.
3050
3051 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3052
3053         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3054         to 0.9.
3055
3056 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3057
3058         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3059         of `CHAR_LEADING_BYTE' in UTF-2000.
3060
3061         * insdel.c (find_charsets_in_bufbyte_string): Use
3062         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3063         (find_charsets_in_emchar_string): Likewise.
3064
3065         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3066         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3067
3068         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3069         (CHAR_CHARSET_ID): New macro.
3070
3071 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3072
3073         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3074         charset-id - MIN_LEADING_BYTE.
3075         (put_char_table): Likewise.
3076
3077 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3078
3079         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3080         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3081         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3082         (CHARSET_ID_OFFSET): New macro.
3083         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3084         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3085         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3086         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3087         4).
3088         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3089         5).
3090         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3091         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3092         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3093         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3094         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3095
3096 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3097
3098         * mule-charset.c (next_allocated_leading_byte): New variable in
3099         UTF-2000.
3100         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3101         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3102         (get_unallocated_leading_byte): Simply use
3103         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3104         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3105         UTF-2000.
3106
3107         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3108         (MAX_LEADING_BYTE_PRIVATE): New macro.
3109         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3110         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3111
3112 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3113
3114         * mule-charset.c (Fmake_charset): Allocate final-byte based
3115         charset-id for 94-set, 96-set and 94x94-set.
3116
3117 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3118
3119         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3120         ambiguous `else'.
3121         (Fmake_charset): Likewise.
3122         (complex_vars_of_mule_charset): Modify the font registry of
3123         `ucs-bmp' not to match `Ethiopic-Unicode'.
3124
3125 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3126
3127         * mule-charset.c (complex_vars_of_mule_charset): Add font
3128         registory of `ucs-bmp'.
3129
3130 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3131
3132         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3133         coded-charsets in `default-coded-charset-priority-list' when
3134         breaking up a character.
3135
3136         * mule-charset.c (Vcharset_latin_viscii): New variable.
3137         (Qlatin_viscii): New variable.
3138         (make_charset): Don't use `decoding_table'.
3139         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3140         byte_offset.
3141         (Fset_charset_mapping_table): New implementation.
3142         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3143         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3144         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3145         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3146         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3147         charset `latin_viscii'.
3148
3149         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3150         (CHARSET_TYPE_94X94): Change to 1 from 2.
3151         (CHARSET_TYPE_96): Change to 2 from 1.
3152         (CHARSET_TYPE_128): New macro.
3153         (CHARSET_TYPE_128X128): Change to 5 from 4.
3154         (CHARSET_TYPE_256): New macro.
3155         (CHARSET_TYPE_256X256): Change to 7 from 5.
3156         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3157
3158 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3159
3160         * text-coding.c (char_encode_shift_jis): Refer
3161         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3162         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3163
3164         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3165         (char_byte_table_equal): New function in UTF-2000.
3166         (char_byte_table_hash): New function in UTF-2000.
3167         (char_byte_table_description): New constant in UTF-2000.
3168         (char_byte_table): New type in UTF-2000.
3169         (make_char_byte_table): New function in UTF-2000.
3170         (copy_char_byte_table): New function in UTF-2000.
3171         (make_char_code_table): New macro in UTF-2000.
3172         (get_char_code_table): New function in UTF-2000.
3173         (put_char_code_table): New function in UTF-2000.
3174         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3175         (charset_description): Add setting in UTF-2000.
3176         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3177         `CHARSET_TO_BYTE1_TABLE(cs)'.
3178         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3179         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3180         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3181         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3182         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3183         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3184         `CHARSET_TO_BYTE2_TABLE(cs)'.
3185
3186         * char-ucs.h (char_byte_table): New type.
3187         (XCHAR_BYTE_TABLE): New macro.
3188         (XSETCHAR_BYTE_TABLE): New macro.
3189         (CHAR_BYTE_TABLE_P): New macro.
3190         (GC_CHAR_BYTE_TABLE_P): New macro.
3191         (struct Lisp_Char_Byte_Table): New structure.
3192         (get_char_code_table): New interface.
3193         (Emchar_to_byte_table): Deleted.
3194         (get_byte_from_character_table): Deleted.
3195         (struct Lisp_Charset): Add `encoding_table'; delete
3196         `to_byte1_table' and `to_byte2_table'.
3197         (CHARSET_ENCODING_TABLE): New macro.
3198         (CHARSET_TO_BYTE1_TABLE): Deleted.
3199         (CHARSET_TO_BYTE2_TABLE): Deleted.
3200         (XCHARSET_ENCODING_TABLE): New macro.
3201         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3202         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3203
3204 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3205
3206         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3207         `vietnamese-viscii-*'.
3208
3209 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3210
3211         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3212         (Qvietnamese_viscii_upper): New variable.
3213         (Fdefine_charset_alias): New function.
3214         (syms_of_mule_charset): Add new function `define-charset-alias'.
3215         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3216         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3217         `latin-viscii-*'.
3218
3219 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3220
3221         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3222         (MAX_CHAR_OBS_94x94): New macro.
3223         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3224         for 94x94 sets.
3225
3226         * mule-charset.c (put_byte_from_character_table): Change unit size
3227         from 128 to 256.
3228         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3229         not defined.
3230         (Fmake_reverse_direction_charset): Modify dummy argument of
3231         `make_charset' for non-UTF-2000 environment.
3232
3233 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3234
3235         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3236
3237         * mule-charset.c (destroy_byte_from_character_table): New macro.
3238         (latin_jisx0201_to_ucs): Deleted.
3239         (latin_iso8859_2_to_ucs): Deleted.
3240         (latin_iso8859_3_to_ucs): Deleted.
3241         (latin_iso8859_4_to_ucs): Deleted.
3242         (latin_iso8859_9_to_ucs): Deleted.
3243         (latin_viscii_lower_to_ucs): Deleted.
3244         (latin_viscii_upper_to_ucs): Deleted.
3245         (mark_charset): Mark `cs->decoding_table'.
3246         (Fcharset_mapping_table): Fix DOC-string.
3247         (Fset_charset_mapping_table): New function.
3248         (syms_of_mule_charset): Add nwe function
3249         `set-charset-mapping-table'.
3250         (complex_vars_of_mule_charset): Don't setup and use
3251         `latin_*_to_ucs'.
3252
3253 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3254
3255         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3256         charset.
3257
3258 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3259
3260         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3261         (Vcharset_katakana_jisx0208): New variable.
3262         (Qhiragana_jisx0208): New variable.
3263         (Qkatakana_jisx0208): New variable.
3264         (make_charset): Add new argument `byte_offset'.
3265         (charset_get_byte1): Modify for new coded-charset definition; use
3266         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3267         `XCHARSET_BYTE_OFFSET'.
3268         (Fmake_charset): Modify for `make_charset'.
3269         (Fmake_reverse_direction_charset): Likewise.
3270         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3271         `katakana-jisx0208'.
3272         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3273         `.'  in font registry of charset `katakana-jisx0201',
3274         `latin-jisx0201', `vietnamese-viscii-lower' and
3275         `vietnamese-viscii-upper'; modify DOC-string of charset
3276         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3277         registry of charset `japanese-jisx0208' not to use font for JIS
3278         X0208:1990; add new charset `hiragana-jisx0208' and
3279         `katakana-jisx0208'.
3280
3281         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3282         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3283         (struct Lisp_Charset): Add `byte_offset'.
3284         (CHARSET_BYTE_OFFSET): New macro.
3285         (XCHARSET_UCS_MIN): New macro.
3286         (XCHARSET_UCS_MAX): New macro.
3287         (XCHARSET_CODE_OFFSET): New macro.
3288         (XCHARSET_BYTE_OFFSET): New macro.
3289         (MIN_CHAR_HIRAGANA): New macro.
3290         (MAX_CHAR_HIRAGANA): New macro.
3291         (MIN_CHAR_KATAKANA): New macro.
3292         (MAX_CHAR_KATAKANA): New macro.
3293         (MAKE_CHAR): Modify for new coded-charset definition; use
3294         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3295         `XCHARSET_BYTE_OFFSET'.
3296
3297 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3298
3299         * mule-charset.c (CHAR96): Deleted.
3300         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3301         <Lisp_Object>.
3302         (latin_iso8859_2_to_ucs): Likewise.
3303         (latin_iso8859_3_to_ucs): Likewise.
3304         (latin_iso8859_4_to_ucs): Likewise.
3305         (latin_iso8859_9_to_ucs): Likewise.
3306         (latin_viscii_lower_to_ucs): Likewise.
3307         (latin_viscii_upper_to_ucs): Likewise.
3308         (latin_tcvn5712_to_ucs): Commented out.
3309         (make_charset): Change type of argument `decoding_table' from
3310         <Emchar*> to <Lisp_Object> [vector of characters].
3311         (Fmake_charset): Modify for `make_charset'.
3312         (Fmake_reverse_direction_charset): Likewise.
3313         (Fcharset_mapping_table): New function in UTF-2000.
3314         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3315         UTF-2000.
3316         (complex_vars_of_mule_charset): Modify for type change of
3317         `*_to_ucs'; modify for `make_charset'.
3318
3319         * char-ucs.h (struct Lisp_Charset): Change type of
3320         `decoding_table' from <Emchar*> to <Lisp_Object>.
3321         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3322
3323 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3324
3325         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3326         error with non-UTF-2000-Mule.
3327
3328 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3329
3330         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3331         in lisp again].
3332         (Vcharset_chinese_cns11643_4): Likewise.
3333         (Vcharset_chinese_cns11643_5): Likewise.
3334         (Vcharset_chinese_cns11643_6): Likewise.
3335         (Vcharset_chinese_cns11643_7): Likewise.
3336         (Qchinese_cns11643_3): Likewise.
3337         (Qchinese_cns11643_4): Likewise.
3338         (Qchinese_cns11643_5): Likewise.
3339         (Qchinese_cns11643_6): Likewise.
3340         (Qchinese_cns11643_7): Likewise.
3341         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3342         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3343         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3344         (complex_vars_of_mule_charset): Likewise.
3345
3346 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3347
3348         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3349         96-set.
3350         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3351         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3352
3353 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3354
3355         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3356         0xFF60.
3357         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3358         (breakup_char_1): Likewise.
3359
3360         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3361         one of them includes the specified character.
3362
3363 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3364
3365         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3366
3367 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3368
3369         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3370
3371 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3372
3373         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3374         definition for non-UTF-2000 Mule.
3375         (latin_iso8859_3_to_ucs): Likewise.
3376         (latin_iso8859_4_to_ucs): Likewise.
3377         (latin_iso8859_9_to_ucs): Likewise.
3378         (latin_jisx0201_to_ucs): Likewise.
3379         (MIN_CHAR_THAI): Likewise.
3380         (MAX_CHAR_THAI): Likewise.
3381         (MIN_CHAR_GREEK): Likewise.
3382         (MAX_CHAR_GREEK): Likewise.
3383         (MIN_CHAR_HEBREW): Likewise.
3384         (MAX_CHAR_HEBREW): Likewise.
3385         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3386         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3387         (MIN_CHAR_CYRILLIC): Likewise.
3388         (MAX_CHAR_CYRILLIC): Likewise.
3389
3390 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3391
3392         * char-ucs.h (breakup_char_1): Use
3393         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3394         thai-tis620 and katakana-jisx0201 area.
3395
3396 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3397
3398         * char-ucs.h (breakup_char_1): Use
3399         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3400         area.
3401
3402         * text-coding.c (reset_encoding_stream): Fixed.
3403         (char_encode_ucs4): Delete `& 255'.
3404
3405         * char-ucs.h (breakup_char_1): Use
3406         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3407
3408 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3409
3410         * file-coding.c (Fmake_coding_system): Don't set up
3411         `codesys->fixed.size'.
3412         (encode_coding_no_conversion): Don't refer
3413         `str->codesys->fixed.size'.
3414
3415 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3416
3417         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3418         (latin_a_char_to_byte1): Deleted.
3419         (latin_a_char_to_byte2): Deleted.
3420
3421 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3422
3423         * mule-charset.c (make_charset): Add new argument `ucs_min',
3424         `ucs_max' and `code_offset'.
3425         (charset_get_byte1): New implementation [delete specific charset
3426         depended implementations].
3427         (Fmake_charset): Modify for `make_charset'.
3428         (Fmake_reverse_direction_charset): Likewise.
3429         (complex_vars_of_mule_charset): Likewise.
3430
3431         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3432         `code_offset'.
3433         (CHARSET_UCS_MIN): New macro.
3434         (CHARSET_UCS_MAX): New macro.
3435         (CHARSET_CODE_OFFSET): New macro.
3436         (MAKE_CHAR): Delete charset depended definitions [except
3437         katakana-jisx0201].
3438
3439 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3440
3441         * char-ucs.h (breakup_char_1): Use
3442         `Vdefault_coded_charset_priority_list' for C0-Controls,
3443         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3444
3445 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3446
3447         * char-ucs.h (charset_get_byte1): New function.
3448         (XCHARSET_GET_BYTE1): Deleted.
3449         (charset_get_byte2): New function.
3450         (XCHARSET_GET_BYTE2): Deleted.
3451         (Vdefault_coded_charset_priority_list): New external variable.
3452         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3453         `Vdefault_preferred_coded_charset_list'.
3454
3455         * mule-charset.c (charset_get_byte1): New function.
3456         (charset_get_byte2): New function.
3457         (Vdefault_coded_charset_priority_list): New variable.
3458         (vars_of_mule_charset): Add new variable
3459         `default-coded-charset-priority-list'.
3460
3461 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3462
3463         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3464         (XCHARSET_GET_BYTE2): New inline function.
3465         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3466         `XCHARSET_GET_BYTE2'.
3467
3468 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3469
3470         * mule-charset.c (make_charset): Initialize
3471         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3472         NULL if table is not defined.
3473
3474 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3475
3476         * text-coding.c (char_encode_shift_jis): Use
3477         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3478         `ucs_to_latin_jisx0201'.
3479
3480         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3481         (ucs_to_latin_iso8859_2): Deleted.
3482         (ucs_to_latin_iso8859_3): Deleted.
3483         (ucs_to_latin_iso8859_4): Deleted.
3484         (ucs_to_latin_iso8859_9): Deleted.
3485         (ucs_to_latin_viscii_lower): Deleted.
3486         (ucs_to_latin_viscii_upper): Deleted.
3487         (ucs_to_latin_tcvn5712): Deleted.
3488         (make_charset): Add new argument `decoding_table'; set up
3489         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3490         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3491         `decoding_table' is defined in UTF-2000.
3492         (Fmake_charset): Modify for `make_charset'.
3493         (Fmake_reverse_direction_charset): Likewise.
3494         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3495         and `GENERATE_96_SET'.
3496
3497         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3498         (ucs_to_latin_jisx0201): Deleted.
3499         (latin_iso8859_2_to_ucs): Deleted.
3500         (ucs_to_latin_iso8859_2): Deleted.
3501         (latin_iso8859_3_to_ucs): Deleted.
3502         (ucs_to_latin_iso8859_3): Deleted.
3503         (latin_iso8859_4_to_ucs): Deleted.
3504         (ucs_to_latin_iso8859_4): Deleted.
3505         (latin_iso8859_9_to_ucs): Deleted.
3506         (ucs_to_latin_iso8859_9): Deleted.
3507         (latin_viscii_lower_to_ucs): Deleted.
3508         (ucs_to_latin_viscii_lower): Deleted.
3509         (latin_viscii_upper_to_ucs): Deleted.
3510         (ucs_to_latin_viscii_upper): Deleted.
3511         (struct Lisp_Charset): Renamed `encoding_table' to
3512         `to_byte1_table'; add `to_byte2_table'.
3513         (CHARSET_DECODING_TABLE): New macro.
3514         (CHARSET_TO_BYTE1_TABLE): New macro.
3515         (CHARSET_TO_BYTE2_TABLE): New macro.
3516         (XCHARSET_DECODING_TABLE): New macro.
3517         (XCHARSET_TO_BYTE1_TABLE): New macro.
3518         (XCHARSET_TO_BYTE2_TABLE): New macro.
3519         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3520         tables.
3521         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3522         don't use `ucs_to_*' tables.
3523
3524 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3525
3526         * text-coding.c (Fmake_coding_system): Don't set up
3527         `codesys->fixed.size'.
3528         (encode_coding_no_conversion): Use `if' instead of `switch'.
3529
3530         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3531
3532 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3533
3534         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3535         (Fmake_charset): Modify for `make_charset'.
3536         (Fmake_reverse_direction_charset): Likewise.
3537         (complex_vars_of_mule_charset): Likewise.
3538
3539 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3540
3541         * text-coding.c (char_encode_shift_jis): Use table
3542         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3543
3544 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3545
3546         * text-coding.c (text_encode_generic): Use `if' instead of
3547         `switch'.
3548         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3549         decode JIS-Latin.
3550
3551 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3552
3553         * text-coding.c (encode_coding_sjis): Deleted.
3554         (char_encode_shift_jis): New function.
3555         (char_finish_shift_jis): New function.
3556         (reset_encoding_stream): Set up `encode_char' and `finish' for
3557         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3558         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3559         (char_encode_utf8): Treat `eol_type'.
3560
3561 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3562
3563         * file-coding.c (decode_coding_iso2022): Use
3564         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3565
3566 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3567
3568         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3569         to 0.7 (Hirano).
3570
3571 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3572
3573         * char-lb.h (CHAR_COLUMNS): New macro.
3574
3575 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3576
3577         * text-coding.c (char_encode_ucs4): New function.
3578         (char_finish_ucs4): New function.
3579         (encode_coding_ucs4): Deleted.
3580         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3581         (text_encode_generic): Delete local variable `charset' and `half'.
3582         (ucs_to_mule_table): Deleted.
3583         (mule_to_ucs_table): Deleted.
3584         (Fset_ucs_char): Deleted.
3585         (ucs_to_char): Deleted.
3586         (Fucs_char): Deleted.
3587         (Fset_char_ucs): Deleted.
3588         (Fchar_ucs): Deleted.
3589         (decode_ucs4): Deleted.
3590         (mule_char_to_ucs4): Deleted.
3591         (encode_ucs4): Deleted.
3592         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3593         (decode_coding_utf8): Likewise.
3594         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3595         (char_encode_iso2022): Fixed.
3596         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3597         `Fset_char_ucs' and `Fchar_ucs'.
3598         (complex_vars_of_file_coding): Don't initialize
3599         `ucs_to_mule_table'.
3600
3601         * objects-tty.c (tty_initialize_font_instance): Don't use
3602         `XCHARSET_COLUMNS'.
3603
3604         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3605         UTF-2000.
3606
3607         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3608         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3609
3610         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3611         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3612         (emchar_string_displayed_columns): Likewise.
3613
3614         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3615         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3616         (string_column_at_point): Likewise.
3617         (Fmove_to_column): Likewise.
3618
3619         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3620         `encoding_table' and `decoding_table'.
3621         (CHARSET_REP_BYTES): Deleted.
3622         (XCHARSET_REP_BYTES): Deleted.
3623         (XCHARSET_COLUMNS): Deleted.
3624         (CHAR_COLUMNS): New macro.
3625         (lookup_composite_char): Deleted unconditionally.
3626         (composite_char_string): Likewise.
3627
3628 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3629
3630         * char-ucs.h (Emchar_to_byte_table): New type.
3631         (get_byte_from_character_table): New function interface.
3632         (Vcharset_latin_jisx0201): New variable.
3633         (latin_jisx0201_to_ucs): New variable.
3634         (ucs_to_latin_jisx0201): New variable.
3635         (Vcharset_latin_iso8859_2): New variable.
3636         (latin_iso8859_2_to_ucs): New variable.
3637         (ucs_to_latin_iso8859_2): New variable.
3638         (Vcharset_latin_iso8859_3): New variable.
3639         (latin_iso8859_3_to_ucs): New variable.
3640         (ucs_to_latin_iso8859_3): New variable.
3641         (Vcharset_latin_iso8859_4): New variable.
3642         (latin_iso8859_4_to_ucs): New variable.
3643         (ucs_to_latin_iso8859_4): New variable.
3644         (Vcharset_latin_iso8859_9): New variable.
3645         (latin_iso8859_9_to_ucs): New variable.
3646         (ucs_to_latin_iso8859_9): New variable.
3647         (Vcharset_latin_viscii_lower): New variable.
3648         (latin_viscii_lower_to_ucs): New variable.
3649         (ucs_to_latin_viscii_lower): New variable.
3650         (Vcharset_latin_viscii_upper): New variable.
3651         (latin_viscii_upper_to_ucs): New variable.
3652         (ucs_to_latin_viscii_upper): New variable.
3653         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3654         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3655         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3656         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3657         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3658         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3659         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3660         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3661         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3662         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3663
3664         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3665         (Vcharset_latin_viscii_upper): New variable.
3666         (make_byte_from_character_table): New function.
3667         (put_byte_from_character_table): New function.
3668         (get_byte_from_character_table): New function.
3669         (CHAR96): New macro.
3670         (ucs_to_latin_jisx0201): New variable.
3671         (latin_jisx0201_to_ucs): New variable.
3672         (ucs_to_latin_iso8859_2): New variable.
3673         (latin_iso8859_2_to_ucs): New variable.
3674         (ucs_to_latin_iso8859_3): New variable.
3675         (latin_iso8859_3_to_ucs): New variable.
3676         (ucs_to_latin_iso8859_4): New variable.
3677         (latin_iso8859_4_to_ucs): New variable.
3678         (ucs_to_latin_iso8859_9): New variable.
3679         (latin_iso8859_9_to_ucs): New variable.
3680         (ucs_to_latin_viscii_lower): New variable.
3681         (latin_viscii_lower_to_ucs): New variable.
3682         (ucs_to_latin_viscii_upper): New variable.
3683         (latin_viscii_upper_to_ucs): New variable.
3684         (ucs_to_latin_tcvn5712): New variable.
3685         (latin_tcvn5712_to_ucs): New variable.
3686         (Qlatin_viscii_lower): New variable.
3687         (Qlatin_viscii_upper): New variable.
3688         (syms_of_mule_charset): Set up new symbol
3689         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3690         (complex_vars_of_mule_charset): Set up new charset
3691         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3692         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3693         `ucs_to_<CHARSET>' tables.
3694
3695 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3696
3697         * text-coding.c: New file.
3698
3699 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3700
3701         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3702
3703         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3704         (MAKE_CHAR): Modify for `ucs-bmp'.
3705         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3706         non-MULE characters of BMP.
3707
3708 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3709
3710         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3711         to 0.6.
3712
3713 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3714
3715         * lstream.h:
3716         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3717         - Include character.h for `CHAR_ASCII_P'.
3718
3719         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3720
3721         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3722         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3723
3724         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3725         (BYTE_C0_P): Likewise.
3726         (BYTE_C1_P): Likewise.
3727         (Lstream_get_emchar_1): Likewise.
3728         (Lstream_fput_emchar): Likewise.
3729         (Lstream_funget_emchar): Likewise.
3730         (copy_internal_to_external): Likewise.
3731         (copy_external_to_internal): Likewise.
3732
3733         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3734         (BYTE_C0_P): Likewise.
3735         (BYTE_C1_P): Likewise.
3736         (Lstream_get_emchar_1): Likewise.
3737         (Lstream_fput_emchar): Likewise.
3738         (Lstream_funget_emchar): Likewise.
3739         (copy_internal_to_external): Likewise.
3740         (copy_external_to_internal): Likewise.
3741
3742         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3743         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3744
3745         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3746         (BYTE_ASCII_P): Moved to mb-1byte.h.
3747
3748 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3749
3750         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3751
3752         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3753         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3754         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3755         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3756         (VALIDATE_CHARPTR_FORWARD): Likewise.
3757         (simple_charptr_emchar): Moved to mb-multibyte.h.
3758         (simple_set_charptr_emchar): Likewise.
3759         (simple_charptr_copy_char): Likewise.
3760         (non_ascii_charptr_emchar): Likewise.
3761         (non_ascii_set_charptr_emchar): Likewise.
3762         (non_ascii_charptr_copy_char): Likewise.
3763         (charptr_emchar): Moved to mb-*byte.h.
3764         (set_charptr_emchar): Likewise.
3765         (charptr_copy_char): Likewise.
3766
3767         * mb-1byte.h, mb-multibyte.h: New files.
3768
3769 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3770
3771         * mb-utf-8.h (MULTIBYTE): New macro.
3772         (MAX_EMCHAR_LEN): Moved from buffer.h.
3773         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3774
3775         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3776
3777         * mb-lb.h, multibyte.h: New files.
3778
3779         * char-1byte.h (Charset_ID): Moved from buffer.h.
3780         (MIN_LEADING_BYTE): Likewise.
3781         (LEADING_BYTE_ASCII): Likewise.
3782         (NUM_LEADING_BYTES): Likewise.
3783         (CHARSETP): Likewise.
3784         (CHARSET_BY_LEADING_BYTE): Likewise.
3785         (XCHARSET_LEADING_BYTE): Likewise.
3786         (XCHARSET_GRAPHIC): Likewise.
3787         (XCHARSET_COLUMNS): Likewise.
3788         (XCHARSET_DIMENSION): Likewise.
3789         (CHAR_CHARSET): Likewise.
3790         (CHAR_LEADING_BYTE): Likewise.
3791         (BREAKUP_CHAR): Likewise.
3792         (Vcharset_ascii): Likewise.
3793
3794         * buffer.h: Include multibyte.h unconditionally.
3795         (VALID_CHARPTR_P): Moved to multibyte.h.
3796         (ASSERT_VALID_CHARPTR): Likewise.
3797         (REAL_INC_CHARPTR): Likewise.
3798         (REAL_INC_CHARBYTIND): Likewise.
3799         (REAL_DEC_CHARPTR): Likewise.
3800         (INC_CHARPTR): Likewise.
3801         (INC_CHARBYTIND): Likewise.
3802         (DEC_CHARPTR): Likewise.
3803         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3804         (VALIDATE_CHARPTR_FORWARD): Likewise.
3805         (charptr_n_addr): Likewise.
3806         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3807         (simple_charptr_emchar): Moved to multibyte.h.
3808         (simple_set_charptr_emchar): Likewise.
3809         (simple_charptr_copy_char): Likewise.
3810         (non_ascii_charptr_emchar): Likewise.
3811         (non_ascii_set_charptr_emchar): Likewise.
3812         (non_ascii_charptr_copy_char): Likewise.
3813         (charptr_emchar): Likewise.
3814         (set_charptr_emchar): Likewise.
3815         (charptr_copy_char): Likewise.
3816         (charptr_emchar_n): Likewise.
3817         (Charset_ID): Moved to char-1byte.h.
3818         (Vcharset_ascii): Likewise.
3819         (CHAR_CHARSET): Likewise.
3820         (CHAR_LEADING_BYTE): Likewise.
3821         (LEADING_BYTE_ASCII): Likewise.
3822         (NUM_LEADING_BYTES): Likewise.
3823         (MIN_LEADING_BYTE): Likewise.
3824         (CHARSETP): Likewise.
3825         (CHARSET_BY_LEADING_BYTE): Likewise.
3826         (XCHARSET_LEADING_BYTE): Likewise.
3827         (XCHARSET_GRAPHIC): Likewise.
3828         (XCHARSET_COLUMNS): Likewise.
3829         (XCHARSET_DIMENSION): Likewise.
3830         (BREAKUP_CHAR): Likewise.
3831
3832 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3833
3834         * character.h: Add document about interface for characters.
3835
3836         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3837         (MAKE_CHAR): Delete comment about
3838         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3839         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3840         (BREAKUP_CHAR): Modify name of arguments.
3841         (CHAR_CHARSET): Modify name of argument.
3842
3843         * buffer.h: Delete document about Emchar accessors.
3844
3845 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3846
3847         * character.h (CHAR_INTP): Moved from buffer.h
3848         (CHAR_OR_CHAR_INTP): Likewise.
3849         (XCHAR_OR_CHAR_INT): Likewise.
3850         (CHECK_CHAR_COERCE_INT): Likewise.
3851
3852         * buffer.h (CHAR_INTP): Moved to character.h
3853         (CHAR_OR_CHAR_INTP): Likewise.
3854         (XCHAR_OR_CHAR_INT): Likewise.
3855         (CHECK_CHAR_COERCE_INT): Likewise.
3856
3857 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3858
3859         * character.h:
3860         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3861         - Include char-1byte.h, char-lb.h or char-ucs.h.
3862
3863         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3864
3865         * buffer.h: Include character unconditionally.
3866         (valid_char_p): Moved to char-*.h.
3867         (non_ascii_valid_char_p): Moved to char-lb.h.
3868
3869         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3870
3871 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3872
3873         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3874         in UTF-2000 because it is not ported yet and not to use
3875         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3876         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3877         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3878
3879         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3880         (CHAR_ASCII_P): Moved from character.h.
3881
3882         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3883         (CHAR_ASCII_P): Likewise.
3884         (CHAR_FIELD1_MASK): Deleted.
3885         (CHAR_FIELD2_MASK): Deleted.
3886         (CHAR_FIELD3_MASK): Deleted.
3887         (MAX_CHAR_BASIC_LATIN): New macro.
3888         (CHAR_FIELD1): Deleted.
3889         (CHAR_FIELD2_INTERNAL): Deleted.
3890         (CHAR_FIELD3_INTERNAL): Deleted.
3891         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3892         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3893         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3894         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3895         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3896         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3897         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3898         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3899         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3900         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3901         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3902         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3903         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3904         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3905         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3906         (MIN_CHAR_COMPOSITION): Deleted.
3907         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3908         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3909
3910 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3911
3912         * buffer.h: Include mb-utf-8.h in UTF-2000.
3913
3914         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3915
3916         * mb-utf-8.h: New file.
3917
3918 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3919
3920         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3921         instead of `int'.
3922
3923         * mule-charset.h, buffer.h (Charset_ID): New type.
3924
3925 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3926
3927         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3928         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3929         instead of `MULE_CHAR_PRIVATE_OFFSET',
3930         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3931         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3932         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3933
3934         * character.h (Vcharset_japanese_jisx0212): New variable
3935         definition.
3936
3937 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3938
3939         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3940         (charset_by_attributes): Delete array about direction.
3941         (latin_a_char_to_charset): New variable in UTF-2000.
3942         (latin_a_char_to_byte1): New variable in UTF-2000.
3943         (latin_a_char_to_byte2): New variable in UTF-2000.
3944         (Qucs_bmp): New variable.
3945         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3946         `Bufbyte'.
3947         (next_allocated_2_byte_leading_byte): Likewise.
3948         (non_ascii_set_charptr_emchar): Likewise.
3949         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3950         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3951         `charset_by_attributes'.
3952         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3953         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3954         and `CHARSET_BY_LEADING_BYTE'.
3955         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3956         `utf-2000-version' to `vars_of_mule_charset'.
3957         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3958         define `leading-code-private-11' in UTF-2000; move setting of
3959         `utf-2000-version' from `syms_of_mule_charset'.
3960         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3961         UTF-2000.
3962
3963         * character.h (Charset_ID): New type.
3964         (LEADING_BYTE_UCS_BMP): New macro.
3965         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3966         (CHARSET_ID_OFFSET_94): New macro.
3967         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3968         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3969         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3970         final-byte.
3971         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3972         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3973         (CHARSET_ID_OFFSET_96): New macro.
3974         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3975         CHARSET_ID_OFFSET_96 and final-byte.
3976         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3977         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3978         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3979         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3980         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3981         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3982         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3983         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3984         (LEADING_BYTE_THAI_TIS620): Likewise.
3985         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3986         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3987         (CHARSET_ID_OFFSET_94x94): New macro.
3988         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3989         CHARSET_ID_OFFSET_94x94 and final-byte.
3990         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3991         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3992         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3993         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3994         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3995         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3996         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3997         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3998         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3999         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4000         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4001         (CHARSET_TYPE_128X128): New macro.
4002         (CHARSET_TYPE_256X256): New macro.
4003         (XCHARSET_PRIVATE_P): Delete unconditionally.
4004         (charset_by_attributes): Delete array about direction.
4005         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4006         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4007         (MIN_CHAR_94): New macro.
4008         (MAX_CHAR_94): New macro.
4009         (MIN_CHAR_96): New macro.
4010         (MAX_CHAR_96): New macro.
4011         (MIN_CHAR_94x94): New macro.
4012         (MAX_CHAR_94x94): New macro.
4013         (MIN_CHAR_96x96): New macro.
4014         (MAX_CHAR_96x96): New macro.
4015         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4016         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4017         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4018         - 32)'.
4019         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4020         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4021         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4022         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4023         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4024         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4025         `XCHARSET_LEADING_BYTE' to make code-point.
4026         (latin_a_char_to_charset): New variable.
4027         (latin_a_char_to_byte1): New variable.
4028         (latin_a_char_to_byte2): New variable.
4029         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4030         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4031         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4032
4033         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4034         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4035         (find_charsets_in_emchar_string): Likewise.
4036         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4037
4038         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4039         `int'.
4040         (decode_coding_iso2022): Likewise.
4041
4042         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4043         of `unsigned char'.
4044
4045         * redisplay.c (redisplay_text_width_emchar_string): Use
4046         `Charset_ID' instead of `unsigned char'.
4047         (redisplay_frame_text_width_string): Likewise.
4048
4049         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4050         `unsigned char'.
4051
4052         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4053         instead of `unsigned char'.
4054         (face_cachel_charset_font_metric_info): Likewise.
4055
4056         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4057         (get_non_ascii_char_table_value): Likewise.
4058         (get_char_table): Likewise.
4059         (put_char_table): Likewise.
4060         (map_over_other_charset): Likewise.
4061         (map_char_table): Likewise.
4062
4063         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4064         instead of `unsigned char'.
4065
4066 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4067
4068         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4069         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4070
4071         * mule-charset.c (leading_code_private_11): Don't define in
4072         UTF-2000.
4073
4074         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4075         in UTF-2000 because it is not ported yet and not to use
4076         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4077
4078 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4079
4080         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4081
4082 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4083
4084         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4085         in UTF-2000.
4086
4087         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4088         of unsigned char to store leading-byte.
4089
4090         * chartab.c (get_non_ascii_char_table_value): Don't use
4091         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4092
4093         * file-coding.c (encode_coding_big5): Delete bogus implementation
4094         in UTF2000.
4095
4096         * character.h (LEADING_BYTE_*): Delete definition for
4097         non-UTF-2000.
4098         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4099         (LEADING_BYTE_PREFIX_P): Deleted.
4100         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4101         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4102         (BUFBYTE_LEADING_BYTE_P): Deleted.
4103         (CHARSET_PRIVATE_P): Deleted unconditionally.
4104         (rep_bytes_by_first_byte): Deleted unconditionally.
4105         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4106         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4107         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4108         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4109         (CHAR_FIELD2): Deleted.
4110         (CHAR_FIELD3): Deleted.
4111         (MAKE_CHAR): Delete definition for non-UTF-2000.
4112         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4113         (breakup_char_1): New implementation.
4114         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4115         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4116
4117 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4118
4119         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4120         condition.
4121
4122 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4123
4124         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4125         (CHARSET_PRIVATE_P): Likewise.
4126         (XCHARSET_PRIVATE_P): Likewise.
4127         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4128
4129         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4130         UTF2000.
4131         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4132
4133 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4134
4135         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4136         (NUM_LEADING_BYTES): Changed from 128 to 256.
4137         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4138         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4139         UTF2000.
4140         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4141
4142         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4143         UTF2000.
4144         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4145         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4146         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4147         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4148         (Qchinese_cns11643_3): New variable in UTF2000.
4149         (Qchinese_cns11643_4): New variable in UTF2000.
4150         (Qchinese_cns11643_5): New variable in UTF2000.
4151         (Qchinese_cns11643_6): New variable in UTF2000.
4152         (Qchinese_cns11643_7): New variable in UTF2000.
4153         (syms_of_mule_charset): Define `chinese-cns11643-3',
4154         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4155         and `chinese-cns11643-7' in UTF2000.
4156         (vars_of_mule_charset): Initialize
4157         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4158         + 1 in UTF2000.
4159         (complex_vars_of_mule_charset): Setup charset
4160         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4161         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4162
4163 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4164
4165         * mule-charset.c: Move setting for `leading-code-private-11' from
4166         `syms_of_mule_charset' to `vars_of_mule_charset'.
4167
4168 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4169
4170         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4171         and `NUM_LEADING_BYTES' in assert.
4172
4173 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4176         instead of 128.
4177         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4178         `NUM_LEADING_BYTES' instead of 128.
4179
4180 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4181
4182         * mule-charset.h (charset_by_leading_byte): Use
4183         `NUM_LEADING_BYTES' instead of 128.
4184         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4185
4186         * mule-charset.c (charset_by_leading_byte): Use
4187         `NUM_LEADING_BYTES' instead of 128.
4188         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4189
4190         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4191         128.
4192
4193 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4194
4195         * mule-charset.c (syms_of_mule_charset): Update to
4196         0.4 (Shin-Imamiya).
4197
4198 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4199
4200         * file-coding.c (encode_coding_sjis): New implementation for
4201         UTF2000.  (decode_coding_sjis): Ditto.
4202
4203 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4204
4205         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4206         Don't define in UTF2000.
4207
4208         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4209         defined.
4210
4211         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4212         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4213         MULE.
4214
4215 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4216
4217         * config.h.in (CHAR_IS_UCS4): New macro.
4218
4219         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4220         conventional MULE representation.
4221         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4222
4223         * mule-charset.h: Reverted to original.
4224
4225         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4226         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4227         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4228
4229         * character.h: New file.
4230
4231         * file-coding.c (Fmake_coding_system): Set 1 to
4232         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4233         defined.
4234         (encode_coding_no_conversion): New implementation for UTF2000.
4235
4236         * file-coding.h (struct Lisp_Coding_System): Add new member
4237         `fixed.size'.
4238
4239 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4240
4241         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4242         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4243         (encode_coding_iso2022): New implementation for UTF2000.
4244
4245 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4246
4247         * mule-canna.c (c2mu): New implementation for UTF2000.
4248         (m2c): Likewise.
4249
4250 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4251
4252         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4253
4254 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * file-coding.c (reset_encoding_stream): Set 0 to
4257         `str->iso2022.current_char_boundary' in UTF2000.
4258         (encode_utf8): Don't define in UTF2000.
4259         (encode_coding_utf8): New implementation for UTF-8 representation
4260         of UTF2000.
4261         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4262
4263 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4264
4265         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4266
4267         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4268         UTF2000.
4269         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4270
4271         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4272
4273         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4274         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4275         as UTF-8 in UTF2000.
4276         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4277         (non_ascii_valid_char_p): Don't define in UTF2000.
4278         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4279         (Lstream_get_emchar_1): Likewise.
4280         (utf-2000-version): New variable in UTF2000.
4281
4282         * lread.c (read_escape): Add new reader `u'.
4283
4284         * insdel.c (three_to_one_table): Don't define in UTF2000.
4285         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4286         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4287         UTF2000.
4288         (bytind_to_bufpos_func): Likewise.
4289         (buffer_mule_signal_inserted_region): Likewise.
4290         (vars_of_insdel): Don't initialize `three_to_one_table'.
4291         (init_buffer_text): Use `buf->text->mule_size' instead of
4292         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4293         UTF2000.
4294
4295         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4296         UTF-8 representation in UTF2000.
4297         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4298         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4299         (decode_coding_iso2022): Don't define local variable `lb' in
4300         UTF2000; don't use LEADING_BYTE in UTF2000; use
4301         `DECODE_ADD_UCS_CHAR' in UTF2000.
4302         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4303
4304         * config.h.in (UTF2000): New macro.
4305
4306         * buffer.h (struct buffer_text): Add new member `mule_size' and
4307         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4308         (valid_char_p): Return always 1 in UTF2000.
4309         (MAX_EMCHAR_LEN): 6 in UTF2000.
4310         (three_to_one_table): Don't define in UTF2000.
4311         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4312         UTF2000.
4313         (real_bytind_to_bufpos): Likewise.
4314
4315         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4316
4317 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4318
4319         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4320         representation change.
4321         (Vutf_2000_version): New variable.
4322         (leading_code_private_11): New variable.
4323         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4324         `leading-code-private-11'.
4325
4326         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4327         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4328         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4329         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4330         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4331         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4332         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4333         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4334         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4335         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4336         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4337         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4338         (MIN_CHAR_GREEK): New macro.
4339         (MAX_CHAR_GREEK): New macro.
4340         (MIN_CHAR_CYRILLIC): New macro.
4341         (MAX_CHAR_CYRILLIC): New macro.
4342         (MIN_CHAR_HEBREW): New macro.
4343         (MAX_CHAR_HEBREW): New macro.
4344         (MIN_CHAR_THAI): New macro.
4345         (MAX_CHAR_THAI): New macro.
4346         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4347         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4348         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4349         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4350         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4351         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4352         (CHAR_FIELD2): New inline function.
4353         (CHAR_FIELD3): New inline function.
4354         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4355         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4356         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4357         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4358         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4359         (MIN_CHAR_COMPOSITION): Likewise.
4360         (CHAR_LEADING_BYTE): Modified for character representation change.
4361         (MAKE_CHAR): Likewise.
4362
4363         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4364         (Vcharset_greek_iso8859_7): Likewise.
4365         (Vcharset_cyrillic_iso8859_5): Likewise.
4366         (Vcharset_hebrew_iso8859_8): Likewise.
4367         (Vcharset_thai_tis620): Likewise.
4368         (Vcharset_katakana_jisx0201): Likewise.
4369
4370 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
4371
4372         * XEmacs 21.2.47 "Zephir" is released.
4373
4374 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
4375
4376         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
4377
4378 2001-04-03  Mike Sperber <mike@xemacs.org>
4379
4380         * search.c: Revert previous patch due because of release.
4381
4382 2001-03-30  Ben Wing  <ben@xemacs.org>
4383
4384         * s\cygwin32.h:
4385         Add missing killpg prototype.
4386
4387         * elhash.c:
4388         Add a comment about fixing problems when a new entry is added
4389         while mapping.
4390
4391         * frame-msw.c (mswindows_init_frame_1):
4392         Fix compile warnings.
4393
4394         * menubar.c (vars_of_menubar):
4395         Provide `menu-accelerator-support' to indicate that we properly
4396         support %_ in menu specifications, so that package code can
4397         conditionalize on this (and remove %_ from menu specifications
4398         on older versions).
4399
4400         * event-msw.c:
4401         * scrollbar-msw.c:
4402         * scrollbar-msw.c (can_scroll):
4403         * scrollbar-msw.h:
4404         Fix handling of mouse wheel under Windows to follow standards --
4405         now scrolls window under pointer, not selected window.
4406
4407 2001-03-31  Mike Sperber <mike@xemacs.org>
4408
4409         * search.c (Freplace_match): Support FSF-style specification of
4410         match subexpression when applied to a buffer.
4411
4412 2001-03-15  Martin Buchholz  <martin@xemacs.org>
4413
4414         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
4415         function to modify KEYMAP, so map over a copy of the hash table.
4416
4417 2001-03-21  Martin Buchholz <martin@xemacs.org>
4418
4419         * XEmacs 21.2.46 "Urania" is released.
4420
4421 2001-03-20  Dan Holmsand  <dan@eyebee.com>
4422
4423         * realpath.c (xrealpath): Make file-truename work with symlinks to
4424         /cygdrive paths on cygwin. Always lowercase drive-letters on
4425         native windows.
4426         (cygwin_readlink): Don't try to find canonical filename unless
4427         file exists.
4428
4429 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
4430
4431         * ChangeLog: Log GTK merge.
4432
4433         * dumper.c:
4434         * select-x.c:
4435         * specifier.c:
4436         * symeval.h:
4437         Revert gratuitous whitespace changes from GTK merge.
4438
4439         * emacs.c: Document end of complex #ifdef @ l. 1495.
4440
4441
4442 2001-03-12  Andy Piper  <andy@xemacs.org>
4443
4444         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
4445         have to do likewise.
4446
4447 2001-03-12  Andy Piper  <andy@xemacs.org>
4448
4449         * sysdep.c: we only support mingw now.
4450
4451 2001-03-09  Andy Piper  <andy@xemacs.org>
4452
4453         * unexcw.c (copy_executable_and_dump_data_section): making approx
4454         overrun a warning only.
4455
4456 2001-03-10  William M. Perry  <wmperry@aventail.com>
4457
4458         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
4459         satisfy Stephen's identical-after-cpp plea.
4460
4461 2001-03-02  Ben Wing  <ben@xemacs.org>
4462
4463         * cmds.c:
4464         * cmds.c (Fforward_char):
4465         * syntax.c:
4466         * window.c:
4467
4468         Augment documentation of the most common motion commands to make
4469         note of the shifted-motion support.
4470         
4471 2001-03-02  Ben Wing  <ben@xemacs.org>
4472
4473         * nt.c (mswindows_fstat):
4474         * nt.c (mswindows_stat):
4475         * search.c (boyer_moore):
4476         Fix compile warnings under Windows.
4477         
4478         * sysdep.c (sys_readdir):
4479         Fix buggy filename-conversion code under Mule.
4480
4481 2001-03-09  William M. Perry  <wmperry@aventail.com>
4482
4483         * Makefile.in.in:
4484         * config.h.in:
4485         * console.c:
4486         * console.h:
4487         * device.c:
4488         * device.h:
4489         * dragdrop.c:
4490         * emacs.c:
4491         * event-stream.c:
4492         * events.c:
4493         * events.h:
4494         * faces.c:
4495         * frame.h:
4496         * general-slots.h:
4497         * glyphs.c:
4498         * gutter.c:
4499         * inline.c:
4500         * lisp.h:
4501         * lrecord.h:
4502         * make-src-depend:
4503         * redisplay-output.c:
4504         * redisplay.c:
4505         * symsinit.h:
4506         * sysfile.h:
4507         * toolbar.c:
4508         * window.c:
4509         The Great GTK Merge.
4510
4511         * ChangeLog.GTK:
4512         * console-gtk.c:
4513         * console-gtk.h:
4514         * device-gtk.c:
4515         * emacs-marshals.c:
4516         * emacs-widget-accessors.c:
4517         * event-gtk.c:
4518         * frame-gtk.c:
4519         * gccache-gtk.c:
4520         * gccache-gtk.h:
4521         * glade.c:
4522         * glyphs-gtk.c:
4523         * glyphs-gtk.h:
4524         * gtk-glue.c:
4525         * gtk-xemacs.c:
4526         * gtk-xemacs.h:
4527         * gui-gtk.c:
4528         * gui-gtk.h:
4529         * menubar-gtk.c:
4530         * native-gtk-toolbar.c:
4531         * objects-gtk.c:
4532         * objects-gtk.h:
4533         * redisplay-gtk.c:
4534         * scrollbar-gtk.c:
4535         * scrollbar-gtk.h:
4536         * select-gtk.c:
4537         * toolbar-gtk.c:
4538         * ui-byhand.c:
4539         * ui-gtk.c:
4540         * ui-gtk.h:
4541         The Great GTK Merge: new files.
4542
4543 2001-02-26  Ben Wing  <ben@xemacs.org>
4544
4545         Reapplied Lstream change.
4546
4547 2001-02-26  Ben Wing  <ben@xemacs.org>
4548
4549         Undid the last change, since it is more controversial than I
4550         thought.  It should be back in at some point soon.
4551         
4552 2001-02-25  Ben Wing  <ben@xemacs.org>
4553
4554         * buffer.c:
4555         * callproc.c (Fold_call_process_internal):
4556         * event-msw.c (ntpipe_slurp_reader):
4557         * event-msw.c (ntpipe_shove_writer):
4558         * event-msw.c (winsock_reader):
4559         * event-msw.c (winsock_writer):
4560         * file-coding.c:
4561         * file-coding.c (detect_eol_type):
4562         * file-coding.c (detect_coding_type):
4563         * file-coding.c (determine_real_coding_system):
4564         * file-coding.c (Fdetect_coding_region):
4565         * file-coding.c (decoding_reader):
4566         * file-coding.c (decoding_writer):
4567         * file-coding.c (mule_decode):
4568         * file-coding.c (Fdecode_coding_region):
4569         * file-coding.c (encoding_reader):
4570         * file-coding.c (encoding_writer):
4571         * file-coding.c (mule_encode):
4572         * file-coding.c (Fencode_coding_region):
4573         * file-coding.c (detect_coding_sjis):
4574         * file-coding.c (decode_coding_sjis):
4575         * file-coding.c (encode_coding_sjis):
4576         * file-coding.c (detect_coding_big5):
4577         * file-coding.c (decode_coding_big5):
4578         * file-coding.c (encode_coding_big5):
4579         * file-coding.c (detect_coding_ucs4):
4580         * file-coding.c (decode_coding_ucs4):
4581         * file-coding.c (encode_coding_ucs4):
4582         * file-coding.c (detect_coding_utf8):
4583         * file-coding.c (decode_coding_utf8):
4584         * file-coding.c (encode_coding_utf8):
4585         * file-coding.c (detect_coding_iso2022):
4586         * file-coding.c (decode_coding_iso2022):
4587         * file-coding.c (encode_coding_iso2022):
4588         * file-coding.c (decode_coding_no_conversion):
4589         * file-coding.c (encode_coding_no_conversion):
4590         * glyphs-x.c (write_lisp_string_to_temp_file):
4591         * gpmevent.c (tty_get_foreign_selection):
4592         * lisp.h:
4593         * lstream.c:
4594         * lstream.c (Lstream_flush_out):
4595         * lstream.c (Lstream_adding):
4596         * lstream.c (Lstream_write_1):
4597         * lstream.c (Lstream_write):
4598         * lstream.c (Lstream_raw_read):
4599         * lstream.c (Lstream_read_more):
4600         * lstream.c (Lstream_read):
4601         * lstream.c (Lstream_unread):
4602         * lstream.c (Lstream_fputc):
4603         * lstream.c (stdio_reader):
4604         * lstream.c (stdio_writer):
4605         * lstream.c (filedesc_reader):
4606         * lstream.c (filedesc_writer):
4607         * lstream.c (lisp_string_reader):
4608         * lstream.c (struct fixed_buffer_stream):
4609         * lstream.c (make_fixed_buffer_input_stream):
4610         * lstream.c (make_fixed_buffer_output_stream):
4611         * lstream.c (fixed_buffer_reader):
4612         * lstream.c (fixed_buffer_writer):
4613         * lstream.c (struct resizing_buffer_stream):
4614         * lstream.c (resizing_buffer_writer):
4615         * lstream.c (dynarr_writer):
4616         * lstream.c (lisp_buffer_reader):
4617         * lstream.c (lisp_buffer_writer):
4618         * lstream.h:
4619         * lstream.h (lstream_implementation):
4620         * lstream.h (struct lstream):
4621         * md5.c (Fmd5):
4622         * process-nt.c (nt_send_process):
4623         * process-unix.c (unix_send_process):
4624         
4625         Correct Lstream lossage due to mixing of signed and unsigned
4626         quantities.  All Lstream uses of size_t and ssize_t are now a
4627         single signed data type Lstream_data_count.  This fixes problems
4628         under Windows with sending large quantities of data to a process,
4629         and may well fix other subtle bugs.
4630
4631 2001-02-23  Martin Buchholz <martin@xemacs.org>
4632
4633         * XEmacs 21.2.45 "Thelxepeia" is released.
4634
4635 2001-02-21  Martin Buchholz  <martin@xemacs.org>
4636
4637         * lisp-union.h (XSETINT): 
4638         (XSETCHAR):
4639         (XSETOBJ): 
4640         Reverse previous change of 2001-02-06.
4641
4642 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
4643
4644         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
4645         buffers.
4646         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
4647         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
4648         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
4649         * regex.c (POS_AS_IN_BUFFER): removed
4650         * regex.c (re_search_2):
4651         * regex.c (re_match_2):
4652         Don't use an offset of 1 when calculating buffer positions, since
4653         `BI_BUF_BEGV' does it already.
4654
4655 2001-02-18  Wim Dumon  <wim@easics.be>
4656
4657         * insdel.c (prepare_to_modify_buffer): Also check for
4658         supersession when clash-detection is enabled. 
4659
4660 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
4661
4662         * regex.c (re_match_2_internal):
4663         Convert temp characters from 'const unsigned char' to 're_char'.
4664         Fix crashing bug with extended characters under mule.
4665         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
4666         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
4667         font-lock, pdump, and new syntax-table code.
4668         * syntax.c (find_start_of_comment):
4669         (find_end_of_comment):
4670         (forward-comment):
4671         Fix crashing bugs involving moving beyond end of buffer.
4672         * syntax.c (find_start_of_comment):
4673         Fixed logic to allow proper detection of cases where the same
4674         character is used to end both a two-char comment start and a
4675         two-char comment end sequence. Fixes `(forward-comment -1)'.
4676         * syntax.c (find_start_of_comment):
4677         Return position just past last comment-end character for all cases
4678         (previously was only done for two-char comment-end sequences).
4679         * syntax.c (forward-comment):
4680         Take value returned from `find_end_of_comment', rather than
4681         incrementing it.
4682         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
4683         Properly deal with BUFFERP (syntax_cache.object)
4684
4685 2001-02-17  Martin Buchholz  <martin@xemacs.org>
4686
4687         * alloc.c (Fgarbage_collect): 
4688         * alloc.c (make_bit_vector_from_byte_vector):
4689         -Wsign-compare-correctness.
4690
4691 2001-02-16  Martin Buchholz  <martin@xemacs.org>
4692
4693         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
4694         (XSETCHAR): Likewise.
4695         (XSETOBJ): Likewise.
4696
4697 2001-02-15  Martin Buchholz  <martin@xemacs.org>
4698
4699         * mule-canna.c (canna-func-delete_previous): 
4700         Rename to canna-func-delete-previous.
4701
4702 2001-02-14  Martin Buchholz  <martin@xemacs.org>
4703
4704         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
4705
4706 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
4707
4708         * font-lock.c (find_context): Fix C++ compile errors introduced by
4709         recent patch
4710
4711 2001-02-13  Martin Buchholz  <martin@xemacs.org>
4712
4713         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
4714         pragma, but earlier ones barf on the same pragma.
4715
4716 2001-02-06  Mike Sperber <mike@xemacs.org>
4717
4718         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
4719         `configure-mule-lisp-directory'.
4720
4721 2001-02-12  Martin Buchholz  <martin@xemacs.org>
4722
4723         Make sure dump-id.c is compiled in the same way as other .c's.
4724         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
4725         * dump-id.h: Remove.
4726         * emacs.c: Move dump-id.h into dumper.h.
4727         * dumper.h: Move dump-id.h into dumper.h.
4728         * Makefile.in.in:
4729         Use standard .c.o rule for building dump-id.o.
4730         Remove preprocessor flags from link command.
4731         Add dump-id.o to ${otherobjs} if PDUMP.
4732
4733 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
4734
4735         Port FSF 20.7 syntax table improvements.
4736         * syntax.c.
4737         * syntax.h.
4738
4739         Fixups for new syntax table stuff.
4740         * dired.c: Include syntax.c.
4741         (Fdirectory_files): Initialize regex_match_object and
4742         regex_emacs_buffer.
4743         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
4744         and Fget_char_property.
4745
4746         Use ported FSF 20.7 syntax table improvements.
4747         * font-lock.c.
4748         * regex.c.
4749         * search.c.
4750         
4751 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4752
4753         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
4754         Unixware's enum boolean from sys/types.h.
4755
4756 2001-02-10  Martin Buchholz  <martin@xemacs.org>
4757
4758         Fix support for building with latest Purify.
4759         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
4760         (PURIFY_FLAGS): Likewise.
4761
4762 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4763
4764         * fileio.c (lisp_string_set_file_times): New.
4765         * fileio.c (Fcopy_file): Use it.
4766         Fixes bug:
4767         (copy-file filename non-ascii-filename t t)
4768         ==> No such file or directory, non-ascii-filename
4769
4770 2001-02-10  Martin Buchholz  <martin@xemacs.org>
4771
4772         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
4773         USHRT_MAX seems clearer than ~0 anyways.
4774
4775 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4776
4777         dumper improvements.  Inspired by Olivier.
4778         * dumper.c (pdump_max_align): New.
4779         * dumper.c (pdump_add_entry): Use pdump_max_align.
4780         * dumper.c (pdump_get_entry_list): Likewise.
4781         * dumper.c (pdump_scan_by_alignment): Likewise.
4782         Don't iterate through unnecessary alignments.
4783         * dumper.c (pdump_file_get): No need to align result of malloc().
4784         * dumper.c (pdump_mallocadr): Remove.  
4785         The result of malloc() is guaranteed to be maximally aligned.
4786         * dumper.c: s/elmt/elt/g;
4787         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
4788         * dumper.c (pdump_alert_undump_object): Likewise.
4789         * dumper.c (pdump_align_table): 
4790         Don't support alignments > 64.
4791         Store ALIGNOF's, not shift counts, in table.
4792
4793 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4794
4795         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
4796         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
4797         * systime.h: Use HAVE_UTIME.
4798         * sysdep.c (struct utimbuf): Remove.
4799         * sysdep.c (set_file_times): Prefer utime() to utimes().
4800         * config.h.in (HAVE_UTIME): New.
4801         * config.h.in (HAVE_UTIME_H): Remove.
4802         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
4803
4804 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4805
4806         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
4807
4808 2001-02-08  Martin Buchholz  <martin@xemacs.org>
4809
4810         * s/irix6-0.h: Use the standard system memmove, not bcopy.
4811
4812 2001-02-08  Martin Buchholz <martin@xemacs.org>
4813
4814         * XEmacs 21.2.44 "Thalia" is released.
4815
4816 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4817
4818         Fixes crashes in kill-emacs on some systems.
4819         * process-unix.c (unix_kill_child_process):
4820         It's OK for kill() to fail with ESRCH.
4821
4822 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4823
4824         Contortions to make .gdbinit tricks work on most systems.
4825         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4826         * alloc.c (dbg_valmask): Make non-const.
4827         * alloc.c (dbg_typemask): Make non-const.
4828         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4829         * alloc.c (dbg_valbits): Make non-const.
4830         * alloc.c (dbg_gctypebits): Make non-const.
4831         * .gdbinit (decode_object): Make it work with AIX cc.
4832
4833 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4834
4835         * elhash.c (make_general_lisp_hash_table):
4836         Use simpler and more efficient calloc to clear entries.
4837
4838 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4839
4840         * window.c (window_scroll): Work around an AIX C compiler bug.
4841         Fixes 'scroll-up' does nothing problem with xlC.
4842
4843 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4844
4845         * .gdbinit: Remove obsolete comment.
4846
4847 2001-01-31  Mike Alexander  <mta@arbortext.com>
4848
4849         * select.c (Fown_selection_internal): Set owned_p for device
4850         method correctly.
4851
4852 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4853
4854         Port to g++ 2.97.
4855         "not" cannot be used as a macro name as it is an operator in C++
4856         * config.h.in: Stop #defining `not'.
4857         * chartab.c (check_category_char): not ==> not_p
4858         * chartab.h: Likewise.
4859         * regex.c (re_match_2_internal): Likewise.
4860
4861 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4862
4863         * lisp-disunion.h: Fix up comments.
4864
4865 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4866
4867         * keymap.c (define_key_check_and_coerce_keysym):
4868         (syms_of_keymap):
4869         Support mouse-6 and mouse-7 bindings in the obvious way.
4870
4871 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4872
4873         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4874
4875 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4876
4877         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4878         Previous patch missed DEFVAR_INT_MAGIC.
4879         Make sure future DEFVAR_foo use correct types.
4880         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4881         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4882         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4883         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4884         * (DEFVAR_INT): Likewise.
4885         * redisplay.c (vertical_clip): Should be of type Fixnum.
4886         * redisplay.c (horizontal_clip): Likewise.
4887         * lisp.h (dump_add_opaque_int): New.
4888         (dump_add_opaque_fixnum): New.
4889
4890 2001-01-29  Andy Piper  <andy@xemacs.org>
4891
4892         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4893         since they can be eval'ed
4894
4895 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4896
4897         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4898         Oops, XEmacs redefines `class'.  Use `typename' instead.
4899
4900 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4901
4902         * dumper.c: Fix C++ compile errors.
4903
4904 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4905
4906         * tparam.c: Use correct prototypes.
4907
4908 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4909
4910         * sysproc.h: #include util.h for NetBSD's openpty.
4911
4912 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4913
4914         More 64-bit correctness.
4915         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4916         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4917         Fix up comments.
4918         This finally finishes the 64-bit SGI port.
4919         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4920         * symbols.c: Fix up comments and type casts.
4921         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4922         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4923         * symeval.h (Fixnum): New type.
4924         * symeval.h (symbol_value_type): Fix up comment.
4925
4926         * commands.h:
4927         * nt.c:
4928         * emacs.c:
4929         * data.c:
4930         * redisplay.c:
4931         * abbrev.c:
4932         * dired-msw.c:
4933         * event-Xt.c:
4934         * eldap.c:
4935         * window.c:
4936         * sound.c:
4937         * event-stream.c:
4938         * eval.c:
4939         * buffer.c:
4940         * mule-canna.c: A million DEFVAR_INTs here...
4941         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4942         * extents.c:
4943         * cmdloop.c:
4944         * lisp.h:
4945         * select-x.c:
4946         * console-x.h:
4947         * event-msw.c:
4948         * mule-wnnfns.c:
4949         * hpplay.c:
4950         * ralloc.c:
4951         * alloc.c:
4952         * keymap.c:
4953         * profile.c:
4954         s/int/Fixnum/g in DEFVAR_INT declarations.
4955
4956 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4957
4958         Port pdump to SGI alignment-sensitive environment.
4959         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4960         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4961         properly aligned.
4962         Define and use aligned reading and writing macros.
4963         Use buffered stdio instead of posix i/o for faster dumping.
4964         Eliminate kludgy 256 byte space for header.
4965         Read and write from dump file using structs for alignment safety.
4966         * dumper.c (pdump_align_stream): New.
4967         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4968         * dumper.c (PDUMP_READ_ALIGNED): New.
4969         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4970         * dumper.c (pdump_static_Lisp_Object): New struct.
4971         * dumper.c (pdump_static_pointer): New struct.
4972         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4973         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4974         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4975         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4976
4977         * dumper.c (pdump_backtrace):
4978         * dumper.c (pdump_get_indirect_count):
4979         * dumper.c (pdump_register_object):
4980         * dumper.c (pdump_register_struct):
4981         * dumper.c (pdump_reloc_one):
4982         * dumper.c (pdump_scan_by_alignment):
4983         * dumper.c (pdump_dump_from_root_struct_ptrs):
4984         * dumper.c (pdump_dump_opaques):
4985         * dumper.c (pdump_dump_rtables):
4986         * dumper.c (pdump_dump_from_root_objects):
4987         * dumper.c (pdump):
4988         * dumper.c (pdump_load_finish):
4989         Use aligned reading and writing.
4990
4991         * dumper.c (pdump_free): Make static.
4992         * dumper.c (pdump_hFile): Likewise.
4993         * dumper.c (pdump_hMap): Likewise.
4994
4995 2001-01-26  Martin Buchholz <martin@xemacs.org>
4996
4997         * XEmacs 21.2.43 "Terspichore" is released.
4998
4999 2001-01-25  Martin Buchholz  <martin@xemacs.org>
5000
5001         Type fiddling for window_config.saved_windows_count
5002         * window.c (struct window_config): 
5003         Make saved_windows_count member unsigned.
5004         * window.c (sizeof_window_config_for_n_windows): 
5005         Make parameter unsigned.
5006         * window.c (mark_window_config):
5007         * window.c (window_config_equal):
5008         * window.c (free_window_configuration):
5009         * window.c (Fset_window_configuration):
5010         * window.c (count_windows):
5011         * window.c (Fcurrent_window_configuration):
5012         * window.c (reinit_vars_of_window):
5013         Update all callers and users.
5014
5015 2001-01-25  Martin Buchholz  <martin@xemacs.org>
5016
5017         Alignment correctness for flexible arrays.
5018         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
5019         Make alignment-correct. Add interesting comments.
5020         * alloc.c (size_vector):
5021         * alloc.c (make_vector_internal):
5022         * alloc.c (make_bit_vector_internal):
5023         * alloc.c (sweep_bit_vectors_1):
5024         * fns.c (size_bit_vector):
5025         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
5026         * window.c (sizeof_window_config_for_n_windows): 
5027         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
5028
5029 2001-01-24  Martin Buchholz  <martin@xemacs.org>
5030
5031         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
5032
5033 2001-01-23  Andy Piper  <andy@xemacs.org>
5034
5035         * select.c (Fown_selection_internal): pass owned_p
5036
5037         * select-msw.c (mswindows_own_selection): New Signature.
5038
5039         * console.h (struct console_methods): add owned_p to
5040         _own_selection.
5041
5042         * select-x.c (x_own_selection): pass owned_p
5043         (hack_motif_clipboard_selection): use owned_p
5044         (vars_of_select_x): new variable -
5045         x_selection_strict_motif_ownership.
5046
5047 2001-01-23  Martin Buchholz  <martin@xemacs.org>
5048
5049         * specifier.h (specifier_data_offset): Remove pointless parens.
5050         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
5051
5052 2001-01-24  Martin Buchholz  <martin@xemacs.org>
5053
5054         Make Lisp_Object sizeof methods be alignment-correct.
5055         pdump must restore objects to the same alignment as the C compiler
5056         assumes.  It really matters on SGIs.
5057         * lstream.c (aligned_sizeof_lstream): New.
5058         (sizeof_lstream): Use aligned_sizeof_lstream.
5059         (Lstream_new): Likewise.
5060         * opaque.c (aligned_sizeof_opaque): New.
5061         (sizeof_opaque): Use aligned_sizeof_opaque.
5062         (make_opaque): Likewise.
5063         * specifier.c (aligned_sizeof_specifier): New.
5064         (sizeof_specifier): Use aligned_sizeof_specifier.
5065         (make_specifier_internal): Likewise.
5066
5067 2001-01-23  Martin Buchholz  <martin@xemacs.org>
5068
5069         * lstream.h (struct lstream): Use max_align_t for trailing data.
5070         * specifier.h (struct Lisp_Specifier): Likewise.
5071
5072 2001-01-22  Martin Buchholz  <martin@xemacs.org>
5073
5074         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
5075         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
5076         (CCL_SUSPEND): Likewise.
5077         (CCL_INVALID_CMD): Likewise.
5078         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
5079         (ccl_driver): Likewise.
5080         (CCL_WRITE_CHAR): Macro hygiene.
5081         (CCL_WRITE_STRING): Macro hygiene.
5082
5083 2001-01-22  Martin Buchholz  <martin@xemacs.org>
5084
5085         Port "portable" dumper to SunOS 4 and HP-UX.
5086         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
5087         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
5088         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
5089
5090 2001-01-22  Martin Buchholz  <martin@xemacs.org>
5091
5092         * lisp.h (ALIGNOF): A better definition for C++.
5093
5094 2001-01-20  Martin Buchholz  <martin@xemacs.org>
5095
5096         Macro hygiene.
5097         Fix printf warnings: int format, long int arg.
5098         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
5099         (PUSH_FAILURE_POINT): Use correct printf formats.
5100         (POP_FAILURE_POINT): Use correct printf formats.  
5101         Use do {...} while (0)
5102
5103 2001-01-20  Martin Buchholz <martin@xemacs.org>
5104
5105         * XEmacs 21.2.42 "Poseidon" is released.
5106
5107 2001-01-20  Martin Buchholz  <martin@xemacs.org>
5108
5109         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
5110
5111 2001-01-19  Martin Buchholz  <martin@xemacs.org>
5112
5113         De-kludgify FIXED_TYPE free list frobbing.
5114         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
5115         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
5116         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
5117         * alloc.c (Lisp_Free): New pseudo lisp object definition.
5118         * alloc.c (LRECORD_FREE_P): New.
5119         * alloc.c (MARK_LRECORD_AS_FREE): New.
5120         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
5121         * alloc.c (STRUCT_FREE_P): Deleted.
5122         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
5123         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
5124         * alloc.c (STRING_CHARS_FREE_P): New.
5125         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
5126         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
5127         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
5128         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
5129         * alloc.c (resize_string): Use new definitions.
5130         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
5131         * alloc.c (verify_string_chars_integrity): Use new definitions.
5132         * alloc.c (compact_string_chars): Use new definitions.
5133         * alloc.c: Update monster comments.
5134         * lrecord.h (lrecord_type): Add some new lrecord types for
5135         alloc.c's use.
5136
5137 2001-01-18  Martin Buchholz  <martin@xemacs.org>
5138
5139         Improve alignment hackery.
5140         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
5141         (max_align_t): Moved from opaque.h - general purpose.
5142         (ALIGN_PTR): Use size_t, not long.
5143         * opaque.h (max_align_t): Move to lisp.h.
5144
5145 2001-01-18  Norbert Koch  <nk@LF.net>
5146
5147         * gui.h: Fix and add prototypes to fix build problems.
5148
5149 2001-01-18  Martin Buchholz  <martin@xemacs.org>
5150
5151         temacs is going away, so `dump-temacs' is now a bad name.
5152         * .dbxrc (dump-temacs): Rename to `dmp'.
5153         * .gdbinit (dump-temacs): Rename to `dmp'.
5154
5155 2001-01-17  Andy Piper  <andy@xemacs.org>
5156
5157         * glyphs.c (print_image_instance): comment to make martin happy.
5158
5159         * glyphs-x.c (x_redisplay_widget): update faces after a frame
5160         change.
5161
5162         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
5163         activation.
5164         (mswindows_tab_control_redisplay): warning suppression.
5165
5166         * glyphs-widget.c (widget_update): re-write to cope with updated
5167         items.
5168         (widget_instantiate): use new gui_item functions.
5169         (tab_control_update): deleted.
5170         (progress_gauge_update): deleted.
5171         (image_instantiator_progress_guage): take out update reference.
5172         (image_instantiator_tree_view): ditto.
5173         (image_instantiator_tab_control): ditto.
5174
5175         * gui.c (widget_gui_parse_item_keywords): new function. Do things
5176         Right the new way.
5177         (gui_item_add_keyval_pair): re-write to cope with descriptors and
5178         return whether anything was changed.
5179         (update_gui_item_keywords): as it sounds.
5180
5181         * gui.h: declare widget_gui_parse_item_keywords.
5182
5183         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
5184         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
5185
5186 2001-01-17  Martin Buchholz <martin@xemacs.org>
5187
5188         * XEmacs 21.2.41 "Polyhymnia" is released.
5189
5190 2001-01-16  Didier Verna  <didier@xemacs.org>
5191
5192         * glyphs.c (image_instantiate): don't use fallbacks when
5193         instantiating a face's background pixmap by inheritance.
5194
5195 2001-01-14  Mike Sperber <mike@xemacs.org>
5196
5197         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
5198         Conditionalize accordingly.
5199
5200 2001-01-16  Martin Buchholz  <martin@xemacs.org>
5201
5202         * dumper.c (pdump_file_get): Fix a compiler warning.
5203
5204 2001-01-15  Martin Buchholz  <martin@xemacs.org>
5205
5206         Make Purify happy when pdumping.
5207         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
5208         iniitalizing all bits of new lisp object memory.
5209         * symbols.c (Fmake_local_variable): Likewise.
5210         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
5211         * symbols.c (Fdefvaralias): Likewise.
5212         * mule-charset.c (vars_of_mule_charset): Likewise.
5213
5214 2001-01-15  Martin Buchholz  <martin@xemacs.org>
5215         Add the `-nd' flag when running pre-dump operations under the debugger.
5216         * .dbxrc (run-temacs): Add `-nd'.
5217         * .dbxrc (update-elc): Likewise.
5218         * .dbxrc (dump-temacs): Likewise.
5219         * .gdbinit (run-temacs): Likewise.
5220         * .gdbinit (check-temacs): Likewise.
5221         * .gdbinit (update-elc): Likewise.
5222         * .gdbinit (dump-temacs): Likewise.
5223
5224 2001-01-14  Martin Buchholz  <martin@xemacs.org>
5225
5226         Allow building 64-bit executables on AIX with GNU malloc, e.g.
5227         export OBJECT_MODE=64
5228         configure --pdump --use-union-type=no
5229         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
5230         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
5231
5232         * miscplay.c (sndcnv8U_2mono):
5233         Avoid two uses of `++' in the same expression.
5234         Suppresses a GCC warning.
5235
5236 2001-01-13  Martin Buchholz  <martin@xemacs.org>
5237
5238         Make sure future compilers don't miscompile alloc.c.
5239         * alloc.c:
5240         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
5241         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
5242
5243 2001-01-12  Martin Buchholz  <martin@xemacs.org>
5244
5245         * dumper.c: A little post-pdump-rename comment fixup.
5246
5247 2001-01-09  Jerry James  <james@eecs.ku.edu>
5248
5249         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
5250
5251 2001-01-13  Martin Buchholz  <martin@xemacs.org>
5252
5253         * *.[ch]: Globally rename symbols using the following `pdump-rename'
5254         script:
5255         #!/bin/sh
5256         replace_symbol () {
5257           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
5258         }
5259
5260         replace_symbol pdump_wire_lists pdump_weak_object_chains
5261         replace_symbol pdump_wire_list dump_add_weak_object_chain
5262
5263         replace_symbol pdump_wires pdump_root_objects
5264         replace_symbol pdump_wire dump_add_root_object
5265
5266         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
5267         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
5268
5269         replace_symbol dumpstructinfos pdump_root_struct_ptrs
5270         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
5271         replace_symbol dumpstructinfo pdump_root_struct_ptr
5272         replace_symbol dumpstruct dump_add_root_struct_ptr
5273
5274         replace_symbol dumpopaque dump_add_opaque
5275         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
5276         replace_symbol dumpopaqueinfos pdump_opaques
5277         replace_symbol dumpopaqueinfo pdump_opaque
5278
5279         replace_symbol nb_structdump nb_root_struct_ptrs
5280         replace_symbol nb_opaquedump nb_opaques
5281
5282         replace_symbol align_table pdump_align_table
5283         replace_symbol dump_header pdump_header
5284
5285         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
5286         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
5287
5288
5289 2001-01-12  Martin Buchholz  <martin@xemacs.org>
5290
5291         * s/aix4.h: Keep the C for AIX compiler from overaggressively
5292         optimizing bytecount_to_charcount().
5293
5294 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
5295
5296         * config.h.in:
5297         (HAVE_DLFCN_H): Removed.
5298         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
5299
5300 2001-01-06  Martin Buchholz  <martin@xemacs.org>
5301
5302         Portable dumper maintainability improvements.
5303         * alloc.c (staticpro):
5304         * alloc.c (staticpro_nodump):
5305         * alloc.c (garbage_collect_1):
5306         * alloc.c (reinit_alloc_once_early):
5307         * alloc.c (init_alloc_once_early):
5308         * alloc.c: Move dumper functions to alloc.c.
5309         * dumper.c (pdump_backtrace):
5310         * dumper.c (pdump_dump_structs):
5311         * dumper.c (pdump_dump_opaques):
5312         * dumper.c (pdump_dump_rtables):
5313         * dumper.c (pdump_dump_wired):
5314         * dumper.c (pdump):
5315         * dumper.c (pdump_load_check):
5316         * dumper.c (pdump_load_finish):
5317         * dumper.c (pdump_file_unmap):
5318         * dumper.c (pdump_file_get):
5319         * dumper.c (pdump_resource_free):
5320         * dumper.c (pdump_resource_get):
5321         * dumper.c (pdump_file_free):
5322         * dumper.c (pdump_file_try):
5323         * dumper.c (pdump_load):
5324         Remove fixed size limits on staticpro(), staticpro_nodump(),
5325         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
5326         Remove custom code for dumping lrecord_implementations_table - use
5327         dumpopaque instead.
5328         Remove (most of the) custom code for dumping staticpros - dump it
5329         like any other dynarr.
5330
5331         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
5332         * dumper.c: Moved functions from alloc.c.
5333         * alloc.c (dumpstruct): Moved to dumper.c.
5334         * alloc.c (dumpopaque): Likewise.
5335         * alloc.c (pdump_wire): Likewise.
5336         * alloc.c (pdump_wire_list): Likewise.
5337
5338         * lisp.h (Dynarr_sizeof): New.
5339         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
5340         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
5341         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
5342
5343         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
5344         * lisp.h (dumpopaque): ditto.
5345         * lisp.h (pdump_wire): ditto.
5346         * lisp.h (pdump_wire_list): ditto.
5347
5348 2001-01-09  Martin Buchholz  <martin@xemacs.org>
5349
5350         * make-src-depend (PrintPatternDeps):
5351         Use `sort' to make output independent of perl version.
5352
5353 2001-01-08  Martin Buchholz  <martin@xemacs.org>
5354
5355         Port to Netbsd 1.5.
5356         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
5357         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
5358
5359 2001-01-03  Didier Verna  <didier@xemacs.org>
5360
5361         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
5362         that `focus_frame' is alive before thinking of calling
5363         `redisplay_redraw_cursor' on it.
5364
5365 2001-01-08  Martin Buchholz <martin@xemacs.org>
5366
5367         * XEmacs 21.2.40 is released.
5368
5369 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
5370
5371         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
5372
5373 2001-01-06  Martin Buchholz  <martin@xemacs.org>
5374
5375         * alloc.c (dbg_valmask): Make const.
5376         * alloc.c (dbg_typemask): Make const.
5377         * alloc.c (dbg_USE_UNION_TYPE): Make const.
5378         * alloc.c (dbg_valbits): Make const.
5379         * alloc.c (dbg_gctypebits): Make const.
5380
5381 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
5382
5383         * redisplay-x.c (x_bevel_area):
5384         redisplay.h (struct rune):
5385         Typo fixes in comments.
5386
5387 2001-01-05  Andy Piper  <andy@xemacs.org>
5388
5389         * glyphs-x.c (x_redisplay_widget): use size changed for offset
5390         adjustment.
5391
5392         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
5393
5394 2001-01-05  Martin Buchholz  <martin@xemacs.org>
5395
5396         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
5397
5398         * mule-ccl.c (stack_idx_of_map_multiple):
5399         Non const global data must not be initialized!
5400         Found by MIYASHITA Hisashi.
5401
5402 2001-01-02  Andy Piper  <andy@xemacs.org>
5403
5404         * frame.c (change_frame_size): make sure frame size is always
5405         marked as changed.
5406
5407         * glyphs.c (image_instance_layout): minor code reuse.
5408
5409         * window.c (Fcurrent_window_configuration): revert previous
5410         change.
5411
5412 2001-01-02  Martin Buchholz  <martin@xemacs.org>
5413
5414         * glyphs.h:
5415         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
5416
5417 2000-12-31  Andy Piper  <andy@xemacs.org>
5418
5419         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
5420         when widget gets unmapped.
5421
5422         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
5423         function. Make sure widgets losing focus don't just drop it.
5424         (handle_focus_event_1): record the widget with focus.
5425
5426 2000-12-31  Andy Piper  <andy@xemacs.org>
5427
5428         * window.c (allocate_window): use
5429         make_image_instance_cache_hash_table.
5430         (make_dummy_parent): ditto.
5431         (Fset_window_configuration): ditto.
5432
5433         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
5434
5435         * glyphs.c (process_image_string_instantiator): use
5436         INSTANTIATOR_TYPE.
5437         (get_image_instantiator_governing_domain): ditto.
5438         (normalize_image_instantiator): ditto.
5439         (instantiate_image_instantiator): ditto.
5440         (make_image_instance_1): ditto.
5441         (image_instantiate): ditto. Key on glyph *and* instantiator type.
5442         (instantiator_eq_equal): new function for use with instance hash
5443         tables.
5444         (instantiator_eq_hash): ditto.
5445         (make_image_instance_cache_hash_table): create a suitable hash
5446         table for storing image instances.
5447
5448         * elhash.h (hash_table_weakness): new internal weakness type
5449         HASH_TABLE_KEY_CAR_VALUE_WEAK.
5450         declare new functions.
5451
5452         * elhash.c (finish_marking_weak_hash_tables): introduce yet
5453         another weakness type for glyphs.
5454         (make_standard_lisp_hash_table): new function split out from
5455         make_general_lisp_hash_table.
5456         (make_lisp_hash_table): call make_standard_lisp_hash_table.
5457         (hash_table_instantiate): ditto.
5458         (Fmake_hash_table): ditto.
5459
5460 2000-12-31  Martin Buchholz <martin@xemacs.org>
5461
5462         * XEmacs 21.2.39 is released.
5463
5464 2000-12-29  Andy Piper  <andy@xemacs.org>
5465
5466         * menubar.c (menubar_visible_p_changed): signal the frame changed.
5467
5468         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
5469         the frame has changed so that we pick up geometry changes such as
5470         menubar visibility.
5471
5472 2000-12-28  Andy Piper  <andy@xemacs.org>
5473
5474         * lastfile.c (my_ebss): make a char array so we can pad the
5475         bss. Fixes cygwin unexec.
5476
5477         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
5478
5479 2000-12-26  Andy Piper  <andy@xemacs.org>
5480
5481         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
5482         comments and try and be more precise about a non-/SIGIO world.
5483         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
5484         SIGIO.
5485
5486         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
5487         we don't normalize to zero width or height.
5488
5489 2000-12-24  Andy Piper  <andy@xemacs.org>
5490
5491         * Makefile.in.in (ldflags): add -mwindows when appropriate.
5492
5493 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
5494
5495         * s/sco5.h: SCO 5 has pty support.
5496
5497 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
5498
5499         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
5500         input-method-xlib.c contains whole contents of input-method-xfs.c,
5501         so we can use input-method-xlib.c's code for USE_XFONTSET
5502         using #ifdefs.
5503         * input-method-xfs.c: removed.
5504
5505 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
5506
5507         * file-coding.h (enum coding_category_type): reorder enumerators to
5508         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
5509         (now one greater than largest real coding_category_type enumerator).
5510         * file-coding.c (coding_category_symbol, coding_category_by_priority,
5511         coding_category_system, fcd_descriptihon_1, decode_coding_category,
5512         Fcoding_category_list, Fset_coding_priority_list,
5513         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
5514         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
5515
5516 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5517
5518         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
5519         * redisplay-output.c (redisplay_output_window): Clear top of window
5520         when face is changed.
5521         * redisplay-x.c (x_redraw_exposed_window): Call
5522         redisplay_clear_top_of_window.
5523         * redisplay.h: Publish redisplay_clear_top_of_window.
5524
5525 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5526
5527         * buffer.c (Fkill_buffer): Map over all devices.
5528         * window.c (window_loop): Remove UNSHOW_BUFFER code.
5529         (list_windows): New function.
5530         (list_all_windows): Ditto.
5531         (Freplace_buffer_in_windows): Use them.
5532
5533 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5534
5535         * database.c (berkdb_subtype): Recognize new subtype `queue'.
5536         (Fopen_database): Use `db_create' instead of `db_open'.
5537         (syms_of_database): Initialize Qqueue.
5538
5539 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5540
5541         * buffer.c (common_init_complex_vars_of_buffer): Initialize
5542         buffer_local_face_property.
5543         * buffer.h (struct buffer): New member buffer_local_face_property.
5544         * window.c (Fset_window_buffer):  Mark window's face as changed
5545         when buffer has buffer local face.
5546         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
5547         * objects.c (color_after_change): Set buffer_local_face_property
5548         when locale of face specifier is buffer.
5549         * objects.c (font_after_change): Ditto.
5550         * objects.c (face_boolean_after_change): Ditto.
5551         * glyphs.c (image_after_change): Ditto.
5552
5553 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5554
5555         * nt.c (mswindows_fstat): Report file permissions, volume serial
5556         number, etc. Code adapted from FSF Emacs 20.7.
5557
5558 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5559
5560         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
5561         of stat when we don't have symbolic links, to make sure
5562         mswindows_stat is called on mswindows.
5563
5564 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5565
5566         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
5567
5568 2000-12-12  Martin Buchholz  <martin@xemacs.org>
5569
5570         * doprnt.c (emacs_doprnt_1): More printing fixes.
5571         Make printing of numbers compatible with libc and FSF Emacs.
5572         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
5573         Use the system printf to do most of the hard work of formatting,
5574         instead of doprnt_1().
5575         Calculate memory to allocate for format string.
5576         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
5577         (doprnt_1): Cleaner code and documentation.
5578
5579 2000-12-01  Jerry James  <james@eecs.ukans.edu>
5580
5581         * Makefile.in.in: Use the loop variable to install headers.
5582
5583 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5584
5585         * window.c (Fsplit_window): Don't invalidate face cache.
5586
5587 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5588
5589         * minibuf.c (Fall_completions): Undo the previous change
5590         which removed checking elements start with space.
5591
5592 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5593
5594         * mule-canna.c: Didier suppression.
5595
5596 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5597
5598         * mule-canna.c: rename static unsigned char buf[] to key_buffer
5599         (warning suppression).  Add English comment translations.
5600
5601 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5602
5603         * unexelfsgi.c (unexec): Better test for mmap failure.
5604
5605 2000-12-05  Martin Buchholz <martin@xemacs.org>
5606
5607         * XEmacs 21.2.38 is released.
5608
5609 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5610
5611         * redisplay.c (bar-cursor): Make a user variable.
5612
5613         * symsinit.h: Add init_postgresql_from_environment.
5614
5615 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5616
5617         * regex.c: Convert to clean C.
5618
5619 2000-12-05  Dan Holmsand  <dan@eyebee.com>
5620
5621         * realpath.c:
5622         Don't #include sysfile.h. Revert to duplicating PATH_MAX
5623         initialization.
5624         (sys_readlink): renamed to system_readlink to avoid conflict with
5625         the other sys_readlink.
5626
5627 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
5628
5629         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5630
5631 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
5632
5633         * postgresql.c (init_postgresql_from_environment): new function.
5634         (vars_of_postgresql): Move code initializing Lisp variables out and
5635         into init_postgresql_from_environment.
5636         emacs.c (main_1): Call init_postgresql_from_environment if and only
5637         if running a dumped XEmacs.
5638
5639 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5640
5641         * buffer.c: Make find-file-compare-truenames default to true on
5642         windows.
5643
5644         * realpath.c (win32_abs_start):
5645         (cygwin_readlink):
5646         (win32_readlink): New functions.
5647         (xrealpath): Return really real filenames on windows.
5648
5649         * fileio.c (Ffile_truename): Make file-truename work on windows.
5650
5651 2000-11-29  Didier Verna  <didier@xemacs.org>
5652
5653         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5654         * faces.c (update_face_cachel_data): use it.
5655         * faces.c (add_face_cachel): use it. Complete background pixmap
5656         frobbing in face cache if `update_face_cachel_data' has not done so.
5657
5658 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5659
5660         * search.c (string_match_1): Don't set last_thing_searched
5661         when search failed.
5662
5663 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5664
5665         * buffer.c: Include casetab.h
5666         (common_init_complex_vars_of_buffer): Use new case-table object.
5667         * buffer.h: Include casetab.h
5668         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5669         (DOWNCASE_TABLE_OF): Ditto.
5670         * bufslots.h: Remove char-tables and add case-table.
5671         * casetab.c: Include casetab.h
5672         (CASE_TABLE_P): Removed.
5673         (mark_case_table): New function.
5674         (allocate_case_table): New function.
5675         (Fcase_table_p): Use new case-table.
5676         (case_table_char): New function.
5677         (Fget_case_table): Ditto.
5678         (Fput_case_table): Ditto.
5679         (Fput_case_table_pair): Ditto.
5680         (Fcopy_case_table): Ditto.
5681         (Fcurrent_case_table): Return case-table.
5682         (Fstandard_case_table): Return case-table.
5683         (Fset_case_table): Fix doc-string.
5684         (set_case_table): Use case-table
5685         (syms_of_casetab): DEFSUBR new functions.
5686         (complex_vars_of_casetab): Set up standard case-table.
5687         * casetab.h: New file.
5688         * editfns.c: Include casetab.h
5689         (Fcompare_buffer_substrings): Use case-table.
5690         * inline.c: Include casetab.h
5691         * lisp.h: Remove bogus extern.
5692         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5693         * search.c: Include casetab.h
5694         (TRANSLATE_ASCII): Removed.
5695         (TRANSLATE): Unconditionally translate character.
5696         (looking_at_1): Use case-table.
5697         (string_match_1): Ditto.
5698         (fast_string_match): Ditto.
5699         (search_command): Ditto.
5700         (search_buffer): Separate boyer_moore.  Check whether
5701         boyer_moore is possible.
5702         (simple_search): New function.
5703         (boyer_moore): Separated from search_buffer. Translate char.
5704
5705 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5706
5707         * regex.c (RE_TR_ASCII): Removed.
5708         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5709         (PATFETCH): Call PATFETCH_RAW.
5710         (PATFETCH_RAW): Fetch Emchar.
5711         (PATUNFETCH): Decrement charptr.
5712         (GET_BUFFER_SPACE): Rename b to buf_end.
5713         (BUF_PUSH): Ditto.
5714         (BUF_PUSH_2): Ditto.
5715         (BUF_PUSH_3): Ditto.
5716         (EXTEND_BUFFER): Ditto.
5717         (SET_LIST_BIT): Ditto.
5718         (regex_compile): Ditto.  Translate non ASCII char.
5719         (compile_range): Ditto.
5720         (re_search_2): Ditto.
5721         (re_match_2_internal): Compare Emchar.
5722         (bcmp_translate): Ditto.
5723
5724 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5725
5726         * lisp.h (basic char/int typedefs):  comment improvement.
5727
5728 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5729
5730         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5731         unstomp inhibit_site_lisp.  Improve comments.
5732
5733 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5734
5735         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5736
5737 2000-11-28  Andy Piper  <andy@xemacs.org>
5738
5739         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5740         clipped display for windows in the gutter also.
5741         (redisplay_display_boxes_in_window_p): change semantics of return
5742         codes to be more intuitive.
5743
5744         * gutter.h: declare display_boxes_in_gutter_p.
5745
5746         * gutter.c (display_boxes_in_gutter_p): new function for
5747         redisplay.
5748
5749 2000-11-22  Andy Piper  <andy@xemacs.org>
5750
5751         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5752         autodetect domain.
5753
5754 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5755
5756         * callproc.c (Fold_call_process_internal):
5757         * gpm.c (Freceive_gpm_event):
5758         (tty_get_foreign_selection): Might be just warning supression.
5759         * fileio.c (Fwrite_region_internal):
5760         (Fset_visited_file_modtime):
5761         * keymap.c (event_matches_key_specifier_p):
5762         Initialize GCPROed variable.
5763
5764         * menubar-x.c (command_builder_find_menu_accelerator):
5765         Initialize before use.
5766
5767 2000-11-23  Andy Piper  <andy@xemacs.org>
5768
5769         * unexcw.c (unexec): make the resulting executable executable.
5770
5771 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5772
5773         * doc.c (get_doc_string):
5774         Use size_t, not int, for result of XSTRING_LENGTH.
5775
5776         * cmds.c (Fdelete_char):
5777         * cmds.c (Fpoint_at_eol):
5778         * cmds.c (Fself_insert_command):
5779         Use EMACS_INT, not int, for result of XINT.
5780         Someday, someone will want to insert more than 2**31 identical characters.
5781
5782         * cmds.c (Fdelete_char):
5783         * cmds.c (Fdelete_backward_char):
5784         * syntax.c (Fforward_word):
5785         * syntax.c (Fforward_comment):
5786         Make COUNT argument optional, for consistency with forward-char et al.
5787
5788 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5789
5790         * lisp.h:
5791         * print.c (long_to_string):
5792         Return a useful value: the pointer at end of data written.
5793
5794         * doprnt.c:
5795         Use `static const char * const' for constant strings.
5796         (union printf_arg): Delete `i', `ui' members.
5797         (get_doprnt_args):
5798         (emacs_doprnt_1):
5799         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5800         Do all printf-ing via the `l' specifier.
5801         Use EMACS_INT instead of int.
5802         Optimize.
5803
5804 2000-11-20  Didier Verna  <didier@xemacs.org>
5805
5806         * faces.c (update_face_cachel_data): don't frob the background
5807         pixmap when the window is being created. The face is needed but
5808         does not exist yet.
5809
5810 2000-11-20  Andy Piper  <andy@xemacs.org>
5811
5812         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5813         messing with a debug environment.
5814
5815 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5816
5817         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5818
5819 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5820
5821         * casetab.c (Fcase_table_p): Fix compile error and crash.
5822
5823 2000-11-18  Philip Aston  <philipa@mail.com>
5824
5825         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5826
5827 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5828
5829         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5830         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5831
5832 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5833
5834         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5835         * unexelf.c: Use HAVE_ELF_H.
5836         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5837         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5838         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5839         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5840         for testing.
5841         So this is an unexelfsgi.c from a different line of development.
5842
5843 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5844
5845         * regex.c (RE_TR_ASCII): New function.
5846         (RE_TRANSLATE): Call it.
5847
5848 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5849
5850         * buffer.h (TRT_TABLE_OF): Remove assert.
5851         (IN_TRT_TABLE_DOMAIN): Removed.
5852
5853 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5854
5855         * free-hook.c (log_gcpro):
5856         (show_gcprohist): Add support for GCPRO5.
5857
5858 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5859
5860         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5861
5862 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5863
5864         * symeval.h: Declare flush_all_buffer_local_cache.
5865
5866         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5867         (flush_buffer_local_cache): Added.
5868         (flush_all_buffer_local_cache): Added.
5869
5870         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5871
5872         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5873         (pdump_dump_data): Ditto.
5874         (pdump_reloc_one): Ditto.
5875         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5876         before dumping.
5877
5878
5879 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5880
5881         * buffer.c: Remove if 0'ed entry.
5882         * buffer.h: Rewrite TRT to use char-table.
5883         * bufslots.h: Remove mirror tables.
5884         * casetab.c: Remove mirror tables.
5885         (CASE_TABLE_P): New macro.
5886         (Fcase_table_p): Element of a case table is string or char-table.
5887         (make_mirror_trt_table): Removed.
5888         (set_case_table): Setup char-table from strings for backward
5889         compatibility.
5890         * dired.c (Fdirectory_files):
5891         * dired-msw.c: (mswindows_get_files):
5892         * lisp.h: Change prototype of re_pattern_buffer.
5893         * regex.c: (RE_TRANSLATE): New macro.
5894         (TRANSLATE_P): Ditto.
5895         Change translate to type RE_TRANSLATE_TYPE.
5896         * regex.h: Define RE_TRANSLATE_TYPE
5897         * search.c (TRANSLATE): New macro.
5898         (TRANSLATE_ASCII): New macro.
5899         Translate table is changed to Lisp_Object.
5900         (signal_failure): Inhibit return.
5901
5902 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5903
5904         * device-msw.c:
5905         * eldap.c:
5906         * event-Xt.c:
5907         * event-stream.c:
5908         * print.c:
5909         Do UNGCPRO before return.
5910
5911 2000-11-14  Martin Buchholz <martin@xemacs.org>
5912
5913         * XEmacs 21.2.37 is released.
5914
5915 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5916
5917         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5918         Add comments about discarded return value.
5919
5920 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5921
5922         * callint.c:
5923         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5924
5925 2000-10-27  Andy Piper  <andy@xemacs.org>
5926
5927         * gutter.c (Fset_default_gutter_position): default left and right
5928         gutters to visible.
5929         (calculate_gutter_size): calculate resonable heuristic for left
5930         and right gutter sizes.
5931         (specifier_vars_of_gutter): change left and right gutter sizes to
5932         autodetect.
5933         (calculate_gutter_size_from_display_lines): new function.
5934         (output_gutter): check for resizing on left and right gutters.
5935         (clear_gutter): don't special case top and left gutters.
5936         (specifier_vars_of_gutter): use new signature for
5937         set_specifier_caching.
5938
5939         * glyphs-x.c (x_redisplay_widget): spelling fix.
5940         * glyphs.c (specifier_vars_of_glyphs):
5941         * menubar.c (specifier_vars_of_menubar):
5942         * redisplay.c (specifier_vars_of_redisplay):
5943         * toolbar.c (specifier_vars_of_toolbar):
5944         * window.c (specifier_vars_of_window):
5945         * scrollbar.c (specifier_vars_of_scrollbar):
5946         (complex_vars_of_scrollbar): use new signature for
5947         set_specifier_caching.
5948
5949         * specifier.c (set_specifier_caching): include recompute flag.
5950         (recompute_one_cached_specifier_in_window): always recompute if
5951         flag set.
5952         (recompute_one_cached_specifier_in_frame): ditto.
5953
5954         * specifier.h (struct specifier_caching): add recompute flag.
5955
5956 2000-10-24  Andy Piper  <andy@xemacs.org>
5957
5958         * unexcw.c (copy_executable_and_dump_data_section): add new
5959         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5960         5.0 happy.
5961
5962 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5963
5964         * console-x.h (x_device): New member modifier_release_time.
5965         * event-Xt.c (x_handle_sticky_modifiers):
5966         Bound interval modifier keys are sticky.
5967         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5968         * events.h: extern it.
5969
5970 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5971
5972         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5973
5974 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5975
5976         * event-stream.c (execute_command_event): Preserve current_events
5977         and the like when event is misc-user-event.
5978         Inhibit quit during the call to maybe_echo_keys.
5979
5980 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5981
5982         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5983         symlink when buffer is killed.
5984         (inhibit_clash_detection): New variable.
5985
5986 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5987
5988         * console.c (Fset_input_method): Trigger redisplay on tty.
5989
5990 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5991
5992         * process.c (Fprocess_status): Revert to previous behavior:
5993         (process-status "nosuchprocess") ==> nil
5994
5995 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5996
5997         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5998         Work around another GCC 2.95.2 optimizer bug.
5999
6000 2000-11-02  Martin Buchholz  <martin@xemacs.org>
6001
6002         * process.c (Fget_process): Use LIST_LOOP_2.
6003         (kill_buffer_processes): Use LIST_LOOP_2.
6004
6005         * minibuf.c (Fall_completions):
6006         Delete old non-functional code for FSF fourth argument.
6007
6008         * frame.c (frame_matches_frame_spec):
6009         Renamed from `frame_matches_frametype'.  Update all callers.
6010         (device_matches_device_spec):
6011         Renamed from 'device_matches_console_spec'.  Update all callers.
6012
6013         * doc.c (Fsubstitute_command_keys):
6014         Remove buffer overflow crash.  Small code cleanups.
6015
6016         * casetab.c (check_case_table): Simpler code.
6017
6018         * window.c (Freplace_buffer_in_windows):
6019         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
6020         (and similar implementation) as Fdelete_windows_on.
6021         Update all callers.
6022
6023         * alloc.c (Fmake_list):
6024         * alloc.c (make_vector):
6025         * alloc.c (Fmake_vector):
6026         * alloc.c (make_bit_vector):
6027         * alloc.c (Fmake_bit_vector):
6028         * alloc.c (Fbit_vector):
6029         * alloc.c (Fmake_string):
6030         * alloc.c (Fpurecopy):
6031         * alloc.c (Fmemory_limit):
6032         * buffer.c:
6033         * buffer.c (Fget_buffer):
6034         * buffer.c (Fkill_buffer):
6035         * buffer.c (complex_vars_of_buffer):
6036         * bytecode.c (Fcompiled_function_stack_depth):
6037         * callint.c (Fprefix_numeric_value):
6038         * event-stream.c:
6039         * event-stream.c (Fread_key_sequence):
6040         * casetab.c:
6041         * casetab.c (Fcase_table_p):
6042         * casetab.c (check_case_table):
6043         * casetab.c (Fset_case_table):
6044         * casetab.c (Fset_standard_case_table):
6045         * chartab.c:
6046         * chartab.c (Fchar_table_type):
6047         * chartab.c (Freset_char_table):
6048         * chartab.c (Fget_char_table):
6049         * chartab.c (Fget_range_char_table):
6050         * chartab.c (Fput_char_table):
6051         * chartab.c (Fmap_char_table):
6052         * chartab.c (Fcategory_table_p):
6053         * chartab.c (Fcheck_category_at):
6054         * chartab.c (Fchar_in_category_p):
6055         * chartab.c (Fcategory_table):
6056         * chartab.c (Fcopy_category_table):
6057         * chartab.c (Fset_category_table):
6058         * chartab.c (Fcategory_designator_p):
6059         * chartab.c (Fcategory_table_value_p):
6060         * cmds.c (Fdelete_char):
6061         * cmds.c (Fdelete_backward_char):
6062         * cmds.c (Fself_insert_command):
6063         * cmds.c (Fself_insert_internal):
6064         * console.c (Fvalid_console_type_p):
6065         * console.c (Fcdfw_console):
6066         * console.c (Fconsole_type):
6067         * console.c (Fconsole_name):
6068         * console.c (Fconsole_device_list):
6069         * console.c (Fconsole_on_window_system_p):
6070         * data.c:
6071         * data.c (Feq):
6072         * data.c (Fold_eq):
6073         * data.c (Fsubr_interactive):
6074         * data.c (Fchar_to_int):
6075         * data.c (Fint_to_char):
6076         * data.c (Fsetcar):
6077         * data.c (Fsetcdr):
6078         * data.c (Fnumber_to_string):
6079         * data.c (Fstring_to_number):
6080         * data.c (Frem):
6081         * database.c (mark_database):
6082         * database.c (finalize_database):
6083         * database.c (Fdatabase_live_p):
6084         * database.c (Fdatabasep):
6085         * device-x.c (Fx_get_resource):
6086         * device.c (Fdfw_device):
6087         * dired.c:
6088         * dired.c (Ffile_name_completion):
6089         * dired.c (Ffile_name_all_completions):
6090         * dired.c (Fuser_name_completion):
6091         * dired.c (Fuser_name_completion_1):
6092         * dired.c (Fuser_name_all_completions):
6093         * doc.c (Fdocumentation):
6094         * doc.c (Fdocumentation_property):
6095         * doc.c (Fsubstitute_command_keys):
6096         * editfns.c:
6097         * editfns.c (Fchar_to_string):
6098         * editfns.c (Fstring_to_char):
6099         * editfns.c (Ftemp_directory):
6100         * editfns.c (Finsert_char):
6101         * editfns.c (Fbuffer_substring_no_properties):
6102         * editfns.c (Fnarrow_to_region):
6103         * editfns.c (Fchar_equal):
6104         * editfns.c (Fchar_Equal):
6105         * editfns.c (Ftranspose_regions):
6106         * emacs.c (Fdump_emacs):
6107         * eval.c (Fthrow):
6108         * eval.c (Fcommand_execute):
6109         * eval.c (Fautoload):
6110         * eval.c (Fbacktrace):
6111         * eval.c (Fbacktrace_frame):
6112         * events.c:
6113         * events.c (Fcopy_event):
6114         * events.c (Fcharacter_to_event):
6115         * events.c (Fevent_button):
6116         * events.c (Fevent_process):
6117         * extents.c:
6118         * extents.c (Fnext_extent_change):
6119         * extents.c (Fextent_property):
6120         * faces.c (Ffacep):
6121         * faces.c (Fmake_face):
6122         * file-coding.c:
6123         * file-coding.c (Fencode_shift_jis_char):
6124         * file-coding.c (Fencode_big5_char):
6125         * fileio.c (Ffile_name_directory):
6126         * fileio.c (Ffile_name_nondirectory):
6127         * fileio.c (Ffile_name_as_directory):
6128         * fileio.c (Fdirectory_file_name):
6129         * fileio.c (Ffile_truename):
6130         * fileio.c (Fsubstitute_in_file_name):
6131         * fileio.c (Ffile_modes):
6132         * fileio.c (Fset_file_modes):
6133         * fileio.c (Fset_default_file_modes):
6134         * fileio.c (Fverify_visited_file_modtime):
6135         * floatfns.c (Facos):
6136         * floatfns.c (Fasin):
6137         * floatfns.c (Fatan):
6138         * floatfns.c (Fcos):
6139         * floatfns.c (Fsin):
6140         * floatfns.c (Ftan):
6141         * floatfns.c (Fbessel_j0):
6142         * floatfns.c (Fbessel_j1):
6143         * floatfns.c (Fbessel_jn):
6144         * floatfns.c (Fbessel_y0):
6145         * floatfns.c (Fbessel_y1):
6146         * floatfns.c (Fbessel_yn):
6147         * floatfns.c (Ferf):
6148         * floatfns.c (Ferfc):
6149         * floatfns.c (Flog_gamma):
6150         * floatfns.c (Fexp):
6151         * floatfns.c (Fexpt):
6152         * floatfns.c (Flog):
6153         * floatfns.c (Flog10):
6154         * floatfns.c (Fsqrt):
6155         * floatfns.c (Fcube_root):
6156         * floatfns.c (Facosh):
6157         * floatfns.c (Fasinh):
6158         * floatfns.c (Fatanh):
6159         * floatfns.c (Fcosh):
6160         * floatfns.c (Fsinh):
6161         * floatfns.c (Ftanh):
6162         * floatfns.c (Fabs):
6163         * floatfns.c (Ffloat):
6164         * floatfns.c (Flogb):
6165         * floatfns.c (Fceiling):
6166         * floatfns.c (Ffloor):
6167         * floatfns.c (Fround):
6168         * floatfns.c (Ftruncate):
6169         * floatfns.c (Ffceiling):
6170         * floatfns.c (Fffloor):
6171         * floatfns.c (Ffround):
6172         * floatfns.c (Fftruncate):
6173         * fns.c (Fstring_equal):
6174         * fns.c (Fstring_lessp):
6175         * fns.c (concat2):
6176         * fns.c (concat3):
6177         * fns.c (vconcat2):
6178         * fns.c (vconcat3):
6179         * fns.c (Fsubstring):
6180         * fns.c (Fassoc):
6181         * fns.c (Fold_assoc):
6182         * fns.c (assoc_no_quit):
6183         * fns.c (Fassq):
6184         * fns.c (Fold_assq):
6185         * fns.c (assq_no_quit):
6186         * fns.c (Frassoc):
6187         * fns.c (Fold_rassoc):
6188         * fns.c (Frassq):
6189         * fns.c (Fold_rassq):
6190         * fns.c (rassq_no_quit):
6191         * fns.c (Fremassoc):
6192         * fns.c (remassoc_no_quit):
6193         * fns.c (Fremassq):
6194         * fns.c (remassq_no_quit):
6195         * fns.c (Fremrassoc):
6196         * fns.c (Fremrassq):
6197         * fns.c (remrassq_no_quit):
6198         * fns.c (Fsort):
6199         * fns.c (Fplist_get):
6200         * fns.c (Fplist_put):
6201         * fns.c (Fplist_remprop):
6202         * fns.c (Fplist_member):
6203         * fns.c (Flax_plist_get):
6204         * fns.c (Flax_plist_put):
6205         * fns.c (Flax_plist_remprop):
6206         * fns.c (Flax_plist_member):
6207         * fns.c (Fequal):
6208         * fns.c (Fold_equal):
6209         * fns.c (Frequire):
6210         * fns.c (Fbase64_encode_region):
6211         * fns.c (Fbase64_encode_string):
6212         * fns.c (Fbase64_decode_region):
6213         * frame.c:
6214         * frame.c (frame_matches_frame_spec):
6215         * frame.c (device_matches_device_spec):
6216         * frame.c (next_frame):
6217         * frame.c (previous_frame):
6218         * frame.c (Fnext_frame):
6219         * frame.c (Fprevious_frame):
6220         * frame.c (Fframe_property):
6221         * frame.c (Fset_frame_height):
6222         * frame.c (Fset_frame_size):
6223         * frame.h:
6224         * glyphs.c:
6225         * glyphs.c (if):
6226         * glyphs.c (decode_error_behavior_flag):
6227         * glyphs.c (Fmake_image_instance):
6228         * indent.c (Findent_to):
6229         * intl.c (Fignore_defer_gettext):
6230         * keymap.c (Fkeymapp):
6231         * keymap.c (Flookup_key):
6232         * lread.c:
6233         * lread.c (Fload_internal):
6234         * lread.c (Feval_buffer):
6235         * lread.c (Feval_region):
6236         * macros.c (Fexecute_kbd_macro):
6237         * marker.c (set_marker_internal):
6238         * marker.c (Fset_marker):
6239         * marker.c (set_marker_restricted):
6240         * marker.c (Fcopy_marker):
6241         * marker.c (noseeum_copy_marker):
6242         * menubar.c:
6243         * menubar.c (Fpopup_menu):
6244         * minibuf.c:
6245         * mule-charset.c (Fcharset_name):
6246         * mule-charset.c (Fchar_charset):
6247         * mule-charset.c (Fchar_octet):
6248         * mule-charset.c (Fsplit_char):
6249         * mule-wnnfns.c (Fwnn_open):
6250         * mule-wnnfns.c (Fwnn_dict_comment):
6251         * mule-wnnfns.c (Fwnn_quit_henkan):
6252         * mule-wnnfns.c (Fwnn_word_toroku):
6253         * mule-wnnfns.c (Fwnn_word_sakujo):
6254         * mule-wnnfns.c (Fwnn_word_use):
6255         * mule-wnnfns.c (Fwnn_hindo_set):
6256         * objects.c:
6257         * objects.c (Fmake_color_instance):
6258         * objects.c (Fmake_font_instance):
6259         * print.c (Fwrite_char):
6260         * process.c:
6261         * process.c (mark_process):
6262         * process.c (print_process):
6263         * process.c (get_process_from_usid):
6264         * process.c (Fprocessp):
6265         * process.c (Fprocess_live_p):
6266         * process.c (Fget_process):
6267         * process.c (Fget_buffer_process):
6268         * process.c (get_process):
6269         * process.c (Fprocess_id):
6270         * process.c (Fprocess_name):
6271         * process.c (Fprocess_command):
6272         * process.c (init_process_io_handles):
6273         * process.c (start_process_unwind):
6274         * process.c (Fstart_process_internal):
6275         * process.c (Fopen_multicast_group_internal):
6276         * process.c (Fset_process_window_size):
6277         * process.c (read_process_output):
6278         * process.c (send_process):
6279         * process.c (Fprocess_tty_name):
6280         * process.c (Fset_process_buffer):
6281         * process.c (Fprocess_buffer):
6282         * process.c (Fprocess_mark):
6283         * process.c (set_process_filter):
6284         * process.c (Fset_process_filter):
6285         * process.c (Fprocess_filter):
6286         * process.c (Fprocess_send_region):
6287         * process.c (Fprocess_send_string):
6288         * process.c (exec_sentinel):
6289         * process.c (Fset_process_sentinel):
6290         * process.c (Fprocess_sentinel):
6291         * process.c (status_notify):
6292         * process.c (Fprocess_status):
6293         * process.c (Fprocess_exit_status):
6294         * process.c (process_send_signal):
6295         * process.c (Fprocess_send_eof):
6296         * process.c (deactivate_process):
6297         * process.c (remove_process):
6298         * process.c (Fdelete_process):
6299         * process.c (kill_buffer_processes):
6300         * process.c (Fprocess_kill_without_query):
6301         * process.c (Fprocess_kill_without_query_p):
6302         * rangetab.c:
6303         * rangetab.c (Fget_range_table):
6304         * rangetab.c (Fput_range_table):
6305         * rangetab.c (Fremove_range_table):
6306         * rangetab.c (Fclear_range_table):
6307         * search.c:
6308         * search.c (Fskip_chars_forward):
6309         * search.c (Fskip_chars_backward):
6310         * search.c (Fskip_syntax_forward):
6311         * search.c (Fskip_syntax_backward):
6312         * search.c (search_command):
6313         * search.c (Freplace_match):
6314         * search.c (Fregexp_quote):
6315         * select.c (Fown_selection_internal):
6316         * select.c (Fselection_owner_p):
6317         * select.c (Fselection_exists_p):
6318         * select.c (Fget_selection_internal):
6319         * specifier.c:
6320         * symbols.c:
6321         * symbols.c (Fintern):
6322         * symbols.c (Fintern_soft):
6323         * symbols.c (Funintern):
6324         * symbols.c (Fapropos_internal):
6325         * symbols.c (Fset_default):
6326         * syntax.c:
6327         * syntax.c (Fsyntax_table_p):
6328         * syntax.c (Fcopy_syntax_table):
6329         * syntax.c (Fset_syntax_table):
6330         * syntax.c (Fchar_syntax):
6331         * syntax.c (syntax_match):
6332         * syntax.c (Fmatching_paren):
6333         * syntax.c (Fforward_word):
6334         * syntax.c (scan_lists):
6335         * syntax.c (Fscan_lists):
6336         * syntax.c (Fscan_sexps):
6337         * syntax.c (Fparse_partial_sexp):
6338         * toolbar.c (Fcheck_toolbar_button_syntax):
6339         * tooltalk.doc:
6340         * window.c:
6341         * window.c (Fwindowp):
6342         * window.c (Fwindow_live_p):
6343         * window.c (Fwindow_point):
6344         * window.c (Fdelete_window):
6345         * window.c (Fnext_window):
6346         * window.c (Fprevious_window):
6347         * window.c (Fother_window):
6348         * window.c (window_loop):
6349         * window.c (Fget_lru_window):
6350         * window.c (Fsplit_window):
6351         * window.c (Fenlarge_window):
6352         * window.c (Fenlarge_window_pixels):
6353         * window.c (Fshrink_window):
6354         * window.c (Fshrink_window_pixels):
6355         * window.c (change_window_height):
6356         * window.c (Fwindow_configuration_p):
6357         * window.c (Fcurrent_window_configuration):
6358         * window.h:
6359         * casefiddle.c (casify_object):
6360         * casefiddle.c (Fupcase):
6361         * casefiddle.c (Fdowncase):
6362         * casefiddle.c (Fcapitalize):
6363         * casefiddle.c (Fupcase_initials):
6364         * casefiddle.c (casify_region_internal):
6365         * casefiddle.c (casify_region):
6366         * casefiddle.c (Fupcase_region):
6367         * casefiddle.c (Fdowncase_region):
6368         * casefiddle.c (Fcapitalize_region):
6369         * casefiddle.c (Fupcase_initials_region):
6370         * casefiddle.c (Fupcase_word):
6371         * casefiddle.c (Fdowncase_word):
6372         * casefiddle.c (Fcapitalize_word):
6373         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
6374         Replace 0 with '\0' when working with bytes.
6375         Replace initial "(" with "\(" in docstrings.
6376
6377 2000-11-01  Martin Buchholz  <martin@xemacs.org>
6378
6379         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
6380
6381         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
6382
6383 2000-10-31  Martin Buchholz  <martin@xemacs.org>
6384
6385         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
6386
6387 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
6388
6389         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
6390         correctly.
6391
6392 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
6393
6394         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
6395         (inhibit_auto_save_session): New variable.
6396         (vars_of_fileio): Declare and initialize them.
6397         * fileio.c (Fdo_auto_save): Don't create session file if
6398         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
6399
6400 2000-10-31  Martin Buchholz  <martin@xemacs.org>
6401
6402         * sgiplay.c (play_internal): C++ compilability.
6403         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
6404         * callproc.c (Fold_call_process_internal):
6405         Remove unused vars `env', `first'.
6406         * scrollbar.c (update_scrollbar_instance):
6407         #### unused var `current_window'.
6408         * redisplay-tty.c: Put currently unused vars insert_mode_on,
6409         etc. within #ifdef NOT_YET.
6410         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
6411         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
6412         * specifier.c (specifier_instance):
6413         #### unused var `tag'.
6414         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
6415
6416 2000-10-27  Martin Buchholz  <martin@xemacs.org>
6417
6418         * fns.c (Fbutlast):
6419         * fns.c (list_sort):
6420         * fns.c (Ffillarray):
6421         * fns.c (bytecode_nconc2):
6422         * fns.c (Fnconc):
6423         * fns.c (mapcar1):
6424         * fns.c (Fmapconcat):
6425         Be pedantically 64-bit correct.  For the time when someone will
6426         want to have a list with length > 2**32.
6427
6428         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6429         Work around MIPSpro compiler bug.
6430
6431         * process-unix.c (unix_kill_child_process): Add snarky comment.
6432         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
6433
6434         * config.h.in: Oops, _getpt ==> _getpty
6435
6436 2000-10-26  Martin Buchholz  <martin@xemacs.org>
6437
6438         * config.h.in:
6439         * regex.c:
6440         Use void*, not char*, as return type of alloca().
6441
6442         * alloc.c (free_marker): Side effect inside assert expression!
6443
6444 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
6445
6446         * mule-charset.c (Fset_charset_ccl_program): To check
6447         if the given ccl program is valid, use setup_ccl_program()
6448         instead of CHECK_VECTOR().
6449         (Fmake_charset): Likewise.
6450
6451 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
6452
6453         * faces.c (get_extent_fragment_face_cache_index):
6454         Fix cachel.merged_faces memory leak.
6455
6456 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
6457
6458         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
6459         Reset MSB of octets obtained by DECODE_SJIS
6460         because of the incompatibility with Emacs.
6461         (ccl_driver)<CCL_ENCODE_SJIS>:
6462         Set MSB of octets before passing them to
6463         ENCODE_SJIS because of the incompatibility
6464         with Emacs.
6465
6466 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
6467
6468         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
6469         (DECLARE_LRECORD): Undo the last change.
6470         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
6471
6472 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
6473
6474         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
6475         the implementation to lrecord_implementations_table.
6476
6477 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
6478
6479         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
6480         initial value of `lrecord_type_##c_name' and
6481         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
6482         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
6483         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
6484         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
6485         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
6486
6487 2000-10-17  Martin Buchholz  <martin@xemacs.org>
6488
6489         * miscplay.c (sndcnv8S_2mono):
6490         (sndcnv2monounsigned):
6491         (sndcnvULaw_2linear):
6492         (sndcnv16swap):
6493         Remove implementation-defined behavior.
6494
6495 2000-10-12  Martin Buchholz  <martin@xemacs.org>
6496
6497         * input-method-xlib.c: Warning suppression.
6498
6499 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
6500
6501         * mule-ccl.c: Sync up with Emacs 21.0.90.
6502         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
6503         Do nothing.
6504         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
6505         Likewise.
6506         (ccl_driver[WriteMultibyteChar2]): Bug fix.
6507         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
6508         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
6509         leading char belongs to official 2-dimensional charset.
6510         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
6511         write the given character as is.  Otherwise,
6512         if it is a multibyte char, convert it by
6513         non_ascii_set_charptr_emchar, then write it.
6514         (CCL_WRITE_STRING): Likewise.
6515         (ccl_get_compiled_code): New function.
6516         (setup_ccl_program): When ccl_prog is invalid,
6517         return -1.
6518         (Fregister_code_conversion_map): New function.
6519         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
6520
6521         * mule-ccl.h: Sync up with Emacs 21.0.90.
6522         (Fregister_ccl_program): export it.
6523
6524         * redisplay-msw.c (separate_textual_runs):
6525         If ccl program is not valid, don't do ccl conversion.
6526
6527         * redisplay-x.c (separate_textual_runs): Ditto.
6528
6529         * file-coding.c (Fmake_coding_system):
6530         When type is ccl and value is vector, register it
6531         with a proper symbol.  And checks whether the
6532         given ccl program is valid.
6533         (mule_decode): When calling ccl_driver, if src indicates
6534         NULL pointer, set an empty string instead.
6535         (mule_encode): Likewise.
6536
6537 2000-10-11  Martin Buchholz  <martin@xemacs.org>
6538
6539         The following large batch of changes gets us back to a state of
6540         C++ compilability.  Extbyte is now a char, which means that
6541         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
6542
6543         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
6544
6545         * sound.c (Fplay_sound): Type correctness.
6546
6547         * select-x.c (hack_motif_clipboard_selection): Type correctness.
6548         (x_get_window_property): Type correctness.
6549         (receive_incremental_selection): unsigned char ==> Extbyte
6550         (selection_data_to_lisp_data): unsigned char ==> Extbyte
6551         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
6552         (Fx_store_cutbuffer_internal): Type correctness.
6553
6554         * process-unix.c (try_to_initialize_subtty): Type correctness.
6555
6556         * objects-x.c (x_print_color_instance): Type correctness.
6557         (x_print_font_instance): Type correctness.
6558         (x_list_fonts): SExtbyte ==> Extbyte.
6559         (valid_x_font_name_p): SExtbyte ==> Extbyte.
6560         (x_find_charset_font): SExtbyte ==> Extbyte.
6561         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
6562         (truename_via_XListFonts): SExtbyte ==> Extbyte.
6563         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
6564         Use bufbyte_strcmp.
6565
6566         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
6567         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
6568         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
6569         (BYTE_C0_P): Use bit ops for char-signedness safety.
6570         (BYTE_C1_P): Use bit ops for char-signedness safety.
6571         (CHARSET_BY_LEADING_BYTE):
6572         (CHARSET_BY_ATTRIBUTES):
6573         Always use inline function.
6574         Use type_checking_assert.
6575         Hide chlook.
6576
6577         * mule-charset.c (non_ascii_charptr_copy_char):
6578         Modify to work with both ASCII and non-ASCII characters.
6579         Improve docs and variable names.
6580         Replace over-clever fall-through switch with a simple loop.
6581         (Lstream_get_emchar_1):
6582         Replace over-clever fall-through switch with a simple loop.
6583
6584         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6585         Warning suppression.
6586
6587         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6588         the return value of Lstream_getc, which could be EOF as well.
6589
6590         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6591
6592         * lisp.h: Make Extbyte a char, not unsigned char, so that external
6593         APIs can be used on Extbytes without casts.  Risky!
6594         (SExtbyte): Remove.
6595         (UExtbyte): Remove.
6596
6597         * input-method-xlib.c (XIM_init_device):
6598         Use Xlib.h instead of IntrinsicP.h.
6599         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6600         which will break in X11R7.
6601         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6602         to call XRegisterIMInstantiateCallback with correct types.
6603
6604         * gui-x.c (button_item_to_widget_value): Type correctness.
6605
6606         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
6607
6608         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6609         (xbm_instantiate_1): Type correctness.
6610         (BUILD_GLYPH_INST):  Type correctness.
6611
6612         * fileio.c (Fsubstitute_in_file_name): Type correctness.
6613
6614         * file-coding.c:
6615         (decode_coding_sjis):
6616         (decode_coding_big5):
6617         (decode_coding_ucs4):
6618         (decode_coding_utf8):
6619         (decode_coding_iso2022):
6620         (decode_coding_no_conversion):
6621         Make all decoding functions take an Extbyte * arg.
6622         (encode_coding_sjis):
6623         (encode_coding_big5):
6624         (encode_coding_ucs4):
6625         (encode_coding_utf8):
6626         (encode_coding_iso2022):
6627         (encode_coding_no_conversion):
6628         Make all encoding functions take a Bufbyte * arg.
6629         Use size_t instead of unsigned int for memory sizes.
6630         Only cast to unsigned char whenever dereferencing Extbyte *.
6631
6632         * doc.c (unparesseuxify_doc_string): Type correctness.
6633
6634         * console-x.c (split_up_display_spec):
6635         Rewrite without using details of internal string representation.
6636         (x_semi_canonicalize_device_connection): Type correctness.
6637
6638         * config.h.in:
6639         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6640         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6641         (HAVE_XFREE386): Removed.
6642
6643         * buffer.h (DEC_CHARPTR): `const' correctness.
6644         (bufbyte_strcmp): New.
6645         (bufbyte_memcmp): New.
6646
6647         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6648
6649         * buffer.h (XCHAR_OR_CHAR_INT):
6650         Always use inline function.
6651         Remove redundant type checking assert() - XINT will abort quite nicely.
6652
6653 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6654
6655         * search.c (Freplace_match): Set newtext to an empty string.
6656
6657 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6658
6659         * s/decosf1-3.h: Remove #include of stropts.h
6660         * s/ptx.h: Remove #include of stropts.h
6661         * s/usg5-4.h: Remove #include of stropts.h
6662         * sysproc.h:
6663         * config.h.in:
6664         Use stropts.h, not sys/stropts.h.
6665         Use strtio.h, not sys/strtio.h.
6666
6667 2000-10-04  Martin Buchholz <martin@xemacs.org>
6668
6669         * XEmacs 21.2.36 is released.
6670
6671 2000-09-21  Andy Piper  <andy@xemacs.org>
6672
6673         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6674         changes still involve copying the widget tree.
6675         (update_widget_face): make sure a change is register in the widget
6676         tree. Call update_tab_widget_face appropriately.
6677         (update_tab_widget_face): ditto.
6678         (x_tab_control_redisplay): make sure non-structural changes still
6679         involve copying the widget tree.
6680
6681 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6682
6683         * lread.c (locate_file): Check the path element is non-nil.
6684
6685 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6686
6687         * lisp.h: Warning suppression for SCO compilers.
6688
6689         * redisplay-tty.c (reset_tty_modes): Fix crash.
6690         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6691
6692 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6693
6694         Big signal/process handling overhaul.  Bugs fixed:
6695         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6696         M-x comint-kill-subjob should work for both values nil and t of
6697         process-connection-type. It was broken on most platforms.
6698         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6699         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6700         * process-unix.c: Signal/Process handling overhaul.
6701         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6702         (allocate_pty): Use all available modern methods of allocating
6703         ptys, falling back to old style BSD allocation as a last resort.
6704         Use allegedly more secure Unix98 pty allocation by default.
6705         (allocate_pty_the_old_fashioned_way): New. the last resort.
6706         (unix_create_process): Push ptem, ldterm, ttcompat where
6707         available.  Autoconfiscate.
6708         (try_to_initialize_subtty): New.
6709         (unix_kill_child_process): Proper signal handling for ptys on most
6710         platforms, using special knowledge of AIX, BSD, etc...
6711         (unix_create_process): Always disconnect_controlling_terminal() for
6712         subprocesses, whether using ptys or not.
6713         * process.h: Remove old getpt-dependent PTY code.
6714         * process.c (Fprocess_send_signal): New, obvious generic function.
6715         (decode_signal): New.
6716         (Finterrupt_process):
6717         (Fkill_process):
6718         (Fquit_process):
6719         (Fstop_process):
6720         (Fcontinue_process):
6721         (Fsignal_process): Use decode_signal.
6722         (process_send_signal):
6723         Many docstring corrections.
6724         Allow any signal to be sent to a process object.
6725         * config.h.in: Add symbols for big signal/process overhaul.
6726         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6727         * sysproc.h: Include process-related headers, where available:
6728         sys/stropts.h sys/strtio.h pty.h libutil.h
6729         * s/irix4-0.h:
6730         * s/irix5-0.h:
6731         * s/cygwin32.h:
6732         * s/gnu.h:
6733         * s/linux.h:
6734         * s/hpux.h:
6735         * s/aix3-1.h:
6736         Remove old S&M pty stuff.
6737         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6738         * systty.h: Simplify cpp hackery, improve comments.
6739         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6740
6741         * editfns.c (Fformat_time_string):
6742         Be a little more paranoid with the return value of ctime.
6743
6744         * fileio.c (check_executable):
6745         (check_writable):
6746         Use symbolic constants X_OK, W_OK.
6747
6748         * console-x.c (split_up_display_spec): Fix a warning.
6749
6750 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6751
6752         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6753         * ntproc.c (sys_spawnve): make_string ==> build_string
6754         Small clarity improvements.
6755
6756 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6757
6758         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6759
6760         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6761
6762         * config.h.in (HAVE_STRCASECMP): Remove.
6763
6764 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6765
6766         * redisplay-output.c (redisplay_output_pixmap):
6767         Cleaner and possibly more 64-bit correct code.
6768
6769 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6770
6771         * dumper.c (pdump_load_finish): move restoration of
6772         `noninteractive1' to emacs.c (main_1).
6773         * emacs.c (main_1): protect LISP-visible command-line flags
6774         from pdump_load().
6775
6776 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6777
6778         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6779         DUMP_TARGET instead of literal program names.
6780
6781 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6782
6783         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6784
6785 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6786
6787         * *: Spelling mega-patch
6788
6789 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6790
6791         * fns.c (bad_bad_turtle):
6792         Delete "Eek!" comment, since we fixed the bug to which it refers.
6793
6794 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6795
6796         * alloca.c: Replace REGISTER with register.
6797
6798 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6799
6800         * file-coding.c (ucs_to_char): Use countof.
6801
6802 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6803
6804         * file-coding.c: (ucs_to_char):
6805         (complex_vars_of_file_coding):
6806         Use countof instead of sizeof.
6807         Use CHECK_NATNUM instead of CHECK_INT.
6808
6809         * sysdep.c (strcasecmp): Remove.
6810         * device-x.c (ascii_strcasecmp): New.
6811         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6812         Avoid using non-standard non-portable strcasecmp.
6813
6814 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6815
6816         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6817         * font-lock.c: remove reference to emacsfns.h.
6818         * search.c: small doc improvement.
6819         * event-Xt.c: correct file names in comments.
6820         * console-x.h Correct file names in comments.
6821         * frame.c: Correct file names in comments.
6822         * event-stream.c: remove Energize from comments.
6823
6824 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6825
6826         * symeval.h (DEFERROR_STANDARD):
6827         (DEFERROR):
6828         (DEFSYMBOL):
6829         (DEFSYMBOL_NO_DUMP):
6830         (DEFSYMBOL_MULTIWORD_PREDICATE):
6831         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6832         (DEFKEYWORD):
6833         The construct &##name is not sensible C.
6834         Fixes compilation errors with Unixware native compiler.
6835
6836 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6837
6838         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6839         (next_frame_internal): Removed.  We now just have next_frame.
6840         (next_frame):
6841         Write a simpler and cleaner one-pass algorithm.
6842         Remove called_from_delete_device arg and #ifdefed-out code.
6843         (previous_frame):
6844         Renamed from prev_frame.  Update callers.
6845         Cleaned up to have an analogous implementation to next_frame.
6846         (other_visible_frames_internal): Remove the
6847         called_from_delete_device bogus arg, and hence, remove this
6848         function.  Just use other_visible_frames().
6849
6850         * window.c (Fnext_window):
6851         Prettify docstring.
6852         Since next_frame() is guaranteed to return a frame, remove check
6853         for nil inserted in previous patch.
6854         (Fprevious_window):
6855         Prettify docstring.
6856         Make code look more like Fnext_window.
6857         (window_loop):
6858         Respect the `console' arg when iterating through windows.
6859         Fixes bug: (get-buffer-window buffer t device) not respecting
6860         the `device' arg.
6861         This function needs more work, as others have pointed out.
6862
6863         * frame.h: Rename prev_frame to previous_frame.
6864         device_matches_console_spec no longer takes a `frame' arg.
6865
6866         * s/gnu.h:
6867         * s/linux.h:
6868         * s/hpux.h:
6869         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6870         From "Golubev I. N." <gin@mo.msk.ru>.
6871
6872         * make-src-depend: Fix typo.
6873
6874 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6875
6876         * window.c (Fnext_window):
6877         next_frame() might return nil, not a frame.
6878         Fixes this crash:
6879         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6880
6881         * frame.c (next_frame_internal):
6882         We've passed a frame if we've passed its device.
6883         Fixes this crash:
6884         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6885 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6886
6887 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6888
6889         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6890         Allow option to suppress accelerators in menu/dialog items.
6891         (populate_or_checksum_helper): Pass dialog title through above.
6892
6893 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6894
6895         * event-msw.c (mswindows_key_to_emacs_keysym):
6896         Add "pause" key, fix "menu" key.
6897
6898 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6899
6900         * eval.c (reinit_vars_of_eval):
6901         Increase max_lisp_eval_depth to 1000,
6902         required for thai-xtis.el to byte-compile under some circumstances.
6903
6904 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6905
6906         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6907         From Kenichi Handa.
6908
6909 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6910
6911         * make-src-depend: Make the generated Makefiles smaller.
6912
6913         * s/hpux.h (SETUP_SLAVE_PTY):
6914         Provide a %d in the format string for the errno argument.
6915
6916         * editfns.c (Ftemp_directory):
6917         Warning fix.
6918         Avoid buffer overrun on very long file name.
6919
6920         * input-method-xlib.c (XIM_init_device):
6921         6th parameter of XRegisterIMInstantiateCallback has different
6922         pointer types on different OSes, so simply cast to (void *).
6923
6924         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6925
6926         * sysdll.c (dll_open):
6927         shl_load will hang hard if passed a NULL filename.
6928         Simply return NULL for compatibility with dlopen.
6929         * sysdll.c: Conform to XEmacs coding standards.
6930
6931         * sysdep.c (get_pty_max_bytes):
6932         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6933
6934 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6935
6936         * tooltalk.c: Add #include <syssignal.h>
6937
6938 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6939
6940         * s/hpux.h: Don't use undefined function sigunblock().
6941
6942 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6943
6944         * config.h.in: Add HAVE_BALLOON_HELP.
6945         * emacs.c: Use HAVE_BALLOON_HELP.
6946         * Makefile.in.in (x_objs):
6947         Make Balloon Help conditional on finding shape.h.
6948
6949 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6950
6951         * syntax.c (regex_emacs_buffer_p): New variable.
6952         * syntax.h (regex_emacs_buffer_p): extern.
6953         * search.c (looking_at_1):
6954         (string_match_1):
6955         (fast_string_match):
6956         (search_buffer): Set regex_emacs_buffer_p.
6957         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6958         when before_dot, at_dot, after_dot.
6959
6960 2000-08-23  Andy Piper  <andy@xemacs.org>
6961
6962         * gui-x.c (popup_selection_callback): Only set action_occurred
6963         when we really have an image instance.
6964         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6965
6966 2000-08-23  Andy Piper  <andy@xemacs.org>
6967
6968         * gui-msw.c (mswindows_handle_gui_wm_command): set
6969         action_occurred.
6970         * gui-x.c (popup_selection_callback): ditto.
6971
6972         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6973         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6974         (struct Lisp_Image_Instance): add action_occurred flag.
6975
6976         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6977         (image_instance_changed): ditto.
6978         (reset_frame_subwindow_instance_cache): only unmap windows - do
6979         not remove them from the cache also.
6980
6981         * glyphs-widget.c (tab_control_update): better debug.
6982         (progress_gauge_update): ditto.
6983         (layout_update): ditto.
6984         (layout_instantiate): ditto.
6985         (tab_control_order_only_changed): cope with null pending items.
6986
6987         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6988         debug. Force selection of an item when an action occurred. Cope
6989         with null pending_items.
6990         (mswindows_progress_gauge_redisplay): better debug.
6991         * glyphs-x.c (x_tab_control_redisplay): ditto.
6992
6993         * redisplay.c (redisplay_frame): reset the frame cache if the
6994         frame is garbaged.
6995
6996         * window.c (Fset_window_configuration): potentially re-enable
6997         frame cache reset.
6998         (window_unmap_subwindows): need to finalize instances here since
6999         it is only used in mark_window_as_deleted.
7000
7001 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
7002
7003         * nas.c (SndOpenDataForReading):
7004         nas.c (WaveOpenDataForReading):
7005         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
7006         Somehow escaped from the 2000-08-14 patch.
7007
7008 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7009
7010         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
7011         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
7012
7013 2000-08-21  Andy Piper  <andy@xemacs.org>
7014
7015         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
7016         window if it is not already displayed.
7017
7018         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
7019         it is not already displayed.
7020
7021         * window.c (Fset_window_configuration): don't reset the frame
7022         cache.
7023
7024         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
7025         instances from the frame cache if we are actually finalizing them.
7026         (reset_frame_subwindow_instance_cache): reset frame cache only
7027         after unmapping everything.
7028         (map_subwindow): set displayed flag after mapping.
7029
7030 2000-08-21  Martin Buchholz  <martin@xemacs.org>
7031
7032         * data.c (indirect_function):
7033         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
7034
7035         * eval.c (function_argcount):
7036         Use original function when signaling errors.
7037
7038 2000-08-18  Andy Piper  <andy@xemacs.org>
7039
7040         * frame.c (delete_frame_internal): use new
7041         free_frame_subwindow_instances name.
7042
7043         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
7044         (add_tab_item): make return type correct.
7045         (mswindows_tab_control_instantiate): assert index of tab.
7046         (mswindows_tab_control_redisplay): Re-code to use
7047         gui_item_equal_sans_selected and gui_item_list_find_selected.
7048
7049         * glyphs-widget.c (tab_control_update): Correct comment.
7050
7051         * window.c (window_unmap_subwindows): use new
7052         unmap_subwindow_instance_cache_mapper.
7053         (window_unmap_subwindows_cache_mapper): deleted.
7054         (Fset_window_configuration): comparisons should now be with
7055         EQ. Preserve the subwindow instance cache across configuration
7056         changes.
7057         (allocate_window): ditto.
7058         (make_dummy_parent): ditto.
7059
7060         * glyphs.c (free_frame_subwindow_instances): rename from
7061         free_frame_subwindow_instance_cache. finalize all instances rather
7062         than just those in the display cache.
7063         (finalize_all_subwindow_instances): walk windows unmapping and
7064         finalizing subwindows.
7065         (unmap_subwindow_instance_cache_mapper): moved from
7066         window.c. Allow finalization as well as unmapping.
7067
7068         * gui.c (gui_item_list_find_selected): new function.
7069
7070         * gui.h (gui_item_list_find_selected): declare.
7071
7072         * glyphs-x.c (x_tab_control_redisplay): pick tab
7073         explicitly. Re-code to use gui_item_equal_sans_selected and
7074         gui_item_list_find_selected.
7075
7076         * glyphs-x.h: add lwlib-utils.h
7077
7078         * buffer.c (Frecord_buffer): undo previous change.
7079
7080 2000-08-09  Vin Shelton  <acs@xemacs.org>
7081
7082         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
7083         possible.  Create temporary files more securely.  The patch was
7084         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
7085         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
7086         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
7087         for details.
7088
7089 2000-08-07  Ben Wing  <ben@xemacs.org>
7090
7091         * getloadavg.c: remove duplicate (and windows-breaking)
7092         includes of fcntl.h and sys/file.h.
7093
7094         * nt.c: remove duplicate getloadavg() definition.
7095
7096         * sysdll.h (Qdll_filename_encoding): add missing stand-in
7097         encodings.
7098
7099 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7100
7101         * eval.c (function_argcount): If function needs to be autoloaded
7102         actually use the loaded definition.
7103         GCPRO function.
7104
7105 2000-08-05  Ben Wing  <ben@xemacs.org>
7106
7107         * getloadavg.c: add prototype for getloadavg().  remove
7108         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
7109         of the code).  remove duplicate header includes.
7110
7111         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
7112
7113         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
7114         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
7115         useful load average.
7116
7117         * alloc.c (reinit_alloc_once_early): removed references to
7118         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
7119         the lisp vars are the only things referencing the malloc_sbrk_*
7120         vars, and they were already if 0'd out.  these vars only exist
7121         in the older malloc.c, which is basically unused, and they're
7122         only for informational purposes.
7123
7124         * m\*.h: removed useless VIRT_ADDR_VARIES.
7125
7126         * m\powerpc.h: removed stray NO_ARG_ARRAY.
7127
7128 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
7129
7130         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
7131         color if the image is a mono pixmap.
7132
7133 2000-07-30  Ben Wing  <ben@xemacs.org>
7134
7135         * Makefile.in.in (release):
7136         Remove stray @.
7137
7138         * buffer.c (directory_is_current_directory):
7139         * dired-msw.c (mswindows_get_files):
7140         * dired.c:
7141         * dired.c (Fdirectory_files):
7142         * dired.c (file_name_completion_stat):
7143         * dired.c (Ffile_attributes):
7144         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
7145         preprocessor tricks, to avoid problems on some machines
7146         (e.g. SCO).
7147
7148         * callproc.c (egetenv): GC docs.
7149
7150         * console-msw.h:
7151         * console-msw.h (struct mswindows_dialog_id):
7152         * lrecord.h (lrecord_type):
7153         New object for use with MSW dialogs.
7154
7155         * console.h (struct console_methods):
7156         New enable/disable frame methods, for proper modal dialogs.
7157
7158         * device-msw.c (msprinter_default_printer): Fix to follow
7159         proper Mule conventions.
7160
7161         * device-msw.c:
7162         * device-msw.c (signal_open_printer_error):
7163         * device-msw.c (msprinter_init_device):
7164         * device-msw.c (ensure_not_printing):
7165         * device-msw.c (plist_get_margin):
7166         * device-msw.c (Fmsprinter_select_settings):
7167         * device-msw.c (finalize_devmode):
7168         * device-msw.c (Fmsprinter_settings_despecialize):
7169         * device-msw.c (signal_enum_priner_error):
7170         * extents.c (decode_extent):
7171         * extents.c (decode_map_extents_flags):
7172         * extents.c (decode_extent_at_flag):
7173         * extents.c (Fextent_at):
7174         * extents.c (Fextents_at):
7175         * extents.c (symbol_to_glyph_layout):
7176         [[[[2]]]] Use structured errors.
7177
7178         * dialog-msw.c:
7179         * dialog-msw.c (mswindows_is_dialog_msg):
7180         * dialog-msw.c (mark_mswindows_dialog_id):
7181         * dialog-msw.c (dialog_proc):
7182         * dialog-msw.c (handle_question_dialog_box):
7183         * dialog-msw.c (syms_of_dialog_mswindows):
7184         Define new object to clean up marking; use it as a dialog identifier.
7185         Call new delete-dialog-box-hook.
7186
7187         * dialog-x.c (dbox_selection_callback):
7188         * dialog-x.c (dbox_descriptor_to_widget_value):
7189         * dialog-x.c (x_make_dialog_box_internal):
7190         Call new delete-dialog-box-hook.
7191         Return an id.
7192
7193         * dialog.c:
7194         * dialog.c (syms_of_dialog):
7195         * dialog.c (vars_of_dialog):
7196         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
7197
7198         * eval.c:
7199         * eval.c (signal_call_debugger):
7200         when noninteractive, output stack traces on the console instead
7201         of in a (never-seen) buffer.
7202
7203         * eval.c (signal_type_error):
7204         * eval.c (invalid_argument_2):
7205         * lisp.h:
7206         new funs for use w/structured errors.
7207
7208         * event-Xt.c:
7209         * event-Xt.c (x_to_emacs_keysym):
7210         * event-Xt.c (describe_event):
7211         * event-Xt.c (emacs_Xt_event_handler):
7212         * event-Xt.c (vars_of_event_Xt):
7213         * event-msw.c:
7214         * event-msw.c (mswindows_wnd_proc):
7215         * event-msw.c (vars_of_event_mswindows):
7216         rename {x,mswindows}-debug-events to debug-{}-events for
7217         consistency with other debug-foo variables.
7218
7219         * event-stream.c:
7220         document next-event more clearly.
7221
7222         * fileio.c (Ffile_name_directory):
7223         * fileio.c (Ffile_name_nondirectory):
7224         * fileio.c (Funhandled_file_name_directory):
7225         * fileio.c (file_name_as_directory):
7226         * fileio.c (Ffile_name_as_directory):
7227         * fileio.c (directory_file_name):
7228         * fileio.c (Fdirectory_file_name):
7229         * fileio.c (Fmake_temp_name):
7230         * fileio.c (Ffile_truename):
7231         * fileio.c (Fsubstitute_in_file_name):
7232         * fileio.c (expand_and_dir_to_file):
7233         * fileio.c (barf_or_query_if_file_exists):
7234         * fileio.c (check_executable):
7235         * fileio.c (Ffile_exists_p):
7236         * fileio.c (Ffile_writable_p):
7237         * fileio.c (Ffile_directory_p):
7238         * fileio.c (Ffile_regular_p):
7239         * fileio.c (Ffile_modes):
7240         * fileio.c (Ffile_newer_than_file_p):
7241         * fileio.c (Fverify_visited_file_modtime):
7242         * fileio.c (Fset_visited_file_modtime):
7243         * fileio.c (auto_save_1):
7244         (1). (2).
7245         fix up gcpro's.
7246
7247         * frame-msw.c:
7248         * frame-msw.c (mswindows_init_frame_1):
7249         * frame-msw.c (mswindows_enable_frame):
7250         * frame-msw.c (error_frame_unsizable):
7251         * frame-msw.c (msprinter_init_frame_1):
7252         * frame-msw.c (msprinter_init_frame_3):
7253         * frame-msw.c (console_type_create_frame_mswindows):
7254         (2).
7255         implement new enable/disable frame methods.
7256
7257         * frame-x.c:
7258         * frame-x.c (x_enable_frame):
7259         * frame-x.c (console_type_create_frame_x):
7260         implement new enable/disable frame methods.
7261
7262         * frame.c:
7263         * frame.c (Fdisable_frame):
7264         * frame.c (syms_of_frame):
7265         * frame.h (struct frame):
7266         implement new enable/disable frame methods/functions.
7267
7268         * general-slots.h:
7269         add initial-focus.
7270
7271         * glyphs-msw.c (mswindows_widget_instantiate):
7272         comment that initial-focus should be implemented.
7273
7274         * glyphs-widget.c:
7275         * glyphs-widget.c (check_valid_instantiator):
7276         * glyphs-widget.c (check_valid_orientation):
7277         * glyphs-widget.c (check_valid_tab_orientation):
7278         * glyphs-widget.c (check_valid_justification):
7279         * glyphs-widget.c (check_valid_border):
7280         * glyphs-widget.c (check_valid_callback):
7281         * glyphs-widget.c (check_valid_int_or_function):
7282         * glyphs-widget.c (check_valid_string_or_vector):
7283         * glyphs-widget.c (check_valid_item_list_1):
7284         * glyphs-widget.c (widget_validate):
7285         * glyphs-widget.c (combo_box_validate):
7286         * glyphs-widget.c (widget_instantiate):
7287         * glyphs-widget.c (syms_of_glyphs_widget):
7288         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
7289         * glyphs-widget.c (image_instantiator_combo_box):
7290         * glyphs-widget.c (image_instantiator_scrollbar):
7291         * glyphs-widget.c (image_instantiator_tab_control):
7292         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
7293         (2).
7294         support (unimplemented) keyword initial-focus.
7295         reindent long macros.
7296
7297         * glyphs-x.c (x_redisplay_widget):
7298         * glyphs-x.c (x_button_instantiate):
7299         * glyphs-x.c (x_button_redisplay):
7300         * glyphs-x.c (x_progress_gauge_instantiate):
7301         * glyphs-x.c (x_edit_field_instantiate):
7302         * glyphs-x.c (x_combo_box_instantiate):
7303         * glyphs-x.c (x_tab_control_instantiate):
7304         * glyphs-x.c (x_label_instantiate):
7305         * gui-x.c:
7306         * gui-x.c (button_item_to_widget_value):
7307         * gui-x.c (gui_items_to_widget_values_1):
7308         * gui-x.c (gui_item_children_to_widget_values):
7309         * gui-x.c (gui_items_to_widget_values):
7310         * gui-x.h:
7311         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7312         add new flag to gui-parsing routines to indicate whether
7313         accelerator specs should be supported.
7314
7315         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
7316
7317         * glyphs.h (struct Lisp_Image_Instance):
7318         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
7319         add initial-focus flag.
7320
7321         * gui.c:
7322         * gui.c (syms_of_gui):
7323         * gui.c (vars_of_gui):
7324         clean up menu-no-selection-hook.
7325
7326         * gui.h:
7327         support delete-dialog-box-hook.
7328
7329         * lread.c (Fload_internal):
7330         * lread.c (locate_file_in_directory_mapper):
7331         (1).
7332
7333         * lrecord.h:
7334         * lrecord.h (struct toolbar_button):
7335         * lrecord.h (syms_of_toolbar):
7336         document how to create a new object.
7337
7338         * menubar-msw.c (mswindows_char_is_accelerator):
7339         may be called on frames w/o menus.
7340
7341         * menubar.c (vars_of_menubar):
7342         clean up :filter docs.
7343
7344         * nt.c (readdir):
7345         * ntproc.c:
7346         (1).
7347
7348         * process-nt.c:
7349         * process-nt.c (validate_signal_number):
7350         * process-nt.c (signal_cannot_launch):
7351         * process-nt.c (nt_create_process):
7352         * process-nt.c (nt_send_process):
7353         * process-nt.c (nt_kill_child_process):
7354         * process-nt.c (nt_open_network_stream):
7355         * process-nt.c (syms_of_process_nt):
7356         (2).
7357         delete quote-handling.  call new lisp code that does it better.
7358
7359         * process-unix.c (connect_to_file_descriptor):
7360         * process-unix.c (allocate_pty):
7361         * process-unix.c (unix_send_process):
7362         * process-unix.c (unix_kill_child_process):
7363         * process-unix.c (unix_open_network_stream):
7364         * process-unix.c (unix_open_multicast_group):
7365         (1). (2).
7366
7367         * process.c:
7368         * process.c (Fstart_process_internal):
7369         (2).  need to canonicalize process path even if absolute.
7370
7371         * select-msw.c (symbol_to_ms_cf):
7372         * select-msw.c (ms_cf_to_symbol):
7373         * select-msw.c (cf_is_autofreed):
7374         * select-msw.c (mswindows_destroy_selection):
7375         * select.c:
7376         * select.c (syms_of_select):
7377         * select.h:
7378         support dibv5, fix bugs. (from Mike Alexander)
7379
7380         * select.c (Fget_selection_internal):
7381         * select.c (select_convert_out):
7382
7383         * sysdep.c:
7384         * sysdep.c (xemacs_stat):
7385         renamed.
7386
7387         * sysdep.c (mkdir):
7388         * sysdep.c (rmdir):
7389         but keep original stat() here because we provide encapsulation
7390         around these funs.
7391
7392         * sysfile.h:
7393         * sysfile.h (fstat):
7394         remove stat garbage.
7395
7396         * syswindows.h:
7397         fix X/MSW conflict.
7398         don't include tchar.h.  it's inappropriate because it makes
7399         compile-time distinctions when we want runtime distinctions.
7400         (we provide our own tchar replacements)
7401
7402         * toolbar.c:
7403         use default object printer for toolbar-button.
7404
7405         * unexcw.c:
7406         make sure we don't encapsulate.
7407
7408         * window.c (vars_of_window):
7409         emphasize that temp-buffer-show-hook is obsolete.
7410
7411 2000-08-05  Martin Buchholz  <martin@xemacs.org>
7412
7413         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
7414         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
7415
7416         * events.c (Fevent_timestamp_lessp):
7417         Not 64-bit clean.  Use EMACS_INT, not int.
7418
7419 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
7420
7421         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
7422         unsigned int and changed the last enum to
7423         lrecord_type_last_built_in_type.
7424         (lrecord_implementations_table): changed prototype to know how
7425         long the array is supposed to be.
7426         (lrecord_type_count): new unsigned int to keep track of the
7427         current number of lisp lrecord types.
7428         (DEFINE_EXTERNAL_LRECORD):
7429         (DECLARE_EXTERNAL_LRECORD): Added these two for external
7430         dynamic-modules to declare new lisp types. They are the same
7431         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
7432         int for each new type, and increment lrecord_type_count by 1.
7433
7434         * alloc.c (lrecord_implementations_table): Changed to reference
7435         lrecord_type_last_built_in_type for the size of the array.
7436         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
7437
7438 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
7439
7440         * glyphs.h (check_valid_item_list): Renamed from
7441         check_valid_item_list_1.
7442
7443 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
7444
7445         * select.c (Qselect_coerce): New.
7446         * select.c (Vselection_coercion_alist): New.
7447         * select.c (syms_of_select): Declare.
7448         * select.c (get-selection-internal): Use it.
7449         Use the new select-coerce functionality.
7450
7451         * select.c (select_coerce): New.
7452         * select.h (select_coerce): Declare.
7453         New function to coerce one type of data into another.
7454
7455 2000-08-03  Martin Buchholz  <martin@xemacs.org>
7456
7457         * callproc.c (Fcall_process_internal):
7458         (Fcall_process_internal):
7459         * process-unix.c (unix_create_process):
7460         Save and restore the value of errno, so that error messages are accurate.
7461
7462 2000-08-01  Martin Buchholz  <martin@xemacs.org>
7463
7464         * elhash.c (print_hash_table):
7465         Fix printing of hash tables to also use `key-and-value' instead of `t'.
7466         Prettify docstrings and indentation.
7467
7468 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7469
7470         * window.c (Fwindow_pixel_edges): Subtract frame border and
7471         gutter size.
7472
7473 2000-07-31  Andy Piper  <andy@xemacs.org>
7474
7475         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
7476         will acknowledge the change.
7477
7478         * glyphs.h: declare tab_control_order_only_changed.
7479
7480         * glyphs-x.c (x_tab_control_redisplay): use
7481         tab_control_order_only_changed.
7482
7483         * glyphs-widget.c (tab_control_order_only_changed): new function.
7484
7485         * glyphs-msw.c (mswindows_tab_control_redisplay): use
7486         tab_control_order_only_changed.
7487
7488         * gui.c (gui_item_equal_sans_selected): new function.
7489         (gui_item_equal): use it.
7490
7491         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
7492         :properties in favor of :items..
7493
7494         * glyphs-widget.c (check_valid_item_list): rename from
7495         check_valid_item_list_1.
7496         (check_valid_item_list_1): renamed.
7497         (combo_box_validate): deprecate :properties in favor of :items.
7498         (widget_instantiate): ditto.
7499         (tab_control_update): ditto.
7500         (image_instantiator_combo_box): ditto.
7501         (image_instantiator_tree_view): ditto.
7502         (image_instantiator_tab_control): ditto.
7503         (layout_post_instantiate): remove dead code.
7504
7505         * print.c (debug_print_no_newline): only write to debugger if in
7506         WIN32_NATIVE.
7507
7508         * elhash.c (Fmake_hash_table): update doc string.
7509
7510         * event-msw.c (mswindows_wnd_proc): don't allow processing of
7511         messages whilst in GC. This at least stops XEmacs crashing but has
7512         the potential for wierd behaviour.
7513
7514 2000-07-31  Martin Buchholz  <martin@xemacs.org>
7515
7516         * config.h.in:
7517         Make existence of s&m files optional.
7518
7519         * s/bsd386.h: Remove HAVE_GETLOADAVG.
7520         * s/freebsd.h: Remove HAVE_GETLOADAVG.
7521         * s/gnu.h: Remove HAVE_GETLOADAVG.
7522         * s/netbsd.h: Remove HAVE_GETLOADAVG.
7523         * s/sol2.h: Remove HAVE_GETLOADAVG.
7524         * lisp.h: Remove getloadavg() declaration.
7525         * fns.c:
7526         Include <sys/loadavg.h> if available.
7527         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
7528         * config.h.in:  Group together getloadavg()-related macros.
7529         Use only configure-time tests to detect getloadavg().
7530
7531 2000-07-30  Martin Buchholz  <martin@xemacs.org>
7532
7533         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
7534
7535 2000-07-25  Andy Piper  <andy@xemacs.org>
7536
7537         * syswindows.h: add tchar.h for native builds.
7538
7539         * frame.c (syms_of_frame): remove set-glyph-image.
7540
7541         * general-slots.h: add Qset_glyph_image.
7542
7543         * glyphs-widget.c (layout_update): add domain arg to
7544         set-glyph-image.
7545         (syms_of_glyphs_widget): remove set-glyph-image.
7546
7547 2000-07-23  Ben Wing  <ben@xemacs.org>
7548
7549         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
7550         Vpopup_frame_list.
7551
7552 2000-07-22  Andy Piper  <andy@xemacs.org>
7553
7554         * symsinit.h: add syms_of_win32().
7555
7556         * gui-msw.c (syms_of_gui_mswindows): remove
7557         Fmswindows_shell_execute.
7558         (Fmswindows_shell_execute): moved to win32.c.
7559
7560         * emacs.c (main_1): add syms_of_win32 ().
7561
7562         * win32.c (init_potentially_nonexistent_functions): rewrite in
7563         compiler-friendly terms.
7564         (Fmswindows_shell_execute): move here from gui-msw.c.
7565         (syms_of_win32): new.
7566
7567         * device-msw.c (Fmswindows_printer_list): clean up args to
7568         EnumPrinters.
7569         Don't include tchar under cygwin or mingw.
7570         (msprinter_default_printer): make cygwin-friendly.
7571
7572 2000-07-21  Andy Piper  <andy@xemacs.org>
7573
7574         * glyphs-widget.c (image_instantiator_tree_view): use tab
7575         control's update function.
7576         (layout_property): new function. Retrieve items.
7577
7578         * glyphs-msw.c (mswindows_tree_view_redisplay): new
7579         function. Re-populate the tree view from the pending items.
7580
7581         * glyphs.c (instantiate_image_instantiator): Make sure the domain
7582         is designated the parent if the domain is an image instance. This
7583         is needed so that dirtiness can be cascade up the hierarchy and
7584         thus for layout children to be redisplayed correctly.
7585         (allocate_image_instance): rename glyph -> parent.
7586
7587         * redisplay.h: change redisplay_output_layout signature.
7588
7589         * redisplay-msw.c (mswindows_output_display_block): use domain
7590         arg.
7591
7592         * redisplay-x.c (x_output_display_block): use domain arg.
7593
7594 2000-07-10  Andy Piper  <andy@xemacs.org>
7595
7596         * window.c (Fset_window_configuration): add comment.
7597
7598         * redisplay-output.c (compare_runes):
7599         (redisplay_output_subwindow): redisplay rather than update subwindow.
7600         (redisplay_output_layout): ditto.
7601
7602         * redisplay-msw.c (mswindows_frame_output_end):
7603         (mswindows_frame_output_end): make defer window pos optional.
7604
7605         * lisp.h: add Flast.
7606
7607         * glyphs.h (struct image_instantiator_methods): add dest_mask top
7608         normalize method. Change update method to be for changed
7609         instantiators. Add redisplay method. Change signature of layout
7610         method.
7611         (struct Lisp_Image_Instance): add instantiator.
7612         (IMAGE_INSTANCE_INSTANTIATOR): new.
7613         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7614         (XIMAGE_INSTANCE_INSTANTIATOR): new.
7615         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7616
7617         * glyphs.c:
7618         (find_instantiator_differences): new function.
7619         (Fset_instantiator_property): new convenience function.
7620         (check_image_instance_structure): strictly check for vector
7621         instantiators.
7622         (normalize_image_instantiator): make non-static.
7623         (instantiate_image_instantiator): pass on dest_mask and use new
7624         signatures for image_instance_layout and friends.
7625         (mark_image_instance): mark the instantiator. Mark the subwindow
7626         face not the widget face.
7627         (image_instance_equal): add instantiator.
7628         (image_instance_hash): ditto.
7629         (allocate_image_instance): ditto.
7630         (Fset_image_instance_property): removed.
7631         (Fimage_instance_file_name): ditto.
7632         (Fcolorize_image_instance): ditto.
7633         (image_instance_layout): add offsets to be set.
7634         (update_image_instance): new function. update an image instance
7635         from its changed instantiator.
7636         (inherit_normalize): add dest_mask.
7637         (xbm_normalize): ditto.
7638         (xface_normalize): ditto.
7639         (xpm_normalize): ditto.
7640         (text_update): set_property -> update.
7641         (image_instantiate): use the glyph identity as a hash key, not the
7642         instantiator.
7643         (glyph_width): use new image_instance_layout signature.
7644         (glyph_ascent): ditto.
7645         (glyph_descent): ditto.
7646         (glyph_height): ditto.
7647         (glyph_query_geometry): ressurrect.
7648         (glyph_layout): ditto.
7649         (redisplay_subwindow): update -> redisplay.
7650         (syms_of_glyphs): add Fset_instantiator_property.
7651         (image_instantiator_format_create): set_property -> update.
7652
7653         * glyphs-x.c:
7654         (autodetect_normalize): add dest_maks to signature.
7655         (x_redisplay_subwindow): update -> redisplay.
7656         (x_redisplay_widget): ditto.
7657         (x_button_redisplay): ditto.
7658         (x_progress_gauge_redisplay): ditto.
7659         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7660         stacking order.
7661         (console_type_create_glyphs_x): update -> redisplay.
7662         (image_instantiator_format_create_glyphs_x): ditto.
7663
7664         * glyphs-widget.c:
7665         (check_valid_instantiator): disallow glyphs in the instantiator,
7666         they must now be vectors.
7667         (check_valid_instantiator_list): ditto.
7668         (glyph_instantiator_to_glyph): use internal symbol rather than
7669         intern.
7670         (widget_update): renamed from widget_set_property. Call cascaded
7671         update methods.
7672         (redisplay_widget): renamed from update_widget.
7673         (widget_layout): image_instance_layout now takes position as well
7674         as size.
7675         (widget_normalize): ditto.
7676         (widget_instantiate): ditto.
7677         (tab_control_query_geometry) ditto.:
7678         (tab_control_update): renamed from tab_control_set_property.
7679         (progress_gauge_update): set_property -> update.
7680         (layout_normalize): rewrite so that child instantiators are
7681         normalized also.
7682         (layout_update): new function. Create glyphs from the normalized
7683         children and cope with any other layout keywords. We do not
7684         instantiate children here that will be take care of by
7685         redisplay_output_layout.
7686         (layout_instantiate): call layout_update and not much else.
7687         (layout_post_instantiate): not sure whether this is needed
7688         anymore.
7689         (layout_query_geometry): query glyph geometry rather than
7690         image_instance geometry.
7691         (layout_layout): set offsets from pass in parameters. Use glyph
7692         geometry and layout functions rather than image instance ones.
7693         (native_layout_layout): ditto.
7694         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7695         (image_instantiator_widget): set_property -> update.
7696         (image_instantiator_buttons): ditto.
7697         (image_instantiator_progress_guage): ditto.
7698         (image_instantiator_tab_control): ditto.
7699         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7700         (image_instantiator_layout): add update method.
7701
7702         * glyphs-msw.c (bmp_normalize):
7703         (mswindows_resource_normalize): add dest_mask so that it can be
7704         proprogated by layout_normalize.
7705         (begin_defer_window_pos): make optional because it may not be the
7706         right thing to do and it introduces differences with X.
7707         (mswindows_unmap_subwindow): ditto.
7708         (mswindows_map_subwindow): ditto.
7709         (mswindows_redisplay_subwindow): renamed from
7710         mswindows_update_subwindow.
7711         (mswindows_redisplay_widget): ditto.
7712         (mswindows_button_redisplay): renamed from
7713         mswindows_button_update. Update is now what the instantiation
7714         function does for a changed instantiator.
7715         (mswindows_progress_gauge_instantiate): set the progress value
7716         here if appropriate.
7717         (mswindows_tab_control_redisplay): cope with re-ordering of the
7718         members of the tab widget by simply selecting the new top
7719         widget. This makes things appear ok if you click on a tab.
7720         (mswindows_combo_box_instantiate): image_instance_layout now takes
7721         position as well as size.
7722         (mswindows_progress_gauge_redisplay): renamed from
7723         mswindows_progress_gauge_update.
7724         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7725         (image_instantiator_format_create_glyphs_mswindows): ditto.
7726
7727         * glyphs-eimage.c (jpeg_normalize):
7728         (gif_normalize):
7729         (png_normalize):
7730         (tiff_normalize): add dest_mask so that it can be proprogated by
7731         layout_normalize.
7732
7733         * elhash.c:
7734         (print_hash_table):
7735         (hash_table_weakness_validate):
7736         (decode_hash_table_weakness):
7737         (Fhash_table_weakness):
7738         (Fhash_table_type):
7739         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7740
7741         * console.h (struct console_methods): move update_* to
7742         redisplay_*.
7743
7744 2000-07-20  Ben Wing  <ben@xemacs.org>
7745
7746         * *.[ch] (XSETOBJ): remove unused middle argument.
7747         lisp-disunion.h: correct wrap_object() to one argument.
7748
7749 2000-07-15  Ben Wing  <ben@xemacs.org>
7750
7751         * s/cygwin32.h:
7752         * s/cygwin32.h (CYGWIN_CONV_PATH):
7753         Add missing logb prototype for v1.1.
7754         Use post-b20 names and alias to pre-b20 names when pre-b20.
7755
7756         * s/windowsnt.h: [5].
7757
7758 2000-07-15  Ben Wing  <ben@xemacs.org>
7759
7760         * Makefile.in.in (x_objs):
7761         * Makefile.in.in (sheap_objs):
7762         * Makefile.in.in (objs):
7763         added win32.o, cosmetic cleanups.
7764
7765         * alloc.c (Fmake_byte_code):
7766         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7767         etc. macros which declare their own args now.
7768
7769         * alloc.c (syms_of_alloc):
7770         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7771
7772         * buffer.c:
7773         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7774
7775         * buffer.c (Fget_file_buffer):
7776         Fixed GCPRO problem.
7777
7778         * buffer.c (get_truename_buffer):
7779         Fixed comment about GC checking.
7780
7781         * buffer.c (syms_of_buffer):
7782         Undeclared those dedicated frame funs.
7783         [2].
7784
7785         * buffer.h:
7786         Define convenience macros for internal/external conversions.
7787         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7788         and Qenvironment_variable_encoding for cleaner code.
7789
7790         * bufslots.h:
7791         Remove dedicated-frame; in lisp.
7792
7793         * bytecode.c (funcall_compiled_function):
7794         [1].
7795
7796         * bytecode.c (syms_of_bytecode):
7797         [2].
7798
7799         * console-msw.c:
7800         * console-msw.c (mswindows_show_console): Rewrote.
7801
7802         * console-msw.c (Fmswindows_debugging_output): New.
7803         Sends to OutputDebugString (special MSWin debugger interface).
7804
7805         * console-msw.c (Fmswindows_message_box):
7806         Fixed stupid bugs so it works when called from kill-emacs.
7807
7808         * console-msw.c (syms_of_console_mswindows):
7809         Declare Fmswindows_debugging_output.
7810
7811         * console-msw.h:
7812         New MSWin prototypes.
7813
7814         * console-msw.h (struct mswindows_frame):
7815         New entry last-click-mods for improved button-modifier support.
7816
7817         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7818         New struct entry `popup' with corresponding accessor.
7819
7820         * console-x.c:
7821         * console-x.c (split_up_display_spec):
7822         * console-x.c (get_display_arg_connection):
7823         * console-x.c (x_semi_canonicalize_console_connection):
7824         * console-x.c (x_canonicalize_device_connection):
7825         [[[6]]]: Change char to more specific type.
7826         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7827
7828         * console-x.c (x_semi_canonicalize_console_connection):
7829         * console-x.c (x_canonicalize_device_connection):
7830         [[[9]]]: Fix up error signalling to use new structured error system.
7831
7832         * console-x.h:
7833         [[[4]]]: Define codesys aliases:
7834         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7835         Qx_color_name_encoding, Qx_display_name_encoding.
7836
7837         * console.h (struct console_methods):
7838         New method make_dialog_box_internal supersedes older
7839         popup_dialog_box method.
7840
7841         * data.c:
7842         Define many new errors, part of new structured errors.
7843
7844         * data.c (init_errors_once_early):
7845         * data.c (syms_of_data):
7846         [2].
7847
7848         * device-msw.c (mswindows_init_device):
7849         [[[5]]]: Cleanup to support NT 3.51.
7850
7851         * device-msw.c (decode_devmode): Cleanup.
7852
7853         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7854         * device-msw.c (mswindows_handle_print_dialog_box):
7855         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7856         * device-msw.c (syms_of_device_mswindows):
7857         Delete the dialog box primitives recently introduced by Kirill and
7858         instead interface to general dialog box interface.
7859
7860         * device-x.c:
7861         * device-x.c (compute_x_app_name):
7862         * device-x.c (x_init_device):
7863         * device-x.c (Fx_valid_keysym_name_p):
7864         * device-x.c (Fx_set_font_path):
7865         [6].
7866         [7].
7867
7868         * device.h (wrap_device): New.
7869         First of its kind; meant to replace XSETDEVICE.
7870
7871         * dialog-msw.c: Many file-dialog symbols.
7872
7873         * dialog-msw.c (mswindows_register_popup_frame): New.
7874         * dialog-msw.c (mswindows_is_dialog_msg): New.
7875         For supporting kbd traversal in dialog boxes.
7876
7877         * dialog-msw.c (dialog_proc):
7878         Support hitting ESC in dialogs.
7879
7880         * dialog-msw.c (struct):
7881         Common dialog box errors.
7882
7883         * dialog-msw.c (handle_file_dialog_box): New.
7884         Add file dialog code.
7885
7886         * dialog-msw.c (handle_question_dialog_box):
7887         Redo existing code to support new question dialog syntax.
7888
7889         * dialog-msw.c (console_type_create_dialog_mswindows):
7890         We support new dialog console method.
7891
7892         * dialog-msw.c (syms_of_dialog_mswindows):
7893         * dialog-msw.c (vars_of_dialog_mswindows):
7894         New file dialog symbols, vars.
7895
7896         * dialog-x.c:
7897         * dialog-x.c (maybe_run_dbox_text_callback):
7898         * dialog-x.c (dbox_descriptor_to_widget_value):
7899         * dialog-x.c (x_make_dialog_box_internal):
7900         * dialog-x.c (console_type_create_dialog_x):
7901         Mule-ize entire file.
7902         Redo to support question dialog syntax.
7903         [6].
7904
7905         * dialog.c:
7906         * dialog.c (Fmake_dialog_box_internal):
7907         * dialog.c (syms_of_dialog):
7908         Kill old popup-dialog-box, replace with new primitive.
7909         Just call device method or signal error.
7910
7911         * eldap.c (Fldap_open):
7912         * eldap.c (Fldap_search_basic):
7913         * eldap.c (Fldap_add):
7914         * eldap.c (Fldap_modify):
7915         [1].
7916         [7].
7917
7918         * emacs.c:
7919         * emacs.c (make_arg_list_1):
7920         * emacs.c (make_arg_list):
7921         Mule-ize call to dll_init().
7922         [6].
7923         [8].
7924
7925         * emacs.c (make_argc_argv):
7926         * emacs.c (free_argc_argv):
7927         * emacs.c (init_cmdargs):
7928         * emacs.c (main_1):
7929         * emacs.c (Fkill_emacs):
7930         * emacs.c (Fdump_emacs):
7931         Update comments about what can be used in syms_* etc.
7932         Call init_win32() when necessary.
7933         Fix up MS Win dialog box in kill-buffer to actually work right.
7934         [7].
7935
7936         * eval.c:
7937         * eval.c (For):
7938         * eval.c (Fand):
7939         * eval.c (Fprogn):
7940         * eval.c (Fprog1):
7941         * eval.c (Fprog2):
7942         * eval.c (FletX):
7943         * eval.c (Flet):
7944         * eval.c (condition_case_3):
7945         * eval.c (Feval):
7946         * eval.c (function_argcount):
7947         * eval.c (funcall_lambda):
7948         [1].
7949
7950         * eval.c (type_error): New.
7951         * eval.c (maybe_type_error): New.
7952         * eval.c (continuable_type_error): New.
7953         * eval.c (maybe_continuable_type_error): New.
7954         * eval.c (type_error_with_frob): New.
7955         * eval.c (maybe_type_error_with_frob): New.
7956         * eval.c (continuable_type_error_with_frob): New.
7957         * eval.c (maybe_continuable_type_error_with_frob): New.
7958         New functions for use with structured errors.
7959
7960         * event-Xt.c:
7961         * event-Xt.c (x_event_to_emacs_event):
7962         Buttons are now modifiers too.
7963
7964         * event-Xt.c (emacs_Xt_current_event_timestamp):
7965         Implement new event method.
7966         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7967
7968         * event-msw.c:
7969         * event-msw.c (ntpipe_shove_writer): [5].
7970         * event-msw.c (mswindows_enqueue_mouse_button_event):
7971         * event-msw.c (mswindows_drain_windows_queue):
7972         * event-msw.c (mswindows_wnd_proc): [7].
7973         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7974         * event-msw.c (mswindows_modifier_state):
7975         Throughout: support new button modifiers.
7976
7977         * event-msw.c (emacs_mswindows_current_event_timestamp):
7978         Implement new event method.
7979         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7980
7981         * event-stream.c:
7982         * event-stream.c (event_stream_current_event_timestamp): New.
7983         * event-stream.c (maybe_kbd_translate): New functionality.
7984         * event-stream.c (vars_of_event_stream):
7985         Document new kbd-translate-table functionality.
7986
7987         * event-stream.c (Fcurrent_event_timestamp): New.
7988         New primitive for use in fabricated events.
7989         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7990
7991         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7992
7993         * events.c:
7994         * events.c (Fmake_event):
7995         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7996         [1].
7997         [9].
7998
7999         * events.c (format_event_object): fix gcc warnings.
8000
8001         * events.c (Fevent_timestamp): Document new primitives.
8002
8003         * events.c (TIMESTAMP_HALFSPACE): New.
8004
8005         * events.c (Fevent_timestamp_lessp): New.  New primitive for
8006         comparing timestamps correctly (half-space algorithm).
8007
8008         * events.c (Fevent_modifier_bits): Doc fix.
8009
8010         * events.c (Fevent_modifiers): Major doc addition.
8011         * events.c (event_x_y_pixel_internal): Typo fix.
8012         * events.c (syms_of_events): Declare new primitives.
8013
8014         * events.h:
8015         Update long comment for button modifiers, timestamps.
8016
8017         * events.h (struct event_stream):
8018         New current_event_timestamp method.
8019
8020         * extents.c:
8021         * extents.c (extent_in_region_p):
8022         * extents.c (decode_extent):
8023         * extents.c (Fset_extent_parent):
8024         * extents.c (decode_map_extents_flags):
8025         Fix gcc warnings.
8026         [9].
8027
8028         * extents.c (struct extent_at_arg):
8029         * extents.c (decode_extent_at_flag):
8030         * extents.c (extent_at_mapper):
8031         * extents.c (extent_at_bytind):
8032         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
8033         * extents.c (Fextents_at): New primitive. [9].
8034         * extents.c (symbol_to_glyph_layout): [9].
8035         Support new primitive `extents-at'.
8036
8037
8038         * extents.c (get_text_property_bytind):
8039         extent_at_bytind has another arg.
8040         [9].
8041
8042         * extents.c (syms_of_extents): New primitive.
8043
8044         * file-coding.c (Fmake_coding_system): [1].
8045         * file-coding.c (subsidiary_coding_system): fix gcc warning
8046         * file-coding.c (syms_of_file_coding): [2].
8047
8048         * fileio.c (Fexpand_file_name):
8049         * fileio.c (Fsysnetunam):
8050         * fileio.c (Ffile_exists_p):
8051         * fileio.c (Ffile_executable_p):
8052         * fileio.c (Fverify_visited_file_modtime):
8053         Clean up GCPROing.
8054
8055         * fileio.c (syms_of_fileio): [2].
8056
8057         * filelock.c (lock_file_1):
8058         * filelock.c (current_lock_owner):
8059         * filelock.c (lock_if_free):
8060         * filelock.c (lock_file):
8061         * filelock.c (unlock_file):
8062         Clean up GCPROing.
8063
8064         * fns.c (concat): Fix gcc warning.
8065
8066         * fns.c (Fmember):
8067         * fns.c (Fold_member):
8068         * fns.c (Fmemq):
8069         * fns.c (Fold_memq):
8070         * fns.c (memq_no_quit):
8071         * fns.c (Fassoc):
8072         * fns.c (Fold_assoc):
8073         * fns.c (Fassq):
8074         * fns.c (Fold_assq):
8075         * fns.c (assq_no_quit):
8076         * fns.c (Frassoc):
8077         * fns.c (Fold_rassoc):
8078         * fns.c (Frassq):
8079         * fns.c (Fold_rassq):
8080         * fns.c (rassq_no_quit):
8081         * fns.c (Fdelete):
8082         * fns.c (Fold_delete):
8083         * fns.c (Fdelq):
8084         * fns.c (Fold_delq):
8085         * fns.c (delq_no_quit):
8086         * fns.c (Fremassoc):
8087         * fns.c (Fremassq):
8088         * fns.c (remassq_no_quit):
8089         * fns.c (Fremrassoc):
8090         * fns.c (Fremrassq):
8091         * fns.c (remrassq_no_quit):
8092         * fns.c (Freverse):
8093         * fns.c (mapcar1):
8094         [1].
8095
8096         * frame-msw.c (mswindows_init_frame_1):
8097         * frame-msw.c (mswindows_delete_frame):
8098         Register popups with dialog code so keyboard traversing works.
8099
8100         * frame-tty.c (tty_raise_frame_no_select): [1].
8101
8102         * frame-x.c:
8103         * frame-x.c (x_set_frame_text_value):
8104         * frame-x.c (x_set_frame_properties):
8105         * frame-x.c (x_create_widgets):
8106         [7].
8107
8108         * frame.c:
8109         * frame.c (Fmouse_pixel_position): Minor doc fixes.
8110
8111         * frame.h (wrap_frame): New.
8112         Macro like wrap_device.
8113
8114         * general.c:
8115         * general.c (SYMBOL):
8116         * general.c (syms_of_general):
8117         Major reorg.  This is now just a wrapper and symbols themselves
8118         are listed in general-slots.h.
8119
8120         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
8121         * glyphs-msw.c (mswindows_resource_instantiate): [5].
8122
8123         * glyphs-msw.c (mswindows_native_layout_instantiate):
8124         Add DS_CONTROL so keyboard traversal will work.
8125
8126         * glyphs-widget.c:
8127         * glyphs-widget.c (syms_of_glyphs_widget):
8128         Move some symbols to general-slots.h.
8129
8130         * glyphs-x.c:
8131         * glyphs-x.c (xbm_instantiate_1):
8132         * glyphs-x.c (x_xbm_instantiate):
8133         * glyphs-x.c (x_xface_instantiate):
8134         * glyphs-x.c (autodetect_instantiate):
8135         * glyphs-x.c (cursor_font_instantiate):
8136         * glyphs-x.c (x_update_widget):
8137         * glyphs-x.c (x_widget_instantiate):
8138         * glyphs.c (bitmap_to_lisp_data):
8139         * glyphs.c (pixmap_to_lisp_data):
8140         [7].
8141
8142         * glyphs.c (syms_of_glyphs):
8143         [2].
8144
8145         * gui-x.c:
8146         * gui-x.c (print_widget_value):
8147         * gui-x.c (menu_separator_style_and_to_external):
8148         * gui-x.c (add_accel_and_to_external):
8149         * gui-x.c (button_item_to_widget_value):
8150         * gui-x.c (gui_items_to_widget_values_1):
8151         * gui-x.c (gui_items_to_widget_values):
8152         * gui-x.c (syms_of_gui_x):
8153         * gui-x.c (vars_of_gui_x):
8154         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
8155         [9].
8156
8157         * gui-x.h:
8158         Muleize, prototype changes matching gui-x.c.
8159
8160         * gui.c:
8161         * gui.c (separator_string_p):
8162         * gui.c (gui_item_add_keyval_pair):
8163         * gui.c (make_gui_item_from_keywords_internal):
8164         * gui.c (signal_too_long_error):
8165         * gui.c (parse_gui_item_tree_item):
8166         * gui.c (syms_of_gui):
8167         * gui.c (vars_of_gui):
8168         * gui.h:
8169         menu-no-selection-hook moved here (used by MSWin).
8170         Move some symbols to general-slots.h.
8171         [6].
8172         [9].
8173
8174         * insdel.c (get_buffer_pos_char):
8175         * insdel.c (get_buffer_range_char):
8176         Add GC comments.
8177
8178         * keymap.c (keymap_lookup_directly):
8179         * keymap.c (keymap_store):
8180         * keymap.c (ensure_meta_prefix_char_keymapp):
8181         * keymap.c (describe_map):
8182         * keymap.h:
8183         Support new button modifiers.
8184
8185         * lisp-disunion.h (wrap_object):
8186         * lisp-disunion.h (XSETOBJ):
8187         Rename make_obj to wrap_object.
8188
8189         * lisp-union.h:
8190         * lisp-union.h (make_int):
8191         * lisp-union.h (make_char):
8192         Support wrap_object.
8193
8194         * lisp.h:
8195         * lisp.h (LIST_LOOP):
8196         * lisp.h (EXTERNAL_LIST_LOOP):
8197         * lisp.h (LIST_LOOP_2):
8198         * lisp.h (EXTERNAL_LIST_LOOP_1):
8199         * lisp.h (EXTERNAL_LIST_LOOP_2):
8200         * lisp.h (EXTERNAL_LIST_LOOP_3):
8201         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
8202         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8203         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
8204         * lisp.h (EXTERNAL_ALIST_LOOP_5):
8205         * lisp.h (EXTERNAL_ALIST_LOOP_6):
8206         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
8207         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
8208         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
8209         * lisp.h (struct Lisp_Symbol):
8210         * lisp.h (maybe_continuable_error_with_frob):
8211         Fix up section comments.
8212         Add new types for char to indicate usage.
8213         Delete symbols auto-generated from general-slots.h.
8214         Add prototypes for structured error functions.
8215         Add long comments describing looping macros and change interface
8216         so that lvalues are automatically declared.
8217         Add NO_DECLARE macro in case callers want to declare lvalues
8218         themselves.
8219
8220         * lread.c (read_syntax_error):
8221         * lread.c (continuable_read_syntax_error):
8222         * lread.c (read_structure):
8223         * lread.c (sequence_reader):
8224         * lread.c (read_list_conser):
8225         * lread.c (read_compiled_function):
8226         Rename syntax_error and continuable_syntax_error to avoid clash
8227         with same-named structured error functions.
8228
8229         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8230         * menubar-msw.c (populate_menu_add_item):
8231         * menubar-msw.c (populate_or_checksum_helper):
8232         [5].
8233         [9].
8234
8235         * menubar-x.c:
8236         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8237         Mule-ize whole file.
8238
8239         * menubar.c (Fnormalize_menu_item_name): Add optimization.
8240
8241         * mule-charset.c (Fmake_charset):
8242         * mule-wnnfns.c (Fwnn_set_param):
8243         [1].
8244
8245         * ntproc.c (create_child):
8246         * ntproc.c (Fwin32_set_current_locale):
8247         Add comments portending doom.
8248
8249         * objects-msw.c:
8250         * objects-msw.c (old_font_enum_callback_2):
8251         * objects-msw.c (font_enum_callback_1):
8252         * objects-msw.c (mswindows_enumerate_fonts):
8253         [5].
8254
8255         * objects-x.c:
8256         * objects-x.c (allocate_nearest_color):
8257         * objects-x.c (x_parse_nearest_color):
8258         * objects-x.c (x_initialize_color_instance):
8259         * objects-x.c (x_print_color_instance):
8260         * objects-x.c (x_finalize_color_instance):
8261         * objects-x.c (x_valid_color_name_p):
8262         * objects-x.c (x_initialize_font_instance):
8263         * objects-x.c (x_print_font_instance):
8264         * objects-x.c (valid_x_font_name_p):
8265         * objects-x.c (truename_via_FONT_prop):
8266         * objects-x.c (truename_via_random_props):
8267         * objects-x.c (truename_via_XListFonts):
8268         * objects-x.c (x_font_truename):
8269         * objects-x.c (x_font_instance_truename):
8270         * objects-x.c (x_font_instance_properties):
8271         * objects-x.c (x_list_fonts):
8272         * objects-x.c (x_find_charset_font):
8273         Mule-ize entire file.
8274         [7].
8275
8276         * objects-x.h:
8277         Mule-verify.
8278
8279         * print.c:
8280         * print.c (std_handle_out_external):
8281         * print.c (debug_print_no_newline):
8282         * print.c (syms_of_print):
8283         Output to all debugger kinds in debug-print.
8284         Fix console-output code under MSWin to actually work.
8285
8286         * process-nt.c (send_signal):
8287         * process-nt.c (nt_create_process):
8288         Use newer Unicode macros.
8289
8290         * process-unix.c (unix_create_process):
8291         * process-unix.c (unix_canonicalize_host_name):
8292         * process-unix.c (unix_open_network_stream):
8293         [7].
8294
8295         * scrollbar-x.c:
8296         Mule-verify.
8297
8298         * search.c (syms_of_search):
8299         [2].
8300
8301         * select-msw.c (mswindows_destroy_selection):
8302         Use LIST_LOOP_2.
8303
8304         * select-x.c (symbol_to_x_atom):
8305         [7].
8306
8307         * select.c (syms_of_select):
8308         [2].
8309
8310         * sound.c (Fplay_sound_file):
8311         [7].
8312
8313         * specifier.c:
8314         * specifier.c (decode_specifier_type):
8315         * specifier.c (Fvalid_specifier_locale_type_p):
8316         * specifier.c (check_valid_locale_or_locale_type):
8317         * specifier.c (decode_locale):
8318         * specifier.c (decode_locale_type):
8319         * specifier.c (decode_locale_list):
8320         * specifier.c (check_valid_domain):
8321         * specifier.c (decode_specifier_tag_set):
8322         * specifier.c (Fcanonicalize_tag_set):
8323         * specifier.c (Fdefine_specifier_tag):
8324         * specifier.c (Fspecifier_tag_predicate):
8325         * specifier.c (check_valid_inst_list):
8326         * specifier.c (check_valid_spec_list):
8327         * specifier.c (decode_how_to_add_specification):
8328         * specifier.c (check_modifiable_specifier):
8329         * specifier.c (specifier_add_spec):
8330         * specifier.c (boolean_validate):
8331         * specifier.c (display_table_validate):
8332         [9].
8333
8334         * specifier.c (syms_of_specifier):
8335         Move some symbols to general-slots.h.
8336         [2].
8337
8338         * symbols.c:
8339         * symbols.c (Fmapatoms):
8340         * symbols.c (Fapropos_internal):
8341         Add GCPROs.
8342
8343         * symbols.c (set_default_buffer_slot_variable):
8344         * symbols.c (set_default_console_slot_variable):
8345         [1].
8346
8347         * symbols.c (defsymbol_massage_name_1):
8348         * symbols.c (defkeyword_massage_name):
8349         * symbols.c (deferror_1):
8350         * symbols.c (deferror):
8351         * symbols.c (deferror_massage_name_and_message):
8352         * symeval.h:
8353         * symeval.h (DEFSYMBOL):
8354         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
8355
8356         * symbols.c (syms_of_symbols):
8357         [2].
8358
8359         * symsinit.h:
8360         * symsinit.h (init_win32): New.
8361         Also new is syms_of_dialog_mswindows.
8362
8363         * syswindows.h:
8364         Add new Unicode macros, missing Cygwin wide-char functions,
8365         convenience conversion macros for Qmswindows_tstr, macros for
8366         encapsulating required MSWin <-> Cygwin filename conversions,
8367         prototype for dynamically-extracted (not in NT 3.51) functions.
8368
8369         * toolbar-x.c:
8370         Mule-verify.
8371
8372         * tooltalk.c (Fadd_tooltalk_message_arg):
8373         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
8374         * tooltalk.c (Fadd_tooltalk_pattern_arg):
8375         [7].
8376
8377         * tooltalk.c (syms_of_tooltalk):
8378         [2].
8379
8380         * unexnt.c:
8381         * unexnt.c (unexec):
8382         Fix up headers, declaration of unexec() to be more standard.
8383
8384 2000-07-20  Martin Buchholz  <martin@xemacs.org>
8385
8386         * offix.h: Revert change to guard macros - they're used in offix.c!
8387
8388 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8389
8390         * lisp.h: Defsubred Fdelete.
8391
8392         * console-msw.h:  (msprinter_default_printer): Added.
8393
8394         * console-msw.c (msprinter_canonicalize_console_connection):
8395         (msprinter_canonicalize_device_connection): Added.
8396
8397         * device-msw.c (msprinter_default_printer):
8398         (Fmswingows_get_default_printer):
8399         (signal_enum_priner_error):
8400         (Fmswingows_printer_list): Added.
8401
8402 2000-07-19  Martin Buchholz <martin@xemacs.org>
8403
8404         * XEmacs 21.2.35 is released.
8405
8406 2000-07-19  Martin Buchholz  <martin@xemacs.org>
8407
8408         * select-x.c (x_handle_selection_request):
8409         Text selected in xemacs and pasted into xterm failed to appear.
8410         Spelling fixes and cosmetic changes.
8411
8412 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8413
8414         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
8415         XEmacs frame (fix for doubling chars in dialog boxes).
8416
8417 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
8418
8419         * select.c (select_convert_in, select_convert_out):
8420         Don't call intern() every time.
8421
8422         * select.c (Qselect_convert_in, Qselect_convert_out): New.
8423         * select.c (vars_of_select): Initialise them.
8424
8425 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
8426
8427         * select.c (selection-coercible-types): New.
8428
8429         * select.c (own-selection-internal):
8430         * select.c (get-selection-internal):
8431         MULE bug fix - these should default to COMPOUND_TEXT and not
8432         STRING for MULE. I think.
8433
8434         * select.c (select_convert_out): Use selection-coercible-types
8435         to find types that we can attempt to perform coercions on.
8436
8437 2000-07-18  Martin Buchholz  <martin@xemacs.org>
8438
8439         * mule-wnnfns.c:
8440         * mule-canna.c:
8441         Add coding: cookie to identify encoding.
8442
8443         * mule-canna.c (CANNA_mode_keys): make static.
8444         Use proper prototypes, even for functions of no arguments.
8445         Remove external prototype for Fding().
8446
8447         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
8448
8449         * select.c (syms_of_select): Add missing DEFSUBR.
8450
8451 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
8452
8453         * select.c (get_selection_internal, own_selection_internal):
8454         Make the type default to STRING, rather than placing a nil type
8455         into Vselection_alist.
8456
8457 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
8458
8459         * gpmevent.c (tty_selection_exists_p):
8460         * gpmevent.c (tty_own_selection):
8461         Updated parameter lists.
8462
8463 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
8464
8465         * select.h (selection-alist): Removed declaration.
8466
8467         * select.h (get_local_selection):
8468         * select.c (get_local_selection):
8469         Made static.
8470
8471         * select.h (convert_selection): Removed declaration.
8472         * select.c (convert_selection): Removed.
8473         This function belongs in Lisp.
8474
8475         * select.h (select_convert_in): Declare.
8476         * select.h (select_convert_out): Declare.
8477         * select.c (select_convert_in): New.
8478         * select.c (select_convert_out): New.
8479         New conversion functions for other files to call.
8480
8481         * select.h (select_notify_buffer_kill): Declare.
8482         * select.c (select_notify_buffer_kill): New.
8483         New functions that get called from kill-buffer.
8484
8485         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
8486         X-specific lisp code.
8487
8488         * select.h: Declare some of the lisp-visible functions for
8489         external use.
8490
8491         * select.c (clean_local_selection_data): Removed. This was
8492         a disgusting function, and previously should have been in
8493         select-x.c in any case. The functionality is now provided
8494         in select-convert-from-integer (select.el).
8495
8496         * select.c (available-selection-types): Fixed stupidity where
8497         INTEGER and ATOM got added twice. Also add STRING when we see an
8498         extent.
8499
8500         * select.c (get-selection-internal): Removed symbol stripping. No
8501         longer causes conversion when data comes from the internal cache.
8502
8503         * select.c (syms_of_select): Added new functions.
8504
8505         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
8506         error checking - previously this called abort!
8507
8508         * select-x.c (x_own_selection): Changed comment.
8509
8510         * select-x.c (x_handle_selection_request): Use select_convert_out.
8511         Don't mess with selection-alist; it's an internal variable of select.c.
8512
8513         * select-x.c (x_get_foreign_selection): Use select_convert_in.
8514
8515         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
8516         rather than messing with selection-alist.
8517
8518         * select-msw.c (mswindows_get_foreign_selection):
8519         Use TO_INTERNAL_FORMAT rather than hacking.
8520
8521 2000-07-14  Martin Buchholz  <martin@xemacs.org>
8522
8523         * process-unix.c (unix_open_multicast_group):
8524         (unix_open_multicast_group): Remove useless casts.
8525
8526 2000-07-13  Martin Buchholz  <martin@xemacs.org>
8527
8528         * sound.c (Fplay_sound): Fix `unused variable' warning.
8529
8530         * emacs.c (main): Use correct type for _environ on SCO5.
8531
8532 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
8533
8534         * console.h (own_selection_method):
8535         * console.h (selection_exists_p_method):
8536         * console.h (available_selection_types_method): New.
8537         * console.h (register_selection_data_type_method): New.
8538         * console.h (selection_data_type_name): New.
8539
8540         * console-msw.h (mswindows_destroy_selection): Declare it.  New
8541         function & alist to track GlobalAlloc()'d handles that need
8542         releasing when the clipboard data gets replaced or emptied.
8543
8544         * event-msw.c (mswindows_wnd_proc): Call it.
8545
8546         * lisp.h, general.c (Qappend): New symbol representing a
8547         `how-to-add' mode.
8548
8549         * select.c (own-selection-internal):
8550         * select.c (selection-exists-p):
8551         * select.c (available-selection-types): New.
8552         * select.c (register-selection-data-type): New.
8553         * select.c (selection-data-type-name): New.  New functions to deal
8554         with device-specific selection data formats.
8555         * select.c (selection-converter-out-alist): Renamed.
8556         * select.c (selection-converter-in-alist): New.
8557         * select.c (selection-appender-alist): New.  Added new alists.
8558         * select.c (syms_of_select, vars_of_select): Added new symbols &
8559         variables.
8560         * select.c (get_local_selection): Split.
8561         * select.c: Removed spurious type checking - selections may now be
8562         of any type, not just strings.
8563         * select.c (own-selection-internal):
8564
8565         * select.h, select.c (convert_selection): New. Created
8566         convert_selection() function based on get_local_selection().
8567         * select.h, select.c (QCF_*): New symbols representing mswindows
8568         clipboard formats.
8569         * select.h, select.c (Qreplace_all, Qreplace_existing): New
8570         symbols representing `how-to-add' modes.
8571
8572         * select-msw.c (x_sym_p): New.
8573         * select-msw.c (symbol_to_ms_cf): New.
8574         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
8575         symbols & clipboard formats. Can also handle string names.
8576         * select-msw.c (mswindows_own_selection):
8577         * select-msw.c (mswindows_selection_exists_p):
8578         Added `data-type' parameter. Use it.
8579         * select-msw.c (mswindows_available_selection_types): New.
8580         * select-msw.c (mswindows_register_selection_data_type): New.
8581         * select-msw.c (mswindows_selection_data_type_name): New.
8582         * select-msw.c (mswindows_own_selection):
8583         * select-msw.c (mswindows_get_foreign_selection):
8584         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
8585         * select-msw.c (console_create_select_mswindows): Added new methods.
8586         * select-msw.c (mswindows_destroy_selection): New.
8587         * select-msw.c (Vhandle_alist): New list.
8588         * select-msw.c (mswindows_own_selection):
8589
8590         * select-x.c (x_own_selection):
8591         * select-x.c (x_selection_exists_p):
8592         * select-x.c: Added some comments about maybe using new
8593         functionality.
8594         * select-x.c (x_own_selection):
8595
8596         * specifier.c: Remove definition of Qappend (now in general.c)
8597         * specifier.c (syms_of_specifier): Remove Qappend.
8598
8599 2000-07-12  Martin Buchholz  <martin@xemacs.org>
8600
8601         * config.h.in: Add socklen_t.
8602
8603         * s/decosf4-0.h: No special compiler flags needed or desired.
8604         In particular, undefine _BSD for DEC OSF 4.0.
8605
8606 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8607
8608         * redisplay-msw.c (msprinter_frame_output_end): Added.
8609         (console_type_create_redisplay_mswindows): Referred the above.
8610
8611         * frame.c (setup_frame_without_minibuffer): Do not create a
8612         default minibuffer frame on a printer device.
8613
8614         * frame-msw.c (apply_dc_geometry): Added.
8615         (msprinter_start_page):
8616         (msprinter_init_frame_3):
8617         (msprinter_eject_page): Use it.
8618
8619         * console-msw.h (struct msprinter_frame): Added pix_left and top,
8620         and removed residual duplex and orientation properties.
8621
8622 2000-07-11  Martin Buchholz  <martin@xemacs.org>
8623
8624         * eval.c (function_argcount): Work around a DEC CC compiler bug.
8625
8626         * unexalpha.c: Remove system prototypes from C sources!
8627
8628 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
8629
8630         * eval.c: Remove references to M-x edit-options in DEFUNs for
8631         `defvar' and `defconst'.
8632
8633 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8634
8635         * config.h.in: Remove SMART_INCLUDE hackery.
8636
8637         PostgreSQL hacking:
8638         * config.h.in: Don't use SMART_INCLUDE.
8639
8640         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8641         * inline.c: Simply #include "postgresql.h"
8642         * postgresql.c:
8643         - Don't use SMART_INCLUDE
8644         - Use simply "const".
8645         - Use standard doc string conventions.
8646         - Use correct type for result of PQstatus.
8647
8648 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8649
8650         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8651
8652         C++ compilation changes.
8653         * config.h.in (EXTERN_C): Define.
8654         * config.h.in (not): This is also a C++ keyword.
8655         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8656         * cm.c: Use EXTERN_C.
8657         * redisplay-tty.c: Use EXTERN_C.
8658         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8659
8660 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8661
8662         * general.c: Remove duplicate definition for Qfunction.
8663
8664 2000-07-08  Ben Wing  <ben@xemacs.org>
8665
8666         * device-msw.c (msprinter_init_device):
8667         * device-msw.c (sync_printer_with_devmode):
8668         * device-msw.c (handle_devmode_changes):
8669         * device-msw.c (print_dialog_worker):
8670         * device-msw.c (Fmsprinter_apply_settings):
8671         * device-msw.c (hash_devmode):
8672         * device-msw.c (Fmsprinter_settings_despecialize):
8673         use Qmswindows_tstr, not Qctext.
8674
8675         * vm-limit.c (check_memory_limits):
8676         avoid infinite loop printing warning messages.
8677
8678 2000-07-05  Craig Lanning  <lanning@scra.org>
8679
8680         * Makefile.in.in: Add support for including the Windows resources
8681         when building with the cygwin and mingw targets.
8682
8683         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8684         not set or not correct.
8685         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8686         (init_initial_directory): Don't try to use $PWD on the
8687         WIN32_NATIVE target.
8688
8689         * s\cygwin32.h:
8690         [[Add -mwindows to eliminate console window.]] not required --ben
8691         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8692         (MAIL_USE_POP): removed; now handled by configure.
8693
8694         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8695         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8696         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8697         (MAIL_USE_POP): removed; now handled by configure.
8698         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8699         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8700         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8701         constant string.
8702         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8703         up from <winsock.h> via systime.h.
8704         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8705         (getpagesize): from Dan Holmsand, added.
8706         Added #endif which was left dangling by Ben's mega patch; added
8707         comment to help prevent this in the future.
8708
8709         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8710
8711 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8712
8713         * console-msw.h (struct mswindows_device): Removed unnecessary
8714         cached device geometry values.
8715         Added update_tick and an accessor macro.
8716         (Lisp_Devmode): Added lrecord declaration.
8717         (struct msprinter_device): Contain devmode as a Lisp object.
8718         Added mswindows_get_selected_frame_hwnd();
8719
8720         * console.h (struct console_methods): Indentation nitpicking.
8721
8722         * device-msw.c (mswindows_init_device): Do not initialize geometry
8723         cache. Initialize update tick.
8724         (mswindows_device_system_metrics): Ask the device for its geometry.
8725         (global_free_2_maybe):
8726         (devmode_to_hglobal):
8727         (handle_printer_changes):
8728         (ensure_not_printing):
8729         (print_dialog_worker):
8730         (Fmsprinter_print_setup_dialog):
8731         (Fmsprinter_print_dialog):
8732         (plist_get_margin):
8733         (plist_set_margin):
8734         (Fmsprinter_page_setup_dialog): Added functions.
8735         (sync_printer_with_devmode):
8736         (handle_devmode_changes):
8737         (Fmsprinter_get_settings):
8738         (Fmsprinter_select_settings):
8739         (Fmsprinter_apply_settings):
8740         (allocate_devmode):
8741         (Fmsprinter_settings_copy):
8742         (Fmsprinter_settings_despecialize):
8743         (print_devmode):
8744         (finalize_devmode):
8745         (equal_devmode):
8746         (hash_devmode): Added functions
8747         (syms_of_device_mswindows): Init devmode lrecord class.
8748
8749         * device.h: Added an exfun for find-device.
8750
8751         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8752         geometry; although, recreate the device compatible DC.
8753
8754         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8755         (msprinter_init_frame_3):
8756         (msprinter_frame_property):
8757         (msprinter_internal_frame_property_p):
8758         (msprinter_frame_properties):
8759         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8760         print job properties (will move to device settings).
8761
8762         * lisp.h: Added symbols.
8763
8764         * general.c (syms_of_general): Declared them.
8765
8766         * hash.c (string_hash): Added.
8767
8768         * lrecord.h (lrecord_type): Added devmode lrecord type.
8769
8770 2000-07-02  Mike Sperber <mike@xemacs.org>
8771
8772         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8773         FreeBSD 4.0.
8774
8775 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8776
8777         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8778         integer.
8779
8780 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8781
8782         * data.c (Fstring_to_number): Don't recognize floating point if
8783         base is not 10.
8784
8785 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8786
8787         * glyphs-widget.c (tab_control_query_geometry):
8788         (widget_query_geometry):
8789         (button_query_geometry):
8790         * glyphs.c (text_query_geometry):
8791         Enforce type correctness.
8792
8793 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8794
8795         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8796         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8797
8798 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8799
8800         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8801         conflicts with gcc's fixincluded version of FOO.h.
8802
8803         * glyphs.h (image_instance_geometry): Remove trailing `,'
8804
8805 2000-06-08  Mike Alexander  <mta@arbortext.com>
8806
8807         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8808         (shove_thread): Don't write the same output twice
8809         (make_ntpipe_output_stream): Increase priority of shove thread
8810         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8811         chance to run
8812         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8813         it.
8814
8815 2000-06-12  Ben Wing  <ben@xemacs.org>
8816
8817         * s\mingw32.h (sigset):
8818         * s\windowsnt.h (sigset):
8819         rename msw_ to mswindows_ for consistency with general convention.
8820
8821 2000-06-12  Ben Wing  <ben@xemacs.org>
8822
8823         * console-msw.c:
8824         * console-msw.c (mswindows_get_console_hwnd):
8825         * console-msw.c (mswindows_ensure_console_allocated):
8826         * console-msw.c (mswindows_hide_console):
8827         * console-msw.c (mswindows_show_console):
8828         * console-msw.c (mswindows_ensure_console_buffered):
8829         * console-msw.c (mswindows_output_console_string):
8830         * console-msw.c (mswindows_windows9x_p):
8831         * console-msw.h:
8832         * device-msw.c (mswindows_get_workspace_coords):
8833         * device-msw.c (mswindows_device_system_metrics):
8834         * dialog-msw.c (mswindows_popup_dialog_box):
8835         * event-msw.c (mswindows_wnd_proc):
8836         * frame-msw.c (mswindows_size_frame_internal):
8837         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8838         * menubar-msw.c (displayable_menu_item):
8839         * menubar-msw.c (mswindows_char_is_accelerator):
8840         * nt.c:
8841         * nt.c (mswindows_sigset):
8842         * nt.c (mswindows_sigrelse):
8843         * nt.c (mswindows_sigpause):
8844         * nt.c (mswindows_raise):
8845         * nt.c (timer_proc):
8846         * ntproc.c:
8847         * ntproc.c (find_child_console):
8848         * ntproc.c (sys_kill):
8849         * print.c:
8850         * print.c (std_handle_out_external):
8851         * process-nt.c (find_child_console):
8852         * process-nt.c (send_signal_the_95_way):
8853         * process-nt.c (ensure_console_window_exists):
8854         * process-nt.c (nt_create_process):
8855         * syssignal.h:
8856         rename msw_ to mswindows_ for consistency with general convention.
8857
8858         * emacs.c:
8859         * dumper.c:
8860         include nt.h, not syswindows.h.
8861
8862         * nt.c (mswindows_fstat):
8863         * nt.c (mswindows_stat):
8864         prefix mswindows_ instead of attempting to directly override the
8865         library functions.  fix declarations.
8866
8867         * nt.h:
8868         include syswindows.h.  move some sysdep.h stuff here.
8869
8870         * ntheap.h:
8871         include syswindows.h, not <windows.h>.
8872
8873         * ntplay.c:
8874         clean up headers.
8875
8876         * sysdep.c:
8877         clean up headers.
8878
8879         * sysdep.c (sys_fstat):
8880         * sysdep.c (sys_stat):
8881         call mswindows versions when appropriate.
8882
8883         * sysdep.h:
8884         move mswin decls to nt.h.
8885
8886         * syswindows.h:
8887         add long comment describing appropriate use of the various windows
8888         headers.
8889
8890 2000-06-11  Ben Wing  <ben@xemacs.org>
8891
8892         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8893
8894 2000-06-10  Ben Wing  <ben@xemacs.org>
8895
8896         * Makefile.in.in (release):
8897         Correction to make sure xemacs.exe always dumped when correct.
8898
8899         * alloca.c:
8900         * balloon_help.c:
8901         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8902
8903         * buffer.c (set_buffer_internal):
8904         [[[[2]]]]: Remove HAVE_FEP code.
8905
8906         * buffer.c (init_initial_directory):
8907         [3].
8908
8909         * bytecode.c:
8910         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8911         individual files.
8912
8913         * callproc.c:
8914         * callproc.c (call_process_cleanup):
8915         * callproc.c (Fold_call_process_internal):
8916         * callproc.c (child_setup):
8917         * callproc.c (getenv_internal):
8918         * callproc.c (init_callproc):
8919         * callproc.c (vars_of_callproc):
8920         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8921         __CYGWIN32__ -> CYGWIN.
8922         DOS_NT -> WIN32_NATIVE.
8923         Remove MSDOS support/references, converting to WIN32_NATIVE
8924           where correct.
8925         __MINGW32__ -> MINGW.
8926         Fix windows.h includes.
8927         Remove bogus HAVE_NTGUI.
8928
8929         * config.h.in:
8930         [2].
8931
8932         * console-msw.c:
8933         mswindows_message_outputted added for use in allowing startup
8934         errors on the console to be seen.
8935
8936         * console-msw.c (msw_ensure_console_allocated):
8937         * console-msw.c (msw_output_console_string):
8938         * console-msw.c (DHEADER):
8939         * console-msw.c (DOPAQUE_DATA):
8940         * console-msw.c (DEVENT):
8941         * console-msw.c (DCONS):
8942         * console-msw.c (DCONSCDR):
8943         * console-msw.c (DSTRING):
8944         * console-msw.c (DVECTOR):
8945         * console-msw.c (DSYMBOL):
8946         * console-msw.c (DSYMNAME):
8947         Fix warnings.
8948
8949         * console-stream.c (stream_init_console):
8950         Fix text/binary problems.
8951
8952         * device-msw.c:
8953         * device-msw.c (mswindows_finish_init_device):
8954         * device-msw.c (mswindows_delete_device):
8955         [1].
8956
8957         * device.c (handle_asynch_device_change):
8958         [3].
8959
8960         * dgif_lib.c:
8961         * dgif_lib.c (DGifOpenFileName):
8962         * dgif_lib.c (DGifOpenFileHandle):
8963         * dgif_lib.c (DGifGetLine):
8964         * dgif_lib.c (DGifGetPixel):
8965         Added config.h/lisp.h, fix up includes.
8966         [1].
8967
8968         * dired-msw.c:
8969         [4].
8970
8971         * dired.c:
8972         * dired.c (file_name_completion):
8973         * dired.c (Ffile_attributes):
8974         * dired.c (syms_of_dired):
8975         [1].
8976
8977         * dumper.c:
8978         * dumper.c (pdump_file_unmap):
8979         * dumper.c (pdump_load):
8980         [1].
8981
8982         * editfns.c:
8983         * editfns.c (Ftemp_directory):
8984         * editfns.c (user_login_name):
8985         * editfns.c (Fuser_real_login_name):
8986         * editfns.c (get_home_directory):
8987         [1].
8988
8989         * elhash.c (finish_marking_weak_hash_tables):
8990         [[[[5]]]]: Fix GCC warnings.
8991
8992         * emacs.c:
8993         * emacs.c (mswindows_handle_hardware_exceptions):
8994         * emacs.c (make_arg_list_1):
8995         * emacs.c (main_1):
8996         * emacs.c (Fkill_emacs):
8997         * emacs.c (Fdump_emacs):
8998         [1].
8999         Fix problems with nested crashes, add long comment.
9000
9001         * event-Xt.c (init_event_Xt_late):
9002         [1].
9003
9004         * event-msw.c:
9005         * event-msw.c (mswindows_dde_callback):
9006         * event-msw.c (mswindows_handle_sticky_modifiers):
9007         * event-msw.c (mswindows_wnd_proc):
9008         [1].
9009         [5].
9010
9011         * events.c (character_to_event):
9012         [1].
9013
9014         * fileio.c:
9015         * fileio.c (Ffile_name_directory):
9016         * fileio.c (Ffile_name_nondirectory):
9017         * fileio.c (directory_file_name):
9018         * fileio.c (Fexpand_file_name):
9019         * fileio.c (Fsubstitute_in_file_name):
9020         * fileio.c (Ffile_name_absolute_p):
9021         * fileio.c (check_executable):
9022         * fileio.c (Ffile_readable_p):
9023         * fileio.c (Ffile_accessible_directory_p):
9024         * fileio.c (Ffile_modes):
9025         * fileio.c (Funix_sync):
9026         * fileio.c (vars_of_fileio):
9027         [1]. [4].
9028
9029         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
9030
9031         Expand getdefdir defn.
9032         Fix bogus rename() comment.
9033
9034         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
9035         to use standard XEmacs include files, e.g. sysfile.h, rather
9036         than system-specific includes.
9037
9038         * fns.c:
9039         * fns.c (Fsubseq):
9040         [5]. [6].
9041
9042         * frame.c (vars_of_frame):
9043         [1].
9044
9045         * getloadavg.c:
9046         * getloadavg.c (getloadavg):
9047         [1]. [6].
9048         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
9049         (We don't use it elsewhere in the code; just add a comment.)
9050
9051         * gif_io.c:
9052         [6].
9053         Add config.h.
9054
9055         * glyphs-msw.c:
9056         * glyphs-msw.c (mswindows_resource_instantiate):
9057         [1].
9058
9059         * glyphs-x.c (x_native_layout_instantiate):
9060         [5].
9061
9062         * gui-msw.c (Fmswindows_shell_execute):
9063         [1].
9064
9065         * insdel.c:
9066         [4].
9067
9068         * lisp.h:
9069         [4]. [5].
9070
9071         * lread.c (locate_file_in_directory_mapper):
9072         [1].
9073
9074         * lstream.c:
9075         [4].
9076
9077         * mem-limits.h:
9078         * mem-limits.h (get_lim_data):
9079         [1].
9080
9081         * menubar-msw.c:
9082         [4].
9083
9084         * ndir.h:
9085         [1].
9086
9087         * nt.c:
9088         * nt.c (getwd):
9089         * nt.c (closedir):
9090         * nt.c (rva_to_section):
9091         * nt.c (mswindows_executable_type):
9092         [1]. [6].
9093         Fix closedir() defn.
9094
9095         * nt.h:
9096         [[[[8]]]]: *_OK defs moved to sysfile.h.
9097
9098         * ntproc.c:
9099         [6]. [7].
9100
9101         * objects-x.c:
9102         [4].
9103
9104         * print.c:
9105         * print.c (std_handle_out_external):
9106         [1]. [4].
9107
9108         * process-nt.c:
9109         * process-nt.c (nt_create_process):
9110         [6].
9111         try to fix process quoting somewhat.
9112
9113         * process-unix.c (unix_create_process):
9114         [1].
9115
9116         * process.c:
9117         * process.c (vars_of_process):
9118         Add Vnull_device.
9119
9120         * process.h:
9121         [1].
9122
9123         * realpath.c:
9124         * realpath.c (xrealpath):
9125         [1].
9126
9127         * redisplay-tty.c (init_tty_for_redisplay):
9128         [3].
9129
9130         * redisplay.c:
9131         [4]. [6].
9132
9133         * scrollbar-msw.c:
9134         [4].
9135
9136         * sheap.c:
9137         * sheap.c (more_static_core):
9138         * sheap.c (report_sheap_usage):
9139         [5]. [6].
9140
9141         * signal.c:
9142         * signal.c (alarm_signal):
9143         [1]. [6].
9144
9145         * sound.c:
9146         [6].
9147
9148         * strftime.c:
9149         * strftime.c (zone_name):
9150         [1]. [5].
9151
9152         * symsinit.h (init_sunpro):
9153         [1].
9154
9155         * syscommctrl.h:
9156         commctrl.h not in Cygwin b20.1.
9157
9158         * sysdep.c:
9159         * sysdep.c (endif):
9160         * sysdep.c (sys_subshell):
9161         * sysdep.c (init_baud_rate):
9162         * sysdep.c (emacs_get_tty):
9163         * sysdep.c (emacs_set_tty):
9164         * sysdep.c (tty_init_sys_modes_on_device):
9165         * sysdep.c (init_system_name):
9166         * sysdep.c (sys_open):
9167         * sysdep.c (interruptible_open):
9168         * sysdep.c (sys_fopen):
9169         * sysdep.c (sys_mkdir):
9170         * sysdep.c (sys_rename):
9171         * sysdep.c (get_process_times_1):
9172         [1]. [6].
9173
9174         * sysdep.h:
9175         [1].
9176
9177         * sysdir.h:
9178         * sysdir.h (DIRENTRY_NONEMPTY):
9179         [1]. [6].
9180
9181         * sysdll.c (dll_init):
9182         * sysdll.h:
9183         [1].
9184
9185         * sysfile.h:
9186         [1]. [6]. [8].
9187         added text/binary defs.
9188
9189         * sysfloat.h:
9190         [1].
9191
9192         * sysproc.h:
9193         * sysproc.h (EDESTADDRREQ):
9194         * sysproc.h (poll_fds_for_input):
9195         [1]. [6].
9196
9197         * syspwd.h:
9198         [6].
9199
9200         * syssignal.h:
9201         [1].
9202
9203         * systime.h:
9204         [1]. [6].
9205
9206         * systty.h:
9207         [1].
9208
9209         * syswindows.h:
9210         [1].
9211         Always define WIN32_LEAN_AND_MEAN.
9212
9213         * unexcw.c (unexec):
9214         [5].
9215
9216         * unexec.c:
9217         * unexec.c (copy_text_and_data):
9218         * unexec.c (adjust_lnnoptrs):
9219         [1].
9220
9221         * unexnt.c:
9222         * unexnt.c (_start):
9223         [1].
9224
9225 2000-06-07  Ben Wing  <ben@xemacs.org>
9226
9227         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
9228         was used only as a model.  We've long since extracted any useful
9229         logic or code out of this. (I just did an exhaustive search.)
9230
9231         * s\msdos.h: Removed.
9232
9233         * s\windows95.h: Removed.
9234
9235 2000-06-10  Ben Wing  <ben@xemacs.org>
9236
9237         * s\cygwin32.h:
9238         [1]. [5].
9239         Don't use extern with fun defs.
9240
9241         * s\mingw32.h:
9242         [1]. [7].
9243         Remove nt\inc include.
9244         Remove getdisk, getdefdir. (The former is unused, the latter
9245         expanded in fileio.h.)
9246
9247         * s\windowsnt.h:
9248         * s\windowsnt.h (WIN32_NATIVE):
9249         * s\windowsnt.h (HAVE_STRCASECMP):
9250         [1]. [7].
9251         Add long comment about preprocessor changes.
9252         Remove getdisk, getdefdir. (The former is unused, the latter
9253         expanded in fileio.h.)
9254
9255 2000-06-10  Ben Wing  <ben@xemacs.org>
9256
9257         * m\arm.h:
9258         * m\delta.h:
9259         * m\intel386.h:
9260         * m\sequent.h:
9261         * m\template.h:
9262         * m\windowsnt.h:
9263         [1].
9264         Remove bogus/unused NO_SOCK_SIGIO.
9265
9266 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
9267
9268         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
9269         not an Emchar.
9270
9271 2000-06-04  Mike Sperber <mike@xemacs.org>
9272
9273         * casetab.c (set_case_table): For `set-standard-case-table',
9274         actually deposit the new case tables where the rest of XEmacs can
9275         see them.
9276
9277 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
9278
9279         * data.c (Faset): Don't cast XCHAR() to unsigned char.
9280
9281 2000-06-05  Ben Wing  <ben@xemacs.org>
9282
9283         * callproc.c (child_setup): Don't do close_load_descs() under
9284         MS Windows.  Put in a comment explaining why.
9285
9286 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
9287
9288         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
9289         Toolkit shell" which breaks `kill-compilation' on Windows NT
9290         native, retaining STDERR handling improvements.
9291
9292 2000-06-01  Andreas Jaeger  <aj@suse.de>
9293
9294         * s/s390.h: Support for S390, based on a patch by Martin
9295         Schwidefsky <schwidefsky@de.ibm.com>.
9296
9297 2000-05-30  Andy Piper  <andy@xemacs.org>
9298
9299         * window.c (allocate_window):
9300         (make_dummy_parent):
9301         (Fset_window_configuration): use new hashtable type.
9302
9303         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
9304         (struct image_instantiator_methods):
9305         (struct Lisp_Image_Instance): make instance geometry signed.
9306
9307         * glyphs.c (instantiate_image_instantiator):
9308         (image_instance_query_geometry):
9309         (image_instance_layout):
9310         (image_instance_layout):
9311         (query_string_geometry):
9312         (text_query_geometry):
9313         (image_instantiate):
9314         (image_instantiate):
9315         (cache_subwindow_instance_in_frame_maybe):
9316         (subwindow_query_geometry): make instance geometry signed.
9317
9318         * glyphs-widget.c (widget_query_geometry):
9319         (widget_layout):
9320         (button_query_geometry):
9321         (tree_view_query_geometry):
9322         (tab_control_query_geometry):
9323         (layout_query_geometry):
9324         (layout_layout):
9325         (native_layout_layout): make instance geometry signed.
9326
9327 2000-05-29  Olivier Galibert  <galibert@pobox.com>
9328
9329         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
9330         constant.
9331
9332         * general.c (syms_of_general): Add Qfull_assoc symbol.
9333
9334         * data.c (finish_marking_weak_lists): Mark full-assoc lists
9335         correctly.
9336         (decode_weak_list_type): Decode full-assoc type.
9337         (encode_weak_list_type): Encode full-assoc type.
9338         (Fmake_weak_list): Update doc string.
9339
9340 2000-05-30  Andy Piper  <andy@xemacs.org>
9341
9342         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
9343
9344         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
9345         (decode_hash_table_weakness): ditto.
9346         (Fhash_table_weakness): ditto.
9347         (Fhash_table_type): ditto.
9348         (finish_marking_weak_hash_tables): ditto.
9349         (hash_table_weakness_validate): ditto.
9350         (syms_of_elhash): ditto.
9351
9352 2000-05-28  Martin Buchholz <martin@xemacs.org>
9353
9354         * XEmacs 21.2.34 is released.
9355
9356 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
9357
9358         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
9359         start cache.
9360         (updating_line_start_cache): Gone.
9361         (regenerate_window): Replace resetting of VERTICAL_CLIP by
9362         generic code to force a minimum of 1 line laid out in the
9363         CMOTION_DISP case.
9364
9365 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
9366
9367         * glyphs.c (instantiate_image_instantiator): Check for initialized
9368         height & width no longer special cases IMAGE_NOTHING.
9369         (nothing_instantiate): Set height and width of instance.
9370
9371 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9372
9373         * unexelf.c (unexec): Search for ".data" section.
9374         Initialize new_data2_offset from old_data_index.
9375         Remove redundant check for ElfW.
9376
9377 2000-05-23  Andy Piper  <andy@xemacs.org>
9378
9379         * glyphs.c (get_image_instantiator_governing_domain): allow more
9380         specific domains as the governing domain rather than expecting an
9381         exact match. This fixes problems with layouts.
9382
9383 2000-05-22  Andy Piper  <andy@xemacs.org>
9384
9385         * redisplay-output.c (compare_runes): check for non-images
9386
9387         * glyphs.c (set_glyph_dirty_p): ditto.
9388         (update_glyph_cachel_data): ditto.
9389
9390         * glyphs-widget.c (layout_post_instantiate): ditto.
9391         (layout_post_instantiate): ditto.
9392
9393         * event-msw.c (mswindows_wnd_proc): warning removal.
9394
9395 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
9396
9397         * s\mingw32.h: Added #undef for CLASH_DETECTION.
9398
9399         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
9400
9401         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
9402
9403         * nt.c (rva_to_section): mingw32 needs rva_to_section.
9404         (mswindows_executable_type): mingw32 now has enough headers for
9405         this to work.
9406
9407 2000-05-20  Andy Piper  <andy@xemacs.org>
9408
9409         * console-msw.c (mswindows_output_last_error): ; -> ,
9410
9411 2000-05-12  Andy Piper  <andy@xemacs.org>
9412
9413         * console-msw.c (FROB): compare ints with ints.
9414
9415 2000-05-11  Andy Piper  <andy@xemacs.org>
9416
9417         * glyphs-x.c (x_finalize_image_instance): make minimal build
9418         happy.
9419
9420 2000-05-20  Ben Wing  <ben@xemacs.org>
9421
9422         * event-Xt.c:
9423         * event-Xt.c (vars_of_event_Xt):
9424         move modifier-keys-are-sticky to event-stream.c.
9425
9426         * event-msw.c:
9427         * event-msw.c (mswindows_enqueue_mouse_button_event):
9428         * event-msw.c (key_needs_default_processing_p):
9429         * event-msw.c (XEMSW_LCONTROL):
9430         * event-msw.c (mswindows_handle_sticky_modifiers):
9431         * event-msw.c (FROB):
9432         * event-msw.c (clear_sticky_modifiers):
9433         * event-msw.c (output_modifier_keyboard_state):
9434         * event-msw.c (output_alt_keyboard_state):
9435         * event-msw.c (mswindows_wnd_proc):
9436         * event-msw.c (mswindows_modifier_state):
9437         * event-msw.c (emacs_mswindows_handle_magic_event):
9438         implement sticky modifiers.
9439
9440         * event-stream.c:
9441         * event-stream.c (vars_of_event_stream):
9442         move modifier-keys-are-sticky here.
9443
9444         * lisp.h:
9445         add CHECK_FUNCTION.
9446
9447         * rangetab.c:
9448         implement map-range-table.
9449
9450
9451 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
9452
9453         * redisplay-tty.c (reset_tty_modes):
9454         (tty_redisplay_shutdown): Adjust argument type to
9455         tty_frame_output_end.
9456
9457 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9458
9459         * eval.c (Fbacktrace): Don't output a line with only right
9460         parenthesis.
9461
9462 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
9463
9464         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
9465         (Fpq_reset_poll): Ditto.
9466
9467 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
9468
9469         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
9470
9471 2000-05-16  Ben Wing  <ben@xemacs.org>
9472
9473         * buffer.c:
9474         * buffer.c (dfc_convert_to/from_internal_format):
9475         * buffer.c (reinit_vars_of_buffer):
9476         Fix conversion functions to allow reentrancy.
9477
9478         * console-msw.c:
9479         * console-msw.c (mswindows_output_last_error):
9480         New fun, generally useful -- output a human-readable
9481         version of GetLastError() on the console.
9482
9483         * console-msw.h:
9484         * console-msw.h (struct mswindows_frame):
9485         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
9486
9487         * console-stream.c (stream_output_begin):
9488         * console-stream.c (stream_output_end):
9489         * console-stream.c (stream_output_vertical_divider):
9490         * console-stream.c (stream_clear_region):
9491         * console-stream.c (stream_flash):
9492         * console-stream.c (console_type_create_stream):
9493         Delete blank stream methods, not needed.
9494
9495         * console.h (struct console_methods):
9496         Split begin/end methods into window and frame.
9497
9498         * event-msw.c:
9499         * event-msw.c (mswindows_handle_paint):
9500         * event-msw.c (output_alt_keyboard_state):
9501         * event-msw.c (mswindows_wnd_proc):
9502         * event-msw.c (vars_of_event_mswindows):
9503         Comment about problems with ignored-expose.
9504         Define mswindows-debug-events; not really implemented.
9505
9506         * frame-msw.c (mswindows_init_frame_1):
9507         random cleanups.
9508
9509         * glyphs-msw.c:
9510         * glyphs-msw.c (begin_defer_window_pos):
9511         * glyphs-msw.c (mswindows_unmap_subwindow):
9512         * glyphs-msw.c (mswindows_map_subwindow):
9513         * glyphs-msw.c (mswindows_resize_subwindow):
9514         Use DeferWindowPos to reduce flashing when mapping/unmapping.
9515
9516         * glyphs.c (make_image_instance_1):
9517         Fix crash.
9518
9519         * gutter.c (Fredisplay_gutter_area):
9520         Use new begin/end methods.
9521
9522         * lisp.h (Dynarr_new2):
9523         New creation fun.
9524
9525         * redisplay-msw.c:
9526         * redisplay-msw.c (mswindows_frame_output_begin):
9527         * redisplay-msw.c (mswindows_frame_output_end):
9528         * redisplay-msw.c (console_type_create_redisplay_mswindows):
9529         New begin/end methods -- handle DeferWindowPos.
9530
9531         * redisplay-output.c (redisplay_move_cursor):
9532         * redisplay-output.c (redraw_cursor_in_window):
9533         * redisplay-output.c (redisplay_update_line):
9534         * redisplay-output.c (redisplay_output_window):
9535         New begin/end methods.
9536
9537         * redisplay-tty.c:
9538         * redisplay-tty.c (tty_frame_output_begin):
9539         * redisplay-tty.c (tty_frame_output_end):
9540         * redisplay-tty.c (console_type_create_redisplay_tty):
9541         New begin/end methods.
9542
9543         * redisplay-x.c:
9544         * redisplay-x.c (x_window_output_begin):
9545         * redisplay-x.c (x_window_output_end):
9546         * redisplay-x.c (console_type_create_redisplay_x):
9547         New begin/end methods.
9548
9549         * redisplay.c (redisplay_frame):
9550         * redisplay.c (Fredisplay_echo_area):
9551         New begin/end methods.
9552         use MAYBE_DEVMETH for clear_frame; it may not exist.
9553
9554         * window.h (WINDOW_XFRAME):
9555         WINDOW_XFOO macros -- get locale and decode struct pointer.
9556
9557
9558 2000-05-12  Ben Wing  <ben@xemacs.org>
9559
9560         * emacs.c:
9561         * emacs.c (ensure_no_quitting_from_now_on):
9562         * emacs.c (fatal_error_signal):
9563         * emacs.c (mswindows_handle_hardware_exceptions):
9564         * emacs.c (main):
9565         * emacs.c (Fkill_emacs):
9566         * emacs.c (shut_down_emacs):
9567         * emacs.c (assert_failed):
9568         various improvements in fatal error handling.
9569
9570         * eval.c:
9571         move preparing_for_armageddon to emacs.c.
9572
9573         * lisp.h:
9574         declare fatal_error_in_progress.
9575
9576         * print.c:
9577         * print.c (std_handle_out_external):
9578         * print.c (std_handle_out_va):
9579         * print.c (stderr_out):
9580         * print.c (stdout_out):
9581         use console under mswin when no standard output.
9582         don't do code conversion during fatal error.
9583
9584         * scrollbar.c (Fscrollbar_page_up):
9585         * scrollbar.c (Fscrollbar_page_down):
9586         fix missing else.  reindent.
9587
9588 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
9589
9590         Emergency fix.
9591
9592         * glyphs.h (GLYPH_CACHEL_DESCENT):
9593         (GLYPH_CACHEL_DESCENT):
9594         (GLYPH_CACHEL_DESCENT):
9595         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9596         used in case these are inline functions.
9597         Use more absurd values to error check.
9598
9599         include window.h for error check functions.
9600
9601 2000-05-11  Ben Wing  <ben@xemacs.org>
9602
9603         * cmdloop.c (Freally_early_error_handler):
9604         Display message box under windows; otherwise, message will disappear
9605         before it can be viewed.
9606
9607         * console-msw.c:
9608         * console-msw.c (Fmswindows_message_box):
9609         * console-msw.c (FROB):
9610         * console-msw.c (syms_of_console_mswindows):
9611         Define new fun `mswindows-message-box'.
9612         #### I will merge this into `popup-dialog-box'; just give me
9613         a bit of time.
9614
9615         * general.c:
9616         * general.c (syms_of_general):
9617         Some new symbols used in `mswindows-message-box'.
9618
9619         * glyphs.c:
9620         * glyphs.c (Fset_image_instance_property):
9621         put warning in this fun.
9622
9623         * glyphs.h:
9624         * glyphs.h (GLYPH_CACHEL_WIDTH):
9625         * glyphs.h (GLYPH_CACHEL_ASCENT):
9626         * glyphs.h (GLYPH_CACHEL):
9627         * glyphs.h (GLYPH_CACHEL_GLYPH):
9628         define error-checking versions to try to catch a bug i've seen --
9629         redisplay gets in an infinite loop because the glyph width of the
9630         continuation glyph is 65535.
9631
9632         * lisp.h:
9633         Extern message-box stuff.
9634
9635         * window.c (allocate_window):
9636         * window.c (make_dummy_parent):
9637         * window.c (Fset_window_configuration):
9638         Use EQUAL not EQ for subwindow caches to make them work a bit
9639         better. (Something is still very broken.)
9640
9641
9642 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9643
9644         * glyphs.c (image_instantiate): Suppress gcc warnings.
9645         (Fmake_image_instance): Fix doc string.
9646         * specifier.c (Fmake_specifier): Ditto.
9647
9648 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9649
9650         * paths.h.in (PATH_LOCK): Removed.
9651         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9652         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9653
9654 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9655
9656         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9657         Document (featurep '(and xemacs 21.02)).
9658
9659 2000-05-09  Ben Wing  <ben@xemacs.org>
9660
9661         * buffer.c (complex_vars_of_buffer):
9662         update modeline-format doc.
9663
9664         * device.h:
9665         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9666
9667         * emacs.c:
9668         timeline of all released versions of Emacs, for use in creating
9669         authorship comments and in synching up.
9670
9671         * glyphs-widget.c (image_instantiator_buttons):
9672         * glyphs-widget.c (image_instantiator_edit_fields):
9673         * glyphs-widget.c (image_instantiator_combo_box):
9674         * glyphs-widget.c (image_instantiator_scrollbar):
9675         * glyphs-widget.c (image_instantiator_progress_guage):
9676         * glyphs-widget.c (image_instantiator_tree_view):
9677         * glyphs-widget.c (image_instantiator_tab_control):
9678         * glyphs-widget.c (image_instantiator_labels):
9679         * glyphs-widget.c (image_instantiator_layout):
9680         * glyphs-widget.c (image_instantiator_native_layout):
9681         rename decode_domain method to governing_domain.
9682
9683         * glyphs.c:
9684         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9685         * glyphs.c (add_entry_to_device_ii_format_list):
9686         make sure we don't put an entry more than once into the list.
9687         * glyphs.c (check_instance_cache_mapper):
9688         *************************************************************
9689         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9690         HAVE BEEN GETTING.
9691         *************************************************************
9692         * glyphs.c (get_image_instantiator_governing_domain):
9693         clean up, expand on new concept of governing domain.
9694         * glyphs.c (instantiate_image_instantiator):
9695         * glyphs.c (allocate_image_instance):
9696         use governing_domain instead of cache_domain in naming.
9697         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9698         * glyphs.c (make_image_instance_1):
9699         * glyphs.c (Fmake_image_instance):
9700         allow for any domain (not just device), and process the
9701         governing domain correctly.  very big doc fix.
9702         * glyphs.c (Fimage_instance_domain):
9703         new primitive, to retrieve the governing domain of an image instance.
9704         * glyphs.c (image_instantiate):
9705         use new governing_domain stuff.  this fixes a crash you could get
9706         by instantiating certain widget glyphs in frame locales. (should
9707         signal an error instead of crashing.)
9708         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9709         * glyphs.c (Fglyphp): clean up doc.
9710         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9711         * glyphs.c (syms_of_glyphs):
9712         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9713         * glyphs.c (image_instantiator_format_create): add some comments about
9714         bogus code.
9715         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9716         for current-display-table. (Apparently Hrjove implemented in 1998 a
9717         design I wrote up in 1996, but didn't update the doc string.)
9718
9719         * glyphs.h: clean up a doc string.
9720         * glyphs.h (governing_domain):
9721         * glyphs.h (struct image_instantiator_methods):
9722         changes for governing_domain stuff.
9723
9724         * gutter.c:
9725         * gutter.c (Fgutter_specifier_p):
9726         * gutter.c (Fgutter_size_specifier_p):
9727         * gutter.c (Fgutter_visible_specifier_p):
9728         * objects.c:
9729         * objects.c (Fcolor_specifier_p):
9730         * objects.c (Ffont_specifier_p):
9731         * objects.c (Fface_boolean_specifier_p):
9732         doc strings moved to make-*-specifier.
9733
9734         * redisplay.c (add_disp_table_entry_runes_1):
9735         * redisplay.c (generate_fstring_runes):
9736         * redisplay.c (screen):
9737         add random comments and doc strings.
9738
9739         * specifier.c:
9740         * specifier.c (Fmake_specifier):
9741         major overhaul of this doc string.
9742
9743         * specifier.c (Fvalid_specifier_domain_p):
9744         comment about the bogosity of image instances being domains.
9745         * specifier.c (decode_domain):
9746         now non-static, used in glyphs.c.
9747         * specifier.c (specifier_instance):
9748         comment about the bogosity of image instances being domains.
9749         * specifier.c (Fgeneric_specifier_p):
9750         move doc string to make-generic-specifier.
9751         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9752         rebackslashify.
9753
9754         * specifier.h:
9755         * specifier.h (DOMAIN_FRAME):
9756         * specifier.h (DOMAIN_LIVE_P):
9757         * specifier.h (DOMAIN_XDEVICE):
9758         rebackslashify.
9759         add comments about problems with these macros.
9760         prototype for decode_domain.
9761
9762         * toolbar.c:
9763         * toolbar.c (Ftoolbar_specifier_p):
9764         move doc string to `make-toolbar-specifier'.
9765
9766         * window.c (window_unmap_subwindows_cache_mapper):
9767         *************************************************************
9768         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9769         HAVE BEEN GETTING.
9770         *************************************************************
9771
9772 2000-05-09  Andy Piper  <andy@xemacs.org>
9773
9774         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9775
9776         * window.c (Fset_window_configuration): reset the frame subwindow
9777         cache and re-initialize the window subwindow caches.
9778
9779         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9780
9781 2000-05-09  Ben Wing  <ben@xemacs.org>
9782
9783         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9784         DWORD.
9785
9786 2000-04-26  Mike Woolley  <mike@bulsara.com>
9787
9788         * ntheap.c: Changed recreate_heap to limit the amount reserved
9789         for the heap to that which is actually available. Also now
9790         displays a message box (with some dignostics) in the event that
9791         it still can't start.
9792
9793 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9794
9795         * callproc.c (Fold_call_process_internal): GCPRO path
9796
9797 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9798
9799         Patch by Bill Perry.
9800
9801         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9802         back data instead of #ifdef.
9803         (Fscrollbar_page_down): ditto.
9804
9805 2000-05-07  Ben Wing  <ben@xemacs.org>
9806
9807         * buffer.h:
9808         Kludge for defining Qmswindows_tstr.
9809
9810         * nt.c:
9811         * nt.c (open_input_file):
9812         * nt.c (open_output_file):
9813         * nt.c (rva_to_section):
9814         * nt.c (mswindows_executable_type):
9815         Move all memory-mapped-file routines here (some were in unexnt.c,
9816         which is bad because they are used by process-nt.c, and unexnt
9817         won't be around when portable dumping).  Synched the above routines
9818         with FSF 20.6.
9819
9820         * nt.h:
9821         Removed ifdef'd out bogus code.
9822         Fixed some prototypes.
9823
9824         * nt.h (file_data):
9825         * nt.h (OFFSET_TO_RVA):
9826         * nt.h (RVA_TO_OFFSET):
9827         * nt.h (RVA_TO_PTR):
9828         Moved the memory-mapped-file structures, macros and prototypes
9829         here, to parallel nt.c.  ntheap.h should really be removed
9830         entirely, and it's a non-portable-dumper specific file.
9831
9832         * ntheap.h (round_to_next):
9833         Moved the memory-mapped-file structures, macros and prototypes
9834         to nt.h.
9835
9836         * ntproc.c (compare_env):
9837         Moved rva_to_section and mswindows_executable_type to nt.c.
9838         Moved compare_env to process-nt.c.
9839         ntproc.c will die, one day.
9840
9841         * ntproc.c (sys_spawnve):
9842         Account for win32_ -> mswindows_.
9843
9844         * process-nt.c:
9845         * process-nt.c (struct nt_process_data):
9846         * process-nt.c (ensure_console_window_exists):
9847         * process-nt.c (compare_env):
9848         * process-nt.c (nt_create_process):
9849         * process-nt.c (nt_kill_process_by_pid):
9850         * process-nt.c (syms_of_process_nt):
9851         * process-nt.c (vars_of_process_nt):
9852         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9853         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9854         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9855         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9856         Move compare_env here from ntproc.c.
9857
9858         * process.c (Fprocess_send_region):
9859         Takes an optional fourth argument, BUFFER, which should fix some
9860         problems with call-process.
9861
9862         * syscommctrl.h:
9863         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9864
9865         * syswindows.h:
9866         Move ICC_BAR_CLASSES to syscommctrl.h.
9867         Add preliminary macros for MSWindows/Mule.  More to come.
9868
9869         * unexnt.c:
9870         * unexnt.c (unexec):
9871         open_output_file moved to nt.c.
9872
9873
9874 2000-05-05  Andy Piper  <andy@xemacs.org>
9875
9876         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9877         instance from the frame cache also since GC may catch up too late
9878         to make frame deletion sane.
9879
9880 2000-05-04  Andy Piper  <andy@xemacs.org>
9881
9882         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9883         (x_finalize_image_instance): ungcpro on deletion.
9884
9885         * glyphs.c (image_instantiator_format_create): give pointers a
9886         query geometry method so that the geometry is at least set.
9887
9888         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9889         initialize layouts if using widgets.
9890
9891 2000-05-03  Andy Piper  <andy@xemacs.org>
9892
9893         * nt.c: remove bogus reference to sysmmsystem.h
9894
9895         * gui-x.c (popup_selection_callback): fix no selection abort.
9896
9897 2000-05-02  Andy Piper  <andy@xemacs.org>
9898
9899         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9900         (mswindows_widget_instantiate): ditto.
9901
9902         * glyphs-widget.c (initialize_widget_image_instance): initialize
9903         children correctly.
9904         (widget_instantiate): cope with children and items in the same
9905         instance.
9906
9907         * glyphs.c (mark_image_instance): cope with children as a first
9908         class member.
9909         (image_instance_equal): ditto.
9910         (image_instance_hash): ditto.
9911         (image_instance_changed): ditto.
9912
9913 2000-04-30  Andy Piper  <andy@xemacs.org>
9914
9915         * glyphs.c (subwindow_query_geometry): new function. Return some
9916         defaults.
9917         (subwindow_instantiate): don't assign dimensions if none have been
9918         given.
9919         (image_instantiator_format_create): add subwindow_query_geometry.
9920         (print_image_instance): cope with layouts as widgets.
9921
9922 2000-04-29  Andy Piper  <andy@xemacs.org>
9923
9924         * frame.c (delete_frame_internal): call
9925         free_frame_subwindow_instance_cache so that all subwindows are
9926         finalized before their parent.
9927         (mark_frame): remove subwindow_cachels.
9928         (Fmake_frame): remove subwindow_cachel manipulation.
9929         (allocate_frame_core): subwindow_instance_cache is a weak list.
9930         (delete_frame_internal): set subwindow_instance_cache to nil.
9931
9932         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9933         finalization safe.
9934         (mswindows_finalize_image_instance): use the device
9935         not the domain as the domain may have died already.
9936
9937         * glyphs-x.c (x_finalize_image_instance): ditto.
9938         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9939         HEIGHT.
9940
9941         * redisplay-output.c (redisplay_unmap_subwindows): update for
9942         subwindow instance cache as a weak list.
9943         (redisplay_unmap_subwindows_maybe): ditto.
9944         (redisplay_unmap_subwindows_except_us): ditto.
9945
9946         * glyphs.c (unmap_subwindow): error checking will check the domain
9947         so don't deal with it here. Don't use cachels anymore.
9948         (map_subwindow): ditto.
9949         (update_subwindow_cachel_data): remove old accessor names.
9950         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9951         (Fresize_subwindow): don't update cachel.
9952         (mark_subwindow_cachels):
9953         (update_subwindow_cachel_data):
9954         (add_subwindow_cachel):
9955         (get_subwindow_cachel_index):
9956         (update_subwindow_cachel):
9957         (reset_subwindow_cachels):
9958         (mark_subwindow_cachels_as_not_updated): deleted.
9959         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9960         subwindow instance to the frame cache.
9961         (find_matching_subwindow): update for subwindow instance cache as
9962         a weak list.
9963         (update_widget_instances): ditto.
9964         (image_instance_type_to_mask):inlined.
9965         (free_frame_subwindow_instance_cache): new function. finalize all
9966         subwindows that are instantiated.
9967
9968         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9969         of cachel information.
9970         (IMAGE_INSTANCE_DISPLAY_X):
9971         (IMAGE_INSTANCE_DISPLAY_Y):
9972         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9973         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9974         (XIMAGE_INSTANCE_DISPLAY_X):
9975         (XIMAGE_INSTANCE_DISPLAY_Y):
9976         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9977         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9978         remove subwindow_cachel structure and function references.
9979         (image_instance_type_to_mask): inline from glyphs.c
9980
9981         * redisplay.c (redisplay_frame): remove subwindow_cachel
9982         references.
9983
9984         * frame.h (struct frame): remove subwindow_cachels.
9985         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9986
9987         * frameslots.h: add subwindow_instance_cache.
9988
9989         * window.c (replace_window): check subwindow cache of replacement.
9990         (window_unmap_subwindows_cache_mapper):
9991         (window_unmap_subwindows): new functions. Unmap all subwindows
9992         cached on this window.
9993         (mark_window_as_deleted): unmap all subwindows.
9994
9995 2000-04-27  Andy Piper  <andy@xemacs.org>
9996
9997         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9998
9999         * glyphs-widget.c (widget_layout): return something.
10000         (layout_layout): return something. Fail if not initialized.
10001         (layout_query_geometry): ditto.
10002         (image_instantiator_native_layout): new function. Initialized the
10003         native layout type.
10004         (widget_instantiate): don't do layout stuff here.
10005
10006         * glyphs.c (instantiate_image_instantiator): reorded calling or
10007         instantiate and post_instantiate with layout in between.
10008         (image_instance_layout): be more selective about deciding whether
10009         the layout has been done or not.
10010
10011         * glyphs.h (struct image_instantiator_methods): return a value
10012         from layout_method.
10013
10014 2000-04-26  Andy Piper  <andy@xemacs.org>
10015
10016         * glyphs.c (allocate_image_instance): make initial width and
10017         height unspecified. Set initialized to 0.
10018
10019         * syscommctrl.h new file. Encapsulates commctrl.h.
10020
10021         * syswindows.h new file. Encapsulates windows.h.
10022
10023         * ntplay.c: use new syswindows.h and syscommctrl.h header.
10024         * nt.c: ditto.
10025         * console-msw.h: ditto.
10026
10027         * redisplay-tty.c (tty_output_display_block): remove layout references.
10028
10029         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
10030         window handle rather than just the frame.
10031
10032         * glyphs.c (mark_image_instance): remove layout references.
10033         (print_image_instance): ditto.
10034         (image_instance_equal): ditto.
10035         (image_instance_hash): ditto.
10036         (decode_image_instance_type): ditto.
10037         (encode_image_instance_type): ditto.
10038         (image_instantiate): ditto.
10039         (allocate_glyph): ditto.
10040         (Fimage_instance_height): ditto.
10041         (Fimage_instance_width): ditto.
10042         (update_subwindow): ditto.
10043
10044         * redisplay-x.c (x_output_display_block): recode for layouts as
10045         widgets.
10046
10047         * redisplay-output.c (redisplay_output_layout): recode for layouts
10048         as widgets.
10049         (compare_runes): remove layout references.
10050
10051         * redisplay-msw.c (mswindows_output_display_block): recode for
10052         layouts as widgets.
10053
10054         * glyphs-widget.c (image_instantiator_layout): remove
10055         layout_possible_dest_types.
10056         (layout_possible_dest_types): deleted.
10057
10058         * glyphs.h (image_instance_type): remove layout references.
10059         (struct Lisp_Image_Instance): ditto. Add initialized flag.
10060         (IMAGE_INSTANCE_INITIALIZED): new accessor.
10061         (XIMAGE_INSTANCE_INITIALIZED): ditto.
10062
10063 2000-04-25  Andy Piper  <andy@xemacs.org>
10064
10065         * glyphs-widget.c (image_instantiator_buttons):
10066         (image_instantiator_edit_fields):
10067         (image_instantiator_combo_box):
10068         (image_instantiator_scrollbar):
10069         (image_instantiator_progress_guage):
10070         (image_instantiator_tree_view):
10071         (image_instantiator_tab_control):
10072         (image_instantiator_labels):
10073         (image_instantiator_layout): call default post_instantiate method.
10074         (widget_post_instantiate): new function. Simply lays out the
10075         widgets.
10076
10077         * glyphs.h (struct image_instantiator_methods): add
10078         post_instantiate method.
10079
10080         * glyphs.c (instantiate_image_instantiator): add post_instantiate
10081         method calls.
10082
10083 2000-04-23  Andy Piper  <andy@xemacs.org>
10084
10085         * glyphs.h (struct image_instantiator_methods): add
10086         decode_domain_method.
10087         (struct Lisp_Image_Instance): remove subwindow frame - it can be
10088         derived from the domain.
10089         (IMAGE_INSTANCE_FRAME): new accessor.
10090         (XIMAGE_INSTANCE_FRAME): ditto.
10091
10092         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
10093         instead of _SUBWINDOW_FRAME.
10094         (finalize_image_instance): ditto.
10095         (Fimage_instance_foreground): ditto.
10096         (Fimage_instance_background): ditto.
10097         (image_instantiate): ditto.
10098         (update_subwindow_cachel): ditto.
10099         (update_subwindow): ditto.
10100         (unmap_subwindow): ditto.
10101         (map_subwindow): ditto
10102         (subwindow_instantiate): ditto.
10103         * glyphs-msw.c (mswindows_update_widget): ditto.
10104         (mswindows_progress_gauge_instantiate): ditto.
10105         (mswindows_tab_control_update): ditto.
10106         * glyphs-x.c (x_update_widget): ditto.
10107         (x_widget_instantiate): ditto.
10108         (x_tab_control_instantiate): ditto.
10109         (x_tab_control_update): ditto.
10110         * event-msw.c (mswindows_wnd_proc): ditto
10111
10112         * glyphs-widget.c (image_instantiator_layout): use
10113         subwindow_decode_domain.
10114         (image_instantiator_buttons): ditto.
10115         (image_instantiator_edit_fields): ditto.
10116         (image_instantiator_combo_box): ditto.
10117         (image_instantiator_scrollbar): ditto.
10118         (image_instantiator_progress_guage): ditto.
10119         (image_instantiator_tree_view): ditto.
10120         (image_instantiator_tab_control): ditto.
10121         (image_instantiator_labels): ditto.
10122         (image_instantiator_layout): ditto.
10123
10124         * glyphs.c: add instance error checking to many functions.
10125         (instantiate_image_instantiator): decode device from cache_domain.
10126         (image_instantiate): partially rewrite by using
10127         decode_image_instantiator_domain to determine what domain the
10128         instance needs to be cached in.
10129         (decode_image_instantiator_domain): new function. Determine what
10130         domain the image needs to be cached in.
10131         (check_window_subwindow_cache): new error checking function.
10132         (check_instance_cache_mapper): ditto.
10133         (check_image_instance_structure): ditto.
10134         (subwindow_decode_domain): new function. Encodes a window as a
10135         subwindow's cache domain.
10136         (image_instantiator_format_create): use it for text and
10137         subwindows.
10138
10139 2000-04-21  Andy Piper  <andy@xemacs.org>
10140
10141         * glyphs.c (image_instance_device): new function.
10142         (image_instance_frame): new function.
10143         (image_instance_window): new function.
10144         (image_instance_live_p): new function.
10145
10146         * window.c (mark_window_as_deleted): reset the subwindow_instance_
10147         cache to nil.
10148
10149         * glyphs.h (struct Lisp_Image_Instance): device->domain.
10150         (IMAGE_INSTANCE_DOMAIN): new accessor.
10151         (XIMAGE_INSTANCE_DOMAIN): ditto.
10152
10153         * glyphs-x.c (x_finalize_image_instance): device->domain.
10154
10155         * glyphs-msw.c (init_image_instance_geometry): device->domain.
10156         (mswindows_finalize_image_instance): ditto.
10157
10158         * glyphs-eimage.c (jpeg_instantiate): device->domain.
10159         (gif_instantiate): ditto.
10160         (png_instantiate): ditto.
10161         (tiff_instantiate): ditto.
10162
10163         * glyphs.c (instantiate_image_instantiator): use domain rather
10164         than device.
10165         (mark_image_instance): device -> domain.
10166         (print_image_instance): ditto.
10167         (finalize_image_instance): ditto.
10168         (image_instance_equal): ditto.
10169         (allocate_image_instance): ditto.
10170         (Fcolorize_image_instance): ditto.
10171         (query_string_geometry): ditto.
10172         (image_instantiate): ditto
10173         (query_string_font): ditto.
10174         (image_instantiate): ditto.
10175         (update_subwindow): ditto.
10176         (unmap_subwindow): ditto.
10177         (map_subwindow): ditto.
10178         (subwindow_instantiate): ditto.
10179
10180         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
10181         (DOMAIN_FRAME): ditto.
10182         (DOMAIN_WINDOW): ditto.
10183         (DOMAIN_LIVE_P): ditto.
10184         (XDOMAIN_DEVICE): ditto.
10185         (XDOMAIN_FRAME): ditto.
10186         (XDOMAIN_WINDOW): ditto.
10187
10188         * specifier.c (Fvalid_specifier_domain_p): add image instances as
10189         a valid specifier domain.
10190
10191 2000-04-19  Andy Piper  <andy@xemacs.org>
10192
10193         * glyphs-widget.c (syms_of_glyphs_widget): remove
10194         widget-callback-current-channel.
10195         (vars_of_glyphs_widget): ditto.
10196         * glyphs.h: ditto
10197
10198         * gui.c (get_gui_callback): revert to previous behaviour.
10199
10200 2000-04-18  Andy Piper  <andy@xemacs.org>
10201
10202         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
10203         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
10204         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
10205
10206         * glyphs.c (image_instance_equal): add margin_width.
10207         (image_instance_hash): ditto.
10208
10209         * glyphs-widget.c (widget_instantiate): deal with margin-width.
10210         (layout_query_geometry): ditto.
10211         (layout_layout): ditto.
10212         (syms_of_glyphs_widget): add margin-width.
10213         (image_instantiator_layout): allow margin-width.
10214
10215         * glyphs.c (update_widget_instances): make a normal function.
10216         (syms_of_glyphs): remove Qupdate_widget_instances.
10217         * glyphs.h: ditto.
10218
10219         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
10220         so that we don't corrupt ideas about the last event or
10221         command. Remove widget-callback-current-channel fiddling.
10222         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10223
10224 2000-05-01  Martin Buchholz <martin@xemacs.org>
10225
10226         * XEmacs 21.2.33 is released.
10227
10228 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
10229
10230         * make-src-depend: Allow dots in header file name.
10231
10232 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
10233
10234         * mule-charset.h (struct charset_lookup): Add
10235         next_allocated_1_byte_leading_byte and
10236         next_allocated_2_byte_leading_byte.
10237         * mule-charset.c: Move above two variables so that those values
10238         will be dumped.
10239
10240 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
10241
10242         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
10243         when string length is zero.
10244         (find_charsets_in_emchar_string): Ditto.
10245
10246 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
10247
10248         * lisp.h: extern Qdialog and Qmenubar.
10249
10250         * gui-x.c: added events.h.
10251                 also fixed typo which made the file uncompilable.
10252
10253         * general.c: Added Qmenubar and Qdialog
10254
10255 2000-04-28  Ben Wing  <ben@xemacs.org>
10256
10257         * frame-msw.c (mswindows_init_frame_1):
10258         * frame-msw.c (mswindows_mark_frame):
10259         * event-msw.c (mswindows_enqueue_dispatch_event):
10260         * console-msw.h:
10261         * console-msw.h (struct mswindows_frame):
10262         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
10263         there are now three hash tables for callbacks.
10264         mswindows_enqueue_dispatch_event is no longer static.
10265
10266         * dialog-x.c (maybe_run_dbox_text_callback):
10267         * dialog-x.c (dbox_descriptor_to_widget_value):
10268         switch to new cons3 form for callbacks.
10269
10270         * glyphs-msw.c (mswindows_register_gui_item):
10271         * glyphs-msw.c (mswindows_widget_instantiate):
10272         * glyphs-msw.c (add_tree_item):
10273         * glyphs-msw.c (add_tab_item):
10274         new image instance parameter, so it can be passed to callback-ex.
10275         respect :callback-ex as well as :callback.
10276
10277         * glyphs-widget.c (VALID_GUI_KEYWORDS):
10278         add :callback-ex.
10279
10280         * glyphs.c (print_image_instance):
10281         prettify, e.g. now prints widget type.
10282
10283         * gui-x.h:
10284         certain funs have new image instance parameter.
10285
10286         * gui.c:
10287         * gui.c (get_gui_callback):
10288         * gui.c (gui_item_add_keyval_pair):
10289         * gui.c (gui_item_init):
10290         * gui.c (gui_add_item_keywords_to_plist):
10291         * gui.c (mark_gui_item):
10292         * gui.c (gui_item_hash):
10293         * gui.c (gui_item_equal):
10294         * gui.c (copy_gui_item):
10295         * gui.c (syms_of_gui):
10296         recognize callback-ex in a number of places.
10297         also, fix the annoying "can't get out of yes-no dialog" bug.
10298
10299         * gui.h:
10300         * gui.h (struct Lisp_Gui_Item):
10301         recognize callback-ex in a number of places.
10302
10303         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10304         new parameter in button_item_to_widget_value.
10305
10306         * glyphs-x.c (x_update_widget):
10307         * glyphs-x.c (x_button_instantiate):
10308         * glyphs-x.c (x_button_update):
10309         * glyphs-x.c (x_progress_gauge_instantiate):
10310         * glyphs-x.c (x_edit_field_instantiate):
10311         * glyphs-x.c (x_combo_box_instantiate):
10312         * glyphs-x.c (x_tab_control_instantiate):
10313         * glyphs-x.c (x_label_instantiate):
10314         new image instance parameter in various places.
10315
10316         * event-Xt.c:
10317         * event-Xt.c (enqueue_Xt_dispatch_event):
10318         this fun gets exported.
10319
10320         * gui-msw.c:
10321         * gui-msw.c (mswindows_handle_gui_wm_command):
10322         handle both :callback and :callback-ex, and generate our own
10323         event because it's one of the callback-ex arguments.
10324
10325         * gui-x.c:
10326         * gui-x.c (popup_selection_callback):
10327         handle both :callback and :callback-ex, and generate our own
10328         event because it's one of the callback-ex arguments.
10329         * gui-x.c (button_item_to_widget_value):
10330         * gui-x.c (gui_items_to_widget_values_1):
10331         * gui-x.c (gui_item_children_to_widget_values):
10332         * gui-x.c (gui_items_to_widget_values):
10333         new image instance parameter in various places.
10334
10335         * fns.c (Freplace_list):
10336         fix small typo in doc string.
10337
10338         * lisp.h:
10339         declare enqueue_Xt_dispatch_event.
10340
10341 2000-04-28  Ben Wing  <ben@xemacs.org>
10342
10343         * buffer.c:
10344         * buffer.c (Frecord_buffer):
10345         * buffer.c (syms_of_buffer):
10346         delete record-buffer-hook.
10347
10348         * fns.c:
10349         * fns.c (Freplace_list):
10350         * fns.c (syms_of_fns):
10351         new primitive replace-list.
10352
10353         * frameslots.h:
10354         slot for old buffer-alist.
10355
10356         * lisp.h:
10357         exfun replace-list.
10358
10359         * redisplay.c:
10360         * redisplay.c (redisplay_frame):
10361         * redisplay.c (syms_of_redisplay):
10362         * redisplay.c (vars_of_redisplay):
10363         new hook buffer-list-changed-hook.
10364         call it.
10365
10366 2000-04-27  Ben Wing  <ben@xemacs.org>
10367
10368         * extents.h: extern in_modeline_generation.
10369
10370         * redisplay.c (generate_formatted_string_db): set
10371         in_modeline_generation.
10372
10373         * extents.c (extent_changed_for_redisplay): don't mark redisplay
10374         flags if in modeline generation.  otherwise frame-modified-tick
10375         is ticked far too often.
10376         Declare in_modeline_generation.
10377
10378 2000-04-26  Ben Wing  <ben@xemacs.org>
10379
10380         * emacs.c (vars_of_emacs): document quick-build "error-checking"
10381         option.
10382         (vars_of_emacs): add quick-build as an error-checking option.
10383         A bit kludgy, but there doesn't seem much point in creating
10384         a real var for this.
10385
10386         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
10387
10388 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10389
10390         * redisplay.h (struct display_line): Add a new variable,
10391         line_continuation.
10392
10393         * redisplay.c (create_text_block): Set dl->line_continuation if
10394         the line continues.
10395         (create_string_text_block): Ditto.
10396         (regenerate_window_incrementally): Use line_continuation instead
10397         of searching continuation glyph.
10398         (add_margin_runes): Call add_glyph_rune.
10399         (add_glyph_rune): Handle margin glyph.
10400
10401 2000-04-20  Martin Buchholz  <martin@xemacs.org>
10402
10403         * filelock.c (fill_in_lock_file_name):
10404         ANSIfy.
10405         Check for IS_ANY_SEP instead of '/'.
10406         (lock_file_1):
10407         Avoid generating gratuitous garbage.  Call user_login_name() directly.
10408         Never check errno without first seeing that system call failed.
10409         (unlock_file): Add GCPRO.
10410         (Flock_buffer): Fix docstring.
10411         (Ffile_locked_p): Fix docstring.  Add GCPRO.
10412
10413 2000-04-19  Martin Buchholz  <martin@xemacs.org>
10414
10415         * sysdep.c (get_pty_max_bytes):
10416         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
10417         strings longer than 252 bytes.
10418
10419         * md5.c: Unconditionally include ANSI header <limits.h>
10420
10421         * glyphs-x.c (convert_EImage_to_XImage):
10422         * lisp-union.h (union Lisp_Object):
10423         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
10424
10425 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10426
10427         * filelock.c (current_lock_owner): Remove unused variable o, p.
10428
10429 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
10430
10431         * callint.c: Remove multiply defined symbol Qlet
10432         (syms_of_callint): ditto.
10433
10434 2000-04-14  Andy Piper  <andy@xemacs.org>
10435
10436         * general.c (syms_of_general): add last-command, this-command, let
10437         and funcall.
10438
10439         * lisp.h: declare various symbols.
10440
10441         * glyphs.h: declare Qwidget_callback_current_channel;
10442
10443         * glyphs-widget.c (syms_of_glyphs_widget): add
10444         Qgui_callback_current_channel.
10445         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
10446
10447         * gui-msw.c (mswindows_handle_gui_wm_command): bind
10448         widget-callback-current-channel when invoking the interactive
10449         arg. Also bind last-command and next-command when invoking the
10450         widget updates.
10451         * gui-x.c (popup_selection_callback): ditto.
10452
10453         * gui.c (get_gui_callback): massage args so that we are always
10454         calling eval. This allows us to add our own variable bindings
10455         outside.
10456
10457         * glyphs-x.c (x_button_instantiate): use
10458         gui_items_to_widget_values since this is GC safe.
10459         (x_progress_gauge_instantiate): ditto.
10460         (x_edit_field_instantiate): ditto.
10461         (x_label_instantiate): ditto.
10462
10463         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
10464         (emacs_Xt_event_widget_focus_out): new function
10465         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
10466         focus.
10467         (emacs_Xt_event_add_widget_actions): new function. add focus
10468         functions as actions.
10469         (init_event_Xt_late): use it.
10470
10471 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
10472
10473         * event-stream.c (Fdispatch_event): Doc fix.
10474
10475 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
10476
10477         * postgresql.c: Remove all references to PQsetenv*.
10478
10479         * postgresql.h: Remove references to PGsetenvHandler object.
10480         * lrecord.h (lrecord_type): Ditto.
10481
10482 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10483
10484         * glyphs-msw.h (struct mswindows_image_instance_data): Added
10485         real_heigh and real_width members, and accessor macros for these.
10486
10487         * glyphs-msw.c (init_image_instance_geometry): New function.
10488         (init_image_instance_from_dibitmap): Use it.
10489         (mswindows_resource_instantiate): Use it.
10490         (init_image_instance_from_xbm_inline): Use it.
10491         (mswindows_initialize_image_instance_mask): Use real bitmap
10492         geometry.
10493         (mswindows_create_resized_bitmap): Ditto.
10494         (mswindows_create_resized_mask): Ditto.
10495
10496         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
10497         and bitmap to their surface size.
10498
10499 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
10500
10501         * process-unix.c (unix_send_process): Guard against process MIA
10502         after Faccept_process_output.
10503
10504 2000-04-11  Ben Wing  <ben@xemacs.org>
10505
10506         * eval.c (unbind_to_hairy): fix brokenness introduced by
10507         nanosecond speed improvements.
10508
10509 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
10510
10511         * sunplay.c (init_device): To play sounds correctly, the device
10512         apparently needs to be initialized at least once by XEmacs.  Make
10513         it so.
10514
10515 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10516
10517         * redisplay.c (add_margin_runes): Add text image glyph
10518           handling.
10519
10520 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10521
10522         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
10523         gcc is newer than 2.5.
10524
10525 2000-04-06  Colin Rafferty  <colin@xemacs.org>
10526
10527         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
10528
10529         * fns.c (size_bit_vector):
10530         * alloc.c (size_vector):
10531         (make_vector_internal):
10532         (make_bit_vector_internal):
10533         (sweep_bit_vectors_1):
10534         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
10535
10536 2000-04-06  Andy Piper  <andy@xemacs.org>
10537
10538         * gmalloc.c (malloc): undo previous change.
10539         (malloc): ditto.
10540         (free): ditto.
10541         (realloc): ditto.
10542
10543 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
10544
10545         * line-number.c (buffer_line_number): Revert to former version.
10546
10547 2000-04-06  Andy Piper  <andy@xemacs.org>
10548
10549         * gmalloc.c (malloc): add error checking.
10550         (malloc): ditto.
10551         (free): ditto.
10552         (realloc): ditto.
10553
10554         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
10555         button_item_to_widget_value arg.
10556
10557         * glyphs-x.c (x_button_instantiate): add extra
10558         button_item_to_widget_value arg.
10559         (x_progress_gauge_instantiate): ditto.
10560         (x_edit_field_instantiate): ditto.
10561         (x_label_instantiate): ditto.
10562
10563         * gui-x.c (gui_items_to_widget_values_1): add extra
10564         button_item_to_widget_value arg.
10565         (button_item_to_widget_value): add extra menu_item_p arg.
10566
10567         * gui-x.h: change signature of button_item_to_widget_value.
10568
10569         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
10570         button_item_to_widget_value arg.
10571
10572 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10573
10574         * buffer.h (struct buffer): auto_save_modified should be long.
10575
10576 2000-04-05  Andy Piper  <andy@xemacs.org>
10577
10578         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
10579         type.
10580         (button_query_geometry): give a little more room so that athena
10581         buttons fit.
10582
10583 2000-04-05  Andy Piper  <andy@xemacs.org>
10584
10585         * faces.c (complex_vars_of_faces): The widget face should inherit
10586         the font of the gui-element face.
10587
10588 2000-04-04  Andy Piper  <andy@xemacs.org>
10589
10590         * glyphs-x.c (x_button_update): new function. unconditionally
10591         update a button's state when the instance is dirty.
10592         (image_instantiator_format_create_glyphs_x): add x_button_update.
10593         (x_widget_instantiate): remove old resize cruft.
10594
10595 2000-04-02  Andy Piper  <andy@xemacs.org>
10596
10597         * frame.c (change_frame_size_1): The introduction of gutters means
10598         that we need to allow 0 as a potential frame dimension.
10599
10600 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10601
10602         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10603         image glyph if allow_cursor.
10604         (add_hscroll_rune): Don't allow cursor to border glyph.
10605         (create_text_block): Ditto.
10606
10607         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10608         text not in buffer.
10609         (redisplay_output_layout): Call ensure_face_cachel_complete for
10610         text image glyph.
10611
10612
10613 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10614
10615         * redisplay.c (add_glyph_rune): Adding text image as text runes.
10616
10617         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10618         not in buffer
10619
10620         * redisplay-tty.c (tty_output_display_block): Delete the routine
10621         for text image glyph
10622         * redisplay-x.c (x_output_display_block): ditto
10623         * redisplay-msw.c (mswindows_output_display_block): ditto
10624
10625 2000-02-02  Mike Alexander  <mta@arbortext.com>
10626
10627         Note: Some of these were committed by accident as part of other
10628         patches.
10629
10630         * regex.c (regex_compile): Avoid compiler warnings.
10631
10632         * ntproc.c (sys_spawnve): Avoid compiler warnings.
10633
10634         * nt.h: Declare term_ntproc correctly.
10635
10636         * nt.c: Remove incorrect declaration of get_home_directory which
10637         is declared correctly in lisp.h.
10638
10639         * keymap.c (get_keyelt): Avoid compiler warnings.
10640         (raw_lookup_key_mapper): Avoid compiler warnings.
10641
10642         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10643
10644         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10645
10646         * filemode.c (mode_string): Avoid compiler warnings.
10647
10648         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10649         avoid warning.
10650
10651         * events-mod.h: Undef some things that winuser.h defines differently.
10652
10653         * data.c (Faset): Avoid compiler warnings.
10654
10655         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10656
10657 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10658
10659         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10660         Fall through to simple beep on error.
10661         Replace "extern" by real header file.
10662
10663         * linuxplay.c: Use nativesound.h
10664         (play_sound_data): Return error code. Be less verbose on error.
10665
10666         * sunplay.c: Use nativesound.h
10667         (play_sound_data): Return error code. Be less verbose on error.
10668
10669         * ntplay.c: Use nativesound.h
10670         (play_sound_data): Return fake error code
10671
10672         * sgiplay.c: Use nativesound.h
10673         (play_sound_data): Return error code
10674
10675         * hpplay.c: Use nativesound.h, partially implement
10676         new error code. Break compilation until finished.
10677         (play_sound_data): error code.
10678
10679         * nativesound.h (play_sound_file):
10680           (play_sound_data): Prototype in new header.
10681
10682 2000-03-31  Andy Piper  <andy@xemacs.org>
10683
10684         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10685         for toggle and radio buttons.
10686         (image_instantiator_buttons): use it.
10687
10688 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10689
10690         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10691         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10692         found. Scrollbar event probably belonged to some old config.
10693
10694 2000-03-31  Andy Piper  <andy@xemacs.org>
10695
10696         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10697         than 1.
10698         (initialize_widget_image_instance): default layout to
10699         LAYOUT_HORIZONTAL rather than 0.
10700         (widget_instantiate): reverse the item list at the end rather than
10701         every iteration.
10702         (layout_layout): re-code for the border text at the front of the
10703         item list rather than at the end.
10704         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10705         provided by the user.
10706         (widget_query_geometry): comment.
10707
10708 2000-03-30  Andy Piper  <andy@xemacs.org>
10709
10710         * glyphs-widget.c (image_instantiator_layout): allow standard
10711         widget keywords in layouts.
10712
10713         * gutter.c (output_gutter): cope with nil gutter contents.
10714
10715         * frame.c (Fset_frame_properties): add gutter docs.
10716
10717 2000-03-29  Andy Piper  <andy@xemacs.org>
10718
10719         * toolbar-msw.c (TBSTYLE_FLAT): add.
10720         (mswindows_output_toolbar): minor fiddling.
10721
10722 2000-03-29  Andy Piper  <andy@xemacs.org>
10723
10724         * gutter.c (output_gutter): force gutter size recalculation if
10725         what we are trying to display won't fit.
10726         (update_gutter_geometry): new function. A per-gutter version of
10727         update_frame_gutter_geometry.
10728         (update_frame_gutter_geometry): use it.
10729         (redraw_exposed_gutter): add extra debugging output.
10730
10731 2000-03-28  Mike Alexander  <mta@arbortext.com>
10732
10733         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10734         (pdump_file_unmap): Implement it on Windows
10735         (pdump_file_get): Save alocated handles for pdump_file_unmap
10736
10737 2000-03-28  Andy Piper  <andy@xemacs.org>
10738
10739         * gui.c (get_gui_callback): treat Quit specially.
10740
10741 2000-03-27  Andy Piper  <andy@xemacs.org>
10742
10743         * glyphs.c (image_instantiate): be careful to check in the same
10744         way we assigned.
10745
10746 2000-03-27  Didier Verna  <didier@xemacs.org>
10747
10748         * config.h.in: define the proper SMART_INCLUDE macro.
10749         handle renaming of `foo_h_path' to `foo_h_file'.
10750
10751         * database.c: ditto.
10752
10753         * emacs.c: ditto.
10754
10755         * linuxplay.c: ditto.
10756
10757         * terminfo.c: ditto.
10758
10759         * tooltalk.h: ditto.
10760
10761 2000-03-27  Andy Piper  <andy@xemacs.org>
10762
10763         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10764         gets updated whenever the face might have changed.
10765
10766 2000-03-26  Mike Alexander  <mta@arbortext.com>
10767
10768         * dumper.c (pdump_resource_free): Fix the comment.
10769
10770 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10771
10772         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10773
10774 2000-03-22  Mike Alexander  <mta@arbortext.com>
10775
10776         * dumper.c: Include Windows headers on Windows
10777         (pdump_resource_free): Add a body to the function
10778         (pdump_load): exe_name -> exe_path and add some comments.
10779
10780 2000-03-25  Mike Alexander  <mta@arbortext.com>
10781
10782         * gui.c (copy_gui_item_tree): Return a value in all cases
10783
10784 2000-03-21  Didier Verna  <didier@xemacs.org>
10785
10786         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10787         lwlib/config.h.in.
10788         (SMART_INCLUDE): new macro.
10789         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10790         the proper location.
10791
10792         * postgresql.c: use it.
10793
10794         * inline.c: ditto.
10795
10796 2000-03-24  Andy Piper  <andy@xemacs.org>
10797
10798         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10799         do this.
10800
10801 2000-03-24  Andy Piper  <andy@xemacs.org>
10802
10803         * redisplay-output.c (compare_runes): use image_instance_changed
10804         to detect changes. Do not depend on glyphs_changed, only depend on
10805         dirtiness.
10806          (redisplay_output_layout): add debug messages.
10807         (compare_runes): ditto.
10808
10809         * glyphs.h: declare new functions.
10810         (struct Lisp_Image_Instance): remove percent and associated
10811         accessors.
10812
10813         * gui.h: declare new copying functions.
10814
10815         * gui.c (copy_gui_item_tree): new function.
10816         (copy_gui_item): new function.
10817         (gui_item_id_hash): revert to standard hash.
10818         (gui_item_hash): ditto.
10819         (gui_item_hash_internal): deleted.
10820         (mark_gui_item): mark value.
10821         (gui_item_add_keyval_pair): add value.
10822         (gui_item_init): ditto.
10823         (gui_add_item_keywords_to_plist): ditto.
10824         (gui_item_equal): ditto.
10825         (syms_of_gui): add Q_value.
10826
10827         * glyphs-x.c (x_progress_gauge_update): use pending items and
10828         value for setting the state.
10829         (x_update_widget): don't set items from pending here.
10830
10831         * glyphs-widget.c (update_widget): update items here.
10832         (progress_gauge_set_property): use items for storing value. Put
10833         new value in pending items.
10834
10835         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10836         items for new value. Convert percent -> value.
10837         (mswindows_tab_control_update): don't update items here.
10838
10839         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10840         (update_subwindow): ditto.
10841         (image_instance_changed): new function. Compare hash values and
10842         past and present widget items.
10843         (image_instantiate): We more careful about where we instantiate
10844         things.
10845         (image_instantiate): add error checking.
10846
10847         * gutter.c (syms_of_gutter): use -hook.
10848
10849 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10850
10851         * console-tty.c (Fset_console_tty_input_coding_system): Use
10852         Qkeyboard.
10853         (Fset_console_tty_output_coding_system): Use Qterminal.
10854         (tty_init_console): Use Qkeyboard and Qterminal.
10855
10856 2000-03-21  Ben Wing  <ben@xemacs.org>
10857
10858         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10859         From Mike Alexander <mta@arbortext.com>.
10860
10861 2000-03-21  Ben Wing  <ben@xemacs.org>
10862
10863         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10864         process brokenness.  Proper implementation to come.
10865         * callproc.c:
10866         Rename call-process-internal to old-call-process-internal.
10867         New impl. in process.el.
10868
10869 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10870
10871         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10872
10873 2000-03-20  Andy Piper  <andy@xemacs.org>
10874
10875         * glyphs.c (full_list_hash): make hashes of the same elements in
10876         different orders return different values.
10877
10878 2000-03-20  Martin Buchholz <martin@xemacs.org>
10879
10880         * XEmacs 21.2.32 is released.
10881
10882 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10883
10884         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10885         (DFC_MALLOC_USE_CONVERTED_DATA):
10886         Add aliasing-safe casts to allow use with char* or unsigned char*
10887         lvalues.
10888
10889         * eldap.c (Fldap_open):
10890         (Fldap_search_basic):
10891         (Fldap_add):
10892         (Fldap_modify):
10893         Make C++-compilable.
10894         Make sure GCPRO'ed variables are initialized.
10895         Use temp variables to avoid repeated calls to Flength.
10896
10897 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10898
10899         * sysfile.h:
10900         Make sure PATH_MAX is always defined.
10901         Include limits.h for PATH_MAX.
10902         Deprecate use of MAXPATHLEN.
10903
10904 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10905
10906         * emacs.c: Add reinit_vars_of_fileio.
10907         * symsinit.h: Add reinit_vars_of_fileio.
10908         * fileio.c (reinit_vars_of_fileio): New.
10909         * fileio.c (Fmake_temp_name):
10910         Initialize temp_name random number from microseconds to make
10911         collisions even less likely.  Initialize always at process startup
10912         time.  (make-temp-name) used to return the same file name twice in
10913         a row when PDUMP.
10914         Random stylistic fiddling.
10915         Comment fixes.
10916
10917 2000-03-20  Andy Piper  <andy@xemacs.org>
10918
10919         * glyphs.c (image_instantiate): allow text glyphs to be
10920         instantiated in the minibuffer window.
10921
10922 2000-03-19  Andy Piper  <andy@xemacs.org>
10923
10924         * glyphs.c (image_instance_hash): be careful about which items we
10925         hash on.
10926
10927         * glyphs-widget.c (tab_control_set_property): record into pending
10928         items rather than the actual items.
10929
10930         * glyphs-x.c (x_update_widget): use pending items to update with.
10931
10932         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10933         to update with.
10934
10935         * glyphs.c (mark_image_instance): mark pending items.
10936
10937         * window.c (Fset_window_configuration): record the buffer.
10938         (Fselect_window): totally revert previous change which breaks many
10939         things.
10940
10941 2000-03-18  Andy Piper  <andy@xemacs.org>
10942
10943         * glyphs-msw.c (mswindows_tab_control_update): force selected
10944         item.
10945
10946         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10947         window domain cache, otherwise we get inconsistencies at
10948         startup. There is something fishy at startup which can lead to the
10949         minibuffer being the selected window when the gutter content is
10950         instantiated.
10951
10952         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10953         gcpros.
10954         (parse_gui_item_tree_children): ditto.
10955         (parse_gui_item_tree_item): ditto.
10956
10957         * glyphs.c (Fupdate_widget_instances): return something.
10958
10959 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10960
10961         * window.c (Fselect_window): Undo 2000-03-17 change.
10962
10963 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10964
10965         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10966         against v7.0 libraries.  Insta-coredump city until the postgres
10967         folks fix it.
10968
10969 2000-03-17  Andy Piper  <andy@xemacs.org>
10970
10971         * faces.c (complex_vars_of_faces): don't give the widget face an
10972         inherited background pixmap.
10973
10974         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10975         selected item.
10976
10977         * event-stream.c (Fdispatch_non_command_events): return something.
10978
10979         * gutter.c (output_gutter): use widget face.
10980         (clear_gutter): ditto.
10981
10982         * NEWS: adjust again.
10983
10984         * window.c (Fselect_window): make sure this runs to completion to
10985         avoid oddities with Fset_window_configuration.
10986         (Fcurrent_window_configuration): in general do not save the
10987         minibuffer as the selected window.
10988
10989         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10990
10991 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10992
10993         * emacs.c (Frunning_temacs_p): Revert previous patch.
10994         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10995
10996 2000-03-16  Andy Piper  <andy@xemacs.org>
10997
10998         * glyphs-x.c (x_tab_control_update): if no widget values then
10999         return.
11000
11001         * NEWS: update for new features.
11002
11003         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
11004         synthetic event to the native system.
11005         (reinit_vars_of_event_Xt): set force_event_pending to
11006         emacs_Xt_force_event_pending.
11007
11008         * events.h (struct event_stream): add force_event_pending.
11009
11010         * specifier.c (recompute_one_cached_specifier_in_window): add
11011         comment.
11012
11013         * redisplay.c (redisplay_frame): don't call
11014         update_frame_subwindows. Reset subwindow cachels when
11015         subwindows_changed, removing this was an optimization too far.
11016
11017         * redisplay-output.c (compare_runes): reorganize so that we catch
11018         glyph changes when we want them. Set optimize_output when this
11019         would help layouts.
11020         (redisplay_output_layout): remove frame_really_changed, use
11021         optimize_output instead.
11022
11023         * redisplay-msw.c (mswindows_output_display_block): reset
11024         optimize_output after outputting a glyph.
11025         * redisplay-x.c (x_output_display_block): ditto.
11026         * redisplay-tty.c (tty_output_display_block): ditto.
11027
11028         * gutter.c: (specifier_vars_of_gutter): use new spec changed
11029         functions.
11030         (gutter_specs_changed): do specific gutter positions.
11031         (top_gutter_specs_changed): new function. Only update the
11032         specified gutter specs.
11033         (bottom_gutter_specs_changed): ditto.
11034         (left_gutter_specs_changed): ditto.
11035         (right_gutter_specs_changed): ditto.
11036
11037         * gui.c (gui_item_hash_internal): new function, does a real hash.
11038         (gui_item_id_hash): use it.
11039         (gui_item_hash): hash the eval'ed gui_item.
11040
11041         * gui-x.c (popup_selection_callback): send an eval event to call
11042         Fupdate_widget_instances.
11043
11044         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
11045         to call Fupdate_widget_instances.
11046
11047         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
11048         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
11049
11050         * glyphs.c: (update_frame_subwindows): deleted.
11051         (Fupdate_widget_instances): new function for updating the dirty
11052         state of widgets that might have changed.
11053         (syms_of_glyphs): add Qupdate_widget_instances.
11054         (full_list_hash): hash a list completely.
11055         (image_instance_hash): use it for items and properties.
11056
11057         * frame-msw.c (mswindows_size_frame_internal): remove unused
11058         variable.
11059
11060         * faces.h (struct face_cachel): fix comment.
11061
11062         * event-stream.c (Fdispatch_non_command_events): new
11063         function. Process non-command events, forcing an event cycle
11064         beforehand.
11065         (syms_of_event_stream): declare.
11066         (event_stream_force_event_pending): new function. Force an event
11067         on the native event queue so that an event cycle will occur next
11068         time we check.
11069
11070         * event-msw.c:
11071         (struct ntpipe_shove_stream):
11072         (mswindows_enqueue_dispatch_event):
11073         (mswindows_dequeue_dispatch_event):
11074         (mswindows_cancel_dispatch_event):
11075         (mswindows_pump_outstanding_events):
11076         (mswindows_drain_windows_queue):
11077         (mswindows_handle_paint):
11078         (mswindows_wnd_proc):
11079         (mswindows_key_to_emacs_keysym):
11080         (get_process_input_waitable):
11081         (emacs_mswindows_delete_stream_pair): re-indent file.
11082         (mswindows_need_event): do not process further fds if the windows
11083         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
11084         fixes the 100% cpu problem.
11085         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
11086
11087 2000-03-15  Olivier Galibert  <galibert@pobox.com>
11088
11089         * alloc.h: New.
11090         * dumper.h: New.
11091         * dumper.c: New.
11092
11093         * emacs.c: Moved dump file searching to dumper.c.
11094         (Frunning_temacs_p): Fixed.
11095
11096         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
11097         last_lrecord_type_index_assigned.
11098
11099 2000-02-20  Olivier Galibert  <galibert@pobox.com>
11100
11101         * symsinit.h: Added reinit parameter to init_console_stream
11102         declaration.
11103
11104         * lisp.h: Added file parameter to pdump_load declaration.
11105
11106         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
11107         support.  Added dump file searching.
11108
11109         * config.h.in: Added EMACS_PROGNAME.
11110
11111         * console-stream.c (init_console_stream): Fix reinitialisation
11112         when running from temacs.
11113
11114         * alloc.c (pdump): Add id support.
11115         (pdump_load): Add file parameter and signature/id support.
11116
11117         * Makefile.in.in: Add full pdump support.
11118
11119 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
11120
11121         * postgresql.c: Update documentation to reflect latest code
11122         status.
11123         (print_result): Show tuple counts in printed representation when
11124         appropriate.
11125         (Fpq_put_nbytes): MULE-ize.
11126         (Fpq_get_line_async): Ditto.
11127
11128 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
11129
11130         * postgresql.c (Fpq_lo_import): Fix return value.
11131         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
11132
11133 2000-03-13  Ben Wing  <ben@xemacs.org>
11134
11135         * alloc.c (pdump_load):
11136         Fix compile warning under mswin.
11137
11138 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
11139
11140         * postgresql.c: Mule-ization, bug fixes.
11141         Use PG_CODING to encapsulate coding system name changes.
11142         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
11143         (pg-coding-system): Create.
11144
11145         (Fpq_conn_defaults): Mule-ize.
11146         (Fpq_connectdb): Mule-ize & bug fix.
11147         (Fpq_connect_start): Mule-ize.
11148         (Fpq_set_client_encoding): Mule-ize.
11149         (Fpq_finish): Document `DEAD' connection status.
11150         (Fpq_clear): Ditto.
11151         (Fpq_pgconn): Mule-ize.
11152         (Fpq_exec): Mule-ize & bug fix.
11153         (Fpq_send_query): Ditto.
11154         (Fpq_get_result): Ditto.
11155         (Fpq_res_status): Mule-ize.
11156         (Fpq_result_error_message): Mule-ize.
11157         (Fpq_ntuples): fix comments.
11158         (Fpq_fname): Mule-ize.
11159         (Fpq_fnumber): Mule-ize.
11160         (Fpq_ftype): fix comments.
11161         (Fpq_get_value): Mule-ize.
11162         (Fpq_cmd_status): Ditto.
11163         (Fpq_cmd_tuples): Ditto.
11164         (Fpq_oid_value): Ditto.
11165         (Fpq_notifies): Ditto.
11166         (Fpq_lo_import): Ditto.
11167         (Fpq_lo_export): Ditto.
11168         (Fpq_get_line): Ditto.
11169         (Fpq_put_line): Mule-ize and bug fix.
11170         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
11171
11172 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11173
11174         * postgresql.c (vars_of_postgresql): Mule-ize.
11175         (Fpq_conn_defaults): Ditto.
11176
11177 2000-03-12  Ben Wing  <ben@xemacs.org>
11178
11179         * alloc.c (Fmake_byte_code):
11180         * alloc.c (debug_string_purity_print):
11181         * alloc.c (pdump_backtrace):
11182         * alloc.c (pdump_get_indirect_count):
11183         * alloc.c (pdump_register_sub):
11184         * alloc.c (pdump_register_object):
11185         * alloc.c (pdump_register_struct):
11186         * alloc.c (pdump_dump_data):
11187         * alloc.c (pdump_reloc_one):
11188         Minor cleanups.
11189
11190         * console-msw.c:
11191         * console-msw.c (GetConsoleHwnd):
11192         * console-msw.c (msw_hide_console):
11193         * console-msw.c (msw_show_console):
11194         * console-msw.c (msw_ensure_console_buffered):
11195         * console-msw.c (msw_output_console_string):
11196         * console-msw.c (console_type_create_mswindows):
11197
11198         a) Added functions to manipulate the console window for use with
11199         shell support.
11200
11201         b) Added support for writing text to the console, which is now
11202         used under Windows when xemacs is not being run non-interactively,
11203         to write text that would otherwise be destined for stdout because
11204         under these circumstances, text written to stdout tends to
11205         disappear and not be seen.
11206
11207         * console-msw.h:
11208         * event-Xt.c:
11209         * event-Xt.c (x_event_to_emacs_event):
11210         * event-Xt.c (describe_event_window):
11211         * events-mod.h (XEMACS_MOD_CONTROL):
11212         * events.c:
11213         * events.c (Fmake_event):
11214         * events.c (character_to_event):
11215         * events.c (event_to_character):
11216         * events.c (format_event_object):
11217         * events.c (Fevent_modifiers):
11218         * events.h:
11219         * events.h (struct key_data):
11220         * events.h (struct button_data):
11221         * events.h (struct misc_user_data):
11222         * frame-x.c (Fcde_start_drag_internal):
11223         * frame-x.c (Foffix_start_drag_internal):
11224         * gpmevent.c (Freceive_gpm_event):
11225         * keymap.c:
11226         * keymap.c (bucky_sym_to_bucky_bit):
11227         * keymap.c (control_meta_superify):
11228         * keymap.c (make_key_description):
11229         * keymap.c (keymap_lookup_directly):
11230         * keymap.c (create_bucky_submap):
11231         * keymap.c (keymap_store):
11232         * keymap.c (define_key_check_and_coerce_keysym):
11233         * keymap.c (define_key_parser):
11234         * keymap.c (define_key_alternate_name):
11235         * keymap.c (Fdefine_key):
11236         * keymap.c (raw_lookup_key_mapper):
11237         * keymap.c (struct map_keymap_unsorted_closure):
11238         * keymap.c (map_keymap_unsorted_mapper):
11239         * keymap.c (map_keymap_sort_predicate):
11240         * keymap.c (map_keymap_sorted):
11241         * keymap.c (accessible_keymaps_mapper_1):
11242         * keymap.c (where_is_recursive_mapper):
11243         * keymap.c (describe_map_mapper):
11244         * keymap.c (describe_map_sort_predicate):
11245         * keymap.c (describe_map):
11246         * keymap.c (complex_vars_of_keymap):
11247         And a number of other files, the key modifier preprocessor
11248         constants that xemacs uses have names that conflict with constants
11249         defined under MS Windows for other purposes, so they were renamed
11250         to begin with the prefix XEMACS_. The variables that hold such
11251         modifiers were changed to consistently be of type int to fix
11252         various compile warnings.
11253
11254         * console.c (complex_vars_of_console):
11255         * device.c:
11256         * device-msw.c:
11257         * device-msw.c (mswindows_finish_init_device):
11258         * device-msw.c (msw_get_workspace_coords):
11259         * device-msw.c (mswindows_device_system_metrics):
11260         and various other files, added support for a new
11261         device property called offset-workspace which returns the position
11262         of the upper left corner of the workspace area and goes along with
11263         the existing size-workspace property.
11264
11265         * dialog-msw.c:
11266         * dialog-msw.c (push_bufbyte_string_as_unicode):
11267         * dialog-msw.c (mswindows_popup_dialog_box):
11268         Added support for XEmacs-style accelerator specifications in
11269         button text.  Note: I didn't add support for this under X Windows,
11270         and somebody needs to do this.
11271
11272         * dialog.c:
11273         * dialog.c (Fpopup_dialog_box):
11274         Documented the support for accelerators that was just mentioned.
11275
11276         editfns.c (get_home_directory): Changed behavior under Windows
11277         when HOME not defined; former behavior was irretrievably broken.
11278
11279         * emacs.c:
11280         * emacs.c (main_1):
11281         * emacs.c (main):
11282         * minibuf.c (clear_echo_area_internal):
11283         * minibuf.c (echo_area_append):
11284         * print.c:
11285         * print.c (std_handle_out_external):
11286         * print.c (std_handle_out_va):
11287         * print.c (fatal):
11288         * print.c (write_string_to_stdio_stream):
11289         * print.c (output_string):
11290         * print.c (debug_print):
11291         * print.c (debug_backtrace):
11292         * print.c (debug_short_backtrace):
11293         Cleaned up the code that prints text to stdout so that this can be
11294         changed to output into a console window instead under MS Windows,
11295         as described above.
11296
11297         * eval.c:
11298         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
11299         * eval.c (internal_catch):
11300         * eval.c (unwind_to_catch):
11301         * eval.c (throw_or_bomb_out):
11302         * eval.c (condition_case_1):
11303         * eval.c (signal_1):
11304         * eval.c (check_error_state_sanity):
11305         * eval.c (call_with_suspended_errors_1):
11306         * eval.c (call_with_suspended_errors):
11307         * eval.c (reinit_vars_of_eval):
11308         Added code to catch throw loops and check for a pesky bug that may
11309         be gone now.
11310
11311         * event-msw.c:
11312         * event-msw.c (key_needs_default_processing_p):
11313         * event-msw.c (mswindows_wnd_proc):
11314         * event-msw.c (mswindows_modifier_state):
11315         * event-msw.c (emacs_mswindows_quit_p):
11316         * event-msw.c (vars_of_event_mswindows):
11317         a) Added support for using the alt key to select menu items as is
11318         standard under MS Windows.  This is controlled using the variable
11319         menu-accelerator-enabled, just like under X Windows.  There is an
11320         option on the options menu to turn this support on.  I really
11321         think that it should be on by default under Windows, but I'm not
11322         going to make this change yet.
11323
11324         b)  Added support for dynamic display size changes under Windows.
11325
11326         * event-stream.c:
11327         * event-stream.c (maybe_echo_keys):
11328         * event-stream.c (Fnext_event):
11329         * event-stream.c (command_builder_find_leaf):
11330         * event-stream.c (lookup_command_event):
11331         * event-stream.c (execute_command_event):
11332         * event-stream.c (pre_command_hook):
11333         * event-stream.c (post_command_hook):
11334         * event-stream.c (syms_of_event_stream):
11335         * event-stream.c (vars_of_event_stream):
11336         * event-stream.c (complex_vars_of_event_stream):
11337         * events.h (struct command_builder):
11338
11339         a) Tried to clean up a little bit the horribly written x-specific
11340         accelerator code that crept into this file.  I moved this code
11341         into menubar-x.c where it belongs. I also needed to move the
11342         command builder structure into the file events.h because it is
11343         accessed directly by this accelerator code.  What I didn't do, but
11344         which should be done at some point, is to properly abstract this
11345         code using device methods instead of the kludgy way that it
11346         currently hooks into the event code.
11347
11348         b) Added the lisp variables this-command-properties and
11349         last-command- properties, which should be used to synchronize two
11350         adjacent commands in preference to playing games with the variable
11351         this-command, which is typically what happens.
11352
11353         c) Added some slightly nasty code to hook into the lisp support
11354         for shifted- motion-key selection.  This is actually necessary for
11355         somewhat complicated reasons, which are described in
11356         simple.el. (NB: I think the proper thing would be to have the code
11357         that calls the pre and post command hooks also call out to generic
11358         lisp functions in simple.el, where all built-in stuff could be
11359         added.  I will think about this more.)
11360
11361         * event-unixoid.c (poll_fds_for_input):
11362         * lread.c (readchar):
11363         * redisplay-tty.c (tty_clear_frame):
11364         * redisplay-x.c (x_get_gc):
11365         * signal.c (interrupt_signal):
11366         And a whole bunch of other files: fixed up places that printed
11367         directly to stderr to instead call the function stderr_out so that
11368         the changes I made under Windows work correctly.
11369
11370         * filemode.c (mode_string):
11371         Warning fixes.
11372
11373         * frame-msw.c:
11374         * frame-msw.c (mswindows_size_frame_internal):
11375         Fixed the computation of frame size and position to keep the frame
11376         within the workspace area, rather than within the physical
11377         dimensions of the screen, so that the frame doesn't overlap window
11378         manager decorations, such as the start menu and toolbar, typically
11379         at the bottom of the screen.
11380
11381         * frame.c (vars_of_frame):
11382         Changed the default frame title format under MS Windows to consist
11383         of buffername-XEmacs, which is standard under MS Windows.  I think
11384         it might be a good idea to change this everywhere because I think
11385         it is superior to the current frame title format, but this is the
11386         kind of change that is likely to cause some people to get annoyed,
11387         so I'm not making it.
11388
11389         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
11390
11391         * gui-msw.c (mswindows_handle_gui_wm_command):
11392         Fixed compile warnings.
11393
11394         * gui-x.c:
11395         * gui-x.c (strdup_and_add_accel):
11396         * gui-x.c (button_item_to_widget_value):
11397         * gui-x.h:
11398         Added code to automatically put an accelerator onto the beginning
11399         of menu items that don't have one as is now the standard, and is
11400         described more later.  Also fixed things so that the menu item
11401         name can be an evaluated expression, again a new standard.
11402
11403         * gui.c:
11404         * gui.c (gui_item_add_keyval_pair):
11405         * gui.c (make_gui_item_from_keywords_internal):
11406         * gui.c (gui_add_item_keywords_to_plist):
11407         * gui.c (gui_item_accelerator):
11408         * gui.c (gui_name_accelerator):
11409         * gui.c (gui_item_included_p):
11410         * gui.c (gui_item_display_flush_left):
11411         * gui.c (gui_item_display_flush_right):
11412         * gui.c (parse_gui_item_tree_item):
11413         * gui.c (parse_gui_item_tree_children):
11414         * gui.c (parse_gui_item_tree_list):
11415         Mule-ized.  Cleanup.  GCPRO addition.
11416
11417         * line-number.c (buffer_line_number):
11418         * lisp.h:
11419         * lisp.h (EMACS_INT_MAX):
11420         Added the manifest constant EMACS_INT_MIN corresponding to the
11421         existing constant EMACS_INT_MAX.  This is partially to fix compile
11422         warnings under Windows, and partly for cleanliness.
11423
11424         * menubar-msw.c:
11425         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
11426         * menubar-msw.c (msw_translate_menu_or_dialog_item):
11427         * menubar-msw.c (displayable_menu_item):
11428         * menubar-msw.c (populate_menu_add_item):
11429         * menubar-msw.c (populate_or_checksum_helper):
11430         * menubar-msw.c (populate_menu):
11431         * menubar-msw.c (update_frame_menubar_maybe):
11432         * menubar-msw.c (prune_menubar):
11433         * menubar-msw.c (msw_char_is_accelerator):
11434         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
11435         * menubar-msw.c (mswindows_handle_wm_command):
11436         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
11437         * menubar-msw.c (mswindows_handle_wm_initmenu):
11438         * menubar-msw.c (mswindows_update_frame_menubars):
11439         * menubar-msw.c (mswindows_free_frame_menubars):
11440         * menubar-msw.c (mswindows_popup_menu):
11441         Fixed a bug in handling accelerators where an extra character
11442         would be displayed in the menu item.  Also generalized the
11443         function displayable_menu_item because it is now used by the
11444         dialog box code as well.  And finally, added code in the functions
11445         that create the menubar to extract a list of accelerators for the
11446         top level menubar, which is used in the event code to determine
11447         whether a particular alt-key combination should be used to invoke
11448         a menu item, or should be passed through to access the standard
11449         XEmacs keymap binding for this key combination.
11450
11451         Much needed GCPROing.
11452
11453         * menubar-x.c:
11454         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11455         * menubar-x.c (menu_item_descriptor_to_widget_value):
11456         * menubar-x.c (restore_in_menu_callback):
11457         * menubar-x.c (x_popup_menu):
11458         * menubar-x.c (menu_move_up):
11459         * menubar-x.c (menu_move_down):
11460         * menubar-x.c (menu_move_left):
11461         * menubar-x.c (menu_move_right):
11462         * menubar-x.c (menu_select_item):
11463         * menubar-x.c (command_builder_operate_menu_accelerator):
11464         * menubar-x.c (menu_accelerator_junk_on_error):
11465         * menubar-x.c (command_builder_find_menu_accelerator):
11466         * menubar-x.c (Faccelerate_menu):
11467         * menubar.h:
11468         Moved a whole bunch of code here that was previously in
11469         event-stream.c as described above.  There is also code connected
11470         to the new standard of adding an accelerator to the beginning of
11471         menu items that don't have one as described above and below.
11472
11473         * menubar.c:
11474         * menubar.c (menu_parse_submenu_keywords):
11475         * menubar.c (Fmenu_find_real_submenu):
11476         * menubar.c (Fnormalize_menu_item_name):
11477         * menubar.c (syms_of_menubar):
11478         * menubar.c (vars_of_menubar):
11479         * menubar.c (complex_vars_of_menubar):
11480
11481         a) Cleaned up a bunch of documentation and improved it.
11482
11483         b) XEmacs now automatically adds an accelerator onto the beginning
11484         of any menu items that don't have one.  I did this because there
11485         will inevitably be some menu items on the main menubar that don't
11486         have accelerators on them because the package that adds that
11487         particular menu item hasn't yet been fixed up to have accelerators
11488         in them and it looked rather strange to have some items with and
11489         some items without accelerators, especially since even in items
11490         without accelerators, you can, at least under windows, still
11491         access the item through an accelerator corresponding to the first
11492         character in the item's name.  If people don't like this behavior,
11493         I can add a variable to turn it off optionally, but I'm not sure
11494         this is a good idea because we really do need to have accelerators
11495         on all of the menu items, and if a package doesn't like the
11496         accelerators being put on the first character, then it should put
11497         the accelerators where they belong.
11498
11499         c) I made a behavior change, which is that the descriptor that
11500         specifies the text of the menu item, which formerly was just a
11501         string, can now also be an evaluated expression.  This makes this
11502         descriptor parallel with all of the others, which could also be
11503         evaluated expressions.  This also obviates the need for the
11504         keyword :label, which was previously listed in the documentation
11505         as unimplemented, and which was for the same purpose.
11506
11507         d) GCPROing.
11508
11509         * ntproc.c:
11510         * ntproc.c (new_child):
11511         * ntproc.c (sys_spawnve):
11512         * ntproc.c (find_child_console):
11513         * ntproc.c (sys_kill):
11514         Fixed compile warnings.  By the way, this file should really go
11515         away entirely, and this will happen as soon as Kirill makes his
11516         final round of process cleanups, which affect the function
11517         call-process.
11518
11519         * process-nt.c:
11520         * process-nt.c (struct nt_process_data):
11521         * process-nt.c (find_process_from_pid):
11522         * process-nt.c (send_signal_the_nt_way):
11523         * process-nt.c (enable_child_signals):
11524         * process-nt.c (find_child_console):
11525         * process-nt.c (send_signal_the_95_way):
11526         * process-nt.c (nt_finalize_process_data):
11527         * process-nt.c (ensure_console_window_exists):
11528         * process-nt.c (nt_create_process):
11529         * process-nt.c (nt_kill_child_process):
11530         * process-nt.c (nt_kill_process_by_pid):
11531         * process-nt.c (nt_open_network_stream):
11532         * process-nt.c (vars_of_process_nt):
11533         Copied over code from Emacs 20.5 to correctly send signals to sub-
11534         processes under Windows 95.  Also added code to automatically
11535         create and hide console window when a sub-process is created under
11536         Windows 95, which obviates the need for the separate runemacs.exe
11537         executable, and finally implemented some variables that were
11538         implemented in Emacs 20.5, but previously not in XEmacs.  These
11539         include mswindows- start-process-share-console and
11540         mswindows-start-process-inherit-error-mode. (Both of these only
11541         apply to Windows 95.)
11542
11543         * regex.c (regex_compile): Fixed a compile warning.
11544
11545         * select-msw.c:
11546         * select-msw.c (mswindows_own_selection):
11547         * select-msw.c (mswindows_get_foreign_selection):
11548         * select-msw.c (mswindows_disown_selection):
11549         * select-msw.c (console_type_create_select_mswindows):
11550         * select-msw.c (syms_of_select_mswindows):
11551         Cleaned up the file and implemented the device method
11552         selection_exists_p, which had accidentally been left out.  Also
11553         removed four lisp functions that were remnants from before the
11554         time when the selection code was properly device abstracted.
11555         These functions are no longer needed because there are generic
11556         equivalents, and because they were added recently and don't exist
11557         in FSF Emacs, I don't think there's any problem with just deleting
11558         them.
11559
11560         * sysdep.c:
11561         * sysdep.c (sys_subshell):
11562         Fixed a compile warning, although in this case there's probably
11563         something wrong with this code, and it ought to be looked into
11564         more thoroughly by somebody who understands it.
11565
11566         * window.c:
11567         * window.c (Fwindow_text_area_height):
11568         * window.c (Fwindow_width):
11569         * window.c (Fwindow_full_width):
11570         * window.c (Fwindow_pixel_width):
11571         * window.c (debug_print_window):
11572         * window.c (syms_of_window):
11573         Added functions window-text-area-height and window-full-width,
11574         which are functions for returning various width and height
11575         characteristics of a window. (One of these functions is necessary
11576         for making the file dialog box work correctly, and the other one
11577         was added for completeness.)  Also added a table to the
11578         documentation for window-height which describes the entire scheme
11579         for accessing width and height characteristics of a window.
11580
11581 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11582
11583         * nt.c (fstat): Added a comment for another problem with
11584         non-encapsulated [f]stat(), reported by Adrian Aichner
11585         <aichner@ecf.teradyne.com>.
11586
11587 2000-03-11  Andy Piper  <andy@xemacs.org>
11588
11589         * window.c (make_dummy_parent): initialize subwindow instance
11590         cache.
11591         (Fset_window_configuration): zero extent_modiff.
11592
11593 2000-03-10  Andy Piper  <andy@xemacs.org>
11594
11595         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11596         more changes can be triggered.
11597         (Fredisplay_frame): ditto.
11598         (Fredraw_device): ditto.
11599         (Fredisplay_device): ditto.
11600         (redisplay_frame): make non-static.
11601         (redisplay_frame): call update_frame_gutter_geometry outside of
11602         display proper.
11603
11604         * gutter.h: declare update_frame_gutter_geometry.
11605
11606         * redisplay.h: declare redisplay_frame.
11607
11608         * gutter.c (update_frame_gutter_geometry): move geometry changes
11609         in update_frame_gutters here. Geometry changes can only occur
11610         outside of redisplay.
11611         (update_frame_gutters): remove geometry change code.
11612         (Fredisplay_gutter_area): make sure that we are in display when we
11613         update and that we have flushed any size changes.
11614
11615 2000-03-11  Andy Piper  <andy@xemacs.org>
11616
11617         * alloc.c (pdump_dump_data): remove i & count shadows.
11618
11619 2000-02-27  Mike Alexander  <mta@arbortext.com>
11620
11621         * sysdep.h: Declare pdump_read_file
11622
11623         * sysdep.c (pdump_read_file): New function
11624
11625         * alloc.c (pdump_load): Call pdump_read_file to get the portable
11626         dump data
11627
11628 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11629
11630         * lrecord.h: add `lrecord_type_pgsetenv'.
11631
11632 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
11633
11634         * symsinit.h: declare (vars|syms)_of* functions.
11635         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11636
11637 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
11638
11639         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11640
11641         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11642         GCCs.
11643
11644         * emacs.c (main_1): Call postgres initialization code.
11645
11646         * postgresql.h: New file.  PostgreSQL RDBMS support.
11647         * postgresql.c: New file.
11648
11649 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11650
11651         * redisplay-output.c (redisplay_output_display_block): Disable
11652         redundant code.
11653
11654 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11655
11656         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11657         (Fcanna_henkan_next): Ditto.
11658         (Fcanna_bunsetu_henkou): Ditto.
11659         (Fcanna_henkan_kakutei): Ditto.
11660         (Fcanna_henkan_end): Ditto.
11661         (Fcanna_henkan_quit): Ditto.
11662         (Fcanna_henkan_next): Set retun value correctly.
11663         (c2mu): Use unsigned char instead of signed char.
11664
11665 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11666
11667         * emacs.c (main_1): Always call syms_of_gui.
11668         * inline.c: include gui.h
11669
11670 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11671
11672         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11673         converted to Lisp_Object.
11674         (Qtop_bottom): New variable.
11675         (syms_of_redisplay): Initialize it.
11676         * redisplay.h (Vvisible_bell): Ditto.
11677         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11678         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11679         only flash top and bottom.
11680
11681 2000-03-08  Andy Piper  <andy@xemacs.org>
11682
11683         * buffer.c (Frename_buffer): record new buffer name the right way.
11684
11685 2000-03-08  Andy Piper  <andy@xemacs.org>
11686
11687         * glyphs.c (update_subwindow): increase hash depth so that widget
11688         items get picked up properly.
11689
11690         * redisplay-output.c (compare_runes): increase hash depth so that
11691         widget items get picked up properly.
11692
11693 2000-03-08  Andy Piper  <andy@xemacs.org>
11694
11695         * gutter.c (output_gutter): add some debug.
11696
11697         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11698         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11699         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11700
11701         * redisplay-output.c (compare_runes): use display_hash to
11702         determine if glyphs really are not the same.
11703
11704         * glyphs.c (update_subwindow): check display_hash to see if
11705         anything really needs to be updated. If not then do
11706         nothing. Record the display_hash after updating.
11707         (image_instance_equal): compare the image_instance face also.
11708
11709 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11710
11711         * redisplay.h: Fix comment style.
11712
11713 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11714
11715         * consle-msw.h (struct mswindows_frame):
11716         Added new member paint_pending to indicate whether a WM_PAINT
11717         magic event has been queued for this frame.
11718
11719         * event-msw.c (mswindows_drain_windows_queue):
11720         Don't queue a WM_PAINT magic event if one is already queued.
11721         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11722
11723         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11724
11725 2000-03-07  Didier Verna  <didier@xemacs.org>
11726
11727         * dired.c: #include `regex.h' after `sysfile.h'.
11728
11729 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11730
11731         * sound.c (init_nas_sound): Fix compiler warning.
11732
11733         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11734         (FREE_STRUCT_P):
11735         (MARK_STRUCT_AS_FREE):
11736         (MARK_STRUCT_AS_NOT_FREE):
11737         Make `gcc -fstrict-aliasing' work properly.
11738
11739 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11740
11741         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11742         (mswindows_delete_device): Call CoUnnitialize().
11743
11744         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11745
11746 2000-02-25    <CraigL@DyCon.com>
11747
11748         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11749         <errno.h>.
11750
11751         * sysdep.c: This extern declaration for environ prevents MinGW
11752         from finding the variable in CRTDLL.DLL.
11753
11754         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11755         windows headers.
11756         (SHGFI_EXETYPE): ..
11757         (WM_MOUSEWHEEL): ..
11758         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11759         definitions.
11760         (MMRESULT): Removed, now defined in cygwin's windows headers.
11761         (TIMECAPS): ..
11762         (uid_t,gid_t,pid_t,ssize_t): ..
11763         (_timeb): Removed, MinGW defines both _timeb and timeb.
11764         (HAVE_H_ERRNO): Added.
11765         (HAVE_TZNAME): Added, configure is not detecting this.
11766
11767 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11768
11769         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11770         * syntax.c (syntax_match): Use it.
11771
11772         * cmds.c: Import auto-fill-chars from FSF Emacs.
11773         (Vauto_fill_chars): New variables.
11774         (internal_self_insert): Check Vauto_fill_chars.
11775         (vars_of_cmds):
11776         Declare auto-fill-chars as a Lisp variable and initialize it.
11777
11778 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11779
11780         * fileio.c (Fmake_symbolic_link):
11781         (Ffile_symlink_p):
11782         Run handlers even if local machine doesn't have symlinks.
11783
11784 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11785
11786         * event-msw.c (mswindows_drain_windows_queue):
11787         Don't generate paint magic events for non-XEmacs frames.
11788
11789 2000-03-05  Andy Piper  <andy@xemacs.org>
11790
11791         * redisplay.c (redisplay_frame): generate_displayable_area and
11792         friends assumes that we are not in GC, we therefore have to make
11793         sure that this doesn't happen.
11794
11795         * gutter.c (calculate_gutter_size): generate_displayable_area
11796         assumes that we are not in GC, we therefore have to make sure that
11797         this doesn't happen.
11798
11799 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11800
11801         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11802
11803 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11804
11805         * redisplay.c (regenerate_window): Make sure we set a sane value
11806         for end_pos even if we jump out of the loop.
11807         (regenerate_window): Answer Ben's question :-).
11808         (start_end_of_last_line): Add may_error argument.
11809         (start_of_last_line):
11810         (end_of_last_line): Pass may_error = 0.
11811         (end_of_last_line_may_error): New function.
11812         (pixel_to_glyph_translation): Use it, so we don't crash in
11813         event_to_glyph.
11814
11815 2000-03-04  Andy Piper  <andy@xemacs.org>
11816
11817         * window.h (struct window): add gutter_extent_modiff.
11818
11819         * window.c (allocate_window): zero out gutter_extent_modiff.
11820
11821         * redisplay.h: declare sync_display_line_structs.
11822
11823         * redisplay.c (add_glyph_rune): add a better comment.
11824
11825         * redisplay-output.c (sync_display_line_structs): made non-static.
11826         (compare_runes): remove unneccesary glyph cachel access.
11827
11828         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11829
11830         * gutter.c (output_gutter): don't output the gutter if extent
11831         changes only involve extents in buffers. use 4 sets of display
11832         lines.
11833         (gutter_extent_signal_changed_region_maybe): new function. Mark
11834         extents in gutters as changed.
11835         (update_frame_gutters): use 4 sets of display lines.
11836         (reset_gutter_display_lines): ditto.
11837         (free_frame_gutters): ditto.
11838         (redraw_exposed_gutter): force output of gutters.
11839
11840         * frame.h (struct frame): add 4 sets of gutter display lines.
11841
11842         * extents.c: (extent_changed_for_redisplay): signal changes to
11843         extents in strings in the gutter as well as extents in buffers.
11844
11845 2000-03-02  Andy Piper  <andy@xemacs.org>
11846
11847         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11848
11849         * frame.c (Fmake_frame): make sure the gutters get initialized
11850         after the frame is visible.
11851         (set_frame_selected_window): re-arrange compilation macros a
11852         little.
11853         (change_frame_size_1): mark gutters changed.
11854
11855         * device.c (Fset_device_class): mark gutters changed.
11856
11857 2000-03-01  Andy Piper  <andy@xemacs.org>
11858
11859         * window.c (window_top_frame_gutter_height): deleted.
11860         (window_bottom_frame_gutter_height): ditto.
11861         (window_left_frame_gutter_height): ditto.
11862         (window_right_frame_gutter_height): ditto.
11863         (window_top_gutter_height): don't use them.
11864         (window_bottom_gutter_height): ditto.
11865         (window_left_gutter_width): ditto.
11866         (window_right_gutter_width): ditto.
11867         (Fsplit_window): ditto.
11868         (Fwindow_pixel_edges): don't use border dimensions here.
11869
11870         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11871         (update_scrollbar_instance): ditto.
11872
11873         * redisplay.c (generate_modeline): don't take gutters into account.
11874         (generate_modeline): ditto.
11875         (redisplay_frame): small gutter display optimization.
11876
11877         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11878
11879         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11880         gutters into account.
11881
11882         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11883         for window position and type.
11884
11885         * gutter.c (get_gutter_coords): fix for frame gutters.
11886         (update_frame_gutters): update frame geometry if the gutters have
11887         changed.
11888         (init_frame_gutters): record current gutter geometries.
11889
11890         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11891         var.
11892         (mswindows_widget_instantiate): ditto.
11893
11894         * frame.h (struct frame): add current_gutter_bounds.
11895
11896         * frame.c (change_frame_size_1): position window and minibuffer
11897         appropriately taking into account the frame gutters.
11898
11899         * frame-x.c: (x_initialize_frame_size): take into account the
11900         frame gutters.
11901
11902 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11903
11904         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11905
11906 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11907
11908         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11909
11910 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11911
11912         * file-coding.c (reset_decoding_stream): Clear previous
11913         detection state when autodetect.
11914
11915 2000-02-29  Didier Verna  <didier@xemacs.org>
11916
11917         * extents.c (set_extent_glyph_1): don't require extents to be
11918         attached.
11919
11920 2000-02-27  Andy Piper  <andy@xemacs.org>
11921
11922         * gutter.c (Fset_default_gutter_position): don't default left and
11923         right gutter visibility to t.
11924         (Fset_default_gutter_position): run
11925         default-gutter-position-changed-hook.
11926         (syms_of_gutter): add default-gutter-position-changed-hook.
11927
11928 2000-02-26  Andy Piper  <andy@xemacs.org>
11929
11930         * specifier.c (Fmake_specifier): add gutter references.
11931
11932         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11933
11934         * lisp.h: declare Fvalid_plist_p.
11935
11936         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11937         as changed.
11938         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11939         well as its visibility so that it gets reconstructed.
11940         (construct_window_gutter_spec): new function. Construct a string
11941         to be displayed in the gutter from a plist of strings. Take care
11942         to only use elements that are declared as visible.
11943         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11944         WINDOW_GUTTER.
11945         (gutter_validate): allow plists of strings in the specifier.
11946         (gutter_specs_changed): construct the real_gutter from the gutter
11947         specs using construct_window_gutter_spec.
11948         (gutter_visible_validate): gutter-visible is a new specifier type.
11949         (Fgutter_visible_specifier_p): new function for the new specifier.
11950         (syms_of_gutter): declare gutter-visible and
11951         Fgutter_visible_specifier_p.
11952         (specifier_type_create_gutter): intitalize new gutter-visible
11953         specifier.
11954         (reinit_specifier_type_create_gutter): ditto.
11955         (specifier_vars_of_gutter): use new specifier type for gutter
11956         visibility.
11957         (init_frame_gutters): construct real_gutter correctly.
11958         (Fgutter_specifier_p): beef up documentation.
11959         (Fgutter_size_specifier_p): ditto.
11960
11961         * winslots.h: add real_gutter slots.
11962
11963 2000-02-25  Andy Piper  <andy@xemacs.org>
11964
11965         * device-msw.c: Be kind to older cygwin versions. From Raymond
11966         Toy <toy@rtp.ericsson.se>.
11967
11968         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11969         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11970
11971 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11972
11973         * elhash.c (MARK_OBJ): Practice macro hygiene.
11974
11975 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11976
11977         * miscplay.c: s/__inline__/inline/g;
11978         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11979         (get_device_compdc): INLINE ==> static inline
11980         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11981         find -name '*.h' | \
11982         xargs global-replace \
11983         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11984
11985 2000-02-25  Andy Piper  <andy@xemacs.org>
11986
11987         * window.c (window_top_frame_gutter_height): new function.
11988         (window_top_window_gutter_height): ditto.
11989         (window_top_gutter_height): use them.
11990         (window_bottom_frame_gutter_height): new function.
11991         (window_bottom_window_gutter_height): ditto.
11992         (window_bottom_gutter_height): use them.
11993         (window_left_window_gutter_width): new function.
11994         (window_left_frame_gutter_width): ditto.
11995         (window_left_gutter_width): use them.
11996         (window_right_window_gutter_width): new function.
11997         (window_right_frame_gutter_width): ditto.
11998         (window_right_gutter_width): use them.
11999         (window_pixel_height): new function. calulate window pixel height
12000         with frame gutter involvement.
12001         (Fsplit_window): calculate new sizes taking frame gutters into
12002         account.
12003         (window_char_height_to_pixel_height): don't include frame gutters.
12004         (window_char_height): use window_pixel_height.
12005         (window_pixheight): rename from window_pixel_height.
12006         (change_window_height): use it.
12007         (window_pixel_height_to_char_height): don't include frame gutters.
12008         (window_char_width_to_pixel_width): ditto.
12009
12010 2000-02-25  Andy Piper  <andy@xemacs.org>
12011
12012         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
12013         if it is.
12014
12015 2000-02-24  Martin Buchholz  <martin@xemacs.org>
12016
12017         * alloc.c (staticpro):
12018         (staticpro_nodump):
12019         (dumpstruct):
12020         (dumpopaque):
12021         (pdump_wire):
12022         (pdump_wire_list):
12023         (compact_string_chars):
12024         (pdump_dump_wired):
12025         Convert:  if (foo) abort();  ==>  assert (! foo);
12026
12027         * eldap.c (Fldap_search_basic):
12028         (Fldap_add):
12029         (Fldap_modify):
12030         (Fldap_delete):
12031         Fix compiler warnings, and possible crashes if (random) return
12032         value were to be used.
12033
12034 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12035
12036         * device-msw.c: Workaround ResetDC failure.
12037
12038         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
12039         applying a devmode.
12040
12041         * redisplay-msw.c (get_frame_dc): Added start_page_p.
12042         (mswindows_text_width): Do not start printer page.
12043
12044         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
12045
12046         * glyphs-msw.c: Added image methods to msprinter console and
12047         msprinter-specific image instantiation.
12048
12049 2000-02-20  Mike Alexander  <mta@arbortext.com>
12050
12051         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
12052         to avoid crashes when selection-sets-clipboard is on
12053         (mswindows_own_selection): ditto
12054
12055 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12056
12057         * glyphs-msw.c:
12058         * redisplay-msw.c (get_frame_dc):
12059         (get_frame_compdc):
12060         * console-msw.h:
12061         * device-msw.c (mswindows_init_device):
12062         (mswindows_delete_device):
12063         (msprinter_init_device):
12064         (msprinter_delete_device):
12065         * frame-msw.c (mswindows_init_frame_1):
12066         (mswindows_delete_frame):
12067         (msprinter_init_frame_3):
12068         (msprinter_delete_frame): Move compatible DC to device object from
12069         frame object, for both mswindows and msprinter. Only one at a time
12070         is needed, it is a real waste to have one per frame!
12071
12072 2000-02-23  Andy Piper  <andy@xemacs.org>
12073
12074         * glyphs.c: add dynamic width and height elements.
12075         (image_instance_equal): ditto.
12076
12077         * glyphs-widget.c (widget_query_geometry): calculate width and
12078         height dynamically if required.
12079         (initialize_widget_image_instance): initialize dynamic dimensions.
12080         (widget_instantiate): pick-up dynamic dimensions.
12081
12082         * glyphs.h (struct Lisp_Image_Instance): add width and height for
12083         dynamic determination. Add appropriate macros.
12084
12085         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
12086         dimensions safe.
12087         (WINDOW_GUTTER_SIZE): ditto.
12088         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
12089
12090         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
12091         inline.
12092         (get_frame_dc): ditto.
12093
12094         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
12095         here.
12096
12097 2000-02-23  Martin Buchholz <martin@xemacs.org>
12098
12099         * XEmacs 21.2.31 is released.
12100
12101 2000-02-22  Ben Wing <ben@xemacs.org>
12102
12103         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
12104
12105 2000-02-22  Andy Piper  <andy@xemacs.org>
12106
12107         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
12108
12109 2000-02-21  Mike Sperber <mike@xemacs.org>
12110
12111         * .dbxrc:
12112         * .gdbinit:
12113         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
12114         variables.
12115
12116 2000-02-21  Mike Sperber <mike@xemacs.org>
12117
12118         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
12119
12120 2000-02-21  Martin Buchholz <martin@xemacs.org>
12121
12122         * XEmacs 21.2.30 is released.
12123
12124 2000-02-20  Martin Buchholz  <martin@xemacs.org>
12125
12126         Performance hacking.
12127         * *.c (syms_of_*):
12128         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
12129         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
12130         * emacs.c (main_1):
12131         * lisp.h (DEFUN):
12132         * console.c (DEFVAR_CONSOLE_LOCAL_1):
12133         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
12134         * symeval.h (DEFVAR_SYMVAL_FWD):
12135         * symbols.c (guts_of_unbound_marker):
12136         Make all c_readonly objects also lisp_readonly and marked for life.
12137         * lrecord.h (struct lrecord_implementation):
12138         Document flags better.
12139         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
12140         * lrecord.h (DECLARE_LRECORD):
12141         * lrecord.h (XSETRECORD):
12142         * lrecord.h (RECORDP):
12143         * lrecord.h (RECORD_TYPEP):
12144         * lrecord.h (RECORD_MARKER): New.
12145         * lrecord.h (error_check_*):
12146         * lrecord.h (CONCHECK_NONRECORD):
12147         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
12148         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
12149         * lrecord.h (set_lheader_implementation):
12150         * lrecord.h (enum lrecord_type): New.
12151         * symeval.h (SYMBOL_VALUE_MAGIC_P):
12152         * alloc.c (disksave_object_finalization_1):
12153         * alloc.c (mark_object):
12154         * alloc.c (lrecord_type_index):
12155         * alloc.c (tick_lcrecord_stats):
12156         * alloc.c (Fgarbage_collect):
12157         * alloc.c (init_alloc_once_early):
12158         * alloc.c (pdump_load):
12159         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
12160         * alloc.c (lrecord_type_index): Delete.
12161         Make lisp object type indexes be constant.
12162           Makes (byte-compile) 5% faster.
12163         Put all marker functions into their own array.
12164           Makes (garbage-collect) 5% faster.
12165         Optimize SYMBOL_VALUE_MAGIC_P.
12166           Makes (byte-compile) 2-3% faster.
12167         * config.h.in (gc_checking_assert): New.
12168         * alloc.c: Use gc_checking_assert().
12169         * .dbxrc: Make compatible with new object type implementation.
12170         * .gdbinit: Make compatible with new object type implementation.
12171         * alloc.c: Delete all symbols defined only for debugging, such as
12172         Lisp_Type_Vector and lrecord_charset.
12173
12174 2000-02-21  Andy Piper  <andy@xemacs.org>
12175
12176         * gui-msw.c (Fmswindows_shell_execute): fix file location
12177         problems.
12178
12179         * buffer.c (Fkill_buffer): remove buffer from alist buffer
12180         unshowing so that set_window_buffer doesn't undo
12181         kill_buffer_hook's hard work.
12182
12183         * glyphs-widget.c (tab_control_query_geometry): don't count the
12184         first item when calculating geometry.
12185
12186         * glyphs.c (map_subwindow): remove redundant code.
12187         (update_frame_subwindows): be more circumspect about when to
12188         update subwindows.
12189
12190         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
12191         when items haven't changed. Update faces if faces have changed as
12192         well as just the widget face.
12193         (x_tab_control_update): Update faces if faces have changed as well
12194         as just the widget face.
12195
12196 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12197
12198         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
12199         registration.
12200         (build_syscolor_string): Use mswindows_color_to_string to try to
12201         get a named color.
12202         (mswindows_device_system_metrics): Reverse the foreground and
12203         background colors so that they match the documentation.
12204
12205         * objects-msw.c: (mswindows_X_color_map): tweak some values so
12206         they match the default Windows palette.
12207         (mswindows_color_to_string): New function.
12208
12209 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12210
12211         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
12212
12213 2000-02-18  Olivier Galibert  <galibert@pobox.com>
12214
12215         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
12216         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
12217
12218         * symbols.c (init_symbols_once_early): Removed obsolete
12219         DATA_SEG_BITS related kludge.
12220         (defvar_magic): Ditto.
12221
12222         * malloc.c: Removed obsolete DATA_SEG_BITS
12223         * ralloc.c: Ditto.
12224         * mem-limits.h: Ditto.
12225
12226         * Makefile.in.in: Removed obsolete HAVE_SHM
12227         * emacs.c: Ditto.
12228
12229 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12230
12231         *  device-msw.c (mswindows_delete_device): Free DDE string
12232         handles.
12233
12234 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12235
12236         * keymap.c (get_keyelt):
12237         * unexnt.c (unexec):
12238         * vm-limit.c (memory_warnings):
12239         * ntheap.c (recreate_heap):
12240         * ntheap.h (UNINIT_PTR):
12241         * select-msw.c (Fmswindows_get_clipboard):
12242         (Fmswindows_set_clipboard):
12243         * objects-msw.h (MSWINDOWS_BAD_HFONT):
12244         * objects-msw.c:
12245         * menubar-msw.c (displayable_menu_item):
12246         * glyphs-msw.c:
12247         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
12248         * sysdep.c (sys_subshell):
12249         * process-nt.c (nt_create_process):
12250         * nt.c (normalize_filename):
12251         (dostounix_filename):
12252         (unixtodos_filename):
12253         * ntproc.c (win32_executable_type):
12254         * ntplay.c (play_sound_data_1):
12255         (play_sound_file):
12256         * editfns.c (get_home_directory):
12257         * event-msw.c (struct winsock_stream):
12258         (mswindows_dde_callback):
12259         * device-msw.c (msprinter_init_device):
12260         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
12261
12262         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
12263         mswindows_clear_toolbar were swapped!
12264
12265         * objects-msw.c:(colormap_t):
12266         (fontmap_t):
12267         * emacs.c (struct standard_args): Fixed const jumble.
12268
12269         * glyphs-widget.c (update_widget): Fixed comparison notation.
12270
12271         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
12272
12273         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
12274         __declspec(noreturn) syntax.
12275
12276 2000-02-19  Martin Buchholz  <martin@xemacs.org>
12277
12278         * eldap.c (Fldap_open):
12279         (Fldap_search_basic):
12280         (Fldap_add):
12281         (Fldap_modify):
12282         Use new coding system conversion macros.
12283
12284 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12285
12286         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
12287
12288 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
12289
12290         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
12291         (Fldap_add, Fldap_modify, Fldap_delete): New functions
12292
12293         * eldap.c (Qadd, Qreplace): New constant symbols
12294         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
12295         interruptions by XEmacs signals
12296         Remove unnecessary calls to slow_down_interrupts and
12297         speed_up_interrupts
12298         (Fldap_search_basic): Renamed from Fldap_search_internal
12299         Added new optional parameter VERBOSE that triggers the
12300         display of progress messages
12301         Remove unnecessary calls to slow_down_interrupts and
12302         speed_up_interrupts
12303         LDAP result code analysis rewritten
12304         (Fldap_add, Fldap_modify, Fldap_delete): New functions
12305         (syms_of_eldap): Define the new symbols and functions
12306
12307
12308 2000-02-17  Martin Buchholz  <martin@xemacs.org>
12309
12310         * realpath.c: Determine PATH_MAX maximally portably.
12311
12312         * insdel.c (bytecount_to_charcount): Optimize.
12313         The function used to be optimized for entirely ASCII sequences.
12314         Now it is optimized for successive characters from the same
12315         charset.  This also wins big for _mostly_ ASCII sequences.
12316
12317         * fileio.c (Ffile_truename): convert return from realpath() using
12318         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
12319         - Rewrite GCPROing slightly.
12320
12321         * sysdep.c (sys_open): Do filename conversion, like all other
12322         sys_* functions.  Fixes bug:
12323         (let ((file-name-coding-system 'iso-8859-2))
12324            (write-region x y latin2-name))
12325         ==> writes filename using internal encoding.
12326
12327 2000-02-18  Martin Buchholz  <martin@xemacs.org>
12328
12329         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
12330         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
12331         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
12332         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
12333         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
12334         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
12335         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
12336         (CONST_IF_NOT_DEBUG): Delete.
12337         * alloc.c (this_one_is_unmarkable): Delete.
12338         (mark_object): Don't check for this_one_is_unmarkable. Use the
12339         c_readonly flag instead.
12340         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
12341
12342 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12343
12344         * event-msw.c (mswindows_drain_windows_queue):
12345         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
12346         away redundant repaint events.
12347
12348 2000-02-17  Andy Piper  <andy@xemacs.org>
12349
12350         * redisplay.h: declare mark_redisplay_structs.
12351
12352         * redisplay.c (redisplay_window):
12353         (redisplay_frame): don't check subwindows_state_changed.
12354         (mark_redisplay): mark gutters here.
12355
12356         * glyphs.c: (instantiate_image_instantiator): always layout if we
12357         haven't done so already.
12358         (allocate_image_instance): don't mark as dirty.
12359         (update_subwindow): bind inhibit_quit.
12360
12361         * gutter.c (mark_gutters): new function.
12362
12363         * glyphs-x.c (x_update_widget): Always resize to get round a
12364         widget bug.
12365
12366         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
12367         breaking absolutely everything.
12368
12369         * gutter.h: declare mark_gutters.
12370
12371 2000-02-16  Martin Buchholz <martin@xemacs.org>
12372
12373         * XEmacs 21.2.29 is released.
12374
12375 2000-02-15  Olivier Galibert  <galibert@pobox.com>
12376
12377         * fns.c (size_bit_vector): Fix computation of the size.
12378
12379 2000-02-15  Martin Buchholz  <martin@xemacs.org>
12380
12381         * *.[ch]: Change CONST to const globally.
12382         find -name '*.[ch]' | \
12383         xargs global-replace \
12384         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
12385         - Remove vestigial references to CONST_IS_LOSING
12386
12387 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12388
12389         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
12390         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
12391         events instead of dispatching them directly.
12392         (mswindows_handle_paint): New function to do repainting.
12393         (mswindows_wnd_proc):
12394         (emacs_mswindows_handle_magic_event): Call above function.
12395
12396 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12397
12398         * objects-msw.c (mswindows_create_font_variant): Return the new
12399         font handle.
12400         (initialize_font_instance): Get font metrics from the underlined
12401         variant of the font to cope with the case where the underlined
12402         font has a bigger descent.
12403
12404 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12405
12406         * gui.c (gui_item_accelerator): Return the first underlined
12407         character in item name.
12408
12409 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12410
12411         * lisp.h: Added Qprinter.
12412
12413         * general.c (syms_of_general): Initialized it.
12414
12415         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
12416         (get_frame_dc):
12417         (get_frame_compdc): Made inline.
12418
12419         * console.h (struct console_methods): Added eject_page method.
12420
12421         * frame.h: Added FRAME_DISPLAY_P and friends.
12422         Aligned backslahes in many macros in more readable fashion.
12423         Added page_number to struct frame, and an accessor macro
12424         for it.
12425
12426         * defice.h: Added DEVICE_DISPLAY_P and friends.
12427
12428         * device.c (Fdevice_printer_p): Used these.
12429
12430         * frame.c (allocate_frame_core): Initialize page number.
12431         (Fprint_job_page_number):
12432         (Fprint_job_eject_page): Implemented.
12433
12434         * frame-msw.c (msprinter_eject_page): Added method.
12435         (msprinter_start_page): Added.
12436
12437         * window.c (Fwindow_truncated_p): Fixed docstring.
12438         (Fwindow_last_line_visible_height): Implemented.
12439
12440 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12441
12442         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
12443
12444 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12445
12446         * syntax.c (scan_words): Always advance at least one character.
12447
12448 2000-02-13  Andy Piper  <andy@xemacs.org>
12449
12450         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
12451         to make sure the glyph is in the cachels.
12452
12453         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
12454         global image instance flag.
12455         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
12456         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
12457
12458         * glyphs.c (allocate_image_instance): set dirty bits correctly.
12459         (Fset_image_instance_property): mark layout as changed.
12460         (invalidate_glyph_geometry_maybe): mark layout as changed.
12461         (glyph_width): use new NEEDS_LAYOUT macro.
12462         (glyph_ascent): ditto.
12463         (glyph_descent): ditto.
12464         (glyph_height): ditto.
12465         (image_instance_layout): mark layout as clean after laying out.
12466         (update_subwindow): don't mark layout as clean here.
12467
12468         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
12469         should no longer be needed.
12470
12471         * glyphs-x.c (x_update_widget): sanitize asserts.
12472         (x_finalize_image_instance): sanitize assignment to widgets.
12473
12474         * glyphs-widget.c (widget_instantiate): don't need to clear the
12475         layout flag here.
12476
12477 2000-02-13  Martin Buchholz  <martin@xemacs.org>
12478
12479         * sysdep.c (getcwd): Use standard prototype.
12480         * sysdep.h (getcwd): Use standard prototype.
12481
12482         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
12483         (sequence, start, end).
12484         Remove redundant type checking.
12485         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
12486         view of `caller-protects') to avoid a crash where the real fix was
12487         found elsewhere.
12488
12489 2000-02-12  Martin Buchholz  <martin@xemacs.org>
12490
12491         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
12492
12493         * s/sol2.h: Remove feature macro initialization.
12494
12495         * alloc.c (alloc_lcrecord): Add more type checking assertions.
12496         (vector_hash): New.  Code from internal_hash.
12497         * lrecord.h:
12498         Fix up allocation subsystem comments.
12499
12500         * config.h.in: Add __EXTENSIONS__ for Solaris.
12501
12502         * systime.h (EMACS_GETTIMEOFDAY): New.
12503         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
12504         Remove Solaris-specific code.
12505         Use void* for the (ignored) second arg for gettimeofday().
12506
12507         * elhash.c (hash_table_hash): Implement it, finally.
12508         * elhash.c:  Use hashcode_t.
12509
12510         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
12511         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
12512
12513         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
12514         * fns.c (size_bit_vector):
12515         * alloc.c (size_vector):
12516         (make_vector_internal):
12517         (make_bit_vector_internal):
12518         (sweep_bit_vectors_1):
12519         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
12520
12521 2000-02-10  Martin Buchholz  <martin@xemacs.org>
12522
12523         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
12524         Include strings.h to avoid warnings for bzero and strcasecmp.
12525
12526 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12527
12528         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
12529         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
12530
12531         * fns.c (size_bit_vector): New.  Declare bit vectors as a
12532         sequence.
12533
12534 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12535
12536         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
12537         use a value field instead.
12538         (symbol_value_forward_forward): Use value field.
12539         (DEFVAR_SYMVAL_FWD): Use value field.
12540         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
12541         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
12542         (DEFVAR_CONST_INT): Ditto.
12543         (DEFVAR_BOOL): Ditto.
12544         (DEFVAR_CONST_BOOL): Ditto.
12545         (DEFVAR_INT_MAGIC): Ditto.
12546         (DEFVAR_BOOL_MAGIC): Ditto.
12547
12548         * symbols.c (guts_of_unbound_marker): Use value field.
12549         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
12550         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
12551
12552         * lisp.h: Declare dumpopaque and noninteractive1.
12553
12554         * alloc.c (dumpopaque): Added.
12555         (pdump_dump_opaquevec): Added.
12556         (pdump): Call pdump_dump_opaquevec to dump opaque data.
12557         (pdump_load): Reload opaque data.  Sync noninteractive1 with
12558         noninteractive.
12559
12560 2000-02-10  Andy Piper  <andy@xemacs.org>
12561
12562         * glyphs.c (image_instance_layout): if the size changes, mark it
12563         as such.
12564
12565         * redisplay-output.c (redisplay_output_layout): Update the
12566         subwindow here.
12567         (redisplay_output_subwindow): ditto.
12568
12569         * glyphs.c (update_subwindow): make sure we reset flags for
12570         layouts as well as everything else.
12571
12572         * glyphs-widget.c (layout_layout): don't need to set the instances
12573         dimensions here.
12574
12575 2000-02-09  Martin Buchholz  <martin@xemacs.org>
12576
12577         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
12578         not HAVE_DLOPEN, which is a lower-level thing.
12579
12580         * .cvsignore: Ignore gmon.out
12581
12582 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
12583
12584         * .cvsignore: Ignore portable dumper xemacs.dmp file
12585
12586 2000-02-09  Andy Piper  <andy@xemacs.org>
12587
12588         * redisplay-output.c (redisplay_output_layout): be more clever
12589         about when we output based on the changed flags.
12590
12591         * glyphs.h (struct image_instantiator_methods): add update_method.
12592         (struct Lisp_Image_Instance): add changed flags. Declare new
12593         macros for manipulating them.
12594
12595         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12596         (image_instance_parent_glyph): find an image_instance's parent
12597         glyph or image_instance.
12598         (image_instance_layout): mark the size as changed.
12599         (set_image_instance_dirty_p): new function. mark an image
12600         instance, plus all of its parents, as dirty.
12601         (Fset_image_instance_property): use it.
12602         (Fglyph_animated_timeout_handler): use it.
12603         (update_subwindow): call update_widget and device methods for
12604         update_subwindow. Mark all changed flags as clean.
12605         (Fresize_subwindow): mark size as changed.
12606
12607         * glyphs-x.c (x_finalize_image_instance): try and detect gc
12608         failures.
12609         (x_update_subwindow): only resize subwindows here.
12610         (x_update_widget): new function. Update all changed properties of
12611         a widget.
12612         (x_resize_subwindow): deleted.
12613         (x_widget_set_property): deleted.
12614         (x_progress_gauge_set_property): deleted.
12615         (x_progress_gauge_update): new function. Implement recorded
12616         changes.
12617         (x_tab_control_update): ditto.
12618         (x_tab_control_set_property): deleted.
12619         (console_type_create_glyphs_x): declare new functions.
12620         (image_instantiator_format_create_glyphs_x): ditto.
12621
12622         * glyphs-widget.c (widget_set_property): mark text changed.
12623         (update_widget): new function. Update properties of a widget.
12624         (widget_instantiate): for layouts make sure we set their
12625         children's parent correctly.
12626         (tab_control_set_property): new function. Record changes that will
12627         take place under redisplay's control.
12628         (progress_gauge_set_property): ditto.
12629         (image_instantiator_progress_guage): declare new functions.
12630         (image_instantiator_tab_control): ditto.
12631
12632         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12633         now.
12634         (mswindows_update_widget): new function. Update all properties on
12635         a widget that have changed.
12636         (mswindows_button_update): new function. Update a button's set
12637         state.
12638         (mswindows_tab_control_update): new function. Update the items in
12639         a tab.
12640         (mswindows_tab_control_set_property): deleted.
12641         (mswindows_progress_gauge_update): new function. Update the
12642         progress gauge's progress.
12643         (mswindows_widget_set_property): deleted. This is all done
12644         asynchronously now.
12645         (mswindows_progress_gauge_set_property): ditto.
12646         (console_type_create_glyphs_mswindows): declare new methods.
12647         (image_instantiator_format_create_glyphs_mswindows): ditto.
12648
12649         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12650         (msprinter_set_frame_properties): ditto.
12651
12652         * console.h (struct console_methods): Add update_widget_method.
12653
12654 2000-02-09  Andy Piper  <andy@xemacs.org>
12655
12656         * gui-msw.c (Fmswindows_shell_execute): Make
12657         mswindows-shell-execute industrial strength.
12658
12659 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12660
12661         * lrecord.h: Make macro argument `props' match member function `plist'.
12662         * fns.c (Fget):
12663         * fns.c (Fput):
12664         * fns.c (Fremprop):
12665         * fns.c (Fobject_plist):
12666         * alloc.c:
12667         * symbols.c:
12668         Object property list frobbing cleanup.
12669         - Allow any lisp object (compared with `eq'), not just symbols, as
12670           keys in object plists.
12671         - Move symbol plist frobbing into symbols.c, where it belongs.
12672         - Move string plist frobbing into alloc.c, where it belongs.
12673         - Everything's an lrecord now, so no need to test for symbolp, etc.
12674         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12675
12676         * extents.c: Reorder code to remove declarations.
12677
12678         * frame.h (store_in_alist): Remove useless declaration.
12679
12680 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12681
12682         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12683         * config.h.in: Add HAVE_XCONVERTCASE.
12684
12685 2000-02-07  Andy Piper  <andy@xemacs.org>
12686
12687         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12688         it breaks many things.
12689
12690 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12691
12692         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12693         actually can start a common comment type.
12694         * src/syntax.h (SYNTAX_END_P): ditto for end.
12695
12696 2000-02-07  Martin Buchholz <martin@xemacs.org>
12697
12698         * XEmacs 21.2.28 is released.
12699
12700 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12701
12702         * event-Xt.c (x_keysym_to_character): New.
12703         (maybe_define_x_key_as_self_inserting_character): New.
12704         (x_has_keysym): New.
12705         Auto-define all keys on the keyboard as self-insert-key.
12706
12707 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12708
12709         * menubar.c (vars_of_menubar): A small code simplification.
12710
12711         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12712
12713         * ExternalShell.c:
12714         * ExternalClient.c:
12715         * EmacsShell-sub.c:
12716         * EmacsManager.c:
12717         * EmacsFrame.c:
12718         Use consistent style for specifying X resources.
12719
12720         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12721         This makes (dontusethis-set-symbol-value-handler) actually usable.
12722
12723         * lrecord.h (lrecord_decription_type):
12724         * alloc.c (pdump_register_sub):
12725         (pdump_dump_data):
12726         (pdump_reloc_one):
12727         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12728         Comply with XEmacs coding style.
12729         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12730         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12731
12732         * keymap.c (Faccessible_keymaps):
12733         Make (accessible-keymaps map "\C-h") do the Right Thing.
12734         Make (accessible-keymaps map []) do the Right Thing.
12735         Make (accessible-keymaps map "") do the Right Thing.
12736         (check_keymap_definition_loop): New function.
12737         (keymap_store_internal): Keep luser from shooting self in foot,
12738           via (define-key ctl-x-4-map "p" global-map).
12739         Remove fullness slot from struct Lisp_Keymap, since hash tables
12740         are now reliable.
12741         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12742
12743 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12744
12745         * redisplay.c (init_redisplay): Fix small memory leak.
12746         * elhash.h:
12747         * elhash.c (pdump_reorganize_hash_table):
12748         Rename from reorganize_hash_table. Change prototype.
12749         Reuse the original memory for hentries.  Save 100k.
12750         * alloc.c (PDUMP_READ): new macro.
12751         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12752         * alloc.c: No need to #ifndef before #undef.
12753
12754         * print.c: Allow debug_print() to print readably by modifying
12755         debug_print_readably.  Use consistent variable names.
12756
12757         * .dbxrc: Try to get things to work even if stopped in a function
12758         without source available by explicitly specifying source files.
12759 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12760
12761         * unexnt.c (_start): Removed bogus code which caused loading heap
12762         from differrent executable file.
12763         Removed bogus assignment to _fmode, which caused inconsistencies.
12764
12765 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12766
12767         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12768         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12769         Do not preliminary `#define signal sigset'.
12770
12771         * systime.h: Do not prototype environ on windows nt and cygwin,
12772         this conflicts with system header.
12773
12774         * syssignal.h: Use correct define for WINDOWSNT
12775
12776         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12777         with system header.
12778
12779         * sysdep.c (near start of file): Fixed commentary and rearranged
12780         ifdefs in readable order.
12781         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12782         (start_of_text):
12783         (end_of_text):
12784         (end_of_data): Do not compile in if using PDUMP.
12785
12786         * symsinit.h: Prototyped vars_of_nt().
12787
12788         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12789         (find_child_console): Use it.
12790         (sys_kill): Use it.
12791
12792         * ntheap.h: Do not extern os_subtype.
12793
12794         * ntheap.c (cache_system_info): Do not cache unneeded:
12795         nt_major_version, nt_minor_version and os_subtype.
12796         (recreate_heap): Do not compile in when PDUMPing.
12797
12798         * nt.c (geteuid and friends): Use the new varibale
12799         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12800         (init_user_info): Removed the above mentioned hackery.
12801         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12802         stat has been fixed in the C runtime.
12803         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12804
12805         * file-coding.c (struct file_coding_dump): Do not define
12806         ucs_to_mule_table in the struct if not MULE.
12807         (struct struct lrecord_description fcd_description_1): Do not dump
12808         the above.
12809
12810         * emacs.c (main_1): Call vars_of_nt().
12811         (right before Fdump_emacs_data): Don't need lastfile if using both
12812         portabe dumper and system malloc.
12813
12814         * alloc.c (Fmemory_limit): Conditionalized out.
12815         (pdump): Use OPEN_BINARY for the portable dump file.
12816         (pdump_load): Ditto.
12817
12818 2000-02-02  Mike Alexander  <mta@arbortext.com>
12819
12820         * nt.c (convert_time): Set tm_isdst before calling mktime and
12821         avoid calling it at all if the compiler supports 64 bit integers.
12822         Also initialize utc_base_ft before using it.
12823
12824 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12825
12826         * frame.c (change_frame_size_1): Take f->internal_border_width
12827         into consideration when calculating the width of the frame.
12828
12829 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12830
12831         * window.c (frame_min_height):
12832         (frame_size_valid_p):
12833         (frame_pixsize_valid_p): Added.
12834         (check_frame_size): Generalized.
12835
12836         * window.h: Prototyped the above.
12837
12838         * lisp.h:
12839         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12840         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12841         Deleted Vwin32_* and Vbinary_process_* unused variables.
12842
12843         * device-msw.c (msprinter_init_device): Do not get printer font
12844         list; Added DEVMODE functions.
12845
12846         * frame-msw.c: Added lots of printer code.
12847
12848         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12849         general.c.
12850
12851         * console-msw.h: Added more msprinter device private slots.
12852
12853 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12854
12855         * event-msw.c (key_needs_default_processing_p): Added.
12856         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12857
12858 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12859
12860         * glyphs.c (image_instance_layout): Mark image instance as clean
12861         after layout.
12862         (glyph_dirty_p): Removed redundant function.
12863         (invalidate_glyph_geometry_maybe): Added.
12864         (update_glyph_cachel_data): Call it.
12865
12866         * glyphs.h: Prototyped it.
12867
12868         * redisplay.c (add_glyph_rune): Call it.
12869         (redisplay_window): Reset glyphs cachels when frame faces have
12870         changed, thus forcing recomputation of built-in border glyphs.
12871
12872 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12873
12874         * Makefile.in.in: Make portable dumper and purify play well together.
12875         Add imperfect, but better than nothing, support for pdump.
12876         Remove xemacs.dmp when temacs is re-generated.
12877         Don't ignore errors when dumping xemacs.
12878
12879         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12880
12881 2000-01-28  Andy Piper  <andy@xemacs.org>
12882
12883         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12884         (setup_normal_frame): ditto.
12885         (setup_frame_without_minibuffer): ditto.
12886         (setup_minibuffer_frame): ditto.
12887         (delete_frame_internal): ditto.
12888         (Fmake_frame_invisible): ditto.
12889         (Ficonify_frame): ditto.
12890
12891         * window.h: change Fset_window_buffer signature.
12892
12893         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12894         (Fset_window_buffer): allow recording of buffer if the window is
12895         the selected window.
12896         (window_loop): Use new Fset_window signature.
12897
12898 2000-01-23  Daniel Pittman  <daniel@danann.net>
12899
12900         * config.h.in: Added template for `HAVE_ATHENA_3D'
12901
12902 2000-01-29  Andy Piper  <andy@xemacs.org>
12903
12904         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12905
12906         * gutter.c (output_gutter): Don't output if the window isn't live.
12907
12908 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12909
12910         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12911         of 01/12/00: Moved SetFocus back here where it belongs.
12912
12913 2000-01-23  Andy Piper  <andy@xemacs.org>
12914
12915         * s/cygwin32.h: declare printer things.
12916
12917 2000-01-26  Andy Piper  <andy@xemacs.org>
12918
12919         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12920         Alexander.
12921
12922 2000-01-24  Andy Piper  <andy@xemacs.org>
12923
12924         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12925         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12926
12927         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12928
12929         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12930
12931         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12932
12933         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12934         (mswindows_output_display_block): Avoid local shadows.
12935
12936         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12937         (mswindows_enqueue_mouse_button_event): ditto.
12938         (mswindows_handle_gui_wm_command): remove declaration.
12939
12940         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12941         warnings.
12942
12943         * console-msw.h: Avoid shadows.
12944         (mswindows_get_toolbar_button_text):
12945         (emacs_mswindows_create_stream_pair):
12946         (emacs_mswindows_delete_stream_pair):
12947         (mswindows_handle_toolbar_wm_command): declare.
12948
12949         * device-msw.c (build_syscolor_string): Avoid shadows.
12950
12951 2000-01-23  Andy Piper  <andy@xemacs.org>
12952
12953         * glyphs-widget.c (widget_instantiate): reverse the items for
12954         layouts so that children are in the expected order.
12955
12956 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12957
12958         * ralloc.c: safe_bcopy ==> memmove
12959         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12960         * s/msdos.h: Remove BCOPY macros.
12961         * insdel.c (gap_right): Remove BCOPY conditional code.
12962         * insdel.c (gap_left): Remove BCOPY conditional code.
12963         XEmacs demands a working ANSI C compiler - hence memmove.
12964
12965         * regex.c (regex_compile): Remove accidental use of trigraphs.
12966
12967 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12968
12969         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12970         event timestamp.
12971
12972 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12973
12974         * event-msw.c (mswindows_drain_windows_queue): Added the
12975         parameter.
12976         (mswindows_need_event): Commented the call to
12977         mswindows_drain_windows_queue().
12978         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12979         only.
12980
12981         * console-msw.h: Moved a few function prototypes here from
12982         event-msw.c.
12983
12984         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12985         parameter from unsigned short to unsigned long.
12986         (Fmswindows_shell_execute): Added return value.
12987
12988 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12989
12990         * sysdep.c (init_system_name):
12991           process-unix.c (unix_canonicalized_host_name):
12992         Don't call freeaddrinfo() if getaddrinfo() fails.
12993
12994         * process-unix.c (unix_open_unix_network_stream):
12995         Moved the code to get a port # into address loop.
12996
12997 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12998
12999         * buffer.c (reinit_vars_of_buffer):
13000         The right place to initialize conversion_in_dynarr and
13001         conversion_out_dynarr.
13002
13003         * alloc.c (pdump): Use the real open() till sys_open() is functional.
13004
13005         * process-unix.c (unix_canonicalize_host_name): Muleize.
13006         (unix_open_network_stream): Muleize.
13007
13008         * buffer.h: Fix up prototypes for ralloc.c functions.
13009
13010 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
13011         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
13012         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
13013                 instead of gethostbyname()
13014         * process-unix.c: In unix_canonicalize_host_name() and
13015                 unix_open_network_stream(), add code to use getaddrinfo()
13016                 instead of gethostbyname().
13017
13018 2000-01-27  Daniel Pittman <daniel@danann.net>
13019
13020         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
13021         libs when built with flat Athena.
13022
13023 2000-01-27  Martin Buchholz  <martin@xemacs.org>
13024
13025         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
13026         Use coding standards for function prototypes.
13027
13028 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13029
13030         * dialog-msw.c (push_lisp_string_as_unicode):
13031         * doc.c (unparesseuxify_doc_string):
13032         * dired.c (Fuser_name_completion_1):
13033         * dired.c (Fuser_name_all_completions):
13034         * dired.c (free_user_cache):
13035         * dired.c (user_name_completion):
13036         * console-x.c (get_display_arg_connection):
13037         * minibuf.c (clear_echo_area_internal):
13038         * minibuf.c (echo_area_append):
13039         * eldap.c (Fldap_open):
13040         * eldap.c (Fldap_search_internal):
13041         * frame-x.c (x_set_frame_text_value):
13042         * frame-x.c (x_set_frame_properties):
13043         * frame-x.c (x_create_widgets):
13044         * redisplay-tty.c (term_get_fkeys_1):
13045         * objects-x.c (x_parse_nearest_color):
13046         * objects-x.c (x_valid_color_name_p):
13047         * objects-x.c (x_initialize_font_instance):
13048         * objects-x.c (x_list_fonts):
13049         * objects-x.c (x_find_charset_font):
13050         * tooltalk.c (Fadd_tooltalk_message_arg):
13051         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
13052         * tooltalk.c (Fadd_tooltalk_pattern_arg):
13053         * process-unix.c (unix_create_process):
13054         * ntproc.c (sys_spawnve):
13055         * sound.c (Fplay_sound_file):
13056         * sound.c (Fplay_sound):
13057         * buffer.c (init_initial_directory):
13058         * buffer.c (init_buffer):
13059         * editfns.c (init_editfns):
13060         * editfns.c (Ftemp_directory):
13061         * editfns.c (Fuser_full_name):
13062         * editfns.c (uncache_home_directory):
13063         * editfns.c (get_home_directory):
13064         * editfns.c (Fuser_home_directory):
13065         * editfns.c (Fformat_time_string):
13066         * editfns.c (Fcurrent_time_string):
13067         * gui-x.c (button_item_to_widget_value):
13068         * database.c (Fopen_database):
13069         * event-Xt.c (x_to_emacs_keysym):
13070         * event-Xt.c (x_event_to_emacs_event):
13071         * event-Xt.c (describe_event_window):
13072         * event-msw.c (mswindows_wnd_proc):
13073         * glyphs-eimage.c (jpeg_instantiate):
13074         * glyphs-eimage.c (gif_instantiate):
13075         * glyphs-eimage.c (png_instantiate):
13076         * glyphs-eimage.c (tiff_instantiate):
13077         * glyphs-x.c (xbm_instantiate_1):
13078         * glyphs-x.c (x_xbm_instantiate):
13079         * glyphs-x.c (x_xface_instantiate):
13080         * glyphs-x.c (autodetect_instantiate):
13081         * glyphs-x.c (cursor_font_instantiate):
13082         * glyphs-x.c (x_widget_instantiate):
13083         * glyphs-x.c (x_widget_set_property):
13084         * glyphs-x.c (x_widget_property):
13085         * glyphs-x.c (BUILD_GLYPH_INST):
13086         * print.c (write_string_to_stdio_stream):
13087         * print.c (output_string):
13088         * print.c (Falternate_debugging_output):
13089         * print.c (Fexternal_debugging_output):
13090         * glyphs-msw.c (extract_xpm_color_names):
13091         * glyphs-msw.c (mswindows_xpm_instantiate):
13092         * glyphs-msw.c (bmp_instantiate):
13093         * glyphs-msw.c (resource_name_to_resource):
13094         * glyphs-msw.c (mswindows_resource_instantiate):
13095         * glyphs-msw.c (xbm_instantiate_1):
13096         * glyphs-msw.c (mswindows_xbm_instantiate):
13097         * glyphs-msw.c (mswindows_xface_instantiate):
13098         * glyphs-msw.c (mswindows_widget_instantiate):
13099         * glyphs-msw.c (add_tree_item):
13100         * glyphs-msw.c (add_tab_item):
13101         * glyphs-msw.c (mswindows_combo_box_instantiate):
13102         * glyphs-msw.c (mswindows_widget_property):
13103         * glyphs-msw.c (mswindows_combo_box_property):
13104         * glyphs-msw.c (mswindows_widget_set_property):
13105         * console.c (stuff_buffered_input):
13106         * objects-msw.c (mswindows_initialize_color_instance):
13107         * objects-msw.c (mswindows_valid_color_name_p):
13108         * objects-msw.c (mswindows_list_fonts):
13109         * objects-msw.c (mswindows_font_instance_truename):
13110         * bytecode.c (optimize_compiled_function):
13111         * select-x.c (symbol_to_x_atom):
13112         * select-x.c (x_atom_to_symbol):
13113         * select-x.c (hack_motif_clipboard_selection):
13114         * select-x.c (selection_data_to_lisp_data):
13115         * select-x.c (lisp_data_to_selection_data):
13116         * select-x.c (Fx_get_cutbuffer_internal):
13117         * select-x.c (Fx_store_cutbuffer_internal):
13118         * buffer.h (TO_EXTERNAL_FORMAT): New function.
13119         * buffer.h (TO_INTERNAL_FORMAT): New function.
13120         * emacs.c (make_arg_list_1):
13121         * emacs.c (make_argc_argv):
13122         * emacs.c (main_1):
13123         * emacs.c (Fdump_emacs):
13124         * emacs.c (split_string_by_emchar_1):
13125         * file-coding.h:
13126         * lisp.h:
13127         * lstream.h:
13128         * symsinit.h:
13129         * device-x.c (x_init_device):
13130         * device-x.c (Fx_valid_keysym_name_p):
13131         * device-x.c (Fx_get_font_path):
13132         * device-x.c (Fx_set_font_path):
13133         * glyphs.c (bitmap_to_lisp_data):
13134         * glyphs.c (pixmap_to_lisp_data):
13135         * alloc.c (make_ext_string): Use coding system arguments.  Update
13136         all callers.
13137         * alloc.c (build_string):
13138         * callproc.c (child_setup):
13139         * callproc.c (init_callproc):
13140         * fileio.c (lisp_strerror):
13141         * fileio.c (directory_file_name):
13142         * fileio.c (Fexpand_file_name):
13143         * fileio.c (Ffile_truename):
13144         * fileio.c (Fsysnetunam):
13145         * fileio.c (Fdo_auto_save):
13146         * sysdep.c (sys_readdir):
13147         * tests.c: New file.  Allow adding C tests.
13148         Replace GET_* macros with a more comprehensible and flexible
13149         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
13150         Modify all calls.
13151         Any coding system can be used to do format conversion.
13152         Eliminate enum external_data_format.
13153         Eliminate convert_to_external_format.
13154         Eliminate convert_to_internal_format.
13155         Make sure file-name, keyboard, terminal, and ctext are always
13156         defined as coding systems or aliases.  Make
13157         file-name-coding-system, terminal-coding-system, and
13158         keyboard-coding-system magical variables that are equivalent to
13159         defining the corresponding coding system aliases.
13160
13161         * file-coding.c (Fcoding_system_canonical_name_p): New function.
13162         * file-coding.c (Fcoding_system_alias_p): New function.
13163         * file-coding.c (Fcoding_system_aliasee): New function.
13164         * file-coding.c (append_suffix_to_symbol): New function.
13165         * file-coding.c (dangling_coding_system_alias_p): New function.
13166         * file-coding.c (Ffind_coding_system):
13167         * file-coding.c (Fcopy_coding_system):
13168         * file-coding.c (encode_coding_no_conversion):
13169         * file-coding.c (syms_of_file_coding):
13170         * file-coding.c (vars_of_file_coding):
13171         Rewrite coding system alias code.
13172         Allow nested aliases, like symbolic links.
13173         Allow redefinition of coding system aliases.
13174         Prevent existence of dangling coding system aliases.
13175
13176         * dired.c (Fuser_name_completion_1):
13177         * dired.c (Fuser_name_all_completions):
13178         A crash would happen if user did QUIT in the middle of building
13179         user_name_cache.  Remove redundant code in mainline and unwind_protect.
13180
13181         * lisp.h:
13182         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
13183
13184         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
13185         an unsigned char *.  Update all callers.
13186
13187 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13188
13189         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
13190
13191 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13192
13193         * elhash.c (hentry_description): Use more portable definition.
13194         (resize_hash_table): Initialize new hentries using
13195         xnew_array_and_zero, thereby simplifying the code.
13196
13197         * mule-charset.c (make_charset): Make sure entire object is
13198         initialized, to avoid Purify warnings.
13199
13200         * alloc.c (resize_string): Fix unlikely crash with big strings.
13201
13202 2000-01-24  Martin Buchholz  <martin@xemacs.org>
13203
13204         * realpath.c (xrealpath):
13205         Don't call getwd().
13206
13207 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13208
13209         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
13210
13211 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
13212
13213         * unexelfsgi.c (unexec): Change the way we decide which segment
13214         should be extended.
13215
13216         Assumption that .bss section should be outside the PT_LOADable
13217         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
13218         it's present) is inside the 'data' segment. This would fail the
13219         test which was used to find a segment to grow and cover new
13220         heap. Instead of this assumption, I created another one - on IRIX
13221         the segment to grow should start below .bss and it's address
13222         should extent above the end of .bss. Once this segment is
13223         identified, it's grown to accommodate the new heap and new
13224         zero-length .bss section is added at the end of .data2.
13225
13226 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13227
13228         * eval.c (Feval): Wrong number of arguments should use original
13229         function, not the indirect_function version of it.
13230
13231 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13232
13233         * glyphs-x.c (x_button_instantiate): Don't add image if
13234         it is not a pixmap.
13235         (x_locate_pixmap_file): Call Fexpand_file_name when file name
13236         is relative.
13237
13238 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
13239
13240         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
13241         declaration.
13242         (DEFVAR_INT_MAGIC): Ditto.
13243         (DEFVAR_BOOL_MAGIC): Ditto.
13244         * glyphs.h: Reindent backslash.
13245
13246 2000-01-24  Martin Buchholz  <martin@xemacs.org>
13247
13248         * glyphs-widget.c (layout_query_geometry):
13249         (layout_layout): Use correct types for gheight, gwidth.
13250
13251 2000-01-24  Martin Buchholz  <martin@xemacs.org>
13252
13253         * EmacsManager.c (QueryGeometry): Purified.
13254
13255 2000-01-23  Martin Buchholz  <martin@xemacs.org>
13256
13257         * alloc.c (make_float): Make sure entire object is initialized, to
13258         avoid Purify warnings.
13259         (pdump_register_sub): Remove useless assignment.
13260         (pdump): Use xmalloc, not malloc.
13261         (pdump_load): Use xmalloc, not malloc.
13262
13263 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13264
13265         * callproc.c:
13266         * dired-msw.c:
13267         * fileio.c:
13268         * process-nt.c:
13269         * redisplay-msw.c:
13270         * sysdep.c: Removed redundant #include <windows.h>
13271
13272 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13273
13274         * frame.c (delete_frame_internal): Do not delete device when its
13275         implementation so declares.
13276         (delete_frame_internal): Set device selected frame to nil when
13277         last frame goes away.
13278
13279         * device-msw.c (msprinter_device_system_metrics): Implemented.
13280         (mswindows_device_system_metrics): Added 'device-dpi property.
13281
13282         * device.c: (Fdevice_printer_p): Added.
13283         Added 'offset-workspace device metric.
13284
13285         * console.h (device_metrics): Declared DM_offset_workspace.
13286
13287 2000-01-23  Martin Buchholz  <martin@xemacs.org>
13288
13289         * fileio.c (Ffile_truename): Remove pointless and confusing
13290         initialization of elen.
13291
13292         * glyphs-widget.c: Compiler warning fixes.
13293
13294 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
13295
13296         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
13297         instead of a Lisp_Object as argument to make it consistent with
13298         the other LIVE_P macros.
13299         (CHECK_LIVE_PROCESS): New macro.
13300
13301         * process.c: Declare Qprocess_live_p.
13302         (Fprocess_live_p): New function.
13303         (create_process): Use PROCESS_LIVE_P.
13304         (read_process_output): Ditto.
13305         (set_process_filter): Ditto.
13306         (Fdelete_process): Ditto.
13307         (kill_buffer_processes): Ditto
13308         (process_send_signal): Use CHECK_LIVE_PROCESS.
13309         (Fprocess_input_coding_system): Check whether process is still
13310         alive (fix PR#1061).
13311         (Fprocess_output_coding_system): Ditto.
13312         (Fprocess_coding_system): Ditto.
13313         (Fset_process_input_coding_system): Ditto.
13314         (Fset_process_output_coding_system): Ditto.
13315
13316 2000-01-23  Andy Piper  <andy@xemacs.org>
13317
13318         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
13319         layout and widget.
13320
13321         * glyphs.c (mark_image_instance): take into account changed
13322         image_instance format.
13323         (image_instance_equal): ditto.
13324         (image_instance_hash): ditto.
13325
13326         * glyphs-widget.c (widget_instantiate): Incorporate layout
13327         instantiation here. Delay layout of the layout until later.
13328         (layout_instantiate): deleted.
13329         (layout_query_geometry): new function. get the geometry of a
13330         layout.
13331         (layout_layout): layout a layout dynamically.
13332         (image_instantiator_widget): New function - splitting up
13333         image_instantiator_format_create_glyphs_widget for netwinder
13334         compilation.
13335         (image_instantiator_buttons):
13336         (image_instantiator_edit_fields):
13337         (image_instantiator_combo_box):
13338         (image_instantiator_scrollbar):
13339         (image_instantiator_progress_guage):
13340         (image_instantiator_tree_view):
13341         (image_instantiator_tab_control):
13342         (image_instantiator_labels):
13343         (image_instantiator_layout): ditto.
13344         (image_instantiator_format_create_glyphs_widget): Call preceding
13345         functions.
13346
13347 2000-01-22  Martin Buchholz  <martin@xemacs.org>
13348
13349         * process.c (Fset_process_coding_system):
13350         * device-x.c (Fx_keysym_hash_table):
13351         Docstring fixes.
13352
13353         * lstream.c (Lstream_write): Return documented value, not 0.
13354
13355         * fileio.c (directory_file_name):
13356         (Fsubstitute_in_file_name):
13357         (Fsubstitute_insert_file_contents_internal):
13358         (Fwrite_region_internal):
13359         * emacs.c:
13360         * sysdep.c:
13361         * getloadavg.c:
13362         * systty.h:
13363         Remove vestigial APOLLO-conditional code.
13364
13365 2000-01-21  Martin Buchholz  <martin@xemacs.org>
13366
13367         * getpagesize.h: Add guard macros.
13368         * libsst.h: Add guard macros.
13369         * libst.h: Add guard macros.
13370         * line-number.h: Add guard macros.
13371         * ndir.h: Add guard macros.
13372         * sysfloat.h: Add guard macros.
13373         * sysfile.h: Add guard macros.
13374         * sysproc.h: Add guard macros.
13375         * syswait.h: Add guard macros.
13376         * xintrinsic.h: Add guard macros.
13377         * xintrinsicp.h: Add guard macros.
13378         * xmmanager.h: Add guard macros.
13379         * xmmanagerp.h: Add guard macros.
13380         * xmprimitive.h: Add guard macros.
13381         * xmu.h: Add guard macros.
13382         * gpmevent.h: Add copyright statement. Add guard macros.
13383         * miscplay.h: Add guard macros.
13384         * *.h: Use consistent C-standards-approved guard macro names.
13385
13386         * opaque.c (make_opaque): Switch parameter order.
13387         * opaque.h (make_opaque): Switch parameter order.
13388         Update all callers.
13389         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
13390
13391         * config.h.in (type_checking_assert): Added.
13392         (bufpos_checking_assert): Added.
13393
13394 2000-01-21  Martin Buchholz  <martin@xemacs.org>
13395
13396         * alloc.c: Harmless pdump changes.
13397         - Use countof().
13398         - spell alignment correctly.
13399         * sysdep.c: Use countof()
13400
13401 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13402
13403         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
13404         initially_selected_for_input() console method, default to 0.
13405         (semi_canonicalize_console_connection): Try to delegate to
13406         canonicalize_console_connection if no such console method.
13407         (canonicalize_console_connection): Vice versa.
13408         (print_console): Do not print nil connection.
13409
13410         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
13411         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
13412         (XDEVIMPF_FRAMELESS_OK): Added.
13413         (CONSOLE_INHERITS_METHOD): Added.
13414
13415         * console-msw.c (mswindows_canonicalize_console_connection):
13416         Added.
13417         (mswindows_canonicalize_device_connection): Added.
13418
13419         * console-msw.h (struct msprinter_device): Added this struct and
13420         accessor macros.
13421         (mswindows_device): Made fontlist a lisp object.
13422
13423         * device.c (semi_canonicalize_device_connection):  Try to delegate
13424         to canonicalize_device_connection if no such console method.
13425         (canonicalize_device_connection): Vice versa.
13426         (print_device): Do not print nil connection.
13427
13428         * device-msw.c (mswindows_init_device): Call InitCommonControls
13429         when have widgets.
13430         (mswindows_delete_device): Removed fontlist deallocation.
13431         (mswindows_mark_device): Added.
13432
13433         * events.c (event_equal): Added abort() at unreached code.
13434         (event_hash): Ditto.
13435
13436         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
13437         fallback tags of Windows devices.
13438
13439         * general.c (syms_of_general): Initialized Qmsprinter.
13440
13441         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
13442         of fallback tags of Windows devices.
13443
13444         * lisp.h: Declared Qmsprinter.
13445
13446         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
13447         of strings.
13448         (mswindows_list_fonts): Ditto.
13449         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
13450         that it can be used by both mswindows and msprinter devices.
13451         (initialize_font_instance): Added.
13452         (mswindows_initialize_font_instance): Use it.
13453         (msprinter_initialize_font_instance): Added.
13454
13455         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
13456         and implementation flags check.
13457         (redisplay_without_hooks): Changed the call to the above.
13458         (Fredraw_device): Ditto.
13459         (Fredisplay_device): Ditto.
13460
13461         * redisplay-msw.c (get_frame_dc): Implemented.
13462         (get_frame_compdc): Implemented.
13463         (many functions): Use the two functions above to get device
13464         contexts, ether for a window or a printer.
13465
13466 2000-01-21  Olivier Galibert  <galibert@pobox.com>
13467
13468         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
13469         initialization here.
13470         (init_symbols_once_early): Call it.
13471         * emacs.c (main_1): Call it.
13472         * symsinit.h: Declare it.
13473
13474 2000-01-19  Olivier Galibert  <galibert@pobox.com>
13475
13476         * alloc.c: Use a lrecord_header * in the backtrace instead of a
13477         Lisp_Object.
13478         (pdump_backtrace): Ditto.
13479         (pdump_register_object): Ditto.  Cleanup use of the pointers.
13480         (pdump_get_entry): Abort if trying to register a null pointer.
13481         (pdump_dump_data): Cleanup types when relocating.
13482         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
13483         (pdump_dump_rtables): Remove bad casts.
13484         (pdump_load): Cleanup relocation w.r.t union type.  Use a
13485         Lisp_Object instead of a EMACS_INT for the hashtable
13486         reorganization.
13487
13488 2000-01-20  Martin Buchholz  <martin@xemacs.org>
13489
13490         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
13491
13492         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
13493
13494         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
13495
13496         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
13497
13498 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13499
13500         * faces.h (FACE_STRIKETHRU_P): Added.
13501
13502         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
13503         of font variants.
13504
13505         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
13506         (mswindows_set_dc_font): New function, aware of font variants,
13507         separated from mswindows_update_dc.
13508
13509         * objects-msw.h (struct mswindows_font_instance_data): Added
13510         definition.
13511
13512         * objects-msw.c (mswindows_finalize_font_instance): Delete all
13513         cached fonts and the data structure.
13514         (mswindows_initialize_font_instance): Added creation of font data
13515         structure.
13516         (mswindows_print_font_instance): Print at least something.
13517         (mswindows_create_font_variant): Implemented.
13518         (mswindows_get_hfont): Implemented.
13519
13520 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
13521
13522         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
13523         prototyping problem with msvc.
13524
13525         * emacs.c (main_1): added syms_of_gui_mswindows() call
13526
13527         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
13528         syms_of_gui_mswindows() function
13529
13530         * symsinit.h: added the prototype for syms_of_gui_mswindows()
13531
13532 2000-01-18  Martin Buchholz <martin@xemacs.org>
13533
13534         * XEmacs 21.2.27 is released.
13535
13536 2000-01-18  Martin Buchholz  <martin@xemacs.org>
13537
13538         * glyphs-eimage.c (struct tiff_error_struct):
13539         (tiff_error_func):
13540         (tiff_warning_func):
13541         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
13542
13543         * unexmips.c:
13544         * unexhp9k3.c:
13545         * unexfreebsd.c:
13546         * unexec.c: Remove vestigial Lucid C code.
13547         * unexalpha.c:
13548         * unexaix.c:
13549         * termcap.c:
13550         * libsst.c: Ansify.
13551         Remove declarations of errno and strerror().
13552
13553         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
13554
13555         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
13556
13557 2000-01-16  Martin Buchholz  <martin@xemacs.org>
13558
13559         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
13560         Optimize.
13561
13562 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13563
13564         * md5.c:
13565         * file-coding.c:
13566         * file-coding.h:
13567         Change enum eol_type to eol_type_t.
13568
13569 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13570
13571         * gui.c (get_gui_callback): Check cons before accessing car.
13572
13573 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13574
13575         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
13576         (XSETSPECIFIER_TYPE): Ditto.
13577
13578 2000-01-17  Didier Verna  <didier@xemacs.org>
13579
13580         * redisplay.c (generate_fstring_runes): compute string size in
13581         characters, not bytes.
13582
13583 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13584
13585         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13586
13587 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
13588
13589         * print.c (print_error_message): Call print_prepare().
13590
13591 2000-01-14  Martin Buchholz  <martin@xemacs.org>
13592
13593         * .dbxrc: Renamed from dbxrc.
13594
13595         * events.c (event_to_character):
13596         Use `assert (foo)' instead of `if (!foo) abort()'
13597
13598         * .gdbinit (xtype): Add documentation.
13599         * .gdbinit (check-temacs): New function.
13600         * .gdbinit (check-xemacs): New function.
13601         * dbxrc (check-xemacs): New function.
13602         * dbxrc (check-xemacs): New function.
13603
13604 2000-01-14  Andy Piper  <andy@xemacs.org>
13605
13606         * glyphs-widget.c (widget_query_geometry): Make sure that we
13607         calculate default dimensions correctly.
13608
13609 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13610
13611         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13612
13613         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13614         pdump_wire'd variable.
13615
13616         * emacs.c: (main_1): Conditionalized calls to
13617         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13618
13619 2000-01-13  Martin Buchholz  <martin@xemacs.org>
13620
13621         * window.c (Fset_window_configuration):
13622         * sysdep.c (_start):
13623         * input-method-motif.c (res):
13624         * event-Xt.c (Xt_process_to_emacs_event):
13625         Simple compiler warning fixes.
13626
13627         * bytecode.c (funcall_compiled_function): Use the original
13628         function symbol on the backtrace list in preference to the
13629         compiled_function object in error messages.
13630
13631 2000-01-13  Andy Piper  <andy@xemacs.org>
13632
13633         * glyphs-x.c (update_widget_face): Make sure we update the widget
13634         background as well as foreground.
13635
13636 2000-01-13  Andy Piper  <andy@xemacs.org>
13637
13638         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13639         fields to subwindow.
13640         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13641         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13642         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13643         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13644
13645         * glyphs-widget.c (check_valid_tab_orientation): new function.
13646         (initialize_widget_image_instance): zero orientation and
13647         justification.
13648         (widget_instantiate): pick up orientation.
13649         (tab_control_query_geometry): return appropriate values for
13650         vertical tabs.
13651
13652         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13653         appropriate creation flags for left, right and bottom tabs.
13654
13655         * s/cygwin32.h: add tab definitions.
13656
13657 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13658
13659         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13660         frame upon hiding a subwindow.
13661         (mswindows_button_instantiate): Changed the push button style to
13662         BS_PUSHBUTTON.
13663         (mswindows_button_instantiate): Removed button BS_NOTIFY
13664         style.
13665         (mswindows_button_instantiate): Removed redundant check for
13666         a disabled gui item.
13667         (mswindows_button_instantiate): Made use of WS_TABSTOP
13668         consistent: "operable" controls (edit, button, tree, scroll) have
13669         this style, "display-only" ones (static, progress gauge) do
13670         not. This style is currently ignored by XEmacs though. Also,
13671         removed the WS_EX_CONTROLPARENT style - it is not for children,
13672         it is for their parents!
13673         (mswindows_edit_field_instantiate): Ditto.
13674         (mswindows_progress_gauge_instantiate): Ditto.
13675         (mswindows_tree_view_instantiate): Ditto.
13676         (mswindows_tab_control_instantiate): Ditto.
13677         (mswindows_scrollbar_instantiate): Ditto.
13678         (mswindows_combo_box_instantiate): Ditto.
13679         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13680         style to the "clip" window.
13681         (mswindows_button_instantiate): Removed compilation warning by
13682         equally typing terms of the ?: operator.
13683
13684 2000-01-12  Didier Verna  <didier@xemacs.org>
13685
13686         * redisplay.c (generate_fstring_runes): new parameter holding the
13687         last modeline-format extent.
13688         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13689         extent, fill the glyph block with it.
13690         (generate_fstring_runes): handle these parameters.
13691         (generate_formatted_string_db): ditto.
13692
13693         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13694         glyphs'extents in the modeline.
13695
13696 1999-01-11  Mike Woolley  <mike@bulsara.com>
13697
13698         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13699         256Mb, as a workaround for the non-starting problem many people
13700         have experienced.
13701
13702 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13703
13704         * console-tty.c (Fset_console_tty_output_coding_system):
13705         Force redrawing tty frame.
13706
13707 2000-01-10  Didier Verna  <didier@xemacs.org>
13708
13709         * redisplay.c (generate_fstring_runes): fix size computation bug.
13710
13711 2000-01-09  William M. Perry <wmperry@aventail.com>
13712
13713         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13714
13715 2000-01-09  Andy Piper  <andy@xemacs.org>
13716
13717         * glyphs-msw.c: index -> i to avoid shadows.
13718         (xbm_create_bitmap_from_data): make static.
13719         (check_valid_string_or_int): deleted.
13720         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13721
13722         * glyphs-x.c (x_update_subwindow): remove unused args.
13723
13724         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13725         back pointer - this is done in allocate_image_instance.
13726         (query_string_font): return Qnil to make the compiler happy.
13727         (unmap_subwindow): set to ~0 to make the compiler happy.
13728         (glyph_query_geometry): comment out until used.
13729         (glyph_layout): ditto.
13730
13731 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13732
13733         * insdel.c (signal_after_change): Remove extraneous unbind_to().