Sync with r21-4-1-utf-2000-0_19-new-case.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
4         Q_lowercase, Q_uppercase in UTF-2000.
5
6         * chartab.c (get_char_table): Add special code for the standard
7         case table to use character attribute `->downcase' and
8         `->uppercase' for case operations in UTF-2000.
9
10         * casetab.c (Qflippedcase): New variable in UTF-2000.
11         (Q_lowercase): Likewise.
12         (Q_uppercase): Likewise.
13         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
14         and `->uppercase' in UTF-2000.
15         (complex_vars_of_casetab): Assign attribute name `downcase' to
16         downcase and CANON table of Vstandard_case_table in UTF-2000;
17         assign attribute name `flippedcase' to upcase and EQV table of
18         Vstandard_case_table in UTF-2000.
19
20 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * text-coding.c (decode_add_er_char): Support isolated-chars.
23         (char_encode_as_entity_reference): Likewise.
24
25 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
26
27         * emacs.c (Vutf_2000_lisp_directory): New variable.
28         (Vconfigure_utf_2000_lisp_directory): Likewise.
29         (complex_vars_of_emacs): Add new variable
30         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
31
32 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * char-ucs.h (DECODE_CHAR): Delete special code for
35         `chinese-big5-1' and `chinese-big5-2'.
36
37         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
38         (Qbig5_2): Likewise.
39         (decode_defined_char): Support CONVERSION_BIG5_1 and
40         CONVERSION_BIG5_2.
41         (decode_builtin_char): Likewise.
42         (charset_code_point): Likewise.
43         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
44         'conversion in UTF-2000.
45         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
46         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
47         `chinese-big5-2' as children of `chinese-big5'.
48
49         * char-ucs.h (CONVERSION_BIG5_1): New macro.
50         (CONVERSION_BIG5_2): New macro.
51
52 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
53
54         * text-coding.c (char_encode_big5): Support entity-reference.
55
56 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
57
58         * text-coding.c (char_encode_as_entity_reference): New function.
59         (char_encode_utf8): Use `char_encode_as_entity_reference'.
60
61 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
62
63         * text-coding.c (decode_coding_big5): Support entity-reference
64         decoding feature.
65
66 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * text-coding.c (allocate_coding_system): Initialize initial
69         charsets for CODESYS_UTF8.
70         (Fmake_coding_system): Accept charset-g0, charset-g1 and
71         charset-g2 for CODESYS_UTF8.
72         (decode_coding_utf8): Use charset-g0.
73         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
74         to force variants to map to UCS.
75
76 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * text-coding.c (Qutf_8_mcs): New variable.
79         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
80         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
81         instead of `utf-8' in UTF-2000.
82
83 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
84
85         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
86         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
87         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
88         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
89         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
90         CONVERSION_96x96x96x96 are introduced.
91         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
92         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
93         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
94
95         * char-ucs.h (CONVERSION_94): New macro.
96         (CONVERSION_96): New macro.
97         (CONVERSION_94x94): New macro.
98         (CONVERSION_96x96): New macro.
99         (CONVERSION_94x94x94): New macro.
100         (CONVERSION_96x96x96): New macro.
101         (CONVERSION_94x94x94x60): New macro.
102         (CONVERSION_94x94x94x94): New macro.
103         (CONVERSION_96x96x96x96): New macro.
104
105 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
106
107         * chartab.c (Vcharacter_variant_table): Deleted.
108         (Fchar_variants): Use character-attribute `->ucs-variants' instead
109         of `Vcharacter_variant_table'.
110         (Fput_char_attribute): Likewise.
111         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
112         (complex_vars_of_chartab): Likewise.
113
114 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
115
116         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
117
118         * fns.c (Qideographic_structure): New variable.
119         (Qkeyword_char): New variable.
120         (ids_format_unit): New function.
121         (Fideographic_structure_to_ids): New function.
122         (syms_of_fns): Add new symbols `ideographic-structure' and
123         `:char'; add new builtin function `ideographic-structure-to-ids'.
124
125         * data.c (Fchar_ref_p): New function.
126         (syms_of_data): Add new builtin function `char-ref-p'.
127
128         * chartab.h: Add an EXFUN for `Ffind_char'.
129
130 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * text-coding.c (Vcharacter_composition_table): Deleted.
133         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
134         in every UTF-2000.
135
136         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
137         UTF-2000.
138         (Vcharacter_composition_table): Deleted.
139         (Fget_composite_char): Use the implementation for external-DB
140         support in every UTF-2000.
141         (Fput_char_attribute): Likewise.
142         (char_attribute_system_db_file): Don't define if external-DB
143         feature is not available.
144         (Fsave_char_attribute_table): Likewise.
145         (Fmount_char_attribute_table): Likewise.
146         (Fclose_char_attribute_table): Likewise.
147         (Freset_char_attribute_table): Likewise.
148         (Fload_char_attribute_table): Likewise.
149         (syms_of_chartab): Don't define `save-char-attribute-table',
150         `mount-char-attribute-table', `reset-char-attribute-table',
151         `close-char-attribute-table' and `load-char-attribute-table' if
152         external-DB feature is not available.
153         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
154
155 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
156
157         * text-coding.c (Qcomposition): Add extern if external-DB feature
158         is supported.
159         (Vcharacter_composition_table): Don't add extern if external-DB
160         feature is supported.
161         (COMPOSE_ADD_CHAR): Modify for new data-representation of
162         character composition rule if external-DB feature is supported.
163
164         * chartab.c (Vcharacter_composition_table): Don't define if
165         external-DB feature is supported.
166         (Qcomposition): New variable.
167         (Fget_composite_char): New implementation for external-DB support.
168         (Fput_char_attribute): Use `composition' property of each
169         character instead of `Vcharacter_composition_table' to store
170         character-composition rules if external-DB feature is supported.
171         (syms_of_chartab): Add new symbol `composition'.
172         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
173         external-DB feature is supported.
174
175 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
176
177         * chartab.c (Vchar_db_stingy_mode): New variable.
178         (load_char_attribute_maybe): Close database if
179         Vchar_db_stingy_mode is not NIL.
180         (Fload_char_attribute_table_map_function): Use
181         `get_char_id_table_0' instead of `get_char_id_table'.
182         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
183
184         * chartab.h (get_char_id_table_0): New inline function.
185         (get_char_id_table): Use `get_char_id_table_0'.
186
187 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
188
189         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
190         and `COMPOSE_ADD_CHAR'.
191         (decode_coding_iso2022): Use `decode_flush_er_chars'.
192
193 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
194
195         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
196         instead of `DECODE_ADD_UCS_CHAR'.
197         (COMPOSE_ADD_CHAR): Likewise.
198
199 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
200
201         * text-coding.c (decode_flush_er_chars): New inline function.
202         (decode_add_er_char): New function.
203         (decode_coding_utf8): Use `decode_flush_er_chars' and
204         `decode_add_er_char'.
205
206 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
207
208         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
209         done before `decode_output_utf8_partial_char'.
210
211         * mule-charset.c (complex_vars_of_mule_charset): Specify
212         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
213         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
214
215 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * mule-charset.c (decode_defined_char): New function; search
218         mother.
219         (decode_builtin_char): Don't search mother if
220         XCHARSET_MAX_CODE(charset) == 0.
221         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
222         == 0 even if code >= XCHARSET_MAX_CODE(charset).
223         (Fdecode_char): Use `decode_defined_char' instead of
224         `DECODE_DEFINED_CHAR'.
225         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
226         mother of `Vcharset_ucs_jis'.
227
228         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
229         instead of `DECODE_DEFINED_CHAR'.
230
231         * char-ucs.h (decode_defined_char): Renamed from
232         `DECODE_DEFINED_CHAR'; changed to normal function.
233         (DECODE_CHAR): Use `decode_defined_char' instead of
234         `DECODE_DEFINED_CHAR'.
235
236         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
237
238 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
241
242         * text-coding.c (Vcoded_charset_entity_reference_alist): New
243         variable.
244         (Quse_entity_reference): New variable.
245         (Qd): New variable.
246         (Qx): New variable.
247         (QX): New variable.
248         (coding_system_description): Add description for
249         `ccs_priority_list'.
250         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
251         (allocate_coding_system): Initialize `ccs_priority_list' in
252         UTF-2000.
253         (Fmake_coding_system): Add description about
254         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
255         (codesys).
256         (Fcoding_system_property): Accept `disable-composition' and
257         `use-entity-reference' in UTF-2000.
258         (struct decoding_stream): Add new member `er_counter' and `er_buf'
259         in UTF-2000.
260         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
261         (decode_coding_utf8): Decode entity-reference if
262         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
263         (char_encode_utf8): Encode non-Unicode characters as
264         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
265         (str->codesys).
266         (syms_of_file_coding): Add new symbols `use-entity-reference',
267         `d', `x', `X'.
268         (vars_of_file_coding): Add new variable
269         `coded-charset-entity-reference-alist'.
270         (complex_vars_of_file_coding): Declare `disable-composition' and
271         `use-entity-reference' to be coding-system-properties in UTF-2000.
272
273         * file-coding.h (struct Lisp_Coding_System): Add new member
274         `use_entity_reference' and `ccs_priority_list'.
275         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
276         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
277         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
278
279 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
280
281         * chartab.c (save_uint8_byte_table): Don't clear the table.
282         (save_uint16_byte_table): Likewise.
283         (save_byte_table): Likewise.
284         (Fmount_char_attribute_table): New function.
285         (syms_of_chartab): Add new builtin function
286         `mount-char-attribute-table'.
287
288 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
289
290         * mule-charset.c (Fsave_charset_mapping_table): Open database as
291         "w+" mode.
292         (load_char_decoding_entry_maybe): Open database as read-only mode.
293
294         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
295         open database as "w+" mode.
296         (load_char_attribute_maybe): Open database as read-only mode.
297         (Fload_char_attribute_table): Likewise.
298
299 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
302         (char_table_description): Delete member `db_file'.
303         (Fmake_char_table): Don't refer `ct->db_file'.
304         (Fcopy_char_table): Likewise.
305         (Fsave_char_attribute_table): Likewise.
306         (Fclose_char_attribute_table): Likewise.
307         (Freset_char_attribute_table): Likewise.
308         (load_char_attribute_maybe): Likewise.
309         (Fload_char_attribute_table): Likewise.
310
311         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
312
313 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
316         (Fsave_char_attribute_table): Don't check `ct->db_file' if
317         `ct->db' is living.
318         (load_char_attribute_maybe): Likewise.
319         (Fload_char_attribute_table): Likewise.
320
321 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
322
323         * chartab.c (Fclose_char_attribute_table): Set Qnil on
324         `ct->db_file' unconditionally.
325
326 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
327
328         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
329         UTF-2000.
330         (char_table_description): Add description for `db_file' and `db'
331         in UTF-2000.
332         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
333         UTF-2000.
334         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
335         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
336         (Fclose_char_attribute_table): New function.
337         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
338         (load_char_attribute_maybe): Change interface; use `cit->db_file'
339         and `cit->db'.
340         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
341         (syms_of_chartab): Add new builtin function
342         `Fclose_char_attribute_table'.
343
344 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
345
346         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
347         `db' in UTF-2000.
348         (load_char_attribute_maybe): Change interface.
349         (get_char_id_table): Modify for `load_char_attribute_maybe'.
350
351 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
352
353         * database.h: Add an EXFUN for `Fdatabase_live_p'.
354
355 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
356
357         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
358         instead of `DECODE_CHAR' for mother; don't use special code for
359         chinese-big5 to use code space of chinese-big5-1 and
360         chinese-big5-2.
361         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
362         `MAX_CHAR_BIG5_CDP' for chinese-big5.
363
364         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
365         (MAX_CHAR_BIG5_CDP): Revival.
366
367 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
370         the XLFD registry-encoding name of `chinese-big5'.
371
372 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
373
374         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
375         (Qchinese_big5_cdp): Deleted.
376         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
377         (complex_vars_of_mule_charset): Delete coded-charset
378         `chinese-big5-cdp'.
379
380         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
381         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
382         `CHARSET_ID_OFFSET - n' for private CCS.
383         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
384         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
385         of `MIN_LEADING_BYTE'.
386         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
387         `(CHARSET_ID_OFFSET - 97)'.
388         (MIN_CHAR_BIG5_CDP): Deleted.
389         (MAX_CHAR_BIG5_CDP): Deleted.
390
391 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
394
395 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
398         (vars_of_mule): Add new variable `utf-2000-version' [moved from
399         chartab.c].
400
401         * chartab.c (Vutf_2000_version): Moved to mule.c.
402         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
403
404 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
405
406         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
407         when HAVE_CHISE_CLIENT is not defined.
408
409         * mule.c (vars_of_mule): Provide feature `chise' when
410         HAVE_CHISE_CLIENT is defined.
411
412 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
413
414         * config.h.in (UTF2000): Add comment.
415         (HAVE_CHISE_CLIENT): New macro.
416
417 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
418
419         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
420         CONSP.
421         (Fput_char_attribute): Likewise.
422         (char_attribute_system_db_file): Encode file-name of attribute.
423         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
424         the initial value.
425
426 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
427
428         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
429         (Fsave_charset_mapping_table): Use
430         `char_attribute_system_db_file'.
431         (load_char_decoding_entry_maybe): Likewise.
432
433         * chartab.h (Qsystem_char_id): New external variable.
434         (char_attribute_system_db_file): New prototype.
435
436         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
437         (char_attribute_system_db_file): New function.
438         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
439         (Freset_char_attribute_table): Likewise.
440         (load_char_attribute_maybe): Likewise.
441         (Fload_char_attribute_table): Likewise.
442         (syms_of_chartab): Add new symbol `system-char-id'.
443
444 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
445
446         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
447         `XCHARSET_GRAPHIC(ccs)'.
448
449 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
450
451         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
452
453 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
454
455         * chartab.c (Q_ucs_variants): New variable.
456         (syms_of_chartab): Add new symbol `->ucs-variants'.
457         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
458         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
459         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
460
461         * mule-charset.c (load_char_decoding_entry_maybe): New function.
462
463         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
464         `HAVE_DATABASE' is defined.
465         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
466         `HAVE_DATABASE' is defined.
467
468 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
469
470         * chartab.c (Fsave_char_attribute_table): Don't clear internal
471         attribute-table.
472         (Freset_char_attribute_table): New function.
473         (syms_of_chartab): Add new builtin function
474         `reset-char-attribute-table'.
475
476 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
477
478         * chartab.c (load_char_attribute_maybe): Don't make directories.
479
480 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
481
482         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
483
484         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
485         for decoding-table.
486
487 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
488
489         * mule-charset.c (Fsave_charset_mapping_table): Use
490         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
491
492         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
493         instead of `XCHARSET_CHARS'.
494
495 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
496
497         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
498         (XCHARSET_BYTE_SIZE): Likewise.
499
500         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
501         mule-charset.c].
502         (XCHARSET_BYTE_SIZE): Likewise.
503
504 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
505
506         * chartab.c (Fput_char_attribute): Use exec-directory instead of
507         data-directory to store database.
508         (Fsave_char_attribute_table): Likewise.
509         (load_char_attribute_maybe): Likewise.
510         (Fload_char_attribute_table): Likewise.
511
512 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
513
514         * mule-charset.c (Fsave_charset_mapping_table): New function.
515         (syms_of_mule_charset): Add new builtin function
516         `save-charset-mapping-table'.
517
518 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * char-ucs.h (decoding_table_check_elements): Delete prototype.
521         (get_ccs_octet_table): New inline function.
522         (put_ccs_octet_table): Likewise.
523         (decoding_table_put_char): Use `get_ccs_octet_table' and
524         `put_ccs_octet_table'.
525         (decoding_table_remove_char): Use `decoding_table_put_char'.
526         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
527
528         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
529         into encoding_table.
530         (make_charset): Use Qunbound instead Qnil as initial value of
531         decoding_table.
532
533 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
534
535         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
536         element is Qunloaded.
537         (map_over_uint16_byte_table): Likewise.
538         (map_over_byte_table): Likewise.
539         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
540         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
541         database support, load encoding-table of the specified
542         coded-charset if it is not loaded yet.
543         (save_uint8_byte_table): New function of UTF-2000 with external
544         database support.
545         (save_uint16_byte_table): Likewise.
546         (save_byte_table): Likewise.
547         (Fput_char_attribute): Don't store value into external database
548         even if the external database feature is supported in UTF-2000;
549         set `attribute' as name of char-table if the external database
550         feature is supported.
551         (Fsave_char_attribute_table): New function in UTF-2000.
552         (syms_of_chartab): Add new builtin function
553         `save-char-attribute-table' in UTF-2000.
554
555 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
556
557         * chartab.c (char_attribute_table_to_put): New variable in
558         UTF-2000.
559         (Qput_char_table_map_function): Likewise.
560         (value_to_put): Likewise.
561         (Fput_char_table_map_function): New function in UTF-2000.
562         (put_char_table): Use `Fmap_char_attribute' for
563         CHARTAB_RANGE_CHARSET in UTF-2000.
564         (Fput_char_attribute): Store symbol instead of string in
565         `XCHAR_TABLE_NAME (table)'.
566         (load_char_attribute_maybe): Likewise.
567         (syms_of_chartab): Add new symbol/function
568         `put-char-table-map-function'.
569
570 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
571
572         * database.h: Add new EXFUN for `Fmap_database'.
573
574         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
575         (syms_of_database): Likewise.
576
577         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
578         UTF-2000.
579         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
580         (XCHAR_TABLE_UNLOADED): Likewise.
581
582         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
583         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
584         HAVE_DATABASE is defined.
585         (char_attribute_table_to_load): New variable of UTF-2000 with
586         external database support.
587         (Qload_char_attribute_table_map_function): Likewise.
588         (Fload_char_attribute_table_map_function): New function of
589         UTF-2000 with external database support.
590         (Fload_char_attribute_table): New function of UTF-2000.
591         (Fmap_char_attribute): Call Fload_char_attribute_table if
592         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
593         (syms_of_chartab): Add new symbol and function
594         `load-char-attribute-table-map-function' in UTF-2000 with external
595         database support; add new function `load-char-attribute-table' in
596         UTF-2000.
597
598 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
599
600         * chartab.h (load_char_attribute_maybe): New prototype for
601         UTF-2000 with DATABASE support.
602         (get_char_id_table): Use `load_char_attribute_maybe' if
603         HAVE_DATABASE is defined.
604
605         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
606         with DATABASE support.
607
608 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * chartab.c (Fput_char_attribute): Use S-expression as key of
611         external database.
612
613         * chartab.h (get_char_id_table): Use S-expression as key of
614         external database.
615
616 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
619         if an element is not loaded, load the corresponding attributes
620         from an external database.
621         (map_over_uint16_byte_table): Likewise.
622         (map_over_byte_table): Likewise.
623         (map_char_table): Modify for `map_over_uint8_byte_table',
624         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
625         element is not loaded, load the corresponding attributes from an
626         external database.
627         (Fput_char_attribute): Change initial values to Qunloaded.
628
629         * chartab.h (get_char_id_table): If a character attribute is not
630         loaded and the attribute value is not found in an external
631         database, store Qunbound as the attribute value.
632
633 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
634
635         * chartab.c (BT_UINT8_unloaded): New macro.
636         (UINT8_VALUE_P): Accept Qunloaded.
637         (UINT8_ENCODE): Likewise.
638         (UINT8_DECODE): Likewise.
639         (BT_UINT16_unloaded): New macro.
640         (UINT16_VALUE_P): Accept Qunloaded.
641         (UINT16_ENCODE): Likewise.
642         (UINT16_DECODE): Likewise.
643         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
644         BT_UINT16_unloaded.
645         (mark_char_table): Mark `ct->name' in UTF-2000.
646         (char_table_description): Add `name' in UTF-2000.
647         (Fmake_char_table): Initialize `ct->name'.
648         (Fcopy_char_table): Copy `ct->name'.
649         (Fput_char_attribute): Store value into an external database if
650         HAVE_DATABASE is defined.
651
652         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
653         UTF-2000.
654         (CHAR_TABLE_NAME): New macro in UTF-2000.
655         (XCHAR_TABLE_NAME): New macro in UTF-2000.
656         (get_char_id_table): Try to read an external database if Qunloaded
657         is stored in a table.
658
659         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
660         Qunloaded.
661
662 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
663
664         * database.h: Add EXFUN definitions for Fopen_database,
665         Fput_database, Fget_database and Fclose_database.
666
667         * data.c (Qunloaded): New variable in UTF-2000.
668
669         * lisp.h (Qunloaded): New variable in UTF-2000.
670
671 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
672
673         * mule-charset.c (put_char_ccs_code_point): Modify for
674         `decoding_table_remove_char' and `decoding_table_put_char'.
675         (remove_char_ccs): Modify for `decoding_table_remove_char'.
676
677         * char-ucs.h (decoding_table_remove_char): Change arguments to
678         hide decoding_table vector.
679         (decoding_table_put_char): Likewise.
680
681 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
682
683         * mule-charset.c (decoding_table_remove_char): Moved to
684         char-ucs.h.
685         (decoding_table_put_char): Likewise.
686
687         * char-ucs.h (decoding_table_check_elements): New prototype [moved
688         from mule-charset.c].
689         (decoding_table_remove_char): New inline function [moved from
690         mule-charset.c].
691         (decoding_table_put_char): Likewise.
692
693 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
696         extension.
697
698 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * mule-charset.c (decode_builtin_char): Support mother charsets.
701
702 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
703
704         * mule-charset.c (Q94x94x60): New variable.
705         (charset_code_point): Support conversion `94x94x60'.
706         (Fmake_charset): Likewise.
707         (syms_of_mule_charset): Add new symbol `94x94x60'.
708
709         * char-ucs.h (CONVERSION_94x94x60): New macro.
710
711 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
712
713         * mule-charset.c (charset_code_point): Unify code about
714         `code-offset'.
715
716 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
717
718         * mule-charset.c (charset_code_point): Merge code about builtin
719         characters into code about mother charsets; don't use
720         `range_charset_code_point'.
721         (range_charset_code_point): Deleted.
722
723 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * mule-charset.c (Qcode_offset): New variable.
726         (Fmake_charset): Use `XUINT' to get value of `min-code' and
727         `max-code'; accept new property `code-offset'.
728         (syms_of_mule_charset): Add new symbol `code-offset'.
729
730 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
731
732         * mule-charset.c (range_charset_code_point): Fixed.
733
734 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c (decode_builtin_char): Change semantics of
737         code-offset of coded-charset.
738         (charset_code_point): Likewise.
739         (range_charset_code_point): Likewise.
740         (complex_vars_of_mule_charset): Modify for the change.
741
742 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * mule-charset.c (Fencode_char): Reverse arguments.
745
746         * mule-charset.c (charset_code_point): Fixed.
747
748 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
749
750         * mule-charset.c (Vcharset_mojikyo): Deleted.
751         (Vcharset_mojikyo_2022_1): Deleted.
752         (Vcharset_mojikyo_pj_{1..21}): Deleted.
753         (Qmin_code): New variable in UTF-2000.
754         (Qmax_code): Likewise.
755         (Qmother): Likewise.
756         (Qconversion): Likewise.
757         (Q94x60): Likewise.
758         (Qmojikyo): Deleted.
759         (Qmojikyo_2022_1): Deleted.
760         (Qmojikyo_pj_{1..22}): Deleted.
761         (mark_charset): Mark `cs->mother'.
762         (charset_description): Add description for `mother'.
763         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
764         new arguments `mother' and `conversion'; use
765         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
766         (charset_code_point): Moved from char-ucs.h; support `mother'
767         charset feature.
768         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
769         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
770         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
771         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
772         allow 2 as the value of `graphic' in UTF-2000; add new properties
773         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
774         require `final' in UTF-2000; modify for `make_charset'.
775         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
776         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
777         (Fcharset_property): Support `mother', `min-code' and `max-code'.
778         (Fencode_char): New function.
779         (syms_of_mule_charset): Add new builtin function `encode-char' in
780         UTF-2000; add new symbols `min-code', `max-code', `mother',
781         `conversion' and `94x60'; delete symbols `mojikyo',
782         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
783         (complex_vars_of_mule_charset): Modify for `make_charset' change;
784         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
785         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
786
787         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
788         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
789
790         * char-ucs.h (Vcharset_mojikyo): Deleted.
791         (Vcharset_mojikyo_2022_1): Deleted.
792         (LEADING_BYTE_MOJIKYO): Deleted.
793         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
794         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
795         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
796         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
797         add new member `mother'; add new member `conversion'.
798         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
799         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
800         (CHARSET_MOTHER): New macro.
801         (CHARSET_CONVERSION): New macro.
802         (CONVERSION_IDENTICAL): New macro.
803         (CONVERSION_94x60): New macro.
804         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
805         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
806         (XCHARSET_MOTHER): New macro.
807         (XCHARSET_CONVERSION): New macro.
808         (MIN_CHAR_MOJIKYO): Deleted.
809         (MAX_CHAR_MOJIKYO): Deleted.
810         (DECODE_MOJIKYO_2022): Deleted.
811         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
812         (charset_code_point): Changed to non-inline function.
813         (encode_char_1): Use `charset_code_point'.
814         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
815
816 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
817
818         * lread.c (read_compiled_function): Fix prototype.
819         (read_vector): Likewise.
820
821 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
822
823         * lrecord.h (struct lrecord_header): Delete `older'.
824         (set_lheader_implementation): Delete code for `older'.
825         (set_lheader_older_implementation): Deleted.
826         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
827         (OLDER_RECORD_P): Deleted.
828         (OLDER_RECORD_HEADER_P): Deleted.
829         (alloc_older_lcrecord): Deleted.
830         (alloc_older_lcrecord_type): Deleted.
831
832         * alloc.c (all_older_lcrecords): Deleted.
833         (alloc_older_lcrecord): Deleted.
834         (disksave_object_finalization_1): Delete code for older objects.
835         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
836         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
837
838 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
839
840         * mule-charset.c (decoding_table_put_char): Use `make_vector'
841         instead of `make_older_vector'.
842         (put_char_ccs_code_point): Likewise.
843         (mark_charset): Mark `cs->decoding_table'.
844         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
845
846         * lisp.h (make_older_vector): Deleted.
847         (make_vector_newer): Deleted.
848
849         * config.h.in (HAVE_GGC): Deleted.
850
851         * alloc.c (make_older_vector): Deleted.
852         (make_vector_newer_1): Deleted.
853         (make_vector_newer): Deleted.
854
855 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
858         (Qideograph_daikanwa_2): New variable.
859         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
860         (complex_vars_of_mule_charset): Add new coded-charset
861         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
862         `LEADING_BYTE_DAIKANWA'.
863
864         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
865         (LEADING_BYTE_DAIKANWA_1): New macro.
866         (LEADING_BYTE_DAIKANWA_2): New macro.
867         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
868
869 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * mule-charset.c (complex_vars_of_mule_charset): Change
872         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
873         the second revised version.
874
875 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * mule-charset.c (Vcharset_ucs_smp): New variable.
878         (Vcharset_ucs_sip): New variable.
879         (Qucs_smp): New variable.
880         (Qucs_sip): New variable.
881         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
882         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
883         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
884         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
885         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
886         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
887
888         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
889         (LEADING_BYTE_UCS_SIP): New macro.
890         (MIN_CHAR_SMP): New macro.
891         (MAX_CHAR_SMP): New macro.
892         (MIN_CHAR_SIP): New macro.
893         (MAX_CHAR_SIP): New macro.
894
895 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
896
897         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
898         utf-2000.
899
900 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
901
902         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
903         value; don't store value into `encoding_table' of `Lisp_Charset'.
904         (mark_charset): `encoding_table' was deleted.
905         (charset_description): Likewise.
906         (make_charset): Likewise.
907         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
908         `put_char_ccs_code_point'.
909
910         * chartab.h (Fput_char_attribute): New EXFUN.
911
912         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
913         is unified with normal symbol space.
914         (Fget_char_attribute): Likewise.
915         (Fput_char_attribute): Likewise; behavior of
916         `put_char_ccs_code_point' is changed.
917
918         * char-ucs.h: Include "elhash.h".
919         (Vchar_attribute_hash_table): New external variable.
920         (struct Lisp_Charset): Delete `encoding_table'.
921         (CHARSET_ENCODING_TABLE): New implementation; refer
922         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
923         `Lisp_Charset'.
924
925 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
926
927         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
928         (cs) == 0.
929
930 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
931
932         * text-coding.c (char_encode_big5): Prefer charset-g1 than
933         `chinese-big5'.
934
935 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
936
937         * chartab.c (uint8_byte_table_description): New constant.
938         (uint8-byte-table): Use `uint8_byte_table_description'.
939         (uint16_byte_table_description): New constant.
940         (uint16-byte-table): Use `uint16_byte_table_description'.
941
942 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
943
944         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
945         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
946
947 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
948
949         * mule-charset.c (Vcharset_ucs_ks): New variable.
950         (Qucs_ks): New variable.
951         (syms_of_mule_charset): Add new symbol `ucs-ks'.
952         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
953
954         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
955
956 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
957
958         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
959         (Fdecode_char): Likewise.
960
961         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
962         chartab.h.
963         (Fdefine_char): Modify for Fdecode_char.
964         (Ffind_char): Likewise.
965
966         * mule-charset.c (Fdecode_char): Add new optional argument
967         `defined-only'.
968         (Fdecode_builtin_char): Modify for `Fdecode_char'.
969
970 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
973         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
974         (allocate_coding_system): Initialize initial-charsets of
975         CODESYS_BIG5 in XEmacs UTF-2000.
976         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
977         CODESYS_BIG5 in XEmacs UTF-2000.
978         (decode_coding_big5): Use initial-charset-g0 and -g1 of
979         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
980
981         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
982         variables.
983         (Qideograph_hanziku_{1 .. 12}): Likewise.
984         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
985         .. 12}'.
986         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
987         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
988         `ideograph-hanziku-{1 .. 12}'.
989
990         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
991         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
992         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
993         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
994         (DECODE_DEFINED_CHAR): New inline function.
995         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
996
997 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * mule-charset.c (Vcharset_china3_jef): Renamed from
1000         `Vcharset_japanese_jef_china3'.
1001         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1002         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1003         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1004         (syms_of_mule_charset): Rename `china3-jef' from
1005         `japanese-jef-china3'.
1006         (complex_vars_of_mule_charset): Likewise; rename
1007         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1008
1009         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1010         `LEADING_BYTE_JEF_CHINA3'.
1011         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1012         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1013
1014 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1015
1016         * mule-charset.c (encode_builtin_char_1): Comment out special code
1017         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1018
1019         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1020         (MAX_CHAR_MOJIKYO_0): Comment out.
1021         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1022         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1023         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1024         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1025
1026 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1029         (Qideograph_cbeta): New variable.
1030         (encode_builtin_char_1): Comment out special code for
1031         coded-charset `mojikyo' and `japanese-jef-china3'.
1032         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1033         (complex_vars_of_mule_charset): Add new coded-charset
1034         `ideograph-cbeta'.
1035
1036         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1037         (MIN_CHAR_CBETA): New macro.
1038         (MAX_CHAR_CBETA): New macro.
1039
1040 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1043         (LEADING_BYTE_JEF_CHINA3): New macro.
1044         (MIN_CHAR_JEF_CHINA3): New macro.
1045         (MAX_CHAR_JEF_CHINA3): Likewise.
1046         (DECODE_CHAR): Fixed.
1047
1048 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1049
1050         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1051         (Qjapanese_jef_china3): New variable.
1052         (encode_builtin_char_1): Support `japanese-jef-china3'.
1053         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1054         (complex_vars_of_mule_charset): Add new coded-charset
1055         `japanese-jef-china3'.
1056
1057 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1058
1059         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1060         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1061         94^4, 96^3, 96^4, 128^n and 256^n set.
1062         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1063         (map_char_table): Likewise.
1064
1065 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1066
1067         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1068         UTF-2000.
1069
1070 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071
1072         * chartab.h (get_char_id_table): New inline function.
1073
1074         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1075         function.
1076
1077 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * chartab.h (decode_char_table_range): New prototype in XEmacs
1080         UTF-2000.
1081         (put_char_id_table): New inline function in XEmacs UTF-2000.
1082
1083         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1084         function.
1085         (decode_char_table_range): Delete static declaration in XEmacs
1086         UTF-2000.
1087
1088 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1089
1090         * chartab.c (put_char_id_table): Use `put_char_table'.
1091
1092 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1093
1094         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1095         (map_over_uint16_byte_table): Likewise.
1096         (map_over_byte_table): Likewise.
1097         (map_char_table): Modify for `map_over_uint8_byte_table',
1098         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1099         UTF-2000.
1100
1101 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * chartab.c (struct map_char_table_for_charset_arg): New
1104         structure.
1105         (map_char_table_for_charset_fun): New function.
1106         (map_char_table): Use `map_char_table' for encoding_table of
1107         `range->charset'.
1108
1109 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * chartab.c (map_char_table): Check a character is found in
1112         range->charset instead of non default value is defined in
1113         char-table when range is CHARTAB_RANGE_ROW.
1114
1115 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116
1117         * chartab.c (map_char_id_table): Deleted.
1118         (Fmap_char_attribute): Use `map_char_table' instead of
1119         `map_char_id_table'.
1120
1121 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122
1123         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1124         UTF-2000.
1125         (update_syntax_table): Deleted in XEmacs UTF-2000.
1126
1127         * syntax.c (find_defun_start): Use `syntax_table' instead of
1128         `mirror_syntax_table' in XEmacs UTF-2000.
1129         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1130         UTF-2000.
1131         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1132         XEmacs UTF-2000.
1133         (Fmatching_paren): Likewise.
1134         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1135         in XEmacs UTF-2000.
1136         (find_start_of_comment): Likewise.
1137         (find_end_of_comment): Likewise.
1138         (Fforward_comment): Likewise.
1139         (scan_lists): Likewise.
1140         (char_quoted): Likewise.
1141         (Fbackward_prefix_chars): Likewise.
1142         (scan_sexps_forward): Likewise.
1143         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1144         (update_syntax_table): Likewise.
1145
1146         * search.c (skip_chars): Use `syntax_table' instead of
1147         `mirror_syntax_table' in XEmacs UTF-2000.
1148         (wordify): Likewise.
1149         (Freplace_match): Likewise.
1150
1151         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1152         `mirror_syntax_table' in XEmacs UTF-2000.
1153         (WORDCHAR_P_UNSAFE): Likewise.
1154         (re_match_2_internal): Likewise.
1155
1156         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1157         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1158
1159         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1160         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1161
1162         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1163         XEmacs UTF-2000.
1164
1165         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1166         UTF-2000.
1167         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1168         (char_table_description): Delete `mirror_table' in XEmacs
1169         UTF-2000.
1170         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1171         UTF-2000.
1172         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1173         (Fcopy_char_table): Likewise.
1174         (put_char_table): Don't call `update_syntax_table' in XEmacs
1175         UTF-2000.
1176
1177         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1178         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1179         (casify_region_internal): Likewise.
1180
1181         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1182
1183         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1184         `mirror_syntax_table' in XEmacs UTF-2000.
1185
1186         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1187         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1188         (Fexpand_abbrev): Likewise.
1189
1190 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1193
1194 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1197         (map_over_uint16_byte_table): Likewise.
1198         (map_over_byte_table): Likewise.
1199         (get_char_id_table): Refer `cit->default_value'.
1200         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1201         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1202         of character-id ranges.
1203         (mark_char_table): Mark `ct->default_value'.
1204         (char_table_description): Add `default_value'.
1205         (fill_char_table): Use `default_value'.
1206         (decode_char_table_range): Decode `nil' as
1207         `CHARTAB_RANGE_DEFAULT'.
1208         (get_char_id_table): Refer `cit->default_value'.
1209         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1210         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1211         temporary hack; check value of char-table is bound or not.
1212         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1213
1214         * chartab.h (struct Lisp_Char_Table): Add new member
1215         `default_value' in XEmacs UTF-2000.
1216         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1217         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1218         UTF-2000.
1219
1220 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * chartab.h (Lisp_Char_ID_Table): Deleted.
1223
1224         * chartab.c (char_table_description): Fix typo.
1225         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1226         `Lisp_Char_ID_Table'.
1227
1228 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1231         `CHAR_ID_TABLE_P'.
1232
1233         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1234         `CHAR_ID_TABLE_P'.
1235
1236         * chartab.h (XCHAR_ID_TABLE): Deleted.
1237         (XSETCHAR_ID_TABLE): Deleted.
1238         (CHAR_ID_TABLE_P): Deleted.
1239
1240         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1241         `CHAR_ID_TABLE_P'.
1242         (Fget_composite_char): Likewise.
1243         (put_char_table): Likewise.
1244         (add_char_attribute_alist_mapper): Fixed.
1245         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1246         `CHAR_ID_TABLE_P'.
1247         (Fget_char_attribute): Likewise.
1248         (Fget_char_attribute): Likewise.
1249         (Fmap_char_attribute): Likewise.
1250
1251         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1252         `CHAR_ID_TABLE_P'.
1253         (encode_char_1): Likewise.
1254
1255 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1256
1257         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1258         `XCHAR_ID_TABLE'.
1259
1260         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1261         instead of `XCHAR_ID_TABLE'.
1262         (remove_char_ccs): Likewise.
1263
1264         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1265         `XCHAR_ID_TABLE'.
1266         (Fget_composite_char): Likewise.
1267         (Fchar_variants): Likewise.
1268         (put_char_table): Likewise.
1269         (add_char_attribute_alist_mapper): Likewise.
1270         (Fchar_attribute_alist): Likewise.
1271         (Fget_char_attribute): Likewise.
1272         (Fput_char_attribute): Likewise.
1273         (Fmap_char_attribute): Likewise.
1274         (Fmap_char_attribute): Likewise.
1275
1276         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1277         `XCHAR_ID_TABLE'.
1278         (encode_char_1): Likewise.
1279
1280 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1281
1282         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1283         `Lisp_Char_ID_Table'.
1284         (mark_char_id_table): Deleted.
1285         (print_char_id_table): Likewise.
1286         (char_id_table_equal): Likewise.
1287         (char_id_table_hash): Likewise.
1288         (char_id_table_description): Likewise.
1289         (char_id_table): Likewise.
1290         (make_char_id_table): Use `Fmake_char_table' and
1291         `fill_char_table'.
1292         (get_char_id_table): Use `Lisp_Char_Table' instead of
1293         `Lisp_Char_ID_Table'.
1294         (put_char_id_table): Likewise.
1295         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1296         `XCHAR_ID_TABLE'.
1297         (Fremove_char_attribute): Likewise.
1298         (syms_of_chartab): Don't define type `char-id-table'.
1299
1300         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1301         (char_id_table): Likewise.
1302         (GC_CHAR_ID_TABLE_P): Likewise.
1303         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1304         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1305         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1306         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1307         (get_char_id_table): Use `Lisp_Char_Table' instead of
1308         `Lisp_Char_ID_Table'.
1309         (put_char_id_table_0): Likewise.
1310         (put_char_id_table): Likewise.
1311
1312 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1313
1314         * chartab.h: Lisp_Byte_Table related codes are moved from
1315         chartab.h.
1316
1317         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1318
1319 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1320
1321         * chartab.h: Don't include "chartab.h".
1322         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1323         (Lisp_Char_ID_Table): Likewise.
1324         (char_id_table): Likewise.
1325         (XCHAR_ID_TABLE): Likewise.
1326         (XSETCHAR_ID_TABLE): Likewise.
1327         (CHAR_ID_TABLE_P): Likewise.
1328         (GC_CHAR_ID_TABLE_P): Likewise.
1329         (get_char_id_table): Likewise.
1330
1331         * char-ucs.h: Include "chartab.h".
1332         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1333         (Lisp_Char_ID_Table): Likewise.
1334         (char_id_table): Likewise.
1335         (XCHAR_ID_TABLE): Likewise.
1336         (XSETCHAR_ID_TABLE): Likewise.
1337         (CHAR_ID_TABLE_P): Likewise.
1338         (GC_CHAR_ID_TABLE_P): Likewise.
1339         (get_char_id_table): Likewise.
1340
1341 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1342
1343         * chartab.c (copy_uint8_byte_table): New function.
1344         (copy_uint16_byte_table): New function.
1345         (copy_byte_table): New function.
1346         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1347         characters to call.
1348         (map_over_uint16_byte_table): Likewise.
1349         (map_over_byte_table): Likewise.
1350         (get_byte_table): Move prototype to chartab.h.
1351         (put_byte_table): Likewise.
1352         (put_char_id_table_0): Moved to chartab.h.
1353         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1354         (char_table_entry_equal): Likewise.
1355         (char_table_entry_hash): Likewise.
1356         (char_table_entry_description): Likewise.
1357         (char_table_entry): Likewise.
1358         (make_char_table_entry): Likewise.
1359         (copy_char_table_entry): Likewise.
1360         (get_non_ascii_char_table_value): Likewise.
1361         (map_over_charset_ascii): Likewise.
1362         (map_over_charset_control_1): Likewise.
1363         (map_over_charset_row): Likewise.
1364         (map_over_other_charset): Likewise.
1365         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1366         (print_char_table): Likewise.
1367         (char_table_equal): Likewise.
1368         (char_table_hash): Likewise.
1369         (char_table_description): Likewise.
1370         (fill_char_table): Likewise.
1371         (Fcopy_char_table): Likewise.
1372         (get_char_table): Likewise.
1373         (Fget_range_char_table): Likewise.
1374         (put_char_table): Likewise.
1375         (map_char_table): Likewise.
1376         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1377         UTF-2000.
1378
1379 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1382         `Vauto_fill_chars' in XEmacs UTF-2000.
1383
1384         * chartab.h (get_byte_table): New prototype [moved from
1385         chartab.c].
1386         (put_byte_table): Likewise [moved from chartab.c].
1387         (put_char_id_table_0): New inline function [moved from chartab.c].
1388         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1389         (Lisp_Char_Table_Entry): Likewise.
1390         (char_table_entry): Likewise.
1391         (XCHAR_TABLE_ENTRY): Likewise.
1392         (XSETCHAR_TABLE_ENTRY): Likewise.
1393         (CHAR_TABLE_ENTRYP): Likewise.
1394         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1395         (NUM_ASCII_CHARS): Likewise.
1396         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1397         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1398
1399 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1400
1401         * chartab.c (get_char_id_table): Change interface.
1402         (put_char_id_table_0): New function.
1403         (put_char_id_table): Change interface; new implementation.
1404         (Fget_composite_char): Modify for interface change of
1405         `get_char_id_table'.
1406         (Fchar_variants): Likewise.
1407         (add_char_attribute_alist_mapper): Likewise.
1408         (Fchar_attribute_alist): Likewise.
1409         (Fget_char_attribute): Likewise.
1410         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1411         as same as character as the first argument like `put-char-table';
1412         modify for interface change of `put_char_id_table'.
1413         (Fremove_char_attribute): Modify for interface change of
1414         `put_char_id_table'.
1415
1416 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * text-coding.c: Sync up with XEmacs 21.2.41.
1419         (COMPOSE_ADD_CHAR): Modify for interface change of
1420         `get_char_id_table'.
1421
1422         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1423         change of `put_char_id_table'.
1424         (remove_char_ccs): Likewise.
1425
1426         * chartab.h (put_char_id_table): Change interface.
1427
1428         * char-ucs.h (get_char_id_table): Change interface.
1429         (charset_code_point): Modify for interface change of
1430         `get_char_id_table'.
1431         (encode_char_1): Likewise.
1432
1433 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1434
1435         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1436         argument `ccs'.
1437         (map_over_uint16_byte_table): Likewise.
1438         (map_over_byte_table): Likewise.
1439         (map_char_id_table): Add new argument `range' like
1440         `map_char_table'.
1441         (Fmap_char_attribute): Add new argument `range' like
1442         `Fmap_char_table'.
1443
1444 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445
1446         * chartab.c (map_over_uint8_byte_table): Change interface of
1447         mapping function to use struct chartab_range instead of Emchar.
1448         (map_over_uint16_byte_table): Likewise.
1449         (map_over_byte_table): Likewise.
1450         (map_char_id_table): Likewise.
1451         (struct slow_map_char_id_table_arg): Deleted.
1452         (slow_map_char_id_table_fun): Deleted.
1453         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1454         function `slow_map_char_table_fun' instead of struct
1455         `slow_map_char_id_table_arg' and function
1456         `slow_map_char_id_table_fun'.
1457
1458 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459
1460         * mule-charset.c: Move char-it-table related codes to chartab.c.
1461         (Vutf_2000_version): Moved to chartab.c.
1462         (Fdefine_char): Likewise.
1463         (Ffind_char): Likewise.
1464         (syms_of_mule_charset): Move types `uint8-byte-table',
1465         `uint16-byte-table', `byte-table' and `char-id-table' to
1466         chartab.c; move functions `char_attribute_list,
1467         `find_char_attribute_table, `char_attribute_alist,
1468         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1469         `map_char_attribute, `define_char, `find_char, `char_variants and
1470         `get_composite_char to chartab.c; move symbols `=>ucs',
1471         `->decomposition', `compat', `isolated', `initial', `medial',
1472         `final', `vertical', `noBreak', `fraction', `super', `sub',
1473         `circle', `square', `wide', `narrow', `small' and `font' to
1474         chartab.c.
1475         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1476         setting codes for `Vcharacter_composition_table' and
1477         `Vcharacter_variant_table' to chartab.c.
1478         (complex_vars_of_mule_charset): Move setting code for
1479         `Vchar_attribute_hash_table' to chartab.c.
1480
1481         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1482         (make_char_id_table): New prototype.
1483         (put_char_id_table): Likewise.
1484         (Fget_char_attribute): Likewise.
1485
1486         * chartab.c: Move char-id-table related code from mule-charset.c.
1487         (Vutf_2000_version): Moved from mule-charset.c.
1488
1489         * char-ucs.h (Qucs): New external variable.
1490         (put_char_ccs_code_point): New prototype.
1491         (remove_char_ccs): Likewise.
1492
1493 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1494
1495         * mule-charset.c (Vcharset_ucs_jis): New variable.
1496         (Qucs_jis): Likewise.
1497         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1498         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1499
1500         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1501
1502 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * mule-charset.c (map_over_uint8_byte_table): New function.
1505         (map_over_uint16_byte_table): Likewise.
1506         (map_over_byte_table): Likewise.
1507         (map_char_id_table): Likewise.
1508         (slow_map_char_id_table_fun): Likewise.
1509         (Fmap_char_attribute): Likewise.
1510         (syms_of_mule_charset): Add new function `map-char-attribute'.
1511
1512 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1513
1514         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1515         (syms_of_mule_charset): Add new function `find-char'.
1516
1517 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1518
1519         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1520         XEmacs UTF-2000.
1521         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1522         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1523         XEmacs UTF-2000.
1524         (complex_vars_of_mule_charset): Add new coded-charset
1525         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1526         `ideograph-gt-pj-*'.
1527
1528         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1529
1530 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1531
1532         * mule-charset.c (encode_builtin_char_1): Purge codes about
1533         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1534         {MIN|MAX}_CHAR_HEBREW.
1535         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1536         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1537
1538         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1539         (MAX_CHAR_GREEK): Purged.
1540         (MIN_CHAR_CYRILLIC): Purged.
1541         (MAX_CHAR_CYRILLIC): Purged.
1542         (MIN_CHAR_HEBREW): Commented out.
1543         (MAX_CHAR_HEBREW): Likewise.
1544
1545 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * mule-charset.c (Qto_ucs): New variable.
1548         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1549         (Fdefine_char): Likewise.
1550         (syms_of_mule_charset): Add new symbol `=>ucs'.
1551
1552 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1553
1554         * mule-charset.c (Fdecode_char): Fixed.
1555
1556 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1557
1558         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1559         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1560         "tcvn5712-1".
1561
1562 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1563
1564         * mule-charset.c (Vcharset_ucs_big5): New variable.
1565         (Qucs_big5): Likewise.
1566         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1567         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1568
1569         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1570
1571 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572
1573         * mule-charset.c (decode_builtin_char): Check Big5 code range
1574         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1575
1576 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1577
1578         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1579         (Qchinese_gb12345): Likewise.
1580         (Fdecode_builtin_char): Fixed.
1581         (syms_of_mule_charset): Add `chinese-gb12345'.
1582         (complex_vars_of_mule_charset): Add coded-charset
1583         `chinese-gb12345'.
1584
1585         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1586         (LEADING_BYTE_CHINESE_GB12345): New macro.
1587
1588 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589
1590         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1591         and `latin-viscii-upper' for `latin-viscii'.
1592
1593 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1594
1595         * mule-charset.c (Fdecode_builtin_char): Comment out
1596         regularization code for ISO-IR GR representation.
1597
1598 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1599
1600         * mule-charset.c (decode_builtin_char): New function; renamed from
1601         `make_builtin_char'; return -1 instead of signal.
1602         (Fdecode_builtin_char): Use `decode_builtin_char'.
1603
1604         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1605         `make_builtin_char'.
1606         (DECODE_CHAR): Use `decode_builtin_char' instead of
1607         `make_builtin_char'; use mapping table of `chinese-big5' for
1608         `chinese-big5-{1,2}'.
1609
1610 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611
1612         * text-coding.c (char_encode_big5): New function.
1613         (char_finish_big5): Likewise.
1614         (reset_encoding_stream): Use `char_encode_big5' and
1615         `char_finish_big5' for CODESYS_BIG5.
1616         (mule_encode): Don't use `encode_coding_big5'.
1617         (encode_coding_big5): Deleted.
1618
1619 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620
1621         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1622         0x81- in XEmacs UTF-2000.
1623         (detect_coding_big5): Likewise.
1624
1625 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1626
1627         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1628         generate character-id if the CCS property does not have
1629         corresponding predefined character.
1630         (make_builtin_char): Return -1 if corresponding predefined
1631         character is not found.
1632         (Fdecode_char): Return nil if corresponding character is not
1633         found.
1634         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1635         don't map to builtin ucs space.
1636
1637 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1638
1639         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1640         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1641
1642 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1643
1644         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1645         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1646         (Qideograph_gt): Likewise.
1647         (Qideograph_gt_pj_{1..11}): Likewise.
1648         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1649         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1650         `ideograph-gt-pj-11'.
1651         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1652         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1653         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1654
1655         * char-ucs.h (LEADING_BYTE_GT): New macro.
1656         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1657         (MIN_CHAR_GT): Likewise.
1658         (MAX_CHAR_GT): Likewise.
1659
1660 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1661
1662         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1663         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1664
1665         * doprnt.c (unsigned_int_converters): Add `c'.
1666         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1667
1668         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1669         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1670         `MIN_CHAR_MOJIKYO'.
1671         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1672         (MAX_CHAR_MOJIKYO_0): New macro.
1673         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1674
1675 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1676
1677         * mule-charset.c (Fdefine_char): Delete cemented out code.
1678         (encode_builtin_char_1): Modify for new allocation of builtin
1679         Mojikyo characters.
1680
1681         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1682
1683 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * mule-charset.c (Vcharset_ucs_cns): New variable.
1686         (Qucs_cns): New variable.
1687         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1688         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1689
1690 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691
1692         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1693
1694 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1695
1696         * search.c (search_buffer): Make `charset_base_code' as
1697         character-id >> 6 to eliminate the corresponding last byte in
1698         UTF-8 representation [I'm not sure it is right thing].
1699         (boyer_moore): Likewise.
1700
1701 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1702
1703         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1704         representation in MULE.
1705
1706 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1707
1708         * text-coding.c (Fmake_coding_system): Use
1709         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1710         `EXTERNAL_PROPERTY_LIST_LOOP'.
1711
1712 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1713
1714         * text-coding.c (decode_output_utf8_partial_char): New function.
1715         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1716
1717 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1718
1719         * text-coding.c (decode_coding_utf8): Output original byte
1720         sequence if it is broken; change order of conditions.
1721
1722         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1723         of conditions.
1724
1725         * mb-multibyte.h (BYTE_ASCII_P):
1726         Use bit ops for char-signedness safety.
1727         (BYTE_C0_P): Use bit ops for char-signedness safety.
1728         (BYTE_C1_P): Use bit ops for char-signedness safety.
1729
1730         * character.h: (XCHAR_OR_CHAR_INT):
1731         Always use inline function.
1732         Remove redundant type checking assert() - XINT will abort quite
1733         nicely.
1734
1735 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736
1737         * text-coding.c: (Fencode_shift_jis_char):
1738         (Fencode_big5_char):
1739         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1740         Replace 0 with '\0' when working with bytes.
1741         Replace initial "(" with "\(" in docstrings.
1742
1743         (Fmake_coding_system):
1744         When type is ccl and value is vector, register it with a proper
1745         symbol.  And checks whether the given ccl program is valid.
1746         (mule_decode): When calling ccl_driver, if src indicates
1747         NULL pointer, set an empty string instead.
1748         (mule_encode): Likewise.
1749
1750         (detect_eol_type):
1751         (detect_coding_sjis):
1752         (decode_coding_sjis):
1753         (detect_coding_big5):
1754         (decode_coding_big5):
1755         (detect_coding_ucs4):
1756         (decode_coding_ucs4):
1757         (detect_coding_utf8):
1758         (decode_coding_utf8):
1759         (detect_coding_iso2022):
1760         (decode_coding_iso2022):
1761         (decode_coding_no_conversion):
1762         (mule_decode):
1763         Make all detecting and decoding functions take an Extbyte * arg.
1764         (text_encode_generic):
1765         (encode_coding_big5):
1766         (encode_coding_no_conversion):
1767         (mule_encode):
1768         Make all encoding functions take a Bufbyte * arg.
1769         Use size_t instead of unsigned int for memory sizes.
1770         Only cast to unsigned char whenever dereferencing Extbyte *.
1771
1772         (struct lrecord_description fcd_description_1): Use countof.
1773         (complex_vars_of_file_coding):
1774         Use countof instead of sizeof.
1775         Use CHECK_NATNUM instead of CHECK_INT.
1776
1777 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1778
1779         * mule-charset.c (Fget_char_attribute): Add new optional argument
1780         `default-value'.
1781         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1782         (remove_char_ccs): Likewise.
1783
1784 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1785
1786         * text-coding.c (char_encode_shift_jis): New implementation in
1787         UTF-2000.
1788         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1789         ...)'.
1790
1791         * mule-charset.c (Vcharset_chinese_big5): New variable in
1792         UTF-2000.
1793         (Qchinese_big5): New variable in UTF-2000.
1794         (BIG5_SAME_ROW): New macro in UTF-2000.
1795         (make_builtin_char): Use builtin characters of
1796         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1797         characters of `Vcharset_chinese_big5'.
1798         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1799         (complex_vars_of_mule_charset): Add new coded-charset
1800         `chinese-big5' in UTF-2000.
1801
1802         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1803         (Vcharset_chinese_big5): New external variable declaration.
1804         (Vcharset_japanese_jisx0208_1990): Likewise.
1805
1806 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1809         function.
1810         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1811
1812 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1813
1814         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1815         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1816         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1817         `mojikyo-pj-*'.
1818
1819 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1822
1823 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1826         to 0.17.
1827
1828 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1831         for `CHARSET_BY_ATTRIBUTES'.
1832         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1833         `CHARSET_BY_ATTRIBUTES'.
1834
1835         * text-coding.c (struct decoding_stream): Rename member `CH' to
1836         `CPOS'.
1837         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1838         (decode_coding_sjis): Likewise.
1839         (decode_coding_big5): Likewise.
1840         (decode_coding_ucs4): Likewise.
1841         (decode_coding_utf8): Likewise.
1842         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1843         `CHARSET_BY_ATTRIBUTES'.
1844         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1845         `str->counter'; decode 3, 4 bytes sets.
1846         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1847         sets.
1848         (decode_coding_no_conversion): Use `str->cpos' instead of
1849         `str->ch'.
1850
1851         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1852         (Qmojikyo_2022_1): New variable.
1853         (make_charset): Don't use `CHARSET_TYPE_*'.
1854         (range_charset_code_point): Support coded-charset
1855         `mojikyo-2022-1'.
1856         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1857         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1858         `CHARSET_BY_ATTRIBUTES'.
1859         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1860         `CHARSET_BY_ATTRIBUTES'.
1861         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1862         (complex_vars_of_mule_charset): Add new coded-charset
1863         `mojikyo-2022-1'.
1864
1865         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1866         interface; changed to inline function.
1867
1868         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1869         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1870         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1871         (CHARSET_TYPE_94): Deleted.
1872         (CHARSET_TYPE_94X94): Deleted.
1873         (CHARSET_TYPE_96): Deleted.
1874         (CHARSET_TYPE_96X96): Deleted.
1875         (CHARSET_TYPE_128): Deleted.
1876         (CHARSET_TYPE_128X128): Deleted.
1877         (CHARSET_TYPE_256): Deleted.
1878         (CHARSET_TYPE_256X256): Deleted.
1879         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1880         to inline function.
1881         (DECODE_MOJIKYO_2022): New inline function.
1882         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1883         `Vcharset_mojikyo_2022_1'.
1884
1885 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1886
1887         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1888         instead of `EQ'.
1889         (put_byte_table): Likewise.
1890         (char_id_table_equal): Use `get_byte_table' [new implementation].
1891
1892 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893
1894         * mule-charset.c: Include <limits.h> in UTF-2000.
1895         (BT_UINT8_MIN): New macro in UTF-2000.
1896         (BT_UINT8_MAX): New macro in UTF-2000.
1897         (BT_UINT8_t): New macro in UTF-2000.
1898         (BT_UINT8_nil): New macro in UTF-2000.
1899         (BT_UINT8_unbound): New macro in UTF-2000.
1900         (INT_UINT8_P): New inline function in UTF-2000.
1901         (UINT8_VALUE_P): New inline function in UTF-2000.
1902         (UINT8_ENCODE): New inline function in UTF-2000.
1903         (UINT8_DECODE): New inline function in UTF-2000.
1904         (mark_uint8_byte_table): New function in UTF-2000.
1905         (print_uint8_byte_table): New function in UTF-2000.
1906         (uint8_byte_table_equal): New function in UTF-2000.
1907         (uint8_byte_table_hash): New function in UTF-2000.
1908         (make_uint8_byte_table): New function in UTF-2000.
1909         (uint8_byte_table_same_value_p): New function in UTF-2000.
1910         (BT_UINT16_MIN): New macro in UTF-2000.
1911         (BT_UINT16_MAX): New macro in UTF-2000.
1912         (BT_UINT16_t): New macro in UTF-2000.
1913         (BT_UINT16_nil): New macro in UTF-2000.
1914         (BT_UINT16_unbound): New macro in UTF-2000.
1915         (INT_UINT16_P): New inline function in UTF-2000.
1916         (UINT16_VALUE_P): New inline function in UTF-2000.
1917         (UINT16_ENCODE): New inline function in UTF-2000.
1918         (UINT16_DECODE): New inline function in UTF-2000.
1919         (UINT8_TO_UINT16): New inline function in UTF-2000.
1920         (mark_uint16_byte_table): New function in UTF-2000.
1921         (print_uint16_byte_table): New function in UTF-2000.
1922         (uint16_byte_table_equal): New function in UTF-2000.
1923         (uint16_byte_table_hash): New function in UTF-2000.
1924         (make_uint16_byte_table): New function in UTF-2000.
1925         (uint16_byte_table_same_value_p): New function in UTF-2000.
1926         (print_byte_table): New function in UTF-2000.
1927         (byte-table): Use `print_byte_table' as printer.
1928         (make_byte_table): Delete second argument `older'.
1929         (byte_table_same_value_p): New function in UTF-2000.
1930         (copy_byte_table): Deleted.
1931         (get_byte_table): New function in UTF-2000.
1932         (put_byte_table): New function in UTF-2000.
1933         (print_char_id_table): New function in UTF-2000.
1934         (char-id-table): Use `print_char_id_table' as printer.
1935         (make_char_id_table): Delete second argument `older'.
1936         (get_char_id_table): Use `get_byte_table [new implementation].
1937         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1938         implementation].
1939         (Ffind_char_attribute_table): New function in UTF-2000.
1940         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1941         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1942         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1943         (syms_of_mule_charset): Add new function
1944         `find-char-attribute-table' in UTF-2000.
1945
1946         * lrecord.h (enum lrecord_type): Add
1947         `lrecord_type_uint16_byte_table' and
1948         `lrecord_type_uint8_byte_table'.
1949
1950         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1951         (Lisp_Uint8_Byte_Table): New type.
1952         (XUINT8_BYTE_TABLE): New macro.
1953         (XSETUINT8_BYTE_TABLE): New macro.
1954         (UINT8_BYTE_TABLE_P): New macro.
1955         (GC_UINT8_BYTE_TABLE_P): New macro.
1956         (struct Lisp_Uint16_Byte_Table): New structure.
1957         (Lisp_Uint16_Byte_Table): New type.
1958         (XUINT16_BYTE_TABLE): New macro.
1959         (XSETUINT16_BYTE_TABLE): New macro.
1960         (UINT16_BYTE_TABLE_P): New macro.
1961         (GC_UINT16_BYTE_TABLE_P): New macro.
1962
1963 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1964
1965         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1966         (Vcharacter_ideographic_strokes_table): Deleted.
1967         (Vcharacter_total_strokes_table): Deleted.
1968         (Vcharacter_morohashi_daikanwa_table): Deleted.
1969         (Vcharacter_decomposition_table): Deleted.
1970         (Qname): Deleted because it is duplicated.
1971         (Qideographic_radical): Deleted.
1972         (Qideographic_strokes): Deleted.
1973         (Qtotal_strokes): Deleted.
1974         (Qmorohashi_daikanwa): Deleted.
1975         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1976         `ideographic-radical', `ideographic-strokes', `total-strokes',
1977         `morohashi-daikanwa' and `->decomposition'.
1978         (Fget_char_attribute): Likewise.
1979         (Fput_char_attribute): Likewise; use `make-vector' instead of
1980         `make_older_vector' for `->decomposition' value.
1981         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1982         `ideograph-daikanwa'.
1983         (syms_of_mule_charset): Delete builtin symbols `name',
1984         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1985         `morohashi-daikanwa'.
1986         (vars_of_mule_charset): Don't setup
1987         `Vcharacter_ideographic_radical_table',
1988         `Vcharacter_ideographic_strokes_table',
1989         `Vcharacter_total_strokes_table',
1990         `Vcharacter_morohashi_daikanwa_table' and
1991         `Vcharacter_decomposition_table'.
1992
1993 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994
1995         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1996         `make_older_vector', `make_vector_newer_1' and
1997         `make_vector_newer'.
1998
1999         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2000         `make_older_vector' and `make_vector_newer'.
2001
2002         * config.h.in (HAVE_GGC): New macro.
2003
2004 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * mule-charset.c (struct char_attribute_list_closure): New
2007         structure in UTF-2000.
2008         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2009         (Fchar_attribute_list): Likewise.
2010         (Fset_charset_mapping_table): Use `make_vector_newer'.
2011         (Fdecode_builtin_char): New function in UTF-2000.
2012         (syms_of_mule_charset): Add new function `char-attribute-list' and
2013         `decode-builtin-char' in UTF-2000.
2014
2015         * lisp.h (make_vector_newer): New prototype.
2016
2017         * alloc.c (make_vector_newer_1): New function.
2018         (make_vector_newer): New function.
2019
2020 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2021
2022         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2023         50100)'.
2024
2025 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2026
2027         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2028         (Vcharacter_attribute_table): Deleted.
2029         (Vcharacter_name_table): Deleted.
2030         (put_char_attribute): Deleted.
2031         (remove_char_attribute): Deleted.
2032         (struct char_attribute_alist_closure): New structure.
2033         (add_char_attribute_alist_mapper): New function.
2034         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2035         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2036         (Fget_char_attribute): Likewise.
2037         (Fput_char_attribute): Likewise.
2038         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2039         of `remove_char_attribute'.
2040         (Fdefine_char): Return character.
2041         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2042         and `Vcharacter_name_table'.
2043         (complex_vars_of_mule_charset): Likewise
2044         `Vchar_attribute_hash_table'.
2045
2046 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * character.h (CHARC_CHARSET): New macro.
2049         (CHARC_CHARSET_ID): New macro.
2050         (CHARC_CODE_POINT): New macro.
2051         (CHARC_COLUMNS): New macro.
2052         (CHARC_TO_CHAR): New inline function.
2053         (CHARC_EQ): New inline function.
2054         (CHARC_ASCII_EQ): New inline function.
2055         (CHARC_IS_SPACE): New inline function.
2056         (ASCII_TO_CHARC): New inline function.
2057
2058         * char-ucs.h (encode_char_2): Deleted.
2059         (ENCODE_CHAR): Use `encode_char_1' again.
2060         (breakup_char_1): Likewise.
2061         (CHAR_TO_CHARC): New inline function.
2062
2063         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2064
2065 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2068         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2069         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2070         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2071         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2072         `CHARC_IS_SPACE'.
2073         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2074
2075         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2076         `CHARC_CODE_POINT'.
2077         (x_output_display_block): Use `CHARC_CHARSET' and
2078         `CHARC_ASCII_EQ'.
2079
2080         * redisplay-tty.c (tty_output_display_block): Use
2081         `CHARC_ASCII_EQ'.
2082         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2083
2084         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2085
2086         * insdel.c (find_charsets_in_charc_string): Use
2087         `CHARC_CHARSET_ID'.
2088         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2089         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2090         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2091         (convert_charc_string_into_malloced_string): Likewise.
2092
2093 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2096         instead of <Emchar_dynarr *> for buf; use
2097         `convert_bufbyte_string_into_charc_dynarr' instead of
2098         `convert_bufbyte_string_into_emchar_dynarr'; use
2099         `find_charsets_in_charc_string' instead of
2100         `find_charsets_in_emchar_string'.
2101
2102         * redisplay.h:
2103         - Include "character.h".
2104         (struct rune): New member `cglyph'; delete member `chr'.
2105
2106         * redisplay.c (redisplay_text_width_charc_string): New function;
2107         delete `redisplay_text_width_emchar_string'.
2108         (rtw_charc_dynarr): New variable; renamed from
2109         `rtw_emchar_dynarr'.
2110         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2111         `rtw_emchar_dynarr'; use
2112         `convert_bufbyte_string_into_charc_dynarr' instead of
2113         `convert_bufbyte_string_into_emchar_dynarr'; use
2114         `redisplay_text_width_charc_string' instead of
2115         `redisplay_text_width_emchar_string'.
2116         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2117         instead of `rtw_emchar_dynarr'; use
2118         `convert_bufbyte_string_into_charc_dynarr' instead of
2119         `convert_bufbyte_string_into_emchar_dynarr'.
2120         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2121         `redisplay_text_width_charc_string' instead of
2122         `redisplay_text_width_emchar_string'.
2123         (create_text_block): Modify for <struct rune> change.
2124         (generate_formatted_string_db): Likewise.
2125         (create_string_text_block): Likewise.
2126         (pixel_to_glyph_translation): Likewise.
2127
2128         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2129         instead of <const Emchar *>.
2130         (x_text_width): Likewise.
2131         (x_output_display_block): Use <Charc_dynarr *> instead
2132         <Emchar_dynarr *>; modify for <structure rune> change.
2133         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2134         *>.
2135
2136         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2137         <const Emchar *>; use `charc_string_displayed_columns' instead of
2138         `emchar_string_displayed_columns'.
2139         (tty_output_display_block): Use <Charc_dynarr *> instead of
2140         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2141         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2142         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2143         `tty_output_emchar_dynarr_dynarr'.
2144         (tty_output_charc_dynarr): New function; delete
2145         `tty_output_charc_dynarr'.
2146
2147         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2148         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2149         <Emchar_dynarr *> for buf; use
2150         `convert_bufbyte_string_into_charc_dynarr' instead of
2151         `convert_bufbyte_string_into_emchar_dynarr'.
2152
2153         * frame.c (title_string_charc_dynarr): New variable; renamed from
2154         `title_string_emchar_dynarr'.
2155         (generate_title_string): Use `title_string_charc_dynarr' instead
2156         of `title_string_emchar_dynarr'; use
2157         `convert_charc_string_into_malloced_string' instead of
2158         `convert_emchar_string_into_malloced_string'.
2159         (init_frame): Use `title_string_charc_dynarr' instead of
2160         `title_string_emchar_dynarr'.
2161
2162         * console.h:
2163         - Include "character.h".
2164         (struct console_methods): Use <const Charc *> instead of <const
2165         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2166         <Emchar_dynarr *> in output_string_method.
2167
2168         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2169         <Emchar_dynarr *>.
2170
2171         * console-stream.c (stream_text_width): Use <const Charc *>
2172         instead of <const Emchar *>.
2173
2174         * character.h (Charc_dynarr): New type.
2175
2176         * char-ucs.h (structure Charc): New structure; define new type
2177         `Charc'.
2178
2179         * char-lb.h (DECODE_CHAR): New inline function.
2180         (encode_char_1): New inline function.
2181         (ENCODE_CHAR): New macro.
2182         (structure Charc): New structure; define new type `Charc'.
2183
2184         * char-1byte.h (Vcharset_control_1): New macro.
2185         (Vcharset_latin_iso8859_1): New macro.
2186         (DECODE_CHAR): New inline function.
2187         (encode_char_1): New inline function.
2188         (ENCODE_CHAR): New macro.
2189         (structure Charc): New structure; define new type `Charc'.
2190
2191         * insdel.c (find_charsets_in_charc_string): New function; delete
2192         `find_charsets_in_emchar_string'.
2193         (charc_string_displayed_columns): New function; delete
2194         `emchar_string_displayed_columns'.
2195         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2196         `convert_bufbyte_string_into_emchar_dynarr'.
2197         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2198         `convert_charc_string_into_bufbyte_dynarr'.
2199         (convert_charc_string_into_malloced_string): New function; delete
2200         `convert_charc_string_into_malloced_string'.
2201
2202         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2203         `find_charsets_in_emchar_string'.
2204         (charc_string_displayed_columns): New prototype; delete
2205         `emchar_string_displayed_columns'.
2206         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2207         `convert_charc_string_into_bufbyte_dynarr'.
2208         (convert_charc_string_into_malloced_string): New prototype; delete
2209         `convert_charc_string_into_malloced_string'.
2210
2211 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2214
2215 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2216
2217         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2218
2219         * char-ucs.h: Use <short> for <Charset_ID>.
2220
2221         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2222         <Charset_ID>.
2223
2224 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2227         to 0.16.
2228
2229 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2232         variable.
2233         (Qmorohashi_daikanwa): New variable.
2234         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2235         for `morohashi-daikanwa' attribute.
2236         (Fget_char_attribute): Likewise.
2237         (Fput_char_attribute): Likewise.
2238         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2239         has the same value of `ideograph-daikanwa'.
2240         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2241         (vars_of_mule_charset): Setup
2242         `Vcharacter_morohashi_daikanwa_table'.
2243
2244 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245
2246         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2247         attributes.
2248         (add_charset_to_list_mapper): Add `key' instead of
2249         `XCHARSET_NAME (value)' to return aliases.
2250
2251 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2254         variable.
2255         (Vcharacter_ideographic_strokes_table): New variable.
2256         (Qideographic_radical): New variable.
2257         (Qideographic_strokes): New variable.
2258         (Fchar_attribute_alist): Use
2259         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2260         attribute; use `Vcharacter_ideographic_strokes_table' for
2261         `ideographic-strokes' attribute.
2262         (Fget_char_attribute): Likewise.
2263         (Fput_char_attribute): Likewise.
2264         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2265         `ideographic-strokes'.
2266         (vars_of_mule_charset): Setup
2267         `Vcharacter_ideographic_radical_table' and
2268         `Vcharacter_ideographic_strokes_table'.
2269
2270 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271
2272         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2273         (Qtotal_strokes): New variable.
2274         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2275         `total-strokes' attribute.
2276         (Fget_char_attribute): Likewise.
2277         (Fput_char_attribute): Likewise.
2278         (syms_of_mule_charset): Add new symbol `total-strokes'.
2279         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2280
2281 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2282
2283         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2284         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2285         are found.
2286         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2287         `->decomposition' attribute.
2288         (Fput_char_attribute): Likewise.
2289         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2290
2291 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * mule-charset.c (decoding_table_check_elements): New function.
2294         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2295
2296 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297
2298         * mule-charset.c (Fset_charset_mapping_table): Use
2299         `put_char_ccs_code_point'.
2300
2301 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2302
2303         * mule-charset.c (decoding_table_put_char): New inline function.
2304         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2305
2306 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2309         (XCHARSET_BYTE_SIZE): New macro.
2310         (decoding_table_remove_char): New inline function.
2311         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2312         `decoding_table_remove_char'.
2313         (remove_char_ccs): Use `decoding_table_remove_char'.
2314         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2315
2316 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2317
2318         * mule-charset.c (Vcharacter_name_table): New variable.
2319         (Qname): New variable.
2320         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2321         attribute.
2322         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2323         `Vcharacter_name_table' for `name' attribute.
2324         (Fremove_char_attribute): Use function `remove_char_ccs'.
2325         (put_char_ccs_code_point): New function.
2326         (remove_char_ccs): New function.
2327         (syms_of_mule_charset): Add new symbol `name'.
2328         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2329
2330 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2331
2332         * mule-charset.c (make_byte_table): Add new argument `older'.
2333         (make_char_id_table): Likewise.
2334         (copy_char_id_table): Comment out because it is not used.
2335         (put_char_id_table): Modify for `make_byte_table'.
2336         (Fput_char_attribute): Make encoding_table as older object;
2337         inherit older bit of `Vcharacter_composition_table'.
2338         (mark_charset): Don't mark `cs->encoding_table'.
2339         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2340         normal object; make `Vcharacter_composition_table' as an older
2341         object; delete staticpro for `Vcharacter_composition_table'; make
2342         `Vcharacter_variant_table' as a normal object.
2343
2344         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2345         (mark_object): Don't check older object in UTF-2000.
2346
2347         * lrecord.h (struct lrecord_header): Add new member `older' in
2348         UTF-2000.
2349         (set_lheader_implementation): Setup `SLI_header->older' in
2350         UTF-2000.
2351         (set_lheader_older_implementation): New macro in UTF-2000.
2352         (OLDER_RECORD_P): New macro in UTF-2000.
2353         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2354         (alloc_older_lcrecord): New prototype in UTF-2000.
2355         (alloc_older_lcrecord_type): New macro in UTF-2000.
2356
2357 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2358
2359         * mule-charset.c (byte_table_description): Use
2360         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2361         (char_id_table_description): Delete bogus `, 1'.
2362         (Fget_char_attribute): Refer encoding_table of each coded-charset
2363         to get value of coded-charset attribute of a character.
2364         (Fput_char_attribute): Use `make_older_vector' instead of
2365         `make_vector'; use encoding_table of each coded-charset to store
2366         value of coded-charset attribute of a character.
2367         (Fremove_char_attribute): Use encoding_table of each coded-charset
2368         to store value of coded-charset attribute of a character.
2369         (mark_charset): Mark `cs->encoding_table'; don't mark
2370         `cs->decoding_table'.
2371         (charset_description): Add description of new member
2372         `encoding_table'.
2373         (make_charset): Initialize `encoding_table'.
2374
2375         * char-ucs.h (struct Lisp_Charset): Add new member
2376         `encoding_table'.
2377         (CHARSET_ENCODING_TABLE): New macro.
2378         (XCHARSET_ENCODING_TABLE): New macro.
2379         (charset_code_point): New implementation.
2380         (encode_char_1): Likewise.
2381
2382         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2383         (disksave_object_finalization_1): Call finalizers of
2384         `all_older_lcrecords' in UTF-2000.
2385         (make_older_vector): New function in UTF-2000.
2386         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2387         UTF-2000.
2388
2389         * lisp.h (make_older_vector): New prototype in UTF-2000.
2390
2391 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * lrecord.h (enum lrecord_type): Rename
2394         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2395
2396         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2397         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2398         `get_char_code_table'.
2399
2400         * mule-charset.c (mark_char_id_table): Renamed from
2401         `mark_char_code_table'.
2402         (char_id_table_equal): Renamed from `char_code_table_equal'.
2403         (char_id_table_hash): Renamed from `char_code_table_hash'.
2404         (make_char_id_table): Renamed from `make_char_code_table'.
2405         (copy_char_id_table): Renamed from `copy_char_code_table'.
2406         (get_char_id_table): Renamed from `get_char_code_table'.
2407         (put_char_id_table): Renamed from `put_char_code_table'.
2408         (to_char_id): Renamed from `to_char_code'.
2409
2410         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2411         `Lisp_Char_Code_Table'.
2412         (char_id_table): Renamed from `char_code_table'.
2413         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2414         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2415         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2416         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2417         (get_char_id_table): Renamed from `get_char_code_table'.
2418
2419 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2420
2421         * lrecord.h (enum lrecord_type): Rename
2422         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2423
2424         * mule-charset.c (mark_byte_table): Renamed from
2425         `mark_char_byte_table'.
2426         (byte_table_equal): Renamed from `char_byte_table_equal'.
2427         (byte_table_hash): Renamed from `byte_table_hash'.
2428         (make_byte_table): Renamed from `make_byte_table'.
2429         (copy_byte_table): Renamed from `copy_char_byte_table'.
2430
2431         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2432         `Lisp_Char_Byte_Table'.
2433         (byte_table): Renamed from `char_byte_table'.
2434         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2435         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2436         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2437         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2438
2439 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2440
2441         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2442         (dfc_convert_to_internal_format): Likewise.
2443         
2444         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2445         * text-coding.c (Fcoding_system_alias_p): New function.
2446         * text-coding.c (Fcoding_system_aliasee): New function.
2447         * text-coding.c (append_suffix_to_symbol): New function.
2448         * text-coding.c (dangling_coding_system_alias_p): New function.
2449         * text-coding.c (Ffind_coding_system):
2450         * text-coding.c (Fcopy_coding_system):
2451         * text-coding.c (encode_coding_no_conversion):
2452         * text-coding.c (syms_of_file_coding):
2453         * text-coding.c (vars_of_file_coding):
2454         Rewrite coding system alias code.
2455         Allow nested aliases, like symbolic links.
2456         Allow redefinition of coding system aliases.
2457         Prevent existence of dangling coding system aliases.
2458         Eliminate convert_to_external_format.
2459         Eliminate convert_to_internal_format.
2460         
2461         * text-coding.c: Change enum eol_type to eol_type_t.
2462
2463 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2464
2465         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2466         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2467
2468         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2469         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2470
2471 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2472
2473         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2474         `ideograph-daikanwa'.
2475
2476         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2477         (Vcharset_ucs_bmp): Likewise.
2478         (Vcharset_mojikyo): Add new extern variable definition.
2479         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2480         (Vcharset_latin_iso8859_3): Likewise.
2481         (Vcharset_latin_iso8859_4): Likewise.
2482         (Vcharset_latin_iso8859_9): Likewise.
2483         (Vcharset_latin_viscii_lower): Likewise.
2484         (Vcharset_latin_viscii_upper): Likewise.
2485         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2486         `mojikyo' code-point is used to decode.
2487         (encode_char_2): New function [to convert `mojikyo' code-point to
2488         Mojikyo font encoding].
2489         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2490         (breakup_char_1): Likewise.
2491         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2492
2493 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2494
2495         * text-coding.c (Fmake_coding_system): Add document about
2496         `disable-composition' property.
2497
2498 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2499
2500         * text-coding.c (Qdisable_composition): New variable; delete
2501         `Qcomposite'.
2502         (Fmake_coding_system): Add new property `disable-composite';
2503         delete property `composite'.
2504         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2505         instead of `!CODING_SYSTEM_COMPOSITE'.
2506         (syms_of_file_coding): Add new symbol `disable-composition';
2507         delete symbol `composite'.
2508
2509         * file-coding.h (struct Lisp_Coding_System): Add
2510         `disable_composition'; delete `enable_composition'.
2511         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2512         `CODING_SYSTEM_COMPOSITE'.
2513         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2514         `XCODING_SYSTEM_COMPOSITE'.
2515
2516 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2517
2518         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2519         to 0.15.
2520
2521 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2522
2523         * text-coding.c (Qcomposite): New variable.
2524         (Fmake_coding_system): Add new property `composite'.
2525         (struct decoding_stream): Add `combined_char_count',
2526         `combined_chars' and `combining_table' in UTF-2000.
2527         (COMPOSE_FLUSH_CHARS): New macro.
2528         (COMPOSE_ADD_CHAR): New macro.
2529         (reset_decoding_stream): Reset `str->combined_char_count' and
2530         `str->combining_table' in UTF-2000.
2531         (decode_coding_iso2022): Modify for character-decomposition.
2532         (syms_of_file_coding): Add new symbol `composite'.
2533
2534 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2535
2536         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2537         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2538         of `Vcharacter_composition_table' if `->decomposition' property
2539         has only 1 element.
2540         (Qlatin_tcvn5712): New variable.
2541         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2542         (complex_vars_of_mule_charset): Add new coded-charset
2543         `latin-tcvn5712'.
2544
2545         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2546
2547 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2548
2549         * file-coding.h (struct Lisp_Coding_System): Add
2550         `enable_composition'.
2551         (CODING_SYSTEM_COMPOSITE): New macro.
2552         (XCODING_SYSTEM_COMPOSITE): New macro.
2553
2554 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2555
2556         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2557
2558 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2559
2560         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2561         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2562
2563 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2564
2565         * mule-charset.c (Vcharset_mojikyo): New variable.
2566         (Fdefine_char): Don't use coded-charset which does not have
2567         non-builtin character range to allocate character-id.
2568         (Qmojikyo): New variable.
2569         (syms_of_mule_charset): Add new symbol `mojikyo'.
2570         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2571
2572         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2573         (LEADING_BYTE_MOJIKYO): New macro.
2574         (MIN_CHAR_MOJIKYO): New macro.
2575         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2576         (MAX_CHAR_MOJIKYO): New macro.
2577
2578 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2579
2580         * mule-charset.c (remove_char_attribute): Fixed.
2581
2582 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2583
2584         * mule-charset.c (remove_char_attribute): New function.
2585         (Fremove_char_attribute): New function.
2586         (encode_builtin_char_1): Comment out builtin-support for
2587         greek-iso8859-7 and cyrillic-iso8859-5.
2588         (Fdecode_char): Check `code' is an integer.
2589         (syms_of_mule_charset): Add `remove-char-attribute'.
2590         (MIN_CHAR_GREEK): Deleted.
2591         (MAX_CHAR_GREEK): Likewise.
2592         (MIN_CHAR_CYRILLIC): Likewise.
2593         (MAX_CHAR_CYRILLIC): Likewise.
2594         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2595         MAX_CHAR_GREEK for `greek-iso8859-7'.
2596
2597         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2598         (MAX_CHAR_GREEK): Likewise.
2599         (MIN_CHAR_CYRILLIC): Likewise.
2600         (MAX_CHAR_CYRILLIC): Likewise.
2601
2602 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2603
2604         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2605         format is used without `ucs' property.
2606         (Fdecode_char): Fix problem with GR representation.
2607         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2608         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2609
2610 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2611
2612         * mule-charset.c (make_builtin_char): New function.
2613         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2614         (Fset_charset_mapping_table): Modify for new representation of
2615         code-point.
2616         (Fdecode_char): New function.
2617         (syms_of_mule_charset): Add new builtin function `decode-char' in
2618         UTF-2000.
2619
2620         * char-ucs.h (make_builtin_char): New prototype.
2621         (DECODE_CHAR): New inline function.
2622         (MAKE_CHAR): Use `DECODE_CHAR'.
2623
2624 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2625
2626         * text-coding.c (parse_charset_conversion_specs): Use
2627         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2628         `XCHARSET_TYPE'.
2629         (iso2022_designate): Likewise.
2630
2631         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2632         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2633
2634         * mule-charset.c (Vcharset_ucs): New variable.
2635         (print_charset): Change design; use `CHARSET_CHARS' and
2636         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2637         (make_charset): Change signature to specify `chars' and
2638         `dimension' instead of `type'.
2639         (range_charset_code_point): Modify for 256^n-set.
2640         (encode_builtin_char_1): Encode as `ucs' in default.
2641         (Fmake_charset): Modify for `make_charset'.
2642         (Fmake_reverse_direction_charset): Likewise.
2643         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2644         UTF-2000.
2645         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2646         for `make_charset'.
2647
2648         * char-ucs.h (Vcharset_ucs): New variable.
2649         (LEADING_BYTE_UCS): New macro.
2650         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2651         and `chars' to `unsigned short' from `unsigned int'.
2652         (CHARSET_TYPE): Deleted.
2653         (XCHARSET_TYPE): Deleted.
2654
2655 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2656
2657         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2658
2659         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2660         (ENCODE_CHAR): New macro.
2661
2662 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2663
2664         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2665         to 0.14 (Kawachi-Katakami).
2666
2667 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2668
2669         * text-coding.c (char_encode_shift_jis): Modify for
2670         `charset_code_point'.
2671         (char_encode_iso2022): Likewise.
2672
2673         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2674         (integer) instead of list of <Lisp_Object>s (integers) as the
2675         format of code-point of a coded-charset.
2676         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2677         (encode_builtin_char_1): New function; delete
2678         `split_builtin_char'.
2679         (charset_code_point): Return <int> instead of <Lisp_Object>.
2680         (Fsplit_char): Don't use `SPLIT_CHAR'.
2681
2682         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2683         prototype for `split_builtin_char'.
2684         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2685         (charset_code_point): Likewise.
2686         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2687         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2688
2689 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2690
2691         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2692         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2693
2694 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2695
2696         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2697
2698         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2699         (MAX_CHAR_OBS_94x94): Deleted.
2700
2701 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2702
2703         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2704
2705         * char-ucs.h (MAX_CHAR_BMP): New macro.
2706
2707 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2708
2709         * text-coding.c: Sync with r21-2-24.
2710
2711 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2712
2713         * file-coding.c: Modify for UTF-2000.
2714
2715 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2716
2717         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2718         to 0.13 (Takaida).
2719
2720 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2721
2722         * mule-charset.c (split_builtin_char): Delete builtin support for
2723         `katakana-jisx0201'.
2724         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2725         BMP area in builtin representation.
2726
2727         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2728         `Vcharset_katakana_jisx0201'.
2729
2730 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2731
2732         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2733         (Qisolated): New variable.
2734         (Qinitial): New variable.
2735         (Qmedial): New variable.
2736         (Qfinal): New variable.
2737         (Qvertical): New variable.
2738         (Qsmall): New variable.
2739         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2740         `Qvertical' and `Qsmall'.
2741         (Qmojikyo_pj_[1 .. 21]): New variable.
2742         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2743         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2744         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2745         .. 21]'.
2746
2747 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2748
2749         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2750         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2751         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2752
2753 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2754
2755         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2756         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2757         BMP.
2758         (Qjapanese_jisx0208_1990): New variable.
2759         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2760         (complex_vars_of_mule_charset): Add new coded-charset
2761         `japanese-jisx0208-1990'.
2762
2763         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2764         (MIN_CHAR_JIS_X0208_1990): New macro.
2765         (MAX_CHAR_JIS_X0208_1990): New macro.
2766
2767 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2768
2769         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2770         coded-charset is not found.
2771
2772 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2773
2774         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2775         (Fdefine_char): Use `Fmake_char'.
2776
2777 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2778
2779         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2780         (Vcharset_hiragana_jisx0208): Deleted.
2781         (Vcharset_katakana_jisx0208): Deleted.
2782         (Qideograph_daikanwa): New variable.
2783         (Qhiragana_jisx0208): Deleted.
2784         (Qkatakana_jisx0208): Deleted.
2785         (split_builtin_char): Split `ideograph-daikanwa'.
2786         (Fsplit_char): New implementation for UTF-2000.
2787         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2788         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2789         (complex_vars_of_mule_charset): Add new coded-charset
2790         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2791         `katakana-jisx0208'.
2792
2793         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2794         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2795         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2796         (MIN_CHAR_DAIKANWA): New macro.
2797         (MAX_CHAR_DAIKANWA): New macro.
2798
2799 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2800
2801         * data.c (Fstring_to_number): Don't recognize floating point if
2802         base is not 10.
2803
2804 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2805
2806         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2807
2808 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2809
2810         * mule-charset.c (Qsquare): New variable.
2811         (to_char_code): Add `Qsquare'.
2812         (syms_of_mule_charset): Add new symbol `square'.
2813
2814 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2815
2816         * mule-charset.c (Qcircle): New variable.
2817         (to_char_code): Add `Qcircle'.
2818         (syms_of_mule_charset): Add new symbol `circle'.
2819
2820 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2821
2822         * mule-charset.c (Qfont): New variable.
2823         (to_char_code): Add `Qfont'.
2824         (syms_of_mule_charset): Add new symbol `font'.
2825
2826 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2827
2828         * mule-charset.c (Qsub): New variable.
2829         (to_char_code): Add `Qsub'.
2830         (syms_of_mule_charset): Add new symbol `sub'.
2831
2832 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2833
2834         * mule-charset.c (Fput_char_attribute): Convert each element of
2835         VALUE to GL position if ATTRIBUTE is a GR-set,
2836
2837 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2838
2839         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2840         coded-charset is a GR-set.
2841
2842 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2843
2844         * mule-charset.c (Fput_char_attribute): Check each element of
2845         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2846
2847 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2848
2849         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2850         UTF-2000.
2851         (Qethiopic_ucs): New variable in UTF-2000.
2852         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2853         (complex_vars_of_mule_charset): Add new coded-charset
2854         `ethiopic-ucs' in UTF-2000.
2855
2856         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2857         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2858         9)'.
2859         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2860         10)'.
2861         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2862
2863 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2864
2865         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2866         `ascii'.
2867
2868 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2869
2870         * mule-charset.c (Vcharacter_variant_table): New variable.
2871         (Q_ucs): New variable.
2872         (Fchar_variants): New function.
2873         (Fput_char_attribute): Register `->ucs' value to
2874         `Vcharacter_variant_table'.
2875         (syms_of_mule_charset): Add new function `char-variants' and new
2876         symbol `->ucs'.
2877         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2878
2879 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2880
2881         * mule-charset.c (get_char_code_table): Allow negative character
2882         code.
2883         (put_char_code_table): Likewise.
2884         (Vcharacter_composition_table): New variable.
2885         (Q_decomposition): New variable.
2886         (Qwide): New variable.
2887         (Qnarrow): New variable.
2888         (Qcompat): New variable.
2889         (QnoBreak): New variable.
2890         (Qsuper): New variable.
2891         (Qfraction): New variable.
2892         (to_char_code): New function.
2893         (Fget_composite_char): New function.
2894         (Fput_char_attribute): Register `->decomposition' value to
2895         `Vcharacter_composition_table'.
2896         (syms_of_mule_charset): Add new function `get-composite-char', new
2897         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2898         `super' and `fraction'.
2899         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2900
2901 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2902
2903         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2904         character; copy the return value.
2905
2906 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2907
2908         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2909
2910         * mule-charset.c (range_charset_code_point): Must use make_int.
2911         (split_builtin_char): New function.
2912
2913 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2914
2915         * mule-charset.c (char_byte_table): Change name from
2916         "char-code-table" to "char-byte-table".
2917         (mark_char_code_table): New function.
2918         (char_code_table_equal): New function.
2919         (char_code_table_hash): New function.
2920         (char_code_table_description): New constant.
2921         (char_code_table): New type.
2922         (make_char_code_table): New function.
2923         (copy_char_code_table): New function.
2924         (get_char_code_table): Modify for `char_code_table' type.
2925         (put_char_code_table): Likewise.
2926         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2927         (Kashiwara).
2928
2929         * char-ucs.h (char_code_table): New type.
2930         (XCHAR_CODE_TABLE): New macro.
2931         (XSETCHAR_CODE_TABLE): New macro.
2932         (CHAR_CODE_TABLE_P): New macro.
2933         (GC_CHAR_CODE_TABLE_P): New macro.
2934         (struct Lisp_Char_Code_Table): New structure.
2935
2936 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2937
2938         * mule-charset.c (Fmake_charset): Setup byte_offset for
2939         {94|96}^n-set.
2940
2941 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2942
2943         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2944         character.
2945
2946 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2947
2948         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2949         is found.
2950
2951 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2952
2953         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2954         charset, it is regarded as a charset.
2955         (put_char_attribute): New function in UTF-2000.
2956         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2957         charset, mapping-table of the charset is modified.
2958         (Fdefine_char): New function in UTF-2000.
2959         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2960         `Fput_char_attribute'.
2961         (syms_of_mule_charset): Add new function `define-char' and new
2962         symbol `ucs' in UTF-2000.
2963         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2964
2965 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2966
2967         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2968         non-UTF-2000 configuration.
2969
2970 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2971
2972         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2973         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2974
2975         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2976         deleted.
2977         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2978         (Fset_charset_mapping_table): Likewise.
2979
2980         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2981         (CHARSET_ENCODING_TABLE): Delete.
2982         (XCHARSET_ENCODING_TABLE): Delete.
2983         (charset_code_point): New interface.
2984
2985 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2986
2987         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2988         instead of `charset_get_byte1' and `charset_get_byte2'.
2989
2990         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2991         (charset_get_byte2): Deleted.
2992
2993 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2994
2995         * char-ucs.h (SPLIT_CHAR): New inline function.
2996         (breakup_char_1): Use `SPLIT_CHAR'.
2997
2998         * mule-charset.c (range_charset_code_point): New function.
2999         (charset_code_point): New function.
3000
3001         * char-ucs.h (range_charset_code_point): New interface.
3002         (breakup_char_1): Use `range_charset_code_point'.
3003
3004 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3005
3006         * mule-charset.c (Fmake_charset): Delete unused local variable
3007         `code_offset'.
3008
3009         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3010         (breakup_char_1): Find a charset and code-point in
3011         `Vcharacter_attribute_table'.
3012
3013 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3014
3015         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3016         to 0.10 (Yao).
3017
3018 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3019
3020         * mule-charset.c (Vcharacter_attribute_table): New variable.
3021         (Fchar_attribute_alist): New function.
3022         (Fget_char_attribute): New function.
3023         (Fput_char_attribute): New function.
3024         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3025         too.
3026         (syms_of_mule_charset): Add new function `char-attribute-alist',
3027         `get-char-attribute' and `put-char-attribute'.
3028         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3029
3030 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3031
3032         * mule-charset.c (Fmake_charset): Just use
3033         `get_unallocated_leading_byte'.
3034
3035         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3036         sets; don't use final-byte based number for private sets.
3037
3038 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3039
3040         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3041         integer.
3042
3043 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3044
3045         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3046         to 0.9.
3047
3048 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3049
3050         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3051         of `CHAR_LEADING_BYTE' in UTF-2000.
3052
3053         * insdel.c (find_charsets_in_bufbyte_string): Use
3054         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3055         (find_charsets_in_emchar_string): Likewise.
3056
3057         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3058         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3059
3060         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3061         (CHAR_CHARSET_ID): New macro.
3062
3063 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3064
3065         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3066         charset-id - MIN_LEADING_BYTE.
3067         (put_char_table): Likewise.
3068
3069 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3070
3071         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3072         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3073         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3074         (CHARSET_ID_OFFSET): New macro.
3075         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3076         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3077         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3078         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3079         4).
3080         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3081         5).
3082         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3083         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3084         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3085         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3086         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3087
3088 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3089
3090         * mule-charset.c (next_allocated_leading_byte): New variable in
3091         UTF-2000.
3092         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3093         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3094         (get_unallocated_leading_byte): Simply use
3095         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3096         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3097         UTF-2000.
3098
3099         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3100         (MAX_LEADING_BYTE_PRIVATE): New macro.
3101         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3102         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3103
3104 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3105
3106         * mule-charset.c (Fmake_charset): Allocate final-byte based
3107         charset-id for 94-set, 96-set and 94x94-set.
3108
3109 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3110
3111         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3112         ambiguous `else'.
3113         (Fmake_charset): Likewise.
3114         (complex_vars_of_mule_charset): Modify the font registry of
3115         `ucs-bmp' not to match `Ethiopic-Unicode'.
3116
3117 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3118
3119         * mule-charset.c (complex_vars_of_mule_charset): Add font
3120         registory of `ucs-bmp'.
3121
3122 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3123
3124         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3125         coded-charsets in `default-coded-charset-priority-list' when
3126         breaking up a character.
3127
3128         * mule-charset.c (Vcharset_latin_viscii): New variable.
3129         (Qlatin_viscii): New variable.
3130         (make_charset): Don't use `decoding_table'.
3131         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3132         byte_offset.
3133         (Fset_charset_mapping_table): New implementation.
3134         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3135         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3136         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3137         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3138         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3139         charset `latin_viscii'.
3140
3141         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3142         (CHARSET_TYPE_94X94): Change to 1 from 2.
3143         (CHARSET_TYPE_96): Change to 2 from 1.
3144         (CHARSET_TYPE_128): New macro.
3145         (CHARSET_TYPE_128X128): Change to 5 from 4.
3146         (CHARSET_TYPE_256): New macro.
3147         (CHARSET_TYPE_256X256): Change to 7 from 5.
3148         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3149
3150 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3151
3152         * text-coding.c (char_encode_shift_jis): Refer
3153         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3154         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3155
3156         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3157         (char_byte_table_equal): New function in UTF-2000.
3158         (char_byte_table_hash): New function in UTF-2000.
3159         (char_byte_table_description): New constant in UTF-2000.
3160         (char_byte_table): New type in UTF-2000.
3161         (make_char_byte_table): New function in UTF-2000.
3162         (copy_char_byte_table): New function in UTF-2000.
3163         (make_char_code_table): New macro in UTF-2000.
3164         (get_char_code_table): New function in UTF-2000.
3165         (put_char_code_table): New function in UTF-2000.
3166         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3167         (charset_description): Add setting in UTF-2000.
3168         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3169         `CHARSET_TO_BYTE1_TABLE(cs)'.
3170         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3171         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3172         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3173         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3174         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3175         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3176         `CHARSET_TO_BYTE2_TABLE(cs)'.
3177
3178         * char-ucs.h (char_byte_table): New type.
3179         (XCHAR_BYTE_TABLE): New macro.
3180         (XSETCHAR_BYTE_TABLE): New macro.
3181         (CHAR_BYTE_TABLE_P): New macro.
3182         (GC_CHAR_BYTE_TABLE_P): New macro.
3183         (struct Lisp_Char_Byte_Table): New structure.
3184         (get_char_code_table): New interface.
3185         (Emchar_to_byte_table): Deleted.
3186         (get_byte_from_character_table): Deleted.
3187         (struct Lisp_Charset): Add `encoding_table'; delete
3188         `to_byte1_table' and `to_byte2_table'.
3189         (CHARSET_ENCODING_TABLE): New macro.
3190         (CHARSET_TO_BYTE1_TABLE): Deleted.
3191         (CHARSET_TO_BYTE2_TABLE): Deleted.
3192         (XCHARSET_ENCODING_TABLE): New macro.
3193         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3194         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3195
3196 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3197
3198         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3199         `vietnamese-viscii-*'.
3200
3201 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3202
3203         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3204         (Qvietnamese_viscii_upper): New variable.
3205         (Fdefine_charset_alias): New function.
3206         (syms_of_mule_charset): Add new function `define-charset-alias'.
3207         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3208         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3209         `latin-viscii-*'.
3210
3211 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3212
3213         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3214         (MAX_CHAR_OBS_94x94): New macro.
3215         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3216         for 94x94 sets.
3217
3218         * mule-charset.c (put_byte_from_character_table): Change unit size
3219         from 128 to 256.
3220         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3221         not defined.
3222         (Fmake_reverse_direction_charset): Modify dummy argument of
3223         `make_charset' for non-UTF-2000 environment.
3224
3225 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3226
3227         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3228
3229         * mule-charset.c (destroy_byte_from_character_table): New macro.
3230         (latin_jisx0201_to_ucs): Deleted.
3231         (latin_iso8859_2_to_ucs): Deleted.
3232         (latin_iso8859_3_to_ucs): Deleted.
3233         (latin_iso8859_4_to_ucs): Deleted.
3234         (latin_iso8859_9_to_ucs): Deleted.
3235         (latin_viscii_lower_to_ucs): Deleted.
3236         (latin_viscii_upper_to_ucs): Deleted.
3237         (mark_charset): Mark `cs->decoding_table'.
3238         (Fcharset_mapping_table): Fix DOC-string.
3239         (Fset_charset_mapping_table): New function.
3240         (syms_of_mule_charset): Add nwe function
3241         `set-charset-mapping-table'.
3242         (complex_vars_of_mule_charset): Don't setup and use
3243         `latin_*_to_ucs'.
3244
3245 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3246
3247         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3248         charset.
3249
3250 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3251
3252         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3253         (Vcharset_katakana_jisx0208): New variable.
3254         (Qhiragana_jisx0208): New variable.
3255         (Qkatakana_jisx0208): New variable.
3256         (make_charset): Add new argument `byte_offset'.
3257         (charset_get_byte1): Modify for new coded-charset definition; use
3258         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3259         `XCHARSET_BYTE_OFFSET'.
3260         (Fmake_charset): Modify for `make_charset'.
3261         (Fmake_reverse_direction_charset): Likewise.
3262         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3263         `katakana-jisx0208'.
3264         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3265         `.'  in font registry of charset `katakana-jisx0201',
3266         `latin-jisx0201', `vietnamese-viscii-lower' and
3267         `vietnamese-viscii-upper'; modify DOC-string of charset
3268         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3269         registry of charset `japanese-jisx0208' not to use font for JIS
3270         X0208:1990; add new charset `hiragana-jisx0208' and
3271         `katakana-jisx0208'.
3272
3273         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3274         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3275         (struct Lisp_Charset): Add `byte_offset'.
3276         (CHARSET_BYTE_OFFSET): New macro.
3277         (XCHARSET_UCS_MIN): New macro.
3278         (XCHARSET_UCS_MAX): New macro.
3279         (XCHARSET_CODE_OFFSET): New macro.
3280         (XCHARSET_BYTE_OFFSET): New macro.
3281         (MIN_CHAR_HIRAGANA): New macro.
3282         (MAX_CHAR_HIRAGANA): New macro.
3283         (MIN_CHAR_KATAKANA): New macro.
3284         (MAX_CHAR_KATAKANA): New macro.
3285         (MAKE_CHAR): Modify for new coded-charset definition; use
3286         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3287         `XCHARSET_BYTE_OFFSET'.
3288
3289 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3290
3291         * mule-charset.c (CHAR96): Deleted.
3292         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3293         <Lisp_Object>.
3294         (latin_iso8859_2_to_ucs): Likewise.
3295         (latin_iso8859_3_to_ucs): Likewise.
3296         (latin_iso8859_4_to_ucs): Likewise.
3297         (latin_iso8859_9_to_ucs): Likewise.
3298         (latin_viscii_lower_to_ucs): Likewise.
3299         (latin_viscii_upper_to_ucs): Likewise.
3300         (latin_tcvn5712_to_ucs): Commented out.
3301         (make_charset): Change type of argument `decoding_table' from
3302         <Emchar*> to <Lisp_Object> [vector of characters].
3303         (Fmake_charset): Modify for `make_charset'.
3304         (Fmake_reverse_direction_charset): Likewise.
3305         (Fcharset_mapping_table): New function in UTF-2000.
3306         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3307         UTF-2000.
3308         (complex_vars_of_mule_charset): Modify for type change of
3309         `*_to_ucs'; modify for `make_charset'.
3310
3311         * char-ucs.h (struct Lisp_Charset): Change type of
3312         `decoding_table' from <Emchar*> to <Lisp_Object>.
3313         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3314
3315 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3316
3317         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3318         error with non-UTF-2000-Mule.
3319
3320 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3321
3322         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3323         in lisp again].
3324         (Vcharset_chinese_cns11643_4): Likewise.
3325         (Vcharset_chinese_cns11643_5): Likewise.
3326         (Vcharset_chinese_cns11643_6): Likewise.
3327         (Vcharset_chinese_cns11643_7): Likewise.
3328         (Qchinese_cns11643_3): Likewise.
3329         (Qchinese_cns11643_4): Likewise.
3330         (Qchinese_cns11643_5): Likewise.
3331         (Qchinese_cns11643_6): Likewise.
3332         (Qchinese_cns11643_7): Likewise.
3333         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3334         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3335         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3336         (complex_vars_of_mule_charset): Likewise.
3337
3338 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3339
3340         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3341         96-set.
3342         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3343         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3344
3345 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3346
3347         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3348         0xFF60.
3349         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3350         (breakup_char_1): Likewise.
3351
3352         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3353         one of them includes the specified character.
3354
3355 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3356
3357         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3358
3359 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3360
3361         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3362
3363 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3364
3365         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3366         definition for non-UTF-2000 Mule.
3367         (latin_iso8859_3_to_ucs): Likewise.
3368         (latin_iso8859_4_to_ucs): Likewise.
3369         (latin_iso8859_9_to_ucs): Likewise.
3370         (latin_jisx0201_to_ucs): Likewise.
3371         (MIN_CHAR_THAI): Likewise.
3372         (MAX_CHAR_THAI): Likewise.
3373         (MIN_CHAR_GREEK): Likewise.
3374         (MAX_CHAR_GREEK): Likewise.
3375         (MIN_CHAR_HEBREW): Likewise.
3376         (MAX_CHAR_HEBREW): Likewise.
3377         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3378         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3379         (MIN_CHAR_CYRILLIC): Likewise.
3380         (MAX_CHAR_CYRILLIC): Likewise.
3381
3382 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3383
3384         * char-ucs.h (breakup_char_1): Use
3385         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3386         thai-tis620 and katakana-jisx0201 area.
3387
3388 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3389
3390         * char-ucs.h (breakup_char_1): Use
3391         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3392         area.
3393
3394         * text-coding.c (reset_encoding_stream): Fixed.
3395         (char_encode_ucs4): Delete `& 255'.
3396
3397         * char-ucs.h (breakup_char_1): Use
3398         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3399
3400 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3401
3402         * file-coding.c (Fmake_coding_system): Don't set up
3403         `codesys->fixed.size'.
3404         (encode_coding_no_conversion): Don't refer
3405         `str->codesys->fixed.size'.
3406
3407 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3408
3409         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3410         (latin_a_char_to_byte1): Deleted.
3411         (latin_a_char_to_byte2): Deleted.
3412
3413 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3414
3415         * mule-charset.c (make_charset): Add new argument `ucs_min',
3416         `ucs_max' and `code_offset'.
3417         (charset_get_byte1): New implementation [delete specific charset
3418         depended implementations].
3419         (Fmake_charset): Modify for `make_charset'.
3420         (Fmake_reverse_direction_charset): Likewise.
3421         (complex_vars_of_mule_charset): Likewise.
3422
3423         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3424         `code_offset'.
3425         (CHARSET_UCS_MIN): New macro.
3426         (CHARSET_UCS_MAX): New macro.
3427         (CHARSET_CODE_OFFSET): New macro.
3428         (MAKE_CHAR): Delete charset depended definitions [except
3429         katakana-jisx0201].
3430
3431 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3432
3433         * char-ucs.h (breakup_char_1): Use
3434         `Vdefault_coded_charset_priority_list' for C0-Controls,
3435         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3436
3437 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3438
3439         * char-ucs.h (charset_get_byte1): New function.
3440         (XCHARSET_GET_BYTE1): Deleted.
3441         (charset_get_byte2): New function.
3442         (XCHARSET_GET_BYTE2): Deleted.
3443         (Vdefault_coded_charset_priority_list): New external variable.
3444         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3445         `Vdefault_preferred_coded_charset_list'.
3446
3447         * mule-charset.c (charset_get_byte1): New function.
3448         (charset_get_byte2): New function.
3449         (Vdefault_coded_charset_priority_list): New variable.
3450         (vars_of_mule_charset): Add new variable
3451         `default-coded-charset-priority-list'.
3452
3453 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3454
3455         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3456         (XCHARSET_GET_BYTE2): New inline function.
3457         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3458         `XCHARSET_GET_BYTE2'.
3459
3460 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3461
3462         * mule-charset.c (make_charset): Initialize
3463         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3464         NULL if table is not defined.
3465
3466 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3467
3468         * text-coding.c (char_encode_shift_jis): Use
3469         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3470         `ucs_to_latin_jisx0201'.
3471
3472         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3473         (ucs_to_latin_iso8859_2): Deleted.
3474         (ucs_to_latin_iso8859_3): Deleted.
3475         (ucs_to_latin_iso8859_4): Deleted.
3476         (ucs_to_latin_iso8859_9): Deleted.
3477         (ucs_to_latin_viscii_lower): Deleted.
3478         (ucs_to_latin_viscii_upper): Deleted.
3479         (ucs_to_latin_tcvn5712): Deleted.
3480         (make_charset): Add new argument `decoding_table'; set up
3481         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3482         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3483         `decoding_table' is defined in UTF-2000.
3484         (Fmake_charset): Modify for `make_charset'.
3485         (Fmake_reverse_direction_charset): Likewise.
3486         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3487         and `GENERATE_96_SET'.
3488
3489         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3490         (ucs_to_latin_jisx0201): Deleted.
3491         (latin_iso8859_2_to_ucs): Deleted.
3492         (ucs_to_latin_iso8859_2): Deleted.
3493         (latin_iso8859_3_to_ucs): Deleted.
3494         (ucs_to_latin_iso8859_3): Deleted.
3495         (latin_iso8859_4_to_ucs): Deleted.
3496         (ucs_to_latin_iso8859_4): Deleted.
3497         (latin_iso8859_9_to_ucs): Deleted.
3498         (ucs_to_latin_iso8859_9): Deleted.
3499         (latin_viscii_lower_to_ucs): Deleted.
3500         (ucs_to_latin_viscii_lower): Deleted.
3501         (latin_viscii_upper_to_ucs): Deleted.
3502         (ucs_to_latin_viscii_upper): Deleted.
3503         (struct Lisp_Charset): Renamed `encoding_table' to
3504         `to_byte1_table'; add `to_byte2_table'.
3505         (CHARSET_DECODING_TABLE): New macro.
3506         (CHARSET_TO_BYTE1_TABLE): New macro.
3507         (CHARSET_TO_BYTE2_TABLE): New macro.
3508         (XCHARSET_DECODING_TABLE): New macro.
3509         (XCHARSET_TO_BYTE1_TABLE): New macro.
3510         (XCHARSET_TO_BYTE2_TABLE): New macro.
3511         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3512         tables.
3513         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3514         don't use `ucs_to_*' tables.
3515
3516 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3517
3518         * text-coding.c (Fmake_coding_system): Don't set up
3519         `codesys->fixed.size'.
3520         (encode_coding_no_conversion): Use `if' instead of `switch'.
3521
3522         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3523
3524 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3525
3526         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3527         (Fmake_charset): Modify for `make_charset'.
3528         (Fmake_reverse_direction_charset): Likewise.
3529         (complex_vars_of_mule_charset): Likewise.
3530
3531 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3532
3533         * text-coding.c (char_encode_shift_jis): Use table
3534         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3535
3536 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3537
3538         * text-coding.c (text_encode_generic): Use `if' instead of
3539         `switch'.
3540         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3541         decode JIS-Latin.
3542
3543 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3544
3545         * text-coding.c (encode_coding_sjis): Deleted.
3546         (char_encode_shift_jis): New function.
3547         (char_finish_shift_jis): New function.
3548         (reset_encoding_stream): Set up `encode_char' and `finish' for
3549         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3550         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3551         (char_encode_utf8): Treat `eol_type'.
3552
3553 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3554
3555         * file-coding.c (decode_coding_iso2022): Use
3556         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3557
3558 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3559
3560         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3561         to 0.7 (Hirano).
3562
3563 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3564
3565         * char-lb.h (CHAR_COLUMNS): New macro.
3566
3567 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3568
3569         * text-coding.c (char_encode_ucs4): New function.
3570         (char_finish_ucs4): New function.
3571         (encode_coding_ucs4): Deleted.
3572         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3573         (text_encode_generic): Delete local variable `charset' and `half'.
3574         (ucs_to_mule_table): Deleted.
3575         (mule_to_ucs_table): Deleted.
3576         (Fset_ucs_char): Deleted.
3577         (ucs_to_char): Deleted.
3578         (Fucs_char): Deleted.
3579         (Fset_char_ucs): Deleted.
3580         (Fchar_ucs): Deleted.
3581         (decode_ucs4): Deleted.
3582         (mule_char_to_ucs4): Deleted.
3583         (encode_ucs4): Deleted.
3584         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3585         (decode_coding_utf8): Likewise.
3586         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3587         (char_encode_iso2022): Fixed.
3588         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3589         `Fset_char_ucs' and `Fchar_ucs'.
3590         (complex_vars_of_file_coding): Don't initialize
3591         `ucs_to_mule_table'.
3592
3593         * objects-tty.c (tty_initialize_font_instance): Don't use
3594         `XCHARSET_COLUMNS'.
3595
3596         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3597         UTF-2000.
3598
3599         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3600         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3601
3602         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3603         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3604         (emchar_string_displayed_columns): Likewise.
3605
3606         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3607         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3608         (string_column_at_point): Likewise.
3609         (Fmove_to_column): Likewise.
3610
3611         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3612         `encoding_table' and `decoding_table'.
3613         (CHARSET_REP_BYTES): Deleted.
3614         (XCHARSET_REP_BYTES): Deleted.
3615         (XCHARSET_COLUMNS): Deleted.
3616         (CHAR_COLUMNS): New macro.
3617         (lookup_composite_char): Deleted unconditionally.
3618         (composite_char_string): Likewise.
3619
3620 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3621
3622         * char-ucs.h (Emchar_to_byte_table): New type.
3623         (get_byte_from_character_table): New function interface.
3624         (Vcharset_latin_jisx0201): New variable.
3625         (latin_jisx0201_to_ucs): New variable.
3626         (ucs_to_latin_jisx0201): New variable.
3627         (Vcharset_latin_iso8859_2): New variable.
3628         (latin_iso8859_2_to_ucs): New variable.
3629         (ucs_to_latin_iso8859_2): New variable.
3630         (Vcharset_latin_iso8859_3): New variable.
3631         (latin_iso8859_3_to_ucs): New variable.
3632         (ucs_to_latin_iso8859_3): New variable.
3633         (Vcharset_latin_iso8859_4): New variable.
3634         (latin_iso8859_4_to_ucs): New variable.
3635         (ucs_to_latin_iso8859_4): New variable.
3636         (Vcharset_latin_iso8859_9): New variable.
3637         (latin_iso8859_9_to_ucs): New variable.
3638         (ucs_to_latin_iso8859_9): New variable.
3639         (Vcharset_latin_viscii_lower): New variable.
3640         (latin_viscii_lower_to_ucs): New variable.
3641         (ucs_to_latin_viscii_lower): New variable.
3642         (Vcharset_latin_viscii_upper): New variable.
3643         (latin_viscii_upper_to_ucs): New variable.
3644         (ucs_to_latin_viscii_upper): New variable.
3645         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3646         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3647         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3648         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3649         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3650         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3651         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3652         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3653         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3654         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3655
3656         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3657         (Vcharset_latin_viscii_upper): New variable.
3658         (make_byte_from_character_table): New function.
3659         (put_byte_from_character_table): New function.
3660         (get_byte_from_character_table): New function.
3661         (CHAR96): New macro.
3662         (ucs_to_latin_jisx0201): New variable.
3663         (latin_jisx0201_to_ucs): New variable.
3664         (ucs_to_latin_iso8859_2): New variable.
3665         (latin_iso8859_2_to_ucs): New variable.
3666         (ucs_to_latin_iso8859_3): New variable.
3667         (latin_iso8859_3_to_ucs): New variable.
3668         (ucs_to_latin_iso8859_4): New variable.
3669         (latin_iso8859_4_to_ucs): New variable.
3670         (ucs_to_latin_iso8859_9): New variable.
3671         (latin_iso8859_9_to_ucs): New variable.
3672         (ucs_to_latin_viscii_lower): New variable.
3673         (latin_viscii_lower_to_ucs): New variable.
3674         (ucs_to_latin_viscii_upper): New variable.
3675         (latin_viscii_upper_to_ucs): New variable.
3676         (ucs_to_latin_tcvn5712): New variable.
3677         (latin_tcvn5712_to_ucs): New variable.
3678         (Qlatin_viscii_lower): New variable.
3679         (Qlatin_viscii_upper): New variable.
3680         (syms_of_mule_charset): Set up new symbol
3681         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3682         (complex_vars_of_mule_charset): Set up new charset
3683         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3684         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3685         `ucs_to_<CHARSET>' tables.
3686
3687 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3688
3689         * text-coding.c: New file.
3690
3691 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3692
3693         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3694
3695         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3696         (MAKE_CHAR): Modify for `ucs-bmp'.
3697         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3698         non-MULE characters of BMP.
3699
3700 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3701
3702         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3703         to 0.6.
3704
3705 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3706
3707         * lstream.h:
3708         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3709         - Include character.h for `CHAR_ASCII_P'.
3710
3711         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3712
3713         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3714         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3715
3716         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3717         (BYTE_C0_P): Likewise.
3718         (BYTE_C1_P): Likewise.
3719         (Lstream_get_emchar_1): Likewise.
3720         (Lstream_fput_emchar): Likewise.
3721         (Lstream_funget_emchar): Likewise.
3722         (copy_internal_to_external): Likewise.
3723         (copy_external_to_internal): Likewise.
3724
3725         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3726         (BYTE_C0_P): Likewise.
3727         (BYTE_C1_P): Likewise.
3728         (Lstream_get_emchar_1): Likewise.
3729         (Lstream_fput_emchar): Likewise.
3730         (Lstream_funget_emchar): Likewise.
3731         (copy_internal_to_external): Likewise.
3732         (copy_external_to_internal): Likewise.
3733
3734         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3735         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3736
3737         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3738         (BYTE_ASCII_P): Moved to mb-1byte.h.
3739
3740 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3741
3742         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3743
3744         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3745         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3746         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3747         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3748         (VALIDATE_CHARPTR_FORWARD): Likewise.
3749         (simple_charptr_emchar): Moved to mb-multibyte.h.
3750         (simple_set_charptr_emchar): Likewise.
3751         (simple_charptr_copy_char): Likewise.
3752         (non_ascii_charptr_emchar): Likewise.
3753         (non_ascii_set_charptr_emchar): Likewise.
3754         (non_ascii_charptr_copy_char): Likewise.
3755         (charptr_emchar): Moved to mb-*byte.h.
3756         (set_charptr_emchar): Likewise.
3757         (charptr_copy_char): Likewise.
3758
3759         * mb-1byte.h, mb-multibyte.h: New files.
3760
3761 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3762
3763         * mb-utf-8.h (MULTIBYTE): New macro.
3764         (MAX_EMCHAR_LEN): Moved from buffer.h.
3765         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3766
3767         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3768
3769         * mb-lb.h, multibyte.h: New files.
3770
3771         * char-1byte.h (Charset_ID): Moved from buffer.h.
3772         (MIN_LEADING_BYTE): Likewise.
3773         (LEADING_BYTE_ASCII): Likewise.
3774         (NUM_LEADING_BYTES): Likewise.
3775         (CHARSETP): Likewise.
3776         (CHARSET_BY_LEADING_BYTE): Likewise.
3777         (XCHARSET_LEADING_BYTE): Likewise.
3778         (XCHARSET_GRAPHIC): Likewise.
3779         (XCHARSET_COLUMNS): Likewise.
3780         (XCHARSET_DIMENSION): Likewise.
3781         (CHAR_CHARSET): Likewise.
3782         (CHAR_LEADING_BYTE): Likewise.
3783         (BREAKUP_CHAR): Likewise.
3784         (Vcharset_ascii): Likewise.
3785
3786         * buffer.h: Include multibyte.h unconditionally.
3787         (VALID_CHARPTR_P): Moved to multibyte.h.
3788         (ASSERT_VALID_CHARPTR): Likewise.
3789         (REAL_INC_CHARPTR): Likewise.
3790         (REAL_INC_CHARBYTIND): Likewise.
3791         (REAL_DEC_CHARPTR): Likewise.
3792         (INC_CHARPTR): Likewise.
3793         (INC_CHARBYTIND): Likewise.
3794         (DEC_CHARPTR): Likewise.
3795         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3796         (VALIDATE_CHARPTR_FORWARD): Likewise.
3797         (charptr_n_addr): Likewise.
3798         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3799         (simple_charptr_emchar): Moved to multibyte.h.
3800         (simple_set_charptr_emchar): Likewise.
3801         (simple_charptr_copy_char): Likewise.
3802         (non_ascii_charptr_emchar): Likewise.
3803         (non_ascii_set_charptr_emchar): Likewise.
3804         (non_ascii_charptr_copy_char): Likewise.
3805         (charptr_emchar): Likewise.
3806         (set_charptr_emchar): Likewise.
3807         (charptr_copy_char): Likewise.
3808         (charptr_emchar_n): Likewise.
3809         (Charset_ID): Moved to char-1byte.h.
3810         (Vcharset_ascii): Likewise.
3811         (CHAR_CHARSET): Likewise.
3812         (CHAR_LEADING_BYTE): Likewise.
3813         (LEADING_BYTE_ASCII): Likewise.
3814         (NUM_LEADING_BYTES): Likewise.
3815         (MIN_LEADING_BYTE): Likewise.
3816         (CHARSETP): Likewise.
3817         (CHARSET_BY_LEADING_BYTE): Likewise.
3818         (XCHARSET_LEADING_BYTE): Likewise.
3819         (XCHARSET_GRAPHIC): Likewise.
3820         (XCHARSET_COLUMNS): Likewise.
3821         (XCHARSET_DIMENSION): Likewise.
3822         (BREAKUP_CHAR): Likewise.
3823
3824 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3825
3826         * character.h: Add document about interface for characters.
3827
3828         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3829         (MAKE_CHAR): Delete comment about
3830         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3831         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3832         (BREAKUP_CHAR): Modify name of arguments.
3833         (CHAR_CHARSET): Modify name of argument.
3834
3835         * buffer.h: Delete document about Emchar accessors.
3836
3837 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3838
3839         * character.h (CHAR_INTP): Moved from buffer.h
3840         (CHAR_OR_CHAR_INTP): Likewise.
3841         (XCHAR_OR_CHAR_INT): Likewise.
3842         (CHECK_CHAR_COERCE_INT): Likewise.
3843
3844         * buffer.h (CHAR_INTP): Moved to character.h
3845         (CHAR_OR_CHAR_INTP): Likewise.
3846         (XCHAR_OR_CHAR_INT): Likewise.
3847         (CHECK_CHAR_COERCE_INT): Likewise.
3848
3849 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3850
3851         * character.h:
3852         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3853         - Include char-1byte.h, char-lb.h or char-ucs.h.
3854
3855         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3856
3857         * buffer.h: Include character unconditionally.
3858         (valid_char_p): Moved to char-*.h.
3859         (non_ascii_valid_char_p): Moved to char-lb.h.
3860
3861         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3862
3863 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3864
3865         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3866         in UTF-2000 because it is not ported yet and not to use
3867         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3868         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3869         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3870
3871         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3872         (CHAR_ASCII_P): Moved from character.h.
3873
3874         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3875         (CHAR_ASCII_P): Likewise.
3876         (CHAR_FIELD1_MASK): Deleted.
3877         (CHAR_FIELD2_MASK): Deleted.
3878         (CHAR_FIELD3_MASK): Deleted.
3879         (MAX_CHAR_BASIC_LATIN): New macro.
3880         (CHAR_FIELD1): Deleted.
3881         (CHAR_FIELD2_INTERNAL): Deleted.
3882         (CHAR_FIELD3_INTERNAL): Deleted.
3883         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3884         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3885         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3886         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3887         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3888         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3889         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3890         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3891         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3892         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3893         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3894         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3895         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3896         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3897         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3898         (MIN_CHAR_COMPOSITION): Deleted.
3899         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3900         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3901
3902 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3903
3904         * buffer.h: Include mb-utf-8.h in UTF-2000.
3905
3906         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3907
3908         * mb-utf-8.h: New file.
3909
3910 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3911
3912         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3913         instead of `int'.
3914
3915         * mule-charset.h, buffer.h (Charset_ID): New type.
3916
3917 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3918
3919         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3920         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3921         instead of `MULE_CHAR_PRIVATE_OFFSET',
3922         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3923         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3924         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3925
3926         * character.h (Vcharset_japanese_jisx0212): New variable
3927         definition.
3928
3929 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3930
3931         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3932         (charset_by_attributes): Delete array about direction.
3933         (latin_a_char_to_charset): New variable in UTF-2000.
3934         (latin_a_char_to_byte1): New variable in UTF-2000.
3935         (latin_a_char_to_byte2): New variable in UTF-2000.
3936         (Qucs_bmp): New variable.
3937         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3938         `Bufbyte'.
3939         (next_allocated_2_byte_leading_byte): Likewise.
3940         (non_ascii_set_charptr_emchar): Likewise.
3941         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3942         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3943         `charset_by_attributes'.
3944         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3945         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3946         and `CHARSET_BY_LEADING_BYTE'.
3947         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3948         `utf-2000-version' to `vars_of_mule_charset'.
3949         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3950         define `leading-code-private-11' in UTF-2000; move setting of
3951         `utf-2000-version' from `syms_of_mule_charset'.
3952         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3953         UTF-2000.
3954
3955         * character.h (Charset_ID): New type.
3956         (LEADING_BYTE_UCS_BMP): New macro.
3957         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3958         (CHARSET_ID_OFFSET_94): New macro.
3959         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3960         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3961         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3962         final-byte.
3963         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3964         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3965         (CHARSET_ID_OFFSET_96): New macro.
3966         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3967         CHARSET_ID_OFFSET_96 and final-byte.
3968         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3969         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3970         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3971         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3972         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3973         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3974         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3975         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3976         (LEADING_BYTE_THAI_TIS620): Likewise.
3977         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3978         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3979         (CHARSET_ID_OFFSET_94x94): New macro.
3980         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3981         CHARSET_ID_OFFSET_94x94 and final-byte.
3982         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3983         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3984         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3985         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3986         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3987         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3988         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3989         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3990         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3991         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3992         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3993         (CHARSET_TYPE_128X128): New macro.
3994         (CHARSET_TYPE_256X256): New macro.
3995         (XCHARSET_PRIVATE_P): Delete unconditionally.
3996         (charset_by_attributes): Delete array about direction.
3997         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3998         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3999         (MIN_CHAR_94): New macro.
4000         (MAX_CHAR_94): New macro.
4001         (MIN_CHAR_96): New macro.
4002         (MAX_CHAR_96): New macro.
4003         (MIN_CHAR_94x94): New macro.
4004         (MAX_CHAR_94x94): New macro.
4005         (MIN_CHAR_96x96): New macro.
4006         (MAX_CHAR_96x96): New macro.
4007         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4008         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4009         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4010         - 32)'.
4011         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4012         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4013         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4014         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4015         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4016         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4017         `XCHARSET_LEADING_BYTE' to make code-point.
4018         (latin_a_char_to_charset): New variable.
4019         (latin_a_char_to_byte1): New variable.
4020         (latin_a_char_to_byte2): New variable.
4021         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4022         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4023         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4024
4025         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4026         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4027         (find_charsets_in_emchar_string): Likewise.
4028         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4029
4030         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4031         `int'.
4032         (decode_coding_iso2022): Likewise.
4033
4034         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4035         of `unsigned char'.
4036
4037         * redisplay.c (redisplay_text_width_emchar_string): Use
4038         `Charset_ID' instead of `unsigned char'.
4039         (redisplay_frame_text_width_string): Likewise.
4040
4041         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4042         `unsigned char'.
4043
4044         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4045         instead of `unsigned char'.
4046         (face_cachel_charset_font_metric_info): Likewise.
4047
4048         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4049         (get_non_ascii_char_table_value): Likewise.
4050         (get_char_table): Likewise.
4051         (put_char_table): Likewise.
4052         (map_over_other_charset): Likewise.
4053         (map_char_table): Likewise.
4054
4055         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4056         instead of `unsigned char'.
4057
4058 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4059
4060         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4061         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4062
4063         * mule-charset.c (leading_code_private_11): Don't define in
4064         UTF-2000.
4065
4066         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4067         in UTF-2000 because it is not ported yet and not to use
4068         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4069
4070 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4071
4072         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4073
4074 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4075
4076         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4077         in UTF-2000.
4078
4079         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4080         of unsigned char to store leading-byte.
4081
4082         * chartab.c (get_non_ascii_char_table_value): Don't use
4083         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4084
4085         * file-coding.c (encode_coding_big5): Delete bogus implementation
4086         in UTF2000.
4087
4088         * character.h (LEADING_BYTE_*): Delete definition for
4089         non-UTF-2000.
4090         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4091         (LEADING_BYTE_PREFIX_P): Deleted.
4092         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4093         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4094         (BUFBYTE_LEADING_BYTE_P): Deleted.
4095         (CHARSET_PRIVATE_P): Deleted unconditionally.
4096         (rep_bytes_by_first_byte): Deleted unconditionally.
4097         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4098         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4099         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4100         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4101         (CHAR_FIELD2): Deleted.
4102         (CHAR_FIELD3): Deleted.
4103         (MAKE_CHAR): Delete definition for non-UTF-2000.
4104         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4105         (breakup_char_1): New implementation.
4106         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4107         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4108
4109 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4110
4111         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4112         condition.
4113
4114 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4115
4116         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4117         (CHARSET_PRIVATE_P): Likewise.
4118         (XCHARSET_PRIVATE_P): Likewise.
4119         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4120
4121         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4122         UTF2000.
4123         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4124
4125 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4126
4127         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4128         (NUM_LEADING_BYTES): Changed from 128 to 256.
4129         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4130         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4131         UTF2000.
4132         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4133
4134         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4135         UTF2000.
4136         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4137         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4138         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4139         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4140         (Qchinese_cns11643_3): New variable in UTF2000.
4141         (Qchinese_cns11643_4): New variable in UTF2000.
4142         (Qchinese_cns11643_5): New variable in UTF2000.
4143         (Qchinese_cns11643_6): New variable in UTF2000.
4144         (Qchinese_cns11643_7): New variable in UTF2000.
4145         (syms_of_mule_charset): Define `chinese-cns11643-3',
4146         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4147         and `chinese-cns11643-7' in UTF2000.
4148         (vars_of_mule_charset): Initialize
4149         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4150         + 1 in UTF2000.
4151         (complex_vars_of_mule_charset): Setup charset
4152         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4153         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4154
4155 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4156
4157         * mule-charset.c: Move setting for `leading-code-private-11' from
4158         `syms_of_mule_charset' to `vars_of_mule_charset'.
4159
4160 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4161
4162         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4163         and `NUM_LEADING_BYTES' in assert.
4164
4165 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4166
4167         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4168         instead of 128.
4169         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4170         `NUM_LEADING_BYTES' instead of 128.
4171
4172 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4173
4174         * mule-charset.h (charset_by_leading_byte): Use
4175         `NUM_LEADING_BYTES' instead of 128.
4176         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4177
4178         * mule-charset.c (charset_by_leading_byte): Use
4179         `NUM_LEADING_BYTES' instead of 128.
4180         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4181
4182         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4183         128.
4184
4185 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4186
4187         * mule-charset.c (syms_of_mule_charset): Update to
4188         0.4 (Shin-Imamiya).
4189
4190 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4191
4192         * file-coding.c (encode_coding_sjis): New implementation for
4193         UTF2000.  (decode_coding_sjis): Ditto.
4194
4195 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4198         Don't define in UTF2000.
4199
4200         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4201         defined.
4202
4203         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4204         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4205         MULE.
4206
4207 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4208
4209         * config.h.in (CHAR_IS_UCS4): New macro.
4210
4211         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4212         conventional MULE representation.
4213         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4214
4215         * mule-charset.h: Reverted to original.
4216
4217         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4218         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4219         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4220
4221         * character.h: New file.
4222
4223         * file-coding.c (Fmake_coding_system): Set 1 to
4224         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4225         defined.
4226         (encode_coding_no_conversion): New implementation for UTF2000.
4227
4228         * file-coding.h (struct Lisp_Coding_System): Add new member
4229         `fixed.size'.
4230
4231 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4232
4233         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4234         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4235         (encode_coding_iso2022): New implementation for UTF2000.
4236
4237 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4238
4239         * mule-canna.c (c2mu): New implementation for UTF2000.
4240         (m2c): Likewise.
4241
4242 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4243
4244         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4245
4246 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4247
4248         * file-coding.c (reset_encoding_stream): Set 0 to
4249         `str->iso2022.current_char_boundary' in UTF2000.
4250         (encode_utf8): Don't define in UTF2000.
4251         (encode_coding_utf8): New implementation for UTF-8 representation
4252         of UTF2000.
4253         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4254
4255 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4256
4257         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4258
4259         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4260         UTF2000.
4261         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4262
4263         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4264
4265         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4266         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4267         as UTF-8 in UTF2000.
4268         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4269         (non_ascii_valid_char_p): Don't define in UTF2000.
4270         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4271         (Lstream_get_emchar_1): Likewise.
4272         (utf-2000-version): New variable in UTF2000.
4273
4274         * lread.c (read_escape): Add new reader `u'.
4275
4276         * insdel.c (three_to_one_table): Don't define in UTF2000.
4277         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4278         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4279         UTF2000.
4280         (bytind_to_bufpos_func): Likewise.
4281         (buffer_mule_signal_inserted_region): Likewise.
4282         (vars_of_insdel): Don't initialize `three_to_one_table'.
4283         (init_buffer_text): Use `buf->text->mule_size' instead of
4284         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4285         UTF2000.
4286
4287         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4288         UTF-8 representation in UTF2000.
4289         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4290         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4291         (decode_coding_iso2022): Don't define local variable `lb' in
4292         UTF2000; don't use LEADING_BYTE in UTF2000; use
4293         `DECODE_ADD_UCS_CHAR' in UTF2000.
4294         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4295
4296         * config.h.in (UTF2000): New macro.
4297
4298         * buffer.h (struct buffer_text): Add new member `mule_size' and
4299         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4300         (valid_char_p): Return always 1 in UTF2000.
4301         (MAX_EMCHAR_LEN): 6 in UTF2000.
4302         (three_to_one_table): Don't define in UTF2000.
4303         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4304         UTF2000.
4305         (real_bytind_to_bufpos): Likewise.
4306
4307         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4308
4309 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4310
4311         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4312         representation change.
4313         (Vutf_2000_version): New variable.
4314         (leading_code_private_11): New variable.
4315         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4316         `leading-code-private-11'.
4317
4318         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4319         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4320         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4321         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4322         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4323         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4324         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4325         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4326         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4327         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4328         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4329         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4330         (MIN_CHAR_GREEK): New macro.
4331         (MAX_CHAR_GREEK): New macro.
4332         (MIN_CHAR_CYRILLIC): New macro.
4333         (MAX_CHAR_CYRILLIC): New macro.
4334         (MIN_CHAR_HEBREW): New macro.
4335         (MAX_CHAR_HEBREW): New macro.
4336         (MIN_CHAR_THAI): New macro.
4337         (MAX_CHAR_THAI): New macro.
4338         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4339         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4340         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4341         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4342         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4343         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4344         (CHAR_FIELD2): New inline function.
4345         (CHAR_FIELD3): New inline function.
4346         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4347         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4348         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4349         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4350         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4351         (MIN_CHAR_COMPOSITION): Likewise.
4352         (CHAR_LEADING_BYTE): Modified for character representation change.
4353         (MAKE_CHAR): Likewise.
4354
4355         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4356         (Vcharset_greek_iso8859_7): Likewise.
4357         (Vcharset_cyrillic_iso8859_5): Likewise.
4358         (Vcharset_hebrew_iso8859_8): Likewise.
4359         (Vcharset_thai_tis620): Likewise.
4360         (Vcharset_katakana_jisx0201): Likewise.
4361
4362 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
4363
4364         * XEmacs 21.4.1 "Copyleft" is released.
4365
4366 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
4367
4368         * input-method-motif.c (XIM_delete_frame): New callback.
4369         (XIM_init_frame): Register it.
4370
4371 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
4372
4373         * XEmacs 21.4.0 "Solid Vapor" is released.
4374
4375 2001-04-15  Ben Wing  <ben@xemacs.org>
4376
4377         * cmdloop.c (call_command_loop):
4378         Fix braino in bit-rotting code.
4379         
4380 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
4381
4382         * extents.c (Fset_extent_endpoints): Force creation of extent info
4383         in buffer_or_string.
4384
4385         * extents.c (process_extents_for_insertion_mapper): Correctly
4386         check for open-open zero-length extents.
4387
4388 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
4389
4390         * lisp.h: New typedefs Memory_count, Element_count.
4391         * regex.c:
4392         * regex.h:
4393         Sign-compare warning elimination: several unsigned -> signed.
4394         Based on work by Ben Wing <ben@xemacs.org>.
4395
4396 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
4397
4398         * XEmacs 21.2.47 "Zephir" is released.
4399
4400 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
4401
4402         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
4403
4404 2001-04-03  Mike Sperber <mike@xemacs.org>
4405
4406         * search.c: Revert previous patch due because of release.
4407
4408 2001-03-30  Ben Wing  <ben@xemacs.org>
4409
4410         * s\cygwin32.h:
4411         Add missing killpg prototype.
4412
4413         * elhash.c:
4414         Add a comment about fixing problems when a new entry is added
4415         while mapping.
4416
4417         * frame-msw.c (mswindows_init_frame_1):
4418         Fix compile warnings.
4419
4420         * menubar.c (vars_of_menubar):
4421         Provide `menu-accelerator-support' to indicate that we properly
4422         support %_ in menu specifications, so that package code can
4423         conditionalize on this (and remove %_ from menu specifications
4424         on older versions).
4425
4426         * event-msw.c:
4427         * scrollbar-msw.c:
4428         * scrollbar-msw.c (can_scroll):
4429         * scrollbar-msw.h:
4430         Fix handling of mouse wheel under Windows to follow standards --
4431         now scrolls window under pointer, not selected window.
4432
4433 2001-03-31  Mike Sperber <mike@xemacs.org>
4434
4435         * search.c (Freplace_match): Support FSF-style specification of
4436         match subexpression when applied to a buffer.
4437
4438 2001-03-15  Martin Buchholz  <martin@xemacs.org>
4439
4440         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
4441         function to modify KEYMAP, so map over a copy of the hash table.
4442
4443 2001-03-21  Martin Buchholz <martin@xemacs.org>
4444
4445         * XEmacs 21.2.46 "Urania" is released.
4446
4447 2001-03-20  Dan Holmsand  <dan@eyebee.com>
4448
4449         * realpath.c (xrealpath): Make file-truename work with symlinks to
4450         /cygdrive paths on cygwin. Always lowercase drive-letters on
4451         native windows.
4452         (cygwin_readlink): Don't try to find canonical filename unless
4453         file exists.
4454
4455 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
4456
4457         * ChangeLog: Log GTK merge.
4458
4459         * dumper.c:
4460         * select-x.c:
4461         * specifier.c:
4462         * symeval.h:
4463         Revert gratuitous whitespace changes from GTK merge.
4464
4465         * emacs.c: Document end of complex #ifdef @ l. 1495.
4466
4467
4468 2001-03-12  Andy Piper  <andy@xemacs.org>
4469
4470         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
4471         have to do likewise.
4472
4473 2001-03-12  Andy Piper  <andy@xemacs.org>
4474
4475         * sysdep.c: we only support mingw now.
4476
4477 2001-03-09  Andy Piper  <andy@xemacs.org>
4478
4479         * unexcw.c (copy_executable_and_dump_data_section): making approx
4480         overrun a warning only.
4481
4482 2001-03-10  William M. Perry  <wmperry@aventail.com>
4483
4484         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
4485         satisfy Stephen's identical-after-cpp plea.
4486
4487 2001-03-02  Ben Wing  <ben@xemacs.org>
4488
4489         * cmds.c:
4490         * cmds.c (Fforward_char):
4491         * syntax.c:
4492         * window.c:
4493
4494         Augment documentation of the most common motion commands to make
4495         note of the shifted-motion support.
4496         
4497 2001-03-02  Ben Wing  <ben@xemacs.org>
4498
4499         * nt.c (mswindows_fstat):
4500         * nt.c (mswindows_stat):
4501         * search.c (boyer_moore):
4502         Fix compile warnings under Windows.
4503         
4504         * sysdep.c (sys_readdir):
4505         Fix buggy filename-conversion code under Mule.
4506
4507 2001-03-09  William M. Perry  <wmperry@aventail.com>
4508
4509         * Makefile.in.in:
4510         * config.h.in:
4511         * console.c:
4512         * console.h:
4513         * device.c:
4514         * device.h:
4515         * dragdrop.c:
4516         * emacs.c:
4517         * event-stream.c:
4518         * events.c:
4519         * events.h:
4520         * faces.c:
4521         * frame.h:
4522         * general-slots.h:
4523         * glyphs.c:
4524         * gutter.c:
4525         * inline.c:
4526         * lisp.h:
4527         * lrecord.h:
4528         * make-src-depend:
4529         * redisplay-output.c:
4530         * redisplay.c:
4531         * symsinit.h:
4532         * sysfile.h:
4533         * toolbar.c:
4534         * window.c:
4535         The Great GTK Merge.
4536
4537         * ChangeLog.GTK:
4538         * console-gtk.c:
4539         * console-gtk.h:
4540         * device-gtk.c:
4541         * emacs-marshals.c:
4542         * emacs-widget-accessors.c:
4543         * event-gtk.c:
4544         * frame-gtk.c:
4545         * gccache-gtk.c:
4546         * gccache-gtk.h:
4547         * glade.c:
4548         * glyphs-gtk.c:
4549         * glyphs-gtk.h:
4550         * gtk-glue.c:
4551         * gtk-xemacs.c:
4552         * gtk-xemacs.h:
4553         * gui-gtk.c:
4554         * gui-gtk.h:
4555         * menubar-gtk.c:
4556         * native-gtk-toolbar.c:
4557         * objects-gtk.c:
4558         * objects-gtk.h:
4559         * redisplay-gtk.c:
4560         * scrollbar-gtk.c:
4561         * scrollbar-gtk.h:
4562         * select-gtk.c:
4563         * toolbar-gtk.c:
4564         * ui-byhand.c:
4565         * ui-gtk.c:
4566         * ui-gtk.h:
4567         The Great GTK Merge: new files.
4568
4569 2001-02-26  Ben Wing  <ben@xemacs.org>
4570
4571         Reapplied Lstream change.
4572
4573 2001-02-26  Ben Wing  <ben@xemacs.org>
4574
4575         Undid the last change, since it is more controversial than I
4576         thought.  It should be back in at some point soon.
4577         
4578 2001-02-25  Ben Wing  <ben@xemacs.org>
4579
4580         * buffer.c:
4581         * callproc.c (Fold_call_process_internal):
4582         * event-msw.c (ntpipe_slurp_reader):
4583         * event-msw.c (ntpipe_shove_writer):
4584         * event-msw.c (winsock_reader):
4585         * event-msw.c (winsock_writer):
4586         * file-coding.c:
4587         * file-coding.c (detect_eol_type):
4588         * file-coding.c (detect_coding_type):
4589         * file-coding.c (determine_real_coding_system):
4590         * file-coding.c (Fdetect_coding_region):
4591         * file-coding.c (decoding_reader):
4592         * file-coding.c (decoding_writer):
4593         * file-coding.c (mule_decode):
4594         * file-coding.c (Fdecode_coding_region):
4595         * file-coding.c (encoding_reader):
4596         * file-coding.c (encoding_writer):
4597         * file-coding.c (mule_encode):
4598         * file-coding.c (Fencode_coding_region):
4599         * file-coding.c (detect_coding_sjis):
4600         * file-coding.c (decode_coding_sjis):
4601         * file-coding.c (encode_coding_sjis):
4602         * file-coding.c (detect_coding_big5):
4603         * file-coding.c (decode_coding_big5):
4604         * file-coding.c (encode_coding_big5):
4605         * file-coding.c (detect_coding_ucs4):
4606         * file-coding.c (decode_coding_ucs4):
4607         * file-coding.c (encode_coding_ucs4):
4608         * file-coding.c (detect_coding_utf8):
4609         * file-coding.c (decode_coding_utf8):
4610         * file-coding.c (encode_coding_utf8):
4611         * file-coding.c (detect_coding_iso2022):
4612         * file-coding.c (decode_coding_iso2022):
4613         * file-coding.c (encode_coding_iso2022):
4614         * file-coding.c (decode_coding_no_conversion):
4615         * file-coding.c (encode_coding_no_conversion):
4616         * glyphs-x.c (write_lisp_string_to_temp_file):
4617         * gpmevent.c (tty_get_foreign_selection):
4618         * lisp.h:
4619         * lstream.c:
4620         * lstream.c (Lstream_flush_out):
4621         * lstream.c (Lstream_adding):
4622         * lstream.c (Lstream_write_1):
4623         * lstream.c (Lstream_write):
4624         * lstream.c (Lstream_raw_read):
4625         * lstream.c (Lstream_read_more):
4626         * lstream.c (Lstream_read):
4627         * lstream.c (Lstream_unread):
4628         * lstream.c (Lstream_fputc):
4629         * lstream.c (stdio_reader):
4630         * lstream.c (stdio_writer):
4631         * lstream.c (filedesc_reader):
4632         * lstream.c (filedesc_writer):
4633         * lstream.c (lisp_string_reader):
4634         * lstream.c (struct fixed_buffer_stream):
4635         * lstream.c (make_fixed_buffer_input_stream):
4636         * lstream.c (make_fixed_buffer_output_stream):
4637         * lstream.c (fixed_buffer_reader):
4638         * lstream.c (fixed_buffer_writer):
4639         * lstream.c (struct resizing_buffer_stream):
4640         * lstream.c (resizing_buffer_writer):
4641         * lstream.c (dynarr_writer):
4642         * lstream.c (lisp_buffer_reader):
4643         * lstream.c (lisp_buffer_writer):
4644         * lstream.h:
4645         * lstream.h (lstream_implementation):
4646         * lstream.h (struct lstream):
4647         * md5.c (Fmd5):
4648         * process-nt.c (nt_send_process):
4649         * process-unix.c (unix_send_process):
4650         
4651         Correct Lstream lossage due to mixing of signed and unsigned
4652         quantities.  All Lstream uses of size_t and ssize_t are now a
4653         single signed data type Lstream_data_count.  This fixes problems
4654         under Windows with sending large quantities of data to a process,
4655         and may well fix other subtle bugs.
4656
4657 2001-02-23  Martin Buchholz <martin@xemacs.org>
4658
4659         * XEmacs 21.2.45 "Thelxepeia" is released.
4660
4661 2001-02-21  Martin Buchholz  <martin@xemacs.org>
4662
4663         * lisp-union.h (XSETINT): 
4664         (XSETCHAR):
4665         (XSETOBJ): 
4666         Reverse previous change of 2001-02-06.
4667
4668 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
4669
4670         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
4671         buffers.
4672         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
4673         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
4674         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
4675         * regex.c (POS_AS_IN_BUFFER): removed
4676         * regex.c (re_search_2):
4677         * regex.c (re_match_2):
4678         Don't use an offset of 1 when calculating buffer positions, since
4679         `BI_BUF_BEGV' does it already.
4680
4681 2001-02-18  Wim Dumon  <wim@easics.be>
4682
4683         * insdel.c (prepare_to_modify_buffer): Also check for
4684         supersession when clash-detection is enabled. 
4685
4686 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
4687
4688         * regex.c (re_match_2_internal):
4689         Convert temp characters from 'const unsigned char' to 're_char'.
4690         Fix crashing bug with extended characters under mule.
4691         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
4692         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
4693         font-lock, pdump, and new syntax-table code.
4694         * syntax.c (find_start_of_comment):
4695         (find_end_of_comment):
4696         (forward-comment):
4697         Fix crashing bugs involving moving beyond end of buffer.
4698         * syntax.c (find_start_of_comment):
4699         Fixed logic to allow proper detection of cases where the same
4700         character is used to end both a two-char comment start and a
4701         two-char comment end sequence. Fixes `(forward-comment -1)'.
4702         * syntax.c (find_start_of_comment):
4703         Return position just past last comment-end character for all cases
4704         (previously was only done for two-char comment-end sequences).
4705         * syntax.c (forward-comment):
4706         Take value returned from `find_end_of_comment', rather than
4707         incrementing it.
4708         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
4709         Properly deal with BUFFERP (syntax_cache.object)
4710
4711 2001-02-17  Martin Buchholz  <martin@xemacs.org>
4712
4713         * alloc.c (Fgarbage_collect): 
4714         * alloc.c (make_bit_vector_from_byte_vector):
4715         -Wsign-compare-correctness.
4716
4717 2001-02-16  Martin Buchholz  <martin@xemacs.org>
4718
4719         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
4720         (XSETCHAR): Likewise.
4721         (XSETOBJ): Likewise.
4722
4723 2001-02-15  Martin Buchholz  <martin@xemacs.org>
4724
4725         * mule-canna.c (canna-func-delete_previous): 
4726         Rename to canna-func-delete-previous.
4727
4728 2001-02-14  Martin Buchholz  <martin@xemacs.org>
4729
4730         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
4731
4732 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
4733
4734         * font-lock.c (find_context): Fix C++ compile errors introduced by
4735         recent patch
4736
4737 2001-02-13  Martin Buchholz  <martin@xemacs.org>
4738
4739         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
4740         pragma, but earlier ones barf on the same pragma.
4741
4742 2001-02-06  Mike Sperber <mike@xemacs.org>
4743
4744         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
4745         `configure-mule-lisp-directory'.
4746
4747 2001-02-12  Martin Buchholz  <martin@xemacs.org>
4748
4749         Make sure dump-id.c is compiled in the same way as other .c's.
4750         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
4751         * dump-id.h: Remove.
4752         * emacs.c: Move dump-id.h into dumper.h.
4753         * dumper.h: Move dump-id.h into dumper.h.
4754         * Makefile.in.in:
4755         Use standard .c.o rule for building dump-id.o.
4756         Remove preprocessor flags from link command.
4757         Add dump-id.o to ${otherobjs} if PDUMP.
4758
4759 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
4760
4761         Port FSF 20.7 syntax table improvements.
4762         * syntax.c.
4763         * syntax.h.
4764
4765         Fixups for new syntax table stuff.
4766         * dired.c: Include syntax.c.
4767         (Fdirectory_files): Initialize regex_match_object and
4768         regex_emacs_buffer.
4769         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
4770         and Fget_char_property.
4771
4772         Use ported FSF 20.7 syntax table improvements.
4773         * font-lock.c.
4774         * regex.c.
4775         * search.c.
4776         
4777 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4778
4779         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
4780         Unixware's enum boolean from sys/types.h.
4781
4782 2001-02-10  Martin Buchholz  <martin@xemacs.org>
4783
4784         Fix support for building with latest Purify.
4785         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
4786         (PURIFY_FLAGS): Likewise.
4787
4788 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4789
4790         * fileio.c (lisp_string_set_file_times): New.
4791         * fileio.c (Fcopy_file): Use it.
4792         Fixes bug:
4793         (copy-file filename non-ascii-filename t t)
4794         ==> No such file or directory, non-ascii-filename
4795
4796 2001-02-10  Martin Buchholz  <martin@xemacs.org>
4797
4798         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
4799         USHRT_MAX seems clearer than ~0 anyways.
4800
4801 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4802
4803         dumper improvements.  Inspired by Olivier.
4804         * dumper.c (pdump_max_align): New.
4805         * dumper.c (pdump_add_entry): Use pdump_max_align.
4806         * dumper.c (pdump_get_entry_list): Likewise.
4807         * dumper.c (pdump_scan_by_alignment): Likewise.
4808         Don't iterate through unnecessary alignments.
4809         * dumper.c (pdump_file_get): No need to align result of malloc().
4810         * dumper.c (pdump_mallocadr): Remove.  
4811         The result of malloc() is guaranteed to be maximally aligned.
4812         * dumper.c: s/elmt/elt/g;
4813         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
4814         * dumper.c (pdump_alert_undump_object): Likewise.
4815         * dumper.c (pdump_align_table): 
4816         Don't support alignments > 64.
4817         Store ALIGNOF's, not shift counts, in table.
4818
4819 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4820
4821         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
4822         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
4823         * systime.h: Use HAVE_UTIME.
4824         * sysdep.c (struct utimbuf): Remove.
4825         * sysdep.c (set_file_times): Prefer utime() to utimes().
4826         * config.h.in (HAVE_UTIME): New.
4827         * config.h.in (HAVE_UTIME_H): Remove.
4828         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
4829
4830 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4831
4832         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
4833
4834 2001-02-08  Martin Buchholz  <martin@xemacs.org>
4835
4836         * s/irix6-0.h: Use the standard system memmove, not bcopy.
4837
4838 2001-02-08  Martin Buchholz <martin@xemacs.org>
4839
4840         * XEmacs 21.2.44 "Thalia" is released.
4841
4842 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4843
4844         Fixes crashes in kill-emacs on some systems.
4845         * process-unix.c (unix_kill_child_process):
4846         It's OK for kill() to fail with ESRCH.
4847
4848 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4849
4850         Contortions to make .gdbinit tricks work on most systems.
4851         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4852         * alloc.c (dbg_valmask): Make non-const.
4853         * alloc.c (dbg_typemask): Make non-const.
4854         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4855         * alloc.c (dbg_valbits): Make non-const.
4856         * alloc.c (dbg_gctypebits): Make non-const.
4857         * .gdbinit (decode_object): Make it work with AIX cc.
4858
4859 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4860
4861         * elhash.c (make_general_lisp_hash_table):
4862         Use simpler and more efficient calloc to clear entries.
4863
4864 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4865
4866         * window.c (window_scroll): Work around an AIX C compiler bug.
4867         Fixes 'scroll-up' does nothing problem with xlC.
4868
4869 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4870
4871         * .gdbinit: Remove obsolete comment.
4872
4873 2001-01-31  Mike Alexander  <mta@arbortext.com>
4874
4875         * select.c (Fown_selection_internal): Set owned_p for device
4876         method correctly.
4877
4878 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4879
4880         Port to g++ 2.97.
4881         "not" cannot be used as a macro name as it is an operator in C++
4882         * config.h.in: Stop #defining `not'.
4883         * chartab.c (check_category_char): not ==> not_p
4884         * chartab.h: Likewise.
4885         * regex.c (re_match_2_internal): Likewise.
4886
4887 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4888
4889         * lisp-disunion.h: Fix up comments.
4890
4891 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4892
4893         * keymap.c (define_key_check_and_coerce_keysym):
4894         (syms_of_keymap):
4895         Support mouse-6 and mouse-7 bindings in the obvious way.
4896
4897 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4898
4899         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4900
4901 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4902
4903         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4904         Previous patch missed DEFVAR_INT_MAGIC.
4905         Make sure future DEFVAR_foo use correct types.
4906         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4907         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4908         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4909         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4910         * (DEFVAR_INT): Likewise.
4911         * redisplay.c (vertical_clip): Should be of type Fixnum.
4912         * redisplay.c (horizontal_clip): Likewise.
4913         * lisp.h (dump_add_opaque_int): New.
4914         (dump_add_opaque_fixnum): New.
4915
4916 2001-01-29  Andy Piper  <andy@xemacs.org>
4917
4918         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4919         since they can be eval'ed
4920
4921 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4922
4923         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4924         Oops, XEmacs redefines `class'.  Use `typename' instead.
4925
4926 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4927
4928         * dumper.c: Fix C++ compile errors.
4929
4930 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4931
4932         * tparam.c: Use correct prototypes.
4933
4934 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4935
4936         * sysproc.h: #include util.h for NetBSD's openpty.
4937
4938 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4939
4940         More 64-bit correctness.
4941         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4942         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4943         Fix up comments.
4944         This finally finishes the 64-bit SGI port.
4945         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4946         * symbols.c: Fix up comments and type casts.
4947         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4948         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4949         * symeval.h (Fixnum): New type.
4950         * symeval.h (symbol_value_type): Fix up comment.
4951
4952         * commands.h:
4953         * nt.c:
4954         * emacs.c:
4955         * data.c:
4956         * redisplay.c:
4957         * abbrev.c:
4958         * dired-msw.c:
4959         * event-Xt.c:
4960         * eldap.c:
4961         * window.c:
4962         * sound.c:
4963         * event-stream.c:
4964         * eval.c:
4965         * buffer.c:
4966         * mule-canna.c: A million DEFVAR_INTs here...
4967         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4968         * extents.c:
4969         * cmdloop.c:
4970         * lisp.h:
4971         * select-x.c:
4972         * console-x.h:
4973         * event-msw.c:
4974         * mule-wnnfns.c:
4975         * hpplay.c:
4976         * ralloc.c:
4977         * alloc.c:
4978         * keymap.c:
4979         * profile.c:
4980         s/int/Fixnum/g in DEFVAR_INT declarations.
4981
4982 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4983
4984         Port pdump to SGI alignment-sensitive environment.
4985         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4986         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4987         properly aligned.
4988         Define and use aligned reading and writing macros.
4989         Use buffered stdio instead of posix i/o for faster dumping.
4990         Eliminate kludgy 256 byte space for header.
4991         Read and write from dump file using structs for alignment safety.
4992         * dumper.c (pdump_align_stream): New.
4993         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4994         * dumper.c (PDUMP_READ_ALIGNED): New.
4995         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4996         * dumper.c (pdump_static_Lisp_Object): New struct.
4997         * dumper.c (pdump_static_pointer): New struct.
4998         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4999         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
5000         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
5001         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
5002
5003         * dumper.c (pdump_backtrace):
5004         * dumper.c (pdump_get_indirect_count):
5005         * dumper.c (pdump_register_object):
5006         * dumper.c (pdump_register_struct):
5007         * dumper.c (pdump_reloc_one):
5008         * dumper.c (pdump_scan_by_alignment):
5009         * dumper.c (pdump_dump_from_root_struct_ptrs):
5010         * dumper.c (pdump_dump_opaques):
5011         * dumper.c (pdump_dump_rtables):
5012         * dumper.c (pdump_dump_from_root_objects):
5013         * dumper.c (pdump):
5014         * dumper.c (pdump_load_finish):
5015         Use aligned reading and writing.
5016
5017         * dumper.c (pdump_free): Make static.
5018         * dumper.c (pdump_hFile): Likewise.
5019         * dumper.c (pdump_hMap): Likewise.
5020
5021 2001-01-26  Martin Buchholz <martin@xemacs.org>
5022
5023         * XEmacs 21.2.43 "Terspichore" is released.
5024
5025 2001-01-25  Martin Buchholz  <martin@xemacs.org>
5026
5027         Type fiddling for window_config.saved_windows_count
5028         * window.c (struct window_config): 
5029         Make saved_windows_count member unsigned.
5030         * window.c (sizeof_window_config_for_n_windows): 
5031         Make parameter unsigned.
5032         * window.c (mark_window_config):
5033         * window.c (window_config_equal):
5034         * window.c (free_window_configuration):
5035         * window.c (Fset_window_configuration):
5036         * window.c (count_windows):
5037         * window.c (Fcurrent_window_configuration):
5038         * window.c (reinit_vars_of_window):
5039         Update all callers and users.
5040
5041 2001-01-25  Martin Buchholz  <martin@xemacs.org>
5042
5043         Alignment correctness for flexible arrays.
5044         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
5045         Make alignment-correct. Add interesting comments.
5046         * alloc.c (size_vector):
5047         * alloc.c (make_vector_internal):
5048         * alloc.c (make_bit_vector_internal):
5049         * alloc.c (sweep_bit_vectors_1):
5050         * fns.c (size_bit_vector):
5051         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
5052         * window.c (sizeof_window_config_for_n_windows): 
5053         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
5054
5055 2001-01-24  Martin Buchholz  <martin@xemacs.org>
5056
5057         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
5058
5059 2001-01-23  Andy Piper  <andy@xemacs.org>
5060
5061         * select.c (Fown_selection_internal): pass owned_p
5062
5063         * select-msw.c (mswindows_own_selection): New Signature.
5064
5065         * console.h (struct console_methods): add owned_p to
5066         _own_selection.
5067
5068         * select-x.c (x_own_selection): pass owned_p
5069         (hack_motif_clipboard_selection): use owned_p
5070         (vars_of_select_x): new variable -
5071         x_selection_strict_motif_ownership.
5072
5073 2001-01-23  Martin Buchholz  <martin@xemacs.org>
5074
5075         * specifier.h (specifier_data_offset): Remove pointless parens.
5076         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
5077
5078 2001-01-24  Martin Buchholz  <martin@xemacs.org>
5079
5080         Make Lisp_Object sizeof methods be alignment-correct.
5081         pdump must restore objects to the same alignment as the C compiler
5082         assumes.  It really matters on SGIs.
5083         * lstream.c (aligned_sizeof_lstream): New.
5084         (sizeof_lstream): Use aligned_sizeof_lstream.
5085         (Lstream_new): Likewise.
5086         * opaque.c (aligned_sizeof_opaque): New.
5087         (sizeof_opaque): Use aligned_sizeof_opaque.
5088         (make_opaque): Likewise.
5089         * specifier.c (aligned_sizeof_specifier): New.
5090         (sizeof_specifier): Use aligned_sizeof_specifier.
5091         (make_specifier_internal): Likewise.
5092
5093 2001-01-23  Martin Buchholz  <martin@xemacs.org>
5094
5095         * lstream.h (struct lstream): Use max_align_t for trailing data.
5096         * specifier.h (struct Lisp_Specifier): Likewise.
5097
5098 2001-01-22  Martin Buchholz  <martin@xemacs.org>
5099
5100         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
5101         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
5102         (CCL_SUSPEND): Likewise.
5103         (CCL_INVALID_CMD): Likewise.
5104         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
5105         (ccl_driver): Likewise.
5106         (CCL_WRITE_CHAR): Macro hygiene.
5107         (CCL_WRITE_STRING): Macro hygiene.
5108
5109 2001-01-22  Martin Buchholz  <martin@xemacs.org>
5110
5111         Port "portable" dumper to SunOS 4 and HP-UX.
5112         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
5113         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
5114         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
5115
5116 2001-01-22  Martin Buchholz  <martin@xemacs.org>
5117
5118         * lisp.h (ALIGNOF): A better definition for C++.
5119
5120 2001-01-20  Martin Buchholz  <martin@xemacs.org>
5121
5122         Macro hygiene.
5123         Fix printf warnings: int format, long int arg.
5124         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
5125         (PUSH_FAILURE_POINT): Use correct printf formats.
5126         (POP_FAILURE_POINT): Use correct printf formats.  
5127         Use do {...} while (0)
5128
5129 2001-01-20  Martin Buchholz <martin@xemacs.org>
5130
5131         * XEmacs 21.2.42 "Poseidon" is released.
5132
5133 2001-01-20  Martin Buchholz  <martin@xemacs.org>
5134
5135         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
5136
5137 2001-01-19  Martin Buchholz  <martin@xemacs.org>
5138
5139         De-kludgify FIXED_TYPE free list frobbing.
5140         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
5141         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
5142         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
5143         * alloc.c (Lisp_Free): New pseudo lisp object definition.
5144         * alloc.c (LRECORD_FREE_P): New.
5145         * alloc.c (MARK_LRECORD_AS_FREE): New.
5146         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
5147         * alloc.c (STRUCT_FREE_P): Deleted.
5148         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
5149         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
5150         * alloc.c (STRING_CHARS_FREE_P): New.
5151         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
5152         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
5153         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
5154         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
5155         * alloc.c (resize_string): Use new definitions.
5156         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
5157         * alloc.c (verify_string_chars_integrity): Use new definitions.
5158         * alloc.c (compact_string_chars): Use new definitions.
5159         * alloc.c: Update monster comments.
5160         * lrecord.h (lrecord_type): Add some new lrecord types for
5161         alloc.c's use.
5162
5163 2001-01-18  Martin Buchholz  <martin@xemacs.org>
5164
5165         Improve alignment hackery.
5166         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
5167         (max_align_t): Moved from opaque.h - general purpose.
5168         (ALIGN_PTR): Use size_t, not long.
5169         * opaque.h (max_align_t): Move to lisp.h.
5170
5171 2001-01-18  Norbert Koch  <nk@LF.net>
5172
5173         * gui.h: Fix and add prototypes to fix build problems.
5174
5175 2001-01-18  Martin Buchholz  <martin@xemacs.org>
5176
5177         temacs is going away, so `dump-temacs' is now a bad name.
5178         * .dbxrc (dump-temacs): Rename to `dmp'.
5179         * .gdbinit (dump-temacs): Rename to `dmp'.
5180
5181 2001-01-17  Andy Piper  <andy@xemacs.org>
5182
5183         * glyphs.c (print_image_instance): comment to make martin happy.
5184
5185         * glyphs-x.c (x_redisplay_widget): update faces after a frame
5186         change.
5187
5188         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
5189         activation.
5190         (mswindows_tab_control_redisplay): warning suppression.
5191
5192         * glyphs-widget.c (widget_update): re-write to cope with updated
5193         items.
5194         (widget_instantiate): use new gui_item functions.
5195         (tab_control_update): deleted.
5196         (progress_gauge_update): deleted.
5197         (image_instantiator_progress_guage): take out update reference.
5198         (image_instantiator_tree_view): ditto.
5199         (image_instantiator_tab_control): ditto.
5200
5201         * gui.c (widget_gui_parse_item_keywords): new function. Do things
5202         Right the new way.
5203         (gui_item_add_keyval_pair): re-write to cope with descriptors and
5204         return whether anything was changed.
5205         (update_gui_item_keywords): as it sounds.
5206
5207         * gui.h: declare widget_gui_parse_item_keywords.
5208
5209         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
5210         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
5211
5212 2001-01-17  Martin Buchholz <martin@xemacs.org>
5213
5214         * XEmacs 21.2.41 "Polyhymnia" is released.
5215
5216 2001-01-16  Didier Verna  <didier@xemacs.org>
5217
5218         * glyphs.c (image_instantiate): don't use fallbacks when
5219         instantiating a face's background pixmap by inheritance.
5220
5221 2001-01-14  Mike Sperber <mike@xemacs.org>
5222
5223         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
5224         Conditionalize accordingly.
5225
5226 2001-01-16  Martin Buchholz  <martin@xemacs.org>
5227
5228         * dumper.c (pdump_file_get): Fix a compiler warning.
5229
5230 2001-01-15  Martin Buchholz  <martin@xemacs.org>
5231
5232         Make Purify happy when pdumping.
5233         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
5234         iniitalizing all bits of new lisp object memory.
5235         * symbols.c (Fmake_local_variable): Likewise.
5236         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
5237         * symbols.c (Fdefvaralias): Likewise.
5238         * mule-charset.c (vars_of_mule_charset): Likewise.
5239
5240 2001-01-15  Martin Buchholz  <martin@xemacs.org>
5241         Add the `-nd' flag when running pre-dump operations under the debugger.
5242         * .dbxrc (run-temacs): Add `-nd'.
5243         * .dbxrc (update-elc): Likewise.
5244         * .dbxrc (dump-temacs): Likewise.
5245         * .gdbinit (run-temacs): Likewise.
5246         * .gdbinit (check-temacs): Likewise.
5247         * .gdbinit (update-elc): Likewise.
5248         * .gdbinit (dump-temacs): Likewise.
5249
5250 2001-01-14  Martin Buchholz  <martin@xemacs.org>
5251
5252         Allow building 64-bit executables on AIX with GNU malloc, e.g.
5253         export OBJECT_MODE=64
5254         configure --pdump --use-union-type=no
5255         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
5256         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
5257
5258         * miscplay.c (sndcnv8U_2mono):
5259         Avoid two uses of `++' in the same expression.
5260         Suppresses a GCC warning.
5261
5262 2001-01-13  Martin Buchholz  <martin@xemacs.org>
5263
5264         Make sure future compilers don't miscompile alloc.c.
5265         * alloc.c:
5266         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
5267         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
5268
5269 2001-01-12  Martin Buchholz  <martin@xemacs.org>
5270
5271         * dumper.c: A little post-pdump-rename comment fixup.
5272
5273 2001-01-09  Jerry James  <james@eecs.ku.edu>
5274
5275         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
5276
5277 2001-01-13  Martin Buchholz  <martin@xemacs.org>
5278
5279         * *.[ch]: Globally rename symbols using the following `pdump-rename'
5280         script:
5281         #!/bin/sh
5282         replace_symbol () {
5283           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
5284         }
5285
5286         replace_symbol pdump_wire_lists pdump_weak_object_chains
5287         replace_symbol pdump_wire_list dump_add_weak_object_chain
5288
5289         replace_symbol pdump_wires pdump_root_objects
5290         replace_symbol pdump_wire dump_add_root_object
5291
5292         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
5293         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
5294
5295         replace_symbol dumpstructinfos pdump_root_struct_ptrs
5296         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
5297         replace_symbol dumpstructinfo pdump_root_struct_ptr
5298         replace_symbol dumpstruct dump_add_root_struct_ptr
5299
5300         replace_symbol dumpopaque dump_add_opaque
5301         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
5302         replace_symbol dumpopaqueinfos pdump_opaques
5303         replace_symbol dumpopaqueinfo pdump_opaque
5304
5305         replace_symbol nb_structdump nb_root_struct_ptrs
5306         replace_symbol nb_opaquedump nb_opaques
5307
5308         replace_symbol align_table pdump_align_table
5309         replace_symbol dump_header pdump_header
5310
5311         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
5312         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
5313
5314
5315 2001-01-12  Martin Buchholz  <martin@xemacs.org>
5316
5317         * s/aix4.h: Keep the C for AIX compiler from overaggressively
5318         optimizing bytecount_to_charcount().
5319
5320 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
5321
5322         * config.h.in:
5323         (HAVE_DLFCN_H): Removed.
5324         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
5325
5326 2001-01-06  Martin Buchholz  <martin@xemacs.org>
5327
5328         Portable dumper maintainability improvements.
5329         * alloc.c (staticpro):
5330         * alloc.c (staticpro_nodump):
5331         * alloc.c (garbage_collect_1):
5332         * alloc.c (reinit_alloc_once_early):
5333         * alloc.c (init_alloc_once_early):
5334         * alloc.c: Move dumper functions to alloc.c.
5335         * dumper.c (pdump_backtrace):
5336         * dumper.c (pdump_dump_structs):
5337         * dumper.c (pdump_dump_opaques):
5338         * dumper.c (pdump_dump_rtables):
5339         * dumper.c (pdump_dump_wired):
5340         * dumper.c (pdump):
5341         * dumper.c (pdump_load_check):
5342         * dumper.c (pdump_load_finish):
5343         * dumper.c (pdump_file_unmap):
5344         * dumper.c (pdump_file_get):
5345         * dumper.c (pdump_resource_free):
5346         * dumper.c (pdump_resource_get):
5347         * dumper.c (pdump_file_free):
5348         * dumper.c (pdump_file_try):
5349         * dumper.c (pdump_load):
5350         Remove fixed size limits on staticpro(), staticpro_nodump(),
5351         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
5352         Remove custom code for dumping lrecord_implementations_table - use
5353         dumpopaque instead.
5354         Remove (most of the) custom code for dumping staticpros - dump it
5355         like any other dynarr.
5356
5357         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
5358         * dumper.c: Moved functions from alloc.c.
5359         * alloc.c (dumpstruct): Moved to dumper.c.
5360         * alloc.c (dumpopaque): Likewise.
5361         * alloc.c (pdump_wire): Likewise.
5362         * alloc.c (pdump_wire_list): Likewise.
5363
5364         * lisp.h (Dynarr_sizeof): New.
5365         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
5366         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
5367         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
5368
5369         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
5370         * lisp.h (dumpopaque): ditto.
5371         * lisp.h (pdump_wire): ditto.
5372         * lisp.h (pdump_wire_list): ditto.
5373
5374 2001-01-09  Martin Buchholz  <martin@xemacs.org>
5375
5376         * make-src-depend (PrintPatternDeps):
5377         Use `sort' to make output independent of perl version.
5378
5379 2001-01-08  Martin Buchholz  <martin@xemacs.org>
5380
5381         Port to Netbsd 1.5.
5382         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
5383         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
5384
5385 2001-01-03  Didier Verna  <didier@xemacs.org>
5386
5387         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
5388         that `focus_frame' is alive before thinking of calling
5389         `redisplay_redraw_cursor' on it.
5390
5391 2001-01-08  Martin Buchholz <martin@xemacs.org>
5392
5393         * XEmacs 21.2.40 is released.
5394
5395 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
5396
5397         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
5398
5399 2001-01-06  Martin Buchholz  <martin@xemacs.org>
5400
5401         * alloc.c (dbg_valmask): Make const.
5402         * alloc.c (dbg_typemask): Make const.
5403         * alloc.c (dbg_USE_UNION_TYPE): Make const.
5404         * alloc.c (dbg_valbits): Make const.
5405         * alloc.c (dbg_gctypebits): Make const.
5406
5407 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
5408
5409         * redisplay-x.c (x_bevel_area):
5410         redisplay.h (struct rune):
5411         Typo fixes in comments.
5412
5413 2001-01-05  Andy Piper  <andy@xemacs.org>
5414
5415         * glyphs-x.c (x_redisplay_widget): use size changed for offset
5416         adjustment.
5417
5418         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
5419
5420 2001-01-05  Martin Buchholz  <martin@xemacs.org>
5421
5422         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
5423
5424         * mule-ccl.c (stack_idx_of_map_multiple):
5425         Non const global data must not be initialized!
5426         Found by MIYASHITA Hisashi.
5427
5428 2001-01-02  Andy Piper  <andy@xemacs.org>
5429
5430         * frame.c (change_frame_size): make sure frame size is always
5431         marked as changed.
5432
5433         * glyphs.c (image_instance_layout): minor code reuse.
5434
5435         * window.c (Fcurrent_window_configuration): revert previous
5436         change.
5437
5438 2001-01-02  Martin Buchholz  <martin@xemacs.org>
5439
5440         * glyphs.h:
5441         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
5442
5443 2000-12-31  Andy Piper  <andy@xemacs.org>
5444
5445         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
5446         when widget gets unmapped.
5447
5448         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
5449         function. Make sure widgets losing focus don't just drop it.
5450         (handle_focus_event_1): record the widget with focus.
5451
5452 2000-12-31  Andy Piper  <andy@xemacs.org>
5453
5454         * window.c (allocate_window): use
5455         make_image_instance_cache_hash_table.
5456         (make_dummy_parent): ditto.
5457         (Fset_window_configuration): ditto.
5458
5459         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
5460
5461         * glyphs.c (process_image_string_instantiator): use
5462         INSTANTIATOR_TYPE.
5463         (get_image_instantiator_governing_domain): ditto.
5464         (normalize_image_instantiator): ditto.
5465         (instantiate_image_instantiator): ditto.
5466         (make_image_instance_1): ditto.
5467         (image_instantiate): ditto. Key on glyph *and* instantiator type.
5468         (instantiator_eq_equal): new function for use with instance hash
5469         tables.
5470         (instantiator_eq_hash): ditto.
5471         (make_image_instance_cache_hash_table): create a suitable hash
5472         table for storing image instances.
5473
5474         * elhash.h (hash_table_weakness): new internal weakness type
5475         HASH_TABLE_KEY_CAR_VALUE_WEAK.
5476         declare new functions.
5477
5478         * elhash.c (finish_marking_weak_hash_tables): introduce yet
5479         another weakness type for glyphs.
5480         (make_standard_lisp_hash_table): new function split out from
5481         make_general_lisp_hash_table.
5482         (make_lisp_hash_table): call make_standard_lisp_hash_table.
5483         (hash_table_instantiate): ditto.
5484         (Fmake_hash_table): ditto.
5485
5486 2000-12-31  Martin Buchholz <martin@xemacs.org>
5487
5488         * XEmacs 21.2.39 is released.
5489
5490 2000-12-29  Andy Piper  <andy@xemacs.org>
5491
5492         * menubar.c (menubar_visible_p_changed): signal the frame changed.
5493
5494         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
5495         the frame has changed so that we pick up geometry changes such as
5496         menubar visibility.
5497
5498 2000-12-28  Andy Piper  <andy@xemacs.org>
5499
5500         * lastfile.c (my_ebss): make a char array so we can pad the
5501         bss. Fixes cygwin unexec.
5502
5503         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
5504
5505 2000-12-26  Andy Piper  <andy@xemacs.org>
5506
5507         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
5508         comments and try and be more precise about a non-/SIGIO world.
5509         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
5510         SIGIO.
5511
5512         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
5513         we don't normalize to zero width or height.
5514
5515 2000-12-24  Andy Piper  <andy@xemacs.org>
5516
5517         * Makefile.in.in (ldflags): add -mwindows when appropriate.
5518
5519 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
5520
5521         * s/sco5.h: SCO 5 has pty support.
5522
5523 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
5524
5525         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
5526         input-method-xlib.c contains whole contents of input-method-xfs.c,
5527         so we can use input-method-xlib.c's code for USE_XFONTSET
5528         using #ifdefs.
5529         * input-method-xfs.c: removed.
5530
5531 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
5532
5533         * file-coding.h (enum coding_category_type): reorder enumerators to
5534         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
5535         (now one greater than largest real coding_category_type enumerator).
5536         * file-coding.c (coding_category_symbol, coding_category_by_priority,
5537         coding_category_system, fcd_descriptihon_1, decode_coding_category,
5538         Fcoding_category_list, Fset_coding_priority_list,
5539         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
5540         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
5541
5542 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5543
5544         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
5545         * redisplay-output.c (redisplay_output_window): Clear top of window
5546         when face is changed.
5547         * redisplay-x.c (x_redraw_exposed_window): Call
5548         redisplay_clear_top_of_window.
5549         * redisplay.h: Publish redisplay_clear_top_of_window.
5550
5551 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5552
5553         * buffer.c (Fkill_buffer): Map over all devices.
5554         * window.c (window_loop): Remove UNSHOW_BUFFER code.
5555         (list_windows): New function.
5556         (list_all_windows): Ditto.
5557         (Freplace_buffer_in_windows): Use them.
5558
5559 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5560
5561         * database.c (berkdb_subtype): Recognize new subtype `queue'.
5562         (Fopen_database): Use `db_create' instead of `db_open'.
5563         (syms_of_database): Initialize Qqueue.
5564
5565 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5566
5567         * buffer.c (common_init_complex_vars_of_buffer): Initialize
5568         buffer_local_face_property.
5569         * buffer.h (struct buffer): New member buffer_local_face_property.
5570         * window.c (Fset_window_buffer):  Mark window's face as changed
5571         when buffer has buffer local face.
5572         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
5573         * objects.c (color_after_change): Set buffer_local_face_property
5574         when locale of face specifier is buffer.
5575         * objects.c (font_after_change): Ditto.
5576         * objects.c (face_boolean_after_change): Ditto.
5577         * glyphs.c (image_after_change): Ditto.
5578
5579 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5580
5581         * nt.c (mswindows_fstat): Report file permissions, volume serial
5582         number, etc. Code adapted from FSF Emacs 20.7.
5583
5584 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5585
5586         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
5587         of stat when we don't have symbolic links, to make sure
5588         mswindows_stat is called on mswindows.
5589
5590 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5591
5592         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
5593
5594 2000-12-12  Martin Buchholz  <martin@xemacs.org>
5595
5596         * doprnt.c (emacs_doprnt_1): More printing fixes.
5597         Make printing of numbers compatible with libc and FSF Emacs.
5598         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
5599         Use the system printf to do most of the hard work of formatting,
5600         instead of doprnt_1().
5601         Calculate memory to allocate for format string.
5602         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
5603         (doprnt_1): Cleaner code and documentation.
5604
5605 2000-12-01  Jerry James  <james@eecs.ukans.edu>
5606
5607         * Makefile.in.in: Use the loop variable to install headers.
5608
5609 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5610
5611         * window.c (Fsplit_window): Don't invalidate face cache.
5612
5613 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5614
5615         * minibuf.c (Fall_completions): Undo the previous change
5616         which removed checking elements start with space.
5617
5618 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5619
5620         * mule-canna.c: Didier suppression.
5621
5622 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5623
5624         * mule-canna.c: rename static unsigned char buf[] to key_buffer
5625         (warning suppression).  Add English comment translations.
5626
5627 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5628
5629         * unexelfsgi.c (unexec): Better test for mmap failure.
5630
5631 2000-12-05  Martin Buchholz <martin@xemacs.org>
5632
5633         * XEmacs 21.2.38 is released.
5634
5635 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5636
5637         * redisplay.c (bar-cursor): Make a user variable.
5638
5639         * symsinit.h: Add init_postgresql_from_environment.
5640
5641 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5642
5643         * regex.c: Convert to clean C.
5644
5645 2000-12-05  Dan Holmsand  <dan@eyebee.com>
5646
5647         * realpath.c:
5648         Don't #include sysfile.h. Revert to duplicating PATH_MAX
5649         initialization.
5650         (sys_readlink): renamed to system_readlink to avoid conflict with
5651         the other sys_readlink.
5652
5653 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
5654
5655         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5656
5657 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
5658
5659         * postgresql.c (init_postgresql_from_environment): new function.
5660         (vars_of_postgresql): Move code initializing Lisp variables out and
5661         into init_postgresql_from_environment.
5662         emacs.c (main_1): Call init_postgresql_from_environment if and only
5663         if running a dumped XEmacs.
5664
5665 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5666
5667         * buffer.c: Make find-file-compare-truenames default to true on
5668         windows.
5669
5670         * realpath.c (win32_abs_start):
5671         (cygwin_readlink):
5672         (win32_readlink): New functions.
5673         (xrealpath): Return really real filenames on windows.
5674
5675         * fileio.c (Ffile_truename): Make file-truename work on windows.
5676
5677 2000-11-29  Didier Verna  <didier@xemacs.org>
5678
5679         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5680         * faces.c (update_face_cachel_data): use it.
5681         * faces.c (add_face_cachel): use it. Complete background pixmap
5682         frobbing in face cache if `update_face_cachel_data' has not done so.
5683
5684 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5685
5686         * search.c (string_match_1): Don't set last_thing_searched
5687         when search failed.
5688
5689 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5690
5691         * buffer.c: Include casetab.h
5692         (common_init_complex_vars_of_buffer): Use new case-table object.
5693         * buffer.h: Include casetab.h
5694         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5695         (DOWNCASE_TABLE_OF): Ditto.
5696         * bufslots.h: Remove char-tables and add case-table.
5697         * casetab.c: Include casetab.h
5698         (CASE_TABLE_P): Removed.
5699         (mark_case_table): New function.
5700         (allocate_case_table): New function.
5701         (Fcase_table_p): Use new case-table.
5702         (case_table_char): New function.
5703         (Fget_case_table): Ditto.
5704         (Fput_case_table): Ditto.
5705         (Fput_case_table_pair): Ditto.
5706         (Fcopy_case_table): Ditto.
5707         (Fcurrent_case_table): Return case-table.
5708         (Fstandard_case_table): Return case-table.
5709         (Fset_case_table): Fix doc-string.
5710         (set_case_table): Use case-table
5711         (syms_of_casetab): DEFSUBR new functions.
5712         (complex_vars_of_casetab): Set up standard case-table.
5713         * casetab.h: New file.
5714         * editfns.c: Include casetab.h
5715         (Fcompare_buffer_substrings): Use case-table.
5716         * inline.c: Include casetab.h
5717         * lisp.h: Remove bogus extern.
5718         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5719         * search.c: Include casetab.h
5720         (TRANSLATE_ASCII): Removed.
5721         (TRANSLATE): Unconditionally translate character.
5722         (looking_at_1): Use case-table.
5723         (string_match_1): Ditto.
5724         (fast_string_match): Ditto.
5725         (search_command): Ditto.
5726         (search_buffer): Separate boyer_moore.  Check whether
5727         boyer_moore is possible.
5728         (simple_search): New function.
5729         (boyer_moore): Separated from search_buffer. Translate char.
5730
5731 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5732
5733         * regex.c (RE_TR_ASCII): Removed.
5734         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5735         (PATFETCH): Call PATFETCH_RAW.
5736         (PATFETCH_RAW): Fetch Emchar.
5737         (PATUNFETCH): Decrement charptr.
5738         (GET_BUFFER_SPACE): Rename b to buf_end.
5739         (BUF_PUSH): Ditto.
5740         (BUF_PUSH_2): Ditto.
5741         (BUF_PUSH_3): Ditto.
5742         (EXTEND_BUFFER): Ditto.
5743         (SET_LIST_BIT): Ditto.
5744         (regex_compile): Ditto.  Translate non ASCII char.
5745         (compile_range): Ditto.
5746         (re_search_2): Ditto.
5747         (re_match_2_internal): Compare Emchar.
5748         (bcmp_translate): Ditto.
5749
5750 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5751
5752         * lisp.h (basic char/int typedefs):  comment improvement.
5753
5754 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5755
5756         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5757         unstomp inhibit_site_lisp.  Improve comments.
5758
5759 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5760
5761         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5762
5763 2000-11-28  Andy Piper  <andy@xemacs.org>
5764
5765         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5766         clipped display for windows in the gutter also.
5767         (redisplay_display_boxes_in_window_p): change semantics of return
5768         codes to be more intuitive.
5769
5770         * gutter.h: declare display_boxes_in_gutter_p.
5771
5772         * gutter.c (display_boxes_in_gutter_p): new function for
5773         redisplay.
5774
5775 2000-11-22  Andy Piper  <andy@xemacs.org>
5776
5777         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5778         autodetect domain.
5779
5780 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5781
5782         * callproc.c (Fold_call_process_internal):
5783         * gpm.c (Freceive_gpm_event):
5784         (tty_get_foreign_selection): Might be just warning supression.
5785         * fileio.c (Fwrite_region_internal):
5786         (Fset_visited_file_modtime):
5787         * keymap.c (event_matches_key_specifier_p):
5788         Initialize GCPROed variable.
5789
5790         * menubar-x.c (command_builder_find_menu_accelerator):
5791         Initialize before use.
5792
5793 2000-11-23  Andy Piper  <andy@xemacs.org>
5794
5795         * unexcw.c (unexec): make the resulting executable executable.
5796
5797 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5798
5799         * doc.c (get_doc_string):
5800         Use size_t, not int, for result of XSTRING_LENGTH.
5801
5802         * cmds.c (Fdelete_char):
5803         * cmds.c (Fpoint_at_eol):
5804         * cmds.c (Fself_insert_command):
5805         Use EMACS_INT, not int, for result of XINT.
5806         Someday, someone will want to insert more than 2**31 identical characters.
5807
5808         * cmds.c (Fdelete_char):
5809         * cmds.c (Fdelete_backward_char):
5810         * syntax.c (Fforward_word):
5811         * syntax.c (Fforward_comment):
5812         Make COUNT argument optional, for consistency with forward-char et al.
5813
5814 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5815
5816         * lisp.h:
5817         * print.c (long_to_string):
5818         Return a useful value: the pointer at end of data written.
5819
5820         * doprnt.c:
5821         Use `static const char * const' for constant strings.
5822         (union printf_arg): Delete `i', `ui' members.
5823         (get_doprnt_args):
5824         (emacs_doprnt_1):
5825         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5826         Do all printf-ing via the `l' specifier.
5827         Use EMACS_INT instead of int.
5828         Optimize.
5829
5830 2000-11-20  Didier Verna  <didier@xemacs.org>
5831
5832         * faces.c (update_face_cachel_data): don't frob the background
5833         pixmap when the window is being created. The face is needed but
5834         does not exist yet.
5835
5836 2000-11-20  Andy Piper  <andy@xemacs.org>
5837
5838         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5839         messing with a debug environment.
5840
5841 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5842
5843         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5844
5845 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5846
5847         * casetab.c (Fcase_table_p): Fix compile error and crash.
5848
5849 2000-11-18  Philip Aston  <philipa@mail.com>
5850
5851         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5852
5853 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5854
5855         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5856         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5857
5858 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5859
5860         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5861         * unexelf.c: Use HAVE_ELF_H.
5862         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5863         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5864         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5865         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5866         for testing.
5867         So this is an unexelfsgi.c from a different line of development.
5868
5869 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5870
5871         * regex.c (RE_TR_ASCII): New function.
5872         (RE_TRANSLATE): Call it.
5873
5874 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5875
5876         * buffer.h (TRT_TABLE_OF): Remove assert.
5877         (IN_TRT_TABLE_DOMAIN): Removed.
5878
5879 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5880
5881         * free-hook.c (log_gcpro):
5882         (show_gcprohist): Add support for GCPRO5.
5883
5884 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5885
5886         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5887
5888 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5889
5890         * symeval.h: Declare flush_all_buffer_local_cache.
5891
5892         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5893         (flush_buffer_local_cache): Added.
5894         (flush_all_buffer_local_cache): Added.
5895
5896         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5897
5898         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5899         (pdump_dump_data): Ditto.
5900         (pdump_reloc_one): Ditto.
5901         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5902         before dumping.
5903
5904
5905 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5906
5907         * buffer.c: Remove if 0'ed entry.
5908         * buffer.h: Rewrite TRT to use char-table.
5909         * bufslots.h: Remove mirror tables.
5910         * casetab.c: Remove mirror tables.
5911         (CASE_TABLE_P): New macro.
5912         (Fcase_table_p): Element of a case table is string or char-table.
5913         (make_mirror_trt_table): Removed.
5914         (set_case_table): Setup char-table from strings for backward
5915         compatibility.
5916         * dired.c (Fdirectory_files):
5917         * dired-msw.c: (mswindows_get_files):
5918         * lisp.h: Change prototype of re_pattern_buffer.
5919         * regex.c: (RE_TRANSLATE): New macro.
5920         (TRANSLATE_P): Ditto.
5921         Change translate to type RE_TRANSLATE_TYPE.
5922         * regex.h: Define RE_TRANSLATE_TYPE
5923         * search.c (TRANSLATE): New macro.
5924         (TRANSLATE_ASCII): New macro.
5925         Translate table is changed to Lisp_Object.
5926         (signal_failure): Inhibit return.
5927
5928 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5929
5930         * device-msw.c:
5931         * eldap.c:
5932         * event-Xt.c:
5933         * event-stream.c:
5934         * print.c:
5935         Do UNGCPRO before return.
5936
5937 2000-11-14  Martin Buchholz <martin@xemacs.org>
5938
5939         * XEmacs 21.2.37 is released.
5940
5941 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5942
5943         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5944         Add comments about discarded return value.
5945
5946 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5947
5948         * callint.c:
5949         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5950
5951 2000-10-27  Andy Piper  <andy@xemacs.org>
5952
5953         * gutter.c (Fset_default_gutter_position): default left and right
5954         gutters to visible.
5955         (calculate_gutter_size): calculate resonable heuristic for left
5956         and right gutter sizes.
5957         (specifier_vars_of_gutter): change left and right gutter sizes to
5958         autodetect.
5959         (calculate_gutter_size_from_display_lines): new function.
5960         (output_gutter): check for resizing on left and right gutters.
5961         (clear_gutter): don't special case top and left gutters.
5962         (specifier_vars_of_gutter): use new signature for
5963         set_specifier_caching.
5964
5965         * glyphs-x.c (x_redisplay_widget): spelling fix.
5966         * glyphs.c (specifier_vars_of_glyphs):
5967         * menubar.c (specifier_vars_of_menubar):
5968         * redisplay.c (specifier_vars_of_redisplay):
5969         * toolbar.c (specifier_vars_of_toolbar):
5970         * window.c (specifier_vars_of_window):
5971         * scrollbar.c (specifier_vars_of_scrollbar):
5972         (complex_vars_of_scrollbar): use new signature for
5973         set_specifier_caching.
5974
5975         * specifier.c (set_specifier_caching): include recompute flag.
5976         (recompute_one_cached_specifier_in_window): always recompute if
5977         flag set.
5978         (recompute_one_cached_specifier_in_frame): ditto.
5979
5980         * specifier.h (struct specifier_caching): add recompute flag.
5981
5982 2000-10-24  Andy Piper  <andy@xemacs.org>
5983
5984         * unexcw.c (copy_executable_and_dump_data_section): add new
5985         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5986         5.0 happy.
5987
5988 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5989
5990         * console-x.h (x_device): New member modifier_release_time.
5991         * event-Xt.c (x_handle_sticky_modifiers):
5992         Bound interval modifier keys are sticky.
5993         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5994         * events.h: extern it.
5995
5996 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5997
5998         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5999
6000 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
6001
6002         * event-stream.c (execute_command_event): Preserve current_events
6003         and the like when event is misc-user-event.
6004         Inhibit quit during the call to maybe_echo_keys.
6005
6006 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6007
6008         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
6009         symlink when buffer is killed.
6010         (inhibit_clash_detection): New variable.
6011
6012 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
6013
6014         * console.c (Fset_input_method): Trigger redisplay on tty.
6015
6016 2000-11-07  Martin Buchholz  <martin@xemacs.org>
6017
6018         * process.c (Fprocess_status): Revert to previous behavior:
6019         (process-status "nosuchprocess") ==> nil
6020
6021 2000-11-06  Martin Buchholz  <martin@xemacs.org>
6022
6023         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
6024         Work around another GCC 2.95.2 optimizer bug.
6025
6026 2000-11-02  Martin Buchholz  <martin@xemacs.org>
6027
6028         * process.c (Fget_process): Use LIST_LOOP_2.
6029         (kill_buffer_processes): Use LIST_LOOP_2.
6030
6031         * minibuf.c (Fall_completions):
6032         Delete old non-functional code for FSF fourth argument.
6033
6034         * frame.c (frame_matches_frame_spec):
6035         Renamed from `frame_matches_frametype'.  Update all callers.
6036         (device_matches_device_spec):
6037         Renamed from 'device_matches_console_spec'.  Update all callers.
6038
6039         * doc.c (Fsubstitute_command_keys):
6040         Remove buffer overflow crash.  Small code cleanups.
6041
6042         * casetab.c (check_case_table): Simpler code.
6043
6044         * window.c (Freplace_buffer_in_windows):
6045         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
6046         (and similar implementation) as Fdelete_windows_on.
6047         Update all callers.
6048
6049         * alloc.c (Fmake_list):
6050         * alloc.c (make_vector):
6051         * alloc.c (Fmake_vector):
6052         * alloc.c (make_bit_vector):
6053         * alloc.c (Fmake_bit_vector):
6054         * alloc.c (Fbit_vector):
6055         * alloc.c (Fmake_string):
6056         * alloc.c (Fpurecopy):
6057         * alloc.c (Fmemory_limit):
6058         * buffer.c:
6059         * buffer.c (Fget_buffer):
6060         * buffer.c (Fkill_buffer):
6061         * buffer.c (complex_vars_of_buffer):
6062         * bytecode.c (Fcompiled_function_stack_depth):
6063         * callint.c (Fprefix_numeric_value):
6064         * event-stream.c:
6065         * event-stream.c (Fread_key_sequence):
6066         * casetab.c:
6067         * casetab.c (Fcase_table_p):
6068         * casetab.c (check_case_table):
6069         * casetab.c (Fset_case_table):
6070         * casetab.c (Fset_standard_case_table):
6071         * chartab.c:
6072         * chartab.c (Fchar_table_type):
6073         * chartab.c (Freset_char_table):
6074         * chartab.c (Fget_char_table):
6075         * chartab.c (Fget_range_char_table):
6076         * chartab.c (Fput_char_table):
6077         * chartab.c (Fmap_char_table):
6078         * chartab.c (Fcategory_table_p):
6079         * chartab.c (Fcheck_category_at):
6080         * chartab.c (Fchar_in_category_p):
6081         * chartab.c (Fcategory_table):
6082         * chartab.c (Fcopy_category_table):
6083         * chartab.c (Fset_category_table):
6084         * chartab.c (Fcategory_designator_p):
6085         * chartab.c (Fcategory_table_value_p):
6086         * cmds.c (Fdelete_char):
6087         * cmds.c (Fdelete_backward_char):
6088         * cmds.c (Fself_insert_command):
6089         * cmds.c (Fself_insert_internal):
6090         * console.c (Fvalid_console_type_p):
6091         * console.c (Fcdfw_console):
6092         * console.c (Fconsole_type):
6093         * console.c (Fconsole_name):
6094         * console.c (Fconsole_device_list):
6095         * console.c (Fconsole_on_window_system_p):
6096         * data.c:
6097         * data.c (Feq):
6098         * data.c (Fold_eq):
6099         * data.c (Fsubr_interactive):
6100         * data.c (Fchar_to_int):
6101         * data.c (Fint_to_char):
6102         * data.c (Fsetcar):
6103         * data.c (Fsetcdr):
6104         * data.c (Fnumber_to_string):
6105         * data.c (Fstring_to_number):
6106         * data.c (Frem):
6107         * database.c (mark_database):
6108         * database.c (finalize_database):
6109         * database.c (Fdatabase_live_p):
6110         * database.c (Fdatabasep):
6111         * device-x.c (Fx_get_resource):
6112         * device.c (Fdfw_device):
6113         * dired.c:
6114         * dired.c (Ffile_name_completion):
6115         * dired.c (Ffile_name_all_completions):
6116         * dired.c (Fuser_name_completion):
6117         * dired.c (Fuser_name_completion_1):
6118         * dired.c (Fuser_name_all_completions):
6119         * doc.c (Fdocumentation):
6120         * doc.c (Fdocumentation_property):
6121         * doc.c (Fsubstitute_command_keys):
6122         * editfns.c:
6123         * editfns.c (Fchar_to_string):
6124         * editfns.c (Fstring_to_char):
6125         * editfns.c (Ftemp_directory):
6126         * editfns.c (Finsert_char):
6127         * editfns.c (Fbuffer_substring_no_properties):
6128         * editfns.c (Fnarrow_to_region):
6129         * editfns.c (Fchar_equal):
6130         * editfns.c (Fchar_Equal):
6131         * editfns.c (Ftranspose_regions):
6132         * emacs.c (Fdump_emacs):
6133         * eval.c (Fthrow):
6134         * eval.c (Fcommand_execute):
6135         * eval.c (Fautoload):
6136         * eval.c (Fbacktrace):
6137         * eval.c (Fbacktrace_frame):
6138         * events.c:
6139         * events.c (Fcopy_event):
6140         * events.c (Fcharacter_to_event):
6141         * events.c (Fevent_button):
6142         * events.c (Fevent_process):
6143         * extents.c:
6144         * extents.c (Fnext_extent_change):
6145         * extents.c (Fextent_property):
6146         * faces.c (Ffacep):
6147         * faces.c (Fmake_face):
6148         * file-coding.c:
6149         * file-coding.c (Fencode_shift_jis_char):
6150         * file-coding.c (Fencode_big5_char):
6151         * fileio.c (Ffile_name_directory):
6152         * fileio.c (Ffile_name_nondirectory):
6153         * fileio.c (Ffile_name_as_directory):
6154         * fileio.c (Fdirectory_file_name):
6155         * fileio.c (Ffile_truename):
6156         * fileio.c (Fsubstitute_in_file_name):
6157         * fileio.c (Ffile_modes):
6158         * fileio.c (Fset_file_modes):
6159         * fileio.c (Fset_default_file_modes):
6160         * fileio.c (Fverify_visited_file_modtime):
6161         * floatfns.c (Facos):
6162         * floatfns.c (Fasin):
6163         * floatfns.c (Fatan):
6164         * floatfns.c (Fcos):
6165         * floatfns.c (Fsin):
6166         * floatfns.c (Ftan):
6167         * floatfns.c (Fbessel_j0):
6168         * floatfns.c (Fbessel_j1):
6169         * floatfns.c (Fbessel_jn):
6170         * floatfns.c (Fbessel_y0):
6171         * floatfns.c (Fbessel_y1):
6172         * floatfns.c (Fbessel_yn):
6173         * floatfns.c (Ferf):
6174         * floatfns.c (Ferfc):
6175         * floatfns.c (Flog_gamma):
6176         * floatfns.c (Fexp):
6177         * floatfns.c (Fexpt):
6178         * floatfns.c (Flog):
6179         * floatfns.c (Flog10):
6180         * floatfns.c (Fsqrt):
6181         * floatfns.c (Fcube_root):
6182         * floatfns.c (Facosh):
6183         * floatfns.c (Fasinh):
6184         * floatfns.c (Fatanh):
6185         * floatfns.c (Fcosh):
6186         * floatfns.c (Fsinh):
6187         * floatfns.c (Ftanh):
6188         * floatfns.c (Fabs):
6189         * floatfns.c (Ffloat):
6190         * floatfns.c (Flogb):
6191         * floatfns.c (Fceiling):
6192         * floatfns.c (Ffloor):
6193         * floatfns.c (Fround):
6194         * floatfns.c (Ftruncate):
6195         * floatfns.c (Ffceiling):
6196         * floatfns.c (Fffloor):
6197         * floatfns.c (Ffround):
6198         * floatfns.c (Fftruncate):
6199         * fns.c (Fstring_equal):
6200         * fns.c (Fstring_lessp):
6201         * fns.c (concat2):
6202         * fns.c (concat3):
6203         * fns.c (vconcat2):
6204         * fns.c (vconcat3):
6205         * fns.c (Fsubstring):
6206         * fns.c (Fassoc):
6207         * fns.c (Fold_assoc):
6208         * fns.c (assoc_no_quit):
6209         * fns.c (Fassq):
6210         * fns.c (Fold_assq):
6211         * fns.c (assq_no_quit):
6212         * fns.c (Frassoc):
6213         * fns.c (Fold_rassoc):
6214         * fns.c (Frassq):
6215         * fns.c (Fold_rassq):
6216         * fns.c (rassq_no_quit):
6217         * fns.c (Fremassoc):
6218         * fns.c (remassoc_no_quit):
6219         * fns.c (Fremassq):
6220         * fns.c (remassq_no_quit):
6221         * fns.c (Fremrassoc):
6222         * fns.c (Fremrassq):
6223         * fns.c (remrassq_no_quit):
6224         * fns.c (Fsort):
6225         * fns.c (Fplist_get):
6226         * fns.c (Fplist_put):
6227         * fns.c (Fplist_remprop):
6228         * fns.c (Fplist_member):
6229         * fns.c (Flax_plist_get):
6230         * fns.c (Flax_plist_put):
6231         * fns.c (Flax_plist_remprop):
6232         * fns.c (Flax_plist_member):
6233         * fns.c (Fequal):
6234         * fns.c (Fold_equal):
6235         * fns.c (Frequire):
6236         * fns.c (Fbase64_encode_region):
6237         * fns.c (Fbase64_encode_string):
6238         * fns.c (Fbase64_decode_region):
6239         * frame.c:
6240         * frame.c (frame_matches_frame_spec):
6241         * frame.c (device_matches_device_spec):
6242         * frame.c (next_frame):
6243         * frame.c (previous_frame):
6244         * frame.c (Fnext_frame):
6245         * frame.c (Fprevious_frame):
6246         * frame.c (Fframe_property):
6247         * frame.c (Fset_frame_height):
6248         * frame.c (Fset_frame_size):
6249         * frame.h:
6250         * glyphs.c:
6251         * glyphs.c (if):
6252         * glyphs.c (decode_error_behavior_flag):
6253         * glyphs.c (Fmake_image_instance):
6254         * indent.c (Findent_to):
6255         * intl.c (Fignore_defer_gettext):
6256         * keymap.c (Fkeymapp):
6257         * keymap.c (Flookup_key):
6258         * lread.c:
6259         * lread.c (Fload_internal):
6260         * lread.c (Feval_buffer):
6261         * lread.c (Feval_region):
6262         * macros.c (Fexecute_kbd_macro):
6263         * marker.c (set_marker_internal):
6264         * marker.c (Fset_marker):
6265         * marker.c (set_marker_restricted):
6266         * marker.c (Fcopy_marker):
6267         * marker.c (noseeum_copy_marker):
6268         * menubar.c:
6269         * menubar.c (Fpopup_menu):
6270         * minibuf.c:
6271         * mule-charset.c (Fcharset_name):
6272         * mule-charset.c (Fchar_charset):
6273         * mule-charset.c (Fchar_octet):
6274         * mule-charset.c (Fsplit_char):
6275         * mule-wnnfns.c (Fwnn_open):
6276         * mule-wnnfns.c (Fwnn_dict_comment):
6277         * mule-wnnfns.c (Fwnn_quit_henkan):
6278         * mule-wnnfns.c (Fwnn_word_toroku):
6279         * mule-wnnfns.c (Fwnn_word_sakujo):
6280         * mule-wnnfns.c (Fwnn_word_use):
6281         * mule-wnnfns.c (Fwnn_hindo_set):
6282         * objects.c:
6283         * objects.c (Fmake_color_instance):
6284         * objects.c (Fmake_font_instance):
6285         * print.c (Fwrite_char):
6286         * process.c:
6287         * process.c (mark_process):
6288         * process.c (print_process):
6289         * process.c (get_process_from_usid):
6290         * process.c (Fprocessp):
6291         * process.c (Fprocess_live_p):
6292         * process.c (Fget_process):
6293         * process.c (Fget_buffer_process):
6294         * process.c (get_process):
6295         * process.c (Fprocess_id):
6296         * process.c (Fprocess_name):
6297         * process.c (Fprocess_command):
6298         * process.c (init_process_io_handles):
6299         * process.c (start_process_unwind):
6300         * process.c (Fstart_process_internal):
6301         * process.c (Fopen_multicast_group_internal):
6302         * process.c (Fset_process_window_size):
6303         * process.c (read_process_output):
6304         * process.c (send_process):
6305         * process.c (Fprocess_tty_name):
6306         * process.c (Fset_process_buffer):
6307         * process.c (Fprocess_buffer):
6308         * process.c (Fprocess_mark):
6309         * process.c (set_process_filter):
6310         * process.c (Fset_process_filter):
6311         * process.c (Fprocess_filter):
6312         * process.c (Fprocess_send_region):
6313         * process.c (Fprocess_send_string):
6314         * process.c (exec_sentinel):
6315         * process.c (Fset_process_sentinel):
6316         * process.c (Fprocess_sentinel):
6317         * process.c (status_notify):
6318         * process.c (Fprocess_status):
6319         * process.c (Fprocess_exit_status):
6320         * process.c (process_send_signal):
6321         * process.c (Fprocess_send_eof):
6322         * process.c (deactivate_process):
6323         * process.c (remove_process):
6324         * process.c (Fdelete_process):
6325         * process.c (kill_buffer_processes):
6326         * process.c (Fprocess_kill_without_query):
6327         * process.c (Fprocess_kill_without_query_p):
6328         * rangetab.c:
6329         * rangetab.c (Fget_range_table):
6330         * rangetab.c (Fput_range_table):
6331         * rangetab.c (Fremove_range_table):
6332         * rangetab.c (Fclear_range_table):
6333         * search.c:
6334         * search.c (Fskip_chars_forward):
6335         * search.c (Fskip_chars_backward):
6336         * search.c (Fskip_syntax_forward):
6337         * search.c (Fskip_syntax_backward):
6338         * search.c (search_command):
6339         * search.c (Freplace_match):
6340         * search.c (Fregexp_quote):
6341         * select.c (Fown_selection_internal):
6342         * select.c (Fselection_owner_p):
6343         * select.c (Fselection_exists_p):
6344         * select.c (Fget_selection_internal):
6345         * specifier.c:
6346         * symbols.c:
6347         * symbols.c (Fintern):
6348         * symbols.c (Fintern_soft):
6349         * symbols.c (Funintern):
6350         * symbols.c (Fapropos_internal):
6351         * symbols.c (Fset_default):
6352         * syntax.c:
6353         * syntax.c (Fsyntax_table_p):
6354         * syntax.c (Fcopy_syntax_table):
6355         * syntax.c (Fset_syntax_table):
6356         * syntax.c (Fchar_syntax):
6357         * syntax.c (syntax_match):
6358         * syntax.c (Fmatching_paren):
6359         * syntax.c (Fforward_word):
6360         * syntax.c (scan_lists):
6361         * syntax.c (Fscan_lists):
6362         * syntax.c (Fscan_sexps):
6363         * syntax.c (Fparse_partial_sexp):
6364         * toolbar.c (Fcheck_toolbar_button_syntax):
6365         * tooltalk.doc:
6366         * window.c:
6367         * window.c (Fwindowp):
6368         * window.c (Fwindow_live_p):
6369         * window.c (Fwindow_point):
6370         * window.c (Fdelete_window):
6371         * window.c (Fnext_window):
6372         * window.c (Fprevious_window):
6373         * window.c (Fother_window):
6374         * window.c (window_loop):
6375         * window.c (Fget_lru_window):
6376         * window.c (Fsplit_window):
6377         * window.c (Fenlarge_window):
6378         * window.c (Fenlarge_window_pixels):
6379         * window.c (Fshrink_window):
6380         * window.c (Fshrink_window_pixels):
6381         * window.c (change_window_height):
6382         * window.c (Fwindow_configuration_p):
6383         * window.c (Fcurrent_window_configuration):
6384         * window.h:
6385         * casefiddle.c (casify_object):
6386         * casefiddle.c (Fupcase):
6387         * casefiddle.c (Fdowncase):
6388         * casefiddle.c (Fcapitalize):
6389         * casefiddle.c (Fupcase_initials):
6390         * casefiddle.c (casify_region_internal):
6391         * casefiddle.c (casify_region):
6392         * casefiddle.c (Fupcase_region):
6393         * casefiddle.c (Fdowncase_region):
6394         * casefiddle.c (Fcapitalize_region):
6395         * casefiddle.c (Fupcase_initials_region):
6396         * casefiddle.c (Fupcase_word):
6397         * casefiddle.c (Fdowncase_word):
6398         * casefiddle.c (Fcapitalize_word):
6399         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
6400         Replace 0 with '\0' when working with bytes.
6401         Replace initial "(" with "\(" in docstrings.
6402
6403 2000-11-01  Martin Buchholz  <martin@xemacs.org>
6404
6405         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
6406
6407         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
6408
6409 2000-10-31  Martin Buchholz  <martin@xemacs.org>
6410
6411         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
6412
6413 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
6414
6415         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
6416         correctly.
6417
6418 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
6419
6420         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
6421         (inhibit_auto_save_session): New variable.
6422         (vars_of_fileio): Declare and initialize them.
6423         * fileio.c (Fdo_auto_save): Don't create session file if
6424         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
6425
6426 2000-10-31  Martin Buchholz  <martin@xemacs.org>
6427
6428         * sgiplay.c (play_internal): C++ compilability.
6429         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
6430         * callproc.c (Fold_call_process_internal):
6431         Remove unused vars `env', `first'.
6432         * scrollbar.c (update_scrollbar_instance):
6433         #### unused var `current_window'.
6434         * redisplay-tty.c: Put currently unused vars insert_mode_on,
6435         etc. within #ifdef NOT_YET.
6436         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
6437         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
6438         * specifier.c (specifier_instance):
6439         #### unused var `tag'.
6440         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
6441
6442 2000-10-27  Martin Buchholz  <martin@xemacs.org>
6443
6444         * fns.c (Fbutlast):
6445         * fns.c (list_sort):
6446         * fns.c (Ffillarray):
6447         * fns.c (bytecode_nconc2):
6448         * fns.c (Fnconc):
6449         * fns.c (mapcar1):
6450         * fns.c (Fmapconcat):
6451         Be pedantically 64-bit correct.  For the time when someone will
6452         want to have a list with length > 2**32.
6453
6454         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6455         Work around MIPSpro compiler bug.
6456
6457         * process-unix.c (unix_kill_child_process): Add snarky comment.
6458         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
6459
6460         * config.h.in: Oops, _getpt ==> _getpty
6461
6462 2000-10-26  Martin Buchholz  <martin@xemacs.org>
6463
6464         * config.h.in:
6465         * regex.c:
6466         Use void*, not char*, as return type of alloca().
6467
6468         * alloc.c (free_marker): Side effect inside assert expression!
6469
6470 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
6471
6472         * mule-charset.c (Fset_charset_ccl_program): To check
6473         if the given ccl program is valid, use setup_ccl_program()
6474         instead of CHECK_VECTOR().
6475         (Fmake_charset): Likewise.
6476
6477 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
6478
6479         * faces.c (get_extent_fragment_face_cache_index):
6480         Fix cachel.merged_faces memory leak.
6481
6482 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
6483
6484         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
6485         Reset MSB of octets obtained by DECODE_SJIS
6486         because of the incompatibility with Emacs.
6487         (ccl_driver)<CCL_ENCODE_SJIS>:
6488         Set MSB of octets before passing them to
6489         ENCODE_SJIS because of the incompatibility
6490         with Emacs.
6491
6492 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
6493
6494         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
6495         (DECLARE_LRECORD): Undo the last change.
6496         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
6497
6498 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
6499
6500         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
6501         the implementation to lrecord_implementations_table.
6502
6503 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
6504
6505         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
6506         initial value of `lrecord_type_##c_name' and
6507         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
6508         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
6509         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
6510         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
6511         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
6512
6513 2000-10-17  Martin Buchholz  <martin@xemacs.org>
6514
6515         * miscplay.c (sndcnv8S_2mono):
6516         (sndcnv2monounsigned):
6517         (sndcnvULaw_2linear):
6518         (sndcnv16swap):
6519         Remove implementation-defined behavior.
6520
6521 2000-10-12  Martin Buchholz  <martin@xemacs.org>
6522
6523         * input-method-xlib.c: Warning suppression.
6524
6525 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
6526
6527         * mule-ccl.c: Sync up with Emacs 21.0.90.
6528         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
6529         Do nothing.
6530         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
6531         Likewise.
6532         (ccl_driver[WriteMultibyteChar2]): Bug fix.
6533         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
6534         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
6535         leading char belongs to official 2-dimensional charset.
6536         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
6537         write the given character as is.  Otherwise,
6538         if it is a multibyte char, convert it by
6539         non_ascii_set_charptr_emchar, then write it.
6540         (CCL_WRITE_STRING): Likewise.
6541         (ccl_get_compiled_code): New function.
6542         (setup_ccl_program): When ccl_prog is invalid,
6543         return -1.
6544         (Fregister_code_conversion_map): New function.
6545         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
6546
6547         * mule-ccl.h: Sync up with Emacs 21.0.90.
6548         (Fregister_ccl_program): export it.
6549
6550         * redisplay-msw.c (separate_textual_runs):
6551         If ccl program is not valid, don't do ccl conversion.
6552
6553         * redisplay-x.c (separate_textual_runs): Ditto.
6554
6555         * file-coding.c (Fmake_coding_system):
6556         When type is ccl and value is vector, register it
6557         with a proper symbol.  And checks whether the
6558         given ccl program is valid.
6559         (mule_decode): When calling ccl_driver, if src indicates
6560         NULL pointer, set an empty string instead.
6561         (mule_encode): Likewise.
6562
6563 2000-10-11  Martin Buchholz  <martin@xemacs.org>
6564
6565         The following large batch of changes gets us back to a state of
6566         C++ compilability.  Extbyte is now a char, which means that
6567         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
6568
6569         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
6570
6571         * sound.c (Fplay_sound): Type correctness.
6572
6573         * select-x.c (hack_motif_clipboard_selection): Type correctness.
6574         (x_get_window_property): Type correctness.
6575         (receive_incremental_selection): unsigned char ==> Extbyte
6576         (selection_data_to_lisp_data): unsigned char ==> Extbyte
6577         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
6578         (Fx_store_cutbuffer_internal): Type correctness.
6579
6580         * process-unix.c (try_to_initialize_subtty): Type correctness.
6581
6582         * objects-x.c (x_print_color_instance): Type correctness.
6583         (x_print_font_instance): Type correctness.
6584         (x_list_fonts): SExtbyte ==> Extbyte.
6585         (valid_x_font_name_p): SExtbyte ==> Extbyte.
6586         (x_find_charset_font): SExtbyte ==> Extbyte.
6587         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
6588         (truename_via_XListFonts): SExtbyte ==> Extbyte.
6589         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
6590         Use bufbyte_strcmp.
6591
6592         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
6593         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
6594         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
6595         (BYTE_C0_P): Use bit ops for char-signedness safety.
6596         (BYTE_C1_P): Use bit ops for char-signedness safety.
6597         (CHARSET_BY_LEADING_BYTE):
6598         (CHARSET_BY_ATTRIBUTES):
6599         Always use inline function.
6600         Use type_checking_assert.
6601         Hide chlook.
6602
6603         * mule-charset.c (non_ascii_charptr_copy_char):
6604         Modify to work with both ASCII and non-ASCII characters.
6605         Improve docs and variable names.
6606         Replace over-clever fall-through switch with a simple loop.
6607         (Lstream_get_emchar_1):
6608         Replace over-clever fall-through switch with a simple loop.
6609
6610         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6611         Warning suppression.
6612
6613         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6614         the return value of Lstream_getc, which could be EOF as well.
6615
6616         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6617
6618         * lisp.h: Make Extbyte a char, not unsigned char, so that external
6619         APIs can be used on Extbytes without casts.  Risky!
6620         (SExtbyte): Remove.
6621         (UExtbyte): Remove.
6622
6623         * input-method-xlib.c (XIM_init_device):
6624         Use Xlib.h instead of IntrinsicP.h.
6625         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6626         which will break in X11R7.
6627         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6628         to call XRegisterIMInstantiateCallback with correct types.
6629
6630         * gui-x.c (button_item_to_widget_value): Type correctness.
6631
6632         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
6633
6634         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6635         (xbm_instantiate_1): Type correctness.
6636         (BUILD_GLYPH_INST):  Type correctness.
6637
6638         * fileio.c (Fsubstitute_in_file_name): Type correctness.
6639
6640         * file-coding.c:
6641         (decode_coding_sjis):
6642         (decode_coding_big5):
6643         (decode_coding_ucs4):
6644         (decode_coding_utf8):
6645         (decode_coding_iso2022):
6646         (decode_coding_no_conversion):
6647         Make all decoding functions take an Extbyte * arg.
6648         (encode_coding_sjis):
6649         (encode_coding_big5):
6650         (encode_coding_ucs4):
6651         (encode_coding_utf8):
6652         (encode_coding_iso2022):
6653         (encode_coding_no_conversion):
6654         Make all encoding functions take a Bufbyte * arg.
6655         Use size_t instead of unsigned int for memory sizes.
6656         Only cast to unsigned char whenever dereferencing Extbyte *.
6657
6658         * doc.c (unparesseuxify_doc_string): Type correctness.
6659
6660         * console-x.c (split_up_display_spec):
6661         Rewrite without using details of internal string representation.
6662         (x_semi_canonicalize_device_connection): Type correctness.
6663
6664         * config.h.in:
6665         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6666         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6667         (HAVE_XFREE386): Removed.
6668
6669         * buffer.h (DEC_CHARPTR): `const' correctness.
6670         (bufbyte_strcmp): New.
6671         (bufbyte_memcmp): New.
6672
6673         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6674
6675         * buffer.h (XCHAR_OR_CHAR_INT):
6676         Always use inline function.
6677         Remove redundant type checking assert() - XINT will abort quite nicely.
6678
6679 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6680
6681         * search.c (Freplace_match): Set newtext to an empty string.
6682
6683 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6684
6685         * s/decosf1-3.h: Remove #include of stropts.h
6686         * s/ptx.h: Remove #include of stropts.h
6687         * s/usg5-4.h: Remove #include of stropts.h
6688         * sysproc.h:
6689         * config.h.in:
6690         Use stropts.h, not sys/stropts.h.
6691         Use strtio.h, not sys/strtio.h.
6692
6693 2000-10-04  Martin Buchholz <martin@xemacs.org>
6694
6695         * XEmacs 21.2.36 is released.
6696
6697 2000-09-21  Andy Piper  <andy@xemacs.org>
6698
6699         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6700         changes still involve copying the widget tree.
6701         (update_widget_face): make sure a change is register in the widget
6702         tree. Call update_tab_widget_face appropriately.
6703         (update_tab_widget_face): ditto.
6704         (x_tab_control_redisplay): make sure non-structural changes still
6705         involve copying the widget tree.
6706
6707 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6708
6709         * lread.c (locate_file): Check the path element is non-nil.
6710
6711 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6712
6713         * lisp.h: Warning suppression for SCO compilers.
6714
6715         * redisplay-tty.c (reset_tty_modes): Fix crash.
6716         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6717
6718 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6719
6720         Big signal/process handling overhaul.  Bugs fixed:
6721         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6722         M-x comint-kill-subjob should work for both values nil and t of
6723         process-connection-type. It was broken on most platforms.
6724         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6725         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6726         * process-unix.c: Signal/Process handling overhaul.
6727         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6728         (allocate_pty): Use all available modern methods of allocating
6729         ptys, falling back to old style BSD allocation as a last resort.
6730         Use allegedly more secure Unix98 pty allocation by default.
6731         (allocate_pty_the_old_fashioned_way): New. the last resort.
6732         (unix_create_process): Push ptem, ldterm, ttcompat where
6733         available.  Autoconfiscate.
6734         (try_to_initialize_subtty): New.
6735         (unix_kill_child_process): Proper signal handling for ptys on most
6736         platforms, using special knowledge of AIX, BSD, etc...
6737         (unix_create_process): Always disconnect_controlling_terminal() for
6738         subprocesses, whether using ptys or not.
6739         * process.h: Remove old getpt-dependent PTY code.
6740         * process.c (Fprocess_send_signal): New, obvious generic function.
6741         (decode_signal): New.
6742         (Finterrupt_process):
6743         (Fkill_process):
6744         (Fquit_process):
6745         (Fstop_process):
6746         (Fcontinue_process):
6747         (Fsignal_process): Use decode_signal.
6748         (process_send_signal):
6749         Many docstring corrections.
6750         Allow any signal to be sent to a process object.
6751         * config.h.in: Add symbols for big signal/process overhaul.
6752         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6753         * sysproc.h: Include process-related headers, where available:
6754         sys/stropts.h sys/strtio.h pty.h libutil.h
6755         * s/irix4-0.h:
6756         * s/irix5-0.h:
6757         * s/cygwin32.h:
6758         * s/gnu.h:
6759         * s/linux.h:
6760         * s/hpux.h:
6761         * s/aix3-1.h:
6762         Remove old S&M pty stuff.
6763         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6764         * systty.h: Simplify cpp hackery, improve comments.
6765         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6766
6767         * editfns.c (Fformat_time_string):
6768         Be a little more paranoid with the return value of ctime.
6769
6770         * fileio.c (check_executable):
6771         (check_writable):
6772         Use symbolic constants X_OK, W_OK.
6773
6774         * console-x.c (split_up_display_spec): Fix a warning.
6775
6776 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6777
6778         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6779         * ntproc.c (sys_spawnve): make_string ==> build_string
6780         Small clarity improvements.
6781
6782 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6783
6784         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6785
6786         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6787
6788         * config.h.in (HAVE_STRCASECMP): Remove.
6789
6790 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6791
6792         * redisplay-output.c (redisplay_output_pixmap):
6793         Cleaner and possibly more 64-bit correct code.
6794
6795 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6796
6797         * dumper.c (pdump_load_finish): move restoration of
6798         `noninteractive1' to emacs.c (main_1).
6799         * emacs.c (main_1): protect LISP-visible command-line flags
6800         from pdump_load().
6801
6802 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6803
6804         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6805         DUMP_TARGET instead of literal program names.
6806
6807 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6808
6809         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6810
6811 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6812
6813         * *: Spelling mega-patch
6814
6815 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6816
6817         * fns.c (bad_bad_turtle):
6818         Delete "Eek!" comment, since we fixed the bug to which it refers.
6819
6820 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6821
6822         * alloca.c: Replace REGISTER with register.
6823
6824 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6825
6826         * file-coding.c (ucs_to_char): Use countof.
6827
6828 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6829
6830         * file-coding.c: (ucs_to_char):
6831         (complex_vars_of_file_coding):
6832         Use countof instead of sizeof.
6833         Use CHECK_NATNUM instead of CHECK_INT.
6834
6835         * sysdep.c (strcasecmp): Remove.
6836         * device-x.c (ascii_strcasecmp): New.
6837         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6838         Avoid using non-standard non-portable strcasecmp.
6839
6840 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6841
6842         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6843         * font-lock.c: remove reference to emacsfns.h.
6844         * search.c: small doc improvement.
6845         * event-Xt.c: correct file names in comments.
6846         * console-x.h Correct file names in comments.
6847         * frame.c: Correct file names in comments.
6848         * event-stream.c: remove Energize from comments.
6849
6850 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6851
6852         * symeval.h (DEFERROR_STANDARD):
6853         (DEFERROR):
6854         (DEFSYMBOL):
6855         (DEFSYMBOL_NO_DUMP):
6856         (DEFSYMBOL_MULTIWORD_PREDICATE):
6857         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6858         (DEFKEYWORD):
6859         The construct &##name is not sensible C.
6860         Fixes compilation errors with Unixware native compiler.
6861
6862 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6863
6864         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6865         (next_frame_internal): Removed.  We now just have next_frame.
6866         (next_frame):
6867         Write a simpler and cleaner one-pass algorithm.
6868         Remove called_from_delete_device arg and #ifdefed-out code.
6869         (previous_frame):
6870         Renamed from prev_frame.  Update callers.
6871         Cleaned up to have an analogous implementation to next_frame.
6872         (other_visible_frames_internal): Remove the
6873         called_from_delete_device bogus arg, and hence, remove this
6874         function.  Just use other_visible_frames().
6875
6876         * window.c (Fnext_window):
6877         Prettify docstring.
6878         Since next_frame() is guaranteed to return a frame, remove check
6879         for nil inserted in previous patch.
6880         (Fprevious_window):
6881         Prettify docstring.
6882         Make code look more like Fnext_window.
6883         (window_loop):
6884         Respect the `console' arg when iterating through windows.
6885         Fixes bug: (get-buffer-window buffer t device) not respecting
6886         the `device' arg.
6887         This function needs more work, as others have pointed out.
6888
6889         * frame.h: Rename prev_frame to previous_frame.
6890         device_matches_console_spec no longer takes a `frame' arg.
6891
6892         * s/gnu.h:
6893         * s/linux.h:
6894         * s/hpux.h:
6895         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6896         From "Golubev I. N." <gin@mo.msk.ru>.
6897
6898         * make-src-depend: Fix typo.
6899
6900 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6901
6902         * window.c (Fnext_window):
6903         next_frame() might return nil, not a frame.
6904         Fixes this crash:
6905         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6906
6907         * frame.c (next_frame_internal):
6908         We've passed a frame if we've passed its device.
6909         Fixes this crash:
6910         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6911 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6912
6913 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6914
6915         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6916         Allow option to suppress accelerators in menu/dialog items.
6917         (populate_or_checksum_helper): Pass dialog title through above.
6918
6919 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6920
6921         * event-msw.c (mswindows_key_to_emacs_keysym):
6922         Add "pause" key, fix "menu" key.
6923
6924 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6925
6926         * eval.c (reinit_vars_of_eval):
6927         Increase max_lisp_eval_depth to 1000,
6928         required for thai-xtis.el to byte-compile under some circumstances.
6929
6930 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6931
6932         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6933         From Kenichi Handa.
6934
6935 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6936
6937         * make-src-depend: Make the generated Makefiles smaller.
6938
6939         * s/hpux.h (SETUP_SLAVE_PTY):
6940         Provide a %d in the format string for the errno argument.
6941
6942         * editfns.c (Ftemp_directory):
6943         Warning fix.
6944         Avoid buffer overrun on very long file name.
6945
6946         * input-method-xlib.c (XIM_init_device):
6947         6th parameter of XRegisterIMInstantiateCallback has different
6948         pointer types on different OSes, so simply cast to (void *).
6949
6950         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6951
6952         * sysdll.c (dll_open):
6953         shl_load will hang hard if passed a NULL filename.
6954         Simply return NULL for compatibility with dlopen.
6955         * sysdll.c: Conform to XEmacs coding standards.
6956
6957         * sysdep.c (get_pty_max_bytes):
6958         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6959
6960 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6961
6962         * tooltalk.c: Add #include <syssignal.h>
6963
6964 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6965
6966         * s/hpux.h: Don't use undefined function sigunblock().
6967
6968 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6969
6970         * config.h.in: Add HAVE_BALLOON_HELP.
6971         * emacs.c: Use HAVE_BALLOON_HELP.
6972         * Makefile.in.in (x_objs):
6973         Make Balloon Help conditional on finding shape.h.
6974
6975 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6976
6977         * syntax.c (regex_emacs_buffer_p): New variable.
6978         * syntax.h (regex_emacs_buffer_p): extern.
6979         * search.c (looking_at_1):
6980         (string_match_1):
6981         (fast_string_match):
6982         (search_buffer): Set regex_emacs_buffer_p.
6983         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6984         when before_dot, at_dot, after_dot.
6985
6986 2000-08-23  Andy Piper  <andy@xemacs.org>
6987
6988         * gui-x.c (popup_selection_callback): Only set action_occurred
6989         when we really have an image instance.
6990         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6991
6992 2000-08-23  Andy Piper  <andy@xemacs.org>
6993
6994         * gui-msw.c (mswindows_handle_gui_wm_command): set
6995         action_occurred.
6996         * gui-x.c (popup_selection_callback): ditto.
6997
6998         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6999         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
7000         (struct Lisp_Image_Instance): add action_occurred flag.
7001
7002         * glyphs.c (redisplay_subwindow): use action_occurred flag.
7003         (image_instance_changed): ditto.
7004         (reset_frame_subwindow_instance_cache): only unmap windows - do
7005         not remove them from the cache also.
7006
7007         * glyphs-widget.c (tab_control_update): better debug.
7008         (progress_gauge_update): ditto.
7009         (layout_update): ditto.
7010         (layout_instantiate): ditto.
7011         (tab_control_order_only_changed): cope with null pending items.
7012
7013         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
7014         debug. Force selection of an item when an action occurred. Cope
7015         with null pending_items.
7016         (mswindows_progress_gauge_redisplay): better debug.
7017         * glyphs-x.c (x_tab_control_redisplay): ditto.
7018
7019         * redisplay.c (redisplay_frame): reset the frame cache if the
7020         frame is garbaged.
7021
7022         * window.c (Fset_window_configuration): potentially re-enable
7023         frame cache reset.
7024         (window_unmap_subwindows): need to finalize instances here since
7025         it is only used in mark_window_as_deleted.
7026
7027 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
7028
7029         * nas.c (SndOpenDataForReading):
7030         nas.c (WaveOpenDataForReading):
7031         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
7032         Somehow escaped from the 2000-08-14 patch.
7033
7034 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7035
7036         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
7037         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
7038
7039 2000-08-21  Andy Piper  <andy@xemacs.org>
7040
7041         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
7042         window if it is not already displayed.
7043
7044         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
7045         it is not already displayed.
7046
7047         * window.c (Fset_window_configuration): don't reset the frame
7048         cache.
7049
7050         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
7051         instances from the frame cache if we are actually finalizing them.
7052         (reset_frame_subwindow_instance_cache): reset frame cache only
7053         after unmapping everything.
7054         (map_subwindow): set displayed flag after mapping.
7055
7056 2000-08-21  Martin Buchholz  <martin@xemacs.org>
7057
7058         * data.c (indirect_function):
7059         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
7060
7061         * eval.c (function_argcount):
7062         Use original function when signaling errors.
7063
7064 2000-08-18  Andy Piper  <andy@xemacs.org>
7065
7066         * frame.c (delete_frame_internal): use new
7067         free_frame_subwindow_instances name.
7068
7069         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
7070         (add_tab_item): make return type correct.
7071         (mswindows_tab_control_instantiate): assert index of tab.
7072         (mswindows_tab_control_redisplay): Re-code to use
7073         gui_item_equal_sans_selected and gui_item_list_find_selected.
7074
7075         * glyphs-widget.c (tab_control_update): Correct comment.
7076
7077         * window.c (window_unmap_subwindows): use new
7078         unmap_subwindow_instance_cache_mapper.
7079         (window_unmap_subwindows_cache_mapper): deleted.
7080         (Fset_window_configuration): comparisons should now be with
7081         EQ. Preserve the subwindow instance cache across configuration
7082         changes.
7083         (allocate_window): ditto.
7084         (make_dummy_parent): ditto.
7085
7086         * glyphs.c (free_frame_subwindow_instances): rename from
7087         free_frame_subwindow_instance_cache. finalize all instances rather
7088         than just those in the display cache.
7089         (finalize_all_subwindow_instances): walk windows unmapping and
7090         finalizing subwindows.
7091         (unmap_subwindow_instance_cache_mapper): moved from
7092         window.c. Allow finalization as well as unmapping.
7093
7094         * gui.c (gui_item_list_find_selected): new function.
7095
7096         * gui.h (gui_item_list_find_selected): declare.
7097
7098         * glyphs-x.c (x_tab_control_redisplay): pick tab
7099         explicitly. Re-code to use gui_item_equal_sans_selected and
7100         gui_item_list_find_selected.
7101
7102         * glyphs-x.h: add lwlib-utils.h
7103
7104         * buffer.c (Frecord_buffer): undo previous change.
7105
7106 2000-08-09  Vin Shelton  <acs@xemacs.org>
7107
7108         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
7109         possible.  Create temporary files more securely.  The patch was
7110         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
7111         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
7112         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
7113         for details.
7114
7115 2000-08-07  Ben Wing  <ben@xemacs.org>
7116
7117         * getloadavg.c: remove duplicate (and windows-breaking)
7118         includes of fcntl.h and sys/file.h.
7119
7120         * nt.c: remove duplicate getloadavg() definition.
7121
7122         * sysdll.h (Qdll_filename_encoding): add missing stand-in
7123         encodings.
7124
7125 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7126
7127         * eval.c (function_argcount): If function needs to be autoloaded
7128         actually use the loaded definition.
7129         GCPRO function.
7130
7131 2000-08-05  Ben Wing  <ben@xemacs.org>
7132
7133         * getloadavg.c: add prototype for getloadavg().  remove
7134         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
7135         of the code).  remove duplicate header includes.
7136
7137         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
7138
7139         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
7140         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
7141         useful load average.
7142
7143         * alloc.c (reinit_alloc_once_early): removed references to
7144         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
7145         the lisp vars are the only things referencing the malloc_sbrk_*
7146         vars, and they were already if 0'd out.  these vars only exist
7147         in the older malloc.c, which is basically unused, and they're
7148         only for informational purposes.
7149
7150         * m\*.h: removed useless VIRT_ADDR_VARIES.
7151
7152         * m\powerpc.h: removed stray NO_ARG_ARRAY.
7153
7154 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
7155
7156         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
7157         color if the image is a mono pixmap.
7158
7159 2000-07-30  Ben Wing  <ben@xemacs.org>
7160
7161         * Makefile.in.in (release):
7162         Remove stray @.
7163
7164         * buffer.c (directory_is_current_directory):
7165         * dired-msw.c (mswindows_get_files):
7166         * dired.c:
7167         * dired.c (Fdirectory_files):
7168         * dired.c (file_name_completion_stat):
7169         * dired.c (Ffile_attributes):
7170         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
7171         preprocessor tricks, to avoid problems on some machines
7172         (e.g. SCO).
7173
7174         * callproc.c (egetenv): GC docs.
7175
7176         * console-msw.h:
7177         * console-msw.h (struct mswindows_dialog_id):
7178         * lrecord.h (lrecord_type):
7179         New object for use with MSW dialogs.
7180
7181         * console.h (struct console_methods):
7182         New enable/disable frame methods, for proper modal dialogs.
7183
7184         * device-msw.c (msprinter_default_printer): Fix to follow
7185         proper Mule conventions.
7186
7187         * device-msw.c:
7188         * device-msw.c (signal_open_printer_error):
7189         * device-msw.c (msprinter_init_device):
7190         * device-msw.c (ensure_not_printing):
7191         * device-msw.c (plist_get_margin):
7192         * device-msw.c (Fmsprinter_select_settings):
7193         * device-msw.c (finalize_devmode):
7194         * device-msw.c (Fmsprinter_settings_despecialize):
7195         * device-msw.c (signal_enum_priner_error):
7196         * extents.c (decode_extent):
7197         * extents.c (decode_map_extents_flags):
7198         * extents.c (decode_extent_at_flag):
7199         * extents.c (Fextent_at):
7200         * extents.c (Fextents_at):
7201         * extents.c (symbol_to_glyph_layout):
7202         [[[[2]]]] Use structured errors.
7203
7204         * dialog-msw.c:
7205         * dialog-msw.c (mswindows_is_dialog_msg):
7206         * dialog-msw.c (mark_mswindows_dialog_id):
7207         * dialog-msw.c (dialog_proc):
7208         * dialog-msw.c (handle_question_dialog_box):
7209         * dialog-msw.c (syms_of_dialog_mswindows):
7210         Define new object to clean up marking; use it as a dialog identifier.
7211         Call new delete-dialog-box-hook.
7212
7213         * dialog-x.c (dbox_selection_callback):
7214         * dialog-x.c (dbox_descriptor_to_widget_value):
7215         * dialog-x.c (x_make_dialog_box_internal):
7216         Call new delete-dialog-box-hook.
7217         Return an id.
7218
7219         * dialog.c:
7220         * dialog.c (syms_of_dialog):
7221         * dialog.c (vars_of_dialog):
7222         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
7223
7224         * eval.c:
7225         * eval.c (signal_call_debugger):
7226         when noninteractive, output stack traces on the console instead
7227         of in a (never-seen) buffer.
7228
7229         * eval.c (signal_type_error):
7230         * eval.c (invalid_argument_2):
7231         * lisp.h:
7232         new funs for use w/structured errors.
7233
7234         * event-Xt.c:
7235         * event-Xt.c (x_to_emacs_keysym):
7236         * event-Xt.c (describe_event):
7237         * event-Xt.c (emacs_Xt_event_handler):
7238         * event-Xt.c (vars_of_event_Xt):
7239         * event-msw.c:
7240         * event-msw.c (mswindows_wnd_proc):
7241         * event-msw.c (vars_of_event_mswindows):
7242         rename {x,mswindows}-debug-events to debug-{}-events for
7243         consistency with other debug-foo variables.
7244
7245         * event-stream.c:
7246         document next-event more clearly.
7247
7248         * fileio.c (Ffile_name_directory):
7249         * fileio.c (Ffile_name_nondirectory):
7250         * fileio.c (Funhandled_file_name_directory):
7251         * fileio.c (file_name_as_directory):
7252         * fileio.c (Ffile_name_as_directory):
7253         * fileio.c (directory_file_name):
7254         * fileio.c (Fdirectory_file_name):
7255         * fileio.c (Fmake_temp_name):
7256         * fileio.c (Ffile_truename):
7257         * fileio.c (Fsubstitute_in_file_name):
7258         * fileio.c (expand_and_dir_to_file):
7259         * fileio.c (barf_or_query_if_file_exists):
7260         * fileio.c (check_executable):
7261         * fileio.c (Ffile_exists_p):
7262         * fileio.c (Ffile_writable_p):
7263         * fileio.c (Ffile_directory_p):
7264         * fileio.c (Ffile_regular_p):
7265         * fileio.c (Ffile_modes):
7266         * fileio.c (Ffile_newer_than_file_p):
7267         * fileio.c (Fverify_visited_file_modtime):
7268         * fileio.c (Fset_visited_file_modtime):
7269         * fileio.c (auto_save_1):
7270         (1). (2).
7271         fix up gcpro's.
7272
7273         * frame-msw.c:
7274         * frame-msw.c (mswindows_init_frame_1):
7275         * frame-msw.c (mswindows_enable_frame):
7276         * frame-msw.c (error_frame_unsizable):
7277         * frame-msw.c (msprinter_init_frame_1):
7278         * frame-msw.c (msprinter_init_frame_3):
7279         * frame-msw.c (console_type_create_frame_mswindows):
7280         (2).
7281         implement new enable/disable frame methods.
7282
7283         * frame-x.c:
7284         * frame-x.c (x_enable_frame):
7285         * frame-x.c (console_type_create_frame_x):
7286         implement new enable/disable frame methods.
7287
7288         * frame.c:
7289         * frame.c (Fdisable_frame):
7290         * frame.c (syms_of_frame):
7291         * frame.h (struct frame):
7292         implement new enable/disable frame methods/functions.
7293
7294         * general-slots.h:
7295         add initial-focus.
7296
7297         * glyphs-msw.c (mswindows_widget_instantiate):
7298         comment that initial-focus should be implemented.
7299
7300         * glyphs-widget.c:
7301         * glyphs-widget.c (check_valid_instantiator):
7302         * glyphs-widget.c (check_valid_orientation):
7303         * glyphs-widget.c (check_valid_tab_orientation):
7304         * glyphs-widget.c (check_valid_justification):
7305         * glyphs-widget.c (check_valid_border):
7306         * glyphs-widget.c (check_valid_callback):
7307         * glyphs-widget.c (check_valid_int_or_function):
7308         * glyphs-widget.c (check_valid_string_or_vector):
7309         * glyphs-widget.c (check_valid_item_list_1):
7310         * glyphs-widget.c (widget_validate):
7311         * glyphs-widget.c (combo_box_validate):
7312         * glyphs-widget.c (widget_instantiate):
7313         * glyphs-widget.c (syms_of_glyphs_widget):
7314         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
7315         * glyphs-widget.c (image_instantiator_combo_box):
7316         * glyphs-widget.c (image_instantiator_scrollbar):
7317         * glyphs-widget.c (image_instantiator_tab_control):
7318         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
7319         (2).
7320         support (unimplemented) keyword initial-focus.
7321         reindent long macros.
7322
7323         * glyphs-x.c (x_redisplay_widget):
7324         * glyphs-x.c (x_button_instantiate):
7325         * glyphs-x.c (x_button_redisplay):
7326         * glyphs-x.c (x_progress_gauge_instantiate):
7327         * glyphs-x.c (x_edit_field_instantiate):
7328         * glyphs-x.c (x_combo_box_instantiate):
7329         * glyphs-x.c (x_tab_control_instantiate):
7330         * glyphs-x.c (x_label_instantiate):
7331         * gui-x.c:
7332         * gui-x.c (button_item_to_widget_value):
7333         * gui-x.c (gui_items_to_widget_values_1):
7334         * gui-x.c (gui_item_children_to_widget_values):
7335         * gui-x.c (gui_items_to_widget_values):
7336         * gui-x.h:
7337         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7338         add new flag to gui-parsing routines to indicate whether
7339         accelerator specs should be supported.
7340
7341         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
7342
7343         * glyphs.h (struct Lisp_Image_Instance):
7344         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
7345         add initial-focus flag.
7346
7347         * gui.c:
7348         * gui.c (syms_of_gui):
7349         * gui.c (vars_of_gui):
7350         clean up menu-no-selection-hook.
7351
7352         * gui.h:
7353         support delete-dialog-box-hook.
7354
7355         * lread.c (Fload_internal):
7356         * lread.c (locate_file_in_directory_mapper):
7357         (1).
7358
7359         * lrecord.h:
7360         * lrecord.h (struct toolbar_button):
7361         * lrecord.h (syms_of_toolbar):
7362         document how to create a new object.
7363
7364         * menubar-msw.c (mswindows_char_is_accelerator):
7365         may be called on frames w/o menus.
7366
7367         * menubar.c (vars_of_menubar):
7368         clean up :filter docs.
7369
7370         * nt.c (readdir):
7371         * ntproc.c:
7372         (1).
7373
7374         * process-nt.c:
7375         * process-nt.c (validate_signal_number):
7376         * process-nt.c (signal_cannot_launch):
7377         * process-nt.c (nt_create_process):
7378         * process-nt.c (nt_send_process):
7379         * process-nt.c (nt_kill_child_process):
7380         * process-nt.c (nt_open_network_stream):
7381         * process-nt.c (syms_of_process_nt):
7382         (2).
7383         delete quote-handling.  call new lisp code that does it better.
7384
7385         * process-unix.c (connect_to_file_descriptor):
7386         * process-unix.c (allocate_pty):
7387         * process-unix.c (unix_send_process):
7388         * process-unix.c (unix_kill_child_process):
7389         * process-unix.c (unix_open_network_stream):
7390         * process-unix.c (unix_open_multicast_group):
7391         (1). (2).
7392
7393         * process.c:
7394         * process.c (Fstart_process_internal):
7395         (2).  need to canonicalize process path even if absolute.
7396
7397         * select-msw.c (symbol_to_ms_cf):
7398         * select-msw.c (ms_cf_to_symbol):
7399         * select-msw.c (cf_is_autofreed):
7400         * select-msw.c (mswindows_destroy_selection):
7401         * select.c:
7402         * select.c (syms_of_select):
7403         * select.h:
7404         support dibv5, fix bugs. (from Mike Alexander)
7405
7406         * select.c (Fget_selection_internal):
7407         * select.c (select_convert_out):
7408
7409         * sysdep.c:
7410         * sysdep.c (xemacs_stat):
7411         renamed.
7412
7413         * sysdep.c (mkdir):
7414         * sysdep.c (rmdir):
7415         but keep original stat() here because we provide encapsulation
7416         around these funs.
7417
7418         * sysfile.h:
7419         * sysfile.h (fstat):
7420         remove stat garbage.
7421
7422         * syswindows.h:
7423         fix X/MSW conflict.
7424         don't include tchar.h.  it's inappropriate because it makes
7425         compile-time distinctions when we want runtime distinctions.
7426         (we provide our own tchar replacements)
7427
7428         * toolbar.c:
7429         use default object printer for toolbar-button.
7430
7431         * unexcw.c:
7432         make sure we don't encapsulate.
7433
7434         * window.c (vars_of_window):
7435         emphasize that temp-buffer-show-hook is obsolete.
7436
7437 2000-08-05  Martin Buchholz  <martin@xemacs.org>
7438
7439         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
7440         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
7441
7442         * events.c (Fevent_timestamp_lessp):
7443         Not 64-bit clean.  Use EMACS_INT, not int.
7444
7445 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
7446
7447         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
7448         unsigned int and changed the last enum to
7449         lrecord_type_last_built_in_type.
7450         (lrecord_implementations_table): changed prototype to know how
7451         long the array is supposed to be.
7452         (lrecord_type_count): new unsigned int to keep track of the
7453         current number of lisp lrecord types.
7454         (DEFINE_EXTERNAL_LRECORD):
7455         (DECLARE_EXTERNAL_LRECORD): Added these two for external
7456         dynamic-modules to declare new lisp types. They are the same
7457         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
7458         int for each new type, and increment lrecord_type_count by 1.
7459
7460         * alloc.c (lrecord_implementations_table): Changed to reference
7461         lrecord_type_last_built_in_type for the size of the array.
7462         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
7463
7464 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
7465
7466         * glyphs.h (check_valid_item_list): Renamed from
7467         check_valid_item_list_1.
7468
7469 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
7470
7471         * select.c (Qselect_coerce): New.
7472         * select.c (Vselection_coercion_alist): New.
7473         * select.c (syms_of_select): Declare.
7474         * select.c (get-selection-internal): Use it.
7475         Use the new select-coerce functionality.
7476
7477         * select.c (select_coerce): New.
7478         * select.h (select_coerce): Declare.
7479         New function to coerce one type of data into another.
7480
7481 2000-08-03  Martin Buchholz  <martin@xemacs.org>
7482
7483         * callproc.c (Fcall_process_internal):
7484         (Fcall_process_internal):
7485         * process-unix.c (unix_create_process):
7486         Save and restore the value of errno, so that error messages are accurate.
7487
7488 2000-08-01  Martin Buchholz  <martin@xemacs.org>
7489
7490         * elhash.c (print_hash_table):
7491         Fix printing of hash tables to also use `key-and-value' instead of `t'.
7492         Prettify docstrings and indentation.
7493
7494 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7495
7496         * window.c (Fwindow_pixel_edges): Subtract frame border and
7497         gutter size.
7498
7499 2000-07-31  Andy Piper  <andy@xemacs.org>
7500
7501         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
7502         will acknowledge the change.
7503
7504         * glyphs.h: declare tab_control_order_only_changed.
7505
7506         * glyphs-x.c (x_tab_control_redisplay): use
7507         tab_control_order_only_changed.
7508
7509         * glyphs-widget.c (tab_control_order_only_changed): new function.
7510
7511         * glyphs-msw.c (mswindows_tab_control_redisplay): use
7512         tab_control_order_only_changed.
7513
7514         * gui.c (gui_item_equal_sans_selected): new function.
7515         (gui_item_equal): use it.
7516
7517         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
7518         :properties in favor of :items..
7519
7520         * glyphs-widget.c (check_valid_item_list): rename from
7521         check_valid_item_list_1.
7522         (check_valid_item_list_1): renamed.
7523         (combo_box_validate): deprecate :properties in favor of :items.
7524         (widget_instantiate): ditto.
7525         (tab_control_update): ditto.
7526         (image_instantiator_combo_box): ditto.
7527         (image_instantiator_tree_view): ditto.
7528         (image_instantiator_tab_control): ditto.
7529         (layout_post_instantiate): remove dead code.
7530
7531         * print.c (debug_print_no_newline): only write to debugger if in
7532         WIN32_NATIVE.
7533
7534         * elhash.c (Fmake_hash_table): update doc string.
7535
7536         * event-msw.c (mswindows_wnd_proc): don't allow processing of
7537         messages whilst in GC. This at least stops XEmacs crashing but has
7538         the potential for wierd behaviour.
7539
7540 2000-07-31  Martin Buchholz  <martin@xemacs.org>
7541
7542         * config.h.in:
7543         Make existence of s&m files optional.
7544
7545         * s/bsd386.h: Remove HAVE_GETLOADAVG.
7546         * s/freebsd.h: Remove HAVE_GETLOADAVG.
7547         * s/gnu.h: Remove HAVE_GETLOADAVG.
7548         * s/netbsd.h: Remove HAVE_GETLOADAVG.
7549         * s/sol2.h: Remove HAVE_GETLOADAVG.
7550         * lisp.h: Remove getloadavg() declaration.
7551         * fns.c:
7552         Include <sys/loadavg.h> if available.
7553         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
7554         * config.h.in:  Group together getloadavg()-related macros.
7555         Use only configure-time tests to detect getloadavg().
7556
7557 2000-07-30  Martin Buchholz  <martin@xemacs.org>
7558
7559         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
7560
7561 2000-07-25  Andy Piper  <andy@xemacs.org>
7562
7563         * syswindows.h: add tchar.h for native builds.
7564
7565         * frame.c (syms_of_frame): remove set-glyph-image.
7566
7567         * general-slots.h: add Qset_glyph_image.
7568
7569         * glyphs-widget.c (layout_update): add domain arg to
7570         set-glyph-image.
7571         (syms_of_glyphs_widget): remove set-glyph-image.
7572
7573 2000-07-23  Ben Wing  <ben@xemacs.org>
7574
7575         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
7576         Vpopup_frame_list.
7577
7578 2000-07-22  Andy Piper  <andy@xemacs.org>
7579
7580         * symsinit.h: add syms_of_win32().
7581
7582         * gui-msw.c (syms_of_gui_mswindows): remove
7583         Fmswindows_shell_execute.
7584         (Fmswindows_shell_execute): moved to win32.c.
7585
7586         * emacs.c (main_1): add syms_of_win32 ().
7587
7588         * win32.c (init_potentially_nonexistent_functions): rewrite in
7589         compiler-friendly terms.
7590         (Fmswindows_shell_execute): move here from gui-msw.c.
7591         (syms_of_win32): new.
7592
7593         * device-msw.c (Fmswindows_printer_list): clean up args to
7594         EnumPrinters.
7595         Don't include tchar under cygwin or mingw.
7596         (msprinter_default_printer): make cygwin-friendly.
7597
7598 2000-07-21  Andy Piper  <andy@xemacs.org>
7599
7600         * glyphs-widget.c (image_instantiator_tree_view): use tab
7601         control's update function.
7602         (layout_property): new function. Retrieve items.
7603
7604         * glyphs-msw.c (mswindows_tree_view_redisplay): new
7605         function. Re-populate the tree view from the pending items.
7606
7607         * glyphs.c (instantiate_image_instantiator): Make sure the domain
7608         is designated the parent if the domain is an image instance. This
7609         is needed so that dirtiness can be cascade up the hierarchy and
7610         thus for layout children to be redisplayed correctly.
7611         (allocate_image_instance): rename glyph -> parent.
7612
7613         * redisplay.h: change redisplay_output_layout signature.
7614
7615         * redisplay-msw.c (mswindows_output_display_block): use domain
7616         arg.
7617
7618         * redisplay-x.c (x_output_display_block): use domain arg.
7619
7620 2000-07-10  Andy Piper  <andy@xemacs.org>
7621
7622         * window.c (Fset_window_configuration): add comment.
7623
7624         * redisplay-output.c (compare_runes):
7625         (redisplay_output_subwindow): redisplay rather than update subwindow.
7626         (redisplay_output_layout): ditto.
7627
7628         * redisplay-msw.c (mswindows_frame_output_end):
7629         (mswindows_frame_output_end): make defer window pos optional.
7630
7631         * lisp.h: add Flast.
7632
7633         * glyphs.h (struct image_instantiator_methods): add dest_mask top
7634         normalize method. Change update method to be for changed
7635         instantiators. Add redisplay method. Change signature of layout
7636         method.
7637         (struct Lisp_Image_Instance): add instantiator.
7638         (IMAGE_INSTANCE_INSTANTIATOR): new.
7639         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7640         (XIMAGE_INSTANCE_INSTANTIATOR): new.
7641         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7642
7643         * glyphs.c:
7644         (find_instantiator_differences): new function.
7645         (Fset_instantiator_property): new convenience function.
7646         (check_image_instance_structure): strictly check for vector
7647         instantiators.
7648         (normalize_image_instantiator): make non-static.
7649         (instantiate_image_instantiator): pass on dest_mask and use new
7650         signatures for image_instance_layout and friends.
7651         (mark_image_instance): mark the instantiator. Mark the subwindow
7652         face not the widget face.
7653         (image_instance_equal): add instantiator.
7654         (image_instance_hash): ditto.
7655         (allocate_image_instance): ditto.
7656         (Fset_image_instance_property): removed.
7657         (Fimage_instance_file_name): ditto.
7658         (Fcolorize_image_instance): ditto.
7659         (image_instance_layout): add offsets to be set.
7660         (update_image_instance): new function. update an image instance
7661         from its changed instantiator.
7662         (inherit_normalize): add dest_mask.
7663         (xbm_normalize): ditto.
7664         (xface_normalize): ditto.
7665         (xpm_normalize): ditto.
7666         (text_update): set_property -> update.
7667         (image_instantiate): use the glyph identity as a hash key, not the
7668         instantiator.
7669         (glyph_width): use new image_instance_layout signature.
7670         (glyph_ascent): ditto.
7671         (glyph_descent): ditto.
7672         (glyph_height): ditto.
7673         (glyph_query_geometry): ressurrect.
7674         (glyph_layout): ditto.
7675         (redisplay_subwindow): update -> redisplay.
7676         (syms_of_glyphs): add Fset_instantiator_property.
7677         (image_instantiator_format_create): set_property -> update.
7678
7679         * glyphs-x.c:
7680         (autodetect_normalize): add dest_maks to signature.
7681         (x_redisplay_subwindow): update -> redisplay.
7682         (x_redisplay_widget): ditto.
7683         (x_button_redisplay): ditto.
7684         (x_progress_gauge_redisplay): ditto.
7685         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7686         stacking order.
7687         (console_type_create_glyphs_x): update -> redisplay.
7688         (image_instantiator_format_create_glyphs_x): ditto.
7689
7690         * glyphs-widget.c:
7691         (check_valid_instantiator): disallow glyphs in the instantiator,
7692         they must now be vectors.
7693         (check_valid_instantiator_list): ditto.
7694         (glyph_instantiator_to_glyph): use internal symbol rather than
7695         intern.
7696         (widget_update): renamed from widget_set_property. Call cascaded
7697         update methods.
7698         (redisplay_widget): renamed from update_widget.
7699         (widget_layout): image_instance_layout now takes position as well
7700         as size.
7701         (widget_normalize): ditto.
7702         (widget_instantiate): ditto.
7703         (tab_control_query_geometry) ditto.:
7704         (tab_control_update): renamed from tab_control_set_property.
7705         (progress_gauge_update): set_property -> update.
7706         (layout_normalize): rewrite so that child instantiators are
7707         normalized also.
7708         (layout_update): new function. Create glyphs from the normalized
7709         children and cope with any other layout keywords. We do not
7710         instantiate children here that will be take care of by
7711         redisplay_output_layout.
7712         (layout_instantiate): call layout_update and not much else.
7713         (layout_post_instantiate): not sure whether this is needed
7714         anymore.
7715         (layout_query_geometry): query glyph geometry rather than
7716         image_instance geometry.
7717         (layout_layout): set offsets from pass in parameters. Use glyph
7718         geometry and layout functions rather than image instance ones.
7719         (native_layout_layout): ditto.
7720         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7721         (image_instantiator_widget): set_property -> update.
7722         (image_instantiator_buttons): ditto.
7723         (image_instantiator_progress_guage): ditto.
7724         (image_instantiator_tab_control): ditto.
7725         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7726         (image_instantiator_layout): add update method.
7727
7728         * glyphs-msw.c (bmp_normalize):
7729         (mswindows_resource_normalize): add dest_mask so that it can be
7730         proprogated by layout_normalize.
7731         (begin_defer_window_pos): make optional because it may not be the
7732         right thing to do and it introduces differences with X.
7733         (mswindows_unmap_subwindow): ditto.
7734         (mswindows_map_subwindow): ditto.
7735         (mswindows_redisplay_subwindow): renamed from
7736         mswindows_update_subwindow.
7737         (mswindows_redisplay_widget): ditto.
7738         (mswindows_button_redisplay): renamed from
7739         mswindows_button_update. Update is now what the instantiation
7740         function does for a changed instantiator.
7741         (mswindows_progress_gauge_instantiate): set the progress value
7742         here if appropriate.
7743         (mswindows_tab_control_redisplay): cope with re-ordering of the
7744         members of the tab widget by simply selecting the new top
7745         widget. This makes things appear ok if you click on a tab.
7746         (mswindows_combo_box_instantiate): image_instance_layout now takes
7747         position as well as size.
7748         (mswindows_progress_gauge_redisplay): renamed from
7749         mswindows_progress_gauge_update.
7750         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7751         (image_instantiator_format_create_glyphs_mswindows): ditto.
7752
7753         * glyphs-eimage.c (jpeg_normalize):
7754         (gif_normalize):
7755         (png_normalize):
7756         (tiff_normalize): add dest_mask so that it can be proprogated by
7757         layout_normalize.
7758
7759         * elhash.c:
7760         (print_hash_table):
7761         (hash_table_weakness_validate):
7762         (decode_hash_table_weakness):
7763         (Fhash_table_weakness):
7764         (Fhash_table_type):
7765         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7766
7767         * console.h (struct console_methods): move update_* to
7768         redisplay_*.
7769
7770 2000-07-20  Ben Wing  <ben@xemacs.org>
7771
7772         * *.[ch] (XSETOBJ): remove unused middle argument.
7773         lisp-disunion.h: correct wrap_object() to one argument.
7774
7775 2000-07-15  Ben Wing  <ben@xemacs.org>
7776
7777         * s/cygwin32.h:
7778         * s/cygwin32.h (CYGWIN_CONV_PATH):
7779         Add missing logb prototype for v1.1.
7780         Use post-b20 names and alias to pre-b20 names when pre-b20.
7781
7782         * s/windowsnt.h: [5].
7783
7784 2000-07-15  Ben Wing  <ben@xemacs.org>
7785
7786         * Makefile.in.in (x_objs):
7787         * Makefile.in.in (sheap_objs):
7788         * Makefile.in.in (objs):
7789         added win32.o, cosmetic cleanups.
7790
7791         * alloc.c (Fmake_byte_code):
7792         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7793         etc. macros which declare their own args now.
7794
7795         * alloc.c (syms_of_alloc):
7796         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7797
7798         * buffer.c:
7799         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7800
7801         * buffer.c (Fget_file_buffer):
7802         Fixed GCPRO problem.
7803
7804         * buffer.c (get_truename_buffer):
7805         Fixed comment about GC checking.
7806
7807         * buffer.c (syms_of_buffer):
7808         Undeclared those dedicated frame funs.
7809         [2].
7810
7811         * buffer.h:
7812         Define convenience macros for internal/external conversions.
7813         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7814         and Qenvironment_variable_encoding for cleaner code.
7815
7816         * bufslots.h:
7817         Remove dedicated-frame; in lisp.
7818
7819         * bytecode.c (funcall_compiled_function):
7820         [1].
7821
7822         * bytecode.c (syms_of_bytecode):
7823         [2].
7824
7825         * console-msw.c:
7826         * console-msw.c (mswindows_show_console): Rewrote.
7827
7828         * console-msw.c (Fmswindows_debugging_output): New.
7829         Sends to OutputDebugString (special MSWin debugger interface).
7830
7831         * console-msw.c (Fmswindows_message_box):
7832         Fixed stupid bugs so it works when called from kill-emacs.
7833
7834         * console-msw.c (syms_of_console_mswindows):
7835         Declare Fmswindows_debugging_output.
7836
7837         * console-msw.h:
7838         New MSWin prototypes.
7839
7840         * console-msw.h (struct mswindows_frame):
7841         New entry last-click-mods for improved button-modifier support.
7842
7843         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7844         New struct entry `popup' with corresponding accessor.
7845
7846         * console-x.c:
7847         * console-x.c (split_up_display_spec):
7848         * console-x.c (get_display_arg_connection):
7849         * console-x.c (x_semi_canonicalize_console_connection):
7850         * console-x.c (x_canonicalize_device_connection):
7851         [[[6]]]: Change char to more specific type.
7852         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7853
7854         * console-x.c (x_semi_canonicalize_console_connection):
7855         * console-x.c (x_canonicalize_device_connection):
7856         [[[9]]]: Fix up error signalling to use new structured error system.
7857
7858         * console-x.h:
7859         [[[4]]]: Define codesys aliases:
7860         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7861         Qx_color_name_encoding, Qx_display_name_encoding.
7862
7863         * console.h (struct console_methods):
7864         New method make_dialog_box_internal supersedes older
7865         popup_dialog_box method.
7866
7867         * data.c:
7868         Define many new errors, part of new structured errors.
7869
7870         * data.c (init_errors_once_early):
7871         * data.c (syms_of_data):
7872         [2].
7873
7874         * device-msw.c (mswindows_init_device):
7875         [[[5]]]: Cleanup to support NT 3.51.
7876
7877         * device-msw.c (decode_devmode): Cleanup.
7878
7879         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7880         * device-msw.c (mswindows_handle_print_dialog_box):
7881         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7882         * device-msw.c (syms_of_device_mswindows):
7883         Delete the dialog box primitives recently introduced by Kirill and
7884         instead interface to general dialog box interface.
7885
7886         * device-x.c:
7887         * device-x.c (compute_x_app_name):
7888         * device-x.c (x_init_device):
7889         * device-x.c (Fx_valid_keysym_name_p):
7890         * device-x.c (Fx_set_font_path):
7891         [6].
7892         [7].
7893
7894         * device.h (wrap_device): New.
7895         First of its kind; meant to replace XSETDEVICE.
7896
7897         * dialog-msw.c: Many file-dialog symbols.
7898
7899         * dialog-msw.c (mswindows_register_popup_frame): New.
7900         * dialog-msw.c (mswindows_is_dialog_msg): New.
7901         For supporting kbd traversal in dialog boxes.
7902
7903         * dialog-msw.c (dialog_proc):
7904         Support hitting ESC in dialogs.
7905
7906         * dialog-msw.c (struct):
7907         Common dialog box errors.
7908
7909         * dialog-msw.c (handle_file_dialog_box): New.
7910         Add file dialog code.
7911
7912         * dialog-msw.c (handle_question_dialog_box):
7913         Redo existing code to support new question dialog syntax.
7914
7915         * dialog-msw.c (console_type_create_dialog_mswindows):
7916         We support new dialog console method.
7917
7918         * dialog-msw.c (syms_of_dialog_mswindows):
7919         * dialog-msw.c (vars_of_dialog_mswindows):
7920         New file dialog symbols, vars.
7921
7922         * dialog-x.c:
7923         * dialog-x.c (maybe_run_dbox_text_callback):
7924         * dialog-x.c (dbox_descriptor_to_widget_value):
7925         * dialog-x.c (x_make_dialog_box_internal):
7926         * dialog-x.c (console_type_create_dialog_x):
7927         Mule-ize entire file.
7928         Redo to support question dialog syntax.
7929         [6].
7930
7931         * dialog.c:
7932         * dialog.c (Fmake_dialog_box_internal):
7933         * dialog.c (syms_of_dialog):
7934         Kill old popup-dialog-box, replace with new primitive.
7935         Just call device method or signal error.
7936
7937         * eldap.c (Fldap_open):
7938         * eldap.c (Fldap_search_basic):
7939         * eldap.c (Fldap_add):
7940         * eldap.c (Fldap_modify):
7941         [1].
7942         [7].
7943
7944         * emacs.c:
7945         * emacs.c (make_arg_list_1):
7946         * emacs.c (make_arg_list):
7947         Mule-ize call to dll_init().
7948         [6].
7949         [8].
7950
7951         * emacs.c (make_argc_argv):
7952         * emacs.c (free_argc_argv):
7953         * emacs.c (init_cmdargs):
7954         * emacs.c (main_1):
7955         * emacs.c (Fkill_emacs):
7956         * emacs.c (Fdump_emacs):
7957         Update comments about what can be used in syms_* etc.
7958         Call init_win32() when necessary.
7959         Fix up MS Win dialog box in kill-buffer to actually work right.
7960         [7].
7961
7962         * eval.c:
7963         * eval.c (For):
7964         * eval.c (Fand):
7965         * eval.c (Fprogn):
7966         * eval.c (Fprog1):
7967         * eval.c (Fprog2):
7968         * eval.c (FletX):
7969         * eval.c (Flet):
7970         * eval.c (condition_case_3):
7971         * eval.c (Feval):
7972         * eval.c (function_argcount):
7973         * eval.c (funcall_lambda):
7974         [1].
7975
7976         * eval.c (type_error): New.
7977         * eval.c (maybe_type_error): New.
7978         * eval.c (continuable_type_error): New.
7979         * eval.c (maybe_continuable_type_error): New.
7980         * eval.c (type_error_with_frob): New.
7981         * eval.c (maybe_type_error_with_frob): New.
7982         * eval.c (continuable_type_error_with_frob): New.
7983         * eval.c (maybe_continuable_type_error_with_frob): New.
7984         New functions for use with structured errors.
7985
7986         * event-Xt.c:
7987         * event-Xt.c (x_event_to_emacs_event):
7988         Buttons are now modifiers too.
7989
7990         * event-Xt.c (emacs_Xt_current_event_timestamp):
7991         Implement new event method.
7992         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7993
7994         * event-msw.c:
7995         * event-msw.c (ntpipe_shove_writer): [5].
7996         * event-msw.c (mswindows_enqueue_mouse_button_event):
7997         * event-msw.c (mswindows_drain_windows_queue):
7998         * event-msw.c (mswindows_wnd_proc): [7].
7999         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
8000         * event-msw.c (mswindows_modifier_state):
8001         Throughout: support new button modifiers.
8002
8003         * event-msw.c (emacs_mswindows_current_event_timestamp):
8004         Implement new event method.
8005         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
8006
8007         * event-stream.c:
8008         * event-stream.c (event_stream_current_event_timestamp): New.
8009         * event-stream.c (maybe_kbd_translate): New functionality.
8010         * event-stream.c (vars_of_event_stream):
8011         Document new kbd-translate-table functionality.
8012
8013         * event-stream.c (Fcurrent_event_timestamp): New.
8014         New primitive for use in fabricated events.
8015         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
8016
8017         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
8018
8019         * events.c:
8020         * events.c (Fmake_event):
8021         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
8022         [1].
8023         [9].
8024
8025         * events.c (format_event_object): fix gcc warnings.
8026
8027         * events.c (Fevent_timestamp): Document new primitives.
8028
8029         * events.c (TIMESTAMP_HALFSPACE): New.
8030
8031         * events.c (Fevent_timestamp_lessp): New.  New primitive for
8032         comparing timestamps correctly (half-space algorithm).
8033
8034         * events.c (Fevent_modifier_bits): Doc fix.
8035
8036         * events.c (Fevent_modifiers): Major doc addition.
8037         * events.c (event_x_y_pixel_internal): Typo fix.
8038         * events.c (syms_of_events): Declare new primitives.
8039
8040         * events.h:
8041         Update long comment for button modifiers, timestamps.
8042
8043         * events.h (struct event_stream):
8044         New current_event_timestamp method.
8045
8046         * extents.c:
8047         * extents.c (extent_in_region_p):
8048         * extents.c (decode_extent):
8049         * extents.c (Fset_extent_parent):
8050         * extents.c (decode_map_extents_flags):
8051         Fix gcc warnings.
8052         [9].
8053
8054         * extents.c (struct extent_at_arg):
8055         * extents.c (decode_extent_at_flag):
8056         * extents.c (extent_at_mapper):
8057         * extents.c (extent_at_bytind):
8058         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
8059         * extents.c (Fextents_at): New primitive. [9].
8060         * extents.c (symbol_to_glyph_layout): [9].
8061         Support new primitive `extents-at'.
8062
8063
8064         * extents.c (get_text_property_bytind):
8065         extent_at_bytind has another arg.
8066         [9].
8067
8068         * extents.c (syms_of_extents): New primitive.
8069
8070         * file-coding.c (Fmake_coding_system): [1].
8071         * file-coding.c (subsidiary_coding_system): fix gcc warning
8072         * file-coding.c (syms_of_file_coding): [2].
8073
8074         * fileio.c (Fexpand_file_name):
8075         * fileio.c (Fsysnetunam):
8076         * fileio.c (Ffile_exists_p):
8077         * fileio.c (Ffile_executable_p):
8078         * fileio.c (Fverify_visited_file_modtime):
8079         Clean up GCPROing.
8080
8081         * fileio.c (syms_of_fileio): [2].
8082
8083         * filelock.c (lock_file_1):
8084         * filelock.c (current_lock_owner):
8085         * filelock.c (lock_if_free):
8086         * filelock.c (lock_file):
8087         * filelock.c (unlock_file):
8088         Clean up GCPROing.
8089
8090         * fns.c (concat): Fix gcc warning.
8091
8092         * fns.c (Fmember):
8093         * fns.c (Fold_member):
8094         * fns.c (Fmemq):
8095         * fns.c (Fold_memq):
8096         * fns.c (memq_no_quit):
8097         * fns.c (Fassoc):
8098         * fns.c (Fold_assoc):
8099         * fns.c (Fassq):
8100         * fns.c (Fold_assq):
8101         * fns.c (assq_no_quit):
8102         * fns.c (Frassoc):
8103         * fns.c (Fold_rassoc):
8104         * fns.c (Frassq):
8105         * fns.c (Fold_rassq):
8106         * fns.c (rassq_no_quit):
8107         * fns.c (Fdelete):
8108         * fns.c (Fold_delete):
8109         * fns.c (Fdelq):
8110         * fns.c (Fold_delq):
8111         * fns.c (delq_no_quit):
8112         * fns.c (Fremassoc):
8113         * fns.c (Fremassq):
8114         * fns.c (remassq_no_quit):
8115         * fns.c (Fremrassoc):
8116         * fns.c (Fremrassq):
8117         * fns.c (remrassq_no_quit):
8118         * fns.c (Freverse):
8119         * fns.c (mapcar1):
8120         [1].
8121
8122         * frame-msw.c (mswindows_init_frame_1):
8123         * frame-msw.c (mswindows_delete_frame):
8124         Register popups with dialog code so keyboard traversing works.
8125
8126         * frame-tty.c (tty_raise_frame_no_select): [1].
8127
8128         * frame-x.c:
8129         * frame-x.c (x_set_frame_text_value):
8130         * frame-x.c (x_set_frame_properties):
8131         * frame-x.c (x_create_widgets):
8132         [7].
8133
8134         * frame.c:
8135         * frame.c (Fmouse_pixel_position): Minor doc fixes.
8136
8137         * frame.h (wrap_frame): New.
8138         Macro like wrap_device.
8139
8140         * general.c:
8141         * general.c (SYMBOL):
8142         * general.c (syms_of_general):
8143         Major reorg.  This is now just a wrapper and symbols themselves
8144         are listed in general-slots.h.
8145
8146         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
8147         * glyphs-msw.c (mswindows_resource_instantiate): [5].
8148
8149         * glyphs-msw.c (mswindows_native_layout_instantiate):
8150         Add DS_CONTROL so keyboard traversal will work.
8151
8152         * glyphs-widget.c:
8153         * glyphs-widget.c (syms_of_glyphs_widget):
8154         Move some symbols to general-slots.h.
8155
8156         * glyphs-x.c:
8157         * glyphs-x.c (xbm_instantiate_1):
8158         * glyphs-x.c (x_xbm_instantiate):
8159         * glyphs-x.c (x_xface_instantiate):
8160         * glyphs-x.c (autodetect_instantiate):
8161         * glyphs-x.c (cursor_font_instantiate):
8162         * glyphs-x.c (x_update_widget):
8163         * glyphs-x.c (x_widget_instantiate):
8164         * glyphs.c (bitmap_to_lisp_data):
8165         * glyphs.c (pixmap_to_lisp_data):
8166         [7].
8167
8168         * glyphs.c (syms_of_glyphs):
8169         [2].
8170
8171         * gui-x.c:
8172         * gui-x.c (print_widget_value):
8173         * gui-x.c (menu_separator_style_and_to_external):
8174         * gui-x.c (add_accel_and_to_external):
8175         * gui-x.c (button_item_to_widget_value):
8176         * gui-x.c (gui_items_to_widget_values_1):
8177         * gui-x.c (gui_items_to_widget_values):
8178         * gui-x.c (syms_of_gui_x):
8179         * gui-x.c (vars_of_gui_x):
8180         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
8181         [9].
8182
8183         * gui-x.h:
8184         Muleize, prototype changes matching gui-x.c.
8185
8186         * gui.c:
8187         * gui.c (separator_string_p):
8188         * gui.c (gui_item_add_keyval_pair):
8189         * gui.c (make_gui_item_from_keywords_internal):
8190         * gui.c (signal_too_long_error):
8191         * gui.c (parse_gui_item_tree_item):
8192         * gui.c (syms_of_gui):
8193         * gui.c (vars_of_gui):
8194         * gui.h:
8195         menu-no-selection-hook moved here (used by MSWin).
8196         Move some symbols to general-slots.h.
8197         [6].
8198         [9].
8199
8200         * insdel.c (get_buffer_pos_char):
8201         * insdel.c (get_buffer_range_char):
8202         Add GC comments.
8203
8204         * keymap.c (keymap_lookup_directly):
8205         * keymap.c (keymap_store):
8206         * keymap.c (ensure_meta_prefix_char_keymapp):
8207         * keymap.c (describe_map):
8208         * keymap.h:
8209         Support new button modifiers.
8210
8211         * lisp-disunion.h (wrap_object):
8212         * lisp-disunion.h (XSETOBJ):
8213         Rename make_obj to wrap_object.
8214
8215         * lisp-union.h:
8216         * lisp-union.h (make_int):
8217         * lisp-union.h (make_char):
8218         Support wrap_object.
8219
8220         * lisp.h:
8221         * lisp.h (LIST_LOOP):
8222         * lisp.h (EXTERNAL_LIST_LOOP):
8223         * lisp.h (LIST_LOOP_2):
8224         * lisp.h (EXTERNAL_LIST_LOOP_1):
8225         * lisp.h (EXTERNAL_LIST_LOOP_2):
8226         * lisp.h (EXTERNAL_LIST_LOOP_3):
8227         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
8228         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8229         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
8230         * lisp.h (EXTERNAL_ALIST_LOOP_5):
8231         * lisp.h (EXTERNAL_ALIST_LOOP_6):
8232         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
8233         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
8234         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
8235         * lisp.h (struct Lisp_Symbol):
8236         * lisp.h (maybe_continuable_error_with_frob):
8237         Fix up section comments.
8238         Add new types for char to indicate usage.
8239         Delete symbols auto-generated from general-slots.h.
8240         Add prototypes for structured error functions.
8241         Add long comments describing looping macros and change interface
8242         so that lvalues are automatically declared.
8243         Add NO_DECLARE macro in case callers want to declare lvalues
8244         themselves.
8245
8246         * lread.c (read_syntax_error):
8247         * lread.c (continuable_read_syntax_error):
8248         * lread.c (read_structure):
8249         * lread.c (sequence_reader):
8250         * lread.c (read_list_conser):
8251         * lread.c (read_compiled_function):
8252         Rename syntax_error and continuable_syntax_error to avoid clash
8253         with same-named structured error functions.
8254
8255         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8256         * menubar-msw.c (populate_menu_add_item):
8257         * menubar-msw.c (populate_or_checksum_helper):
8258         [5].
8259         [9].
8260
8261         * menubar-x.c:
8262         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8263         Mule-ize whole file.
8264
8265         * menubar.c (Fnormalize_menu_item_name): Add optimization.
8266
8267         * mule-charset.c (Fmake_charset):
8268         * mule-wnnfns.c (Fwnn_set_param):
8269         [1].
8270
8271         * ntproc.c (create_child):
8272         * ntproc.c (Fwin32_set_current_locale):
8273         Add comments portending doom.
8274
8275         * objects-msw.c:
8276         * objects-msw.c (old_font_enum_callback_2):
8277         * objects-msw.c (font_enum_callback_1):
8278         * objects-msw.c (mswindows_enumerate_fonts):
8279         [5].
8280
8281         * objects-x.c:
8282         * objects-x.c (allocate_nearest_color):
8283         * objects-x.c (x_parse_nearest_color):
8284         * objects-x.c (x_initialize_color_instance):
8285         * objects-x.c (x_print_color_instance):
8286         * objects-x.c (x_finalize_color_instance):
8287         * objects-x.c (x_valid_color_name_p):
8288         * objects-x.c (x_initialize_font_instance):
8289         * objects-x.c (x_print_font_instance):
8290         * objects-x.c (valid_x_font_name_p):
8291         * objects-x.c (truename_via_FONT_prop):
8292         * objects-x.c (truename_via_random_props):
8293         * objects-x.c (truename_via_XListFonts):
8294         * objects-x.c (x_font_truename):
8295         * objects-x.c (x_font_instance_truename):
8296         * objects-x.c (x_font_instance_properties):
8297         * objects-x.c (x_list_fonts):
8298         * objects-x.c (x_find_charset_font):
8299         Mule-ize entire file.
8300         [7].
8301
8302         * objects-x.h:
8303         Mule-verify.
8304
8305         * print.c:
8306         * print.c (std_handle_out_external):
8307         * print.c (debug_print_no_newline):
8308         * print.c (syms_of_print):
8309         Output to all debugger kinds in debug-print.
8310         Fix console-output code under MSWin to actually work.
8311
8312         * process-nt.c (send_signal):
8313         * process-nt.c (nt_create_process):
8314         Use newer Unicode macros.
8315
8316         * process-unix.c (unix_create_process):
8317         * process-unix.c (unix_canonicalize_host_name):
8318         * process-unix.c (unix_open_network_stream):
8319         [7].
8320
8321         * scrollbar-x.c:
8322         Mule-verify.
8323
8324         * search.c (syms_of_search):
8325         [2].
8326
8327         * select-msw.c (mswindows_destroy_selection):
8328         Use LIST_LOOP_2.
8329
8330         * select-x.c (symbol_to_x_atom):
8331         [7].
8332
8333         * select.c (syms_of_select):
8334         [2].
8335
8336         * sound.c (Fplay_sound_file):
8337         [7].
8338
8339         * specifier.c:
8340         * specifier.c (decode_specifier_type):
8341         * specifier.c (Fvalid_specifier_locale_type_p):
8342         * specifier.c (check_valid_locale_or_locale_type):
8343         * specifier.c (decode_locale):
8344         * specifier.c (decode_locale_type):
8345         * specifier.c (decode_locale_list):
8346         * specifier.c (check_valid_domain):
8347         * specifier.c (decode_specifier_tag_set):
8348         * specifier.c (Fcanonicalize_tag_set):
8349         * specifier.c (Fdefine_specifier_tag):
8350         * specifier.c (Fspecifier_tag_predicate):
8351         * specifier.c (check_valid_inst_list):
8352         * specifier.c (check_valid_spec_list):
8353         * specifier.c (decode_how_to_add_specification):
8354         * specifier.c (check_modifiable_specifier):
8355         * specifier.c (specifier_add_spec):
8356         * specifier.c (boolean_validate):
8357         * specifier.c (display_table_validate):
8358         [9].
8359
8360         * specifier.c (syms_of_specifier):
8361         Move some symbols to general-slots.h.
8362         [2].
8363
8364         * symbols.c:
8365         * symbols.c (Fmapatoms):
8366         * symbols.c (Fapropos_internal):
8367         Add GCPROs.
8368
8369         * symbols.c (set_default_buffer_slot_variable):
8370         * symbols.c (set_default_console_slot_variable):
8371         [1].
8372
8373         * symbols.c (defsymbol_massage_name_1):
8374         * symbols.c (defkeyword_massage_name):
8375         * symbols.c (deferror_1):
8376         * symbols.c (deferror):
8377         * symbols.c (deferror_massage_name_and_message):
8378         * symeval.h:
8379         * symeval.h (DEFSYMBOL):
8380         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
8381
8382         * symbols.c (syms_of_symbols):
8383         [2].
8384
8385         * symsinit.h:
8386         * symsinit.h (init_win32): New.
8387         Also new is syms_of_dialog_mswindows.
8388
8389         * syswindows.h:
8390         Add new Unicode macros, missing Cygwin wide-char functions,
8391         convenience conversion macros for Qmswindows_tstr, macros for
8392         encapsulating required MSWin <-> Cygwin filename conversions,
8393         prototype for dynamically-extracted (not in NT 3.51) functions.
8394
8395         * toolbar-x.c:
8396         Mule-verify.
8397
8398         * tooltalk.c (Fadd_tooltalk_message_arg):
8399         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
8400         * tooltalk.c (Fadd_tooltalk_pattern_arg):
8401         [7].
8402
8403         * tooltalk.c (syms_of_tooltalk):
8404         [2].
8405
8406         * unexnt.c:
8407         * unexnt.c (unexec):
8408         Fix up headers, declaration of unexec() to be more standard.
8409
8410 2000-07-20  Martin Buchholz  <martin@xemacs.org>
8411
8412         * offix.h: Revert change to guard macros - they're used in offix.c!
8413
8414 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8415
8416         * lisp.h: Defsubred Fdelete.
8417
8418         * console-msw.h:  (msprinter_default_printer): Added.
8419
8420         * console-msw.c (msprinter_canonicalize_console_connection):
8421         (msprinter_canonicalize_device_connection): Added.
8422
8423         * device-msw.c (msprinter_default_printer):
8424         (Fmswingows_get_default_printer):
8425         (signal_enum_priner_error):
8426         (Fmswingows_printer_list): Added.
8427
8428 2000-07-19  Martin Buchholz <martin@xemacs.org>
8429
8430         * XEmacs 21.2.35 is released.
8431
8432 2000-07-19  Martin Buchholz  <martin@xemacs.org>
8433
8434         * select-x.c (x_handle_selection_request):
8435         Text selected in xemacs and pasted into xterm failed to appear.
8436         Spelling fixes and cosmetic changes.
8437
8438 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8439
8440         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
8441         XEmacs frame (fix for doubling chars in dialog boxes).
8442
8443 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
8444
8445         * select.c (select_convert_in, select_convert_out):
8446         Don't call intern() every time.
8447
8448         * select.c (Qselect_convert_in, Qselect_convert_out): New.
8449         * select.c (vars_of_select): Initialise them.
8450
8451 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
8452
8453         * select.c (selection-coercible-types): New.
8454
8455         * select.c (own-selection-internal):
8456         * select.c (get-selection-internal):
8457         MULE bug fix - these should default to COMPOUND_TEXT and not
8458         STRING for MULE. I think.
8459
8460         * select.c (select_convert_out): Use selection-coercible-types
8461         to find types that we can attempt to perform coercions on.
8462
8463 2000-07-18  Martin Buchholz  <martin@xemacs.org>
8464
8465         * mule-wnnfns.c:
8466         * mule-canna.c:
8467         Add coding: cookie to identify encoding.
8468
8469         * mule-canna.c (CANNA_mode_keys): make static.
8470         Use proper prototypes, even for functions of no arguments.
8471         Remove external prototype for Fding().
8472
8473         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
8474
8475         * select.c (syms_of_select): Add missing DEFSUBR.
8476
8477 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
8478
8479         * select.c (get_selection_internal, own_selection_internal):
8480         Make the type default to STRING, rather than placing a nil type
8481         into Vselection_alist.
8482
8483 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
8484
8485         * gpmevent.c (tty_selection_exists_p):
8486         * gpmevent.c (tty_own_selection):
8487         Updated parameter lists.
8488
8489 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
8490
8491         * select.h (selection-alist): Removed declaration.
8492
8493         * select.h (get_local_selection):
8494         * select.c (get_local_selection):
8495         Made static.
8496
8497         * select.h (convert_selection): Removed declaration.
8498         * select.c (convert_selection): Removed.
8499         This function belongs in Lisp.
8500
8501         * select.h (select_convert_in): Declare.
8502         * select.h (select_convert_out): Declare.
8503         * select.c (select_convert_in): New.
8504         * select.c (select_convert_out): New.
8505         New conversion functions for other files to call.
8506
8507         * select.h (select_notify_buffer_kill): Declare.
8508         * select.c (select_notify_buffer_kill): New.
8509         New functions that get called from kill-buffer.
8510
8511         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
8512         X-specific lisp code.
8513
8514         * select.h: Declare some of the lisp-visible functions for
8515         external use.
8516
8517         * select.c (clean_local_selection_data): Removed. This was
8518         a disgusting function, and previously should have been in
8519         select-x.c in any case. The functionality is now provided
8520         in select-convert-from-integer (select.el).
8521
8522         * select.c (available-selection-types): Fixed stupidity where
8523         INTEGER and ATOM got added twice. Also add STRING when we see an
8524         extent.
8525
8526         * select.c (get-selection-internal): Removed symbol stripping. No
8527         longer causes conversion when data comes from the internal cache.
8528
8529         * select.c (syms_of_select): Added new functions.
8530
8531         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
8532         error checking - previously this called abort!
8533
8534         * select-x.c (x_own_selection): Changed comment.
8535
8536         * select-x.c (x_handle_selection_request): Use select_convert_out.
8537         Don't mess with selection-alist; it's an internal variable of select.c.
8538
8539         * select-x.c (x_get_foreign_selection): Use select_convert_in.
8540
8541         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
8542         rather than messing with selection-alist.
8543
8544         * select-msw.c (mswindows_get_foreign_selection):
8545         Use TO_INTERNAL_FORMAT rather than hacking.
8546
8547 2000-07-14  Martin Buchholz  <martin@xemacs.org>
8548
8549         * process-unix.c (unix_open_multicast_group):
8550         (unix_open_multicast_group): Remove useless casts.
8551
8552 2000-07-13  Martin Buchholz  <martin@xemacs.org>
8553
8554         * sound.c (Fplay_sound): Fix `unused variable' warning.
8555
8556         * emacs.c (main): Use correct type for _environ on SCO5.
8557
8558 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
8559
8560         * console.h (own_selection_method):
8561         * console.h (selection_exists_p_method):
8562         * console.h (available_selection_types_method): New.
8563         * console.h (register_selection_data_type_method): New.
8564         * console.h (selection_data_type_name): New.
8565
8566         * console-msw.h (mswindows_destroy_selection): Declare it.  New
8567         function & alist to track GlobalAlloc()'d handles that need
8568         releasing when the clipboard data gets replaced or emptied.
8569
8570         * event-msw.c (mswindows_wnd_proc): Call it.
8571
8572         * lisp.h, general.c (Qappend): New symbol representing a
8573         `how-to-add' mode.
8574
8575         * select.c (own-selection-internal):
8576         * select.c (selection-exists-p):
8577         * select.c (available-selection-types): New.
8578         * select.c (register-selection-data-type): New.
8579         * select.c (selection-data-type-name): New.  New functions to deal
8580         with device-specific selection data formats.
8581         * select.c (selection-converter-out-alist): Renamed.
8582         * select.c (selection-converter-in-alist): New.
8583         * select.c (selection-appender-alist): New.  Added new alists.
8584         * select.c (syms_of_select, vars_of_select): Added new symbols &
8585         variables.
8586         * select.c (get_local_selection): Split.
8587         * select.c: Removed spurious type checking - selections may now be
8588         of any type, not just strings.
8589         * select.c (own-selection-internal):
8590
8591         * select.h, select.c (convert_selection): New. Created
8592         convert_selection() function based on get_local_selection().
8593         * select.h, select.c (QCF_*): New symbols representing mswindows
8594         clipboard formats.
8595         * select.h, select.c (Qreplace_all, Qreplace_existing): New
8596         symbols representing `how-to-add' modes.
8597
8598         * select-msw.c (x_sym_p): New.
8599         * select-msw.c (symbol_to_ms_cf): New.
8600         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
8601         symbols & clipboard formats. Can also handle string names.
8602         * select-msw.c (mswindows_own_selection):
8603         * select-msw.c (mswindows_selection_exists_p):
8604         Added `data-type' parameter. Use it.
8605         * select-msw.c (mswindows_available_selection_types): New.
8606         * select-msw.c (mswindows_register_selection_data_type): New.
8607         * select-msw.c (mswindows_selection_data_type_name): New.
8608         * select-msw.c (mswindows_own_selection):
8609         * select-msw.c (mswindows_get_foreign_selection):
8610         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
8611         * select-msw.c (console_create_select_mswindows): Added new methods.
8612         * select-msw.c (mswindows_destroy_selection): New.
8613         * select-msw.c (Vhandle_alist): New list.
8614         * select-msw.c (mswindows_own_selection):
8615
8616         * select-x.c (x_own_selection):
8617         * select-x.c (x_selection_exists_p):
8618         * select-x.c: Added some comments about maybe using new
8619         functionality.
8620         * select-x.c (x_own_selection):
8621
8622         * specifier.c: Remove definition of Qappend (now in general.c)
8623         * specifier.c (syms_of_specifier): Remove Qappend.
8624
8625 2000-07-12  Martin Buchholz  <martin@xemacs.org>
8626
8627         * config.h.in: Add socklen_t.
8628
8629         * s/decosf4-0.h: No special compiler flags needed or desired.
8630         In particular, undefine _BSD for DEC OSF 4.0.
8631
8632 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8633
8634         * redisplay-msw.c (msprinter_frame_output_end): Added.
8635         (console_type_create_redisplay_mswindows): Referred the above.
8636
8637         * frame.c (setup_frame_without_minibuffer): Do not create a
8638         default minibuffer frame on a printer device.
8639
8640         * frame-msw.c (apply_dc_geometry): Added.
8641         (msprinter_start_page):
8642         (msprinter_init_frame_3):
8643         (msprinter_eject_page): Use it.
8644
8645         * console-msw.h (struct msprinter_frame): Added pix_left and top,
8646         and removed residual duplex and orientation properties.
8647
8648 2000-07-11  Martin Buchholz  <martin@xemacs.org>
8649
8650         * eval.c (function_argcount): Work around a DEC CC compiler bug.
8651
8652         * unexalpha.c: Remove system prototypes from C sources!
8653
8654 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
8655
8656         * eval.c: Remove references to M-x edit-options in DEFUNs for
8657         `defvar' and `defconst'.
8658
8659 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8660
8661         * config.h.in: Remove SMART_INCLUDE hackery.
8662
8663         PostgreSQL hacking:
8664         * config.h.in: Don't use SMART_INCLUDE.
8665
8666         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8667         * inline.c: Simply #include "postgresql.h"
8668         * postgresql.c:
8669         - Don't use SMART_INCLUDE
8670         - Use simply "const".
8671         - Use standard doc string conventions.
8672         - Use correct type for result of PQstatus.
8673
8674 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8675
8676         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8677
8678         C++ compilation changes.
8679         * config.h.in (EXTERN_C): Define.
8680         * config.h.in (not): This is also a C++ keyword.
8681         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8682         * cm.c: Use EXTERN_C.
8683         * redisplay-tty.c: Use EXTERN_C.
8684         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8685
8686 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8687
8688         * general.c: Remove duplicate definition for Qfunction.
8689
8690 2000-07-08  Ben Wing  <ben@xemacs.org>
8691
8692         * device-msw.c (msprinter_init_device):
8693         * device-msw.c (sync_printer_with_devmode):
8694         * device-msw.c (handle_devmode_changes):
8695         * device-msw.c (print_dialog_worker):
8696         * device-msw.c (Fmsprinter_apply_settings):
8697         * device-msw.c (hash_devmode):
8698         * device-msw.c (Fmsprinter_settings_despecialize):
8699         use Qmswindows_tstr, not Qctext.
8700
8701         * vm-limit.c (check_memory_limits):
8702         avoid infinite loop printing warning messages.
8703
8704 2000-07-05  Craig Lanning  <lanning@scra.org>
8705
8706         * Makefile.in.in: Add support for including the Windows resources
8707         when building with the cygwin and mingw targets.
8708
8709         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8710         not set or not correct.
8711         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8712         (init_initial_directory): Don't try to use $PWD on the
8713         WIN32_NATIVE target.
8714
8715         * s\cygwin32.h:
8716         [[Add -mwindows to eliminate console window.]] not required --ben
8717         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8718         (MAIL_USE_POP): removed; now handled by configure.
8719
8720         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8721         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8722         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8723         (MAIL_USE_POP): removed; now handled by configure.
8724         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8725         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8726         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8727         constant string.
8728         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8729         up from <winsock.h> via systime.h.
8730         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8731         (getpagesize): from Dan Holmsand, added.
8732         Added #endif which was left dangling by Ben's mega patch; added
8733         comment to help prevent this in the future.
8734
8735         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8736
8737 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8738
8739         * console-msw.h (struct mswindows_device): Removed unnecessary
8740         cached device geometry values.
8741         Added update_tick and an accessor macro.
8742         (Lisp_Devmode): Added lrecord declaration.
8743         (struct msprinter_device): Contain devmode as a Lisp object.
8744         Added mswindows_get_selected_frame_hwnd();
8745
8746         * console.h (struct console_methods): Indentation nitpicking.
8747
8748         * device-msw.c (mswindows_init_device): Do not initialize geometry
8749         cache. Initialize update tick.
8750         (mswindows_device_system_metrics): Ask the device for its geometry.
8751         (global_free_2_maybe):
8752         (devmode_to_hglobal):
8753         (handle_printer_changes):
8754         (ensure_not_printing):
8755         (print_dialog_worker):
8756         (Fmsprinter_print_setup_dialog):
8757         (Fmsprinter_print_dialog):
8758         (plist_get_margin):
8759         (plist_set_margin):
8760         (Fmsprinter_page_setup_dialog): Added functions.
8761         (sync_printer_with_devmode):
8762         (handle_devmode_changes):
8763         (Fmsprinter_get_settings):
8764         (Fmsprinter_select_settings):
8765         (Fmsprinter_apply_settings):
8766         (allocate_devmode):
8767         (Fmsprinter_settings_copy):
8768         (Fmsprinter_settings_despecialize):
8769         (print_devmode):
8770         (finalize_devmode):
8771         (equal_devmode):
8772         (hash_devmode): Added functions
8773         (syms_of_device_mswindows): Init devmode lrecord class.
8774
8775         * device.h: Added an exfun for find-device.
8776
8777         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8778         geometry; although, recreate the device compatible DC.
8779
8780         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8781         (msprinter_init_frame_3):
8782         (msprinter_frame_property):
8783         (msprinter_internal_frame_property_p):
8784         (msprinter_frame_properties):
8785         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8786         print job properties (will move to device settings).
8787
8788         * lisp.h: Added symbols.
8789
8790         * general.c (syms_of_general): Declared them.
8791
8792         * hash.c (string_hash): Added.
8793
8794         * lrecord.h (lrecord_type): Added devmode lrecord type.
8795
8796 2000-07-02  Mike Sperber <mike@xemacs.org>
8797
8798         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8799         FreeBSD 4.0.
8800
8801 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8802
8803         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8804         integer.
8805
8806 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8807
8808         * data.c (Fstring_to_number): Don't recognize floating point if
8809         base is not 10.
8810
8811 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8812
8813         * glyphs-widget.c (tab_control_query_geometry):
8814         (widget_query_geometry):
8815         (button_query_geometry):
8816         * glyphs.c (text_query_geometry):
8817         Enforce type correctness.
8818
8819 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8820
8821         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8822         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8823
8824 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8825
8826         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8827         conflicts with gcc's fixincluded version of FOO.h.
8828
8829         * glyphs.h (image_instance_geometry): Remove trailing `,'
8830
8831 2000-06-08  Mike Alexander  <mta@arbortext.com>
8832
8833         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8834         (shove_thread): Don't write the same output twice
8835         (make_ntpipe_output_stream): Increase priority of shove thread
8836         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8837         chance to run
8838         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8839         it.
8840
8841 2000-06-12  Ben Wing  <ben@xemacs.org>
8842
8843         * s\mingw32.h (sigset):
8844         * s\windowsnt.h (sigset):
8845         rename msw_ to mswindows_ for consistency with general convention.
8846
8847 2000-06-12  Ben Wing  <ben@xemacs.org>
8848
8849         * console-msw.c:
8850         * console-msw.c (mswindows_get_console_hwnd):
8851         * console-msw.c (mswindows_ensure_console_allocated):
8852         * console-msw.c (mswindows_hide_console):
8853         * console-msw.c (mswindows_show_console):
8854         * console-msw.c (mswindows_ensure_console_buffered):
8855         * console-msw.c (mswindows_output_console_string):
8856         * console-msw.c (mswindows_windows9x_p):
8857         * console-msw.h:
8858         * device-msw.c (mswindows_get_workspace_coords):
8859         * device-msw.c (mswindows_device_system_metrics):
8860         * dialog-msw.c (mswindows_popup_dialog_box):
8861         * event-msw.c (mswindows_wnd_proc):
8862         * frame-msw.c (mswindows_size_frame_internal):
8863         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8864         * menubar-msw.c (displayable_menu_item):
8865         * menubar-msw.c (mswindows_char_is_accelerator):
8866         * nt.c:
8867         * nt.c (mswindows_sigset):
8868         * nt.c (mswindows_sigrelse):
8869         * nt.c (mswindows_sigpause):
8870         * nt.c (mswindows_raise):
8871         * nt.c (timer_proc):
8872         * ntproc.c:
8873         * ntproc.c (find_child_console):
8874         * ntproc.c (sys_kill):
8875         * print.c:
8876         * print.c (std_handle_out_external):
8877         * process-nt.c (find_child_console):
8878         * process-nt.c (send_signal_the_95_way):
8879         * process-nt.c (ensure_console_window_exists):
8880         * process-nt.c (nt_create_process):
8881         * syssignal.h:
8882         rename msw_ to mswindows_ for consistency with general convention.
8883
8884         * emacs.c:
8885         * dumper.c:
8886         include nt.h, not syswindows.h.
8887
8888         * nt.c (mswindows_fstat):
8889         * nt.c (mswindows_stat):
8890         prefix mswindows_ instead of attempting to directly override the
8891         library functions.  fix declarations.
8892
8893         * nt.h:
8894         include syswindows.h.  move some sysdep.h stuff here.
8895
8896         * ntheap.h:
8897         include syswindows.h, not <windows.h>.
8898
8899         * ntplay.c:
8900         clean up headers.
8901
8902         * sysdep.c:
8903         clean up headers.
8904
8905         * sysdep.c (sys_fstat):
8906         * sysdep.c (sys_stat):
8907         call mswindows versions when appropriate.
8908
8909         * sysdep.h:
8910         move mswin decls to nt.h.
8911
8912         * syswindows.h:
8913         add long comment describing appropriate use of the various windows
8914         headers.
8915
8916 2000-06-11  Ben Wing  <ben@xemacs.org>
8917
8918         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8919
8920 2000-06-10  Ben Wing  <ben@xemacs.org>
8921
8922         * Makefile.in.in (release):
8923         Correction to make sure xemacs.exe always dumped when correct.
8924
8925         * alloca.c:
8926         * balloon_help.c:
8927         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8928
8929         * buffer.c (set_buffer_internal):
8930         [[[[2]]]]: Remove HAVE_FEP code.
8931
8932         * buffer.c (init_initial_directory):
8933         [3].
8934
8935         * bytecode.c:
8936         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8937         individual files.
8938
8939         * callproc.c:
8940         * callproc.c (call_process_cleanup):
8941         * callproc.c (Fold_call_process_internal):
8942         * callproc.c (child_setup):
8943         * callproc.c (getenv_internal):
8944         * callproc.c (init_callproc):
8945         * callproc.c (vars_of_callproc):
8946         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8947         __CYGWIN32__ -> CYGWIN.
8948         DOS_NT -> WIN32_NATIVE.
8949         Remove MSDOS support/references, converting to WIN32_NATIVE
8950           where correct.
8951         __MINGW32__ -> MINGW.
8952         Fix windows.h includes.
8953         Remove bogus HAVE_NTGUI.
8954
8955         * config.h.in:
8956         [2].
8957
8958         * console-msw.c:
8959         mswindows_message_outputted added for use in allowing startup
8960         errors on the console to be seen.
8961
8962         * console-msw.c (msw_ensure_console_allocated):
8963         * console-msw.c (msw_output_console_string):
8964         * console-msw.c (DHEADER):
8965         * console-msw.c (DOPAQUE_DATA):
8966         * console-msw.c (DEVENT):
8967         * console-msw.c (DCONS):
8968         * console-msw.c (DCONSCDR):
8969         * console-msw.c (DSTRING):
8970         * console-msw.c (DVECTOR):
8971         * console-msw.c (DSYMBOL):
8972         * console-msw.c (DSYMNAME):
8973         Fix warnings.
8974
8975         * console-stream.c (stream_init_console):
8976         Fix text/binary problems.
8977
8978         * device-msw.c:
8979         * device-msw.c (mswindows_finish_init_device):
8980         * device-msw.c (mswindows_delete_device):
8981         [1].
8982
8983         * device.c (handle_asynch_device_change):
8984         [3].
8985
8986         * dgif_lib.c:
8987         * dgif_lib.c (DGifOpenFileName):
8988         * dgif_lib.c (DGifOpenFileHandle):
8989         * dgif_lib.c (DGifGetLine):
8990         * dgif_lib.c (DGifGetPixel):
8991         Added config.h/lisp.h, fix up includes.
8992         [1].
8993
8994         * dired-msw.c:
8995         [4].
8996
8997         * dired.c:
8998         * dired.c (file_name_completion):
8999         * dired.c (Ffile_attributes):
9000         * dired.c (syms_of_dired):
9001         [1].
9002
9003         * dumper.c:
9004         * dumper.c (pdump_file_unmap):
9005         * dumper.c (pdump_load):
9006         [1].
9007
9008         * editfns.c:
9009         * editfns.c (Ftemp_directory):
9010         * editfns.c (user_login_name):
9011         * editfns.c (Fuser_real_login_name):
9012         * editfns.c (get_home_directory):
9013         [1].
9014
9015         * elhash.c (finish_marking_weak_hash_tables):
9016         [[[[5]]]]: Fix GCC warnings.
9017
9018         * emacs.c:
9019         * emacs.c (mswindows_handle_hardware_exceptions):
9020         * emacs.c (make_arg_list_1):
9021         * emacs.c (main_1):
9022         * emacs.c (Fkill_emacs):
9023         * emacs.c (Fdump_emacs):
9024         [1].
9025         Fix problems with nested crashes, add long comment.
9026
9027         * event-Xt.c (init_event_Xt_late):
9028         [1].
9029
9030         * event-msw.c:
9031         * event-msw.c (mswindows_dde_callback):
9032         * event-msw.c (mswindows_handle_sticky_modifiers):
9033         * event-msw.c (mswindows_wnd_proc):
9034         [1].
9035         [5].
9036
9037         * events.c (character_to_event):
9038         [1].
9039
9040         * fileio.c:
9041         * fileio.c (Ffile_name_directory):
9042         * fileio.c (Ffile_name_nondirectory):
9043         * fileio.c (directory_file_name):
9044         * fileio.c (Fexpand_file_name):
9045         * fileio.c (Fsubstitute_in_file_name):
9046         * fileio.c (Ffile_name_absolute_p):
9047         * fileio.c (check_executable):
9048         * fileio.c (Ffile_readable_p):
9049         * fileio.c (Ffile_accessible_directory_p):
9050         * fileio.c (Ffile_modes):
9051         * fileio.c (Funix_sync):
9052         * fileio.c (vars_of_fileio):
9053         [1]. [4].
9054
9055         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
9056
9057         Expand getdefdir defn.
9058         Fix bogus rename() comment.
9059
9060         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
9061         to use standard XEmacs include files, e.g. sysfile.h, rather
9062         than system-specific includes.
9063
9064         * fns.c:
9065         * fns.c (Fsubseq):
9066         [5]. [6].
9067
9068         * frame.c (vars_of_frame):
9069         [1].
9070
9071         * getloadavg.c:
9072         * getloadavg.c (getloadavg):
9073         [1]. [6].
9074         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
9075         (We don't use it elsewhere in the code; just add a comment.)
9076
9077         * gif_io.c:
9078         [6].
9079         Add config.h.
9080
9081         * glyphs-msw.c:
9082         * glyphs-msw.c (mswindows_resource_instantiate):
9083         [1].
9084
9085         * glyphs-x.c (x_native_layout_instantiate):
9086         [5].
9087
9088         * gui-msw.c (Fmswindows_shell_execute):
9089         [1].
9090
9091         * insdel.c:
9092         [4].
9093
9094         * lisp.h:
9095         [4]. [5].
9096
9097         * lread.c (locate_file_in_directory_mapper):
9098         [1].
9099
9100         * lstream.c:
9101         [4].
9102
9103         * mem-limits.h:
9104         * mem-limits.h (get_lim_data):
9105         [1].
9106
9107         * menubar-msw.c:
9108         [4].
9109
9110         * ndir.h:
9111         [1].
9112
9113         * nt.c:
9114         * nt.c (getwd):
9115         * nt.c (closedir):
9116         * nt.c (rva_to_section):
9117         * nt.c (mswindows_executable_type):
9118         [1]. [6].
9119         Fix closedir() defn.
9120
9121         * nt.h:
9122         [[[[8]]]]: *_OK defs moved to sysfile.h.
9123
9124         * ntproc.c:
9125         [6]. [7].
9126
9127         * objects-x.c:
9128         [4].
9129
9130         * print.c:
9131         * print.c (std_handle_out_external):
9132         [1]. [4].
9133
9134         * process-nt.c:
9135         * process-nt.c (nt_create_process):
9136         [6].
9137         try to fix process quoting somewhat.
9138
9139         * process-unix.c (unix_create_process):
9140         [1].
9141
9142         * process.c:
9143         * process.c (vars_of_process):
9144         Add Vnull_device.
9145
9146         * process.h:
9147         [1].
9148
9149         * realpath.c:
9150         * realpath.c (xrealpath):
9151         [1].
9152
9153         * redisplay-tty.c (init_tty_for_redisplay):
9154         [3].
9155
9156         * redisplay.c:
9157         [4]. [6].
9158
9159         * scrollbar-msw.c:
9160         [4].
9161
9162         * sheap.c:
9163         * sheap.c (more_static_core):
9164         * sheap.c (report_sheap_usage):
9165         [5]. [6].
9166
9167         * signal.c:
9168         * signal.c (alarm_signal):
9169         [1]. [6].
9170
9171         * sound.c:
9172         [6].
9173
9174         * strftime.c:
9175         * strftime.c (zone_name):
9176         [1]. [5].
9177
9178         * symsinit.h (init_sunpro):
9179         [1].
9180
9181         * syscommctrl.h:
9182         commctrl.h not in Cygwin b20.1.
9183
9184         * sysdep.c:
9185         * sysdep.c (endif):
9186         * sysdep.c (sys_subshell):
9187         * sysdep.c (init_baud_rate):
9188         * sysdep.c (emacs_get_tty):
9189         * sysdep.c (emacs_set_tty):
9190         * sysdep.c (tty_init_sys_modes_on_device):
9191         * sysdep.c (init_system_name):
9192         * sysdep.c (sys_open):
9193         * sysdep.c (interruptible_open):
9194         * sysdep.c (sys_fopen):
9195         * sysdep.c (sys_mkdir):
9196         * sysdep.c (sys_rename):
9197         * sysdep.c (get_process_times_1):
9198         [1]. [6].
9199
9200         * sysdep.h:
9201         [1].
9202
9203         * sysdir.h:
9204         * sysdir.h (DIRENTRY_NONEMPTY):
9205         [1]. [6].
9206
9207         * sysdll.c (dll_init):
9208         * sysdll.h:
9209         [1].
9210
9211         * sysfile.h:
9212         [1]. [6]. [8].
9213         added text/binary defs.
9214
9215         * sysfloat.h:
9216         [1].
9217
9218         * sysproc.h:
9219         * sysproc.h (EDESTADDRREQ):
9220         * sysproc.h (poll_fds_for_input):
9221         [1]. [6].
9222
9223         * syspwd.h:
9224         [6].
9225
9226         * syssignal.h:
9227         [1].
9228
9229         * systime.h:
9230         [1]. [6].
9231
9232         * systty.h:
9233         [1].
9234
9235         * syswindows.h:
9236         [1].
9237         Always define WIN32_LEAN_AND_MEAN.
9238
9239         * unexcw.c (unexec):
9240         [5].
9241
9242         * unexec.c:
9243         * unexec.c (copy_text_and_data):
9244         * unexec.c (adjust_lnnoptrs):
9245         [1].
9246
9247         * unexnt.c:
9248         * unexnt.c (_start):
9249         [1].
9250
9251 2000-06-07  Ben Wing  <ben@xemacs.org>
9252
9253         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
9254         was used only as a model.  We've long since extracted any useful
9255         logic or code out of this. (I just did an exhaustive search.)
9256
9257         * s\msdos.h: Removed.
9258
9259         * s\windows95.h: Removed.
9260
9261 2000-06-10  Ben Wing  <ben@xemacs.org>
9262
9263         * s\cygwin32.h:
9264         [1]. [5].
9265         Don't use extern with fun defs.
9266
9267         * s\mingw32.h:
9268         [1]. [7].
9269         Remove nt\inc include.
9270         Remove getdisk, getdefdir. (The former is unused, the latter
9271         expanded in fileio.h.)
9272
9273         * s\windowsnt.h:
9274         * s\windowsnt.h (WIN32_NATIVE):
9275         * s\windowsnt.h (HAVE_STRCASECMP):
9276         [1]. [7].
9277         Add long comment about preprocessor changes.
9278         Remove getdisk, getdefdir. (The former is unused, the latter
9279         expanded in fileio.h.)
9280
9281 2000-06-10  Ben Wing  <ben@xemacs.org>
9282
9283         * m\arm.h:
9284         * m\delta.h:
9285         * m\intel386.h:
9286         * m\sequent.h:
9287         * m\template.h:
9288         * m\windowsnt.h:
9289         [1].
9290         Remove bogus/unused NO_SOCK_SIGIO.
9291
9292 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
9293
9294         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
9295         not an Emchar.
9296
9297 2000-06-04  Mike Sperber <mike@xemacs.org>
9298
9299         * casetab.c (set_case_table): For `set-standard-case-table',
9300         actually deposit the new case tables where the rest of XEmacs can
9301         see them.
9302
9303 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
9304
9305         * data.c (Faset): Don't cast XCHAR() to unsigned char.
9306
9307 2000-06-05  Ben Wing  <ben@xemacs.org>
9308
9309         * callproc.c (child_setup): Don't do close_load_descs() under
9310         MS Windows.  Put in a comment explaining why.
9311
9312 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
9313
9314         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
9315         Toolkit shell" which breaks `kill-compilation' on Windows NT
9316         native, retaining STDERR handling improvements.
9317
9318 2000-06-01  Andreas Jaeger  <aj@suse.de>
9319
9320         * s/s390.h: Support for S390, based on a patch by Martin
9321         Schwidefsky <schwidefsky@de.ibm.com>.
9322
9323 2000-05-30  Andy Piper  <andy@xemacs.org>
9324
9325         * window.c (allocate_window):
9326         (make_dummy_parent):
9327         (Fset_window_configuration): use new hashtable type.
9328
9329         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
9330         (struct image_instantiator_methods):
9331         (struct Lisp_Image_Instance): make instance geometry signed.
9332
9333         * glyphs.c (instantiate_image_instantiator):
9334         (image_instance_query_geometry):
9335         (image_instance_layout):
9336         (image_instance_layout):
9337         (query_string_geometry):
9338         (text_query_geometry):
9339         (image_instantiate):
9340         (image_instantiate):
9341         (cache_subwindow_instance_in_frame_maybe):
9342         (subwindow_query_geometry): make instance geometry signed.
9343
9344         * glyphs-widget.c (widget_query_geometry):
9345         (widget_layout):
9346         (button_query_geometry):
9347         (tree_view_query_geometry):
9348         (tab_control_query_geometry):
9349         (layout_query_geometry):
9350         (layout_layout):
9351         (native_layout_layout): make instance geometry signed.
9352
9353 2000-05-29  Olivier Galibert  <galibert@pobox.com>
9354
9355         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
9356         constant.
9357
9358         * general.c (syms_of_general): Add Qfull_assoc symbol.
9359
9360         * data.c (finish_marking_weak_lists): Mark full-assoc lists
9361         correctly.
9362         (decode_weak_list_type): Decode full-assoc type.
9363         (encode_weak_list_type): Encode full-assoc type.
9364         (Fmake_weak_list): Update doc string.
9365
9366 2000-05-30  Andy Piper  <andy@xemacs.org>
9367
9368         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
9369
9370         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
9371         (decode_hash_table_weakness): ditto.
9372         (Fhash_table_weakness): ditto.
9373         (Fhash_table_type): ditto.
9374         (finish_marking_weak_hash_tables): ditto.
9375         (hash_table_weakness_validate): ditto.
9376         (syms_of_elhash): ditto.
9377
9378 2000-05-28  Martin Buchholz <martin@xemacs.org>
9379
9380         * XEmacs 21.2.34 is released.
9381
9382 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
9383
9384         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
9385         start cache.
9386         (updating_line_start_cache): Gone.
9387         (regenerate_window): Replace resetting of VERTICAL_CLIP by
9388         generic code to force a minimum of 1 line laid out in the
9389         CMOTION_DISP case.
9390
9391 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
9392
9393         * glyphs.c (instantiate_image_instantiator): Check for initialized
9394         height & width no longer special cases IMAGE_NOTHING.
9395         (nothing_instantiate): Set height and width of instance.
9396
9397 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9398
9399         * unexelf.c (unexec): Search for ".data" section.
9400         Initialize new_data2_offset from old_data_index.
9401         Remove redundant check for ElfW.
9402
9403 2000-05-23  Andy Piper  <andy@xemacs.org>
9404
9405         * glyphs.c (get_image_instantiator_governing_domain): allow more
9406         specific domains as the governing domain rather than expecting an
9407         exact match. This fixes problems with layouts.
9408
9409 2000-05-22  Andy Piper  <andy@xemacs.org>
9410
9411         * redisplay-output.c (compare_runes): check for non-images
9412
9413         * glyphs.c (set_glyph_dirty_p): ditto.
9414         (update_glyph_cachel_data): ditto.
9415
9416         * glyphs-widget.c (layout_post_instantiate): ditto.
9417         (layout_post_instantiate): ditto.
9418
9419         * event-msw.c (mswindows_wnd_proc): warning removal.
9420
9421 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
9422
9423         * s\mingw32.h: Added #undef for CLASH_DETECTION.
9424
9425         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
9426
9427         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
9428
9429         * nt.c (rva_to_section): mingw32 needs rva_to_section.
9430         (mswindows_executable_type): mingw32 now has enough headers for
9431         this to work.
9432
9433 2000-05-20  Andy Piper  <andy@xemacs.org>
9434
9435         * console-msw.c (mswindows_output_last_error): ; -> ,
9436
9437 2000-05-12  Andy Piper  <andy@xemacs.org>
9438
9439         * console-msw.c (FROB): compare ints with ints.
9440
9441 2000-05-11  Andy Piper  <andy@xemacs.org>
9442
9443         * glyphs-x.c (x_finalize_image_instance): make minimal build
9444         happy.
9445
9446 2000-05-20  Ben Wing  <ben@xemacs.org>
9447
9448         * event-Xt.c:
9449         * event-Xt.c (vars_of_event_Xt):
9450         move modifier-keys-are-sticky to event-stream.c.
9451
9452         * event-msw.c:
9453         * event-msw.c (mswindows_enqueue_mouse_button_event):
9454         * event-msw.c (key_needs_default_processing_p):
9455         * event-msw.c (XEMSW_LCONTROL):
9456         * event-msw.c (mswindows_handle_sticky_modifiers):
9457         * event-msw.c (FROB):
9458         * event-msw.c (clear_sticky_modifiers):
9459         * event-msw.c (output_modifier_keyboard_state):
9460         * event-msw.c (output_alt_keyboard_state):
9461         * event-msw.c (mswindows_wnd_proc):
9462         * event-msw.c (mswindows_modifier_state):
9463         * event-msw.c (emacs_mswindows_handle_magic_event):
9464         implement sticky modifiers.
9465
9466         * event-stream.c:
9467         * event-stream.c (vars_of_event_stream):
9468         move modifier-keys-are-sticky here.
9469
9470         * lisp.h:
9471         add CHECK_FUNCTION.
9472
9473         * rangetab.c:
9474         implement map-range-table.
9475
9476
9477 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
9478
9479         * redisplay-tty.c (reset_tty_modes):
9480         (tty_redisplay_shutdown): Adjust argument type to
9481         tty_frame_output_end.
9482
9483 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9484
9485         * eval.c (Fbacktrace): Don't output a line with only right
9486         parenthesis.
9487
9488 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
9489
9490         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
9491         (Fpq_reset_poll): Ditto.
9492
9493 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
9494
9495         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
9496
9497 2000-05-16  Ben Wing  <ben@xemacs.org>
9498
9499         * buffer.c:
9500         * buffer.c (dfc_convert_to/from_internal_format):
9501         * buffer.c (reinit_vars_of_buffer):
9502         Fix conversion functions to allow reentrancy.
9503
9504         * console-msw.c:
9505         * console-msw.c (mswindows_output_last_error):
9506         New fun, generally useful -- output a human-readable
9507         version of GetLastError() on the console.
9508
9509         * console-msw.h:
9510         * console-msw.h (struct mswindows_frame):
9511         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
9512
9513         * console-stream.c (stream_output_begin):
9514         * console-stream.c (stream_output_end):
9515         * console-stream.c (stream_output_vertical_divider):
9516         * console-stream.c (stream_clear_region):
9517         * console-stream.c (stream_flash):
9518         * console-stream.c (console_type_create_stream):
9519         Delete blank stream methods, not needed.
9520
9521         * console.h (struct console_methods):
9522         Split begin/end methods into window and frame.
9523
9524         * event-msw.c:
9525         * event-msw.c (mswindows_handle_paint):
9526         * event-msw.c (output_alt_keyboard_state):
9527         * event-msw.c (mswindows_wnd_proc):
9528         * event-msw.c (vars_of_event_mswindows):
9529         Comment about problems with ignored-expose.
9530         Define mswindows-debug-events; not really implemented.
9531
9532         * frame-msw.c (mswindows_init_frame_1):
9533         random cleanups.
9534
9535         * glyphs-msw.c:
9536         * glyphs-msw.c (begin_defer_window_pos):
9537         * glyphs-msw.c (mswindows_unmap_subwindow):
9538         * glyphs-msw.c (mswindows_map_subwindow):
9539         * glyphs-msw.c (mswindows_resize_subwindow):
9540         Use DeferWindowPos to reduce flashing when mapping/unmapping.
9541
9542         * glyphs.c (make_image_instance_1):
9543         Fix crash.
9544
9545         * gutter.c (Fredisplay_gutter_area):
9546         Use new begin/end methods.
9547
9548         * lisp.h (Dynarr_new2):
9549         New creation fun.
9550
9551         * redisplay-msw.c:
9552         * redisplay-msw.c (mswindows_frame_output_begin):
9553         * redisplay-msw.c (mswindows_frame_output_end):
9554         * redisplay-msw.c (console_type_create_redisplay_mswindows):
9555         New begin/end methods -- handle DeferWindowPos.
9556
9557         * redisplay-output.c (redisplay_move_cursor):
9558         * redisplay-output.c (redraw_cursor_in_window):
9559         * redisplay-output.c (redisplay_update_line):
9560         * redisplay-output.c (redisplay_output_window):
9561         New begin/end methods.
9562
9563         * redisplay-tty.c:
9564         * redisplay-tty.c (tty_frame_output_begin):
9565         * redisplay-tty.c (tty_frame_output_end):
9566         * redisplay-tty.c (console_type_create_redisplay_tty):
9567         New begin/end methods.
9568
9569         * redisplay-x.c:
9570         * redisplay-x.c (x_window_output_begin):
9571         * redisplay-x.c (x_window_output_end):
9572         * redisplay-x.c (console_type_create_redisplay_x):
9573         New begin/end methods.
9574
9575         * redisplay.c (redisplay_frame):
9576         * redisplay.c (Fredisplay_echo_area):
9577         New begin/end methods.
9578         use MAYBE_DEVMETH for clear_frame; it may not exist.
9579
9580         * window.h (WINDOW_XFRAME):
9581         WINDOW_XFOO macros -- get locale and decode struct pointer.
9582
9583
9584 2000-05-12  Ben Wing  <ben@xemacs.org>
9585
9586         * emacs.c:
9587         * emacs.c (ensure_no_quitting_from_now_on):
9588         * emacs.c (fatal_error_signal):
9589         * emacs.c (mswindows_handle_hardware_exceptions):
9590         * emacs.c (main):
9591         * emacs.c (Fkill_emacs):
9592         * emacs.c (shut_down_emacs):
9593         * emacs.c (assert_failed):
9594         various improvements in fatal error handling.
9595
9596         * eval.c:
9597         move preparing_for_armageddon to emacs.c.
9598
9599         * lisp.h:
9600         declare fatal_error_in_progress.
9601
9602         * print.c:
9603         * print.c (std_handle_out_external):
9604         * print.c (std_handle_out_va):
9605         * print.c (stderr_out):
9606         * print.c (stdout_out):
9607         use console under mswin when no standard output.
9608         don't do code conversion during fatal error.
9609
9610         * scrollbar.c (Fscrollbar_page_up):
9611         * scrollbar.c (Fscrollbar_page_down):
9612         fix missing else.  reindent.
9613
9614 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
9615
9616         Emergency fix.
9617
9618         * glyphs.h (GLYPH_CACHEL_DESCENT):
9619         (GLYPH_CACHEL_DESCENT):
9620         (GLYPH_CACHEL_DESCENT):
9621         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9622         used in case these are inline functions.
9623         Use more absurd values to error check.
9624
9625         include window.h for error check functions.
9626
9627 2000-05-11  Ben Wing  <ben@xemacs.org>
9628
9629         * cmdloop.c (Freally_early_error_handler):
9630         Display message box under windows; otherwise, message will disappear
9631         before it can be viewed.
9632
9633         * console-msw.c:
9634         * console-msw.c (Fmswindows_message_box):
9635         * console-msw.c (FROB):
9636         * console-msw.c (syms_of_console_mswindows):
9637         Define new fun `mswindows-message-box'.
9638         #### I will merge this into `popup-dialog-box'; just give me
9639         a bit of time.
9640
9641         * general.c:
9642         * general.c (syms_of_general):
9643         Some new symbols used in `mswindows-message-box'.
9644
9645         * glyphs.c:
9646         * glyphs.c (Fset_image_instance_property):
9647         put warning in this fun.
9648
9649         * glyphs.h:
9650         * glyphs.h (GLYPH_CACHEL_WIDTH):
9651         * glyphs.h (GLYPH_CACHEL_ASCENT):
9652         * glyphs.h (GLYPH_CACHEL):
9653         * glyphs.h (GLYPH_CACHEL_GLYPH):
9654         define error-checking versions to try to catch a bug i've seen --
9655         redisplay gets in an infinite loop because the glyph width of the
9656         continuation glyph is 65535.
9657
9658         * lisp.h:
9659         Extern message-box stuff.
9660
9661         * window.c (allocate_window):
9662         * window.c (make_dummy_parent):
9663         * window.c (Fset_window_configuration):
9664         Use EQUAL not EQ for subwindow caches to make them work a bit
9665         better. (Something is still very broken.)
9666
9667
9668 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9669
9670         * glyphs.c (image_instantiate): Suppress gcc warnings.
9671         (Fmake_image_instance): Fix doc string.
9672         * specifier.c (Fmake_specifier): Ditto.
9673
9674 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9675
9676         * paths.h.in (PATH_LOCK): Removed.
9677         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9678         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9679
9680 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9681
9682         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9683         Document (featurep '(and xemacs 21.02)).
9684
9685 2000-05-09  Ben Wing  <ben@xemacs.org>
9686
9687         * buffer.c (complex_vars_of_buffer):
9688         update modeline-format doc.
9689
9690         * device.h:
9691         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9692
9693         * emacs.c:
9694         timeline of all released versions of Emacs, for use in creating
9695         authorship comments and in synching up.
9696
9697         * glyphs-widget.c (image_instantiator_buttons):
9698         * glyphs-widget.c (image_instantiator_edit_fields):
9699         * glyphs-widget.c (image_instantiator_combo_box):
9700         * glyphs-widget.c (image_instantiator_scrollbar):
9701         * glyphs-widget.c (image_instantiator_progress_guage):
9702         * glyphs-widget.c (image_instantiator_tree_view):
9703         * glyphs-widget.c (image_instantiator_tab_control):
9704         * glyphs-widget.c (image_instantiator_labels):
9705         * glyphs-widget.c (image_instantiator_layout):
9706         * glyphs-widget.c (image_instantiator_native_layout):
9707         rename decode_domain method to governing_domain.
9708
9709         * glyphs.c:
9710         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9711         * glyphs.c (add_entry_to_device_ii_format_list):
9712         make sure we don't put an entry more than once into the list.
9713         * glyphs.c (check_instance_cache_mapper):
9714         *************************************************************
9715         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9716         HAVE BEEN GETTING.
9717         *************************************************************
9718         * glyphs.c (get_image_instantiator_governing_domain):
9719         clean up, expand on new concept of governing domain.
9720         * glyphs.c (instantiate_image_instantiator):
9721         * glyphs.c (allocate_image_instance):
9722         use governing_domain instead of cache_domain in naming.
9723         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9724         * glyphs.c (make_image_instance_1):
9725         * glyphs.c (Fmake_image_instance):
9726         allow for any domain (not just device), and process the
9727         governing domain correctly.  very big doc fix.
9728         * glyphs.c (Fimage_instance_domain):
9729         new primitive, to retrieve the governing domain of an image instance.
9730         * glyphs.c (image_instantiate):
9731         use new governing_domain stuff.  this fixes a crash you could get
9732         by instantiating certain widget glyphs in frame locales. (should
9733         signal an error instead of crashing.)
9734         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9735         * glyphs.c (Fglyphp): clean up doc.
9736         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9737         * glyphs.c (syms_of_glyphs):
9738         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9739         * glyphs.c (image_instantiator_format_create): add some comments about
9740         bogus code.
9741         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9742         for current-display-table. (Apparently Hrjove implemented in 1998 a
9743         design I wrote up in 1996, but didn't update the doc string.)
9744
9745         * glyphs.h: clean up a doc string.
9746         * glyphs.h (governing_domain):
9747         * glyphs.h (struct image_instantiator_methods):
9748         changes for governing_domain stuff.
9749
9750         * gutter.c:
9751         * gutter.c (Fgutter_specifier_p):
9752         * gutter.c (Fgutter_size_specifier_p):
9753         * gutter.c (Fgutter_visible_specifier_p):
9754         * objects.c:
9755         * objects.c (Fcolor_specifier_p):
9756         * objects.c (Ffont_specifier_p):
9757         * objects.c (Fface_boolean_specifier_p):
9758         doc strings moved to make-*-specifier.
9759
9760         * redisplay.c (add_disp_table_entry_runes_1):
9761         * redisplay.c (generate_fstring_runes):
9762         * redisplay.c (screen):
9763         add random comments and doc strings.
9764
9765         * specifier.c:
9766         * specifier.c (Fmake_specifier):
9767         major overhaul of this doc string.
9768
9769         * specifier.c (Fvalid_specifier_domain_p):
9770         comment about the bogosity of image instances being domains.
9771         * specifier.c (decode_domain):
9772         now non-static, used in glyphs.c.
9773         * specifier.c (specifier_instance):
9774         comment about the bogosity of image instances being domains.
9775         * specifier.c (Fgeneric_specifier_p):
9776         move doc string to make-generic-specifier.
9777         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9778         rebackslashify.
9779
9780         * specifier.h:
9781         * specifier.h (DOMAIN_FRAME):
9782         * specifier.h (DOMAIN_LIVE_P):
9783         * specifier.h (DOMAIN_XDEVICE):
9784         rebackslashify.
9785         add comments about problems with these macros.
9786         prototype for decode_domain.
9787
9788         * toolbar.c:
9789         * toolbar.c (Ftoolbar_specifier_p):
9790         move doc string to `make-toolbar-specifier'.
9791
9792         * window.c (window_unmap_subwindows_cache_mapper):
9793         *************************************************************
9794         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9795         HAVE BEEN GETTING.
9796         *************************************************************
9797
9798 2000-05-09  Andy Piper  <andy@xemacs.org>
9799
9800         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9801
9802         * window.c (Fset_window_configuration): reset the frame subwindow
9803         cache and re-initialize the window subwindow caches.
9804
9805         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9806
9807 2000-05-09  Ben Wing  <ben@xemacs.org>
9808
9809         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9810         DWORD.
9811
9812 2000-04-26  Mike Woolley  <mike@bulsara.com>
9813
9814         * ntheap.c: Changed recreate_heap to limit the amount reserved
9815         for the heap to that which is actually available. Also now
9816         displays a message box (with some dignostics) in the event that
9817         it still can't start.
9818
9819 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9820
9821         * callproc.c (Fold_call_process_internal): GCPRO path
9822
9823 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9824
9825         Patch by Bill Perry.
9826
9827         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9828         back data instead of #ifdef.
9829         (Fscrollbar_page_down): ditto.
9830
9831 2000-05-07  Ben Wing  <ben@xemacs.org>
9832
9833         * buffer.h:
9834         Kludge for defining Qmswindows_tstr.
9835
9836         * nt.c:
9837         * nt.c (open_input_file):
9838         * nt.c (open_output_file):
9839         * nt.c (rva_to_section):
9840         * nt.c (mswindows_executable_type):
9841         Move all memory-mapped-file routines here (some were in unexnt.c,
9842         which is bad because they are used by process-nt.c, and unexnt
9843         won't be around when portable dumping).  Synched the above routines
9844         with FSF 20.6.
9845
9846         * nt.h:
9847         Removed ifdef'd out bogus code.
9848         Fixed some prototypes.
9849
9850         * nt.h (file_data):
9851         * nt.h (OFFSET_TO_RVA):
9852         * nt.h (RVA_TO_OFFSET):
9853         * nt.h (RVA_TO_PTR):
9854         Moved the memory-mapped-file structures, macros and prototypes
9855         here, to parallel nt.c.  ntheap.h should really be removed
9856         entirely, and it's a non-portable-dumper specific file.
9857
9858         * ntheap.h (round_to_next):
9859         Moved the memory-mapped-file structures, macros and prototypes
9860         to nt.h.
9861
9862         * ntproc.c (compare_env):
9863         Moved rva_to_section and mswindows_executable_type to nt.c.
9864         Moved compare_env to process-nt.c.
9865         ntproc.c will die, one day.
9866
9867         * ntproc.c (sys_spawnve):
9868         Account for win32_ -> mswindows_.
9869
9870         * process-nt.c:
9871         * process-nt.c (struct nt_process_data):
9872         * process-nt.c (ensure_console_window_exists):
9873         * process-nt.c (compare_env):
9874         * process-nt.c (nt_create_process):
9875         * process-nt.c (nt_kill_process_by_pid):
9876         * process-nt.c (syms_of_process_nt):
9877         * process-nt.c (vars_of_process_nt):
9878         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9879         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9880         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9881         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9882         Move compare_env here from ntproc.c.
9883
9884         * process.c (Fprocess_send_region):
9885         Takes an optional fourth argument, BUFFER, which should fix some
9886         problems with call-process.
9887
9888         * syscommctrl.h:
9889         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9890
9891         * syswindows.h:
9892         Move ICC_BAR_CLASSES to syscommctrl.h.
9893         Add preliminary macros for MSWindows/Mule.  More to come.
9894
9895         * unexnt.c:
9896         * unexnt.c (unexec):
9897         open_output_file moved to nt.c.
9898
9899
9900 2000-05-05  Andy Piper  <andy@xemacs.org>
9901
9902         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9903         instance from the frame cache also since GC may catch up too late
9904         to make frame deletion sane.
9905
9906 2000-05-04  Andy Piper  <andy@xemacs.org>
9907
9908         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9909         (x_finalize_image_instance): ungcpro on deletion.
9910
9911         * glyphs.c (image_instantiator_format_create): give pointers a
9912         query geometry method so that the geometry is at least set.
9913
9914         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9915         initialize layouts if using widgets.
9916
9917 2000-05-03  Andy Piper  <andy@xemacs.org>
9918
9919         * nt.c: remove bogus reference to sysmmsystem.h
9920
9921         * gui-x.c (popup_selection_callback): fix no selection abort.
9922
9923 2000-05-02  Andy Piper  <andy@xemacs.org>
9924
9925         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9926         (mswindows_widget_instantiate): ditto.
9927
9928         * glyphs-widget.c (initialize_widget_image_instance): initialize
9929         children correctly.
9930         (widget_instantiate): cope with children and items in the same
9931         instance.
9932
9933         * glyphs.c (mark_image_instance): cope with children as a first
9934         class member.
9935         (image_instance_equal): ditto.
9936         (image_instance_hash): ditto.
9937         (image_instance_changed): ditto.
9938
9939 2000-04-30  Andy Piper  <andy@xemacs.org>
9940
9941         * glyphs.c (subwindow_query_geometry): new function. Return some
9942         defaults.
9943         (subwindow_instantiate): don't assign dimensions if none have been
9944         given.
9945         (image_instantiator_format_create): add subwindow_query_geometry.
9946         (print_image_instance): cope with layouts as widgets.
9947
9948 2000-04-29  Andy Piper  <andy@xemacs.org>
9949
9950         * frame.c (delete_frame_internal): call
9951         free_frame_subwindow_instance_cache so that all subwindows are
9952         finalized before their parent.
9953         (mark_frame): remove subwindow_cachels.
9954         (Fmake_frame): remove subwindow_cachel manipulation.
9955         (allocate_frame_core): subwindow_instance_cache is a weak list.
9956         (delete_frame_internal): set subwindow_instance_cache to nil.
9957
9958         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9959         finalization safe.
9960         (mswindows_finalize_image_instance): use the device
9961         not the domain as the domain may have died already.
9962
9963         * glyphs-x.c (x_finalize_image_instance): ditto.
9964         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9965         HEIGHT.
9966
9967         * redisplay-output.c (redisplay_unmap_subwindows): update for
9968         subwindow instance cache as a weak list.
9969         (redisplay_unmap_subwindows_maybe): ditto.
9970         (redisplay_unmap_subwindows_except_us): ditto.
9971
9972         * glyphs.c (unmap_subwindow): error checking will check the domain
9973         so don't deal with it here. Don't use cachels anymore.
9974         (map_subwindow): ditto.
9975         (update_subwindow_cachel_data): remove old accessor names.
9976         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9977         (Fresize_subwindow): don't update cachel.
9978         (mark_subwindow_cachels):
9979         (update_subwindow_cachel_data):
9980         (add_subwindow_cachel):
9981         (get_subwindow_cachel_index):
9982         (update_subwindow_cachel):
9983         (reset_subwindow_cachels):
9984         (mark_subwindow_cachels_as_not_updated): deleted.
9985         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9986         subwindow instance to the frame cache.
9987         (find_matching_subwindow): update for subwindow instance cache as
9988         a weak list.
9989         (update_widget_instances): ditto.
9990         (image_instance_type_to_mask):inlined.
9991         (free_frame_subwindow_instance_cache): new function. finalize all
9992         subwindows that are instantiated.
9993
9994         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9995         of cachel information.
9996         (IMAGE_INSTANCE_DISPLAY_X):
9997         (IMAGE_INSTANCE_DISPLAY_Y):
9998         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9999         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
10000         (XIMAGE_INSTANCE_DISPLAY_X):
10001         (XIMAGE_INSTANCE_DISPLAY_Y):
10002         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
10003         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
10004         remove subwindow_cachel structure and function references.
10005         (image_instance_type_to_mask): inline from glyphs.c
10006
10007         * redisplay.c (redisplay_frame): remove subwindow_cachel
10008         references.
10009
10010         * frame.h (struct frame): remove subwindow_cachels.
10011         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
10012
10013         * frameslots.h: add subwindow_instance_cache.
10014
10015         * window.c (replace_window): check subwindow cache of replacement.
10016         (window_unmap_subwindows_cache_mapper):
10017         (window_unmap_subwindows): new functions. Unmap all subwindows
10018         cached on this window.
10019         (mark_window_as_deleted): unmap all subwindows.
10020
10021 2000-04-27  Andy Piper  <andy@xemacs.org>
10022
10023         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
10024
10025         * glyphs-widget.c (widget_layout): return something.
10026         (layout_layout): return something. Fail if not initialized.
10027         (layout_query_geometry): ditto.
10028         (image_instantiator_native_layout): new function. Initialized the
10029         native layout type.
10030         (widget_instantiate): don't do layout stuff here.
10031
10032         * glyphs.c (instantiate_image_instantiator): reorded calling or
10033         instantiate and post_instantiate with layout in between.
10034         (image_instance_layout): be more selective about deciding whether
10035         the layout has been done or not.
10036
10037         * glyphs.h (struct image_instantiator_methods): return a value
10038         from layout_method.
10039
10040 2000-04-26  Andy Piper  <andy@xemacs.org>
10041
10042         * glyphs.c (allocate_image_instance): make initial width and
10043         height unspecified. Set initialized to 0.
10044
10045         * syscommctrl.h new file. Encapsulates commctrl.h.
10046
10047         * syswindows.h new file. Encapsulates windows.h.
10048
10049         * ntplay.c: use new syswindows.h and syscommctrl.h header.
10050         * nt.c: ditto.
10051         * console-msw.h: ditto.
10052
10053         * redisplay-tty.c (tty_output_display_block): remove layout references.
10054
10055         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
10056         window handle rather than just the frame.
10057
10058         * glyphs.c (mark_image_instance): remove layout references.
10059         (print_image_instance): ditto.
10060         (image_instance_equal): ditto.
10061         (image_instance_hash): ditto.
10062         (decode_image_instance_type): ditto.
10063         (encode_image_instance_type): ditto.
10064         (image_instantiate): ditto.
10065         (allocate_glyph): ditto.
10066         (Fimage_instance_height): ditto.
10067         (Fimage_instance_width): ditto.
10068         (update_subwindow): ditto.
10069
10070         * redisplay-x.c (x_output_display_block): recode for layouts as
10071         widgets.
10072
10073         * redisplay-output.c (redisplay_output_layout): recode for layouts
10074         as widgets.
10075         (compare_runes): remove layout references.
10076
10077         * redisplay-msw.c (mswindows_output_display_block): recode for
10078         layouts as widgets.
10079
10080         * glyphs-widget.c (image_instantiator_layout): remove
10081         layout_possible_dest_types.
10082         (layout_possible_dest_types): deleted.
10083
10084         * glyphs.h (image_instance_type): remove layout references.
10085         (struct Lisp_Image_Instance): ditto. Add initialized flag.
10086         (IMAGE_INSTANCE_INITIALIZED): new accessor.
10087         (XIMAGE_INSTANCE_INITIALIZED): ditto.
10088
10089 2000-04-25  Andy Piper  <andy@xemacs.org>
10090
10091         * glyphs-widget.c (image_instantiator_buttons):
10092         (image_instantiator_edit_fields):
10093         (image_instantiator_combo_box):
10094         (image_instantiator_scrollbar):
10095         (image_instantiator_progress_guage):
10096         (image_instantiator_tree_view):
10097         (image_instantiator_tab_control):
10098         (image_instantiator_labels):
10099         (image_instantiator_layout): call default post_instantiate method.
10100         (widget_post_instantiate): new function. Simply lays out the
10101         widgets.
10102
10103         * glyphs.h (struct image_instantiator_methods): add
10104         post_instantiate method.
10105
10106         * glyphs.c (instantiate_image_instantiator): add post_instantiate
10107         method calls.
10108
10109 2000-04-23  Andy Piper  <andy@xemacs.org>
10110
10111         * glyphs.h (struct image_instantiator_methods): add
10112         decode_domain_method.
10113         (struct Lisp_Image_Instance): remove subwindow frame - it can be
10114         derived from the domain.
10115         (IMAGE_INSTANCE_FRAME): new accessor.
10116         (XIMAGE_INSTANCE_FRAME): ditto.
10117
10118         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
10119         instead of _SUBWINDOW_FRAME.
10120         (finalize_image_instance): ditto.
10121         (Fimage_instance_foreground): ditto.
10122         (Fimage_instance_background): ditto.
10123         (image_instantiate): ditto.
10124         (update_subwindow_cachel): ditto.
10125         (update_subwindow): ditto.
10126         (unmap_subwindow): ditto.
10127         (map_subwindow): ditto
10128         (subwindow_instantiate): ditto.
10129         * glyphs-msw.c (mswindows_update_widget): ditto.
10130         (mswindows_progress_gauge_instantiate): ditto.
10131         (mswindows_tab_control_update): ditto.
10132         * glyphs-x.c (x_update_widget): ditto.
10133         (x_widget_instantiate): ditto.
10134         (x_tab_control_instantiate): ditto.
10135         (x_tab_control_update): ditto.
10136         * event-msw.c (mswindows_wnd_proc): ditto
10137
10138         * glyphs-widget.c (image_instantiator_layout): use
10139         subwindow_decode_domain.
10140         (image_instantiator_buttons): ditto.
10141         (image_instantiator_edit_fields): ditto.
10142         (image_instantiator_combo_box): ditto.
10143         (image_instantiator_scrollbar): ditto.
10144         (image_instantiator_progress_guage): ditto.
10145         (image_instantiator_tree_view): ditto.
10146         (image_instantiator_tab_control): ditto.
10147         (image_instantiator_labels): ditto.
10148         (image_instantiator_layout): ditto.
10149
10150         * glyphs.c: add instance error checking to many functions.
10151         (instantiate_image_instantiator): decode device from cache_domain.
10152         (image_instantiate): partially rewrite by using
10153         decode_image_instantiator_domain to determine what domain the
10154         instance needs to be cached in.
10155         (decode_image_instantiator_domain): new function. Determine what
10156         domain the image needs to be cached in.
10157         (check_window_subwindow_cache): new error checking function.
10158         (check_instance_cache_mapper): ditto.
10159         (check_image_instance_structure): ditto.
10160         (subwindow_decode_domain): new function. Encodes a window as a
10161         subwindow's cache domain.
10162         (image_instantiator_format_create): use it for text and
10163         subwindows.
10164
10165 2000-04-21  Andy Piper  <andy@xemacs.org>
10166
10167         * glyphs.c (image_instance_device): new function.
10168         (image_instance_frame): new function.
10169         (image_instance_window): new function.
10170         (image_instance_live_p): new function.
10171
10172         * window.c (mark_window_as_deleted): reset the subwindow_instance_
10173         cache to nil.
10174
10175         * glyphs.h (struct Lisp_Image_Instance): device->domain.
10176         (IMAGE_INSTANCE_DOMAIN): new accessor.
10177         (XIMAGE_INSTANCE_DOMAIN): ditto.
10178
10179         * glyphs-x.c (x_finalize_image_instance): device->domain.
10180
10181         * glyphs-msw.c (init_image_instance_geometry): device->domain.
10182         (mswindows_finalize_image_instance): ditto.
10183
10184         * glyphs-eimage.c (jpeg_instantiate): device->domain.
10185         (gif_instantiate): ditto.
10186         (png_instantiate): ditto.
10187         (tiff_instantiate): ditto.
10188
10189         * glyphs.c (instantiate_image_instantiator): use domain rather
10190         than device.
10191         (mark_image_instance): device -> domain.
10192         (print_image_instance): ditto.
10193         (finalize_image_instance): ditto.
10194         (image_instance_equal): ditto.
10195         (allocate_image_instance): ditto.
10196         (Fcolorize_image_instance): ditto.
10197         (query_string_geometry): ditto.
10198         (image_instantiate): ditto
10199         (query_string_font): ditto.
10200         (image_instantiate): ditto.
10201         (update_subwindow): ditto.
10202         (unmap_subwindow): ditto.
10203         (map_subwindow): ditto.
10204         (subwindow_instantiate): ditto.
10205
10206         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
10207         (DOMAIN_FRAME): ditto.
10208         (DOMAIN_WINDOW): ditto.
10209         (DOMAIN_LIVE_P): ditto.
10210         (XDOMAIN_DEVICE): ditto.
10211         (XDOMAIN_FRAME): ditto.
10212         (XDOMAIN_WINDOW): ditto.
10213
10214         * specifier.c (Fvalid_specifier_domain_p): add image instances as
10215         a valid specifier domain.
10216
10217 2000-04-19  Andy Piper  <andy@xemacs.org>
10218
10219         * glyphs-widget.c (syms_of_glyphs_widget): remove
10220         widget-callback-current-channel.
10221         (vars_of_glyphs_widget): ditto.
10222         * glyphs.h: ditto
10223
10224         * gui.c (get_gui_callback): revert to previous behaviour.
10225
10226 2000-04-18  Andy Piper  <andy@xemacs.org>
10227
10228         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
10229         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
10230         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
10231
10232         * glyphs.c (image_instance_equal): add margin_width.
10233         (image_instance_hash): ditto.
10234
10235         * glyphs-widget.c (widget_instantiate): deal with margin-width.
10236         (layout_query_geometry): ditto.
10237         (layout_layout): ditto.
10238         (syms_of_glyphs_widget): add margin-width.
10239         (image_instantiator_layout): allow margin-width.
10240
10241         * glyphs.c (update_widget_instances): make a normal function.
10242         (syms_of_glyphs): remove Qupdate_widget_instances.
10243         * glyphs.h: ditto.
10244
10245         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
10246         so that we don't corrupt ideas about the last event or
10247         command. Remove widget-callback-current-channel fiddling.
10248         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10249
10250 2000-05-01  Martin Buchholz <martin@xemacs.org>
10251
10252         * XEmacs 21.2.33 is released.
10253
10254 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
10255
10256         * make-src-depend: Allow dots in header file name.
10257
10258 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
10259
10260         * mule-charset.h (struct charset_lookup): Add
10261         next_allocated_1_byte_leading_byte and
10262         next_allocated_2_byte_leading_byte.
10263         * mule-charset.c: Move above two variables so that those values
10264         will be dumped.
10265
10266 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
10267
10268         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
10269         when string length is zero.
10270         (find_charsets_in_emchar_string): Ditto.
10271
10272 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
10273
10274         * lisp.h: extern Qdialog and Qmenubar.
10275
10276         * gui-x.c: added events.h.
10277                 also fixed typo which made the file uncompilable.
10278
10279         * general.c: Added Qmenubar and Qdialog
10280
10281 2000-04-28  Ben Wing  <ben@xemacs.org>
10282
10283         * frame-msw.c (mswindows_init_frame_1):
10284         * frame-msw.c (mswindows_mark_frame):
10285         * event-msw.c (mswindows_enqueue_dispatch_event):
10286         * console-msw.h:
10287         * console-msw.h (struct mswindows_frame):
10288         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
10289         there are now three hash tables for callbacks.
10290         mswindows_enqueue_dispatch_event is no longer static.
10291
10292         * dialog-x.c (maybe_run_dbox_text_callback):
10293         * dialog-x.c (dbox_descriptor_to_widget_value):
10294         switch to new cons3 form for callbacks.
10295
10296         * glyphs-msw.c (mswindows_register_gui_item):
10297         * glyphs-msw.c (mswindows_widget_instantiate):
10298         * glyphs-msw.c (add_tree_item):
10299         * glyphs-msw.c (add_tab_item):
10300         new image instance parameter, so it can be passed to callback-ex.
10301         respect :callback-ex as well as :callback.
10302
10303         * glyphs-widget.c (VALID_GUI_KEYWORDS):
10304         add :callback-ex.
10305
10306         * glyphs.c (print_image_instance):
10307         prettify, e.g. now prints widget type.
10308
10309         * gui-x.h:
10310         certain funs have new image instance parameter.
10311
10312         * gui.c:
10313         * gui.c (get_gui_callback):
10314         * gui.c (gui_item_add_keyval_pair):
10315         * gui.c (gui_item_init):
10316         * gui.c (gui_add_item_keywords_to_plist):
10317         * gui.c (mark_gui_item):
10318         * gui.c (gui_item_hash):
10319         * gui.c (gui_item_equal):
10320         * gui.c (copy_gui_item):
10321         * gui.c (syms_of_gui):
10322         recognize callback-ex in a number of places.
10323         also, fix the annoying "can't get out of yes-no dialog" bug.
10324
10325         * gui.h:
10326         * gui.h (struct Lisp_Gui_Item):
10327         recognize callback-ex in a number of places.
10328
10329         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10330         new parameter in button_item_to_widget_value.
10331
10332         * glyphs-x.c (x_update_widget):
10333         * glyphs-x.c (x_button_instantiate):
10334         * glyphs-x.c (x_button_update):
10335         * glyphs-x.c (x_progress_gauge_instantiate):
10336         * glyphs-x.c (x_edit_field_instantiate):
10337         * glyphs-x.c (x_combo_box_instantiate):
10338         * glyphs-x.c (x_tab_control_instantiate):
10339         * glyphs-x.c (x_label_instantiate):
10340         new image instance parameter in various places.
10341
10342         * event-Xt.c:
10343         * event-Xt.c (enqueue_Xt_dispatch_event):
10344         this fun gets exported.
10345
10346         * gui-msw.c:
10347         * gui-msw.c (mswindows_handle_gui_wm_command):
10348         handle both :callback and :callback-ex, and generate our own
10349         event because it's one of the callback-ex arguments.
10350
10351         * gui-x.c:
10352         * gui-x.c (popup_selection_callback):
10353         handle both :callback and :callback-ex, and generate our own
10354         event because it's one of the callback-ex arguments.
10355         * gui-x.c (button_item_to_widget_value):
10356         * gui-x.c (gui_items_to_widget_values_1):
10357         * gui-x.c (gui_item_children_to_widget_values):
10358         * gui-x.c (gui_items_to_widget_values):
10359         new image instance parameter in various places.
10360
10361         * fns.c (Freplace_list):
10362         fix small typo in doc string.
10363
10364         * lisp.h:
10365         declare enqueue_Xt_dispatch_event.
10366
10367 2000-04-28  Ben Wing  <ben@xemacs.org>
10368
10369         * buffer.c:
10370         * buffer.c (Frecord_buffer):
10371         * buffer.c (syms_of_buffer):
10372         delete record-buffer-hook.
10373
10374         * fns.c:
10375         * fns.c (Freplace_list):
10376         * fns.c (syms_of_fns):
10377         new primitive replace-list.
10378
10379         * frameslots.h:
10380         slot for old buffer-alist.
10381
10382         * lisp.h:
10383         exfun replace-list.
10384
10385         * redisplay.c:
10386         * redisplay.c (redisplay_frame):
10387         * redisplay.c (syms_of_redisplay):
10388         * redisplay.c (vars_of_redisplay):
10389         new hook buffer-list-changed-hook.
10390         call it.
10391
10392 2000-04-27  Ben Wing  <ben@xemacs.org>
10393
10394         * extents.h: extern in_modeline_generation.
10395
10396         * redisplay.c (generate_formatted_string_db): set
10397         in_modeline_generation.
10398
10399         * extents.c (extent_changed_for_redisplay): don't mark redisplay
10400         flags if in modeline generation.  otherwise frame-modified-tick
10401         is ticked far too often.
10402         Declare in_modeline_generation.
10403
10404 2000-04-26  Ben Wing  <ben@xemacs.org>
10405
10406         * emacs.c (vars_of_emacs): document quick-build "error-checking"
10407         option.
10408         (vars_of_emacs): add quick-build as an error-checking option.
10409         A bit kludgy, but there doesn't seem much point in creating
10410         a real var for this.
10411
10412         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
10413
10414 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10415
10416         * redisplay.h (struct display_line): Add a new variable,
10417         line_continuation.
10418
10419         * redisplay.c (create_text_block): Set dl->line_continuation if
10420         the line continues.
10421         (create_string_text_block): Ditto.
10422         (regenerate_window_incrementally): Use line_continuation instead
10423         of searching continuation glyph.
10424         (add_margin_runes): Call add_glyph_rune.
10425         (add_glyph_rune): Handle margin glyph.
10426
10427 2000-04-20  Martin Buchholz  <martin@xemacs.org>
10428
10429         * filelock.c (fill_in_lock_file_name):
10430         ANSIfy.
10431         Check for IS_ANY_SEP instead of '/'.
10432         (lock_file_1):
10433         Avoid generating gratuitous garbage.  Call user_login_name() directly.
10434         Never check errno without first seeing that system call failed.
10435         (unlock_file): Add GCPRO.
10436         (Flock_buffer): Fix docstring.
10437         (Ffile_locked_p): Fix docstring.  Add GCPRO.
10438
10439 2000-04-19  Martin Buchholz  <martin@xemacs.org>
10440
10441         * sysdep.c (get_pty_max_bytes):
10442         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
10443         strings longer than 252 bytes.
10444
10445         * md5.c: Unconditionally include ANSI header <limits.h>
10446
10447         * glyphs-x.c (convert_EImage_to_XImage):
10448         * lisp-union.h (union Lisp_Object):
10449         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
10450
10451 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10452
10453         * filelock.c (current_lock_owner): Remove unused variable o, p.
10454
10455 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
10456
10457         * callint.c: Remove multiply defined symbol Qlet
10458         (syms_of_callint): ditto.
10459
10460 2000-04-14  Andy Piper  <andy@xemacs.org>
10461
10462         * general.c (syms_of_general): add last-command, this-command, let
10463         and funcall.
10464
10465         * lisp.h: declare various symbols.
10466
10467         * glyphs.h: declare Qwidget_callback_current_channel;
10468
10469         * glyphs-widget.c (syms_of_glyphs_widget): add
10470         Qgui_callback_current_channel.
10471         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
10472
10473         * gui-msw.c (mswindows_handle_gui_wm_command): bind
10474         widget-callback-current-channel when invoking the interactive
10475         arg. Also bind last-command and next-command when invoking the
10476         widget updates.
10477         * gui-x.c (popup_selection_callback): ditto.
10478
10479         * gui.c (get_gui_callback): massage args so that we are always
10480         calling eval. This allows us to add our own variable bindings
10481         outside.
10482
10483         * glyphs-x.c (x_button_instantiate): use
10484         gui_items_to_widget_values since this is GC safe.
10485         (x_progress_gauge_instantiate): ditto.
10486         (x_edit_field_instantiate): ditto.
10487         (x_label_instantiate): ditto.
10488
10489         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
10490         (emacs_Xt_event_widget_focus_out): new function
10491         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
10492         focus.
10493         (emacs_Xt_event_add_widget_actions): new function. add focus
10494         functions as actions.
10495         (init_event_Xt_late): use it.
10496
10497 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
10498
10499         * event-stream.c (Fdispatch_event): Doc fix.
10500
10501 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
10502
10503         * postgresql.c: Remove all references to PQsetenv*.
10504
10505         * postgresql.h: Remove references to PGsetenvHandler object.
10506         * lrecord.h (lrecord_type): Ditto.
10507
10508 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10509
10510         * glyphs-msw.h (struct mswindows_image_instance_data): Added
10511         real_heigh and real_width members, and accessor macros for these.
10512
10513         * glyphs-msw.c (init_image_instance_geometry): New function.
10514         (init_image_instance_from_dibitmap): Use it.
10515         (mswindows_resource_instantiate): Use it.
10516         (init_image_instance_from_xbm_inline): Use it.
10517         (mswindows_initialize_image_instance_mask): Use real bitmap
10518         geometry.
10519         (mswindows_create_resized_bitmap): Ditto.
10520         (mswindows_create_resized_mask): Ditto.
10521
10522         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
10523         and bitmap to their surface size.
10524
10525 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
10526
10527         * process-unix.c (unix_send_process): Guard against process MIA
10528         after Faccept_process_output.
10529
10530 2000-04-11  Ben Wing  <ben@xemacs.org>
10531
10532         * eval.c (unbind_to_hairy): fix brokenness introduced by
10533         nanosecond speed improvements.
10534
10535 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
10536
10537         * sunplay.c (init_device): To play sounds correctly, the device
10538         apparently needs to be initialized at least once by XEmacs.  Make
10539         it so.
10540
10541 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10542
10543         * redisplay.c (add_margin_runes): Add text image glyph
10544           handling.
10545
10546 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10547
10548         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
10549         gcc is newer than 2.5.
10550
10551 2000-04-06  Colin Rafferty  <colin@xemacs.org>
10552
10553         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
10554
10555         * fns.c (size_bit_vector):
10556         * alloc.c (size_vector):
10557         (make_vector_internal):
10558         (make_bit_vector_internal):
10559         (sweep_bit_vectors_1):
10560         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
10561
10562 2000-04-06  Andy Piper  <andy@xemacs.org>
10563
10564         * gmalloc.c (malloc): undo previous change.
10565         (malloc): ditto.
10566         (free): ditto.
10567         (realloc): ditto.
10568
10569 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
10570
10571         * line-number.c (buffer_line_number): Revert to former version.
10572
10573 2000-04-06  Andy Piper  <andy@xemacs.org>
10574
10575         * gmalloc.c (malloc): add error checking.
10576         (malloc): ditto.
10577         (free): ditto.
10578         (realloc): ditto.
10579
10580         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
10581         button_item_to_widget_value arg.
10582
10583         * glyphs-x.c (x_button_instantiate): add extra
10584         button_item_to_widget_value arg.
10585         (x_progress_gauge_instantiate): ditto.
10586         (x_edit_field_instantiate): ditto.
10587         (x_label_instantiate): ditto.
10588
10589         * gui-x.c (gui_items_to_widget_values_1): add extra
10590         button_item_to_widget_value arg.
10591         (button_item_to_widget_value): add extra menu_item_p arg.
10592
10593         * gui-x.h: change signature of button_item_to_widget_value.
10594
10595         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
10596         button_item_to_widget_value arg.
10597
10598 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10599
10600         * buffer.h (struct buffer): auto_save_modified should be long.
10601
10602 2000-04-05  Andy Piper  <andy@xemacs.org>
10603
10604         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
10605         type.
10606         (button_query_geometry): give a little more room so that athena
10607         buttons fit.
10608
10609 2000-04-05  Andy Piper  <andy@xemacs.org>
10610
10611         * faces.c (complex_vars_of_faces): The widget face should inherit
10612         the font of the gui-element face.
10613
10614 2000-04-04  Andy Piper  <andy@xemacs.org>
10615
10616         * glyphs-x.c (x_button_update): new function. unconditionally
10617         update a button's state when the instance is dirty.
10618         (image_instantiator_format_create_glyphs_x): add x_button_update.
10619         (x_widget_instantiate): remove old resize cruft.
10620
10621 2000-04-02  Andy Piper  <andy@xemacs.org>
10622
10623         * frame.c (change_frame_size_1): The introduction of gutters means
10624         that we need to allow 0 as a potential frame dimension.
10625
10626 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10627
10628         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10629         image glyph if allow_cursor.
10630         (add_hscroll_rune): Don't allow cursor to border glyph.
10631         (create_text_block): Ditto.
10632
10633         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10634         text not in buffer.
10635         (redisplay_output_layout): Call ensure_face_cachel_complete for
10636         text image glyph.
10637
10638
10639 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10640
10641         * redisplay.c (add_glyph_rune): Adding text image as text runes.
10642
10643         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10644         not in buffer
10645
10646         * redisplay-tty.c (tty_output_display_block): Delete the routine
10647         for text image glyph
10648         * redisplay-x.c (x_output_display_block): ditto
10649         * redisplay-msw.c (mswindows_output_display_block): ditto
10650
10651 2000-02-02  Mike Alexander  <mta@arbortext.com>
10652
10653         Note: Some of these were committed by accident as part of other
10654         patches.
10655
10656         * regex.c (regex_compile): Avoid compiler warnings.
10657
10658         * ntproc.c (sys_spawnve): Avoid compiler warnings.
10659
10660         * nt.h: Declare term_ntproc correctly.
10661
10662         * nt.c: Remove incorrect declaration of get_home_directory which
10663         is declared correctly in lisp.h.
10664
10665         * keymap.c (get_keyelt): Avoid compiler warnings.
10666         (raw_lookup_key_mapper): Avoid compiler warnings.
10667
10668         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10669
10670         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10671
10672         * filemode.c (mode_string): Avoid compiler warnings.
10673
10674         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10675         avoid warning.
10676
10677         * events-mod.h: Undef some things that winuser.h defines differently.
10678
10679         * data.c (Faset): Avoid compiler warnings.
10680
10681         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10682
10683 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10684
10685         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10686         Fall through to simple beep on error.
10687         Replace "extern" by real header file.
10688
10689         * linuxplay.c: Use nativesound.h
10690         (play_sound_data): Return error code. Be less verbose on error.
10691
10692         * sunplay.c: Use nativesound.h
10693         (play_sound_data): Return error code. Be less verbose on error.
10694
10695         * ntplay.c: Use nativesound.h
10696         (play_sound_data): Return fake error code
10697
10698         * sgiplay.c: Use nativesound.h
10699         (play_sound_data): Return error code
10700
10701         * hpplay.c: Use nativesound.h, partially implement
10702         new error code. Break compilation until finished.
10703         (play_sound_data): error code.
10704
10705         * nativesound.h (play_sound_file):
10706           (play_sound_data): Prototype in new header.
10707
10708 2000-03-31  Andy Piper  <andy@xemacs.org>
10709
10710         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10711         for toggle and radio buttons.
10712         (image_instantiator_buttons): use it.
10713
10714 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10715
10716         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10717         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10718         found. Scrollbar event probably belonged to some old config.
10719
10720 2000-03-31  Andy Piper  <andy@xemacs.org>
10721
10722         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10723         than 1.
10724         (initialize_widget_image_instance): default layout to
10725         LAYOUT_HORIZONTAL rather than 0.
10726         (widget_instantiate): reverse the item list at the end rather than
10727         every iteration.
10728         (layout_layout): re-code for the border text at the front of the
10729         item list rather than at the end.
10730         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10731         provided by the user.
10732         (widget_query_geometry): comment.
10733
10734 2000-03-30  Andy Piper  <andy@xemacs.org>
10735
10736         * glyphs-widget.c (image_instantiator_layout): allow standard
10737         widget keywords in layouts.
10738
10739         * gutter.c (output_gutter): cope with nil gutter contents.
10740
10741         * frame.c (Fset_frame_properties): add gutter docs.
10742
10743 2000-03-29  Andy Piper  <andy@xemacs.org>
10744
10745         * toolbar-msw.c (TBSTYLE_FLAT): add.
10746         (mswindows_output_toolbar): minor fiddling.
10747
10748 2000-03-29  Andy Piper  <andy@xemacs.org>
10749
10750         * gutter.c (output_gutter): force gutter size recalculation if
10751         what we are trying to display won't fit.
10752         (update_gutter_geometry): new function. A per-gutter version of
10753         update_frame_gutter_geometry.
10754         (update_frame_gutter_geometry): use it.
10755         (redraw_exposed_gutter): add extra debugging output.
10756
10757 2000-03-28  Mike Alexander  <mta@arbortext.com>
10758
10759         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10760         (pdump_file_unmap): Implement it on Windows
10761         (pdump_file_get): Save alocated handles for pdump_file_unmap
10762
10763 2000-03-28  Andy Piper  <andy@xemacs.org>
10764
10765         * gui.c (get_gui_callback): treat Quit specially.
10766
10767 2000-03-27  Andy Piper  <andy@xemacs.org>
10768
10769         * glyphs.c (image_instantiate): be careful to check in the same
10770         way we assigned.
10771
10772 2000-03-27  Didier Verna  <didier@xemacs.org>
10773
10774         * config.h.in: define the proper SMART_INCLUDE macro.
10775         handle renaming of `foo_h_path' to `foo_h_file'.
10776
10777         * database.c: ditto.
10778
10779         * emacs.c: ditto.
10780
10781         * linuxplay.c: ditto.
10782
10783         * terminfo.c: ditto.
10784
10785         * tooltalk.h: ditto.
10786
10787 2000-03-27  Andy Piper  <andy@xemacs.org>
10788
10789         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10790         gets updated whenever the face might have changed.
10791
10792 2000-03-26  Mike Alexander  <mta@arbortext.com>
10793
10794         * dumper.c (pdump_resource_free): Fix the comment.
10795
10796 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10797
10798         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10799
10800 2000-03-22  Mike Alexander  <mta@arbortext.com>
10801
10802         * dumper.c: Include Windows headers on Windows
10803         (pdump_resource_free): Add a body to the function
10804         (pdump_load): exe_name -> exe_path and add some comments.
10805
10806 2000-03-25  Mike Alexander  <mta@arbortext.com>
10807
10808         * gui.c (copy_gui_item_tree): Return a value in all cases
10809
10810 2000-03-21  Didier Verna  <didier@xemacs.org>
10811
10812         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10813         lwlib/config.h.in.
10814         (SMART_INCLUDE): new macro.
10815         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10816         the proper location.
10817
10818         * postgresql.c: use it.
10819
10820         * inline.c: ditto.
10821
10822 2000-03-24  Andy Piper  <andy@xemacs.org>
10823
10824         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10825         do this.
10826
10827 2000-03-24  Andy Piper  <andy@xemacs.org>
10828
10829         * redisplay-output.c (compare_runes): use image_instance_changed
10830         to detect changes. Do not depend on glyphs_changed, only depend on
10831         dirtiness.
10832          (redisplay_output_layout): add debug messages.
10833         (compare_runes): ditto.
10834
10835         * glyphs.h: declare new functions.
10836         (struct Lisp_Image_Instance): remove percent and associated
10837         accessors.
10838
10839         * gui.h: declare new copying functions.
10840
10841         * gui.c (copy_gui_item_tree): new function.
10842         (copy_gui_item): new function.
10843         (gui_item_id_hash): revert to standard hash.
10844         (gui_item_hash): ditto.
10845         (gui_item_hash_internal): deleted.
10846         (mark_gui_item): mark value.
10847         (gui_item_add_keyval_pair): add value.
10848         (gui_item_init): ditto.
10849         (gui_add_item_keywords_to_plist): ditto.
10850         (gui_item_equal): ditto.
10851         (syms_of_gui): add Q_value.
10852
10853         * glyphs-x.c (x_progress_gauge_update): use pending items and
10854         value for setting the state.
10855         (x_update_widget): don't set items from pending here.
10856
10857         * glyphs-widget.c (update_widget): update items here.
10858         (progress_gauge_set_property): use items for storing value. Put
10859         new value in pending items.
10860
10861         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10862         items for new value. Convert percent -> value.
10863         (mswindows_tab_control_update): don't update items here.
10864
10865         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10866         (update_subwindow): ditto.
10867         (image_instance_changed): new function. Compare hash values and
10868         past and present widget items.
10869         (image_instantiate): We more careful about where we instantiate
10870         things.
10871         (image_instantiate): add error checking.
10872
10873         * gutter.c (syms_of_gutter): use -hook.
10874
10875 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10876
10877         * console-tty.c (Fset_console_tty_input_coding_system): Use
10878         Qkeyboard.
10879         (Fset_console_tty_output_coding_system): Use Qterminal.
10880         (tty_init_console): Use Qkeyboard and Qterminal.
10881
10882 2000-03-21  Ben Wing  <ben@xemacs.org>
10883
10884         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10885         From Mike Alexander <mta@arbortext.com>.
10886
10887 2000-03-21  Ben Wing  <ben@xemacs.org>
10888
10889         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10890         process brokenness.  Proper implementation to come.
10891         * callproc.c:
10892         Rename call-process-internal to old-call-process-internal.
10893         New impl. in process.el.
10894
10895 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10896
10897         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10898
10899 2000-03-20  Andy Piper  <andy@xemacs.org>
10900
10901         * glyphs.c (full_list_hash): make hashes of the same elements in
10902         different orders return different values.
10903
10904 2000-03-20  Martin Buchholz <martin@xemacs.org>
10905
10906         * XEmacs 21.2.32 is released.
10907
10908 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10909
10910         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10911         (DFC_MALLOC_USE_CONVERTED_DATA):
10912         Add aliasing-safe casts to allow use with char* or unsigned char*
10913         lvalues.
10914
10915         * eldap.c (Fldap_open):
10916         (Fldap_search_basic):
10917         (Fldap_add):
10918         (Fldap_modify):
10919         Make C++-compilable.
10920         Make sure GCPRO'ed variables are initialized.
10921         Use temp variables to avoid repeated calls to Flength.
10922
10923 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10924
10925         * sysfile.h:
10926         Make sure PATH_MAX is always defined.
10927         Include limits.h for PATH_MAX.
10928         Deprecate use of MAXPATHLEN.
10929
10930 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10931
10932         * emacs.c: Add reinit_vars_of_fileio.
10933         * symsinit.h: Add reinit_vars_of_fileio.
10934         * fileio.c (reinit_vars_of_fileio): New.
10935         * fileio.c (Fmake_temp_name):
10936         Initialize temp_name random number from microseconds to make
10937         collisions even less likely.  Initialize always at process startup
10938         time.  (make-temp-name) used to return the same file name twice in
10939         a row when PDUMP.
10940         Random stylistic fiddling.
10941         Comment fixes.
10942
10943 2000-03-20  Andy Piper  <andy@xemacs.org>
10944
10945         * glyphs.c (image_instantiate): allow text glyphs to be
10946         instantiated in the minibuffer window.
10947
10948 2000-03-19  Andy Piper  <andy@xemacs.org>
10949
10950         * glyphs.c (image_instance_hash): be careful about which items we
10951         hash on.
10952
10953         * glyphs-widget.c (tab_control_set_property): record into pending
10954         items rather than the actual items.
10955
10956         * glyphs-x.c (x_update_widget): use pending items to update with.
10957
10958         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10959         to update with.
10960
10961         * glyphs.c (mark_image_instance): mark pending items.
10962
10963         * window.c (Fset_window_configuration): record the buffer.
10964         (Fselect_window): totally revert previous change which breaks many
10965         things.
10966
10967 2000-03-18  Andy Piper  <andy@xemacs.org>
10968
10969         * glyphs-msw.c (mswindows_tab_control_update): force selected
10970         item.
10971
10972         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10973         window domain cache, otherwise we get inconsistencies at
10974         startup. There is something fishy at startup which can lead to the
10975         minibuffer being the selected window when the gutter content is
10976         instantiated.
10977
10978         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10979         gcpros.
10980         (parse_gui_item_tree_children): ditto.
10981         (parse_gui_item_tree_item): ditto.
10982
10983         * glyphs.c (Fupdate_widget_instances): return something.
10984
10985 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10986
10987         * window.c (Fselect_window): Undo 2000-03-17 change.
10988
10989 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10990
10991         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10992         against v7.0 libraries.  Insta-coredump city until the postgres
10993         folks fix it.
10994
10995 2000-03-17  Andy Piper  <andy@xemacs.org>
10996
10997         * faces.c (complex_vars_of_faces): don't give the widget face an
10998         inherited background pixmap.
10999
11000         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
11001         selected item.
11002
11003         * event-stream.c (Fdispatch_non_command_events): return something.
11004
11005         * gutter.c (output_gutter): use widget face.
11006         (clear_gutter): ditto.
11007
11008         * NEWS: adjust again.
11009
11010         * window.c (Fselect_window): make sure this runs to completion to
11011         avoid oddities with Fset_window_configuration.
11012         (Fcurrent_window_configuration): in general do not save the
11013         minibuffer as the selected window.
11014
11015         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
11016
11017 2000-03-16  Olivier Galibert  <galibert@pobox.com>
11018
11019         * emacs.c (Frunning_temacs_p): Revert previous patch.
11020         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
11021
11022 2000-03-16  Andy Piper  <andy@xemacs.org>
11023
11024         * glyphs-x.c (x_tab_control_update): if no widget values then
11025         return.
11026
11027         * NEWS: update for new features.
11028
11029         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
11030         synthetic event to the native system.
11031         (reinit_vars_of_event_Xt): set force_event_pending to
11032         emacs_Xt_force_event_pending.
11033
11034         * events.h (struct event_stream): add force_event_pending.
11035
11036         * specifier.c (recompute_one_cached_specifier_in_window): add
11037         comment.
11038
11039         * redisplay.c (redisplay_frame): don't call
11040         update_frame_subwindows. Reset subwindow cachels when
11041         subwindows_changed, removing this was an optimization too far.
11042
11043         * redisplay-output.c (compare_runes): reorganize so that we catch
11044         glyph changes when we want them. Set optimize_output when this
11045         would help layouts.
11046         (redisplay_output_layout): remove frame_really_changed, use
11047         optimize_output instead.
11048
11049         * redisplay-msw.c (mswindows_output_display_block): reset
11050         optimize_output after outputting a glyph.
11051         * redisplay-x.c (x_output_display_block): ditto.
11052         * redisplay-tty.c (tty_output_display_block): ditto.
11053
11054         * gutter.c: (specifier_vars_of_gutter): use new spec changed
11055         functions.
11056         (gutter_specs_changed): do specific gutter positions.
11057         (top_gutter_specs_changed): new function. Only update the
11058         specified gutter specs.
11059         (bottom_gutter_specs_changed): ditto.
11060         (left_gutter_specs_changed): ditto.
11061         (right_gutter_specs_changed): ditto.
11062
11063         * gui.c (gui_item_hash_internal): new function, does a real hash.
11064         (gui_item_id_hash): use it.
11065         (gui_item_hash): hash the eval'ed gui_item.
11066
11067         * gui-x.c (popup_selection_callback): send an eval event to call
11068         Fupdate_widget_instances.
11069
11070         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
11071         to call Fupdate_widget_instances.
11072
11073         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
11074         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
11075
11076         * glyphs.c: (update_frame_subwindows): deleted.
11077         (Fupdate_widget_instances): new function for updating the dirty
11078         state of widgets that might have changed.
11079         (syms_of_glyphs): add Qupdate_widget_instances.
11080         (full_list_hash): hash a list completely.
11081         (image_instance_hash): use it for items and properties.
11082
11083         * frame-msw.c (mswindows_size_frame_internal): remove unused
11084         variable.
11085
11086         * faces.h (struct face_cachel): fix comment.
11087
11088         * event-stream.c (Fdispatch_non_command_events): new
11089         function. Process non-command events, forcing an event cycle
11090         beforehand.
11091         (syms_of_event_stream): declare.
11092         (event_stream_force_event_pending): new function. Force an event
11093         on the native event queue so that an event cycle will occur next
11094         time we check.
11095
11096         * event-msw.c:
11097         (struct ntpipe_shove_stream):
11098         (mswindows_enqueue_dispatch_event):
11099         (mswindows_dequeue_dispatch_event):
11100         (mswindows_cancel_dispatch_event):
11101         (mswindows_pump_outstanding_events):
11102         (mswindows_drain_windows_queue):
11103         (mswindows_handle_paint):
11104         (mswindows_wnd_proc):
11105         (mswindows_key_to_emacs_keysym):
11106         (get_process_input_waitable):
11107         (emacs_mswindows_delete_stream_pair): re-indent file.
11108         (mswindows_need_event): do not process further fds if the windows
11109         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
11110         fixes the 100% cpu problem.
11111         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
11112
11113 2000-03-15  Olivier Galibert  <galibert@pobox.com>
11114
11115         * alloc.h: New.
11116         * dumper.h: New.
11117         * dumper.c: New.
11118
11119         * emacs.c: Moved dump file searching to dumper.c.
11120         (Frunning_temacs_p): Fixed.
11121
11122         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
11123         last_lrecord_type_index_assigned.
11124
11125 2000-02-20  Olivier Galibert  <galibert@pobox.com>
11126
11127         * symsinit.h: Added reinit parameter to init_console_stream
11128         declaration.
11129
11130         * lisp.h: Added file parameter to pdump_load declaration.
11131
11132         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
11133         support.  Added dump file searching.
11134
11135         * config.h.in: Added EMACS_PROGNAME.
11136
11137         * console-stream.c (init_console_stream): Fix reinitialisation
11138         when running from temacs.
11139
11140         * alloc.c (pdump): Add id support.
11141         (pdump_load): Add file parameter and signature/id support.
11142
11143         * Makefile.in.in: Add full pdump support.
11144
11145 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
11146
11147         * postgresql.c: Update documentation to reflect latest code
11148         status.
11149         (print_result): Show tuple counts in printed representation when
11150         appropriate.
11151         (Fpq_put_nbytes): MULE-ize.
11152         (Fpq_get_line_async): Ditto.
11153
11154 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
11155
11156         * postgresql.c (Fpq_lo_import): Fix return value.
11157         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
11158
11159 2000-03-13  Ben Wing  <ben@xemacs.org>
11160
11161         * alloc.c (pdump_load):
11162         Fix compile warning under mswin.
11163
11164 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
11165
11166         * postgresql.c: Mule-ization, bug fixes.
11167         Use PG_CODING to encapsulate coding system name changes.
11168         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
11169         (pg-coding-system): Create.
11170
11171         (Fpq_conn_defaults): Mule-ize.
11172         (Fpq_connectdb): Mule-ize & bug fix.
11173         (Fpq_connect_start): Mule-ize.
11174         (Fpq_set_client_encoding): Mule-ize.
11175         (Fpq_finish): Document `DEAD' connection status.
11176         (Fpq_clear): Ditto.
11177         (Fpq_pgconn): Mule-ize.
11178         (Fpq_exec): Mule-ize & bug fix.
11179         (Fpq_send_query): Ditto.
11180         (Fpq_get_result): Ditto.
11181         (Fpq_res_status): Mule-ize.
11182         (Fpq_result_error_message): Mule-ize.
11183         (Fpq_ntuples): fix comments.
11184         (Fpq_fname): Mule-ize.
11185         (Fpq_fnumber): Mule-ize.
11186         (Fpq_ftype): fix comments.
11187         (Fpq_get_value): Mule-ize.
11188         (Fpq_cmd_status): Ditto.
11189         (Fpq_cmd_tuples): Ditto.
11190         (Fpq_oid_value): Ditto.
11191         (Fpq_notifies): Ditto.
11192         (Fpq_lo_import): Ditto.
11193         (Fpq_lo_export): Ditto.
11194         (Fpq_get_line): Ditto.
11195         (Fpq_put_line): Mule-ize and bug fix.
11196         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
11197
11198 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11199
11200         * postgresql.c (vars_of_postgresql): Mule-ize.
11201         (Fpq_conn_defaults): Ditto.
11202
11203 2000-03-12  Ben Wing  <ben@xemacs.org>
11204
11205         * alloc.c (Fmake_byte_code):
11206         * alloc.c (debug_string_purity_print):
11207         * alloc.c (pdump_backtrace):
11208         * alloc.c (pdump_get_indirect_count):
11209         * alloc.c (pdump_register_sub):
11210         * alloc.c (pdump_register_object):
11211         * alloc.c (pdump_register_struct):
11212         * alloc.c (pdump_dump_data):
11213         * alloc.c (pdump_reloc_one):
11214         Minor cleanups.
11215
11216         * console-msw.c:
11217         * console-msw.c (GetConsoleHwnd):
11218         * console-msw.c (msw_hide_console):
11219         * console-msw.c (msw_show_console):
11220         * console-msw.c (msw_ensure_console_buffered):
11221         * console-msw.c (msw_output_console_string):
11222         * console-msw.c (console_type_create_mswindows):
11223
11224         a) Added functions to manipulate the console window for use with
11225         shell support.
11226
11227         b) Added support for writing text to the console, which is now
11228         used under Windows when xemacs is not being run non-interactively,
11229         to write text that would otherwise be destined for stdout because
11230         under these circumstances, text written to stdout tends to
11231         disappear and not be seen.
11232
11233         * console-msw.h:
11234         * event-Xt.c:
11235         * event-Xt.c (x_event_to_emacs_event):
11236         * event-Xt.c (describe_event_window):
11237         * events-mod.h (XEMACS_MOD_CONTROL):
11238         * events.c:
11239         * events.c (Fmake_event):
11240         * events.c (character_to_event):
11241         * events.c (event_to_character):
11242         * events.c (format_event_object):
11243         * events.c (Fevent_modifiers):
11244         * events.h:
11245         * events.h (struct key_data):
11246         * events.h (struct button_data):
11247         * events.h (struct misc_user_data):
11248         * frame-x.c (Fcde_start_drag_internal):
11249         * frame-x.c (Foffix_start_drag_internal):
11250         * gpmevent.c (Freceive_gpm_event):
11251         * keymap.c:
11252         * keymap.c (bucky_sym_to_bucky_bit):
11253         * keymap.c (control_meta_superify):
11254         * keymap.c (make_key_description):
11255         * keymap.c (keymap_lookup_directly):
11256         * keymap.c (create_bucky_submap):
11257         * keymap.c (keymap_store):
11258         * keymap.c (define_key_check_and_coerce_keysym):
11259         * keymap.c (define_key_parser):
11260         * keymap.c (define_key_alternate_name):
11261         * keymap.c (Fdefine_key):
11262         * keymap.c (raw_lookup_key_mapper):
11263         * keymap.c (struct map_keymap_unsorted_closure):
11264         * keymap.c (map_keymap_unsorted_mapper):
11265         * keymap.c (map_keymap_sort_predicate):
11266         * keymap.c (map_keymap_sorted):
11267         * keymap.c (accessible_keymaps_mapper_1):
11268         * keymap.c (where_is_recursive_mapper):
11269         * keymap.c (describe_map_mapper):
11270         * keymap.c (describe_map_sort_predicate):
11271         * keymap.c (describe_map):
11272         * keymap.c (complex_vars_of_keymap):
11273         And a number of other files, the key modifier preprocessor
11274         constants that xemacs uses have names that conflict with constants
11275         defined under MS Windows for other purposes, so they were renamed
11276         to begin with the prefix XEMACS_. The variables that hold such
11277         modifiers were changed to consistently be of type int to fix
11278         various compile warnings.
11279
11280         * console.c (complex_vars_of_console):
11281         * device.c:
11282         * device-msw.c:
11283         * device-msw.c (mswindows_finish_init_device):
11284         * device-msw.c (msw_get_workspace_coords):
11285         * device-msw.c (mswindows_device_system_metrics):
11286         and various other files, added support for a new
11287         device property called offset-workspace which returns the position
11288         of the upper left corner of the workspace area and goes along with
11289         the existing size-workspace property.
11290
11291         * dialog-msw.c:
11292         * dialog-msw.c (push_bufbyte_string_as_unicode):
11293         * dialog-msw.c (mswindows_popup_dialog_box):
11294         Added support for XEmacs-style accelerator specifications in
11295         button text.  Note: I didn't add support for this under X Windows,
11296         and somebody needs to do this.
11297
11298         * dialog.c:
11299         * dialog.c (Fpopup_dialog_box):
11300         Documented the support for accelerators that was just mentioned.
11301
11302         editfns.c (get_home_directory): Changed behavior under Windows
11303         when HOME not defined; former behavior was irretrievably broken.
11304
11305         * emacs.c:
11306         * emacs.c (main_1):
11307         * emacs.c (main):
11308         * minibuf.c (clear_echo_area_internal):
11309         * minibuf.c (echo_area_append):
11310         * print.c:
11311         * print.c (std_handle_out_external):
11312         * print.c (std_handle_out_va):
11313         * print.c (fatal):
11314         * print.c (write_string_to_stdio_stream):
11315         * print.c (output_string):
11316         * print.c (debug_print):
11317         * print.c (debug_backtrace):
11318         * print.c (debug_short_backtrace):
11319         Cleaned up the code that prints text to stdout so that this can be
11320         changed to output into a console window instead under MS Windows,
11321         as described above.
11322
11323         * eval.c:
11324         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
11325         * eval.c (internal_catch):
11326         * eval.c (unwind_to_catch):
11327         * eval.c (throw_or_bomb_out):
11328         * eval.c (condition_case_1):
11329         * eval.c (signal_1):
11330         * eval.c (check_error_state_sanity):
11331         * eval.c (call_with_suspended_errors_1):
11332         * eval.c (call_with_suspended_errors):
11333         * eval.c (reinit_vars_of_eval):
11334         Added code to catch throw loops and check for a pesky bug that may
11335         be gone now.
11336
11337         * event-msw.c:
11338         * event-msw.c (key_needs_default_processing_p):
11339         * event-msw.c (mswindows_wnd_proc):
11340         * event-msw.c (mswindows_modifier_state):
11341         * event-msw.c (emacs_mswindows_quit_p):
11342         * event-msw.c (vars_of_event_mswindows):
11343         a) Added support for using the alt key to select menu items as is
11344         standard under MS Windows.  This is controlled using the variable
11345         menu-accelerator-enabled, just like under X Windows.  There is an
11346         option on the options menu to turn this support on.  I really
11347         think that it should be on by default under Windows, but I'm not
11348         going to make this change yet.
11349
11350         b)  Added support for dynamic display size changes under Windows.
11351
11352         * event-stream.c:
11353         * event-stream.c (maybe_echo_keys):
11354         * event-stream.c (Fnext_event):
11355         * event-stream.c (command_builder_find_leaf):
11356         * event-stream.c (lookup_command_event):
11357         * event-stream.c (execute_command_event):
11358         * event-stream.c (pre_command_hook):
11359         * event-stream.c (post_command_hook):
11360         * event-stream.c (syms_of_event_stream):
11361         * event-stream.c (vars_of_event_stream):
11362         * event-stream.c (complex_vars_of_event_stream):
11363         * events.h (struct command_builder):
11364
11365         a) Tried to clean up a little bit the horribly written x-specific
11366         accelerator code that crept into this file.  I moved this code
11367         into menubar-x.c where it belongs. I also needed to move the
11368         command builder structure into the file events.h because it is
11369         accessed directly by this accelerator code.  What I didn't do, but
11370         which should be done at some point, is to properly abstract this
11371         code using device methods instead of the kludgy way that it
11372         currently hooks into the event code.
11373
11374         b) Added the lisp variables this-command-properties and
11375         last-command- properties, which should be used to synchronize two
11376         adjacent commands in preference to playing games with the variable
11377         this-command, which is typically what happens.
11378
11379         c) Added some slightly nasty code to hook into the lisp support
11380         for shifted- motion-key selection.  This is actually necessary for
11381         somewhat complicated reasons, which are described in
11382         simple.el. (NB: I think the proper thing would be to have the code
11383         that calls the pre and post command hooks also call out to generic
11384         lisp functions in simple.el, where all built-in stuff could be
11385         added.  I will think about this more.)
11386
11387         * event-unixoid.c (poll_fds_for_input):
11388         * lread.c (readchar):
11389         * redisplay-tty.c (tty_clear_frame):
11390         * redisplay-x.c (x_get_gc):
11391         * signal.c (interrupt_signal):
11392         And a whole bunch of other files: fixed up places that printed
11393         directly to stderr to instead call the function stderr_out so that
11394         the changes I made under Windows work correctly.
11395
11396         * filemode.c (mode_string):
11397         Warning fixes.
11398
11399         * frame-msw.c:
11400         * frame-msw.c (mswindows_size_frame_internal):
11401         Fixed the computation of frame size and position to keep the frame
11402         within the workspace area, rather than within the physical
11403         dimensions of the screen, so that the frame doesn't overlap window
11404         manager decorations, such as the start menu and toolbar, typically
11405         at the bottom of the screen.
11406
11407         * frame.c (vars_of_frame):
11408         Changed the default frame title format under MS Windows to consist
11409         of buffername-XEmacs, which is standard under MS Windows.  I think
11410         it might be a good idea to change this everywhere because I think
11411         it is superior to the current frame title format, but this is the
11412         kind of change that is likely to cause some people to get annoyed,
11413         so I'm not making it.
11414
11415         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
11416
11417         * gui-msw.c (mswindows_handle_gui_wm_command):
11418         Fixed compile warnings.
11419
11420         * gui-x.c:
11421         * gui-x.c (strdup_and_add_accel):
11422         * gui-x.c (button_item_to_widget_value):
11423         * gui-x.h:
11424         Added code to automatically put an accelerator onto the beginning
11425         of menu items that don't have one as is now the standard, and is
11426         described more later.  Also fixed things so that the menu item
11427         name can be an evaluated expression, again a new standard.
11428
11429         * gui.c:
11430         * gui.c (gui_item_add_keyval_pair):
11431         * gui.c (make_gui_item_from_keywords_internal):
11432         * gui.c (gui_add_item_keywords_to_plist):
11433         * gui.c (gui_item_accelerator):
11434         * gui.c (gui_name_accelerator):
11435         * gui.c (gui_item_included_p):
11436         * gui.c (gui_item_display_flush_left):
11437         * gui.c (gui_item_display_flush_right):
11438         * gui.c (parse_gui_item_tree_item):
11439         * gui.c (parse_gui_item_tree_children):
11440         * gui.c (parse_gui_item_tree_list):
11441         Mule-ized.  Cleanup.  GCPRO addition.
11442
11443         * line-number.c (buffer_line_number):
11444         * lisp.h:
11445         * lisp.h (EMACS_INT_MAX):
11446         Added the manifest constant EMACS_INT_MIN corresponding to the
11447         existing constant EMACS_INT_MAX.  This is partially to fix compile
11448         warnings under Windows, and partly for cleanliness.
11449
11450         * menubar-msw.c:
11451         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
11452         * menubar-msw.c (msw_translate_menu_or_dialog_item):
11453         * menubar-msw.c (displayable_menu_item):
11454         * menubar-msw.c (populate_menu_add_item):
11455         * menubar-msw.c (populate_or_checksum_helper):
11456         * menubar-msw.c (populate_menu):
11457         * menubar-msw.c (update_frame_menubar_maybe):
11458         * menubar-msw.c (prune_menubar):
11459         * menubar-msw.c (msw_char_is_accelerator):
11460         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
11461         * menubar-msw.c (mswindows_handle_wm_command):
11462         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
11463         * menubar-msw.c (mswindows_handle_wm_initmenu):
11464         * menubar-msw.c (mswindows_update_frame_menubars):
11465         * menubar-msw.c (mswindows_free_frame_menubars):
11466         * menubar-msw.c (mswindows_popup_menu):
11467         Fixed a bug in handling accelerators where an extra character
11468         would be displayed in the menu item.  Also generalized the
11469         function displayable_menu_item because it is now used by the
11470         dialog box code as well.  And finally, added code in the functions
11471         that create the menubar to extract a list of accelerators for the
11472         top level menubar, which is used in the event code to determine
11473         whether a particular alt-key combination should be used to invoke
11474         a menu item, or should be passed through to access the standard
11475         XEmacs keymap binding for this key combination.
11476
11477         Much needed GCPROing.
11478
11479         * menubar-x.c:
11480         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11481         * menubar-x.c (menu_item_descriptor_to_widget_value):
11482         * menubar-x.c (restore_in_menu_callback):
11483         * menubar-x.c (x_popup_menu):
11484         * menubar-x.c (menu_move_up):
11485         * menubar-x.c (menu_move_down):
11486         * menubar-x.c (menu_move_left):
11487         * menubar-x.c (menu_move_right):
11488         * menubar-x.c (menu_select_item):
11489         * menubar-x.c (command_builder_operate_menu_accelerator):
11490         * menubar-x.c (menu_accelerator_junk_on_error):
11491         * menubar-x.c (command_builder_find_menu_accelerator):
11492         * menubar-x.c (Faccelerate_menu):
11493         * menubar.h:
11494         Moved a whole bunch of code here that was previously in
11495         event-stream.c as described above.  There is also code connected
11496         to the new standard of adding an accelerator to the beginning of
11497         menu items that don't have one as described above and below.
11498
11499         * menubar.c:
11500         * menubar.c (menu_parse_submenu_keywords):
11501         * menubar.c (Fmenu_find_real_submenu):
11502         * menubar.c (Fnormalize_menu_item_name):
11503         * menubar.c (syms_of_menubar):
11504         * menubar.c (vars_of_menubar):
11505         * menubar.c (complex_vars_of_menubar):
11506
11507         a) Cleaned up a bunch of documentation and improved it.
11508
11509         b) XEmacs now automatically adds an accelerator onto the beginning
11510         of any menu items that don't have one.  I did this because there
11511         will inevitably be some menu items on the main menubar that don't
11512         have accelerators on them because the package that adds that
11513         particular menu item hasn't yet been fixed up to have accelerators
11514         in them and it looked rather strange to have some items with and
11515         some items without accelerators, especially since even in items
11516         without accelerators, you can, at least under windows, still
11517         access the item through an accelerator corresponding to the first
11518         character in the item's name.  If people don't like this behavior,
11519         I can add a variable to turn it off optionally, but I'm not sure
11520         this is a good idea because we really do need to have accelerators
11521         on all of the menu items, and if a package doesn't like the
11522         accelerators being put on the first character, then it should put
11523         the accelerators where they belong.
11524
11525         c) I made a behavior change, which is that the descriptor that
11526         specifies the text of the menu item, which formerly was just a
11527         string, can now also be an evaluated expression.  This makes this
11528         descriptor parallel with all of the others, which could also be
11529         evaluated expressions.  This also obviates the need for the
11530         keyword :label, which was previously listed in the documentation
11531         as unimplemented, and which was for the same purpose.
11532
11533         d) GCPROing.
11534
11535         * ntproc.c:
11536         * ntproc.c (new_child):
11537         * ntproc.c (sys_spawnve):
11538         * ntproc.c (find_child_console):
11539         * ntproc.c (sys_kill):
11540         Fixed compile warnings.  By the way, this file should really go
11541         away entirely, and this will happen as soon as Kirill makes his
11542         final round of process cleanups, which affect the function
11543         call-process.
11544
11545         * process-nt.c:
11546         * process-nt.c (struct nt_process_data):
11547         * process-nt.c (find_process_from_pid):
11548         * process-nt.c (send_signal_the_nt_way):
11549         * process-nt.c (enable_child_signals):
11550         * process-nt.c (find_child_console):
11551         * process-nt.c (send_signal_the_95_way):
11552         * process-nt.c (nt_finalize_process_data):
11553         * process-nt.c (ensure_console_window_exists):
11554         * process-nt.c (nt_create_process):
11555         * process-nt.c (nt_kill_child_process):
11556         * process-nt.c (nt_kill_process_by_pid):
11557         * process-nt.c (nt_open_network_stream):
11558         * process-nt.c (vars_of_process_nt):
11559         Copied over code from Emacs 20.5 to correctly send signals to sub-
11560         processes under Windows 95.  Also added code to automatically
11561         create and hide console window when a sub-process is created under
11562         Windows 95, which obviates the need for the separate runemacs.exe
11563         executable, and finally implemented some variables that were
11564         implemented in Emacs 20.5, but previously not in XEmacs.  These
11565         include mswindows- start-process-share-console and
11566         mswindows-start-process-inherit-error-mode. (Both of these only
11567         apply to Windows 95.)
11568
11569         * regex.c (regex_compile): Fixed a compile warning.
11570
11571         * select-msw.c:
11572         * select-msw.c (mswindows_own_selection):
11573         * select-msw.c (mswindows_get_foreign_selection):
11574         * select-msw.c (mswindows_disown_selection):
11575         * select-msw.c (console_type_create_select_mswindows):
11576         * select-msw.c (syms_of_select_mswindows):
11577         Cleaned up the file and implemented the device method
11578         selection_exists_p, which had accidentally been left out.  Also
11579         removed four lisp functions that were remnants from before the
11580         time when the selection code was properly device abstracted.
11581         These functions are no longer needed because there are generic
11582         equivalents, and because they were added recently and don't exist
11583         in FSF Emacs, I don't think there's any problem with just deleting
11584         them.
11585
11586         * sysdep.c:
11587         * sysdep.c (sys_subshell):
11588         Fixed a compile warning, although in this case there's probably
11589         something wrong with this code, and it ought to be looked into
11590         more thoroughly by somebody who understands it.
11591
11592         * window.c:
11593         * window.c (Fwindow_text_area_height):
11594         * window.c (Fwindow_width):
11595         * window.c (Fwindow_full_width):
11596         * window.c (Fwindow_pixel_width):
11597         * window.c (debug_print_window):
11598         * window.c (syms_of_window):
11599         Added functions window-text-area-height and window-full-width,
11600         which are functions for returning various width and height
11601         characteristics of a window. (One of these functions is necessary
11602         for making the file dialog box work correctly, and the other one
11603         was added for completeness.)  Also added a table to the
11604         documentation for window-height which describes the entire scheme
11605         for accessing width and height characteristics of a window.
11606
11607 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11608
11609         * nt.c (fstat): Added a comment for another problem with
11610         non-encapsulated [f]stat(), reported by Adrian Aichner
11611         <aichner@ecf.teradyne.com>.
11612
11613 2000-03-11  Andy Piper  <andy@xemacs.org>
11614
11615         * window.c (make_dummy_parent): initialize subwindow instance
11616         cache.
11617         (Fset_window_configuration): zero extent_modiff.
11618
11619 2000-03-10  Andy Piper  <andy@xemacs.org>
11620
11621         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11622         more changes can be triggered.
11623         (Fredisplay_frame): ditto.
11624         (Fredraw_device): ditto.
11625         (Fredisplay_device): ditto.
11626         (redisplay_frame): make non-static.
11627         (redisplay_frame): call update_frame_gutter_geometry outside of
11628         display proper.
11629
11630         * gutter.h: declare update_frame_gutter_geometry.
11631
11632         * redisplay.h: declare redisplay_frame.
11633
11634         * gutter.c (update_frame_gutter_geometry): move geometry changes
11635         in update_frame_gutters here. Geometry changes can only occur
11636         outside of redisplay.
11637         (update_frame_gutters): remove geometry change code.
11638         (Fredisplay_gutter_area): make sure that we are in display when we
11639         update and that we have flushed any size changes.
11640
11641 2000-03-11  Andy Piper  <andy@xemacs.org>
11642
11643         * alloc.c (pdump_dump_data): remove i & count shadows.
11644
11645 2000-02-27  Mike Alexander  <mta@arbortext.com>
11646
11647         * sysdep.h: Declare pdump_read_file
11648
11649         * sysdep.c (pdump_read_file): New function
11650
11651         * alloc.c (pdump_load): Call pdump_read_file to get the portable
11652         dump data
11653
11654 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11655
11656         * lrecord.h: add `lrecord_type_pgsetenv'.
11657
11658 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
11659
11660         * symsinit.h: declare (vars|syms)_of* functions.
11661         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11662
11663 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
11664
11665         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11666
11667         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11668         GCCs.
11669
11670         * emacs.c (main_1): Call postgres initialization code.
11671
11672         * postgresql.h: New file.  PostgreSQL RDBMS support.
11673         * postgresql.c: New file.
11674
11675 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11676
11677         * redisplay-output.c (redisplay_output_display_block): Disable
11678         redundant code.
11679
11680 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11681
11682         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11683         (Fcanna_henkan_next): Ditto.
11684         (Fcanna_bunsetu_henkou): Ditto.
11685         (Fcanna_henkan_kakutei): Ditto.
11686         (Fcanna_henkan_end): Ditto.
11687         (Fcanna_henkan_quit): Ditto.
11688         (Fcanna_henkan_next): Set retun value correctly.
11689         (c2mu): Use unsigned char instead of signed char.
11690
11691 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11692
11693         * emacs.c (main_1): Always call syms_of_gui.
11694         * inline.c: include gui.h
11695
11696 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11697
11698         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11699         converted to Lisp_Object.
11700         (Qtop_bottom): New variable.
11701         (syms_of_redisplay): Initialize it.
11702         * redisplay.h (Vvisible_bell): Ditto.
11703         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11704         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11705         only flash top and bottom.
11706
11707 2000-03-08  Andy Piper  <andy@xemacs.org>
11708
11709         * buffer.c (Frename_buffer): record new buffer name the right way.
11710
11711 2000-03-08  Andy Piper  <andy@xemacs.org>
11712
11713         * glyphs.c (update_subwindow): increase hash depth so that widget
11714         items get picked up properly.
11715
11716         * redisplay-output.c (compare_runes): increase hash depth so that
11717         widget items get picked up properly.
11718
11719 2000-03-08  Andy Piper  <andy@xemacs.org>
11720
11721         * gutter.c (output_gutter): add some debug.
11722
11723         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11724         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11725         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11726
11727         * redisplay-output.c (compare_runes): use display_hash to
11728         determine if glyphs really are not the same.
11729
11730         * glyphs.c (update_subwindow): check display_hash to see if
11731         anything really needs to be updated. If not then do
11732         nothing. Record the display_hash after updating.
11733         (image_instance_equal): compare the image_instance face also.
11734
11735 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11736
11737         * redisplay.h: Fix comment style.
11738
11739 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11740
11741         * consle-msw.h (struct mswindows_frame):
11742         Added new member paint_pending to indicate whether a WM_PAINT
11743         magic event has been queued for this frame.
11744
11745         * event-msw.c (mswindows_drain_windows_queue):
11746         Don't queue a WM_PAINT magic event if one is already queued.
11747         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11748
11749         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11750
11751 2000-03-07  Didier Verna  <didier@xemacs.org>
11752
11753         * dired.c: #include `regex.h' after `sysfile.h'.
11754
11755 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11756
11757         * sound.c (init_nas_sound): Fix compiler warning.
11758
11759         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11760         (FREE_STRUCT_P):
11761         (MARK_STRUCT_AS_FREE):
11762         (MARK_STRUCT_AS_NOT_FREE):
11763         Make `gcc -fstrict-aliasing' work properly.
11764
11765 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11766
11767         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11768         (mswindows_delete_device): Call CoUnnitialize().
11769
11770         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11771
11772 2000-02-25    <CraigL@DyCon.com>
11773
11774         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11775         <errno.h>.
11776
11777         * sysdep.c: This extern declaration for environ prevents MinGW
11778         from finding the variable in CRTDLL.DLL.
11779
11780         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11781         windows headers.
11782         (SHGFI_EXETYPE): ..
11783         (WM_MOUSEWHEEL): ..
11784         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11785         definitions.
11786         (MMRESULT): Removed, now defined in cygwin's windows headers.
11787         (TIMECAPS): ..
11788         (uid_t,gid_t,pid_t,ssize_t): ..
11789         (_timeb): Removed, MinGW defines both _timeb and timeb.
11790         (HAVE_H_ERRNO): Added.
11791         (HAVE_TZNAME): Added, configure is not detecting this.
11792
11793 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11794
11795         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11796         * syntax.c (syntax_match): Use it.
11797
11798         * cmds.c: Import auto-fill-chars from FSF Emacs.
11799         (Vauto_fill_chars): New variables.
11800         (internal_self_insert): Check Vauto_fill_chars.
11801         (vars_of_cmds):
11802         Declare auto-fill-chars as a Lisp variable and initialize it.
11803
11804 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11805
11806         * fileio.c (Fmake_symbolic_link):
11807         (Ffile_symlink_p):
11808         Run handlers even if local machine doesn't have symlinks.
11809
11810 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11811
11812         * event-msw.c (mswindows_drain_windows_queue):
11813         Don't generate paint magic events for non-XEmacs frames.
11814
11815 2000-03-05  Andy Piper  <andy@xemacs.org>
11816
11817         * redisplay.c (redisplay_frame): generate_displayable_area and
11818         friends assumes that we are not in GC, we therefore have to make
11819         sure that this doesn't happen.
11820
11821         * gutter.c (calculate_gutter_size): generate_displayable_area
11822         assumes that we are not in GC, we therefore have to make sure that
11823         this doesn't happen.
11824
11825 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11826
11827         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11828
11829 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11830
11831         * redisplay.c (regenerate_window): Make sure we set a sane value
11832         for end_pos even if we jump out of the loop.
11833         (regenerate_window): Answer Ben's question :-).
11834         (start_end_of_last_line): Add may_error argument.
11835         (start_of_last_line):
11836         (end_of_last_line): Pass may_error = 0.
11837         (end_of_last_line_may_error): New function.
11838         (pixel_to_glyph_translation): Use it, so we don't crash in
11839         event_to_glyph.
11840
11841 2000-03-04  Andy Piper  <andy@xemacs.org>
11842
11843         * window.h (struct window): add gutter_extent_modiff.
11844
11845         * window.c (allocate_window): zero out gutter_extent_modiff.
11846
11847         * redisplay.h: declare sync_display_line_structs.
11848
11849         * redisplay.c (add_glyph_rune): add a better comment.
11850
11851         * redisplay-output.c (sync_display_line_structs): made non-static.
11852         (compare_runes): remove unneccesary glyph cachel access.
11853
11854         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11855
11856         * gutter.c (output_gutter): don't output the gutter if extent
11857         changes only involve extents in buffers. use 4 sets of display
11858         lines.
11859         (gutter_extent_signal_changed_region_maybe): new function. Mark
11860         extents in gutters as changed.
11861         (update_frame_gutters): use 4 sets of display lines.
11862         (reset_gutter_display_lines): ditto.
11863         (free_frame_gutters): ditto.
11864         (redraw_exposed_gutter): force output of gutters.
11865
11866         * frame.h (struct frame): add 4 sets of gutter display lines.
11867
11868         * extents.c: (extent_changed_for_redisplay): signal changes to
11869         extents in strings in the gutter as well as extents in buffers.
11870
11871 2000-03-02  Andy Piper  <andy@xemacs.org>
11872
11873         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11874
11875         * frame.c (Fmake_frame): make sure the gutters get initialized
11876         after the frame is visible.
11877         (set_frame_selected_window): re-arrange compilation macros a
11878         little.
11879         (change_frame_size_1): mark gutters changed.
11880
11881         * device.c (Fset_device_class): mark gutters changed.
11882
11883 2000-03-01  Andy Piper  <andy@xemacs.org>
11884
11885         * window.c (window_top_frame_gutter_height): deleted.
11886         (window_bottom_frame_gutter_height): ditto.
11887         (window_left_frame_gutter_height): ditto.
11888         (window_right_frame_gutter_height): ditto.
11889         (window_top_gutter_height): don't use them.
11890         (window_bottom_gutter_height): ditto.
11891         (window_left_gutter_width): ditto.
11892         (window_right_gutter_width): ditto.
11893         (Fsplit_window): ditto.
11894         (Fwindow_pixel_edges): don't use border dimensions here.
11895
11896         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11897         (update_scrollbar_instance): ditto.
11898
11899         * redisplay.c (generate_modeline): don't take gutters into account.
11900         (generate_modeline): ditto.
11901         (redisplay_frame): small gutter display optimization.
11902
11903         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11904
11905         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11906         gutters into account.
11907
11908         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11909         for window position and type.
11910
11911         * gutter.c (get_gutter_coords): fix for frame gutters.
11912         (update_frame_gutters): update frame geometry if the gutters have
11913         changed.
11914         (init_frame_gutters): record current gutter geometries.
11915
11916         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11917         var.
11918         (mswindows_widget_instantiate): ditto.
11919
11920         * frame.h (struct frame): add current_gutter_bounds.
11921
11922         * frame.c (change_frame_size_1): position window and minibuffer
11923         appropriately taking into account the frame gutters.
11924
11925         * frame-x.c: (x_initialize_frame_size): take into account the
11926         frame gutters.
11927
11928 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11929
11930         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11931
11932 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11933
11934         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11935
11936 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11937
11938         * file-coding.c (reset_decoding_stream): Clear previous
11939         detection state when autodetect.
11940
11941 2000-02-29  Didier Verna  <didier@xemacs.org>
11942
11943         * extents.c (set_extent_glyph_1): don't require extents to be
11944         attached.
11945
11946 2000-02-27  Andy Piper  <andy@xemacs.org>
11947
11948         * gutter.c (Fset_default_gutter_position): don't default left and
11949         right gutter visibility to t.
11950         (Fset_default_gutter_position): run
11951         default-gutter-position-changed-hook.
11952         (syms_of_gutter): add default-gutter-position-changed-hook.
11953
11954 2000-02-26  Andy Piper  <andy@xemacs.org>
11955
11956         * specifier.c (Fmake_specifier): add gutter references.
11957
11958         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11959
11960         * lisp.h: declare Fvalid_plist_p.
11961
11962         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11963         as changed.
11964         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11965         well as its visibility so that it gets reconstructed.
11966         (construct_window_gutter_spec): new function. Construct a string
11967         to be displayed in the gutter from a plist of strings. Take care
11968         to only use elements that are declared as visible.
11969         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11970         WINDOW_GUTTER.
11971         (gutter_validate): allow plists of strings in the specifier.
11972         (gutter_specs_changed): construct the real_gutter from the gutter
11973         specs using construct_window_gutter_spec.
11974         (gutter_visible_validate): gutter-visible is a new specifier type.
11975         (Fgutter_visible_specifier_p): new function for the new specifier.
11976         (syms_of_gutter): declare gutter-visible and
11977         Fgutter_visible_specifier_p.
11978         (specifier_type_create_gutter): intitalize new gutter-visible
11979         specifier.
11980         (reinit_specifier_type_create_gutter): ditto.
11981         (specifier_vars_of_gutter): use new specifier type for gutter
11982         visibility.
11983         (init_frame_gutters): construct real_gutter correctly.
11984         (Fgutter_specifier_p): beef up documentation.
11985         (Fgutter_size_specifier_p): ditto.
11986
11987         * winslots.h: add real_gutter slots.
11988
11989 2000-02-25  Andy Piper  <andy@xemacs.org>
11990
11991         * device-msw.c: Be kind to older cygwin versions. From Raymond
11992         Toy <toy@rtp.ericsson.se>.
11993
11994         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11995         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11996
11997 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11998
11999         * elhash.c (MARK_OBJ): Practice macro hygiene.
12000
12001 2000-02-24  Martin Buchholz  <martin@xemacs.org>
12002
12003         * miscplay.c: s/__inline__/inline/g;
12004         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
12005         (get_device_compdc): INLINE ==> static inline
12006         * *.[ch]: Change INLINE to INLINE_HEADER globally.
12007         find -name '*.h' | \
12008         xargs global-replace \
12009         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
12010
12011 2000-02-25  Andy Piper  <andy@xemacs.org>
12012
12013         * window.c (window_top_frame_gutter_height): new function.
12014         (window_top_window_gutter_height): ditto.
12015         (window_top_gutter_height): use them.
12016         (window_bottom_frame_gutter_height): new function.
12017         (window_bottom_window_gutter_height): ditto.
12018         (window_bottom_gutter_height): use them.
12019         (window_left_window_gutter_width): new function.
12020         (window_left_frame_gutter_width): ditto.
12021         (window_left_gutter_width): use them.
12022         (window_right_window_gutter_width): new function.
12023         (window_right_frame_gutter_width): ditto.
12024         (window_right_gutter_width): use them.
12025         (window_pixel_height): new function. calulate window pixel height
12026         with frame gutter involvement.
12027         (Fsplit_window): calculate new sizes taking frame gutters into
12028         account.
12029         (window_char_height_to_pixel_height): don't include frame gutters.
12030         (window_char_height): use window_pixel_height.
12031         (window_pixheight): rename from window_pixel_height.
12032         (change_window_height): use it.
12033         (window_pixel_height_to_char_height): don't include frame gutters.
12034         (window_char_width_to_pixel_width): ditto.
12035
12036 2000-02-25  Andy Piper  <andy@xemacs.org>
12037
12038         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
12039         if it is.
12040
12041 2000-02-24  Martin Buchholz  <martin@xemacs.org>
12042
12043         * alloc.c (staticpro):
12044         (staticpro_nodump):
12045         (dumpstruct):
12046         (dumpopaque):
12047         (pdump_wire):
12048         (pdump_wire_list):
12049         (compact_string_chars):
12050         (pdump_dump_wired):
12051         Convert:  if (foo) abort();  ==>  assert (! foo);
12052
12053         * eldap.c (Fldap_search_basic):
12054         (Fldap_add):
12055         (Fldap_modify):
12056         (Fldap_delete):
12057         Fix compiler warnings, and possible crashes if (random) return
12058         value were to be used.
12059
12060 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12061
12062         * device-msw.c: Workaround ResetDC failure.
12063
12064         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
12065         applying a devmode.
12066
12067         * redisplay-msw.c (get_frame_dc): Added start_page_p.
12068         (mswindows_text_width): Do not start printer page.
12069
12070         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
12071
12072         * glyphs-msw.c: Added image methods to msprinter console and
12073         msprinter-specific image instantiation.
12074
12075 2000-02-20  Mike Alexander  <mta@arbortext.com>
12076
12077         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
12078         to avoid crashes when selection-sets-clipboard is on
12079         (mswindows_own_selection): ditto
12080
12081 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12082
12083         * glyphs-msw.c:
12084         * redisplay-msw.c (get_frame_dc):
12085         (get_frame_compdc):
12086         * console-msw.h:
12087         * device-msw.c (mswindows_init_device):
12088         (mswindows_delete_device):
12089         (msprinter_init_device):
12090         (msprinter_delete_device):
12091         * frame-msw.c (mswindows_init_frame_1):
12092         (mswindows_delete_frame):
12093         (msprinter_init_frame_3):
12094         (msprinter_delete_frame): Move compatible DC to device object from
12095         frame object, for both mswindows and msprinter. Only one at a time
12096         is needed, it is a real waste to have one per frame!
12097
12098 2000-02-23  Andy Piper  <andy@xemacs.org>
12099
12100         * glyphs.c: add dynamic width and height elements.
12101         (image_instance_equal): ditto.
12102
12103         * glyphs-widget.c (widget_query_geometry): calculate width and
12104         height dynamically if required.
12105         (initialize_widget_image_instance): initialize dynamic dimensions.
12106         (widget_instantiate): pick-up dynamic dimensions.
12107
12108         * glyphs.h (struct Lisp_Image_Instance): add width and height for
12109         dynamic determination. Add appropriate macros.
12110
12111         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
12112         dimensions safe.
12113         (WINDOW_GUTTER_SIZE): ditto.
12114         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
12115
12116         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
12117         inline.
12118         (get_frame_dc): ditto.
12119
12120         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
12121         here.
12122
12123 2000-02-23  Martin Buchholz <martin@xemacs.org>
12124
12125         * XEmacs 21.2.31 is released.
12126
12127 2000-02-22  Ben Wing <ben@xemacs.org>
12128
12129         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
12130
12131 2000-02-22  Andy Piper  <andy@xemacs.org>
12132
12133         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
12134
12135 2000-02-21  Mike Sperber <mike@xemacs.org>
12136
12137         * .dbxrc:
12138         * .gdbinit:
12139         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
12140         variables.
12141
12142 2000-02-21  Mike Sperber <mike@xemacs.org>
12143
12144         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
12145
12146 2000-02-21  Martin Buchholz <martin@xemacs.org>
12147
12148         * XEmacs 21.2.30 is released.
12149
12150 2000-02-20  Martin Buchholz  <martin@xemacs.org>
12151
12152         Performance hacking.
12153         * *.c (syms_of_*):
12154         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
12155         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
12156         * emacs.c (main_1):
12157         * lisp.h (DEFUN):
12158         * console.c (DEFVAR_CONSOLE_LOCAL_1):
12159         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
12160         * symeval.h (DEFVAR_SYMVAL_FWD):
12161         * symbols.c (guts_of_unbound_marker):
12162         Make all c_readonly objects also lisp_readonly and marked for life.
12163         * lrecord.h (struct lrecord_implementation):
12164         Document flags better.
12165         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
12166         * lrecord.h (DECLARE_LRECORD):
12167         * lrecord.h (XSETRECORD):
12168         * lrecord.h (RECORDP):
12169         * lrecord.h (RECORD_TYPEP):
12170         * lrecord.h (RECORD_MARKER): New.
12171         * lrecord.h (error_check_*):
12172         * lrecord.h (CONCHECK_NONRECORD):
12173         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
12174         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
12175         * lrecord.h (set_lheader_implementation):
12176         * lrecord.h (enum lrecord_type): New.
12177         * symeval.h (SYMBOL_VALUE_MAGIC_P):
12178         * alloc.c (disksave_object_finalization_1):
12179         * alloc.c (mark_object):
12180         * alloc.c (lrecord_type_index):
12181         * alloc.c (tick_lcrecord_stats):
12182         * alloc.c (Fgarbage_collect):
12183         * alloc.c (init_alloc_once_early):
12184         * alloc.c (pdump_load):
12185         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
12186         * alloc.c (lrecord_type_index): Delete.
12187         Make lisp object type indexes be constant.
12188           Makes (byte-compile) 5% faster.
12189         Put all marker functions into their own array.
12190           Makes (garbage-collect) 5% faster.
12191         Optimize SYMBOL_VALUE_MAGIC_P.
12192           Makes (byte-compile) 2-3% faster.
12193         * config.h.in (gc_checking_assert): New.
12194         * alloc.c: Use gc_checking_assert().
12195         * .dbxrc: Make compatible with new object type implementation.
12196         * .gdbinit: Make compatible with new object type implementation.
12197         * alloc.c: Delete all symbols defined only for debugging, such as
12198         Lisp_Type_Vector and lrecord_charset.
12199
12200 2000-02-21  Andy Piper  <andy@xemacs.org>
12201
12202         * gui-msw.c (Fmswindows_shell_execute): fix file location
12203         problems.
12204
12205         * buffer.c (Fkill_buffer): remove buffer from alist buffer
12206         unshowing so that set_window_buffer doesn't undo
12207         kill_buffer_hook's hard work.
12208
12209         * glyphs-widget.c (tab_control_query_geometry): don't count the
12210         first item when calculating geometry.
12211
12212         * glyphs.c (map_subwindow): remove redundant code.
12213         (update_frame_subwindows): be more circumspect about when to
12214         update subwindows.
12215
12216         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
12217         when items haven't changed. Update faces if faces have changed as
12218         well as just the widget face.
12219         (x_tab_control_update): Update faces if faces have changed as well
12220         as just the widget face.
12221
12222 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12223
12224         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
12225         registration.
12226         (build_syscolor_string): Use mswindows_color_to_string to try to
12227         get a named color.
12228         (mswindows_device_system_metrics): Reverse the foreground and
12229         background colors so that they match the documentation.
12230
12231         * objects-msw.c: (mswindows_X_color_map): tweak some values so
12232         they match the default Windows palette.
12233         (mswindows_color_to_string): New function.
12234
12235 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12236
12237         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
12238
12239 2000-02-18  Olivier Galibert  <galibert@pobox.com>
12240
12241         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
12242         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
12243
12244         * symbols.c (init_symbols_once_early): Removed obsolete
12245         DATA_SEG_BITS related kludge.
12246         (defvar_magic): Ditto.
12247
12248         * malloc.c: Removed obsolete DATA_SEG_BITS
12249         * ralloc.c: Ditto.
12250         * mem-limits.h: Ditto.
12251
12252         * Makefile.in.in: Removed obsolete HAVE_SHM
12253         * emacs.c: Ditto.
12254
12255 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12256
12257         *  device-msw.c (mswindows_delete_device): Free DDE string
12258         handles.
12259
12260 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12261
12262         * keymap.c (get_keyelt):
12263         * unexnt.c (unexec):
12264         * vm-limit.c (memory_warnings):
12265         * ntheap.c (recreate_heap):
12266         * ntheap.h (UNINIT_PTR):
12267         * select-msw.c (Fmswindows_get_clipboard):
12268         (Fmswindows_set_clipboard):
12269         * objects-msw.h (MSWINDOWS_BAD_HFONT):
12270         * objects-msw.c:
12271         * menubar-msw.c (displayable_menu_item):
12272         * glyphs-msw.c:
12273         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
12274         * sysdep.c (sys_subshell):
12275         * process-nt.c (nt_create_process):
12276         * nt.c (normalize_filename):
12277         (dostounix_filename):
12278         (unixtodos_filename):
12279         * ntproc.c (win32_executable_type):
12280         * ntplay.c (play_sound_data_1):
12281         (play_sound_file):
12282         * editfns.c (get_home_directory):
12283         * event-msw.c (struct winsock_stream):
12284         (mswindows_dde_callback):
12285         * device-msw.c (msprinter_init_device):
12286         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
12287
12288         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
12289         mswindows_clear_toolbar were swapped!
12290
12291         * objects-msw.c:(colormap_t):
12292         (fontmap_t):
12293         * emacs.c (struct standard_args): Fixed const jumble.
12294
12295         * glyphs-widget.c (update_widget): Fixed comparison notation.
12296
12297         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
12298
12299         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
12300         __declspec(noreturn) syntax.
12301
12302 2000-02-19  Martin Buchholz  <martin@xemacs.org>
12303
12304         * eldap.c (Fldap_open):
12305         (Fldap_search_basic):
12306         (Fldap_add):
12307         (Fldap_modify):
12308         Use new coding system conversion macros.
12309
12310 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12311
12312         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
12313
12314 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
12315
12316         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
12317         (Fldap_add, Fldap_modify, Fldap_delete): New functions
12318
12319         * eldap.c (Qadd, Qreplace): New constant symbols
12320         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
12321         interruptions by XEmacs signals
12322         Remove unnecessary calls to slow_down_interrupts and
12323         speed_up_interrupts
12324         (Fldap_search_basic): Renamed from Fldap_search_internal
12325         Added new optional parameter VERBOSE that triggers the
12326         display of progress messages
12327         Remove unnecessary calls to slow_down_interrupts and
12328         speed_up_interrupts
12329         LDAP result code analysis rewritten
12330         (Fldap_add, Fldap_modify, Fldap_delete): New functions
12331         (syms_of_eldap): Define the new symbols and functions
12332
12333
12334 2000-02-17  Martin Buchholz  <martin@xemacs.org>
12335
12336         * realpath.c: Determine PATH_MAX maximally portably.
12337
12338         * insdel.c (bytecount_to_charcount): Optimize.
12339         The function used to be optimized for entirely ASCII sequences.
12340         Now it is optimized for successive characters from the same
12341         charset.  This also wins big for _mostly_ ASCII sequences.
12342
12343         * fileio.c (Ffile_truename): convert return from realpath() using
12344         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
12345         - Rewrite GCPROing slightly.
12346
12347         * sysdep.c (sys_open): Do filename conversion, like all other
12348         sys_* functions.  Fixes bug:
12349         (let ((file-name-coding-system 'iso-8859-2))
12350            (write-region x y latin2-name))
12351         ==> writes filename using internal encoding.
12352
12353 2000-02-18  Martin Buchholz  <martin@xemacs.org>
12354
12355         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
12356         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
12357         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
12358         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
12359         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
12360         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
12361         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
12362         (CONST_IF_NOT_DEBUG): Delete.
12363         * alloc.c (this_one_is_unmarkable): Delete.
12364         (mark_object): Don't check for this_one_is_unmarkable. Use the
12365         c_readonly flag instead.
12366         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
12367
12368 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12369
12370         * event-msw.c (mswindows_drain_windows_queue):
12371         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
12372         away redundant repaint events.
12373
12374 2000-02-17  Andy Piper  <andy@xemacs.org>
12375
12376         * redisplay.h: declare mark_redisplay_structs.
12377
12378         * redisplay.c (redisplay_window):
12379         (redisplay_frame): don't check subwindows_state_changed.
12380         (mark_redisplay): mark gutters here.
12381
12382         * glyphs.c: (instantiate_image_instantiator): always layout if we
12383         haven't done so already.
12384         (allocate_image_instance): don't mark as dirty.
12385         (update_subwindow): bind inhibit_quit.
12386
12387         * gutter.c (mark_gutters): new function.
12388
12389         * glyphs-x.c (x_update_widget): Always resize to get round a
12390         widget bug.
12391
12392         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
12393         breaking absolutely everything.
12394
12395         * gutter.h: declare mark_gutters.
12396
12397 2000-02-16  Martin Buchholz <martin@xemacs.org>
12398
12399         * XEmacs 21.2.29 is released.
12400
12401 2000-02-15  Olivier Galibert  <galibert@pobox.com>
12402
12403         * fns.c (size_bit_vector): Fix computation of the size.
12404
12405 2000-02-15  Martin Buchholz  <martin@xemacs.org>
12406
12407         * *.[ch]: Change CONST to const globally.
12408         find -name '*.[ch]' | \
12409         xargs global-replace \
12410         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
12411         - Remove vestigial references to CONST_IS_LOSING
12412
12413 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12414
12415         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
12416         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
12417         events instead of dispatching them directly.
12418         (mswindows_handle_paint): New function to do repainting.
12419         (mswindows_wnd_proc):
12420         (emacs_mswindows_handle_magic_event): Call above function.
12421
12422 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12423
12424         * objects-msw.c (mswindows_create_font_variant): Return the new
12425         font handle.
12426         (initialize_font_instance): Get font metrics from the underlined
12427         variant of the font to cope with the case where the underlined
12428         font has a bigger descent.
12429
12430 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12431
12432         * gui.c (gui_item_accelerator): Return the first underlined
12433         character in item name.
12434
12435 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12436
12437         * lisp.h: Added Qprinter.
12438
12439         * general.c (syms_of_general): Initialized it.
12440
12441         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
12442         (get_frame_dc):
12443         (get_frame_compdc): Made inline.
12444
12445         * console.h (struct console_methods): Added eject_page method.
12446
12447         * frame.h: Added FRAME_DISPLAY_P and friends.
12448         Aligned backslahes in many macros in more readable fashion.
12449         Added page_number to struct frame, and an accessor macro
12450         for it.
12451
12452         * defice.h: Added DEVICE_DISPLAY_P and friends.
12453
12454         * device.c (Fdevice_printer_p): Used these.
12455
12456         * frame.c (allocate_frame_core): Initialize page number.
12457         (Fprint_job_page_number):
12458         (Fprint_job_eject_page): Implemented.
12459
12460         * frame-msw.c (msprinter_eject_page): Added method.
12461         (msprinter_start_page): Added.
12462
12463         * window.c (Fwindow_truncated_p): Fixed docstring.
12464         (Fwindow_last_line_visible_height): Implemented.
12465
12466 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12467
12468         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
12469
12470 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12471
12472         * syntax.c (scan_words): Always advance at least one character.
12473
12474 2000-02-13  Andy Piper  <andy@xemacs.org>
12475
12476         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
12477         to make sure the glyph is in the cachels.
12478
12479         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
12480         global image instance flag.
12481         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
12482         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
12483
12484         * glyphs.c (allocate_image_instance): set dirty bits correctly.
12485         (Fset_image_instance_property): mark layout as changed.
12486         (invalidate_glyph_geometry_maybe): mark layout as changed.
12487         (glyph_width): use new NEEDS_LAYOUT macro.
12488         (glyph_ascent): ditto.
12489         (glyph_descent): ditto.
12490         (glyph_height): ditto.
12491         (image_instance_layout): mark layout as clean after laying out.
12492         (update_subwindow): don't mark layout as clean here.
12493
12494         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
12495         should no longer be needed.
12496
12497         * glyphs-x.c (x_update_widget): sanitize asserts.
12498         (x_finalize_image_instance): sanitize assignment to widgets.
12499
12500         * glyphs-widget.c (widget_instantiate): don't need to clear the
12501         layout flag here.
12502
12503 2000-02-13  Martin Buchholz  <martin@xemacs.org>
12504
12505         * sysdep.c (getcwd): Use standard prototype.
12506         * sysdep.h (getcwd): Use standard prototype.
12507
12508         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
12509         (sequence, start, end).
12510         Remove redundant type checking.
12511         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
12512         view of `caller-protects') to avoid a crash where the real fix was
12513         found elsewhere.
12514
12515 2000-02-12  Martin Buchholz  <martin@xemacs.org>
12516
12517         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
12518
12519         * s/sol2.h: Remove feature macro initialization.
12520
12521         * alloc.c (alloc_lcrecord): Add more type checking assertions.
12522         (vector_hash): New.  Code from internal_hash.
12523         * lrecord.h:
12524         Fix up allocation subsystem comments.
12525
12526         * config.h.in: Add __EXTENSIONS__ for Solaris.
12527
12528         * systime.h (EMACS_GETTIMEOFDAY): New.
12529         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
12530         Remove Solaris-specific code.
12531         Use void* for the (ignored) second arg for gettimeofday().
12532
12533         * elhash.c (hash_table_hash): Implement it, finally.
12534         * elhash.c:  Use hashcode_t.
12535
12536         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
12537         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
12538
12539         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
12540         * fns.c (size_bit_vector):
12541         * alloc.c (size_vector):
12542         (make_vector_internal):
12543         (make_bit_vector_internal):
12544         (sweep_bit_vectors_1):
12545         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
12546
12547 2000-02-10  Martin Buchholz  <martin@xemacs.org>
12548
12549         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
12550         Include strings.h to avoid warnings for bzero and strcasecmp.
12551
12552 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12553
12554         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
12555         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
12556
12557         * fns.c (size_bit_vector): New.  Declare bit vectors as a
12558         sequence.
12559
12560 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12561
12562         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
12563         use a value field instead.
12564         (symbol_value_forward_forward): Use value field.
12565         (DEFVAR_SYMVAL_FWD): Use value field.
12566         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
12567         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
12568         (DEFVAR_CONST_INT): Ditto.
12569         (DEFVAR_BOOL): Ditto.
12570         (DEFVAR_CONST_BOOL): Ditto.
12571         (DEFVAR_INT_MAGIC): Ditto.
12572         (DEFVAR_BOOL_MAGIC): Ditto.
12573
12574         * symbols.c (guts_of_unbound_marker): Use value field.
12575         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
12576         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
12577
12578         * lisp.h: Declare dumpopaque and noninteractive1.
12579
12580         * alloc.c (dumpopaque): Added.
12581         (pdump_dump_opaquevec): Added.
12582         (pdump): Call pdump_dump_opaquevec to dump opaque data.
12583         (pdump_load): Reload opaque data.  Sync noninteractive1 with
12584         noninteractive.
12585
12586 2000-02-10  Andy Piper  <andy@xemacs.org>
12587
12588         * glyphs.c (image_instance_layout): if the size changes, mark it
12589         as such.
12590
12591         * redisplay-output.c (redisplay_output_layout): Update the
12592         subwindow here.
12593         (redisplay_output_subwindow): ditto.
12594
12595         * glyphs.c (update_subwindow): make sure we reset flags for
12596         layouts as well as everything else.
12597
12598         * glyphs-widget.c (layout_layout): don't need to set the instances
12599         dimensions here.
12600
12601 2000-02-09  Martin Buchholz  <martin@xemacs.org>
12602
12603         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
12604         not HAVE_DLOPEN, which is a lower-level thing.
12605
12606         * .cvsignore: Ignore gmon.out
12607
12608 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
12609
12610         * .cvsignore: Ignore portable dumper xemacs.dmp file
12611
12612 2000-02-09  Andy Piper  <andy@xemacs.org>
12613
12614         * redisplay-output.c (redisplay_output_layout): be more clever
12615         about when we output based on the changed flags.
12616
12617         * glyphs.h (struct image_instantiator_methods): add update_method.
12618         (struct Lisp_Image_Instance): add changed flags. Declare new
12619         macros for manipulating them.
12620
12621         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12622         (image_instance_parent_glyph): find an image_instance's parent
12623         glyph or image_instance.
12624         (image_instance_layout): mark the size as changed.
12625         (set_image_instance_dirty_p): new function. mark an image
12626         instance, plus all of its parents, as dirty.
12627         (Fset_image_instance_property): use it.
12628         (Fglyph_animated_timeout_handler): use it.
12629         (update_subwindow): call update_widget and device methods for
12630         update_subwindow. Mark all changed flags as clean.
12631         (Fresize_subwindow): mark size as changed.
12632
12633         * glyphs-x.c (x_finalize_image_instance): try and detect gc
12634         failures.
12635         (x_update_subwindow): only resize subwindows here.
12636         (x_update_widget): new function. Update all changed properties of
12637         a widget.
12638         (x_resize_subwindow): deleted.
12639         (x_widget_set_property): deleted.
12640         (x_progress_gauge_set_property): deleted.
12641         (x_progress_gauge_update): new function. Implement recorded
12642         changes.
12643         (x_tab_control_update): ditto.
12644         (x_tab_control_set_property): deleted.
12645         (console_type_create_glyphs_x): declare new functions.
12646         (image_instantiator_format_create_glyphs_x): ditto.
12647
12648         * glyphs-widget.c (widget_set_property): mark text changed.
12649         (update_widget): new function. Update properties of a widget.
12650         (widget_instantiate): for layouts make sure we set their
12651         children's parent correctly.
12652         (tab_control_set_property): new function. Record changes that will
12653         take place under redisplay's control.
12654         (progress_gauge_set_property): ditto.
12655         (image_instantiator_progress_guage): declare new functions.
12656         (image_instantiator_tab_control): ditto.
12657
12658         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12659         now.
12660         (mswindows_update_widget): new function. Update all properties on
12661         a widget that have changed.
12662         (mswindows_button_update): new function. Update a button's set
12663         state.
12664         (mswindows_tab_control_update): new function. Update the items in
12665         a tab.
12666         (mswindows_tab_control_set_property): deleted.
12667         (mswindows_progress_gauge_update): new function. Update the
12668         progress gauge's progress.
12669         (mswindows_widget_set_property): deleted. This is all done
12670         asynchronously now.
12671         (mswindows_progress_gauge_set_property): ditto.
12672         (console_type_create_glyphs_mswindows): declare new methods.
12673         (image_instantiator_format_create_glyphs_mswindows): ditto.
12674
12675         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12676         (msprinter_set_frame_properties): ditto.
12677
12678         * console.h (struct console_methods): Add update_widget_method.
12679
12680 2000-02-09  Andy Piper  <andy@xemacs.org>
12681
12682         * gui-msw.c (Fmswindows_shell_execute): Make
12683         mswindows-shell-execute industrial strength.
12684
12685 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12686
12687         * lrecord.h: Make macro argument `props' match member function `plist'.
12688         * fns.c (Fget):
12689         * fns.c (Fput):
12690         * fns.c (Fremprop):
12691         * fns.c (Fobject_plist):
12692         * alloc.c:
12693         * symbols.c:
12694         Object property list frobbing cleanup.
12695         - Allow any lisp object (compared with `eq'), not just symbols, as
12696           keys in object plists.
12697         - Move symbol plist frobbing into symbols.c, where it belongs.
12698         - Move string plist frobbing into alloc.c, where it belongs.
12699         - Everything's an lrecord now, so no need to test for symbolp, etc.
12700         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12701
12702         * extents.c: Reorder code to remove declarations.
12703
12704         * frame.h (store_in_alist): Remove useless declaration.
12705
12706 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12707
12708         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12709         * config.h.in: Add HAVE_XCONVERTCASE.
12710
12711 2000-02-07  Andy Piper  <andy@xemacs.org>
12712
12713         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12714         it breaks many things.
12715
12716 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12717
12718         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12719         actually can start a common comment type.
12720         * src/syntax.h (SYNTAX_END_P): ditto for end.
12721
12722 2000-02-07  Martin Buchholz <martin@xemacs.org>
12723
12724         * XEmacs 21.2.28 is released.
12725
12726 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12727
12728         * event-Xt.c (x_keysym_to_character): New.
12729         (maybe_define_x_key_as_self_inserting_character): New.
12730         (x_has_keysym): New.
12731         Auto-define all keys on the keyboard as self-insert-key.
12732
12733 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12734
12735         * menubar.c (vars_of_menubar): A small code simplification.
12736
12737         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12738
12739         * ExternalShell.c:
12740         * ExternalClient.c:
12741         * EmacsShell-sub.c:
12742         * EmacsManager.c:
12743         * EmacsFrame.c:
12744         Use consistent style for specifying X resources.
12745
12746         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12747         This makes (dontusethis-set-symbol-value-handler) actually usable.
12748
12749         * lrecord.h (lrecord_decription_type):
12750         * alloc.c (pdump_register_sub):
12751         (pdump_dump_data):
12752         (pdump_reloc_one):
12753         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12754         Comply with XEmacs coding style.
12755         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12756         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12757
12758         * keymap.c (Faccessible_keymaps):
12759         Make (accessible-keymaps map "\C-h") do the Right Thing.
12760         Make (accessible-keymaps map []) do the Right Thing.
12761         Make (accessible-keymaps map "") do the Right Thing.
12762         (check_keymap_definition_loop): New function.
12763         (keymap_store_internal): Keep luser from shooting self in foot,
12764           via (define-key ctl-x-4-map "p" global-map).
12765         Remove fullness slot from struct Lisp_Keymap, since hash tables
12766         are now reliable.
12767         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12768
12769 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12770
12771         * redisplay.c (init_redisplay): Fix small memory leak.
12772         * elhash.h:
12773         * elhash.c (pdump_reorganize_hash_table):
12774         Rename from reorganize_hash_table. Change prototype.
12775         Reuse the original memory for hentries.  Save 100k.
12776         * alloc.c (PDUMP_READ): new macro.
12777         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12778         * alloc.c: No need to #ifndef before #undef.
12779
12780         * print.c: Allow debug_print() to print readably by modifying
12781         debug_print_readably.  Use consistent variable names.
12782
12783         * .dbxrc: Try to get things to work even if stopped in a function
12784         without source available by explicitly specifying source files.
12785 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12786
12787         * unexnt.c (_start): Removed bogus code which caused loading heap
12788         from differrent executable file.
12789         Removed bogus assignment to _fmode, which caused inconsistencies.
12790
12791 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12792
12793         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12794         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12795         Do not preliminary `#define signal sigset'.
12796
12797         * systime.h: Do not prototype environ on windows nt and cygwin,
12798         this conflicts with system header.
12799
12800         * syssignal.h: Use correct define for WINDOWSNT
12801
12802         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12803         with system header.
12804
12805         * sysdep.c (near start of file): Fixed commentary and rearranged
12806         ifdefs in readable order.
12807         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12808         (start_of_text):
12809         (end_of_text):
12810         (end_of_data): Do not compile in if using PDUMP.
12811
12812         * symsinit.h: Prototyped vars_of_nt().
12813
12814         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12815         (find_child_console): Use it.
12816         (sys_kill): Use it.
12817
12818         * ntheap.h: Do not extern os_subtype.
12819
12820         * ntheap.c (cache_system_info): Do not cache unneeded:
12821         nt_major_version, nt_minor_version and os_subtype.
12822         (recreate_heap): Do not compile in when PDUMPing.
12823
12824         * nt.c (geteuid and friends): Use the new varibale
12825         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12826         (init_user_info): Removed the above mentioned hackery.
12827         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12828         stat has been fixed in the C runtime.
12829         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12830
12831         * file-coding.c (struct file_coding_dump): Do not define
12832         ucs_to_mule_table in the struct if not MULE.
12833         (struct struct lrecord_description fcd_description_1): Do not dump
12834         the above.
12835
12836         * emacs.c (main_1): Call vars_of_nt().
12837         (right before Fdump_emacs_data): Don't need lastfile if using both
12838         portabe dumper and system malloc.
12839
12840         * alloc.c (Fmemory_limit): Conditionalized out.
12841         (pdump): Use OPEN_BINARY for the portable dump file.
12842         (pdump_load): Ditto.
12843
12844 2000-02-02  Mike Alexander  <mta@arbortext.com>
12845
12846         * nt.c (convert_time): Set tm_isdst before calling mktime and
12847         avoid calling it at all if the compiler supports 64 bit integers.
12848         Also initialize utc_base_ft before using it.
12849
12850 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12851
12852         * frame.c (change_frame_size_1): Take f->internal_border_width
12853         into consideration when calculating the width of the frame.
12854
12855 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12856
12857         * window.c (frame_min_height):
12858         (frame_size_valid_p):
12859         (frame_pixsize_valid_p): Added.
12860         (check_frame_size): Generalized.
12861
12862         * window.h: Prototyped the above.
12863
12864         * lisp.h:
12865         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12866         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12867         Deleted Vwin32_* and Vbinary_process_* unused variables.
12868
12869         * device-msw.c (msprinter_init_device): Do not get printer font
12870         list; Added DEVMODE functions.
12871
12872         * frame-msw.c: Added lots of printer code.
12873
12874         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12875         general.c.
12876
12877         * console-msw.h: Added more msprinter device private slots.
12878
12879 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12880
12881         * event-msw.c (key_needs_default_processing_p): Added.
12882         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12883
12884 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12885
12886         * glyphs.c (image_instance_layout): Mark image instance as clean
12887         after layout.
12888         (glyph_dirty_p): Removed redundant function.
12889         (invalidate_glyph_geometry_maybe): Added.
12890         (update_glyph_cachel_data): Call it.
12891
12892         * glyphs.h: Prototyped it.
12893
12894         * redisplay.c (add_glyph_rune): Call it.
12895         (redisplay_window): Reset glyphs cachels when frame faces have
12896         changed, thus forcing recomputation of built-in border glyphs.
12897
12898 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12899
12900         * Makefile.in.in: Make portable dumper and purify play well together.
12901         Add imperfect, but better than nothing, support for pdump.
12902         Remove xemacs.dmp when temacs is re-generated.
12903         Don't ignore errors when dumping xemacs.
12904
12905         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12906
12907 2000-01-28  Andy Piper  <andy@xemacs.org>
12908
12909         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12910         (setup_normal_frame): ditto.
12911         (setup_frame_without_minibuffer): ditto.
12912         (setup_minibuffer_frame): ditto.
12913         (delete_frame_internal): ditto.
12914         (Fmake_frame_invisible): ditto.
12915         (Ficonify_frame): ditto.
12916
12917         * window.h: change Fset_window_buffer signature.
12918
12919         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12920         (Fset_window_buffer): allow recording of buffer if the window is
12921         the selected window.
12922         (window_loop): Use new Fset_window signature.
12923
12924 2000-01-23  Daniel Pittman  <daniel@danann.net>
12925
12926         * config.h.in: Added template for `HAVE_ATHENA_3D'
12927
12928 2000-01-29  Andy Piper  <andy@xemacs.org>
12929
12930         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12931
12932         * gutter.c (output_gutter): Don't output if the window isn't live.
12933
12934 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12935
12936         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12937         of 01/12/00: Moved SetFocus back here where it belongs.
12938
12939 2000-01-23  Andy Piper  <andy@xemacs.org>
12940
12941         * s/cygwin32.h: declare printer things.
12942
12943 2000-01-26  Andy Piper  <andy@xemacs.org>
12944
12945         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12946         Alexander.
12947
12948 2000-01-24  Andy Piper  <andy@xemacs.org>
12949
12950         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12951         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12952
12953         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12954
12955         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12956
12957         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12958
12959         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12960         (mswindows_output_display_block): Avoid local shadows.
12961
12962         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12963         (mswindows_enqueue_mouse_button_event): ditto.
12964         (mswindows_handle_gui_wm_command): remove declaration.
12965
12966         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12967         warnings.
12968
12969         * console-msw.h: Avoid shadows.
12970         (mswindows_get_toolbar_button_text):
12971         (emacs_mswindows_create_stream_pair):
12972         (emacs_mswindows_delete_stream_pair):
12973         (mswindows_handle_toolbar_wm_command): declare.
12974
12975         * device-msw.c (build_syscolor_string): Avoid shadows.
12976
12977 2000-01-23  Andy Piper  <andy@xemacs.org>
12978
12979         * glyphs-widget.c (widget_instantiate): reverse the items for
12980         layouts so that children are in the expected order.
12981
12982 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12983
12984         * ralloc.c: safe_bcopy ==> memmove
12985         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12986         * s/msdos.h: Remove BCOPY macros.
12987         * insdel.c (gap_right): Remove BCOPY conditional code.
12988         * insdel.c (gap_left): Remove BCOPY conditional code.
12989         XEmacs demands a working ANSI C compiler - hence memmove.
12990
12991         * regex.c (regex_compile): Remove accidental use of trigraphs.
12992
12993 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12994
12995         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12996         event timestamp.
12997
12998 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12999
13000         * event-msw.c (mswindows_drain_windows_queue): Added the
13001         parameter.
13002         (mswindows_need_event): Commented the call to
13003         mswindows_drain_windows_queue().
13004         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
13005         only.
13006
13007         * console-msw.h: Moved a few function prototypes here from
13008         event-msw.c.
13009
13010         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
13011         parameter from unsigned short to unsigned long.
13012         (Fmswindows_shell_execute): Added return value.
13013
13014 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
13015
13016         * sysdep.c (init_system_name):
13017           process-unix.c (unix_canonicalized_host_name):
13018         Don't call freeaddrinfo() if getaddrinfo() fails.
13019
13020         * process-unix.c (unix_open_unix_network_stream):
13021         Moved the code to get a port # into address loop.
13022
13023 2000-01-27  Martin Buchholz  <martin@xemacs.org>
13024
13025         * buffer.c (reinit_vars_of_buffer):
13026         The right place to initialize conversion_in_dynarr and
13027         conversion_out_dynarr.
13028
13029         * alloc.c (pdump): Use the real open() till sys_open() is functional.
13030
13031         * process-unix.c (unix_canonicalize_host_name): Muleize.
13032         (unix_open_network_stream): Muleize.
13033
13034         * buffer.h: Fix up prototypes for ralloc.c functions.
13035
13036 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
13037         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
13038         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
13039                 instead of gethostbyname()
13040         * process-unix.c: In unix_canonicalize_host_name() and
13041                 unix_open_network_stream(), add code to use getaddrinfo()
13042                 instead of gethostbyname().
13043
13044 2000-01-27  Daniel Pittman <daniel@danann.net>
13045
13046         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
13047         libs when built with flat Athena.
13048
13049 2000-01-27  Martin Buchholz  <martin@xemacs.org>
13050
13051         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
13052         Use coding standards for function prototypes.
13053
13054 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13055
13056         * dialog-msw.c (push_lisp_string_as_unicode):
13057         * doc.c (unparesseuxify_doc_string):
13058         * dired.c (Fuser_name_completion_1):
13059         * dired.c (Fuser_name_all_completions):
13060         * dired.c (free_user_cache):
13061         * dired.c (user_name_completion):
13062         * console-x.c (get_display_arg_connection):
13063         * minibuf.c (clear_echo_area_internal):
13064         * minibuf.c (echo_area_append):
13065         * eldap.c (Fldap_open):
13066         * eldap.c (Fldap_search_internal):
13067         * frame-x.c (x_set_frame_text_value):
13068         * frame-x.c (x_set_frame_properties):
13069         * frame-x.c (x_create_widgets):
13070         * redisplay-tty.c (term_get_fkeys_1):
13071         * objects-x.c (x_parse_nearest_color):
13072         * objects-x.c (x_valid_color_name_p):
13073         * objects-x.c (x_initialize_font_instance):
13074         * objects-x.c (x_list_fonts):
13075         * objects-x.c (x_find_charset_font):
13076         * tooltalk.c (Fadd_tooltalk_message_arg):
13077         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
13078         * tooltalk.c (Fadd_tooltalk_pattern_arg):
13079         * process-unix.c (unix_create_process):
13080         * ntproc.c (sys_spawnve):
13081         * sound.c (Fplay_sound_file):
13082         * sound.c (Fplay_sound):
13083         * buffer.c (init_initial_directory):
13084         * buffer.c (init_buffer):
13085         * editfns.c (init_editfns):
13086         * editfns.c (Ftemp_directory):
13087         * editfns.c (Fuser_full_name):
13088         * editfns.c (uncache_home_directory):
13089         * editfns.c (get_home_directory):
13090         * editfns.c (Fuser_home_directory):
13091         * editfns.c (Fformat_time_string):
13092         * editfns.c (Fcurrent_time_string):
13093         * gui-x.c (button_item_to_widget_value):
13094         * database.c (Fopen_database):
13095         * event-Xt.c (x_to_emacs_keysym):
13096         * event-Xt.c (x_event_to_emacs_event):
13097         * event-Xt.c (describe_event_window):
13098         * event-msw.c (mswindows_wnd_proc):
13099         * glyphs-eimage.c (jpeg_instantiate):
13100         * glyphs-eimage.c (gif_instantiate):
13101         * glyphs-eimage.c (png_instantiate):
13102         * glyphs-eimage.c (tiff_instantiate):
13103         * glyphs-x.c (xbm_instantiate_1):
13104         * glyphs-x.c (x_xbm_instantiate):
13105         * glyphs-x.c (x_xface_instantiate):
13106         * glyphs-x.c (autodetect_instantiate):
13107         * glyphs-x.c (cursor_font_instantiate):
13108         * glyphs-x.c (x_widget_instantiate):
13109         * glyphs-x.c (x_widget_set_property):
13110         * glyphs-x.c (x_widget_property):
13111         * glyphs-x.c (BUILD_GLYPH_INST):
13112         * print.c (write_string_to_stdio_stream):
13113         * print.c (output_string):
13114         * print.c (Falternate_debugging_output):
13115         * print.c (Fexternal_debugging_output):
13116         * glyphs-msw.c (extract_xpm_color_names):
13117         * glyphs-msw.c (mswindows_xpm_instantiate):
13118         * glyphs-msw.c (bmp_instantiate):
13119         * glyphs-msw.c (resource_name_to_resource):
13120         * glyphs-msw.c (mswindows_resource_instantiate):
13121         * glyphs-msw.c (xbm_instantiate_1):
13122         * glyphs-msw.c (mswindows_xbm_instantiate):
13123         * glyphs-msw.c (mswindows_xface_instantiate):
13124         * glyphs-msw.c (mswindows_widget_instantiate):
13125         * glyphs-msw.c (add_tree_item):
13126         * glyphs-msw.c (add_tab_item):
13127         * glyphs-msw.c (mswindows_combo_box_instantiate):
13128         * glyphs-msw.c (mswindows_widget_property):
13129         * glyphs-msw.c (mswindows_combo_box_property):
13130         * glyphs-msw.c (mswindows_widget_set_property):
13131         * console.c (stuff_buffered_input):
13132         * objects-msw.c (mswindows_initialize_color_instance):
13133         * objects-msw.c (mswindows_valid_color_name_p):
13134         * objects-msw.c (mswindows_list_fonts):
13135         * objects-msw.c (mswindows_font_instance_truename):
13136         * bytecode.c (optimize_compiled_function):
13137         * select-x.c (symbol_to_x_atom):
13138         * select-x.c (x_atom_to_symbol):
13139         * select-x.c (hack_motif_clipboard_selection):
13140         * select-x.c (selection_data_to_lisp_data):
13141         * select-x.c (lisp_data_to_selection_data):
13142         * select-x.c (Fx_get_cutbuffer_internal):
13143         * select-x.c (Fx_store_cutbuffer_internal):
13144         * buffer.h (TO_EXTERNAL_FORMAT): New function.
13145         * buffer.h (TO_INTERNAL_FORMAT): New function.
13146         * emacs.c (make_arg_list_1):
13147         * emacs.c (make_argc_argv):
13148         * emacs.c (main_1):
13149         * emacs.c (Fdump_emacs):
13150         * emacs.c (split_string_by_emchar_1):
13151         * file-coding.h:
13152         * lisp.h:
13153         * lstream.h:
13154         * symsinit.h:
13155         * device-x.c (x_init_device):
13156         * device-x.c (Fx_valid_keysym_name_p):
13157         * device-x.c (Fx_get_font_path):
13158         * device-x.c (Fx_set_font_path):
13159         * glyphs.c (bitmap_to_lisp_data):
13160         * glyphs.c (pixmap_to_lisp_data):
13161         * alloc.c (make_ext_string): Use coding system arguments.  Update
13162         all callers.
13163         * alloc.c (build_string):
13164         * callproc.c (child_setup):
13165         * callproc.c (init_callproc):
13166         * fileio.c (lisp_strerror):
13167         * fileio.c (directory_file_name):
13168         * fileio.c (Fexpand_file_name):
13169         * fileio.c (Ffile_truename):
13170         * fileio.c (Fsysnetunam):
13171         * fileio.c (Fdo_auto_save):
13172         * sysdep.c (sys_readdir):
13173         * tests.c: New file.  Allow adding C tests.
13174         Replace GET_* macros with a more comprehensible and flexible
13175         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
13176         Modify all calls.
13177         Any coding system can be used to do format conversion.
13178         Eliminate enum external_data_format.
13179         Eliminate convert_to_external_format.
13180         Eliminate convert_to_internal_format.
13181         Make sure file-name, keyboard, terminal, and ctext are always
13182         defined as coding systems or aliases.  Make
13183         file-name-coding-system, terminal-coding-system, and
13184         keyboard-coding-system magical variables that are equivalent to
13185         defining the corresponding coding system aliases.
13186
13187         * file-coding.c (Fcoding_system_canonical_name_p): New function.
13188         * file-coding.c (Fcoding_system_alias_p): New function.
13189         * file-coding.c (Fcoding_system_aliasee): New function.
13190         * file-coding.c (append_suffix_to_symbol): New function.
13191         * file-coding.c (dangling_coding_system_alias_p): New function.
13192         * file-coding.c (Ffind_coding_system):
13193         * file-coding.c (Fcopy_coding_system):
13194         * file-coding.c (encode_coding_no_conversion):
13195         * file-coding.c (syms_of_file_coding):
13196         * file-coding.c (vars_of_file_coding):
13197         Rewrite coding system alias code.
13198         Allow nested aliases, like symbolic links.
13199         Allow redefinition of coding system aliases.
13200         Prevent existence of dangling coding system aliases.
13201
13202         * dired.c (Fuser_name_completion_1):
13203         * dired.c (Fuser_name_all_completions):
13204         A crash would happen if user did QUIT in the middle of building
13205         user_name_cache.  Remove redundant code in mainline and unwind_protect.
13206
13207         * lisp.h:
13208         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
13209
13210         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
13211         an unsigned char *.  Update all callers.
13212
13213 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13214
13215         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
13216
13217 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13218
13219         * elhash.c (hentry_description): Use more portable definition.
13220         (resize_hash_table): Initialize new hentries using
13221         xnew_array_and_zero, thereby simplifying the code.
13222
13223         * mule-charset.c (make_charset): Make sure entire object is
13224         initialized, to avoid Purify warnings.
13225
13226         * alloc.c (resize_string): Fix unlikely crash with big strings.
13227
13228 2000-01-24  Martin Buchholz  <martin@xemacs.org>
13229
13230         * realpath.c (xrealpath):
13231         Don't call getwd().
13232
13233 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13234
13235         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
13236
13237 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
13238
13239         * unexelfsgi.c (unexec): Change the way we decide which segment
13240         should be extended.
13241
13242         Assumption that .bss section should be outside the PT_LOADable
13243         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
13244         it's present) is inside the 'data' segment. This would fail the
13245         test which was used to find a segment to grow and cover new
13246         heap. Instead of this assumption, I created another one - on IRIX
13247         the segment to grow should start below .bss and it's address
13248         should extent above the end of .bss. Once this segment is
13249         identified, it's grown to accommodate the new heap and new
13250         zero-length .bss section is added at the end of .data2.
13251
13252 2000-01-25  Martin Buchholz  <martin@xemacs.org>
13253
13254         * eval.c (Feval): Wrong number of arguments should use original
13255         function, not the indirect_function version of it.
13256
13257 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13258
13259         * glyphs-x.c (x_button_instantiate): Don't add image if
13260         it is not a pixmap.
13261         (x_locate_pixmap_file): Call Fexpand_file_name when file name
13262         is relative.
13263
13264 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
13265
13266         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
13267         declaration.
13268         (DEFVAR_INT_MAGIC): Ditto.
13269         (DEFVAR_BOOL_MAGIC): Ditto.
13270         * glyphs.h: Reindent backslash.
13271
13272 2000-01-24  Martin Buchholz  <martin@xemacs.org>
13273
13274         * glyphs-widget.c (layout_query_geometry):
13275         (layout_layout): Use correct types for gheight, gwidth.
13276
13277 2000-01-24  Martin Buchholz  <martin@xemacs.org>
13278
13279         * EmacsManager.c (QueryGeometry): Purified.
13280
13281 2000-01-23  Martin Buchholz  <martin@xemacs.org>
13282
13283         * alloc.c (make_float): Make sure entire object is initialized, to
13284         avoid Purify warnings.
13285         (pdump_register_sub): Remove useless assignment.
13286         (pdump): Use xmalloc, not malloc.
13287         (pdump_load): Use xmalloc, not malloc.
13288
13289 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13290
13291         * callproc.c:
13292         * dired-msw.c:
13293         * fileio.c:
13294         * process-nt.c:
13295         * redisplay-msw.c:
13296         * sysdep.c: Removed redundant #include <windows.h>
13297
13298 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13299
13300         * frame.c (delete_frame_internal): Do not delete device when its
13301         implementation so declares.
13302         (delete_frame_internal): Set device selected frame to nil when
13303         last frame goes away.
13304
13305         * device-msw.c (msprinter_device_system_metrics): Implemented.
13306         (mswindows_device_system_metrics): Added 'device-dpi property.
13307
13308         * device.c: (Fdevice_printer_p): Added.
13309         Added 'offset-workspace device metric.
13310
13311         * console.h (device_metrics): Declared DM_offset_workspace.
13312
13313 2000-01-23  Martin Buchholz  <martin@xemacs.org>
13314
13315         * fileio.c (Ffile_truename): Remove pointless and confusing
13316         initialization of elen.
13317
13318         * glyphs-widget.c: Compiler warning fixes.
13319
13320 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
13321
13322         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
13323         instead of a Lisp_Object as argument to make it consistent with
13324         the other LIVE_P macros.
13325         (CHECK_LIVE_PROCESS): New macro.
13326
13327         * process.c: Declare Qprocess_live_p.
13328         (Fprocess_live_p): New function.
13329         (create_process): Use PROCESS_LIVE_P.
13330         (read_process_output): Ditto.
13331         (set_process_filter): Ditto.
13332         (Fdelete_process): Ditto.
13333         (kill_buffer_processes): Ditto
13334         (process_send_signal): Use CHECK_LIVE_PROCESS.
13335         (Fprocess_input_coding_system): Check whether process is still
13336         alive (fix PR#1061).
13337         (Fprocess_output_coding_system): Ditto.
13338         (Fprocess_coding_system): Ditto.
13339         (Fset_process_input_coding_system): Ditto.
13340         (Fset_process_output_coding_system): Ditto.
13341
13342 2000-01-23  Andy Piper  <andy@xemacs.org>
13343
13344         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
13345         layout and widget.
13346
13347         * glyphs.c (mark_image_instance): take into account changed
13348         image_instance format.
13349         (image_instance_equal): ditto.
13350         (image_instance_hash): ditto.
13351
13352         * glyphs-widget.c (widget_instantiate): Incorporate layout
13353         instantiation here. Delay layout of the layout until later.
13354         (layout_instantiate): deleted.
13355         (layout_query_geometry): new function. get the geometry of a
13356         layout.
13357         (layout_layout): layout a layout dynamically.
13358         (image_instantiator_widget): New function - splitting up
13359         image_instantiator_format_create_glyphs_widget for netwinder
13360         compilation.
13361         (image_instantiator_buttons):
13362         (image_instantiator_edit_fields):
13363         (image_instantiator_combo_box):
13364         (image_instantiator_scrollbar):
13365         (image_instantiator_progress_guage):
13366         (image_instantiator_tree_view):
13367         (image_instantiator_tab_control):
13368         (image_instantiator_labels):
13369         (image_instantiator_layout): ditto.
13370         (image_instantiator_format_create_glyphs_widget): Call preceding
13371         functions.
13372
13373 2000-01-22  Martin Buchholz  <martin@xemacs.org>
13374
13375         * process.c (Fset_process_coding_system):
13376         * device-x.c (Fx_keysym_hash_table):
13377         Docstring fixes.
13378
13379         * lstream.c (Lstream_write): Return documented value, not 0.
13380
13381         * fileio.c (directory_file_name):
13382         (Fsubstitute_in_file_name):
13383         (Fsubstitute_insert_file_contents_internal):
13384         (Fwrite_region_internal):
13385         * emacs.c:
13386         * sysdep.c:
13387         * getloadavg.c:
13388         * systty.h:
13389         Remove vestigial APOLLO-conditional code.
13390
13391 2000-01-21  Martin Buchholz  <martin@xemacs.org>
13392
13393         * getpagesize.h: Add guard macros.
13394         * libsst.h: Add guard macros.
13395         * libst.h: Add guard macros.
13396         * line-number.h: Add guard macros.
13397         * ndir.h: Add guard macros.
13398         * sysfloat.h: Add guard macros.
13399         * sysfile.h: Add guard macros.
13400         * sysproc.h: Add guard macros.
13401         * syswait.h: Add guard macros.
13402         * xintrinsic.h: Add guard macros.
13403         * xintrinsicp.h: Add guard macros.
13404         * xmmanager.h: Add guard macros.
13405         * xmmanagerp.h: Add guard macros.
13406         * xmprimitive.h: Add guard macros.
13407         * xmu.h: Add guard macros.
13408         * gpmevent.h: Add copyright statement. Add guard macros.
13409         * miscplay.h: Add guard macros.
13410         * *.h: Use consistent C-standards-approved guard macro names.
13411
13412         * opaque.c (make_opaque): Switch parameter order.
13413         * opaque.h (make_opaque): Switch parameter order.
13414         Update all callers.
13415         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
13416
13417         * config.h.in (type_checking_assert): Added.
13418         (bufpos_checking_assert): Added.
13419
13420 2000-01-21  Martin Buchholz  <martin@xemacs.org>
13421
13422         * alloc.c: Harmless pdump changes.
13423         - Use countof().
13424         - spell alignment correctly.
13425         * sysdep.c: Use countof()
13426
13427 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13428
13429         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
13430         initially_selected_for_input() console method, default to 0.
13431         (semi_canonicalize_console_connection): Try to delegate to
13432         canonicalize_console_connection if no such console method.
13433         (canonicalize_console_connection): Vice versa.
13434         (print_console): Do not print nil connection.
13435
13436         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
13437         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
13438         (XDEVIMPF_FRAMELESS_OK): Added.
13439         (CONSOLE_INHERITS_METHOD): Added.
13440
13441         * console-msw.c (mswindows_canonicalize_console_connection):
13442         Added.
13443         (mswindows_canonicalize_device_connection): Added.
13444
13445         * console-msw.h (struct msprinter_device): Added this struct and
13446         accessor macros.
13447         (mswindows_device): Made fontlist a lisp object.
13448
13449         * device.c (semi_canonicalize_device_connection):  Try to delegate
13450         to canonicalize_device_connection if no such console method.
13451         (canonicalize_device_connection): Vice versa.
13452         (print_device): Do not print nil connection.
13453
13454         * device-msw.c (mswindows_init_device): Call InitCommonControls
13455         when have widgets.
13456         (mswindows_delete_device): Removed fontlist deallocation.
13457         (mswindows_mark_device): Added.
13458
13459         * events.c (event_equal): Added abort() at unreached code.
13460         (event_hash): Ditto.
13461
13462         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
13463         fallback tags of Windows devices.
13464
13465         * general.c (syms_of_general): Initialized Qmsprinter.
13466
13467         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
13468         of fallback tags of Windows devices.
13469
13470         * lisp.h: Declared Qmsprinter.
13471
13472         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
13473         of strings.
13474         (mswindows_list_fonts): Ditto.
13475         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
13476         that it can be used by both mswindows and msprinter devices.
13477         (initialize_font_instance): Added.
13478         (mswindows_initialize_font_instance): Use it.
13479         (msprinter_initialize_font_instance): Added.
13480
13481         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
13482         and implementation flags check.
13483         (redisplay_without_hooks): Changed the call to the above.
13484         (Fredraw_device): Ditto.
13485         (Fredisplay_device): Ditto.
13486
13487         * redisplay-msw.c (get_frame_dc): Implemented.
13488         (get_frame_compdc): Implemented.
13489         (many functions): Use the two functions above to get device
13490         contexts, ether for a window or a printer.
13491
13492 2000-01-21  Olivier Galibert  <galibert@pobox.com>
13493
13494         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
13495         initialization here.
13496         (init_symbols_once_early): Call it.
13497         * emacs.c (main_1): Call it.
13498         * symsinit.h: Declare it.
13499
13500 2000-01-19  Olivier Galibert  <galibert@pobox.com>
13501
13502         * alloc.c: Use a lrecord_header * in the backtrace instead of a
13503         Lisp_Object.
13504         (pdump_backtrace): Ditto.
13505         (pdump_register_object): Ditto.  Cleanup use of the pointers.
13506         (pdump_get_entry): Abort if trying to register a null pointer.
13507         (pdump_dump_data): Cleanup types when relocating.
13508         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
13509         (pdump_dump_rtables): Remove bad casts.
13510         (pdump_load): Cleanup relocation w.r.t union type.  Use a
13511         Lisp_Object instead of a EMACS_INT for the hashtable
13512         reorganization.
13513
13514 2000-01-20  Martin Buchholz  <martin@xemacs.org>
13515
13516         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
13517
13518         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
13519
13520         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
13521
13522         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
13523
13524 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13525
13526         * faces.h (FACE_STRIKETHRU_P): Added.
13527
13528         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
13529         of font variants.
13530
13531         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
13532         (mswindows_set_dc_font): New function, aware of font variants,
13533         separated from mswindows_update_dc.
13534
13535         * objects-msw.h (struct mswindows_font_instance_data): Added
13536         definition.
13537
13538         * objects-msw.c (mswindows_finalize_font_instance): Delete all
13539         cached fonts and the data structure.
13540         (mswindows_initialize_font_instance): Added creation of font data
13541         structure.
13542         (mswindows_print_font_instance): Print at least something.
13543         (mswindows_create_font_variant): Implemented.
13544         (mswindows_get_hfont): Implemented.
13545
13546 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
13547
13548         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
13549         prototyping problem with msvc.
13550
13551         * emacs.c (main_1): added syms_of_gui_mswindows() call
13552
13553         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
13554         syms_of_gui_mswindows() function
13555
13556         * symsinit.h: added the prototype for syms_of_gui_mswindows()
13557
13558 2000-01-18  Martin Buchholz <martin@xemacs.org>
13559
13560         * XEmacs 21.2.27 is released.
13561
13562 2000-01-18  Martin Buchholz  <martin@xemacs.org>
13563
13564         * glyphs-eimage.c (struct tiff_error_struct):
13565         (tiff_error_func):
13566         (tiff_warning_func):
13567         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
13568
13569         * unexmips.c:
13570         * unexhp9k3.c:
13571         * unexfreebsd.c:
13572         * unexec.c: Remove vestigial Lucid C code.
13573         * unexalpha.c:
13574         * unexaix.c:
13575         * termcap.c:
13576         * libsst.c: Ansify.
13577         Remove declarations of errno and strerror().
13578
13579         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
13580
13581         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
13582
13583 2000-01-16  Martin Buchholz  <martin@xemacs.org>
13584
13585         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
13586         Optimize.
13587
13588 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13589
13590         * md5.c:
13591         * file-coding.c:
13592         * file-coding.h:
13593         Change enum eol_type to eol_type_t.
13594
13595 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13596
13597         * gui.c (get_gui_callback): Check cons before accessing car.
13598
13599 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13600
13601         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
13602         (XSETSPECIFIER_TYPE): Ditto.
13603
13604 2000-01-17  Didier Verna  <didier@xemacs.org>
13605
13606         * redisplay.c (generate_fstring_runes): compute string size in
13607         characters, not bytes.
13608
13609 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13610
13611         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13612
13613 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
13614
13615         * print.c (print_error_message): Call print_prepare().
13616
13617 2000-01-14  Martin Buchholz  <martin@xemacs.org>
13618
13619         * .dbxrc: Renamed from dbxrc.
13620
13621         * events.c (event_to_character):
13622         Use `assert (foo)' instead of `if (!foo) abort()'
13623
13624         * .gdbinit (xtype): Add documentation.
13625         * .gdbinit (check-temacs): New function.
13626         * .gdbinit (check-xemacs): New function.
13627         * dbxrc (check-xemacs): New function.
13628         * dbxrc (check-xemacs): New function.
13629
13630 2000-01-14  Andy Piper  <andy@xemacs.org>
13631
13632         * glyphs-widget.c (widget_query_geometry): Make sure that we
13633         calculate default dimensions correctly.
13634
13635 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13636
13637         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13638
13639         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13640         pdump_wire'd variable.
13641
13642         * emacs.c: (main_1): Conditionalized calls to
13643         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13644
13645 2000-01-13  Martin Buchholz  <martin@xemacs.org>
13646
13647         * window.c (Fset_window_configuration):
13648         * sysdep.c (_start):
13649         * input-method-motif.c (res):
13650         * event-Xt.c (Xt_process_to_emacs_event):
13651         Simple compiler warning fixes.
13652
13653         * bytecode.c (funcall_compiled_function): Use the original
13654         function symbol on the backtrace list in preference to the
13655         compiled_function object in error messages.
13656
13657 2000-01-13  Andy Piper  <andy@xemacs.org>
13658
13659         * glyphs-x.c (update_widget_face): Make sure we update the widget
13660         background as well as foreground.
13661
13662 2000-01-13  Andy Piper  <andy@xemacs.org>
13663
13664         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13665         fields to subwindow.
13666         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13667         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13668         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13669         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13670
13671         * glyphs-widget.c (check_valid_tab_orientation): new function.
13672         (initialize_widget_image_instance): zero orientation and
13673         justification.
13674         (widget_instantiate): pick up orientation.
13675         (tab_control_query_geometry): return appropriate values for
13676         vertical tabs.
13677
13678         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13679         appropriate creation flags for left, right and bottom tabs.
13680
13681         * s/cygwin32.h: add tab definitions.
13682
13683 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13684
13685         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13686         frame upon hiding a subwindow.
13687         (mswindows_button_instantiate): Changed the push button style to
13688         BS_PUSHBUTTON.
13689         (mswindows_button_instantiate): Removed button BS_NOTIFY
13690         style.
13691         (mswindows_button_instantiate): Removed redundant check for
13692         a disabled gui item.
13693         (mswindows_button_instantiate): Made use of WS_TABSTOP
13694         consistent: "operable" controls (edit, button, tree, scroll) have
13695         this style, "display-only" ones (static, progress gauge) do
13696         not. This style is currently ignored by XEmacs though. Also,
13697         removed the WS_EX_CONTROLPARENT style - it is not for children,
13698         it is for their parents!
13699         (mswindows_edit_field_instantiate): Ditto.
13700         (mswindows_progress_gauge_instantiate): Ditto.
13701         (mswindows_tree_view_instantiate): Ditto.
13702         (mswindows_tab_control_instantiate): Ditto.
13703         (mswindows_scrollbar_instantiate): Ditto.
13704         (mswindows_combo_box_instantiate): Ditto.
13705         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13706         style to the "clip" window.
13707         (mswindows_button_instantiate): Removed compilation warning by
13708         equally typing terms of the ?: operator.
13709
13710 2000-01-12  Didier Verna  <didier@xemacs.org>
13711
13712         * redisplay.c (generate_fstring_runes): new parameter holding the
13713         last modeline-format extent.
13714         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13715         extent, fill the glyph block with it.
13716         (generate_fstring_runes): handle these parameters.
13717         (generate_formatted_string_db): ditto.
13718
13719         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13720         glyphs'extents in the modeline.
13721
13722 1999-01-11  Mike Woolley  <mike@bulsara.com>
13723
13724         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13725         256Mb, as a workaround for the non-starting problem many people
13726         have experienced.
13727
13728 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13729
13730         * console-tty.c (Fset_console_tty_output_coding_system):
13731         Force redrawing tty frame.
13732
13733 2000-01-10  Didier Verna  <didier@xemacs.org>
13734
13735         * redisplay.c (generate_fstring_runes): fix size computation bug.
13736
13737 2000-01-09  William M. Perry <wmperry@aventail.com>
13738
13739         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13740
13741 2000-01-09  Andy Piper  <andy@xemacs.org>
13742
13743         * glyphs-msw.c: index -> i to avoid shadows.
13744         (xbm_create_bitmap_from_data): make static.
13745         (check_valid_string_or_int): deleted.
13746         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13747
13748         * glyphs-x.c (x_update_subwindow): remove unused args.
13749
13750         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13751         back pointer - this is done in allocate_image_instance.
13752         (query_string_font): return Qnil to make the compiler happy.
13753         (unmap_subwindow): set to ~0 to make the compiler happy.
13754         (glyph_query_geometry): comment out until used.
13755         (glyph_layout): ditto.
13756
13757 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13758
13759         * insdel.c (signal_after_change): Remove extraneous unbind_to().