This commit was manufactured by cvs2svn to create branch 'utf-2000'.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * emacs.c (Vutf_2000_lisp_directory): New variable.
4         (Vconfigure_utf_2000_lisp_directory): Likewise.
5         (complex_vars_of_emacs): Add new variable
6         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
7
8 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
9
10         * char-ucs.h (DECODE_CHAR): Delete special code for
11         `chinese-big5-1' and `chinese-big5-2'.
12
13         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
14         (Qbig5_2): Likewise.
15         (decode_defined_char): Support CONVERSION_BIG5_1 and
16         CONVERSION_BIG5_2.
17         (decode_builtin_char): Likewise.
18         (charset_code_point): Likewise.
19         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
20         'conversion in UTF-2000.
21         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
22         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
23         `chinese-big5-2' as children of `chinese-big5'.
24
25         * char-ucs.h (CONVERSION_BIG5_1): New macro.
26         (CONVERSION_BIG5_2): New macro.
27
28 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
29
30         * text-coding.c (char_encode_big5): Support entity-reference.
31
32 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * text-coding.c (char_encode_as_entity_reference): New function.
35         (char_encode_utf8): Use `char_encode_as_entity_reference'.
36
37 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
38
39         * text-coding.c (decode_coding_big5): Support entity-reference
40         decoding feature.
41
42 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * text-coding.c (allocate_coding_system): Initialize initial
45         charsets for CODESYS_UTF8.
46         (Fmake_coding_system): Accept charset-g0, charset-g1 and
47         charset-g2 for CODESYS_UTF8.
48         (decode_coding_utf8): Use charset-g0.
49         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
50         to force variants to map to UCS.
51
52 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
53
54         * text-coding.c (Qutf_8_mcs): New variable.
55         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
56         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
57         instead of `utf-8' in UTF-2000.
58
59 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
60
61         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
62         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
63         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
64         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
65         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
66         CONVERSION_96x96x96x96 are introduced.
67         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
68         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
69         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
70
71         * char-ucs.h (CONVERSION_94): New macro.
72         (CONVERSION_96): New macro.
73         (CONVERSION_94x94): New macro.
74         (CONVERSION_96x96): New macro.
75         (CONVERSION_94x94x94): New macro.
76         (CONVERSION_96x96x96): New macro.
77         (CONVERSION_94x94x94x60): New macro.
78         (CONVERSION_94x94x94x94): New macro.
79         (CONVERSION_96x96x96x96): New macro.
80
81 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
82
83         * chartab.c (Vcharacter_variant_table): Deleted.
84         (Fchar_variants): Use character-attribute `->ucs-variants' instead
85         of `Vcharacter_variant_table'.
86         (Fput_char_attribute): Likewise.
87         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
88         (complex_vars_of_chartab): Likewise.
89
90 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
91
92         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
93
94         * fns.c (Qideographic_structure): New variable.
95         (Qkeyword_char): New variable.
96         (ids_format_unit): New function.
97         (Fideographic_structure_to_ids): New function.
98         (syms_of_fns): Add new symbols `ideographic-structure' and
99         `:char'; add new builtin function `ideographic-structure-to-ids'.
100
101         * data.c (Fchar_ref_p): New function.
102         (syms_of_data): Add new builtin function `char-ref-p'.
103
104         * chartab.h: Add an EXFUN for `Ffind_char'.
105
106 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * text-coding.c (Vcharacter_composition_table): Deleted.
109         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
110         in every UTF-2000.
111
112         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
113         UTF-2000.
114         (Vcharacter_composition_table): Deleted.
115         (Fget_composite_char): Use the implementation for external-DB
116         support in every UTF-2000.
117         (Fput_char_attribute): Likewise.
118         (char_attribute_system_db_file): Don't define if external-DB
119         feature is not available.
120         (Fsave_char_attribute_table): Likewise.
121         (Fmount_char_attribute_table): Likewise.
122         (Fclose_char_attribute_table): Likewise.
123         (Freset_char_attribute_table): Likewise.
124         (Fload_char_attribute_table): Likewise.
125         (syms_of_chartab): Don't define `save-char-attribute-table',
126         `mount-char-attribute-table', `reset-char-attribute-table',
127         `close-char-attribute-table' and `load-char-attribute-table' if
128         external-DB feature is not available.
129         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
130
131 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
132
133         * text-coding.c (Qcomposition): Add extern if external-DB feature
134         is supported.
135         (Vcharacter_composition_table): Don't add extern if external-DB
136         feature is supported.
137         (COMPOSE_ADD_CHAR): Modify for new data-representation of
138         character composition rule if external-DB feature is supported.
139
140         * chartab.c (Vcharacter_composition_table): Don't define if
141         external-DB feature is supported.
142         (Qcomposition): New variable.
143         (Fget_composite_char): New implementation for external-DB support.
144         (Fput_char_attribute): Use `composition' property of each
145         character instead of `Vcharacter_composition_table' to store
146         character-composition rules if external-DB feature is supported.
147         (syms_of_chartab): Add new symbol `composition'.
148         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
149         external-DB feature is supported.
150
151 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
152
153         * chartab.c (Vchar_db_stingy_mode): New variable.
154         (load_char_attribute_maybe): Close database if
155         Vchar_db_stingy_mode is not NIL.
156         (Fload_char_attribute_table_map_function): Use
157         `get_char_id_table_0' instead of `get_char_id_table'.
158         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
159
160         * chartab.h (get_char_id_table_0): New inline function.
161         (get_char_id_table): Use `get_char_id_table_0'.
162
163 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
164
165         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
166         and `COMPOSE_ADD_CHAR'.
167         (decode_coding_iso2022): Use `decode_flush_er_chars'.
168
169 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
170
171         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
172         instead of `DECODE_ADD_UCS_CHAR'.
173         (COMPOSE_ADD_CHAR): Likewise.
174
175 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
176
177         * text-coding.c (decode_flush_er_chars): New inline function.
178         (decode_add_er_char): New function.
179         (decode_coding_utf8): Use `decode_flush_er_chars' and
180         `decode_add_er_char'.
181
182 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
183
184         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
185         done before `decode_output_utf8_partial_char'.
186
187         * mule-charset.c (complex_vars_of_mule_charset): Specify
188         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
189         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
190
191 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * mule-charset.c (decode_defined_char): New function; search
194         mother.
195         (decode_builtin_char): Don't search mother if
196         XCHARSET_MAX_CODE(charset) == 0.
197         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
198         == 0 even if code >= XCHARSET_MAX_CODE(charset).
199         (Fdecode_char): Use `decode_defined_char' instead of
200         `DECODE_DEFINED_CHAR'.
201         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
202         mother of `Vcharset_ucs_jis'.
203
204         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
205         instead of `DECODE_DEFINED_CHAR'.
206
207         * char-ucs.h (decode_defined_char): Renamed from
208         `DECODE_DEFINED_CHAR'; changed to normal function.
209         (DECODE_CHAR): Use `decode_defined_char' instead of
210         `DECODE_DEFINED_CHAR'.
211
212         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
213
214 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
217
218         * text-coding.c (Vcoded_charset_entity_reference_alist): New
219         variable.
220         (Quse_entity_reference): New variable.
221         (Qd): New variable.
222         (Qx): New variable.
223         (QX): New variable.
224         (coding_system_description): Add description for
225         `ccs_priority_list'.
226         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
227         (allocate_coding_system): Initialize `ccs_priority_list' in
228         UTF-2000.
229         (Fmake_coding_system): Add description about
230         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
231         (codesys).
232         (Fcoding_system_property): Accept `disable-composition' and
233         `use-entity-reference' in UTF-2000.
234         (struct decoding_stream): Add new member `er_counter' and `er_buf'
235         in UTF-2000.
236         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
237         (decode_coding_utf8): Decode entity-reference if
238         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
239         (char_encode_utf8): Encode non-Unicode characters as
240         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
241         (str->codesys).
242         (syms_of_file_coding): Add new symbols `use-entity-reference',
243         `d', `x', `X'.
244         (vars_of_file_coding): Add new variable
245         `coded-charset-entity-reference-alist'.
246         (complex_vars_of_file_coding): Declare `disable-composition' and
247         `use-entity-reference' to be coding-system-properties in UTF-2000.
248
249         * file-coding.h (struct Lisp_Coding_System): Add new member
250         `use_entity_reference' and `ccs_priority_list'.
251         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
252         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
253         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
254
255 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
256
257         * chartab.c (save_uint8_byte_table): Don't clear the table.
258         (save_uint16_byte_table): Likewise.
259         (save_byte_table): Likewise.
260         (Fmount_char_attribute_table): New function.
261         (syms_of_chartab): Add new builtin function
262         `mount-char-attribute-table'.
263
264 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * mule-charset.c (Fsave_charset_mapping_table): Open database as
267         "w+" mode.
268         (load_char_decoding_entry_maybe): Open database as read-only mode.
269
270         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
271         open database as "w+" mode.
272         (load_char_attribute_maybe): Open database as read-only mode.
273         (Fload_char_attribute_table): Likewise.
274
275 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
276
277         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
278         (char_table_description): Delete member `db_file'.
279         (Fmake_char_table): Don't refer `ct->db_file'.
280         (Fcopy_char_table): Likewise.
281         (Fsave_char_attribute_table): Likewise.
282         (Fclose_char_attribute_table): Likewise.
283         (Freset_char_attribute_table): Likewise.
284         (load_char_attribute_maybe): Likewise.
285         (Fload_char_attribute_table): Likewise.
286
287         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
288
289 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
292         (Fsave_char_attribute_table): Don't check `ct->db_file' if
293         `ct->db' is living.
294         (load_char_attribute_maybe): Likewise.
295         (Fload_char_attribute_table): Likewise.
296
297 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
298
299         * chartab.c (Fclose_char_attribute_table): Set Qnil on
300         `ct->db_file' unconditionally.
301
302 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
303
304         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
305         UTF-2000.
306         (char_table_description): Add description for `db_file' and `db'
307         in UTF-2000.
308         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
309         UTF-2000.
310         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
311         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
312         (Fclose_char_attribute_table): New function.
313         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
314         (load_char_attribute_maybe): Change interface; use `cit->db_file'
315         and `cit->db'.
316         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
317         (syms_of_chartab): Add new builtin function
318         `Fclose_char_attribute_table'.
319
320 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
321
322         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
323         `db' in UTF-2000.
324         (load_char_attribute_maybe): Change interface.
325         (get_char_id_table): Modify for `load_char_attribute_maybe'.
326
327 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
328
329         * database.h: Add an EXFUN for `Fdatabase_live_p'.
330
331 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
334         instead of `DECODE_CHAR' for mother; don't use special code for
335         chinese-big5 to use code space of chinese-big5-1 and
336         chinese-big5-2.
337         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
338         `MAX_CHAR_BIG5_CDP' for chinese-big5.
339
340         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
341         (MAX_CHAR_BIG5_CDP): Revival.
342
343 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
346         the XLFD registry-encoding name of `chinese-big5'.
347
348 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
349
350         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
351         (Qchinese_big5_cdp): Deleted.
352         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
353         (complex_vars_of_mule_charset): Delete coded-charset
354         `chinese-big5-cdp'.
355
356         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
357         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
358         `CHARSET_ID_OFFSET - n' for private CCS.
359         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
360         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
361         of `MIN_LEADING_BYTE'.
362         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
363         `(CHARSET_ID_OFFSET - 97)'.
364         (MIN_CHAR_BIG5_CDP): Deleted.
365         (MAX_CHAR_BIG5_CDP): Deleted.
366
367 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
370
371 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
374         (vars_of_mule): Add new variable `utf-2000-version' [moved from
375         chartab.c].
376
377         * chartab.c (Vutf_2000_version): Moved to mule.c.
378         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
379
380 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
381
382         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
383         when HAVE_CHISE_CLIENT is not defined.
384
385         * mule.c (vars_of_mule): Provide feature `chise' when
386         HAVE_CHISE_CLIENT is defined.
387
388 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * config.h.in (UTF2000): Add comment.
391         (HAVE_CHISE_CLIENT): New macro.
392
393 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
394
395         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
396         CONSP.
397         (Fput_char_attribute): Likewise.
398         (char_attribute_system_db_file): Encode file-name of attribute.
399         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
400         the initial value.
401
402 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
403
404         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
405         (Fsave_charset_mapping_table): Use
406         `char_attribute_system_db_file'.
407         (load_char_decoding_entry_maybe): Likewise.
408
409         * chartab.h (Qsystem_char_id): New external variable.
410         (char_attribute_system_db_file): New prototype.
411
412         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
413         (char_attribute_system_db_file): New function.
414         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
415         (Freset_char_attribute_table): Likewise.
416         (load_char_attribute_maybe): Likewise.
417         (Fload_char_attribute_table): Likewise.
418         (syms_of_chartab): Add new symbol `system-char-id'.
419
420 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
423         `XCHARSET_GRAPHIC(ccs)'.
424
425 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
426
427         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
428
429 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
430
431         * chartab.c (Q_ucs_variants): New variable.
432         (syms_of_chartab): Add new symbol `->ucs-variants'.
433         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
434         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
435         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
436
437         * mule-charset.c (load_char_decoding_entry_maybe): New function.
438
439         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
440         `HAVE_DATABASE' is defined.
441         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
442         `HAVE_DATABASE' is defined.
443
444 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
445
446         * chartab.c (Fsave_char_attribute_table): Don't clear internal
447         attribute-table.
448         (Freset_char_attribute_table): New function.
449         (syms_of_chartab): Add new builtin function
450         `reset-char-attribute-table'.
451
452 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * chartab.c (load_char_attribute_maybe): Don't make directories.
455
456 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
457
458         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
459
460         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
461         for decoding-table.
462
463 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
464
465         * mule-charset.c (Fsave_charset_mapping_table): Use
466         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
467
468         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
469         instead of `XCHARSET_CHARS'.
470
471 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
472
473         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
474         (XCHARSET_BYTE_SIZE): Likewise.
475
476         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
477         mule-charset.c].
478         (XCHARSET_BYTE_SIZE): Likewise.
479
480 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
481
482         * chartab.c (Fput_char_attribute): Use exec-directory instead of
483         data-directory to store database.
484         (Fsave_char_attribute_table): Likewise.
485         (load_char_attribute_maybe): Likewise.
486         (Fload_char_attribute_table): Likewise.
487
488 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
489
490         * mule-charset.c (Fsave_charset_mapping_table): New function.
491         (syms_of_mule_charset): Add new builtin function
492         `save-charset-mapping-table'.
493
494 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * char-ucs.h (decoding_table_check_elements): Delete prototype.
497         (get_ccs_octet_table): New inline function.
498         (put_ccs_octet_table): Likewise.
499         (decoding_table_put_char): Use `get_ccs_octet_table' and
500         `put_ccs_octet_table'.
501         (decoding_table_remove_char): Use `decoding_table_put_char'.
502         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
503
504         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
505         into encoding_table.
506         (make_charset): Use Qunbound instead Qnil as initial value of
507         decoding_table.
508
509 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
510
511         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
512         element is Qunloaded.
513         (map_over_uint16_byte_table): Likewise.
514         (map_over_byte_table): Likewise.
515         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
516         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
517         database support, load encoding-table of the specified
518         coded-charset if it is not loaded yet.
519         (save_uint8_byte_table): New function of UTF-2000 with external
520         database support.
521         (save_uint16_byte_table): Likewise.
522         (save_byte_table): Likewise.
523         (Fput_char_attribute): Don't store value into external database
524         even if the external database feature is supported in UTF-2000;
525         set `attribute' as name of char-table if the external database
526         feature is supported.
527         (Fsave_char_attribute_table): New function in UTF-2000.
528         (syms_of_chartab): Add new builtin function
529         `save-char-attribute-table' in UTF-2000.
530
531 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
532
533         * chartab.c (char_attribute_table_to_put): New variable in
534         UTF-2000.
535         (Qput_char_table_map_function): Likewise.
536         (value_to_put): Likewise.
537         (Fput_char_table_map_function): New function in UTF-2000.
538         (put_char_table): Use `Fmap_char_attribute' for
539         CHARTAB_RANGE_CHARSET in UTF-2000.
540         (Fput_char_attribute): Store symbol instead of string in
541         `XCHAR_TABLE_NAME (table)'.
542         (load_char_attribute_maybe): Likewise.
543         (syms_of_chartab): Add new symbol/function
544         `put-char-table-map-function'.
545
546 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
547
548         * database.h: Add new EXFUN for `Fmap_database'.
549
550         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
551         (syms_of_database): Likewise.
552
553         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
554         UTF-2000.
555         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
556         (XCHAR_TABLE_UNLOADED): Likewise.
557
558         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
559         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
560         HAVE_DATABASE is defined.
561         (char_attribute_table_to_load): New variable of UTF-2000 with
562         external database support.
563         (Qload_char_attribute_table_map_function): Likewise.
564         (Fload_char_attribute_table_map_function): New function of
565         UTF-2000 with external database support.
566         (Fload_char_attribute_table): New function of UTF-2000.
567         (Fmap_char_attribute): Call Fload_char_attribute_table if
568         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
569         (syms_of_chartab): Add new symbol and function
570         `load-char-attribute-table-map-function' in UTF-2000 with external
571         database support; add new function `load-char-attribute-table' in
572         UTF-2000.
573
574 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
575
576         * chartab.h (load_char_attribute_maybe): New prototype for
577         UTF-2000 with DATABASE support.
578         (get_char_id_table): Use `load_char_attribute_maybe' if
579         HAVE_DATABASE is defined.
580
581         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
582         with DATABASE support.
583
584 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
585
586         * chartab.c (Fput_char_attribute): Use S-expression as key of
587         external database.
588
589         * chartab.h (get_char_id_table): Use S-expression as key of
590         external database.
591
592 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
595         if an element is not loaded, load the corresponding attributes
596         from an external database.
597         (map_over_uint16_byte_table): Likewise.
598         (map_over_byte_table): Likewise.
599         (map_char_table): Modify for `map_over_uint8_byte_table',
600         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
601         element is not loaded, load the corresponding attributes from an
602         external database.
603         (Fput_char_attribute): Change initial values to Qunloaded.
604
605         * chartab.h (get_char_id_table): If a character attribute is not
606         loaded and the attribute value is not found in an external
607         database, store Qunbound as the attribute value.
608
609 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
610
611         * chartab.c (BT_UINT8_unloaded): New macro.
612         (UINT8_VALUE_P): Accept Qunloaded.
613         (UINT8_ENCODE): Likewise.
614         (UINT8_DECODE): Likewise.
615         (BT_UINT16_unloaded): New macro.
616         (UINT16_VALUE_P): Accept Qunloaded.
617         (UINT16_ENCODE): Likewise.
618         (UINT16_DECODE): Likewise.
619         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
620         BT_UINT16_unloaded.
621         (mark_char_table): Mark `ct->name' in UTF-2000.
622         (char_table_description): Add `name' in UTF-2000.
623         (Fmake_char_table): Initialize `ct->name'.
624         (Fcopy_char_table): Copy `ct->name'.
625         (Fput_char_attribute): Store value into an external database if
626         HAVE_DATABASE is defined.
627
628         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
629         UTF-2000.
630         (CHAR_TABLE_NAME): New macro in UTF-2000.
631         (XCHAR_TABLE_NAME): New macro in UTF-2000.
632         (get_char_id_table): Try to read an external database if Qunloaded
633         is stored in a table.
634
635         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
636         Qunloaded.
637
638 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
639
640         * database.h: Add EXFUN definitions for Fopen_database,
641         Fput_database, Fget_database and Fclose_database.
642
643         * data.c (Qunloaded): New variable in UTF-2000.
644
645         * lisp.h (Qunloaded): New variable in UTF-2000.
646
647 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * mule-charset.c (put_char_ccs_code_point): Modify for
650         `decoding_table_remove_char' and `decoding_table_put_char'.
651         (remove_char_ccs): Modify for `decoding_table_remove_char'.
652
653         * char-ucs.h (decoding_table_remove_char): Change arguments to
654         hide decoding_table vector.
655         (decoding_table_put_char): Likewise.
656
657 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * mule-charset.c (decoding_table_remove_char): Moved to
660         char-ucs.h.
661         (decoding_table_put_char): Likewise.
662
663         * char-ucs.h (decoding_table_check_elements): New prototype [moved
664         from mule-charset.c].
665         (decoding_table_remove_char): New inline function [moved from
666         mule-charset.c].
667         (decoding_table_put_char): Likewise.
668
669 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
670
671         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
672         extension.
673
674 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
675
676         * mule-charset.c (decode_builtin_char): Support mother charsets.
677
678 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
679
680         * mule-charset.c (Q94x94x60): New variable.
681         (charset_code_point): Support conversion `94x94x60'.
682         (Fmake_charset): Likewise.
683         (syms_of_mule_charset): Add new symbol `94x94x60'.
684
685         * char-ucs.h (CONVERSION_94x94x60): New macro.
686
687 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
688
689         * mule-charset.c (charset_code_point): Unify code about
690         `code-offset'.
691
692 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
693
694         * mule-charset.c (charset_code_point): Merge code about builtin
695         characters into code about mother charsets; don't use
696         `range_charset_code_point'.
697         (range_charset_code_point): Deleted.
698
699 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * mule-charset.c (Qcode_offset): New variable.
702         (Fmake_charset): Use `XUINT' to get value of `min-code' and
703         `max-code'; accept new property `code-offset'.
704         (syms_of_mule_charset): Add new symbol `code-offset'.
705
706 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * mule-charset.c (range_charset_code_point): Fixed.
709
710 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * mule-charset.c (decode_builtin_char): Change semantics of
713         code-offset of coded-charset.
714         (charset_code_point): Likewise.
715         (range_charset_code_point): Likewise.
716         (complex_vars_of_mule_charset): Modify for the change.
717
718 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * mule-charset.c (Fencode_char): Reverse arguments.
721
722         * mule-charset.c (charset_code_point): Fixed.
723
724 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * mule-charset.c (Vcharset_mojikyo): Deleted.
727         (Vcharset_mojikyo_2022_1): Deleted.
728         (Vcharset_mojikyo_pj_{1..21}): Deleted.
729         (Qmin_code): New variable in UTF-2000.
730         (Qmax_code): Likewise.
731         (Qmother): Likewise.
732         (Qconversion): Likewise.
733         (Q94x60): Likewise.
734         (Qmojikyo): Deleted.
735         (Qmojikyo_2022_1): Deleted.
736         (Qmojikyo_pj_{1..22}): Deleted.
737         (mark_charset): Mark `cs->mother'.
738         (charset_description): Add description for `mother'.
739         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
740         new arguments `mother' and `conversion'; use
741         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
742         (charset_code_point): Moved from char-ucs.h; support `mother'
743         charset feature.
744         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
745         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
746         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
747         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
748         allow 2 as the value of `graphic' in UTF-2000; add new properties
749         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
750         require `final' in UTF-2000; modify for `make_charset'.
751         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
752         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
753         (Fcharset_property): Support `mother', `min-code' and `max-code'.
754         (Fencode_char): New function.
755         (syms_of_mule_charset): Add new builtin function `encode-char' in
756         UTF-2000; add new symbols `min-code', `max-code', `mother',
757         `conversion' and `94x60'; delete symbols `mojikyo',
758         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
759         (complex_vars_of_mule_charset): Modify for `make_charset' change;
760         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
761         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
762
763         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
764         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
765
766         * char-ucs.h (Vcharset_mojikyo): Deleted.
767         (Vcharset_mojikyo_2022_1): Deleted.
768         (LEADING_BYTE_MOJIKYO): Deleted.
769         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
770         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
771         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
772         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
773         add new member `mother'; add new member `conversion'.
774         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
775         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
776         (CHARSET_MOTHER): New macro.
777         (CHARSET_CONVERSION): New macro.
778         (CONVERSION_IDENTICAL): New macro.
779         (CONVERSION_94x60): New macro.
780         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
781         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
782         (XCHARSET_MOTHER): New macro.
783         (XCHARSET_CONVERSION): New macro.
784         (MIN_CHAR_MOJIKYO): Deleted.
785         (MAX_CHAR_MOJIKYO): Deleted.
786         (DECODE_MOJIKYO_2022): Deleted.
787         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
788         (charset_code_point): Changed to non-inline function.
789         (encode_char_1): Use `charset_code_point'.
790         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
791
792 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
793
794         * lread.c (read_compiled_function): Fix prototype.
795         (read_vector): Likewise.
796
797 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
798
799         * lrecord.h (struct lrecord_header): Delete `older'.
800         (set_lheader_implementation): Delete code for `older'.
801         (set_lheader_older_implementation): Deleted.
802         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
803         (OLDER_RECORD_P): Deleted.
804         (OLDER_RECORD_HEADER_P): Deleted.
805         (alloc_older_lcrecord): Deleted.
806         (alloc_older_lcrecord_type): Deleted.
807
808         * alloc.c (all_older_lcrecords): Deleted.
809         (alloc_older_lcrecord): Deleted.
810         (disksave_object_finalization_1): Delete code for older objects.
811         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
812         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
813
814 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * mule-charset.c (decoding_table_put_char): Use `make_vector'
817         instead of `make_older_vector'.
818         (put_char_ccs_code_point): Likewise.
819         (mark_charset): Mark `cs->decoding_table'.
820         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
821
822         * lisp.h (make_older_vector): Deleted.
823         (make_vector_newer): Deleted.
824
825         * config.h.in (HAVE_GGC): Deleted.
826
827         * alloc.c (make_older_vector): Deleted.
828         (make_vector_newer_1): Deleted.
829         (make_vector_newer): Deleted.
830
831 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
832
833         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
834         (Qideograph_daikanwa_2): New variable.
835         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
836         (complex_vars_of_mule_charset): Add new coded-charset
837         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
838         `LEADING_BYTE_DAIKANWA'.
839
840         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
841         (LEADING_BYTE_DAIKANWA_1): New macro.
842         (LEADING_BYTE_DAIKANWA_2): New macro.
843         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
844
845 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * mule-charset.c (complex_vars_of_mule_charset): Change
848         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
849         the second revised version.
850
851 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * mule-charset.c (Vcharset_ucs_smp): New variable.
854         (Vcharset_ucs_sip): New variable.
855         (Qucs_smp): New variable.
856         (Qucs_sip): New variable.
857         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
858         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
859         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
860         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
861         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
862         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
863
864         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
865         (LEADING_BYTE_UCS_SIP): New macro.
866         (MIN_CHAR_SMP): New macro.
867         (MAX_CHAR_SMP): New macro.
868         (MIN_CHAR_SIP): New macro.
869         (MAX_CHAR_SIP): New macro.
870
871 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
872
873         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
874         utf-2000.
875
876 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
877
878         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
879         value; don't store value into `encoding_table' of `Lisp_Charset'.
880         (mark_charset): `encoding_table' was deleted.
881         (charset_description): Likewise.
882         (make_charset): Likewise.
883         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
884         `put_char_ccs_code_point'.
885
886         * chartab.h (Fput_char_attribute): New EXFUN.
887
888         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
889         is unified with normal symbol space.
890         (Fget_char_attribute): Likewise.
891         (Fput_char_attribute): Likewise; behavior of
892         `put_char_ccs_code_point' is changed.
893
894         * char-ucs.h: Include "elhash.h".
895         (Vchar_attribute_hash_table): New external variable.
896         (struct Lisp_Charset): Delete `encoding_table'.
897         (CHARSET_ENCODING_TABLE): New implementation; refer
898         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
899         `Lisp_Charset'.
900
901 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
904         (cs) == 0.
905
906 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * text-coding.c (char_encode_big5): Prefer charset-g1 than
909         `chinese-big5'.
910
911 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
912
913         * chartab.c (uint8_byte_table_description): New constant.
914         (uint8-byte-table): Use `uint8_byte_table_description'.
915         (uint16_byte_table_description): New constant.
916         (uint16-byte-table): Use `uint16_byte_table_description'.
917
918 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
921         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
922
923 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * mule-charset.c (Vcharset_ucs_ks): New variable.
926         (Qucs_ks): New variable.
927         (syms_of_mule_charset): Add new symbol `ucs-ks'.
928         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
929
930         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
931
932 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
933
934         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
935         (Fdecode_char): Likewise.
936
937         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
938         chartab.h.
939         (Fdefine_char): Modify for Fdecode_char.
940         (Ffind_char): Likewise.
941
942         * mule-charset.c (Fdecode_char): Add new optional argument
943         `defined-only'.
944         (Fdecode_builtin_char): Modify for `Fdecode_char'.
945
946 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
949         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
950         (allocate_coding_system): Initialize initial-charsets of
951         CODESYS_BIG5 in XEmacs UTF-2000.
952         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
953         CODESYS_BIG5 in XEmacs UTF-2000.
954         (decode_coding_big5): Use initial-charset-g0 and -g1 of
955         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
956
957         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
958         variables.
959         (Qideograph_hanziku_{1 .. 12}): Likewise.
960         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
961         .. 12}'.
962         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
963         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
964         `ideograph-hanziku-{1 .. 12}'.
965
966         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
967         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
968         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
969         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
970         (DECODE_DEFINED_CHAR): New inline function.
971         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
972
973 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
974
975         * mule-charset.c (Vcharset_china3_jef): Renamed from
976         `Vcharset_japanese_jef_china3'.
977         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
978         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
979         `{MIN|MAX}_CHAR_JEF_CHINA3'..
980         (syms_of_mule_charset): Rename `china3-jef' from
981         `japanese-jef-china3'.
982         (complex_vars_of_mule_charset): Likewise; rename
983         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
984
985         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
986         `LEADING_BYTE_JEF_CHINA3'.
987         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
988         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
989
990 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
991
992         * mule-charset.c (encode_builtin_char_1): Comment out special code
993         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
994
995         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
996         (MAX_CHAR_MOJIKYO_0): Comment out.
997         (MIN_CHAR_CBETA): Changed to 0x00E20000.
998         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
999         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1000         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1001
1002 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1005         (Qideograph_cbeta): New variable.
1006         (encode_builtin_char_1): Comment out special code for
1007         coded-charset `mojikyo' and `japanese-jef-china3'.
1008         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1009         (complex_vars_of_mule_charset): Add new coded-charset
1010         `ideograph-cbeta'.
1011
1012         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1013         (MIN_CHAR_CBETA): New macro.
1014         (MAX_CHAR_CBETA): New macro.
1015
1016 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017
1018         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1019         (LEADING_BYTE_JEF_CHINA3): New macro.
1020         (MIN_CHAR_JEF_CHINA3): New macro.
1021         (MAX_CHAR_JEF_CHINA3): Likewise.
1022         (DECODE_CHAR): Fixed.
1023
1024 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025
1026         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1027         (Qjapanese_jef_china3): New variable.
1028         (encode_builtin_char_1): Support `japanese-jef-china3'.
1029         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1030         (complex_vars_of_mule_charset): Add new coded-charset
1031         `japanese-jef-china3'.
1032
1033 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034
1035         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1036         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1037         94^4, 96^3, 96^4, 128^n and 256^n set.
1038         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1039         (map_char_table): Likewise.
1040
1041 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1044         UTF-2000.
1045
1046 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047
1048         * chartab.h (get_char_id_table): New inline function.
1049
1050         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1051         function.
1052
1053 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1054
1055         * chartab.h (decode_char_table_range): New prototype in XEmacs
1056         UTF-2000.
1057         (put_char_id_table): New inline function in XEmacs UTF-2000.
1058
1059         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1060         function.
1061         (decode_char_table_range): Delete static declaration in XEmacs
1062         UTF-2000.
1063
1064 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1065
1066         * chartab.c (put_char_id_table): Use `put_char_table'.
1067
1068 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1071         (map_over_uint16_byte_table): Likewise.
1072         (map_over_byte_table): Likewise.
1073         (map_char_table): Modify for `map_over_uint8_byte_table',
1074         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1075         UTF-2000.
1076
1077 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * chartab.c (struct map_char_table_for_charset_arg): New
1080         structure.
1081         (map_char_table_for_charset_fun): New function.
1082         (map_char_table): Use `map_char_table' for encoding_table of
1083         `range->charset'.
1084
1085 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086
1087         * chartab.c (map_char_table): Check a character is found in
1088         range->charset instead of non default value is defined in
1089         char-table when range is CHARTAB_RANGE_ROW.
1090
1091 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * chartab.c (map_char_id_table): Deleted.
1094         (Fmap_char_attribute): Use `map_char_table' instead of
1095         `map_char_id_table'.
1096
1097 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1100         UTF-2000.
1101         (update_syntax_table): Deleted in XEmacs UTF-2000.
1102
1103         * syntax.c (find_defun_start): Use `syntax_table' instead of
1104         `mirror_syntax_table' in XEmacs UTF-2000.
1105         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1106         UTF-2000.
1107         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1108         XEmacs UTF-2000.
1109         (Fmatching_paren): Likewise.
1110         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1111         in XEmacs UTF-2000.
1112         (find_start_of_comment): Likewise.
1113         (find_end_of_comment): Likewise.
1114         (Fforward_comment): Likewise.
1115         (scan_lists): Likewise.
1116         (char_quoted): Likewise.
1117         (Fbackward_prefix_chars): Likewise.
1118         (scan_sexps_forward): Likewise.
1119         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1120         (update_syntax_table): Likewise.
1121
1122         * search.c (skip_chars): Use `syntax_table' instead of
1123         `mirror_syntax_table' in XEmacs UTF-2000.
1124         (wordify): Likewise.
1125         (Freplace_match): Likewise.
1126
1127         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1128         `mirror_syntax_table' in XEmacs UTF-2000.
1129         (WORDCHAR_P_UNSAFE): Likewise.
1130         (re_match_2_internal): Likewise.
1131
1132         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1133         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1134
1135         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1136         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1137
1138         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1139         XEmacs UTF-2000.
1140
1141         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1142         UTF-2000.
1143         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1144         (char_table_description): Delete `mirror_table' in XEmacs
1145         UTF-2000.
1146         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1147         UTF-2000.
1148         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1149         (Fcopy_char_table): Likewise.
1150         (put_char_table): Don't call `update_syntax_table' in XEmacs
1151         UTF-2000.
1152
1153         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1154         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1155         (casify_region_internal): Likewise.
1156
1157         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1158
1159         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1160         `mirror_syntax_table' in XEmacs UTF-2000.
1161
1162         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1163         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1164         (Fexpand_abbrev): Likewise.
1165
1166 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1169
1170 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1173         (map_over_uint16_byte_table): Likewise.
1174         (map_over_byte_table): Likewise.
1175         (get_char_id_table): Refer `cit->default_value'.
1176         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1177         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1178         of character-id ranges.
1179         (mark_char_table): Mark `ct->default_value'.
1180         (char_table_description): Add `default_value'.
1181         (fill_char_table): Use `default_value'.
1182         (decode_char_table_range): Decode `nil' as
1183         `CHARTAB_RANGE_DEFAULT'.
1184         (get_char_id_table): Refer `cit->default_value'.
1185         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1186         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1187         temporary hack; check value of char-table is bound or not.
1188         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1189
1190         * chartab.h (struct Lisp_Char_Table): Add new member
1191         `default_value' in XEmacs UTF-2000.
1192         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1193         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1194         UTF-2000.
1195
1196 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1197
1198         * chartab.h (Lisp_Char_ID_Table): Deleted.
1199
1200         * chartab.c (char_table_description): Fix typo.
1201         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1202         `Lisp_Char_ID_Table'.
1203
1204 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205
1206         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1207         `CHAR_ID_TABLE_P'.
1208
1209         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1210         `CHAR_ID_TABLE_P'.
1211
1212         * chartab.h (XCHAR_ID_TABLE): Deleted.
1213         (XSETCHAR_ID_TABLE): Deleted.
1214         (CHAR_ID_TABLE_P): Deleted.
1215
1216         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1217         `CHAR_ID_TABLE_P'.
1218         (Fget_composite_char): Likewise.
1219         (put_char_table): Likewise.
1220         (add_char_attribute_alist_mapper): Fixed.
1221         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1222         `CHAR_ID_TABLE_P'.
1223         (Fget_char_attribute): Likewise.
1224         (Fget_char_attribute): Likewise.
1225         (Fmap_char_attribute): Likewise.
1226
1227         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1228         `CHAR_ID_TABLE_P'.
1229         (encode_char_1): Likewise.
1230
1231 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1234         `XCHAR_ID_TABLE'.
1235
1236         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1237         instead of `XCHAR_ID_TABLE'.
1238         (remove_char_ccs): Likewise.
1239
1240         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1241         `XCHAR_ID_TABLE'.
1242         (Fget_composite_char): Likewise.
1243         (Fchar_variants): Likewise.
1244         (put_char_table): Likewise.
1245         (add_char_attribute_alist_mapper): Likewise.
1246         (Fchar_attribute_alist): Likewise.
1247         (Fget_char_attribute): Likewise.
1248         (Fput_char_attribute): Likewise.
1249         (Fmap_char_attribute): Likewise.
1250         (Fmap_char_attribute): Likewise.
1251
1252         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1253         `XCHAR_ID_TABLE'.
1254         (encode_char_1): Likewise.
1255
1256 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1259         `Lisp_Char_ID_Table'.
1260         (mark_char_id_table): Deleted.
1261         (print_char_id_table): Likewise.
1262         (char_id_table_equal): Likewise.
1263         (char_id_table_hash): Likewise.
1264         (char_id_table_description): Likewise.
1265         (char_id_table): Likewise.
1266         (make_char_id_table): Use `Fmake_char_table' and
1267         `fill_char_table'.
1268         (get_char_id_table): Use `Lisp_Char_Table' instead of
1269         `Lisp_Char_ID_Table'.
1270         (put_char_id_table): Likewise.
1271         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1272         `XCHAR_ID_TABLE'.
1273         (Fremove_char_attribute): Likewise.
1274         (syms_of_chartab): Don't define type `char-id-table'.
1275
1276         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1277         (char_id_table): Likewise.
1278         (GC_CHAR_ID_TABLE_P): Likewise.
1279         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1280         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1281         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1282         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1283         (get_char_id_table): Use `Lisp_Char_Table' instead of
1284         `Lisp_Char_ID_Table'.
1285         (put_char_id_table_0): Likewise.
1286         (put_char_id_table): Likewise.
1287
1288 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1289
1290         * chartab.h: Lisp_Byte_Table related codes are moved from
1291         chartab.h.
1292
1293         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1294
1295 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1296
1297         * chartab.h: Don't include "chartab.h".
1298         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1299         (Lisp_Char_ID_Table): Likewise.
1300         (char_id_table): Likewise.
1301         (XCHAR_ID_TABLE): Likewise.
1302         (XSETCHAR_ID_TABLE): Likewise.
1303         (CHAR_ID_TABLE_P): Likewise.
1304         (GC_CHAR_ID_TABLE_P): Likewise.
1305         (get_char_id_table): Likewise.
1306
1307         * char-ucs.h: Include "chartab.h".
1308         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1309         (Lisp_Char_ID_Table): Likewise.
1310         (char_id_table): Likewise.
1311         (XCHAR_ID_TABLE): Likewise.
1312         (XSETCHAR_ID_TABLE): Likewise.
1313         (CHAR_ID_TABLE_P): Likewise.
1314         (GC_CHAR_ID_TABLE_P): Likewise.
1315         (get_char_id_table): Likewise.
1316
1317 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1318
1319         * chartab.c (copy_uint8_byte_table): New function.
1320         (copy_uint16_byte_table): New function.
1321         (copy_byte_table): New function.
1322         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1323         characters to call.
1324         (map_over_uint16_byte_table): Likewise.
1325         (map_over_byte_table): Likewise.
1326         (get_byte_table): Move prototype to chartab.h.
1327         (put_byte_table): Likewise.
1328         (put_char_id_table_0): Moved to chartab.h.
1329         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1330         (char_table_entry_equal): Likewise.
1331         (char_table_entry_hash): Likewise.
1332         (char_table_entry_description): Likewise.
1333         (char_table_entry): Likewise.
1334         (make_char_table_entry): Likewise.
1335         (copy_char_table_entry): Likewise.
1336         (get_non_ascii_char_table_value): Likewise.
1337         (map_over_charset_ascii): Likewise.
1338         (map_over_charset_control_1): Likewise.
1339         (map_over_charset_row): Likewise.
1340         (map_over_other_charset): Likewise.
1341         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1342         (print_char_table): Likewise.
1343         (char_table_equal): Likewise.
1344         (char_table_hash): Likewise.
1345         (char_table_description): Likewise.
1346         (fill_char_table): Likewise.
1347         (Fcopy_char_table): Likewise.
1348         (get_char_table): Likewise.
1349         (Fget_range_char_table): Likewise.
1350         (put_char_table): Likewise.
1351         (map_char_table): Likewise.
1352         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1353         UTF-2000.
1354
1355 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1358         `Vauto_fill_chars' in XEmacs UTF-2000.
1359
1360         * chartab.h (get_byte_table): New prototype [moved from
1361         chartab.c].
1362         (put_byte_table): Likewise [moved from chartab.c].
1363         (put_char_id_table_0): New inline function [moved from chartab.c].
1364         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1365         (Lisp_Char_Table_Entry): Likewise.
1366         (char_table_entry): Likewise.
1367         (XCHAR_TABLE_ENTRY): Likewise.
1368         (XSETCHAR_TABLE_ENTRY): Likewise.
1369         (CHAR_TABLE_ENTRYP): Likewise.
1370         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1371         (NUM_ASCII_CHARS): Likewise.
1372         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1373         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1374
1375 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1376
1377         * chartab.c (get_char_id_table): Change interface.
1378         (put_char_id_table_0): New function.
1379         (put_char_id_table): Change interface; new implementation.
1380         (Fget_composite_char): Modify for interface change of
1381         `get_char_id_table'.
1382         (Fchar_variants): Likewise.
1383         (add_char_attribute_alist_mapper): Likewise.
1384         (Fchar_attribute_alist): Likewise.
1385         (Fget_char_attribute): Likewise.
1386         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1387         as same as character as the first argument like `put-char-table';
1388         modify for interface change of `put_char_id_table'.
1389         (Fremove_char_attribute): Modify for interface change of
1390         `put_char_id_table'.
1391
1392 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * text-coding.c: Sync up with XEmacs 21.2.41.
1395         (COMPOSE_ADD_CHAR): Modify for interface change of
1396         `get_char_id_table'.
1397
1398         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1399         change of `put_char_id_table'.
1400         (remove_char_ccs): Likewise.
1401
1402         * chartab.h (put_char_id_table): Change interface.
1403
1404         * char-ucs.h (get_char_id_table): Change interface.
1405         (charset_code_point): Modify for interface change of
1406         `get_char_id_table'.
1407         (encode_char_1): Likewise.
1408
1409 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1412         argument `ccs'.
1413         (map_over_uint16_byte_table): Likewise.
1414         (map_over_byte_table): Likewise.
1415         (map_char_id_table): Add new argument `range' like
1416         `map_char_table'.
1417         (Fmap_char_attribute): Add new argument `range' like
1418         `Fmap_char_table'.
1419
1420 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1421
1422         * chartab.c (map_over_uint8_byte_table): Change interface of
1423         mapping function to use struct chartab_range instead of Emchar.
1424         (map_over_uint16_byte_table): Likewise.
1425         (map_over_byte_table): Likewise.
1426         (map_char_id_table): Likewise.
1427         (struct slow_map_char_id_table_arg): Deleted.
1428         (slow_map_char_id_table_fun): Deleted.
1429         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1430         function `slow_map_char_table_fun' instead of struct
1431         `slow_map_char_id_table_arg' and function
1432         `slow_map_char_id_table_fun'.
1433
1434 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * mule-charset.c: Move char-it-table related codes to chartab.c.
1437         (Vutf_2000_version): Moved to chartab.c.
1438         (Fdefine_char): Likewise.
1439         (Ffind_char): Likewise.
1440         (syms_of_mule_charset): Move types `uint8-byte-table',
1441         `uint16-byte-table', `byte-table' and `char-id-table' to
1442         chartab.c; move functions `char_attribute_list,
1443         `find_char_attribute_table, `char_attribute_alist,
1444         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1445         `map_char_attribute, `define_char, `find_char, `char_variants and
1446         `get_composite_char to chartab.c; move symbols `=>ucs',
1447         `->decomposition', `compat', `isolated', `initial', `medial',
1448         `final', `vertical', `noBreak', `fraction', `super', `sub',
1449         `circle', `square', `wide', `narrow', `small' and `font' to
1450         chartab.c.
1451         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1452         setting codes for `Vcharacter_composition_table' and
1453         `Vcharacter_variant_table' to chartab.c.
1454         (complex_vars_of_mule_charset): Move setting code for
1455         `Vchar_attribute_hash_table' to chartab.c.
1456
1457         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1458         (make_char_id_table): New prototype.
1459         (put_char_id_table): Likewise.
1460         (Fget_char_attribute): Likewise.
1461
1462         * chartab.c: Move char-id-table related code from mule-charset.c.
1463         (Vutf_2000_version): Moved from mule-charset.c.
1464
1465         * char-ucs.h (Qucs): New external variable.
1466         (put_char_ccs_code_point): New prototype.
1467         (remove_char_ccs): Likewise.
1468
1469 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1470
1471         * mule-charset.c (Vcharset_ucs_jis): New variable.
1472         (Qucs_jis): Likewise.
1473         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1474         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1475
1476         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1477
1478 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1479
1480         * mule-charset.c (map_over_uint8_byte_table): New function.
1481         (map_over_uint16_byte_table): Likewise.
1482         (map_over_byte_table): Likewise.
1483         (map_char_id_table): Likewise.
1484         (slow_map_char_id_table_fun): Likewise.
1485         (Fmap_char_attribute): Likewise.
1486         (syms_of_mule_charset): Add new function `map-char-attribute'.
1487
1488 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1489
1490         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1491         (syms_of_mule_charset): Add new function `find-char'.
1492
1493 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1496         XEmacs UTF-2000.
1497         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1498         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1499         XEmacs UTF-2000.
1500         (complex_vars_of_mule_charset): Add new coded-charset
1501         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1502         `ideograph-gt-pj-*'.
1503
1504         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1505
1506 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1507
1508         * mule-charset.c (encode_builtin_char_1): Purge codes about
1509         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1510         {MIN|MAX}_CHAR_HEBREW.
1511         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1512         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1513
1514         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1515         (MAX_CHAR_GREEK): Purged.
1516         (MIN_CHAR_CYRILLIC): Purged.
1517         (MAX_CHAR_CYRILLIC): Purged.
1518         (MIN_CHAR_HEBREW): Commented out.
1519         (MAX_CHAR_HEBREW): Likewise.
1520
1521 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522
1523         * mule-charset.c (Qto_ucs): New variable.
1524         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1525         (Fdefine_char): Likewise.
1526         (syms_of_mule_charset): Add new symbol `=>ucs'.
1527
1528 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1529
1530         * mule-charset.c (Fdecode_char): Fixed.
1531
1532 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1535         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1536         "tcvn5712-1".
1537
1538 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (Vcharset_ucs_big5): New variable.
1541         (Qucs_big5): Likewise.
1542         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1543         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1544
1545         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1546
1547 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1548
1549         * mule-charset.c (decode_builtin_char): Check Big5 code range
1550         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1551
1552 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1553
1554         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1555         (Qchinese_gb12345): Likewise.
1556         (Fdecode_builtin_char): Fixed.
1557         (syms_of_mule_charset): Add `chinese-gb12345'.
1558         (complex_vars_of_mule_charset): Add coded-charset
1559         `chinese-gb12345'.
1560
1561         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1562         (LEADING_BYTE_CHINESE_GB12345): New macro.
1563
1564 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1565
1566         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1567         and `latin-viscii-upper' for `latin-viscii'.
1568
1569 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1570
1571         * mule-charset.c (Fdecode_builtin_char): Comment out
1572         regularization code for ISO-IR GR representation.
1573
1574 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * mule-charset.c (decode_builtin_char): New function; renamed from
1577         `make_builtin_char'; return -1 instead of signal.
1578         (Fdecode_builtin_char): Use `decode_builtin_char'.
1579
1580         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1581         `make_builtin_char'.
1582         (DECODE_CHAR): Use `decode_builtin_char' instead of
1583         `make_builtin_char'; use mapping table of `chinese-big5' for
1584         `chinese-big5-{1,2}'.
1585
1586 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1587
1588         * text-coding.c (char_encode_big5): New function.
1589         (char_finish_big5): Likewise.
1590         (reset_encoding_stream): Use `char_encode_big5' and
1591         `char_finish_big5' for CODESYS_BIG5.
1592         (mule_encode): Don't use `encode_coding_big5'.
1593         (encode_coding_big5): Deleted.
1594
1595 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1598         0x81- in XEmacs UTF-2000.
1599         (detect_coding_big5): Likewise.
1600
1601 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602
1603         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1604         generate character-id if the CCS property does not have
1605         corresponding predefined character.
1606         (make_builtin_char): Return -1 if corresponding predefined
1607         character is not found.
1608         (Fdecode_char): Return nil if corresponding character is not
1609         found.
1610         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1611         don't map to builtin ucs space.
1612
1613 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614
1615         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1616         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1617
1618 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1621         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1622         (Qideograph_gt): Likewise.
1623         (Qideograph_gt_pj_{1..11}): Likewise.
1624         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1625         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1626         `ideograph-gt-pj-11'.
1627         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1628         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1629         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1630
1631         * char-ucs.h (LEADING_BYTE_GT): New macro.
1632         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1633         (MIN_CHAR_GT): Likewise.
1634         (MAX_CHAR_GT): Likewise.
1635
1636 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1637
1638         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1639         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1640
1641         * doprnt.c (unsigned_int_converters): Add `c'.
1642         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1643
1644         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1645         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1646         `MIN_CHAR_MOJIKYO'.
1647         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1648         (MAX_CHAR_MOJIKYO_0): New macro.
1649         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1650
1651 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652
1653         * mule-charset.c (Fdefine_char): Delete cemented out code.
1654         (encode_builtin_char_1): Modify for new allocation of builtin
1655         Mojikyo characters.
1656
1657         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1658
1659 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660
1661         * mule-charset.c (Vcharset_ucs_cns): New variable.
1662         (Qucs_cns): New variable.
1663         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1664         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1665
1666 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1669
1670 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1671
1672         * search.c (search_buffer): Make `charset_base_code' as
1673         character-id >> 6 to eliminate the corresponding last byte in
1674         UTF-8 representation [I'm not sure it is right thing].
1675         (boyer_moore): Likewise.
1676
1677 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1678
1679         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1680         representation in MULE.
1681
1682 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1683
1684         * text-coding.c (Fmake_coding_system): Use
1685         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1686         `EXTERNAL_PROPERTY_LIST_LOOP'.
1687
1688 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1689
1690         * text-coding.c (decode_output_utf8_partial_char): New function.
1691         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1692
1693 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1694
1695         * text-coding.c (decode_coding_utf8): Output original byte
1696         sequence if it is broken; change order of conditions.
1697
1698         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1699         of conditions.
1700
1701         * mb-multibyte.h (BYTE_ASCII_P):
1702         Use bit ops for char-signedness safety.
1703         (BYTE_C0_P): Use bit ops for char-signedness safety.
1704         (BYTE_C1_P): Use bit ops for char-signedness safety.
1705
1706         * character.h: (XCHAR_OR_CHAR_INT):
1707         Always use inline function.
1708         Remove redundant type checking assert() - XINT will abort quite
1709         nicely.
1710
1711 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1712
1713         * text-coding.c: (Fencode_shift_jis_char):
1714         (Fencode_big5_char):
1715         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1716         Replace 0 with '\0' when working with bytes.
1717         Replace initial "(" with "\(" in docstrings.
1718
1719         (Fmake_coding_system):
1720         When type is ccl and value is vector, register it with a proper
1721         symbol.  And checks whether the given ccl program is valid.
1722         (mule_decode): When calling ccl_driver, if src indicates
1723         NULL pointer, set an empty string instead.
1724         (mule_encode): Likewise.
1725
1726         (detect_eol_type):
1727         (detect_coding_sjis):
1728         (decode_coding_sjis):
1729         (detect_coding_big5):
1730         (decode_coding_big5):
1731         (detect_coding_ucs4):
1732         (decode_coding_ucs4):
1733         (detect_coding_utf8):
1734         (decode_coding_utf8):
1735         (detect_coding_iso2022):
1736         (decode_coding_iso2022):
1737         (decode_coding_no_conversion):
1738         (mule_decode):
1739         Make all detecting and decoding functions take an Extbyte * arg.
1740         (text_encode_generic):
1741         (encode_coding_big5):
1742         (encode_coding_no_conversion):
1743         (mule_encode):
1744         Make all encoding functions take a Bufbyte * arg.
1745         Use size_t instead of unsigned int for memory sizes.
1746         Only cast to unsigned char whenever dereferencing Extbyte *.
1747
1748         (struct lrecord_description fcd_description_1): Use countof.
1749         (complex_vars_of_file_coding):
1750         Use countof instead of sizeof.
1751         Use CHECK_NATNUM instead of CHECK_INT.
1752
1753 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * mule-charset.c (Fget_char_attribute): Add new optional argument
1756         `default-value'.
1757         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1758         (remove_char_ccs): Likewise.
1759
1760 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1761
1762         * text-coding.c (char_encode_shift_jis): New implementation in
1763         UTF-2000.
1764         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1765         ...)'.
1766
1767         * mule-charset.c (Vcharset_chinese_big5): New variable in
1768         UTF-2000.
1769         (Qchinese_big5): New variable in UTF-2000.
1770         (BIG5_SAME_ROW): New macro in UTF-2000.
1771         (make_builtin_char): Use builtin characters of
1772         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1773         characters of `Vcharset_chinese_big5'.
1774         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1775         (complex_vars_of_mule_charset): Add new coded-charset
1776         `chinese-big5' in UTF-2000.
1777
1778         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1779         (Vcharset_chinese_big5): New external variable declaration.
1780         (Vcharset_japanese_jisx0208_1990): Likewise.
1781
1782 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1783
1784         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1785         function.
1786         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1787
1788 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1789
1790         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1791         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1792         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1793         `mojikyo-pj-*'.
1794
1795 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1796
1797         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1798
1799 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800
1801         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1802         to 0.17.
1803
1804 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1805
1806         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1807         for `CHARSET_BY_ATTRIBUTES'.
1808         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1809         `CHARSET_BY_ATTRIBUTES'.
1810
1811         * text-coding.c (struct decoding_stream): Rename member `CH' to
1812         `CPOS'.
1813         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1814         (decode_coding_sjis): Likewise.
1815         (decode_coding_big5): Likewise.
1816         (decode_coding_ucs4): Likewise.
1817         (decode_coding_utf8): Likewise.
1818         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1819         `CHARSET_BY_ATTRIBUTES'.
1820         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1821         `str->counter'; decode 3, 4 bytes sets.
1822         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1823         sets.
1824         (decode_coding_no_conversion): Use `str->cpos' instead of
1825         `str->ch'.
1826
1827         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1828         (Qmojikyo_2022_1): New variable.
1829         (make_charset): Don't use `CHARSET_TYPE_*'.
1830         (range_charset_code_point): Support coded-charset
1831         `mojikyo-2022-1'.
1832         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1833         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1834         `CHARSET_BY_ATTRIBUTES'.
1835         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1836         `CHARSET_BY_ATTRIBUTES'.
1837         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1838         (complex_vars_of_mule_charset): Add new coded-charset
1839         `mojikyo-2022-1'.
1840
1841         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1842         interface; changed to inline function.
1843
1844         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1845         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1846         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1847         (CHARSET_TYPE_94): Deleted.
1848         (CHARSET_TYPE_94X94): Deleted.
1849         (CHARSET_TYPE_96): Deleted.
1850         (CHARSET_TYPE_96X96): Deleted.
1851         (CHARSET_TYPE_128): Deleted.
1852         (CHARSET_TYPE_128X128): Deleted.
1853         (CHARSET_TYPE_256): Deleted.
1854         (CHARSET_TYPE_256X256): Deleted.
1855         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1856         to inline function.
1857         (DECODE_MOJIKYO_2022): New inline function.
1858         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1859         `Vcharset_mojikyo_2022_1'.
1860
1861 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862
1863         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1864         instead of `EQ'.
1865         (put_byte_table): Likewise.
1866         (char_id_table_equal): Use `get_byte_table' [new implementation].
1867
1868 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1869
1870         * mule-charset.c: Include <limits.h> in UTF-2000.
1871         (BT_UINT8_MIN): New macro in UTF-2000.
1872         (BT_UINT8_MAX): New macro in UTF-2000.
1873         (BT_UINT8_t): New macro in UTF-2000.
1874         (BT_UINT8_nil): New macro in UTF-2000.
1875         (BT_UINT8_unbound): New macro in UTF-2000.
1876         (INT_UINT8_P): New inline function in UTF-2000.
1877         (UINT8_VALUE_P): New inline function in UTF-2000.
1878         (UINT8_ENCODE): New inline function in UTF-2000.
1879         (UINT8_DECODE): New inline function in UTF-2000.
1880         (mark_uint8_byte_table): New function in UTF-2000.
1881         (print_uint8_byte_table): New function in UTF-2000.
1882         (uint8_byte_table_equal): New function in UTF-2000.
1883         (uint8_byte_table_hash): New function in UTF-2000.
1884         (make_uint8_byte_table): New function in UTF-2000.
1885         (uint8_byte_table_same_value_p): New function in UTF-2000.
1886         (BT_UINT16_MIN): New macro in UTF-2000.
1887         (BT_UINT16_MAX): New macro in UTF-2000.
1888         (BT_UINT16_t): New macro in UTF-2000.
1889         (BT_UINT16_nil): New macro in UTF-2000.
1890         (BT_UINT16_unbound): New macro in UTF-2000.
1891         (INT_UINT16_P): New inline function in UTF-2000.
1892         (UINT16_VALUE_P): New inline function in UTF-2000.
1893         (UINT16_ENCODE): New inline function in UTF-2000.
1894         (UINT16_DECODE): New inline function in UTF-2000.
1895         (UINT8_TO_UINT16): New inline function in UTF-2000.
1896         (mark_uint16_byte_table): New function in UTF-2000.
1897         (print_uint16_byte_table): New function in UTF-2000.
1898         (uint16_byte_table_equal): New function in UTF-2000.
1899         (uint16_byte_table_hash): New function in UTF-2000.
1900         (make_uint16_byte_table): New function in UTF-2000.
1901         (uint16_byte_table_same_value_p): New function in UTF-2000.
1902         (print_byte_table): New function in UTF-2000.
1903         (byte-table): Use `print_byte_table' as printer.
1904         (make_byte_table): Delete second argument `older'.
1905         (byte_table_same_value_p): New function in UTF-2000.
1906         (copy_byte_table): Deleted.
1907         (get_byte_table): New function in UTF-2000.
1908         (put_byte_table): New function in UTF-2000.
1909         (print_char_id_table): New function in UTF-2000.
1910         (char-id-table): Use `print_char_id_table' as printer.
1911         (make_char_id_table): Delete second argument `older'.
1912         (get_char_id_table): Use `get_byte_table [new implementation].
1913         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1914         implementation].
1915         (Ffind_char_attribute_table): New function in UTF-2000.
1916         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1917         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1918         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1919         (syms_of_mule_charset): Add new function
1920         `find-char-attribute-table' in UTF-2000.
1921
1922         * lrecord.h (enum lrecord_type): Add
1923         `lrecord_type_uint16_byte_table' and
1924         `lrecord_type_uint8_byte_table'.
1925
1926         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1927         (Lisp_Uint8_Byte_Table): New type.
1928         (XUINT8_BYTE_TABLE): New macro.
1929         (XSETUINT8_BYTE_TABLE): New macro.
1930         (UINT8_BYTE_TABLE_P): New macro.
1931         (GC_UINT8_BYTE_TABLE_P): New macro.
1932         (struct Lisp_Uint16_Byte_Table): New structure.
1933         (Lisp_Uint16_Byte_Table): New type.
1934         (XUINT16_BYTE_TABLE): New macro.
1935         (XSETUINT16_BYTE_TABLE): New macro.
1936         (UINT16_BYTE_TABLE_P): New macro.
1937         (GC_UINT16_BYTE_TABLE_P): New macro.
1938
1939 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940
1941         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1942         (Vcharacter_ideographic_strokes_table): Deleted.
1943         (Vcharacter_total_strokes_table): Deleted.
1944         (Vcharacter_morohashi_daikanwa_table): Deleted.
1945         (Vcharacter_decomposition_table): Deleted.
1946         (Qname): Deleted because it is duplicated.
1947         (Qideographic_radical): Deleted.
1948         (Qideographic_strokes): Deleted.
1949         (Qtotal_strokes): Deleted.
1950         (Qmorohashi_daikanwa): Deleted.
1951         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1952         `ideographic-radical', `ideographic-strokes', `total-strokes',
1953         `morohashi-daikanwa' and `->decomposition'.
1954         (Fget_char_attribute): Likewise.
1955         (Fput_char_attribute): Likewise; use `make-vector' instead of
1956         `make_older_vector' for `->decomposition' value.
1957         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1958         `ideograph-daikanwa'.
1959         (syms_of_mule_charset): Delete builtin symbols `name',
1960         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1961         `morohashi-daikanwa'.
1962         (vars_of_mule_charset): Don't setup
1963         `Vcharacter_ideographic_radical_table',
1964         `Vcharacter_ideographic_strokes_table',
1965         `Vcharacter_total_strokes_table',
1966         `Vcharacter_morohashi_daikanwa_table' and
1967         `Vcharacter_decomposition_table'.
1968
1969 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970
1971         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1972         `make_older_vector', `make_vector_newer_1' and
1973         `make_vector_newer'.
1974
1975         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1976         `make_older_vector' and `make_vector_newer'.
1977
1978         * config.h.in (HAVE_GGC): New macro.
1979
1980 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * mule-charset.c (struct char_attribute_list_closure): New
1983         structure in UTF-2000.
1984         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1985         (Fchar_attribute_list): Likewise.
1986         (Fset_charset_mapping_table): Use `make_vector_newer'.
1987         (Fdecode_builtin_char): New function in UTF-2000.
1988         (syms_of_mule_charset): Add new function `char-attribute-list' and
1989         `decode-builtin-char' in UTF-2000.
1990
1991         * lisp.h (make_vector_newer): New prototype.
1992
1993         * alloc.c (make_vector_newer_1): New function.
1994         (make_vector_newer): New function.
1995
1996 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1999         50100)'.
2000
2001 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002
2003         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2004         (Vcharacter_attribute_table): Deleted.
2005         (Vcharacter_name_table): Deleted.
2006         (put_char_attribute): Deleted.
2007         (remove_char_attribute): Deleted.
2008         (struct char_attribute_alist_closure): New structure.
2009         (add_char_attribute_alist_mapper): New function.
2010         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2011         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2012         (Fget_char_attribute): Likewise.
2013         (Fput_char_attribute): Likewise.
2014         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2015         of `remove_char_attribute'.
2016         (Fdefine_char): Return character.
2017         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2018         and `Vcharacter_name_table'.
2019         (complex_vars_of_mule_charset): Likewise
2020         `Vchar_attribute_hash_table'.
2021
2022 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023
2024         * character.h (CHARC_CHARSET): New macro.
2025         (CHARC_CHARSET_ID): New macro.
2026         (CHARC_CODE_POINT): New macro.
2027         (CHARC_COLUMNS): New macro.
2028         (CHARC_TO_CHAR): New inline function.
2029         (CHARC_EQ): New inline function.
2030         (CHARC_ASCII_EQ): New inline function.
2031         (CHARC_IS_SPACE): New inline function.
2032         (ASCII_TO_CHARC): New inline function.
2033
2034         * char-ucs.h (encode_char_2): Deleted.
2035         (ENCODE_CHAR): Use `encode_char_1' again.
2036         (breakup_char_1): Likewise.
2037         (CHAR_TO_CHARC): New inline function.
2038
2039         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2040
2041 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2042
2043         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2044         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2045         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2046         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2047         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2048         `CHARC_IS_SPACE'.
2049         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2050
2051         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2052         `CHARC_CODE_POINT'.
2053         (x_output_display_block): Use `CHARC_CHARSET' and
2054         `CHARC_ASCII_EQ'.
2055
2056         * redisplay-tty.c (tty_output_display_block): Use
2057         `CHARC_ASCII_EQ'.
2058         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2059
2060         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2061
2062         * insdel.c (find_charsets_in_charc_string): Use
2063         `CHARC_CHARSET_ID'.
2064         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2065         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2066         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2067         (convert_charc_string_into_malloced_string): Likewise.
2068
2069 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070
2071         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2072         instead of <Emchar_dynarr *> for buf; use
2073         `convert_bufbyte_string_into_charc_dynarr' instead of
2074         `convert_bufbyte_string_into_emchar_dynarr'; use
2075         `find_charsets_in_charc_string' instead of
2076         `find_charsets_in_emchar_string'.
2077
2078         * redisplay.h:
2079         - Include "character.h".
2080         (struct rune): New member `cglyph'; delete member `chr'.
2081
2082         * redisplay.c (redisplay_text_width_charc_string): New function;
2083         delete `redisplay_text_width_emchar_string'.
2084         (rtw_charc_dynarr): New variable; renamed from
2085         `rtw_emchar_dynarr'.
2086         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2087         `rtw_emchar_dynarr'; use
2088         `convert_bufbyte_string_into_charc_dynarr' instead of
2089         `convert_bufbyte_string_into_emchar_dynarr'; use
2090         `redisplay_text_width_charc_string' instead of
2091         `redisplay_text_width_emchar_string'.
2092         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2093         instead of `rtw_emchar_dynarr'; use
2094         `convert_bufbyte_string_into_charc_dynarr' instead of
2095         `convert_bufbyte_string_into_emchar_dynarr'.
2096         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2097         `redisplay_text_width_charc_string' instead of
2098         `redisplay_text_width_emchar_string'.
2099         (create_text_block): Modify for <struct rune> change.
2100         (generate_formatted_string_db): Likewise.
2101         (create_string_text_block): Likewise.
2102         (pixel_to_glyph_translation): Likewise.
2103
2104         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2105         instead of <const Emchar *>.
2106         (x_text_width): Likewise.
2107         (x_output_display_block): Use <Charc_dynarr *> instead
2108         <Emchar_dynarr *>; modify for <structure rune> change.
2109         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2110         *>.
2111
2112         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2113         <const Emchar *>; use `charc_string_displayed_columns' instead of
2114         `emchar_string_displayed_columns'.
2115         (tty_output_display_block): Use <Charc_dynarr *> instead of
2116         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2117         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2118         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2119         `tty_output_emchar_dynarr_dynarr'.
2120         (tty_output_charc_dynarr): New function; delete
2121         `tty_output_charc_dynarr'.
2122
2123         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2124         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2125         <Emchar_dynarr *> for buf; use
2126         `convert_bufbyte_string_into_charc_dynarr' instead of
2127         `convert_bufbyte_string_into_emchar_dynarr'.
2128
2129         * frame.c (title_string_charc_dynarr): New variable; renamed from
2130         `title_string_emchar_dynarr'.
2131         (generate_title_string): Use `title_string_charc_dynarr' instead
2132         of `title_string_emchar_dynarr'; use
2133         `convert_charc_string_into_malloced_string' instead of
2134         `convert_emchar_string_into_malloced_string'.
2135         (init_frame): Use `title_string_charc_dynarr' instead of
2136         `title_string_emchar_dynarr'.
2137
2138         * console.h:
2139         - Include "character.h".
2140         (struct console_methods): Use <const Charc *> instead of <const
2141         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2142         <Emchar_dynarr *> in output_string_method.
2143
2144         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2145         <Emchar_dynarr *>.
2146
2147         * console-stream.c (stream_text_width): Use <const Charc *>
2148         instead of <const Emchar *>.
2149
2150         * character.h (Charc_dynarr): New type.
2151
2152         * char-ucs.h (structure Charc): New structure; define new type
2153         `Charc'.
2154
2155         * char-lb.h (DECODE_CHAR): New inline function.
2156         (encode_char_1): New inline function.
2157         (ENCODE_CHAR): New macro.
2158         (structure Charc): New structure; define new type `Charc'.
2159
2160         * char-1byte.h (Vcharset_control_1): New macro.
2161         (Vcharset_latin_iso8859_1): New macro.
2162         (DECODE_CHAR): New inline function.
2163         (encode_char_1): New inline function.
2164         (ENCODE_CHAR): New macro.
2165         (structure Charc): New structure; define new type `Charc'.
2166
2167         * insdel.c (find_charsets_in_charc_string): New function; delete
2168         `find_charsets_in_emchar_string'.
2169         (charc_string_displayed_columns): New function; delete
2170         `emchar_string_displayed_columns'.
2171         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2172         `convert_bufbyte_string_into_emchar_dynarr'.
2173         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2174         `convert_charc_string_into_bufbyte_dynarr'.
2175         (convert_charc_string_into_malloced_string): New function; delete
2176         `convert_charc_string_into_malloced_string'.
2177
2178         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2179         `find_charsets_in_emchar_string'.
2180         (charc_string_displayed_columns): New prototype; delete
2181         `emchar_string_displayed_columns'.
2182         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2183         `convert_charc_string_into_bufbyte_dynarr'.
2184         (convert_charc_string_into_malloced_string): New prototype; delete
2185         `convert_charc_string_into_malloced_string'.
2186
2187 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2188
2189         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2190
2191 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2192
2193         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2194
2195         * char-ucs.h: Use <short> for <Charset_ID>.
2196
2197         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2198         <Charset_ID>.
2199
2200 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2201
2202         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2203         to 0.16.
2204
2205 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2208         variable.
2209         (Qmorohashi_daikanwa): New variable.
2210         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2211         for `morohashi-daikanwa' attribute.
2212         (Fget_char_attribute): Likewise.
2213         (Fput_char_attribute): Likewise.
2214         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2215         has the same value of `ideograph-daikanwa'.
2216         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2217         (vars_of_mule_charset): Setup
2218         `Vcharacter_morohashi_daikanwa_table'.
2219
2220 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221
2222         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2223         attributes.
2224         (add_charset_to_list_mapper): Add `key' instead of
2225         `XCHARSET_NAME (value)' to return aliases.
2226
2227 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2230         variable.
2231         (Vcharacter_ideographic_strokes_table): New variable.
2232         (Qideographic_radical): New variable.
2233         (Qideographic_strokes): New variable.
2234         (Fchar_attribute_alist): Use
2235         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2236         attribute; use `Vcharacter_ideographic_strokes_table' for
2237         `ideographic-strokes' attribute.
2238         (Fget_char_attribute): Likewise.
2239         (Fput_char_attribute): Likewise.
2240         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2241         `ideographic-strokes'.
2242         (vars_of_mule_charset): Setup
2243         `Vcharacter_ideographic_radical_table' and
2244         `Vcharacter_ideographic_strokes_table'.
2245
2246 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2249         (Qtotal_strokes): New variable.
2250         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2251         `total-strokes' attribute.
2252         (Fget_char_attribute): Likewise.
2253         (Fput_char_attribute): Likewise.
2254         (syms_of_mule_charset): Add new symbol `total-strokes'.
2255         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2256
2257 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258
2259         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2260         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2261         are found.
2262         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2263         `->decomposition' attribute.
2264         (Fput_char_attribute): Likewise.
2265         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2266
2267 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2268
2269         * mule-charset.c (decoding_table_check_elements): New function.
2270         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2271
2272 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2273
2274         * mule-charset.c (Fset_charset_mapping_table): Use
2275         `put_char_ccs_code_point'.
2276
2277 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2278
2279         * mule-charset.c (decoding_table_put_char): New inline function.
2280         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2281
2282 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2283
2284         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2285         (XCHARSET_BYTE_SIZE): New macro.
2286         (decoding_table_remove_char): New inline function.
2287         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2288         `decoding_table_remove_char'.
2289         (remove_char_ccs): Use `decoding_table_remove_char'.
2290         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2291
2292 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293
2294         * mule-charset.c (Vcharacter_name_table): New variable.
2295         (Qname): New variable.
2296         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2297         attribute.
2298         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2299         `Vcharacter_name_table' for `name' attribute.
2300         (Fremove_char_attribute): Use function `remove_char_ccs'.
2301         (put_char_ccs_code_point): New function.
2302         (remove_char_ccs): New function.
2303         (syms_of_mule_charset): Add new symbol `name'.
2304         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2305
2306 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * mule-charset.c (make_byte_table): Add new argument `older'.
2309         (make_char_id_table): Likewise.
2310         (copy_char_id_table): Comment out because it is not used.
2311         (put_char_id_table): Modify for `make_byte_table'.
2312         (Fput_char_attribute): Make encoding_table as older object;
2313         inherit older bit of `Vcharacter_composition_table'.
2314         (mark_charset): Don't mark `cs->encoding_table'.
2315         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2316         normal object; make `Vcharacter_composition_table' as an older
2317         object; delete staticpro for `Vcharacter_composition_table'; make
2318         `Vcharacter_variant_table' as a normal object.
2319
2320         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2321         (mark_object): Don't check older object in UTF-2000.
2322
2323         * lrecord.h (struct lrecord_header): Add new member `older' in
2324         UTF-2000.
2325         (set_lheader_implementation): Setup `SLI_header->older' in
2326         UTF-2000.
2327         (set_lheader_older_implementation): New macro in UTF-2000.
2328         (OLDER_RECORD_P): New macro in UTF-2000.
2329         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2330         (alloc_older_lcrecord): New prototype in UTF-2000.
2331         (alloc_older_lcrecord_type): New macro in UTF-2000.
2332
2333 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2334
2335         * mule-charset.c (byte_table_description): Use
2336         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2337         (char_id_table_description): Delete bogus `, 1'.
2338         (Fget_char_attribute): Refer encoding_table of each coded-charset
2339         to get value of coded-charset attribute of a character.
2340         (Fput_char_attribute): Use `make_older_vector' instead of
2341         `make_vector'; use encoding_table of each coded-charset to store
2342         value of coded-charset attribute of a character.
2343         (Fremove_char_attribute): Use encoding_table of each coded-charset
2344         to store value of coded-charset attribute of a character.
2345         (mark_charset): Mark `cs->encoding_table'; don't mark
2346         `cs->decoding_table'.
2347         (charset_description): Add description of new member
2348         `encoding_table'.
2349         (make_charset): Initialize `encoding_table'.
2350
2351         * char-ucs.h (struct Lisp_Charset): Add new member
2352         `encoding_table'.
2353         (CHARSET_ENCODING_TABLE): New macro.
2354         (XCHARSET_ENCODING_TABLE): New macro.
2355         (charset_code_point): New implementation.
2356         (encode_char_1): Likewise.
2357
2358         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2359         (disksave_object_finalization_1): Call finalizers of
2360         `all_older_lcrecords' in UTF-2000.
2361         (make_older_vector): New function in UTF-2000.
2362         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2363         UTF-2000.
2364
2365         * lisp.h (make_older_vector): New prototype in UTF-2000.
2366
2367 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2368
2369         * lrecord.h (enum lrecord_type): Rename
2370         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2371
2372         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2373         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2374         `get_char_code_table'.
2375
2376         * mule-charset.c (mark_char_id_table): Renamed from
2377         `mark_char_code_table'.
2378         (char_id_table_equal): Renamed from `char_code_table_equal'.
2379         (char_id_table_hash): Renamed from `char_code_table_hash'.
2380         (make_char_id_table): Renamed from `make_char_code_table'.
2381         (copy_char_id_table): Renamed from `copy_char_code_table'.
2382         (get_char_id_table): Renamed from `get_char_code_table'.
2383         (put_char_id_table): Renamed from `put_char_code_table'.
2384         (to_char_id): Renamed from `to_char_code'.
2385
2386         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2387         `Lisp_Char_Code_Table'.
2388         (char_id_table): Renamed from `char_code_table'.
2389         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2390         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2391         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2392         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2393         (get_char_id_table): Renamed from `get_char_code_table'.
2394
2395 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2396
2397         * lrecord.h (enum lrecord_type): Rename
2398         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2399
2400         * mule-charset.c (mark_byte_table): Renamed from
2401         `mark_char_byte_table'.
2402         (byte_table_equal): Renamed from `char_byte_table_equal'.
2403         (byte_table_hash): Renamed from `byte_table_hash'.
2404         (make_byte_table): Renamed from `make_byte_table'.
2405         (copy_byte_table): Renamed from `copy_char_byte_table'.
2406
2407         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2408         `Lisp_Char_Byte_Table'.
2409         (byte_table): Renamed from `char_byte_table'.
2410         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2411         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2412         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2413         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2414
2415 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2416
2417         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2418         (dfc_convert_to_internal_format): Likewise.
2419         
2420         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2421         * text-coding.c (Fcoding_system_alias_p): New function.
2422         * text-coding.c (Fcoding_system_aliasee): New function.
2423         * text-coding.c (append_suffix_to_symbol): New function.
2424         * text-coding.c (dangling_coding_system_alias_p): New function.
2425         * text-coding.c (Ffind_coding_system):
2426         * text-coding.c (Fcopy_coding_system):
2427         * text-coding.c (encode_coding_no_conversion):
2428         * text-coding.c (syms_of_file_coding):
2429         * text-coding.c (vars_of_file_coding):
2430         Rewrite coding system alias code.
2431         Allow nested aliases, like symbolic links.
2432         Allow redefinition of coding system aliases.
2433         Prevent existence of dangling coding system aliases.
2434         Eliminate convert_to_external_format.
2435         Eliminate convert_to_internal_format.
2436         
2437         * text-coding.c: Change enum eol_type to eol_type_t.
2438
2439 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2440
2441         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2442         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2443
2444         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2445         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2446
2447 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2448
2449         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2450         `ideograph-daikanwa'.
2451
2452         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2453         (Vcharset_ucs_bmp): Likewise.
2454         (Vcharset_mojikyo): Add new extern variable definition.
2455         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2456         (Vcharset_latin_iso8859_3): Likewise.
2457         (Vcharset_latin_iso8859_4): Likewise.
2458         (Vcharset_latin_iso8859_9): Likewise.
2459         (Vcharset_latin_viscii_lower): Likewise.
2460         (Vcharset_latin_viscii_upper): Likewise.
2461         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2462         `mojikyo' code-point is used to decode.
2463         (encode_char_2): New function [to convert `mojikyo' code-point to
2464         Mojikyo font encoding].
2465         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2466         (breakup_char_1): Likewise.
2467         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2468
2469 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * text-coding.c (Fmake_coding_system): Add document about
2472         `disable-composition' property.
2473
2474 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2475
2476         * text-coding.c (Qdisable_composition): New variable; delete
2477         `Qcomposite'.
2478         (Fmake_coding_system): Add new property `disable-composite';
2479         delete property `composite'.
2480         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2481         instead of `!CODING_SYSTEM_COMPOSITE'.
2482         (syms_of_file_coding): Add new symbol `disable-composition';
2483         delete symbol `composite'.
2484
2485         * file-coding.h (struct Lisp_Coding_System): Add
2486         `disable_composition'; delete `enable_composition'.
2487         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2488         `CODING_SYSTEM_COMPOSITE'.
2489         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2490         `XCODING_SYSTEM_COMPOSITE'.
2491
2492 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2493
2494         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2495         to 0.15.
2496
2497 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2498
2499         * text-coding.c (Qcomposite): New variable.
2500         (Fmake_coding_system): Add new property `composite'.
2501         (struct decoding_stream): Add `combined_char_count',
2502         `combined_chars' and `combining_table' in UTF-2000.
2503         (COMPOSE_FLUSH_CHARS): New macro.
2504         (COMPOSE_ADD_CHAR): New macro.
2505         (reset_decoding_stream): Reset `str->combined_char_count' and
2506         `str->combining_table' in UTF-2000.
2507         (decode_coding_iso2022): Modify for character-decomposition.
2508         (syms_of_file_coding): Add new symbol `composite'.
2509
2510 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2511
2512         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2513         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2514         of `Vcharacter_composition_table' if `->decomposition' property
2515         has only 1 element.
2516         (Qlatin_tcvn5712): New variable.
2517         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2518         (complex_vars_of_mule_charset): Add new coded-charset
2519         `latin-tcvn5712'.
2520
2521         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2522
2523 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * file-coding.h (struct Lisp_Coding_System): Add
2526         `enable_composition'.
2527         (CODING_SYSTEM_COMPOSITE): New macro.
2528         (XCODING_SYSTEM_COMPOSITE): New macro.
2529
2530 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2531
2532         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2533
2534 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2535
2536         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2537         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2538
2539 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2540
2541         * mule-charset.c (Vcharset_mojikyo): New variable.
2542         (Fdefine_char): Don't use coded-charset which does not have
2543         non-builtin character range to allocate character-id.
2544         (Qmojikyo): New variable.
2545         (syms_of_mule_charset): Add new symbol `mojikyo'.
2546         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2547
2548         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2549         (LEADING_BYTE_MOJIKYO): New macro.
2550         (MIN_CHAR_MOJIKYO): New macro.
2551         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2552         (MAX_CHAR_MOJIKYO): New macro.
2553
2554 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2555
2556         * mule-charset.c (remove_char_attribute): Fixed.
2557
2558 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2559
2560         * mule-charset.c (remove_char_attribute): New function.
2561         (Fremove_char_attribute): New function.
2562         (encode_builtin_char_1): Comment out builtin-support for
2563         greek-iso8859-7 and cyrillic-iso8859-5.
2564         (Fdecode_char): Check `code' is an integer.
2565         (syms_of_mule_charset): Add `remove-char-attribute'.
2566         (MIN_CHAR_GREEK): Deleted.
2567         (MAX_CHAR_GREEK): Likewise.
2568         (MIN_CHAR_CYRILLIC): Likewise.
2569         (MAX_CHAR_CYRILLIC): Likewise.
2570         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2571         MAX_CHAR_GREEK for `greek-iso8859-7'.
2572
2573         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2574         (MAX_CHAR_GREEK): Likewise.
2575         (MIN_CHAR_CYRILLIC): Likewise.
2576         (MAX_CHAR_CYRILLIC): Likewise.
2577
2578 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2579
2580         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2581         format is used without `ucs' property.
2582         (Fdecode_char): Fix problem with GR representation.
2583         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2584         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2585
2586 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2587
2588         * mule-charset.c (make_builtin_char): New function.
2589         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2590         (Fset_charset_mapping_table): Modify for new representation of
2591         code-point.
2592         (Fdecode_char): New function.
2593         (syms_of_mule_charset): Add new builtin function `decode-char' in
2594         UTF-2000.
2595
2596         * char-ucs.h (make_builtin_char): New prototype.
2597         (DECODE_CHAR): New inline function.
2598         (MAKE_CHAR): Use `DECODE_CHAR'.
2599
2600 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2601
2602         * text-coding.c (parse_charset_conversion_specs): Use
2603         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2604         `XCHARSET_TYPE'.
2605         (iso2022_designate): Likewise.
2606
2607         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2608         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2609
2610         * mule-charset.c (Vcharset_ucs): New variable.
2611         (print_charset): Change design; use `CHARSET_CHARS' and
2612         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2613         (make_charset): Change signature to specify `chars' and
2614         `dimension' instead of `type'.
2615         (range_charset_code_point): Modify for 256^n-set.
2616         (encode_builtin_char_1): Encode as `ucs' in default.
2617         (Fmake_charset): Modify for `make_charset'.
2618         (Fmake_reverse_direction_charset): Likewise.
2619         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2620         UTF-2000.
2621         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2622         for `make_charset'.
2623
2624         * char-ucs.h (Vcharset_ucs): New variable.
2625         (LEADING_BYTE_UCS): New macro.
2626         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2627         and `chars' to `unsigned short' from `unsigned int'.
2628         (CHARSET_TYPE): Deleted.
2629         (XCHARSET_TYPE): Deleted.
2630
2631 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2632
2633         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2634
2635         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2636         (ENCODE_CHAR): New macro.
2637
2638 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2639
2640         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2641         to 0.14 (Kawachi-Katakami).
2642
2643 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2644
2645         * text-coding.c (char_encode_shift_jis): Modify for
2646         `charset_code_point'.
2647         (char_encode_iso2022): Likewise.
2648
2649         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2650         (integer) instead of list of <Lisp_Object>s (integers) as the
2651         format of code-point of a coded-charset.
2652         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2653         (encode_builtin_char_1): New function; delete
2654         `split_builtin_char'.
2655         (charset_code_point): Return <int> instead of <Lisp_Object>.
2656         (Fsplit_char): Don't use `SPLIT_CHAR'.
2657
2658         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2659         prototype for `split_builtin_char'.
2660         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2661         (charset_code_point): Likewise.
2662         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2663         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2664
2665 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2666
2667         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2668         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2669
2670 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2671
2672         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2673
2674         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2675         (MAX_CHAR_OBS_94x94): Deleted.
2676
2677 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2678
2679         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2680
2681         * char-ucs.h (MAX_CHAR_BMP): New macro.
2682
2683 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2684
2685         * text-coding.c: Sync with r21-2-24.
2686
2687 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2688
2689         * file-coding.c: Modify for UTF-2000.
2690
2691 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2692
2693         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2694         to 0.13 (Takaida).
2695
2696 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2697
2698         * mule-charset.c (split_builtin_char): Delete builtin support for
2699         `katakana-jisx0201'.
2700         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2701         BMP area in builtin representation.
2702
2703         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2704         `Vcharset_katakana_jisx0201'.
2705
2706 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2707
2708         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2709         (Qisolated): New variable.
2710         (Qinitial): New variable.
2711         (Qmedial): New variable.
2712         (Qfinal): New variable.
2713         (Qvertical): New variable.
2714         (Qsmall): New variable.
2715         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2716         `Qvertical' and `Qsmall'.
2717         (Qmojikyo_pj_[1 .. 21]): New variable.
2718         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2719         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2720         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2721         .. 21]'.
2722
2723 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2724
2725         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2726         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2727         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2728
2729 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2730
2731         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2732         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2733         BMP.
2734         (Qjapanese_jisx0208_1990): New variable.
2735         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2736         (complex_vars_of_mule_charset): Add new coded-charset
2737         `japanese-jisx0208-1990'.
2738
2739         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2740         (MIN_CHAR_JIS_X0208_1990): New macro.
2741         (MAX_CHAR_JIS_X0208_1990): New macro.
2742
2743 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2744
2745         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2746         coded-charset is not found.
2747
2748 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2749
2750         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2751         (Fdefine_char): Use `Fmake_char'.
2752
2753 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2754
2755         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2756         (Vcharset_hiragana_jisx0208): Deleted.
2757         (Vcharset_katakana_jisx0208): Deleted.
2758         (Qideograph_daikanwa): New variable.
2759         (Qhiragana_jisx0208): Deleted.
2760         (Qkatakana_jisx0208): Deleted.
2761         (split_builtin_char): Split `ideograph-daikanwa'.
2762         (Fsplit_char): New implementation for UTF-2000.
2763         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2764         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2765         (complex_vars_of_mule_charset): Add new coded-charset
2766         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2767         `katakana-jisx0208'.
2768
2769         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2770         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2771         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2772         (MIN_CHAR_DAIKANWA): New macro.
2773         (MAX_CHAR_DAIKANWA): New macro.
2774
2775 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2776
2777         * data.c (Fstring_to_number): Don't recognize floating point if
2778         base is not 10.
2779
2780 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2781
2782         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2783
2784 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2785
2786         * mule-charset.c (Qsquare): New variable.
2787         (to_char_code): Add `Qsquare'.
2788         (syms_of_mule_charset): Add new symbol `square'.
2789
2790 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2791
2792         * mule-charset.c (Qcircle): New variable.
2793         (to_char_code): Add `Qcircle'.
2794         (syms_of_mule_charset): Add new symbol `circle'.
2795
2796 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2797
2798         * mule-charset.c (Qfont): New variable.
2799         (to_char_code): Add `Qfont'.
2800         (syms_of_mule_charset): Add new symbol `font'.
2801
2802 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2803
2804         * mule-charset.c (Qsub): New variable.
2805         (to_char_code): Add `Qsub'.
2806         (syms_of_mule_charset): Add new symbol `sub'.
2807
2808 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2809
2810         * mule-charset.c (Fput_char_attribute): Convert each element of
2811         VALUE to GL position if ATTRIBUTE is a GR-set,
2812
2813 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2814
2815         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2816         coded-charset is a GR-set.
2817
2818 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2819
2820         * mule-charset.c (Fput_char_attribute): Check each element of
2821         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2822
2823 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2824
2825         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2826         UTF-2000.
2827         (Qethiopic_ucs): New variable in UTF-2000.
2828         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2829         (complex_vars_of_mule_charset): Add new coded-charset
2830         `ethiopic-ucs' in UTF-2000.
2831
2832         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2833         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2834         9)'.
2835         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2836         10)'.
2837         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2838
2839 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2840
2841         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2842         `ascii'.
2843
2844 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2845
2846         * mule-charset.c (Vcharacter_variant_table): New variable.
2847         (Q_ucs): New variable.
2848         (Fchar_variants): New function.
2849         (Fput_char_attribute): Register `->ucs' value to
2850         `Vcharacter_variant_table'.
2851         (syms_of_mule_charset): Add new function `char-variants' and new
2852         symbol `->ucs'.
2853         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2854
2855 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2856
2857         * mule-charset.c (get_char_code_table): Allow negative character
2858         code.
2859         (put_char_code_table): Likewise.
2860         (Vcharacter_composition_table): New variable.
2861         (Q_decomposition): New variable.
2862         (Qwide): New variable.
2863         (Qnarrow): New variable.
2864         (Qcompat): New variable.
2865         (QnoBreak): New variable.
2866         (Qsuper): New variable.
2867         (Qfraction): New variable.
2868         (to_char_code): New function.
2869         (Fget_composite_char): New function.
2870         (Fput_char_attribute): Register `->decomposition' value to
2871         `Vcharacter_composition_table'.
2872         (syms_of_mule_charset): Add new function `get-composite-char', new
2873         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2874         `super' and `fraction'.
2875         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2876
2877 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2878
2879         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2880         character; copy the return value.
2881
2882 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2883
2884         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2885
2886         * mule-charset.c (range_charset_code_point): Must use make_int.
2887         (split_builtin_char): New function.
2888
2889 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2890
2891         * mule-charset.c (char_byte_table): Change name from
2892         "char-code-table" to "char-byte-table".
2893         (mark_char_code_table): New function.
2894         (char_code_table_equal): New function.
2895         (char_code_table_hash): New function.
2896         (char_code_table_description): New constant.
2897         (char_code_table): New type.
2898         (make_char_code_table): New function.
2899         (copy_char_code_table): New function.
2900         (get_char_code_table): Modify for `char_code_table' type.
2901         (put_char_code_table): Likewise.
2902         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2903         (Kashiwara).
2904
2905         * char-ucs.h (char_code_table): New type.
2906         (XCHAR_CODE_TABLE): New macro.
2907         (XSETCHAR_CODE_TABLE): New macro.
2908         (CHAR_CODE_TABLE_P): New macro.
2909         (GC_CHAR_CODE_TABLE_P): New macro.
2910         (struct Lisp_Char_Code_Table): New structure.
2911
2912 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2913
2914         * mule-charset.c (Fmake_charset): Setup byte_offset for
2915         {94|96}^n-set.
2916
2917 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2918
2919         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2920         character.
2921
2922 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2923
2924         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2925         is found.
2926
2927 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2928
2929         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2930         charset, it is regarded as a charset.
2931         (put_char_attribute): New function in UTF-2000.
2932         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2933         charset, mapping-table of the charset is modified.
2934         (Fdefine_char): New function in UTF-2000.
2935         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2936         `Fput_char_attribute'.
2937         (syms_of_mule_charset): Add new function `define-char' and new
2938         symbol `ucs' in UTF-2000.
2939         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2940
2941 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2942
2943         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2944         non-UTF-2000 configuration.
2945
2946 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2947
2948         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2949         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2950
2951         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2952         deleted.
2953         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2954         (Fset_charset_mapping_table): Likewise.
2955
2956         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2957         (CHARSET_ENCODING_TABLE): Delete.
2958         (XCHARSET_ENCODING_TABLE): Delete.
2959         (charset_code_point): New interface.
2960
2961 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2962
2963         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2964         instead of `charset_get_byte1' and `charset_get_byte2'.
2965
2966         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2967         (charset_get_byte2): Deleted.
2968
2969 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2970
2971         * char-ucs.h (SPLIT_CHAR): New inline function.
2972         (breakup_char_1): Use `SPLIT_CHAR'.
2973
2974         * mule-charset.c (range_charset_code_point): New function.
2975         (charset_code_point): New function.
2976
2977         * char-ucs.h (range_charset_code_point): New interface.
2978         (breakup_char_1): Use `range_charset_code_point'.
2979
2980 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2981
2982         * mule-charset.c (Fmake_charset): Delete unused local variable
2983         `code_offset'.
2984
2985         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2986         (breakup_char_1): Find a charset and code-point in
2987         `Vcharacter_attribute_table'.
2988
2989 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2990
2991         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2992         to 0.10 (Yao).
2993
2994 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2995
2996         * mule-charset.c (Vcharacter_attribute_table): New variable.
2997         (Fchar_attribute_alist): New function.
2998         (Fget_char_attribute): New function.
2999         (Fput_char_attribute): New function.
3000         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3001         too.
3002         (syms_of_mule_charset): Add new function `char-attribute-alist',
3003         `get-char-attribute' and `put-char-attribute'.
3004         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3005
3006 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3007
3008         * mule-charset.c (Fmake_charset): Just use
3009         `get_unallocated_leading_byte'.
3010
3011         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3012         sets; don't use final-byte based number for private sets.
3013
3014 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3015
3016         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3017         integer.
3018
3019 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3020
3021         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3022         to 0.9.
3023
3024 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3025
3026         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3027         of `CHAR_LEADING_BYTE' in UTF-2000.
3028
3029         * insdel.c (find_charsets_in_bufbyte_string): Use
3030         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3031         (find_charsets_in_emchar_string): Likewise.
3032
3033         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3034         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3035
3036         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3037         (CHAR_CHARSET_ID): New macro.
3038
3039 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3040
3041         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3042         charset-id - MIN_LEADING_BYTE.
3043         (put_char_table): Likewise.
3044
3045 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3046
3047         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3048         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3049         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3050         (CHARSET_ID_OFFSET): New macro.
3051         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3052         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3053         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3054         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3055         4).
3056         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3057         5).
3058         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3059         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3060         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3061         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3062         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3063
3064 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3065
3066         * mule-charset.c (next_allocated_leading_byte): New variable in
3067         UTF-2000.
3068         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3069         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3070         (get_unallocated_leading_byte): Simply use
3071         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3072         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3073         UTF-2000.
3074
3075         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3076         (MAX_LEADING_BYTE_PRIVATE): New macro.
3077         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3078         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3079
3080 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3081
3082         * mule-charset.c (Fmake_charset): Allocate final-byte based
3083         charset-id for 94-set, 96-set and 94x94-set.
3084
3085 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3086
3087         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3088         ambiguous `else'.
3089         (Fmake_charset): Likewise.
3090         (complex_vars_of_mule_charset): Modify the font registry of
3091         `ucs-bmp' not to match `Ethiopic-Unicode'.
3092
3093 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3094
3095         * mule-charset.c (complex_vars_of_mule_charset): Add font
3096         registory of `ucs-bmp'.
3097
3098 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3099
3100         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3101         coded-charsets in `default-coded-charset-priority-list' when
3102         breaking up a character.
3103
3104         * mule-charset.c (Vcharset_latin_viscii): New variable.
3105         (Qlatin_viscii): New variable.
3106         (make_charset): Don't use `decoding_table'.
3107         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3108         byte_offset.
3109         (Fset_charset_mapping_table): New implementation.
3110         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3111         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3112         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3113         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3114         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3115         charset `latin_viscii'.
3116
3117         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3118         (CHARSET_TYPE_94X94): Change to 1 from 2.
3119         (CHARSET_TYPE_96): Change to 2 from 1.
3120         (CHARSET_TYPE_128): New macro.
3121         (CHARSET_TYPE_128X128): Change to 5 from 4.
3122         (CHARSET_TYPE_256): New macro.
3123         (CHARSET_TYPE_256X256): Change to 7 from 5.
3124         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3125
3126 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3127
3128         * text-coding.c (char_encode_shift_jis): Refer
3129         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3130         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3131
3132         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3133         (char_byte_table_equal): New function in UTF-2000.
3134         (char_byte_table_hash): New function in UTF-2000.
3135         (char_byte_table_description): New constant in UTF-2000.
3136         (char_byte_table): New type in UTF-2000.
3137         (make_char_byte_table): New function in UTF-2000.
3138         (copy_char_byte_table): New function in UTF-2000.
3139         (make_char_code_table): New macro in UTF-2000.
3140         (get_char_code_table): New function in UTF-2000.
3141         (put_char_code_table): New function in UTF-2000.
3142         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3143         (charset_description): Add setting in UTF-2000.
3144         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3145         `CHARSET_TO_BYTE1_TABLE(cs)'.
3146         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3147         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3148         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3149         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3150         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3151         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3152         `CHARSET_TO_BYTE2_TABLE(cs)'.
3153
3154         * char-ucs.h (char_byte_table): New type.
3155         (XCHAR_BYTE_TABLE): New macro.
3156         (XSETCHAR_BYTE_TABLE): New macro.
3157         (CHAR_BYTE_TABLE_P): New macro.
3158         (GC_CHAR_BYTE_TABLE_P): New macro.
3159         (struct Lisp_Char_Byte_Table): New structure.
3160         (get_char_code_table): New interface.
3161         (Emchar_to_byte_table): Deleted.
3162         (get_byte_from_character_table): Deleted.
3163         (struct Lisp_Charset): Add `encoding_table'; delete
3164         `to_byte1_table' and `to_byte2_table'.
3165         (CHARSET_ENCODING_TABLE): New macro.
3166         (CHARSET_TO_BYTE1_TABLE): Deleted.
3167         (CHARSET_TO_BYTE2_TABLE): Deleted.
3168         (XCHARSET_ENCODING_TABLE): New macro.
3169         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3170         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3171
3172 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3173
3174         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3175         `vietnamese-viscii-*'.
3176
3177 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3178
3179         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3180         (Qvietnamese_viscii_upper): New variable.
3181         (Fdefine_charset_alias): New function.
3182         (syms_of_mule_charset): Add new function `define-charset-alias'.
3183         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3184         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3185         `latin-viscii-*'.
3186
3187 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3188
3189         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3190         (MAX_CHAR_OBS_94x94): New macro.
3191         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3192         for 94x94 sets.
3193
3194         * mule-charset.c (put_byte_from_character_table): Change unit size
3195         from 128 to 256.
3196         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3197         not defined.
3198         (Fmake_reverse_direction_charset): Modify dummy argument of
3199         `make_charset' for non-UTF-2000 environment.
3200
3201 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3202
3203         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3204
3205         * mule-charset.c (destroy_byte_from_character_table): New macro.
3206         (latin_jisx0201_to_ucs): Deleted.
3207         (latin_iso8859_2_to_ucs): Deleted.
3208         (latin_iso8859_3_to_ucs): Deleted.
3209         (latin_iso8859_4_to_ucs): Deleted.
3210         (latin_iso8859_9_to_ucs): Deleted.
3211         (latin_viscii_lower_to_ucs): Deleted.
3212         (latin_viscii_upper_to_ucs): Deleted.
3213         (mark_charset): Mark `cs->decoding_table'.
3214         (Fcharset_mapping_table): Fix DOC-string.
3215         (Fset_charset_mapping_table): New function.
3216         (syms_of_mule_charset): Add nwe function
3217         `set-charset-mapping-table'.
3218         (complex_vars_of_mule_charset): Don't setup and use
3219         `latin_*_to_ucs'.
3220
3221 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3222
3223         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3224         charset.
3225
3226 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3227
3228         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3229         (Vcharset_katakana_jisx0208): New variable.
3230         (Qhiragana_jisx0208): New variable.
3231         (Qkatakana_jisx0208): New variable.
3232         (make_charset): Add new argument `byte_offset'.
3233         (charset_get_byte1): Modify for new coded-charset definition; use
3234         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3235         `XCHARSET_BYTE_OFFSET'.
3236         (Fmake_charset): Modify for `make_charset'.
3237         (Fmake_reverse_direction_charset): Likewise.
3238         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3239         `katakana-jisx0208'.
3240         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3241         `.'  in font registry of charset `katakana-jisx0201',
3242         `latin-jisx0201', `vietnamese-viscii-lower' and
3243         `vietnamese-viscii-upper'; modify DOC-string of charset
3244         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3245         registry of charset `japanese-jisx0208' not to use font for JIS
3246         X0208:1990; add new charset `hiragana-jisx0208' and
3247         `katakana-jisx0208'.
3248
3249         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3250         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3251         (struct Lisp_Charset): Add `byte_offset'.
3252         (CHARSET_BYTE_OFFSET): New macro.
3253         (XCHARSET_UCS_MIN): New macro.
3254         (XCHARSET_UCS_MAX): New macro.
3255         (XCHARSET_CODE_OFFSET): New macro.
3256         (XCHARSET_BYTE_OFFSET): New macro.
3257         (MIN_CHAR_HIRAGANA): New macro.
3258         (MAX_CHAR_HIRAGANA): New macro.
3259         (MIN_CHAR_KATAKANA): New macro.
3260         (MAX_CHAR_KATAKANA): New macro.
3261         (MAKE_CHAR): Modify for new coded-charset definition; use
3262         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3263         `XCHARSET_BYTE_OFFSET'.
3264
3265 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3266
3267         * mule-charset.c (CHAR96): Deleted.
3268         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3269         <Lisp_Object>.
3270         (latin_iso8859_2_to_ucs): Likewise.
3271         (latin_iso8859_3_to_ucs): Likewise.
3272         (latin_iso8859_4_to_ucs): Likewise.
3273         (latin_iso8859_9_to_ucs): Likewise.
3274         (latin_viscii_lower_to_ucs): Likewise.
3275         (latin_viscii_upper_to_ucs): Likewise.
3276         (latin_tcvn5712_to_ucs): Commented out.
3277         (make_charset): Change type of argument `decoding_table' from
3278         <Emchar*> to <Lisp_Object> [vector of characters].
3279         (Fmake_charset): Modify for `make_charset'.
3280         (Fmake_reverse_direction_charset): Likewise.
3281         (Fcharset_mapping_table): New function in UTF-2000.
3282         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3283         UTF-2000.
3284         (complex_vars_of_mule_charset): Modify for type change of
3285         `*_to_ucs'; modify for `make_charset'.
3286
3287         * char-ucs.h (struct Lisp_Charset): Change type of
3288         `decoding_table' from <Emchar*> to <Lisp_Object>.
3289         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3290
3291 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3292
3293         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3294         error with non-UTF-2000-Mule.
3295
3296 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3297
3298         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3299         in lisp again].
3300         (Vcharset_chinese_cns11643_4): Likewise.
3301         (Vcharset_chinese_cns11643_5): Likewise.
3302         (Vcharset_chinese_cns11643_6): Likewise.
3303         (Vcharset_chinese_cns11643_7): Likewise.
3304         (Qchinese_cns11643_3): Likewise.
3305         (Qchinese_cns11643_4): Likewise.
3306         (Qchinese_cns11643_5): Likewise.
3307         (Qchinese_cns11643_6): Likewise.
3308         (Qchinese_cns11643_7): Likewise.
3309         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3310         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3311         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3312         (complex_vars_of_mule_charset): Likewise.
3313
3314 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3315
3316         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3317         96-set.
3318         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3319         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3320
3321 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3322
3323         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3324         0xFF60.
3325         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3326         (breakup_char_1): Likewise.
3327
3328         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3329         one of them includes the specified character.
3330
3331 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3332
3333         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3334
3335 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3336
3337         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3338
3339 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3340
3341         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3342         definition for non-UTF-2000 Mule.
3343         (latin_iso8859_3_to_ucs): Likewise.
3344         (latin_iso8859_4_to_ucs): Likewise.
3345         (latin_iso8859_9_to_ucs): Likewise.
3346         (latin_jisx0201_to_ucs): Likewise.
3347         (MIN_CHAR_THAI): Likewise.
3348         (MAX_CHAR_THAI): Likewise.
3349         (MIN_CHAR_GREEK): Likewise.
3350         (MAX_CHAR_GREEK): Likewise.
3351         (MIN_CHAR_HEBREW): Likewise.
3352         (MAX_CHAR_HEBREW): Likewise.
3353         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3354         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3355         (MIN_CHAR_CYRILLIC): Likewise.
3356         (MAX_CHAR_CYRILLIC): Likewise.
3357
3358 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3359
3360         * char-ucs.h (breakup_char_1): Use
3361         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3362         thai-tis620 and katakana-jisx0201 area.
3363
3364 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3365
3366         * char-ucs.h (breakup_char_1): Use
3367         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3368         area.
3369
3370         * text-coding.c (reset_encoding_stream): Fixed.
3371         (char_encode_ucs4): Delete `& 255'.
3372
3373         * char-ucs.h (breakup_char_1): Use
3374         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3375
3376 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3377
3378         * file-coding.c (Fmake_coding_system): Don't set up
3379         `codesys->fixed.size'.
3380         (encode_coding_no_conversion): Don't refer
3381         `str->codesys->fixed.size'.
3382
3383 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3384
3385         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3386         (latin_a_char_to_byte1): Deleted.
3387         (latin_a_char_to_byte2): Deleted.
3388
3389 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3390
3391         * mule-charset.c (make_charset): Add new argument `ucs_min',
3392         `ucs_max' and `code_offset'.
3393         (charset_get_byte1): New implementation [delete specific charset
3394         depended implementations].
3395         (Fmake_charset): Modify for `make_charset'.
3396         (Fmake_reverse_direction_charset): Likewise.
3397         (complex_vars_of_mule_charset): Likewise.
3398
3399         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3400         `code_offset'.
3401         (CHARSET_UCS_MIN): New macro.
3402         (CHARSET_UCS_MAX): New macro.
3403         (CHARSET_CODE_OFFSET): New macro.
3404         (MAKE_CHAR): Delete charset depended definitions [except
3405         katakana-jisx0201].
3406
3407 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3408
3409         * char-ucs.h (breakup_char_1): Use
3410         `Vdefault_coded_charset_priority_list' for C0-Controls,
3411         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3412
3413 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3414
3415         * char-ucs.h (charset_get_byte1): New function.
3416         (XCHARSET_GET_BYTE1): Deleted.
3417         (charset_get_byte2): New function.
3418         (XCHARSET_GET_BYTE2): Deleted.
3419         (Vdefault_coded_charset_priority_list): New external variable.
3420         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3421         `Vdefault_preferred_coded_charset_list'.
3422
3423         * mule-charset.c (charset_get_byte1): New function.
3424         (charset_get_byte2): New function.
3425         (Vdefault_coded_charset_priority_list): New variable.
3426         (vars_of_mule_charset): Add new variable
3427         `default-coded-charset-priority-list'.
3428
3429 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3430
3431         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3432         (XCHARSET_GET_BYTE2): New inline function.
3433         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3434         `XCHARSET_GET_BYTE2'.
3435
3436 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3437
3438         * mule-charset.c (make_charset): Initialize
3439         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3440         NULL if table is not defined.
3441
3442 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3443
3444         * text-coding.c (char_encode_shift_jis): Use
3445         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3446         `ucs_to_latin_jisx0201'.
3447
3448         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3449         (ucs_to_latin_iso8859_2): Deleted.
3450         (ucs_to_latin_iso8859_3): Deleted.
3451         (ucs_to_latin_iso8859_4): Deleted.
3452         (ucs_to_latin_iso8859_9): Deleted.
3453         (ucs_to_latin_viscii_lower): Deleted.
3454         (ucs_to_latin_viscii_upper): Deleted.
3455         (ucs_to_latin_tcvn5712): Deleted.
3456         (make_charset): Add new argument `decoding_table'; set up
3457         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3458         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3459         `decoding_table' is defined in UTF-2000.
3460         (Fmake_charset): Modify for `make_charset'.
3461         (Fmake_reverse_direction_charset): Likewise.
3462         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3463         and `GENERATE_96_SET'.
3464
3465         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3466         (ucs_to_latin_jisx0201): Deleted.
3467         (latin_iso8859_2_to_ucs): Deleted.
3468         (ucs_to_latin_iso8859_2): Deleted.
3469         (latin_iso8859_3_to_ucs): Deleted.
3470         (ucs_to_latin_iso8859_3): Deleted.
3471         (latin_iso8859_4_to_ucs): Deleted.
3472         (ucs_to_latin_iso8859_4): Deleted.
3473         (latin_iso8859_9_to_ucs): Deleted.
3474         (ucs_to_latin_iso8859_9): Deleted.
3475         (latin_viscii_lower_to_ucs): Deleted.
3476         (ucs_to_latin_viscii_lower): Deleted.
3477         (latin_viscii_upper_to_ucs): Deleted.
3478         (ucs_to_latin_viscii_upper): Deleted.
3479         (struct Lisp_Charset): Renamed `encoding_table' to
3480         `to_byte1_table'; add `to_byte2_table'.
3481         (CHARSET_DECODING_TABLE): New macro.
3482         (CHARSET_TO_BYTE1_TABLE): New macro.
3483         (CHARSET_TO_BYTE2_TABLE): New macro.
3484         (XCHARSET_DECODING_TABLE): New macro.
3485         (XCHARSET_TO_BYTE1_TABLE): New macro.
3486         (XCHARSET_TO_BYTE2_TABLE): New macro.
3487         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3488         tables.
3489         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3490         don't use `ucs_to_*' tables.
3491
3492 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3493
3494         * text-coding.c (Fmake_coding_system): Don't set up
3495         `codesys->fixed.size'.
3496         (encode_coding_no_conversion): Use `if' instead of `switch'.
3497
3498         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3499
3500 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3501
3502         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3503         (Fmake_charset): Modify for `make_charset'.
3504         (Fmake_reverse_direction_charset): Likewise.
3505         (complex_vars_of_mule_charset): Likewise.
3506
3507 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3508
3509         * text-coding.c (char_encode_shift_jis): Use table
3510         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3511
3512 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3513
3514         * text-coding.c (text_encode_generic): Use `if' instead of
3515         `switch'.
3516         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3517         decode JIS-Latin.
3518
3519 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3520
3521         * text-coding.c (encode_coding_sjis): Deleted.
3522         (char_encode_shift_jis): New function.
3523         (char_finish_shift_jis): New function.
3524         (reset_encoding_stream): Set up `encode_char' and `finish' for
3525         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3526         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3527         (char_encode_utf8): Treat `eol_type'.
3528
3529 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3530
3531         * file-coding.c (decode_coding_iso2022): Use
3532         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3533
3534 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3535
3536         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3537         to 0.7 (Hirano).
3538
3539 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3540
3541         * char-lb.h (CHAR_COLUMNS): New macro.
3542
3543 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3544
3545         * text-coding.c (char_encode_ucs4): New function.
3546         (char_finish_ucs4): New function.
3547         (encode_coding_ucs4): Deleted.
3548         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3549         (text_encode_generic): Delete local variable `charset' and `half'.
3550         (ucs_to_mule_table): Deleted.
3551         (mule_to_ucs_table): Deleted.
3552         (Fset_ucs_char): Deleted.
3553         (ucs_to_char): Deleted.
3554         (Fucs_char): Deleted.
3555         (Fset_char_ucs): Deleted.
3556         (Fchar_ucs): Deleted.
3557         (decode_ucs4): Deleted.
3558         (mule_char_to_ucs4): Deleted.
3559         (encode_ucs4): Deleted.
3560         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3561         (decode_coding_utf8): Likewise.
3562         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3563         (char_encode_iso2022): Fixed.
3564         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3565         `Fset_char_ucs' and `Fchar_ucs'.
3566         (complex_vars_of_file_coding): Don't initialize
3567         `ucs_to_mule_table'.
3568
3569         * objects-tty.c (tty_initialize_font_instance): Don't use
3570         `XCHARSET_COLUMNS'.
3571
3572         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3573         UTF-2000.
3574
3575         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3576         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3577
3578         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3579         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3580         (emchar_string_displayed_columns): Likewise.
3581
3582         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3583         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3584         (string_column_at_point): Likewise.
3585         (Fmove_to_column): Likewise.
3586
3587         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3588         `encoding_table' and `decoding_table'.
3589         (CHARSET_REP_BYTES): Deleted.
3590         (XCHARSET_REP_BYTES): Deleted.
3591         (XCHARSET_COLUMNS): Deleted.
3592         (CHAR_COLUMNS): New macro.
3593         (lookup_composite_char): Deleted unconditionally.
3594         (composite_char_string): Likewise.
3595
3596 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3597
3598         * char-ucs.h (Emchar_to_byte_table): New type.
3599         (get_byte_from_character_table): New function interface.
3600         (Vcharset_latin_jisx0201): New variable.
3601         (latin_jisx0201_to_ucs): New variable.
3602         (ucs_to_latin_jisx0201): New variable.
3603         (Vcharset_latin_iso8859_2): New variable.
3604         (latin_iso8859_2_to_ucs): New variable.
3605         (ucs_to_latin_iso8859_2): New variable.
3606         (Vcharset_latin_iso8859_3): New variable.
3607         (latin_iso8859_3_to_ucs): New variable.
3608         (ucs_to_latin_iso8859_3): New variable.
3609         (Vcharset_latin_iso8859_4): New variable.
3610         (latin_iso8859_4_to_ucs): New variable.
3611         (ucs_to_latin_iso8859_4): New variable.
3612         (Vcharset_latin_iso8859_9): New variable.
3613         (latin_iso8859_9_to_ucs): New variable.
3614         (ucs_to_latin_iso8859_9): New variable.
3615         (Vcharset_latin_viscii_lower): New variable.
3616         (latin_viscii_lower_to_ucs): New variable.
3617         (ucs_to_latin_viscii_lower): New variable.
3618         (Vcharset_latin_viscii_upper): New variable.
3619         (latin_viscii_upper_to_ucs): New variable.
3620         (ucs_to_latin_viscii_upper): New variable.
3621         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3622         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3623         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3624         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3625         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3626         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3627         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3628         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3629         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3630         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3631
3632         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3633         (Vcharset_latin_viscii_upper): New variable.
3634         (make_byte_from_character_table): New function.
3635         (put_byte_from_character_table): New function.
3636         (get_byte_from_character_table): New function.
3637         (CHAR96): New macro.
3638         (ucs_to_latin_jisx0201): New variable.
3639         (latin_jisx0201_to_ucs): New variable.
3640         (ucs_to_latin_iso8859_2): New variable.
3641         (latin_iso8859_2_to_ucs): New variable.
3642         (ucs_to_latin_iso8859_3): New variable.
3643         (latin_iso8859_3_to_ucs): New variable.
3644         (ucs_to_latin_iso8859_4): New variable.
3645         (latin_iso8859_4_to_ucs): New variable.
3646         (ucs_to_latin_iso8859_9): New variable.
3647         (latin_iso8859_9_to_ucs): New variable.
3648         (ucs_to_latin_viscii_lower): New variable.
3649         (latin_viscii_lower_to_ucs): New variable.
3650         (ucs_to_latin_viscii_upper): New variable.
3651         (latin_viscii_upper_to_ucs): New variable.
3652         (ucs_to_latin_tcvn5712): New variable.
3653         (latin_tcvn5712_to_ucs): New variable.
3654         (Qlatin_viscii_lower): New variable.
3655         (Qlatin_viscii_upper): New variable.
3656         (syms_of_mule_charset): Set up new symbol
3657         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3658         (complex_vars_of_mule_charset): Set up new charset
3659         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3660         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3661         `ucs_to_<CHARSET>' tables.
3662
3663 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3664
3665         * text-coding.c: New file.
3666
3667 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3668
3669         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3670
3671         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3672         (MAKE_CHAR): Modify for `ucs-bmp'.
3673         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3674         non-MULE characters of BMP.
3675
3676 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3677
3678         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3679         to 0.6.
3680
3681 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3682
3683         * lstream.h:
3684         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3685         - Include character.h for `CHAR_ASCII_P'.
3686
3687         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3688
3689         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3690         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3691
3692         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3693         (BYTE_C0_P): Likewise.
3694         (BYTE_C1_P): Likewise.
3695         (Lstream_get_emchar_1): Likewise.
3696         (Lstream_fput_emchar): Likewise.
3697         (Lstream_funget_emchar): Likewise.
3698         (copy_internal_to_external): Likewise.
3699         (copy_external_to_internal): Likewise.
3700
3701         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3702         (BYTE_C0_P): Likewise.
3703         (BYTE_C1_P): Likewise.
3704         (Lstream_get_emchar_1): Likewise.
3705         (Lstream_fput_emchar): Likewise.
3706         (Lstream_funget_emchar): Likewise.
3707         (copy_internal_to_external): Likewise.
3708         (copy_external_to_internal): Likewise.
3709
3710         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3711         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3712
3713         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3714         (BYTE_ASCII_P): Moved to mb-1byte.h.
3715
3716 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3717
3718         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3719
3720         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3721         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3722         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3723         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3724         (VALIDATE_CHARPTR_FORWARD): Likewise.
3725         (simple_charptr_emchar): Moved to mb-multibyte.h.
3726         (simple_set_charptr_emchar): Likewise.
3727         (simple_charptr_copy_char): Likewise.
3728         (non_ascii_charptr_emchar): Likewise.
3729         (non_ascii_set_charptr_emchar): Likewise.
3730         (non_ascii_charptr_copy_char): Likewise.
3731         (charptr_emchar): Moved to mb-*byte.h.
3732         (set_charptr_emchar): Likewise.
3733         (charptr_copy_char): Likewise.
3734
3735         * mb-1byte.h, mb-multibyte.h: New files.
3736
3737 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3738
3739         * mb-utf-8.h (MULTIBYTE): New macro.
3740         (MAX_EMCHAR_LEN): Moved from buffer.h.
3741         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3742
3743         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3744
3745         * mb-lb.h, multibyte.h: New files.
3746
3747         * char-1byte.h (Charset_ID): Moved from buffer.h.
3748         (MIN_LEADING_BYTE): Likewise.
3749         (LEADING_BYTE_ASCII): Likewise.
3750         (NUM_LEADING_BYTES): Likewise.
3751         (CHARSETP): Likewise.
3752         (CHARSET_BY_LEADING_BYTE): Likewise.
3753         (XCHARSET_LEADING_BYTE): Likewise.
3754         (XCHARSET_GRAPHIC): Likewise.
3755         (XCHARSET_COLUMNS): Likewise.
3756         (XCHARSET_DIMENSION): Likewise.
3757         (CHAR_CHARSET): Likewise.
3758         (CHAR_LEADING_BYTE): Likewise.
3759         (BREAKUP_CHAR): Likewise.
3760         (Vcharset_ascii): Likewise.
3761
3762         * buffer.h: Include multibyte.h unconditionally.
3763         (VALID_CHARPTR_P): Moved to multibyte.h.
3764         (ASSERT_VALID_CHARPTR): Likewise.
3765         (REAL_INC_CHARPTR): Likewise.
3766         (REAL_INC_CHARBYTIND): Likewise.
3767         (REAL_DEC_CHARPTR): Likewise.
3768         (INC_CHARPTR): Likewise.
3769         (INC_CHARBYTIND): Likewise.
3770         (DEC_CHARPTR): Likewise.
3771         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3772         (VALIDATE_CHARPTR_FORWARD): Likewise.
3773         (charptr_n_addr): Likewise.
3774         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3775         (simple_charptr_emchar): Moved to multibyte.h.
3776         (simple_set_charptr_emchar): Likewise.
3777         (simple_charptr_copy_char): Likewise.
3778         (non_ascii_charptr_emchar): Likewise.
3779         (non_ascii_set_charptr_emchar): Likewise.
3780         (non_ascii_charptr_copy_char): Likewise.
3781         (charptr_emchar): Likewise.
3782         (set_charptr_emchar): Likewise.
3783         (charptr_copy_char): Likewise.
3784         (charptr_emchar_n): Likewise.
3785         (Charset_ID): Moved to char-1byte.h.
3786         (Vcharset_ascii): Likewise.
3787         (CHAR_CHARSET): Likewise.
3788         (CHAR_LEADING_BYTE): Likewise.
3789         (LEADING_BYTE_ASCII): Likewise.
3790         (NUM_LEADING_BYTES): Likewise.
3791         (MIN_LEADING_BYTE): Likewise.
3792         (CHARSETP): Likewise.
3793         (CHARSET_BY_LEADING_BYTE): Likewise.
3794         (XCHARSET_LEADING_BYTE): Likewise.
3795         (XCHARSET_GRAPHIC): Likewise.
3796         (XCHARSET_COLUMNS): Likewise.
3797         (XCHARSET_DIMENSION): Likewise.
3798         (BREAKUP_CHAR): Likewise.
3799
3800 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3801
3802         * character.h: Add document about interface for characters.
3803
3804         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3805         (MAKE_CHAR): Delete comment about
3806         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3807         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3808         (BREAKUP_CHAR): Modify name of arguments.
3809         (CHAR_CHARSET): Modify name of argument.
3810
3811         * buffer.h: Delete document about Emchar accessors.
3812
3813 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3814
3815         * character.h (CHAR_INTP): Moved from buffer.h
3816         (CHAR_OR_CHAR_INTP): Likewise.
3817         (XCHAR_OR_CHAR_INT): Likewise.
3818         (CHECK_CHAR_COERCE_INT): Likewise.
3819
3820         * buffer.h (CHAR_INTP): Moved to character.h
3821         (CHAR_OR_CHAR_INTP): Likewise.
3822         (XCHAR_OR_CHAR_INT): Likewise.
3823         (CHECK_CHAR_COERCE_INT): Likewise.
3824
3825 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3826
3827         * character.h:
3828         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3829         - Include char-1byte.h, char-lb.h or char-ucs.h.
3830
3831         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3832
3833         * buffer.h: Include character unconditionally.
3834         (valid_char_p): Moved to char-*.h.
3835         (non_ascii_valid_char_p): Moved to char-lb.h.
3836
3837         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3838
3839 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3840
3841         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3842         in UTF-2000 because it is not ported yet and not to use
3843         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3844         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3845         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3846
3847         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3848         (CHAR_ASCII_P): Moved from character.h.
3849
3850         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3851         (CHAR_ASCII_P): Likewise.
3852         (CHAR_FIELD1_MASK): Deleted.
3853         (CHAR_FIELD2_MASK): Deleted.
3854         (CHAR_FIELD3_MASK): Deleted.
3855         (MAX_CHAR_BASIC_LATIN): New macro.
3856         (CHAR_FIELD1): Deleted.
3857         (CHAR_FIELD2_INTERNAL): Deleted.
3858         (CHAR_FIELD3_INTERNAL): Deleted.
3859         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3860         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3861         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3862         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3863         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3864         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3865         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3866         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3867         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3868         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3869         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3870         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3871         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3872         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3873         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3874         (MIN_CHAR_COMPOSITION): Deleted.
3875         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3876         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3877
3878 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3879
3880         * buffer.h: Include mb-utf-8.h in UTF-2000.
3881
3882         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3883
3884         * mb-utf-8.h: New file.
3885
3886 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3887
3888         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3889         instead of `int'.
3890
3891         * mule-charset.h, buffer.h (Charset_ID): New type.
3892
3893 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3894
3895         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3896         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3897         instead of `MULE_CHAR_PRIVATE_OFFSET',
3898         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3899         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3900         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3901
3902         * character.h (Vcharset_japanese_jisx0212): New variable
3903         definition.
3904
3905 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3906
3907         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3908         (charset_by_attributes): Delete array about direction.
3909         (latin_a_char_to_charset): New variable in UTF-2000.
3910         (latin_a_char_to_byte1): New variable in UTF-2000.
3911         (latin_a_char_to_byte2): New variable in UTF-2000.
3912         (Qucs_bmp): New variable.
3913         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3914         `Bufbyte'.
3915         (next_allocated_2_byte_leading_byte): Likewise.
3916         (non_ascii_set_charptr_emchar): Likewise.
3917         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3918         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3919         `charset_by_attributes'.
3920         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3921         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3922         and `CHARSET_BY_LEADING_BYTE'.
3923         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3924         `utf-2000-version' to `vars_of_mule_charset'.
3925         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3926         define `leading-code-private-11' in UTF-2000; move setting of
3927         `utf-2000-version' from `syms_of_mule_charset'.
3928         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3929         UTF-2000.
3930
3931         * character.h (Charset_ID): New type.
3932         (LEADING_BYTE_UCS_BMP): New macro.
3933         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3934         (CHARSET_ID_OFFSET_94): New macro.
3935         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3936         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3937         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3938         final-byte.
3939         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3940         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3941         (CHARSET_ID_OFFSET_96): New macro.
3942         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3943         CHARSET_ID_OFFSET_96 and final-byte.
3944         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3945         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3946         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3947         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3948         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3949         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3950         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3951         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3952         (LEADING_BYTE_THAI_TIS620): Likewise.
3953         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3954         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3955         (CHARSET_ID_OFFSET_94x94): New macro.
3956         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3957         CHARSET_ID_OFFSET_94x94 and final-byte.
3958         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3959         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3960         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3961         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3962         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3963         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3964         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3965         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3966         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3967         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3968         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3969         (CHARSET_TYPE_128X128): New macro.
3970         (CHARSET_TYPE_256X256): New macro.
3971         (XCHARSET_PRIVATE_P): Delete unconditionally.
3972         (charset_by_attributes): Delete array about direction.
3973         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3974         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3975         (MIN_CHAR_94): New macro.
3976         (MAX_CHAR_94): New macro.
3977         (MIN_CHAR_96): New macro.
3978         (MAX_CHAR_96): New macro.
3979         (MIN_CHAR_94x94): New macro.
3980         (MAX_CHAR_94x94): New macro.
3981         (MIN_CHAR_96x96): New macro.
3982         (MAX_CHAR_96x96): New macro.
3983         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3984         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3985         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3986         - 32)'.
3987         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3988         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3989         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3990         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3991         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3992         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3993         `XCHARSET_LEADING_BYTE' to make code-point.
3994         (latin_a_char_to_charset): New variable.
3995         (latin_a_char_to_byte1): New variable.
3996         (latin_a_char_to_byte2): New variable.
3997         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3998         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3999         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4000
4001         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4002         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4003         (find_charsets_in_emchar_string): Likewise.
4004         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4005
4006         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4007         `int'.
4008         (decode_coding_iso2022): Likewise.
4009
4010         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4011         of `unsigned char'.
4012
4013         * redisplay.c (redisplay_text_width_emchar_string): Use
4014         `Charset_ID' instead of `unsigned char'.
4015         (redisplay_frame_text_width_string): Likewise.
4016
4017         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4018         `unsigned char'.
4019
4020         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4021         instead of `unsigned char'.
4022         (face_cachel_charset_font_metric_info): Likewise.
4023
4024         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4025         (get_non_ascii_char_table_value): Likewise.
4026         (get_char_table): Likewise.
4027         (put_char_table): Likewise.
4028         (map_over_other_charset): Likewise.
4029         (map_char_table): Likewise.
4030
4031         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4032         instead of `unsigned char'.
4033
4034 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4035
4036         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4037         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4038
4039         * mule-charset.c (leading_code_private_11): Don't define in
4040         UTF-2000.
4041
4042         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4043         in UTF-2000 because it is not ported yet and not to use
4044         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4045
4046 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4047
4048         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4049
4050 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4051
4052         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4053         in UTF-2000.
4054
4055         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4056         of unsigned char to store leading-byte.
4057
4058         * chartab.c (get_non_ascii_char_table_value): Don't use
4059         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4060
4061         * file-coding.c (encode_coding_big5): Delete bogus implementation
4062         in UTF2000.
4063
4064         * character.h (LEADING_BYTE_*): Delete definition for
4065         non-UTF-2000.
4066         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4067         (LEADING_BYTE_PREFIX_P): Deleted.
4068         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4069         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4070         (BUFBYTE_LEADING_BYTE_P): Deleted.
4071         (CHARSET_PRIVATE_P): Deleted unconditionally.
4072         (rep_bytes_by_first_byte): Deleted unconditionally.
4073         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4074         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4075         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4076         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4077         (CHAR_FIELD2): Deleted.
4078         (CHAR_FIELD3): Deleted.
4079         (MAKE_CHAR): Delete definition for non-UTF-2000.
4080         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4081         (breakup_char_1): New implementation.
4082         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4083         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4084
4085 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4086
4087         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4088         condition.
4089
4090 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4091
4092         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4093         (CHARSET_PRIVATE_P): Likewise.
4094         (XCHARSET_PRIVATE_P): Likewise.
4095         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4096
4097         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4098         UTF2000.
4099         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4100
4101 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4102
4103         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4104         (NUM_LEADING_BYTES): Changed from 128 to 256.
4105         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4106         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4107         UTF2000.
4108         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4109
4110         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4111         UTF2000.
4112         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4113         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4114         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4115         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4116         (Qchinese_cns11643_3): New variable in UTF2000.
4117         (Qchinese_cns11643_4): New variable in UTF2000.
4118         (Qchinese_cns11643_5): New variable in UTF2000.
4119         (Qchinese_cns11643_6): New variable in UTF2000.
4120         (Qchinese_cns11643_7): New variable in UTF2000.
4121         (syms_of_mule_charset): Define `chinese-cns11643-3',
4122         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4123         and `chinese-cns11643-7' in UTF2000.
4124         (vars_of_mule_charset): Initialize
4125         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4126         + 1 in UTF2000.
4127         (complex_vars_of_mule_charset): Setup charset
4128         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4129         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4130
4131 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4132
4133         * mule-charset.c: Move setting for `leading-code-private-11' from
4134         `syms_of_mule_charset' to `vars_of_mule_charset'.
4135
4136 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4137
4138         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4139         and `NUM_LEADING_BYTES' in assert.
4140
4141 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4142
4143         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4144         instead of 128.
4145         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4146         `NUM_LEADING_BYTES' instead of 128.
4147
4148 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4149
4150         * mule-charset.h (charset_by_leading_byte): Use
4151         `NUM_LEADING_BYTES' instead of 128.
4152         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4153
4154         * mule-charset.c (charset_by_leading_byte): Use
4155         `NUM_LEADING_BYTES' instead of 128.
4156         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4157
4158         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4159         128.
4160
4161 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4162
4163         * mule-charset.c (syms_of_mule_charset): Update to
4164         0.4 (Shin-Imamiya).
4165
4166 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4167
4168         * file-coding.c (encode_coding_sjis): New implementation for
4169         UTF2000.  (decode_coding_sjis): Ditto.
4170
4171 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4172
4173         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4174         Don't define in UTF2000.
4175
4176         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4177         defined.
4178
4179         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4180         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4181         MULE.
4182
4183 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4184
4185         * config.h.in (CHAR_IS_UCS4): New macro.
4186
4187         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4188         conventional MULE representation.
4189         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4190
4191         * mule-charset.h: Reverted to original.
4192
4193         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4194         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4195         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4196
4197         * character.h: New file.
4198
4199         * file-coding.c (Fmake_coding_system): Set 1 to
4200         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4201         defined.
4202         (encode_coding_no_conversion): New implementation for UTF2000.
4203
4204         * file-coding.h (struct Lisp_Coding_System): Add new member
4205         `fixed.size'.
4206
4207 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4208
4209         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4210         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4211         (encode_coding_iso2022): New implementation for UTF2000.
4212
4213 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4214
4215         * mule-canna.c (c2mu): New implementation for UTF2000.
4216         (m2c): Likewise.
4217
4218 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4221
4222 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4223
4224         * file-coding.c (reset_encoding_stream): Set 0 to
4225         `str->iso2022.current_char_boundary' in UTF2000.
4226         (encode_utf8): Don't define in UTF2000.
4227         (encode_coding_utf8): New implementation for UTF-8 representation
4228         of UTF2000.
4229         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4230
4231 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4232
4233         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4234
4235         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4236         UTF2000.
4237         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4238
4239         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4240
4241         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4242         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4243         as UTF-8 in UTF2000.
4244         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4245         (non_ascii_valid_char_p): Don't define in UTF2000.
4246         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4247         (Lstream_get_emchar_1): Likewise.
4248         (utf-2000-version): New variable in UTF2000.
4249
4250         * lread.c (read_escape): Add new reader `u'.
4251
4252         * insdel.c (three_to_one_table): Don't define in UTF2000.
4253         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4254         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4255         UTF2000.
4256         (bytind_to_bufpos_func): Likewise.
4257         (buffer_mule_signal_inserted_region): Likewise.
4258         (vars_of_insdel): Don't initialize `three_to_one_table'.
4259         (init_buffer_text): Use `buf->text->mule_size' instead of
4260         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4261         UTF2000.
4262
4263         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4264         UTF-8 representation in UTF2000.
4265         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4266         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4267         (decode_coding_iso2022): Don't define local variable `lb' in
4268         UTF2000; don't use LEADING_BYTE in UTF2000; use
4269         `DECODE_ADD_UCS_CHAR' in UTF2000.
4270         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4271
4272         * config.h.in (UTF2000): New macro.
4273
4274         * buffer.h (struct buffer_text): Add new member `mule_size' and
4275         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4276         (valid_char_p): Return always 1 in UTF2000.
4277         (MAX_EMCHAR_LEN): 6 in UTF2000.
4278         (three_to_one_table): Don't define in UTF2000.
4279         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4280         UTF2000.
4281         (real_bytind_to_bufpos): Likewise.
4282
4283         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4284
4285 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4286
4287         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4288         representation change.
4289         (Vutf_2000_version): New variable.
4290         (leading_code_private_11): New variable.
4291         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4292         `leading-code-private-11'.
4293
4294         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4295         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4296         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4297         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4298         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4299         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4300         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4301         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4302         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4303         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4304         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4305         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4306         (MIN_CHAR_GREEK): New macro.
4307         (MAX_CHAR_GREEK): New macro.
4308         (MIN_CHAR_CYRILLIC): New macro.
4309         (MAX_CHAR_CYRILLIC): New macro.
4310         (MIN_CHAR_HEBREW): New macro.
4311         (MAX_CHAR_HEBREW): New macro.
4312         (MIN_CHAR_THAI): New macro.
4313         (MAX_CHAR_THAI): New macro.
4314         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4315         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4316         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4317         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4318         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4319         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4320         (CHAR_FIELD2): New inline function.
4321         (CHAR_FIELD3): New inline function.
4322         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4323         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4324         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4325         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4326         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4327         (MIN_CHAR_COMPOSITION): Likewise.
4328         (CHAR_LEADING_BYTE): Modified for character representation change.
4329         (MAKE_CHAR): Likewise.
4330
4331         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4332         (Vcharset_greek_iso8859_7): Likewise.
4333         (Vcharset_cyrillic_iso8859_5): Likewise.
4334         (Vcharset_hebrew_iso8859_8): Likewise.
4335         (Vcharset_thai_tis620): Likewise.
4336         (Vcharset_katakana_jisx0201): Likewise.
4337
4338 2001-02-23  Martin Buchholz <martin@xemacs.org>
4339
4340         * XEmacs 21.2.45 "Thelxepeia" is released.
4341
4342 2001-02-21  Martin Buchholz  <martin@xemacs.org>
4343
4344         * lisp-union.h (XSETINT): 
4345         (XSETCHAR):
4346         (XSETOBJ): 
4347         Reverse previous change of 2001-02-06.
4348
4349 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
4350
4351         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
4352         buffers.
4353         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
4354         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
4355         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
4356         * regex.c (POS_AS_IN_BUFFER): removed
4357         * regex.c (re_search_2):
4358         * regex.c (re_match_2):
4359         Don't use an offset of 1 when calculating buffer positions, since
4360         `BI_BUF_BEGV' does it already.
4361
4362 2001-02-18  Wim Dumon  <wim@easics.be>
4363
4364         * insdel.c (prepare_to_modify_buffer): Also check for
4365         supersession when clash-detection is enabled. 
4366
4367 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
4368
4369         * regex.c (re_match_2_internal):
4370         Convert temp characters from 'const unsigned char' to 're_char'.
4371         Fix crashing bug with extended characters under mule.
4372         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
4373         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
4374         font-lock, pdump, and new syntax-table code.
4375         * syntax.c (find_start_of_comment):
4376         (find_end_of_comment):
4377         (forward-comment):
4378         Fix crashing bugs involving moving beyond end of buffer.
4379         * syntax.c (find_start_of_comment):
4380         Fixed logic to allow proper detection of cases where the same
4381         character is used to end both a two-char comment start and a
4382         two-char comment end sequence. Fixes `(forward-comment -1)'.
4383         * syntax.c (find_start_of_comment):
4384         Return position just past last comment-end character for all cases
4385         (previously was only done for two-char comment-end sequences).
4386         * syntax.c (forward-comment):
4387         Take value returned from `find_end_of_comment', rather than
4388         incrementing it.
4389         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
4390         Properly deal with BUFFERP (syntax_cache.object)
4391
4392 2001-02-17  Martin Buchholz  <martin@xemacs.org>
4393
4394         * alloc.c (Fgarbage_collect): 
4395         * alloc.c (make_bit_vector_from_byte_vector):
4396         -Wsign-compare-correctness.
4397
4398 2001-02-16  Martin Buchholz  <martin@xemacs.org>
4399
4400         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
4401         (XSETCHAR): Likewise.
4402         (XSETOBJ): Likewise.
4403
4404 2001-02-15  Martin Buchholz  <martin@xemacs.org>
4405
4406         * mule-canna.c (canna-func-delete_previous): 
4407         Rename to canna-func-delete-previous.
4408
4409 2001-02-14  Martin Buchholz  <martin@xemacs.org>
4410
4411         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
4412
4413 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
4414
4415         * font-lock.c (find_context): Fix C++ compile errors introduced by
4416         recent patch
4417
4418 2001-02-13  Martin Buchholz  <martin@xemacs.org>
4419
4420         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
4421         pragma, but earlier ones barf on the same pragma.
4422
4423 2001-02-06  Mike Sperber <mike@xemacs.org>
4424
4425         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
4426         `configure-mule-lisp-directory'.
4427
4428 2001-02-12  Martin Buchholz  <martin@xemacs.org>
4429
4430         Make sure dump-id.c is compiled in the same way as other .c's.
4431         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
4432         * dump-id.h: Remove.
4433         * emacs.c: Move dump-id.h into dumper.h.
4434         * dumper.h: Move dump-id.h into dumper.h.
4435         * Makefile.in.in:
4436         Use standard .c.o rule for building dump-id.o.
4437         Remove preprocessor flags from link command.
4438         Add dump-id.o to ${otherobjs} if PDUMP.
4439
4440 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
4441
4442         Port FSF 20.7 syntax table improvements.
4443         * syntax.c.
4444         * syntax.h.
4445
4446         Fixups for new syntax table stuff.
4447         * dired.c: Include syntax.c.
4448         (Fdirectory_files): Initialize regex_match_object and
4449         regex_emacs_buffer.
4450         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
4451         and Fget_char_property.
4452
4453         Use ported FSF 20.7 syntax table improvements.
4454         * font-lock.c.
4455         * regex.c.
4456         * search.c.
4457         
4458 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4459
4460         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
4461         Unixware's enum boolean from sys/types.h.
4462
4463 2001-02-10  Martin Buchholz  <martin@xemacs.org>
4464
4465         Fix support for building with latest Purify.
4466         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
4467         (PURIFY_FLAGS): Likewise.
4468
4469 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4470
4471         * fileio.c (lisp_string_set_file_times): New.
4472         * fileio.c (Fcopy_file): Use it.
4473         Fixes bug:
4474         (copy-file filename non-ascii-filename t t)
4475         ==> No such file or directory, non-ascii-filename
4476
4477 2001-02-10  Martin Buchholz  <martin@xemacs.org>
4478
4479         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
4480         USHRT_MAX seems clearer than ~0 anyways.
4481
4482 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4483
4484         dumper improvements.  Inspired by Olivier.
4485         * dumper.c (pdump_max_align): New.
4486         * dumper.c (pdump_add_entry): Use pdump_max_align.
4487         * dumper.c (pdump_get_entry_list): Likewise.
4488         * dumper.c (pdump_scan_by_alignment): Likewise.
4489         Don't iterate through unnecessary alignments.
4490         * dumper.c (pdump_file_get): No need to align result of malloc().
4491         * dumper.c (pdump_mallocadr): Remove.  
4492         The result of malloc() is guaranteed to be maximally aligned.
4493         * dumper.c: s/elmt/elt/g;
4494         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
4495         * dumper.c (pdump_alert_undump_object): Likewise.
4496         * dumper.c (pdump_align_table): 
4497         Don't support alignments > 64.
4498         Store ALIGNOF's, not shift counts, in table.
4499
4500 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4501
4502         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
4503         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
4504         * systime.h: Use HAVE_UTIME.
4505         * sysdep.c (struct utimbuf): Remove.
4506         * sysdep.c (set_file_times): Prefer utime() to utimes().
4507         * config.h.in (HAVE_UTIME): New.
4508         * config.h.in (HAVE_UTIME_H): Remove.
4509         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
4510
4511 2001-02-09  Martin Buchholz  <martin@xemacs.org>
4512
4513         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
4514
4515 2001-02-08  Martin Buchholz  <martin@xemacs.org>
4516
4517         * s/irix6-0.h: Use the standard system memmove, not bcopy.
4518
4519 2001-02-08  Martin Buchholz <martin@xemacs.org>
4520
4521         * XEmacs 21.2.44 "Thalia" is released.
4522
4523 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4524
4525         Fixes crashes in kill-emacs on some systems.
4526         * process-unix.c (unix_kill_child_process):
4527         It's OK for kill() to fail with ESRCH.
4528
4529 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4530
4531         Contortions to make .gdbinit tricks work on most systems.
4532         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4533         * alloc.c (dbg_valmask): Make non-const.
4534         * alloc.c (dbg_typemask): Make non-const.
4535         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4536         * alloc.c (dbg_valbits): Make non-const.
4537         * alloc.c (dbg_gctypebits): Make non-const.
4538         * .gdbinit (decode_object): Make it work with AIX cc.
4539
4540 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4541
4542         * elhash.c (make_general_lisp_hash_table):
4543         Use simpler and more efficient calloc to clear entries.
4544
4545 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4546
4547         * window.c (window_scroll): Work around an AIX C compiler bug.
4548         Fixes 'scroll-up' does nothing problem with xlC.
4549
4550 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4551
4552         * .gdbinit: Remove obsolete comment.
4553
4554 2001-01-31  Mike Alexander  <mta@arbortext.com>
4555
4556         * select.c (Fown_selection_internal): Set owned_p for device
4557         method correctly.
4558
4559 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4560
4561         Port to g++ 2.97.
4562         "not" cannot be used as a macro name as it is an operator in C++
4563         * config.h.in: Stop #defining `not'.
4564         * chartab.c (check_category_char): not ==> not_p
4565         * chartab.h: Likewise.
4566         * regex.c (re_match_2_internal): Likewise.
4567
4568 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4569
4570         * lisp-disunion.h: Fix up comments.
4571
4572 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4573
4574         * keymap.c (define_key_check_and_coerce_keysym):
4575         (syms_of_keymap):
4576         Support mouse-6 and mouse-7 bindings in the obvious way.
4577
4578 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4579
4580         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4581
4582 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4583
4584         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4585         Previous patch missed DEFVAR_INT_MAGIC.
4586         Make sure future DEFVAR_foo use correct types.
4587         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4588         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4589         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4590         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4591         * (DEFVAR_INT): Likewise.
4592         * redisplay.c (vertical_clip): Should be of type Fixnum.
4593         * redisplay.c (horizontal_clip): Likewise.
4594         * lisp.h (dump_add_opaque_int): New.
4595         (dump_add_opaque_fixnum): New.
4596
4597 2001-01-29  Andy Piper  <andy@xemacs.org>
4598
4599         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4600         since they can be eval'ed
4601
4602 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4603
4604         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4605         Oops, XEmacs redefines `class'.  Use `typename' instead.
4606
4607 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4608
4609         * dumper.c: Fix C++ compile errors.
4610
4611 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4612
4613         * tparam.c: Use correct prototypes.
4614
4615 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4616
4617         * sysproc.h: #include util.h for NetBSD's openpty.
4618
4619 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4620
4621         More 64-bit correctness.
4622         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4623         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4624         Fix up comments.
4625         This finally finishes the 64-bit SGI port.
4626         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4627         * symbols.c: Fix up comments and type casts.
4628         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4629         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4630         * symeval.h (Fixnum): New type.
4631         * symeval.h (symbol_value_type): Fix up comment.
4632
4633         * commands.h:
4634         * nt.c:
4635         * emacs.c:
4636         * data.c:
4637         * redisplay.c:
4638         * abbrev.c:
4639         * dired-msw.c:
4640         * event-Xt.c:
4641         * eldap.c:
4642         * window.c:
4643         * sound.c:
4644         * event-stream.c:
4645         * eval.c:
4646         * buffer.c:
4647         * mule-canna.c: A million DEFVAR_INTs here...
4648         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4649         * extents.c:
4650         * cmdloop.c:
4651         * lisp.h:
4652         * select-x.c:
4653         * console-x.h:
4654         * event-msw.c:
4655         * mule-wnnfns.c:
4656         * hpplay.c:
4657         * ralloc.c:
4658         * alloc.c:
4659         * keymap.c:
4660         * profile.c:
4661         s/int/Fixnum/g in DEFVAR_INT declarations.
4662
4663 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4664
4665         Port pdump to SGI alignment-sensitive environment.
4666         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4667         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4668         properly aligned.
4669         Define and use aligned reading and writing macros.
4670         Use buffered stdio instead of posix i/o for faster dumping.
4671         Eliminate kludgy 256 byte space for header.
4672         Read and write from dump file using structs for alignment safety.
4673         * dumper.c (pdump_align_stream): New.
4674         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4675         * dumper.c (PDUMP_READ_ALIGNED): New.
4676         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4677         * dumper.c (pdump_static_Lisp_Object): New struct.
4678         * dumper.c (pdump_static_pointer): New struct.
4679         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4680         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4681         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4682         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4683
4684         * dumper.c (pdump_backtrace):
4685         * dumper.c (pdump_get_indirect_count):
4686         * dumper.c (pdump_register_object):
4687         * dumper.c (pdump_register_struct):
4688         * dumper.c (pdump_reloc_one):
4689         * dumper.c (pdump_scan_by_alignment):
4690         * dumper.c (pdump_dump_from_root_struct_ptrs):
4691         * dumper.c (pdump_dump_opaques):
4692         * dumper.c (pdump_dump_rtables):
4693         * dumper.c (pdump_dump_from_root_objects):
4694         * dumper.c (pdump):
4695         * dumper.c (pdump_load_finish):
4696         Use aligned reading and writing.
4697
4698         * dumper.c (pdump_free): Make static.
4699         * dumper.c (pdump_hFile): Likewise.
4700         * dumper.c (pdump_hMap): Likewise.
4701
4702 2001-01-26  Martin Buchholz <martin@xemacs.org>
4703
4704         * XEmacs 21.2.43 "Terspichore" is released.
4705
4706 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4707
4708         Type fiddling for window_config.saved_windows_count
4709         * window.c (struct window_config): 
4710         Make saved_windows_count member unsigned.
4711         * window.c (sizeof_window_config_for_n_windows): 
4712         Make parameter unsigned.
4713         * window.c (mark_window_config):
4714         * window.c (window_config_equal):
4715         * window.c (free_window_configuration):
4716         * window.c (Fset_window_configuration):
4717         * window.c (count_windows):
4718         * window.c (Fcurrent_window_configuration):
4719         * window.c (reinit_vars_of_window):
4720         Update all callers and users.
4721
4722 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4723
4724         Alignment correctness for flexible arrays.
4725         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4726         Make alignment-correct. Add interesting comments.
4727         * alloc.c (size_vector):
4728         * alloc.c (make_vector_internal):
4729         * alloc.c (make_bit_vector_internal):
4730         * alloc.c (sweep_bit_vectors_1):
4731         * fns.c (size_bit_vector):
4732         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4733         * window.c (sizeof_window_config_for_n_windows): 
4734         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4735
4736 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4737
4738         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4739
4740 2001-01-23  Andy Piper  <andy@xemacs.org>
4741
4742         * select.c (Fown_selection_internal): pass owned_p
4743
4744         * select-msw.c (mswindows_own_selection): New Signature.
4745
4746         * console.h (struct console_methods): add owned_p to
4747         _own_selection.
4748
4749         * select-x.c (x_own_selection): pass owned_p
4750         (hack_motif_clipboard_selection): use owned_p
4751         (vars_of_select_x): new variable -
4752         x_selection_strict_motif_ownership.
4753
4754 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4755
4756         * specifier.h (specifier_data_offset): Remove pointless parens.
4757         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4758
4759 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4760
4761         Make Lisp_Object sizeof methods be alignment-correct.
4762         pdump must restore objects to the same alignment as the C compiler
4763         assumes.  It really matters on SGIs.
4764         * lstream.c (aligned_sizeof_lstream): New.
4765         (sizeof_lstream): Use aligned_sizeof_lstream.
4766         (Lstream_new): Likewise.
4767         * opaque.c (aligned_sizeof_opaque): New.
4768         (sizeof_opaque): Use aligned_sizeof_opaque.
4769         (make_opaque): Likewise.
4770         * specifier.c (aligned_sizeof_specifier): New.
4771         (sizeof_specifier): Use aligned_sizeof_specifier.
4772         (make_specifier_internal): Likewise.
4773
4774 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4775
4776         * lstream.h (struct lstream): Use max_align_t for trailing data.
4777         * specifier.h (struct Lisp_Specifier): Likewise.
4778
4779 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4780
4781         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4782         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4783         (CCL_SUSPEND): Likewise.
4784         (CCL_INVALID_CMD): Likewise.
4785         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4786         (ccl_driver): Likewise.
4787         (CCL_WRITE_CHAR): Macro hygiene.
4788         (CCL_WRITE_STRING): Macro hygiene.
4789
4790 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4791
4792         Port "portable" dumper to SunOS 4 and HP-UX.
4793         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4794         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4795         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4796
4797 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4798
4799         * lisp.h (ALIGNOF): A better definition for C++.
4800
4801 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4802
4803         Macro hygiene.
4804         Fix printf warnings: int format, long int arg.
4805         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4806         (PUSH_FAILURE_POINT): Use correct printf formats.
4807         (POP_FAILURE_POINT): Use correct printf formats.  
4808         Use do {...} while (0)
4809
4810 2001-01-20  Martin Buchholz <martin@xemacs.org>
4811
4812         * XEmacs 21.2.42 "Poseidon" is released.
4813
4814 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4815
4816         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4817
4818 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4819
4820         De-kludgify FIXED_TYPE free list frobbing.
4821         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4822         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4823         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4824         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4825         * alloc.c (LRECORD_FREE_P): New.
4826         * alloc.c (MARK_LRECORD_AS_FREE): New.
4827         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4828         * alloc.c (STRUCT_FREE_P): Deleted.
4829         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4830         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4831         * alloc.c (STRING_CHARS_FREE_P): New.
4832         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4833         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4834         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4835         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4836         * alloc.c (resize_string): Use new definitions.
4837         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4838         * alloc.c (verify_string_chars_integrity): Use new definitions.
4839         * alloc.c (compact_string_chars): Use new definitions.
4840         * alloc.c: Update monster comments.
4841         * lrecord.h (lrecord_type): Add some new lrecord types for
4842         alloc.c's use.
4843
4844 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4845
4846         Improve alignment hackery.
4847         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4848         (max_align_t): Moved from opaque.h - general purpose.
4849         (ALIGN_PTR): Use size_t, not long.
4850         * opaque.h (max_align_t): Move to lisp.h.
4851
4852 2001-01-18  Norbert Koch  <nk@LF.net>
4853
4854         * gui.h: Fix and add prototypes to fix build problems.
4855
4856 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4857
4858         temacs is going away, so `dump-temacs' is now a bad name.
4859         * .dbxrc (dump-temacs): Rename to `dmp'.
4860         * .gdbinit (dump-temacs): Rename to `dmp'.
4861
4862 2001-01-17  Andy Piper  <andy@xemacs.org>
4863
4864         * glyphs.c (print_image_instance): comment to make martin happy.
4865
4866         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4867         change.
4868
4869         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4870         activation.
4871         (mswindows_tab_control_redisplay): warning suppression.
4872
4873         * glyphs-widget.c (widget_update): re-write to cope with updated
4874         items.
4875         (widget_instantiate): use new gui_item functions.
4876         (tab_control_update): deleted.
4877         (progress_gauge_update): deleted.
4878         (image_instantiator_progress_guage): take out update reference.
4879         (image_instantiator_tree_view): ditto.
4880         (image_instantiator_tab_control): ditto.
4881
4882         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4883         Right the new way.
4884         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4885         return whether anything was changed.
4886         (update_gui_item_keywords): as it sounds.
4887
4888         * gui.h: declare widget_gui_parse_item_keywords.
4889
4890         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4891         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4892
4893 2001-01-17  Martin Buchholz <martin@xemacs.org>
4894
4895         * XEmacs 21.2.41 "Polyhymnia" is released.
4896
4897 2001-01-16  Didier Verna  <didier@xemacs.org>
4898
4899         * glyphs.c (image_instantiate): don't use fallbacks when
4900         instantiating a face's background pixmap by inheritance.
4901
4902 2001-01-14  Mike Sperber <mike@xemacs.org>
4903
4904         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4905         Conditionalize accordingly.
4906
4907 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4908
4909         * dumper.c (pdump_file_get): Fix a compiler warning.
4910
4911 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4912
4913         Make Purify happy when pdumping.
4914         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4915         iniitalizing all bits of new lisp object memory.
4916         * symbols.c (Fmake_local_variable): Likewise.
4917         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4918         * symbols.c (Fdefvaralias): Likewise.
4919         * mule-charset.c (vars_of_mule_charset): Likewise.
4920
4921 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4922         Add the `-nd' flag when running pre-dump operations under the debugger.
4923         * .dbxrc (run-temacs): Add `-nd'.
4924         * .dbxrc (update-elc): Likewise.
4925         * .dbxrc (dump-temacs): Likewise.
4926         * .gdbinit (run-temacs): Likewise.
4927         * .gdbinit (check-temacs): Likewise.
4928         * .gdbinit (update-elc): Likewise.
4929         * .gdbinit (dump-temacs): Likewise.
4930
4931 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4932
4933         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4934         export OBJECT_MODE=64
4935         configure --pdump --use-union-type=no
4936         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4937         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4938
4939         * miscplay.c (sndcnv8U_2mono):
4940         Avoid two uses of `++' in the same expression.
4941         Suppresses a GCC warning.
4942
4943 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4944
4945         Make sure future compilers don't miscompile alloc.c.
4946         * alloc.c:
4947         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4948         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4949
4950 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4951
4952         * dumper.c: A little post-pdump-rename comment fixup.
4953
4954 2001-01-09  Jerry James  <james@eecs.ku.edu>
4955
4956         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4957
4958 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4959
4960         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4961         script:
4962         #!/bin/sh
4963         replace_symbol () {
4964           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4965         }
4966
4967         replace_symbol pdump_wire_lists pdump_weak_object_chains
4968         replace_symbol pdump_wire_list dump_add_weak_object_chain
4969
4970         replace_symbol pdump_wires pdump_root_objects
4971         replace_symbol pdump_wire dump_add_root_object
4972
4973         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4974         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4975
4976         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4977         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4978         replace_symbol dumpstructinfo pdump_root_struct_ptr
4979         replace_symbol dumpstruct dump_add_root_struct_ptr
4980
4981         replace_symbol dumpopaque dump_add_opaque
4982         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4983         replace_symbol dumpopaqueinfos pdump_opaques
4984         replace_symbol dumpopaqueinfo pdump_opaque
4985
4986         replace_symbol nb_structdump nb_root_struct_ptrs
4987         replace_symbol nb_opaquedump nb_opaques
4988
4989         replace_symbol align_table pdump_align_table
4990         replace_symbol dump_header pdump_header
4991
4992         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4993         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4994
4995
4996 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4997
4998         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4999         optimizing bytecount_to_charcount().
5000
5001 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
5002
5003         * config.h.in:
5004         (HAVE_DLFCN_H): Removed.
5005         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
5006
5007 2001-01-06  Martin Buchholz  <martin@xemacs.org>
5008
5009         Portable dumper maintainability improvements.
5010         * alloc.c (staticpro):
5011         * alloc.c (staticpro_nodump):
5012         * alloc.c (garbage_collect_1):
5013         * alloc.c (reinit_alloc_once_early):
5014         * alloc.c (init_alloc_once_early):
5015         * alloc.c: Move dumper functions to alloc.c.
5016         * dumper.c (pdump_backtrace):
5017         * dumper.c (pdump_dump_structs):
5018         * dumper.c (pdump_dump_opaques):
5019         * dumper.c (pdump_dump_rtables):
5020         * dumper.c (pdump_dump_wired):
5021         * dumper.c (pdump):
5022         * dumper.c (pdump_load_check):
5023         * dumper.c (pdump_load_finish):
5024         * dumper.c (pdump_file_unmap):
5025         * dumper.c (pdump_file_get):
5026         * dumper.c (pdump_resource_free):
5027         * dumper.c (pdump_resource_get):
5028         * dumper.c (pdump_file_free):
5029         * dumper.c (pdump_file_try):
5030         * dumper.c (pdump_load):
5031         Remove fixed size limits on staticpro(), staticpro_nodump(),
5032         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
5033         Remove custom code for dumping lrecord_implementations_table - use
5034         dumpopaque instead.
5035         Remove (most of the) custom code for dumping staticpros - dump it
5036         like any other dynarr.
5037
5038         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
5039         * dumper.c: Moved functions from alloc.c.
5040         * alloc.c (dumpstruct): Moved to dumper.c.
5041         * alloc.c (dumpopaque): Likewise.
5042         * alloc.c (pdump_wire): Likewise.
5043         * alloc.c (pdump_wire_list): Likewise.
5044
5045         * lisp.h (Dynarr_sizeof): New.
5046         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
5047         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
5048         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
5049
5050         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
5051         * lisp.h (dumpopaque): ditto.
5052         * lisp.h (pdump_wire): ditto.
5053         * lisp.h (pdump_wire_list): ditto.
5054
5055 2001-01-09  Martin Buchholz  <martin@xemacs.org>
5056
5057         * make-src-depend (PrintPatternDeps):
5058         Use `sort' to make output independent of perl version.
5059
5060 2001-01-08  Martin Buchholz  <martin@xemacs.org>
5061
5062         Port to Netbsd 1.5.
5063         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
5064         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
5065
5066 2001-01-03  Didier Verna  <didier@xemacs.org>
5067
5068         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
5069         that `focus_frame' is alive before thinking of calling
5070         `redisplay_redraw_cursor' on it.
5071
5072 2001-01-08  Martin Buchholz <martin@xemacs.org>
5073
5074         * XEmacs 21.2.40 is released.
5075
5076 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
5077
5078         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
5079
5080 2001-01-06  Martin Buchholz  <martin@xemacs.org>
5081
5082         * alloc.c (dbg_valmask): Make const.
5083         * alloc.c (dbg_typemask): Make const.
5084         * alloc.c (dbg_USE_UNION_TYPE): Make const.
5085         * alloc.c (dbg_valbits): Make const.
5086         * alloc.c (dbg_gctypebits): Make const.
5087
5088 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
5089
5090         * redisplay-x.c (x_bevel_area):
5091         redisplay.h (struct rune):
5092         Typo fixes in comments.
5093
5094 2001-01-05  Andy Piper  <andy@xemacs.org>
5095
5096         * glyphs-x.c (x_redisplay_widget): use size changed for offset
5097         adjustment.
5098
5099         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
5100
5101 2001-01-05  Martin Buchholz  <martin@xemacs.org>
5102
5103         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
5104
5105         * mule-ccl.c (stack_idx_of_map_multiple):
5106         Non const global data must not be initialized!
5107         Found by MIYASHITA Hisashi.
5108
5109 2001-01-02  Andy Piper  <andy@xemacs.org>
5110
5111         * frame.c (change_frame_size): make sure frame size is always
5112         marked as changed.
5113
5114         * glyphs.c (image_instance_layout): minor code reuse.
5115
5116         * window.c (Fcurrent_window_configuration): revert previous
5117         change.
5118
5119 2001-01-02  Martin Buchholz  <martin@xemacs.org>
5120
5121         * glyphs.h:
5122         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
5123
5124 2000-12-31  Andy Piper  <andy@xemacs.org>
5125
5126         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
5127         when widget gets unmapped.
5128
5129         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
5130         function. Make sure widgets losing focus don't just drop it.
5131         (handle_focus_event_1): record the widget with focus.
5132
5133 2000-12-31  Andy Piper  <andy@xemacs.org>
5134
5135         * window.c (allocate_window): use
5136         make_image_instance_cache_hash_table.
5137         (make_dummy_parent): ditto.
5138         (Fset_window_configuration): ditto.
5139
5140         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
5141
5142         * glyphs.c (process_image_string_instantiator): use
5143         INSTANTIATOR_TYPE.
5144         (get_image_instantiator_governing_domain): ditto.
5145         (normalize_image_instantiator): ditto.
5146         (instantiate_image_instantiator): ditto.
5147         (make_image_instance_1): ditto.
5148         (image_instantiate): ditto. Key on glyph *and* instantiator type.
5149         (instantiator_eq_equal): new function for use with instance hash
5150         tables.
5151         (instantiator_eq_hash): ditto.
5152         (make_image_instance_cache_hash_table): create a suitable hash
5153         table for storing image instances.
5154
5155         * elhash.h (hash_table_weakness): new internal weakness type
5156         HASH_TABLE_KEY_CAR_VALUE_WEAK.
5157         declare new functions.
5158
5159         * elhash.c (finish_marking_weak_hash_tables): introduce yet
5160         another weakness type for glyphs.
5161         (make_standard_lisp_hash_table): new function split out from
5162         make_general_lisp_hash_table.
5163         (make_lisp_hash_table): call make_standard_lisp_hash_table.
5164         (hash_table_instantiate): ditto.
5165         (Fmake_hash_table): ditto.
5166
5167 2000-12-31  Martin Buchholz <martin@xemacs.org>
5168
5169         * XEmacs 21.2.39 is released.
5170
5171 2000-12-29  Andy Piper  <andy@xemacs.org>
5172
5173         * menubar.c (menubar_visible_p_changed): signal the frame changed.
5174
5175         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
5176         the frame has changed so that we pick up geometry changes such as
5177         menubar visibility.
5178
5179 2000-12-28  Andy Piper  <andy@xemacs.org>
5180
5181         * lastfile.c (my_ebss): make a char array so we can pad the
5182         bss. Fixes cygwin unexec.
5183
5184         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
5185
5186 2000-12-26  Andy Piper  <andy@xemacs.org>
5187
5188         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
5189         comments and try and be more precise about a non-/SIGIO world.
5190         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
5191         SIGIO.
5192
5193         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
5194         we don't normalize to zero width or height.
5195
5196 2000-12-24  Andy Piper  <andy@xemacs.org>
5197
5198         * Makefile.in.in (ldflags): add -mwindows when appropriate.
5199
5200 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
5201
5202         * s/sco5.h: SCO 5 has pty support.
5203
5204 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
5205
5206         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
5207         input-method-xlib.c contains whole contents of input-method-xfs.c,
5208         so we can use input-method-xlib.c's code for USE_XFONTSET
5209         using #ifdefs.
5210         * input-method-xfs.c: removed.
5211
5212 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
5213
5214         * file-coding.h (enum coding_category_type): reorder enumerators to
5215         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
5216         (now one greater than largest real coding_category_type enumerator).
5217         * file-coding.c (coding_category_symbol, coding_category_by_priority,
5218         coding_category_system, fcd_descriptihon_1, decode_coding_category,
5219         Fcoding_category_list, Fset_coding_priority_list,
5220         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
5221         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
5222
5223 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5224
5225         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
5226         * redisplay-output.c (redisplay_output_window): Clear top of window
5227         when face is changed.
5228         * redisplay-x.c (x_redraw_exposed_window): Call
5229         redisplay_clear_top_of_window.
5230         * redisplay.h: Publish redisplay_clear_top_of_window.
5231
5232 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
5233
5234         * buffer.c (Fkill_buffer): Map over all devices.
5235         * window.c (window_loop): Remove UNSHOW_BUFFER code.
5236         (list_windows): New function.
5237         (list_all_windows): Ditto.
5238         (Freplace_buffer_in_windows): Use them.
5239
5240 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5241
5242         * database.c (berkdb_subtype): Recognize new subtype `queue'.
5243         (Fopen_database): Use `db_create' instead of `db_open'.
5244         (syms_of_database): Initialize Qqueue.
5245
5246 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5247
5248         * buffer.c (common_init_complex_vars_of_buffer): Initialize
5249         buffer_local_face_property.
5250         * buffer.h (struct buffer): New member buffer_local_face_property.
5251         * window.c (Fset_window_buffer):  Mark window's face as changed
5252         when buffer has buffer local face.
5253         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
5254         * objects.c (color_after_change): Set buffer_local_face_property
5255         when locale of face specifier is buffer.
5256         * objects.c (font_after_change): Ditto.
5257         * objects.c (face_boolean_after_change): Ditto.
5258         * glyphs.c (image_after_change): Ditto.
5259
5260 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5261
5262         * nt.c (mswindows_fstat): Report file permissions, volume serial
5263         number, etc. Code adapted from FSF Emacs 20.7.
5264
5265 2000-12-09  Dan Holmsand  <dan@eyebee.com>
5266
5267         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
5268         of stat when we don't have symbolic links, to make sure
5269         mswindows_stat is called on mswindows.
5270
5271 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5272
5273         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
5274
5275 2000-12-12  Martin Buchholz  <martin@xemacs.org>
5276
5277         * doprnt.c (emacs_doprnt_1): More printing fixes.
5278         Make printing of numbers compatible with libc and FSF Emacs.
5279         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
5280         Use the system printf to do most of the hard work of formatting,
5281         instead of doprnt_1().
5282         Calculate memory to allocate for format string.
5283         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
5284         (doprnt_1): Cleaner code and documentation.
5285
5286 2000-12-01  Jerry James  <james@eecs.ukans.edu>
5287
5288         * Makefile.in.in: Use the loop variable to install headers.
5289
5290 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5291
5292         * window.c (Fsplit_window): Don't invalidate face cache.
5293
5294 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5295
5296         * minibuf.c (Fall_completions): Undo the previous change
5297         which removed checking elements start with space.
5298
5299 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5300
5301         * mule-canna.c: Didier suppression.
5302
5303 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
5304
5305         * mule-canna.c: rename static unsigned char buf[] to key_buffer
5306         (warning suppression).  Add English comment translations.
5307
5308 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5309
5310         * unexelfsgi.c (unexec): Better test for mmap failure.
5311
5312 2000-12-05  Martin Buchholz <martin@xemacs.org>
5313
5314         * XEmacs 21.2.38 is released.
5315
5316 2000-12-05  Martin Buchholz  <martin@xemacs.org>
5317
5318         * redisplay.c (bar-cursor): Make a user variable.
5319
5320         * symsinit.h: Add init_postgresql_from_environment.
5321
5322 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
5323
5324         * regex.c: Convert to clean C.
5325
5326 2000-12-05  Dan Holmsand  <dan@eyebee.com>
5327
5328         * realpath.c:
5329         Don't #include sysfile.h. Revert to duplicating PATH_MAX
5330         initialization.
5331         (sys_readlink): renamed to system_readlink to avoid conflict with
5332         the other sys_readlink.
5333
5334 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
5335
5336         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
5337
5338 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
5339
5340         * postgresql.c (init_postgresql_from_environment): new function.
5341         (vars_of_postgresql): Move code initializing Lisp variables out and
5342         into init_postgresql_from_environment.
5343         emacs.c (main_1): Call init_postgresql_from_environment if and only
5344         if running a dumped XEmacs.
5345
5346 2000-08-31  Dan Holmsand  <dan@eyebee.com>
5347
5348         * buffer.c: Make find-file-compare-truenames default to true on
5349         windows.
5350
5351         * realpath.c (win32_abs_start):
5352         (cygwin_readlink):
5353         (win32_readlink): New functions.
5354         (xrealpath): Return really real filenames on windows.
5355
5356         * fileio.c (Ffile_truename): Make file-truename work on windows.
5357
5358 2000-11-29  Didier Verna  <didier@xemacs.org>
5359
5360         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5361         * faces.c (update_face_cachel_data): use it.
5362         * faces.c (add_face_cachel): use it. Complete background pixmap
5363         frobbing in face cache if `update_face_cachel_data' has not done so.
5364
5365 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5366
5367         * search.c (string_match_1): Don't set last_thing_searched
5368         when search failed.
5369
5370 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5371
5372         * buffer.c: Include casetab.h
5373         (common_init_complex_vars_of_buffer): Use new case-table object.
5374         * buffer.h: Include casetab.h
5375         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5376         (DOWNCASE_TABLE_OF): Ditto.
5377         * bufslots.h: Remove char-tables and add case-table.
5378         * casetab.c: Include casetab.h
5379         (CASE_TABLE_P): Removed.
5380         (mark_case_table): New function.
5381         (allocate_case_table): New function.
5382         (Fcase_table_p): Use new case-table.
5383         (case_table_char): New function.
5384         (Fget_case_table): Ditto.
5385         (Fput_case_table): Ditto.
5386         (Fput_case_table_pair): Ditto.
5387         (Fcopy_case_table): Ditto.
5388         (Fcurrent_case_table): Return case-table.
5389         (Fstandard_case_table): Return case-table.
5390         (Fset_case_table): Fix doc-string.
5391         (set_case_table): Use case-table
5392         (syms_of_casetab): DEFSUBR new functions.
5393         (complex_vars_of_casetab): Set up standard case-table.
5394         * casetab.h: New file.
5395         * editfns.c: Include casetab.h
5396         (Fcompare_buffer_substrings): Use case-table.
5397         * inline.c: Include casetab.h
5398         * lisp.h: Remove bogus extern.
5399         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5400         * search.c: Include casetab.h
5401         (TRANSLATE_ASCII): Removed.
5402         (TRANSLATE): Unconditionally translate character.
5403         (looking_at_1): Use case-table.
5404         (string_match_1): Ditto.
5405         (fast_string_match): Ditto.
5406         (search_command): Ditto.
5407         (search_buffer): Separate boyer_moore.  Check whether
5408         boyer_moore is possible.
5409         (simple_search): New function.
5410         (boyer_moore): Separated from search_buffer. Translate char.
5411
5412 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5413
5414         * regex.c (RE_TR_ASCII): Removed.
5415         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5416         (PATFETCH): Call PATFETCH_RAW.
5417         (PATFETCH_RAW): Fetch Emchar.
5418         (PATUNFETCH): Decrement charptr.
5419         (GET_BUFFER_SPACE): Rename b to buf_end.
5420         (BUF_PUSH): Ditto.
5421         (BUF_PUSH_2): Ditto.
5422         (BUF_PUSH_3): Ditto.
5423         (EXTEND_BUFFER): Ditto.
5424         (SET_LIST_BIT): Ditto.
5425         (regex_compile): Ditto.  Translate non ASCII char.
5426         (compile_range): Ditto.
5427         (re_search_2): Ditto.
5428         (re_match_2_internal): Compare Emchar.
5429         (bcmp_translate): Ditto.
5430
5431 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5432
5433         * lisp.h (basic char/int typedefs):  comment improvement.
5434
5435 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5436
5437         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5438         unstomp inhibit_site_lisp.  Improve comments.
5439
5440 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5441
5442         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5443
5444 2000-11-28  Andy Piper  <andy@xemacs.org>
5445
5446         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5447         clipped display for windows in the gutter also.
5448         (redisplay_display_boxes_in_window_p): change semantics of return
5449         codes to be more intuitive.
5450
5451         * gutter.h: declare display_boxes_in_gutter_p.
5452
5453         * gutter.c (display_boxes_in_gutter_p): new function for
5454         redisplay.
5455
5456 2000-11-22  Andy Piper  <andy@xemacs.org>
5457
5458         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5459         autodetect domain.
5460
5461 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5462
5463         * callproc.c (Fold_call_process_internal):
5464         * gpm.c (Freceive_gpm_event):
5465         (tty_get_foreign_selection): Might be just warning supression.
5466         * fileio.c (Fwrite_region_internal):
5467         (Fset_visited_file_modtime):
5468         * keymap.c (event_matches_key_specifier_p):
5469         Initialize GCPROed variable.
5470
5471         * menubar-x.c (command_builder_find_menu_accelerator):
5472         Initialize before use.
5473
5474 2000-11-23  Andy Piper  <andy@xemacs.org>
5475
5476         * unexcw.c (unexec): make the resulting executable executable.
5477
5478 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5479
5480         * doc.c (get_doc_string):
5481         Use size_t, not int, for result of XSTRING_LENGTH.
5482
5483         * cmds.c (Fdelete_char):
5484         * cmds.c (Fpoint_at_eol):
5485         * cmds.c (Fself_insert_command):
5486         Use EMACS_INT, not int, for result of XINT.
5487         Someday, someone will want to insert more than 2**31 identical characters.
5488
5489         * cmds.c (Fdelete_char):
5490         * cmds.c (Fdelete_backward_char):
5491         * syntax.c (Fforward_word):
5492         * syntax.c (Fforward_comment):
5493         Make COUNT argument optional, for consistency with forward-char et al.
5494
5495 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5496
5497         * lisp.h:
5498         * print.c (long_to_string):
5499         Return a useful value: the pointer at end of data written.
5500
5501         * doprnt.c:
5502         Use `static const char * const' for constant strings.
5503         (union printf_arg): Delete `i', `ui' members.
5504         (get_doprnt_args):
5505         (emacs_doprnt_1):
5506         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5507         Do all printf-ing via the `l' specifier.
5508         Use EMACS_INT instead of int.
5509         Optimize.
5510
5511 2000-11-20  Didier Verna  <didier@xemacs.org>
5512
5513         * faces.c (update_face_cachel_data): don't frob the background
5514         pixmap when the window is being created. The face is needed but
5515         does not exist yet.
5516
5517 2000-11-20  Andy Piper  <andy@xemacs.org>
5518
5519         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5520         messing with a debug environment.
5521
5522 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5523
5524         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5525
5526 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5527
5528         * casetab.c (Fcase_table_p): Fix compile error and crash.
5529
5530 2000-11-18  Philip Aston  <philipa@mail.com>
5531
5532         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5533
5534 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5535
5536         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5537         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5538
5539 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5540
5541         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5542         * unexelf.c: Use HAVE_ELF_H.
5543         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5544         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5545         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5546         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5547         for testing.
5548         So this is an unexelfsgi.c from a different line of development.
5549
5550 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5551
5552         * regex.c (RE_TR_ASCII): New function.
5553         (RE_TRANSLATE): Call it.
5554
5555 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5556
5557         * buffer.h (TRT_TABLE_OF): Remove assert.
5558         (IN_TRT_TABLE_DOMAIN): Removed.
5559
5560 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5561
5562         * free-hook.c (log_gcpro):
5563         (show_gcprohist): Add support for GCPRO5.
5564
5565 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5566
5567         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5568
5569 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5570
5571         * symeval.h: Declare flush_all_buffer_local_cache.
5572
5573         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5574         (flush_buffer_local_cache): Added.
5575         (flush_all_buffer_local_cache): Added.
5576
5577         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5578
5579         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5580         (pdump_dump_data): Ditto.
5581         (pdump_reloc_one): Ditto.
5582         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5583         before dumping.
5584
5585
5586 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5587
5588         * buffer.c: Remove if 0'ed entry.
5589         * buffer.h: Rewrite TRT to use char-table.
5590         * bufslots.h: Remove mirror tables.
5591         * casetab.c: Remove mirror tables.
5592         (CASE_TABLE_P): New macro.
5593         (Fcase_table_p): Element of a case table is string or char-table.
5594         (make_mirror_trt_table): Removed.
5595         (set_case_table): Setup char-table from strings for backward
5596         compatibility.
5597         * dired.c (Fdirectory_files):
5598         * dired-msw.c: (mswindows_get_files):
5599         * lisp.h: Change prototype of re_pattern_buffer.
5600         * regex.c: (RE_TRANSLATE): New macro.
5601         (TRANSLATE_P): Ditto.
5602         Change translate to type RE_TRANSLATE_TYPE.
5603         * regex.h: Define RE_TRANSLATE_TYPE
5604         * search.c (TRANSLATE): New macro.
5605         (TRANSLATE_ASCII): New macro.
5606         Translate table is changed to Lisp_Object.
5607         (signal_failure): Inhibit return.
5608
5609 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5610
5611         * device-msw.c:
5612         * eldap.c:
5613         * event-Xt.c:
5614         * event-stream.c:
5615         * print.c:
5616         Do UNGCPRO before return.
5617
5618 2000-11-14  Martin Buchholz <martin@xemacs.org>
5619
5620         * XEmacs 21.2.37 is released.
5621
5622 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5623
5624         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5625         Add comments about discarded return value.
5626
5627 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5628
5629         * callint.c:
5630         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5631
5632 2000-10-27  Andy Piper  <andy@xemacs.org>
5633
5634         * gutter.c (Fset_default_gutter_position): default left and right
5635         gutters to visible.
5636         (calculate_gutter_size): calculate resonable heuristic for left
5637         and right gutter sizes.
5638         (specifier_vars_of_gutter): change left and right gutter sizes to
5639         autodetect.
5640         (calculate_gutter_size_from_display_lines): new function.
5641         (output_gutter): check for resizing on left and right gutters.
5642         (clear_gutter): don't special case top and left gutters.
5643         (specifier_vars_of_gutter): use new signature for
5644         set_specifier_caching.
5645
5646         * glyphs-x.c (x_redisplay_widget): spelling fix.
5647         * glyphs.c (specifier_vars_of_glyphs):
5648         * menubar.c (specifier_vars_of_menubar):
5649         * redisplay.c (specifier_vars_of_redisplay):
5650         * toolbar.c (specifier_vars_of_toolbar):
5651         * window.c (specifier_vars_of_window):
5652         * scrollbar.c (specifier_vars_of_scrollbar):
5653         (complex_vars_of_scrollbar): use new signature for
5654         set_specifier_caching.
5655
5656         * specifier.c (set_specifier_caching): include recompute flag.
5657         (recompute_one_cached_specifier_in_window): always recompute if
5658         flag set.
5659         (recompute_one_cached_specifier_in_frame): ditto.
5660
5661         * specifier.h (struct specifier_caching): add recompute flag.
5662
5663 2000-10-24  Andy Piper  <andy@xemacs.org>
5664
5665         * unexcw.c (copy_executable_and_dump_data_section): add new
5666         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5667         5.0 happy.
5668
5669 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5670
5671         * console-x.h (x_device): New member modifier_release_time.
5672         * event-Xt.c (x_handle_sticky_modifiers):
5673         Bound interval modifier keys are sticky.
5674         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5675         * events.h: extern it.
5676
5677 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5678
5679         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5680
5681 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5682
5683         * event-stream.c (execute_command_event): Preserve current_events
5684         and the like when event is misc-user-event.
5685         Inhibit quit during the call to maybe_echo_keys.
5686
5687 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5688
5689         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5690         symlink when buffer is killed.
5691         (inhibit_clash_detection): New variable.
5692
5693 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5694
5695         * console.c (Fset_input_method): Trigger redisplay on tty.
5696
5697 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5698
5699         * process.c (Fprocess_status): Revert to previous behavior:
5700         (process-status "nosuchprocess") ==> nil
5701
5702 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5703
5704         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5705         Work around another GCC 2.95.2 optimizer bug.
5706
5707 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5708
5709         * process.c (Fget_process): Use LIST_LOOP_2.
5710         (kill_buffer_processes): Use LIST_LOOP_2.
5711
5712         * minibuf.c (Fall_completions):
5713         Delete old non-functional code for FSF fourth argument.
5714
5715         * frame.c (frame_matches_frame_spec):
5716         Renamed from `frame_matches_frametype'.  Update all callers.
5717         (device_matches_device_spec):
5718         Renamed from 'device_matches_console_spec'.  Update all callers.
5719
5720         * doc.c (Fsubstitute_command_keys):
5721         Remove buffer overflow crash.  Small code cleanups.
5722
5723         * casetab.c (check_case_table): Simpler code.
5724
5725         * window.c (Freplace_buffer_in_windows):
5726         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5727         (and similar implementation) as Fdelete_windows_on.
5728         Update all callers.
5729
5730         * alloc.c (Fmake_list):
5731         * alloc.c (make_vector):
5732         * alloc.c (Fmake_vector):
5733         * alloc.c (make_bit_vector):
5734         * alloc.c (Fmake_bit_vector):
5735         * alloc.c (Fbit_vector):
5736         * alloc.c (Fmake_string):
5737         * alloc.c (Fpurecopy):
5738         * alloc.c (Fmemory_limit):
5739         * buffer.c:
5740         * buffer.c (Fget_buffer):
5741         * buffer.c (Fkill_buffer):
5742         * buffer.c (complex_vars_of_buffer):
5743         * bytecode.c (Fcompiled_function_stack_depth):
5744         * callint.c (Fprefix_numeric_value):
5745         * event-stream.c:
5746         * event-stream.c (Fread_key_sequence):
5747         * casetab.c:
5748         * casetab.c (Fcase_table_p):
5749         * casetab.c (check_case_table):
5750         * casetab.c (Fset_case_table):
5751         * casetab.c (Fset_standard_case_table):
5752         * chartab.c:
5753         * chartab.c (Fchar_table_type):
5754         * chartab.c (Freset_char_table):
5755         * chartab.c (Fget_char_table):
5756         * chartab.c (Fget_range_char_table):
5757         * chartab.c (Fput_char_table):
5758         * chartab.c (Fmap_char_table):
5759         * chartab.c (Fcategory_table_p):
5760         * chartab.c (Fcheck_category_at):
5761         * chartab.c (Fchar_in_category_p):
5762         * chartab.c (Fcategory_table):
5763         * chartab.c (Fcopy_category_table):
5764         * chartab.c (Fset_category_table):
5765         * chartab.c (Fcategory_designator_p):
5766         * chartab.c (Fcategory_table_value_p):
5767         * cmds.c (Fdelete_char):
5768         * cmds.c (Fdelete_backward_char):
5769         * cmds.c (Fself_insert_command):
5770         * cmds.c (Fself_insert_internal):
5771         * console.c (Fvalid_console_type_p):
5772         * console.c (Fcdfw_console):
5773         * console.c (Fconsole_type):
5774         * console.c (Fconsole_name):
5775         * console.c (Fconsole_device_list):
5776         * console.c (Fconsole_on_window_system_p):
5777         * data.c:
5778         * data.c (Feq):
5779         * data.c (Fold_eq):
5780         * data.c (Fsubr_interactive):
5781         * data.c (Fchar_to_int):
5782         * data.c (Fint_to_char):
5783         * data.c (Fsetcar):
5784         * data.c (Fsetcdr):
5785         * data.c (Fnumber_to_string):
5786         * data.c (Fstring_to_number):
5787         * data.c (Frem):
5788         * database.c (mark_database):
5789         * database.c (finalize_database):
5790         * database.c (Fdatabase_live_p):
5791         * database.c (Fdatabasep):
5792         * device-x.c (Fx_get_resource):
5793         * device.c (Fdfw_device):
5794         * dired.c:
5795         * dired.c (Ffile_name_completion):
5796         * dired.c (Ffile_name_all_completions):
5797         * dired.c (Fuser_name_completion):
5798         * dired.c (Fuser_name_completion_1):
5799         * dired.c (Fuser_name_all_completions):
5800         * doc.c (Fdocumentation):
5801         * doc.c (Fdocumentation_property):
5802         * doc.c (Fsubstitute_command_keys):
5803         * editfns.c:
5804         * editfns.c (Fchar_to_string):
5805         * editfns.c (Fstring_to_char):
5806         * editfns.c (Ftemp_directory):
5807         * editfns.c (Finsert_char):
5808         * editfns.c (Fbuffer_substring_no_properties):
5809         * editfns.c (Fnarrow_to_region):
5810         * editfns.c (Fchar_equal):
5811         * editfns.c (Fchar_Equal):
5812         * editfns.c (Ftranspose_regions):
5813         * emacs.c (Fdump_emacs):
5814         * eval.c (Fthrow):
5815         * eval.c (Fcommand_execute):
5816         * eval.c (Fautoload):
5817         * eval.c (Fbacktrace):
5818         * eval.c (Fbacktrace_frame):
5819         * events.c:
5820         * events.c (Fcopy_event):
5821         * events.c (Fcharacter_to_event):
5822         * events.c (Fevent_button):
5823         * events.c (Fevent_process):
5824         * extents.c:
5825         * extents.c (Fnext_extent_change):
5826         * extents.c (Fextent_property):
5827         * faces.c (Ffacep):
5828         * faces.c (Fmake_face):
5829         * file-coding.c:
5830         * file-coding.c (Fencode_shift_jis_char):
5831         * file-coding.c (Fencode_big5_char):
5832         * fileio.c (Ffile_name_directory):
5833         * fileio.c (Ffile_name_nondirectory):
5834         * fileio.c (Ffile_name_as_directory):
5835         * fileio.c (Fdirectory_file_name):
5836         * fileio.c (Ffile_truename):
5837         * fileio.c (Fsubstitute_in_file_name):
5838         * fileio.c (Ffile_modes):
5839         * fileio.c (Fset_file_modes):
5840         * fileio.c (Fset_default_file_modes):
5841         * fileio.c (Fverify_visited_file_modtime):
5842         * floatfns.c (Facos):
5843         * floatfns.c (Fasin):
5844         * floatfns.c (Fatan):
5845         * floatfns.c (Fcos):
5846         * floatfns.c (Fsin):
5847         * floatfns.c (Ftan):
5848         * floatfns.c (Fbessel_j0):
5849         * floatfns.c (Fbessel_j1):
5850         * floatfns.c (Fbessel_jn):
5851         * floatfns.c (Fbessel_y0):
5852         * floatfns.c (Fbessel_y1):
5853         * floatfns.c (Fbessel_yn):
5854         * floatfns.c (Ferf):
5855         * floatfns.c (Ferfc):
5856         * floatfns.c (Flog_gamma):
5857         * floatfns.c (Fexp):
5858         * floatfns.c (Fexpt):
5859         * floatfns.c (Flog):
5860         * floatfns.c (Flog10):
5861         * floatfns.c (Fsqrt):
5862         * floatfns.c (Fcube_root):
5863         * floatfns.c (Facosh):
5864         * floatfns.c (Fasinh):
5865         * floatfns.c (Fatanh):
5866         * floatfns.c (Fcosh):
5867         * floatfns.c (Fsinh):
5868         * floatfns.c (Ftanh):
5869         * floatfns.c (Fabs):
5870         * floatfns.c (Ffloat):
5871         * floatfns.c (Flogb):
5872         * floatfns.c (Fceiling):
5873         * floatfns.c (Ffloor):
5874         * floatfns.c (Fround):
5875         * floatfns.c (Ftruncate):
5876         * floatfns.c (Ffceiling):
5877         * floatfns.c (Fffloor):
5878         * floatfns.c (Ffround):
5879         * floatfns.c (Fftruncate):
5880         * fns.c (Fstring_equal):
5881         * fns.c (Fstring_lessp):
5882         * fns.c (concat2):
5883         * fns.c (concat3):
5884         * fns.c (vconcat2):
5885         * fns.c (vconcat3):
5886         * fns.c (Fsubstring):
5887         * fns.c (Fassoc):
5888         * fns.c (Fold_assoc):
5889         * fns.c (assoc_no_quit):
5890         * fns.c (Fassq):
5891         * fns.c (Fold_assq):
5892         * fns.c (assq_no_quit):
5893         * fns.c (Frassoc):
5894         * fns.c (Fold_rassoc):
5895         * fns.c (Frassq):
5896         * fns.c (Fold_rassq):
5897         * fns.c (rassq_no_quit):
5898         * fns.c (Fremassoc):
5899         * fns.c (remassoc_no_quit):
5900         * fns.c (Fremassq):
5901         * fns.c (remassq_no_quit):
5902         * fns.c (Fremrassoc):
5903         * fns.c (Fremrassq):
5904         * fns.c (remrassq_no_quit):
5905         * fns.c (Fsort):
5906         * fns.c (Fplist_get):
5907         * fns.c (Fplist_put):
5908         * fns.c (Fplist_remprop):
5909         * fns.c (Fplist_member):
5910         * fns.c (Flax_plist_get):
5911         * fns.c (Flax_plist_put):
5912         * fns.c (Flax_plist_remprop):
5913         * fns.c (Flax_plist_member):
5914         * fns.c (Fequal):
5915         * fns.c (Fold_equal):
5916         * fns.c (Frequire):
5917         * fns.c (Fbase64_encode_region):
5918         * fns.c (Fbase64_encode_string):
5919         * fns.c (Fbase64_decode_region):
5920         * frame.c:
5921         * frame.c (frame_matches_frame_spec):
5922         * frame.c (device_matches_device_spec):
5923         * frame.c (next_frame):
5924         * frame.c (previous_frame):
5925         * frame.c (Fnext_frame):
5926         * frame.c (Fprevious_frame):
5927         * frame.c (Fframe_property):
5928         * frame.c (Fset_frame_height):
5929         * frame.c (Fset_frame_size):
5930         * frame.h:
5931         * glyphs.c:
5932         * glyphs.c (if):
5933         * glyphs.c (decode_error_behavior_flag):
5934         * glyphs.c (Fmake_image_instance):
5935         * indent.c (Findent_to):
5936         * intl.c (Fignore_defer_gettext):
5937         * keymap.c (Fkeymapp):
5938         * keymap.c (Flookup_key):
5939         * lread.c:
5940         * lread.c (Fload_internal):
5941         * lread.c (Feval_buffer):
5942         * lread.c (Feval_region):
5943         * macros.c (Fexecute_kbd_macro):
5944         * marker.c (set_marker_internal):
5945         * marker.c (Fset_marker):
5946         * marker.c (set_marker_restricted):
5947         * marker.c (Fcopy_marker):
5948         * marker.c (noseeum_copy_marker):
5949         * menubar.c:
5950         * menubar.c (Fpopup_menu):
5951         * minibuf.c:
5952         * mule-charset.c (Fcharset_name):
5953         * mule-charset.c (Fchar_charset):
5954         * mule-charset.c (Fchar_octet):
5955         * mule-charset.c (Fsplit_char):
5956         * mule-wnnfns.c (Fwnn_open):
5957         * mule-wnnfns.c (Fwnn_dict_comment):
5958         * mule-wnnfns.c (Fwnn_quit_henkan):
5959         * mule-wnnfns.c (Fwnn_word_toroku):
5960         * mule-wnnfns.c (Fwnn_word_sakujo):
5961         * mule-wnnfns.c (Fwnn_word_use):
5962         * mule-wnnfns.c (Fwnn_hindo_set):
5963         * objects.c:
5964         * objects.c (Fmake_color_instance):
5965         * objects.c (Fmake_font_instance):
5966         * print.c (Fwrite_char):
5967         * process.c:
5968         * process.c (mark_process):
5969         * process.c (print_process):
5970         * process.c (get_process_from_usid):
5971         * process.c (Fprocessp):
5972         * process.c (Fprocess_live_p):
5973         * process.c (Fget_process):
5974         * process.c (Fget_buffer_process):
5975         * process.c (get_process):
5976         * process.c (Fprocess_id):
5977         * process.c (Fprocess_name):
5978         * process.c (Fprocess_command):
5979         * process.c (init_process_io_handles):
5980         * process.c (start_process_unwind):
5981         * process.c (Fstart_process_internal):
5982         * process.c (Fopen_multicast_group_internal):
5983         * process.c (Fset_process_window_size):
5984         * process.c (read_process_output):
5985         * process.c (send_process):
5986         * process.c (Fprocess_tty_name):
5987         * process.c (Fset_process_buffer):
5988         * process.c (Fprocess_buffer):
5989         * process.c (Fprocess_mark):
5990         * process.c (set_process_filter):
5991         * process.c (Fset_process_filter):
5992         * process.c (Fprocess_filter):
5993         * process.c (Fprocess_send_region):
5994         * process.c (Fprocess_send_string):
5995         * process.c (exec_sentinel):
5996         * process.c (Fset_process_sentinel):
5997         * process.c (Fprocess_sentinel):
5998         * process.c (status_notify):
5999         * process.c (Fprocess_status):
6000         * process.c (Fprocess_exit_status):
6001         * process.c (process_send_signal):
6002         * process.c (Fprocess_send_eof):
6003         * process.c (deactivate_process):
6004         * process.c (remove_process):
6005         * process.c (Fdelete_process):
6006         * process.c (kill_buffer_processes):
6007         * process.c (Fprocess_kill_without_query):
6008         * process.c (Fprocess_kill_without_query_p):
6009         * rangetab.c:
6010         * rangetab.c (Fget_range_table):
6011         * rangetab.c (Fput_range_table):
6012         * rangetab.c (Fremove_range_table):
6013         * rangetab.c (Fclear_range_table):
6014         * search.c:
6015         * search.c (Fskip_chars_forward):
6016         * search.c (Fskip_chars_backward):
6017         * search.c (Fskip_syntax_forward):
6018         * search.c (Fskip_syntax_backward):
6019         * search.c (search_command):
6020         * search.c (Freplace_match):
6021         * search.c (Fregexp_quote):
6022         * select.c (Fown_selection_internal):
6023         * select.c (Fselection_owner_p):
6024         * select.c (Fselection_exists_p):
6025         * select.c (Fget_selection_internal):
6026         * specifier.c:
6027         * symbols.c:
6028         * symbols.c (Fintern):
6029         * symbols.c (Fintern_soft):
6030         * symbols.c (Funintern):
6031         * symbols.c (Fapropos_internal):
6032         * symbols.c (Fset_default):
6033         * syntax.c:
6034         * syntax.c (Fsyntax_table_p):
6035         * syntax.c (Fcopy_syntax_table):
6036         * syntax.c (Fset_syntax_table):
6037         * syntax.c (Fchar_syntax):
6038         * syntax.c (syntax_match):
6039         * syntax.c (Fmatching_paren):
6040         * syntax.c (Fforward_word):
6041         * syntax.c (scan_lists):
6042         * syntax.c (Fscan_lists):
6043         * syntax.c (Fscan_sexps):
6044         * syntax.c (Fparse_partial_sexp):
6045         * toolbar.c (Fcheck_toolbar_button_syntax):
6046         * tooltalk.doc:
6047         * window.c:
6048         * window.c (Fwindowp):
6049         * window.c (Fwindow_live_p):
6050         * window.c (Fwindow_point):
6051         * window.c (Fdelete_window):
6052         * window.c (Fnext_window):
6053         * window.c (Fprevious_window):
6054         * window.c (Fother_window):
6055         * window.c (window_loop):
6056         * window.c (Fget_lru_window):
6057         * window.c (Fsplit_window):
6058         * window.c (Fenlarge_window):
6059         * window.c (Fenlarge_window_pixels):
6060         * window.c (Fshrink_window):
6061         * window.c (Fshrink_window_pixels):
6062         * window.c (change_window_height):
6063         * window.c (Fwindow_configuration_p):
6064         * window.c (Fcurrent_window_configuration):
6065         * window.h:
6066         * casefiddle.c (casify_object):
6067         * casefiddle.c (Fupcase):
6068         * casefiddle.c (Fdowncase):
6069         * casefiddle.c (Fcapitalize):
6070         * casefiddle.c (Fupcase_initials):
6071         * casefiddle.c (casify_region_internal):
6072         * casefiddle.c (casify_region):
6073         * casefiddle.c (Fupcase_region):
6074         * casefiddle.c (Fdowncase_region):
6075         * casefiddle.c (Fcapitalize_region):
6076         * casefiddle.c (Fupcase_initials_region):
6077         * casefiddle.c (Fupcase_word):
6078         * casefiddle.c (Fdowncase_word):
6079         * casefiddle.c (Fcapitalize_word):
6080         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
6081         Replace 0 with '\0' when working with bytes.
6082         Replace initial "(" with "\(" in docstrings.
6083
6084 2000-11-01  Martin Buchholz  <martin@xemacs.org>
6085
6086         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
6087
6088         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
6089
6090 2000-10-31  Martin Buchholz  <martin@xemacs.org>
6091
6092         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
6093
6094 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
6095
6096         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
6097         correctly.
6098
6099 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
6100
6101         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
6102         (inhibit_auto_save_session): New variable.
6103         (vars_of_fileio): Declare and initialize them.
6104         * fileio.c (Fdo_auto_save): Don't create session file if
6105         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
6106
6107 2000-10-31  Martin Buchholz  <martin@xemacs.org>
6108
6109         * sgiplay.c (play_internal): C++ compilability.
6110         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
6111         * callproc.c (Fold_call_process_internal):
6112         Remove unused vars `env', `first'.
6113         * scrollbar.c (update_scrollbar_instance):
6114         #### unused var `current_window'.
6115         * redisplay-tty.c: Put currently unused vars insert_mode_on,
6116         etc. within #ifdef NOT_YET.
6117         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
6118         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
6119         * specifier.c (specifier_instance):
6120         #### unused var `tag'.
6121         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
6122
6123 2000-10-27  Martin Buchholz  <martin@xemacs.org>
6124
6125         * fns.c (Fbutlast):
6126         * fns.c (list_sort):
6127         * fns.c (Ffillarray):
6128         * fns.c (bytecode_nconc2):
6129         * fns.c (Fnconc):
6130         * fns.c (mapcar1):
6131         * fns.c (Fmapconcat):
6132         Be pedantically 64-bit correct.  For the time when someone will
6133         want to have a list with length > 2**32.
6134
6135         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6136         Work around MIPSpro compiler bug.
6137
6138         * process-unix.c (unix_kill_child_process): Add snarky comment.
6139         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
6140
6141         * config.h.in: Oops, _getpt ==> _getpty
6142
6143 2000-10-26  Martin Buchholz  <martin@xemacs.org>
6144
6145         * config.h.in:
6146         * regex.c:
6147         Use void*, not char*, as return type of alloca().
6148
6149         * alloc.c (free_marker): Side effect inside assert expression!
6150
6151 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
6152
6153         * mule-charset.c (Fset_charset_ccl_program): To check
6154         if the given ccl program is valid, use setup_ccl_program()
6155         instead of CHECK_VECTOR().
6156         (Fmake_charset): Likewise.
6157
6158 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
6159
6160         * faces.c (get_extent_fragment_face_cache_index):
6161         Fix cachel.merged_faces memory leak.
6162
6163 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
6164
6165         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
6166         Reset MSB of octets obtained by DECODE_SJIS
6167         because of the incompatibility with Emacs.
6168         (ccl_driver)<CCL_ENCODE_SJIS>:
6169         Set MSB of octets before passing them to
6170         ENCODE_SJIS because of the incompatibility
6171         with Emacs.
6172
6173 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
6174
6175         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
6176         (DECLARE_LRECORD): Undo the last change.
6177         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
6178
6179 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
6180
6181         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
6182         the implementation to lrecord_implementations_table.
6183
6184 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
6185
6186         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
6187         initial value of `lrecord_type_##c_name' and
6188         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
6189         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
6190         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
6191         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
6192         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
6193
6194 2000-10-17  Martin Buchholz  <martin@xemacs.org>
6195
6196         * miscplay.c (sndcnv8S_2mono):
6197         (sndcnv2monounsigned):
6198         (sndcnvULaw_2linear):
6199         (sndcnv16swap):
6200         Remove implementation-defined behavior.
6201
6202 2000-10-12  Martin Buchholz  <martin@xemacs.org>
6203
6204         * input-method-xlib.c: Warning suppression.
6205
6206 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
6207
6208         * mule-ccl.c: Sync up with Emacs 21.0.90.
6209         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
6210         Do nothing.
6211         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
6212         Likewise.
6213         (ccl_driver[WriteMultibyteChar2]): Bug fix.
6214         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
6215         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
6216         leading char belongs to official 2-dimensional charset.
6217         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
6218         write the given character as is.  Otherwise,
6219         if it is a multibyte char, convert it by
6220         non_ascii_set_charptr_emchar, then write it.
6221         (CCL_WRITE_STRING): Likewise.
6222         (ccl_get_compiled_code): New function.
6223         (setup_ccl_program): When ccl_prog is invalid,
6224         return -1.
6225         (Fregister_code_conversion_map): New function.
6226         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
6227
6228         * mule-ccl.h: Sync up with Emacs 21.0.90.
6229         (Fregister_ccl_program): export it.
6230
6231         * redisplay-msw.c (separate_textual_runs):
6232         If ccl program is not valid, don't do ccl conversion.
6233
6234         * redisplay-x.c (separate_textual_runs): Ditto.
6235
6236         * file-coding.c (Fmake_coding_system):
6237         When type is ccl and value is vector, register it
6238         with a proper symbol.  And checks whether the
6239         given ccl program is valid.
6240         (mule_decode): When calling ccl_driver, if src indicates
6241         NULL pointer, set an empty string instead.
6242         (mule_encode): Likewise.
6243
6244 2000-10-11  Martin Buchholz  <martin@xemacs.org>
6245
6246         The following large batch of changes gets us back to a state of
6247         C++ compilability.  Extbyte is now a char, which means that
6248         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
6249
6250         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
6251
6252         * sound.c (Fplay_sound): Type correctness.
6253
6254         * select-x.c (hack_motif_clipboard_selection): Type correctness.
6255         (x_get_window_property): Type correctness.
6256         (receive_incremental_selection): unsigned char ==> Extbyte
6257         (selection_data_to_lisp_data): unsigned char ==> Extbyte
6258         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
6259         (Fx_store_cutbuffer_internal): Type correctness.
6260
6261         * process-unix.c (try_to_initialize_subtty): Type correctness.
6262
6263         * objects-x.c (x_print_color_instance): Type correctness.
6264         (x_print_font_instance): Type correctness.
6265         (x_list_fonts): SExtbyte ==> Extbyte.
6266         (valid_x_font_name_p): SExtbyte ==> Extbyte.
6267         (x_find_charset_font): SExtbyte ==> Extbyte.
6268         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
6269         (truename_via_XListFonts): SExtbyte ==> Extbyte.
6270         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
6271         Use bufbyte_strcmp.
6272
6273         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
6274         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
6275         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
6276         (BYTE_C0_P): Use bit ops for char-signedness safety.
6277         (BYTE_C1_P): Use bit ops for char-signedness safety.
6278         (CHARSET_BY_LEADING_BYTE):
6279         (CHARSET_BY_ATTRIBUTES):
6280         Always use inline function.
6281         Use type_checking_assert.
6282         Hide chlook.
6283
6284         * mule-charset.c (non_ascii_charptr_copy_char):
6285         Modify to work with both ASCII and non-ASCII characters.
6286         Improve docs and variable names.
6287         Replace over-clever fall-through switch with a simple loop.
6288         (Lstream_get_emchar_1):
6289         Replace over-clever fall-through switch with a simple loop.
6290
6291         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6292         Warning suppression.
6293
6294         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
6295         the return value of Lstream_getc, which could be EOF as well.
6296
6297         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
6298
6299         * lisp.h: Make Extbyte a char, not unsigned char, so that external
6300         APIs can be used on Extbytes without casts.  Risky!
6301         (SExtbyte): Remove.
6302         (UExtbyte): Remove.
6303
6304         * input-method-xlib.c (XIM_init_device):
6305         Use Xlib.h instead of IntrinsicP.h.
6306         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
6307         which will break in X11R7.
6308         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
6309         to call XRegisterIMInstantiateCallback with correct types.
6310
6311         * gui-x.c (button_item_to_widget_value): Type correctness.
6312
6313         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
6314
6315         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
6316         (xbm_instantiate_1): Type correctness.
6317         (BUILD_GLYPH_INST):  Type correctness.
6318
6319         * fileio.c (Fsubstitute_in_file_name): Type correctness.
6320
6321         * file-coding.c:
6322         (decode_coding_sjis):
6323         (decode_coding_big5):
6324         (decode_coding_ucs4):
6325         (decode_coding_utf8):
6326         (decode_coding_iso2022):
6327         (decode_coding_no_conversion):
6328         Make all decoding functions take an Extbyte * arg.
6329         (encode_coding_sjis):
6330         (encode_coding_big5):
6331         (encode_coding_ucs4):
6332         (encode_coding_utf8):
6333         (encode_coding_iso2022):
6334         (encode_coding_no_conversion):
6335         Make all encoding functions take a Bufbyte * arg.
6336         Use size_t instead of unsigned int for memory sizes.
6337         Only cast to unsigned char whenever dereferencing Extbyte *.
6338
6339         * doc.c (unparesseuxify_doc_string): Type correctness.
6340
6341         * console-x.c (split_up_display_spec):
6342         Rewrite without using details of internal string representation.
6343         (x_semi_canonicalize_device_connection): Type correctness.
6344
6345         * config.h.in:
6346         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
6347         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
6348         (HAVE_XFREE386): Removed.
6349
6350         * buffer.h (DEC_CHARPTR): `const' correctness.
6351         (bufbyte_strcmp): New.
6352         (bufbyte_memcmp): New.
6353
6354         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6355
6356         * buffer.h (XCHAR_OR_CHAR_INT):
6357         Always use inline function.
6358         Remove redundant type checking assert() - XINT will abort quite nicely.
6359
6360 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6361
6362         * search.c (Freplace_match): Set newtext to an empty string.
6363
6364 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6365
6366         * s/decosf1-3.h: Remove #include of stropts.h
6367         * s/ptx.h: Remove #include of stropts.h
6368         * s/usg5-4.h: Remove #include of stropts.h
6369         * sysproc.h:
6370         * config.h.in:
6371         Use stropts.h, not sys/stropts.h.
6372         Use strtio.h, not sys/strtio.h.
6373
6374 2000-10-04  Martin Buchholz <martin@xemacs.org>
6375
6376         * XEmacs 21.2.36 is released.
6377
6378 2000-09-21  Andy Piper  <andy@xemacs.org>
6379
6380         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6381         changes still involve copying the widget tree.
6382         (update_widget_face): make sure a change is register in the widget
6383         tree. Call update_tab_widget_face appropriately.
6384         (update_tab_widget_face): ditto.
6385         (x_tab_control_redisplay): make sure non-structural changes still
6386         involve copying the widget tree.
6387
6388 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6389
6390         * lread.c (locate_file): Check the path element is non-nil.
6391
6392 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6393
6394         * lisp.h: Warning suppression for SCO compilers.
6395
6396         * redisplay-tty.c (reset_tty_modes): Fix crash.
6397         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6398
6399 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6400
6401         Big signal/process handling overhaul.  Bugs fixed:
6402         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6403         M-x comint-kill-subjob should work for both values nil and t of
6404         process-connection-type. It was broken on most platforms.
6405         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6406         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6407         * process-unix.c: Signal/Process handling overhaul.
6408         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6409         (allocate_pty): Use all available modern methods of allocating
6410         ptys, falling back to old style BSD allocation as a last resort.
6411         Use allegedly more secure Unix98 pty allocation by default.
6412         (allocate_pty_the_old_fashioned_way): New. the last resort.
6413         (unix_create_process): Push ptem, ldterm, ttcompat where
6414         available.  Autoconfiscate.
6415         (try_to_initialize_subtty): New.
6416         (unix_kill_child_process): Proper signal handling for ptys on most
6417         platforms, using special knowledge of AIX, BSD, etc...
6418         (unix_create_process): Always disconnect_controlling_terminal() for
6419         subprocesses, whether using ptys or not.
6420         * process.h: Remove old getpt-dependent PTY code.
6421         * process.c (Fprocess_send_signal): New, obvious generic function.
6422         (decode_signal): New.
6423         (Finterrupt_process):
6424         (Fkill_process):
6425         (Fquit_process):
6426         (Fstop_process):
6427         (Fcontinue_process):
6428         (Fsignal_process): Use decode_signal.
6429         (process_send_signal):
6430         Many docstring corrections.
6431         Allow any signal to be sent to a process object.
6432         * config.h.in: Add symbols for big signal/process overhaul.
6433         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6434         * sysproc.h: Include process-related headers, where available:
6435         sys/stropts.h sys/strtio.h pty.h libutil.h
6436         * s/irix4-0.h:
6437         * s/irix5-0.h:
6438         * s/cygwin32.h:
6439         * s/gnu.h:
6440         * s/linux.h:
6441         * s/hpux.h:
6442         * s/aix3-1.h:
6443         Remove old S&M pty stuff.
6444         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6445         * systty.h: Simplify cpp hackery, improve comments.
6446         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6447
6448         * editfns.c (Fformat_time_string):
6449         Be a little more paranoid with the return value of ctime.
6450
6451         * fileio.c (check_executable):
6452         (check_writable):
6453         Use symbolic constants X_OK, W_OK.
6454
6455         * console-x.c (split_up_display_spec): Fix a warning.
6456
6457 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6458
6459         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6460         * ntproc.c (sys_spawnve): make_string ==> build_string
6461         Small clarity improvements.
6462
6463 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6464
6465         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6466
6467         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6468
6469         * config.h.in (HAVE_STRCASECMP): Remove.
6470
6471 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6472
6473         * redisplay-output.c (redisplay_output_pixmap):
6474         Cleaner and possibly more 64-bit correct code.
6475
6476 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6477
6478         * dumper.c (pdump_load_finish): move restoration of
6479         `noninteractive1' to emacs.c (main_1).
6480         * emacs.c (main_1): protect LISP-visible command-line flags
6481         from pdump_load().
6482
6483 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6484
6485         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6486         DUMP_TARGET instead of literal program names.
6487
6488 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6489
6490         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6491
6492 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6493
6494         * *: Spelling mega-patch
6495
6496 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6497
6498         * fns.c (bad_bad_turtle):
6499         Delete "Eek!" comment, since we fixed the bug to which it refers.
6500
6501 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6502
6503         * alloca.c: Replace REGISTER with register.
6504
6505 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6506
6507         * file-coding.c (ucs_to_char): Use countof.
6508
6509 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6510
6511         * file-coding.c: (ucs_to_char):
6512         (complex_vars_of_file_coding):
6513         Use countof instead of sizeof.
6514         Use CHECK_NATNUM instead of CHECK_INT.
6515
6516         * sysdep.c (strcasecmp): Remove.
6517         * device-x.c (ascii_strcasecmp): New.
6518         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6519         Avoid using non-standard non-portable strcasecmp.
6520
6521 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6522
6523         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6524         * font-lock.c: remove reference to emacsfns.h.
6525         * search.c: small doc improvement.
6526         * event-Xt.c: correct file names in comments.
6527         * console-x.h Correct file names in comments.
6528         * frame.c: Correct file names in comments.
6529         * event-stream.c: remove Energize from comments.
6530
6531 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6532
6533         * symeval.h (DEFERROR_STANDARD):
6534         (DEFERROR):
6535         (DEFSYMBOL):
6536         (DEFSYMBOL_NO_DUMP):
6537         (DEFSYMBOL_MULTIWORD_PREDICATE):
6538         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6539         (DEFKEYWORD):
6540         The construct &##name is not sensible C.
6541         Fixes compilation errors with Unixware native compiler.
6542
6543 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6544
6545         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6546         (next_frame_internal): Removed.  We now just have next_frame.
6547         (next_frame):
6548         Write a simpler and cleaner one-pass algorithm.
6549         Remove called_from_delete_device arg and #ifdefed-out code.
6550         (previous_frame):
6551         Renamed from prev_frame.  Update callers.
6552         Cleaned up to have an analogous implementation to next_frame.
6553         (other_visible_frames_internal): Remove the
6554         called_from_delete_device bogus arg, and hence, remove this
6555         function.  Just use other_visible_frames().
6556
6557         * window.c (Fnext_window):
6558         Prettify docstring.
6559         Since next_frame() is guaranteed to return a frame, remove check
6560         for nil inserted in previous patch.
6561         (Fprevious_window):
6562         Prettify docstring.
6563         Make code look more like Fnext_window.
6564         (window_loop):
6565         Respect the `console' arg when iterating through windows.
6566         Fixes bug: (get-buffer-window buffer t device) not respecting
6567         the `device' arg.
6568         This function needs more work, as others have pointed out.
6569
6570         * frame.h: Rename prev_frame to previous_frame.
6571         device_matches_console_spec no longer takes a `frame' arg.
6572
6573         * s/gnu.h:
6574         * s/linux.h:
6575         * s/hpux.h:
6576         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6577         From "Golubev I. N." <gin@mo.msk.ru>.
6578
6579         * make-src-depend: Fix typo.
6580
6581 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6582
6583         * window.c (Fnext_window):
6584         next_frame() might return nil, not a frame.
6585         Fixes this crash:
6586         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6587
6588         * frame.c (next_frame_internal):
6589         We've passed a frame if we've passed its device.
6590         Fixes this crash:
6591         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6592 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6593
6594 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6595
6596         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6597         Allow option to suppress accelerators in menu/dialog items.
6598         (populate_or_checksum_helper): Pass dialog title through above.
6599
6600 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6601
6602         * event-msw.c (mswindows_key_to_emacs_keysym):
6603         Add "pause" key, fix "menu" key.
6604
6605 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6606
6607         * eval.c (reinit_vars_of_eval):
6608         Increase max_lisp_eval_depth to 1000,
6609         required for thai-xtis.el to byte-compile under some circumstances.
6610
6611 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6612
6613         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6614         From Kenichi Handa.
6615
6616 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6617
6618         * make-src-depend: Make the generated Makefiles smaller.
6619
6620         * s/hpux.h (SETUP_SLAVE_PTY):
6621         Provide a %d in the format string for the errno argument.
6622
6623         * editfns.c (Ftemp_directory):
6624         Warning fix.
6625         Avoid buffer overrun on very long file name.
6626
6627         * input-method-xlib.c (XIM_init_device):
6628         6th parameter of XRegisterIMInstantiateCallback has different
6629         pointer types on different OSes, so simply cast to (void *).
6630
6631         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6632
6633         * sysdll.c (dll_open):
6634         shl_load will hang hard if passed a NULL filename.
6635         Simply return NULL for compatibility with dlopen.
6636         * sysdll.c: Conform to XEmacs coding standards.
6637
6638         * sysdep.c (get_pty_max_bytes):
6639         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6640
6641 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6642
6643         * tooltalk.c: Add #include <syssignal.h>
6644
6645 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6646
6647         * s/hpux.h: Don't use undefined function sigunblock().
6648
6649 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6650
6651         * config.h.in: Add HAVE_BALLOON_HELP.
6652         * emacs.c: Use HAVE_BALLOON_HELP.
6653         * Makefile.in.in (x_objs):
6654         Make Balloon Help conditional on finding shape.h.
6655
6656 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6657
6658         * syntax.c (regex_emacs_buffer_p): New variable.
6659         * syntax.h (regex_emacs_buffer_p): extern.
6660         * search.c (looking_at_1):
6661         (string_match_1):
6662         (fast_string_match):
6663         (search_buffer): Set regex_emacs_buffer_p.
6664         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6665         when before_dot, at_dot, after_dot.
6666
6667 2000-08-23  Andy Piper  <andy@xemacs.org>
6668
6669         * gui-x.c (popup_selection_callback): Only set action_occurred
6670         when we really have an image instance.
6671         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6672
6673 2000-08-23  Andy Piper  <andy@xemacs.org>
6674
6675         * gui-msw.c (mswindows_handle_gui_wm_command): set
6676         action_occurred.
6677         * gui-x.c (popup_selection_callback): ditto.
6678
6679         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6680         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6681         (struct Lisp_Image_Instance): add action_occurred flag.
6682
6683         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6684         (image_instance_changed): ditto.
6685         (reset_frame_subwindow_instance_cache): only unmap windows - do
6686         not remove them from the cache also.
6687
6688         * glyphs-widget.c (tab_control_update): better debug.
6689         (progress_gauge_update): ditto.
6690         (layout_update): ditto.
6691         (layout_instantiate): ditto.
6692         (tab_control_order_only_changed): cope with null pending items.
6693
6694         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6695         debug. Force selection of an item when an action occurred. Cope
6696         with null pending_items.
6697         (mswindows_progress_gauge_redisplay): better debug.
6698         * glyphs-x.c (x_tab_control_redisplay): ditto.
6699
6700         * redisplay.c (redisplay_frame): reset the frame cache if the
6701         frame is garbaged.
6702
6703         * window.c (Fset_window_configuration): potentially re-enable
6704         frame cache reset.
6705         (window_unmap_subwindows): need to finalize instances here since
6706         it is only used in mark_window_as_deleted.
6707
6708 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6709
6710         * nas.c (SndOpenDataForReading):
6711         nas.c (WaveOpenDataForReading):
6712         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6713         Somehow escaped from the 2000-08-14 patch.
6714
6715 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6716
6717         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6718         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6719
6720 2000-08-21  Andy Piper  <andy@xemacs.org>
6721
6722         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6723         window if it is not already displayed.
6724
6725         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6726         it is not already displayed.
6727
6728         * window.c (Fset_window_configuration): don't reset the frame
6729         cache.
6730
6731         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6732         instances from the frame cache if we are actually finalizing them.
6733         (reset_frame_subwindow_instance_cache): reset frame cache only
6734         after unmapping everything.
6735         (map_subwindow): set displayed flag after mapping.
6736
6737 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6738
6739         * data.c (indirect_function):
6740         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6741
6742         * eval.c (function_argcount):
6743         Use original function when signaling errors.
6744
6745 2000-08-18  Andy Piper  <andy@xemacs.org>
6746
6747         * frame.c (delete_frame_internal): use new
6748         free_frame_subwindow_instances name.
6749
6750         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6751         (add_tab_item): make return type correct.
6752         (mswindows_tab_control_instantiate): assert index of tab.
6753         (mswindows_tab_control_redisplay): Re-code to use
6754         gui_item_equal_sans_selected and gui_item_list_find_selected.
6755
6756         * glyphs-widget.c (tab_control_update): Correct comment.
6757
6758         * window.c (window_unmap_subwindows): use new
6759         unmap_subwindow_instance_cache_mapper.
6760         (window_unmap_subwindows_cache_mapper): deleted.
6761         (Fset_window_configuration): comparisons should now be with
6762         EQ. Preserve the subwindow instance cache across configuration
6763         changes.
6764         (allocate_window): ditto.
6765         (make_dummy_parent): ditto.
6766
6767         * glyphs.c (free_frame_subwindow_instances): rename from
6768         free_frame_subwindow_instance_cache. finalize all instances rather
6769         than just those in the display cache.
6770         (finalize_all_subwindow_instances): walk windows unmapping and
6771         finalizing subwindows.
6772         (unmap_subwindow_instance_cache_mapper): moved from
6773         window.c. Allow finalization as well as unmapping.
6774
6775         * gui.c (gui_item_list_find_selected): new function.
6776
6777         * gui.h (gui_item_list_find_selected): declare.
6778
6779         * glyphs-x.c (x_tab_control_redisplay): pick tab
6780         explicitly. Re-code to use gui_item_equal_sans_selected and
6781         gui_item_list_find_selected.
6782
6783         * glyphs-x.h: add lwlib-utils.h
6784
6785         * buffer.c (Frecord_buffer): undo previous change.
6786
6787 2000-08-09  Vin Shelton  <acs@xemacs.org>
6788
6789         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6790         possible.  Create temporary files more securely.  The patch was
6791         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6792         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6793         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6794         for details.
6795
6796 2000-08-07  Ben Wing  <ben@xemacs.org>
6797
6798         * getloadavg.c: remove duplicate (and windows-breaking)
6799         includes of fcntl.h and sys/file.h.
6800
6801         * nt.c: remove duplicate getloadavg() definition.
6802
6803         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6804         encodings.
6805
6806 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6807
6808         * eval.c (function_argcount): If function needs to be autoloaded
6809         actually use the loaded definition.
6810         GCPRO function.
6811
6812 2000-08-05  Ben Wing  <ben@xemacs.org>
6813
6814         * getloadavg.c: add prototype for getloadavg().  remove
6815         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6816         of the code).  remove duplicate header includes.
6817
6818         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6819
6820         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6821         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6822         useful load average.
6823
6824         * alloc.c (reinit_alloc_once_early): removed references to
6825         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6826         the lisp vars are the only things referencing the malloc_sbrk_*
6827         vars, and they were already if 0'd out.  these vars only exist
6828         in the older malloc.c, which is basically unused, and they're
6829         only for informational purposes.
6830
6831         * m\*.h: removed useless VIRT_ADDR_VARIES.
6832
6833         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6834
6835 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6836
6837         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6838         color if the image is a mono pixmap.
6839
6840 2000-07-30  Ben Wing  <ben@xemacs.org>
6841
6842         * Makefile.in.in (release):
6843         Remove stray @.
6844
6845         * buffer.c (directory_is_current_directory):
6846         * dired-msw.c (mswindows_get_files):
6847         * dired.c:
6848         * dired.c (Fdirectory_files):
6849         * dired.c (file_name_completion_stat):
6850         * dired.c (Ffile_attributes):
6851         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6852         preprocessor tricks, to avoid problems on some machines
6853         (e.g. SCO).
6854
6855         * callproc.c (egetenv): GC docs.
6856
6857         * console-msw.h:
6858         * console-msw.h (struct mswindows_dialog_id):
6859         * lrecord.h (lrecord_type):
6860         New object for use with MSW dialogs.
6861
6862         * console.h (struct console_methods):
6863         New enable/disable frame methods, for proper modal dialogs.
6864
6865         * device-msw.c (msprinter_default_printer): Fix to follow
6866         proper Mule conventions.
6867
6868         * device-msw.c:
6869         * device-msw.c (signal_open_printer_error):
6870         * device-msw.c (msprinter_init_device):
6871         * device-msw.c (ensure_not_printing):
6872         * device-msw.c (plist_get_margin):
6873         * device-msw.c (Fmsprinter_select_settings):
6874         * device-msw.c (finalize_devmode):
6875         * device-msw.c (Fmsprinter_settings_despecialize):
6876         * device-msw.c (signal_enum_priner_error):
6877         * extents.c (decode_extent):
6878         * extents.c (decode_map_extents_flags):
6879         * extents.c (decode_extent_at_flag):
6880         * extents.c (Fextent_at):
6881         * extents.c (Fextents_at):
6882         * extents.c (symbol_to_glyph_layout):
6883         [[[[2]]]] Use structured errors.
6884
6885         * dialog-msw.c:
6886         * dialog-msw.c (mswindows_is_dialog_msg):
6887         * dialog-msw.c (mark_mswindows_dialog_id):
6888         * dialog-msw.c (dialog_proc):
6889         * dialog-msw.c (handle_question_dialog_box):
6890         * dialog-msw.c (syms_of_dialog_mswindows):
6891         Define new object to clean up marking; use it as a dialog identifier.
6892         Call new delete-dialog-box-hook.
6893
6894         * dialog-x.c (dbox_selection_callback):
6895         * dialog-x.c (dbox_descriptor_to_widget_value):
6896         * dialog-x.c (x_make_dialog_box_internal):
6897         Call new delete-dialog-box-hook.
6898         Return an id.
6899
6900         * dialog.c:
6901         * dialog.c (syms_of_dialog):
6902         * dialog.c (vars_of_dialog):
6903         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6904
6905         * eval.c:
6906         * eval.c (signal_call_debugger):
6907         when noninteractive, output stack traces on the console instead
6908         of in a (never-seen) buffer.
6909
6910         * eval.c (signal_type_error):
6911         * eval.c (invalid_argument_2):
6912         * lisp.h:
6913         new funs for use w/structured errors.
6914
6915         * event-Xt.c:
6916         * event-Xt.c (x_to_emacs_keysym):
6917         * event-Xt.c (describe_event):
6918         * event-Xt.c (emacs_Xt_event_handler):
6919         * event-Xt.c (vars_of_event_Xt):
6920         * event-msw.c:
6921         * event-msw.c (mswindows_wnd_proc):
6922         * event-msw.c (vars_of_event_mswindows):
6923         rename {x,mswindows}-debug-events to debug-{}-events for
6924         consistency with other debug-foo variables.
6925
6926         * event-stream.c:
6927         document next-event more clearly.
6928
6929         * fileio.c (Ffile_name_directory):
6930         * fileio.c (Ffile_name_nondirectory):
6931         * fileio.c (Funhandled_file_name_directory):
6932         * fileio.c (file_name_as_directory):
6933         * fileio.c (Ffile_name_as_directory):
6934         * fileio.c (directory_file_name):
6935         * fileio.c (Fdirectory_file_name):
6936         * fileio.c (Fmake_temp_name):
6937         * fileio.c (Ffile_truename):
6938         * fileio.c (Fsubstitute_in_file_name):
6939         * fileio.c (expand_and_dir_to_file):
6940         * fileio.c (barf_or_query_if_file_exists):
6941         * fileio.c (check_executable):
6942         * fileio.c (Ffile_exists_p):
6943         * fileio.c (Ffile_writable_p):
6944         * fileio.c (Ffile_directory_p):
6945         * fileio.c (Ffile_regular_p):
6946         * fileio.c (Ffile_modes):
6947         * fileio.c (Ffile_newer_than_file_p):
6948         * fileio.c (Fverify_visited_file_modtime):
6949         * fileio.c (Fset_visited_file_modtime):
6950         * fileio.c (auto_save_1):
6951         (1). (2).
6952         fix up gcpro's.
6953
6954         * frame-msw.c:
6955         * frame-msw.c (mswindows_init_frame_1):
6956         * frame-msw.c (mswindows_enable_frame):
6957         * frame-msw.c (error_frame_unsizable):
6958         * frame-msw.c (msprinter_init_frame_1):
6959         * frame-msw.c (msprinter_init_frame_3):
6960         * frame-msw.c (console_type_create_frame_mswindows):
6961         (2).
6962         implement new enable/disable frame methods.
6963
6964         * frame-x.c:
6965         * frame-x.c (x_enable_frame):
6966         * frame-x.c (console_type_create_frame_x):
6967         implement new enable/disable frame methods.
6968
6969         * frame.c:
6970         * frame.c (Fdisable_frame):
6971         * frame.c (syms_of_frame):
6972         * frame.h (struct frame):
6973         implement new enable/disable frame methods/functions.
6974
6975         * general-slots.h:
6976         add initial-focus.
6977
6978         * glyphs-msw.c (mswindows_widget_instantiate):
6979         comment that initial-focus should be implemented.
6980
6981         * glyphs-widget.c:
6982         * glyphs-widget.c (check_valid_instantiator):
6983         * glyphs-widget.c (check_valid_orientation):
6984         * glyphs-widget.c (check_valid_tab_orientation):
6985         * glyphs-widget.c (check_valid_justification):
6986         * glyphs-widget.c (check_valid_border):
6987         * glyphs-widget.c (check_valid_callback):
6988         * glyphs-widget.c (check_valid_int_or_function):
6989         * glyphs-widget.c (check_valid_string_or_vector):
6990         * glyphs-widget.c (check_valid_item_list_1):
6991         * glyphs-widget.c (widget_validate):
6992         * glyphs-widget.c (combo_box_validate):
6993         * glyphs-widget.c (widget_instantiate):
6994         * glyphs-widget.c (syms_of_glyphs_widget):
6995         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6996         * glyphs-widget.c (image_instantiator_combo_box):
6997         * glyphs-widget.c (image_instantiator_scrollbar):
6998         * glyphs-widget.c (image_instantiator_tab_control):
6999         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
7000         (2).
7001         support (unimplemented) keyword initial-focus.
7002         reindent long macros.
7003
7004         * glyphs-x.c (x_redisplay_widget):
7005         * glyphs-x.c (x_button_instantiate):
7006         * glyphs-x.c (x_button_redisplay):
7007         * glyphs-x.c (x_progress_gauge_instantiate):
7008         * glyphs-x.c (x_edit_field_instantiate):
7009         * glyphs-x.c (x_combo_box_instantiate):
7010         * glyphs-x.c (x_tab_control_instantiate):
7011         * glyphs-x.c (x_label_instantiate):
7012         * gui-x.c:
7013         * gui-x.c (button_item_to_widget_value):
7014         * gui-x.c (gui_items_to_widget_values_1):
7015         * gui-x.c (gui_item_children_to_widget_values):
7016         * gui-x.c (gui_items_to_widget_values):
7017         * gui-x.h:
7018         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7019         add new flag to gui-parsing routines to indicate whether
7020         accelerator specs should be supported.
7021
7022         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
7023
7024         * glyphs.h (struct Lisp_Image_Instance):
7025         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
7026         add initial-focus flag.
7027
7028         * gui.c:
7029         * gui.c (syms_of_gui):
7030         * gui.c (vars_of_gui):
7031         clean up menu-no-selection-hook.
7032
7033         * gui.h:
7034         support delete-dialog-box-hook.
7035
7036         * lread.c (Fload_internal):
7037         * lread.c (locate_file_in_directory_mapper):
7038         (1).
7039
7040         * lrecord.h:
7041         * lrecord.h (struct toolbar_button):
7042         * lrecord.h (syms_of_toolbar):
7043         document how to create a new object.
7044
7045         * menubar-msw.c (mswindows_char_is_accelerator):
7046         may be called on frames w/o menus.
7047
7048         * menubar.c (vars_of_menubar):
7049         clean up :filter docs.
7050
7051         * nt.c (readdir):
7052         * ntproc.c:
7053         (1).
7054
7055         * process-nt.c:
7056         * process-nt.c (validate_signal_number):
7057         * process-nt.c (signal_cannot_launch):
7058         * process-nt.c (nt_create_process):
7059         * process-nt.c (nt_send_process):
7060         * process-nt.c (nt_kill_child_process):
7061         * process-nt.c (nt_open_network_stream):
7062         * process-nt.c (syms_of_process_nt):
7063         (2).
7064         delete quote-handling.  call new lisp code that does it better.
7065
7066         * process-unix.c (connect_to_file_descriptor):
7067         * process-unix.c (allocate_pty):
7068         * process-unix.c (unix_send_process):
7069         * process-unix.c (unix_kill_child_process):
7070         * process-unix.c (unix_open_network_stream):
7071         * process-unix.c (unix_open_multicast_group):
7072         (1). (2).
7073
7074         * process.c:
7075         * process.c (Fstart_process_internal):
7076         (2).  need to canonicalize process path even if absolute.
7077
7078         * select-msw.c (symbol_to_ms_cf):
7079         * select-msw.c (ms_cf_to_symbol):
7080         * select-msw.c (cf_is_autofreed):
7081         * select-msw.c (mswindows_destroy_selection):
7082         * select.c:
7083         * select.c (syms_of_select):
7084         * select.h:
7085         support dibv5, fix bugs. (from Mike Alexander)
7086
7087         * select.c (Fget_selection_internal):
7088         * select.c (select_convert_out):
7089
7090         * sysdep.c:
7091         * sysdep.c (xemacs_stat):
7092         renamed.
7093
7094         * sysdep.c (mkdir):
7095         * sysdep.c (rmdir):
7096         but keep original stat() here because we provide encapsulation
7097         around these funs.
7098
7099         * sysfile.h:
7100         * sysfile.h (fstat):
7101         remove stat garbage.
7102
7103         * syswindows.h:
7104         fix X/MSW conflict.
7105         don't include tchar.h.  it's inappropriate because it makes
7106         compile-time distinctions when we want runtime distinctions.
7107         (we provide our own tchar replacements)
7108
7109         * toolbar.c:
7110         use default object printer for toolbar-button.
7111
7112         * unexcw.c:
7113         make sure we don't encapsulate.
7114
7115         * window.c (vars_of_window):
7116         emphasize that temp-buffer-show-hook is obsolete.
7117
7118 2000-08-05  Martin Buchholz  <martin@xemacs.org>
7119
7120         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
7121         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
7122
7123         * events.c (Fevent_timestamp_lessp):
7124         Not 64-bit clean.  Use EMACS_INT, not int.
7125
7126 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
7127
7128         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
7129         unsigned int and changed the last enum to
7130         lrecord_type_last_built_in_type.
7131         (lrecord_implementations_table): changed prototype to know how
7132         long the array is supposed to be.
7133         (lrecord_type_count): new unsigned int to keep track of the
7134         current number of lisp lrecord types.
7135         (DEFINE_EXTERNAL_LRECORD):
7136         (DECLARE_EXTERNAL_LRECORD): Added these two for external
7137         dynamic-modules to declare new lisp types. They are the same
7138         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
7139         int for each new type, and increment lrecord_type_count by 1.
7140
7141         * alloc.c (lrecord_implementations_table): Changed to reference
7142         lrecord_type_last_built_in_type for the size of the array.
7143         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
7144
7145 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
7146
7147         * glyphs.h (check_valid_item_list): Renamed from
7148         check_valid_item_list_1.
7149
7150 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
7151
7152         * select.c (Qselect_coerce): New.
7153         * select.c (Vselection_coercion_alist): New.
7154         * select.c (syms_of_select): Declare.
7155         * select.c (get-selection-internal): Use it.
7156         Use the new select-coerce functionality.
7157
7158         * select.c (select_coerce): New.
7159         * select.h (select_coerce): Declare.
7160         New function to coerce one type of data into another.
7161
7162 2000-08-03  Martin Buchholz  <martin@xemacs.org>
7163
7164         * callproc.c (Fcall_process_internal):
7165         (Fcall_process_internal):
7166         * process-unix.c (unix_create_process):
7167         Save and restore the value of errno, so that error messages are accurate.
7168
7169 2000-08-01  Martin Buchholz  <martin@xemacs.org>
7170
7171         * elhash.c (print_hash_table):
7172         Fix printing of hash tables to also use `key-and-value' instead of `t'.
7173         Prettify docstrings and indentation.
7174
7175 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7176
7177         * window.c (Fwindow_pixel_edges): Subtract frame border and
7178         gutter size.
7179
7180 2000-07-31  Andy Piper  <andy@xemacs.org>
7181
7182         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
7183         will acknowledge the change.
7184
7185         * glyphs.h: declare tab_control_order_only_changed.
7186
7187         * glyphs-x.c (x_tab_control_redisplay): use
7188         tab_control_order_only_changed.
7189
7190         * glyphs-widget.c (tab_control_order_only_changed): new function.
7191
7192         * glyphs-msw.c (mswindows_tab_control_redisplay): use
7193         tab_control_order_only_changed.
7194
7195         * gui.c (gui_item_equal_sans_selected): new function.
7196         (gui_item_equal): use it.
7197
7198         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
7199         :properties in favor of :items..
7200
7201         * glyphs-widget.c (check_valid_item_list): rename from
7202         check_valid_item_list_1.
7203         (check_valid_item_list_1): renamed.
7204         (combo_box_validate): deprecate :properties in favor of :items.
7205         (widget_instantiate): ditto.
7206         (tab_control_update): ditto.
7207         (image_instantiator_combo_box): ditto.
7208         (image_instantiator_tree_view): ditto.
7209         (image_instantiator_tab_control): ditto.
7210         (layout_post_instantiate): remove dead code.
7211
7212         * print.c (debug_print_no_newline): only write to debugger if in
7213         WIN32_NATIVE.
7214
7215         * elhash.c (Fmake_hash_table): update doc string.
7216
7217         * event-msw.c (mswindows_wnd_proc): don't allow processing of
7218         messages whilst in GC. This at least stops XEmacs crashing but has
7219         the potential for wierd behaviour.
7220
7221 2000-07-31  Martin Buchholz  <martin@xemacs.org>
7222
7223         * config.h.in:
7224         Make existence of s&m files optional.
7225
7226         * s/bsd386.h: Remove HAVE_GETLOADAVG.
7227         * s/freebsd.h: Remove HAVE_GETLOADAVG.
7228         * s/gnu.h: Remove HAVE_GETLOADAVG.
7229         * s/netbsd.h: Remove HAVE_GETLOADAVG.
7230         * s/sol2.h: Remove HAVE_GETLOADAVG.
7231         * lisp.h: Remove getloadavg() declaration.
7232         * fns.c:
7233         Include <sys/loadavg.h> if available.
7234         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
7235         * config.h.in:  Group together getloadavg()-related macros.
7236         Use only configure-time tests to detect getloadavg().
7237
7238 2000-07-30  Martin Buchholz  <martin@xemacs.org>
7239
7240         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
7241
7242 2000-07-25  Andy Piper  <andy@xemacs.org>
7243
7244         * syswindows.h: add tchar.h for native builds.
7245
7246         * frame.c (syms_of_frame): remove set-glyph-image.
7247
7248         * general-slots.h: add Qset_glyph_image.
7249
7250         * glyphs-widget.c (layout_update): add domain arg to
7251         set-glyph-image.
7252         (syms_of_glyphs_widget): remove set-glyph-image.
7253
7254 2000-07-23  Ben Wing  <ben@xemacs.org>
7255
7256         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
7257         Vpopup_frame_list.
7258
7259 2000-07-22  Andy Piper  <andy@xemacs.org>
7260
7261         * symsinit.h: add syms_of_win32().
7262
7263         * gui-msw.c (syms_of_gui_mswindows): remove
7264         Fmswindows_shell_execute.
7265         (Fmswindows_shell_execute): moved to win32.c.
7266
7267         * emacs.c (main_1): add syms_of_win32 ().
7268
7269         * win32.c (init_potentially_nonexistent_functions): rewrite in
7270         compiler-friendly terms.
7271         (Fmswindows_shell_execute): move here from gui-msw.c.
7272         (syms_of_win32): new.
7273
7274         * device-msw.c (Fmswindows_printer_list): clean up args to
7275         EnumPrinters.
7276         Don't include tchar under cygwin or mingw.
7277         (msprinter_default_printer): make cygwin-friendly.
7278
7279 2000-07-21  Andy Piper  <andy@xemacs.org>
7280
7281         * glyphs-widget.c (image_instantiator_tree_view): use tab
7282         control's update function.
7283         (layout_property): new function. Retrieve items.
7284
7285         * glyphs-msw.c (mswindows_tree_view_redisplay): new
7286         function. Re-populate the tree view from the pending items.
7287
7288         * glyphs.c (instantiate_image_instantiator): Make sure the domain
7289         is designated the parent if the domain is an image instance. This
7290         is needed so that dirtiness can be cascade up the hierarchy and
7291         thus for layout children to be redisplayed correctly.
7292         (allocate_image_instance): rename glyph -> parent.
7293
7294         * redisplay.h: change redisplay_output_layout signature.
7295
7296         * redisplay-msw.c (mswindows_output_display_block): use domain
7297         arg.
7298
7299         * redisplay-x.c (x_output_display_block): use domain arg.
7300
7301 2000-07-10  Andy Piper  <andy@xemacs.org>
7302
7303         * window.c (Fset_window_configuration): add comment.
7304
7305         * redisplay-output.c (compare_runes):
7306         (redisplay_output_subwindow): redisplay rather than update subwindow.
7307         (redisplay_output_layout): ditto.
7308
7309         * redisplay-msw.c (mswindows_frame_output_end):
7310         (mswindows_frame_output_end): make defer window pos optional.
7311
7312         * lisp.h: add Flast.
7313
7314         * glyphs.h (struct image_instantiator_methods): add dest_mask top
7315         normalize method. Change update method to be for changed
7316         instantiators. Add redisplay method. Change signature of layout
7317         method.
7318         (struct Lisp_Image_Instance): add instantiator.
7319         (IMAGE_INSTANCE_INSTANTIATOR): new.
7320         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
7321         (XIMAGE_INSTANCE_INSTANTIATOR): new.
7322         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
7323
7324         * glyphs.c:
7325         (find_instantiator_differences): new function.
7326         (Fset_instantiator_property): new convenience function.
7327         (check_image_instance_structure): strictly check for vector
7328         instantiators.
7329         (normalize_image_instantiator): make non-static.
7330         (instantiate_image_instantiator): pass on dest_mask and use new
7331         signatures for image_instance_layout and friends.
7332         (mark_image_instance): mark the instantiator. Mark the subwindow
7333         face not the widget face.
7334         (image_instance_equal): add instantiator.
7335         (image_instance_hash): ditto.
7336         (allocate_image_instance): ditto.
7337         (Fset_image_instance_property): removed.
7338         (Fimage_instance_file_name): ditto.
7339         (Fcolorize_image_instance): ditto.
7340         (image_instance_layout): add offsets to be set.
7341         (update_image_instance): new function. update an image instance
7342         from its changed instantiator.
7343         (inherit_normalize): add dest_mask.
7344         (xbm_normalize): ditto.
7345         (xface_normalize): ditto.
7346         (xpm_normalize): ditto.
7347         (text_update): set_property -> update.
7348         (image_instantiate): use the glyph identity as a hash key, not the
7349         instantiator.
7350         (glyph_width): use new image_instance_layout signature.
7351         (glyph_ascent): ditto.
7352         (glyph_descent): ditto.
7353         (glyph_height): ditto.
7354         (glyph_query_geometry): ressurrect.
7355         (glyph_layout): ditto.
7356         (redisplay_subwindow): update -> redisplay.
7357         (syms_of_glyphs): add Fset_instantiator_property.
7358         (image_instantiator_format_create): set_property -> update.
7359
7360         * glyphs-x.c:
7361         (autodetect_normalize): add dest_maks to signature.
7362         (x_redisplay_subwindow): update -> redisplay.
7363         (x_redisplay_widget): ditto.
7364         (x_button_redisplay): ditto.
7365         (x_progress_gauge_redisplay): ditto.
7366         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7367         stacking order.
7368         (console_type_create_glyphs_x): update -> redisplay.
7369         (image_instantiator_format_create_glyphs_x): ditto.
7370
7371         * glyphs-widget.c:
7372         (check_valid_instantiator): disallow glyphs in the instantiator,
7373         they must now be vectors.
7374         (check_valid_instantiator_list): ditto.
7375         (glyph_instantiator_to_glyph): use internal symbol rather than
7376         intern.
7377         (widget_update): renamed from widget_set_property. Call cascaded
7378         update methods.
7379         (redisplay_widget): renamed from update_widget.
7380         (widget_layout): image_instance_layout now takes position as well
7381         as size.
7382         (widget_normalize): ditto.
7383         (widget_instantiate): ditto.
7384         (tab_control_query_geometry) ditto.:
7385         (tab_control_update): renamed from tab_control_set_property.
7386         (progress_gauge_update): set_property -> update.
7387         (layout_normalize): rewrite so that child instantiators are
7388         normalized also.
7389         (layout_update): new function. Create glyphs from the normalized
7390         children and cope with any other layout keywords. We do not
7391         instantiate children here that will be take care of by
7392         redisplay_output_layout.
7393         (layout_instantiate): call layout_update and not much else.
7394         (layout_post_instantiate): not sure whether this is needed
7395         anymore.
7396         (layout_query_geometry): query glyph geometry rather than
7397         image_instance geometry.
7398         (layout_layout): set offsets from pass in parameters. Use glyph
7399         geometry and layout functions rather than image instance ones.
7400         (native_layout_layout): ditto.
7401         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7402         (image_instantiator_widget): set_property -> update.
7403         (image_instantiator_buttons): ditto.
7404         (image_instantiator_progress_guage): ditto.
7405         (image_instantiator_tab_control): ditto.
7406         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7407         (image_instantiator_layout): add update method.
7408
7409         * glyphs-msw.c (bmp_normalize):
7410         (mswindows_resource_normalize): add dest_mask so that it can be
7411         proprogated by layout_normalize.
7412         (begin_defer_window_pos): make optional because it may not be the
7413         right thing to do and it introduces differences with X.
7414         (mswindows_unmap_subwindow): ditto.
7415         (mswindows_map_subwindow): ditto.
7416         (mswindows_redisplay_subwindow): renamed from
7417         mswindows_update_subwindow.
7418         (mswindows_redisplay_widget): ditto.
7419         (mswindows_button_redisplay): renamed from
7420         mswindows_button_update. Update is now what the instantiation
7421         function does for a changed instantiator.
7422         (mswindows_progress_gauge_instantiate): set the progress value
7423         here if appropriate.
7424         (mswindows_tab_control_redisplay): cope with re-ordering of the
7425         members of the tab widget by simply selecting the new top
7426         widget. This makes things appear ok if you click on a tab.
7427         (mswindows_combo_box_instantiate): image_instance_layout now takes
7428         position as well as size.
7429         (mswindows_progress_gauge_redisplay): renamed from
7430         mswindows_progress_gauge_update.
7431         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7432         (image_instantiator_format_create_glyphs_mswindows): ditto.
7433
7434         * glyphs-eimage.c (jpeg_normalize):
7435         (gif_normalize):
7436         (png_normalize):
7437         (tiff_normalize): add dest_mask so that it can be proprogated by
7438         layout_normalize.
7439
7440         * elhash.c:
7441         (print_hash_table):
7442         (hash_table_weakness_validate):
7443         (decode_hash_table_weakness):
7444         (Fhash_table_weakness):
7445         (Fhash_table_type):
7446         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7447
7448         * console.h (struct console_methods): move update_* to
7449         redisplay_*.
7450
7451 2000-07-20  Ben Wing  <ben@xemacs.org>
7452
7453         * *.[ch] (XSETOBJ): remove unused middle argument.
7454         lisp-disunion.h: correct wrap_object() to one argument.
7455
7456 2000-07-15  Ben Wing  <ben@xemacs.org>
7457
7458         * s/cygwin32.h:
7459         * s/cygwin32.h (CYGWIN_CONV_PATH):
7460         Add missing logb prototype for v1.1.
7461         Use post-b20 names and alias to pre-b20 names when pre-b20.
7462
7463         * s/windowsnt.h: [5].
7464
7465 2000-07-15  Ben Wing  <ben@xemacs.org>
7466
7467         * Makefile.in.in (x_objs):
7468         * Makefile.in.in (sheap_objs):
7469         * Makefile.in.in (objs):
7470         added win32.o, cosmetic cleanups.
7471
7472         * alloc.c (Fmake_byte_code):
7473         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7474         etc. macros which declare their own args now.
7475
7476         * alloc.c (syms_of_alloc):
7477         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7478
7479         * buffer.c:
7480         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7481
7482         * buffer.c (Fget_file_buffer):
7483         Fixed GCPRO problem.
7484
7485         * buffer.c (get_truename_buffer):
7486         Fixed comment about GC checking.
7487
7488         * buffer.c (syms_of_buffer):
7489         Undeclared those dedicated frame funs.
7490         [2].
7491
7492         * buffer.h:
7493         Define convenience macros for internal/external conversions.
7494         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7495         and Qenvironment_variable_encoding for cleaner code.
7496
7497         * bufslots.h:
7498         Remove dedicated-frame; in lisp.
7499
7500         * bytecode.c (funcall_compiled_function):
7501         [1].
7502
7503         * bytecode.c (syms_of_bytecode):
7504         [2].
7505
7506         * console-msw.c:
7507         * console-msw.c (mswindows_show_console): Rewrote.
7508
7509         * console-msw.c (Fmswindows_debugging_output): New.
7510         Sends to OutputDebugString (special MSWin debugger interface).
7511
7512         * console-msw.c (Fmswindows_message_box):
7513         Fixed stupid bugs so it works when called from kill-emacs.
7514
7515         * console-msw.c (syms_of_console_mswindows):
7516         Declare Fmswindows_debugging_output.
7517
7518         * console-msw.h:
7519         New MSWin prototypes.
7520
7521         * console-msw.h (struct mswindows_frame):
7522         New entry last-click-mods for improved button-modifier support.
7523
7524         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7525         New struct entry `popup' with corresponding accessor.
7526
7527         * console-x.c:
7528         * console-x.c (split_up_display_spec):
7529         * console-x.c (get_display_arg_connection):
7530         * console-x.c (x_semi_canonicalize_console_connection):
7531         * console-x.c (x_canonicalize_device_connection):
7532         [[[6]]]: Change char to more specific type.
7533         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7534
7535         * console-x.c (x_semi_canonicalize_console_connection):
7536         * console-x.c (x_canonicalize_device_connection):
7537         [[[9]]]: Fix up error signalling to use new structured error system.
7538
7539         * console-x.h:
7540         [[[4]]]: Define codesys aliases:
7541         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7542         Qx_color_name_encoding, Qx_display_name_encoding.
7543
7544         * console.h (struct console_methods):
7545         New method make_dialog_box_internal supersedes older
7546         popup_dialog_box method.
7547
7548         * data.c:
7549         Define many new errors, part of new structured errors.
7550
7551         * data.c (init_errors_once_early):
7552         * data.c (syms_of_data):
7553         [2].
7554
7555         * device-msw.c (mswindows_init_device):
7556         [[[5]]]: Cleanup to support NT 3.51.
7557
7558         * device-msw.c (decode_devmode): Cleanup.
7559
7560         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7561         * device-msw.c (mswindows_handle_print_dialog_box):
7562         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7563         * device-msw.c (syms_of_device_mswindows):
7564         Delete the dialog box primitives recently introduced by Kirill and
7565         instead interface to general dialog box interface.
7566
7567         * device-x.c:
7568         * device-x.c (compute_x_app_name):
7569         * device-x.c (x_init_device):
7570         * device-x.c (Fx_valid_keysym_name_p):
7571         * device-x.c (Fx_set_font_path):
7572         [6].
7573         [7].
7574
7575         * device.h (wrap_device): New.
7576         First of its kind; meant to replace XSETDEVICE.
7577
7578         * dialog-msw.c: Many file-dialog symbols.
7579
7580         * dialog-msw.c (mswindows_register_popup_frame): New.
7581         * dialog-msw.c (mswindows_is_dialog_msg): New.
7582         For supporting kbd traversal in dialog boxes.
7583
7584         * dialog-msw.c (dialog_proc):
7585         Support hitting ESC in dialogs.
7586
7587         * dialog-msw.c (struct):
7588         Common dialog box errors.
7589
7590         * dialog-msw.c (handle_file_dialog_box): New.
7591         Add file dialog code.
7592
7593         * dialog-msw.c (handle_question_dialog_box):
7594         Redo existing code to support new question dialog syntax.
7595
7596         * dialog-msw.c (console_type_create_dialog_mswindows):
7597         We support new dialog console method.
7598
7599         * dialog-msw.c (syms_of_dialog_mswindows):
7600         * dialog-msw.c (vars_of_dialog_mswindows):
7601         New file dialog symbols, vars.
7602
7603         * dialog-x.c:
7604         * dialog-x.c (maybe_run_dbox_text_callback):
7605         * dialog-x.c (dbox_descriptor_to_widget_value):
7606         * dialog-x.c (x_make_dialog_box_internal):
7607         * dialog-x.c (console_type_create_dialog_x):
7608         Mule-ize entire file.
7609         Redo to support question dialog syntax.
7610         [6].
7611
7612         * dialog.c:
7613         * dialog.c (Fmake_dialog_box_internal):
7614         * dialog.c (syms_of_dialog):
7615         Kill old popup-dialog-box, replace with new primitive.
7616         Just call device method or signal error.
7617
7618         * eldap.c (Fldap_open):
7619         * eldap.c (Fldap_search_basic):
7620         * eldap.c (Fldap_add):
7621         * eldap.c (Fldap_modify):
7622         [1].
7623         [7].
7624
7625         * emacs.c:
7626         * emacs.c (make_arg_list_1):
7627         * emacs.c (make_arg_list):
7628         Mule-ize call to dll_init().
7629         [6].
7630         [8].
7631
7632         * emacs.c (make_argc_argv):
7633         * emacs.c (free_argc_argv):
7634         * emacs.c (init_cmdargs):
7635         * emacs.c (main_1):
7636         * emacs.c (Fkill_emacs):
7637         * emacs.c (Fdump_emacs):
7638         Update comments about what can be used in syms_* etc.
7639         Call init_win32() when necessary.
7640         Fix up MS Win dialog box in kill-buffer to actually work right.
7641         [7].
7642
7643         * eval.c:
7644         * eval.c (For):
7645         * eval.c (Fand):
7646         * eval.c (Fprogn):
7647         * eval.c (Fprog1):
7648         * eval.c (Fprog2):
7649         * eval.c (FletX):
7650         * eval.c (Flet):
7651         * eval.c (condition_case_3):
7652         * eval.c (Feval):
7653         * eval.c (function_argcount):
7654         * eval.c (funcall_lambda):
7655         [1].
7656
7657         * eval.c (type_error): New.
7658         * eval.c (maybe_type_error): New.
7659         * eval.c (continuable_type_error): New.
7660         * eval.c (maybe_continuable_type_error): New.
7661         * eval.c (type_error_with_frob): New.
7662         * eval.c (maybe_type_error_with_frob): New.
7663         * eval.c (continuable_type_error_with_frob): New.
7664         * eval.c (maybe_continuable_type_error_with_frob): New.
7665         New functions for use with structured errors.
7666
7667         * event-Xt.c:
7668         * event-Xt.c (x_event_to_emacs_event):
7669         Buttons are now modifiers too.
7670
7671         * event-Xt.c (emacs_Xt_current_event_timestamp):
7672         Implement new event method.
7673         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7674
7675         * event-msw.c:
7676         * event-msw.c (ntpipe_shove_writer): [5].
7677         * event-msw.c (mswindows_enqueue_mouse_button_event):
7678         * event-msw.c (mswindows_drain_windows_queue):
7679         * event-msw.c (mswindows_wnd_proc): [7].
7680         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7681         * event-msw.c (mswindows_modifier_state):
7682         Throughout: support new button modifiers.
7683
7684         * event-msw.c (emacs_mswindows_current_event_timestamp):
7685         Implement new event method.
7686         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7687
7688         * event-stream.c:
7689         * event-stream.c (event_stream_current_event_timestamp): New.
7690         * event-stream.c (maybe_kbd_translate): New functionality.
7691         * event-stream.c (vars_of_event_stream):
7692         Document new kbd-translate-table functionality.
7693
7694         * event-stream.c (Fcurrent_event_timestamp): New.
7695         New primitive for use in fabricated events.
7696         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7697
7698         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7699
7700         * events.c:
7701         * events.c (Fmake_event):
7702         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7703         [1].
7704         [9].
7705
7706         * events.c (format_event_object): fix gcc warnings.
7707
7708         * events.c (Fevent_timestamp): Document new primitives.
7709
7710         * events.c (TIMESTAMP_HALFSPACE): New.
7711
7712         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7713         comparing timestamps correctly (half-space algorithm).
7714
7715         * events.c (Fevent_modifier_bits): Doc fix.
7716
7717         * events.c (Fevent_modifiers): Major doc addition.
7718         * events.c (event_x_y_pixel_internal): Typo fix.
7719         * events.c (syms_of_events): Declare new primitives.
7720
7721         * events.h:
7722         Update long comment for button modifiers, timestamps.
7723
7724         * events.h (struct event_stream):
7725         New current_event_timestamp method.
7726
7727         * extents.c:
7728         * extents.c (extent_in_region_p):
7729         * extents.c (decode_extent):
7730         * extents.c (Fset_extent_parent):
7731         * extents.c (decode_map_extents_flags):
7732         Fix gcc warnings.
7733         [9].
7734
7735         * extents.c (struct extent_at_arg):
7736         * extents.c (decode_extent_at_flag):
7737         * extents.c (extent_at_mapper):
7738         * extents.c (extent_at_bytind):
7739         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7740         * extents.c (Fextents_at): New primitive. [9].
7741         * extents.c (symbol_to_glyph_layout): [9].
7742         Support new primitive `extents-at'.
7743
7744
7745         * extents.c (get_text_property_bytind):
7746         extent_at_bytind has another arg.
7747         [9].
7748
7749         * extents.c (syms_of_extents): New primitive.
7750
7751         * file-coding.c (Fmake_coding_system): [1].
7752         * file-coding.c (subsidiary_coding_system): fix gcc warning
7753         * file-coding.c (syms_of_file_coding): [2].
7754
7755         * fileio.c (Fexpand_file_name):
7756         * fileio.c (Fsysnetunam):
7757         * fileio.c (Ffile_exists_p):
7758         * fileio.c (Ffile_executable_p):
7759         * fileio.c (Fverify_visited_file_modtime):
7760         Clean up GCPROing.
7761
7762         * fileio.c (syms_of_fileio): [2].
7763
7764         * filelock.c (lock_file_1):
7765         * filelock.c (current_lock_owner):
7766         * filelock.c (lock_if_free):
7767         * filelock.c (lock_file):
7768         * filelock.c (unlock_file):
7769         Clean up GCPROing.
7770
7771         * fns.c (concat): Fix gcc warning.
7772
7773         * fns.c (Fmember):
7774         * fns.c (Fold_member):
7775         * fns.c (Fmemq):
7776         * fns.c (Fold_memq):
7777         * fns.c (memq_no_quit):
7778         * fns.c (Fassoc):
7779         * fns.c (Fold_assoc):
7780         * fns.c (Fassq):
7781         * fns.c (Fold_assq):
7782         * fns.c (assq_no_quit):
7783         * fns.c (Frassoc):
7784         * fns.c (Fold_rassoc):
7785         * fns.c (Frassq):
7786         * fns.c (Fold_rassq):
7787         * fns.c (rassq_no_quit):
7788         * fns.c (Fdelete):
7789         * fns.c (Fold_delete):
7790         * fns.c (Fdelq):
7791         * fns.c (Fold_delq):
7792         * fns.c (delq_no_quit):
7793         * fns.c (Fremassoc):
7794         * fns.c (Fremassq):
7795         * fns.c (remassq_no_quit):
7796         * fns.c (Fremrassoc):
7797         * fns.c (Fremrassq):
7798         * fns.c (remrassq_no_quit):
7799         * fns.c (Freverse):
7800         * fns.c (mapcar1):
7801         [1].
7802
7803         * frame-msw.c (mswindows_init_frame_1):
7804         * frame-msw.c (mswindows_delete_frame):
7805         Register popups with dialog code so keyboard traversing works.
7806
7807         * frame-tty.c (tty_raise_frame_no_select): [1].
7808
7809         * frame-x.c:
7810         * frame-x.c (x_set_frame_text_value):
7811         * frame-x.c (x_set_frame_properties):
7812         * frame-x.c (x_create_widgets):
7813         [7].
7814
7815         * frame.c:
7816         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7817
7818         * frame.h (wrap_frame): New.
7819         Macro like wrap_device.
7820
7821         * general.c:
7822         * general.c (SYMBOL):
7823         * general.c (syms_of_general):
7824         Major reorg.  This is now just a wrapper and symbols themselves
7825         are listed in general-slots.h.
7826
7827         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7828         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7829
7830         * glyphs-msw.c (mswindows_native_layout_instantiate):
7831         Add DS_CONTROL so keyboard traversal will work.
7832
7833         * glyphs-widget.c:
7834         * glyphs-widget.c (syms_of_glyphs_widget):
7835         Move some symbols to general-slots.h.
7836
7837         * glyphs-x.c:
7838         * glyphs-x.c (xbm_instantiate_1):
7839         * glyphs-x.c (x_xbm_instantiate):
7840         * glyphs-x.c (x_xface_instantiate):
7841         * glyphs-x.c (autodetect_instantiate):
7842         * glyphs-x.c (cursor_font_instantiate):
7843         * glyphs-x.c (x_update_widget):
7844         * glyphs-x.c (x_widget_instantiate):
7845         * glyphs.c (bitmap_to_lisp_data):
7846         * glyphs.c (pixmap_to_lisp_data):
7847         [7].
7848
7849         * glyphs.c (syms_of_glyphs):
7850         [2].
7851
7852         * gui-x.c:
7853         * gui-x.c (print_widget_value):
7854         * gui-x.c (menu_separator_style_and_to_external):
7855         * gui-x.c (add_accel_and_to_external):
7856         * gui-x.c (button_item_to_widget_value):
7857         * gui-x.c (gui_items_to_widget_values_1):
7858         * gui-x.c (gui_items_to_widget_values):
7859         * gui-x.c (syms_of_gui_x):
7860         * gui-x.c (vars_of_gui_x):
7861         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7862         [9].
7863
7864         * gui-x.h:
7865         Muleize, prototype changes matching gui-x.c.
7866
7867         * gui.c:
7868         * gui.c (separator_string_p):
7869         * gui.c (gui_item_add_keyval_pair):
7870         * gui.c (make_gui_item_from_keywords_internal):
7871         * gui.c (signal_too_long_error):
7872         * gui.c (parse_gui_item_tree_item):
7873         * gui.c (syms_of_gui):
7874         * gui.c (vars_of_gui):
7875         * gui.h:
7876         menu-no-selection-hook moved here (used by MSWin).
7877         Move some symbols to general-slots.h.
7878         [6].
7879         [9].
7880
7881         * insdel.c (get_buffer_pos_char):
7882         * insdel.c (get_buffer_range_char):
7883         Add GC comments.
7884
7885         * keymap.c (keymap_lookup_directly):
7886         * keymap.c (keymap_store):
7887         * keymap.c (ensure_meta_prefix_char_keymapp):
7888         * keymap.c (describe_map):
7889         * keymap.h:
7890         Support new button modifiers.
7891
7892         * lisp-disunion.h (wrap_object):
7893         * lisp-disunion.h (XSETOBJ):
7894         Rename make_obj to wrap_object.
7895
7896         * lisp-union.h:
7897         * lisp-union.h (make_int):
7898         * lisp-union.h (make_char):
7899         Support wrap_object.
7900
7901         * lisp.h:
7902         * lisp.h (LIST_LOOP):
7903         * lisp.h (EXTERNAL_LIST_LOOP):
7904         * lisp.h (LIST_LOOP_2):
7905         * lisp.h (EXTERNAL_LIST_LOOP_1):
7906         * lisp.h (EXTERNAL_LIST_LOOP_2):
7907         * lisp.h (EXTERNAL_LIST_LOOP_3):
7908         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7909         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7910         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7911         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7912         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7913         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7914         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7915         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7916         * lisp.h (struct Lisp_Symbol):
7917         * lisp.h (maybe_continuable_error_with_frob):
7918         Fix up section comments.
7919         Add new types for char to indicate usage.
7920         Delete symbols auto-generated from general-slots.h.
7921         Add prototypes for structured error functions.
7922         Add long comments describing looping macros and change interface
7923         so that lvalues are automatically declared.
7924         Add NO_DECLARE macro in case callers want to declare lvalues
7925         themselves.
7926
7927         * lread.c (read_syntax_error):
7928         * lread.c (continuable_read_syntax_error):
7929         * lread.c (read_structure):
7930         * lread.c (sequence_reader):
7931         * lread.c (read_list_conser):
7932         * lread.c (read_compiled_function):
7933         Rename syntax_error and continuable_syntax_error to avoid clash
7934         with same-named structured error functions.
7935
7936         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7937         * menubar-msw.c (populate_menu_add_item):
7938         * menubar-msw.c (populate_or_checksum_helper):
7939         [5].
7940         [9].
7941
7942         * menubar-x.c:
7943         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7944         Mule-ize whole file.
7945
7946         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7947
7948         * mule-charset.c (Fmake_charset):
7949         * mule-wnnfns.c (Fwnn_set_param):
7950         [1].
7951
7952         * ntproc.c (create_child):
7953         * ntproc.c (Fwin32_set_current_locale):
7954         Add comments portending doom.
7955
7956         * objects-msw.c:
7957         * objects-msw.c (old_font_enum_callback_2):
7958         * objects-msw.c (font_enum_callback_1):
7959         * objects-msw.c (mswindows_enumerate_fonts):
7960         [5].
7961
7962         * objects-x.c:
7963         * objects-x.c (allocate_nearest_color):
7964         * objects-x.c (x_parse_nearest_color):
7965         * objects-x.c (x_initialize_color_instance):
7966         * objects-x.c (x_print_color_instance):
7967         * objects-x.c (x_finalize_color_instance):
7968         * objects-x.c (x_valid_color_name_p):
7969         * objects-x.c (x_initialize_font_instance):
7970         * objects-x.c (x_print_font_instance):
7971         * objects-x.c (valid_x_font_name_p):
7972         * objects-x.c (truename_via_FONT_prop):
7973         * objects-x.c (truename_via_random_props):
7974         * objects-x.c (truename_via_XListFonts):
7975         * objects-x.c (x_font_truename):
7976         * objects-x.c (x_font_instance_truename):
7977         * objects-x.c (x_font_instance_properties):
7978         * objects-x.c (x_list_fonts):
7979         * objects-x.c (x_find_charset_font):
7980         Mule-ize entire file.
7981         [7].
7982
7983         * objects-x.h:
7984         Mule-verify.
7985
7986         * print.c:
7987         * print.c (std_handle_out_external):
7988         * print.c (debug_print_no_newline):
7989         * print.c (syms_of_print):
7990         Output to all debugger kinds in debug-print.
7991         Fix console-output code under MSWin to actually work.
7992
7993         * process-nt.c (send_signal):
7994         * process-nt.c (nt_create_process):
7995         Use newer Unicode macros.
7996
7997         * process-unix.c (unix_create_process):
7998         * process-unix.c (unix_canonicalize_host_name):
7999         * process-unix.c (unix_open_network_stream):
8000         [7].
8001
8002         * scrollbar-x.c:
8003         Mule-verify.
8004
8005         * search.c (syms_of_search):
8006         [2].
8007
8008         * select-msw.c (mswindows_destroy_selection):
8009         Use LIST_LOOP_2.
8010
8011         * select-x.c (symbol_to_x_atom):
8012         [7].
8013
8014         * select.c (syms_of_select):
8015         [2].
8016
8017         * sound.c (Fplay_sound_file):
8018         [7].
8019
8020         * specifier.c:
8021         * specifier.c (decode_specifier_type):
8022         * specifier.c (Fvalid_specifier_locale_type_p):
8023         * specifier.c (check_valid_locale_or_locale_type):
8024         * specifier.c (decode_locale):
8025         * specifier.c (decode_locale_type):
8026         * specifier.c (decode_locale_list):
8027         * specifier.c (check_valid_domain):
8028         * specifier.c (decode_specifier_tag_set):
8029         * specifier.c (Fcanonicalize_tag_set):
8030         * specifier.c (Fdefine_specifier_tag):
8031         * specifier.c (Fspecifier_tag_predicate):
8032         * specifier.c (check_valid_inst_list):
8033         * specifier.c (check_valid_spec_list):
8034         * specifier.c (decode_how_to_add_specification):
8035         * specifier.c (check_modifiable_specifier):
8036         * specifier.c (specifier_add_spec):
8037         * specifier.c (boolean_validate):
8038         * specifier.c (display_table_validate):
8039         [9].
8040
8041         * specifier.c (syms_of_specifier):
8042         Move some symbols to general-slots.h.
8043         [2].
8044
8045         * symbols.c:
8046         * symbols.c (Fmapatoms):
8047         * symbols.c (Fapropos_internal):
8048         Add GCPROs.
8049
8050         * symbols.c (set_default_buffer_slot_variable):
8051         * symbols.c (set_default_console_slot_variable):
8052         [1].
8053
8054         * symbols.c (defsymbol_massage_name_1):
8055         * symbols.c (defkeyword_massage_name):
8056         * symbols.c (deferror_1):
8057         * symbols.c (deferror):
8058         * symbols.c (deferror_massage_name_and_message):
8059         * symeval.h:
8060         * symeval.h (DEFSYMBOL):
8061         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
8062
8063         * symbols.c (syms_of_symbols):
8064         [2].
8065
8066         * symsinit.h:
8067         * symsinit.h (init_win32): New.
8068         Also new is syms_of_dialog_mswindows.
8069
8070         * syswindows.h:
8071         Add new Unicode macros, missing Cygwin wide-char functions,
8072         convenience conversion macros for Qmswindows_tstr, macros for
8073         encapsulating required MSWin <-> Cygwin filename conversions,
8074         prototype for dynamically-extracted (not in NT 3.51) functions.
8075
8076         * toolbar-x.c:
8077         Mule-verify.
8078
8079         * tooltalk.c (Fadd_tooltalk_message_arg):
8080         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
8081         * tooltalk.c (Fadd_tooltalk_pattern_arg):
8082         [7].
8083
8084         * tooltalk.c (syms_of_tooltalk):
8085         [2].
8086
8087         * unexnt.c:
8088         * unexnt.c (unexec):
8089         Fix up headers, declaration of unexec() to be more standard.
8090
8091 2000-07-20  Martin Buchholz  <martin@xemacs.org>
8092
8093         * offix.h: Revert change to guard macros - they're used in offix.c!
8094
8095 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8096
8097         * lisp.h: Defsubred Fdelete.
8098
8099         * console-msw.h:  (msprinter_default_printer): Added.
8100
8101         * console-msw.c (msprinter_canonicalize_console_connection):
8102         (msprinter_canonicalize_device_connection): Added.
8103
8104         * device-msw.c (msprinter_default_printer):
8105         (Fmswingows_get_default_printer):
8106         (signal_enum_priner_error):
8107         (Fmswingows_printer_list): Added.
8108
8109 2000-07-19  Martin Buchholz <martin@xemacs.org>
8110
8111         * XEmacs 21.2.35 is released.
8112
8113 2000-07-19  Martin Buchholz  <martin@xemacs.org>
8114
8115         * select-x.c (x_handle_selection_request):
8116         Text selected in xemacs and pasted into xterm failed to appear.
8117         Spelling fixes and cosmetic changes.
8118
8119 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8120
8121         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
8122         XEmacs frame (fix for doubling chars in dialog boxes).
8123
8124 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
8125
8126         * select.c (select_convert_in, select_convert_out):
8127         Don't call intern() every time.
8128
8129         * select.c (Qselect_convert_in, Qselect_convert_out): New.
8130         * select.c (vars_of_select): Initialise them.
8131
8132 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
8133
8134         * select.c (selection-coercible-types): New.
8135
8136         * select.c (own-selection-internal):
8137         * select.c (get-selection-internal):
8138         MULE bug fix - these should default to COMPOUND_TEXT and not
8139         STRING for MULE. I think.
8140
8141         * select.c (select_convert_out): Use selection-coercible-types
8142         to find types that we can attempt to perform coercions on.
8143
8144 2000-07-18  Martin Buchholz  <martin@xemacs.org>
8145
8146         * mule-wnnfns.c:
8147         * mule-canna.c:
8148         Add coding: cookie to identify encoding.
8149
8150         * mule-canna.c (CANNA_mode_keys): make static.
8151         Use proper prototypes, even for functions of no arguments.
8152         Remove external prototype for Fding().
8153
8154         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
8155
8156         * select.c (syms_of_select): Add missing DEFSUBR.
8157
8158 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
8159
8160         * select.c (get_selection_internal, own_selection_internal):
8161         Make the type default to STRING, rather than placing a nil type
8162         into Vselection_alist.
8163
8164 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
8165
8166         * gpmevent.c (tty_selection_exists_p):
8167         * gpmevent.c (tty_own_selection):
8168         Updated parameter lists.
8169
8170 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
8171
8172         * select.h (selection-alist): Removed declaration.
8173
8174         * select.h (get_local_selection):
8175         * select.c (get_local_selection):
8176         Made static.
8177
8178         * select.h (convert_selection): Removed declaration.
8179         * select.c (convert_selection): Removed.
8180         This function belongs in Lisp.
8181
8182         * select.h (select_convert_in): Declare.
8183         * select.h (select_convert_out): Declare.
8184         * select.c (select_convert_in): New.
8185         * select.c (select_convert_out): New.
8186         New conversion functions for other files to call.
8187
8188         * select.h (select_notify_buffer_kill): Declare.
8189         * select.c (select_notify_buffer_kill): New.
8190         New functions that get called from kill-buffer.
8191
8192         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
8193         X-specific lisp code.
8194
8195         * select.h: Declare some of the lisp-visible functions for
8196         external use.
8197
8198         * select.c (clean_local_selection_data): Removed. This was
8199         a disgusting function, and previously should have been in
8200         select-x.c in any case. The functionality is now provided
8201         in select-convert-from-integer (select.el).
8202
8203         * select.c (available-selection-types): Fixed stupidity where
8204         INTEGER and ATOM got added twice. Also add STRING when we see an
8205         extent.
8206
8207         * select.c (get-selection-internal): Removed symbol stripping. No
8208         longer causes conversion when data comes from the internal cache.
8209
8210         * select.c (syms_of_select): Added new functions.
8211
8212         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
8213         error checking - previously this called abort!
8214
8215         * select-x.c (x_own_selection): Changed comment.
8216
8217         * select-x.c (x_handle_selection_request): Use select_convert_out.
8218         Don't mess with selection-alist; it's an internal variable of select.c.
8219
8220         * select-x.c (x_get_foreign_selection): Use select_convert_in.
8221
8222         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
8223         rather than messing with selection-alist.
8224
8225         * select-msw.c (mswindows_get_foreign_selection):
8226         Use TO_INTERNAL_FORMAT rather than hacking.
8227
8228 2000-07-14  Martin Buchholz  <martin@xemacs.org>
8229
8230         * process-unix.c (unix_open_multicast_group):
8231         (unix_open_multicast_group): Remove useless casts.
8232
8233 2000-07-13  Martin Buchholz  <martin@xemacs.org>
8234
8235         * sound.c (Fplay_sound): Fix `unused variable' warning.
8236
8237         * emacs.c (main): Use correct type for _environ on SCO5.
8238
8239 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
8240
8241         * console.h (own_selection_method):
8242         * console.h (selection_exists_p_method):
8243         * console.h (available_selection_types_method): New.
8244         * console.h (register_selection_data_type_method): New.
8245         * console.h (selection_data_type_name): New.
8246
8247         * console-msw.h (mswindows_destroy_selection): Declare it.  New
8248         function & alist to track GlobalAlloc()'d handles that need
8249         releasing when the clipboard data gets replaced or emptied.
8250
8251         * event-msw.c (mswindows_wnd_proc): Call it.
8252
8253         * lisp.h, general.c (Qappend): New symbol representing a
8254         `how-to-add' mode.
8255
8256         * select.c (own-selection-internal):
8257         * select.c (selection-exists-p):
8258         * select.c (available-selection-types): New.
8259         * select.c (register-selection-data-type): New.
8260         * select.c (selection-data-type-name): New.  New functions to deal
8261         with device-specific selection data formats.
8262         * select.c (selection-converter-out-alist): Renamed.
8263         * select.c (selection-converter-in-alist): New.
8264         * select.c (selection-appender-alist): New.  Added new alists.
8265         * select.c (syms_of_select, vars_of_select): Added new symbols &
8266         variables.
8267         * select.c (get_local_selection): Split.
8268         * select.c: Removed spurious type checking - selections may now be
8269         of any type, not just strings.
8270         * select.c (own-selection-internal):
8271
8272         * select.h, select.c (convert_selection): New. Created
8273         convert_selection() function based on get_local_selection().
8274         * select.h, select.c (QCF_*): New symbols representing mswindows
8275         clipboard formats.
8276         * select.h, select.c (Qreplace_all, Qreplace_existing): New
8277         symbols representing `how-to-add' modes.
8278
8279         * select-msw.c (x_sym_p): New.
8280         * select-msw.c (symbol_to_ms_cf): New.
8281         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
8282         symbols & clipboard formats. Can also handle string names.
8283         * select-msw.c (mswindows_own_selection):
8284         * select-msw.c (mswindows_selection_exists_p):
8285         Added `data-type' parameter. Use it.
8286         * select-msw.c (mswindows_available_selection_types): New.
8287         * select-msw.c (mswindows_register_selection_data_type): New.
8288         * select-msw.c (mswindows_selection_data_type_name): New.
8289         * select-msw.c (mswindows_own_selection):
8290         * select-msw.c (mswindows_get_foreign_selection):
8291         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
8292         * select-msw.c (console_create_select_mswindows): Added new methods.
8293         * select-msw.c (mswindows_destroy_selection): New.
8294         * select-msw.c (Vhandle_alist): New list.
8295         * select-msw.c (mswindows_own_selection):
8296
8297         * select-x.c (x_own_selection):
8298         * select-x.c (x_selection_exists_p):
8299         * select-x.c: Added some comments about maybe using new
8300         functionality.
8301         * select-x.c (x_own_selection):
8302
8303         * specifier.c: Remove definition of Qappend (now in general.c)
8304         * specifier.c (syms_of_specifier): Remove Qappend.
8305
8306 2000-07-12  Martin Buchholz  <martin@xemacs.org>
8307
8308         * config.h.in: Add socklen_t.
8309
8310         * s/decosf4-0.h: No special compiler flags needed or desired.
8311         In particular, undefine _BSD for DEC OSF 4.0.
8312
8313 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8314
8315         * redisplay-msw.c (msprinter_frame_output_end): Added.
8316         (console_type_create_redisplay_mswindows): Referred the above.
8317
8318         * frame.c (setup_frame_without_minibuffer): Do not create a
8319         default minibuffer frame on a printer device.
8320
8321         * frame-msw.c (apply_dc_geometry): Added.
8322         (msprinter_start_page):
8323         (msprinter_init_frame_3):
8324         (msprinter_eject_page): Use it.
8325
8326         * console-msw.h (struct msprinter_frame): Added pix_left and top,
8327         and removed residual duplex and orientation properties.
8328
8329 2000-07-11  Martin Buchholz  <martin@xemacs.org>
8330
8331         * eval.c (function_argcount): Work around a DEC CC compiler bug.
8332
8333         * unexalpha.c: Remove system prototypes from C sources!
8334
8335 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
8336
8337         * eval.c: Remove references to M-x edit-options in DEFUNs for
8338         `defvar' and `defconst'.
8339
8340 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8341
8342         * config.h.in: Remove SMART_INCLUDE hackery.
8343
8344         PostgreSQL hacking:
8345         * config.h.in: Don't use SMART_INCLUDE.
8346
8347         * postgresql.h: Include libpq-fe.h here.  Fix typo.
8348         * inline.c: Simply #include "postgresql.h"
8349         * postgresql.c:
8350         - Don't use SMART_INCLUDE
8351         - Use simply "const".
8352         - Use standard doc string conventions.
8353         - Use correct type for result of PQstatus.
8354
8355 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8356
8357         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8358
8359         C++ compilation changes.
8360         * config.h.in (EXTERN_C): Define.
8361         * config.h.in (not): This is also a C++ keyword.
8362         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8363         * cm.c: Use EXTERN_C.
8364         * redisplay-tty.c: Use EXTERN_C.
8365         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8366
8367 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8368
8369         * general.c: Remove duplicate definition for Qfunction.
8370
8371 2000-07-08  Ben Wing  <ben@xemacs.org>
8372
8373         * device-msw.c (msprinter_init_device):
8374         * device-msw.c (sync_printer_with_devmode):
8375         * device-msw.c (handle_devmode_changes):
8376         * device-msw.c (print_dialog_worker):
8377         * device-msw.c (Fmsprinter_apply_settings):
8378         * device-msw.c (hash_devmode):
8379         * device-msw.c (Fmsprinter_settings_despecialize):
8380         use Qmswindows_tstr, not Qctext.
8381
8382         * vm-limit.c (check_memory_limits):
8383         avoid infinite loop printing warning messages.
8384
8385 2000-07-05  Craig Lanning  <lanning@scra.org>
8386
8387         * Makefile.in.in: Add support for including the Windows resources
8388         when building with the cygwin and mingw targets.
8389
8390         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8391         not set or not correct.
8392         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8393         (init_initial_directory): Don't try to use $PWD on the
8394         WIN32_NATIVE target.
8395
8396         * s\cygwin32.h:
8397         [[Add -mwindows to eliminate console window.]] not required --ben
8398         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8399         (MAIL_USE_POP): removed; now handled by configure.
8400
8401         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8402         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8403         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8404         (MAIL_USE_POP): removed; now handled by configure.
8405         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8406         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8407         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8408         constant string.
8409         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8410         up from <winsock.h> via systime.h.
8411         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8412         (getpagesize): from Dan Holmsand, added.
8413         Added #endif which was left dangling by Ben's mega patch; added
8414         comment to help prevent this in the future.
8415
8416         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8417
8418 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8419
8420         * console-msw.h (struct mswindows_device): Removed unnecessary
8421         cached device geometry values.
8422         Added update_tick and an accessor macro.
8423         (Lisp_Devmode): Added lrecord declaration.
8424         (struct msprinter_device): Contain devmode as a Lisp object.
8425         Added mswindows_get_selected_frame_hwnd();
8426
8427         * console.h (struct console_methods): Indentation nitpicking.
8428
8429         * device-msw.c (mswindows_init_device): Do not initialize geometry
8430         cache. Initialize update tick.
8431         (mswindows_device_system_metrics): Ask the device for its geometry.
8432         (global_free_2_maybe):
8433         (devmode_to_hglobal):
8434         (handle_printer_changes):
8435         (ensure_not_printing):
8436         (print_dialog_worker):
8437         (Fmsprinter_print_setup_dialog):
8438         (Fmsprinter_print_dialog):
8439         (plist_get_margin):
8440         (plist_set_margin):
8441         (Fmsprinter_page_setup_dialog): Added functions.
8442         (sync_printer_with_devmode):
8443         (handle_devmode_changes):
8444         (Fmsprinter_get_settings):
8445         (Fmsprinter_select_settings):
8446         (Fmsprinter_apply_settings):
8447         (allocate_devmode):
8448         (Fmsprinter_settings_copy):
8449         (Fmsprinter_settings_despecialize):
8450         (print_devmode):
8451         (finalize_devmode):
8452         (equal_devmode):
8453         (hash_devmode): Added functions
8454         (syms_of_device_mswindows): Init devmode lrecord class.
8455
8456         * device.h: Added an exfun for find-device.
8457
8458         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8459         geometry; although, recreate the device compatible DC.
8460
8461         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8462         (msprinter_init_frame_3):
8463         (msprinter_frame_property):
8464         (msprinter_internal_frame_property_p):
8465         (msprinter_frame_properties):
8466         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8467         print job properties (will move to device settings).
8468
8469         * lisp.h: Added symbols.
8470
8471         * general.c (syms_of_general): Declared them.
8472
8473         * hash.c (string_hash): Added.
8474
8475         * lrecord.h (lrecord_type): Added devmode lrecord type.
8476
8477 2000-07-02  Mike Sperber <mike@xemacs.org>
8478
8479         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8480         FreeBSD 4.0.
8481
8482 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8483
8484         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8485         integer.
8486
8487 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8488
8489         * data.c (Fstring_to_number): Don't recognize floating point if
8490         base is not 10.
8491
8492 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8493
8494         * glyphs-widget.c (tab_control_query_geometry):
8495         (widget_query_geometry):
8496         (button_query_geometry):
8497         * glyphs.c (text_query_geometry):
8498         Enforce type correctness.
8499
8500 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8501
8502         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8503         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8504
8505 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8506
8507         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8508         conflicts with gcc's fixincluded version of FOO.h.
8509
8510         * glyphs.h (image_instance_geometry): Remove trailing `,'
8511
8512 2000-06-08  Mike Alexander  <mta@arbortext.com>
8513
8514         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8515         (shove_thread): Don't write the same output twice
8516         (make_ntpipe_output_stream): Increase priority of shove thread
8517         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8518         chance to run
8519         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8520         it.
8521
8522 2000-06-12  Ben Wing  <ben@xemacs.org>
8523
8524         * s\mingw32.h (sigset):
8525         * s\windowsnt.h (sigset):
8526         rename msw_ to mswindows_ for consistency with general convention.
8527
8528 2000-06-12  Ben Wing  <ben@xemacs.org>
8529
8530         * console-msw.c:
8531         * console-msw.c (mswindows_get_console_hwnd):
8532         * console-msw.c (mswindows_ensure_console_allocated):
8533         * console-msw.c (mswindows_hide_console):
8534         * console-msw.c (mswindows_show_console):
8535         * console-msw.c (mswindows_ensure_console_buffered):
8536         * console-msw.c (mswindows_output_console_string):
8537         * console-msw.c (mswindows_windows9x_p):
8538         * console-msw.h:
8539         * device-msw.c (mswindows_get_workspace_coords):
8540         * device-msw.c (mswindows_device_system_metrics):
8541         * dialog-msw.c (mswindows_popup_dialog_box):
8542         * event-msw.c (mswindows_wnd_proc):
8543         * frame-msw.c (mswindows_size_frame_internal):
8544         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8545         * menubar-msw.c (displayable_menu_item):
8546         * menubar-msw.c (mswindows_char_is_accelerator):
8547         * nt.c:
8548         * nt.c (mswindows_sigset):
8549         * nt.c (mswindows_sigrelse):
8550         * nt.c (mswindows_sigpause):
8551         * nt.c (mswindows_raise):
8552         * nt.c (timer_proc):
8553         * ntproc.c:
8554         * ntproc.c (find_child_console):
8555         * ntproc.c (sys_kill):
8556         * print.c:
8557         * print.c (std_handle_out_external):
8558         * process-nt.c (find_child_console):
8559         * process-nt.c (send_signal_the_95_way):
8560         * process-nt.c (ensure_console_window_exists):
8561         * process-nt.c (nt_create_process):
8562         * syssignal.h:
8563         rename msw_ to mswindows_ for consistency with general convention.
8564
8565         * emacs.c:
8566         * dumper.c:
8567         include nt.h, not syswindows.h.
8568
8569         * nt.c (mswindows_fstat):
8570         * nt.c (mswindows_stat):
8571         prefix mswindows_ instead of attempting to directly override the
8572         library functions.  fix declarations.
8573
8574         * nt.h:
8575         include syswindows.h.  move some sysdep.h stuff here.
8576
8577         * ntheap.h:
8578         include syswindows.h, not <windows.h>.
8579
8580         * ntplay.c:
8581         clean up headers.
8582
8583         * sysdep.c:
8584         clean up headers.
8585
8586         * sysdep.c (sys_fstat):
8587         * sysdep.c (sys_stat):
8588         call mswindows versions when appropriate.
8589
8590         * sysdep.h:
8591         move mswin decls to nt.h.
8592
8593         * syswindows.h:
8594         add long comment describing appropriate use of the various windows
8595         headers.
8596
8597 2000-06-11  Ben Wing  <ben@xemacs.org>
8598
8599         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8600
8601 2000-06-10  Ben Wing  <ben@xemacs.org>
8602
8603         * Makefile.in.in (release):
8604         Correction to make sure xemacs.exe always dumped when correct.
8605
8606         * alloca.c:
8607         * balloon_help.c:
8608         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8609
8610         * buffer.c (set_buffer_internal):
8611         [[[[2]]]]: Remove HAVE_FEP code.
8612
8613         * buffer.c (init_initial_directory):
8614         [3].
8615
8616         * bytecode.c:
8617         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8618         individual files.
8619
8620         * callproc.c:
8621         * callproc.c (call_process_cleanup):
8622         * callproc.c (Fold_call_process_internal):
8623         * callproc.c (child_setup):
8624         * callproc.c (getenv_internal):
8625         * callproc.c (init_callproc):
8626         * callproc.c (vars_of_callproc):
8627         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8628         __CYGWIN32__ -> CYGWIN.
8629         DOS_NT -> WIN32_NATIVE.
8630         Remove MSDOS support/references, converting to WIN32_NATIVE
8631           where correct.
8632         __MINGW32__ -> MINGW.
8633         Fix windows.h includes.
8634         Remove bogus HAVE_NTGUI.
8635
8636         * config.h.in:
8637         [2].
8638
8639         * console-msw.c:
8640         mswindows_message_outputted added for use in allowing startup
8641         errors on the console to be seen.
8642
8643         * console-msw.c (msw_ensure_console_allocated):
8644         * console-msw.c (msw_output_console_string):
8645         * console-msw.c (DHEADER):
8646         * console-msw.c (DOPAQUE_DATA):
8647         * console-msw.c (DEVENT):
8648         * console-msw.c (DCONS):
8649         * console-msw.c (DCONSCDR):
8650         * console-msw.c (DSTRING):
8651         * console-msw.c (DVECTOR):
8652         * console-msw.c (DSYMBOL):
8653         * console-msw.c (DSYMNAME):
8654         Fix warnings.
8655
8656         * console-stream.c (stream_init_console):
8657         Fix text/binary problems.
8658
8659         * device-msw.c:
8660         * device-msw.c (mswindows_finish_init_device):
8661         * device-msw.c (mswindows_delete_device):
8662         [1].
8663
8664         * device.c (handle_asynch_device_change):
8665         [3].
8666
8667         * dgif_lib.c:
8668         * dgif_lib.c (DGifOpenFileName):
8669         * dgif_lib.c (DGifOpenFileHandle):
8670         * dgif_lib.c (DGifGetLine):
8671         * dgif_lib.c (DGifGetPixel):
8672         Added config.h/lisp.h, fix up includes.
8673         [1].
8674
8675         * dired-msw.c:
8676         [4].
8677
8678         * dired.c:
8679         * dired.c (file_name_completion):
8680         * dired.c (Ffile_attributes):
8681         * dired.c (syms_of_dired):
8682         [1].
8683
8684         * dumper.c:
8685         * dumper.c (pdump_file_unmap):
8686         * dumper.c (pdump_load):
8687         [1].
8688
8689         * editfns.c:
8690         * editfns.c (Ftemp_directory):
8691         * editfns.c (user_login_name):
8692         * editfns.c (Fuser_real_login_name):
8693         * editfns.c (get_home_directory):
8694         [1].
8695
8696         * elhash.c (finish_marking_weak_hash_tables):
8697         [[[[5]]]]: Fix GCC warnings.
8698
8699         * emacs.c:
8700         * emacs.c (mswindows_handle_hardware_exceptions):
8701         * emacs.c (make_arg_list_1):
8702         * emacs.c (main_1):
8703         * emacs.c (Fkill_emacs):
8704         * emacs.c (Fdump_emacs):
8705         [1].
8706         Fix problems with nested crashes, add long comment.
8707
8708         * event-Xt.c (init_event_Xt_late):
8709         [1].
8710
8711         * event-msw.c:
8712         * event-msw.c (mswindows_dde_callback):
8713         * event-msw.c (mswindows_handle_sticky_modifiers):
8714         * event-msw.c (mswindows_wnd_proc):
8715         [1].
8716         [5].
8717
8718         * events.c (character_to_event):
8719         [1].
8720
8721         * fileio.c:
8722         * fileio.c (Ffile_name_directory):
8723         * fileio.c (Ffile_name_nondirectory):
8724         * fileio.c (directory_file_name):
8725         * fileio.c (Fexpand_file_name):
8726         * fileio.c (Fsubstitute_in_file_name):
8727         * fileio.c (Ffile_name_absolute_p):
8728         * fileio.c (check_executable):
8729         * fileio.c (Ffile_readable_p):
8730         * fileio.c (Ffile_accessible_directory_p):
8731         * fileio.c (Ffile_modes):
8732         * fileio.c (Funix_sync):
8733         * fileio.c (vars_of_fileio):
8734         [1]. [4].
8735
8736         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8737
8738         Expand getdefdir defn.
8739         Fix bogus rename() comment.
8740
8741         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8742         to use standard XEmacs include files, e.g. sysfile.h, rather
8743         than system-specific includes.
8744
8745         * fns.c:
8746         * fns.c (Fsubseq):
8747         [5]. [6].
8748
8749         * frame.c (vars_of_frame):
8750         [1].
8751
8752         * getloadavg.c:
8753         * getloadavg.c (getloadavg):
8754         [1]. [6].
8755         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8756         (We don't use it elsewhere in the code; just add a comment.)
8757
8758         * gif_io.c:
8759         [6].
8760         Add config.h.
8761
8762         * glyphs-msw.c:
8763         * glyphs-msw.c (mswindows_resource_instantiate):
8764         [1].
8765
8766         * glyphs-x.c (x_native_layout_instantiate):
8767         [5].
8768
8769         * gui-msw.c (Fmswindows_shell_execute):
8770         [1].
8771
8772         * insdel.c:
8773         [4].
8774
8775         * lisp.h:
8776         [4]. [5].
8777
8778         * lread.c (locate_file_in_directory_mapper):
8779         [1].
8780
8781         * lstream.c:
8782         [4].
8783
8784         * mem-limits.h:
8785         * mem-limits.h (get_lim_data):
8786         [1].
8787
8788         * menubar-msw.c:
8789         [4].
8790
8791         * ndir.h:
8792         [1].
8793
8794         * nt.c:
8795         * nt.c (getwd):
8796         * nt.c (closedir):
8797         * nt.c (rva_to_section):
8798         * nt.c (mswindows_executable_type):
8799         [1]. [6].
8800         Fix closedir() defn.
8801
8802         * nt.h:
8803         [[[[8]]]]: *_OK defs moved to sysfile.h.
8804
8805         * ntproc.c:
8806         [6]. [7].
8807
8808         * objects-x.c:
8809         [4].
8810
8811         * print.c:
8812         * print.c (std_handle_out_external):
8813         [1]. [4].
8814
8815         * process-nt.c:
8816         * process-nt.c (nt_create_process):
8817         [6].
8818         try to fix process quoting somewhat.
8819
8820         * process-unix.c (unix_create_process):
8821         [1].
8822
8823         * process.c:
8824         * process.c (vars_of_process):
8825         Add Vnull_device.
8826
8827         * process.h:
8828         [1].
8829
8830         * realpath.c:
8831         * realpath.c (xrealpath):
8832         [1].
8833
8834         * redisplay-tty.c (init_tty_for_redisplay):
8835         [3].
8836
8837         * redisplay.c:
8838         [4]. [6].
8839
8840         * scrollbar-msw.c:
8841         [4].
8842
8843         * sheap.c:
8844         * sheap.c (more_static_core):
8845         * sheap.c (report_sheap_usage):
8846         [5]. [6].
8847
8848         * signal.c:
8849         * signal.c (alarm_signal):
8850         [1]. [6].
8851
8852         * sound.c:
8853         [6].
8854
8855         * strftime.c:
8856         * strftime.c (zone_name):
8857         [1]. [5].
8858
8859         * symsinit.h (init_sunpro):
8860         [1].
8861
8862         * syscommctrl.h:
8863         commctrl.h not in Cygwin b20.1.
8864
8865         * sysdep.c:
8866         * sysdep.c (endif):
8867         * sysdep.c (sys_subshell):
8868         * sysdep.c (init_baud_rate):
8869         * sysdep.c (emacs_get_tty):
8870         * sysdep.c (emacs_set_tty):
8871         * sysdep.c (tty_init_sys_modes_on_device):
8872         * sysdep.c (init_system_name):
8873         * sysdep.c (sys_open):
8874         * sysdep.c (interruptible_open):
8875         * sysdep.c (sys_fopen):
8876         * sysdep.c (sys_mkdir):
8877         * sysdep.c (sys_rename):
8878         * sysdep.c (get_process_times_1):
8879         [1]. [6].
8880
8881         * sysdep.h:
8882         [1].
8883
8884         * sysdir.h:
8885         * sysdir.h (DIRENTRY_NONEMPTY):
8886         [1]. [6].
8887
8888         * sysdll.c (dll_init):
8889         * sysdll.h:
8890         [1].
8891
8892         * sysfile.h:
8893         [1]. [6]. [8].
8894         added text/binary defs.
8895
8896         * sysfloat.h:
8897         [1].
8898
8899         * sysproc.h:
8900         * sysproc.h (EDESTADDRREQ):
8901         * sysproc.h (poll_fds_for_input):
8902         [1]. [6].
8903
8904         * syspwd.h:
8905         [6].
8906
8907         * syssignal.h:
8908         [1].
8909
8910         * systime.h:
8911         [1]. [6].
8912
8913         * systty.h:
8914         [1].
8915
8916         * syswindows.h:
8917         [1].
8918         Always define WIN32_LEAN_AND_MEAN.
8919
8920         * unexcw.c (unexec):
8921         [5].
8922
8923         * unexec.c:
8924         * unexec.c (copy_text_and_data):
8925         * unexec.c (adjust_lnnoptrs):
8926         [1].
8927
8928         * unexnt.c:
8929         * unexnt.c (_start):
8930         [1].
8931
8932 2000-06-07  Ben Wing  <ben@xemacs.org>
8933
8934         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8935         was used only as a model.  We've long since extracted any useful
8936         logic or code out of this. (I just did an exhaustive search.)
8937
8938         * s\msdos.h: Removed.
8939
8940         * s\windows95.h: Removed.
8941
8942 2000-06-10  Ben Wing  <ben@xemacs.org>
8943
8944         * s\cygwin32.h:
8945         [1]. [5].
8946         Don't use extern with fun defs.
8947
8948         * s\mingw32.h:
8949         [1]. [7].
8950         Remove nt\inc include.
8951         Remove getdisk, getdefdir. (The former is unused, the latter
8952         expanded in fileio.h.)
8953
8954         * s\windowsnt.h:
8955         * s\windowsnt.h (WIN32_NATIVE):
8956         * s\windowsnt.h (HAVE_STRCASECMP):
8957         [1]. [7].
8958         Add long comment about preprocessor changes.
8959         Remove getdisk, getdefdir. (The former is unused, the latter
8960         expanded in fileio.h.)
8961
8962 2000-06-10  Ben Wing  <ben@xemacs.org>
8963
8964         * m\arm.h:
8965         * m\delta.h:
8966         * m\intel386.h:
8967         * m\sequent.h:
8968         * m\template.h:
8969         * m\windowsnt.h:
8970         [1].
8971         Remove bogus/unused NO_SOCK_SIGIO.
8972
8973 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8974
8975         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8976         not an Emchar.
8977
8978 2000-06-04  Mike Sperber <mike@xemacs.org>
8979
8980         * casetab.c (set_case_table): For `set-standard-case-table',
8981         actually deposit the new case tables where the rest of XEmacs can
8982         see them.
8983
8984 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8985
8986         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8987
8988 2000-06-05  Ben Wing  <ben@xemacs.org>
8989
8990         * callproc.c (child_setup): Don't do close_load_descs() under
8991         MS Windows.  Put in a comment explaining why.
8992
8993 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8994
8995         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8996         Toolkit shell" which breaks `kill-compilation' on Windows NT
8997         native, retaining STDERR handling improvements.
8998
8999 2000-06-01  Andreas Jaeger  <aj@suse.de>
9000
9001         * s/s390.h: Support for S390, based on a patch by Martin
9002         Schwidefsky <schwidefsky@de.ibm.com>.
9003
9004 2000-05-30  Andy Piper  <andy@xemacs.org>
9005
9006         * window.c (allocate_window):
9007         (make_dummy_parent):
9008         (Fset_window_configuration): use new hashtable type.
9009
9010         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
9011         (struct image_instantiator_methods):
9012         (struct Lisp_Image_Instance): make instance geometry signed.
9013
9014         * glyphs.c (instantiate_image_instantiator):
9015         (image_instance_query_geometry):
9016         (image_instance_layout):
9017         (image_instance_layout):
9018         (query_string_geometry):
9019         (text_query_geometry):
9020         (image_instantiate):
9021         (image_instantiate):
9022         (cache_subwindow_instance_in_frame_maybe):
9023         (subwindow_query_geometry): make instance geometry signed.
9024
9025         * glyphs-widget.c (widget_query_geometry):
9026         (widget_layout):
9027         (button_query_geometry):
9028         (tree_view_query_geometry):
9029         (tab_control_query_geometry):
9030         (layout_query_geometry):
9031         (layout_layout):
9032         (native_layout_layout): make instance geometry signed.
9033
9034 2000-05-29  Olivier Galibert  <galibert@pobox.com>
9035
9036         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
9037         constant.
9038
9039         * general.c (syms_of_general): Add Qfull_assoc symbol.
9040
9041         * data.c (finish_marking_weak_lists): Mark full-assoc lists
9042         correctly.
9043         (decode_weak_list_type): Decode full-assoc type.
9044         (encode_weak_list_type): Encode full-assoc type.
9045         (Fmake_weak_list): Update doc string.
9046
9047 2000-05-30  Andy Piper  <andy@xemacs.org>
9048
9049         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
9050
9051         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
9052         (decode_hash_table_weakness): ditto.
9053         (Fhash_table_weakness): ditto.
9054         (Fhash_table_type): ditto.
9055         (finish_marking_weak_hash_tables): ditto.
9056         (hash_table_weakness_validate): ditto.
9057         (syms_of_elhash): ditto.
9058
9059 2000-05-28  Martin Buchholz <martin@xemacs.org>
9060
9061         * XEmacs 21.2.34 is released.
9062
9063 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
9064
9065         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
9066         start cache.
9067         (updating_line_start_cache): Gone.
9068         (regenerate_window): Replace resetting of VERTICAL_CLIP by
9069         generic code to force a minimum of 1 line laid out in the
9070         CMOTION_DISP case.
9071
9072 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
9073
9074         * glyphs.c (instantiate_image_instantiator): Check for initialized
9075         height & width no longer special cases IMAGE_NOTHING.
9076         (nothing_instantiate): Set height and width of instance.
9077
9078 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9079
9080         * unexelf.c (unexec): Search for ".data" section.
9081         Initialize new_data2_offset from old_data_index.
9082         Remove redundant check for ElfW.
9083
9084 2000-05-23  Andy Piper  <andy@xemacs.org>
9085
9086         * glyphs.c (get_image_instantiator_governing_domain): allow more
9087         specific domains as the governing domain rather than expecting an
9088         exact match. This fixes problems with layouts.
9089
9090 2000-05-22  Andy Piper  <andy@xemacs.org>
9091
9092         * redisplay-output.c (compare_runes): check for non-images
9093
9094         * glyphs.c (set_glyph_dirty_p): ditto.
9095         (update_glyph_cachel_data): ditto.
9096
9097         * glyphs-widget.c (layout_post_instantiate): ditto.
9098         (layout_post_instantiate): ditto.
9099
9100         * event-msw.c (mswindows_wnd_proc): warning removal.
9101
9102 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
9103
9104         * s\mingw32.h: Added #undef for CLASH_DETECTION.
9105
9106         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
9107
9108         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
9109
9110         * nt.c (rva_to_section): mingw32 needs rva_to_section.
9111         (mswindows_executable_type): mingw32 now has enough headers for
9112         this to work.
9113
9114 2000-05-20  Andy Piper  <andy@xemacs.org>
9115
9116         * console-msw.c (mswindows_output_last_error): ; -> ,
9117
9118 2000-05-12  Andy Piper  <andy@xemacs.org>
9119
9120         * console-msw.c (FROB): compare ints with ints.
9121
9122 2000-05-11  Andy Piper  <andy@xemacs.org>
9123
9124         * glyphs-x.c (x_finalize_image_instance): make minimal build
9125         happy.
9126
9127 2000-05-20  Ben Wing  <ben@xemacs.org>
9128
9129         * event-Xt.c:
9130         * event-Xt.c (vars_of_event_Xt):
9131         move modifier-keys-are-sticky to event-stream.c.
9132
9133         * event-msw.c:
9134         * event-msw.c (mswindows_enqueue_mouse_button_event):
9135         * event-msw.c (key_needs_default_processing_p):
9136         * event-msw.c (XEMSW_LCONTROL):
9137         * event-msw.c (mswindows_handle_sticky_modifiers):
9138         * event-msw.c (FROB):
9139         * event-msw.c (clear_sticky_modifiers):
9140         * event-msw.c (output_modifier_keyboard_state):
9141         * event-msw.c (output_alt_keyboard_state):
9142         * event-msw.c (mswindows_wnd_proc):
9143         * event-msw.c (mswindows_modifier_state):
9144         * event-msw.c (emacs_mswindows_handle_magic_event):
9145         implement sticky modifiers.
9146
9147         * event-stream.c:
9148         * event-stream.c (vars_of_event_stream):
9149         move modifier-keys-are-sticky here.
9150
9151         * lisp.h:
9152         add CHECK_FUNCTION.
9153
9154         * rangetab.c:
9155         implement map-range-table.
9156
9157
9158 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
9159
9160         * redisplay-tty.c (reset_tty_modes):
9161         (tty_redisplay_shutdown): Adjust argument type to
9162         tty_frame_output_end.
9163
9164 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9165
9166         * eval.c (Fbacktrace): Don't output a line with only right
9167         parenthesis.
9168
9169 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
9170
9171         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
9172         (Fpq_reset_poll): Ditto.
9173
9174 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
9175
9176         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
9177
9178 2000-05-16  Ben Wing  <ben@xemacs.org>
9179
9180         * buffer.c:
9181         * buffer.c (dfc_convert_to/from_internal_format):
9182         * buffer.c (reinit_vars_of_buffer):
9183         Fix conversion functions to allow reentrancy.
9184
9185         * console-msw.c:
9186         * console-msw.c (mswindows_output_last_error):
9187         New fun, generally useful -- output a human-readable
9188         version of GetLastError() on the console.
9189
9190         * console-msw.h:
9191         * console-msw.h (struct mswindows_frame):
9192         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
9193
9194         * console-stream.c (stream_output_begin):
9195         * console-stream.c (stream_output_end):
9196         * console-stream.c (stream_output_vertical_divider):
9197         * console-stream.c (stream_clear_region):
9198         * console-stream.c (stream_flash):
9199         * console-stream.c (console_type_create_stream):
9200         Delete blank stream methods, not needed.
9201
9202         * console.h (struct console_methods):
9203         Split begin/end methods into window and frame.
9204
9205         * event-msw.c:
9206         * event-msw.c (mswindows_handle_paint):
9207         * event-msw.c (output_alt_keyboard_state):
9208         * event-msw.c (mswindows_wnd_proc):
9209         * event-msw.c (vars_of_event_mswindows):
9210         Comment about problems with ignored-expose.
9211         Define mswindows-debug-events; not really implemented.
9212
9213         * frame-msw.c (mswindows_init_frame_1):
9214         random cleanups.
9215
9216         * glyphs-msw.c:
9217         * glyphs-msw.c (begin_defer_window_pos):
9218         * glyphs-msw.c (mswindows_unmap_subwindow):
9219         * glyphs-msw.c (mswindows_map_subwindow):
9220         * glyphs-msw.c (mswindows_resize_subwindow):
9221         Use DeferWindowPos to reduce flashing when mapping/unmapping.
9222
9223         * glyphs.c (make_image_instance_1):
9224         Fix crash.
9225
9226         * gutter.c (Fredisplay_gutter_area):
9227         Use new begin/end methods.
9228
9229         * lisp.h (Dynarr_new2):
9230         New creation fun.
9231
9232         * redisplay-msw.c:
9233         * redisplay-msw.c (mswindows_frame_output_begin):
9234         * redisplay-msw.c (mswindows_frame_output_end):
9235         * redisplay-msw.c (console_type_create_redisplay_mswindows):
9236         New begin/end methods -- handle DeferWindowPos.
9237
9238         * redisplay-output.c (redisplay_move_cursor):
9239         * redisplay-output.c (redraw_cursor_in_window):
9240         * redisplay-output.c (redisplay_update_line):
9241         * redisplay-output.c (redisplay_output_window):
9242         New begin/end methods.
9243
9244         * redisplay-tty.c:
9245         * redisplay-tty.c (tty_frame_output_begin):
9246         * redisplay-tty.c (tty_frame_output_end):
9247         * redisplay-tty.c (console_type_create_redisplay_tty):
9248         New begin/end methods.
9249
9250         * redisplay-x.c:
9251         * redisplay-x.c (x_window_output_begin):
9252         * redisplay-x.c (x_window_output_end):
9253         * redisplay-x.c (console_type_create_redisplay_x):
9254         New begin/end methods.
9255
9256         * redisplay.c (redisplay_frame):
9257         * redisplay.c (Fredisplay_echo_area):
9258         New begin/end methods.
9259         use MAYBE_DEVMETH for clear_frame; it may not exist.
9260
9261         * window.h (WINDOW_XFRAME):
9262         WINDOW_XFOO macros -- get locale and decode struct pointer.
9263
9264
9265 2000-05-12  Ben Wing  <ben@xemacs.org>
9266
9267         * emacs.c:
9268         * emacs.c (ensure_no_quitting_from_now_on):
9269         * emacs.c (fatal_error_signal):
9270         * emacs.c (mswindows_handle_hardware_exceptions):
9271         * emacs.c (main):
9272         * emacs.c (Fkill_emacs):
9273         * emacs.c (shut_down_emacs):
9274         * emacs.c (assert_failed):
9275         various improvements in fatal error handling.
9276
9277         * eval.c:
9278         move preparing_for_armageddon to emacs.c.
9279
9280         * lisp.h:
9281         declare fatal_error_in_progress.
9282
9283         * print.c:
9284         * print.c (std_handle_out_external):
9285         * print.c (std_handle_out_va):
9286         * print.c (stderr_out):
9287         * print.c (stdout_out):
9288         use console under mswin when no standard output.
9289         don't do code conversion during fatal error.
9290
9291         * scrollbar.c (Fscrollbar_page_up):
9292         * scrollbar.c (Fscrollbar_page_down):
9293         fix missing else.  reindent.
9294
9295 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
9296
9297         Emergency fix.
9298
9299         * glyphs.h (GLYPH_CACHEL_DESCENT):
9300         (GLYPH_CACHEL_DESCENT):
9301         (GLYPH_CACHEL_DESCENT):
9302         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
9303         used in case these are inline functions.
9304         Use more absurd values to error check.
9305
9306         include window.h for error check functions.
9307
9308 2000-05-11  Ben Wing  <ben@xemacs.org>
9309
9310         * cmdloop.c (Freally_early_error_handler):
9311         Display message box under windows; otherwise, message will disappear
9312         before it can be viewed.
9313
9314         * console-msw.c:
9315         * console-msw.c (Fmswindows_message_box):
9316         * console-msw.c (FROB):
9317         * console-msw.c (syms_of_console_mswindows):
9318         Define new fun `mswindows-message-box'.
9319         #### I will merge this into `popup-dialog-box'; just give me
9320         a bit of time.
9321
9322         * general.c:
9323         * general.c (syms_of_general):
9324         Some new symbols used in `mswindows-message-box'.
9325
9326         * glyphs.c:
9327         * glyphs.c (Fset_image_instance_property):
9328         put warning in this fun.
9329
9330         * glyphs.h:
9331         * glyphs.h (GLYPH_CACHEL_WIDTH):
9332         * glyphs.h (GLYPH_CACHEL_ASCENT):
9333         * glyphs.h (GLYPH_CACHEL):
9334         * glyphs.h (GLYPH_CACHEL_GLYPH):
9335         define error-checking versions to try to catch a bug i've seen --
9336         redisplay gets in an infinite loop because the glyph width of the
9337         continuation glyph is 65535.
9338
9339         * lisp.h:
9340         Extern message-box stuff.
9341
9342         * window.c (allocate_window):
9343         * window.c (make_dummy_parent):
9344         * window.c (Fset_window_configuration):
9345         Use EQUAL not EQ for subwindow caches to make them work a bit
9346         better. (Something is still very broken.)
9347
9348
9349 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9350
9351         * glyphs.c (image_instantiate): Suppress gcc warnings.
9352         (Fmake_image_instance): Fix doc string.
9353         * specifier.c (Fmake_specifier): Ditto.
9354
9355 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9356
9357         * paths.h.in (PATH_LOCK): Removed.
9358         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9359         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9360
9361 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9362
9363         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9364         Document (featurep '(and xemacs 21.02)).
9365
9366 2000-05-09  Ben Wing  <ben@xemacs.org>
9367
9368         * buffer.c (complex_vars_of_buffer):
9369         update modeline-format doc.
9370
9371         * device.h:
9372         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9373
9374         * emacs.c:
9375         timeline of all released versions of Emacs, for use in creating
9376         authorship comments and in synching up.
9377
9378         * glyphs-widget.c (image_instantiator_buttons):
9379         * glyphs-widget.c (image_instantiator_edit_fields):
9380         * glyphs-widget.c (image_instantiator_combo_box):
9381         * glyphs-widget.c (image_instantiator_scrollbar):
9382         * glyphs-widget.c (image_instantiator_progress_guage):
9383         * glyphs-widget.c (image_instantiator_tree_view):
9384         * glyphs-widget.c (image_instantiator_tab_control):
9385         * glyphs-widget.c (image_instantiator_labels):
9386         * glyphs-widget.c (image_instantiator_layout):
9387         * glyphs-widget.c (image_instantiator_native_layout):
9388         rename decode_domain method to governing_domain.
9389
9390         * glyphs.c:
9391         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9392         * glyphs.c (add_entry_to_device_ii_format_list):
9393         make sure we don't put an entry more than once into the list.
9394         * glyphs.c (check_instance_cache_mapper):
9395         *************************************************************
9396         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9397         HAVE BEEN GETTING.
9398         *************************************************************
9399         * glyphs.c (get_image_instantiator_governing_domain):
9400         clean up, expand on new concept of governing domain.
9401         * glyphs.c (instantiate_image_instantiator):
9402         * glyphs.c (allocate_image_instance):
9403         use governing_domain instead of cache_domain in naming.
9404         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9405         * glyphs.c (make_image_instance_1):
9406         * glyphs.c (Fmake_image_instance):
9407         allow for any domain (not just device), and process the
9408         governing domain correctly.  very big doc fix.
9409         * glyphs.c (Fimage_instance_domain):
9410         new primitive, to retrieve the governing domain of an image instance.
9411         * glyphs.c (image_instantiate):
9412         use new governing_domain stuff.  this fixes a crash you could get
9413         by instantiating certain widget glyphs in frame locales. (should
9414         signal an error instead of crashing.)
9415         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9416         * glyphs.c (Fglyphp): clean up doc.
9417         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9418         * glyphs.c (syms_of_glyphs):
9419         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9420         * glyphs.c (image_instantiator_format_create): add some comments about
9421         bogus code.
9422         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9423         for current-display-table. (Apparently Hrjove implemented in 1998 a
9424         design I wrote up in 1996, but didn't update the doc string.)
9425
9426         * glyphs.h: clean up a doc string.
9427         * glyphs.h (governing_domain):
9428         * glyphs.h (struct image_instantiator_methods):
9429         changes for governing_domain stuff.
9430
9431         * gutter.c:
9432         * gutter.c (Fgutter_specifier_p):
9433         * gutter.c (Fgutter_size_specifier_p):
9434         * gutter.c (Fgutter_visible_specifier_p):
9435         * objects.c:
9436         * objects.c (Fcolor_specifier_p):
9437         * objects.c (Ffont_specifier_p):
9438         * objects.c (Fface_boolean_specifier_p):
9439         doc strings moved to make-*-specifier.
9440
9441         * redisplay.c (add_disp_table_entry_runes_1):
9442         * redisplay.c (generate_fstring_runes):
9443         * redisplay.c (screen):
9444         add random comments and doc strings.
9445
9446         * specifier.c:
9447         * specifier.c (Fmake_specifier):
9448         major overhaul of this doc string.
9449
9450         * specifier.c (Fvalid_specifier_domain_p):
9451         comment about the bogosity of image instances being domains.
9452         * specifier.c (decode_domain):
9453         now non-static, used in glyphs.c.
9454         * specifier.c (specifier_instance):
9455         comment about the bogosity of image instances being domains.
9456         * specifier.c (Fgeneric_specifier_p):
9457         move doc string to make-generic-specifier.
9458         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9459         rebackslashify.
9460
9461         * specifier.h:
9462         * specifier.h (DOMAIN_FRAME):
9463         * specifier.h (DOMAIN_LIVE_P):
9464         * specifier.h (DOMAIN_XDEVICE):
9465         rebackslashify.
9466         add comments about problems with these macros.
9467         prototype for decode_domain.
9468
9469         * toolbar.c:
9470         * toolbar.c (Ftoolbar_specifier_p):
9471         move doc string to `make-toolbar-specifier'.
9472
9473         * window.c (window_unmap_subwindows_cache_mapper):
9474         *************************************************************
9475         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9476         HAVE BEEN GETTING.
9477         *************************************************************
9478
9479 2000-05-09  Andy Piper  <andy@xemacs.org>
9480
9481         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9482
9483         * window.c (Fset_window_configuration): reset the frame subwindow
9484         cache and re-initialize the window subwindow caches.
9485
9486         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9487
9488 2000-05-09  Ben Wing  <ben@xemacs.org>
9489
9490         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9491         DWORD.
9492
9493 2000-04-26  Mike Woolley  <mike@bulsara.com>
9494
9495         * ntheap.c: Changed recreate_heap to limit the amount reserved
9496         for the heap to that which is actually available. Also now
9497         displays a message box (with some dignostics) in the event that
9498         it still can't start.
9499
9500 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9501
9502         * callproc.c (Fold_call_process_internal): GCPRO path
9503
9504 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9505
9506         Patch by Bill Perry.
9507
9508         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9509         back data instead of #ifdef.
9510         (Fscrollbar_page_down): ditto.
9511
9512 2000-05-07  Ben Wing  <ben@xemacs.org>
9513
9514         * buffer.h:
9515         Kludge for defining Qmswindows_tstr.
9516
9517         * nt.c:
9518         * nt.c (open_input_file):
9519         * nt.c (open_output_file):
9520         * nt.c (rva_to_section):
9521         * nt.c (mswindows_executable_type):
9522         Move all memory-mapped-file routines here (some were in unexnt.c,
9523         which is bad because they are used by process-nt.c, and unexnt
9524         won't be around when portable dumping).  Synched the above routines
9525         with FSF 20.6.
9526
9527         * nt.h:
9528         Removed ifdef'd out bogus code.
9529         Fixed some prototypes.
9530
9531         * nt.h (file_data):
9532         * nt.h (OFFSET_TO_RVA):
9533         * nt.h (RVA_TO_OFFSET):
9534         * nt.h (RVA_TO_PTR):
9535         Moved the memory-mapped-file structures, macros and prototypes
9536         here, to parallel nt.c.  ntheap.h should really be removed
9537         entirely, and it's a non-portable-dumper specific file.
9538
9539         * ntheap.h (round_to_next):
9540         Moved the memory-mapped-file structures, macros and prototypes
9541         to nt.h.
9542
9543         * ntproc.c (compare_env):
9544         Moved rva_to_section and mswindows_executable_type to nt.c.
9545         Moved compare_env to process-nt.c.
9546         ntproc.c will die, one day.
9547
9548         * ntproc.c (sys_spawnve):
9549         Account for win32_ -> mswindows_.
9550
9551         * process-nt.c:
9552         * process-nt.c (struct nt_process_data):
9553         * process-nt.c (ensure_console_window_exists):
9554         * process-nt.c (compare_env):
9555         * process-nt.c (nt_create_process):
9556         * process-nt.c (nt_kill_process_by_pid):
9557         * process-nt.c (syms_of_process_nt):
9558         * process-nt.c (vars_of_process_nt):
9559         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9560         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9561         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9562         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9563         Move compare_env here from ntproc.c.
9564
9565         * process.c (Fprocess_send_region):
9566         Takes an optional fourth argument, BUFFER, which should fix some
9567         problems with call-process.
9568
9569         * syscommctrl.h:
9570         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9571
9572         * syswindows.h:
9573         Move ICC_BAR_CLASSES to syscommctrl.h.
9574         Add preliminary macros for MSWindows/Mule.  More to come.
9575
9576         * unexnt.c:
9577         * unexnt.c (unexec):
9578         open_output_file moved to nt.c.
9579
9580
9581 2000-05-05  Andy Piper  <andy@xemacs.org>
9582
9583         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9584         instance from the frame cache also since GC may catch up too late
9585         to make frame deletion sane.
9586
9587 2000-05-04  Andy Piper  <andy@xemacs.org>
9588
9589         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9590         (x_finalize_image_instance): ungcpro on deletion.
9591
9592         * glyphs.c (image_instantiator_format_create): give pointers a
9593         query geometry method so that the geometry is at least set.
9594
9595         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9596         initialize layouts if using widgets.
9597
9598 2000-05-03  Andy Piper  <andy@xemacs.org>
9599
9600         * nt.c: remove bogus reference to sysmmsystem.h
9601
9602         * gui-x.c (popup_selection_callback): fix no selection abort.
9603
9604 2000-05-02  Andy Piper  <andy@xemacs.org>
9605
9606         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9607         (mswindows_widget_instantiate): ditto.
9608
9609         * glyphs-widget.c (initialize_widget_image_instance): initialize
9610         children correctly.
9611         (widget_instantiate): cope with children and items in the same
9612         instance.
9613
9614         * glyphs.c (mark_image_instance): cope with children as a first
9615         class member.
9616         (image_instance_equal): ditto.
9617         (image_instance_hash): ditto.
9618         (image_instance_changed): ditto.
9619
9620 2000-04-30  Andy Piper  <andy@xemacs.org>
9621
9622         * glyphs.c (subwindow_query_geometry): new function. Return some
9623         defaults.
9624         (subwindow_instantiate): don't assign dimensions if none have been
9625         given.
9626         (image_instantiator_format_create): add subwindow_query_geometry.
9627         (print_image_instance): cope with layouts as widgets.
9628
9629 2000-04-29  Andy Piper  <andy@xemacs.org>
9630
9631         * frame.c (delete_frame_internal): call
9632         free_frame_subwindow_instance_cache so that all subwindows are
9633         finalized before their parent.
9634         (mark_frame): remove subwindow_cachels.
9635         (Fmake_frame): remove subwindow_cachel manipulation.
9636         (allocate_frame_core): subwindow_instance_cache is a weak list.
9637         (delete_frame_internal): set subwindow_instance_cache to nil.
9638
9639         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9640         finalization safe.
9641         (mswindows_finalize_image_instance): use the device
9642         not the domain as the domain may have died already.
9643
9644         * glyphs-x.c (x_finalize_image_instance): ditto.
9645         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9646         HEIGHT.
9647
9648         * redisplay-output.c (redisplay_unmap_subwindows): update for
9649         subwindow instance cache as a weak list.
9650         (redisplay_unmap_subwindows_maybe): ditto.
9651         (redisplay_unmap_subwindows_except_us): ditto.
9652
9653         * glyphs.c (unmap_subwindow): error checking will check the domain
9654         so don't deal with it here. Don't use cachels anymore.
9655         (map_subwindow): ditto.
9656         (update_subwindow_cachel_data): remove old accessor names.
9657         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9658         (Fresize_subwindow): don't update cachel.
9659         (mark_subwindow_cachels):
9660         (update_subwindow_cachel_data):
9661         (add_subwindow_cachel):
9662         (get_subwindow_cachel_index):
9663         (update_subwindow_cachel):
9664         (reset_subwindow_cachels):
9665         (mark_subwindow_cachels_as_not_updated): deleted.
9666         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9667         subwindow instance to the frame cache.
9668         (find_matching_subwindow): update for subwindow instance cache as
9669         a weak list.
9670         (update_widget_instances): ditto.
9671         (image_instance_type_to_mask):inlined.
9672         (free_frame_subwindow_instance_cache): new function. finalize all
9673         subwindows that are instantiated.
9674
9675         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9676         of cachel information.
9677         (IMAGE_INSTANCE_DISPLAY_X):
9678         (IMAGE_INSTANCE_DISPLAY_Y):
9679         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9680         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9681         (XIMAGE_INSTANCE_DISPLAY_X):
9682         (XIMAGE_INSTANCE_DISPLAY_Y):
9683         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9684         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9685         remove subwindow_cachel structure and function references.
9686         (image_instance_type_to_mask): inline from glyphs.c
9687
9688         * redisplay.c (redisplay_frame): remove subwindow_cachel
9689         references.
9690
9691         * frame.h (struct frame): remove subwindow_cachels.
9692         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9693
9694         * frameslots.h: add subwindow_instance_cache.
9695
9696         * window.c (replace_window): check subwindow cache of replacement.
9697         (window_unmap_subwindows_cache_mapper):
9698         (window_unmap_subwindows): new functions. Unmap all subwindows
9699         cached on this window.
9700         (mark_window_as_deleted): unmap all subwindows.
9701
9702 2000-04-27  Andy Piper  <andy@xemacs.org>
9703
9704         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9705
9706         * glyphs-widget.c (widget_layout): return something.
9707         (layout_layout): return something. Fail if not initialized.
9708         (layout_query_geometry): ditto.
9709         (image_instantiator_native_layout): new function. Initialized the
9710         native layout type.
9711         (widget_instantiate): don't do layout stuff here.
9712
9713         * glyphs.c (instantiate_image_instantiator): reorded calling or
9714         instantiate and post_instantiate with layout in between.
9715         (image_instance_layout): be more selective about deciding whether
9716         the layout has been done or not.
9717
9718         * glyphs.h (struct image_instantiator_methods): return a value
9719         from layout_method.
9720
9721 2000-04-26  Andy Piper  <andy@xemacs.org>
9722
9723         * glyphs.c (allocate_image_instance): make initial width and
9724         height unspecified. Set initialized to 0.
9725
9726         * syscommctrl.h new file. Encapsulates commctrl.h.
9727
9728         * syswindows.h new file. Encapsulates windows.h.
9729
9730         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9731         * nt.c: ditto.
9732         * console-msw.h: ditto.
9733
9734         * redisplay-tty.c (tty_output_display_block): remove layout references.
9735
9736         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9737         window handle rather than just the frame.
9738
9739         * glyphs.c (mark_image_instance): remove layout references.
9740         (print_image_instance): ditto.
9741         (image_instance_equal): ditto.
9742         (image_instance_hash): ditto.
9743         (decode_image_instance_type): ditto.
9744         (encode_image_instance_type): ditto.
9745         (image_instantiate): ditto.
9746         (allocate_glyph): ditto.
9747         (Fimage_instance_height): ditto.
9748         (Fimage_instance_width): ditto.
9749         (update_subwindow): ditto.
9750
9751         * redisplay-x.c (x_output_display_block): recode for layouts as
9752         widgets.
9753
9754         * redisplay-output.c (redisplay_output_layout): recode for layouts
9755         as widgets.
9756         (compare_runes): remove layout references.
9757
9758         * redisplay-msw.c (mswindows_output_display_block): recode for
9759         layouts as widgets.
9760
9761         * glyphs-widget.c (image_instantiator_layout): remove
9762         layout_possible_dest_types.
9763         (layout_possible_dest_types): deleted.
9764
9765         * glyphs.h (image_instance_type): remove layout references.
9766         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9767         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9768         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9769
9770 2000-04-25  Andy Piper  <andy@xemacs.org>
9771
9772         * glyphs-widget.c (image_instantiator_buttons):
9773         (image_instantiator_edit_fields):
9774         (image_instantiator_combo_box):
9775         (image_instantiator_scrollbar):
9776         (image_instantiator_progress_guage):
9777         (image_instantiator_tree_view):
9778         (image_instantiator_tab_control):
9779         (image_instantiator_labels):
9780         (image_instantiator_layout): call default post_instantiate method.
9781         (widget_post_instantiate): new function. Simply lays out the
9782         widgets.
9783
9784         * glyphs.h (struct image_instantiator_methods): add
9785         post_instantiate method.
9786
9787         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9788         method calls.
9789
9790 2000-04-23  Andy Piper  <andy@xemacs.org>
9791
9792         * glyphs.h (struct image_instantiator_methods): add
9793         decode_domain_method.
9794         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9795         derived from the domain.
9796         (IMAGE_INSTANCE_FRAME): new accessor.
9797         (XIMAGE_INSTANCE_FRAME): ditto.
9798
9799         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9800         instead of _SUBWINDOW_FRAME.
9801         (finalize_image_instance): ditto.
9802         (Fimage_instance_foreground): ditto.
9803         (Fimage_instance_background): ditto.
9804         (image_instantiate): ditto.
9805         (update_subwindow_cachel): ditto.
9806         (update_subwindow): ditto.
9807         (unmap_subwindow): ditto.
9808         (map_subwindow): ditto
9809         (subwindow_instantiate): ditto.
9810         * glyphs-msw.c (mswindows_update_widget): ditto.
9811         (mswindows_progress_gauge_instantiate): ditto.
9812         (mswindows_tab_control_update): ditto.
9813         * glyphs-x.c (x_update_widget): ditto.
9814         (x_widget_instantiate): ditto.
9815         (x_tab_control_instantiate): ditto.
9816         (x_tab_control_update): ditto.
9817         * event-msw.c (mswindows_wnd_proc): ditto
9818
9819         * glyphs-widget.c (image_instantiator_layout): use
9820         subwindow_decode_domain.
9821         (image_instantiator_buttons): ditto.
9822         (image_instantiator_edit_fields): ditto.
9823         (image_instantiator_combo_box): ditto.
9824         (image_instantiator_scrollbar): ditto.
9825         (image_instantiator_progress_guage): ditto.
9826         (image_instantiator_tree_view): ditto.
9827         (image_instantiator_tab_control): ditto.
9828         (image_instantiator_labels): ditto.
9829         (image_instantiator_layout): ditto.
9830
9831         * glyphs.c: add instance error checking to many functions.
9832         (instantiate_image_instantiator): decode device from cache_domain.
9833         (image_instantiate): partially rewrite by using
9834         decode_image_instantiator_domain to determine what domain the
9835         instance needs to be cached in.
9836         (decode_image_instantiator_domain): new function. Determine what
9837         domain the image needs to be cached in.
9838         (check_window_subwindow_cache): new error checking function.
9839         (check_instance_cache_mapper): ditto.
9840         (check_image_instance_structure): ditto.
9841         (subwindow_decode_domain): new function. Encodes a window as a
9842         subwindow's cache domain.
9843         (image_instantiator_format_create): use it for text and
9844         subwindows.
9845
9846 2000-04-21  Andy Piper  <andy@xemacs.org>
9847
9848         * glyphs.c (image_instance_device): new function.
9849         (image_instance_frame): new function.
9850         (image_instance_window): new function.
9851         (image_instance_live_p): new function.
9852
9853         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9854         cache to nil.
9855
9856         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9857         (IMAGE_INSTANCE_DOMAIN): new accessor.
9858         (XIMAGE_INSTANCE_DOMAIN): ditto.
9859
9860         * glyphs-x.c (x_finalize_image_instance): device->domain.
9861
9862         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9863         (mswindows_finalize_image_instance): ditto.
9864
9865         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9866         (gif_instantiate): ditto.
9867         (png_instantiate): ditto.
9868         (tiff_instantiate): ditto.
9869
9870         * glyphs.c (instantiate_image_instantiator): use domain rather
9871         than device.
9872         (mark_image_instance): device -> domain.
9873         (print_image_instance): ditto.
9874         (finalize_image_instance): ditto.
9875         (image_instance_equal): ditto.
9876         (allocate_image_instance): ditto.
9877         (Fcolorize_image_instance): ditto.
9878         (query_string_geometry): ditto.
9879         (image_instantiate): ditto
9880         (query_string_font): ditto.
9881         (image_instantiate): ditto.
9882         (update_subwindow): ditto.
9883         (unmap_subwindow): ditto.
9884         (map_subwindow): ditto.
9885         (subwindow_instantiate): ditto.
9886
9887         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9888         (DOMAIN_FRAME): ditto.
9889         (DOMAIN_WINDOW): ditto.
9890         (DOMAIN_LIVE_P): ditto.
9891         (XDOMAIN_DEVICE): ditto.
9892         (XDOMAIN_FRAME): ditto.
9893         (XDOMAIN_WINDOW): ditto.
9894
9895         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9896         a valid specifier domain.
9897
9898 2000-04-19  Andy Piper  <andy@xemacs.org>
9899
9900         * glyphs-widget.c (syms_of_glyphs_widget): remove
9901         widget-callback-current-channel.
9902         (vars_of_glyphs_widget): ditto.
9903         * glyphs.h: ditto
9904
9905         * gui.c (get_gui_callback): revert to previous behaviour.
9906
9907 2000-04-18  Andy Piper  <andy@xemacs.org>
9908
9909         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9910         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9911         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9912
9913         * glyphs.c (image_instance_equal): add margin_width.
9914         (image_instance_hash): ditto.
9915
9916         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9917         (layout_query_geometry): ditto.
9918         (layout_layout): ditto.
9919         (syms_of_glyphs_widget): add margin-width.
9920         (image_instantiator_layout): allow margin-width.
9921
9922         * glyphs.c (update_widget_instances): make a normal function.
9923         (syms_of_glyphs): remove Qupdate_widget_instances.
9924         * glyphs.h: ditto.
9925
9926         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9927         so that we don't corrupt ideas about the last event or
9928         command. Remove widget-callback-current-channel fiddling.
9929         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9930
9931 2000-05-01  Martin Buchholz <martin@xemacs.org>
9932
9933         * XEmacs 21.2.33 is released.
9934
9935 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9936
9937         * make-src-depend: Allow dots in header file name.
9938
9939 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9940
9941         * mule-charset.h (struct charset_lookup): Add
9942         next_allocated_1_byte_leading_byte and
9943         next_allocated_2_byte_leading_byte.
9944         * mule-charset.c: Move above two variables so that those values
9945         will be dumped.
9946
9947 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9948
9949         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9950         when string length is zero.
9951         (find_charsets_in_emchar_string): Ditto.
9952
9953 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9954
9955         * lisp.h: extern Qdialog and Qmenubar.
9956
9957         * gui-x.c: added events.h.
9958                 also fixed typo which made the file uncompilable.
9959
9960         * general.c: Added Qmenubar and Qdialog
9961
9962 2000-04-28  Ben Wing  <ben@xemacs.org>
9963
9964         * frame-msw.c (mswindows_init_frame_1):
9965         * frame-msw.c (mswindows_mark_frame):
9966         * event-msw.c (mswindows_enqueue_dispatch_event):
9967         * console-msw.h:
9968         * console-msw.h (struct mswindows_frame):
9969         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9970         there are now three hash tables for callbacks.
9971         mswindows_enqueue_dispatch_event is no longer static.
9972
9973         * dialog-x.c (maybe_run_dbox_text_callback):
9974         * dialog-x.c (dbox_descriptor_to_widget_value):
9975         switch to new cons3 form for callbacks.
9976
9977         * glyphs-msw.c (mswindows_register_gui_item):
9978         * glyphs-msw.c (mswindows_widget_instantiate):
9979         * glyphs-msw.c (add_tree_item):
9980         * glyphs-msw.c (add_tab_item):
9981         new image instance parameter, so it can be passed to callback-ex.
9982         respect :callback-ex as well as :callback.
9983
9984         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9985         add :callback-ex.
9986
9987         * glyphs.c (print_image_instance):
9988         prettify, e.g. now prints widget type.
9989
9990         * gui-x.h:
9991         certain funs have new image instance parameter.
9992
9993         * gui.c:
9994         * gui.c (get_gui_callback):
9995         * gui.c (gui_item_add_keyval_pair):
9996         * gui.c (gui_item_init):
9997         * gui.c (gui_add_item_keywords_to_plist):
9998         * gui.c (mark_gui_item):
9999         * gui.c (gui_item_hash):
10000         * gui.c (gui_item_equal):
10001         * gui.c (copy_gui_item):
10002         * gui.c (syms_of_gui):
10003         recognize callback-ex in a number of places.
10004         also, fix the annoying "can't get out of yes-no dialog" bug.
10005
10006         * gui.h:
10007         * gui.h (struct Lisp_Gui_Item):
10008         recognize callback-ex in a number of places.
10009
10010         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10011         new parameter in button_item_to_widget_value.
10012
10013         * glyphs-x.c (x_update_widget):
10014         * glyphs-x.c (x_button_instantiate):
10015         * glyphs-x.c (x_button_update):
10016         * glyphs-x.c (x_progress_gauge_instantiate):
10017         * glyphs-x.c (x_edit_field_instantiate):
10018         * glyphs-x.c (x_combo_box_instantiate):
10019         * glyphs-x.c (x_tab_control_instantiate):
10020         * glyphs-x.c (x_label_instantiate):
10021         new image instance parameter in various places.
10022
10023         * event-Xt.c:
10024         * event-Xt.c (enqueue_Xt_dispatch_event):
10025         this fun gets exported.
10026
10027         * gui-msw.c:
10028         * gui-msw.c (mswindows_handle_gui_wm_command):
10029         handle both :callback and :callback-ex, and generate our own
10030         event because it's one of the callback-ex arguments.
10031
10032         * gui-x.c:
10033         * gui-x.c (popup_selection_callback):
10034         handle both :callback and :callback-ex, and generate our own
10035         event because it's one of the callback-ex arguments.
10036         * gui-x.c (button_item_to_widget_value):
10037         * gui-x.c (gui_items_to_widget_values_1):
10038         * gui-x.c (gui_item_children_to_widget_values):
10039         * gui-x.c (gui_items_to_widget_values):
10040         new image instance parameter in various places.
10041
10042         * fns.c (Freplace_list):
10043         fix small typo in doc string.
10044
10045         * lisp.h:
10046         declare enqueue_Xt_dispatch_event.
10047
10048 2000-04-28  Ben Wing  <ben@xemacs.org>
10049
10050         * buffer.c:
10051         * buffer.c (Frecord_buffer):
10052         * buffer.c (syms_of_buffer):
10053         delete record-buffer-hook.
10054
10055         * fns.c:
10056         * fns.c (Freplace_list):
10057         * fns.c (syms_of_fns):
10058         new primitive replace-list.
10059
10060         * frameslots.h:
10061         slot for old buffer-alist.
10062
10063         * lisp.h:
10064         exfun replace-list.
10065
10066         * redisplay.c:
10067         * redisplay.c (redisplay_frame):
10068         * redisplay.c (syms_of_redisplay):
10069         * redisplay.c (vars_of_redisplay):
10070         new hook buffer-list-changed-hook.
10071         call it.
10072
10073 2000-04-27  Ben Wing  <ben@xemacs.org>
10074
10075         * extents.h: extern in_modeline_generation.
10076
10077         * redisplay.c (generate_formatted_string_db): set
10078         in_modeline_generation.
10079
10080         * extents.c (extent_changed_for_redisplay): don't mark redisplay
10081         flags if in modeline generation.  otherwise frame-modified-tick
10082         is ticked far too often.
10083         Declare in_modeline_generation.
10084
10085 2000-04-26  Ben Wing  <ben@xemacs.org>
10086
10087         * emacs.c (vars_of_emacs): document quick-build "error-checking"
10088         option.
10089         (vars_of_emacs): add quick-build as an error-checking option.
10090         A bit kludgy, but there doesn't seem much point in creating
10091         a real var for this.
10092
10093         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
10094
10095 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10096
10097         * redisplay.h (struct display_line): Add a new variable,
10098         line_continuation.
10099
10100         * redisplay.c (create_text_block): Set dl->line_continuation if
10101         the line continues.
10102         (create_string_text_block): Ditto.
10103         (regenerate_window_incrementally): Use line_continuation instead
10104         of searching continuation glyph.
10105         (add_margin_runes): Call add_glyph_rune.
10106         (add_glyph_rune): Handle margin glyph.
10107
10108 2000-04-20  Martin Buchholz  <martin@xemacs.org>
10109
10110         * filelock.c (fill_in_lock_file_name):
10111         ANSIfy.
10112         Check for IS_ANY_SEP instead of '/'.
10113         (lock_file_1):
10114         Avoid generating gratuitous garbage.  Call user_login_name() directly.
10115         Never check errno without first seeing that system call failed.
10116         (unlock_file): Add GCPRO.
10117         (Flock_buffer): Fix docstring.
10118         (Ffile_locked_p): Fix docstring.  Add GCPRO.
10119
10120 2000-04-19  Martin Buchholz  <martin@xemacs.org>
10121
10122         * sysdep.c (get_pty_max_bytes):
10123         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
10124         strings longer than 252 bytes.
10125
10126         * md5.c: Unconditionally include ANSI header <limits.h>
10127
10128         * glyphs-x.c (convert_EImage_to_XImage):
10129         * lisp-union.h (union Lisp_Object):
10130         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
10131
10132 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10133
10134         * filelock.c (current_lock_owner): Remove unused variable o, p.
10135
10136 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
10137
10138         * callint.c: Remove multiply defined symbol Qlet
10139         (syms_of_callint): ditto.
10140
10141 2000-04-14  Andy Piper  <andy@xemacs.org>
10142
10143         * general.c (syms_of_general): add last-command, this-command, let
10144         and funcall.
10145
10146         * lisp.h: declare various symbols.
10147
10148         * glyphs.h: declare Qwidget_callback_current_channel;
10149
10150         * glyphs-widget.c (syms_of_glyphs_widget): add
10151         Qgui_callback_current_channel.
10152         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
10153
10154         * gui-msw.c (mswindows_handle_gui_wm_command): bind
10155         widget-callback-current-channel when invoking the interactive
10156         arg. Also bind last-command and next-command when invoking the
10157         widget updates.
10158         * gui-x.c (popup_selection_callback): ditto.
10159
10160         * gui.c (get_gui_callback): massage args so that we are always
10161         calling eval. This allows us to add our own variable bindings
10162         outside.
10163
10164         * glyphs-x.c (x_button_instantiate): use
10165         gui_items_to_widget_values since this is GC safe.
10166         (x_progress_gauge_instantiate): ditto.
10167         (x_edit_field_instantiate): ditto.
10168         (x_label_instantiate): ditto.
10169
10170         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
10171         (emacs_Xt_event_widget_focus_out): new function
10172         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
10173         focus.
10174         (emacs_Xt_event_add_widget_actions): new function. add focus
10175         functions as actions.
10176         (init_event_Xt_late): use it.
10177
10178 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
10179
10180         * event-stream.c (Fdispatch_event): Doc fix.
10181
10182 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
10183
10184         * postgresql.c: Remove all references to PQsetenv*.
10185
10186         * postgresql.h: Remove references to PGsetenvHandler object.
10187         * lrecord.h (lrecord_type): Ditto.
10188
10189 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10190
10191         * glyphs-msw.h (struct mswindows_image_instance_data): Added
10192         real_heigh and real_width members, and accessor macros for these.
10193
10194         * glyphs-msw.c (init_image_instance_geometry): New function.
10195         (init_image_instance_from_dibitmap): Use it.
10196         (mswindows_resource_instantiate): Use it.
10197         (init_image_instance_from_xbm_inline): Use it.
10198         (mswindows_initialize_image_instance_mask): Use real bitmap
10199         geometry.
10200         (mswindows_create_resized_bitmap): Ditto.
10201         (mswindows_create_resized_mask): Ditto.
10202
10203         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
10204         and bitmap to their surface size.
10205
10206 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
10207
10208         * process-unix.c (unix_send_process): Guard against process MIA
10209         after Faccept_process_output.
10210
10211 2000-04-11  Ben Wing  <ben@xemacs.org>
10212
10213         * eval.c (unbind_to_hairy): fix brokenness introduced by
10214         nanosecond speed improvements.
10215
10216 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
10217
10218         * sunplay.c (init_device): To play sounds correctly, the device
10219         apparently needs to be initialized at least once by XEmacs.  Make
10220         it so.
10221
10222 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10223
10224         * redisplay.c (add_margin_runes): Add text image glyph
10225           handling.
10226
10227 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10228
10229         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
10230         gcc is newer than 2.5.
10231
10232 2000-04-06  Colin Rafferty  <colin@xemacs.org>
10233
10234         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
10235
10236         * fns.c (size_bit_vector):
10237         * alloc.c (size_vector):
10238         (make_vector_internal):
10239         (make_bit_vector_internal):
10240         (sweep_bit_vectors_1):
10241         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
10242
10243 2000-04-06  Andy Piper  <andy@xemacs.org>
10244
10245         * gmalloc.c (malloc): undo previous change.
10246         (malloc): ditto.
10247         (free): ditto.
10248         (realloc): ditto.
10249
10250 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
10251
10252         * line-number.c (buffer_line_number): Revert to former version.
10253
10254 2000-04-06  Andy Piper  <andy@xemacs.org>
10255
10256         * gmalloc.c (malloc): add error checking.
10257         (malloc): ditto.
10258         (free): ditto.
10259         (realloc): ditto.
10260
10261         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
10262         button_item_to_widget_value arg.
10263
10264         * glyphs-x.c (x_button_instantiate): add extra
10265         button_item_to_widget_value arg.
10266         (x_progress_gauge_instantiate): ditto.
10267         (x_edit_field_instantiate): ditto.
10268         (x_label_instantiate): ditto.
10269
10270         * gui-x.c (gui_items_to_widget_values_1): add extra
10271         button_item_to_widget_value arg.
10272         (button_item_to_widget_value): add extra menu_item_p arg.
10273
10274         * gui-x.h: change signature of button_item_to_widget_value.
10275
10276         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
10277         button_item_to_widget_value arg.
10278
10279 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10280
10281         * buffer.h (struct buffer): auto_save_modified should be long.
10282
10283 2000-04-05  Andy Piper  <andy@xemacs.org>
10284
10285         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
10286         type.
10287         (button_query_geometry): give a little more room so that athena
10288         buttons fit.
10289
10290 2000-04-05  Andy Piper  <andy@xemacs.org>
10291
10292         * faces.c (complex_vars_of_faces): The widget face should inherit
10293         the font of the gui-element face.
10294
10295 2000-04-04  Andy Piper  <andy@xemacs.org>
10296
10297         * glyphs-x.c (x_button_update): new function. unconditionally
10298         update a button's state when the instance is dirty.
10299         (image_instantiator_format_create_glyphs_x): add x_button_update.
10300         (x_widget_instantiate): remove old resize cruft.
10301
10302 2000-04-02  Andy Piper  <andy@xemacs.org>
10303
10304         * frame.c (change_frame_size_1): The introduction of gutters means
10305         that we need to allow 0 as a potential frame dimension.
10306
10307 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10308
10309         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
10310         image glyph if allow_cursor.
10311         (add_hscroll_rune): Don't allow cursor to border glyph.
10312         (create_text_block): Ditto.
10313
10314         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
10315         text not in buffer.
10316         (redisplay_output_layout): Call ensure_face_cachel_complete for
10317         text image glyph.
10318
10319
10320 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10321
10322         * redisplay.c (add_glyph_rune): Adding text image as text runes.
10323
10324         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
10325         not in buffer
10326
10327         * redisplay-tty.c (tty_output_display_block): Delete the routine
10328         for text image glyph
10329         * redisplay-x.c (x_output_display_block): ditto
10330         * redisplay-msw.c (mswindows_output_display_block): ditto
10331
10332 2000-02-02  Mike Alexander  <mta@arbortext.com>
10333
10334         Note: Some of these were committed by accident as part of other
10335         patches.
10336
10337         * regex.c (regex_compile): Avoid compiler warnings.
10338
10339         * ntproc.c (sys_spawnve): Avoid compiler warnings.
10340
10341         * nt.h: Declare term_ntproc correctly.
10342
10343         * nt.c: Remove incorrect declaration of get_home_directory which
10344         is declared correctly in lisp.h.
10345
10346         * keymap.c (get_keyelt): Avoid compiler warnings.
10347         (raw_lookup_key_mapper): Avoid compiler warnings.
10348
10349         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10350
10351         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10352
10353         * filemode.c (mode_string): Avoid compiler warnings.
10354
10355         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10356         avoid warning.
10357
10358         * events-mod.h: Undef some things that winuser.h defines differently.
10359
10360         * data.c (Faset): Avoid compiler warnings.
10361
10362         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10363
10364 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10365
10366         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10367         Fall through to simple beep on error.
10368         Replace "extern" by real header file.
10369
10370         * linuxplay.c: Use nativesound.h
10371         (play_sound_data): Return error code. Be less verbose on error.
10372
10373         * sunplay.c: Use nativesound.h
10374         (play_sound_data): Return error code. Be less verbose on error.
10375
10376         * ntplay.c: Use nativesound.h
10377         (play_sound_data): Return fake error code
10378
10379         * sgiplay.c: Use nativesound.h
10380         (play_sound_data): Return error code
10381
10382         * hpplay.c: Use nativesound.h, partially implement
10383         new error code. Break compilation until finished.
10384         (play_sound_data): error code.
10385
10386         * nativesound.h (play_sound_file):
10387           (play_sound_data): Prototype in new header.
10388
10389 2000-03-31  Andy Piper  <andy@xemacs.org>
10390
10391         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10392         for toggle and radio buttons.
10393         (image_instantiator_buttons): use it.
10394
10395 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10396
10397         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10398         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10399         found. Scrollbar event probably belonged to some old config.
10400
10401 2000-03-31  Andy Piper  <andy@xemacs.org>
10402
10403         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10404         than 1.
10405         (initialize_widget_image_instance): default layout to
10406         LAYOUT_HORIZONTAL rather than 0.
10407         (widget_instantiate): reverse the item list at the end rather than
10408         every iteration.
10409         (layout_layout): re-code for the border text at the front of the
10410         item list rather than at the end.
10411         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10412         provided by the user.
10413         (widget_query_geometry): comment.
10414
10415 2000-03-30  Andy Piper  <andy@xemacs.org>
10416
10417         * glyphs-widget.c (image_instantiator_layout): allow standard
10418         widget keywords in layouts.
10419
10420         * gutter.c (output_gutter): cope with nil gutter contents.
10421
10422         * frame.c (Fset_frame_properties): add gutter docs.
10423
10424 2000-03-29  Andy Piper  <andy@xemacs.org>
10425
10426         * toolbar-msw.c (TBSTYLE_FLAT): add.
10427         (mswindows_output_toolbar): minor fiddling.
10428
10429 2000-03-29  Andy Piper  <andy@xemacs.org>
10430
10431         * gutter.c (output_gutter): force gutter size recalculation if
10432         what we are trying to display won't fit.
10433         (update_gutter_geometry): new function. A per-gutter version of
10434         update_frame_gutter_geometry.
10435         (update_frame_gutter_geometry): use it.
10436         (redraw_exposed_gutter): add extra debugging output.
10437
10438 2000-03-28  Mike Alexander  <mta@arbortext.com>
10439
10440         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10441         (pdump_file_unmap): Implement it on Windows
10442         (pdump_file_get): Save alocated handles for pdump_file_unmap
10443
10444 2000-03-28  Andy Piper  <andy@xemacs.org>
10445
10446         * gui.c (get_gui_callback): treat Quit specially.
10447
10448 2000-03-27  Andy Piper  <andy@xemacs.org>
10449
10450         * glyphs.c (image_instantiate): be careful to check in the same
10451         way we assigned.
10452
10453 2000-03-27  Didier Verna  <didier@xemacs.org>
10454
10455         * config.h.in: define the proper SMART_INCLUDE macro.
10456         handle renaming of `foo_h_path' to `foo_h_file'.
10457
10458         * database.c: ditto.
10459
10460         * emacs.c: ditto.
10461
10462         * linuxplay.c: ditto.
10463
10464         * terminfo.c: ditto.
10465
10466         * tooltalk.h: ditto.
10467
10468 2000-03-27  Andy Piper  <andy@xemacs.org>
10469
10470         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10471         gets updated whenever the face might have changed.
10472
10473 2000-03-26  Mike Alexander  <mta@arbortext.com>
10474
10475         * dumper.c (pdump_resource_free): Fix the comment.
10476
10477 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10478
10479         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10480
10481 2000-03-22  Mike Alexander  <mta@arbortext.com>
10482
10483         * dumper.c: Include Windows headers on Windows
10484         (pdump_resource_free): Add a body to the function
10485         (pdump_load): exe_name -> exe_path and add some comments.
10486
10487 2000-03-25  Mike Alexander  <mta@arbortext.com>
10488
10489         * gui.c (copy_gui_item_tree): Return a value in all cases
10490
10491 2000-03-21  Didier Verna  <didier@xemacs.org>
10492
10493         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10494         lwlib/config.h.in.
10495         (SMART_INCLUDE): new macro.
10496         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10497         the proper location.
10498
10499         * postgresql.c: use it.
10500
10501         * inline.c: ditto.
10502
10503 2000-03-24  Andy Piper  <andy@xemacs.org>
10504
10505         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10506         do this.
10507
10508 2000-03-24  Andy Piper  <andy@xemacs.org>
10509
10510         * redisplay-output.c (compare_runes): use image_instance_changed
10511         to detect changes. Do not depend on glyphs_changed, only depend on
10512         dirtiness.
10513          (redisplay_output_layout): add debug messages.
10514         (compare_runes): ditto.
10515
10516         * glyphs.h: declare new functions.
10517         (struct Lisp_Image_Instance): remove percent and associated
10518         accessors.
10519
10520         * gui.h: declare new copying functions.
10521
10522         * gui.c (copy_gui_item_tree): new function.
10523         (copy_gui_item): new function.
10524         (gui_item_id_hash): revert to standard hash.
10525         (gui_item_hash): ditto.
10526         (gui_item_hash_internal): deleted.
10527         (mark_gui_item): mark value.
10528         (gui_item_add_keyval_pair): add value.
10529         (gui_item_init): ditto.
10530         (gui_add_item_keywords_to_plist): ditto.
10531         (gui_item_equal): ditto.
10532         (syms_of_gui): add Q_value.
10533
10534         * glyphs-x.c (x_progress_gauge_update): use pending items and
10535         value for setting the state.
10536         (x_update_widget): don't set items from pending here.
10537
10538         * glyphs-widget.c (update_widget): update items here.
10539         (progress_gauge_set_property): use items for storing value. Put
10540         new value in pending items.
10541
10542         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10543         items for new value. Convert percent -> value.
10544         (mswindows_tab_control_update): don't update items here.
10545
10546         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10547         (update_subwindow): ditto.
10548         (image_instance_changed): new function. Compare hash values and
10549         past and present widget items.
10550         (image_instantiate): We more careful about where we instantiate
10551         things.
10552         (image_instantiate): add error checking.
10553
10554         * gutter.c (syms_of_gutter): use -hook.
10555
10556 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10557
10558         * console-tty.c (Fset_console_tty_input_coding_system): Use
10559         Qkeyboard.
10560         (Fset_console_tty_output_coding_system): Use Qterminal.
10561         (tty_init_console): Use Qkeyboard and Qterminal.
10562
10563 2000-03-21  Ben Wing  <ben@xemacs.org>
10564
10565         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10566         From Mike Alexander <mta@arbortext.com>.
10567
10568 2000-03-21  Ben Wing  <ben@xemacs.org>
10569
10570         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10571         process brokenness.  Proper implementation to come.
10572         * callproc.c:
10573         Rename call-process-internal to old-call-process-internal.
10574         New impl. in process.el.
10575
10576 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10577
10578         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10579
10580 2000-03-20  Andy Piper  <andy@xemacs.org>
10581
10582         * glyphs.c (full_list_hash): make hashes of the same elements in
10583         different orders return different values.
10584
10585 2000-03-20  Martin Buchholz <martin@xemacs.org>
10586
10587         * XEmacs 21.2.32 is released.
10588
10589 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10590
10591         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10592         (DFC_MALLOC_USE_CONVERTED_DATA):
10593         Add aliasing-safe casts to allow use with char* or unsigned char*
10594         lvalues.
10595
10596         * eldap.c (Fldap_open):
10597         (Fldap_search_basic):
10598         (Fldap_add):
10599         (Fldap_modify):
10600         Make C++-compilable.
10601         Make sure GCPRO'ed variables are initialized.
10602         Use temp variables to avoid repeated calls to Flength.
10603
10604 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10605
10606         * sysfile.h:
10607         Make sure PATH_MAX is always defined.
10608         Include limits.h for PATH_MAX.
10609         Deprecate use of MAXPATHLEN.
10610
10611 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10612
10613         * emacs.c: Add reinit_vars_of_fileio.
10614         * symsinit.h: Add reinit_vars_of_fileio.
10615         * fileio.c (reinit_vars_of_fileio): New.
10616         * fileio.c (Fmake_temp_name):
10617         Initialize temp_name random number from microseconds to make
10618         collisions even less likely.  Initialize always at process startup
10619         time.  (make-temp-name) used to return the same file name twice in
10620         a row when PDUMP.
10621         Random stylistic fiddling.
10622         Comment fixes.
10623
10624 2000-03-20  Andy Piper  <andy@xemacs.org>
10625
10626         * glyphs.c (image_instantiate): allow text glyphs to be
10627         instantiated in the minibuffer window.
10628
10629 2000-03-19  Andy Piper  <andy@xemacs.org>
10630
10631         * glyphs.c (image_instance_hash): be careful about which items we
10632         hash on.
10633
10634         * glyphs-widget.c (tab_control_set_property): record into pending
10635         items rather than the actual items.
10636
10637         * glyphs-x.c (x_update_widget): use pending items to update with.
10638
10639         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10640         to update with.
10641
10642         * glyphs.c (mark_image_instance): mark pending items.
10643
10644         * window.c (Fset_window_configuration): record the buffer.
10645         (Fselect_window): totally revert previous change which breaks many
10646         things.
10647
10648 2000-03-18  Andy Piper  <andy@xemacs.org>
10649
10650         * glyphs-msw.c (mswindows_tab_control_update): force selected
10651         item.
10652
10653         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10654         window domain cache, otherwise we get inconsistencies at
10655         startup. There is something fishy at startup which can lead to the
10656         minibuffer being the selected window when the gutter content is
10657         instantiated.
10658
10659         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10660         gcpros.
10661         (parse_gui_item_tree_children): ditto.
10662         (parse_gui_item_tree_item): ditto.
10663
10664         * glyphs.c (Fupdate_widget_instances): return something.
10665
10666 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10667
10668         * window.c (Fselect_window): Undo 2000-03-17 change.
10669
10670 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10671
10672         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10673         against v7.0 libraries.  Insta-coredump city until the postgres
10674         folks fix it.
10675
10676 2000-03-17  Andy Piper  <andy@xemacs.org>
10677
10678         * faces.c (complex_vars_of_faces): don't give the widget face an
10679         inherited background pixmap.
10680
10681         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10682         selected item.
10683
10684         * event-stream.c (Fdispatch_non_command_events): return something.
10685
10686         * gutter.c (output_gutter): use widget face.
10687         (clear_gutter): ditto.
10688
10689         * NEWS: adjust again.
10690
10691         * window.c (Fselect_window): make sure this runs to completion to
10692         avoid oddities with Fset_window_configuration.
10693         (Fcurrent_window_configuration): in general do not save the
10694         minibuffer as the selected window.
10695
10696         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10697
10698 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10699
10700         * emacs.c (Frunning_temacs_p): Revert previous patch.
10701         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10702
10703 2000-03-16  Andy Piper  <andy@xemacs.org>
10704
10705         * glyphs-x.c (x_tab_control_update): if no widget values then
10706         return.
10707
10708         * NEWS: update for new features.
10709
10710         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10711         synthetic event to the native system.
10712         (reinit_vars_of_event_Xt): set force_event_pending to
10713         emacs_Xt_force_event_pending.
10714
10715         * events.h (struct event_stream): add force_event_pending.
10716
10717         * specifier.c (recompute_one_cached_specifier_in_window): add
10718         comment.
10719
10720         * redisplay.c (redisplay_frame): don't call
10721         update_frame_subwindows. Reset subwindow cachels when
10722         subwindows_changed, removing this was an optimization too far.
10723
10724         * redisplay-output.c (compare_runes): reorganize so that we catch
10725         glyph changes when we want them. Set optimize_output when this
10726         would help layouts.
10727         (redisplay_output_layout): remove frame_really_changed, use
10728         optimize_output instead.
10729
10730         * redisplay-msw.c (mswindows_output_display_block): reset
10731         optimize_output after outputting a glyph.
10732         * redisplay-x.c (x_output_display_block): ditto.
10733         * redisplay-tty.c (tty_output_display_block): ditto.
10734
10735         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10736         functions.
10737         (gutter_specs_changed): do specific gutter positions.
10738         (top_gutter_specs_changed): new function. Only update the
10739         specified gutter specs.
10740         (bottom_gutter_specs_changed): ditto.
10741         (left_gutter_specs_changed): ditto.
10742         (right_gutter_specs_changed): ditto.
10743
10744         * gui.c (gui_item_hash_internal): new function, does a real hash.
10745         (gui_item_id_hash): use it.
10746         (gui_item_hash): hash the eval'ed gui_item.
10747
10748         * gui-x.c (popup_selection_callback): send an eval event to call
10749         Fupdate_widget_instances.
10750
10751         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10752         to call Fupdate_widget_instances.
10753
10754         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10755         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10756
10757         * glyphs.c: (update_frame_subwindows): deleted.
10758         (Fupdate_widget_instances): new function for updating the dirty
10759         state of widgets that might have changed.
10760         (syms_of_glyphs): add Qupdate_widget_instances.
10761         (full_list_hash): hash a list completely.
10762         (image_instance_hash): use it for items and properties.
10763
10764         * frame-msw.c (mswindows_size_frame_internal): remove unused
10765         variable.
10766
10767         * faces.h (struct face_cachel): fix comment.
10768
10769         * event-stream.c (Fdispatch_non_command_events): new
10770         function. Process non-command events, forcing an event cycle
10771         beforehand.
10772         (syms_of_event_stream): declare.
10773         (event_stream_force_event_pending): new function. Force an event
10774         on the native event queue so that an event cycle will occur next
10775         time we check.
10776
10777         * event-msw.c:
10778         (struct ntpipe_shove_stream):
10779         (mswindows_enqueue_dispatch_event):
10780         (mswindows_dequeue_dispatch_event):
10781         (mswindows_cancel_dispatch_event):
10782         (mswindows_pump_outstanding_events):
10783         (mswindows_drain_windows_queue):
10784         (mswindows_handle_paint):
10785         (mswindows_wnd_proc):
10786         (mswindows_key_to_emacs_keysym):
10787         (get_process_input_waitable):
10788         (emacs_mswindows_delete_stream_pair): re-indent file.
10789         (mswindows_need_event): do not process further fds if the windows
10790         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10791         fixes the 100% cpu problem.
10792         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10793
10794 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10795
10796         * alloc.h: New.
10797         * dumper.h: New.
10798         * dumper.c: New.
10799
10800         * emacs.c: Moved dump file searching to dumper.c.
10801         (Frunning_temacs_p): Fixed.
10802
10803         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10804         last_lrecord_type_index_assigned.
10805
10806 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10807
10808         * symsinit.h: Added reinit parameter to init_console_stream
10809         declaration.
10810
10811         * lisp.h: Added file parameter to pdump_load declaration.
10812
10813         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10814         support.  Added dump file searching.
10815
10816         * config.h.in: Added EMACS_PROGNAME.
10817
10818         * console-stream.c (init_console_stream): Fix reinitialisation
10819         when running from temacs.
10820
10821         * alloc.c (pdump): Add id support.
10822         (pdump_load): Add file parameter and signature/id support.
10823
10824         * Makefile.in.in: Add full pdump support.
10825
10826 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10827
10828         * postgresql.c: Update documentation to reflect latest code
10829         status.
10830         (print_result): Show tuple counts in printed representation when
10831         appropriate.
10832         (Fpq_put_nbytes): MULE-ize.
10833         (Fpq_get_line_async): Ditto.
10834
10835 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10836
10837         * postgresql.c (Fpq_lo_import): Fix return value.
10838         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10839
10840 2000-03-13  Ben Wing  <ben@xemacs.org>
10841
10842         * alloc.c (pdump_load):
10843         Fix compile warning under mswin.
10844
10845 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10846
10847         * postgresql.c: Mule-ization, bug fixes.
10848         Use PG_CODING to encapsulate coding system name changes.
10849         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10850         (pg-coding-system): Create.
10851
10852         (Fpq_conn_defaults): Mule-ize.
10853         (Fpq_connectdb): Mule-ize & bug fix.
10854         (Fpq_connect_start): Mule-ize.
10855         (Fpq_set_client_encoding): Mule-ize.
10856         (Fpq_finish): Document `DEAD' connection status.
10857         (Fpq_clear): Ditto.
10858         (Fpq_pgconn): Mule-ize.
10859         (Fpq_exec): Mule-ize & bug fix.
10860         (Fpq_send_query): Ditto.
10861         (Fpq_get_result): Ditto.
10862         (Fpq_res_status): Mule-ize.
10863         (Fpq_result_error_message): Mule-ize.
10864         (Fpq_ntuples): fix comments.
10865         (Fpq_fname): Mule-ize.
10866         (Fpq_fnumber): Mule-ize.
10867         (Fpq_ftype): fix comments.
10868         (Fpq_get_value): Mule-ize.
10869         (Fpq_cmd_status): Ditto.
10870         (Fpq_cmd_tuples): Ditto.
10871         (Fpq_oid_value): Ditto.
10872         (Fpq_notifies): Ditto.
10873         (Fpq_lo_import): Ditto.
10874         (Fpq_lo_export): Ditto.
10875         (Fpq_get_line): Ditto.
10876         (Fpq_put_line): Mule-ize and bug fix.
10877         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10878
10879 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10880
10881         * postgresql.c (vars_of_postgresql): Mule-ize.
10882         (Fpq_conn_defaults): Ditto.
10883
10884 2000-03-12  Ben Wing  <ben@xemacs.org>
10885
10886         * alloc.c (Fmake_byte_code):
10887         * alloc.c (debug_string_purity_print):
10888         * alloc.c (pdump_backtrace):
10889         * alloc.c (pdump_get_indirect_count):
10890         * alloc.c (pdump_register_sub):
10891         * alloc.c (pdump_register_object):
10892         * alloc.c (pdump_register_struct):
10893         * alloc.c (pdump_dump_data):
10894         * alloc.c (pdump_reloc_one):
10895         Minor cleanups.
10896
10897         * console-msw.c:
10898         * console-msw.c (GetConsoleHwnd):
10899         * console-msw.c (msw_hide_console):
10900         * console-msw.c (msw_show_console):
10901         * console-msw.c (msw_ensure_console_buffered):
10902         * console-msw.c (msw_output_console_string):
10903         * console-msw.c (console_type_create_mswindows):
10904
10905         a) Added functions to manipulate the console window for use with
10906         shell support.
10907
10908         b) Added support for writing text to the console, which is now
10909         used under Windows when xemacs is not being run non-interactively,
10910         to write text that would otherwise be destined for stdout because
10911         under these circumstances, text written to stdout tends to
10912         disappear and not be seen.
10913
10914         * console-msw.h:
10915         * event-Xt.c:
10916         * event-Xt.c (x_event_to_emacs_event):
10917         * event-Xt.c (describe_event_window):
10918         * events-mod.h (XEMACS_MOD_CONTROL):
10919         * events.c:
10920         * events.c (Fmake_event):
10921         * events.c (character_to_event):
10922         * events.c (event_to_character):
10923         * events.c (format_event_object):
10924         * events.c (Fevent_modifiers):
10925         * events.h:
10926         * events.h (struct key_data):
10927         * events.h (struct button_data):
10928         * events.h (struct misc_user_data):
10929         * frame-x.c (Fcde_start_drag_internal):
10930         * frame-x.c (Foffix_start_drag_internal):
10931         * gpmevent.c (Freceive_gpm_event):
10932         * keymap.c:
10933         * keymap.c (bucky_sym_to_bucky_bit):
10934         * keymap.c (control_meta_superify):
10935         * keymap.c (make_key_description):
10936         * keymap.c (keymap_lookup_directly):
10937         * keymap.c (create_bucky_submap):
10938         * keymap.c (keymap_store):
10939         * keymap.c (define_key_check_and_coerce_keysym):
10940         * keymap.c (define_key_parser):
10941         * keymap.c (define_key_alternate_name):
10942         * keymap.c (Fdefine_key):
10943         * keymap.c (raw_lookup_key_mapper):
10944         * keymap.c (struct map_keymap_unsorted_closure):
10945         * keymap.c (map_keymap_unsorted_mapper):
10946         * keymap.c (map_keymap_sort_predicate):
10947         * keymap.c (map_keymap_sorted):
10948         * keymap.c (accessible_keymaps_mapper_1):
10949         * keymap.c (where_is_recursive_mapper):
10950         * keymap.c (describe_map_mapper):
10951         * keymap.c (describe_map_sort_predicate):
10952         * keymap.c (describe_map):
10953         * keymap.c (complex_vars_of_keymap):
10954         And a number of other files, the key modifier preprocessor
10955         constants that xemacs uses have names that conflict with constants
10956         defined under MS Windows for other purposes, so they were renamed
10957         to begin with the prefix XEMACS_. The variables that hold such
10958         modifiers were changed to consistently be of type int to fix
10959         various compile warnings.
10960
10961         * console.c (complex_vars_of_console):
10962         * device.c:
10963         * device-msw.c:
10964         * device-msw.c (mswindows_finish_init_device):
10965         * device-msw.c (msw_get_workspace_coords):
10966         * device-msw.c (mswindows_device_system_metrics):
10967         and various other files, added support for a new
10968         device property called offset-workspace which returns the position
10969         of the upper left corner of the workspace area and goes along with
10970         the existing size-workspace property.
10971
10972         * dialog-msw.c:
10973         * dialog-msw.c (push_bufbyte_string_as_unicode):
10974         * dialog-msw.c (mswindows_popup_dialog_box):
10975         Added support for XEmacs-style accelerator specifications in
10976         button text.  Note: I didn't add support for this under X Windows,
10977         and somebody needs to do this.
10978
10979         * dialog.c:
10980         * dialog.c (Fpopup_dialog_box):
10981         Documented the support for accelerators that was just mentioned.
10982
10983         editfns.c (get_home_directory): Changed behavior under Windows
10984         when HOME not defined; former behavior was irretrievably broken.
10985
10986         * emacs.c:
10987         * emacs.c (main_1):
10988         * emacs.c (main):
10989         * minibuf.c (clear_echo_area_internal):
10990         * minibuf.c (echo_area_append):
10991         * print.c:
10992         * print.c (std_handle_out_external):
10993         * print.c (std_handle_out_va):
10994         * print.c (fatal):
10995         * print.c (write_string_to_stdio_stream):
10996         * print.c (output_string):
10997         * print.c (debug_print):
10998         * print.c (debug_backtrace):
10999         * print.c (debug_short_backtrace):
11000         Cleaned up the code that prints text to stdout so that this can be
11001         changed to output into a console window instead under MS Windows,
11002         as described above.
11003
11004         * eval.c:
11005         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
11006         * eval.c (internal_catch):
11007         * eval.c (unwind_to_catch):
11008         * eval.c (throw_or_bomb_out):
11009         * eval.c (condition_case_1):
11010         * eval.c (signal_1):
11011         * eval.c (check_error_state_sanity):
11012         * eval.c (call_with_suspended_errors_1):
11013         * eval.c (call_with_suspended_errors):
11014         * eval.c (reinit_vars_of_eval):
11015         Added code to catch throw loops and check for a pesky bug that may
11016         be gone now.
11017
11018         * event-msw.c:
11019         * event-msw.c (key_needs_default_processing_p):
11020         * event-msw.c (mswindows_wnd_proc):
11021         * event-msw.c (mswindows_modifier_state):
11022         * event-msw.c (emacs_mswindows_quit_p):
11023         * event-msw.c (vars_of_event_mswindows):
11024         a) Added support for using the alt key to select menu items as is
11025         standard under MS Windows.  This is controlled using the variable
11026         menu-accelerator-enabled, just like under X Windows.  There is an
11027         option on the options menu to turn this support on.  I really
11028         think that it should be on by default under Windows, but I'm not
11029         going to make this change yet.
11030
11031         b)  Added support for dynamic display size changes under Windows.
11032
11033         * event-stream.c:
11034         * event-stream.c (maybe_echo_keys):
11035         * event-stream.c (Fnext_event):
11036         * event-stream.c (command_builder_find_leaf):
11037         * event-stream.c (lookup_command_event):
11038         * event-stream.c (execute_command_event):
11039         * event-stream.c (pre_command_hook):
11040         * event-stream.c (post_command_hook):
11041         * event-stream.c (syms_of_event_stream):
11042         * event-stream.c (vars_of_event_stream):
11043         * event-stream.c (complex_vars_of_event_stream):
11044         * events.h (struct command_builder):
11045
11046         a) Tried to clean up a little bit the horribly written x-specific
11047         accelerator code that crept into this file.  I moved this code
11048         into menubar-x.c where it belongs. I also needed to move the
11049         command builder structure into the file events.h because it is
11050         accessed directly by this accelerator code.  What I didn't do, but
11051         which should be done at some point, is to properly abstract this
11052         code using device methods instead of the kludgy way that it
11053         currently hooks into the event code.
11054
11055         b) Added the lisp variables this-command-properties and
11056         last-command- properties, which should be used to synchronize two
11057         adjacent commands in preference to playing games with the variable
11058         this-command, which is typically what happens.
11059
11060         c) Added some slightly nasty code to hook into the lisp support
11061         for shifted- motion-key selection.  This is actually necessary for
11062         somewhat complicated reasons, which are described in
11063         simple.el. (NB: I think the proper thing would be to have the code
11064         that calls the pre and post command hooks also call out to generic
11065         lisp functions in simple.el, where all built-in stuff could be
11066         added.  I will think about this more.)
11067
11068         * event-unixoid.c (poll_fds_for_input):
11069         * lread.c (readchar):
11070         * redisplay-tty.c (tty_clear_frame):
11071         * redisplay-x.c (x_get_gc):
11072         * signal.c (interrupt_signal):
11073         And a whole bunch of other files: fixed up places that printed
11074         directly to stderr to instead call the function stderr_out so that
11075         the changes I made under Windows work correctly.
11076
11077         * filemode.c (mode_string):
11078         Warning fixes.
11079
11080         * frame-msw.c:
11081         * frame-msw.c (mswindows_size_frame_internal):
11082         Fixed the computation of frame size and position to keep the frame
11083         within the workspace area, rather than within the physical
11084         dimensions of the screen, so that the frame doesn't overlap window
11085         manager decorations, such as the start menu and toolbar, typically
11086         at the bottom of the screen.
11087
11088         * frame.c (vars_of_frame):
11089         Changed the default frame title format under MS Windows to consist
11090         of buffername-XEmacs, which is standard under MS Windows.  I think
11091         it might be a good idea to change this everywhere because I think
11092         it is superior to the current frame title format, but this is the
11093         kind of change that is likely to cause some people to get annoyed,
11094         so I'm not making it.
11095
11096         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
11097
11098         * gui-msw.c (mswindows_handle_gui_wm_command):
11099         Fixed compile warnings.
11100
11101         * gui-x.c:
11102         * gui-x.c (strdup_and_add_accel):
11103         * gui-x.c (button_item_to_widget_value):
11104         * gui-x.h:
11105         Added code to automatically put an accelerator onto the beginning
11106         of menu items that don't have one as is now the standard, and is
11107         described more later.  Also fixed things so that the menu item
11108         name can be an evaluated expression, again a new standard.
11109
11110         * gui.c:
11111         * gui.c (gui_item_add_keyval_pair):
11112         * gui.c (make_gui_item_from_keywords_internal):
11113         * gui.c (gui_add_item_keywords_to_plist):
11114         * gui.c (gui_item_accelerator):
11115         * gui.c (gui_name_accelerator):
11116         * gui.c (gui_item_included_p):
11117         * gui.c (gui_item_display_flush_left):
11118         * gui.c (gui_item_display_flush_right):
11119         * gui.c (parse_gui_item_tree_item):
11120         * gui.c (parse_gui_item_tree_children):
11121         * gui.c (parse_gui_item_tree_list):
11122         Mule-ized.  Cleanup.  GCPRO addition.
11123
11124         * line-number.c (buffer_line_number):
11125         * lisp.h:
11126         * lisp.h (EMACS_INT_MAX):
11127         Added the manifest constant EMACS_INT_MIN corresponding to the
11128         existing constant EMACS_INT_MAX.  This is partially to fix compile
11129         warnings under Windows, and partly for cleanliness.
11130
11131         * menubar-msw.c:
11132         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
11133         * menubar-msw.c (msw_translate_menu_or_dialog_item):
11134         * menubar-msw.c (displayable_menu_item):
11135         * menubar-msw.c (populate_menu_add_item):
11136         * menubar-msw.c (populate_or_checksum_helper):
11137         * menubar-msw.c (populate_menu):
11138         * menubar-msw.c (update_frame_menubar_maybe):
11139         * menubar-msw.c (prune_menubar):
11140         * menubar-msw.c (msw_char_is_accelerator):
11141         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
11142         * menubar-msw.c (mswindows_handle_wm_command):
11143         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
11144         * menubar-msw.c (mswindows_handle_wm_initmenu):
11145         * menubar-msw.c (mswindows_update_frame_menubars):
11146         * menubar-msw.c (mswindows_free_frame_menubars):
11147         * menubar-msw.c (mswindows_popup_menu):
11148         Fixed a bug in handling accelerators where an extra character
11149         would be displayed in the menu item.  Also generalized the
11150         function displayable_menu_item because it is now used by the
11151         dialog box code as well.  And finally, added code in the functions
11152         that create the menubar to extract a list of accelerators for the
11153         top level menubar, which is used in the event code to determine
11154         whether a particular alt-key combination should be used to invoke
11155         a menu item, or should be passed through to access the standard
11156         XEmacs keymap binding for this key combination.
11157
11158         Much needed GCPROing.
11159
11160         * menubar-x.c:
11161         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11162         * menubar-x.c (menu_item_descriptor_to_widget_value):
11163         * menubar-x.c (restore_in_menu_callback):
11164         * menubar-x.c (x_popup_menu):
11165         * menubar-x.c (menu_move_up):
11166         * menubar-x.c (menu_move_down):
11167         * menubar-x.c (menu_move_left):
11168         * menubar-x.c (menu_move_right):
11169         * menubar-x.c (menu_select_item):
11170         * menubar-x.c (command_builder_operate_menu_accelerator):
11171         * menubar-x.c (menu_accelerator_junk_on_error):
11172         * menubar-x.c (command_builder_find_menu_accelerator):
11173         * menubar-x.c (Faccelerate_menu):
11174         * menubar.h:
11175         Moved a whole bunch of code here that was previously in
11176         event-stream.c as described above.  There is also code connected
11177         to the new standard of adding an accelerator to the beginning of
11178         menu items that don't have one as described above and below.
11179
11180         * menubar.c:
11181         * menubar.c (menu_parse_submenu_keywords):
11182         * menubar.c (Fmenu_find_real_submenu):
11183         * menubar.c (Fnormalize_menu_item_name):
11184         * menubar.c (syms_of_menubar):
11185         * menubar.c (vars_of_menubar):
11186         * menubar.c (complex_vars_of_menubar):
11187
11188         a) Cleaned up a bunch of documentation and improved it.
11189
11190         b) XEmacs now automatically adds an accelerator onto the beginning
11191         of any menu items that don't have one.  I did this because there
11192         will inevitably be some menu items on the main menubar that don't
11193         have accelerators on them because the package that adds that
11194         particular menu item hasn't yet been fixed up to have accelerators
11195         in them and it looked rather strange to have some items with and
11196         some items without accelerators, especially since even in items
11197         without accelerators, you can, at least under windows, still
11198         access the item through an accelerator corresponding to the first
11199         character in the item's name.  If people don't like this behavior,
11200         I can add a variable to turn it off optionally, but I'm not sure
11201         this is a good idea because we really do need to have accelerators
11202         on all of the menu items, and if a package doesn't like the
11203         accelerators being put on the first character, then it should put
11204         the accelerators where they belong.
11205
11206         c) I made a behavior change, which is that the descriptor that
11207         specifies the text of the menu item, which formerly was just a
11208         string, can now also be an evaluated expression.  This makes this
11209         descriptor parallel with all of the others, which could also be
11210         evaluated expressions.  This also obviates the need for the
11211         keyword :label, which was previously listed in the documentation
11212         as unimplemented, and which was for the same purpose.
11213
11214         d) GCPROing.
11215
11216         * ntproc.c:
11217         * ntproc.c (new_child):
11218         * ntproc.c (sys_spawnve):
11219         * ntproc.c (find_child_console):
11220         * ntproc.c (sys_kill):
11221         Fixed compile warnings.  By the way, this file should really go
11222         away entirely, and this will happen as soon as Kirill makes his
11223         final round of process cleanups, which affect the function
11224         call-process.
11225
11226         * process-nt.c:
11227         * process-nt.c (struct nt_process_data):
11228         * process-nt.c (find_process_from_pid):
11229         * process-nt.c (send_signal_the_nt_way):
11230         * process-nt.c (enable_child_signals):
11231         * process-nt.c (find_child_console):
11232         * process-nt.c (send_signal_the_95_way):
11233         * process-nt.c (nt_finalize_process_data):
11234         * process-nt.c (ensure_console_window_exists):
11235         * process-nt.c (nt_create_process):
11236         * process-nt.c (nt_kill_child_process):
11237         * process-nt.c (nt_kill_process_by_pid):
11238         * process-nt.c (nt_open_network_stream):
11239         * process-nt.c (vars_of_process_nt):
11240         Copied over code from Emacs 20.5 to correctly send signals to sub-
11241         processes under Windows 95.  Also added code to automatically
11242         create and hide console window when a sub-process is created under
11243         Windows 95, which obviates the need for the separate runemacs.exe
11244         executable, and finally implemented some variables that were
11245         implemented in Emacs 20.5, but previously not in XEmacs.  These
11246         include mswindows- start-process-share-console and
11247         mswindows-start-process-inherit-error-mode. (Both of these only
11248         apply to Windows 95.)
11249
11250         * regex.c (regex_compile): Fixed a compile warning.
11251
11252         * select-msw.c:
11253         * select-msw.c (mswindows_own_selection):
11254         * select-msw.c (mswindows_get_foreign_selection):
11255         * select-msw.c (mswindows_disown_selection):
11256         * select-msw.c (console_type_create_select_mswindows):
11257         * select-msw.c (syms_of_select_mswindows):
11258         Cleaned up the file and implemented the device method
11259         selection_exists_p, which had accidentally been left out.  Also
11260         removed four lisp functions that were remnants from before the
11261         time when the selection code was properly device abstracted.
11262         These functions are no longer needed because there are generic
11263         equivalents, and because they were added recently and don't exist
11264         in FSF Emacs, I don't think there's any problem with just deleting
11265         them.
11266
11267         * sysdep.c:
11268         * sysdep.c (sys_subshell):
11269         Fixed a compile warning, although in this case there's probably
11270         something wrong with this code, and it ought to be looked into
11271         more thoroughly by somebody who understands it.
11272
11273         * window.c:
11274         * window.c (Fwindow_text_area_height):
11275         * window.c (Fwindow_width):
11276         * window.c (Fwindow_full_width):
11277         * window.c (Fwindow_pixel_width):
11278         * window.c (debug_print_window):
11279         * window.c (syms_of_window):
11280         Added functions window-text-area-height and window-full-width,
11281         which are functions for returning various width and height
11282         characteristics of a window. (One of these functions is necessary
11283         for making the file dialog box work correctly, and the other one
11284         was added for completeness.)  Also added a table to the
11285         documentation for window-height which describes the entire scheme
11286         for accessing width and height characteristics of a window.
11287
11288 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11289
11290         * nt.c (fstat): Added a comment for another problem with
11291         non-encapsulated [f]stat(), reported by Adrian Aichner
11292         <aichner@ecf.teradyne.com>.
11293
11294 2000-03-11  Andy Piper  <andy@xemacs.org>
11295
11296         * window.c (make_dummy_parent): initialize subwindow instance
11297         cache.
11298         (Fset_window_configuration): zero extent_modiff.
11299
11300 2000-03-10  Andy Piper  <andy@xemacs.org>
11301
11302         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
11303         more changes can be triggered.
11304         (Fredisplay_frame): ditto.
11305         (Fredraw_device): ditto.
11306         (Fredisplay_device): ditto.
11307         (redisplay_frame): make non-static.
11308         (redisplay_frame): call update_frame_gutter_geometry outside of
11309         display proper.
11310
11311         * gutter.h: declare update_frame_gutter_geometry.
11312
11313         * redisplay.h: declare redisplay_frame.
11314
11315         * gutter.c (update_frame_gutter_geometry): move geometry changes
11316         in update_frame_gutters here. Geometry changes can only occur
11317         outside of redisplay.
11318         (update_frame_gutters): remove geometry change code.
11319         (Fredisplay_gutter_area): make sure that we are in display when we
11320         update and that we have flushed any size changes.
11321
11322 2000-03-11  Andy Piper  <andy@xemacs.org>
11323
11324         * alloc.c (pdump_dump_data): remove i & count shadows.
11325
11326 2000-02-27  Mike Alexander  <mta@arbortext.com>
11327
11328         * sysdep.h: Declare pdump_read_file
11329
11330         * sysdep.c (pdump_read_file): New function
11331
11332         * alloc.c (pdump_load): Call pdump_read_file to get the portable
11333         dump data
11334
11335 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
11336
11337         * lrecord.h: add `lrecord_type_pgsetenv'.
11338
11339 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
11340
11341         * symsinit.h: declare (vars|syms)_of* functions.
11342         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
11343
11344 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
11345
11346         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
11347
11348         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11349         GCCs.
11350
11351         * emacs.c (main_1): Call postgres initialization code.
11352
11353         * postgresql.h: New file.  PostgreSQL RDBMS support.
11354         * postgresql.c: New file.
11355
11356 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11357
11358         * redisplay-output.c (redisplay_output_display_block): Disable
11359         redundant code.
11360
11361 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11362
11363         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11364         (Fcanna_henkan_next): Ditto.
11365         (Fcanna_bunsetu_henkou): Ditto.
11366         (Fcanna_henkan_kakutei): Ditto.
11367         (Fcanna_henkan_end): Ditto.
11368         (Fcanna_henkan_quit): Ditto.
11369         (Fcanna_henkan_next): Set retun value correctly.
11370         (c2mu): Use unsigned char instead of signed char.
11371
11372 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11373
11374         * emacs.c (main_1): Always call syms_of_gui.
11375         * inline.c: include gui.h
11376
11377 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11378
11379         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11380         converted to Lisp_Object.
11381         (Qtop_bottom): New variable.
11382         (syms_of_redisplay): Initialize it.
11383         * redisplay.h (Vvisible_bell): Ditto.
11384         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11385         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11386         only flash top and bottom.
11387
11388 2000-03-08  Andy Piper  <andy@xemacs.org>
11389
11390         * buffer.c (Frename_buffer): record new buffer name the right way.
11391
11392 2000-03-08  Andy Piper  <andy@xemacs.org>
11393
11394         * glyphs.c (update_subwindow): increase hash depth so that widget
11395         items get picked up properly.
11396
11397         * redisplay-output.c (compare_runes): increase hash depth so that
11398         widget items get picked up properly.
11399
11400 2000-03-08  Andy Piper  <andy@xemacs.org>
11401
11402         * gutter.c (output_gutter): add some debug.
11403
11404         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11405         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11406         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11407
11408         * redisplay-output.c (compare_runes): use display_hash to
11409         determine if glyphs really are not the same.
11410
11411         * glyphs.c (update_subwindow): check display_hash to see if
11412         anything really needs to be updated. If not then do
11413         nothing. Record the display_hash after updating.
11414         (image_instance_equal): compare the image_instance face also.
11415
11416 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11417
11418         * redisplay.h: Fix comment style.
11419
11420 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11421
11422         * consle-msw.h (struct mswindows_frame):
11423         Added new member paint_pending to indicate whether a WM_PAINT
11424         magic event has been queued for this frame.
11425
11426         * event-msw.c (mswindows_drain_windows_queue):
11427         Don't queue a WM_PAINT magic event if one is already queued.
11428         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11429
11430         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11431
11432 2000-03-07  Didier Verna  <didier@xemacs.org>
11433
11434         * dired.c: #include `regex.h' after `sysfile.h'.
11435
11436 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11437
11438         * sound.c (init_nas_sound): Fix compiler warning.
11439
11440         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11441         (FREE_STRUCT_P):
11442         (MARK_STRUCT_AS_FREE):
11443         (MARK_STRUCT_AS_NOT_FREE):
11444         Make `gcc -fstrict-aliasing' work properly.
11445
11446 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11447
11448         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11449         (mswindows_delete_device): Call CoUnnitialize().
11450
11451         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11452
11453 2000-02-25    <CraigL@DyCon.com>
11454
11455         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11456         <errno.h>.
11457
11458         * sysdep.c: This extern declaration for environ prevents MinGW
11459         from finding the variable in CRTDLL.DLL.
11460
11461         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11462         windows headers.
11463         (SHGFI_EXETYPE): ..
11464         (WM_MOUSEWHEEL): ..
11465         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11466         definitions.
11467         (MMRESULT): Removed, now defined in cygwin's windows headers.
11468         (TIMECAPS): ..
11469         (uid_t,gid_t,pid_t,ssize_t): ..
11470         (_timeb): Removed, MinGW defines both _timeb and timeb.
11471         (HAVE_H_ERRNO): Added.
11472         (HAVE_TZNAME): Added, configure is not detecting this.
11473
11474 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11475
11476         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11477         * syntax.c (syntax_match): Use it.
11478
11479         * cmds.c: Import auto-fill-chars from FSF Emacs.
11480         (Vauto_fill_chars): New variables.
11481         (internal_self_insert): Check Vauto_fill_chars.
11482         (vars_of_cmds):
11483         Declare auto-fill-chars as a Lisp variable and initialize it.
11484
11485 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11486
11487         * fileio.c (Fmake_symbolic_link):
11488         (Ffile_symlink_p):
11489         Run handlers even if local machine doesn't have symlinks.
11490
11491 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11492
11493         * event-msw.c (mswindows_drain_windows_queue):
11494         Don't generate paint magic events for non-XEmacs frames.
11495
11496 2000-03-05  Andy Piper  <andy@xemacs.org>
11497
11498         * redisplay.c (redisplay_frame): generate_displayable_area and
11499         friends assumes that we are not in GC, we therefore have to make
11500         sure that this doesn't happen.
11501
11502         * gutter.c (calculate_gutter_size): generate_displayable_area
11503         assumes that we are not in GC, we therefore have to make sure that
11504         this doesn't happen.
11505
11506 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11507
11508         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11509
11510 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11511
11512         * redisplay.c (regenerate_window): Make sure we set a sane value
11513         for end_pos even if we jump out of the loop.
11514         (regenerate_window): Answer Ben's question :-).
11515         (start_end_of_last_line): Add may_error argument.
11516         (start_of_last_line):
11517         (end_of_last_line): Pass may_error = 0.
11518         (end_of_last_line_may_error): New function.
11519         (pixel_to_glyph_translation): Use it, so we don't crash in
11520         event_to_glyph.
11521
11522 2000-03-04  Andy Piper  <andy@xemacs.org>
11523
11524         * window.h (struct window): add gutter_extent_modiff.
11525
11526         * window.c (allocate_window): zero out gutter_extent_modiff.
11527
11528         * redisplay.h: declare sync_display_line_structs.
11529
11530         * redisplay.c (add_glyph_rune): add a better comment.
11531
11532         * redisplay-output.c (sync_display_line_structs): made non-static.
11533         (compare_runes): remove unneccesary glyph cachel access.
11534
11535         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11536
11537         * gutter.c (output_gutter): don't output the gutter if extent
11538         changes only involve extents in buffers. use 4 sets of display
11539         lines.
11540         (gutter_extent_signal_changed_region_maybe): new function. Mark
11541         extents in gutters as changed.
11542         (update_frame_gutters): use 4 sets of display lines.
11543         (reset_gutter_display_lines): ditto.
11544         (free_frame_gutters): ditto.
11545         (redraw_exposed_gutter): force output of gutters.
11546
11547         * frame.h (struct frame): add 4 sets of gutter display lines.
11548
11549         * extents.c: (extent_changed_for_redisplay): signal changes to
11550         extents in strings in the gutter as well as extents in buffers.
11551
11552 2000-03-02  Andy Piper  <andy@xemacs.org>
11553
11554         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11555
11556         * frame.c (Fmake_frame): make sure the gutters get initialized
11557         after the frame is visible.
11558         (set_frame_selected_window): re-arrange compilation macros a
11559         little.
11560         (change_frame_size_1): mark gutters changed.
11561
11562         * device.c (Fset_device_class): mark gutters changed.
11563
11564 2000-03-01  Andy Piper  <andy@xemacs.org>
11565
11566         * window.c (window_top_frame_gutter_height): deleted.
11567         (window_bottom_frame_gutter_height): ditto.
11568         (window_left_frame_gutter_height): ditto.
11569         (window_right_frame_gutter_height): ditto.
11570         (window_top_gutter_height): don't use them.
11571         (window_bottom_gutter_height): ditto.
11572         (window_left_gutter_width): ditto.
11573         (window_right_gutter_width): ditto.
11574         (Fsplit_window): ditto.
11575         (Fwindow_pixel_edges): don't use border dimensions here.
11576
11577         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11578         (update_scrollbar_instance): ditto.
11579
11580         * redisplay.c (generate_modeline): don't take gutters into account.
11581         (generate_modeline): ditto.
11582         (redisplay_frame): small gutter display optimization.
11583
11584         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11585
11586         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11587         gutters into account.
11588
11589         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11590         for window position and type.
11591
11592         * gutter.c (get_gutter_coords): fix for frame gutters.
11593         (update_frame_gutters): update frame geometry if the gutters have
11594         changed.
11595         (init_frame_gutters): record current gutter geometries.
11596
11597         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11598         var.
11599         (mswindows_widget_instantiate): ditto.
11600
11601         * frame.h (struct frame): add current_gutter_bounds.
11602
11603         * frame.c (change_frame_size_1): position window and minibuffer
11604         appropriately taking into account the frame gutters.
11605
11606         * frame-x.c: (x_initialize_frame_size): take into account the
11607         frame gutters.
11608
11609 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11610
11611         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11612
11613 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11614
11615         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11616
11617 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11618
11619         * file-coding.c (reset_decoding_stream): Clear previous
11620         detection state when autodetect.
11621
11622 2000-02-29  Didier Verna  <didier@xemacs.org>
11623
11624         * extents.c (set_extent_glyph_1): don't require extents to be
11625         attached.
11626
11627 2000-02-27  Andy Piper  <andy@xemacs.org>
11628
11629         * gutter.c (Fset_default_gutter_position): don't default left and
11630         right gutter visibility to t.
11631         (Fset_default_gutter_position): run
11632         default-gutter-position-changed-hook.
11633         (syms_of_gutter): add default-gutter-position-changed-hook.
11634
11635 2000-02-26  Andy Piper  <andy@xemacs.org>
11636
11637         * specifier.c (Fmake_specifier): add gutter references.
11638
11639         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11640
11641         * lisp.h: declare Fvalid_plist_p.
11642
11643         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11644         as changed.
11645         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11646         well as its visibility so that it gets reconstructed.
11647         (construct_window_gutter_spec): new function. Construct a string
11648         to be displayed in the gutter from a plist of strings. Take care
11649         to only use elements that are declared as visible.
11650         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11651         WINDOW_GUTTER.
11652         (gutter_validate): allow plists of strings in the specifier.
11653         (gutter_specs_changed): construct the real_gutter from the gutter
11654         specs using construct_window_gutter_spec.
11655         (gutter_visible_validate): gutter-visible is a new specifier type.
11656         (Fgutter_visible_specifier_p): new function for the new specifier.
11657         (syms_of_gutter): declare gutter-visible and
11658         Fgutter_visible_specifier_p.
11659         (specifier_type_create_gutter): intitalize new gutter-visible
11660         specifier.
11661         (reinit_specifier_type_create_gutter): ditto.
11662         (specifier_vars_of_gutter): use new specifier type for gutter
11663         visibility.
11664         (init_frame_gutters): construct real_gutter correctly.
11665         (Fgutter_specifier_p): beef up documentation.
11666         (Fgutter_size_specifier_p): ditto.
11667
11668         * winslots.h: add real_gutter slots.
11669
11670 2000-02-25  Andy Piper  <andy@xemacs.org>
11671
11672         * device-msw.c: Be kind to older cygwin versions. From Raymond
11673         Toy <toy@rtp.ericsson.se>.
11674
11675         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11676         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11677
11678 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11679
11680         * elhash.c (MARK_OBJ): Practice macro hygiene.
11681
11682 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11683
11684         * miscplay.c: s/__inline__/inline/g;
11685         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11686         (get_device_compdc): INLINE ==> static inline
11687         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11688         find -name '*.h' | \
11689         xargs global-replace \
11690         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11691
11692 2000-02-25  Andy Piper  <andy@xemacs.org>
11693
11694         * window.c (window_top_frame_gutter_height): new function.
11695         (window_top_window_gutter_height): ditto.
11696         (window_top_gutter_height): use them.
11697         (window_bottom_frame_gutter_height): new function.
11698         (window_bottom_window_gutter_height): ditto.
11699         (window_bottom_gutter_height): use them.
11700         (window_left_window_gutter_width): new function.
11701         (window_left_frame_gutter_width): ditto.
11702         (window_left_gutter_width): use them.
11703         (window_right_window_gutter_width): new function.
11704         (window_right_frame_gutter_width): ditto.
11705         (window_right_gutter_width): use them.
11706         (window_pixel_height): new function. calulate window pixel height
11707         with frame gutter involvement.
11708         (Fsplit_window): calculate new sizes taking frame gutters into
11709         account.
11710         (window_char_height_to_pixel_height): don't include frame gutters.
11711         (window_char_height): use window_pixel_height.
11712         (window_pixheight): rename from window_pixel_height.
11713         (change_window_height): use it.
11714         (window_pixel_height_to_char_height): don't include frame gutters.
11715         (window_char_width_to_pixel_width): ditto.
11716
11717 2000-02-25  Andy Piper  <andy@xemacs.org>
11718
11719         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11720         if it is.
11721
11722 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11723
11724         * alloc.c (staticpro):
11725         (staticpro_nodump):
11726         (dumpstruct):
11727         (dumpopaque):
11728         (pdump_wire):
11729         (pdump_wire_list):
11730         (compact_string_chars):
11731         (pdump_dump_wired):
11732         Convert:  if (foo) abort();  ==>  assert (! foo);
11733
11734         * eldap.c (Fldap_search_basic):
11735         (Fldap_add):
11736         (Fldap_modify):
11737         (Fldap_delete):
11738         Fix compiler warnings, and possible crashes if (random) return
11739         value were to be used.
11740
11741 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11742
11743         * device-msw.c: Workaround ResetDC failure.
11744
11745         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11746         applying a devmode.
11747
11748         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11749         (mswindows_text_width): Do not start printer page.
11750
11751         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11752
11753         * glyphs-msw.c: Added image methods to msprinter console and
11754         msprinter-specific image instantiation.
11755
11756 2000-02-20  Mike Alexander  <mta@arbortext.com>
11757
11758         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11759         to avoid crashes when selection-sets-clipboard is on
11760         (mswindows_own_selection): ditto
11761
11762 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11763
11764         * glyphs-msw.c:
11765         * redisplay-msw.c (get_frame_dc):
11766         (get_frame_compdc):
11767         * console-msw.h:
11768         * device-msw.c (mswindows_init_device):
11769         (mswindows_delete_device):
11770         (msprinter_init_device):
11771         (msprinter_delete_device):
11772         * frame-msw.c (mswindows_init_frame_1):
11773         (mswindows_delete_frame):
11774         (msprinter_init_frame_3):
11775         (msprinter_delete_frame): Move compatible DC to device object from
11776         frame object, for both mswindows and msprinter. Only one at a time
11777         is needed, it is a real waste to have one per frame!
11778
11779 2000-02-23  Andy Piper  <andy@xemacs.org>
11780
11781         * glyphs.c: add dynamic width and height elements.
11782         (image_instance_equal): ditto.
11783
11784         * glyphs-widget.c (widget_query_geometry): calculate width and
11785         height dynamically if required.
11786         (initialize_widget_image_instance): initialize dynamic dimensions.
11787         (widget_instantiate): pick-up dynamic dimensions.
11788
11789         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11790         dynamic determination. Add appropriate macros.
11791
11792         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11793         dimensions safe.
11794         (WINDOW_GUTTER_SIZE): ditto.
11795         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11796
11797         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11798         inline.
11799         (get_frame_dc): ditto.
11800
11801         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11802         here.
11803
11804 2000-02-23  Martin Buchholz <martin@xemacs.org>
11805
11806         * XEmacs 21.2.31 is released.
11807
11808 2000-02-22  Ben Wing <ben@xemacs.org>
11809
11810         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11811
11812 2000-02-22  Andy Piper  <andy@xemacs.org>
11813
11814         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11815
11816 2000-02-21  Mike Sperber <mike@xemacs.org>
11817
11818         * .dbxrc:
11819         * .gdbinit:
11820         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11821         variables.
11822
11823 2000-02-21  Mike Sperber <mike@xemacs.org>
11824
11825         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11826
11827 2000-02-21  Martin Buchholz <martin@xemacs.org>
11828
11829         * XEmacs 21.2.30 is released.
11830
11831 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11832
11833         Performance hacking.
11834         * *.c (syms_of_*):
11835         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11836         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11837         * emacs.c (main_1):
11838         * lisp.h (DEFUN):
11839         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11840         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11841         * symeval.h (DEFVAR_SYMVAL_FWD):
11842         * symbols.c (guts_of_unbound_marker):
11843         Make all c_readonly objects also lisp_readonly and marked for life.
11844         * lrecord.h (struct lrecord_implementation):
11845         Document flags better.
11846         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11847         * lrecord.h (DECLARE_LRECORD):
11848         * lrecord.h (XSETRECORD):
11849         * lrecord.h (RECORDP):
11850         * lrecord.h (RECORD_TYPEP):
11851         * lrecord.h (RECORD_MARKER): New.
11852         * lrecord.h (error_check_*):
11853         * lrecord.h (CONCHECK_NONRECORD):
11854         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11855         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11856         * lrecord.h (set_lheader_implementation):
11857         * lrecord.h (enum lrecord_type): New.
11858         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11859         * alloc.c (disksave_object_finalization_1):
11860         * alloc.c (mark_object):
11861         * alloc.c (lrecord_type_index):
11862         * alloc.c (tick_lcrecord_stats):
11863         * alloc.c (Fgarbage_collect):
11864         * alloc.c (init_alloc_once_early):
11865         * alloc.c (pdump_load):
11866         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11867         * alloc.c (lrecord_type_index): Delete.
11868         Make lisp object type indexes be constant.
11869           Makes (byte-compile) 5% faster.
11870         Put all marker functions into their own array.
11871           Makes (garbage-collect) 5% faster.
11872         Optimize SYMBOL_VALUE_MAGIC_P.
11873           Makes (byte-compile) 2-3% faster.
11874         * config.h.in (gc_checking_assert): New.
11875         * alloc.c: Use gc_checking_assert().
11876         * .dbxrc: Make compatible with new object type implementation.
11877         * .gdbinit: Make compatible with new object type implementation.
11878         * alloc.c: Delete all symbols defined only for debugging, such as
11879         Lisp_Type_Vector and lrecord_charset.
11880
11881 2000-02-21  Andy Piper  <andy@xemacs.org>
11882
11883         * gui-msw.c (Fmswindows_shell_execute): fix file location
11884         problems.
11885
11886         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11887         unshowing so that set_window_buffer doesn't undo
11888         kill_buffer_hook's hard work.
11889
11890         * glyphs-widget.c (tab_control_query_geometry): don't count the
11891         first item when calculating geometry.
11892
11893         * glyphs.c (map_subwindow): remove redundant code.
11894         (update_frame_subwindows): be more circumspect about when to
11895         update subwindows.
11896
11897         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11898         when items haven't changed. Update faces if faces have changed as
11899         well as just the widget face.
11900         (x_tab_control_update): Update faces if faces have changed as well
11901         as just the widget face.
11902
11903 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11904
11905         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11906         registration.
11907         (build_syscolor_string): Use mswindows_color_to_string to try to
11908         get a named color.
11909         (mswindows_device_system_metrics): Reverse the foreground and
11910         background colors so that they match the documentation.
11911
11912         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11913         they match the default Windows palette.
11914         (mswindows_color_to_string): New function.
11915
11916 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11917
11918         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11919
11920 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11921
11922         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11923         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11924
11925         * symbols.c (init_symbols_once_early): Removed obsolete
11926         DATA_SEG_BITS related kludge.
11927         (defvar_magic): Ditto.
11928
11929         * malloc.c: Removed obsolete DATA_SEG_BITS
11930         * ralloc.c: Ditto.
11931         * mem-limits.h: Ditto.
11932
11933         * Makefile.in.in: Removed obsolete HAVE_SHM
11934         * emacs.c: Ditto.
11935
11936 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11937
11938         *  device-msw.c (mswindows_delete_device): Free DDE string
11939         handles.
11940
11941 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11942
11943         * keymap.c (get_keyelt):
11944         * unexnt.c (unexec):
11945         * vm-limit.c (memory_warnings):
11946         * ntheap.c (recreate_heap):
11947         * ntheap.h (UNINIT_PTR):
11948         * select-msw.c (Fmswindows_get_clipboard):
11949         (Fmswindows_set_clipboard):
11950         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11951         * objects-msw.c:
11952         * menubar-msw.c (displayable_menu_item):
11953         * glyphs-msw.c:
11954         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11955         * sysdep.c (sys_subshell):
11956         * process-nt.c (nt_create_process):
11957         * nt.c (normalize_filename):
11958         (dostounix_filename):
11959         (unixtodos_filename):
11960         * ntproc.c (win32_executable_type):
11961         * ntplay.c (play_sound_data_1):
11962         (play_sound_file):
11963         * editfns.c (get_home_directory):
11964         * event-msw.c (struct winsock_stream):
11965         (mswindows_dde_callback):
11966         * device-msw.c (msprinter_init_device):
11967         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11968
11969         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11970         mswindows_clear_toolbar were swapped!
11971
11972         * objects-msw.c:(colormap_t):
11973         (fontmap_t):
11974         * emacs.c (struct standard_args): Fixed const jumble.
11975
11976         * glyphs-widget.c (update_widget): Fixed comparison notation.
11977
11978         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11979
11980         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11981         __declspec(noreturn) syntax.
11982
11983 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11984
11985         * eldap.c (Fldap_open):
11986         (Fldap_search_basic):
11987         (Fldap_add):
11988         (Fldap_modify):
11989         Use new coding system conversion macros.
11990
11991 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11992
11993         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11994
11995 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11996
11997         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11998         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11999
12000         * eldap.c (Qadd, Qreplace): New constant symbols
12001         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
12002         interruptions by XEmacs signals
12003         Remove unnecessary calls to slow_down_interrupts and
12004         speed_up_interrupts
12005         (Fldap_search_basic): Renamed from Fldap_search_internal
12006         Added new optional parameter VERBOSE that triggers the
12007         display of progress messages
12008         Remove unnecessary calls to slow_down_interrupts and
12009         speed_up_interrupts
12010         LDAP result code analysis rewritten
12011         (Fldap_add, Fldap_modify, Fldap_delete): New functions
12012         (syms_of_eldap): Define the new symbols and functions
12013
12014
12015 2000-02-17  Martin Buchholz  <martin@xemacs.org>
12016
12017         * realpath.c: Determine PATH_MAX maximally portably.
12018
12019         * insdel.c (bytecount_to_charcount): Optimize.
12020         The function used to be optimized for entirely ASCII sequences.
12021         Now it is optimized for successive characters from the same
12022         charset.  This also wins big for _mostly_ ASCII sequences.
12023
12024         * fileio.c (Ffile_truename): convert return from realpath() using
12025         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
12026         - Rewrite GCPROing slightly.
12027
12028         * sysdep.c (sys_open): Do filename conversion, like all other
12029         sys_* functions.  Fixes bug:
12030         (let ((file-name-coding-system 'iso-8859-2))
12031            (write-region x y latin2-name))
12032         ==> writes filename using internal encoding.
12033
12034 2000-02-18  Martin Buchholz  <martin@xemacs.org>
12035
12036         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
12037         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
12038         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
12039         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
12040         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
12041         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
12042         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
12043         (CONST_IF_NOT_DEBUG): Delete.
12044         * alloc.c (this_one_is_unmarkable): Delete.
12045         (mark_object): Don't check for this_one_is_unmarkable. Use the
12046         c_readonly flag instead.
12047         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
12048
12049 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12050
12051         * event-msw.c (mswindows_drain_windows_queue):
12052         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
12053         away redundant repaint events.
12054
12055 2000-02-17  Andy Piper  <andy@xemacs.org>
12056
12057         * redisplay.h: declare mark_redisplay_structs.
12058
12059         * redisplay.c (redisplay_window):
12060         (redisplay_frame): don't check subwindows_state_changed.
12061         (mark_redisplay): mark gutters here.
12062
12063         * glyphs.c: (instantiate_image_instantiator): always layout if we
12064         haven't done so already.
12065         (allocate_image_instance): don't mark as dirty.
12066         (update_subwindow): bind inhibit_quit.
12067
12068         * gutter.c (mark_gutters): new function.
12069
12070         * glyphs-x.c (x_update_widget): Always resize to get round a
12071         widget bug.
12072
12073         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
12074         breaking absolutely everything.
12075
12076         * gutter.h: declare mark_gutters.
12077
12078 2000-02-16  Martin Buchholz <martin@xemacs.org>
12079
12080         * XEmacs 21.2.29 is released.
12081
12082 2000-02-15  Olivier Galibert  <galibert@pobox.com>
12083
12084         * fns.c (size_bit_vector): Fix computation of the size.
12085
12086 2000-02-15  Martin Buchholz  <martin@xemacs.org>
12087
12088         * *.[ch]: Change CONST to const globally.
12089         find -name '*.[ch]' | \
12090         xargs global-replace \
12091         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
12092         - Remove vestigial references to CONST_IS_LOSING
12093
12094 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12095
12096         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
12097         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
12098         events instead of dispatching them directly.
12099         (mswindows_handle_paint): New function to do repainting.
12100         (mswindows_wnd_proc):
12101         (emacs_mswindows_handle_magic_event): Call above function.
12102
12103 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12104
12105         * objects-msw.c (mswindows_create_font_variant): Return the new
12106         font handle.
12107         (initialize_font_instance): Get font metrics from the underlined
12108         variant of the font to cope with the case where the underlined
12109         font has a bigger descent.
12110
12111 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12112
12113         * gui.c (gui_item_accelerator): Return the first underlined
12114         character in item name.
12115
12116 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12117
12118         * lisp.h: Added Qprinter.
12119
12120         * general.c (syms_of_general): Initialized it.
12121
12122         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
12123         (get_frame_dc):
12124         (get_frame_compdc): Made inline.
12125
12126         * console.h (struct console_methods): Added eject_page method.
12127
12128         * frame.h: Added FRAME_DISPLAY_P and friends.
12129         Aligned backslahes in many macros in more readable fashion.
12130         Added page_number to struct frame, and an accessor macro
12131         for it.
12132
12133         * defice.h: Added DEVICE_DISPLAY_P and friends.
12134
12135         * device.c (Fdevice_printer_p): Used these.
12136
12137         * frame.c (allocate_frame_core): Initialize page number.
12138         (Fprint_job_page_number):
12139         (Fprint_job_eject_page): Implemented.
12140
12141         * frame-msw.c (msprinter_eject_page): Added method.
12142         (msprinter_start_page): Added.
12143
12144         * window.c (Fwindow_truncated_p): Fixed docstring.
12145         (Fwindow_last_line_visible_height): Implemented.
12146
12147 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12148
12149         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
12150
12151 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12152
12153         * syntax.c (scan_words): Always advance at least one character.
12154
12155 2000-02-13  Andy Piper  <andy@xemacs.org>
12156
12157         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
12158         to make sure the glyph is in the cachels.
12159
12160         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
12161         global image instance flag.
12162         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
12163         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
12164
12165         * glyphs.c (allocate_image_instance): set dirty bits correctly.
12166         (Fset_image_instance_property): mark layout as changed.
12167         (invalidate_glyph_geometry_maybe): mark layout as changed.
12168         (glyph_width): use new NEEDS_LAYOUT macro.
12169         (glyph_ascent): ditto.
12170         (glyph_descent): ditto.
12171         (glyph_height): ditto.
12172         (image_instance_layout): mark layout as clean after laying out.
12173         (update_subwindow): don't mark layout as clean here.
12174
12175         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
12176         should no longer be needed.
12177
12178         * glyphs-x.c (x_update_widget): sanitize asserts.
12179         (x_finalize_image_instance): sanitize assignment to widgets.
12180
12181         * glyphs-widget.c (widget_instantiate): don't need to clear the
12182         layout flag here.
12183
12184 2000-02-13  Martin Buchholz  <martin@xemacs.org>
12185
12186         * sysdep.c (getcwd): Use standard prototype.
12187         * sysdep.h (getcwd): Use standard prototype.
12188
12189         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
12190         (sequence, start, end).
12191         Remove redundant type checking.
12192         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
12193         view of `caller-protects') to avoid a crash where the real fix was
12194         found elsewhere.
12195
12196 2000-02-12  Martin Buchholz  <martin@xemacs.org>
12197
12198         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
12199
12200         * s/sol2.h: Remove feature macro initialization.
12201
12202         * alloc.c (alloc_lcrecord): Add more type checking assertions.
12203         (vector_hash): New.  Code from internal_hash.
12204         * lrecord.h:
12205         Fix up allocation subsystem comments.
12206
12207         * config.h.in: Add __EXTENSIONS__ for Solaris.
12208
12209         * systime.h (EMACS_GETTIMEOFDAY): New.
12210         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
12211         Remove Solaris-specific code.
12212         Use void* for the (ignored) second arg for gettimeofday().
12213
12214         * elhash.c (hash_table_hash): Implement it, finally.
12215         * elhash.c:  Use hashcode_t.
12216
12217         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
12218         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
12219
12220         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
12221         * fns.c (size_bit_vector):
12222         * alloc.c (size_vector):
12223         (make_vector_internal):
12224         (make_bit_vector_internal):
12225         (sweep_bit_vectors_1):
12226         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
12227
12228 2000-02-10  Martin Buchholz  <martin@xemacs.org>
12229
12230         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
12231         Include strings.h to avoid warnings for bzero and strcasecmp.
12232
12233 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12234
12235         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
12236         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
12237
12238         * fns.c (size_bit_vector): New.  Declare bit vectors as a
12239         sequence.
12240
12241 2000-02-10  Olivier Galibert  <galibert@pobox.com>
12242
12243         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
12244         use a value field instead.
12245         (symbol_value_forward_forward): Use value field.
12246         (DEFVAR_SYMVAL_FWD): Use value field.
12247         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
12248         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
12249         (DEFVAR_CONST_INT): Ditto.
12250         (DEFVAR_BOOL): Ditto.
12251         (DEFVAR_CONST_BOOL): Ditto.
12252         (DEFVAR_INT_MAGIC): Ditto.
12253         (DEFVAR_BOOL_MAGIC): Ditto.
12254
12255         * symbols.c (guts_of_unbound_marker): Use value field.
12256         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
12257         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
12258
12259         * lisp.h: Declare dumpopaque and noninteractive1.
12260
12261         * alloc.c (dumpopaque): Added.
12262         (pdump_dump_opaquevec): Added.
12263         (pdump): Call pdump_dump_opaquevec to dump opaque data.
12264         (pdump_load): Reload opaque data.  Sync noninteractive1 with
12265         noninteractive.
12266
12267 2000-02-10  Andy Piper  <andy@xemacs.org>
12268
12269         * glyphs.c (image_instance_layout): if the size changes, mark it
12270         as such.
12271
12272         * redisplay-output.c (redisplay_output_layout): Update the
12273         subwindow here.
12274         (redisplay_output_subwindow): ditto.
12275
12276         * glyphs.c (update_subwindow): make sure we reset flags for
12277         layouts as well as everything else.
12278
12279         * glyphs-widget.c (layout_layout): don't need to set the instances
12280         dimensions here.
12281
12282 2000-02-09  Martin Buchholz  <martin@xemacs.org>
12283
12284         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
12285         not HAVE_DLOPEN, which is a lower-level thing.
12286
12287         * .cvsignore: Ignore gmon.out
12288
12289 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
12290
12291         * .cvsignore: Ignore portable dumper xemacs.dmp file
12292
12293 2000-02-09  Andy Piper  <andy@xemacs.org>
12294
12295         * redisplay-output.c (redisplay_output_layout): be more clever
12296         about when we output based on the changed flags.
12297
12298         * glyphs.h (struct image_instantiator_methods): add update_method.
12299         (struct Lisp_Image_Instance): add changed flags. Declare new
12300         macros for manipulating them.
12301
12302         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
12303         (image_instance_parent_glyph): find an image_instance's parent
12304         glyph or image_instance.
12305         (image_instance_layout): mark the size as changed.
12306         (set_image_instance_dirty_p): new function. mark an image
12307         instance, plus all of its parents, as dirty.
12308         (Fset_image_instance_property): use it.
12309         (Fglyph_animated_timeout_handler): use it.
12310         (update_subwindow): call update_widget and device methods for
12311         update_subwindow. Mark all changed flags as clean.
12312         (Fresize_subwindow): mark size as changed.
12313
12314         * glyphs-x.c (x_finalize_image_instance): try and detect gc
12315         failures.
12316         (x_update_subwindow): only resize subwindows here.
12317         (x_update_widget): new function. Update all changed properties of
12318         a widget.
12319         (x_resize_subwindow): deleted.
12320         (x_widget_set_property): deleted.
12321         (x_progress_gauge_set_property): deleted.
12322         (x_progress_gauge_update): new function. Implement recorded
12323         changes.
12324         (x_tab_control_update): ditto.
12325         (x_tab_control_set_property): deleted.
12326         (console_type_create_glyphs_x): declare new functions.
12327         (image_instantiator_format_create_glyphs_x): ditto.
12328
12329         * glyphs-widget.c (widget_set_property): mark text changed.
12330         (update_widget): new function. Update properties of a widget.
12331         (widget_instantiate): for layouts make sure we set their
12332         children's parent correctly.
12333         (tab_control_set_property): new function. Record changes that will
12334         take place under redisplay's control.
12335         (progress_gauge_set_property): ditto.
12336         (image_instantiator_progress_guage): declare new functions.
12337         (image_instantiator_tab_control): ditto.
12338
12339         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
12340         now.
12341         (mswindows_update_widget): new function. Update all properties on
12342         a widget that have changed.
12343         (mswindows_button_update): new function. Update a button's set
12344         state.
12345         (mswindows_tab_control_update): new function. Update the items in
12346         a tab.
12347         (mswindows_tab_control_set_property): deleted.
12348         (mswindows_progress_gauge_update): new function. Update the
12349         progress gauge's progress.
12350         (mswindows_widget_set_property): deleted. This is all done
12351         asynchronously now.
12352         (mswindows_progress_gauge_set_property): ditto.
12353         (console_type_create_glyphs_mswindows): declare new methods.
12354         (image_instantiator_format_create_glyphs_mswindows): ditto.
12355
12356         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12357         (msprinter_set_frame_properties): ditto.
12358
12359         * console.h (struct console_methods): Add update_widget_method.
12360
12361 2000-02-09  Andy Piper  <andy@xemacs.org>
12362
12363         * gui-msw.c (Fmswindows_shell_execute): Make
12364         mswindows-shell-execute industrial strength.
12365
12366 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12367
12368         * lrecord.h: Make macro argument `props' match member function `plist'.
12369         * fns.c (Fget):
12370         * fns.c (Fput):
12371         * fns.c (Fremprop):
12372         * fns.c (Fobject_plist):
12373         * alloc.c:
12374         * symbols.c:
12375         Object property list frobbing cleanup.
12376         - Allow any lisp object (compared with `eq'), not just symbols, as
12377           keys in object plists.
12378         - Move symbol plist frobbing into symbols.c, where it belongs.
12379         - Move string plist frobbing into alloc.c, where it belongs.
12380         - Everything's an lrecord now, so no need to test for symbolp, etc.
12381         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12382
12383         * extents.c: Reorder code to remove declarations.
12384
12385         * frame.h (store_in_alist): Remove useless declaration.
12386
12387 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12388
12389         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12390         * config.h.in: Add HAVE_XCONVERTCASE.
12391
12392 2000-02-07  Andy Piper  <andy@xemacs.org>
12393
12394         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12395         it breaks many things.
12396
12397 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12398
12399         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12400         actually can start a common comment type.
12401         * src/syntax.h (SYNTAX_END_P): ditto for end.
12402
12403 2000-02-07  Martin Buchholz <martin@xemacs.org>
12404
12405         * XEmacs 21.2.28 is released.
12406
12407 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12408
12409         * event-Xt.c (x_keysym_to_character): New.
12410         (maybe_define_x_key_as_self_inserting_character): New.
12411         (x_has_keysym): New.
12412         Auto-define all keys on the keyboard as self-insert-key.
12413
12414 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12415
12416         * menubar.c (vars_of_menubar): A small code simplification.
12417
12418         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12419
12420         * ExternalShell.c:
12421         * ExternalClient.c:
12422         * EmacsShell-sub.c:
12423         * EmacsManager.c:
12424         * EmacsFrame.c:
12425         Use consistent style for specifying X resources.
12426
12427         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12428         This makes (dontusethis-set-symbol-value-handler) actually usable.
12429
12430         * lrecord.h (lrecord_decription_type):
12431         * alloc.c (pdump_register_sub):
12432         (pdump_dump_data):
12433         (pdump_reloc_one):
12434         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12435         Comply with XEmacs coding style.
12436         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12437         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12438
12439         * keymap.c (Faccessible_keymaps):
12440         Make (accessible-keymaps map "\C-h") do the Right Thing.
12441         Make (accessible-keymaps map []) do the Right Thing.
12442         Make (accessible-keymaps map "") do the Right Thing.
12443         (check_keymap_definition_loop): New function.
12444         (keymap_store_internal): Keep luser from shooting self in foot,
12445           via (define-key ctl-x-4-map "p" global-map).
12446         Remove fullness slot from struct Lisp_Keymap, since hash tables
12447         are now reliable.
12448         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12449
12450 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12451
12452         * redisplay.c (init_redisplay): Fix small memory leak.
12453         * elhash.h:
12454         * elhash.c (pdump_reorganize_hash_table):
12455         Rename from reorganize_hash_table. Change prototype.
12456         Reuse the original memory for hentries.  Save 100k.
12457         * alloc.c (PDUMP_READ): new macro.
12458         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12459         * alloc.c: No need to #ifndef before #undef.
12460
12461         * print.c: Allow debug_print() to print readably by modifying
12462         debug_print_readably.  Use consistent variable names.
12463
12464         * .dbxrc: Try to get things to work even if stopped in a function
12465         without source available by explicitly specifying source files.
12466 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12467
12468         * unexnt.c (_start): Removed bogus code which caused loading heap
12469         from differrent executable file.
12470         Removed bogus assignment to _fmode, which caused inconsistencies.
12471
12472 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12473
12474         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12475         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12476         Do not preliminary `#define signal sigset'.
12477
12478         * systime.h: Do not prototype environ on windows nt and cygwin,
12479         this conflicts with system header.
12480
12481         * syssignal.h: Use correct define for WINDOWSNT
12482
12483         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12484         with system header.
12485
12486         * sysdep.c (near start of file): Fixed commentary and rearranged
12487         ifdefs in readable order.
12488         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12489         (start_of_text):
12490         (end_of_text):
12491         (end_of_data): Do not compile in if using PDUMP.
12492
12493         * symsinit.h: Prototyped vars_of_nt().
12494
12495         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12496         (find_child_console): Use it.
12497         (sys_kill): Use it.
12498
12499         * ntheap.h: Do not extern os_subtype.
12500
12501         * ntheap.c (cache_system_info): Do not cache unneeded:
12502         nt_major_version, nt_minor_version and os_subtype.
12503         (recreate_heap): Do not compile in when PDUMPing.
12504
12505         * nt.c (geteuid and friends): Use the new varibale
12506         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12507         (init_user_info): Removed the above mentioned hackery.
12508         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12509         stat has been fixed in the C runtime.
12510         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12511
12512         * file-coding.c (struct file_coding_dump): Do not define
12513         ucs_to_mule_table in the struct if not MULE.
12514         (struct struct lrecord_description fcd_description_1): Do not dump
12515         the above.
12516
12517         * emacs.c (main_1): Call vars_of_nt().
12518         (right before Fdump_emacs_data): Don't need lastfile if using both
12519         portabe dumper and system malloc.
12520
12521         * alloc.c (Fmemory_limit): Conditionalized out.
12522         (pdump): Use OPEN_BINARY for the portable dump file.
12523         (pdump_load): Ditto.
12524
12525 2000-02-02  Mike Alexander  <mta@arbortext.com>
12526
12527         * nt.c (convert_time): Set tm_isdst before calling mktime and
12528         avoid calling it at all if the compiler supports 64 bit integers.
12529         Also initialize utc_base_ft before using it.
12530
12531 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12532
12533         * frame.c (change_frame_size_1): Take f->internal_border_width
12534         into consideration when calculating the width of the frame.
12535
12536 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12537
12538         * window.c (frame_min_height):
12539         (frame_size_valid_p):
12540         (frame_pixsize_valid_p): Added.
12541         (check_frame_size): Generalized.
12542
12543         * window.h: Prototyped the above.
12544
12545         * lisp.h:
12546         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12547         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12548         Deleted Vwin32_* and Vbinary_process_* unused variables.
12549
12550         * device-msw.c (msprinter_init_device): Do not get printer font
12551         list; Added DEVMODE functions.
12552
12553         * frame-msw.c: Added lots of printer code.
12554
12555         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12556         general.c.
12557
12558         * console-msw.h: Added more msprinter device private slots.
12559
12560 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12561
12562         * event-msw.c (key_needs_default_processing_p): Added.
12563         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12564
12565 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12566
12567         * glyphs.c (image_instance_layout): Mark image instance as clean
12568         after layout.
12569         (glyph_dirty_p): Removed redundant function.
12570         (invalidate_glyph_geometry_maybe): Added.
12571         (update_glyph_cachel_data): Call it.
12572
12573         * glyphs.h: Prototyped it.
12574
12575         * redisplay.c (add_glyph_rune): Call it.
12576         (redisplay_window): Reset glyphs cachels when frame faces have
12577         changed, thus forcing recomputation of built-in border glyphs.
12578
12579 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12580
12581         * Makefile.in.in: Make portable dumper and purify play well together.
12582         Add imperfect, but better than nothing, support for pdump.
12583         Remove xemacs.dmp when temacs is re-generated.
12584         Don't ignore errors when dumping xemacs.
12585
12586         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12587
12588 2000-01-28  Andy Piper  <andy@xemacs.org>
12589
12590         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12591         (setup_normal_frame): ditto.
12592         (setup_frame_without_minibuffer): ditto.
12593         (setup_minibuffer_frame): ditto.
12594         (delete_frame_internal): ditto.
12595         (Fmake_frame_invisible): ditto.
12596         (Ficonify_frame): ditto.
12597
12598         * window.h: change Fset_window_buffer signature.
12599
12600         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12601         (Fset_window_buffer): allow recording of buffer if the window is
12602         the selected window.
12603         (window_loop): Use new Fset_window signature.
12604
12605 2000-01-23  Daniel Pittman  <daniel@danann.net>
12606
12607         * config.h.in: Added template for `HAVE_ATHENA_3D'
12608
12609 2000-01-29  Andy Piper  <andy@xemacs.org>
12610
12611         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12612
12613         * gutter.c (output_gutter): Don't output if the window isn't live.
12614
12615 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12616
12617         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12618         of 01/12/00: Moved SetFocus back here where it belongs.
12619
12620 2000-01-23  Andy Piper  <andy@xemacs.org>
12621
12622         * s/cygwin32.h: declare printer things.
12623
12624 2000-01-26  Andy Piper  <andy@xemacs.org>
12625
12626         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12627         Alexander.
12628
12629 2000-01-24  Andy Piper  <andy@xemacs.org>
12630
12631         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12632         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12633
12634         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12635
12636         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12637
12638         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12639
12640         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12641         (mswindows_output_display_block): Avoid local shadows.
12642
12643         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12644         (mswindows_enqueue_mouse_button_event): ditto.
12645         (mswindows_handle_gui_wm_command): remove declaration.
12646
12647         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12648         warnings.
12649
12650         * console-msw.h: Avoid shadows.
12651         (mswindows_get_toolbar_button_text):
12652         (emacs_mswindows_create_stream_pair):
12653         (emacs_mswindows_delete_stream_pair):
12654         (mswindows_handle_toolbar_wm_command): declare.
12655
12656         * device-msw.c (build_syscolor_string): Avoid shadows.
12657
12658 2000-01-23  Andy Piper  <andy@xemacs.org>
12659
12660         * glyphs-widget.c (widget_instantiate): reverse the items for
12661         layouts so that children are in the expected order.
12662
12663 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12664
12665         * ralloc.c: safe_bcopy ==> memmove
12666         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12667         * s/msdos.h: Remove BCOPY macros.
12668         * insdel.c (gap_right): Remove BCOPY conditional code.
12669         * insdel.c (gap_left): Remove BCOPY conditional code.
12670         XEmacs demands a working ANSI C compiler - hence memmove.
12671
12672         * regex.c (regex_compile): Remove accidental use of trigraphs.
12673
12674 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12675
12676         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12677         event timestamp.
12678
12679 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12680
12681         * event-msw.c (mswindows_drain_windows_queue): Added the
12682         parameter.
12683         (mswindows_need_event): Commented the call to
12684         mswindows_drain_windows_queue().
12685         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12686         only.
12687
12688         * console-msw.h: Moved a few function prototypes here from
12689         event-msw.c.
12690
12691         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12692         parameter from unsigned short to unsigned long.
12693         (Fmswindows_shell_execute): Added return value.
12694
12695 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12696
12697         * sysdep.c (init_system_name):
12698           process-unix.c (unix_canonicalized_host_name):
12699         Don't call freeaddrinfo() if getaddrinfo() fails.
12700
12701         * process-unix.c (unix_open_unix_network_stream):
12702         Moved the code to get a port # into address loop.
12703
12704 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12705
12706         * buffer.c (reinit_vars_of_buffer):
12707         The right place to initialize conversion_in_dynarr and
12708         conversion_out_dynarr.
12709
12710         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12711
12712         * process-unix.c (unix_canonicalize_host_name): Muleize.
12713         (unix_open_network_stream): Muleize.
12714
12715         * buffer.h: Fix up prototypes for ralloc.c functions.
12716
12717 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12718         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12719         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12720                 instead of gethostbyname()
12721         * process-unix.c: In unix_canonicalize_host_name() and
12722                 unix_open_network_stream(), add code to use getaddrinfo()
12723                 instead of gethostbyname().
12724
12725 2000-01-27  Daniel Pittman <daniel@danann.net>
12726
12727         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12728         libs when built with flat Athena.
12729
12730 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12731
12732         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12733         Use coding standards for function prototypes.
12734
12735 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12736
12737         * dialog-msw.c (push_lisp_string_as_unicode):
12738         * doc.c (unparesseuxify_doc_string):
12739         * dired.c (Fuser_name_completion_1):
12740         * dired.c (Fuser_name_all_completions):
12741         * dired.c (free_user_cache):
12742         * dired.c (user_name_completion):
12743         * console-x.c (get_display_arg_connection):
12744         * minibuf.c (clear_echo_area_internal):
12745         * minibuf.c (echo_area_append):
12746         * eldap.c (Fldap_open):
12747         * eldap.c (Fldap_search_internal):
12748         * frame-x.c (x_set_frame_text_value):
12749         * frame-x.c (x_set_frame_properties):
12750         * frame-x.c (x_create_widgets):
12751         * redisplay-tty.c (term_get_fkeys_1):
12752         * objects-x.c (x_parse_nearest_color):
12753         * objects-x.c (x_valid_color_name_p):
12754         * objects-x.c (x_initialize_font_instance):
12755         * objects-x.c (x_list_fonts):
12756         * objects-x.c (x_find_charset_font):
12757         * tooltalk.c (Fadd_tooltalk_message_arg):
12758         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12759         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12760         * process-unix.c (unix_create_process):
12761         * ntproc.c (sys_spawnve):
12762         * sound.c (Fplay_sound_file):
12763         * sound.c (Fplay_sound):
12764         * buffer.c (init_initial_directory):
12765         * buffer.c (init_buffer):
12766         * editfns.c (init_editfns):
12767         * editfns.c (Ftemp_directory):
12768         * editfns.c (Fuser_full_name):
12769         * editfns.c (uncache_home_directory):
12770         * editfns.c (get_home_directory):
12771         * editfns.c (Fuser_home_directory):
12772         * editfns.c (Fformat_time_string):
12773         * editfns.c (Fcurrent_time_string):
12774         * gui-x.c (button_item_to_widget_value):
12775         * database.c (Fopen_database):
12776         * event-Xt.c (x_to_emacs_keysym):
12777         * event-Xt.c (x_event_to_emacs_event):
12778         * event-Xt.c (describe_event_window):
12779         * event-msw.c (mswindows_wnd_proc):
12780         * glyphs-eimage.c (jpeg_instantiate):
12781         * glyphs-eimage.c (gif_instantiate):
12782         * glyphs-eimage.c (png_instantiate):
12783         * glyphs-eimage.c (tiff_instantiate):
12784         * glyphs-x.c (xbm_instantiate_1):
12785         * glyphs-x.c (x_xbm_instantiate):
12786         * glyphs-x.c (x_xface_instantiate):
12787         * glyphs-x.c (autodetect_instantiate):
12788         * glyphs-x.c (cursor_font_instantiate):
12789         * glyphs-x.c (x_widget_instantiate):
12790         * glyphs-x.c (x_widget_set_property):
12791         * glyphs-x.c (x_widget_property):
12792         * glyphs-x.c (BUILD_GLYPH_INST):
12793         * print.c (write_string_to_stdio_stream):
12794         * print.c (output_string):
12795         * print.c (Falternate_debugging_output):
12796         * print.c (Fexternal_debugging_output):
12797         * glyphs-msw.c (extract_xpm_color_names):
12798         * glyphs-msw.c (mswindows_xpm_instantiate):
12799         * glyphs-msw.c (bmp_instantiate):
12800         * glyphs-msw.c (resource_name_to_resource):
12801         * glyphs-msw.c (mswindows_resource_instantiate):
12802         * glyphs-msw.c (xbm_instantiate_1):
12803         * glyphs-msw.c (mswindows_xbm_instantiate):
12804         * glyphs-msw.c (mswindows_xface_instantiate):
12805         * glyphs-msw.c (mswindows_widget_instantiate):
12806         * glyphs-msw.c (add_tree_item):
12807         * glyphs-msw.c (add_tab_item):
12808         * glyphs-msw.c (mswindows_combo_box_instantiate):
12809         * glyphs-msw.c (mswindows_widget_property):
12810         * glyphs-msw.c (mswindows_combo_box_property):
12811         * glyphs-msw.c (mswindows_widget_set_property):
12812         * console.c (stuff_buffered_input):
12813         * objects-msw.c (mswindows_initialize_color_instance):
12814         * objects-msw.c (mswindows_valid_color_name_p):
12815         * objects-msw.c (mswindows_list_fonts):
12816         * objects-msw.c (mswindows_font_instance_truename):
12817         * bytecode.c (optimize_compiled_function):
12818         * select-x.c (symbol_to_x_atom):
12819         * select-x.c (x_atom_to_symbol):
12820         * select-x.c (hack_motif_clipboard_selection):
12821         * select-x.c (selection_data_to_lisp_data):
12822         * select-x.c (lisp_data_to_selection_data):
12823         * select-x.c (Fx_get_cutbuffer_internal):
12824         * select-x.c (Fx_store_cutbuffer_internal):
12825         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12826         * buffer.h (TO_INTERNAL_FORMAT): New function.
12827         * emacs.c (make_arg_list_1):
12828         * emacs.c (make_argc_argv):
12829         * emacs.c (main_1):
12830         * emacs.c (Fdump_emacs):
12831         * emacs.c (split_string_by_emchar_1):
12832         * file-coding.h:
12833         * lisp.h:
12834         * lstream.h:
12835         * symsinit.h:
12836         * device-x.c (x_init_device):
12837         * device-x.c (Fx_valid_keysym_name_p):
12838         * device-x.c (Fx_get_font_path):
12839         * device-x.c (Fx_set_font_path):
12840         * glyphs.c (bitmap_to_lisp_data):
12841         * glyphs.c (pixmap_to_lisp_data):
12842         * alloc.c (make_ext_string): Use coding system arguments.  Update
12843         all callers.
12844         * alloc.c (build_string):
12845         * callproc.c (child_setup):
12846         * callproc.c (init_callproc):
12847         * fileio.c (lisp_strerror):
12848         * fileio.c (directory_file_name):
12849         * fileio.c (Fexpand_file_name):
12850         * fileio.c (Ffile_truename):
12851         * fileio.c (Fsysnetunam):
12852         * fileio.c (Fdo_auto_save):
12853         * sysdep.c (sys_readdir):
12854         * tests.c: New file.  Allow adding C tests.
12855         Replace GET_* macros with a more comprehensible and flexible
12856         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12857         Modify all calls.
12858         Any coding system can be used to do format conversion.
12859         Eliminate enum external_data_format.
12860         Eliminate convert_to_external_format.
12861         Eliminate convert_to_internal_format.
12862         Make sure file-name, keyboard, terminal, and ctext are always
12863         defined as coding systems or aliases.  Make
12864         file-name-coding-system, terminal-coding-system, and
12865         keyboard-coding-system magical variables that are equivalent to
12866         defining the corresponding coding system aliases.
12867
12868         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12869         * file-coding.c (Fcoding_system_alias_p): New function.
12870         * file-coding.c (Fcoding_system_aliasee): New function.
12871         * file-coding.c (append_suffix_to_symbol): New function.
12872         * file-coding.c (dangling_coding_system_alias_p): New function.
12873         * file-coding.c (Ffind_coding_system):
12874         * file-coding.c (Fcopy_coding_system):
12875         * file-coding.c (encode_coding_no_conversion):
12876         * file-coding.c (syms_of_file_coding):
12877         * file-coding.c (vars_of_file_coding):
12878         Rewrite coding system alias code.
12879         Allow nested aliases, like symbolic links.
12880         Allow redefinition of coding system aliases.
12881         Prevent existence of dangling coding system aliases.
12882
12883         * dired.c (Fuser_name_completion_1):
12884         * dired.c (Fuser_name_all_completions):
12885         A crash would happen if user did QUIT in the middle of building
12886         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12887
12888         * lisp.h:
12889         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12890
12891         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12892         an unsigned char *.  Update all callers.
12893
12894 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12895
12896         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12897
12898 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12899
12900         * elhash.c (hentry_description): Use more portable definition.
12901         (resize_hash_table): Initialize new hentries using
12902         xnew_array_and_zero, thereby simplifying the code.
12903
12904         * mule-charset.c (make_charset): Make sure entire object is
12905         initialized, to avoid Purify warnings.
12906
12907         * alloc.c (resize_string): Fix unlikely crash with big strings.
12908
12909 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12910
12911         * realpath.c (xrealpath):
12912         Don't call getwd().
12913
12914 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12915
12916         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12917
12918 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12919
12920         * unexelfsgi.c (unexec): Change the way we decide which segment
12921         should be extended.
12922
12923         Assumption that .bss section should be outside the PT_LOADable
12924         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12925         it's present) is inside the 'data' segment. This would fail the
12926         test which was used to find a segment to grow and cover new
12927         heap. Instead of this assumption, I created another one - on IRIX
12928         the segment to grow should start below .bss and it's address
12929         should extent above the end of .bss. Once this segment is
12930         identified, it's grown to accommodate the new heap and new
12931         zero-length .bss section is added at the end of .data2.
12932
12933 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12934
12935         * eval.c (Feval): Wrong number of arguments should use original
12936         function, not the indirect_function version of it.
12937
12938 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12939
12940         * glyphs-x.c (x_button_instantiate): Don't add image if
12941         it is not a pixmap.
12942         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12943         is relative.
12944
12945 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12946
12947         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12948         declaration.
12949         (DEFVAR_INT_MAGIC): Ditto.
12950         (DEFVAR_BOOL_MAGIC): Ditto.
12951         * glyphs.h: Reindent backslash.
12952
12953 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12954
12955         * glyphs-widget.c (layout_query_geometry):
12956         (layout_layout): Use correct types for gheight, gwidth.
12957
12958 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12959
12960         * EmacsManager.c (QueryGeometry): Purified.
12961
12962 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12963
12964         * alloc.c (make_float): Make sure entire object is initialized, to
12965         avoid Purify warnings.
12966         (pdump_register_sub): Remove useless assignment.
12967         (pdump): Use xmalloc, not malloc.
12968         (pdump_load): Use xmalloc, not malloc.
12969
12970 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12971
12972         * callproc.c:
12973         * dired-msw.c:
12974         * fileio.c:
12975         * process-nt.c:
12976         * redisplay-msw.c:
12977         * sysdep.c: Removed redundant #include <windows.h>
12978
12979 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12980
12981         * frame.c (delete_frame_internal): Do not delete device when its
12982         implementation so declares.
12983         (delete_frame_internal): Set device selected frame to nil when
12984         last frame goes away.
12985
12986         * device-msw.c (msprinter_device_system_metrics): Implemented.
12987         (mswindows_device_system_metrics): Added 'device-dpi property.
12988
12989         * device.c: (Fdevice_printer_p): Added.
12990         Added 'offset-workspace device metric.
12991
12992         * console.h (device_metrics): Declared DM_offset_workspace.
12993
12994 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12995
12996         * fileio.c (Ffile_truename): Remove pointless and confusing
12997         initialization of elen.
12998
12999         * glyphs-widget.c: Compiler warning fixes.
13000
13001 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
13002
13003         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
13004         instead of a Lisp_Object as argument to make it consistent with
13005         the other LIVE_P macros.
13006         (CHECK_LIVE_PROCESS): New macro.
13007
13008         * process.c: Declare Qprocess_live_p.
13009         (Fprocess_live_p): New function.
13010         (create_process): Use PROCESS_LIVE_P.
13011         (read_process_output): Ditto.
13012         (set_process_filter): Ditto.
13013         (Fdelete_process): Ditto.
13014         (kill_buffer_processes): Ditto
13015         (process_send_signal): Use CHECK_LIVE_PROCESS.
13016         (Fprocess_input_coding_system): Check whether process is still
13017         alive (fix PR#1061).
13018         (Fprocess_output_coding_system): Ditto.
13019         (Fprocess_coding_system): Ditto.
13020         (Fset_process_input_coding_system): Ditto.
13021         (Fset_process_output_coding_system): Ditto.
13022
13023 2000-01-23  Andy Piper  <andy@xemacs.org>
13024
13025         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
13026         layout and widget.
13027
13028         * glyphs.c (mark_image_instance): take into account changed
13029         image_instance format.
13030         (image_instance_equal): ditto.
13031         (image_instance_hash): ditto.
13032
13033         * glyphs-widget.c (widget_instantiate): Incorporate layout
13034         instantiation here. Delay layout of the layout until later.
13035         (layout_instantiate): deleted.
13036         (layout_query_geometry): new function. get the geometry of a
13037         layout.
13038         (layout_layout): layout a layout dynamically.
13039         (image_instantiator_widget): New function - splitting up
13040         image_instantiator_format_create_glyphs_widget for netwinder
13041         compilation.
13042         (image_instantiator_buttons):
13043         (image_instantiator_edit_fields):
13044         (image_instantiator_combo_box):
13045         (image_instantiator_scrollbar):
13046         (image_instantiator_progress_guage):
13047         (image_instantiator_tree_view):
13048         (image_instantiator_tab_control):
13049         (image_instantiator_labels):
13050         (image_instantiator_layout): ditto.
13051         (image_instantiator_format_create_glyphs_widget): Call preceding
13052         functions.
13053
13054 2000-01-22  Martin Buchholz  <martin@xemacs.org>
13055
13056         * process.c (Fset_process_coding_system):
13057         * device-x.c (Fx_keysym_hash_table):
13058         Docstring fixes.
13059
13060         * lstream.c (Lstream_write): Return documented value, not 0.
13061
13062         * fileio.c (directory_file_name):
13063         (Fsubstitute_in_file_name):
13064         (Fsubstitute_insert_file_contents_internal):
13065         (Fwrite_region_internal):
13066         * emacs.c:
13067         * sysdep.c:
13068         * getloadavg.c:
13069         * systty.h:
13070         Remove vestigial APOLLO-conditional code.
13071
13072 2000-01-21  Martin Buchholz  <martin@xemacs.org>
13073
13074         * getpagesize.h: Add guard macros.
13075         * libsst.h: Add guard macros.
13076         * libst.h: Add guard macros.
13077         * line-number.h: Add guard macros.
13078         * ndir.h: Add guard macros.
13079         * sysfloat.h: Add guard macros.
13080         * sysfile.h: Add guard macros.
13081         * sysproc.h: Add guard macros.
13082         * syswait.h: Add guard macros.
13083         * xintrinsic.h: Add guard macros.
13084         * xintrinsicp.h: Add guard macros.
13085         * xmmanager.h: Add guard macros.
13086         * xmmanagerp.h: Add guard macros.
13087         * xmprimitive.h: Add guard macros.
13088         * xmu.h: Add guard macros.
13089         * gpmevent.h: Add copyright statement. Add guard macros.
13090         * miscplay.h: Add guard macros.
13091         * *.h: Use consistent C-standards-approved guard macro names.
13092
13093         * opaque.c (make_opaque): Switch parameter order.
13094         * opaque.h (make_opaque): Switch parameter order.
13095         Update all callers.
13096         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
13097
13098         * config.h.in (type_checking_assert): Added.
13099         (bufpos_checking_assert): Added.
13100
13101 2000-01-21  Martin Buchholz  <martin@xemacs.org>
13102
13103         * alloc.c: Harmless pdump changes.
13104         - Use countof().
13105         - spell alignment correctly.
13106         * sysdep.c: Use countof()
13107
13108 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13109
13110         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
13111         initially_selected_for_input() console method, default to 0.
13112         (semi_canonicalize_console_connection): Try to delegate to
13113         canonicalize_console_connection if no such console method.
13114         (canonicalize_console_connection): Vice versa.
13115         (print_console): Do not print nil connection.
13116
13117         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
13118         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
13119         (XDEVIMPF_FRAMELESS_OK): Added.
13120         (CONSOLE_INHERITS_METHOD): Added.
13121
13122         * console-msw.c (mswindows_canonicalize_console_connection):
13123         Added.
13124         (mswindows_canonicalize_device_connection): Added.
13125
13126         * console-msw.h (struct msprinter_device): Added this struct and
13127         accessor macros.
13128         (mswindows_device): Made fontlist a lisp object.
13129
13130         * device.c (semi_canonicalize_device_connection):  Try to delegate
13131         to canonicalize_device_connection if no such console method.
13132         (canonicalize_device_connection): Vice versa.
13133         (print_device): Do not print nil connection.
13134
13135         * device-msw.c (mswindows_init_device): Call InitCommonControls
13136         when have widgets.
13137         (mswindows_delete_device): Removed fontlist deallocation.
13138         (mswindows_mark_device): Added.
13139
13140         * events.c (event_equal): Added abort() at unreached code.
13141         (event_hash): Ditto.
13142
13143         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
13144         fallback tags of Windows devices.
13145
13146         * general.c (syms_of_general): Initialized Qmsprinter.
13147
13148         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
13149         of fallback tags of Windows devices.
13150
13151         * lisp.h: Declared Qmsprinter.
13152
13153         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
13154         of strings.
13155         (mswindows_list_fonts): Ditto.
13156         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
13157         that it can be used by both mswindows and msprinter devices.
13158         (initialize_font_instance): Added.
13159         (mswindows_initialize_font_instance): Use it.
13160         (msprinter_initialize_font_instance): Added.
13161
13162         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
13163         and implementation flags check.
13164         (redisplay_without_hooks): Changed the call to the above.
13165         (Fredraw_device): Ditto.
13166         (Fredisplay_device): Ditto.
13167
13168         * redisplay-msw.c (get_frame_dc): Implemented.
13169         (get_frame_compdc): Implemented.
13170         (many functions): Use the two functions above to get device
13171         contexts, ether for a window or a printer.
13172
13173 2000-01-21  Olivier Galibert  <galibert@pobox.com>
13174
13175         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
13176         initialization here.
13177         (init_symbols_once_early): Call it.
13178         * emacs.c (main_1): Call it.
13179         * symsinit.h: Declare it.
13180
13181 2000-01-19  Olivier Galibert  <galibert@pobox.com>
13182
13183         * alloc.c: Use a lrecord_header * in the backtrace instead of a
13184         Lisp_Object.
13185         (pdump_backtrace): Ditto.
13186         (pdump_register_object): Ditto.  Cleanup use of the pointers.
13187         (pdump_get_entry): Abort if trying to register a null pointer.
13188         (pdump_dump_data): Cleanup types when relocating.
13189         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
13190         (pdump_dump_rtables): Remove bad casts.
13191         (pdump_load): Cleanup relocation w.r.t union type.  Use a
13192         Lisp_Object instead of a EMACS_INT for the hashtable
13193         reorganization.
13194
13195 2000-01-20  Martin Buchholz  <martin@xemacs.org>
13196
13197         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
13198
13199         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
13200
13201         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
13202
13203         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
13204
13205 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13206
13207         * faces.h (FACE_STRIKETHRU_P): Added.
13208
13209         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
13210         of font variants.
13211
13212         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
13213         (mswindows_set_dc_font): New function, aware of font variants,
13214         separated from mswindows_update_dc.
13215
13216         * objects-msw.h (struct mswindows_font_instance_data): Added
13217         definition.
13218
13219         * objects-msw.c (mswindows_finalize_font_instance): Delete all
13220         cached fonts and the data structure.
13221         (mswindows_initialize_font_instance): Added creation of font data
13222         structure.
13223         (mswindows_print_font_instance): Print at least something.
13224         (mswindows_create_font_variant): Implemented.
13225         (mswindows_get_hfont): Implemented.
13226
13227 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
13228
13229         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
13230         prototyping problem with msvc.
13231
13232         * emacs.c (main_1): added syms_of_gui_mswindows() call
13233
13234         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
13235         syms_of_gui_mswindows() function
13236
13237         * symsinit.h: added the prototype for syms_of_gui_mswindows()
13238
13239 2000-01-18  Martin Buchholz <martin@xemacs.org>
13240
13241         * XEmacs 21.2.27 is released.
13242
13243 2000-01-18  Martin Buchholz  <martin@xemacs.org>
13244
13245         * glyphs-eimage.c (struct tiff_error_struct):
13246         (tiff_error_func):
13247         (tiff_warning_func):
13248         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
13249
13250         * unexmips.c:
13251         * unexhp9k3.c:
13252         * unexfreebsd.c:
13253         * unexec.c: Remove vestigial Lucid C code.
13254         * unexalpha.c:
13255         * unexaix.c:
13256         * termcap.c:
13257         * libsst.c: Ansify.
13258         Remove declarations of errno and strerror().
13259
13260         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
13261
13262         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
13263
13264 2000-01-16  Martin Buchholz  <martin@xemacs.org>
13265
13266         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
13267         Optimize.
13268
13269 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13270
13271         * md5.c:
13272         * file-coding.c:
13273         * file-coding.h:
13274         Change enum eol_type to eol_type_t.
13275
13276 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13277
13278         * gui.c (get_gui_callback): Check cons before accessing car.
13279
13280 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13281
13282         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
13283         (XSETSPECIFIER_TYPE): Ditto.
13284
13285 2000-01-17  Didier Verna  <didier@xemacs.org>
13286
13287         * redisplay.c (generate_fstring_runes): compute string size in
13288         characters, not bytes.
13289
13290 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13291
13292         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
13293
13294 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
13295
13296         * print.c (print_error_message): Call print_prepare().
13297
13298 2000-01-14  Martin Buchholz  <martin@xemacs.org>
13299
13300         * .dbxrc: Renamed from dbxrc.
13301
13302         * events.c (event_to_character):
13303         Use `assert (foo)' instead of `if (!foo) abort()'
13304
13305         * .gdbinit (xtype): Add documentation.
13306         * .gdbinit (check-temacs): New function.
13307         * .gdbinit (check-xemacs): New function.
13308         * dbxrc (check-xemacs): New function.
13309         * dbxrc (check-xemacs): New function.
13310
13311 2000-01-14  Andy Piper  <andy@xemacs.org>
13312
13313         * glyphs-widget.c (widget_query_geometry): Make sure that we
13314         calculate default dimensions correctly.
13315
13316 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13317
13318         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
13319
13320         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
13321         pdump_wire'd variable.
13322
13323         * emacs.c: (main_1): Conditionalized calls to
13324         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
13325
13326 2000-01-13  Martin Buchholz  <martin@xemacs.org>
13327
13328         * window.c (Fset_window_configuration):
13329         * sysdep.c (_start):
13330         * input-method-motif.c (res):
13331         * event-Xt.c (Xt_process_to_emacs_event):
13332         Simple compiler warning fixes.
13333
13334         * bytecode.c (funcall_compiled_function): Use the original
13335         function symbol on the backtrace list in preference to the
13336         compiled_function object in error messages.
13337
13338 2000-01-13  Andy Piper  <andy@xemacs.org>
13339
13340         * glyphs-x.c (update_widget_face): Make sure we update the widget
13341         background as well as foreground.
13342
13343 2000-01-13  Andy Piper  <andy@xemacs.org>
13344
13345         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
13346         fields to subwindow.
13347         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
13348         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13349         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13350         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13351
13352         * glyphs-widget.c (check_valid_tab_orientation): new function.
13353         (initialize_widget_image_instance): zero orientation and
13354         justification.
13355         (widget_instantiate): pick up orientation.
13356         (tab_control_query_geometry): return appropriate values for
13357         vertical tabs.
13358
13359         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13360         appropriate creation flags for left, right and bottom tabs.
13361
13362         * s/cygwin32.h: add tab definitions.
13363
13364 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13365
13366         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13367         frame upon hiding a subwindow.
13368         (mswindows_button_instantiate): Changed the push button style to
13369         BS_PUSHBUTTON.
13370         (mswindows_button_instantiate): Removed button BS_NOTIFY
13371         style.
13372         (mswindows_button_instantiate): Removed redundant check for
13373         a disabled gui item.
13374         (mswindows_button_instantiate): Made use of WS_TABSTOP
13375         consistent: "operable" controls (edit, button, tree, scroll) have
13376         this style, "display-only" ones (static, progress gauge) do
13377         not. This style is currently ignored by XEmacs though. Also,
13378         removed the WS_EX_CONTROLPARENT style - it is not for children,
13379         it is for their parents!
13380         (mswindows_edit_field_instantiate): Ditto.
13381         (mswindows_progress_gauge_instantiate): Ditto.
13382         (mswindows_tree_view_instantiate): Ditto.
13383         (mswindows_tab_control_instantiate): Ditto.
13384         (mswindows_scrollbar_instantiate): Ditto.
13385         (mswindows_combo_box_instantiate): Ditto.
13386         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13387         style to the "clip" window.
13388         (mswindows_button_instantiate): Removed compilation warning by
13389         equally typing terms of the ?: operator.
13390
13391 2000-01-12  Didier Verna  <didier@xemacs.org>
13392
13393         * redisplay.c (generate_fstring_runes): new parameter holding the
13394         last modeline-format extent.
13395         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13396         extent, fill the glyph block with it.
13397         (generate_fstring_runes): handle these parameters.
13398         (generate_formatted_string_db): ditto.
13399
13400         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13401         glyphs'extents in the modeline.
13402
13403 1999-01-11  Mike Woolley  <mike@bulsara.com>
13404
13405         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13406         256Mb, as a workaround for the non-starting problem many people
13407         have experienced.
13408
13409 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13410
13411         * console-tty.c (Fset_console_tty_output_coding_system):
13412         Force redrawing tty frame.
13413
13414 2000-01-10  Didier Verna  <didier@xemacs.org>
13415
13416         * redisplay.c (generate_fstring_runes): fix size computation bug.
13417
13418 2000-01-09  William M. Perry <wmperry@aventail.com>
13419
13420         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13421
13422 2000-01-09  Andy Piper  <andy@xemacs.org>
13423
13424         * glyphs-msw.c: index -> i to avoid shadows.
13425         (xbm_create_bitmap_from_data): make static.
13426         (check_valid_string_or_int): deleted.
13427         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13428
13429         * glyphs-x.c (x_update_subwindow): remove unused args.
13430
13431         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13432         back pointer - this is done in allocate_image_instance.
13433         (query_string_font): return Qnil to make the compiler happy.
13434         (unmap_subwindow): set to ~0 to make the compiler happy.
13435         (glyph_query_geometry): comment out until used.
13436         (glyph_layout): ditto.
13437
13438 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13439
13440         * insdel.c (signal_after_change): Remove extraneous unbind_to().