94fd20605450c249122860590e0212c68d09e737
[chise/xemacs-chise.git-] / src / ChangeLog
1 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * text-coding.c (decode_flush_er_chars): New inline function.
4         (decode_add_er_char): New function.
5         (decode_coding_utf8): Use `decode_flush_er_chars' and
6         `decode_add_er_char'.
7
8 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
9
10         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
11         done before `decode_output_utf8_partial_char'.
12
13         * mule-charset.c (complex_vars_of_mule_charset): Specify
14         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
15         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
16
17 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * mule-charset.c (decode_defined_char): New function; search
20         mother.
21         (decode_builtin_char): Don't search mother if
22         XCHARSET_MAX_CODE(charset) == 0.
23         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
24         == 0 even if code >= XCHARSET_MAX_CODE(charset).
25         (Fdecode_char): Use `decode_defined_char' instead of
26         `DECODE_DEFINED_CHAR'.
27         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
28         mother of `Vcharset_ucs_jis'.
29
30         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
31         instead of `DECODE_DEFINED_CHAR'.
32
33         * char-ucs.h (decode_defined_char): Renamed from
34         `DECODE_DEFINED_CHAR'; changed to normal function.
35         (DECODE_CHAR): Use `decode_defined_char' instead of
36         `DECODE_DEFINED_CHAR'.
37
38         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
39
40 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
41
42         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
43
44         * text-coding.c (Vcoded_charset_entity_reference_alist): New
45         variable.
46         (Quse_entity_reference): New variable.
47         (Qd): New variable.
48         (Qx): New variable.
49         (QX): New variable.
50         (coding_system_description): Add description for
51         `ccs_priority_list'.
52         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
53         (allocate_coding_system): Initialize `ccs_priority_list' in
54         UTF-2000.
55         (Fmake_coding_system): Add description about
56         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
57         (codesys).
58         (Fcoding_system_property): Accept `disable-composition' and
59         `use-entity-reference' in UTF-2000.
60         (struct decoding_stream): Add new member `er_counter' and `er_buf'
61         in UTF-2000.
62         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
63         (decode_coding_utf8): Decode entity-reference if
64         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
65         (char_encode_utf8): Encode non-Unicode characters as
66         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
67         (str->codesys).
68         (syms_of_file_coding): Add new symbols `use-entity-reference',
69         `d', `x', `X'.
70         (vars_of_file_coding): Add new variable
71         `coded-charset-entity-reference-alist'.
72         (complex_vars_of_file_coding): Declare `disable-composition' and
73         `use-entity-reference' to be coding-system-properties in UTF-2000.
74
75         * file-coding.h (struct Lisp_Coding_System): Add new member
76         `use_entity_reference' and `ccs_priority_list'.
77         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
78         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
79         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
80
81 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
82
83         * chartab.c (save_uint8_byte_table): Don't clear the table.
84         (save_uint16_byte_table): Likewise.
85         (save_byte_table): Likewise.
86         (Fmount_char_attribute_table): New function.
87         (syms_of_chartab): Add new builtin function
88         `mount-char-attribute-table'.
89
90 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * mule-charset.c (Fsave_charset_mapping_table): Open database as
93         "w+" mode.
94         (load_char_decoding_entry_maybe): Open database as read-only mode.
95
96         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
97         open database as "w+" mode.
98         (load_char_attribute_maybe): Open database as read-only mode.
99         (Fload_char_attribute_table): Likewise.
100
101 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
104         (char_table_description): Delete member `db_file'.
105         (Fmake_char_table): Don't refer `ct->db_file'.
106         (Fcopy_char_table): Likewise.
107         (Fsave_char_attribute_table): Likewise.
108         (Fclose_char_attribute_table): Likewise.
109         (Freset_char_attribute_table): Likewise.
110         (load_char_attribute_maybe): Likewise.
111         (Fload_char_attribute_table): Likewise.
112
113         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
114
115 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
118         (Fsave_char_attribute_table): Don't check `ct->db_file' if
119         `ct->db' is living.
120         (load_char_attribute_maybe): Likewise.
121         (Fload_char_attribute_table): Likewise.
122
123 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
124
125         * chartab.c (Fclose_char_attribute_table): Set Qnil on
126         `ct->db_file' unconditionally.
127
128 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
129
130         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
131         UTF-2000.
132         (char_table_description): Add description for `db_file' and `db'
133         in UTF-2000.
134         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
135         UTF-2000.
136         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
137         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
138         (Fclose_char_attribute_table): New function.
139         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
140         (load_char_attribute_maybe): Change interface; use `cit->db_file'
141         and `cit->db'.
142         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
143         (syms_of_chartab): Add new builtin function
144         `Fclose_char_attribute_table'.
145
146 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
147
148         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
149         `db' in UTF-2000.
150         (load_char_attribute_maybe): Change interface.
151         (get_char_id_table): Modify for `load_char_attribute_maybe'.
152
153 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
154
155         * database.h: Add an EXFUN for `Fdatabase_live_p'.
156
157 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
160         instead of `DECODE_CHAR' for mother; don't use special code for
161         chinese-big5 to use code space of chinese-big5-1 and
162         chinese-big5-2.
163         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
164         `MAX_CHAR_BIG5_CDP' for chinese-big5.
165
166         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
167         (MAX_CHAR_BIG5_CDP): Revival.
168
169 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
170
171         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
172         the XLFD registry-encoding name of `chinese-big5'.
173
174 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
175
176         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
177         (Qchinese_big5_cdp): Deleted.
178         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
179         (complex_vars_of_mule_charset): Delete coded-charset
180         `chinese-big5-cdp'.
181
182         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
183         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
184         `CHARSET_ID_OFFSET - n' for private CCS.
185         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
186         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
187         of `MIN_LEADING_BYTE'.
188         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
189         `(CHARSET_ID_OFFSET - 97)'.
190         (MIN_CHAR_BIG5_CDP): Deleted.
191         (MAX_CHAR_BIG5_CDP): Deleted.
192
193 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
196
197 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
200         (vars_of_mule): Add new variable `utf-2000-version' [moved from
201         chartab.c].
202
203         * chartab.c (Vutf_2000_version): Moved to mule.c.
204         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
205
206 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
207
208         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
209         when HAVE_CHISE_CLIENT is not defined.
210
211         * mule.c (vars_of_mule): Provide feature `chise' when
212         HAVE_CHISE_CLIENT is defined.
213
214 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
215
216         * config.h.in (UTF2000): Add comment.
217         (HAVE_CHISE_CLIENT): New macro.
218
219 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
220
221         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
222         CONSP.
223         (Fput_char_attribute): Likewise.
224         (char_attribute_system_db_file): Encode file-name of attribute.
225         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
226         the initial value.
227
228 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
229
230         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
231         (Fsave_charset_mapping_table): Use
232         `char_attribute_system_db_file'.
233         (load_char_decoding_entry_maybe): Likewise.
234
235         * chartab.h (Qsystem_char_id): New external variable.
236         (char_attribute_system_db_file): New prototype.
237
238         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
239         (char_attribute_system_db_file): New function.
240         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
241         (Freset_char_attribute_table): Likewise.
242         (load_char_attribute_maybe): Likewise.
243         (Fload_char_attribute_table): Likewise.
244         (syms_of_chartab): Add new symbol `system-char-id'.
245
246 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
247
248         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
249         `XCHARSET_GRAPHIC(ccs)'.
250
251 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
252
253         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
254
255 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
256
257         * chartab.c (Q_ucs_variants): New variable.
258         (syms_of_chartab): Add new symbol `->ucs-variants'.
259         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
260         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
261         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
262
263         * mule-charset.c (load_char_decoding_entry_maybe): New function.
264
265         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
266         `HAVE_DATABASE' is defined.
267         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
268         `HAVE_DATABASE' is defined.
269
270 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
271
272         * chartab.c (Fsave_char_attribute_table): Don't clear internal
273         attribute-table.
274         (Freset_char_attribute_table): New function.
275         (syms_of_chartab): Add new builtin function
276         `reset-char-attribute-table'.
277
278 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
279
280         * chartab.c (load_char_attribute_maybe): Don't make directories.
281
282 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
283
284         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
285
286         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
287         for decoding-table.
288
289 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
290
291         * mule-charset.c (Fsave_charset_mapping_table): Use
292         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
293
294         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
295         instead of `XCHARSET_CHARS'.
296
297 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
298
299         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
300         (XCHARSET_BYTE_SIZE): Likewise.
301
302         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
303         mule-charset.c].
304         (XCHARSET_BYTE_SIZE): Likewise.
305
306 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
307
308         * chartab.c (Fput_char_attribute): Use exec-directory instead of
309         data-directory to store database.
310         (Fsave_char_attribute_table): Likewise.
311         (load_char_attribute_maybe): Likewise.
312         (Fload_char_attribute_table): Likewise.
313
314 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
315
316         * mule-charset.c (Fsave_charset_mapping_table): New function.
317         (syms_of_mule_charset): Add new builtin function
318         `save-charset-mapping-table'.
319
320 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * char-ucs.h (decoding_table_check_elements): Delete prototype.
323         (get_ccs_octet_table): New inline function.
324         (put_ccs_octet_table): Likewise.
325         (decoding_table_put_char): Use `get_ccs_octet_table' and
326         `put_ccs_octet_table'.
327         (decoding_table_remove_char): Use `decoding_table_put_char'.
328         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
329
330         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
331         into encoding_table.
332         (make_charset): Use Qunbound instead Qnil as initial value of
333         decoding_table.
334
335 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
336
337         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
338         element is Qunloaded.
339         (map_over_uint16_byte_table): Likewise.
340         (map_over_byte_table): Likewise.
341         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
342         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
343         database support, load encoding-table of the specified
344         coded-charset if it is not loaded yet.
345         (save_uint8_byte_table): New function of UTF-2000 with external
346         database support.
347         (save_uint16_byte_table): Likewise.
348         (save_byte_table): Likewise.
349         (Fput_char_attribute): Don't store value into external database
350         even if the external database feature is supported in UTF-2000;
351         set `attribute' as name of char-table if the external database
352         feature is supported.
353         (Fsave_char_attribute_table): New function in UTF-2000.
354         (syms_of_chartab): Add new builtin function
355         `save-char-attribute-table' in UTF-2000.
356
357 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
358
359         * chartab.c (char_attribute_table_to_put): New variable in
360         UTF-2000.
361         (Qput_char_table_map_function): Likewise.
362         (value_to_put): Likewise.
363         (Fput_char_table_map_function): New function in UTF-2000.
364         (put_char_table): Use `Fmap_char_attribute' for
365         CHARTAB_RANGE_CHARSET in UTF-2000.
366         (Fput_char_attribute): Store symbol instead of string in
367         `XCHAR_TABLE_NAME (table)'.
368         (load_char_attribute_maybe): Likewise.
369         (syms_of_chartab): Add new symbol/function
370         `put-char-table-map-function'.
371
372 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
373
374         * database.h: Add new EXFUN for `Fmap_database'.
375
376         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
377         (syms_of_database): Likewise.
378
379         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
380         UTF-2000.
381         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
382         (XCHAR_TABLE_UNLOADED): Likewise.
383
384         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
385         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
386         HAVE_DATABASE is defined.
387         (char_attribute_table_to_load): New variable of UTF-2000 with
388         external database support.
389         (Qload_char_attribute_table_map_function): Likewise.
390         (Fload_char_attribute_table_map_function): New function of
391         UTF-2000 with external database support.
392         (Fload_char_attribute_table): New function of UTF-2000.
393         (Fmap_char_attribute): Call Fload_char_attribute_table if
394         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
395         (syms_of_chartab): Add new symbol and function
396         `load-char-attribute-table-map-function' in UTF-2000 with external
397         database support; add new function `load-char-attribute-table' in
398         UTF-2000.
399
400 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * chartab.h (load_char_attribute_maybe): New prototype for
403         UTF-2000 with DATABASE support.
404         (get_char_id_table): Use `load_char_attribute_maybe' if
405         HAVE_DATABASE is defined.
406
407         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
408         with DATABASE support.
409
410 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
411
412         * chartab.c (Fput_char_attribute): Use S-expression as key of
413         external database.
414
415         * chartab.h (get_char_id_table): Use S-expression as key of
416         external database.
417
418 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
421         if an element is not loaded, load the corresponding attributes
422         from an external database.
423         (map_over_uint16_byte_table): Likewise.
424         (map_over_byte_table): Likewise.
425         (map_char_table): Modify for `map_over_uint8_byte_table',
426         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
427         element is not loaded, load the corresponding attributes from an
428         external database.
429         (Fput_char_attribute): Change initial values to Qunloaded.
430
431         * chartab.h (get_char_id_table): If a character attribute is not
432         loaded and the attribute value is not found in an external
433         database, store Qunbound as the attribute value.
434
435 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
436
437         * chartab.c (BT_UINT8_unloaded): New macro.
438         (UINT8_VALUE_P): Accept Qunloaded.
439         (UINT8_ENCODE): Likewise.
440         (UINT8_DECODE): Likewise.
441         (BT_UINT16_unloaded): New macro.
442         (UINT16_VALUE_P): Accept Qunloaded.
443         (UINT16_ENCODE): Likewise.
444         (UINT16_DECODE): Likewise.
445         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
446         BT_UINT16_unloaded.
447         (mark_char_table): Mark `ct->name' in UTF-2000.
448         (char_table_description): Add `name' in UTF-2000.
449         (Fmake_char_table): Initialize `ct->name'.
450         (Fcopy_char_table): Copy `ct->name'.
451         (Fput_char_attribute): Store value into an external database if
452         HAVE_DATABASE is defined.
453
454         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
455         UTF-2000.
456         (CHAR_TABLE_NAME): New macro in UTF-2000.
457         (XCHAR_TABLE_NAME): New macro in UTF-2000.
458         (get_char_id_table): Try to read an external database if Qunloaded
459         is stored in a table.
460
461         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
462         Qunloaded.
463
464 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
465
466         * database.h: Add EXFUN definitions for Fopen_database,
467         Fput_database, Fget_database and Fclose_database.
468
469         * data.c (Qunloaded): New variable in UTF-2000.
470
471         * lisp.h (Qunloaded): New variable in UTF-2000.
472
473 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * mule-charset.c (put_char_ccs_code_point): Modify for
476         `decoding_table_remove_char' and `decoding_table_put_char'.
477         (remove_char_ccs): Modify for `decoding_table_remove_char'.
478
479         * char-ucs.h (decoding_table_remove_char): Change arguments to
480         hide decoding_table vector.
481         (decoding_table_put_char): Likewise.
482
483 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * mule-charset.c (decoding_table_remove_char): Moved to
486         char-ucs.h.
487         (decoding_table_put_char): Likewise.
488
489         * char-ucs.h (decoding_table_check_elements): New prototype [moved
490         from mule-charset.c].
491         (decoding_table_remove_char): New inline function [moved from
492         mule-charset.c].
493         (decoding_table_put_char): Likewise.
494
495 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
496
497         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
498         extension.
499
500 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
501
502         * mule-charset.c (decode_builtin_char): Support mother charsets.
503
504 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
505
506         * mule-charset.c (Q94x94x60): New variable.
507         (charset_code_point): Support conversion `94x94x60'.
508         (Fmake_charset): Likewise.
509         (syms_of_mule_charset): Add new symbol `94x94x60'.
510
511         * char-ucs.h (CONVERSION_94x94x60): New macro.
512
513 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
514
515         * mule-charset.c (charset_code_point): Unify code about
516         `code-offset'.
517
518 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
519
520         * mule-charset.c (charset_code_point): Merge code about builtin
521         characters into code about mother charsets; don't use
522         `range_charset_code_point'.
523         (range_charset_code_point): Deleted.
524
525 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
526
527         * mule-charset.c (Qcode_offset): New variable.
528         (Fmake_charset): Use `XUINT' to get value of `min-code' and
529         `max-code'; accept new property `code-offset'.
530         (syms_of_mule_charset): Add new symbol `code-offset'.
531
532 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * mule-charset.c (range_charset_code_point): Fixed.
535
536 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * mule-charset.c (decode_builtin_char): Change semantics of
539         code-offset of coded-charset.
540         (charset_code_point): Likewise.
541         (range_charset_code_point): Likewise.
542         (complex_vars_of_mule_charset): Modify for the change.
543
544 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * mule-charset.c (Fencode_char): Reverse arguments.
547
548         * mule-charset.c (charset_code_point): Fixed.
549
550 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * mule-charset.c (Vcharset_mojikyo): Deleted.
553         (Vcharset_mojikyo_2022_1): Deleted.
554         (Vcharset_mojikyo_pj_{1..21}): Deleted.
555         (Qmin_code): New variable in UTF-2000.
556         (Qmax_code): Likewise.
557         (Qmother): Likewise.
558         (Qconversion): Likewise.
559         (Q94x60): Likewise.
560         (Qmojikyo): Deleted.
561         (Qmojikyo_2022_1): Deleted.
562         (Qmojikyo_pj_{1..22}): Deleted.
563         (mark_charset): Mark `cs->mother'.
564         (charset_description): Add description for `mother'.
565         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
566         new arguments `mother' and `conversion'; use
567         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
568         (charset_code_point): Moved from char-ucs.h; support `mother'
569         charset feature.
570         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
571         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
572         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
573         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
574         allow 2 as the value of `graphic' in UTF-2000; add new properties
575         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
576         require `final' in UTF-2000; modify for `make_charset'.
577         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
578         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
579         (Fcharset_property): Support `mother', `min-code' and `max-code'.
580         (Fencode_char): New function.
581         (syms_of_mule_charset): Add new builtin function `encode-char' in
582         UTF-2000; add new symbols `min-code', `max-code', `mother',
583         `conversion' and `94x60'; delete symbols `mojikyo',
584         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
585         (complex_vars_of_mule_charset): Modify for `make_charset' change;
586         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
587         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
588
589         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
590         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
591
592         * char-ucs.h (Vcharset_mojikyo): Deleted.
593         (Vcharset_mojikyo_2022_1): Deleted.
594         (LEADING_BYTE_MOJIKYO): Deleted.
595         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
596         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
597         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
598         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
599         add new member `mother'; add new member `conversion'.
600         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
601         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
602         (CHARSET_MOTHER): New macro.
603         (CHARSET_CONVERSION): New macro.
604         (CONVERSION_IDENTICAL): New macro.
605         (CONVERSION_94x60): New macro.
606         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
607         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
608         (XCHARSET_MOTHER): New macro.
609         (XCHARSET_CONVERSION): New macro.
610         (MIN_CHAR_MOJIKYO): Deleted.
611         (MAX_CHAR_MOJIKYO): Deleted.
612         (DECODE_MOJIKYO_2022): Deleted.
613         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
614         (charset_code_point): Changed to non-inline function.
615         (encode_char_1): Use `charset_code_point'.
616         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
617
618 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
619
620         * lread.c (read_compiled_function): Fix prototype.
621         (read_vector): Likewise.
622
623 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * lrecord.h (struct lrecord_header): Delete `older'.
626         (set_lheader_implementation): Delete code for `older'.
627         (set_lheader_older_implementation): Deleted.
628         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
629         (OLDER_RECORD_P): Deleted.
630         (OLDER_RECORD_HEADER_P): Deleted.
631         (alloc_older_lcrecord): Deleted.
632         (alloc_older_lcrecord_type): Deleted.
633
634         * alloc.c (all_older_lcrecords): Deleted.
635         (alloc_older_lcrecord): Deleted.
636         (disksave_object_finalization_1): Delete code for older objects.
637         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
638         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
639
640 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * mule-charset.c (decoding_table_put_char): Use `make_vector'
643         instead of `make_older_vector'.
644         (put_char_ccs_code_point): Likewise.
645         (mark_charset): Mark `cs->decoding_table'.
646         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
647
648         * lisp.h (make_older_vector): Deleted.
649         (make_vector_newer): Deleted.
650
651         * config.h.in (HAVE_GGC): Deleted.
652
653         * alloc.c (make_older_vector): Deleted.
654         (make_vector_newer_1): Deleted.
655         (make_vector_newer): Deleted.
656
657 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
660         (Qideograph_daikanwa_2): New variable.
661         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
662         (complex_vars_of_mule_charset): Add new coded-charset
663         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
664         `LEADING_BYTE_DAIKANWA'.
665
666         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
667         (LEADING_BYTE_DAIKANWA_1): New macro.
668         (LEADING_BYTE_DAIKANWA_2): New macro.
669         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
670
671 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
672
673         * mule-charset.c (complex_vars_of_mule_charset): Change
674         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
675         the second revised version.
676
677 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * mule-charset.c (Vcharset_ucs_smp): New variable.
680         (Vcharset_ucs_sip): New variable.
681         (Qucs_smp): New variable.
682         (Qucs_sip): New variable.
683         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
684         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
685         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
686         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
687         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
688         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
689
690         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
691         (LEADING_BYTE_UCS_SIP): New macro.
692         (MIN_CHAR_SMP): New macro.
693         (MAX_CHAR_SMP): New macro.
694         (MIN_CHAR_SIP): New macro.
695         (MAX_CHAR_SIP): New macro.
696
697 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
698
699         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
700         utf-2000.
701
702 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
703
704         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
705         value; don't store value into `encoding_table' of `Lisp_Charset'.
706         (mark_charset): `encoding_table' was deleted.
707         (charset_description): Likewise.
708         (make_charset): Likewise.
709         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
710         `put_char_ccs_code_point'.
711
712         * chartab.h (Fput_char_attribute): New EXFUN.
713
714         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
715         is unified with normal symbol space.
716         (Fget_char_attribute): Likewise.
717         (Fput_char_attribute): Likewise; behavior of
718         `put_char_ccs_code_point' is changed.
719
720         * char-ucs.h: Include "elhash.h".
721         (Vchar_attribute_hash_table): New external variable.
722         (struct Lisp_Charset): Delete `encoding_table'.
723         (CHARSET_ENCODING_TABLE): New implementation; refer
724         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
725         `Lisp_Charset'.
726
727 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
730         (cs) == 0.
731
732 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * text-coding.c (char_encode_big5): Prefer charset-g1 than
735         `chinese-big5'.
736
737 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
738
739         * chartab.c (uint8_byte_table_description): New constant.
740         (uint8-byte-table): Use `uint8_byte_table_description'.
741         (uint16_byte_table_description): New constant.
742         (uint16-byte-table): Use `uint16_byte_table_description'.
743
744 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
745
746         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
747         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
748
749 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * mule-charset.c (Vcharset_ucs_ks): New variable.
752         (Qucs_ks): New variable.
753         (syms_of_mule_charset): Add new symbol `ucs-ks'.
754         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
755
756         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
757
758 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
759
760         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
761         (Fdecode_char): Likewise.
762
763         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
764         chartab.h.
765         (Fdefine_char): Modify for Fdecode_char.
766         (Ffind_char): Likewise.
767
768         * mule-charset.c (Fdecode_char): Add new optional argument
769         `defined-only'.
770         (Fdecode_builtin_char): Modify for `Fdecode_char'.
771
772 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
773
774         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
775         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
776         (allocate_coding_system): Initialize initial-charsets of
777         CODESYS_BIG5 in XEmacs UTF-2000.
778         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
779         CODESYS_BIG5 in XEmacs UTF-2000.
780         (decode_coding_big5): Use initial-charset-g0 and -g1 of
781         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
782
783         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
784         variables.
785         (Qideograph_hanziku_{1 .. 12}): Likewise.
786         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
787         .. 12}'.
788         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
789         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
790         `ideograph-hanziku-{1 .. 12}'.
791
792         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
793         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
794         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
795         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
796         (DECODE_DEFINED_CHAR): New inline function.
797         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
798
799 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * mule-charset.c (Vcharset_china3_jef): Renamed from
802         `Vcharset_japanese_jef_china3'.
803         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
804         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
805         `{MIN|MAX}_CHAR_JEF_CHINA3'..
806         (syms_of_mule_charset): Rename `china3-jef' from
807         `japanese-jef-china3'.
808         (complex_vars_of_mule_charset): Likewise; rename
809         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
810
811         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
812         `LEADING_BYTE_JEF_CHINA3'.
813         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
814         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
815
816 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
817
818         * mule-charset.c (encode_builtin_char_1): Comment out special code
819         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
820
821         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
822         (MAX_CHAR_MOJIKYO_0): Comment out.
823         (MIN_CHAR_CBETA): Changed to 0x00E20000.
824         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
825         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
826         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
827
828 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
829
830         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
831         (Qideograph_cbeta): New variable.
832         (encode_builtin_char_1): Comment out special code for
833         coded-charset `mojikyo' and `japanese-jef-china3'.
834         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
835         (complex_vars_of_mule_charset): Add new coded-charset
836         `ideograph-cbeta'.
837
838         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
839         (MIN_CHAR_CBETA): New macro.
840         (MAX_CHAR_CBETA): New macro.
841
842 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
845         (LEADING_BYTE_JEF_CHINA3): New macro.
846         (MIN_CHAR_JEF_CHINA3): New macro.
847         (MAX_CHAR_JEF_CHINA3): Likewise.
848         (DECODE_CHAR): Fixed.
849
850 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
853         (Qjapanese_jef_china3): New variable.
854         (encode_builtin_char_1): Support `japanese-jef-china3'.
855         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
856         (complex_vars_of_mule_charset): Add new coded-charset
857         `japanese-jef-china3'.
858
859 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
862         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
863         94^4, 96^3, 96^4, 128^n and 256^n set.
864         (put_char_table): Use `XCHARSET_CELL_RANGE'.
865         (map_char_table): Likewise.
866
867 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
868
869         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
870         UTF-2000.
871
872 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * chartab.h (get_char_id_table): New inline function.
875
876         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
877         function.
878
879 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * chartab.h (decode_char_table_range): New prototype in XEmacs
882         UTF-2000.
883         (put_char_id_table): New inline function in XEmacs UTF-2000.
884
885         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
886         function.
887         (decode_char_table_range): Delete static declaration in XEmacs
888         UTF-2000.
889
890 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * chartab.c (put_char_id_table): Use `put_char_table'.
893
894 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
895
896         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
897         (map_over_uint16_byte_table): Likewise.
898         (map_over_byte_table): Likewise.
899         (map_char_table): Modify for `map_over_uint8_byte_table',
900         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
901         UTF-2000.
902
903 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * chartab.c (struct map_char_table_for_charset_arg): New
906         structure.
907         (map_char_table_for_charset_fun): New function.
908         (map_char_table): Use `map_char_table' for encoding_table of
909         `range->charset'.
910
911 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
912
913         * chartab.c (map_char_table): Check a character is found in
914         range->charset instead of non default value is defined in
915         char-table when range is CHARTAB_RANGE_ROW.
916
917 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * chartab.c (map_char_id_table): Deleted.
920         (Fmap_char_attribute): Use `map_char_table' instead of
921         `map_char_id_table'.
922
923 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
926         UTF-2000.
927         (update_syntax_table): Deleted in XEmacs UTF-2000.
928
929         * syntax.c (find_defun_start): Use `syntax_table' instead of
930         `mirror_syntax_table' in XEmacs UTF-2000.
931         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
932         UTF-2000.
933         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
934         XEmacs UTF-2000.
935         (Fmatching_paren): Likewise.
936         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
937         in XEmacs UTF-2000.
938         (find_start_of_comment): Likewise.
939         (find_end_of_comment): Likewise.
940         (Fforward_comment): Likewise.
941         (scan_lists): Likewise.
942         (char_quoted): Likewise.
943         (Fbackward_prefix_chars): Likewise.
944         (scan_sexps_forward): Likewise.
945         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
946         (update_syntax_table): Likewise.
947
948         * search.c (skip_chars): Use `syntax_table' instead of
949         `mirror_syntax_table' in XEmacs UTF-2000.
950         (wordify): Likewise.
951         (Freplace_match): Likewise.
952
953         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
954         `mirror_syntax_table' in XEmacs UTF-2000.
955         (WORDCHAR_P_UNSAFE): Likewise.
956         (re_match_2_internal): Likewise.
957
958         * font-lock.c (find_context): Use `buf->syntax_table' instead of
959         `buf->mirror_syntax_table' in XEmacs UTF-2000.
960
961         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
962         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
963
964         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
965         XEmacs UTF-2000.
966
967         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
968         UTF-2000.
969         (print_char_table): Print `default_value' in XEmacs UTF-2000.
970         (char_table_description): Delete `mirror_table' in XEmacs
971         UTF-2000.
972         (fill_char_table): Don't call `update_syntax_table' in XEmacs
973         UTF-2000.
974         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
975         (Fcopy_char_table): Likewise.
976         (put_char_table): Don't call `update_syntax_table' in XEmacs
977         UTF-2000.
978
979         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
980         `buf->mirror_syntax_table' in XEmacs UTF-2000.
981         (casify_region_internal): Likewise.
982
983         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
984
985         * buffer.c (common_init_complex_vars_of_buffer): Don't use
986         `mirror_syntax_table' in XEmacs UTF-2000.
987
988         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
989         `buf->mirror_syntax_table' in XEmacs UTF-2000.
990         (Fexpand_abbrev): Likewise.
991
992 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
993
994         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
995
996 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
999         (map_over_uint16_byte_table): Likewise.
1000         (map_over_byte_table): Likewise.
1001         (get_char_id_table): Refer `cit->default_value'.
1002         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1003         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1004         of character-id ranges.
1005         (mark_char_table): Mark `ct->default_value'.
1006         (char_table_description): Add `default_value'.
1007         (fill_char_table): Use `default_value'.
1008         (decode_char_table_range): Decode `nil' as
1009         `CHARTAB_RANGE_DEFAULT'.
1010         (get_char_id_table): Refer `cit->default_value'.
1011         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1012         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1013         temporary hack; check value of char-table is bound or not.
1014         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1015
1016         * chartab.h (struct Lisp_Char_Table): Add new member
1017         `default_value' in XEmacs UTF-2000.
1018         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1019         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1020         UTF-2000.
1021
1022 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1023
1024         * chartab.h (Lisp_Char_ID_Table): Deleted.
1025
1026         * chartab.c (char_table_description): Fix typo.
1027         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1028         `Lisp_Char_ID_Table'.
1029
1030 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1031
1032         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1033         `CHAR_ID_TABLE_P'.
1034
1035         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1036         `CHAR_ID_TABLE_P'.
1037
1038         * chartab.h (XCHAR_ID_TABLE): Deleted.
1039         (XSETCHAR_ID_TABLE): Deleted.
1040         (CHAR_ID_TABLE_P): Deleted.
1041
1042         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1043         `CHAR_ID_TABLE_P'.
1044         (Fget_composite_char): Likewise.
1045         (put_char_table): Likewise.
1046         (add_char_attribute_alist_mapper): Fixed.
1047         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1048         `CHAR_ID_TABLE_P'.
1049         (Fget_char_attribute): Likewise.
1050         (Fget_char_attribute): Likewise.
1051         (Fmap_char_attribute): Likewise.
1052
1053         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1054         `CHAR_ID_TABLE_P'.
1055         (encode_char_1): Likewise.
1056
1057 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1058
1059         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1060         `XCHAR_ID_TABLE'.
1061
1062         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1063         instead of `XCHAR_ID_TABLE'.
1064         (remove_char_ccs): Likewise.
1065
1066         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1067         `XCHAR_ID_TABLE'.
1068         (Fget_composite_char): Likewise.
1069         (Fchar_variants): Likewise.
1070         (put_char_table): Likewise.
1071         (add_char_attribute_alist_mapper): Likewise.
1072         (Fchar_attribute_alist): Likewise.
1073         (Fget_char_attribute): Likewise.
1074         (Fput_char_attribute): Likewise.
1075         (Fmap_char_attribute): Likewise.
1076         (Fmap_char_attribute): Likewise.
1077
1078         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1079         `XCHAR_ID_TABLE'.
1080         (encode_char_1): Likewise.
1081
1082 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1083
1084         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1085         `Lisp_Char_ID_Table'.
1086         (mark_char_id_table): Deleted.
1087         (print_char_id_table): Likewise.
1088         (char_id_table_equal): Likewise.
1089         (char_id_table_hash): Likewise.
1090         (char_id_table_description): Likewise.
1091         (char_id_table): Likewise.
1092         (make_char_id_table): Use `Fmake_char_table' and
1093         `fill_char_table'.
1094         (get_char_id_table): Use `Lisp_Char_Table' instead of
1095         `Lisp_Char_ID_Table'.
1096         (put_char_id_table): Likewise.
1097         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1098         `XCHAR_ID_TABLE'.
1099         (Fremove_char_attribute): Likewise.
1100         (syms_of_chartab): Don't define type `char-id-table'.
1101
1102         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1103         (char_id_table): Likewise.
1104         (GC_CHAR_ID_TABLE_P): Likewise.
1105         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1106         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1107         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1108         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1109         (get_char_id_table): Use `Lisp_Char_Table' instead of
1110         `Lisp_Char_ID_Table'.
1111         (put_char_id_table_0): Likewise.
1112         (put_char_id_table): Likewise.
1113
1114 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1115
1116         * chartab.h: Lisp_Byte_Table related codes are moved from
1117         chartab.h.
1118
1119         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1120
1121 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1122
1123         * chartab.h: Don't include "chartab.h".
1124         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1125         (Lisp_Char_ID_Table): Likewise.
1126         (char_id_table): Likewise.
1127         (XCHAR_ID_TABLE): Likewise.
1128         (XSETCHAR_ID_TABLE): Likewise.
1129         (CHAR_ID_TABLE_P): Likewise.
1130         (GC_CHAR_ID_TABLE_P): Likewise.
1131         (get_char_id_table): Likewise.
1132
1133         * char-ucs.h: Include "chartab.h".
1134         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1135         (Lisp_Char_ID_Table): Likewise.
1136         (char_id_table): Likewise.
1137         (XCHAR_ID_TABLE): Likewise.
1138         (XSETCHAR_ID_TABLE): Likewise.
1139         (CHAR_ID_TABLE_P): Likewise.
1140         (GC_CHAR_ID_TABLE_P): Likewise.
1141         (get_char_id_table): Likewise.
1142
1143 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1144
1145         * chartab.c (copy_uint8_byte_table): New function.
1146         (copy_uint16_byte_table): New function.
1147         (copy_byte_table): New function.
1148         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1149         characters to call.
1150         (map_over_uint16_byte_table): Likewise.
1151         (map_over_byte_table): Likewise.
1152         (get_byte_table): Move prototype to chartab.h.
1153         (put_byte_table): Likewise.
1154         (put_char_id_table_0): Moved to chartab.h.
1155         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1156         (char_table_entry_equal): Likewise.
1157         (char_table_entry_hash): Likewise.
1158         (char_table_entry_description): Likewise.
1159         (char_table_entry): Likewise.
1160         (make_char_table_entry): Likewise.
1161         (copy_char_table_entry): Likewise.
1162         (get_non_ascii_char_table_value): Likewise.
1163         (map_over_charset_ascii): Likewise.
1164         (map_over_charset_control_1): Likewise.
1165         (map_over_charset_row): Likewise.
1166         (map_over_other_charset): Likewise.
1167         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1168         (print_char_table): Likewise.
1169         (char_table_equal): Likewise.
1170         (char_table_hash): Likewise.
1171         (char_table_description): Likewise.
1172         (fill_char_table): Likewise.
1173         (Fcopy_char_table): Likewise.
1174         (get_char_table): Likewise.
1175         (Fget_range_char_table): Likewise.
1176         (put_char_table): Likewise.
1177         (map_char_table): Likewise.
1178         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1179         UTF-2000.
1180
1181 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182
1183         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1184         `Vauto_fill_chars' in XEmacs UTF-2000.
1185
1186         * chartab.h (get_byte_table): New prototype [moved from
1187         chartab.c].
1188         (put_byte_table): Likewise [moved from chartab.c].
1189         (put_char_id_table_0): New inline function [moved from chartab.c].
1190         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1191         (Lisp_Char_Table_Entry): Likewise.
1192         (char_table_entry): Likewise.
1193         (XCHAR_TABLE_ENTRY): Likewise.
1194         (XSETCHAR_TABLE_ENTRY): Likewise.
1195         (CHAR_TABLE_ENTRYP): Likewise.
1196         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1197         (NUM_ASCII_CHARS): Likewise.
1198         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1199         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1200
1201 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1202
1203         * chartab.c (get_char_id_table): Change interface.
1204         (put_char_id_table_0): New function.
1205         (put_char_id_table): Change interface; new implementation.
1206         (Fget_composite_char): Modify for interface change of
1207         `get_char_id_table'.
1208         (Fchar_variants): Likewise.
1209         (add_char_attribute_alist_mapper): Likewise.
1210         (Fchar_attribute_alist): Likewise.
1211         (Fget_char_attribute): Likewise.
1212         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1213         as same as character as the first argument like `put-char-table';
1214         modify for interface change of `put_char_id_table'.
1215         (Fremove_char_attribute): Modify for interface change of
1216         `put_char_id_table'.
1217
1218 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1219
1220         * text-coding.c: Sync up with XEmacs 21.2.41.
1221         (COMPOSE_ADD_CHAR): Modify for interface change of
1222         `get_char_id_table'.
1223
1224         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1225         change of `put_char_id_table'.
1226         (remove_char_ccs): Likewise.
1227
1228         * chartab.h (put_char_id_table): Change interface.
1229
1230         * char-ucs.h (get_char_id_table): Change interface.
1231         (charset_code_point): Modify for interface change of
1232         `get_char_id_table'.
1233         (encode_char_1): Likewise.
1234
1235 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1236
1237         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1238         argument `ccs'.
1239         (map_over_uint16_byte_table): Likewise.
1240         (map_over_byte_table): Likewise.
1241         (map_char_id_table): Add new argument `range' like
1242         `map_char_table'.
1243         (Fmap_char_attribute): Add new argument `range' like
1244         `Fmap_char_table'.
1245
1246 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1247
1248         * chartab.c (map_over_uint8_byte_table): Change interface of
1249         mapping function to use struct chartab_range instead of Emchar.
1250         (map_over_uint16_byte_table): Likewise.
1251         (map_over_byte_table): Likewise.
1252         (map_char_id_table): Likewise.
1253         (struct slow_map_char_id_table_arg): Deleted.
1254         (slow_map_char_id_table_fun): Deleted.
1255         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1256         function `slow_map_char_table_fun' instead of struct
1257         `slow_map_char_id_table_arg' and function
1258         `slow_map_char_id_table_fun'.
1259
1260 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * mule-charset.c: Move char-it-table related codes to chartab.c.
1263         (Vutf_2000_version): Moved to chartab.c.
1264         (Fdefine_char): Likewise.
1265         (Ffind_char): Likewise.
1266         (syms_of_mule_charset): Move types `uint8-byte-table',
1267         `uint16-byte-table', `byte-table' and `char-id-table' to
1268         chartab.c; move functions `char_attribute_list,
1269         `find_char_attribute_table, `char_attribute_alist,
1270         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1271         `map_char_attribute, `define_char, `find_char, `char_variants and
1272         `get_composite_char to chartab.c; move symbols `=>ucs',
1273         `->decomposition', `compat', `isolated', `initial', `medial',
1274         `final', `vertical', `noBreak', `fraction', `super', `sub',
1275         `circle', `square', `wide', `narrow', `small' and `font' to
1276         chartab.c.
1277         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1278         setting codes for `Vcharacter_composition_table' and
1279         `Vcharacter_variant_table' to chartab.c.
1280         (complex_vars_of_mule_charset): Move setting code for
1281         `Vchar_attribute_hash_table' to chartab.c.
1282
1283         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1284         (make_char_id_table): New prototype.
1285         (put_char_id_table): Likewise.
1286         (Fget_char_attribute): Likewise.
1287
1288         * chartab.c: Move char-id-table related code from mule-charset.c.
1289         (Vutf_2000_version): Moved from mule-charset.c.
1290
1291         * char-ucs.h (Qucs): New external variable.
1292         (put_char_ccs_code_point): New prototype.
1293         (remove_char_ccs): Likewise.
1294
1295 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1296
1297         * mule-charset.c (Vcharset_ucs_jis): New variable.
1298         (Qucs_jis): Likewise.
1299         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1300         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1301
1302         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1303
1304 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1305
1306         * mule-charset.c (map_over_uint8_byte_table): New function.
1307         (map_over_uint16_byte_table): Likewise.
1308         (map_over_byte_table): Likewise.
1309         (map_char_id_table): Likewise.
1310         (slow_map_char_id_table_fun): Likewise.
1311         (Fmap_char_attribute): Likewise.
1312         (syms_of_mule_charset): Add new function `map-char-attribute'.
1313
1314 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1315
1316         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1317         (syms_of_mule_charset): Add new function `find-char'.
1318
1319 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1320
1321         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1322         XEmacs UTF-2000.
1323         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1324         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1325         XEmacs UTF-2000.
1326         (complex_vars_of_mule_charset): Add new coded-charset
1327         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1328         `ideograph-gt-pj-*'.
1329
1330         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1331
1332 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * mule-charset.c (encode_builtin_char_1): Purge codes about
1335         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1336         {MIN|MAX}_CHAR_HEBREW.
1337         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1338         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1339
1340         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1341         (MAX_CHAR_GREEK): Purged.
1342         (MIN_CHAR_CYRILLIC): Purged.
1343         (MAX_CHAR_CYRILLIC): Purged.
1344         (MIN_CHAR_HEBREW): Commented out.
1345         (MAX_CHAR_HEBREW): Likewise.
1346
1347 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * mule-charset.c (Qto_ucs): New variable.
1350         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1351         (Fdefine_char): Likewise.
1352         (syms_of_mule_charset): Add new symbol `=>ucs'.
1353
1354 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1355
1356         * mule-charset.c (Fdecode_char): Fixed.
1357
1358 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1359
1360         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1361         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1362         "tcvn5712-1".
1363
1364 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1365
1366         * mule-charset.c (Vcharset_ucs_big5): New variable.
1367         (Qucs_big5): Likewise.
1368         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1369         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1370
1371         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1372
1373 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * mule-charset.c (decode_builtin_char): Check Big5 code range
1376         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1377
1378 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1381         (Qchinese_gb12345): Likewise.
1382         (Fdecode_builtin_char): Fixed.
1383         (syms_of_mule_charset): Add `chinese-gb12345'.
1384         (complex_vars_of_mule_charset): Add coded-charset
1385         `chinese-gb12345'.
1386
1387         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1388         (LEADING_BYTE_CHINESE_GB12345): New macro.
1389
1390 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1391
1392         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1393         and `latin-viscii-upper' for `latin-viscii'.
1394
1395 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * mule-charset.c (Fdecode_builtin_char): Comment out
1398         regularization code for ISO-IR GR representation.
1399
1400 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1401
1402         * mule-charset.c (decode_builtin_char): New function; renamed from
1403         `make_builtin_char'; return -1 instead of signal.
1404         (Fdecode_builtin_char): Use `decode_builtin_char'.
1405
1406         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1407         `make_builtin_char'.
1408         (DECODE_CHAR): Use `decode_builtin_char' instead of
1409         `make_builtin_char'; use mapping table of `chinese-big5' for
1410         `chinese-big5-{1,2}'.
1411
1412 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1413
1414         * text-coding.c (char_encode_big5): New function.
1415         (char_finish_big5): Likewise.
1416         (reset_encoding_stream): Use `char_encode_big5' and
1417         `char_finish_big5' for CODESYS_BIG5.
1418         (mule_encode): Don't use `encode_coding_big5'.
1419         (encode_coding_big5): Deleted.
1420
1421 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1422
1423         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1424         0x81- in XEmacs UTF-2000.
1425         (detect_coding_big5): Likewise.
1426
1427 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1430         generate character-id if the CCS property does not have
1431         corresponding predefined character.
1432         (make_builtin_char): Return -1 if corresponding predefined
1433         character is not found.
1434         (Fdecode_char): Return nil if corresponding character is not
1435         found.
1436         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1437         don't map to builtin ucs space.
1438
1439 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1440
1441         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1442         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1443
1444 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445
1446         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1447         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1448         (Qideograph_gt): Likewise.
1449         (Qideograph_gt_pj_{1..11}): Likewise.
1450         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1451         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1452         `ideograph-gt-pj-11'.
1453         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1454         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1455         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1456
1457         * char-ucs.h (LEADING_BYTE_GT): New macro.
1458         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1459         (MIN_CHAR_GT): Likewise.
1460         (MAX_CHAR_GT): Likewise.
1461
1462 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1465         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1466
1467         * doprnt.c (unsigned_int_converters): Add `c'.
1468         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1469
1470         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1471         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1472         `MIN_CHAR_MOJIKYO'.
1473         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1474         (MAX_CHAR_MOJIKYO_0): New macro.
1475         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1476
1477 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1478
1479         * mule-charset.c (Fdefine_char): Delete cemented out code.
1480         (encode_builtin_char_1): Modify for new allocation of builtin
1481         Mojikyo characters.
1482
1483         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1484
1485 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * mule-charset.c (Vcharset_ucs_cns): New variable.
1488         (Qucs_cns): New variable.
1489         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1490         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1491
1492 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1493
1494         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1495
1496 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1497
1498         * search.c (search_buffer): Make `charset_base_code' as
1499         character-id >> 6 to eliminate the corresponding last byte in
1500         UTF-8 representation [I'm not sure it is right thing].
1501         (boyer_moore): Likewise.
1502
1503 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1504
1505         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1506         representation in MULE.
1507
1508 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * text-coding.c (Fmake_coding_system): Use
1511         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1512         `EXTERNAL_PROPERTY_LIST_LOOP'.
1513
1514 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515
1516         * text-coding.c (decode_output_utf8_partial_char): New function.
1517         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1518
1519 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * text-coding.c (decode_coding_utf8): Output original byte
1522         sequence if it is broken; change order of conditions.
1523
1524         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1525         of conditions.
1526
1527         * mb-multibyte.h (BYTE_ASCII_P):
1528         Use bit ops for char-signedness safety.
1529         (BYTE_C0_P): Use bit ops for char-signedness safety.
1530         (BYTE_C1_P): Use bit ops for char-signedness safety.
1531
1532         * character.h: (XCHAR_OR_CHAR_INT):
1533         Always use inline function.
1534         Remove redundant type checking assert() - XINT will abort quite
1535         nicely.
1536
1537 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * text-coding.c: (Fencode_shift_jis_char):
1540         (Fencode_big5_char):
1541         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1542         Replace 0 with '\0' when working with bytes.
1543         Replace initial "(" with "\(" in docstrings.
1544
1545         (Fmake_coding_system):
1546         When type is ccl and value is vector, register it with a proper
1547         symbol.  And checks whether the given ccl program is valid.
1548         (mule_decode): When calling ccl_driver, if src indicates
1549         NULL pointer, set an empty string instead.
1550         (mule_encode): Likewise.
1551
1552         (detect_eol_type):
1553         (detect_coding_sjis):
1554         (decode_coding_sjis):
1555         (detect_coding_big5):
1556         (decode_coding_big5):
1557         (detect_coding_ucs4):
1558         (decode_coding_ucs4):
1559         (detect_coding_utf8):
1560         (decode_coding_utf8):
1561         (detect_coding_iso2022):
1562         (decode_coding_iso2022):
1563         (decode_coding_no_conversion):
1564         (mule_decode):
1565         Make all detecting and decoding functions take an Extbyte * arg.
1566         (text_encode_generic):
1567         (encode_coding_big5):
1568         (encode_coding_no_conversion):
1569         (mule_encode):
1570         Make all encoding functions take a Bufbyte * arg.
1571         Use size_t instead of unsigned int for memory sizes.
1572         Only cast to unsigned char whenever dereferencing Extbyte *.
1573
1574         (struct lrecord_description fcd_description_1): Use countof.
1575         (complex_vars_of_file_coding):
1576         Use countof instead of sizeof.
1577         Use CHECK_NATNUM instead of CHECK_INT.
1578
1579 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1580
1581         * mule-charset.c (Fget_char_attribute): Add new optional argument
1582         `default-value'.
1583         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1584         (remove_char_ccs): Likewise.
1585
1586 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1587
1588         * text-coding.c (char_encode_shift_jis): New implementation in
1589         UTF-2000.
1590         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1591         ...)'.
1592
1593         * mule-charset.c (Vcharset_chinese_big5): New variable in
1594         UTF-2000.
1595         (Qchinese_big5): New variable in UTF-2000.
1596         (BIG5_SAME_ROW): New macro in UTF-2000.
1597         (make_builtin_char): Use builtin characters of
1598         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1599         characters of `Vcharset_chinese_big5'.
1600         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1601         (complex_vars_of_mule_charset): Add new coded-charset
1602         `chinese-big5' in UTF-2000.
1603
1604         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1605         (Vcharset_chinese_big5): New external variable declaration.
1606         (Vcharset_japanese_jisx0208_1990): Likewise.
1607
1608 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1609
1610         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1611         function.
1612         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1613
1614 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1615
1616         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1617         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1618         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1619         `mojikyo-pj-*'.
1620
1621 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622
1623         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1624
1625 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1626
1627         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1628         to 0.17.
1629
1630 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631
1632         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1633         for `CHARSET_BY_ATTRIBUTES'.
1634         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1635         `CHARSET_BY_ATTRIBUTES'.
1636
1637         * text-coding.c (struct decoding_stream): Rename member `CH' to
1638         `CPOS'.
1639         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1640         (decode_coding_sjis): Likewise.
1641         (decode_coding_big5): Likewise.
1642         (decode_coding_ucs4): Likewise.
1643         (decode_coding_utf8): Likewise.
1644         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1645         `CHARSET_BY_ATTRIBUTES'.
1646         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1647         `str->counter'; decode 3, 4 bytes sets.
1648         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1649         sets.
1650         (decode_coding_no_conversion): Use `str->cpos' instead of
1651         `str->ch'.
1652
1653         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1654         (Qmojikyo_2022_1): New variable.
1655         (make_charset): Don't use `CHARSET_TYPE_*'.
1656         (range_charset_code_point): Support coded-charset
1657         `mojikyo-2022-1'.
1658         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1659         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1660         `CHARSET_BY_ATTRIBUTES'.
1661         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1662         `CHARSET_BY_ATTRIBUTES'.
1663         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1664         (complex_vars_of_mule_charset): Add new coded-charset
1665         `mojikyo-2022-1'.
1666
1667         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1668         interface; changed to inline function.
1669
1670         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1671         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1672         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1673         (CHARSET_TYPE_94): Deleted.
1674         (CHARSET_TYPE_94X94): Deleted.
1675         (CHARSET_TYPE_96): Deleted.
1676         (CHARSET_TYPE_96X96): Deleted.
1677         (CHARSET_TYPE_128): Deleted.
1678         (CHARSET_TYPE_128X128): Deleted.
1679         (CHARSET_TYPE_256): Deleted.
1680         (CHARSET_TYPE_256X256): Deleted.
1681         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1682         to inline function.
1683         (DECODE_MOJIKYO_2022): New inline function.
1684         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1685         `Vcharset_mojikyo_2022_1'.
1686
1687 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1688
1689         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1690         instead of `EQ'.
1691         (put_byte_table): Likewise.
1692         (char_id_table_equal): Use `get_byte_table' [new implementation].
1693
1694 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1695
1696         * mule-charset.c: Include <limits.h> in UTF-2000.
1697         (BT_UINT8_MIN): New macro in UTF-2000.
1698         (BT_UINT8_MAX): New macro in UTF-2000.
1699         (BT_UINT8_t): New macro in UTF-2000.
1700         (BT_UINT8_nil): New macro in UTF-2000.
1701         (BT_UINT8_unbound): New macro in UTF-2000.
1702         (INT_UINT8_P): New inline function in UTF-2000.
1703         (UINT8_VALUE_P): New inline function in UTF-2000.
1704         (UINT8_ENCODE): New inline function in UTF-2000.
1705         (UINT8_DECODE): New inline function in UTF-2000.
1706         (mark_uint8_byte_table): New function in UTF-2000.
1707         (print_uint8_byte_table): New function in UTF-2000.
1708         (uint8_byte_table_equal): New function in UTF-2000.
1709         (uint8_byte_table_hash): New function in UTF-2000.
1710         (make_uint8_byte_table): New function in UTF-2000.
1711         (uint8_byte_table_same_value_p): New function in UTF-2000.
1712         (BT_UINT16_MIN): New macro in UTF-2000.
1713         (BT_UINT16_MAX): New macro in UTF-2000.
1714         (BT_UINT16_t): New macro in UTF-2000.
1715         (BT_UINT16_nil): New macro in UTF-2000.
1716         (BT_UINT16_unbound): New macro in UTF-2000.
1717         (INT_UINT16_P): New inline function in UTF-2000.
1718         (UINT16_VALUE_P): New inline function in UTF-2000.
1719         (UINT16_ENCODE): New inline function in UTF-2000.
1720         (UINT16_DECODE): New inline function in UTF-2000.
1721         (UINT8_TO_UINT16): New inline function in UTF-2000.
1722         (mark_uint16_byte_table): New function in UTF-2000.
1723         (print_uint16_byte_table): New function in UTF-2000.
1724         (uint16_byte_table_equal): New function in UTF-2000.
1725         (uint16_byte_table_hash): New function in UTF-2000.
1726         (make_uint16_byte_table): New function in UTF-2000.
1727         (uint16_byte_table_same_value_p): New function in UTF-2000.
1728         (print_byte_table): New function in UTF-2000.
1729         (byte-table): Use `print_byte_table' as printer.
1730         (make_byte_table): Delete second argument `older'.
1731         (byte_table_same_value_p): New function in UTF-2000.
1732         (copy_byte_table): Deleted.
1733         (get_byte_table): New function in UTF-2000.
1734         (put_byte_table): New function in UTF-2000.
1735         (print_char_id_table): New function in UTF-2000.
1736         (char-id-table): Use `print_char_id_table' as printer.
1737         (make_char_id_table): Delete second argument `older'.
1738         (get_char_id_table): Use `get_byte_table [new implementation].
1739         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1740         implementation].
1741         (Ffind_char_attribute_table): New function in UTF-2000.
1742         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1743         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1744         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1745         (syms_of_mule_charset): Add new function
1746         `find-char-attribute-table' in UTF-2000.
1747
1748         * lrecord.h (enum lrecord_type): Add
1749         `lrecord_type_uint16_byte_table' and
1750         `lrecord_type_uint8_byte_table'.
1751
1752         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1753         (Lisp_Uint8_Byte_Table): New type.
1754         (XUINT8_BYTE_TABLE): New macro.
1755         (XSETUINT8_BYTE_TABLE): New macro.
1756         (UINT8_BYTE_TABLE_P): New macro.
1757         (GC_UINT8_BYTE_TABLE_P): New macro.
1758         (struct Lisp_Uint16_Byte_Table): New structure.
1759         (Lisp_Uint16_Byte_Table): New type.
1760         (XUINT16_BYTE_TABLE): New macro.
1761         (XSETUINT16_BYTE_TABLE): New macro.
1762         (UINT16_BYTE_TABLE_P): New macro.
1763         (GC_UINT16_BYTE_TABLE_P): New macro.
1764
1765 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1766
1767         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1768         (Vcharacter_ideographic_strokes_table): Deleted.
1769         (Vcharacter_total_strokes_table): Deleted.
1770         (Vcharacter_morohashi_daikanwa_table): Deleted.
1771         (Vcharacter_decomposition_table): Deleted.
1772         (Qname): Deleted because it is duplicated.
1773         (Qideographic_radical): Deleted.
1774         (Qideographic_strokes): Deleted.
1775         (Qtotal_strokes): Deleted.
1776         (Qmorohashi_daikanwa): Deleted.
1777         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1778         `ideographic-radical', `ideographic-strokes', `total-strokes',
1779         `morohashi-daikanwa' and `->decomposition'.
1780         (Fget_char_attribute): Likewise.
1781         (Fput_char_attribute): Likewise; use `make-vector' instead of
1782         `make_older_vector' for `->decomposition' value.
1783         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1784         `ideograph-daikanwa'.
1785         (syms_of_mule_charset): Delete builtin symbols `name',
1786         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1787         `morohashi-daikanwa'.
1788         (vars_of_mule_charset): Don't setup
1789         `Vcharacter_ideographic_radical_table',
1790         `Vcharacter_ideographic_strokes_table',
1791         `Vcharacter_total_strokes_table',
1792         `Vcharacter_morohashi_daikanwa_table' and
1793         `Vcharacter_decomposition_table'.
1794
1795 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1796
1797         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1798         `make_older_vector', `make_vector_newer_1' and
1799         `make_vector_newer'.
1800
1801         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1802         `make_older_vector' and `make_vector_newer'.
1803
1804         * config.h.in (HAVE_GGC): New macro.
1805
1806 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * mule-charset.c (struct char_attribute_list_closure): New
1809         structure in UTF-2000.
1810         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1811         (Fchar_attribute_list): Likewise.
1812         (Fset_charset_mapping_table): Use `make_vector_newer'.
1813         (Fdecode_builtin_char): New function in UTF-2000.
1814         (syms_of_mule_charset): Add new function `char-attribute-list' and
1815         `decode-builtin-char' in UTF-2000.
1816
1817         * lisp.h (make_vector_newer): New prototype.
1818
1819         * alloc.c (make_vector_newer_1): New function.
1820         (make_vector_newer): New function.
1821
1822 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1823
1824         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1825         50100)'.
1826
1827 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1830         (Vcharacter_attribute_table): Deleted.
1831         (Vcharacter_name_table): Deleted.
1832         (put_char_attribute): Deleted.
1833         (remove_char_attribute): Deleted.
1834         (struct char_attribute_alist_closure): New structure.
1835         (add_char_attribute_alist_mapper): New function.
1836         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1837         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1838         (Fget_char_attribute): Likewise.
1839         (Fput_char_attribute): Likewise.
1840         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1841         of `remove_char_attribute'.
1842         (Fdefine_char): Return character.
1843         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1844         and `Vcharacter_name_table'.
1845         (complex_vars_of_mule_charset): Likewise
1846         `Vchar_attribute_hash_table'.
1847
1848 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1849
1850         * character.h (CHARC_CHARSET): New macro.
1851         (CHARC_CHARSET_ID): New macro.
1852         (CHARC_CODE_POINT): New macro.
1853         (CHARC_COLUMNS): New macro.
1854         (CHARC_TO_CHAR): New inline function.
1855         (CHARC_EQ): New inline function.
1856         (CHARC_ASCII_EQ): New inline function.
1857         (CHARC_IS_SPACE): New inline function.
1858         (ASCII_TO_CHARC): New inline function.
1859
1860         * char-ucs.h (encode_char_2): Deleted.
1861         (ENCODE_CHAR): Use `encode_char_1' again.
1862         (breakup_char_1): Likewise.
1863         (CHAR_TO_CHARC): New inline function.
1864
1865         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1866
1867 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1868
1869         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1870         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1871         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1872         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1873         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1874         `CHARC_IS_SPACE'.
1875         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1876
1877         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1878         `CHARC_CODE_POINT'.
1879         (x_output_display_block): Use `CHARC_CHARSET' and
1880         `CHARC_ASCII_EQ'.
1881
1882         * redisplay-tty.c (tty_output_display_block): Use
1883         `CHARC_ASCII_EQ'.
1884         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1885
1886         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1887
1888         * insdel.c (find_charsets_in_charc_string): Use
1889         `CHARC_CHARSET_ID'.
1890         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1891         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1892         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1893         (convert_charc_string_into_malloced_string): Likewise.
1894
1895 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1896
1897         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1898         instead of <Emchar_dynarr *> for buf; use
1899         `convert_bufbyte_string_into_charc_dynarr' instead of
1900         `convert_bufbyte_string_into_emchar_dynarr'; use
1901         `find_charsets_in_charc_string' instead of
1902         `find_charsets_in_emchar_string'.
1903
1904         * redisplay.h:
1905         - Include "character.h".
1906         (struct rune): New member `cglyph'; delete member `chr'.
1907
1908         * redisplay.c (redisplay_text_width_charc_string): New function;
1909         delete `redisplay_text_width_emchar_string'.
1910         (rtw_charc_dynarr): New variable; renamed from
1911         `rtw_emchar_dynarr'.
1912         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1913         `rtw_emchar_dynarr'; use
1914         `convert_bufbyte_string_into_charc_dynarr' instead of
1915         `convert_bufbyte_string_into_emchar_dynarr'; use
1916         `redisplay_text_width_charc_string' instead of
1917         `redisplay_text_width_emchar_string'.
1918         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1919         instead of `rtw_emchar_dynarr'; use
1920         `convert_bufbyte_string_into_charc_dynarr' instead of
1921         `convert_bufbyte_string_into_emchar_dynarr'.
1922         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1923         `redisplay_text_width_charc_string' instead of
1924         `redisplay_text_width_emchar_string'.
1925         (create_text_block): Modify for <struct rune> change.
1926         (generate_formatted_string_db): Likewise.
1927         (create_string_text_block): Likewise.
1928         (pixel_to_glyph_translation): Likewise.
1929
1930         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1931         instead of <const Emchar *>.
1932         (x_text_width): Likewise.
1933         (x_output_display_block): Use <Charc_dynarr *> instead
1934         <Emchar_dynarr *>; modify for <structure rune> change.
1935         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1936         *>.
1937
1938         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1939         <const Emchar *>; use `charc_string_displayed_columns' instead of
1940         `emchar_string_displayed_columns'.
1941         (tty_output_display_block): Use <Charc_dynarr *> instead of
1942         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1943         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1944         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1945         `tty_output_emchar_dynarr_dynarr'.
1946         (tty_output_charc_dynarr): New function; delete
1947         `tty_output_charc_dynarr'.
1948
1949         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1950         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1951         <Emchar_dynarr *> for buf; use
1952         `convert_bufbyte_string_into_charc_dynarr' instead of
1953         `convert_bufbyte_string_into_emchar_dynarr'.
1954
1955         * frame.c (title_string_charc_dynarr): New variable; renamed from
1956         `title_string_emchar_dynarr'.
1957         (generate_title_string): Use `title_string_charc_dynarr' instead
1958         of `title_string_emchar_dynarr'; use
1959         `convert_charc_string_into_malloced_string' instead of
1960         `convert_emchar_string_into_malloced_string'.
1961         (init_frame): Use `title_string_charc_dynarr' instead of
1962         `title_string_emchar_dynarr'.
1963
1964         * console.h:
1965         - Include "character.h".
1966         (struct console_methods): Use <const Charc *> instead of <const
1967         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1968         <Emchar_dynarr *> in output_string_method.
1969
1970         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1971         <Emchar_dynarr *>.
1972
1973         * console-stream.c (stream_text_width): Use <const Charc *>
1974         instead of <const Emchar *>.
1975
1976         * character.h (Charc_dynarr): New type.
1977
1978         * char-ucs.h (structure Charc): New structure; define new type
1979         `Charc'.
1980
1981         * char-lb.h (DECODE_CHAR): New inline function.
1982         (encode_char_1): New inline function.
1983         (ENCODE_CHAR): New macro.
1984         (structure Charc): New structure; define new type `Charc'.
1985
1986         * char-1byte.h (Vcharset_control_1): New macro.
1987         (Vcharset_latin_iso8859_1): New macro.
1988         (DECODE_CHAR): New inline function.
1989         (encode_char_1): New inline function.
1990         (ENCODE_CHAR): New macro.
1991         (structure Charc): New structure; define new type `Charc'.
1992
1993         * insdel.c (find_charsets_in_charc_string): New function; delete
1994         `find_charsets_in_emchar_string'.
1995         (charc_string_displayed_columns): New function; delete
1996         `emchar_string_displayed_columns'.
1997         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1998         `convert_bufbyte_string_into_emchar_dynarr'.
1999         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2000         `convert_charc_string_into_bufbyte_dynarr'.
2001         (convert_charc_string_into_malloced_string): New function; delete
2002         `convert_charc_string_into_malloced_string'.
2003
2004         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2005         `find_charsets_in_emchar_string'.
2006         (charc_string_displayed_columns): New prototype; delete
2007         `emchar_string_displayed_columns'.
2008         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2009         `convert_charc_string_into_bufbyte_dynarr'.
2010         (convert_charc_string_into_malloced_string): New prototype; delete
2011         `convert_charc_string_into_malloced_string'.
2012
2013 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2014
2015         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2016
2017 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2018
2019         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2020
2021         * char-ucs.h: Use <short> for <Charset_ID>.
2022
2023         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2024         <Charset_ID>.
2025
2026 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027
2028         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2029         to 0.16.
2030
2031 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2032
2033         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2034         variable.
2035         (Qmorohashi_daikanwa): New variable.
2036         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2037         for `morohashi-daikanwa' attribute.
2038         (Fget_char_attribute): Likewise.
2039         (Fput_char_attribute): Likewise.
2040         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2041         has the same value of `ideograph-daikanwa'.
2042         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2043         (vars_of_mule_charset): Setup
2044         `Vcharacter_morohashi_daikanwa_table'.
2045
2046 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2049         attributes.
2050         (add_charset_to_list_mapper): Add `key' instead of
2051         `XCHARSET_NAME (value)' to return aliases.
2052
2053 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2056         variable.
2057         (Vcharacter_ideographic_strokes_table): New variable.
2058         (Qideographic_radical): New variable.
2059         (Qideographic_strokes): New variable.
2060         (Fchar_attribute_alist): Use
2061         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2062         attribute; use `Vcharacter_ideographic_strokes_table' for
2063         `ideographic-strokes' attribute.
2064         (Fget_char_attribute): Likewise.
2065         (Fput_char_attribute): Likewise.
2066         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2067         `ideographic-strokes'.
2068         (vars_of_mule_charset): Setup
2069         `Vcharacter_ideographic_radical_table' and
2070         `Vcharacter_ideographic_strokes_table'.
2071
2072 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2073
2074         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2075         (Qtotal_strokes): New variable.
2076         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2077         `total-strokes' attribute.
2078         (Fget_char_attribute): Likewise.
2079         (Fput_char_attribute): Likewise.
2080         (syms_of_mule_charset): Add new symbol `total-strokes'.
2081         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2082
2083 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2086         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2087         are found.
2088         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2089         `->decomposition' attribute.
2090         (Fput_char_attribute): Likewise.
2091         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2092
2093 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * mule-charset.c (decoding_table_check_elements): New function.
2096         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2097
2098 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2099
2100         * mule-charset.c (Fset_charset_mapping_table): Use
2101         `put_char_ccs_code_point'.
2102
2103 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2104
2105         * mule-charset.c (decoding_table_put_char): New inline function.
2106         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2107
2108 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2109
2110         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2111         (XCHARSET_BYTE_SIZE): New macro.
2112         (decoding_table_remove_char): New inline function.
2113         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2114         `decoding_table_remove_char'.
2115         (remove_char_ccs): Use `decoding_table_remove_char'.
2116         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2117
2118 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2119
2120         * mule-charset.c (Vcharacter_name_table): New variable.
2121         (Qname): New variable.
2122         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2123         attribute.
2124         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2125         `Vcharacter_name_table' for `name' attribute.
2126         (Fremove_char_attribute): Use function `remove_char_ccs'.
2127         (put_char_ccs_code_point): New function.
2128         (remove_char_ccs): New function.
2129         (syms_of_mule_charset): Add new symbol `name'.
2130         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2131
2132 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * mule-charset.c (make_byte_table): Add new argument `older'.
2135         (make_char_id_table): Likewise.
2136         (copy_char_id_table): Comment out because it is not used.
2137         (put_char_id_table): Modify for `make_byte_table'.
2138         (Fput_char_attribute): Make encoding_table as older object;
2139         inherit older bit of `Vcharacter_composition_table'.
2140         (mark_charset): Don't mark `cs->encoding_table'.
2141         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2142         normal object; make `Vcharacter_composition_table' as an older
2143         object; delete staticpro for `Vcharacter_composition_table'; make
2144         `Vcharacter_variant_table' as a normal object.
2145
2146         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2147         (mark_object): Don't check older object in UTF-2000.
2148
2149         * lrecord.h (struct lrecord_header): Add new member `older' in
2150         UTF-2000.
2151         (set_lheader_implementation): Setup `SLI_header->older' in
2152         UTF-2000.
2153         (set_lheader_older_implementation): New macro in UTF-2000.
2154         (OLDER_RECORD_P): New macro in UTF-2000.
2155         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2156         (alloc_older_lcrecord): New prototype in UTF-2000.
2157         (alloc_older_lcrecord_type): New macro in UTF-2000.
2158
2159 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160
2161         * mule-charset.c (byte_table_description): Use
2162         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2163         (char_id_table_description): Delete bogus `, 1'.
2164         (Fget_char_attribute): Refer encoding_table of each coded-charset
2165         to get value of coded-charset attribute of a character.
2166         (Fput_char_attribute): Use `make_older_vector' instead of
2167         `make_vector'; use encoding_table of each coded-charset to store
2168         value of coded-charset attribute of a character.
2169         (Fremove_char_attribute): Use encoding_table of each coded-charset
2170         to store value of coded-charset attribute of a character.
2171         (mark_charset): Mark `cs->encoding_table'; don't mark
2172         `cs->decoding_table'.
2173         (charset_description): Add description of new member
2174         `encoding_table'.
2175         (make_charset): Initialize `encoding_table'.
2176
2177         * char-ucs.h (struct Lisp_Charset): Add new member
2178         `encoding_table'.
2179         (CHARSET_ENCODING_TABLE): New macro.
2180         (XCHARSET_ENCODING_TABLE): New macro.
2181         (charset_code_point): New implementation.
2182         (encode_char_1): Likewise.
2183
2184         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2185         (disksave_object_finalization_1): Call finalizers of
2186         `all_older_lcrecords' in UTF-2000.
2187         (make_older_vector): New function in UTF-2000.
2188         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2189         UTF-2000.
2190
2191         * lisp.h (make_older_vector): New prototype in UTF-2000.
2192
2193 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * lrecord.h (enum lrecord_type): Rename
2196         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2197
2198         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2199         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2200         `get_char_code_table'.
2201
2202         * mule-charset.c (mark_char_id_table): Renamed from
2203         `mark_char_code_table'.
2204         (char_id_table_equal): Renamed from `char_code_table_equal'.
2205         (char_id_table_hash): Renamed from `char_code_table_hash'.
2206         (make_char_id_table): Renamed from `make_char_code_table'.
2207         (copy_char_id_table): Renamed from `copy_char_code_table'.
2208         (get_char_id_table): Renamed from `get_char_code_table'.
2209         (put_char_id_table): Renamed from `put_char_code_table'.
2210         (to_char_id): Renamed from `to_char_code'.
2211
2212         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2213         `Lisp_Char_Code_Table'.
2214         (char_id_table): Renamed from `char_code_table'.
2215         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2216         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2217         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2218         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2219         (get_char_id_table): Renamed from `get_char_code_table'.
2220
2221 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2222
2223         * lrecord.h (enum lrecord_type): Rename
2224         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2225
2226         * mule-charset.c (mark_byte_table): Renamed from
2227         `mark_char_byte_table'.
2228         (byte_table_equal): Renamed from `char_byte_table_equal'.
2229         (byte_table_hash): Renamed from `byte_table_hash'.
2230         (make_byte_table): Renamed from `make_byte_table'.
2231         (copy_byte_table): Renamed from `copy_char_byte_table'.
2232
2233         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2234         `Lisp_Char_Byte_Table'.
2235         (byte_table): Renamed from `char_byte_table'.
2236         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2237         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2238         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2239         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2240
2241 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2244         (dfc_convert_to_internal_format): Likewise.
2245         
2246         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2247         * text-coding.c (Fcoding_system_alias_p): New function.
2248         * text-coding.c (Fcoding_system_aliasee): New function.
2249         * text-coding.c (append_suffix_to_symbol): New function.
2250         * text-coding.c (dangling_coding_system_alias_p): New function.
2251         * text-coding.c (Ffind_coding_system):
2252         * text-coding.c (Fcopy_coding_system):
2253         * text-coding.c (encode_coding_no_conversion):
2254         * text-coding.c (syms_of_file_coding):
2255         * text-coding.c (vars_of_file_coding):
2256         Rewrite coding system alias code.
2257         Allow nested aliases, like symbolic links.
2258         Allow redefinition of coding system aliases.
2259         Prevent existence of dangling coding system aliases.
2260         Eliminate convert_to_external_format.
2261         Eliminate convert_to_internal_format.
2262         
2263         * text-coding.c: Change enum eol_type to eol_type_t.
2264
2265 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2268         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2269
2270         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2271         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2272
2273 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274
2275         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2276         `ideograph-daikanwa'.
2277
2278         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2279         (Vcharset_ucs_bmp): Likewise.
2280         (Vcharset_mojikyo): Add new extern variable definition.
2281         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2282         (Vcharset_latin_iso8859_3): Likewise.
2283         (Vcharset_latin_iso8859_4): Likewise.
2284         (Vcharset_latin_iso8859_9): Likewise.
2285         (Vcharset_latin_viscii_lower): Likewise.
2286         (Vcharset_latin_viscii_upper): Likewise.
2287         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2288         `mojikyo' code-point is used to decode.
2289         (encode_char_2): New function [to convert `mojikyo' code-point to
2290         Mojikyo font encoding].
2291         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2292         (breakup_char_1): Likewise.
2293         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2294
2295 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2296
2297         * text-coding.c (Fmake_coding_system): Add document about
2298         `disable-composition' property.
2299
2300 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2301
2302         * text-coding.c (Qdisable_composition): New variable; delete
2303         `Qcomposite'.
2304         (Fmake_coding_system): Add new property `disable-composite';
2305         delete property `composite'.
2306         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2307         instead of `!CODING_SYSTEM_COMPOSITE'.
2308         (syms_of_file_coding): Add new symbol `disable-composition';
2309         delete symbol `composite'.
2310
2311         * file-coding.h (struct Lisp_Coding_System): Add
2312         `disable_composition'; delete `enable_composition'.
2313         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2314         `CODING_SYSTEM_COMPOSITE'.
2315         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2316         `XCODING_SYSTEM_COMPOSITE'.
2317
2318 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2319
2320         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2321         to 0.15.
2322
2323 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2324
2325         * text-coding.c (Qcomposite): New variable.
2326         (Fmake_coding_system): Add new property `composite'.
2327         (struct decoding_stream): Add `combined_char_count',
2328         `combined_chars' and `combining_table' in UTF-2000.
2329         (COMPOSE_FLUSH_CHARS): New macro.
2330         (COMPOSE_ADD_CHAR): New macro.
2331         (reset_decoding_stream): Reset `str->combined_char_count' and
2332         `str->combining_table' in UTF-2000.
2333         (decode_coding_iso2022): Modify for character-decomposition.
2334         (syms_of_file_coding): Add new symbol `composite'.
2335
2336 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2337
2338         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2339         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2340         of `Vcharacter_composition_table' if `->decomposition' property
2341         has only 1 element.
2342         (Qlatin_tcvn5712): New variable.
2343         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2344         (complex_vars_of_mule_charset): Add new coded-charset
2345         `latin-tcvn5712'.
2346
2347         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2348
2349 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * file-coding.h (struct Lisp_Coding_System): Add
2352         `enable_composition'.
2353         (CODING_SYSTEM_COMPOSITE): New macro.
2354         (XCODING_SYSTEM_COMPOSITE): New macro.
2355
2356 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2357
2358         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2359
2360 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2361
2362         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2363         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2364
2365 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2366
2367         * mule-charset.c (Vcharset_mojikyo): New variable.
2368         (Fdefine_char): Don't use coded-charset which does not have
2369         non-builtin character range to allocate character-id.
2370         (Qmojikyo): New variable.
2371         (syms_of_mule_charset): Add new symbol `mojikyo'.
2372         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2373
2374         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2375         (LEADING_BYTE_MOJIKYO): New macro.
2376         (MIN_CHAR_MOJIKYO): New macro.
2377         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2378         (MAX_CHAR_MOJIKYO): New macro.
2379
2380 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2381
2382         * mule-charset.c (remove_char_attribute): Fixed.
2383
2384 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2385
2386         * mule-charset.c (remove_char_attribute): New function.
2387         (Fremove_char_attribute): New function.
2388         (encode_builtin_char_1): Comment out builtin-support for
2389         greek-iso8859-7 and cyrillic-iso8859-5.
2390         (Fdecode_char): Check `code' is an integer.
2391         (syms_of_mule_charset): Add `remove-char-attribute'.
2392         (MIN_CHAR_GREEK): Deleted.
2393         (MAX_CHAR_GREEK): Likewise.
2394         (MIN_CHAR_CYRILLIC): Likewise.
2395         (MAX_CHAR_CYRILLIC): Likewise.
2396         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2397         MAX_CHAR_GREEK for `greek-iso8859-7'.
2398
2399         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2400         (MAX_CHAR_GREEK): Likewise.
2401         (MIN_CHAR_CYRILLIC): Likewise.
2402         (MAX_CHAR_CYRILLIC): Likewise.
2403
2404 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2405
2406         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2407         format is used without `ucs' property.
2408         (Fdecode_char): Fix problem with GR representation.
2409         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2410         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2411
2412 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2413
2414         * mule-charset.c (make_builtin_char): New function.
2415         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2416         (Fset_charset_mapping_table): Modify for new representation of
2417         code-point.
2418         (Fdecode_char): New function.
2419         (syms_of_mule_charset): Add new builtin function `decode-char' in
2420         UTF-2000.
2421
2422         * char-ucs.h (make_builtin_char): New prototype.
2423         (DECODE_CHAR): New inline function.
2424         (MAKE_CHAR): Use `DECODE_CHAR'.
2425
2426 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2427
2428         * text-coding.c (parse_charset_conversion_specs): Use
2429         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2430         `XCHARSET_TYPE'.
2431         (iso2022_designate): Likewise.
2432
2433         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2434         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2435
2436         * mule-charset.c (Vcharset_ucs): New variable.
2437         (print_charset): Change design; use `CHARSET_CHARS' and
2438         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2439         (make_charset): Change signature to specify `chars' and
2440         `dimension' instead of `type'.
2441         (range_charset_code_point): Modify for 256^n-set.
2442         (encode_builtin_char_1): Encode as `ucs' in default.
2443         (Fmake_charset): Modify for `make_charset'.
2444         (Fmake_reverse_direction_charset): Likewise.
2445         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2446         UTF-2000.
2447         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2448         for `make_charset'.
2449
2450         * char-ucs.h (Vcharset_ucs): New variable.
2451         (LEADING_BYTE_UCS): New macro.
2452         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2453         and `chars' to `unsigned short' from `unsigned int'.
2454         (CHARSET_TYPE): Deleted.
2455         (XCHARSET_TYPE): Deleted.
2456
2457 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2458
2459         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2460
2461         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2462         (ENCODE_CHAR): New macro.
2463
2464 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2465
2466         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2467         to 0.14 (Kawachi-Katakami).
2468
2469 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2470
2471         * text-coding.c (char_encode_shift_jis): Modify for
2472         `charset_code_point'.
2473         (char_encode_iso2022): Likewise.
2474
2475         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2476         (integer) instead of list of <Lisp_Object>s (integers) as the
2477         format of code-point of a coded-charset.
2478         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2479         (encode_builtin_char_1): New function; delete
2480         `split_builtin_char'.
2481         (charset_code_point): Return <int> instead of <Lisp_Object>.
2482         (Fsplit_char): Don't use `SPLIT_CHAR'.
2483
2484         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2485         prototype for `split_builtin_char'.
2486         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2487         (charset_code_point): Likewise.
2488         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2489         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2490
2491 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2492
2493         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2494         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2495
2496 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2497
2498         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2499
2500         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2501         (MAX_CHAR_OBS_94x94): Deleted.
2502
2503 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2504
2505         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2506
2507         * char-ucs.h (MAX_CHAR_BMP): New macro.
2508
2509 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2510
2511         * text-coding.c: Sync with r21-2-24.
2512
2513 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2514
2515         * file-coding.c: Modify for UTF-2000.
2516
2517 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2518
2519         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2520         to 0.13 (Takaida).
2521
2522 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2523
2524         * mule-charset.c (split_builtin_char): Delete builtin support for
2525         `katakana-jisx0201'.
2526         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2527         BMP area in builtin representation.
2528
2529         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2530         `Vcharset_katakana_jisx0201'.
2531
2532 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2533
2534         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2535         (Qisolated): New variable.
2536         (Qinitial): New variable.
2537         (Qmedial): New variable.
2538         (Qfinal): New variable.
2539         (Qvertical): New variable.
2540         (Qsmall): New variable.
2541         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2542         `Qvertical' and `Qsmall'.
2543         (Qmojikyo_pj_[1 .. 21]): New variable.
2544         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2545         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2546         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2547         .. 21]'.
2548
2549 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2550
2551         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2552         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2553         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2554
2555 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2556
2557         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2558         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2559         BMP.
2560         (Qjapanese_jisx0208_1990): New variable.
2561         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2562         (complex_vars_of_mule_charset): Add new coded-charset
2563         `japanese-jisx0208-1990'.
2564
2565         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2566         (MIN_CHAR_JIS_X0208_1990): New macro.
2567         (MAX_CHAR_JIS_X0208_1990): New macro.
2568
2569 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2570
2571         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2572         coded-charset is not found.
2573
2574 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2575
2576         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2577         (Fdefine_char): Use `Fmake_char'.
2578
2579 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2580
2581         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2582         (Vcharset_hiragana_jisx0208): Deleted.
2583         (Vcharset_katakana_jisx0208): Deleted.
2584         (Qideograph_daikanwa): New variable.
2585         (Qhiragana_jisx0208): Deleted.
2586         (Qkatakana_jisx0208): Deleted.
2587         (split_builtin_char): Split `ideograph-daikanwa'.
2588         (Fsplit_char): New implementation for UTF-2000.
2589         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2590         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2591         (complex_vars_of_mule_charset): Add new coded-charset
2592         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2593         `katakana-jisx0208'.
2594
2595         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2596         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2597         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2598         (MIN_CHAR_DAIKANWA): New macro.
2599         (MAX_CHAR_DAIKANWA): New macro.
2600
2601 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2602
2603         * data.c (Fstring_to_number): Don't recognize floating point if
2604         base is not 10.
2605
2606 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2607
2608         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2609
2610 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2611
2612         * mule-charset.c (Qsquare): New variable.
2613         (to_char_code): Add `Qsquare'.
2614         (syms_of_mule_charset): Add new symbol `square'.
2615
2616 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2617
2618         * mule-charset.c (Qcircle): New variable.
2619         (to_char_code): Add `Qcircle'.
2620         (syms_of_mule_charset): Add new symbol `circle'.
2621
2622 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2623
2624         * mule-charset.c (Qfont): New variable.
2625         (to_char_code): Add `Qfont'.
2626         (syms_of_mule_charset): Add new symbol `font'.
2627
2628 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2629
2630         * mule-charset.c (Qsub): New variable.
2631         (to_char_code): Add `Qsub'.
2632         (syms_of_mule_charset): Add new symbol `sub'.
2633
2634 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2635
2636         * mule-charset.c (Fput_char_attribute): Convert each element of
2637         VALUE to GL position if ATTRIBUTE is a GR-set,
2638
2639 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2640
2641         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2642         coded-charset is a GR-set.
2643
2644 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2645
2646         * mule-charset.c (Fput_char_attribute): Check each element of
2647         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2648
2649 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2650
2651         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2652         UTF-2000.
2653         (Qethiopic_ucs): New variable in UTF-2000.
2654         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2655         (complex_vars_of_mule_charset): Add new coded-charset
2656         `ethiopic-ucs' in UTF-2000.
2657
2658         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2659         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2660         9)'.
2661         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2662         10)'.
2663         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2664
2665 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2666
2667         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2668         `ascii'.
2669
2670 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2671
2672         * mule-charset.c (Vcharacter_variant_table): New variable.
2673         (Q_ucs): New variable.
2674         (Fchar_variants): New function.
2675         (Fput_char_attribute): Register `->ucs' value to
2676         `Vcharacter_variant_table'.
2677         (syms_of_mule_charset): Add new function `char-variants' and new
2678         symbol `->ucs'.
2679         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2680
2681 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2682
2683         * mule-charset.c (get_char_code_table): Allow negative character
2684         code.
2685         (put_char_code_table): Likewise.
2686         (Vcharacter_composition_table): New variable.
2687         (Q_decomposition): New variable.
2688         (Qwide): New variable.
2689         (Qnarrow): New variable.
2690         (Qcompat): New variable.
2691         (QnoBreak): New variable.
2692         (Qsuper): New variable.
2693         (Qfraction): New variable.
2694         (to_char_code): New function.
2695         (Fget_composite_char): New function.
2696         (Fput_char_attribute): Register `->decomposition' value to
2697         `Vcharacter_composition_table'.
2698         (syms_of_mule_charset): Add new function `get-composite-char', new
2699         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2700         `super' and `fraction'.
2701         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2702
2703 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2704
2705         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2706         character; copy the return value.
2707
2708 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2709
2710         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2711
2712         * mule-charset.c (range_charset_code_point): Must use make_int.
2713         (split_builtin_char): New function.
2714
2715 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2716
2717         * mule-charset.c (char_byte_table): Change name from
2718         "char-code-table" to "char-byte-table".
2719         (mark_char_code_table): New function.
2720         (char_code_table_equal): New function.
2721         (char_code_table_hash): New function.
2722         (char_code_table_description): New constant.
2723         (char_code_table): New type.
2724         (make_char_code_table): New function.
2725         (copy_char_code_table): New function.
2726         (get_char_code_table): Modify for `char_code_table' type.
2727         (put_char_code_table): Likewise.
2728         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2729         (Kashiwara).
2730
2731         * char-ucs.h (char_code_table): New type.
2732         (XCHAR_CODE_TABLE): New macro.
2733         (XSETCHAR_CODE_TABLE): New macro.
2734         (CHAR_CODE_TABLE_P): New macro.
2735         (GC_CHAR_CODE_TABLE_P): New macro.
2736         (struct Lisp_Char_Code_Table): New structure.
2737
2738 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2739
2740         * mule-charset.c (Fmake_charset): Setup byte_offset for
2741         {94|96}^n-set.
2742
2743 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2744
2745         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2746         character.
2747
2748 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2749
2750         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2751         is found.
2752
2753 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2754
2755         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2756         charset, it is regarded as a charset.
2757         (put_char_attribute): New function in UTF-2000.
2758         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2759         charset, mapping-table of the charset is modified.
2760         (Fdefine_char): New function in UTF-2000.
2761         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2762         `Fput_char_attribute'.
2763         (syms_of_mule_charset): Add new function `define-char' and new
2764         symbol `ucs' in UTF-2000.
2765         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2766
2767 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2768
2769         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2770         non-UTF-2000 configuration.
2771
2772 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2773
2774         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2775         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2776
2777         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2778         deleted.
2779         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2780         (Fset_charset_mapping_table): Likewise.
2781
2782         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2783         (CHARSET_ENCODING_TABLE): Delete.
2784         (XCHARSET_ENCODING_TABLE): Delete.
2785         (charset_code_point): New interface.
2786
2787 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2788
2789         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2790         instead of `charset_get_byte1' and `charset_get_byte2'.
2791
2792         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2793         (charset_get_byte2): Deleted.
2794
2795 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2796
2797         * char-ucs.h (SPLIT_CHAR): New inline function.
2798         (breakup_char_1): Use `SPLIT_CHAR'.
2799
2800         * mule-charset.c (range_charset_code_point): New function.
2801         (charset_code_point): New function.
2802
2803         * char-ucs.h (range_charset_code_point): New interface.
2804         (breakup_char_1): Use `range_charset_code_point'.
2805
2806 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2807
2808         * mule-charset.c (Fmake_charset): Delete unused local variable
2809         `code_offset'.
2810
2811         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2812         (breakup_char_1): Find a charset and code-point in
2813         `Vcharacter_attribute_table'.
2814
2815 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2816
2817         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2818         to 0.10 (Yao).
2819
2820 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2821
2822         * mule-charset.c (Vcharacter_attribute_table): New variable.
2823         (Fchar_attribute_alist): New function.
2824         (Fget_char_attribute): New function.
2825         (Fput_char_attribute): New function.
2826         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2827         too.
2828         (syms_of_mule_charset): Add new function `char-attribute-alist',
2829         `get-char-attribute' and `put-char-attribute'.
2830         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2831
2832 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2833
2834         * mule-charset.c (Fmake_charset): Just use
2835         `get_unallocated_leading_byte'.
2836
2837         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2838         sets; don't use final-byte based number for private sets.
2839
2840 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2841
2842         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2843         integer.
2844
2845 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2846
2847         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2848         to 0.9.
2849
2850 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2851
2852         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2853         of `CHAR_LEADING_BYTE' in UTF-2000.
2854
2855         * insdel.c (find_charsets_in_bufbyte_string): Use
2856         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2857         (find_charsets_in_emchar_string): Likewise.
2858
2859         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2860         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2861
2862         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2863         (CHAR_CHARSET_ID): New macro.
2864
2865 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2866
2867         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2868         charset-id - MIN_LEADING_BYTE.
2869         (put_char_table): Likewise.
2870
2871 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2872
2873         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2874         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2875         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2876         (CHARSET_ID_OFFSET): New macro.
2877         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2878         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2879         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2880         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2881         4).
2882         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2883         5).
2884         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2885         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2886         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2887         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2888         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2889
2890 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2891
2892         * mule-charset.c (next_allocated_leading_byte): New variable in
2893         UTF-2000.
2894         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2895         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2896         (get_unallocated_leading_byte): Simply use
2897         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2898         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2899         UTF-2000.
2900
2901         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2902         (MAX_LEADING_BYTE_PRIVATE): New macro.
2903         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2904         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2905
2906 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2907
2908         * mule-charset.c (Fmake_charset): Allocate final-byte based
2909         charset-id for 94-set, 96-set and 94x94-set.
2910
2911 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2912
2913         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2914         ambiguous `else'.
2915         (Fmake_charset): Likewise.
2916         (complex_vars_of_mule_charset): Modify the font registry of
2917         `ucs-bmp' not to match `Ethiopic-Unicode'.
2918
2919 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2920
2921         * mule-charset.c (complex_vars_of_mule_charset): Add font
2922         registory of `ucs-bmp'.
2923
2924 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2925
2926         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2927         coded-charsets in `default-coded-charset-priority-list' when
2928         breaking up a character.
2929
2930         * mule-charset.c (Vcharset_latin_viscii): New variable.
2931         (Qlatin_viscii): New variable.
2932         (make_charset): Don't use `decoding_table'.
2933         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2934         byte_offset.
2935         (Fset_charset_mapping_table): New implementation.
2936         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2937         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2938         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2939         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2940         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2941         charset `latin_viscii'.
2942
2943         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2944         (CHARSET_TYPE_94X94): Change to 1 from 2.
2945         (CHARSET_TYPE_96): Change to 2 from 1.
2946         (CHARSET_TYPE_128): New macro.
2947         (CHARSET_TYPE_128X128): Change to 5 from 4.
2948         (CHARSET_TYPE_256): New macro.
2949         (CHARSET_TYPE_256X256): Change to 7 from 5.
2950         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2951
2952 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2953
2954         * text-coding.c (char_encode_shift_jis): Refer
2955         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2956         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2957
2958         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2959         (char_byte_table_equal): New function in UTF-2000.
2960         (char_byte_table_hash): New function in UTF-2000.
2961         (char_byte_table_description): New constant in UTF-2000.
2962         (char_byte_table): New type in UTF-2000.
2963         (make_char_byte_table): New function in UTF-2000.
2964         (copy_char_byte_table): New function in UTF-2000.
2965         (make_char_code_table): New macro in UTF-2000.
2966         (get_char_code_table): New function in UTF-2000.
2967         (put_char_code_table): New function in UTF-2000.
2968         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2969         (charset_description): Add setting in UTF-2000.
2970         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2971         `CHARSET_TO_BYTE1_TABLE(cs)'.
2972         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2973         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2974         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2975         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2976         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2977         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2978         `CHARSET_TO_BYTE2_TABLE(cs)'.
2979
2980         * char-ucs.h (char_byte_table): New type.
2981         (XCHAR_BYTE_TABLE): New macro.
2982         (XSETCHAR_BYTE_TABLE): New macro.
2983         (CHAR_BYTE_TABLE_P): New macro.
2984         (GC_CHAR_BYTE_TABLE_P): New macro.
2985         (struct Lisp_Char_Byte_Table): New structure.
2986         (get_char_code_table): New interface.
2987         (Emchar_to_byte_table): Deleted.
2988         (get_byte_from_character_table): Deleted.
2989         (struct Lisp_Charset): Add `encoding_table'; delete
2990         `to_byte1_table' and `to_byte2_table'.
2991         (CHARSET_ENCODING_TABLE): New macro.
2992         (CHARSET_TO_BYTE1_TABLE): Deleted.
2993         (CHARSET_TO_BYTE2_TABLE): Deleted.
2994         (XCHARSET_ENCODING_TABLE): New macro.
2995         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2996         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2997
2998 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2999
3000         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3001         `vietnamese-viscii-*'.
3002
3003 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3004
3005         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3006         (Qvietnamese_viscii_upper): New variable.
3007         (Fdefine_charset_alias): New function.
3008         (syms_of_mule_charset): Add new function `define-charset-alias'.
3009         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3010         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3011         `latin-viscii-*'.
3012
3013 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3014
3015         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3016         (MAX_CHAR_OBS_94x94): New macro.
3017         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3018         for 94x94 sets.
3019
3020         * mule-charset.c (put_byte_from_character_table): Change unit size
3021         from 128 to 256.
3022         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3023         not defined.
3024         (Fmake_reverse_direction_charset): Modify dummy argument of
3025         `make_charset' for non-UTF-2000 environment.
3026
3027 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3028
3029         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3030
3031         * mule-charset.c (destroy_byte_from_character_table): New macro.
3032         (latin_jisx0201_to_ucs): Deleted.
3033         (latin_iso8859_2_to_ucs): Deleted.
3034         (latin_iso8859_3_to_ucs): Deleted.
3035         (latin_iso8859_4_to_ucs): Deleted.
3036         (latin_iso8859_9_to_ucs): Deleted.
3037         (latin_viscii_lower_to_ucs): Deleted.
3038         (latin_viscii_upper_to_ucs): Deleted.
3039         (mark_charset): Mark `cs->decoding_table'.
3040         (Fcharset_mapping_table): Fix DOC-string.
3041         (Fset_charset_mapping_table): New function.
3042         (syms_of_mule_charset): Add nwe function
3043         `set-charset-mapping-table'.
3044         (complex_vars_of_mule_charset): Don't setup and use
3045         `latin_*_to_ucs'.
3046
3047 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3048
3049         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3050         charset.
3051
3052 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3053
3054         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3055         (Vcharset_katakana_jisx0208): New variable.
3056         (Qhiragana_jisx0208): New variable.
3057         (Qkatakana_jisx0208): New variable.
3058         (make_charset): Add new argument `byte_offset'.
3059         (charset_get_byte1): Modify for new coded-charset definition; use
3060         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3061         `XCHARSET_BYTE_OFFSET'.
3062         (Fmake_charset): Modify for `make_charset'.
3063         (Fmake_reverse_direction_charset): Likewise.
3064         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3065         `katakana-jisx0208'.
3066         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3067         `.'  in font registry of charset `katakana-jisx0201',
3068         `latin-jisx0201', `vietnamese-viscii-lower' and
3069         `vietnamese-viscii-upper'; modify DOC-string of charset
3070         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3071         registry of charset `japanese-jisx0208' not to use font for JIS
3072         X0208:1990; add new charset `hiragana-jisx0208' and
3073         `katakana-jisx0208'.
3074
3075         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3076         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3077         (struct Lisp_Charset): Add `byte_offset'.
3078         (CHARSET_BYTE_OFFSET): New macro.
3079         (XCHARSET_UCS_MIN): New macro.
3080         (XCHARSET_UCS_MAX): New macro.
3081         (XCHARSET_CODE_OFFSET): New macro.
3082         (XCHARSET_BYTE_OFFSET): New macro.
3083         (MIN_CHAR_HIRAGANA): New macro.
3084         (MAX_CHAR_HIRAGANA): New macro.
3085         (MIN_CHAR_KATAKANA): New macro.
3086         (MAX_CHAR_KATAKANA): New macro.
3087         (MAKE_CHAR): Modify for new coded-charset definition; use
3088         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3089         `XCHARSET_BYTE_OFFSET'.
3090
3091 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3092
3093         * mule-charset.c (CHAR96): Deleted.
3094         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3095         <Lisp_Object>.
3096         (latin_iso8859_2_to_ucs): Likewise.
3097         (latin_iso8859_3_to_ucs): Likewise.
3098         (latin_iso8859_4_to_ucs): Likewise.
3099         (latin_iso8859_9_to_ucs): Likewise.
3100         (latin_viscii_lower_to_ucs): Likewise.
3101         (latin_viscii_upper_to_ucs): Likewise.
3102         (latin_tcvn5712_to_ucs): Commented out.
3103         (make_charset): Change type of argument `decoding_table' from
3104         <Emchar*> to <Lisp_Object> [vector of characters].
3105         (Fmake_charset): Modify for `make_charset'.
3106         (Fmake_reverse_direction_charset): Likewise.
3107         (Fcharset_mapping_table): New function in UTF-2000.
3108         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3109         UTF-2000.
3110         (complex_vars_of_mule_charset): Modify for type change of
3111         `*_to_ucs'; modify for `make_charset'.
3112
3113         * char-ucs.h (struct Lisp_Charset): Change type of
3114         `decoding_table' from <Emchar*> to <Lisp_Object>.
3115         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3116
3117 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3118
3119         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3120         error with non-UTF-2000-Mule.
3121
3122 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3123
3124         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3125         in lisp again].
3126         (Vcharset_chinese_cns11643_4): Likewise.
3127         (Vcharset_chinese_cns11643_5): Likewise.
3128         (Vcharset_chinese_cns11643_6): Likewise.
3129         (Vcharset_chinese_cns11643_7): Likewise.
3130         (Qchinese_cns11643_3): Likewise.
3131         (Qchinese_cns11643_4): Likewise.
3132         (Qchinese_cns11643_5): Likewise.
3133         (Qchinese_cns11643_6): Likewise.
3134         (Qchinese_cns11643_7): Likewise.
3135         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3136         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3137         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3138         (complex_vars_of_mule_charset): Likewise.
3139
3140 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3141
3142         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3143         96-set.
3144         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3145         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3146
3147 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3148
3149         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3150         0xFF60.
3151         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3152         (breakup_char_1): Likewise.
3153
3154         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3155         one of them includes the specified character.
3156
3157 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3158
3159         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3160
3161 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3162
3163         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3164
3165 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3166
3167         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3168         definition for non-UTF-2000 Mule.
3169         (latin_iso8859_3_to_ucs): Likewise.
3170         (latin_iso8859_4_to_ucs): Likewise.
3171         (latin_iso8859_9_to_ucs): Likewise.
3172         (latin_jisx0201_to_ucs): Likewise.
3173         (MIN_CHAR_THAI): Likewise.
3174         (MAX_CHAR_THAI): Likewise.
3175         (MIN_CHAR_GREEK): Likewise.
3176         (MAX_CHAR_GREEK): Likewise.
3177         (MIN_CHAR_HEBREW): Likewise.
3178         (MAX_CHAR_HEBREW): Likewise.
3179         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3180         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3181         (MIN_CHAR_CYRILLIC): Likewise.
3182         (MAX_CHAR_CYRILLIC): Likewise.
3183
3184 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3185
3186         * char-ucs.h (breakup_char_1): Use
3187         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3188         thai-tis620 and katakana-jisx0201 area.
3189
3190 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3191
3192         * char-ucs.h (breakup_char_1): Use
3193         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3194         area.
3195
3196         * text-coding.c (reset_encoding_stream): Fixed.
3197         (char_encode_ucs4): Delete `& 255'.
3198
3199         * char-ucs.h (breakup_char_1): Use
3200         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3201
3202 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3203
3204         * file-coding.c (Fmake_coding_system): Don't set up
3205         `codesys->fixed.size'.
3206         (encode_coding_no_conversion): Don't refer
3207         `str->codesys->fixed.size'.
3208
3209 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3210
3211         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3212         (latin_a_char_to_byte1): Deleted.
3213         (latin_a_char_to_byte2): Deleted.
3214
3215 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3216
3217         * mule-charset.c (make_charset): Add new argument `ucs_min',
3218         `ucs_max' and `code_offset'.
3219         (charset_get_byte1): New implementation [delete specific charset
3220         depended implementations].
3221         (Fmake_charset): Modify for `make_charset'.
3222         (Fmake_reverse_direction_charset): Likewise.
3223         (complex_vars_of_mule_charset): Likewise.
3224
3225         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3226         `code_offset'.
3227         (CHARSET_UCS_MIN): New macro.
3228         (CHARSET_UCS_MAX): New macro.
3229         (CHARSET_CODE_OFFSET): New macro.
3230         (MAKE_CHAR): Delete charset depended definitions [except
3231         katakana-jisx0201].
3232
3233 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3234
3235         * char-ucs.h (breakup_char_1): Use
3236         `Vdefault_coded_charset_priority_list' for C0-Controls,
3237         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3238
3239 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3240
3241         * char-ucs.h (charset_get_byte1): New function.
3242         (XCHARSET_GET_BYTE1): Deleted.
3243         (charset_get_byte2): New function.
3244         (XCHARSET_GET_BYTE2): Deleted.
3245         (Vdefault_coded_charset_priority_list): New external variable.
3246         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3247         `Vdefault_preferred_coded_charset_list'.
3248
3249         * mule-charset.c (charset_get_byte1): New function.
3250         (charset_get_byte2): New function.
3251         (Vdefault_coded_charset_priority_list): New variable.
3252         (vars_of_mule_charset): Add new variable
3253         `default-coded-charset-priority-list'.
3254
3255 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3256
3257         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3258         (XCHARSET_GET_BYTE2): New inline function.
3259         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3260         `XCHARSET_GET_BYTE2'.
3261
3262 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3263
3264         * mule-charset.c (make_charset): Initialize
3265         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3266         NULL if table is not defined.
3267
3268 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3269
3270         * text-coding.c (char_encode_shift_jis): Use
3271         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3272         `ucs_to_latin_jisx0201'.
3273
3274         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3275         (ucs_to_latin_iso8859_2): Deleted.
3276         (ucs_to_latin_iso8859_3): Deleted.
3277         (ucs_to_latin_iso8859_4): Deleted.
3278         (ucs_to_latin_iso8859_9): Deleted.
3279         (ucs_to_latin_viscii_lower): Deleted.
3280         (ucs_to_latin_viscii_upper): Deleted.
3281         (ucs_to_latin_tcvn5712): Deleted.
3282         (make_charset): Add new argument `decoding_table'; set up
3283         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3284         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3285         `decoding_table' is defined in UTF-2000.
3286         (Fmake_charset): Modify for `make_charset'.
3287         (Fmake_reverse_direction_charset): Likewise.
3288         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3289         and `GENERATE_96_SET'.
3290
3291         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3292         (ucs_to_latin_jisx0201): Deleted.
3293         (latin_iso8859_2_to_ucs): Deleted.
3294         (ucs_to_latin_iso8859_2): Deleted.
3295         (latin_iso8859_3_to_ucs): Deleted.
3296         (ucs_to_latin_iso8859_3): Deleted.
3297         (latin_iso8859_4_to_ucs): Deleted.
3298         (ucs_to_latin_iso8859_4): Deleted.
3299         (latin_iso8859_9_to_ucs): Deleted.
3300         (ucs_to_latin_iso8859_9): Deleted.
3301         (latin_viscii_lower_to_ucs): Deleted.
3302         (ucs_to_latin_viscii_lower): Deleted.
3303         (latin_viscii_upper_to_ucs): Deleted.
3304         (ucs_to_latin_viscii_upper): Deleted.
3305         (struct Lisp_Charset): Renamed `encoding_table' to
3306         `to_byte1_table'; add `to_byte2_table'.
3307         (CHARSET_DECODING_TABLE): New macro.
3308         (CHARSET_TO_BYTE1_TABLE): New macro.
3309         (CHARSET_TO_BYTE2_TABLE): New macro.
3310         (XCHARSET_DECODING_TABLE): New macro.
3311         (XCHARSET_TO_BYTE1_TABLE): New macro.
3312         (XCHARSET_TO_BYTE2_TABLE): New macro.
3313         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3314         tables.
3315         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3316         don't use `ucs_to_*' tables.
3317
3318 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3319
3320         * text-coding.c (Fmake_coding_system): Don't set up
3321         `codesys->fixed.size'.
3322         (encode_coding_no_conversion): Use `if' instead of `switch'.
3323
3324         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3325
3326 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3327
3328         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3329         (Fmake_charset): Modify for `make_charset'.
3330         (Fmake_reverse_direction_charset): Likewise.
3331         (complex_vars_of_mule_charset): Likewise.
3332
3333 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3334
3335         * text-coding.c (char_encode_shift_jis): Use table
3336         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3337
3338 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3339
3340         * text-coding.c (text_encode_generic): Use `if' instead of
3341         `switch'.
3342         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3343         decode JIS-Latin.
3344
3345 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3346
3347         * text-coding.c (encode_coding_sjis): Deleted.
3348         (char_encode_shift_jis): New function.
3349         (char_finish_shift_jis): New function.
3350         (reset_encoding_stream): Set up `encode_char' and `finish' for
3351         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3352         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3353         (char_encode_utf8): Treat `eol_type'.
3354
3355 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3356
3357         * file-coding.c (decode_coding_iso2022): Use
3358         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3359
3360 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3361
3362         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3363         to 0.7 (Hirano).
3364
3365 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3366
3367         * char-lb.h (CHAR_COLUMNS): New macro.
3368
3369 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3370
3371         * text-coding.c (char_encode_ucs4): New function.
3372         (char_finish_ucs4): New function.
3373         (encode_coding_ucs4): Deleted.
3374         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3375         (text_encode_generic): Delete local variable `charset' and `half'.
3376         (ucs_to_mule_table): Deleted.
3377         (mule_to_ucs_table): Deleted.
3378         (Fset_ucs_char): Deleted.
3379         (ucs_to_char): Deleted.
3380         (Fucs_char): Deleted.
3381         (Fset_char_ucs): Deleted.
3382         (Fchar_ucs): Deleted.
3383         (decode_ucs4): Deleted.
3384         (mule_char_to_ucs4): Deleted.
3385         (encode_ucs4): Deleted.
3386         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3387         (decode_coding_utf8): Likewise.
3388         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3389         (char_encode_iso2022): Fixed.
3390         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3391         `Fset_char_ucs' and `Fchar_ucs'.
3392         (complex_vars_of_file_coding): Don't initialize
3393         `ucs_to_mule_table'.
3394
3395         * objects-tty.c (tty_initialize_font_instance): Don't use
3396         `XCHARSET_COLUMNS'.
3397
3398         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3399         UTF-2000.
3400
3401         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3402         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3403
3404         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3405         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3406         (emchar_string_displayed_columns): Likewise.
3407
3408         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3409         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3410         (string_column_at_point): Likewise.
3411         (Fmove_to_column): Likewise.
3412
3413         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3414         `encoding_table' and `decoding_table'.
3415         (CHARSET_REP_BYTES): Deleted.
3416         (XCHARSET_REP_BYTES): Deleted.
3417         (XCHARSET_COLUMNS): Deleted.
3418         (CHAR_COLUMNS): New macro.
3419         (lookup_composite_char): Deleted unconditionally.
3420         (composite_char_string): Likewise.
3421
3422 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3423
3424         * char-ucs.h (Emchar_to_byte_table): New type.
3425         (get_byte_from_character_table): New function interface.
3426         (Vcharset_latin_jisx0201): New variable.
3427         (latin_jisx0201_to_ucs): New variable.
3428         (ucs_to_latin_jisx0201): New variable.
3429         (Vcharset_latin_iso8859_2): New variable.
3430         (latin_iso8859_2_to_ucs): New variable.
3431         (ucs_to_latin_iso8859_2): New variable.
3432         (Vcharset_latin_iso8859_3): New variable.
3433         (latin_iso8859_3_to_ucs): New variable.
3434         (ucs_to_latin_iso8859_3): New variable.
3435         (Vcharset_latin_iso8859_4): New variable.
3436         (latin_iso8859_4_to_ucs): New variable.
3437         (ucs_to_latin_iso8859_4): New variable.
3438         (Vcharset_latin_iso8859_9): New variable.
3439         (latin_iso8859_9_to_ucs): New variable.
3440         (ucs_to_latin_iso8859_9): New variable.
3441         (Vcharset_latin_viscii_lower): New variable.
3442         (latin_viscii_lower_to_ucs): New variable.
3443         (ucs_to_latin_viscii_lower): New variable.
3444         (Vcharset_latin_viscii_upper): New variable.
3445         (latin_viscii_upper_to_ucs): New variable.
3446         (ucs_to_latin_viscii_upper): New variable.
3447         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3448         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3449         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3450         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3451         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3452         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3453         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3454         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3455         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3456         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3457
3458         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3459         (Vcharset_latin_viscii_upper): New variable.
3460         (make_byte_from_character_table): New function.
3461         (put_byte_from_character_table): New function.
3462         (get_byte_from_character_table): New function.
3463         (CHAR96): New macro.
3464         (ucs_to_latin_jisx0201): New variable.
3465         (latin_jisx0201_to_ucs): New variable.
3466         (ucs_to_latin_iso8859_2): New variable.
3467         (latin_iso8859_2_to_ucs): New variable.
3468         (ucs_to_latin_iso8859_3): New variable.
3469         (latin_iso8859_3_to_ucs): New variable.
3470         (ucs_to_latin_iso8859_4): New variable.
3471         (latin_iso8859_4_to_ucs): New variable.
3472         (ucs_to_latin_iso8859_9): New variable.
3473         (latin_iso8859_9_to_ucs): New variable.
3474         (ucs_to_latin_viscii_lower): New variable.
3475         (latin_viscii_lower_to_ucs): New variable.
3476         (ucs_to_latin_viscii_upper): New variable.
3477         (latin_viscii_upper_to_ucs): New variable.
3478         (ucs_to_latin_tcvn5712): New variable.
3479         (latin_tcvn5712_to_ucs): New variable.
3480         (Qlatin_viscii_lower): New variable.
3481         (Qlatin_viscii_upper): New variable.
3482         (syms_of_mule_charset): Set up new symbol
3483         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3484         (complex_vars_of_mule_charset): Set up new charset
3485         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3486         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3487         `ucs_to_<CHARSET>' tables.
3488
3489 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3490
3491         * text-coding.c: New file.
3492
3493 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3494
3495         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3496
3497         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3498         (MAKE_CHAR): Modify for `ucs-bmp'.
3499         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3500         non-MULE characters of BMP.
3501
3502 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3503
3504         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3505         to 0.6.
3506
3507 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3508
3509         * lstream.h:
3510         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3511         - Include character.h for `CHAR_ASCII_P'.
3512
3513         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3514
3515         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3516         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3517
3518         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3519         (BYTE_C0_P): Likewise.
3520         (BYTE_C1_P): Likewise.
3521         (Lstream_get_emchar_1): Likewise.
3522         (Lstream_fput_emchar): Likewise.
3523         (Lstream_funget_emchar): Likewise.
3524         (copy_internal_to_external): Likewise.
3525         (copy_external_to_internal): Likewise.
3526
3527         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3528         (BYTE_C0_P): Likewise.
3529         (BYTE_C1_P): Likewise.
3530         (Lstream_get_emchar_1): Likewise.
3531         (Lstream_fput_emchar): Likewise.
3532         (Lstream_funget_emchar): Likewise.
3533         (copy_internal_to_external): Likewise.
3534         (copy_external_to_internal): Likewise.
3535
3536         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3537         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3538
3539         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3540         (BYTE_ASCII_P): Moved to mb-1byte.h.
3541
3542 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3543
3544         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3545
3546         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3547         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3548         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3549         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3550         (VALIDATE_CHARPTR_FORWARD): Likewise.
3551         (simple_charptr_emchar): Moved to mb-multibyte.h.
3552         (simple_set_charptr_emchar): Likewise.
3553         (simple_charptr_copy_char): Likewise.
3554         (non_ascii_charptr_emchar): Likewise.
3555         (non_ascii_set_charptr_emchar): Likewise.
3556         (non_ascii_charptr_copy_char): Likewise.
3557         (charptr_emchar): Moved to mb-*byte.h.
3558         (set_charptr_emchar): Likewise.
3559         (charptr_copy_char): Likewise.
3560
3561         * mb-1byte.h, mb-multibyte.h: New files.
3562
3563 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3564
3565         * mb-utf-8.h (MULTIBYTE): New macro.
3566         (MAX_EMCHAR_LEN): Moved from buffer.h.
3567         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3568
3569         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3570
3571         * mb-lb.h, multibyte.h: New files.
3572
3573         * char-1byte.h (Charset_ID): Moved from buffer.h.
3574         (MIN_LEADING_BYTE): Likewise.
3575         (LEADING_BYTE_ASCII): Likewise.
3576         (NUM_LEADING_BYTES): Likewise.
3577         (CHARSETP): Likewise.
3578         (CHARSET_BY_LEADING_BYTE): Likewise.
3579         (XCHARSET_LEADING_BYTE): Likewise.
3580         (XCHARSET_GRAPHIC): Likewise.
3581         (XCHARSET_COLUMNS): Likewise.
3582         (XCHARSET_DIMENSION): Likewise.
3583         (CHAR_CHARSET): Likewise.
3584         (CHAR_LEADING_BYTE): Likewise.
3585         (BREAKUP_CHAR): Likewise.
3586         (Vcharset_ascii): Likewise.
3587
3588         * buffer.h: Include multibyte.h unconditionally.
3589         (VALID_CHARPTR_P): Moved to multibyte.h.
3590         (ASSERT_VALID_CHARPTR): Likewise.
3591         (REAL_INC_CHARPTR): Likewise.
3592         (REAL_INC_CHARBYTIND): Likewise.
3593         (REAL_DEC_CHARPTR): Likewise.
3594         (INC_CHARPTR): Likewise.
3595         (INC_CHARBYTIND): Likewise.
3596         (DEC_CHARPTR): Likewise.
3597         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3598         (VALIDATE_CHARPTR_FORWARD): Likewise.
3599         (charptr_n_addr): Likewise.
3600         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3601         (simple_charptr_emchar): Moved to multibyte.h.
3602         (simple_set_charptr_emchar): Likewise.
3603         (simple_charptr_copy_char): Likewise.
3604         (non_ascii_charptr_emchar): Likewise.
3605         (non_ascii_set_charptr_emchar): Likewise.
3606         (non_ascii_charptr_copy_char): Likewise.
3607         (charptr_emchar): Likewise.
3608         (set_charptr_emchar): Likewise.
3609         (charptr_copy_char): Likewise.
3610         (charptr_emchar_n): Likewise.
3611         (Charset_ID): Moved to char-1byte.h.
3612         (Vcharset_ascii): Likewise.
3613         (CHAR_CHARSET): Likewise.
3614         (CHAR_LEADING_BYTE): Likewise.
3615         (LEADING_BYTE_ASCII): Likewise.
3616         (NUM_LEADING_BYTES): Likewise.
3617         (MIN_LEADING_BYTE): Likewise.
3618         (CHARSETP): Likewise.
3619         (CHARSET_BY_LEADING_BYTE): Likewise.
3620         (XCHARSET_LEADING_BYTE): Likewise.
3621         (XCHARSET_GRAPHIC): Likewise.
3622         (XCHARSET_COLUMNS): Likewise.
3623         (XCHARSET_DIMENSION): Likewise.
3624         (BREAKUP_CHAR): Likewise.
3625
3626 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3627
3628         * character.h: Add document about interface for characters.
3629
3630         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3631         (MAKE_CHAR): Delete comment about
3632         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3633         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3634         (BREAKUP_CHAR): Modify name of arguments.
3635         (CHAR_CHARSET): Modify name of argument.
3636
3637         * buffer.h: Delete document about Emchar accessors.
3638
3639 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3640
3641         * character.h (CHAR_INTP): Moved from buffer.h
3642         (CHAR_OR_CHAR_INTP): Likewise.
3643         (XCHAR_OR_CHAR_INT): Likewise.
3644         (CHECK_CHAR_COERCE_INT): Likewise.
3645
3646         * buffer.h (CHAR_INTP): Moved to character.h
3647         (CHAR_OR_CHAR_INTP): Likewise.
3648         (XCHAR_OR_CHAR_INT): Likewise.
3649         (CHECK_CHAR_COERCE_INT): Likewise.
3650
3651 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3652
3653         * character.h:
3654         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3655         - Include char-1byte.h, char-lb.h or char-ucs.h.
3656
3657         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3658
3659         * buffer.h: Include character unconditionally.
3660         (valid_char_p): Moved to char-*.h.
3661         (non_ascii_valid_char_p): Moved to char-lb.h.
3662
3663         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3664
3665 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3666
3667         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3668         in UTF-2000 because it is not ported yet and not to use
3669         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3670         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3671         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3672
3673         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3674         (CHAR_ASCII_P): Moved from character.h.
3675
3676         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3677         (CHAR_ASCII_P): Likewise.
3678         (CHAR_FIELD1_MASK): Deleted.
3679         (CHAR_FIELD2_MASK): Deleted.
3680         (CHAR_FIELD3_MASK): Deleted.
3681         (MAX_CHAR_BASIC_LATIN): New macro.
3682         (CHAR_FIELD1): Deleted.
3683         (CHAR_FIELD2_INTERNAL): Deleted.
3684         (CHAR_FIELD3_INTERNAL): Deleted.
3685         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3686         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3687         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3688         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3689         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3690         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3691         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3692         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3693         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3694         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3695         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3696         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3697         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3698         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3699         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3700         (MIN_CHAR_COMPOSITION): Deleted.
3701         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3702         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3703
3704 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3705
3706         * buffer.h: Include mb-utf-8.h in UTF-2000.
3707
3708         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3709
3710         * mb-utf-8.h: New file.
3711
3712 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3713
3714         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3715         instead of `int'.
3716
3717         * mule-charset.h, buffer.h (Charset_ID): New type.
3718
3719 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3720
3721         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3722         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3723         instead of `MULE_CHAR_PRIVATE_OFFSET',
3724         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3725         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3726         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3727
3728         * character.h (Vcharset_japanese_jisx0212): New variable
3729         definition.
3730
3731 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3732
3733         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3734         (charset_by_attributes): Delete array about direction.
3735         (latin_a_char_to_charset): New variable in UTF-2000.
3736         (latin_a_char_to_byte1): New variable in UTF-2000.
3737         (latin_a_char_to_byte2): New variable in UTF-2000.
3738         (Qucs_bmp): New variable.
3739         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3740         `Bufbyte'.
3741         (next_allocated_2_byte_leading_byte): Likewise.
3742         (non_ascii_set_charptr_emchar): Likewise.
3743         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3744         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3745         `charset_by_attributes'.
3746         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3747         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3748         and `CHARSET_BY_LEADING_BYTE'.
3749         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3750         `utf-2000-version' to `vars_of_mule_charset'.
3751         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3752         define `leading-code-private-11' in UTF-2000; move setting of
3753         `utf-2000-version' from `syms_of_mule_charset'.
3754         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3755         UTF-2000.
3756
3757         * character.h (Charset_ID): New type.
3758         (LEADING_BYTE_UCS_BMP): New macro.
3759         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3760         (CHARSET_ID_OFFSET_94): New macro.
3761         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3762         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3763         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3764         final-byte.
3765         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3766         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3767         (CHARSET_ID_OFFSET_96): New macro.
3768         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3769         CHARSET_ID_OFFSET_96 and final-byte.
3770         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3771         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3772         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3773         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3774         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3775         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3776         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3777         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3778         (LEADING_BYTE_THAI_TIS620): Likewise.
3779         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3780         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3781         (CHARSET_ID_OFFSET_94x94): New macro.
3782         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3783         CHARSET_ID_OFFSET_94x94 and final-byte.
3784         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3785         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3786         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3787         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3788         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3789         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3790         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3791         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3792         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3793         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3794         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3795         (CHARSET_TYPE_128X128): New macro.
3796         (CHARSET_TYPE_256X256): New macro.
3797         (XCHARSET_PRIVATE_P): Delete unconditionally.
3798         (charset_by_attributes): Delete array about direction.
3799         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3800         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3801         (MIN_CHAR_94): New macro.
3802         (MAX_CHAR_94): New macro.
3803         (MIN_CHAR_96): New macro.
3804         (MAX_CHAR_96): New macro.
3805         (MIN_CHAR_94x94): New macro.
3806         (MAX_CHAR_94x94): New macro.
3807         (MIN_CHAR_96x96): New macro.
3808         (MAX_CHAR_96x96): New macro.
3809         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3810         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3811         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3812         - 32)'.
3813         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3814         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3815         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3816         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3817         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3818         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3819         `XCHARSET_LEADING_BYTE' to make code-point.
3820         (latin_a_char_to_charset): New variable.
3821         (latin_a_char_to_byte1): New variable.
3822         (latin_a_char_to_byte2): New variable.
3823         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3824         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3825         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3826
3827         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3828         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3829         (find_charsets_in_emchar_string): Likewise.
3830         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3831
3832         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3833         `int'.
3834         (decode_coding_iso2022): Likewise.
3835
3836         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3837         of `unsigned char'.
3838
3839         * redisplay.c (redisplay_text_width_emchar_string): Use
3840         `Charset_ID' instead of `unsigned char'.
3841         (redisplay_frame_text_width_string): Likewise.
3842
3843         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3844         `unsigned char'.
3845
3846         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3847         instead of `unsigned char'.
3848         (face_cachel_charset_font_metric_info): Likewise.
3849
3850         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3851         (get_non_ascii_char_table_value): Likewise.
3852         (get_char_table): Likewise.
3853         (put_char_table): Likewise.
3854         (map_over_other_charset): Likewise.
3855         (map_char_table): Likewise.
3856
3857         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3858         instead of `unsigned char'.
3859
3860 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3861
3862         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3863         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3864
3865         * mule-charset.c (leading_code_private_11): Don't define in
3866         UTF-2000.
3867
3868         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3869         in UTF-2000 because it is not ported yet and not to use
3870         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3871
3872 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3873
3874         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3875
3876 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3877
3878         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3879         in UTF-2000.
3880
3881         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3882         of unsigned char to store leading-byte.
3883
3884         * chartab.c (get_non_ascii_char_table_value): Don't use
3885         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3886
3887         * file-coding.c (encode_coding_big5): Delete bogus implementation
3888         in UTF2000.
3889
3890         * character.h (LEADING_BYTE_*): Delete definition for
3891         non-UTF-2000.
3892         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3893         (LEADING_BYTE_PREFIX_P): Deleted.
3894         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3895         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3896         (BUFBYTE_LEADING_BYTE_P): Deleted.
3897         (CHARSET_PRIVATE_P): Deleted unconditionally.
3898         (rep_bytes_by_first_byte): Deleted unconditionally.
3899         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3900         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3901         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3902         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3903         (CHAR_FIELD2): Deleted.
3904         (CHAR_FIELD3): Deleted.
3905         (MAKE_CHAR): Delete definition for non-UTF-2000.
3906         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3907         (breakup_char_1): New implementation.
3908         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3909         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3910
3911 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3912
3913         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3914         condition.
3915
3916 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3917
3918         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3919         (CHARSET_PRIVATE_P): Likewise.
3920         (XCHARSET_PRIVATE_P): Likewise.
3921         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3922
3923         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3924         UTF2000.
3925         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3926
3927 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3928
3929         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3930         (NUM_LEADING_BYTES): Changed from 128 to 256.
3931         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3932         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3933         UTF2000.
3934         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3935
3936         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3937         UTF2000.
3938         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3939         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3940         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3941         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3942         (Qchinese_cns11643_3): New variable in UTF2000.
3943         (Qchinese_cns11643_4): New variable in UTF2000.
3944         (Qchinese_cns11643_5): New variable in UTF2000.
3945         (Qchinese_cns11643_6): New variable in UTF2000.
3946         (Qchinese_cns11643_7): New variable in UTF2000.
3947         (syms_of_mule_charset): Define `chinese-cns11643-3',
3948         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3949         and `chinese-cns11643-7' in UTF2000.
3950         (vars_of_mule_charset): Initialize
3951         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3952         + 1 in UTF2000.
3953         (complex_vars_of_mule_charset): Setup charset
3954         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3955         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3956
3957 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3958
3959         * mule-charset.c: Move setting for `leading-code-private-11' from
3960         `syms_of_mule_charset' to `vars_of_mule_charset'.
3961
3962 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3963
3964         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3965         and `NUM_LEADING_BYTES' in assert.
3966
3967 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3968
3969         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3970         instead of 128.
3971         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3972         `NUM_LEADING_BYTES' instead of 128.
3973
3974 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3975
3976         * mule-charset.h (charset_by_leading_byte): Use
3977         `NUM_LEADING_BYTES' instead of 128.
3978         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3979
3980         * mule-charset.c (charset_by_leading_byte): Use
3981         `NUM_LEADING_BYTES' instead of 128.
3982         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3983
3984         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3985         128.
3986
3987 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3988
3989         * mule-charset.c (syms_of_mule_charset): Update to
3990         0.4 (Shin-Imamiya).
3991
3992 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3993
3994         * file-coding.c (encode_coding_sjis): New implementation for
3995         UTF2000.  (decode_coding_sjis): Ditto.
3996
3997 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3998
3999         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4000         Don't define in UTF2000.
4001
4002         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4003         defined.
4004
4005         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4006         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4007         MULE.
4008
4009 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4010
4011         * config.h.in (CHAR_IS_UCS4): New macro.
4012
4013         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4014         conventional MULE representation.
4015         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4016
4017         * mule-charset.h: Reverted to original.
4018
4019         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4020         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4021         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4022
4023         * character.h: New file.
4024
4025         * file-coding.c (Fmake_coding_system): Set 1 to
4026         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4027         defined.
4028         (encode_coding_no_conversion): New implementation for UTF2000.
4029
4030         * file-coding.h (struct Lisp_Coding_System): Add new member
4031         `fixed.size'.
4032
4033 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4034
4035         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4036         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4037         (encode_coding_iso2022): New implementation for UTF2000.
4038
4039 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4040
4041         * mule-canna.c (c2mu): New implementation for UTF2000.
4042         (m2c): Likewise.
4043
4044 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4045
4046         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4047
4048 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4049
4050         * file-coding.c (reset_encoding_stream): Set 0 to
4051         `str->iso2022.current_char_boundary' in UTF2000.
4052         (encode_utf8): Don't define in UTF2000.
4053         (encode_coding_utf8): New implementation for UTF-8 representation
4054         of UTF2000.
4055         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4056
4057 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4058
4059         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4060
4061         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4062         UTF2000.
4063         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4064
4065         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4066
4067         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4068         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4069         as UTF-8 in UTF2000.
4070         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4071         (non_ascii_valid_char_p): Don't define in UTF2000.
4072         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4073         (Lstream_get_emchar_1): Likewise.
4074         (utf-2000-version): New variable in UTF2000.
4075
4076         * lread.c (read_escape): Add new reader `u'.
4077
4078         * insdel.c (three_to_one_table): Don't define in UTF2000.
4079         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4080         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4081         UTF2000.
4082         (bytind_to_bufpos_func): Likewise.
4083         (buffer_mule_signal_inserted_region): Likewise.
4084         (vars_of_insdel): Don't initialize `three_to_one_table'.
4085         (init_buffer_text): Use `buf->text->mule_size' instead of
4086         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4087         UTF2000.
4088
4089         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4090         UTF-8 representation in UTF2000.
4091         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4092         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4093         (decode_coding_iso2022): Don't define local variable `lb' in
4094         UTF2000; don't use LEADING_BYTE in UTF2000; use
4095         `DECODE_ADD_UCS_CHAR' in UTF2000.
4096         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4097
4098         * config.h.in (UTF2000): New macro.
4099
4100         * buffer.h (struct buffer_text): Add new member `mule_size' and
4101         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4102         (valid_char_p): Return always 1 in UTF2000.
4103         (MAX_EMCHAR_LEN): 6 in UTF2000.
4104         (three_to_one_table): Don't define in UTF2000.
4105         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4106         UTF2000.
4107         (real_bytind_to_bufpos): Likewise.
4108
4109         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4110
4111 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4112
4113         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4114         representation change.
4115         (Vutf_2000_version): New variable.
4116         (leading_code_private_11): New variable.
4117         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4118         `leading-code-private-11'.
4119
4120         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4121         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4122         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4123         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4124         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4125         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4126         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4127         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4128         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4129         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4130         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4131         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4132         (MIN_CHAR_GREEK): New macro.
4133         (MAX_CHAR_GREEK): New macro.
4134         (MIN_CHAR_CYRILLIC): New macro.
4135         (MAX_CHAR_CYRILLIC): New macro.
4136         (MIN_CHAR_HEBREW): New macro.
4137         (MAX_CHAR_HEBREW): New macro.
4138         (MIN_CHAR_THAI): New macro.
4139         (MAX_CHAR_THAI): New macro.
4140         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4141         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4142         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4143         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4144         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4145         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4146         (CHAR_FIELD2): New inline function.
4147         (CHAR_FIELD3): New inline function.
4148         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4149         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4150         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4151         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4152         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4153         (MIN_CHAR_COMPOSITION): Likewise.
4154         (CHAR_LEADING_BYTE): Modified for character representation change.
4155         (MAKE_CHAR): Likewise.
4156
4157         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4158         (Vcharset_greek_iso8859_7): Likewise.
4159         (Vcharset_cyrillic_iso8859_5): Likewise.
4160         (Vcharset_hebrew_iso8859_8): Likewise.
4161         (Vcharset_thai_tis620): Likewise.
4162         (Vcharset_katakana_jisx0201): Likewise.
4163
4164 2001-02-08  Martin Buchholz <martin@xemacs.org>
4165
4166         * XEmacs 21.2.44 "Thalia" is released.
4167
4168 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4169
4170         Fixes crashes in kill-emacs on some systems.
4171         * process-unix.c (unix_kill_child_process):
4172         It's OK for kill() to fail with ESRCH.
4173
4174 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4175
4176         Contortions to make .gdbinit tricks work on most systems.
4177         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4178         * alloc.c (dbg_valmask): Make non-const.
4179         * alloc.c (dbg_typemask): Make non-const.
4180         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4181         * alloc.c (dbg_valbits): Make non-const.
4182         * alloc.c (dbg_gctypebits): Make non-const.
4183         * .gdbinit (decode_object): Make it work with AIX cc.
4184
4185 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4186
4187         * elhash.c (make_general_lisp_hash_table):
4188         Use simpler and more efficient calloc to clear entries.
4189
4190 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4191
4192         * window.c (window_scroll): Work around an AIX C compiler bug.
4193         Fixes 'scroll-up' does nothing problem with xlC.
4194
4195 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4196
4197         * .gdbinit: Remove obsolete comment.
4198
4199 2001-01-31  Mike Alexander  <mta@arbortext.com>
4200
4201         * select.c (Fown_selection_internal): Set owned_p for device
4202         method correctly.
4203
4204 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4205
4206         Port to g++ 2.97.
4207         "not" cannot be used as a macro name as it is an operator in C++
4208         * config.h.in: Stop #defining `not'.
4209         * chartab.c (check_category_char): not ==> not_p
4210         * chartab.h: Likewise.
4211         * regex.c (re_match_2_internal): Likewise.
4212
4213 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4214
4215         * lisp-disunion.h: Fix up comments.
4216
4217 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4218
4219         * keymap.c (define_key_check_and_coerce_keysym):
4220         (syms_of_keymap):
4221         Support mouse-6 and mouse-7 bindings in the obvious way.
4222
4223 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4224
4225         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4226
4227 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4228
4229         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4230         Previous patch missed DEFVAR_INT_MAGIC.
4231         Make sure future DEFVAR_foo use correct types.
4232         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4233         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4234         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4235         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4236         * (DEFVAR_INT): Likewise.
4237         * redisplay.c (vertical_clip): Should be of type Fixnum.
4238         * redisplay.c (horizontal_clip): Likewise.
4239         * lisp.h (dump_add_opaque_int): New.
4240         (dump_add_opaque_fixnum): New.
4241
4242 2001-01-29  Andy Piper  <andy@xemacs.org>
4243
4244         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4245         since they can be eval'ed
4246
4247 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4248
4249         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4250         Oops, XEmacs redefines `class'.  Use `typename' instead.
4251
4252 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4253
4254         * dumper.c: Fix C++ compile errors.
4255
4256 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4257
4258         * tparam.c: Use correct prototypes.
4259
4260 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4261
4262         * sysproc.h: #include util.h for NetBSD's openpty.
4263
4264 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4265
4266         More 64-bit correctness.
4267         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4268         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4269         Fix up comments.
4270         This finally finishes the 64-bit SGI port.
4271         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4272         * symbols.c: Fix up comments and type casts.
4273         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4274         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4275         * symeval.h (Fixnum): New type.
4276         * symeval.h (symbol_value_type): Fix up comment.
4277
4278         * commands.h:
4279         * nt.c:
4280         * emacs.c:
4281         * data.c:
4282         * redisplay.c:
4283         * abbrev.c:
4284         * dired-msw.c:
4285         * event-Xt.c:
4286         * eldap.c:
4287         * window.c:
4288         * sound.c:
4289         * event-stream.c:
4290         * eval.c:
4291         * buffer.c:
4292         * mule-canna.c: A million DEFVAR_INTs here...
4293         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4294         * extents.c:
4295         * cmdloop.c:
4296         * lisp.h:
4297         * select-x.c:
4298         * console-x.h:
4299         * event-msw.c:
4300         * mule-wnnfns.c:
4301         * hpplay.c:
4302         * ralloc.c:
4303         * alloc.c:
4304         * keymap.c:
4305         * profile.c:
4306         s/int/Fixnum/g in DEFVAR_INT declarations.
4307
4308 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4309
4310         Port pdump to SGI alignment-sensitive environment.
4311         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4312         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4313         properly aligned.
4314         Define and use aligned reading and writing macros.
4315         Use buffered stdio instead of posix i/o for faster dumping.
4316         Eliminate kludgy 256 byte space for header.
4317         Read and write from dump file using structs for alignment safety.
4318         * dumper.c (pdump_align_stream): New.
4319         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4320         * dumper.c (PDUMP_READ_ALIGNED): New.
4321         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4322         * dumper.c (pdump_static_Lisp_Object): New struct.
4323         * dumper.c (pdump_static_pointer): New struct.
4324         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4325         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4326         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4327         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4328
4329         * dumper.c (pdump_backtrace):
4330         * dumper.c (pdump_get_indirect_count):
4331         * dumper.c (pdump_register_object):
4332         * dumper.c (pdump_register_struct):
4333         * dumper.c (pdump_reloc_one):
4334         * dumper.c (pdump_scan_by_alignment):
4335         * dumper.c (pdump_dump_from_root_struct_ptrs):
4336         * dumper.c (pdump_dump_opaques):
4337         * dumper.c (pdump_dump_rtables):
4338         * dumper.c (pdump_dump_from_root_objects):
4339         * dumper.c (pdump):
4340         * dumper.c (pdump_load_finish):
4341         Use aligned reading and writing.
4342
4343         * dumper.c (pdump_free): Make static.
4344         * dumper.c (pdump_hFile): Likewise.
4345         * dumper.c (pdump_hMap): Likewise.
4346
4347 2001-01-26  Martin Buchholz <martin@xemacs.org>
4348
4349         * XEmacs 21.2.43 "Terspichore" is released.
4350
4351 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4352
4353         Type fiddling for window_config.saved_windows_count
4354         * window.c (struct window_config): 
4355         Make saved_windows_count member unsigned.
4356         * window.c (sizeof_window_config_for_n_windows): 
4357         Make parameter unsigned.
4358         * window.c (mark_window_config):
4359         * window.c (window_config_equal):
4360         * window.c (free_window_configuration):
4361         * window.c (Fset_window_configuration):
4362         * window.c (count_windows):
4363         * window.c (Fcurrent_window_configuration):
4364         * window.c (reinit_vars_of_window):
4365         Update all callers and users.
4366
4367 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4368
4369         Alignment correctness for flexible arrays.
4370         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4371         Make alignment-correct. Add interesting comments.
4372         * alloc.c (size_vector):
4373         * alloc.c (make_vector_internal):
4374         * alloc.c (make_bit_vector_internal):
4375         * alloc.c (sweep_bit_vectors_1):
4376         * fns.c (size_bit_vector):
4377         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4378         * window.c (sizeof_window_config_for_n_windows): 
4379         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4380
4381 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4382
4383         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4384
4385 2001-01-23  Andy Piper  <andy@xemacs.org>
4386
4387         * select.c (Fown_selection_internal): pass owned_p
4388
4389         * select-msw.c (mswindows_own_selection): New Signature.
4390
4391         * console.h (struct console_methods): add owned_p to
4392         _own_selection.
4393
4394         * select-x.c (x_own_selection): pass owned_p
4395         (hack_motif_clipboard_selection): use owned_p
4396         (vars_of_select_x): new variable -
4397         x_selection_strict_motif_ownership.
4398
4399 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4400
4401         * specifier.h (specifier_data_offset): Remove pointless parens.
4402         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4403
4404 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4405
4406         Make Lisp_Object sizeof methods be alignment-correct.
4407         pdump must restore objects to the same alignment as the C compiler
4408         assumes.  It really matters on SGIs.
4409         * lstream.c (aligned_sizeof_lstream): New.
4410         (sizeof_lstream): Use aligned_sizeof_lstream.
4411         (Lstream_new): Likewise.
4412         * opaque.c (aligned_sizeof_opaque): New.
4413         (sizeof_opaque): Use aligned_sizeof_opaque.
4414         (make_opaque): Likewise.
4415         * specifier.c (aligned_sizeof_specifier): New.
4416         (sizeof_specifier): Use aligned_sizeof_specifier.
4417         (make_specifier_internal): Likewise.
4418
4419 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4420
4421         * lstream.h (struct lstream): Use max_align_t for trailing data.
4422         * specifier.h (struct Lisp_Specifier): Likewise.
4423
4424 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4425
4426         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4427         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4428         (CCL_SUSPEND): Likewise.
4429         (CCL_INVALID_CMD): Likewise.
4430         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4431         (ccl_driver): Likewise.
4432         (CCL_WRITE_CHAR): Macro hygiene.
4433         (CCL_WRITE_STRING): Macro hygiene.
4434
4435 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4436
4437         Port "portable" dumper to SunOS 4 and HP-UX.
4438         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4439         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4440         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4441
4442 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4443
4444         * lisp.h (ALIGNOF): A better definition for C++.
4445
4446 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4447
4448         Macro hygiene.
4449         Fix printf warnings: int format, long int arg.
4450         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4451         (PUSH_FAILURE_POINT): Use correct printf formats.
4452         (POP_FAILURE_POINT): Use correct printf formats.  
4453         Use do {...} while (0)
4454
4455 2001-01-20  Martin Buchholz <martin@xemacs.org>
4456
4457         * XEmacs 21.2.42 "Poseidon" is released.
4458
4459 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4460
4461         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4462
4463 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4464
4465         De-kludgify FIXED_TYPE free list frobbing.
4466         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4467         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4468         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4469         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4470         * alloc.c (LRECORD_FREE_P): New.
4471         * alloc.c (MARK_LRECORD_AS_FREE): New.
4472         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4473         * alloc.c (STRUCT_FREE_P): Deleted.
4474         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4475         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4476         * alloc.c (STRING_CHARS_FREE_P): New.
4477         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4478         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4479         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4480         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4481         * alloc.c (resize_string): Use new definitions.
4482         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4483         * alloc.c (verify_string_chars_integrity): Use new definitions.
4484         * alloc.c (compact_string_chars): Use new definitions.
4485         * alloc.c: Update monster comments.
4486         * lrecord.h (lrecord_type): Add some new lrecord types for
4487         alloc.c's use.
4488
4489 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4490
4491         Improve alignment hackery.
4492         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4493         (max_align_t): Moved from opaque.h - general purpose.
4494         (ALIGN_PTR): Use size_t, not long.
4495         * opaque.h (max_align_t): Move to lisp.h.
4496
4497 2001-01-18  Norbert Koch  <nk@LF.net>
4498
4499         * gui.h: Fix and add prototypes to fix build problems.
4500
4501 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4502
4503         temacs is going away, so `dump-temacs' is now a bad name.
4504         * .dbxrc (dump-temacs): Rename to `dmp'.
4505         * .gdbinit (dump-temacs): Rename to `dmp'.
4506
4507 2001-01-17  Andy Piper  <andy@xemacs.org>
4508
4509         * glyphs.c (print_image_instance): comment to make martin happy.
4510
4511         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4512         change.
4513
4514         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4515         activation.
4516         (mswindows_tab_control_redisplay): warning suppression.
4517
4518         * glyphs-widget.c (widget_update): re-write to cope with updated
4519         items.
4520         (widget_instantiate): use new gui_item functions.
4521         (tab_control_update): deleted.
4522         (progress_gauge_update): deleted.
4523         (image_instantiator_progress_guage): take out update reference.
4524         (image_instantiator_tree_view): ditto.
4525         (image_instantiator_tab_control): ditto.
4526
4527         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4528         Right the new way.
4529         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4530         return whether anything was changed.
4531         (update_gui_item_keywords): as it sounds.
4532
4533         * gui.h: declare widget_gui_parse_item_keywords.
4534
4535         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4536         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4537
4538 2001-01-17  Martin Buchholz <martin@xemacs.org>
4539
4540         * XEmacs 21.2.41 "Polyhymnia" is released.
4541
4542 2001-01-16  Didier Verna  <didier@xemacs.org>
4543
4544         * glyphs.c (image_instantiate): don't use fallbacks when
4545         instantiating a face's background pixmap by inheritance.
4546
4547 2001-01-14  Mike Sperber <mike@xemacs.org>
4548
4549         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4550         Conditionalize accordingly.
4551
4552 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4553
4554         * dumper.c (pdump_file_get): Fix a compiler warning.
4555
4556 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4557
4558         Make Purify happy when pdumping.
4559         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4560         iniitalizing all bits of new lisp object memory.
4561         * symbols.c (Fmake_local_variable): Likewise.
4562         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4563         * symbols.c (Fdefvaralias): Likewise.
4564         * mule-charset.c (vars_of_mule_charset): Likewise.
4565
4566 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4567         Add the `-nd' flag when running pre-dump operations under the debugger.
4568         * .dbxrc (run-temacs): Add `-nd'.
4569         * .dbxrc (update-elc): Likewise.
4570         * .dbxrc (dump-temacs): Likewise.
4571         * .gdbinit (run-temacs): Likewise.
4572         * .gdbinit (check-temacs): Likewise.
4573         * .gdbinit (update-elc): Likewise.
4574         * .gdbinit (dump-temacs): Likewise.
4575
4576 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4577
4578         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4579         export OBJECT_MODE=64
4580         configure --pdump --use-union-type=no
4581         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4582         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4583
4584         * miscplay.c (sndcnv8U_2mono):
4585         Avoid two uses of `++' in the same expression.
4586         Suppresses a GCC warning.
4587
4588 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4589
4590         Make sure future compilers don't miscompile alloc.c.
4591         * alloc.c:
4592         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4593         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4594
4595 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4596
4597         * dumper.c: A little post-pdump-rename comment fixup.
4598
4599 2001-01-09  Jerry James  <james@eecs.ku.edu>
4600
4601         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4602
4603 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4604
4605         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4606         script:
4607         #!/bin/sh
4608         replace_symbol () {
4609           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4610         }
4611
4612         replace_symbol pdump_wire_lists pdump_weak_object_chains
4613         replace_symbol pdump_wire_list dump_add_weak_object_chain
4614
4615         replace_symbol pdump_wires pdump_root_objects
4616         replace_symbol pdump_wire dump_add_root_object
4617
4618         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4619         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4620
4621         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4622         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4623         replace_symbol dumpstructinfo pdump_root_struct_ptr
4624         replace_symbol dumpstruct dump_add_root_struct_ptr
4625
4626         replace_symbol dumpopaque dump_add_opaque
4627         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4628         replace_symbol dumpopaqueinfos pdump_opaques
4629         replace_symbol dumpopaqueinfo pdump_opaque
4630
4631         replace_symbol nb_structdump nb_root_struct_ptrs
4632         replace_symbol nb_opaquedump nb_opaques
4633
4634         replace_symbol align_table pdump_align_table
4635         replace_symbol dump_header pdump_header
4636
4637         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4638         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4639
4640
4641 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4642
4643         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4644         optimizing bytecount_to_charcount().
4645
4646 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4647
4648         * config.h.in:
4649         (HAVE_DLFCN_H): Removed.
4650         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4651
4652 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4653
4654         Portable dumper maintainability improvements.
4655         * alloc.c (staticpro):
4656         * alloc.c (staticpro_nodump):
4657         * alloc.c (garbage_collect_1):
4658         * alloc.c (reinit_alloc_once_early):
4659         * alloc.c (init_alloc_once_early):
4660         * alloc.c: Move dumper functions to alloc.c.
4661         * dumper.c (pdump_backtrace):
4662         * dumper.c (pdump_dump_structs):
4663         * dumper.c (pdump_dump_opaques):
4664         * dumper.c (pdump_dump_rtables):
4665         * dumper.c (pdump_dump_wired):
4666         * dumper.c (pdump):
4667         * dumper.c (pdump_load_check):
4668         * dumper.c (pdump_load_finish):
4669         * dumper.c (pdump_file_unmap):
4670         * dumper.c (pdump_file_get):
4671         * dumper.c (pdump_resource_free):
4672         * dumper.c (pdump_resource_get):
4673         * dumper.c (pdump_file_free):
4674         * dumper.c (pdump_file_try):
4675         * dumper.c (pdump_load):
4676         Remove fixed size limits on staticpro(), staticpro_nodump(),
4677         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4678         Remove custom code for dumping lrecord_implementations_table - use
4679         dumpopaque instead.
4680         Remove (most of the) custom code for dumping staticpros - dump it
4681         like any other dynarr.
4682
4683         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4684         * dumper.c: Moved functions from alloc.c.
4685         * alloc.c (dumpstruct): Moved to dumper.c.
4686         * alloc.c (dumpopaque): Likewise.
4687         * alloc.c (pdump_wire): Likewise.
4688         * alloc.c (pdump_wire_list): Likewise.
4689
4690         * lisp.h (Dynarr_sizeof): New.
4691         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4692         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4693         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4694
4695         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4696         * lisp.h (dumpopaque): ditto.
4697         * lisp.h (pdump_wire): ditto.
4698         * lisp.h (pdump_wire_list): ditto.
4699
4700 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4701
4702         * make-src-depend (PrintPatternDeps):
4703         Use `sort' to make output independent of perl version.
4704
4705 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4706
4707         Port to Netbsd 1.5.
4708         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4709         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4710
4711 2001-01-03  Didier Verna  <didier@xemacs.org>
4712
4713         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4714         that `focus_frame' is alive before thinking of calling
4715         `redisplay_redraw_cursor' on it.
4716
4717 2001-01-08  Martin Buchholz <martin@xemacs.org>
4718
4719         * XEmacs 21.2.40 is released.
4720
4721 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4722
4723         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4724
4725 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4726
4727         * alloc.c (dbg_valmask): Make const.
4728         * alloc.c (dbg_typemask): Make const.
4729         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4730         * alloc.c (dbg_valbits): Make const.
4731         * alloc.c (dbg_gctypebits): Make const.
4732
4733 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4734
4735         * redisplay-x.c (x_bevel_area):
4736         redisplay.h (struct rune):
4737         Typo fixes in comments.
4738
4739 2001-01-05  Andy Piper  <andy@xemacs.org>
4740
4741         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4742         adjustment.
4743
4744         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4745
4746 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4747
4748         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4749
4750         * mule-ccl.c (stack_idx_of_map_multiple):
4751         Non const global data must not be initialized!
4752         Found by MIYASHITA Hisashi.
4753
4754 2001-01-02  Andy Piper  <andy@xemacs.org>
4755
4756         * frame.c (change_frame_size): make sure frame size is always
4757         marked as changed.
4758
4759         * glyphs.c (image_instance_layout): minor code reuse.
4760
4761         * window.c (Fcurrent_window_configuration): revert previous
4762         change.
4763
4764 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4765
4766         * glyphs.h:
4767         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4768
4769 2000-12-31  Andy Piper  <andy@xemacs.org>
4770
4771         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4772         when widget gets unmapped.
4773
4774         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4775         function. Make sure widgets losing focus don't just drop it.
4776         (handle_focus_event_1): record the widget with focus.
4777
4778 2000-12-31  Andy Piper  <andy@xemacs.org>
4779
4780         * window.c (allocate_window): use
4781         make_image_instance_cache_hash_table.
4782         (make_dummy_parent): ditto.
4783         (Fset_window_configuration): ditto.
4784
4785         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4786
4787         * glyphs.c (process_image_string_instantiator): use
4788         INSTANTIATOR_TYPE.
4789         (get_image_instantiator_governing_domain): ditto.
4790         (normalize_image_instantiator): ditto.
4791         (instantiate_image_instantiator): ditto.
4792         (make_image_instance_1): ditto.
4793         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4794         (instantiator_eq_equal): new function for use with instance hash
4795         tables.
4796         (instantiator_eq_hash): ditto.
4797         (make_image_instance_cache_hash_table): create a suitable hash
4798         table for storing image instances.
4799
4800         * elhash.h (hash_table_weakness): new internal weakness type
4801         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4802         declare new functions.
4803
4804         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4805         another weakness type for glyphs.
4806         (make_standard_lisp_hash_table): new function split out from
4807         make_general_lisp_hash_table.
4808         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4809         (hash_table_instantiate): ditto.
4810         (Fmake_hash_table): ditto.
4811
4812 2000-12-31  Martin Buchholz <martin@xemacs.org>
4813
4814         * XEmacs 21.2.39 is released.
4815
4816 2000-12-29  Andy Piper  <andy@xemacs.org>
4817
4818         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4819
4820         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4821         the frame has changed so that we pick up geometry changes such as
4822         menubar visibility.
4823
4824 2000-12-28  Andy Piper  <andy@xemacs.org>
4825
4826         * lastfile.c (my_ebss): make a char array so we can pad the
4827         bss. Fixes cygwin unexec.
4828
4829         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4830
4831 2000-12-26  Andy Piper  <andy@xemacs.org>
4832
4833         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4834         comments and try and be more precise about a non-/SIGIO world.
4835         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4836         SIGIO.
4837
4838         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4839         we don't normalize to zero width or height.
4840
4841 2000-12-24  Andy Piper  <andy@xemacs.org>
4842
4843         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4844
4845 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4846
4847         * s/sco5.h: SCO 5 has pty support.
4848
4849 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4850
4851         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4852         input-method-xlib.c contains whole contents of input-method-xfs.c,
4853         so we can use input-method-xlib.c's code for USE_XFONTSET
4854         using #ifdefs.
4855         * input-method-xfs.c: removed.
4856
4857 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4858
4859         * file-coding.h (enum coding_category_type): reorder enumerators to
4860         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4861         (now one greater than largest real coding_category_type enumerator).
4862         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4863         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4864         Fcoding_category_list, Fset_coding_priority_list,
4865         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4866         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4867
4868 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4869
4870         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4871         * redisplay-output.c (redisplay_output_window): Clear top of window
4872         when face is changed.
4873         * redisplay-x.c (x_redraw_exposed_window): Call
4874         redisplay_clear_top_of_window.
4875         * redisplay.h: Publish redisplay_clear_top_of_window.
4876
4877 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4878
4879         * buffer.c (Fkill_buffer): Map over all devices.
4880         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4881         (list_windows): New function.
4882         (list_all_windows): Ditto.
4883         (Freplace_buffer_in_windows): Use them.
4884
4885 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4886
4887         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4888         (Fopen_database): Use `db_create' instead of `db_open'.
4889         (syms_of_database): Initialize Qqueue.
4890
4891 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4892
4893         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4894         buffer_local_face_property.
4895         * buffer.h (struct buffer): New member buffer_local_face_property.
4896         * window.c (Fset_window_buffer):  Mark window's face as changed
4897         when buffer has buffer local face.
4898         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4899         * objects.c (color_after_change): Set buffer_local_face_property
4900         when locale of face specifier is buffer.
4901         * objects.c (font_after_change): Ditto.
4902         * objects.c (face_boolean_after_change): Ditto.
4903         * glyphs.c (image_after_change): Ditto.
4904
4905 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4906
4907         * nt.c (mswindows_fstat): Report file permissions, volume serial
4908         number, etc. Code adapted from FSF Emacs 20.7.
4909
4910 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4911
4912         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4913         of stat when we don't have symbolic links, to make sure
4914         mswindows_stat is called on mswindows.
4915
4916 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4917
4918         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4919
4920 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4921
4922         * doprnt.c (emacs_doprnt_1): More printing fixes.
4923         Make printing of numbers compatible with libc and FSF Emacs.
4924         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4925         Use the system printf to do most of the hard work of formatting,
4926         instead of doprnt_1().
4927         Calculate memory to allocate for format string.
4928         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4929         (doprnt_1): Cleaner code and documentation.
4930
4931 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4932
4933         * Makefile.in.in: Use the loop variable to install headers.
4934
4935 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4936
4937         * window.c (Fsplit_window): Don't invalidate face cache.
4938
4939 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4940
4941         * minibuf.c (Fall_completions): Undo the previous change
4942         which removed checking elements start with space.
4943
4944 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4945
4946         * mule-canna.c: Didier suppression.
4947
4948 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4949
4950         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4951         (warning suppression).  Add English comment translations.
4952
4953 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4954
4955         * unexelfsgi.c (unexec): Better test for mmap failure.
4956
4957 2000-12-05  Martin Buchholz <martin@xemacs.org>
4958
4959         * XEmacs 21.2.38 is released.
4960
4961 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4962
4963         * redisplay.c (bar-cursor): Make a user variable.
4964
4965         * symsinit.h: Add init_postgresql_from_environment.
4966
4967 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4968
4969         * regex.c: Convert to clean C.
4970
4971 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4972
4973         * realpath.c:
4974         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4975         initialization.
4976         (sys_readlink): renamed to system_readlink to avoid conflict with
4977         the other sys_readlink.
4978
4979 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4980
4981         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4982
4983 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4984
4985         * postgresql.c (init_postgresql_from_environment): new function.
4986         (vars_of_postgresql): Move code initializing Lisp variables out and
4987         into init_postgresql_from_environment.
4988         emacs.c (main_1): Call init_postgresql_from_environment if and only
4989         if running a dumped XEmacs.
4990
4991 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4992
4993         * buffer.c: Make find-file-compare-truenames default to true on
4994         windows.
4995
4996         * realpath.c (win32_abs_start):
4997         (cygwin_readlink):
4998         (win32_readlink): New functions.
4999         (xrealpath): Return really real filenames on windows.
5000
5001         * fileio.c (Ffile_truename): Make file-truename work on windows.
5002
5003 2000-11-29  Didier Verna  <didier@xemacs.org>
5004
5005         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5006         * faces.c (update_face_cachel_data): use it.
5007         * faces.c (add_face_cachel): use it. Complete background pixmap
5008         frobbing in face cache if `update_face_cachel_data' has not done so.
5009
5010 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5011
5012         * search.c (string_match_1): Don't set last_thing_searched
5013         when search failed.
5014
5015 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5016
5017         * buffer.c: Include casetab.h
5018         (common_init_complex_vars_of_buffer): Use new case-table object.
5019         * buffer.h: Include casetab.h
5020         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5021         (DOWNCASE_TABLE_OF): Ditto.
5022         * bufslots.h: Remove char-tables and add case-table.
5023         * casetab.c: Include casetab.h
5024         (CASE_TABLE_P): Removed.
5025         (mark_case_table): New function.
5026         (allocate_case_table): New function.
5027         (Fcase_table_p): Use new case-table.
5028         (case_table_char): New function.
5029         (Fget_case_table): Ditto.
5030         (Fput_case_table): Ditto.
5031         (Fput_case_table_pair): Ditto.
5032         (Fcopy_case_table): Ditto.
5033         (Fcurrent_case_table): Return case-table.
5034         (Fstandard_case_table): Return case-table.
5035         (Fset_case_table): Fix doc-string.
5036         (set_case_table): Use case-table
5037         (syms_of_casetab): DEFSUBR new functions.
5038         (complex_vars_of_casetab): Set up standard case-table.
5039         * casetab.h: New file.
5040         * editfns.c: Include casetab.h
5041         (Fcompare_buffer_substrings): Use case-table.
5042         * inline.c: Include casetab.h
5043         * lisp.h: Remove bogus extern.
5044         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5045         * search.c: Include casetab.h
5046         (TRANSLATE_ASCII): Removed.
5047         (TRANSLATE): Unconditionally translate character.
5048         (looking_at_1): Use case-table.
5049         (string_match_1): Ditto.
5050         (fast_string_match): Ditto.
5051         (search_command): Ditto.
5052         (search_buffer): Separate boyer_moore.  Check whether
5053         boyer_moore is possible.
5054         (simple_search): New function.
5055         (boyer_moore): Separated from search_buffer. Translate char.
5056
5057 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5058
5059         * regex.c (RE_TR_ASCII): Removed.
5060         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5061         (PATFETCH): Call PATFETCH_RAW.
5062         (PATFETCH_RAW): Fetch Emchar.
5063         (PATUNFETCH): Decrement charptr.
5064         (GET_BUFFER_SPACE): Rename b to buf_end.
5065         (BUF_PUSH): Ditto.
5066         (BUF_PUSH_2): Ditto.
5067         (BUF_PUSH_3): Ditto.
5068         (EXTEND_BUFFER): Ditto.
5069         (SET_LIST_BIT): Ditto.
5070         (regex_compile): Ditto.  Translate non ASCII char.
5071         (compile_range): Ditto.
5072         (re_search_2): Ditto.
5073         (re_match_2_internal): Compare Emchar.
5074         (bcmp_translate): Ditto.
5075
5076 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5077
5078         * lisp.h (basic char/int typedefs):  comment improvement.
5079
5080 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5081
5082         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5083         unstomp inhibit_site_lisp.  Improve comments.
5084
5085 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5086
5087         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5088
5089 2000-11-28  Andy Piper  <andy@xemacs.org>
5090
5091         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5092         clipped display for windows in the gutter also.
5093         (redisplay_display_boxes_in_window_p): change semantics of return
5094         codes to be more intuitive.
5095
5096         * gutter.h: declare display_boxes_in_gutter_p.
5097
5098         * gutter.c (display_boxes_in_gutter_p): new function for
5099         redisplay.
5100
5101 2000-11-22  Andy Piper  <andy@xemacs.org>
5102
5103         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5104         autodetect domain.
5105
5106 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5107
5108         * callproc.c (Fold_call_process_internal):
5109         * gpm.c (Freceive_gpm_event):
5110         (tty_get_foreign_selection): Might be just warning supression.
5111         * fileio.c (Fwrite_region_internal):
5112         (Fset_visited_file_modtime):
5113         * keymap.c (event_matches_key_specifier_p):
5114         Initialize GCPROed variable.
5115
5116         * menubar-x.c (command_builder_find_menu_accelerator):
5117         Initialize before use.
5118
5119 2000-11-23  Andy Piper  <andy@xemacs.org>
5120
5121         * unexcw.c (unexec): make the resulting executable executable.
5122
5123 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5124
5125         * doc.c (get_doc_string):
5126         Use size_t, not int, for result of XSTRING_LENGTH.
5127
5128         * cmds.c (Fdelete_char):
5129         * cmds.c (Fpoint_at_eol):
5130         * cmds.c (Fself_insert_command):
5131         Use EMACS_INT, not int, for result of XINT.
5132         Someday, someone will want to insert more than 2**31 identical characters.
5133
5134         * cmds.c (Fdelete_char):
5135         * cmds.c (Fdelete_backward_char):
5136         * syntax.c (Fforward_word):
5137         * syntax.c (Fforward_comment):
5138         Make COUNT argument optional, for consistency with forward-char et al.
5139
5140 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5141
5142         * lisp.h:
5143         * print.c (long_to_string):
5144         Return a useful value: the pointer at end of data written.
5145
5146         * doprnt.c:
5147         Use `static const char * const' for constant strings.
5148         (union printf_arg): Delete `i', `ui' members.
5149         (get_doprnt_args):
5150         (emacs_doprnt_1):
5151         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5152         Do all printf-ing via the `l' specifier.
5153         Use EMACS_INT instead of int.
5154         Optimize.
5155
5156 2000-11-20  Didier Verna  <didier@xemacs.org>
5157
5158         * faces.c (update_face_cachel_data): don't frob the background
5159         pixmap when the window is being created. The face is needed but
5160         does not exist yet.
5161
5162 2000-11-20  Andy Piper  <andy@xemacs.org>
5163
5164         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5165         messing with a debug environment.
5166
5167 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5168
5169         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5170
5171 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5172
5173         * casetab.c (Fcase_table_p): Fix compile error and crash.
5174
5175 2000-11-18  Philip Aston  <philipa@mail.com>
5176
5177         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5178
5179 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5180
5181         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5182         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5183
5184 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5185
5186         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5187         * unexelf.c: Use HAVE_ELF_H.
5188         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5189         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5190         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5191         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5192         for testing.
5193         So this is an unexelfsgi.c from a different line of development.
5194
5195 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5196
5197         * regex.c (RE_TR_ASCII): New function.
5198         (RE_TRANSLATE): Call it.
5199
5200 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5201
5202         * buffer.h (TRT_TABLE_OF): Remove assert.
5203         (IN_TRT_TABLE_DOMAIN): Removed.
5204
5205 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5206
5207         * free-hook.c (log_gcpro):
5208         (show_gcprohist): Add support for GCPRO5.
5209
5210 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5211
5212         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5213
5214 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5215
5216         * symeval.h: Declare flush_all_buffer_local_cache.
5217
5218         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5219         (flush_buffer_local_cache): Added.
5220         (flush_all_buffer_local_cache): Added.
5221
5222         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5223
5224         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5225         (pdump_dump_data): Ditto.
5226         (pdump_reloc_one): Ditto.
5227         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5228         before dumping.
5229
5230
5231 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5232
5233         * buffer.c: Remove if 0'ed entry.
5234         * buffer.h: Rewrite TRT to use char-table.
5235         * bufslots.h: Remove mirror tables.
5236         * casetab.c: Remove mirror tables.
5237         (CASE_TABLE_P): New macro.
5238         (Fcase_table_p): Element of a case table is string or char-table.
5239         (make_mirror_trt_table): Removed.
5240         (set_case_table): Setup char-table from strings for backward
5241         compatibility.
5242         * dired.c (Fdirectory_files):
5243         * dired-msw.c: (mswindows_get_files):
5244         * lisp.h: Change prototype of re_pattern_buffer.
5245         * regex.c: (RE_TRANSLATE): New macro.
5246         (TRANSLATE_P): Ditto.
5247         Change translate to type RE_TRANSLATE_TYPE.
5248         * regex.h: Define RE_TRANSLATE_TYPE
5249         * search.c (TRANSLATE): New macro.
5250         (TRANSLATE_ASCII): New macro.
5251         Translate table is changed to Lisp_Object.
5252         (signal_failure): Inhibit return.
5253
5254 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5255
5256         * device-msw.c:
5257         * eldap.c:
5258         * event-Xt.c:
5259         * event-stream.c:
5260         * print.c:
5261         Do UNGCPRO before return.
5262
5263 2000-11-14  Martin Buchholz <martin@xemacs.org>
5264
5265         * XEmacs 21.2.37 is released.
5266
5267 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5268
5269         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5270         Add comments about discarded return value.
5271
5272 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5273
5274         * callint.c:
5275         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5276
5277 2000-10-27  Andy Piper  <andy@xemacs.org>
5278
5279         * gutter.c (Fset_default_gutter_position): default left and right
5280         gutters to visible.
5281         (calculate_gutter_size): calculate resonable heuristic for left
5282         and right gutter sizes.
5283         (specifier_vars_of_gutter): change left and right gutter sizes to
5284         autodetect.
5285         (calculate_gutter_size_from_display_lines): new function.
5286         (output_gutter): check for resizing on left and right gutters.
5287         (clear_gutter): don't special case top and left gutters.
5288         (specifier_vars_of_gutter): use new signature for
5289         set_specifier_caching.
5290
5291         * glyphs-x.c (x_redisplay_widget): spelling fix.
5292         * glyphs.c (specifier_vars_of_glyphs):
5293         * menubar.c (specifier_vars_of_menubar):
5294         * redisplay.c (specifier_vars_of_redisplay):
5295         * toolbar.c (specifier_vars_of_toolbar):
5296         * window.c (specifier_vars_of_window):
5297         * scrollbar.c (specifier_vars_of_scrollbar):
5298         (complex_vars_of_scrollbar): use new signature for
5299         set_specifier_caching.
5300
5301         * specifier.c (set_specifier_caching): include recompute flag.
5302         (recompute_one_cached_specifier_in_window): always recompute if
5303         flag set.
5304         (recompute_one_cached_specifier_in_frame): ditto.
5305
5306         * specifier.h (struct specifier_caching): add recompute flag.
5307
5308 2000-10-24  Andy Piper  <andy@xemacs.org>
5309
5310         * unexcw.c (copy_executable_and_dump_data_section): add new
5311         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5312         5.0 happy.
5313
5314 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5315
5316         * console-x.h (x_device): New member modifier_release_time.
5317         * event-Xt.c (x_handle_sticky_modifiers):
5318         Bound interval modifier keys are sticky.
5319         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5320         * events.h: extern it.
5321
5322 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5323
5324         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5325
5326 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5327
5328         * event-stream.c (execute_command_event): Preserve current_events
5329         and the like when event is misc-user-event.
5330         Inhibit quit during the call to maybe_echo_keys.
5331
5332 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5333
5334         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5335         symlink when buffer is killed.
5336         (inhibit_clash_detection): New variable.
5337
5338 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5339
5340         * console.c (Fset_input_method): Trigger redisplay on tty.
5341
5342 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5343
5344         * process.c (Fprocess_status): Revert to previous behavior:
5345         (process-status "nosuchprocess") ==> nil
5346
5347 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5348
5349         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5350         Work around another GCC 2.95.2 optimizer bug.
5351
5352 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5353
5354         * process.c (Fget_process): Use LIST_LOOP_2.
5355         (kill_buffer_processes): Use LIST_LOOP_2.
5356
5357         * minibuf.c (Fall_completions):
5358         Delete old non-functional code for FSF fourth argument.
5359
5360         * frame.c (frame_matches_frame_spec):
5361         Renamed from `frame_matches_frametype'.  Update all callers.
5362         (device_matches_device_spec):
5363         Renamed from 'device_matches_console_spec'.  Update all callers.
5364
5365         * doc.c (Fsubstitute_command_keys):
5366         Remove buffer overflow crash.  Small code cleanups.
5367
5368         * casetab.c (check_case_table): Simpler code.
5369
5370         * window.c (Freplace_buffer_in_windows):
5371         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5372         (and similar implementation) as Fdelete_windows_on.
5373         Update all callers.
5374
5375         * alloc.c (Fmake_list):
5376         * alloc.c (make_vector):
5377         * alloc.c (Fmake_vector):
5378         * alloc.c (make_bit_vector):
5379         * alloc.c (Fmake_bit_vector):
5380         * alloc.c (Fbit_vector):
5381         * alloc.c (Fmake_string):
5382         * alloc.c (Fpurecopy):
5383         * alloc.c (Fmemory_limit):
5384         * buffer.c:
5385         * buffer.c (Fget_buffer):
5386         * buffer.c (Fkill_buffer):
5387         * buffer.c (complex_vars_of_buffer):
5388         * bytecode.c (Fcompiled_function_stack_depth):
5389         * callint.c (Fprefix_numeric_value):
5390         * event-stream.c:
5391         * event-stream.c (Fread_key_sequence):
5392         * casetab.c:
5393         * casetab.c (Fcase_table_p):
5394         * casetab.c (check_case_table):
5395         * casetab.c (Fset_case_table):
5396         * casetab.c (Fset_standard_case_table):
5397         * chartab.c:
5398         * chartab.c (Fchar_table_type):
5399         * chartab.c (Freset_char_table):
5400         * chartab.c (Fget_char_table):
5401         * chartab.c (Fget_range_char_table):
5402         * chartab.c (Fput_char_table):
5403         * chartab.c (Fmap_char_table):
5404         * chartab.c (Fcategory_table_p):
5405         * chartab.c (Fcheck_category_at):
5406         * chartab.c (Fchar_in_category_p):
5407         * chartab.c (Fcategory_table):
5408         * chartab.c (Fcopy_category_table):
5409         * chartab.c (Fset_category_table):
5410         * chartab.c (Fcategory_designator_p):
5411         * chartab.c (Fcategory_table_value_p):
5412         * cmds.c (Fdelete_char):
5413         * cmds.c (Fdelete_backward_char):
5414         * cmds.c (Fself_insert_command):
5415         * cmds.c (Fself_insert_internal):
5416         * console.c (Fvalid_console_type_p):
5417         * console.c (Fcdfw_console):
5418         * console.c (Fconsole_type):
5419         * console.c (Fconsole_name):
5420         * console.c (Fconsole_device_list):
5421         * console.c (Fconsole_on_window_system_p):
5422         * data.c:
5423         * data.c (Feq):
5424         * data.c (Fold_eq):
5425         * data.c (Fsubr_interactive):
5426         * data.c (Fchar_to_int):
5427         * data.c (Fint_to_char):
5428         * data.c (Fsetcar):
5429         * data.c (Fsetcdr):
5430         * data.c (Fnumber_to_string):
5431         * data.c (Fstring_to_number):
5432         * data.c (Frem):
5433         * database.c (mark_database):
5434         * database.c (finalize_database):
5435         * database.c (Fdatabase_live_p):
5436         * database.c (Fdatabasep):
5437         * device-x.c (Fx_get_resource):
5438         * device.c (Fdfw_device):
5439         * dired.c:
5440         * dired.c (Ffile_name_completion):
5441         * dired.c (Ffile_name_all_completions):
5442         * dired.c (Fuser_name_completion):
5443         * dired.c (Fuser_name_completion_1):
5444         * dired.c (Fuser_name_all_completions):
5445         * doc.c (Fdocumentation):
5446         * doc.c (Fdocumentation_property):
5447         * doc.c (Fsubstitute_command_keys):
5448         * editfns.c:
5449         * editfns.c (Fchar_to_string):
5450         * editfns.c (Fstring_to_char):
5451         * editfns.c (Ftemp_directory):
5452         * editfns.c (Finsert_char):
5453         * editfns.c (Fbuffer_substring_no_properties):
5454         * editfns.c (Fnarrow_to_region):
5455         * editfns.c (Fchar_equal):
5456         * editfns.c (Fchar_Equal):
5457         * editfns.c (Ftranspose_regions):
5458         * emacs.c (Fdump_emacs):
5459         * eval.c (Fthrow):
5460         * eval.c (Fcommand_execute):
5461         * eval.c (Fautoload):
5462         * eval.c (Fbacktrace):
5463         * eval.c (Fbacktrace_frame):
5464         * events.c:
5465         * events.c (Fcopy_event):
5466         * events.c (Fcharacter_to_event):
5467         * events.c (Fevent_button):
5468         * events.c (Fevent_process):
5469         * extents.c:
5470         * extents.c (Fnext_extent_change):
5471         * extents.c (Fextent_property):
5472         * faces.c (Ffacep):
5473         * faces.c (Fmake_face):
5474         * file-coding.c:
5475         * file-coding.c (Fencode_shift_jis_char):
5476         * file-coding.c (Fencode_big5_char):
5477         * fileio.c (Ffile_name_directory):
5478         * fileio.c (Ffile_name_nondirectory):
5479         * fileio.c (Ffile_name_as_directory):
5480         * fileio.c (Fdirectory_file_name):
5481         * fileio.c (Ffile_truename):
5482         * fileio.c (Fsubstitute_in_file_name):
5483         * fileio.c (Ffile_modes):
5484         * fileio.c (Fset_file_modes):
5485         * fileio.c (Fset_default_file_modes):
5486         * fileio.c (Fverify_visited_file_modtime):
5487         * floatfns.c (Facos):
5488         * floatfns.c (Fasin):
5489         * floatfns.c (Fatan):
5490         * floatfns.c (Fcos):
5491         * floatfns.c (Fsin):
5492         * floatfns.c (Ftan):
5493         * floatfns.c (Fbessel_j0):
5494         * floatfns.c (Fbessel_j1):
5495         * floatfns.c (Fbessel_jn):
5496         * floatfns.c (Fbessel_y0):
5497         * floatfns.c (Fbessel_y1):
5498         * floatfns.c (Fbessel_yn):
5499         * floatfns.c (Ferf):
5500         * floatfns.c (Ferfc):
5501         * floatfns.c (Flog_gamma):
5502         * floatfns.c (Fexp):
5503         * floatfns.c (Fexpt):
5504         * floatfns.c (Flog):
5505         * floatfns.c (Flog10):
5506         * floatfns.c (Fsqrt):
5507         * floatfns.c (Fcube_root):
5508         * floatfns.c (Facosh):
5509         * floatfns.c (Fasinh):
5510         * floatfns.c (Fatanh):
5511         * floatfns.c (Fcosh):
5512         * floatfns.c (Fsinh):
5513         * floatfns.c (Ftanh):
5514         * floatfns.c (Fabs):
5515         * floatfns.c (Ffloat):
5516         * floatfns.c (Flogb):
5517         * floatfns.c (Fceiling):
5518         * floatfns.c (Ffloor):
5519         * floatfns.c (Fround):
5520         * floatfns.c (Ftruncate):
5521         * floatfns.c (Ffceiling):
5522         * floatfns.c (Fffloor):
5523         * floatfns.c (Ffround):
5524         * floatfns.c (Fftruncate):
5525         * fns.c (Fstring_equal):
5526         * fns.c (Fstring_lessp):
5527         * fns.c (concat2):
5528         * fns.c (concat3):
5529         * fns.c (vconcat2):
5530         * fns.c (vconcat3):
5531         * fns.c (Fsubstring):
5532         * fns.c (Fassoc):
5533         * fns.c (Fold_assoc):
5534         * fns.c (assoc_no_quit):
5535         * fns.c (Fassq):
5536         * fns.c (Fold_assq):
5537         * fns.c (assq_no_quit):
5538         * fns.c (Frassoc):
5539         * fns.c (Fold_rassoc):
5540         * fns.c (Frassq):
5541         * fns.c (Fold_rassq):
5542         * fns.c (rassq_no_quit):
5543         * fns.c (Fremassoc):
5544         * fns.c (remassoc_no_quit):
5545         * fns.c (Fremassq):
5546         * fns.c (remassq_no_quit):
5547         * fns.c (Fremrassoc):
5548         * fns.c (Fremrassq):
5549         * fns.c (remrassq_no_quit):
5550         * fns.c (Fsort):
5551         * fns.c (Fplist_get):
5552         * fns.c (Fplist_put):
5553         * fns.c (Fplist_remprop):
5554         * fns.c (Fplist_member):
5555         * fns.c (Flax_plist_get):
5556         * fns.c (Flax_plist_put):
5557         * fns.c (Flax_plist_remprop):
5558         * fns.c (Flax_plist_member):
5559         * fns.c (Fequal):
5560         * fns.c (Fold_equal):
5561         * fns.c (Frequire):
5562         * fns.c (Fbase64_encode_region):
5563         * fns.c (Fbase64_encode_string):
5564         * fns.c (Fbase64_decode_region):
5565         * frame.c:
5566         * frame.c (frame_matches_frame_spec):
5567         * frame.c (device_matches_device_spec):
5568         * frame.c (next_frame):
5569         * frame.c (previous_frame):
5570         * frame.c (Fnext_frame):
5571         * frame.c (Fprevious_frame):
5572         * frame.c (Fframe_property):
5573         * frame.c (Fset_frame_height):
5574         * frame.c (Fset_frame_size):
5575         * frame.h:
5576         * glyphs.c:
5577         * glyphs.c (if):
5578         * glyphs.c (decode_error_behavior_flag):
5579         * glyphs.c (Fmake_image_instance):
5580         * indent.c (Findent_to):
5581         * intl.c (Fignore_defer_gettext):
5582         * keymap.c (Fkeymapp):
5583         * keymap.c (Flookup_key):
5584         * lread.c:
5585         * lread.c (Fload_internal):
5586         * lread.c (Feval_buffer):
5587         * lread.c (Feval_region):
5588         * macros.c (Fexecute_kbd_macro):
5589         * marker.c (set_marker_internal):
5590         * marker.c (Fset_marker):
5591         * marker.c (set_marker_restricted):
5592         * marker.c (Fcopy_marker):
5593         * marker.c (noseeum_copy_marker):
5594         * menubar.c:
5595         * menubar.c (Fpopup_menu):
5596         * minibuf.c:
5597         * mule-charset.c (Fcharset_name):
5598         * mule-charset.c (Fchar_charset):
5599         * mule-charset.c (Fchar_octet):
5600         * mule-charset.c (Fsplit_char):
5601         * mule-wnnfns.c (Fwnn_open):
5602         * mule-wnnfns.c (Fwnn_dict_comment):
5603         * mule-wnnfns.c (Fwnn_quit_henkan):
5604         * mule-wnnfns.c (Fwnn_word_toroku):
5605         * mule-wnnfns.c (Fwnn_word_sakujo):
5606         * mule-wnnfns.c (Fwnn_word_use):
5607         * mule-wnnfns.c (Fwnn_hindo_set):
5608         * objects.c:
5609         * objects.c (Fmake_color_instance):
5610         * objects.c (Fmake_font_instance):
5611         * print.c (Fwrite_char):
5612         * process.c:
5613         * process.c (mark_process):
5614         * process.c (print_process):
5615         * process.c (get_process_from_usid):
5616         * process.c (Fprocessp):
5617         * process.c (Fprocess_live_p):
5618         * process.c (Fget_process):
5619         * process.c (Fget_buffer_process):
5620         * process.c (get_process):
5621         * process.c (Fprocess_id):
5622         * process.c (Fprocess_name):
5623         * process.c (Fprocess_command):
5624         * process.c (init_process_io_handles):
5625         * process.c (start_process_unwind):
5626         * process.c (Fstart_process_internal):
5627         * process.c (Fopen_multicast_group_internal):
5628         * process.c (Fset_process_window_size):
5629         * process.c (read_process_output):
5630         * process.c (send_process):
5631         * process.c (Fprocess_tty_name):
5632         * process.c (Fset_process_buffer):
5633         * process.c (Fprocess_buffer):
5634         * process.c (Fprocess_mark):
5635         * process.c (set_process_filter):
5636         * process.c (Fset_process_filter):
5637         * process.c (Fprocess_filter):
5638         * process.c (Fprocess_send_region):
5639         * process.c (Fprocess_send_string):
5640         * process.c (exec_sentinel):
5641         * process.c (Fset_process_sentinel):
5642         * process.c (Fprocess_sentinel):
5643         * process.c (status_notify):
5644         * process.c (Fprocess_status):
5645         * process.c (Fprocess_exit_status):
5646         * process.c (process_send_signal):
5647         * process.c (Fprocess_send_eof):
5648         * process.c (deactivate_process):
5649         * process.c (remove_process):
5650         * process.c (Fdelete_process):
5651         * process.c (kill_buffer_processes):
5652         * process.c (Fprocess_kill_without_query):
5653         * process.c (Fprocess_kill_without_query_p):
5654         * rangetab.c:
5655         * rangetab.c (Fget_range_table):
5656         * rangetab.c (Fput_range_table):
5657         * rangetab.c (Fremove_range_table):
5658         * rangetab.c (Fclear_range_table):
5659         * search.c:
5660         * search.c (Fskip_chars_forward):
5661         * search.c (Fskip_chars_backward):
5662         * search.c (Fskip_syntax_forward):
5663         * search.c (Fskip_syntax_backward):
5664         * search.c (search_command):
5665         * search.c (Freplace_match):
5666         * search.c (Fregexp_quote):
5667         * select.c (Fown_selection_internal):
5668         * select.c (Fselection_owner_p):
5669         * select.c (Fselection_exists_p):
5670         * select.c (Fget_selection_internal):
5671         * specifier.c:
5672         * symbols.c:
5673         * symbols.c (Fintern):
5674         * symbols.c (Fintern_soft):
5675         * symbols.c (Funintern):
5676         * symbols.c (Fapropos_internal):
5677         * symbols.c (Fset_default):
5678         * syntax.c:
5679         * syntax.c (Fsyntax_table_p):
5680         * syntax.c (Fcopy_syntax_table):
5681         * syntax.c (Fset_syntax_table):
5682         * syntax.c (Fchar_syntax):
5683         * syntax.c (syntax_match):
5684         * syntax.c (Fmatching_paren):
5685         * syntax.c (Fforward_word):
5686         * syntax.c (scan_lists):
5687         * syntax.c (Fscan_lists):
5688         * syntax.c (Fscan_sexps):
5689         * syntax.c (Fparse_partial_sexp):
5690         * toolbar.c (Fcheck_toolbar_button_syntax):
5691         * tooltalk.doc:
5692         * window.c:
5693         * window.c (Fwindowp):
5694         * window.c (Fwindow_live_p):
5695         * window.c (Fwindow_point):
5696         * window.c (Fdelete_window):
5697         * window.c (Fnext_window):
5698         * window.c (Fprevious_window):
5699         * window.c (Fother_window):
5700         * window.c (window_loop):
5701         * window.c (Fget_lru_window):
5702         * window.c (Fsplit_window):
5703         * window.c (Fenlarge_window):
5704         * window.c (Fenlarge_window_pixels):
5705         * window.c (Fshrink_window):
5706         * window.c (Fshrink_window_pixels):
5707         * window.c (change_window_height):
5708         * window.c (Fwindow_configuration_p):
5709         * window.c (Fcurrent_window_configuration):
5710         * window.h:
5711         * casefiddle.c (casify_object):
5712         * casefiddle.c (Fupcase):
5713         * casefiddle.c (Fdowncase):
5714         * casefiddle.c (Fcapitalize):
5715         * casefiddle.c (Fupcase_initials):
5716         * casefiddle.c (casify_region_internal):
5717         * casefiddle.c (casify_region):
5718         * casefiddle.c (Fupcase_region):
5719         * casefiddle.c (Fdowncase_region):
5720         * casefiddle.c (Fcapitalize_region):
5721         * casefiddle.c (Fupcase_initials_region):
5722         * casefiddle.c (Fupcase_word):
5723         * casefiddle.c (Fdowncase_word):
5724         * casefiddle.c (Fcapitalize_word):
5725         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5726         Replace 0 with '\0' when working with bytes.
5727         Replace initial "(" with "\(" in docstrings.
5728
5729 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5730
5731         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5732
5733         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5734
5735 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5736
5737         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5738
5739 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5740
5741         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5742         correctly.
5743
5744 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5745
5746         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5747         (inhibit_auto_save_session): New variable.
5748         (vars_of_fileio): Declare and initialize them.
5749         * fileio.c (Fdo_auto_save): Don't create session file if
5750         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5751
5752 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5753
5754         * sgiplay.c (play_internal): C++ compilability.
5755         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5756         * callproc.c (Fold_call_process_internal):
5757         Remove unused vars `env', `first'.
5758         * scrollbar.c (update_scrollbar_instance):
5759         #### unused var `current_window'.
5760         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5761         etc. within #ifdef NOT_YET.
5762         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5763         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5764         * specifier.c (specifier_instance):
5765         #### unused var `tag'.
5766         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5767
5768 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5769
5770         * fns.c (Fbutlast):
5771         * fns.c (list_sort):
5772         * fns.c (Ffillarray):
5773         * fns.c (bytecode_nconc2):
5774         * fns.c (Fnconc):
5775         * fns.c (mapcar1):
5776         * fns.c (Fmapconcat):
5777         Be pedantically 64-bit correct.  For the time when someone will
5778         want to have a list with length > 2**32.
5779
5780         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5781         Work around MIPSpro compiler bug.
5782
5783         * process-unix.c (unix_kill_child_process): Add snarky comment.
5784         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5785
5786         * config.h.in: Oops, _getpt ==> _getpty
5787
5788 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5789
5790         * config.h.in:
5791         * regex.c:
5792         Use void*, not char*, as return type of alloca().
5793
5794         * alloc.c (free_marker): Side effect inside assert expression!
5795
5796 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5797
5798         * mule-charset.c (Fset_charset_ccl_program): To check
5799         if the given ccl program is valid, use setup_ccl_program()
5800         instead of CHECK_VECTOR().
5801         (Fmake_charset): Likewise.
5802
5803 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5804
5805         * faces.c (get_extent_fragment_face_cache_index):
5806         Fix cachel.merged_faces memory leak.
5807
5808 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5809
5810         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5811         Reset MSB of octets obtained by DECODE_SJIS
5812         because of the incompatibility with Emacs.
5813         (ccl_driver)<CCL_ENCODE_SJIS>:
5814         Set MSB of octets before passing them to
5815         ENCODE_SJIS because of the incompatibility
5816         with Emacs.
5817
5818 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5819
5820         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5821         (DECLARE_LRECORD): Undo the last change.
5822         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5823
5824 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5825
5826         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5827         the implementation to lrecord_implementations_table.
5828
5829 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5830
5831         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5832         initial value of `lrecord_type_##c_name' and
5833         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5834         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5835         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5836         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5837         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5838
5839 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5840
5841         * miscplay.c (sndcnv8S_2mono):
5842         (sndcnv2monounsigned):
5843         (sndcnvULaw_2linear):
5844         (sndcnv16swap):
5845         Remove implementation-defined behavior.
5846
5847 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5848
5849         * input-method-xlib.c: Warning suppression.
5850
5851 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5852
5853         * mule-ccl.c: Sync up with Emacs 21.0.90.
5854         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5855         Do nothing.
5856         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5857         Likewise.
5858         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5859         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5860         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5861         leading char belongs to official 2-dimensional charset.
5862         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5863         write the given character as is.  Otherwise,
5864         if it is a multibyte char, convert it by
5865         non_ascii_set_charptr_emchar, then write it.
5866         (CCL_WRITE_STRING): Likewise.
5867         (ccl_get_compiled_code): New function.
5868         (setup_ccl_program): When ccl_prog is invalid,
5869         return -1.
5870         (Fregister_code_conversion_map): New function.
5871         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5872
5873         * mule-ccl.h: Sync up with Emacs 21.0.90.
5874         (Fregister_ccl_program): export it.
5875
5876         * redisplay-msw.c (separate_textual_runs):
5877         If ccl program is not valid, don't do ccl conversion.
5878
5879         * redisplay-x.c (separate_textual_runs): Ditto.
5880
5881         * file-coding.c (Fmake_coding_system):
5882         When type is ccl and value is vector, register it
5883         with a proper symbol.  And checks whether the
5884         given ccl program is valid.
5885         (mule_decode): When calling ccl_driver, if src indicates
5886         NULL pointer, set an empty string instead.
5887         (mule_encode): Likewise.
5888
5889 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5890
5891         The following large batch of changes gets us back to a state of
5892         C++ compilability.  Extbyte is now a char, which means that
5893         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5894
5895         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5896
5897         * sound.c (Fplay_sound): Type correctness.
5898
5899         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5900         (x_get_window_property): Type correctness.
5901         (receive_incremental_selection): unsigned char ==> Extbyte
5902         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5903         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5904         (Fx_store_cutbuffer_internal): Type correctness.
5905
5906         * process-unix.c (try_to_initialize_subtty): Type correctness.
5907
5908         * objects-x.c (x_print_color_instance): Type correctness.
5909         (x_print_font_instance): Type correctness.
5910         (x_list_fonts): SExtbyte ==> Extbyte.
5911         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5912         (x_find_charset_font): SExtbyte ==> Extbyte.
5913         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5914         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5915         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5916         Use bufbyte_strcmp.
5917
5918         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5919         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5920         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5921         (BYTE_C0_P): Use bit ops for char-signedness safety.
5922         (BYTE_C1_P): Use bit ops for char-signedness safety.
5923         (CHARSET_BY_LEADING_BYTE):
5924         (CHARSET_BY_ATTRIBUTES):
5925         Always use inline function.
5926         Use type_checking_assert.
5927         Hide chlook.
5928
5929         * mule-charset.c (non_ascii_charptr_copy_char):
5930         Modify to work with both ASCII and non-ASCII characters.
5931         Improve docs and variable names.
5932         Replace over-clever fall-through switch with a simple loop.
5933         (Lstream_get_emchar_1):
5934         Replace over-clever fall-through switch with a simple loop.
5935
5936         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5937         Warning suppression.
5938
5939         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5940         the return value of Lstream_getc, which could be EOF as well.
5941
5942         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5943
5944         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5945         APIs can be used on Extbytes without casts.  Risky!
5946         (SExtbyte): Remove.
5947         (UExtbyte): Remove.
5948
5949         * input-method-xlib.c (XIM_init_device):
5950         Use Xlib.h instead of IntrinsicP.h.
5951         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5952         which will break in X11R7.
5953         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5954         to call XRegisterIMInstantiateCallback with correct types.
5955
5956         * gui-x.c (button_item_to_widget_value): Type correctness.
5957
5958         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5959
5960         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5961         (xbm_instantiate_1): Type correctness.
5962         (BUILD_GLYPH_INST):  Type correctness.
5963
5964         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5965
5966         * file-coding.c:
5967         (decode_coding_sjis):
5968         (decode_coding_big5):
5969         (decode_coding_ucs4):
5970         (decode_coding_utf8):
5971         (decode_coding_iso2022):
5972         (decode_coding_no_conversion):
5973         Make all decoding functions take an Extbyte * arg.
5974         (encode_coding_sjis):
5975         (encode_coding_big5):
5976         (encode_coding_ucs4):
5977         (encode_coding_utf8):
5978         (encode_coding_iso2022):
5979         (encode_coding_no_conversion):
5980         Make all encoding functions take a Bufbyte * arg.
5981         Use size_t instead of unsigned int for memory sizes.
5982         Only cast to unsigned char whenever dereferencing Extbyte *.
5983
5984         * doc.c (unparesseuxify_doc_string): Type correctness.
5985
5986         * console-x.c (split_up_display_spec):
5987         Rewrite without using details of internal string representation.
5988         (x_semi_canonicalize_device_connection): Type correctness.
5989
5990         * config.h.in:
5991         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5992         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5993         (HAVE_XFREE386): Removed.
5994
5995         * buffer.h (DEC_CHARPTR): `const' correctness.
5996         (bufbyte_strcmp): New.
5997         (bufbyte_memcmp): New.
5998
5999         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6000
6001         * buffer.h (XCHAR_OR_CHAR_INT):
6002         Always use inline function.
6003         Remove redundant type checking assert() - XINT will abort quite nicely.
6004
6005 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6006
6007         * search.c (Freplace_match): Set newtext to an empty string.
6008
6009 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6010
6011         * s/decosf1-3.h: Remove #include of stropts.h
6012         * s/ptx.h: Remove #include of stropts.h
6013         * s/usg5-4.h: Remove #include of stropts.h
6014         * sysproc.h:
6015         * config.h.in:
6016         Use stropts.h, not sys/stropts.h.
6017         Use strtio.h, not sys/strtio.h.
6018
6019 2000-10-04  Martin Buchholz <martin@xemacs.org>
6020
6021         * XEmacs 21.2.36 is released.
6022
6023 2000-09-21  Andy Piper  <andy@xemacs.org>
6024
6025         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6026         changes still involve copying the widget tree.
6027         (update_widget_face): make sure a change is register in the widget
6028         tree. Call update_tab_widget_face appropriately.
6029         (update_tab_widget_face): ditto.
6030         (x_tab_control_redisplay): make sure non-structural changes still
6031         involve copying the widget tree.
6032
6033 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6034
6035         * lread.c (locate_file): Check the path element is non-nil.
6036
6037 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6038
6039         * lisp.h: Warning suppression for SCO compilers.
6040
6041         * redisplay-tty.c (reset_tty_modes): Fix crash.
6042         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6043
6044 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6045
6046         Big signal/process handling overhaul.  Bugs fixed:
6047         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6048         M-x comint-kill-subjob should work for both values nil and t of
6049         process-connection-type. It was broken on most platforms.
6050         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6051         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6052         * process-unix.c: Signal/Process handling overhaul.
6053         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6054         (allocate_pty): Use all available modern methods of allocating
6055         ptys, falling back to old style BSD allocation as a last resort.
6056         Use allegedly more secure Unix98 pty allocation by default.
6057         (allocate_pty_the_old_fashioned_way): New. the last resort.
6058         (unix_create_process): Push ptem, ldterm, ttcompat where
6059         available.  Autoconfiscate.
6060         (try_to_initialize_subtty): New.
6061         (unix_kill_child_process): Proper signal handling for ptys on most
6062         platforms, using special knowledge of AIX, BSD, etc...
6063         (unix_create_process): Always disconnect_controlling_terminal() for
6064         subprocesses, whether using ptys or not.
6065         * process.h: Remove old getpt-dependent PTY code.
6066         * process.c (Fprocess_send_signal): New, obvious generic function.
6067         (decode_signal): New.
6068         (Finterrupt_process):
6069         (Fkill_process):
6070         (Fquit_process):
6071         (Fstop_process):
6072         (Fcontinue_process):
6073         (Fsignal_process): Use decode_signal.
6074         (process_send_signal):
6075         Many docstring corrections.
6076         Allow any signal to be sent to a process object.
6077         * config.h.in: Add symbols for big signal/process overhaul.
6078         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6079         * sysproc.h: Include process-related headers, where available:
6080         sys/stropts.h sys/strtio.h pty.h libutil.h
6081         * s/irix4-0.h:
6082         * s/irix5-0.h:
6083         * s/cygwin32.h:
6084         * s/gnu.h:
6085         * s/linux.h:
6086         * s/hpux.h:
6087         * s/aix3-1.h:
6088         Remove old S&M pty stuff.
6089         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6090         * systty.h: Simplify cpp hackery, improve comments.
6091         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6092
6093         * editfns.c (Fformat_time_string):
6094         Be a little more paranoid with the return value of ctime.
6095
6096         * fileio.c (check_executable):
6097         (check_writable):
6098         Use symbolic constants X_OK, W_OK.
6099
6100         * console-x.c (split_up_display_spec): Fix a warning.
6101
6102 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6103
6104         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6105         * ntproc.c (sys_spawnve): make_string ==> build_string
6106         Small clarity improvements.
6107
6108 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6109
6110         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6111
6112         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6113
6114         * config.h.in (HAVE_STRCASECMP): Remove.
6115
6116 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6117
6118         * redisplay-output.c (redisplay_output_pixmap):
6119         Cleaner and possibly more 64-bit correct code.
6120
6121 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6122
6123         * dumper.c (pdump_load_finish): move restoration of
6124         `noninteractive1' to emacs.c (main_1).
6125         * emacs.c (main_1): protect LISP-visible command-line flags
6126         from pdump_load().
6127
6128 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6129
6130         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6131         DUMP_TARGET instead of literal program names.
6132
6133 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6134
6135         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6136
6137 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6138
6139         * *: Spelling mega-patch
6140
6141 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6142
6143         * fns.c (bad_bad_turtle):
6144         Delete "Eek!" comment, since we fixed the bug to which it refers.
6145
6146 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6147
6148         * alloca.c: Replace REGISTER with register.
6149
6150 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6151
6152         * file-coding.c (ucs_to_char): Use countof.
6153
6154 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6155
6156         * file-coding.c: (ucs_to_char):
6157         (complex_vars_of_file_coding):
6158         Use countof instead of sizeof.
6159         Use CHECK_NATNUM instead of CHECK_INT.
6160
6161         * sysdep.c (strcasecmp): Remove.
6162         * device-x.c (ascii_strcasecmp): New.
6163         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6164         Avoid using non-standard non-portable strcasecmp.
6165
6166 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6167
6168         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6169         * font-lock.c: remove reference to emacsfns.h.
6170         * search.c: small doc improvement.
6171         * event-Xt.c: correct file names in comments.
6172         * console-x.h Correct file names in comments.
6173         * frame.c: Correct file names in comments.
6174         * event-stream.c: remove Energize from comments.
6175
6176 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6177
6178         * symeval.h (DEFERROR_STANDARD):
6179         (DEFERROR):
6180         (DEFSYMBOL):
6181         (DEFSYMBOL_NO_DUMP):
6182         (DEFSYMBOL_MULTIWORD_PREDICATE):
6183         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6184         (DEFKEYWORD):
6185         The construct &##name is not sensible C.
6186         Fixes compilation errors with Unixware native compiler.
6187
6188 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6189
6190         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6191         (next_frame_internal): Removed.  We now just have next_frame.
6192         (next_frame):
6193         Write a simpler and cleaner one-pass algorithm.
6194         Remove called_from_delete_device arg and #ifdefed-out code.
6195         (previous_frame):
6196         Renamed from prev_frame.  Update callers.
6197         Cleaned up to have an analogous implementation to next_frame.
6198         (other_visible_frames_internal): Remove the
6199         called_from_delete_device bogus arg, and hence, remove this
6200         function.  Just use other_visible_frames().
6201
6202         * window.c (Fnext_window):
6203         Prettify docstring.
6204         Since next_frame() is guaranteed to return a frame, remove check
6205         for nil inserted in previous patch.
6206         (Fprevious_window):
6207         Prettify docstring.
6208         Make code look more like Fnext_window.
6209         (window_loop):
6210         Respect the `console' arg when iterating through windows.
6211         Fixes bug: (get-buffer-window buffer t device) not respecting
6212         the `device' arg.
6213         This function needs more work, as others have pointed out.
6214
6215         * frame.h: Rename prev_frame to previous_frame.
6216         device_matches_console_spec no longer takes a `frame' arg.
6217
6218         * s/gnu.h:
6219         * s/linux.h:
6220         * s/hpux.h:
6221         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6222         From "Golubev I. N." <gin@mo.msk.ru>.
6223
6224         * make-src-depend: Fix typo.
6225
6226 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6227
6228         * window.c (Fnext_window):
6229         next_frame() might return nil, not a frame.
6230         Fixes this crash:
6231         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6232
6233         * frame.c (next_frame_internal):
6234         We've passed a frame if we've passed its device.
6235         Fixes this crash:
6236         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6237 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6238
6239 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6240
6241         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6242         Allow option to suppress accelerators in menu/dialog items.
6243         (populate_or_checksum_helper): Pass dialog title through above.
6244
6245 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6246
6247         * event-msw.c (mswindows_key_to_emacs_keysym):
6248         Add "pause" key, fix "menu" key.
6249
6250 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6251
6252         * eval.c (reinit_vars_of_eval):
6253         Increase max_lisp_eval_depth to 1000,
6254         required for thai-xtis.el to byte-compile under some circumstances.
6255
6256 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6257
6258         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6259         From Kenichi Handa.
6260
6261 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6262
6263         * make-src-depend: Make the generated Makefiles smaller.
6264
6265         * s/hpux.h (SETUP_SLAVE_PTY):
6266         Provide a %d in the format string for the errno argument.
6267
6268         * editfns.c (Ftemp_directory):
6269         Warning fix.
6270         Avoid buffer overrun on very long file name.
6271
6272         * input-method-xlib.c (XIM_init_device):
6273         6th parameter of XRegisterIMInstantiateCallback has different
6274         pointer types on different OSes, so simply cast to (void *).
6275
6276         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6277
6278         * sysdll.c (dll_open):
6279         shl_load will hang hard if passed a NULL filename.
6280         Simply return NULL for compatibility with dlopen.
6281         * sysdll.c: Conform to XEmacs coding standards.
6282
6283         * sysdep.c (get_pty_max_bytes):
6284         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6285
6286 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6287
6288         * tooltalk.c: Add #include <syssignal.h>
6289
6290 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6291
6292         * s/hpux.h: Don't use undefined function sigunblock().
6293
6294 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6295
6296         * config.h.in: Add HAVE_BALLOON_HELP.
6297         * emacs.c: Use HAVE_BALLOON_HELP.
6298         * Makefile.in.in (x_objs):
6299         Make Balloon Help conditional on finding shape.h.
6300
6301 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6302
6303         * syntax.c (regex_emacs_buffer_p): New variable.
6304         * syntax.h (regex_emacs_buffer_p): extern.
6305         * search.c (looking_at_1):
6306         (string_match_1):
6307         (fast_string_match):
6308         (search_buffer): Set regex_emacs_buffer_p.
6309         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6310         when before_dot, at_dot, after_dot.
6311
6312 2000-08-23  Andy Piper  <andy@xemacs.org>
6313
6314         * gui-x.c (popup_selection_callback): Only set action_occurred
6315         when we really have an image instance.
6316         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6317
6318 2000-08-23  Andy Piper  <andy@xemacs.org>
6319
6320         * gui-msw.c (mswindows_handle_gui_wm_command): set
6321         action_occurred.
6322         * gui-x.c (popup_selection_callback): ditto.
6323
6324         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6325         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6326         (struct Lisp_Image_Instance): add action_occurred flag.
6327
6328         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6329         (image_instance_changed): ditto.
6330         (reset_frame_subwindow_instance_cache): only unmap windows - do
6331         not remove them from the cache also.
6332
6333         * glyphs-widget.c (tab_control_update): better debug.
6334         (progress_gauge_update): ditto.
6335         (layout_update): ditto.
6336         (layout_instantiate): ditto.
6337         (tab_control_order_only_changed): cope with null pending items.
6338
6339         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6340         debug. Force selection of an item when an action occurred. Cope
6341         with null pending_items.
6342         (mswindows_progress_gauge_redisplay): better debug.
6343         * glyphs-x.c (x_tab_control_redisplay): ditto.
6344
6345         * redisplay.c (redisplay_frame): reset the frame cache if the
6346         frame is garbaged.
6347
6348         * window.c (Fset_window_configuration): potentially re-enable
6349         frame cache reset.
6350         (window_unmap_subwindows): need to finalize instances here since
6351         it is only used in mark_window_as_deleted.
6352
6353 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6354
6355         * nas.c (SndOpenDataForReading):
6356         nas.c (WaveOpenDataForReading):
6357         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6358         Somehow escaped from the 2000-08-14 patch.
6359
6360 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6361
6362         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6363         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6364
6365 2000-08-21  Andy Piper  <andy@xemacs.org>
6366
6367         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6368         window if it is not already displayed.
6369
6370         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6371         it is not already displayed.
6372
6373         * window.c (Fset_window_configuration): don't reset the frame
6374         cache.
6375
6376         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6377         instances from the frame cache if we are actually finalizing them.
6378         (reset_frame_subwindow_instance_cache): reset frame cache only
6379         after unmapping everything.
6380         (map_subwindow): set displayed flag after mapping.
6381
6382 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6383
6384         * data.c (indirect_function):
6385         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6386
6387         * eval.c (function_argcount):
6388         Use original function when signaling errors.
6389
6390 2000-08-18  Andy Piper  <andy@xemacs.org>
6391
6392         * frame.c (delete_frame_internal): use new
6393         free_frame_subwindow_instances name.
6394
6395         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6396         (add_tab_item): make return type correct.
6397         (mswindows_tab_control_instantiate): assert index of tab.
6398         (mswindows_tab_control_redisplay): Re-code to use
6399         gui_item_equal_sans_selected and gui_item_list_find_selected.
6400
6401         * glyphs-widget.c (tab_control_update): Correct comment.
6402
6403         * window.c (window_unmap_subwindows): use new
6404         unmap_subwindow_instance_cache_mapper.
6405         (window_unmap_subwindows_cache_mapper): deleted.
6406         (Fset_window_configuration): comparisons should now be with
6407         EQ. Preserve the subwindow instance cache across configuration
6408         changes.
6409         (allocate_window): ditto.
6410         (make_dummy_parent): ditto.
6411
6412         * glyphs.c (free_frame_subwindow_instances): rename from
6413         free_frame_subwindow_instance_cache. finalize all instances rather
6414         than just those in the display cache.
6415         (finalize_all_subwindow_instances): walk windows unmapping and
6416         finalizing subwindows.
6417         (unmap_subwindow_instance_cache_mapper): moved from
6418         window.c. Allow finalization as well as unmapping.
6419
6420         * gui.c (gui_item_list_find_selected): new function.
6421
6422         * gui.h (gui_item_list_find_selected): declare.
6423
6424         * glyphs-x.c (x_tab_control_redisplay): pick tab
6425         explicitly. Re-code to use gui_item_equal_sans_selected and
6426         gui_item_list_find_selected.
6427
6428         * glyphs-x.h: add lwlib-utils.h
6429
6430         * buffer.c (Frecord_buffer): undo previous change.
6431
6432 2000-08-09  Vin Shelton  <acs@xemacs.org>
6433
6434         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6435         possible.  Create temporary files more securely.  The patch was
6436         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6437         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6438         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6439         for details.
6440
6441 2000-08-07  Ben Wing  <ben@xemacs.org>
6442
6443         * getloadavg.c: remove duplicate (and windows-breaking)
6444         includes of fcntl.h and sys/file.h.
6445
6446         * nt.c: remove duplicate getloadavg() definition.
6447
6448         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6449         encodings.
6450
6451 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6452
6453         * eval.c (function_argcount): If function needs to be autoloaded
6454         actually use the loaded definition.
6455         GCPRO function.
6456
6457 2000-08-05  Ben Wing  <ben@xemacs.org>
6458
6459         * getloadavg.c: add prototype for getloadavg().  remove
6460         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6461         of the code).  remove duplicate header includes.
6462
6463         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6464
6465         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6466         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6467         useful load average.
6468
6469         * alloc.c (reinit_alloc_once_early): removed references to
6470         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6471         the lisp vars are the only things referencing the malloc_sbrk_*
6472         vars, and they were already if 0'd out.  these vars only exist
6473         in the older malloc.c, which is basically unused, and they're
6474         only for informational purposes.
6475
6476         * m\*.h: removed useless VIRT_ADDR_VARIES.
6477
6478         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6479
6480 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6481
6482         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6483         color if the image is a mono pixmap.
6484
6485 2000-07-30  Ben Wing  <ben@xemacs.org>
6486
6487         * Makefile.in.in (release):
6488         Remove stray @.
6489
6490         * buffer.c (directory_is_current_directory):
6491         * dired-msw.c (mswindows_get_files):
6492         * dired.c:
6493         * dired.c (Fdirectory_files):
6494         * dired.c (file_name_completion_stat):
6495         * dired.c (Ffile_attributes):
6496         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6497         preprocessor tricks, to avoid problems on some machines
6498         (e.g. SCO).
6499
6500         * callproc.c (egetenv): GC docs.
6501
6502         * console-msw.h:
6503         * console-msw.h (struct mswindows_dialog_id):
6504         * lrecord.h (lrecord_type):
6505         New object for use with MSW dialogs.
6506
6507         * console.h (struct console_methods):
6508         New enable/disable frame methods, for proper modal dialogs.
6509
6510         * device-msw.c (msprinter_default_printer): Fix to follow
6511         proper Mule conventions.
6512
6513         * device-msw.c:
6514         * device-msw.c (signal_open_printer_error):
6515         * device-msw.c (msprinter_init_device):
6516         * device-msw.c (ensure_not_printing):
6517         * device-msw.c (plist_get_margin):
6518         * device-msw.c (Fmsprinter_select_settings):
6519         * device-msw.c (finalize_devmode):
6520         * device-msw.c (Fmsprinter_settings_despecialize):
6521         * device-msw.c (signal_enum_priner_error):
6522         * extents.c (decode_extent):
6523         * extents.c (decode_map_extents_flags):
6524         * extents.c (decode_extent_at_flag):
6525         * extents.c (Fextent_at):
6526         * extents.c (Fextents_at):
6527         * extents.c (symbol_to_glyph_layout):
6528         [[[[2]]]] Use structured errors.
6529
6530         * dialog-msw.c:
6531         * dialog-msw.c (mswindows_is_dialog_msg):
6532         * dialog-msw.c (mark_mswindows_dialog_id):
6533         * dialog-msw.c (dialog_proc):
6534         * dialog-msw.c (handle_question_dialog_box):
6535         * dialog-msw.c (syms_of_dialog_mswindows):
6536         Define new object to clean up marking; use it as a dialog identifier.
6537         Call new delete-dialog-box-hook.
6538
6539         * dialog-x.c (dbox_selection_callback):
6540         * dialog-x.c (dbox_descriptor_to_widget_value):
6541         * dialog-x.c (x_make_dialog_box_internal):
6542         Call new delete-dialog-box-hook.
6543         Return an id.
6544
6545         * dialog.c:
6546         * dialog.c (syms_of_dialog):
6547         * dialog.c (vars_of_dialog):
6548         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6549
6550         * eval.c:
6551         * eval.c (signal_call_debugger):
6552         when noninteractive, output stack traces on the console instead
6553         of in a (never-seen) buffer.
6554
6555         * eval.c (signal_type_error):
6556         * eval.c (invalid_argument_2):
6557         * lisp.h:
6558         new funs for use w/structured errors.
6559
6560         * event-Xt.c:
6561         * event-Xt.c (x_to_emacs_keysym):
6562         * event-Xt.c (describe_event):
6563         * event-Xt.c (emacs_Xt_event_handler):
6564         * event-Xt.c (vars_of_event_Xt):
6565         * event-msw.c:
6566         * event-msw.c (mswindows_wnd_proc):
6567         * event-msw.c (vars_of_event_mswindows):
6568         rename {x,mswindows}-debug-events to debug-{}-events for
6569         consistency with other debug-foo variables.
6570
6571         * event-stream.c:
6572         document next-event more clearly.
6573
6574         * fileio.c (Ffile_name_directory):
6575         * fileio.c (Ffile_name_nondirectory):
6576         * fileio.c (Funhandled_file_name_directory):
6577         * fileio.c (file_name_as_directory):
6578         * fileio.c (Ffile_name_as_directory):
6579         * fileio.c (directory_file_name):
6580         * fileio.c (Fdirectory_file_name):
6581         * fileio.c (Fmake_temp_name):
6582         * fileio.c (Ffile_truename):
6583         * fileio.c (Fsubstitute_in_file_name):
6584         * fileio.c (expand_and_dir_to_file):
6585         * fileio.c (barf_or_query_if_file_exists):
6586         * fileio.c (check_executable):
6587         * fileio.c (Ffile_exists_p):
6588         * fileio.c (Ffile_writable_p):
6589         * fileio.c (Ffile_directory_p):
6590         * fileio.c (Ffile_regular_p):
6591         * fileio.c (Ffile_modes):
6592         * fileio.c (Ffile_newer_than_file_p):
6593         * fileio.c (Fverify_visited_file_modtime):
6594         * fileio.c (Fset_visited_file_modtime):
6595         * fileio.c (auto_save_1):
6596         (1). (2).
6597         fix up gcpro's.
6598
6599         * frame-msw.c:
6600         * frame-msw.c (mswindows_init_frame_1):
6601         * frame-msw.c (mswindows_enable_frame):
6602         * frame-msw.c (error_frame_unsizable):
6603         * frame-msw.c (msprinter_init_frame_1):
6604         * frame-msw.c (msprinter_init_frame_3):
6605         * frame-msw.c (console_type_create_frame_mswindows):
6606         (2).
6607         implement new enable/disable frame methods.
6608
6609         * frame-x.c:
6610         * frame-x.c (x_enable_frame):
6611         * frame-x.c (console_type_create_frame_x):
6612         implement new enable/disable frame methods.
6613
6614         * frame.c:
6615         * frame.c (Fdisable_frame):
6616         * frame.c (syms_of_frame):
6617         * frame.h (struct frame):
6618         implement new enable/disable frame methods/functions.
6619
6620         * general-slots.h:
6621         add initial-focus.
6622
6623         * glyphs-msw.c (mswindows_widget_instantiate):
6624         comment that initial-focus should be implemented.
6625
6626         * glyphs-widget.c:
6627         * glyphs-widget.c (check_valid_instantiator):
6628         * glyphs-widget.c (check_valid_orientation):
6629         * glyphs-widget.c (check_valid_tab_orientation):
6630         * glyphs-widget.c (check_valid_justification):
6631         * glyphs-widget.c (check_valid_border):
6632         * glyphs-widget.c (check_valid_callback):
6633         * glyphs-widget.c (check_valid_int_or_function):
6634         * glyphs-widget.c (check_valid_string_or_vector):
6635         * glyphs-widget.c (check_valid_item_list_1):
6636         * glyphs-widget.c (widget_validate):
6637         * glyphs-widget.c (combo_box_validate):
6638         * glyphs-widget.c (widget_instantiate):
6639         * glyphs-widget.c (syms_of_glyphs_widget):
6640         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6641         * glyphs-widget.c (image_instantiator_combo_box):
6642         * glyphs-widget.c (image_instantiator_scrollbar):
6643         * glyphs-widget.c (image_instantiator_tab_control):
6644         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6645         (2).
6646         support (unimplemented) keyword initial-focus.
6647         reindent long macros.
6648
6649         * glyphs-x.c (x_redisplay_widget):
6650         * glyphs-x.c (x_button_instantiate):
6651         * glyphs-x.c (x_button_redisplay):
6652         * glyphs-x.c (x_progress_gauge_instantiate):
6653         * glyphs-x.c (x_edit_field_instantiate):
6654         * glyphs-x.c (x_combo_box_instantiate):
6655         * glyphs-x.c (x_tab_control_instantiate):
6656         * glyphs-x.c (x_label_instantiate):
6657         * gui-x.c:
6658         * gui-x.c (button_item_to_widget_value):
6659         * gui-x.c (gui_items_to_widget_values_1):
6660         * gui-x.c (gui_item_children_to_widget_values):
6661         * gui-x.c (gui_items_to_widget_values):
6662         * gui-x.h:
6663         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6664         add new flag to gui-parsing routines to indicate whether
6665         accelerator specs should be supported.
6666
6667         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6668
6669         * glyphs.h (struct Lisp_Image_Instance):
6670         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6671         add initial-focus flag.
6672
6673         * gui.c:
6674         * gui.c (syms_of_gui):
6675         * gui.c (vars_of_gui):
6676         clean up menu-no-selection-hook.
6677
6678         * gui.h:
6679         support delete-dialog-box-hook.
6680
6681         * lread.c (Fload_internal):
6682         * lread.c (locate_file_in_directory_mapper):
6683         (1).
6684
6685         * lrecord.h:
6686         * lrecord.h (struct toolbar_button):
6687         * lrecord.h (syms_of_toolbar):
6688         document how to create a new object.
6689
6690         * menubar-msw.c (mswindows_char_is_accelerator):
6691         may be called on frames w/o menus.
6692
6693         * menubar.c (vars_of_menubar):
6694         clean up :filter docs.
6695
6696         * nt.c (readdir):
6697         * ntproc.c:
6698         (1).
6699
6700         * process-nt.c:
6701         * process-nt.c (validate_signal_number):
6702         * process-nt.c (signal_cannot_launch):
6703         * process-nt.c (nt_create_process):
6704         * process-nt.c (nt_send_process):
6705         * process-nt.c (nt_kill_child_process):
6706         * process-nt.c (nt_open_network_stream):
6707         * process-nt.c (syms_of_process_nt):
6708         (2).
6709         delete quote-handling.  call new lisp code that does it better.
6710
6711         * process-unix.c (connect_to_file_descriptor):
6712         * process-unix.c (allocate_pty):
6713         * process-unix.c (unix_send_process):
6714         * process-unix.c (unix_kill_child_process):
6715         * process-unix.c (unix_open_network_stream):
6716         * process-unix.c (unix_open_multicast_group):
6717         (1). (2).
6718
6719         * process.c:
6720         * process.c (Fstart_process_internal):
6721         (2).  need to canonicalize process path even if absolute.
6722
6723         * select-msw.c (symbol_to_ms_cf):
6724         * select-msw.c (ms_cf_to_symbol):
6725         * select-msw.c (cf_is_autofreed):
6726         * select-msw.c (mswindows_destroy_selection):
6727         * select.c:
6728         * select.c (syms_of_select):
6729         * select.h:
6730         support dibv5, fix bugs. (from Mike Alexander)
6731
6732         * select.c (Fget_selection_internal):
6733         * select.c (select_convert_out):
6734
6735         * sysdep.c:
6736         * sysdep.c (xemacs_stat):
6737         renamed.
6738
6739         * sysdep.c (mkdir):
6740         * sysdep.c (rmdir):
6741         but keep original stat() here because we provide encapsulation
6742         around these funs.
6743
6744         * sysfile.h:
6745         * sysfile.h (fstat):
6746         remove stat garbage.
6747
6748         * syswindows.h:
6749         fix X/MSW conflict.
6750         don't include tchar.h.  it's inappropriate because it makes
6751         compile-time distinctions when we want runtime distinctions.
6752         (we provide our own tchar replacements)
6753
6754         * toolbar.c:
6755         use default object printer for toolbar-button.
6756
6757         * unexcw.c:
6758         make sure we don't encapsulate.
6759
6760         * window.c (vars_of_window):
6761         emphasize that temp-buffer-show-hook is obsolete.
6762
6763 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6764
6765         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6766         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6767
6768         * events.c (Fevent_timestamp_lessp):
6769         Not 64-bit clean.  Use EMACS_INT, not int.
6770
6771 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6772
6773         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6774         unsigned int and changed the last enum to
6775         lrecord_type_last_built_in_type.
6776         (lrecord_implementations_table): changed prototype to know how
6777         long the array is supposed to be.
6778         (lrecord_type_count): new unsigned int to keep track of the
6779         current number of lisp lrecord types.
6780         (DEFINE_EXTERNAL_LRECORD):
6781         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6782         dynamic-modules to declare new lisp types. They are the same
6783         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6784         int for each new type, and increment lrecord_type_count by 1.
6785
6786         * alloc.c (lrecord_implementations_table): Changed to reference
6787         lrecord_type_last_built_in_type for the size of the array.
6788         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6789
6790 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6791
6792         * glyphs.h (check_valid_item_list): Renamed from
6793         check_valid_item_list_1.
6794
6795 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6796
6797         * select.c (Qselect_coerce): New.
6798         * select.c (Vselection_coercion_alist): New.
6799         * select.c (syms_of_select): Declare.
6800         * select.c (get-selection-internal): Use it.
6801         Use the new select-coerce functionality.
6802
6803         * select.c (select_coerce): New.
6804         * select.h (select_coerce): Declare.
6805         New function to coerce one type of data into another.
6806
6807 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6808
6809         * callproc.c (Fcall_process_internal):
6810         (Fcall_process_internal):
6811         * process-unix.c (unix_create_process):
6812         Save and restore the value of errno, so that error messages are accurate.
6813
6814 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6815
6816         * elhash.c (print_hash_table):
6817         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6818         Prettify docstrings and indentation.
6819
6820 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6821
6822         * window.c (Fwindow_pixel_edges): Subtract frame border and
6823         gutter size.
6824
6825 2000-07-31  Andy Piper  <andy@xemacs.org>
6826
6827         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6828         will acknowledge the change.
6829
6830         * glyphs.h: declare tab_control_order_only_changed.
6831
6832         * glyphs-x.c (x_tab_control_redisplay): use
6833         tab_control_order_only_changed.
6834
6835         * glyphs-widget.c (tab_control_order_only_changed): new function.
6836
6837         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6838         tab_control_order_only_changed.
6839
6840         * gui.c (gui_item_equal_sans_selected): new function.
6841         (gui_item_equal): use it.
6842
6843         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6844         :properties in favor of :items..
6845
6846         * glyphs-widget.c (check_valid_item_list): rename from
6847         check_valid_item_list_1.
6848         (check_valid_item_list_1): renamed.
6849         (combo_box_validate): deprecate :properties in favor of :items.
6850         (widget_instantiate): ditto.
6851         (tab_control_update): ditto.
6852         (image_instantiator_combo_box): ditto.
6853         (image_instantiator_tree_view): ditto.
6854         (image_instantiator_tab_control): ditto.
6855         (layout_post_instantiate): remove dead code.
6856
6857         * print.c (debug_print_no_newline): only write to debugger if in
6858         WIN32_NATIVE.
6859
6860         * elhash.c (Fmake_hash_table): update doc string.
6861
6862         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6863         messages whilst in GC. This at least stops XEmacs crashing but has
6864         the potential for wierd behaviour.
6865
6866 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6867
6868         * config.h.in:
6869         Make existence of s&m files optional.
6870
6871         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6872         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6873         * s/gnu.h: Remove HAVE_GETLOADAVG.
6874         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6875         * s/sol2.h: Remove HAVE_GETLOADAVG.
6876         * lisp.h: Remove getloadavg() declaration.
6877         * fns.c:
6878         Include <sys/loadavg.h> if available.
6879         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6880         * config.h.in:  Group together getloadavg()-related macros.
6881         Use only configure-time tests to detect getloadavg().
6882
6883 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6884
6885         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6886
6887 2000-07-25  Andy Piper  <andy@xemacs.org>
6888
6889         * syswindows.h: add tchar.h for native builds.
6890
6891         * frame.c (syms_of_frame): remove set-glyph-image.
6892
6893         * general-slots.h: add Qset_glyph_image.
6894
6895         * glyphs-widget.c (layout_update): add domain arg to
6896         set-glyph-image.
6897         (syms_of_glyphs_widget): remove set-glyph-image.
6898
6899 2000-07-23  Ben Wing  <ben@xemacs.org>
6900
6901         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6902         Vpopup_frame_list.
6903
6904 2000-07-22  Andy Piper  <andy@xemacs.org>
6905
6906         * symsinit.h: add syms_of_win32().
6907
6908         * gui-msw.c (syms_of_gui_mswindows): remove
6909         Fmswindows_shell_execute.
6910         (Fmswindows_shell_execute): moved to win32.c.
6911
6912         * emacs.c (main_1): add syms_of_win32 ().
6913
6914         * win32.c (init_potentially_nonexistent_functions): rewrite in
6915         compiler-friendly terms.
6916         (Fmswindows_shell_execute): move here from gui-msw.c.
6917         (syms_of_win32): new.
6918
6919         * device-msw.c (Fmswindows_printer_list): clean up args to
6920         EnumPrinters.
6921         Don't include tchar under cygwin or mingw.
6922         (msprinter_default_printer): make cygwin-friendly.
6923
6924 2000-07-21  Andy Piper  <andy@xemacs.org>
6925
6926         * glyphs-widget.c (image_instantiator_tree_view): use tab
6927         control's update function.
6928         (layout_property): new function. Retrieve items.
6929
6930         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6931         function. Re-populate the tree view from the pending items.
6932
6933         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6934         is designated the parent if the domain is an image instance. This
6935         is needed so that dirtiness can be cascade up the hierarchy and
6936         thus for layout children to be redisplayed correctly.
6937         (allocate_image_instance): rename glyph -> parent.
6938
6939         * redisplay.h: change redisplay_output_layout signature.
6940
6941         * redisplay-msw.c (mswindows_output_display_block): use domain
6942         arg.
6943
6944         * redisplay-x.c (x_output_display_block): use domain arg.
6945
6946 2000-07-10  Andy Piper  <andy@xemacs.org>
6947
6948         * window.c (Fset_window_configuration): add comment.
6949
6950         * redisplay-output.c (compare_runes):
6951         (redisplay_output_subwindow): redisplay rather than update subwindow.
6952         (redisplay_output_layout): ditto.
6953
6954         * redisplay-msw.c (mswindows_frame_output_end):
6955         (mswindows_frame_output_end): make defer window pos optional.
6956
6957         * lisp.h: add Flast.
6958
6959         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6960         normalize method. Change update method to be for changed
6961         instantiators. Add redisplay method. Change signature of layout
6962         method.
6963         (struct Lisp_Image_Instance): add instantiator.
6964         (IMAGE_INSTANCE_INSTANTIATOR): new.
6965         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6966         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6967         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6968
6969         * glyphs.c:
6970         (find_instantiator_differences): new function.
6971         (Fset_instantiator_property): new convenience function.
6972         (check_image_instance_structure): strictly check for vector
6973         instantiators.
6974         (normalize_image_instantiator): make non-static.
6975         (instantiate_image_instantiator): pass on dest_mask and use new
6976         signatures for image_instance_layout and friends.
6977         (mark_image_instance): mark the instantiator. Mark the subwindow
6978         face not the widget face.
6979         (image_instance_equal): add instantiator.
6980         (image_instance_hash): ditto.
6981         (allocate_image_instance): ditto.
6982         (Fset_image_instance_property): removed.
6983         (Fimage_instance_file_name): ditto.
6984         (Fcolorize_image_instance): ditto.
6985         (image_instance_layout): add offsets to be set.
6986         (update_image_instance): new function. update an image instance
6987         from its changed instantiator.
6988         (inherit_normalize): add dest_mask.
6989         (xbm_normalize): ditto.
6990         (xface_normalize): ditto.
6991         (xpm_normalize): ditto.
6992         (text_update): set_property -> update.
6993         (image_instantiate): use the glyph identity as a hash key, not the
6994         instantiator.
6995         (glyph_width): use new image_instance_layout signature.
6996         (glyph_ascent): ditto.
6997         (glyph_descent): ditto.
6998         (glyph_height): ditto.
6999         (glyph_query_geometry): ressurrect.
7000         (glyph_layout): ditto.
7001         (redisplay_subwindow): update -> redisplay.
7002         (syms_of_glyphs): add Fset_instantiator_property.
7003         (image_instantiator_format_create): set_property -> update.
7004
7005         * glyphs-x.c:
7006         (autodetect_normalize): add dest_maks to signature.
7007         (x_redisplay_subwindow): update -> redisplay.
7008         (x_redisplay_widget): ditto.
7009         (x_button_redisplay): ditto.
7010         (x_progress_gauge_redisplay): ditto.
7011         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7012         stacking order.
7013         (console_type_create_glyphs_x): update -> redisplay.
7014         (image_instantiator_format_create_glyphs_x): ditto.
7015
7016         * glyphs-widget.c:
7017         (check_valid_instantiator): disallow glyphs in the instantiator,
7018         they must now be vectors.
7019         (check_valid_instantiator_list): ditto.
7020         (glyph_instantiator_to_glyph): use internal symbol rather than
7021         intern.
7022         (widget_update): renamed from widget_set_property. Call cascaded
7023         update methods.
7024         (redisplay_widget): renamed from update_widget.
7025         (widget_layout): image_instance_layout now takes position as well
7026         as size.
7027         (widget_normalize): ditto.
7028         (widget_instantiate): ditto.
7029         (tab_control_query_geometry) ditto.:
7030         (tab_control_update): renamed from tab_control_set_property.
7031         (progress_gauge_update): set_property -> update.
7032         (layout_normalize): rewrite so that child instantiators are
7033         normalized also.
7034         (layout_update): new function. Create glyphs from the normalized
7035         children and cope with any other layout keywords. We do not
7036         instantiate children here that will be take care of by
7037         redisplay_output_layout.
7038         (layout_instantiate): call layout_update and not much else.
7039         (layout_post_instantiate): not sure whether this is needed
7040         anymore.
7041         (layout_query_geometry): query glyph geometry rather than
7042         image_instance geometry.
7043         (layout_layout): set offsets from pass in parameters. Use glyph
7044         geometry and layout functions rather than image instance ones.
7045         (native_layout_layout): ditto.
7046         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7047         (image_instantiator_widget): set_property -> update.
7048         (image_instantiator_buttons): ditto.
7049         (image_instantiator_progress_guage): ditto.
7050         (image_instantiator_tab_control): ditto.
7051         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7052         (image_instantiator_layout): add update method.
7053
7054         * glyphs-msw.c (bmp_normalize):
7055         (mswindows_resource_normalize): add dest_mask so that it can be
7056         proprogated by layout_normalize.
7057         (begin_defer_window_pos): make optional because it may not be the
7058         right thing to do and it introduces differences with X.
7059         (mswindows_unmap_subwindow): ditto.
7060         (mswindows_map_subwindow): ditto.
7061         (mswindows_redisplay_subwindow): renamed from
7062         mswindows_update_subwindow.
7063         (mswindows_redisplay_widget): ditto.
7064         (mswindows_button_redisplay): renamed from
7065         mswindows_button_update. Update is now what the instantiation
7066         function does for a changed instantiator.
7067         (mswindows_progress_gauge_instantiate): set the progress value
7068         here if appropriate.
7069         (mswindows_tab_control_redisplay): cope with re-ordering of the
7070         members of the tab widget by simply selecting the new top
7071         widget. This makes things appear ok if you click on a tab.
7072         (mswindows_combo_box_instantiate): image_instance_layout now takes
7073         position as well as size.
7074         (mswindows_progress_gauge_redisplay): renamed from
7075         mswindows_progress_gauge_update.
7076         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7077         (image_instantiator_format_create_glyphs_mswindows): ditto.
7078
7079         * glyphs-eimage.c (jpeg_normalize):
7080         (gif_normalize):
7081         (png_normalize):
7082         (tiff_normalize): add dest_mask so that it can be proprogated by
7083         layout_normalize.
7084
7085         * elhash.c:
7086         (print_hash_table):
7087         (hash_table_weakness_validate):
7088         (decode_hash_table_weakness):
7089         (Fhash_table_weakness):
7090         (Fhash_table_type):
7091         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7092
7093         * console.h (struct console_methods): move update_* to
7094         redisplay_*.
7095
7096 2000-07-20  Ben Wing  <ben@xemacs.org>
7097
7098         * *.[ch] (XSETOBJ): remove unused middle argument.
7099         lisp-disunion.h: correct wrap_object() to one argument.
7100
7101 2000-07-15  Ben Wing  <ben@xemacs.org>
7102
7103         * s/cygwin32.h:
7104         * s/cygwin32.h (CYGWIN_CONV_PATH):
7105         Add missing logb prototype for v1.1.
7106         Use post-b20 names and alias to pre-b20 names when pre-b20.
7107
7108         * s/windowsnt.h: [5].
7109
7110 2000-07-15  Ben Wing  <ben@xemacs.org>
7111
7112         * Makefile.in.in (x_objs):
7113         * Makefile.in.in (sheap_objs):
7114         * Makefile.in.in (objs):
7115         added win32.o, cosmetic cleanups.
7116
7117         * alloc.c (Fmake_byte_code):
7118         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7119         etc. macros which declare their own args now.
7120
7121         * alloc.c (syms_of_alloc):
7122         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7123
7124         * buffer.c:
7125         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7126
7127         * buffer.c (Fget_file_buffer):
7128         Fixed GCPRO problem.
7129
7130         * buffer.c (get_truename_buffer):
7131         Fixed comment about GC checking.
7132
7133         * buffer.c (syms_of_buffer):
7134         Undeclared those dedicated frame funs.
7135         [2].
7136
7137         * buffer.h:
7138         Define convenience macros for internal/external conversions.
7139         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7140         and Qenvironment_variable_encoding for cleaner code.
7141
7142         * bufslots.h:
7143         Remove dedicated-frame; in lisp.
7144
7145         * bytecode.c (funcall_compiled_function):
7146         [1].
7147
7148         * bytecode.c (syms_of_bytecode):
7149         [2].
7150
7151         * console-msw.c:
7152         * console-msw.c (mswindows_show_console): Rewrote.
7153
7154         * console-msw.c (Fmswindows_debugging_output): New.
7155         Sends to OutputDebugString (special MSWin debugger interface).
7156
7157         * console-msw.c (Fmswindows_message_box):
7158         Fixed stupid bugs so it works when called from kill-emacs.
7159
7160         * console-msw.c (syms_of_console_mswindows):
7161         Declare Fmswindows_debugging_output.
7162
7163         * console-msw.h:
7164         New MSWin prototypes.
7165
7166         * console-msw.h (struct mswindows_frame):
7167         New entry last-click-mods for improved button-modifier support.
7168
7169         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7170         New struct entry `popup' with corresponding accessor.
7171
7172         * console-x.c:
7173         * console-x.c (split_up_display_spec):
7174         * console-x.c (get_display_arg_connection):
7175         * console-x.c (x_semi_canonicalize_console_connection):
7176         * console-x.c (x_canonicalize_device_connection):
7177         [[[6]]]: Change char to more specific type.
7178         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7179
7180         * console-x.c (x_semi_canonicalize_console_connection):
7181         * console-x.c (x_canonicalize_device_connection):
7182         [[[9]]]: Fix up error signalling to use new structured error system.
7183
7184         * console-x.h:
7185         [[[4]]]: Define codesys aliases:
7186         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7187         Qx_color_name_encoding, Qx_display_name_encoding.
7188
7189         * console.h (struct console_methods):
7190         New method make_dialog_box_internal supersedes older
7191         popup_dialog_box method.
7192
7193         * data.c:
7194         Define many new errors, part of new structured errors.
7195
7196         * data.c (init_errors_once_early):
7197         * data.c (syms_of_data):
7198         [2].
7199
7200         * device-msw.c (mswindows_init_device):
7201         [[[5]]]: Cleanup to support NT 3.51.
7202
7203         * device-msw.c (decode_devmode): Cleanup.
7204
7205         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7206         * device-msw.c (mswindows_handle_print_dialog_box):
7207         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7208         * device-msw.c (syms_of_device_mswindows):
7209         Delete the dialog box primitives recently introduced by Kirill and
7210         instead interface to general dialog box interface.
7211
7212         * device-x.c:
7213         * device-x.c (compute_x_app_name):
7214         * device-x.c (x_init_device):
7215         * device-x.c (Fx_valid_keysym_name_p):
7216         * device-x.c (Fx_set_font_path):
7217         [6].
7218         [7].
7219
7220         * device.h (wrap_device): New.
7221         First of its kind; meant to replace XSETDEVICE.
7222
7223         * dialog-msw.c: Many file-dialog symbols.
7224
7225         * dialog-msw.c (mswindows_register_popup_frame): New.
7226         * dialog-msw.c (mswindows_is_dialog_msg): New.
7227         For supporting kbd traversal in dialog boxes.
7228
7229         * dialog-msw.c (dialog_proc):
7230         Support hitting ESC in dialogs.
7231
7232         * dialog-msw.c (struct):
7233         Common dialog box errors.
7234
7235         * dialog-msw.c (handle_file_dialog_box): New.
7236         Add file dialog code.
7237
7238         * dialog-msw.c (handle_question_dialog_box):
7239         Redo existing code to support new question dialog syntax.
7240
7241         * dialog-msw.c (console_type_create_dialog_mswindows):
7242         We support new dialog console method.
7243
7244         * dialog-msw.c (syms_of_dialog_mswindows):
7245         * dialog-msw.c (vars_of_dialog_mswindows):
7246         New file dialog symbols, vars.
7247
7248         * dialog-x.c:
7249         * dialog-x.c (maybe_run_dbox_text_callback):
7250         * dialog-x.c (dbox_descriptor_to_widget_value):
7251         * dialog-x.c (x_make_dialog_box_internal):
7252         * dialog-x.c (console_type_create_dialog_x):
7253         Mule-ize entire file.
7254         Redo to support question dialog syntax.
7255         [6].
7256
7257         * dialog.c:
7258         * dialog.c (Fmake_dialog_box_internal):
7259         * dialog.c (syms_of_dialog):
7260         Kill old popup-dialog-box, replace with new primitive.
7261         Just call device method or signal error.
7262
7263         * eldap.c (Fldap_open):
7264         * eldap.c (Fldap_search_basic):
7265         * eldap.c (Fldap_add):
7266         * eldap.c (Fldap_modify):
7267         [1].
7268         [7].
7269
7270         * emacs.c:
7271         * emacs.c (make_arg_list_1):
7272         * emacs.c (make_arg_list):
7273         Mule-ize call to dll_init().
7274         [6].
7275         [8].
7276
7277         * emacs.c (make_argc_argv):
7278         * emacs.c (free_argc_argv):
7279         * emacs.c (init_cmdargs):
7280         * emacs.c (main_1):
7281         * emacs.c (Fkill_emacs):
7282         * emacs.c (Fdump_emacs):
7283         Update comments about what can be used in syms_* etc.
7284         Call init_win32() when necessary.
7285         Fix up MS Win dialog box in kill-buffer to actually work right.
7286         [7].
7287
7288         * eval.c:
7289         * eval.c (For):
7290         * eval.c (Fand):
7291         * eval.c (Fprogn):
7292         * eval.c (Fprog1):
7293         * eval.c (Fprog2):
7294         * eval.c (FletX):
7295         * eval.c (Flet):
7296         * eval.c (condition_case_3):
7297         * eval.c (Feval):
7298         * eval.c (function_argcount):
7299         * eval.c (funcall_lambda):
7300         [1].
7301
7302         * eval.c (type_error): New.
7303         * eval.c (maybe_type_error): New.
7304         * eval.c (continuable_type_error): New.
7305         * eval.c (maybe_continuable_type_error): New.
7306         * eval.c (type_error_with_frob): New.
7307         * eval.c (maybe_type_error_with_frob): New.
7308         * eval.c (continuable_type_error_with_frob): New.
7309         * eval.c (maybe_continuable_type_error_with_frob): New.
7310         New functions for use with structured errors.
7311
7312         * event-Xt.c:
7313         * event-Xt.c (x_event_to_emacs_event):
7314         Buttons are now modifiers too.
7315
7316         * event-Xt.c (emacs_Xt_current_event_timestamp):
7317         Implement new event method.
7318         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7319
7320         * event-msw.c:
7321         * event-msw.c (ntpipe_shove_writer): [5].
7322         * event-msw.c (mswindows_enqueue_mouse_button_event):
7323         * event-msw.c (mswindows_drain_windows_queue):
7324         * event-msw.c (mswindows_wnd_proc): [7].
7325         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7326         * event-msw.c (mswindows_modifier_state):
7327         Throughout: support new button modifiers.
7328
7329         * event-msw.c (emacs_mswindows_current_event_timestamp):
7330         Implement new event method.
7331         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7332
7333         * event-stream.c:
7334         * event-stream.c (event_stream_current_event_timestamp): New.
7335         * event-stream.c (maybe_kbd_translate): New functionality.
7336         * event-stream.c (vars_of_event_stream):
7337         Document new kbd-translate-table functionality.
7338
7339         * event-stream.c (Fcurrent_event_timestamp): New.
7340         New primitive for use in fabricated events.
7341         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7342
7343         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7344
7345         * events.c:
7346         * events.c (Fmake_event):
7347         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7348         [1].
7349         [9].
7350
7351         * events.c (format_event_object): fix gcc warnings.
7352
7353         * events.c (Fevent_timestamp): Document new primitives.
7354
7355         * events.c (TIMESTAMP_HALFSPACE): New.
7356
7357         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7358         comparing timestamps correctly (half-space algorithm).
7359
7360         * events.c (Fevent_modifier_bits): Doc fix.
7361
7362         * events.c (Fevent_modifiers): Major doc addition.
7363         * events.c (event_x_y_pixel_internal): Typo fix.
7364         * events.c (syms_of_events): Declare new primitives.
7365
7366         * events.h:
7367         Update long comment for button modifiers, timestamps.
7368
7369         * events.h (struct event_stream):
7370         New current_event_timestamp method.
7371
7372         * extents.c:
7373         * extents.c (extent_in_region_p):
7374         * extents.c (decode_extent):
7375         * extents.c (Fset_extent_parent):
7376         * extents.c (decode_map_extents_flags):
7377         Fix gcc warnings.
7378         [9].
7379
7380         * extents.c (struct extent_at_arg):
7381         * extents.c (decode_extent_at_flag):
7382         * extents.c (extent_at_mapper):
7383         * extents.c (extent_at_bytind):
7384         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7385         * extents.c (Fextents_at): New primitive. [9].
7386         * extents.c (symbol_to_glyph_layout): [9].
7387         Support new primitive `extents-at'.
7388
7389
7390         * extents.c (get_text_property_bytind):
7391         extent_at_bytind has another arg.
7392         [9].
7393
7394         * extents.c (syms_of_extents): New primitive.
7395
7396         * file-coding.c (Fmake_coding_system): [1].
7397         * file-coding.c (subsidiary_coding_system): fix gcc warning
7398         * file-coding.c (syms_of_file_coding): [2].
7399
7400         * fileio.c (Fexpand_file_name):
7401         * fileio.c (Fsysnetunam):
7402         * fileio.c (Ffile_exists_p):
7403         * fileio.c (Ffile_executable_p):
7404         * fileio.c (Fverify_visited_file_modtime):
7405         Clean up GCPROing.
7406
7407         * fileio.c (syms_of_fileio): [2].
7408
7409         * filelock.c (lock_file_1):
7410         * filelock.c (current_lock_owner):
7411         * filelock.c (lock_if_free):
7412         * filelock.c (lock_file):
7413         * filelock.c (unlock_file):
7414         Clean up GCPROing.
7415
7416         * fns.c (concat): Fix gcc warning.
7417
7418         * fns.c (Fmember):
7419         * fns.c (Fold_member):
7420         * fns.c (Fmemq):
7421         * fns.c (Fold_memq):
7422         * fns.c (memq_no_quit):
7423         * fns.c (Fassoc):
7424         * fns.c (Fold_assoc):
7425         * fns.c (Fassq):
7426         * fns.c (Fold_assq):
7427         * fns.c (assq_no_quit):
7428         * fns.c (Frassoc):
7429         * fns.c (Fold_rassoc):
7430         * fns.c (Frassq):
7431         * fns.c (Fold_rassq):
7432         * fns.c (rassq_no_quit):
7433         * fns.c (Fdelete):
7434         * fns.c (Fold_delete):
7435         * fns.c (Fdelq):
7436         * fns.c (Fold_delq):
7437         * fns.c (delq_no_quit):
7438         * fns.c (Fremassoc):
7439         * fns.c (Fremassq):
7440         * fns.c (remassq_no_quit):
7441         * fns.c (Fremrassoc):
7442         * fns.c (Fremrassq):
7443         * fns.c (remrassq_no_quit):
7444         * fns.c (Freverse):
7445         * fns.c (mapcar1):
7446         [1].
7447
7448         * frame-msw.c (mswindows_init_frame_1):
7449         * frame-msw.c (mswindows_delete_frame):
7450         Register popups with dialog code so keyboard traversing works.
7451
7452         * frame-tty.c (tty_raise_frame_no_select): [1].
7453
7454         * frame-x.c:
7455         * frame-x.c (x_set_frame_text_value):
7456         * frame-x.c (x_set_frame_properties):
7457         * frame-x.c (x_create_widgets):
7458         [7].
7459
7460         * frame.c:
7461         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7462
7463         * frame.h (wrap_frame): New.
7464         Macro like wrap_device.
7465
7466         * general.c:
7467         * general.c (SYMBOL):
7468         * general.c (syms_of_general):
7469         Major reorg.  This is now just a wrapper and symbols themselves
7470         are listed in general-slots.h.
7471
7472         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7473         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7474
7475         * glyphs-msw.c (mswindows_native_layout_instantiate):
7476         Add DS_CONTROL so keyboard traversal will work.
7477
7478         * glyphs-widget.c:
7479         * glyphs-widget.c (syms_of_glyphs_widget):
7480         Move some symbols to general-slots.h.
7481
7482         * glyphs-x.c:
7483         * glyphs-x.c (xbm_instantiate_1):
7484         * glyphs-x.c (x_xbm_instantiate):
7485         * glyphs-x.c (x_xface_instantiate):
7486         * glyphs-x.c (autodetect_instantiate):
7487         * glyphs-x.c (cursor_font_instantiate):
7488         * glyphs-x.c (x_update_widget):
7489         * glyphs-x.c (x_widget_instantiate):
7490         * glyphs.c (bitmap_to_lisp_data):
7491         * glyphs.c (pixmap_to_lisp_data):
7492         [7].
7493
7494         * glyphs.c (syms_of_glyphs):
7495         [2].
7496
7497         * gui-x.c:
7498         * gui-x.c (print_widget_value):
7499         * gui-x.c (menu_separator_style_and_to_external):
7500         * gui-x.c (add_accel_and_to_external):
7501         * gui-x.c (button_item_to_widget_value):
7502         * gui-x.c (gui_items_to_widget_values_1):
7503         * gui-x.c (gui_items_to_widget_values):
7504         * gui-x.c (syms_of_gui_x):
7505         * gui-x.c (vars_of_gui_x):
7506         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7507         [9].
7508
7509         * gui-x.h:
7510         Muleize, prototype changes matching gui-x.c.
7511
7512         * gui.c:
7513         * gui.c (separator_string_p):
7514         * gui.c (gui_item_add_keyval_pair):
7515         * gui.c (make_gui_item_from_keywords_internal):
7516         * gui.c (signal_too_long_error):
7517         * gui.c (parse_gui_item_tree_item):
7518         * gui.c (syms_of_gui):
7519         * gui.c (vars_of_gui):
7520         * gui.h:
7521         menu-no-selection-hook moved here (used by MSWin).
7522         Move some symbols to general-slots.h.
7523         [6].
7524         [9].
7525
7526         * insdel.c (get_buffer_pos_char):
7527         * insdel.c (get_buffer_range_char):
7528         Add GC comments.
7529
7530         * keymap.c (keymap_lookup_directly):
7531         * keymap.c (keymap_store):
7532         * keymap.c (ensure_meta_prefix_char_keymapp):
7533         * keymap.c (describe_map):
7534         * keymap.h:
7535         Support new button modifiers.
7536
7537         * lisp-disunion.h (wrap_object):
7538         * lisp-disunion.h (XSETOBJ):
7539         Rename make_obj to wrap_object.
7540
7541         * lisp-union.h:
7542         * lisp-union.h (make_int):
7543         * lisp-union.h (make_char):
7544         Support wrap_object.
7545
7546         * lisp.h:
7547         * lisp.h (LIST_LOOP):
7548         * lisp.h (EXTERNAL_LIST_LOOP):
7549         * lisp.h (LIST_LOOP_2):
7550         * lisp.h (EXTERNAL_LIST_LOOP_1):
7551         * lisp.h (EXTERNAL_LIST_LOOP_2):
7552         * lisp.h (EXTERNAL_LIST_LOOP_3):
7553         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7554         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7555         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7556         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7557         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7558         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7559         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7560         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7561         * lisp.h (struct Lisp_Symbol):
7562         * lisp.h (maybe_continuable_error_with_frob):
7563         Fix up section comments.
7564         Add new types for char to indicate usage.
7565         Delete symbols auto-generated from general-slots.h.
7566         Add prototypes for structured error functions.
7567         Add long comments describing looping macros and change interface
7568         so that lvalues are automatically declared.
7569         Add NO_DECLARE macro in case callers want to declare lvalues
7570         themselves.
7571
7572         * lread.c (read_syntax_error):
7573         * lread.c (continuable_read_syntax_error):
7574         * lread.c (read_structure):
7575         * lread.c (sequence_reader):
7576         * lread.c (read_list_conser):
7577         * lread.c (read_compiled_function):
7578         Rename syntax_error and continuable_syntax_error to avoid clash
7579         with same-named structured error functions.
7580
7581         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7582         * menubar-msw.c (populate_menu_add_item):
7583         * menubar-msw.c (populate_or_checksum_helper):
7584         [5].
7585         [9].
7586
7587         * menubar-x.c:
7588         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7589         Mule-ize whole file.
7590
7591         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7592
7593         * mule-charset.c (Fmake_charset):
7594         * mule-wnnfns.c (Fwnn_set_param):
7595         [1].
7596
7597         * ntproc.c (create_child):
7598         * ntproc.c (Fwin32_set_current_locale):
7599         Add comments portending doom.
7600
7601         * objects-msw.c:
7602         * objects-msw.c (old_font_enum_callback_2):
7603         * objects-msw.c (font_enum_callback_1):
7604         * objects-msw.c (mswindows_enumerate_fonts):
7605         [5].
7606
7607         * objects-x.c:
7608         * objects-x.c (allocate_nearest_color):
7609         * objects-x.c (x_parse_nearest_color):
7610         * objects-x.c (x_initialize_color_instance):
7611         * objects-x.c (x_print_color_instance):
7612         * objects-x.c (x_finalize_color_instance):
7613         * objects-x.c (x_valid_color_name_p):
7614         * objects-x.c (x_initialize_font_instance):
7615         * objects-x.c (x_print_font_instance):
7616         * objects-x.c (valid_x_font_name_p):
7617         * objects-x.c (truename_via_FONT_prop):
7618         * objects-x.c (truename_via_random_props):
7619         * objects-x.c (truename_via_XListFonts):
7620         * objects-x.c (x_font_truename):
7621         * objects-x.c (x_font_instance_truename):
7622         * objects-x.c (x_font_instance_properties):
7623         * objects-x.c (x_list_fonts):
7624         * objects-x.c (x_find_charset_font):
7625         Mule-ize entire file.
7626         [7].
7627
7628         * objects-x.h:
7629         Mule-verify.
7630
7631         * print.c:
7632         * print.c (std_handle_out_external):
7633         * print.c (debug_print_no_newline):
7634         * print.c (syms_of_print):
7635         Output to all debugger kinds in debug-print.
7636         Fix console-output code under MSWin to actually work.
7637
7638         * process-nt.c (send_signal):
7639         * process-nt.c (nt_create_process):
7640         Use newer Unicode macros.
7641
7642         * process-unix.c (unix_create_process):
7643         * process-unix.c (unix_canonicalize_host_name):
7644         * process-unix.c (unix_open_network_stream):
7645         [7].
7646
7647         * scrollbar-x.c:
7648         Mule-verify.
7649
7650         * search.c (syms_of_search):
7651         [2].
7652
7653         * select-msw.c (mswindows_destroy_selection):
7654         Use LIST_LOOP_2.
7655
7656         * select-x.c (symbol_to_x_atom):
7657         [7].
7658
7659         * select.c (syms_of_select):
7660         [2].
7661
7662         * sound.c (Fplay_sound_file):
7663         [7].
7664
7665         * specifier.c:
7666         * specifier.c (decode_specifier_type):
7667         * specifier.c (Fvalid_specifier_locale_type_p):
7668         * specifier.c (check_valid_locale_or_locale_type):
7669         * specifier.c (decode_locale):
7670         * specifier.c (decode_locale_type):
7671         * specifier.c (decode_locale_list):
7672         * specifier.c (check_valid_domain):
7673         * specifier.c (decode_specifier_tag_set):
7674         * specifier.c (Fcanonicalize_tag_set):
7675         * specifier.c (Fdefine_specifier_tag):
7676         * specifier.c (Fspecifier_tag_predicate):
7677         * specifier.c (check_valid_inst_list):
7678         * specifier.c (check_valid_spec_list):
7679         * specifier.c (decode_how_to_add_specification):
7680         * specifier.c (check_modifiable_specifier):
7681         * specifier.c (specifier_add_spec):
7682         * specifier.c (boolean_validate):
7683         * specifier.c (display_table_validate):
7684         [9].
7685
7686         * specifier.c (syms_of_specifier):
7687         Move some symbols to general-slots.h.
7688         [2].
7689
7690         * symbols.c:
7691         * symbols.c (Fmapatoms):
7692         * symbols.c (Fapropos_internal):
7693         Add GCPROs.
7694
7695         * symbols.c (set_default_buffer_slot_variable):
7696         * symbols.c (set_default_console_slot_variable):
7697         [1].
7698
7699         * symbols.c (defsymbol_massage_name_1):
7700         * symbols.c (defkeyword_massage_name):
7701         * symbols.c (deferror_1):
7702         * symbols.c (deferror):
7703         * symbols.c (deferror_massage_name_and_message):
7704         * symeval.h:
7705         * symeval.h (DEFSYMBOL):
7706         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7707
7708         * symbols.c (syms_of_symbols):
7709         [2].
7710
7711         * symsinit.h:
7712         * symsinit.h (init_win32): New.
7713         Also new is syms_of_dialog_mswindows.
7714
7715         * syswindows.h:
7716         Add new Unicode macros, missing Cygwin wide-char functions,
7717         convenience conversion macros for Qmswindows_tstr, macros for
7718         encapsulating required MSWin <-> Cygwin filename conversions,
7719         prototype for dynamically-extracted (not in NT 3.51) functions.
7720
7721         * toolbar-x.c:
7722         Mule-verify.
7723
7724         * tooltalk.c (Fadd_tooltalk_message_arg):
7725         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7726         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7727         [7].
7728
7729         * tooltalk.c (syms_of_tooltalk):
7730         [2].
7731
7732         * unexnt.c:
7733         * unexnt.c (unexec):
7734         Fix up headers, declaration of unexec() to be more standard.
7735
7736 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7737
7738         * offix.h: Revert change to guard macros - they're used in offix.c!
7739
7740 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7741
7742         * lisp.h: Defsubred Fdelete.
7743
7744         * console-msw.h:  (msprinter_default_printer): Added.
7745
7746         * console-msw.c (msprinter_canonicalize_console_connection):
7747         (msprinter_canonicalize_device_connection): Added.
7748
7749         * device-msw.c (msprinter_default_printer):
7750         (Fmswingows_get_default_printer):
7751         (signal_enum_priner_error):
7752         (Fmswingows_printer_list): Added.
7753
7754 2000-07-19  Martin Buchholz <martin@xemacs.org>
7755
7756         * XEmacs 21.2.35 is released.
7757
7758 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7759
7760         * select-x.c (x_handle_selection_request):
7761         Text selected in xemacs and pasted into xterm failed to appear.
7762         Spelling fixes and cosmetic changes.
7763
7764 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7765
7766         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7767         XEmacs frame (fix for doubling chars in dialog boxes).
7768
7769 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7770
7771         * select.c (select_convert_in, select_convert_out):
7772         Don't call intern() every time.
7773
7774         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7775         * select.c (vars_of_select): Initialise them.
7776
7777 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7778
7779         * select.c (selection-coercible-types): New.
7780
7781         * select.c (own-selection-internal):
7782         * select.c (get-selection-internal):
7783         MULE bug fix - these should default to COMPOUND_TEXT and not
7784         STRING for MULE. I think.
7785
7786         * select.c (select_convert_out): Use selection-coercible-types
7787         to find types that we can attempt to perform coercions on.
7788
7789 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7790
7791         * mule-wnnfns.c:
7792         * mule-canna.c:
7793         Add coding: cookie to identify encoding.
7794
7795         * mule-canna.c (CANNA_mode_keys): make static.
7796         Use proper prototypes, even for functions of no arguments.
7797         Remove external prototype for Fding().
7798
7799         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7800
7801         * select.c (syms_of_select): Add missing DEFSUBR.
7802
7803 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7804
7805         * select.c (get_selection_internal, own_selection_internal):
7806         Make the type default to STRING, rather than placing a nil type
7807         into Vselection_alist.
7808
7809 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7810
7811         * gpmevent.c (tty_selection_exists_p):
7812         * gpmevent.c (tty_own_selection):
7813         Updated parameter lists.
7814
7815 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7816
7817         * select.h (selection-alist): Removed declaration.
7818
7819         * select.h (get_local_selection):
7820         * select.c (get_local_selection):
7821         Made static.
7822
7823         * select.h (convert_selection): Removed declaration.
7824         * select.c (convert_selection): Removed.
7825         This function belongs in Lisp.
7826
7827         * select.h (select_convert_in): Declare.
7828         * select.h (select_convert_out): Declare.
7829         * select.c (select_convert_in): New.
7830         * select.c (select_convert_out): New.
7831         New conversion functions for other files to call.
7832
7833         * select.h (select_notify_buffer_kill): Declare.
7834         * select.c (select_notify_buffer_kill): New.
7835         New functions that get called from kill-buffer.
7836
7837         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7838         X-specific lisp code.
7839
7840         * select.h: Declare some of the lisp-visible functions for
7841         external use.
7842
7843         * select.c (clean_local_selection_data): Removed. This was
7844         a disgusting function, and previously should have been in
7845         select-x.c in any case. The functionality is now provided
7846         in select-convert-from-integer (select.el).
7847
7848         * select.c (available-selection-types): Fixed stupidity where
7849         INTEGER and ATOM got added twice. Also add STRING when we see an
7850         extent.
7851
7852         * select.c (get-selection-internal): Removed symbol stripping. No
7853         longer causes conversion when data comes from the internal cache.
7854
7855         * select.c (syms_of_select): Added new functions.
7856
7857         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7858         error checking - previously this called abort!
7859
7860         * select-x.c (x_own_selection): Changed comment.
7861
7862         * select-x.c (x_handle_selection_request): Use select_convert_out.
7863         Don't mess with selection-alist; it's an internal variable of select.c.
7864
7865         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7866
7867         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7868         rather than messing with selection-alist.
7869
7870         * select-msw.c (mswindows_get_foreign_selection):
7871         Use TO_INTERNAL_FORMAT rather than hacking.
7872
7873 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7874
7875         * process-unix.c (unix_open_multicast_group):
7876         (unix_open_multicast_group): Remove useless casts.
7877
7878 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7879
7880         * sound.c (Fplay_sound): Fix `unused variable' warning.
7881
7882         * emacs.c (main): Use correct type for _environ on SCO5.
7883
7884 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7885
7886         * console.h (own_selection_method):
7887         * console.h (selection_exists_p_method):
7888         * console.h (available_selection_types_method): New.
7889         * console.h (register_selection_data_type_method): New.
7890         * console.h (selection_data_type_name): New.
7891
7892         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7893         function & alist to track GlobalAlloc()'d handles that need
7894         releasing when the clipboard data gets replaced or emptied.
7895
7896         * event-msw.c (mswindows_wnd_proc): Call it.
7897
7898         * lisp.h, general.c (Qappend): New symbol representing a
7899         `how-to-add' mode.
7900
7901         * select.c (own-selection-internal):
7902         * select.c (selection-exists-p):
7903         * select.c (available-selection-types): New.
7904         * select.c (register-selection-data-type): New.
7905         * select.c (selection-data-type-name): New.  New functions to deal
7906         with device-specific selection data formats.
7907         * select.c (selection-converter-out-alist): Renamed.
7908         * select.c (selection-converter-in-alist): New.
7909         * select.c (selection-appender-alist): New.  Added new alists.
7910         * select.c (syms_of_select, vars_of_select): Added new symbols &
7911         variables.
7912         * select.c (get_local_selection): Split.
7913         * select.c: Removed spurious type checking - selections may now be
7914         of any type, not just strings.
7915         * select.c (own-selection-internal):
7916
7917         * select.h, select.c (convert_selection): New. Created
7918         convert_selection() function based on get_local_selection().
7919         * select.h, select.c (QCF_*): New symbols representing mswindows
7920         clipboard formats.
7921         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7922         symbols representing `how-to-add' modes.
7923
7924         * select-msw.c (x_sym_p): New.
7925         * select-msw.c (symbol_to_ms_cf): New.
7926         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7927         symbols & clipboard formats. Can also handle string names.
7928         * select-msw.c (mswindows_own_selection):
7929         * select-msw.c (mswindows_selection_exists_p):
7930         Added `data-type' parameter. Use it.
7931         * select-msw.c (mswindows_available_selection_types): New.
7932         * select-msw.c (mswindows_register_selection_data_type): New.
7933         * select-msw.c (mswindows_selection_data_type_name): New.
7934         * select-msw.c (mswindows_own_selection):
7935         * select-msw.c (mswindows_get_foreign_selection):
7936         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7937         * select-msw.c (console_create_select_mswindows): Added new methods.
7938         * select-msw.c (mswindows_destroy_selection): New.
7939         * select-msw.c (Vhandle_alist): New list.
7940         * select-msw.c (mswindows_own_selection):
7941
7942         * select-x.c (x_own_selection):
7943         * select-x.c (x_selection_exists_p):
7944         * select-x.c: Added some comments about maybe using new
7945         functionality.
7946         * select-x.c (x_own_selection):
7947
7948         * specifier.c: Remove definition of Qappend (now in general.c)
7949         * specifier.c (syms_of_specifier): Remove Qappend.
7950
7951 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7952
7953         * config.h.in: Add socklen_t.
7954
7955         * s/decosf4-0.h: No special compiler flags needed or desired.
7956         In particular, undefine _BSD for DEC OSF 4.0.
7957
7958 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7959
7960         * redisplay-msw.c (msprinter_frame_output_end): Added.
7961         (console_type_create_redisplay_mswindows): Referred the above.
7962
7963         * frame.c (setup_frame_without_minibuffer): Do not create a
7964         default minibuffer frame on a printer device.
7965
7966         * frame-msw.c (apply_dc_geometry): Added.
7967         (msprinter_start_page):
7968         (msprinter_init_frame_3):
7969         (msprinter_eject_page): Use it.
7970
7971         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7972         and removed residual duplex and orientation properties.
7973
7974 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7975
7976         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7977
7978         * unexalpha.c: Remove system prototypes from C sources!
7979
7980 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7981
7982         * eval.c: Remove references to M-x edit-options in DEFUNs for
7983         `defvar' and `defconst'.
7984
7985 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7986
7987         * config.h.in: Remove SMART_INCLUDE hackery.
7988
7989         PostgreSQL hacking:
7990         * config.h.in: Don't use SMART_INCLUDE.
7991
7992         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7993         * inline.c: Simply #include "postgresql.h"
7994         * postgresql.c:
7995         - Don't use SMART_INCLUDE
7996         - Use simply "const".
7997         - Use standard doc string conventions.
7998         - Use correct type for result of PQstatus.
7999
8000 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8001
8002         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8003
8004         C++ compilation changes.
8005         * config.h.in (EXTERN_C): Define.
8006         * config.h.in (not): This is also a C++ keyword.
8007         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8008         * cm.c: Use EXTERN_C.
8009         * redisplay-tty.c: Use EXTERN_C.
8010         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8011
8012 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8013
8014         * general.c: Remove duplicate definition for Qfunction.
8015
8016 2000-07-08  Ben Wing  <ben@xemacs.org>
8017
8018         * device-msw.c (msprinter_init_device):
8019         * device-msw.c (sync_printer_with_devmode):
8020         * device-msw.c (handle_devmode_changes):
8021         * device-msw.c (print_dialog_worker):
8022         * device-msw.c (Fmsprinter_apply_settings):
8023         * device-msw.c (hash_devmode):
8024         * device-msw.c (Fmsprinter_settings_despecialize):
8025         use Qmswindows_tstr, not Qctext.
8026
8027         * vm-limit.c (check_memory_limits):
8028         avoid infinite loop printing warning messages.
8029
8030 2000-07-05  Craig Lanning  <lanning@scra.org>
8031
8032         * Makefile.in.in: Add support for including the Windows resources
8033         when building with the cygwin and mingw targets.
8034
8035         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8036         not set or not correct.
8037         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8038         (init_initial_directory): Don't try to use $PWD on the
8039         WIN32_NATIVE target.
8040
8041         * s\cygwin32.h:
8042         [[Add -mwindows to eliminate console window.]] not required --ben
8043         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8044         (MAIL_USE_POP): removed; now handled by configure.
8045
8046         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8047         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8048         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8049         (MAIL_USE_POP): removed; now handled by configure.
8050         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8051         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8052         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8053         constant string.
8054         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8055         up from <winsock.h> via systime.h.
8056         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8057         (getpagesize): from Dan Holmsand, added.
8058         Added #endif which was left dangling by Ben's mega patch; added
8059         comment to help prevent this in the future.
8060
8061         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8062
8063 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8064
8065         * console-msw.h (struct mswindows_device): Removed unnecessary
8066         cached device geometry values.
8067         Added update_tick and an accessor macro.
8068         (Lisp_Devmode): Added lrecord declaration.
8069         (struct msprinter_device): Contain devmode as a Lisp object.
8070         Added mswindows_get_selected_frame_hwnd();
8071
8072         * console.h (struct console_methods): Indentation nitpicking.
8073
8074         * device-msw.c (mswindows_init_device): Do not initialize geometry
8075         cache. Initialize update tick.
8076         (mswindows_device_system_metrics): Ask the device for its geometry.
8077         (global_free_2_maybe):
8078         (devmode_to_hglobal):
8079         (handle_printer_changes):
8080         (ensure_not_printing):
8081         (print_dialog_worker):
8082         (Fmsprinter_print_setup_dialog):
8083         (Fmsprinter_print_dialog):
8084         (plist_get_margin):
8085         (plist_set_margin):
8086         (Fmsprinter_page_setup_dialog): Added functions.
8087         (sync_printer_with_devmode):
8088         (handle_devmode_changes):
8089         (Fmsprinter_get_settings):
8090         (Fmsprinter_select_settings):
8091         (Fmsprinter_apply_settings):
8092         (allocate_devmode):
8093         (Fmsprinter_settings_copy):
8094         (Fmsprinter_settings_despecialize):
8095         (print_devmode):
8096         (finalize_devmode):
8097         (equal_devmode):
8098         (hash_devmode): Added functions
8099         (syms_of_device_mswindows): Init devmode lrecord class.
8100
8101         * device.h: Added an exfun for find-device.
8102
8103         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8104         geometry; although, recreate the device compatible DC.
8105
8106         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8107         (msprinter_init_frame_3):
8108         (msprinter_frame_property):
8109         (msprinter_internal_frame_property_p):
8110         (msprinter_frame_properties):
8111         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8112         print job properties (will move to device settings).
8113
8114         * lisp.h: Added symbols.
8115
8116         * general.c (syms_of_general): Declared them.
8117
8118         * hash.c (string_hash): Added.
8119
8120         * lrecord.h (lrecord_type): Added devmode lrecord type.
8121
8122 2000-07-02  Mike Sperber <mike@xemacs.org>
8123
8124         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8125         FreeBSD 4.0.
8126
8127 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8128
8129         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8130         integer.
8131
8132 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8133
8134         * data.c (Fstring_to_number): Don't recognize floating point if
8135         base is not 10.
8136
8137 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8138
8139         * glyphs-widget.c (tab_control_query_geometry):
8140         (widget_query_geometry):
8141         (button_query_geometry):
8142         * glyphs.c (text_query_geometry):
8143         Enforce type correctness.
8144
8145 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8146
8147         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8148         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8149
8150 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8151
8152         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8153         conflicts with gcc's fixincluded version of FOO.h.
8154
8155         * glyphs.h (image_instance_geometry): Remove trailing `,'
8156
8157 2000-06-08  Mike Alexander  <mta@arbortext.com>
8158
8159         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8160         (shove_thread): Don't write the same output twice
8161         (make_ntpipe_output_stream): Increase priority of shove thread
8162         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8163         chance to run
8164         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8165         it.
8166
8167 2000-06-12  Ben Wing  <ben@xemacs.org>
8168
8169         * s\mingw32.h (sigset):
8170         * s\windowsnt.h (sigset):
8171         rename msw_ to mswindows_ for consistency with general convention.
8172
8173 2000-06-12  Ben Wing  <ben@xemacs.org>
8174
8175         * console-msw.c:
8176         * console-msw.c (mswindows_get_console_hwnd):
8177         * console-msw.c (mswindows_ensure_console_allocated):
8178         * console-msw.c (mswindows_hide_console):
8179         * console-msw.c (mswindows_show_console):
8180         * console-msw.c (mswindows_ensure_console_buffered):
8181         * console-msw.c (mswindows_output_console_string):
8182         * console-msw.c (mswindows_windows9x_p):
8183         * console-msw.h:
8184         * device-msw.c (mswindows_get_workspace_coords):
8185         * device-msw.c (mswindows_device_system_metrics):
8186         * dialog-msw.c (mswindows_popup_dialog_box):
8187         * event-msw.c (mswindows_wnd_proc):
8188         * frame-msw.c (mswindows_size_frame_internal):
8189         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8190         * menubar-msw.c (displayable_menu_item):
8191         * menubar-msw.c (mswindows_char_is_accelerator):
8192         * nt.c:
8193         * nt.c (mswindows_sigset):
8194         * nt.c (mswindows_sigrelse):
8195         * nt.c (mswindows_sigpause):
8196         * nt.c (mswindows_raise):
8197         * nt.c (timer_proc):
8198         * ntproc.c:
8199         * ntproc.c (find_child_console):
8200         * ntproc.c (sys_kill):
8201         * print.c:
8202         * print.c (std_handle_out_external):
8203         * process-nt.c (find_child_console):
8204         * process-nt.c (send_signal_the_95_way):
8205         * process-nt.c (ensure_console_window_exists):
8206         * process-nt.c (nt_create_process):
8207         * syssignal.h:
8208         rename msw_ to mswindows_ for consistency with general convention.
8209
8210         * emacs.c:
8211         * dumper.c:
8212         include nt.h, not syswindows.h.
8213
8214         * nt.c (mswindows_fstat):
8215         * nt.c (mswindows_stat):
8216         prefix mswindows_ instead of attempting to directly override the
8217         library functions.  fix declarations.
8218
8219         * nt.h:
8220         include syswindows.h.  move some sysdep.h stuff here.
8221
8222         * ntheap.h:
8223         include syswindows.h, not <windows.h>.
8224
8225         * ntplay.c:
8226         clean up headers.
8227
8228         * sysdep.c:
8229         clean up headers.
8230
8231         * sysdep.c (sys_fstat):
8232         * sysdep.c (sys_stat):
8233         call mswindows versions when appropriate.
8234
8235         * sysdep.h:
8236         move mswin decls to nt.h.
8237
8238         * syswindows.h:
8239         add long comment describing appropriate use of the various windows
8240         headers.
8241
8242 2000-06-11  Ben Wing  <ben@xemacs.org>
8243
8244         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8245
8246 2000-06-10  Ben Wing  <ben@xemacs.org>
8247
8248         * Makefile.in.in (release):
8249         Correction to make sure xemacs.exe always dumped when correct.
8250
8251         * alloca.c:
8252         * balloon_help.c:
8253         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8254
8255         * buffer.c (set_buffer_internal):
8256         [[[[2]]]]: Remove HAVE_FEP code.
8257
8258         * buffer.c (init_initial_directory):
8259         [3].
8260
8261         * bytecode.c:
8262         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8263         individual files.
8264
8265         * callproc.c:
8266         * callproc.c (call_process_cleanup):
8267         * callproc.c (Fold_call_process_internal):
8268         * callproc.c (child_setup):
8269         * callproc.c (getenv_internal):
8270         * callproc.c (init_callproc):
8271         * callproc.c (vars_of_callproc):
8272         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8273         __CYGWIN32__ -> CYGWIN.
8274         DOS_NT -> WIN32_NATIVE.
8275         Remove MSDOS support/references, converting to WIN32_NATIVE
8276           where correct.
8277         __MINGW32__ -> MINGW.
8278         Fix windows.h includes.
8279         Remove bogus HAVE_NTGUI.
8280
8281         * config.h.in:
8282         [2].
8283
8284         * console-msw.c:
8285         mswindows_message_outputted added for use in allowing startup
8286         errors on the console to be seen.
8287
8288         * console-msw.c (msw_ensure_console_allocated):
8289         * console-msw.c (msw_output_console_string):
8290         * console-msw.c (DHEADER):
8291         * console-msw.c (DOPAQUE_DATA):
8292         * console-msw.c (DEVENT):
8293         * console-msw.c (DCONS):
8294         * console-msw.c (DCONSCDR):
8295         * console-msw.c (DSTRING):
8296         * console-msw.c (DVECTOR):
8297         * console-msw.c (DSYMBOL):
8298         * console-msw.c (DSYMNAME):
8299         Fix warnings.
8300
8301         * console-stream.c (stream_init_console):
8302         Fix text/binary problems.
8303
8304         * device-msw.c:
8305         * device-msw.c (mswindows_finish_init_device):
8306         * device-msw.c (mswindows_delete_device):
8307         [1].
8308
8309         * device.c (handle_asynch_device_change):
8310         [3].
8311
8312         * dgif_lib.c:
8313         * dgif_lib.c (DGifOpenFileName):
8314         * dgif_lib.c (DGifOpenFileHandle):
8315         * dgif_lib.c (DGifGetLine):
8316         * dgif_lib.c (DGifGetPixel):
8317         Added config.h/lisp.h, fix up includes.
8318         [1].
8319
8320         * dired-msw.c:
8321         [4].
8322
8323         * dired.c:
8324         * dired.c (file_name_completion):
8325         * dired.c (Ffile_attributes):
8326         * dired.c (syms_of_dired):
8327         [1].
8328
8329         * dumper.c:
8330         * dumper.c (pdump_file_unmap):
8331         * dumper.c (pdump_load):
8332         [1].
8333
8334         * editfns.c:
8335         * editfns.c (Ftemp_directory):
8336         * editfns.c (user_login_name):
8337         * editfns.c (Fuser_real_login_name):
8338         * editfns.c (get_home_directory):
8339         [1].
8340
8341         * elhash.c (finish_marking_weak_hash_tables):
8342         [[[[5]]]]: Fix GCC warnings.
8343
8344         * emacs.c:
8345         * emacs.c (mswindows_handle_hardware_exceptions):
8346         * emacs.c (make_arg_list_1):
8347         * emacs.c (main_1):
8348         * emacs.c (Fkill_emacs):
8349         * emacs.c (Fdump_emacs):
8350         [1].
8351         Fix problems with nested crashes, add long comment.
8352
8353         * event-Xt.c (init_event_Xt_late):
8354         [1].
8355
8356         * event-msw.c:
8357         * event-msw.c (mswindows_dde_callback):
8358         * event-msw.c (mswindows_handle_sticky_modifiers):
8359         * event-msw.c (mswindows_wnd_proc):
8360         [1].
8361         [5].
8362
8363         * events.c (character_to_event):
8364         [1].
8365
8366         * fileio.c:
8367         * fileio.c (Ffile_name_directory):
8368         * fileio.c (Ffile_name_nondirectory):
8369         * fileio.c (directory_file_name):
8370         * fileio.c (Fexpand_file_name):
8371         * fileio.c (Fsubstitute_in_file_name):
8372         * fileio.c (Ffile_name_absolute_p):
8373         * fileio.c (check_executable):
8374         * fileio.c (Ffile_readable_p):
8375         * fileio.c (Ffile_accessible_directory_p):
8376         * fileio.c (Ffile_modes):
8377         * fileio.c (Funix_sync):
8378         * fileio.c (vars_of_fileio):
8379         [1]. [4].
8380
8381         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8382
8383         Expand getdefdir defn.
8384         Fix bogus rename() comment.
8385
8386         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8387         to use standard XEmacs include files, e.g. sysfile.h, rather
8388         than system-specific includes.
8389
8390         * fns.c:
8391         * fns.c (Fsubseq):
8392         [5]. [6].
8393
8394         * frame.c (vars_of_frame):
8395         [1].
8396
8397         * getloadavg.c:
8398         * getloadavg.c (getloadavg):
8399         [1]. [6].
8400         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8401         (We don't use it elsewhere in the code; just add a comment.)
8402
8403         * gif_io.c:
8404         [6].
8405         Add config.h.
8406
8407         * glyphs-msw.c:
8408         * glyphs-msw.c (mswindows_resource_instantiate):
8409         [1].
8410
8411         * glyphs-x.c (x_native_layout_instantiate):
8412         [5].
8413
8414         * gui-msw.c (Fmswindows_shell_execute):
8415         [1].
8416
8417         * insdel.c:
8418         [4].
8419
8420         * lisp.h:
8421         [4]. [5].
8422
8423         * lread.c (locate_file_in_directory_mapper):
8424         [1].
8425
8426         * lstream.c:
8427         [4].
8428
8429         * mem-limits.h:
8430         * mem-limits.h (get_lim_data):
8431         [1].
8432
8433         * menubar-msw.c:
8434         [4].
8435
8436         * ndir.h:
8437         [1].
8438
8439         * nt.c:
8440         * nt.c (getwd):
8441         * nt.c (closedir):
8442         * nt.c (rva_to_section):
8443         * nt.c (mswindows_executable_type):
8444         [1]. [6].
8445         Fix closedir() defn.
8446
8447         * nt.h:
8448         [[[[8]]]]: *_OK defs moved to sysfile.h.
8449
8450         * ntproc.c:
8451         [6]. [7].
8452
8453         * objects-x.c:
8454         [4].
8455
8456         * print.c:
8457         * print.c (std_handle_out_external):
8458         [1]. [4].
8459
8460         * process-nt.c:
8461         * process-nt.c (nt_create_process):
8462         [6].
8463         try to fix process quoting somewhat.
8464
8465         * process-unix.c (unix_create_process):
8466         [1].
8467
8468         * process.c:
8469         * process.c (vars_of_process):
8470         Add Vnull_device.
8471
8472         * process.h:
8473         [1].
8474
8475         * realpath.c:
8476         * realpath.c (xrealpath):
8477         [1].
8478
8479         * redisplay-tty.c (init_tty_for_redisplay):
8480         [3].
8481
8482         * redisplay.c:
8483         [4]. [6].
8484
8485         * scrollbar-msw.c:
8486         [4].
8487
8488         * sheap.c:
8489         * sheap.c (more_static_core):
8490         * sheap.c (report_sheap_usage):
8491         [5]. [6].
8492
8493         * signal.c:
8494         * signal.c (alarm_signal):
8495         [1]. [6].
8496
8497         * sound.c:
8498         [6].
8499
8500         * strftime.c:
8501         * strftime.c (zone_name):
8502         [1]. [5].
8503
8504         * symsinit.h (init_sunpro):
8505         [1].
8506
8507         * syscommctrl.h:
8508         commctrl.h not in Cygwin b20.1.
8509
8510         * sysdep.c:
8511         * sysdep.c (endif):
8512         * sysdep.c (sys_subshell):
8513         * sysdep.c (init_baud_rate):
8514         * sysdep.c (emacs_get_tty):
8515         * sysdep.c (emacs_set_tty):
8516         * sysdep.c (tty_init_sys_modes_on_device):
8517         * sysdep.c (init_system_name):
8518         * sysdep.c (sys_open):
8519         * sysdep.c (interruptible_open):
8520         * sysdep.c (sys_fopen):
8521         * sysdep.c (sys_mkdir):
8522         * sysdep.c (sys_rename):
8523         * sysdep.c (get_process_times_1):
8524         [1]. [6].
8525
8526         * sysdep.h:
8527         [1].
8528
8529         * sysdir.h:
8530         * sysdir.h (DIRENTRY_NONEMPTY):
8531         [1]. [6].
8532
8533         * sysdll.c (dll_init):
8534         * sysdll.h:
8535         [1].
8536
8537         * sysfile.h:
8538         [1]. [6]. [8].
8539         added text/binary defs.
8540
8541         * sysfloat.h:
8542         [1].
8543
8544         * sysproc.h:
8545         * sysproc.h (EDESTADDRREQ):
8546         * sysproc.h (poll_fds_for_input):
8547         [1]. [6].
8548
8549         * syspwd.h:
8550         [6].
8551
8552         * syssignal.h:
8553         [1].
8554
8555         * systime.h:
8556         [1]. [6].
8557
8558         * systty.h:
8559         [1].
8560
8561         * syswindows.h:
8562         [1].
8563         Always define WIN32_LEAN_AND_MEAN.
8564
8565         * unexcw.c (unexec):
8566         [5].
8567
8568         * unexec.c:
8569         * unexec.c (copy_text_and_data):
8570         * unexec.c (adjust_lnnoptrs):
8571         [1].
8572
8573         * unexnt.c:
8574         * unexnt.c (_start):
8575         [1].
8576
8577 2000-06-07  Ben Wing  <ben@xemacs.org>
8578
8579         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8580         was used only as a model.  We've long since extracted any useful
8581         logic or code out of this. (I just did an exhaustive search.)
8582
8583         * s\msdos.h: Removed.
8584
8585         * s\windows95.h: Removed.
8586
8587 2000-06-10  Ben Wing  <ben@xemacs.org>
8588
8589         * s\cygwin32.h:
8590         [1]. [5].
8591         Don't use extern with fun defs.
8592
8593         * s\mingw32.h:
8594         [1]. [7].
8595         Remove nt\inc include.
8596         Remove getdisk, getdefdir. (The former is unused, the latter
8597         expanded in fileio.h.)
8598
8599         * s\windowsnt.h:
8600         * s\windowsnt.h (WIN32_NATIVE):
8601         * s\windowsnt.h (HAVE_STRCASECMP):
8602         [1]. [7].
8603         Add long comment about preprocessor changes.
8604         Remove getdisk, getdefdir. (The former is unused, the latter
8605         expanded in fileio.h.)
8606
8607 2000-06-10  Ben Wing  <ben@xemacs.org>
8608
8609         * m\arm.h:
8610         * m\delta.h:
8611         * m\intel386.h:
8612         * m\sequent.h:
8613         * m\template.h:
8614         * m\windowsnt.h:
8615         [1].
8616         Remove bogus/unused NO_SOCK_SIGIO.
8617
8618 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8619
8620         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8621         not an Emchar.
8622
8623 2000-06-04  Mike Sperber <mike@xemacs.org>
8624
8625         * casetab.c (set_case_table): For `set-standard-case-table',
8626         actually deposit the new case tables where the rest of XEmacs can
8627         see them.
8628
8629 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8630
8631         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8632
8633 2000-06-05  Ben Wing  <ben@xemacs.org>
8634
8635         * callproc.c (child_setup): Don't do close_load_descs() under
8636         MS Windows.  Put in a comment explaining why.
8637
8638 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8639
8640         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8641         Toolkit shell" which breaks `kill-compilation' on Windows NT
8642         native, retaining STDERR handling improvements.
8643
8644 2000-06-01  Andreas Jaeger  <aj@suse.de>
8645
8646         * s/s390.h: Support for S390, based on a patch by Martin
8647         Schwidefsky <schwidefsky@de.ibm.com>.
8648
8649 2000-05-30  Andy Piper  <andy@xemacs.org>
8650
8651         * window.c (allocate_window):
8652         (make_dummy_parent):
8653         (Fset_window_configuration): use new hashtable type.
8654
8655         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8656         (struct image_instantiator_methods):
8657         (struct Lisp_Image_Instance): make instance geometry signed.
8658
8659         * glyphs.c (instantiate_image_instantiator):
8660         (image_instance_query_geometry):
8661         (image_instance_layout):
8662         (image_instance_layout):
8663         (query_string_geometry):
8664         (text_query_geometry):
8665         (image_instantiate):
8666         (image_instantiate):
8667         (cache_subwindow_instance_in_frame_maybe):
8668         (subwindow_query_geometry): make instance geometry signed.
8669
8670         * glyphs-widget.c (widget_query_geometry):
8671         (widget_layout):
8672         (button_query_geometry):
8673         (tree_view_query_geometry):
8674         (tab_control_query_geometry):
8675         (layout_query_geometry):
8676         (layout_layout):
8677         (native_layout_layout): make instance geometry signed.
8678
8679 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8680
8681         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8682         constant.
8683
8684         * general.c (syms_of_general): Add Qfull_assoc symbol.
8685
8686         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8687         correctly.
8688         (decode_weak_list_type): Decode full-assoc type.
8689         (encode_weak_list_type): Encode full-assoc type.
8690         (Fmake_weak_list): Update doc string.
8691
8692 2000-05-30  Andy Piper  <andy@xemacs.org>
8693
8694         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8695
8696         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8697         (decode_hash_table_weakness): ditto.
8698         (Fhash_table_weakness): ditto.
8699         (Fhash_table_type): ditto.
8700         (finish_marking_weak_hash_tables): ditto.
8701         (hash_table_weakness_validate): ditto.
8702         (syms_of_elhash): ditto.
8703
8704 2000-05-28  Martin Buchholz <martin@xemacs.org>
8705
8706         * XEmacs 21.2.34 is released.
8707
8708 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8709
8710         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8711         start cache.
8712         (updating_line_start_cache): Gone.
8713         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8714         generic code to force a minimum of 1 line laid out in the
8715         CMOTION_DISP case.
8716
8717 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8718
8719         * glyphs.c (instantiate_image_instantiator): Check for initialized
8720         height & width no longer special cases IMAGE_NOTHING.
8721         (nothing_instantiate): Set height and width of instance.
8722
8723 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8724
8725         * unexelf.c (unexec): Search for ".data" section.
8726         Initialize new_data2_offset from old_data_index.
8727         Remove redundant check for ElfW.
8728
8729 2000-05-23  Andy Piper  <andy@xemacs.org>
8730
8731         * glyphs.c (get_image_instantiator_governing_domain): allow more
8732         specific domains as the governing domain rather than expecting an
8733         exact match. This fixes problems with layouts.
8734
8735 2000-05-22  Andy Piper  <andy@xemacs.org>
8736
8737         * redisplay-output.c (compare_runes): check for non-images
8738
8739         * glyphs.c (set_glyph_dirty_p): ditto.
8740         (update_glyph_cachel_data): ditto.
8741
8742         * glyphs-widget.c (layout_post_instantiate): ditto.
8743         (layout_post_instantiate): ditto.
8744
8745         * event-msw.c (mswindows_wnd_proc): warning removal.
8746
8747 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8748
8749         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8750
8751         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8752
8753         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8754
8755         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8756         (mswindows_executable_type): mingw32 now has enough headers for
8757         this to work.
8758
8759 2000-05-20  Andy Piper  <andy@xemacs.org>
8760
8761         * console-msw.c (mswindows_output_last_error): ; -> ,
8762
8763 2000-05-12  Andy Piper  <andy@xemacs.org>
8764
8765         * console-msw.c (FROB): compare ints with ints.
8766
8767 2000-05-11  Andy Piper  <andy@xemacs.org>
8768
8769         * glyphs-x.c (x_finalize_image_instance): make minimal build
8770         happy.
8771
8772 2000-05-20  Ben Wing  <ben@xemacs.org>
8773
8774         * event-Xt.c:
8775         * event-Xt.c (vars_of_event_Xt):
8776         move modifier-keys-are-sticky to event-stream.c.
8777
8778         * event-msw.c:
8779         * event-msw.c (mswindows_enqueue_mouse_button_event):
8780         * event-msw.c (key_needs_default_processing_p):
8781         * event-msw.c (XEMSW_LCONTROL):
8782         * event-msw.c (mswindows_handle_sticky_modifiers):
8783         * event-msw.c (FROB):
8784         * event-msw.c (clear_sticky_modifiers):
8785         * event-msw.c (output_modifier_keyboard_state):
8786         * event-msw.c (output_alt_keyboard_state):
8787         * event-msw.c (mswindows_wnd_proc):
8788         * event-msw.c (mswindows_modifier_state):
8789         * event-msw.c (emacs_mswindows_handle_magic_event):
8790         implement sticky modifiers.
8791
8792         * event-stream.c:
8793         * event-stream.c (vars_of_event_stream):
8794         move modifier-keys-are-sticky here.
8795
8796         * lisp.h:
8797         add CHECK_FUNCTION.
8798
8799         * rangetab.c:
8800         implement map-range-table.
8801
8802
8803 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8804
8805         * redisplay-tty.c (reset_tty_modes):
8806         (tty_redisplay_shutdown): Adjust argument type to
8807         tty_frame_output_end.
8808
8809 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8810
8811         * eval.c (Fbacktrace): Don't output a line with only right
8812         parenthesis.
8813
8814 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8815
8816         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8817         (Fpq_reset_poll): Ditto.
8818
8819 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8820
8821         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8822
8823 2000-05-16  Ben Wing  <ben@xemacs.org>
8824
8825         * buffer.c:
8826         * buffer.c (dfc_convert_to/from_internal_format):
8827         * buffer.c (reinit_vars_of_buffer):
8828         Fix conversion functions to allow reentrancy.
8829
8830         * console-msw.c:
8831         * console-msw.c (mswindows_output_last_error):
8832         New fun, generally useful -- output a human-readable
8833         version of GetLastError() on the console.
8834
8835         * console-msw.h:
8836         * console-msw.h (struct mswindows_frame):
8837         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8838
8839         * console-stream.c (stream_output_begin):
8840         * console-stream.c (stream_output_end):
8841         * console-stream.c (stream_output_vertical_divider):
8842         * console-stream.c (stream_clear_region):
8843         * console-stream.c (stream_flash):
8844         * console-stream.c (console_type_create_stream):
8845         Delete blank stream methods, not needed.
8846
8847         * console.h (struct console_methods):
8848         Split begin/end methods into window and frame.
8849
8850         * event-msw.c:
8851         * event-msw.c (mswindows_handle_paint):
8852         * event-msw.c (output_alt_keyboard_state):
8853         * event-msw.c (mswindows_wnd_proc):
8854         * event-msw.c (vars_of_event_mswindows):
8855         Comment about problems with ignored-expose.
8856         Define mswindows-debug-events; not really implemented.
8857
8858         * frame-msw.c (mswindows_init_frame_1):
8859         random cleanups.
8860
8861         * glyphs-msw.c:
8862         * glyphs-msw.c (begin_defer_window_pos):
8863         * glyphs-msw.c (mswindows_unmap_subwindow):
8864         * glyphs-msw.c (mswindows_map_subwindow):
8865         * glyphs-msw.c (mswindows_resize_subwindow):
8866         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8867
8868         * glyphs.c (make_image_instance_1):
8869         Fix crash.
8870
8871         * gutter.c (Fredisplay_gutter_area):
8872         Use new begin/end methods.
8873
8874         * lisp.h (Dynarr_new2):
8875         New creation fun.
8876
8877         * redisplay-msw.c:
8878         * redisplay-msw.c (mswindows_frame_output_begin):
8879         * redisplay-msw.c (mswindows_frame_output_end):
8880         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8881         New begin/end methods -- handle DeferWindowPos.
8882
8883         * redisplay-output.c (redisplay_move_cursor):
8884         * redisplay-output.c (redraw_cursor_in_window):
8885         * redisplay-output.c (redisplay_update_line):
8886         * redisplay-output.c (redisplay_output_window):
8887         New begin/end methods.
8888
8889         * redisplay-tty.c:
8890         * redisplay-tty.c (tty_frame_output_begin):
8891         * redisplay-tty.c (tty_frame_output_end):
8892         * redisplay-tty.c (console_type_create_redisplay_tty):
8893         New begin/end methods.
8894
8895         * redisplay-x.c:
8896         * redisplay-x.c (x_window_output_begin):
8897         * redisplay-x.c (x_window_output_end):
8898         * redisplay-x.c (console_type_create_redisplay_x):
8899         New begin/end methods.
8900
8901         * redisplay.c (redisplay_frame):
8902         * redisplay.c (Fredisplay_echo_area):
8903         New begin/end methods.
8904         use MAYBE_DEVMETH for clear_frame; it may not exist.
8905
8906         * window.h (WINDOW_XFRAME):
8907         WINDOW_XFOO macros -- get locale and decode struct pointer.
8908
8909
8910 2000-05-12  Ben Wing  <ben@xemacs.org>
8911
8912         * emacs.c:
8913         * emacs.c (ensure_no_quitting_from_now_on):
8914         * emacs.c (fatal_error_signal):
8915         * emacs.c (mswindows_handle_hardware_exceptions):
8916         * emacs.c (main):
8917         * emacs.c (Fkill_emacs):
8918         * emacs.c (shut_down_emacs):
8919         * emacs.c (assert_failed):
8920         various improvements in fatal error handling.
8921
8922         * eval.c:
8923         move preparing_for_armageddon to emacs.c.
8924
8925         * lisp.h:
8926         declare fatal_error_in_progress.
8927
8928         * print.c:
8929         * print.c (std_handle_out_external):
8930         * print.c (std_handle_out_va):
8931         * print.c (stderr_out):
8932         * print.c (stdout_out):
8933         use console under mswin when no standard output.
8934         don't do code conversion during fatal error.
8935
8936         * scrollbar.c (Fscrollbar_page_up):
8937         * scrollbar.c (Fscrollbar_page_down):
8938         fix missing else.  reindent.
8939
8940 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8941
8942         Emergency fix.
8943
8944         * glyphs.h (GLYPH_CACHEL_DESCENT):
8945         (GLYPH_CACHEL_DESCENT):
8946         (GLYPH_CACHEL_DESCENT):
8947         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8948         used in case these are inline functions.
8949         Use more absurd values to error check.
8950
8951         include window.h for error check functions.
8952
8953 2000-05-11  Ben Wing  <ben@xemacs.org>
8954
8955         * cmdloop.c (Freally_early_error_handler):
8956         Display message box under windows; otherwise, message will disappear
8957         before it can be viewed.
8958
8959         * console-msw.c:
8960         * console-msw.c (Fmswindows_message_box):
8961         * console-msw.c (FROB):
8962         * console-msw.c (syms_of_console_mswindows):
8963         Define new fun `mswindows-message-box'.
8964         #### I will merge this into `popup-dialog-box'; just give me
8965         a bit of time.
8966
8967         * general.c:
8968         * general.c (syms_of_general):
8969         Some new symbols used in `mswindows-message-box'.
8970
8971         * glyphs.c:
8972         * glyphs.c (Fset_image_instance_property):
8973         put warning in this fun.
8974
8975         * glyphs.h:
8976         * glyphs.h (GLYPH_CACHEL_WIDTH):
8977         * glyphs.h (GLYPH_CACHEL_ASCENT):
8978         * glyphs.h (GLYPH_CACHEL):
8979         * glyphs.h (GLYPH_CACHEL_GLYPH):
8980         define error-checking versions to try to catch a bug i've seen --
8981         redisplay gets in an infinite loop because the glyph width of the
8982         continuation glyph is 65535.
8983
8984         * lisp.h:
8985         Extern message-box stuff.
8986
8987         * window.c (allocate_window):
8988         * window.c (make_dummy_parent):
8989         * window.c (Fset_window_configuration):
8990         Use EQUAL not EQ for subwindow caches to make them work a bit
8991         better. (Something is still very broken.)
8992
8993
8994 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8995
8996         * glyphs.c (image_instantiate): Suppress gcc warnings.
8997         (Fmake_image_instance): Fix doc string.
8998         * specifier.c (Fmake_specifier): Ditto.
8999
9000 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9001
9002         * paths.h.in (PATH_LOCK): Removed.
9003         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9004         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9005
9006 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9007
9008         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9009         Document (featurep '(and xemacs 21.02)).
9010
9011 2000-05-09  Ben Wing  <ben@xemacs.org>
9012
9013         * buffer.c (complex_vars_of_buffer):
9014         update modeline-format doc.
9015
9016         * device.h:
9017         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9018
9019         * emacs.c:
9020         timeline of all released versions of Emacs, for use in creating
9021         authorship comments and in synching up.
9022
9023         * glyphs-widget.c (image_instantiator_buttons):
9024         * glyphs-widget.c (image_instantiator_edit_fields):
9025         * glyphs-widget.c (image_instantiator_combo_box):
9026         * glyphs-widget.c (image_instantiator_scrollbar):
9027         * glyphs-widget.c (image_instantiator_progress_guage):
9028         * glyphs-widget.c (image_instantiator_tree_view):
9029         * glyphs-widget.c (image_instantiator_tab_control):
9030         * glyphs-widget.c (image_instantiator_labels):
9031         * glyphs-widget.c (image_instantiator_layout):
9032         * glyphs-widget.c (image_instantiator_native_layout):
9033         rename decode_domain method to governing_domain.
9034
9035         * glyphs.c:
9036         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9037         * glyphs.c (add_entry_to_device_ii_format_list):
9038         make sure we don't put an entry more than once into the list.
9039         * glyphs.c (check_instance_cache_mapper):
9040         *************************************************************
9041         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9042         HAVE BEEN GETTING.
9043         *************************************************************
9044         * glyphs.c (get_image_instantiator_governing_domain):
9045         clean up, expand on new concept of governing domain.
9046         * glyphs.c (instantiate_image_instantiator):
9047         * glyphs.c (allocate_image_instance):
9048         use governing_domain instead of cache_domain in naming.
9049         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9050         * glyphs.c (make_image_instance_1):
9051         * glyphs.c (Fmake_image_instance):
9052         allow for any domain (not just device), and process the
9053         governing domain correctly.  very big doc fix.
9054         * glyphs.c (Fimage_instance_domain):
9055         new primitive, to retrieve the governing domain of an image instance.
9056         * glyphs.c (image_instantiate):
9057         use new governing_domain stuff.  this fixes a crash you could get
9058         by instantiating certain widget glyphs in frame locales. (should
9059         signal an error instead of crashing.)
9060         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9061         * glyphs.c (Fglyphp): clean up doc.
9062         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9063         * glyphs.c (syms_of_glyphs):
9064         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9065         * glyphs.c (image_instantiator_format_create): add some comments about
9066         bogus code.
9067         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9068         for current-display-table. (Apparently Hrjove implemented in 1998 a
9069         design I wrote up in 1996, but didn't update the doc string.)
9070
9071         * glyphs.h: clean up a doc string.
9072         * glyphs.h (governing_domain):
9073         * glyphs.h (struct image_instantiator_methods):
9074         changes for governing_domain stuff.
9075
9076         * gutter.c:
9077         * gutter.c (Fgutter_specifier_p):
9078         * gutter.c (Fgutter_size_specifier_p):
9079         * gutter.c (Fgutter_visible_specifier_p):
9080         * objects.c:
9081         * objects.c (Fcolor_specifier_p):
9082         * objects.c (Ffont_specifier_p):
9083         * objects.c (Fface_boolean_specifier_p):
9084         doc strings moved to make-*-specifier.
9085
9086         * redisplay.c (add_disp_table_entry_runes_1):
9087         * redisplay.c (generate_fstring_runes):
9088         * redisplay.c (screen):
9089         add random comments and doc strings.
9090
9091         * specifier.c:
9092         * specifier.c (Fmake_specifier):
9093         major overhaul of this doc string.
9094
9095         * specifier.c (Fvalid_specifier_domain_p):
9096         comment about the bogosity of image instances being domains.
9097         * specifier.c (decode_domain):
9098         now non-static, used in glyphs.c.
9099         * specifier.c (specifier_instance):
9100         comment about the bogosity of image instances being domains.
9101         * specifier.c (Fgeneric_specifier_p):
9102         move doc string to make-generic-specifier.
9103         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9104         rebackslashify.
9105
9106         * specifier.h:
9107         * specifier.h (DOMAIN_FRAME):
9108         * specifier.h (DOMAIN_LIVE_P):
9109         * specifier.h (DOMAIN_XDEVICE):
9110         rebackslashify.
9111         add comments about problems with these macros.
9112         prototype for decode_domain.
9113
9114         * toolbar.c:
9115         * toolbar.c (Ftoolbar_specifier_p):
9116         move doc string to `make-toolbar-specifier'.
9117
9118         * window.c (window_unmap_subwindows_cache_mapper):
9119         *************************************************************
9120         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9121         HAVE BEEN GETTING.
9122         *************************************************************
9123
9124 2000-05-09  Andy Piper  <andy@xemacs.org>
9125
9126         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9127
9128         * window.c (Fset_window_configuration): reset the frame subwindow
9129         cache and re-initialize the window subwindow caches.
9130
9131         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9132
9133 2000-05-09  Ben Wing  <ben@xemacs.org>
9134
9135         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9136         DWORD.
9137
9138 2000-04-26  Mike Woolley  <mike@bulsara.com>
9139
9140         * ntheap.c: Changed recreate_heap to limit the amount reserved
9141         for the heap to that which is actually available. Also now
9142         displays a message box (with some dignostics) in the event that
9143         it still can't start.
9144
9145 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9146
9147         * callproc.c (Fold_call_process_internal): GCPRO path
9148
9149 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9150
9151         Patch by Bill Perry.
9152
9153         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9154         back data instead of #ifdef.
9155         (Fscrollbar_page_down): ditto.
9156
9157 2000-05-07  Ben Wing  <ben@xemacs.org>
9158
9159         * buffer.h:
9160         Kludge for defining Qmswindows_tstr.
9161
9162         * nt.c:
9163         * nt.c (open_input_file):
9164         * nt.c (open_output_file):
9165         * nt.c (rva_to_section):
9166         * nt.c (mswindows_executable_type):
9167         Move all memory-mapped-file routines here (some were in unexnt.c,
9168         which is bad because they are used by process-nt.c, and unexnt
9169         won't be around when portable dumping).  Synched the above routines
9170         with FSF 20.6.
9171
9172         * nt.h:
9173         Removed ifdef'd out bogus code.
9174         Fixed some prototypes.
9175
9176         * nt.h (file_data):
9177         * nt.h (OFFSET_TO_RVA):
9178         * nt.h (RVA_TO_OFFSET):
9179         * nt.h (RVA_TO_PTR):
9180         Moved the memory-mapped-file structures, macros and prototypes
9181         here, to parallel nt.c.  ntheap.h should really be removed
9182         entirely, and it's a non-portable-dumper specific file.
9183
9184         * ntheap.h (round_to_next):
9185         Moved the memory-mapped-file structures, macros and prototypes
9186         to nt.h.
9187
9188         * ntproc.c (compare_env):
9189         Moved rva_to_section and mswindows_executable_type to nt.c.
9190         Moved compare_env to process-nt.c.
9191         ntproc.c will die, one day.
9192
9193         * ntproc.c (sys_spawnve):
9194         Account for win32_ -> mswindows_.
9195
9196         * process-nt.c:
9197         * process-nt.c (struct nt_process_data):
9198         * process-nt.c (ensure_console_window_exists):
9199         * process-nt.c (compare_env):
9200         * process-nt.c (nt_create_process):
9201         * process-nt.c (nt_kill_process_by_pid):
9202         * process-nt.c (syms_of_process_nt):
9203         * process-nt.c (vars_of_process_nt):
9204         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9205         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9206         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9207         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9208         Move compare_env here from ntproc.c.
9209
9210         * process.c (Fprocess_send_region):
9211         Takes an optional fourth argument, BUFFER, which should fix some
9212         problems with call-process.
9213
9214         * syscommctrl.h:
9215         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9216
9217         * syswindows.h:
9218         Move ICC_BAR_CLASSES to syscommctrl.h.
9219         Add preliminary macros for MSWindows/Mule.  More to come.
9220
9221         * unexnt.c:
9222         * unexnt.c (unexec):
9223         open_output_file moved to nt.c.
9224
9225
9226 2000-05-05  Andy Piper  <andy@xemacs.org>
9227
9228         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9229         instance from the frame cache also since GC may catch up too late
9230         to make frame deletion sane.
9231
9232 2000-05-04  Andy Piper  <andy@xemacs.org>
9233
9234         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9235         (x_finalize_image_instance): ungcpro on deletion.
9236
9237         * glyphs.c (image_instantiator_format_create): give pointers a
9238         query geometry method so that the geometry is at least set.
9239
9240         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9241         initialize layouts if using widgets.
9242
9243 2000-05-03  Andy Piper  <andy@xemacs.org>
9244
9245         * nt.c: remove bogus reference to sysmmsystem.h
9246
9247         * gui-x.c (popup_selection_callback): fix no selection abort.
9248
9249 2000-05-02  Andy Piper  <andy@xemacs.org>
9250
9251         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9252         (mswindows_widget_instantiate): ditto.
9253
9254         * glyphs-widget.c (initialize_widget_image_instance): initialize
9255         children correctly.
9256         (widget_instantiate): cope with children and items in the same
9257         instance.
9258
9259         * glyphs.c (mark_image_instance): cope with children as a first
9260         class member.
9261         (image_instance_equal): ditto.
9262         (image_instance_hash): ditto.
9263         (image_instance_changed): ditto.
9264
9265 2000-04-30  Andy Piper  <andy@xemacs.org>
9266
9267         * glyphs.c (subwindow_query_geometry): new function. Return some
9268         defaults.
9269         (subwindow_instantiate): don't assign dimensions if none have been
9270         given.
9271         (image_instantiator_format_create): add subwindow_query_geometry.
9272         (print_image_instance): cope with layouts as widgets.
9273
9274 2000-04-29  Andy Piper  <andy@xemacs.org>
9275
9276         * frame.c (delete_frame_internal): call
9277         free_frame_subwindow_instance_cache so that all subwindows are
9278         finalized before their parent.
9279         (mark_frame): remove subwindow_cachels.
9280         (Fmake_frame): remove subwindow_cachel manipulation.
9281         (allocate_frame_core): subwindow_instance_cache is a weak list.
9282         (delete_frame_internal): set subwindow_instance_cache to nil.
9283
9284         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9285         finalization safe.
9286         (mswindows_finalize_image_instance): use the device
9287         not the domain as the domain may have died already.
9288
9289         * glyphs-x.c (x_finalize_image_instance): ditto.
9290         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9291         HEIGHT.
9292
9293         * redisplay-output.c (redisplay_unmap_subwindows): update for
9294         subwindow instance cache as a weak list.
9295         (redisplay_unmap_subwindows_maybe): ditto.
9296         (redisplay_unmap_subwindows_except_us): ditto.
9297
9298         * glyphs.c (unmap_subwindow): error checking will check the domain
9299         so don't deal with it here. Don't use cachels anymore.
9300         (map_subwindow): ditto.
9301         (update_subwindow_cachel_data): remove old accessor names.
9302         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9303         (Fresize_subwindow): don't update cachel.
9304         (mark_subwindow_cachels):
9305         (update_subwindow_cachel_data):
9306         (add_subwindow_cachel):
9307         (get_subwindow_cachel_index):
9308         (update_subwindow_cachel):
9309         (reset_subwindow_cachels):
9310         (mark_subwindow_cachels_as_not_updated): deleted.
9311         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9312         subwindow instance to the frame cache.
9313         (find_matching_subwindow): update for subwindow instance cache as
9314         a weak list.
9315         (update_widget_instances): ditto.
9316         (image_instance_type_to_mask):inlined.
9317         (free_frame_subwindow_instance_cache): new function. finalize all
9318         subwindows that are instantiated.
9319
9320         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9321         of cachel information.
9322         (IMAGE_INSTANCE_DISPLAY_X):
9323         (IMAGE_INSTANCE_DISPLAY_Y):
9324         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9325         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9326         (XIMAGE_INSTANCE_DISPLAY_X):
9327         (XIMAGE_INSTANCE_DISPLAY_Y):
9328         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9329         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9330         remove subwindow_cachel structure and function references.
9331         (image_instance_type_to_mask): inline from glyphs.c
9332
9333         * redisplay.c (redisplay_frame): remove subwindow_cachel
9334         references.
9335
9336         * frame.h (struct frame): remove subwindow_cachels.
9337         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9338
9339         * frameslots.h: add subwindow_instance_cache.
9340
9341         * window.c (replace_window): check subwindow cache of replacement.
9342         (window_unmap_subwindows_cache_mapper):
9343         (window_unmap_subwindows): new functions. Unmap all subwindows
9344         cached on this window.
9345         (mark_window_as_deleted): unmap all subwindows.
9346
9347 2000-04-27  Andy Piper  <andy@xemacs.org>
9348
9349         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9350
9351         * glyphs-widget.c (widget_layout): return something.
9352         (layout_layout): return something. Fail if not initialized.
9353         (layout_query_geometry): ditto.
9354         (image_instantiator_native_layout): new function. Initialized the
9355         native layout type.
9356         (widget_instantiate): don't do layout stuff here.
9357
9358         * glyphs.c (instantiate_image_instantiator): reorded calling or
9359         instantiate and post_instantiate with layout in between.
9360         (image_instance_layout): be more selective about deciding whether
9361         the layout has been done or not.
9362
9363         * glyphs.h (struct image_instantiator_methods): return a value
9364         from layout_method.
9365
9366 2000-04-26  Andy Piper  <andy@xemacs.org>
9367
9368         * glyphs.c (allocate_image_instance): make initial width and
9369         height unspecified. Set initialized to 0.
9370
9371         * syscommctrl.h new file. Encapsulates commctrl.h.
9372
9373         * syswindows.h new file. Encapsulates windows.h.
9374
9375         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9376         * nt.c: ditto.
9377         * console-msw.h: ditto.
9378
9379         * redisplay-tty.c (tty_output_display_block): remove layout references.
9380
9381         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9382         window handle rather than just the frame.
9383
9384         * glyphs.c (mark_image_instance): remove layout references.
9385         (print_image_instance): ditto.
9386         (image_instance_equal): ditto.
9387         (image_instance_hash): ditto.
9388         (decode_image_instance_type): ditto.
9389         (encode_image_instance_type): ditto.
9390         (image_instantiate): ditto.
9391         (allocate_glyph): ditto.
9392         (Fimage_instance_height): ditto.
9393         (Fimage_instance_width): ditto.
9394         (update_subwindow): ditto.
9395
9396         * redisplay-x.c (x_output_display_block): recode for layouts as
9397         widgets.
9398
9399         * redisplay-output.c (redisplay_output_layout): recode for layouts
9400         as widgets.
9401         (compare_runes): remove layout references.
9402
9403         * redisplay-msw.c (mswindows_output_display_block): recode for
9404         layouts as widgets.
9405
9406         * glyphs-widget.c (image_instantiator_layout): remove
9407         layout_possible_dest_types.
9408         (layout_possible_dest_types): deleted.
9409
9410         * glyphs.h (image_instance_type): remove layout references.
9411         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9412         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9413         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9414
9415 2000-04-25  Andy Piper  <andy@xemacs.org>
9416
9417         * glyphs-widget.c (image_instantiator_buttons):
9418         (image_instantiator_edit_fields):
9419         (image_instantiator_combo_box):
9420         (image_instantiator_scrollbar):
9421         (image_instantiator_progress_guage):
9422         (image_instantiator_tree_view):
9423         (image_instantiator_tab_control):
9424         (image_instantiator_labels):
9425         (image_instantiator_layout): call default post_instantiate method.
9426         (widget_post_instantiate): new function. Simply lays out the
9427         widgets.
9428
9429         * glyphs.h (struct image_instantiator_methods): add
9430         post_instantiate method.
9431
9432         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9433         method calls.
9434
9435 2000-04-23  Andy Piper  <andy@xemacs.org>
9436
9437         * glyphs.h (struct image_instantiator_methods): add
9438         decode_domain_method.
9439         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9440         derived from the domain.
9441         (IMAGE_INSTANCE_FRAME): new accessor.
9442         (XIMAGE_INSTANCE_FRAME): ditto.
9443
9444         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9445         instead of _SUBWINDOW_FRAME.
9446         (finalize_image_instance): ditto.
9447         (Fimage_instance_foreground): ditto.
9448         (Fimage_instance_background): ditto.
9449         (image_instantiate): ditto.
9450         (update_subwindow_cachel): ditto.
9451         (update_subwindow): ditto.
9452         (unmap_subwindow): ditto.
9453         (map_subwindow): ditto
9454         (subwindow_instantiate): ditto.
9455         * glyphs-msw.c (mswindows_update_widget): ditto.
9456         (mswindows_progress_gauge_instantiate): ditto.
9457         (mswindows_tab_control_update): ditto.
9458         * glyphs-x.c (x_update_widget): ditto.
9459         (x_widget_instantiate): ditto.
9460         (x_tab_control_instantiate): ditto.
9461         (x_tab_control_update): ditto.
9462         * event-msw.c (mswindows_wnd_proc): ditto
9463
9464         * glyphs-widget.c (image_instantiator_layout): use
9465         subwindow_decode_domain.
9466         (image_instantiator_buttons): ditto.
9467         (image_instantiator_edit_fields): ditto.
9468         (image_instantiator_combo_box): ditto.
9469         (image_instantiator_scrollbar): ditto.
9470         (image_instantiator_progress_guage): ditto.
9471         (image_instantiator_tree_view): ditto.
9472         (image_instantiator_tab_control): ditto.
9473         (image_instantiator_labels): ditto.
9474         (image_instantiator_layout): ditto.
9475
9476         * glyphs.c: add instance error checking to many functions.
9477         (instantiate_image_instantiator): decode device from cache_domain.
9478         (image_instantiate): partially rewrite by using
9479         decode_image_instantiator_domain to determine what domain the
9480         instance needs to be cached in.
9481         (decode_image_instantiator_domain): new function. Determine what
9482         domain the image needs to be cached in.
9483         (check_window_subwindow_cache): new error checking function.
9484         (check_instance_cache_mapper): ditto.
9485         (check_image_instance_structure): ditto.
9486         (subwindow_decode_domain): new function. Encodes a window as a
9487         subwindow's cache domain.
9488         (image_instantiator_format_create): use it for text and
9489         subwindows.
9490
9491 2000-04-21  Andy Piper  <andy@xemacs.org>
9492
9493         * glyphs.c (image_instance_device): new function.
9494         (image_instance_frame): new function.
9495         (image_instance_window): new function.
9496         (image_instance_live_p): new function.
9497
9498         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9499         cache to nil.
9500
9501         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9502         (IMAGE_INSTANCE_DOMAIN): new accessor.
9503         (XIMAGE_INSTANCE_DOMAIN): ditto.
9504
9505         * glyphs-x.c (x_finalize_image_instance): device->domain.
9506
9507         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9508         (mswindows_finalize_image_instance): ditto.
9509
9510         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9511         (gif_instantiate): ditto.
9512         (png_instantiate): ditto.
9513         (tiff_instantiate): ditto.
9514
9515         * glyphs.c (instantiate_image_instantiator): use domain rather
9516         than device.
9517         (mark_image_instance): device -> domain.
9518         (print_image_instance): ditto.
9519         (finalize_image_instance): ditto.
9520         (image_instance_equal): ditto.
9521         (allocate_image_instance): ditto.
9522         (Fcolorize_image_instance): ditto.
9523         (query_string_geometry): ditto.
9524         (image_instantiate): ditto
9525         (query_string_font): ditto.
9526         (image_instantiate): ditto.
9527         (update_subwindow): ditto.
9528         (unmap_subwindow): ditto.
9529         (map_subwindow): ditto.
9530         (subwindow_instantiate): ditto.
9531
9532         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9533         (DOMAIN_FRAME): ditto.
9534         (DOMAIN_WINDOW): ditto.
9535         (DOMAIN_LIVE_P): ditto.
9536         (XDOMAIN_DEVICE): ditto.
9537         (XDOMAIN_FRAME): ditto.
9538         (XDOMAIN_WINDOW): ditto.
9539
9540         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9541         a valid specifier domain.
9542
9543 2000-04-19  Andy Piper  <andy@xemacs.org>
9544
9545         * glyphs-widget.c (syms_of_glyphs_widget): remove
9546         widget-callback-current-channel.
9547         (vars_of_glyphs_widget): ditto.
9548         * glyphs.h: ditto
9549
9550         * gui.c (get_gui_callback): revert to previous behaviour.
9551
9552 2000-04-18  Andy Piper  <andy@xemacs.org>
9553
9554         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9555         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9556         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9557
9558         * glyphs.c (image_instance_equal): add margin_width.
9559         (image_instance_hash): ditto.
9560
9561         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9562         (layout_query_geometry): ditto.
9563         (layout_layout): ditto.
9564         (syms_of_glyphs_widget): add margin-width.
9565         (image_instantiator_layout): allow margin-width.
9566
9567         * glyphs.c (update_widget_instances): make a normal function.
9568         (syms_of_glyphs): remove Qupdate_widget_instances.
9569         * glyphs.h: ditto.
9570
9571         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9572         so that we don't corrupt ideas about the last event or
9573         command. Remove widget-callback-current-channel fiddling.
9574         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9575
9576 2000-05-01  Martin Buchholz <martin@xemacs.org>
9577
9578         * XEmacs 21.2.33 is released.
9579
9580 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9581
9582         * make-src-depend: Allow dots in header file name.
9583
9584 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9585
9586         * mule-charset.h (struct charset_lookup): Add
9587         next_allocated_1_byte_leading_byte and
9588         next_allocated_2_byte_leading_byte.
9589         * mule-charset.c: Move above two variables so that those values
9590         will be dumped.
9591
9592 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9593
9594         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9595         when string length is zero.
9596         (find_charsets_in_emchar_string): Ditto.
9597
9598 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9599
9600         * lisp.h: extern Qdialog and Qmenubar.
9601
9602         * gui-x.c: added events.h.
9603                 also fixed typo which made the file uncompilable.
9604
9605         * general.c: Added Qmenubar and Qdialog
9606
9607 2000-04-28  Ben Wing  <ben@xemacs.org>
9608
9609         * frame-msw.c (mswindows_init_frame_1):
9610         * frame-msw.c (mswindows_mark_frame):
9611         * event-msw.c (mswindows_enqueue_dispatch_event):
9612         * console-msw.h:
9613         * console-msw.h (struct mswindows_frame):
9614         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9615         there are now three hash tables for callbacks.
9616         mswindows_enqueue_dispatch_event is no longer static.
9617
9618         * dialog-x.c (maybe_run_dbox_text_callback):
9619         * dialog-x.c (dbox_descriptor_to_widget_value):
9620         switch to new cons3 form for callbacks.
9621
9622         * glyphs-msw.c (mswindows_register_gui_item):
9623         * glyphs-msw.c (mswindows_widget_instantiate):
9624         * glyphs-msw.c (add_tree_item):
9625         * glyphs-msw.c (add_tab_item):
9626         new image instance parameter, so it can be passed to callback-ex.
9627         respect :callback-ex as well as :callback.
9628
9629         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9630         add :callback-ex.
9631
9632         * glyphs.c (print_image_instance):
9633         prettify, e.g. now prints widget type.
9634
9635         * gui-x.h:
9636         certain funs have new image instance parameter.
9637
9638         * gui.c:
9639         * gui.c (get_gui_callback):
9640         * gui.c (gui_item_add_keyval_pair):
9641         * gui.c (gui_item_init):
9642         * gui.c (gui_add_item_keywords_to_plist):
9643         * gui.c (mark_gui_item):
9644         * gui.c (gui_item_hash):
9645         * gui.c (gui_item_equal):
9646         * gui.c (copy_gui_item):
9647         * gui.c (syms_of_gui):
9648         recognize callback-ex in a number of places.
9649         also, fix the annoying "can't get out of yes-no dialog" bug.
9650
9651         * gui.h:
9652         * gui.h (struct Lisp_Gui_Item):
9653         recognize callback-ex in a number of places.
9654
9655         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9656         new parameter in button_item_to_widget_value.
9657
9658         * glyphs-x.c (x_update_widget):
9659         * glyphs-x.c (x_button_instantiate):
9660         * glyphs-x.c (x_button_update):
9661         * glyphs-x.c (x_progress_gauge_instantiate):
9662         * glyphs-x.c (x_edit_field_instantiate):
9663         * glyphs-x.c (x_combo_box_instantiate):
9664         * glyphs-x.c (x_tab_control_instantiate):
9665         * glyphs-x.c (x_label_instantiate):
9666         new image instance parameter in various places.
9667
9668         * event-Xt.c:
9669         * event-Xt.c (enqueue_Xt_dispatch_event):
9670         this fun gets exported.
9671
9672         * gui-msw.c:
9673         * gui-msw.c (mswindows_handle_gui_wm_command):
9674         handle both :callback and :callback-ex, and generate our own
9675         event because it's one of the callback-ex arguments.
9676
9677         * gui-x.c:
9678         * gui-x.c (popup_selection_callback):
9679         handle both :callback and :callback-ex, and generate our own
9680         event because it's one of the callback-ex arguments.
9681         * gui-x.c (button_item_to_widget_value):
9682         * gui-x.c (gui_items_to_widget_values_1):
9683         * gui-x.c (gui_item_children_to_widget_values):
9684         * gui-x.c (gui_items_to_widget_values):
9685         new image instance parameter in various places.
9686
9687         * fns.c (Freplace_list):
9688         fix small typo in doc string.
9689
9690         * lisp.h:
9691         declare enqueue_Xt_dispatch_event.
9692
9693 2000-04-28  Ben Wing  <ben@xemacs.org>
9694
9695         * buffer.c:
9696         * buffer.c (Frecord_buffer):
9697         * buffer.c (syms_of_buffer):
9698         delete record-buffer-hook.
9699
9700         * fns.c:
9701         * fns.c (Freplace_list):
9702         * fns.c (syms_of_fns):
9703         new primitive replace-list.
9704
9705         * frameslots.h:
9706         slot for old buffer-alist.
9707
9708         * lisp.h:
9709         exfun replace-list.
9710
9711         * redisplay.c:
9712         * redisplay.c (redisplay_frame):
9713         * redisplay.c (syms_of_redisplay):
9714         * redisplay.c (vars_of_redisplay):
9715         new hook buffer-list-changed-hook.
9716         call it.
9717
9718 2000-04-27  Ben Wing  <ben@xemacs.org>
9719
9720         * extents.h: extern in_modeline_generation.
9721
9722         * redisplay.c (generate_formatted_string_db): set
9723         in_modeline_generation.
9724
9725         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9726         flags if in modeline generation.  otherwise frame-modified-tick
9727         is ticked far too often.
9728         Declare in_modeline_generation.
9729
9730 2000-04-26  Ben Wing  <ben@xemacs.org>
9731
9732         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9733         option.
9734         (vars_of_emacs): add quick-build as an error-checking option.
9735         A bit kludgy, but there doesn't seem much point in creating
9736         a real var for this.
9737
9738         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9739
9740 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9741
9742         * redisplay.h (struct display_line): Add a new variable,
9743         line_continuation.
9744
9745         * redisplay.c (create_text_block): Set dl->line_continuation if
9746         the line continues.
9747         (create_string_text_block): Ditto.
9748         (regenerate_window_incrementally): Use line_continuation instead
9749         of searching continuation glyph.
9750         (add_margin_runes): Call add_glyph_rune.
9751         (add_glyph_rune): Handle margin glyph.
9752
9753 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9754
9755         * filelock.c (fill_in_lock_file_name):
9756         ANSIfy.
9757         Check for IS_ANY_SEP instead of '/'.
9758         (lock_file_1):
9759         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9760         Never check errno without first seeing that system call failed.
9761         (unlock_file): Add GCPRO.
9762         (Flock_buffer): Fix docstring.
9763         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9764
9765 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9766
9767         * sysdep.c (get_pty_max_bytes):
9768         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9769         strings longer than 252 bytes.
9770
9771         * md5.c: Unconditionally include ANSI header <limits.h>
9772
9773         * glyphs-x.c (convert_EImage_to_XImage):
9774         * lisp-union.h (union Lisp_Object):
9775         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9776
9777 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9778
9779         * filelock.c (current_lock_owner): Remove unused variable o, p.
9780
9781 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9782
9783         * callint.c: Remove multiply defined symbol Qlet
9784         (syms_of_callint): ditto.
9785
9786 2000-04-14  Andy Piper  <andy@xemacs.org>
9787
9788         * general.c (syms_of_general): add last-command, this-command, let
9789         and funcall.
9790
9791         * lisp.h: declare various symbols.
9792
9793         * glyphs.h: declare Qwidget_callback_current_channel;
9794
9795         * glyphs-widget.c (syms_of_glyphs_widget): add
9796         Qgui_callback_current_channel.
9797         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9798
9799         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9800         widget-callback-current-channel when invoking the interactive
9801         arg. Also bind last-command and next-command when invoking the
9802         widget updates.
9803         * gui-x.c (popup_selection_callback): ditto.
9804
9805         * gui.c (get_gui_callback): massage args so that we are always
9806         calling eval. This allows us to add our own variable bindings
9807         outside.
9808
9809         * glyphs-x.c (x_button_instantiate): use
9810         gui_items_to_widget_values since this is GC safe.
9811         (x_progress_gauge_instantiate): ditto.
9812         (x_edit_field_instantiate): ditto.
9813         (x_label_instantiate): ditto.
9814
9815         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9816         (emacs_Xt_event_widget_focus_out): new function
9817         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9818         focus.
9819         (emacs_Xt_event_add_widget_actions): new function. add focus
9820         functions as actions.
9821         (init_event_Xt_late): use it.
9822
9823 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9824
9825         * event-stream.c (Fdispatch_event): Doc fix.
9826
9827 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9828
9829         * postgresql.c: Remove all references to PQsetenv*.
9830
9831         * postgresql.h: Remove references to PGsetenvHandler object.
9832         * lrecord.h (lrecord_type): Ditto.
9833
9834 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9835
9836         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9837         real_heigh and real_width members, and accessor macros for these.
9838
9839         * glyphs-msw.c (init_image_instance_geometry): New function.
9840         (init_image_instance_from_dibitmap): Use it.
9841         (mswindows_resource_instantiate): Use it.
9842         (init_image_instance_from_xbm_inline): Use it.
9843         (mswindows_initialize_image_instance_mask): Use real bitmap
9844         geometry.
9845         (mswindows_create_resized_bitmap): Ditto.
9846         (mswindows_create_resized_mask): Ditto.
9847
9848         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9849         and bitmap to their surface size.
9850
9851 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9852
9853         * process-unix.c (unix_send_process): Guard against process MIA
9854         after Faccept_process_output.
9855
9856 2000-04-11  Ben Wing  <ben@xemacs.org>
9857
9858         * eval.c (unbind_to_hairy): fix brokenness introduced by
9859         nanosecond speed improvements.
9860
9861 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9862
9863         * sunplay.c (init_device): To play sounds correctly, the device
9864         apparently needs to be initialized at least once by XEmacs.  Make
9865         it so.
9866
9867 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9868
9869         * redisplay.c (add_margin_runes): Add text image glyph
9870           handling.
9871
9872 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9873
9874         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9875         gcc is newer than 2.5.
9876
9877 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9878
9879         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9880
9881         * fns.c (size_bit_vector):
9882         * alloc.c (size_vector):
9883         (make_vector_internal):
9884         (make_bit_vector_internal):
9885         (sweep_bit_vectors_1):
9886         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9887
9888 2000-04-06  Andy Piper  <andy@xemacs.org>
9889
9890         * gmalloc.c (malloc): undo previous change.
9891         (malloc): ditto.
9892         (free): ditto.
9893         (realloc): ditto.
9894
9895 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9896
9897         * line-number.c (buffer_line_number): Revert to former version.
9898
9899 2000-04-06  Andy Piper  <andy@xemacs.org>
9900
9901         * gmalloc.c (malloc): add error checking.
9902         (malloc): ditto.
9903         (free): ditto.
9904         (realloc): ditto.
9905
9906         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9907         button_item_to_widget_value arg.
9908
9909         * glyphs-x.c (x_button_instantiate): add extra
9910         button_item_to_widget_value arg.
9911         (x_progress_gauge_instantiate): ditto.
9912         (x_edit_field_instantiate): ditto.
9913         (x_label_instantiate): ditto.
9914
9915         * gui-x.c (gui_items_to_widget_values_1): add extra
9916         button_item_to_widget_value arg.
9917         (button_item_to_widget_value): add extra menu_item_p arg.
9918
9919         * gui-x.h: change signature of button_item_to_widget_value.
9920
9921         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9922         button_item_to_widget_value arg.
9923
9924 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9925
9926         * buffer.h (struct buffer): auto_save_modified should be long.
9927
9928 2000-04-05  Andy Piper  <andy@xemacs.org>
9929
9930         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9931         type.
9932         (button_query_geometry): give a little more room so that athena
9933         buttons fit.
9934
9935 2000-04-05  Andy Piper  <andy@xemacs.org>
9936
9937         * faces.c (complex_vars_of_faces): The widget face should inherit
9938         the font of the gui-element face.
9939
9940 2000-04-04  Andy Piper  <andy@xemacs.org>
9941
9942         * glyphs-x.c (x_button_update): new function. unconditionally
9943         update a button's state when the instance is dirty.
9944         (image_instantiator_format_create_glyphs_x): add x_button_update.
9945         (x_widget_instantiate): remove old resize cruft.
9946
9947 2000-04-02  Andy Piper  <andy@xemacs.org>
9948
9949         * frame.c (change_frame_size_1): The introduction of gutters means
9950         that we need to allow 0 as a potential frame dimension.
9951
9952 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9953
9954         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9955         image glyph if allow_cursor.
9956         (add_hscroll_rune): Don't allow cursor to border glyph.
9957         (create_text_block): Ditto.
9958
9959         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9960         text not in buffer.
9961         (redisplay_output_layout): Call ensure_face_cachel_complete for
9962         text image glyph.
9963
9964
9965 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9966
9967         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9968
9969         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9970         not in buffer
9971
9972         * redisplay-tty.c (tty_output_display_block): Delete the routine
9973         for text image glyph
9974         * redisplay-x.c (x_output_display_block): ditto
9975         * redisplay-msw.c (mswindows_output_display_block): ditto
9976
9977 2000-02-02  Mike Alexander  <mta@arbortext.com>
9978
9979         Note: Some of these were committed by accident as part of other
9980         patches.
9981
9982         * regex.c (regex_compile): Avoid compiler warnings.
9983
9984         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9985
9986         * nt.h: Declare term_ntproc correctly.
9987
9988         * nt.c: Remove incorrect declaration of get_home_directory which
9989         is declared correctly in lisp.h.
9990
9991         * keymap.c (get_keyelt): Avoid compiler warnings.
9992         (raw_lookup_key_mapper): Avoid compiler warnings.
9993
9994         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9995
9996         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9997
9998         * filemode.c (mode_string): Avoid compiler warnings.
9999
10000         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10001         avoid warning.
10002
10003         * events-mod.h: Undef some things that winuser.h defines differently.
10004
10005         * data.c (Faset): Avoid compiler warnings.
10006
10007         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10008
10009 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10010
10011         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10012         Fall through to simple beep on error.
10013         Replace "extern" by real header file.
10014
10015         * linuxplay.c: Use nativesound.h
10016         (play_sound_data): Return error code. Be less verbose on error.
10017
10018         * sunplay.c: Use nativesound.h
10019         (play_sound_data): Return error code. Be less verbose on error.
10020
10021         * ntplay.c: Use nativesound.h
10022         (play_sound_data): Return fake error code
10023
10024         * sgiplay.c: Use nativesound.h
10025         (play_sound_data): Return error code
10026
10027         * hpplay.c: Use nativesound.h, partially implement
10028         new error code. Break compilation until finished.
10029         (play_sound_data): error code.
10030
10031         * nativesound.h (play_sound_file):
10032           (play_sound_data): Prototype in new header.
10033
10034 2000-03-31  Andy Piper  <andy@xemacs.org>
10035
10036         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10037         for toggle and radio buttons.
10038         (image_instantiator_buttons): use it.
10039
10040 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10041
10042         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10043         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10044         found. Scrollbar event probably belonged to some old config.
10045
10046 2000-03-31  Andy Piper  <andy@xemacs.org>
10047
10048         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10049         than 1.
10050         (initialize_widget_image_instance): default layout to
10051         LAYOUT_HORIZONTAL rather than 0.
10052         (widget_instantiate): reverse the item list at the end rather than
10053         every iteration.
10054         (layout_layout): re-code for the border text at the front of the
10055         item list rather than at the end.
10056         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10057         provided by the user.
10058         (widget_query_geometry): comment.
10059
10060 2000-03-30  Andy Piper  <andy@xemacs.org>
10061
10062         * glyphs-widget.c (image_instantiator_layout): allow standard
10063         widget keywords in layouts.
10064
10065         * gutter.c (output_gutter): cope with nil gutter contents.
10066
10067         * frame.c (Fset_frame_properties): add gutter docs.
10068
10069 2000-03-29  Andy Piper  <andy@xemacs.org>
10070
10071         * toolbar-msw.c (TBSTYLE_FLAT): add.
10072         (mswindows_output_toolbar): minor fiddling.
10073
10074 2000-03-29  Andy Piper  <andy@xemacs.org>
10075
10076         * gutter.c (output_gutter): force gutter size recalculation if
10077         what we are trying to display won't fit.
10078         (update_gutter_geometry): new function. A per-gutter version of
10079         update_frame_gutter_geometry.
10080         (update_frame_gutter_geometry): use it.
10081         (redraw_exposed_gutter): add extra debugging output.
10082
10083 2000-03-28  Mike Alexander  <mta@arbortext.com>
10084
10085         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10086         (pdump_file_unmap): Implement it on Windows
10087         (pdump_file_get): Save alocated handles for pdump_file_unmap
10088
10089 2000-03-28  Andy Piper  <andy@xemacs.org>
10090
10091         * gui.c (get_gui_callback): treat Quit specially.
10092
10093 2000-03-27  Andy Piper  <andy@xemacs.org>
10094
10095         * glyphs.c (image_instantiate): be careful to check in the same
10096         way we assigned.
10097
10098 2000-03-27  Didier Verna  <didier@xemacs.org>
10099
10100         * config.h.in: define the proper SMART_INCLUDE macro.
10101         handle renaming of `foo_h_path' to `foo_h_file'.
10102
10103         * database.c: ditto.
10104
10105         * emacs.c: ditto.
10106
10107         * linuxplay.c: ditto.
10108
10109         * terminfo.c: ditto.
10110
10111         * tooltalk.h: ditto.
10112
10113 2000-03-27  Andy Piper  <andy@xemacs.org>
10114
10115         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10116         gets updated whenever the face might have changed.
10117
10118 2000-03-26  Mike Alexander  <mta@arbortext.com>
10119
10120         * dumper.c (pdump_resource_free): Fix the comment.
10121
10122 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10123
10124         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10125
10126 2000-03-22  Mike Alexander  <mta@arbortext.com>
10127
10128         * dumper.c: Include Windows headers on Windows
10129         (pdump_resource_free): Add a body to the function
10130         (pdump_load): exe_name -> exe_path and add some comments.
10131
10132 2000-03-25  Mike Alexander  <mta@arbortext.com>
10133
10134         * gui.c (copy_gui_item_tree): Return a value in all cases
10135
10136 2000-03-21  Didier Verna  <didier@xemacs.org>
10137
10138         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10139         lwlib/config.h.in.
10140         (SMART_INCLUDE): new macro.
10141         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10142         the proper location.
10143
10144         * postgresql.c: use it.
10145
10146         * inline.c: ditto.
10147
10148 2000-03-24  Andy Piper  <andy@xemacs.org>
10149
10150         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10151         do this.
10152
10153 2000-03-24  Andy Piper  <andy@xemacs.org>
10154
10155         * redisplay-output.c (compare_runes): use image_instance_changed
10156         to detect changes. Do not depend on glyphs_changed, only depend on
10157         dirtiness.
10158          (redisplay_output_layout): add debug messages.
10159         (compare_runes): ditto.
10160
10161         * glyphs.h: declare new functions.
10162         (struct Lisp_Image_Instance): remove percent and associated
10163         accessors.
10164
10165         * gui.h: declare new copying functions.
10166
10167         * gui.c (copy_gui_item_tree): new function.
10168         (copy_gui_item): new function.
10169         (gui_item_id_hash): revert to standard hash.
10170         (gui_item_hash): ditto.
10171         (gui_item_hash_internal): deleted.
10172         (mark_gui_item): mark value.
10173         (gui_item_add_keyval_pair): add value.
10174         (gui_item_init): ditto.
10175         (gui_add_item_keywords_to_plist): ditto.
10176         (gui_item_equal): ditto.
10177         (syms_of_gui): add Q_value.
10178
10179         * glyphs-x.c (x_progress_gauge_update): use pending items and
10180         value for setting the state.
10181         (x_update_widget): don't set items from pending here.
10182
10183         * glyphs-widget.c (update_widget): update items here.
10184         (progress_gauge_set_property): use items for storing value. Put
10185         new value in pending items.
10186
10187         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10188         items for new value. Convert percent -> value.
10189         (mswindows_tab_control_update): don't update items here.
10190
10191         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10192         (update_subwindow): ditto.
10193         (image_instance_changed): new function. Compare hash values and
10194         past and present widget items.
10195         (image_instantiate): We more careful about where we instantiate
10196         things.
10197         (image_instantiate): add error checking.
10198
10199         * gutter.c (syms_of_gutter): use -hook.
10200
10201 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10202
10203         * console-tty.c (Fset_console_tty_input_coding_system): Use
10204         Qkeyboard.
10205         (Fset_console_tty_output_coding_system): Use Qterminal.
10206         (tty_init_console): Use Qkeyboard and Qterminal.
10207
10208 2000-03-21  Ben Wing  <ben@xemacs.org>
10209
10210         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10211         From Mike Alexander <mta@arbortext.com>.
10212
10213 2000-03-21  Ben Wing  <ben@xemacs.org>
10214
10215         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10216         process brokenness.  Proper implementation to come.
10217         * callproc.c:
10218         Rename call-process-internal to old-call-process-internal.
10219         New impl. in process.el.
10220
10221 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10222
10223         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10224
10225 2000-03-20  Andy Piper  <andy@xemacs.org>
10226
10227         * glyphs.c (full_list_hash): make hashes of the same elements in
10228         different orders return different values.
10229
10230 2000-03-20  Martin Buchholz <martin@xemacs.org>
10231
10232         * XEmacs 21.2.32 is released.
10233
10234 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10235
10236         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10237         (DFC_MALLOC_USE_CONVERTED_DATA):
10238         Add aliasing-safe casts to allow use with char* or unsigned char*
10239         lvalues.
10240
10241         * eldap.c (Fldap_open):
10242         (Fldap_search_basic):
10243         (Fldap_add):
10244         (Fldap_modify):
10245         Make C++-compilable.
10246         Make sure GCPRO'ed variables are initialized.
10247         Use temp variables to avoid repeated calls to Flength.
10248
10249 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10250
10251         * sysfile.h:
10252         Make sure PATH_MAX is always defined.
10253         Include limits.h for PATH_MAX.
10254         Deprecate use of MAXPATHLEN.
10255
10256 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10257
10258         * emacs.c: Add reinit_vars_of_fileio.
10259         * symsinit.h: Add reinit_vars_of_fileio.
10260         * fileio.c (reinit_vars_of_fileio): New.
10261         * fileio.c (Fmake_temp_name):
10262         Initialize temp_name random number from microseconds to make
10263         collisions even less likely.  Initialize always at process startup
10264         time.  (make-temp-name) used to return the same file name twice in
10265         a row when PDUMP.
10266         Random stylistic fiddling.
10267         Comment fixes.
10268
10269 2000-03-20  Andy Piper  <andy@xemacs.org>
10270
10271         * glyphs.c (image_instantiate): allow text glyphs to be
10272         instantiated in the minibuffer window.
10273
10274 2000-03-19  Andy Piper  <andy@xemacs.org>
10275
10276         * glyphs.c (image_instance_hash): be careful about which items we
10277         hash on.
10278
10279         * glyphs-widget.c (tab_control_set_property): record into pending
10280         items rather than the actual items.
10281
10282         * glyphs-x.c (x_update_widget): use pending items to update with.
10283
10284         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10285         to update with.
10286
10287         * glyphs.c (mark_image_instance): mark pending items.
10288
10289         * window.c (Fset_window_configuration): record the buffer.
10290         (Fselect_window): totally revert previous change which breaks many
10291         things.
10292
10293 2000-03-18  Andy Piper  <andy@xemacs.org>
10294
10295         * glyphs-msw.c (mswindows_tab_control_update): force selected
10296         item.
10297
10298         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10299         window domain cache, otherwise we get inconsistencies at
10300         startup. There is something fishy at startup which can lead to the
10301         minibuffer being the selected window when the gutter content is
10302         instantiated.
10303
10304         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10305         gcpros.
10306         (parse_gui_item_tree_children): ditto.
10307         (parse_gui_item_tree_item): ditto.
10308
10309         * glyphs.c (Fupdate_widget_instances): return something.
10310
10311 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10312
10313         * window.c (Fselect_window): Undo 2000-03-17 change.
10314
10315 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10316
10317         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10318         against v7.0 libraries.  Insta-coredump city until the postgres
10319         folks fix it.
10320
10321 2000-03-17  Andy Piper  <andy@xemacs.org>
10322
10323         * faces.c (complex_vars_of_faces): don't give the widget face an
10324         inherited background pixmap.
10325
10326         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10327         selected item.
10328
10329         * event-stream.c (Fdispatch_non_command_events): return something.
10330
10331         * gutter.c (output_gutter): use widget face.
10332         (clear_gutter): ditto.
10333
10334         * NEWS: adjust again.
10335
10336         * window.c (Fselect_window): make sure this runs to completion to
10337         avoid oddities with Fset_window_configuration.
10338         (Fcurrent_window_configuration): in general do not save the
10339         minibuffer as the selected window.
10340
10341         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10342
10343 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10344
10345         * emacs.c (Frunning_temacs_p): Revert previous patch.
10346         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10347
10348 2000-03-16  Andy Piper  <andy@xemacs.org>
10349
10350         * glyphs-x.c (x_tab_control_update): if no widget values then
10351         return.
10352
10353         * NEWS: update for new features.
10354
10355         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10356         synthetic event to the native system.
10357         (reinit_vars_of_event_Xt): set force_event_pending to
10358         emacs_Xt_force_event_pending.
10359
10360         * events.h (struct event_stream): add force_event_pending.
10361
10362         * specifier.c (recompute_one_cached_specifier_in_window): add
10363         comment.
10364
10365         * redisplay.c (redisplay_frame): don't call
10366         update_frame_subwindows. Reset subwindow cachels when
10367         subwindows_changed, removing this was an optimization too far.
10368
10369         * redisplay-output.c (compare_runes): reorganize so that we catch
10370         glyph changes when we want them. Set optimize_output when this
10371         would help layouts.
10372         (redisplay_output_layout): remove frame_really_changed, use
10373         optimize_output instead.
10374
10375         * redisplay-msw.c (mswindows_output_display_block): reset
10376         optimize_output after outputting a glyph.
10377         * redisplay-x.c (x_output_display_block): ditto.
10378         * redisplay-tty.c (tty_output_display_block): ditto.
10379
10380         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10381         functions.
10382         (gutter_specs_changed): do specific gutter positions.
10383         (top_gutter_specs_changed): new function. Only update the
10384         specified gutter specs.
10385         (bottom_gutter_specs_changed): ditto.
10386         (left_gutter_specs_changed): ditto.
10387         (right_gutter_specs_changed): ditto.
10388
10389         * gui.c (gui_item_hash_internal): new function, does a real hash.
10390         (gui_item_id_hash): use it.
10391         (gui_item_hash): hash the eval'ed gui_item.
10392
10393         * gui-x.c (popup_selection_callback): send an eval event to call
10394         Fupdate_widget_instances.
10395
10396         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10397         to call Fupdate_widget_instances.
10398
10399         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10400         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10401
10402         * glyphs.c: (update_frame_subwindows): deleted.
10403         (Fupdate_widget_instances): new function for updating the dirty
10404         state of widgets that might have changed.
10405         (syms_of_glyphs): add Qupdate_widget_instances.
10406         (full_list_hash): hash a list completely.
10407         (image_instance_hash): use it for items and properties.
10408
10409         * frame-msw.c (mswindows_size_frame_internal): remove unused
10410         variable.
10411
10412         * faces.h (struct face_cachel): fix comment.
10413
10414         * event-stream.c (Fdispatch_non_command_events): new
10415         function. Process non-command events, forcing an event cycle
10416         beforehand.
10417         (syms_of_event_stream): declare.
10418         (event_stream_force_event_pending): new function. Force an event
10419         on the native event queue so that an event cycle will occur next
10420         time we check.
10421
10422         * event-msw.c:
10423         (struct ntpipe_shove_stream):
10424         (mswindows_enqueue_dispatch_event):
10425         (mswindows_dequeue_dispatch_event):
10426         (mswindows_cancel_dispatch_event):
10427         (mswindows_pump_outstanding_events):
10428         (mswindows_drain_windows_queue):
10429         (mswindows_handle_paint):
10430         (mswindows_wnd_proc):
10431         (mswindows_key_to_emacs_keysym):
10432         (get_process_input_waitable):
10433         (emacs_mswindows_delete_stream_pair): re-indent file.
10434         (mswindows_need_event): do not process further fds if the windows
10435         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10436         fixes the 100% cpu problem.
10437         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10438
10439 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10440
10441         * alloc.h: New.
10442         * dumper.h: New.
10443         * dumper.c: New.
10444
10445         * emacs.c: Moved dump file searching to dumper.c.
10446         (Frunning_temacs_p): Fixed.
10447
10448         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10449         last_lrecord_type_index_assigned.
10450
10451 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10452
10453         * symsinit.h: Added reinit parameter to init_console_stream
10454         declaration.
10455
10456         * lisp.h: Added file parameter to pdump_load declaration.
10457
10458         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10459         support.  Added dump file searching.
10460
10461         * config.h.in: Added EMACS_PROGNAME.
10462
10463         * console-stream.c (init_console_stream): Fix reinitialisation
10464         when running from temacs.
10465
10466         * alloc.c (pdump): Add id support.
10467         (pdump_load): Add file parameter and signature/id support.
10468
10469         * Makefile.in.in: Add full pdump support.
10470
10471 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10472
10473         * postgresql.c: Update documentation to reflect latest code
10474         status.
10475         (print_result): Show tuple counts in printed representation when
10476         appropriate.
10477         (Fpq_put_nbytes): MULE-ize.
10478         (Fpq_get_line_async): Ditto.
10479
10480 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10481
10482         * postgresql.c (Fpq_lo_import): Fix return value.
10483         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10484
10485 2000-03-13  Ben Wing  <ben@xemacs.org>
10486
10487         * alloc.c (pdump_load):
10488         Fix compile warning under mswin.
10489
10490 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10491
10492         * postgresql.c: Mule-ization, bug fixes.
10493         Use PG_CODING to encapsulate coding system name changes.
10494         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10495         (pg-coding-system): Create.
10496
10497         (Fpq_conn_defaults): Mule-ize.
10498         (Fpq_connectdb): Mule-ize & bug fix.
10499         (Fpq_connect_start): Mule-ize.
10500         (Fpq_set_client_encoding): Mule-ize.
10501         (Fpq_finish): Document `DEAD' connection status.
10502         (Fpq_clear): Ditto.
10503         (Fpq_pgconn): Mule-ize.
10504         (Fpq_exec): Mule-ize & bug fix.
10505         (Fpq_send_query): Ditto.
10506         (Fpq_get_result): Ditto.
10507         (Fpq_res_status): Mule-ize.
10508         (Fpq_result_error_message): Mule-ize.
10509         (Fpq_ntuples): fix comments.
10510         (Fpq_fname): Mule-ize.
10511         (Fpq_fnumber): Mule-ize.
10512         (Fpq_ftype): fix comments.
10513         (Fpq_get_value): Mule-ize.
10514         (Fpq_cmd_status): Ditto.
10515         (Fpq_cmd_tuples): Ditto.
10516         (Fpq_oid_value): Ditto.
10517         (Fpq_notifies): Ditto.
10518         (Fpq_lo_import): Ditto.
10519         (Fpq_lo_export): Ditto.
10520         (Fpq_get_line): Ditto.
10521         (Fpq_put_line): Mule-ize and bug fix.
10522         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10523
10524 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10525
10526         * postgresql.c (vars_of_postgresql): Mule-ize.
10527         (Fpq_conn_defaults): Ditto.
10528
10529 2000-03-12  Ben Wing  <ben@xemacs.org>
10530
10531         * alloc.c (Fmake_byte_code):
10532         * alloc.c (debug_string_purity_print):
10533         * alloc.c (pdump_backtrace):
10534         * alloc.c (pdump_get_indirect_count):
10535         * alloc.c (pdump_register_sub):
10536         * alloc.c (pdump_register_object):
10537         * alloc.c (pdump_register_struct):
10538         * alloc.c (pdump_dump_data):
10539         * alloc.c (pdump_reloc_one):
10540         Minor cleanups.
10541
10542         * console-msw.c:
10543         * console-msw.c (GetConsoleHwnd):
10544         * console-msw.c (msw_hide_console):
10545         * console-msw.c (msw_show_console):
10546         * console-msw.c (msw_ensure_console_buffered):
10547         * console-msw.c (msw_output_console_string):
10548         * console-msw.c (console_type_create_mswindows):
10549
10550         a) Added functions to manipulate the console window for use with
10551         shell support.
10552
10553         b) Added support for writing text to the console, which is now
10554         used under Windows when xemacs is not being run non-interactively,
10555         to write text that would otherwise be destined for stdout because
10556         under these circumstances, text written to stdout tends to
10557         disappear and not be seen.
10558
10559         * console-msw.h:
10560         * event-Xt.c:
10561         * event-Xt.c (x_event_to_emacs_event):
10562         * event-Xt.c (describe_event_window):
10563         * events-mod.h (XEMACS_MOD_CONTROL):
10564         * events.c:
10565         * events.c (Fmake_event):
10566         * events.c (character_to_event):
10567         * events.c (event_to_character):
10568         * events.c (format_event_object):
10569         * events.c (Fevent_modifiers):
10570         * events.h:
10571         * events.h (struct key_data):
10572         * events.h (struct button_data):
10573         * events.h (struct misc_user_data):
10574         * frame-x.c (Fcde_start_drag_internal):
10575         * frame-x.c (Foffix_start_drag_internal):
10576         * gpmevent.c (Freceive_gpm_event):
10577         * keymap.c:
10578         * keymap.c (bucky_sym_to_bucky_bit):
10579         * keymap.c (control_meta_superify):
10580         * keymap.c (make_key_description):
10581         * keymap.c (keymap_lookup_directly):
10582         * keymap.c (create_bucky_submap):
10583         * keymap.c (keymap_store):
10584         * keymap.c (define_key_check_and_coerce_keysym):
10585         * keymap.c (define_key_parser):
10586         * keymap.c (define_key_alternate_name):
10587         * keymap.c (Fdefine_key):
10588         * keymap.c (raw_lookup_key_mapper):
10589         * keymap.c (struct map_keymap_unsorted_closure):
10590         * keymap.c (map_keymap_unsorted_mapper):
10591         * keymap.c (map_keymap_sort_predicate):
10592         * keymap.c (map_keymap_sorted):
10593         * keymap.c (accessible_keymaps_mapper_1):
10594         * keymap.c (where_is_recursive_mapper):
10595         * keymap.c (describe_map_mapper):
10596         * keymap.c (describe_map_sort_predicate):
10597         * keymap.c (describe_map):
10598         * keymap.c (complex_vars_of_keymap):
10599         And a number of other files, the key modifier preprocessor
10600         constants that xemacs uses have names that conflict with constants
10601         defined under MS Windows for other purposes, so they were renamed
10602         to begin with the prefix XEMACS_. The variables that hold such
10603         modifiers were changed to consistently be of type int to fix
10604         various compile warnings.
10605
10606         * console.c (complex_vars_of_console):
10607         * device.c:
10608         * device-msw.c:
10609         * device-msw.c (mswindows_finish_init_device):
10610         * device-msw.c (msw_get_workspace_coords):
10611         * device-msw.c (mswindows_device_system_metrics):
10612         and various other files, added support for a new
10613         device property called offset-workspace which returns the position
10614         of the upper left corner of the workspace area and goes along with
10615         the existing size-workspace property.
10616
10617         * dialog-msw.c:
10618         * dialog-msw.c (push_bufbyte_string_as_unicode):
10619         * dialog-msw.c (mswindows_popup_dialog_box):
10620         Added support for XEmacs-style accelerator specifications in
10621         button text.  Note: I didn't add support for this under X Windows,
10622         and somebody needs to do this.
10623
10624         * dialog.c:
10625         * dialog.c (Fpopup_dialog_box):
10626         Documented the support for accelerators that was just mentioned.
10627
10628         editfns.c (get_home_directory): Changed behavior under Windows
10629         when HOME not defined; former behavior was irretrievably broken.
10630
10631         * emacs.c:
10632         * emacs.c (main_1):
10633         * emacs.c (main):
10634         * minibuf.c (clear_echo_area_internal):
10635         * minibuf.c (echo_area_append):
10636         * print.c:
10637         * print.c (std_handle_out_external):
10638         * print.c (std_handle_out_va):
10639         * print.c (fatal):
10640         * print.c (write_string_to_stdio_stream):
10641         * print.c (output_string):
10642         * print.c (debug_print):
10643         * print.c (debug_backtrace):
10644         * print.c (debug_short_backtrace):
10645         Cleaned up the code that prints text to stdout so that this can be
10646         changed to output into a console window instead under MS Windows,
10647         as described above.
10648
10649         * eval.c:
10650         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10651         * eval.c (internal_catch):
10652         * eval.c (unwind_to_catch):
10653         * eval.c (throw_or_bomb_out):
10654         * eval.c (condition_case_1):
10655         * eval.c (signal_1):
10656         * eval.c (check_error_state_sanity):
10657         * eval.c (call_with_suspended_errors_1):
10658         * eval.c (call_with_suspended_errors):
10659         * eval.c (reinit_vars_of_eval):
10660         Added code to catch throw loops and check for a pesky bug that may
10661         be gone now.
10662
10663         * event-msw.c:
10664         * event-msw.c (key_needs_default_processing_p):
10665         * event-msw.c (mswindows_wnd_proc):
10666         * event-msw.c (mswindows_modifier_state):
10667         * event-msw.c (emacs_mswindows_quit_p):
10668         * event-msw.c (vars_of_event_mswindows):
10669         a) Added support for using the alt key to select menu items as is
10670         standard under MS Windows.  This is controlled using the variable
10671         menu-accelerator-enabled, just like under X Windows.  There is an
10672         option on the options menu to turn this support on.  I really
10673         think that it should be on by default under Windows, but I'm not
10674         going to make this change yet.
10675
10676         b)  Added support for dynamic display size changes under Windows.
10677
10678         * event-stream.c:
10679         * event-stream.c (maybe_echo_keys):
10680         * event-stream.c (Fnext_event):
10681         * event-stream.c (command_builder_find_leaf):
10682         * event-stream.c (lookup_command_event):
10683         * event-stream.c (execute_command_event):
10684         * event-stream.c (pre_command_hook):
10685         * event-stream.c (post_command_hook):
10686         * event-stream.c (syms_of_event_stream):
10687         * event-stream.c (vars_of_event_stream):
10688         * event-stream.c (complex_vars_of_event_stream):
10689         * events.h (struct command_builder):
10690
10691         a) Tried to clean up a little bit the horribly written x-specific
10692         accelerator code that crept into this file.  I moved this code
10693         into menubar-x.c where it belongs. I also needed to move the
10694         command builder structure into the file events.h because it is
10695         accessed directly by this accelerator code.  What I didn't do, but
10696         which should be done at some point, is to properly abstract this
10697         code using device methods instead of the kludgy way that it
10698         currently hooks into the event code.
10699
10700         b) Added the lisp variables this-command-properties and
10701         last-command- properties, which should be used to synchronize two
10702         adjacent commands in preference to playing games with the variable
10703         this-command, which is typically what happens.
10704
10705         c) Added some slightly nasty code to hook into the lisp support
10706         for shifted- motion-key selection.  This is actually necessary for
10707         somewhat complicated reasons, which are described in
10708         simple.el. (NB: I think the proper thing would be to have the code
10709         that calls the pre and post command hooks also call out to generic
10710         lisp functions in simple.el, where all built-in stuff could be
10711         added.  I will think about this more.)
10712
10713         * event-unixoid.c (poll_fds_for_input):
10714         * lread.c (readchar):
10715         * redisplay-tty.c (tty_clear_frame):
10716         * redisplay-x.c (x_get_gc):
10717         * signal.c (interrupt_signal):
10718         And a whole bunch of other files: fixed up places that printed
10719         directly to stderr to instead call the function stderr_out so that
10720         the changes I made under Windows work correctly.
10721
10722         * filemode.c (mode_string):
10723         Warning fixes.
10724
10725         * frame-msw.c:
10726         * frame-msw.c (mswindows_size_frame_internal):
10727         Fixed the computation of frame size and position to keep the frame
10728         within the workspace area, rather than within the physical
10729         dimensions of the screen, so that the frame doesn't overlap window
10730         manager decorations, such as the start menu and toolbar, typically
10731         at the bottom of the screen.
10732
10733         * frame.c (vars_of_frame):
10734         Changed the default frame title format under MS Windows to consist
10735         of buffername-XEmacs, which is standard under MS Windows.  I think
10736         it might be a good idea to change this everywhere because I think
10737         it is superior to the current frame title format, but this is the
10738         kind of change that is likely to cause some people to get annoyed,
10739         so I'm not making it.
10740
10741         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10742
10743         * gui-msw.c (mswindows_handle_gui_wm_command):
10744         Fixed compile warnings.
10745
10746         * gui-x.c:
10747         * gui-x.c (strdup_and_add_accel):
10748         * gui-x.c (button_item_to_widget_value):
10749         * gui-x.h:
10750         Added code to automatically put an accelerator onto the beginning
10751         of menu items that don't have one as is now the standard, and is
10752         described more later.  Also fixed things so that the menu item
10753         name can be an evaluated expression, again a new standard.
10754
10755         * gui.c:
10756         * gui.c (gui_item_add_keyval_pair):
10757         * gui.c (make_gui_item_from_keywords_internal):
10758         * gui.c (gui_add_item_keywords_to_plist):
10759         * gui.c (gui_item_accelerator):
10760         * gui.c (gui_name_accelerator):
10761         * gui.c (gui_item_included_p):
10762         * gui.c (gui_item_display_flush_left):
10763         * gui.c (gui_item_display_flush_right):
10764         * gui.c (parse_gui_item_tree_item):
10765         * gui.c (parse_gui_item_tree_children):
10766         * gui.c (parse_gui_item_tree_list):
10767         Mule-ized.  Cleanup.  GCPRO addition.
10768
10769         * line-number.c (buffer_line_number):
10770         * lisp.h:
10771         * lisp.h (EMACS_INT_MAX):
10772         Added the manifest constant EMACS_INT_MIN corresponding to the
10773         existing constant EMACS_INT_MAX.  This is partially to fix compile
10774         warnings under Windows, and partly for cleanliness.
10775
10776         * menubar-msw.c:
10777         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10778         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10779         * menubar-msw.c (displayable_menu_item):
10780         * menubar-msw.c (populate_menu_add_item):
10781         * menubar-msw.c (populate_or_checksum_helper):
10782         * menubar-msw.c (populate_menu):
10783         * menubar-msw.c (update_frame_menubar_maybe):
10784         * menubar-msw.c (prune_menubar):
10785         * menubar-msw.c (msw_char_is_accelerator):
10786         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10787         * menubar-msw.c (mswindows_handle_wm_command):
10788         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10789         * menubar-msw.c (mswindows_handle_wm_initmenu):
10790         * menubar-msw.c (mswindows_update_frame_menubars):
10791         * menubar-msw.c (mswindows_free_frame_menubars):
10792         * menubar-msw.c (mswindows_popup_menu):
10793         Fixed a bug in handling accelerators where an extra character
10794         would be displayed in the menu item.  Also generalized the
10795         function displayable_menu_item because it is now used by the
10796         dialog box code as well.  And finally, added code in the functions
10797         that create the menubar to extract a list of accelerators for the
10798         top level menubar, which is used in the event code to determine
10799         whether a particular alt-key combination should be used to invoke
10800         a menu item, or should be passed through to access the standard
10801         XEmacs keymap binding for this key combination.
10802
10803         Much needed GCPROing.
10804
10805         * menubar-x.c:
10806         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10807         * menubar-x.c (menu_item_descriptor_to_widget_value):
10808         * menubar-x.c (restore_in_menu_callback):
10809         * menubar-x.c (x_popup_menu):
10810         * menubar-x.c (menu_move_up):
10811         * menubar-x.c (menu_move_down):
10812         * menubar-x.c (menu_move_left):
10813         * menubar-x.c (menu_move_right):
10814         * menubar-x.c (menu_select_item):
10815         * menubar-x.c (command_builder_operate_menu_accelerator):
10816         * menubar-x.c (menu_accelerator_junk_on_error):
10817         * menubar-x.c (command_builder_find_menu_accelerator):
10818         * menubar-x.c (Faccelerate_menu):
10819         * menubar.h:
10820         Moved a whole bunch of code here that was previously in
10821         event-stream.c as described above.  There is also code connected
10822         to the new standard of adding an accelerator to the beginning of
10823         menu items that don't have one as described above and below.
10824
10825         * menubar.c:
10826         * menubar.c (menu_parse_submenu_keywords):
10827         * menubar.c (Fmenu_find_real_submenu):
10828         * menubar.c (Fnormalize_menu_item_name):
10829         * menubar.c (syms_of_menubar):
10830         * menubar.c (vars_of_menubar):
10831         * menubar.c (complex_vars_of_menubar):
10832
10833         a) Cleaned up a bunch of documentation and improved it.
10834
10835         b) XEmacs now automatically adds an accelerator onto the beginning
10836         of any menu items that don't have one.  I did this because there
10837         will inevitably be some menu items on the main menubar that don't
10838         have accelerators on them because the package that adds that
10839         particular menu item hasn't yet been fixed up to have accelerators
10840         in them and it looked rather strange to have some items with and
10841         some items without accelerators, especially since even in items
10842         without accelerators, you can, at least under windows, still
10843         access the item through an accelerator corresponding to the first
10844         character in the item's name.  If people don't like this behavior,
10845         I can add a variable to turn it off optionally, but I'm not sure
10846         this is a good idea because we really do need to have accelerators
10847         on all of the menu items, and if a package doesn't like the
10848         accelerators being put on the first character, then it should put
10849         the accelerators where they belong.
10850
10851         c) I made a behavior change, which is that the descriptor that
10852         specifies the text of the menu item, which formerly was just a
10853         string, can now also be an evaluated expression.  This makes this
10854         descriptor parallel with all of the others, which could also be
10855         evaluated expressions.  This also obviates the need for the
10856         keyword :label, which was previously listed in the documentation
10857         as unimplemented, and which was for the same purpose.
10858
10859         d) GCPROing.
10860
10861         * ntproc.c:
10862         * ntproc.c (new_child):
10863         * ntproc.c (sys_spawnve):
10864         * ntproc.c (find_child_console):
10865         * ntproc.c (sys_kill):
10866         Fixed compile warnings.  By the way, this file should really go
10867         away entirely, and this will happen as soon as Kirill makes his
10868         final round of process cleanups, which affect the function
10869         call-process.
10870
10871         * process-nt.c:
10872         * process-nt.c (struct nt_process_data):
10873         * process-nt.c (find_process_from_pid):
10874         * process-nt.c (send_signal_the_nt_way):
10875         * process-nt.c (enable_child_signals):
10876         * process-nt.c (find_child_console):
10877         * process-nt.c (send_signal_the_95_way):
10878         * process-nt.c (nt_finalize_process_data):
10879         * process-nt.c (ensure_console_window_exists):
10880         * process-nt.c (nt_create_process):
10881         * process-nt.c (nt_kill_child_process):
10882         * process-nt.c (nt_kill_process_by_pid):
10883         * process-nt.c (nt_open_network_stream):
10884         * process-nt.c (vars_of_process_nt):
10885         Copied over code from Emacs 20.5 to correctly send signals to sub-
10886         processes under Windows 95.  Also added code to automatically
10887         create and hide console window when a sub-process is created under
10888         Windows 95, which obviates the need for the separate runemacs.exe
10889         executable, and finally implemented some variables that were
10890         implemented in Emacs 20.5, but previously not in XEmacs.  These
10891         include mswindows- start-process-share-console and
10892         mswindows-start-process-inherit-error-mode. (Both of these only
10893         apply to Windows 95.)
10894
10895         * regex.c (regex_compile): Fixed a compile warning.
10896
10897         * select-msw.c:
10898         * select-msw.c (mswindows_own_selection):
10899         * select-msw.c (mswindows_get_foreign_selection):
10900         * select-msw.c (mswindows_disown_selection):
10901         * select-msw.c (console_type_create_select_mswindows):
10902         * select-msw.c (syms_of_select_mswindows):
10903         Cleaned up the file and implemented the device method
10904         selection_exists_p, which had accidentally been left out.  Also
10905         removed four lisp functions that were remnants from before the
10906         time when the selection code was properly device abstracted.
10907         These functions are no longer needed because there are generic
10908         equivalents, and because they were added recently and don't exist
10909         in FSF Emacs, I don't think there's any problem with just deleting
10910         them.
10911
10912         * sysdep.c:
10913         * sysdep.c (sys_subshell):
10914         Fixed a compile warning, although in this case there's probably
10915         something wrong with this code, and it ought to be looked into
10916         more thoroughly by somebody who understands it.
10917
10918         * window.c:
10919         * window.c (Fwindow_text_area_height):
10920         * window.c (Fwindow_width):
10921         * window.c (Fwindow_full_width):
10922         * window.c (Fwindow_pixel_width):
10923         * window.c (debug_print_window):
10924         * window.c (syms_of_window):
10925         Added functions window-text-area-height and window-full-width,
10926         which are functions for returning various width and height
10927         characteristics of a window. (One of these functions is necessary
10928         for making the file dialog box work correctly, and the other one
10929         was added for completeness.)  Also added a table to the
10930         documentation for window-height which describes the entire scheme
10931         for accessing width and height characteristics of a window.
10932
10933 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10934
10935         * nt.c (fstat): Added a comment for another problem with
10936         non-encapsulated [f]stat(), reported by Adrian Aichner
10937         <aichner@ecf.teradyne.com>.
10938
10939 2000-03-11  Andy Piper  <andy@xemacs.org>
10940
10941         * window.c (make_dummy_parent): initialize subwindow instance
10942         cache.
10943         (Fset_window_configuration): zero extent_modiff.
10944
10945 2000-03-10  Andy Piper  <andy@xemacs.org>
10946
10947         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10948         more changes can be triggered.
10949         (Fredisplay_frame): ditto.
10950         (Fredraw_device): ditto.
10951         (Fredisplay_device): ditto.
10952         (redisplay_frame): make non-static.
10953         (redisplay_frame): call update_frame_gutter_geometry outside of
10954         display proper.
10955
10956         * gutter.h: declare update_frame_gutter_geometry.
10957
10958         * redisplay.h: declare redisplay_frame.
10959
10960         * gutter.c (update_frame_gutter_geometry): move geometry changes
10961         in update_frame_gutters here. Geometry changes can only occur
10962         outside of redisplay.
10963         (update_frame_gutters): remove geometry change code.
10964         (Fredisplay_gutter_area): make sure that we are in display when we
10965         update and that we have flushed any size changes.
10966
10967 2000-03-11  Andy Piper  <andy@xemacs.org>
10968
10969         * alloc.c (pdump_dump_data): remove i & count shadows.
10970
10971 2000-02-27  Mike Alexander  <mta@arbortext.com>
10972
10973         * sysdep.h: Declare pdump_read_file
10974
10975         * sysdep.c (pdump_read_file): New function
10976
10977         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10978         dump data
10979
10980 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10981
10982         * lrecord.h: add `lrecord_type_pgsetenv'.
10983
10984 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10985
10986         * symsinit.h: declare (vars|syms)_of* functions.
10987         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10988
10989 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10990
10991         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10992
10993         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10994         GCCs.
10995
10996         * emacs.c (main_1): Call postgres initialization code.
10997
10998         * postgresql.h: New file.  PostgreSQL RDBMS support.
10999         * postgresql.c: New file.
11000
11001 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11002
11003         * redisplay-output.c (redisplay_output_display_block): Disable
11004         redundant code.
11005
11006 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11007
11008         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11009         (Fcanna_henkan_next): Ditto.
11010         (Fcanna_bunsetu_henkou): Ditto.
11011         (Fcanna_henkan_kakutei): Ditto.
11012         (Fcanna_henkan_end): Ditto.
11013         (Fcanna_henkan_quit): Ditto.
11014         (Fcanna_henkan_next): Set retun value correctly.
11015         (c2mu): Use unsigned char instead of signed char.
11016
11017 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11018
11019         * emacs.c (main_1): Always call syms_of_gui.
11020         * inline.c: include gui.h
11021
11022 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11023
11024         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11025         converted to Lisp_Object.
11026         (Qtop_bottom): New variable.
11027         (syms_of_redisplay): Initialize it.
11028         * redisplay.h (Vvisible_bell): Ditto.
11029         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11030         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11031         only flash top and bottom.
11032
11033 2000-03-08  Andy Piper  <andy@xemacs.org>
11034
11035         * buffer.c (Frename_buffer): record new buffer name the right way.
11036
11037 2000-03-08  Andy Piper  <andy@xemacs.org>
11038
11039         * glyphs.c (update_subwindow): increase hash depth so that widget
11040         items get picked up properly.
11041
11042         * redisplay-output.c (compare_runes): increase hash depth so that
11043         widget items get picked up properly.
11044
11045 2000-03-08  Andy Piper  <andy@xemacs.org>
11046
11047         * gutter.c (output_gutter): add some debug.
11048
11049         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11050         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11051         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11052
11053         * redisplay-output.c (compare_runes): use display_hash to
11054         determine if glyphs really are not the same.
11055
11056         * glyphs.c (update_subwindow): check display_hash to see if
11057         anything really needs to be updated. If not then do
11058         nothing. Record the display_hash after updating.
11059         (image_instance_equal): compare the image_instance face also.
11060
11061 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11062
11063         * redisplay.h: Fix comment style.
11064
11065 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11066
11067         * consle-msw.h (struct mswindows_frame):
11068         Added new member paint_pending to indicate whether a WM_PAINT
11069         magic event has been queued for this frame.
11070
11071         * event-msw.c (mswindows_drain_windows_queue):
11072         Don't queue a WM_PAINT magic event if one is already queued.
11073         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11074
11075         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11076
11077 2000-03-07  Didier Verna  <didier@xemacs.org>
11078
11079         * dired.c: #include `regex.h' after `sysfile.h'.
11080
11081 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11082
11083         * sound.c (init_nas_sound): Fix compiler warning.
11084
11085         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11086         (FREE_STRUCT_P):
11087         (MARK_STRUCT_AS_FREE):
11088         (MARK_STRUCT_AS_NOT_FREE):
11089         Make `gcc -fstrict-aliasing' work properly.
11090
11091 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11092
11093         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11094         (mswindows_delete_device): Call CoUnnitialize().
11095
11096         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11097
11098 2000-02-25    <CraigL@DyCon.com>
11099
11100         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11101         <errno.h>.
11102
11103         * sysdep.c: This extern declaration for environ prevents MinGW
11104         from finding the variable in CRTDLL.DLL.
11105
11106         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11107         windows headers.
11108         (SHGFI_EXETYPE): ..
11109         (WM_MOUSEWHEEL): ..
11110         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11111         definitions.
11112         (MMRESULT): Removed, now defined in cygwin's windows headers.
11113         (TIMECAPS): ..
11114         (uid_t,gid_t,pid_t,ssize_t): ..
11115         (_timeb): Removed, MinGW defines both _timeb and timeb.
11116         (HAVE_H_ERRNO): Added.
11117         (HAVE_TZNAME): Added, configure is not detecting this.
11118
11119 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11120
11121         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11122         * syntax.c (syntax_match): Use it.
11123
11124         * cmds.c: Import auto-fill-chars from FSF Emacs.
11125         (Vauto_fill_chars): New variables.
11126         (internal_self_insert): Check Vauto_fill_chars.
11127         (vars_of_cmds):
11128         Declare auto-fill-chars as a Lisp variable and initialize it.
11129
11130 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11131
11132         * fileio.c (Fmake_symbolic_link):
11133         (Ffile_symlink_p):
11134         Run handlers even if local machine doesn't have symlinks.
11135
11136 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11137
11138         * event-msw.c (mswindows_drain_windows_queue):
11139         Don't generate paint magic events for non-XEmacs frames.
11140
11141 2000-03-05  Andy Piper  <andy@xemacs.org>
11142
11143         * redisplay.c (redisplay_frame): generate_displayable_area and
11144         friends assumes that we are not in GC, we therefore have to make
11145         sure that this doesn't happen.
11146
11147         * gutter.c (calculate_gutter_size): generate_displayable_area
11148         assumes that we are not in GC, we therefore have to make sure that
11149         this doesn't happen.
11150
11151 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11152
11153         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11154
11155 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11156
11157         * redisplay.c (regenerate_window): Make sure we set a sane value
11158         for end_pos even if we jump out of the loop.
11159         (regenerate_window): Answer Ben's question :-).
11160         (start_end_of_last_line): Add may_error argument.
11161         (start_of_last_line):
11162         (end_of_last_line): Pass may_error = 0.
11163         (end_of_last_line_may_error): New function.
11164         (pixel_to_glyph_translation): Use it, so we don't crash in
11165         event_to_glyph.
11166
11167 2000-03-04  Andy Piper  <andy@xemacs.org>
11168
11169         * window.h (struct window): add gutter_extent_modiff.
11170
11171         * window.c (allocate_window): zero out gutter_extent_modiff.
11172
11173         * redisplay.h: declare sync_display_line_structs.
11174
11175         * redisplay.c (add_glyph_rune): add a better comment.
11176
11177         * redisplay-output.c (sync_display_line_structs): made non-static.
11178         (compare_runes): remove unneccesary glyph cachel access.
11179
11180         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11181
11182         * gutter.c (output_gutter): don't output the gutter if extent
11183         changes only involve extents in buffers. use 4 sets of display
11184         lines.
11185         (gutter_extent_signal_changed_region_maybe): new function. Mark
11186         extents in gutters as changed.
11187         (update_frame_gutters): use 4 sets of display lines.
11188         (reset_gutter_display_lines): ditto.
11189         (free_frame_gutters): ditto.
11190         (redraw_exposed_gutter): force output of gutters.
11191
11192         * frame.h (struct frame): add 4 sets of gutter display lines.
11193
11194         * extents.c: (extent_changed_for_redisplay): signal changes to
11195         extents in strings in the gutter as well as extents in buffers.
11196
11197 2000-03-02  Andy Piper  <andy@xemacs.org>
11198
11199         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11200
11201         * frame.c (Fmake_frame): make sure the gutters get initialized
11202         after the frame is visible.
11203         (set_frame_selected_window): re-arrange compilation macros a
11204         little.
11205         (change_frame_size_1): mark gutters changed.
11206
11207         * device.c (Fset_device_class): mark gutters changed.
11208
11209 2000-03-01  Andy Piper  <andy@xemacs.org>
11210
11211         * window.c (window_top_frame_gutter_height): deleted.
11212         (window_bottom_frame_gutter_height): ditto.
11213         (window_left_frame_gutter_height): ditto.
11214         (window_right_frame_gutter_height): ditto.
11215         (window_top_gutter_height): don't use them.
11216         (window_bottom_gutter_height): ditto.
11217         (window_left_gutter_width): ditto.
11218         (window_right_gutter_width): ditto.
11219         (Fsplit_window): ditto.
11220         (Fwindow_pixel_edges): don't use border dimensions here.
11221
11222         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11223         (update_scrollbar_instance): ditto.
11224
11225         * redisplay.c (generate_modeline): don't take gutters into account.
11226         (generate_modeline): ditto.
11227         (redisplay_frame): small gutter display optimization.
11228
11229         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11230
11231         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11232         gutters into account.
11233
11234         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11235         for window position and type.
11236
11237         * gutter.c (get_gutter_coords): fix for frame gutters.
11238         (update_frame_gutters): update frame geometry if the gutters have
11239         changed.
11240         (init_frame_gutters): record current gutter geometries.
11241
11242         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11243         var.
11244         (mswindows_widget_instantiate): ditto.
11245
11246         * frame.h (struct frame): add current_gutter_bounds.
11247
11248         * frame.c (change_frame_size_1): position window and minibuffer
11249         appropriately taking into account the frame gutters.
11250
11251         * frame-x.c: (x_initialize_frame_size): take into account the
11252         frame gutters.
11253
11254 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11255
11256         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11257
11258 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11259
11260         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11261
11262 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11263
11264         * file-coding.c (reset_decoding_stream): Clear previous
11265         detection state when autodetect.
11266
11267 2000-02-29  Didier Verna  <didier@xemacs.org>
11268
11269         * extents.c (set_extent_glyph_1): don't require extents to be
11270         attached.
11271
11272 2000-02-27  Andy Piper  <andy@xemacs.org>
11273
11274         * gutter.c (Fset_default_gutter_position): don't default left and
11275         right gutter visibility to t.
11276         (Fset_default_gutter_position): run
11277         default-gutter-position-changed-hook.
11278         (syms_of_gutter): add default-gutter-position-changed-hook.
11279
11280 2000-02-26  Andy Piper  <andy@xemacs.org>
11281
11282         * specifier.c (Fmake_specifier): add gutter references.
11283
11284         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11285
11286         * lisp.h: declare Fvalid_plist_p.
11287
11288         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11289         as changed.
11290         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11291         well as its visibility so that it gets reconstructed.
11292         (construct_window_gutter_spec): new function. Construct a string
11293         to be displayed in the gutter from a plist of strings. Take care
11294         to only use elements that are declared as visible.
11295         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11296         WINDOW_GUTTER.
11297         (gutter_validate): allow plists of strings in the specifier.
11298         (gutter_specs_changed): construct the real_gutter from the gutter
11299         specs using construct_window_gutter_spec.
11300         (gutter_visible_validate): gutter-visible is a new specifier type.
11301         (Fgutter_visible_specifier_p): new function for the new specifier.
11302         (syms_of_gutter): declare gutter-visible and
11303         Fgutter_visible_specifier_p.
11304         (specifier_type_create_gutter): intitalize new gutter-visible
11305         specifier.
11306         (reinit_specifier_type_create_gutter): ditto.
11307         (specifier_vars_of_gutter): use new specifier type for gutter
11308         visibility.
11309         (init_frame_gutters): construct real_gutter correctly.
11310         (Fgutter_specifier_p): beef up documentation.
11311         (Fgutter_size_specifier_p): ditto.
11312
11313         * winslots.h: add real_gutter slots.
11314
11315 2000-02-25  Andy Piper  <andy@xemacs.org>
11316
11317         * device-msw.c: Be kind to older cygwin versions. From Raymond
11318         Toy <toy@rtp.ericsson.se>.
11319
11320         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11321         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11322
11323 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11324
11325         * elhash.c (MARK_OBJ): Practice macro hygiene.
11326
11327 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11328
11329         * miscplay.c: s/__inline__/inline/g;
11330         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11331         (get_device_compdc): INLINE ==> static inline
11332         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11333         find -name '*.h' | \
11334         xargs global-replace \
11335         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11336
11337 2000-02-25  Andy Piper  <andy@xemacs.org>
11338
11339         * window.c (window_top_frame_gutter_height): new function.
11340         (window_top_window_gutter_height): ditto.
11341         (window_top_gutter_height): use them.
11342         (window_bottom_frame_gutter_height): new function.
11343         (window_bottom_window_gutter_height): ditto.
11344         (window_bottom_gutter_height): use them.
11345         (window_left_window_gutter_width): new function.
11346         (window_left_frame_gutter_width): ditto.
11347         (window_left_gutter_width): use them.
11348         (window_right_window_gutter_width): new function.
11349         (window_right_frame_gutter_width): ditto.
11350         (window_right_gutter_width): use them.
11351         (window_pixel_height): new function. calulate window pixel height
11352         with frame gutter involvement.
11353         (Fsplit_window): calculate new sizes taking frame gutters into
11354         account.
11355         (window_char_height_to_pixel_height): don't include frame gutters.
11356         (window_char_height): use window_pixel_height.
11357         (window_pixheight): rename from window_pixel_height.
11358         (change_window_height): use it.
11359         (window_pixel_height_to_char_height): don't include frame gutters.
11360         (window_char_width_to_pixel_width): ditto.
11361
11362 2000-02-25  Andy Piper  <andy@xemacs.org>
11363
11364         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11365         if it is.
11366
11367 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11368
11369         * alloc.c (staticpro):
11370         (staticpro_nodump):
11371         (dumpstruct):
11372         (dumpopaque):
11373         (pdump_wire):
11374         (pdump_wire_list):
11375         (compact_string_chars):
11376         (pdump_dump_wired):
11377         Convert:  if (foo) abort();  ==>  assert (! foo);
11378
11379         * eldap.c (Fldap_search_basic):
11380         (Fldap_add):
11381         (Fldap_modify):
11382         (Fldap_delete):
11383         Fix compiler warnings, and possible crashes if (random) return
11384         value were to be used.
11385
11386 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11387
11388         * device-msw.c: Workaround ResetDC failure.
11389
11390         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11391         applying a devmode.
11392
11393         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11394         (mswindows_text_width): Do not start printer page.
11395
11396         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11397
11398         * glyphs-msw.c: Added image methods to msprinter console and
11399         msprinter-specific image instantiation.
11400
11401 2000-02-20  Mike Alexander  <mta@arbortext.com>
11402
11403         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11404         to avoid crashes when selection-sets-clipboard is on
11405         (mswindows_own_selection): ditto
11406
11407 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11408
11409         * glyphs-msw.c:
11410         * redisplay-msw.c (get_frame_dc):
11411         (get_frame_compdc):
11412         * console-msw.h:
11413         * device-msw.c (mswindows_init_device):
11414         (mswindows_delete_device):
11415         (msprinter_init_device):
11416         (msprinter_delete_device):
11417         * frame-msw.c (mswindows_init_frame_1):
11418         (mswindows_delete_frame):
11419         (msprinter_init_frame_3):
11420         (msprinter_delete_frame): Move compatible DC to device object from
11421         frame object, for both mswindows and msprinter. Only one at a time
11422         is needed, it is a real waste to have one per frame!
11423
11424 2000-02-23  Andy Piper  <andy@xemacs.org>
11425
11426         * glyphs.c: add dynamic width and height elements.
11427         (image_instance_equal): ditto.
11428
11429         * glyphs-widget.c (widget_query_geometry): calculate width and
11430         height dynamically if required.
11431         (initialize_widget_image_instance): initialize dynamic dimensions.
11432         (widget_instantiate): pick-up dynamic dimensions.
11433
11434         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11435         dynamic determination. Add appropriate macros.
11436
11437         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11438         dimensions safe.
11439         (WINDOW_GUTTER_SIZE): ditto.
11440         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11441
11442         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11443         inline.
11444         (get_frame_dc): ditto.
11445
11446         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11447         here.
11448
11449 2000-02-23  Martin Buchholz <martin@xemacs.org>
11450
11451         * XEmacs 21.2.31 is released.
11452
11453 2000-02-22  Ben Wing <ben@xemacs.org>
11454
11455         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11456
11457 2000-02-22  Andy Piper  <andy@xemacs.org>
11458
11459         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11460
11461 2000-02-21  Mike Sperber <mike@xemacs.org>
11462
11463         * .dbxrc:
11464         * .gdbinit:
11465         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11466         variables.
11467
11468 2000-02-21  Mike Sperber <mike@xemacs.org>
11469
11470         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11471
11472 2000-02-21  Martin Buchholz <martin@xemacs.org>
11473
11474         * XEmacs 21.2.30 is released.
11475
11476 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11477
11478         Performance hacking.
11479         * *.c (syms_of_*):
11480         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11481         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11482         * emacs.c (main_1):
11483         * lisp.h (DEFUN):
11484         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11485         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11486         * symeval.h (DEFVAR_SYMVAL_FWD):
11487         * symbols.c (guts_of_unbound_marker):
11488         Make all c_readonly objects also lisp_readonly and marked for life.
11489         * lrecord.h (struct lrecord_implementation):
11490         Document flags better.
11491         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11492         * lrecord.h (DECLARE_LRECORD):
11493         * lrecord.h (XSETRECORD):
11494         * lrecord.h (RECORDP):
11495         * lrecord.h (RECORD_TYPEP):
11496         * lrecord.h (RECORD_MARKER): New.
11497         * lrecord.h (error_check_*):
11498         * lrecord.h (CONCHECK_NONRECORD):
11499         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11500         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11501         * lrecord.h (set_lheader_implementation):
11502         * lrecord.h (enum lrecord_type): New.
11503         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11504         * alloc.c (disksave_object_finalization_1):
11505         * alloc.c (mark_object):
11506         * alloc.c (lrecord_type_index):
11507         * alloc.c (tick_lcrecord_stats):
11508         * alloc.c (Fgarbage_collect):
11509         * alloc.c (init_alloc_once_early):
11510         * alloc.c (pdump_load):
11511         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11512         * alloc.c (lrecord_type_index): Delete.
11513         Make lisp object type indexes be constant.
11514           Makes (byte-compile) 5% faster.
11515         Put all marker functions into their own array.
11516           Makes (garbage-collect) 5% faster.
11517         Optimize SYMBOL_VALUE_MAGIC_P.
11518           Makes (byte-compile) 2-3% faster.
11519         * config.h.in (gc_checking_assert): New.
11520         * alloc.c: Use gc_checking_assert().
11521         * .dbxrc: Make compatible with new object type implementation.
11522         * .gdbinit: Make compatible with new object type implementation.
11523         * alloc.c: Delete all symbols defined only for debugging, such as
11524         Lisp_Type_Vector and lrecord_charset.
11525
11526 2000-02-21  Andy Piper  <andy@xemacs.org>
11527
11528         * gui-msw.c (Fmswindows_shell_execute): fix file location
11529         problems.
11530
11531         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11532         unshowing so that set_window_buffer doesn't undo
11533         kill_buffer_hook's hard work.
11534
11535         * glyphs-widget.c (tab_control_query_geometry): don't count the
11536         first item when calculating geometry.
11537
11538         * glyphs.c (map_subwindow): remove redundant code.
11539         (update_frame_subwindows): be more circumspect about when to
11540         update subwindows.
11541
11542         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11543         when items haven't changed. Update faces if faces have changed as
11544         well as just the widget face.
11545         (x_tab_control_update): Update faces if faces have changed as well
11546         as just the widget face.
11547
11548 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11549
11550         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11551         registration.
11552         (build_syscolor_string): Use mswindows_color_to_string to try to
11553         get a named color.
11554         (mswindows_device_system_metrics): Reverse the foreground and
11555         background colors so that they match the documentation.
11556
11557         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11558         they match the default Windows palette.
11559         (mswindows_color_to_string): New function.
11560
11561 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11562
11563         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11564
11565 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11566
11567         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11568         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11569
11570         * symbols.c (init_symbols_once_early): Removed obsolete
11571         DATA_SEG_BITS related kludge.
11572         (defvar_magic): Ditto.
11573
11574         * malloc.c: Removed obsolete DATA_SEG_BITS
11575         * ralloc.c: Ditto.
11576         * mem-limits.h: Ditto.
11577
11578         * Makefile.in.in: Removed obsolete HAVE_SHM
11579         * emacs.c: Ditto.
11580
11581 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11582
11583         *  device-msw.c (mswindows_delete_device): Free DDE string
11584         handles.
11585
11586 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11587
11588         * keymap.c (get_keyelt):
11589         * unexnt.c (unexec):
11590         * vm-limit.c (memory_warnings):
11591         * ntheap.c (recreate_heap):
11592         * ntheap.h (UNINIT_PTR):
11593         * select-msw.c (Fmswindows_get_clipboard):
11594         (Fmswindows_set_clipboard):
11595         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11596         * objects-msw.c:
11597         * menubar-msw.c (displayable_menu_item):
11598         * glyphs-msw.c:
11599         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11600         * sysdep.c (sys_subshell):
11601         * process-nt.c (nt_create_process):
11602         * nt.c (normalize_filename):
11603         (dostounix_filename):
11604         (unixtodos_filename):
11605         * ntproc.c (win32_executable_type):
11606         * ntplay.c (play_sound_data_1):
11607         (play_sound_file):
11608         * editfns.c (get_home_directory):
11609         * event-msw.c (struct winsock_stream):
11610         (mswindows_dde_callback):
11611         * device-msw.c (msprinter_init_device):
11612         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11613
11614         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11615         mswindows_clear_toolbar were swapped!
11616
11617         * objects-msw.c:(colormap_t):
11618         (fontmap_t):
11619         * emacs.c (struct standard_args): Fixed const jumble.
11620
11621         * glyphs-widget.c (update_widget): Fixed comparison notation.
11622
11623         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11624
11625         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11626         __declspec(noreturn) syntax.
11627
11628 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11629
11630         * eldap.c (Fldap_open):
11631         (Fldap_search_basic):
11632         (Fldap_add):
11633         (Fldap_modify):
11634         Use new coding system conversion macros.
11635
11636 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11637
11638         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11639
11640 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11641
11642         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11643         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11644
11645         * eldap.c (Qadd, Qreplace): New constant symbols
11646         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11647         interruptions by XEmacs signals
11648         Remove unnecessary calls to slow_down_interrupts and
11649         speed_up_interrupts
11650         (Fldap_search_basic): Renamed from Fldap_search_internal
11651         Added new optional parameter VERBOSE that triggers the
11652         display of progress messages
11653         Remove unnecessary calls to slow_down_interrupts and
11654         speed_up_interrupts
11655         LDAP result code analysis rewritten
11656         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11657         (syms_of_eldap): Define the new symbols and functions
11658
11659
11660 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11661
11662         * realpath.c: Determine PATH_MAX maximally portably.
11663
11664         * insdel.c (bytecount_to_charcount): Optimize.
11665         The function used to be optimized for entirely ASCII sequences.
11666         Now it is optimized for successive characters from the same
11667         charset.  This also wins big for _mostly_ ASCII sequences.
11668
11669         * fileio.c (Ffile_truename): convert return from realpath() using
11670         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11671         - Rewrite GCPROing slightly.
11672
11673         * sysdep.c (sys_open): Do filename conversion, like all other
11674         sys_* functions.  Fixes bug:
11675         (let ((file-name-coding-system 'iso-8859-2))
11676            (write-region x y latin2-name))
11677         ==> writes filename using internal encoding.
11678
11679 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11680
11681         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11682         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11683         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11684         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11685         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11686         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11687         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11688         (CONST_IF_NOT_DEBUG): Delete.
11689         * alloc.c (this_one_is_unmarkable): Delete.
11690         (mark_object): Don't check for this_one_is_unmarkable. Use the
11691         c_readonly flag instead.
11692         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11693
11694 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11695
11696         * event-msw.c (mswindows_drain_windows_queue):
11697         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11698         away redundant repaint events.
11699
11700 2000-02-17  Andy Piper  <andy@xemacs.org>
11701
11702         * redisplay.h: declare mark_redisplay_structs.
11703
11704         * redisplay.c (redisplay_window):
11705         (redisplay_frame): don't check subwindows_state_changed.
11706         (mark_redisplay): mark gutters here.
11707
11708         * glyphs.c: (instantiate_image_instantiator): always layout if we
11709         haven't done so already.
11710         (allocate_image_instance): don't mark as dirty.
11711         (update_subwindow): bind inhibit_quit.
11712
11713         * gutter.c (mark_gutters): new function.
11714
11715         * glyphs-x.c (x_update_widget): Always resize to get round a
11716         widget bug.
11717
11718         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11719         breaking absolutely everything.
11720
11721         * gutter.h: declare mark_gutters.
11722
11723 2000-02-16  Martin Buchholz <martin@xemacs.org>
11724
11725         * XEmacs 21.2.29 is released.
11726
11727 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11728
11729         * fns.c (size_bit_vector): Fix computation of the size.
11730
11731 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11732
11733         * *.[ch]: Change CONST to const globally.
11734         find -name '*.[ch]' | \
11735         xargs global-replace \
11736         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11737         - Remove vestigial references to CONST_IS_LOSING
11738
11739 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11740
11741         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11742         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11743         events instead of dispatching them directly.
11744         (mswindows_handle_paint): New function to do repainting.
11745         (mswindows_wnd_proc):
11746         (emacs_mswindows_handle_magic_event): Call above function.
11747
11748 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11749
11750         * objects-msw.c (mswindows_create_font_variant): Return the new
11751         font handle.
11752         (initialize_font_instance): Get font metrics from the underlined
11753         variant of the font to cope with the case where the underlined
11754         font has a bigger descent.
11755
11756 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11757
11758         * gui.c (gui_item_accelerator): Return the first underlined
11759         character in item name.
11760
11761 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11762
11763         * lisp.h: Added Qprinter.
11764
11765         * general.c (syms_of_general): Initialized it.
11766
11767         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11768         (get_frame_dc):
11769         (get_frame_compdc): Made inline.
11770
11771         * console.h (struct console_methods): Added eject_page method.
11772
11773         * frame.h: Added FRAME_DISPLAY_P and friends.
11774         Aligned backslahes in many macros in more readable fashion.
11775         Added page_number to struct frame, and an accessor macro
11776         for it.
11777
11778         * defice.h: Added DEVICE_DISPLAY_P and friends.
11779
11780         * device.c (Fdevice_printer_p): Used these.
11781
11782         * frame.c (allocate_frame_core): Initialize page number.
11783         (Fprint_job_page_number):
11784         (Fprint_job_eject_page): Implemented.
11785
11786         * frame-msw.c (msprinter_eject_page): Added method.
11787         (msprinter_start_page): Added.
11788
11789         * window.c (Fwindow_truncated_p): Fixed docstring.
11790         (Fwindow_last_line_visible_height): Implemented.
11791
11792 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11793
11794         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11795
11796 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11797
11798         * syntax.c (scan_words): Always advance at least one character.
11799
11800 2000-02-13  Andy Piper  <andy@xemacs.org>
11801
11802         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11803         to make sure the glyph is in the cachels.
11804
11805         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11806         global image instance flag.
11807         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11808         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11809
11810         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11811         (Fset_image_instance_property): mark layout as changed.
11812         (invalidate_glyph_geometry_maybe): mark layout as changed.
11813         (glyph_width): use new NEEDS_LAYOUT macro.
11814         (glyph_ascent): ditto.
11815         (glyph_descent): ditto.
11816         (glyph_height): ditto.
11817         (image_instance_layout): mark layout as clean after laying out.
11818         (update_subwindow): don't mark layout as clean here.
11819
11820         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11821         should no longer be needed.
11822
11823         * glyphs-x.c (x_update_widget): sanitize asserts.
11824         (x_finalize_image_instance): sanitize assignment to widgets.
11825
11826         * glyphs-widget.c (widget_instantiate): don't need to clear the
11827         layout flag here.
11828
11829 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11830
11831         * sysdep.c (getcwd): Use standard prototype.
11832         * sysdep.h (getcwd): Use standard prototype.
11833
11834         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11835         (sequence, start, end).
11836         Remove redundant type checking.
11837         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11838         view of `caller-protects') to avoid a crash where the real fix was
11839         found elsewhere.
11840
11841 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11842
11843         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11844
11845         * s/sol2.h: Remove feature macro initialization.
11846
11847         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11848         (vector_hash): New.  Code from internal_hash.
11849         * lrecord.h:
11850         Fix up allocation subsystem comments.
11851
11852         * config.h.in: Add __EXTENSIONS__ for Solaris.
11853
11854         * systime.h (EMACS_GETTIMEOFDAY): New.
11855         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11856         Remove Solaris-specific code.
11857         Use void* for the (ignored) second arg for gettimeofday().
11858
11859         * elhash.c (hash_table_hash): Implement it, finally.
11860         * elhash.c:  Use hashcode_t.
11861
11862         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11863         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11864
11865         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11866         * fns.c (size_bit_vector):
11867         * alloc.c (size_vector):
11868         (make_vector_internal):
11869         (make_bit_vector_internal):
11870         (sweep_bit_vectors_1):
11871         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11872
11873 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11874
11875         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11876         Include strings.h to avoid warnings for bzero and strcasecmp.
11877
11878 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11879
11880         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11881         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11882
11883         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11884         sequence.
11885
11886 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11887
11888         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11889         use a value field instead.
11890         (symbol_value_forward_forward): Use value field.
11891         (DEFVAR_SYMVAL_FWD): Use value field.
11892         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11893         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11894         (DEFVAR_CONST_INT): Ditto.
11895         (DEFVAR_BOOL): Ditto.
11896         (DEFVAR_CONST_BOOL): Ditto.
11897         (DEFVAR_INT_MAGIC): Ditto.
11898         (DEFVAR_BOOL_MAGIC): Ditto.
11899
11900         * symbols.c (guts_of_unbound_marker): Use value field.
11901         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11902         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11903
11904         * lisp.h: Declare dumpopaque and noninteractive1.
11905
11906         * alloc.c (dumpopaque): Added.
11907         (pdump_dump_opaquevec): Added.
11908         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11909         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11910         noninteractive.
11911
11912 2000-02-10  Andy Piper  <andy@xemacs.org>
11913
11914         * glyphs.c (image_instance_layout): if the size changes, mark it
11915         as such.
11916
11917         * redisplay-output.c (redisplay_output_layout): Update the
11918         subwindow here.
11919         (redisplay_output_subwindow): ditto.
11920
11921         * glyphs.c (update_subwindow): make sure we reset flags for
11922         layouts as well as everything else.
11923
11924         * glyphs-widget.c (layout_layout): don't need to set the instances
11925         dimensions here.
11926
11927 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11928
11929         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11930         not HAVE_DLOPEN, which is a lower-level thing.
11931
11932         * .cvsignore: Ignore gmon.out
11933
11934 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11935
11936         * .cvsignore: Ignore portable dumper xemacs.dmp file
11937
11938 2000-02-09  Andy Piper  <andy@xemacs.org>
11939
11940         * redisplay-output.c (redisplay_output_layout): be more clever
11941         about when we output based on the changed flags.
11942
11943         * glyphs.h (struct image_instantiator_methods): add update_method.
11944         (struct Lisp_Image_Instance): add changed flags. Declare new
11945         macros for manipulating them.
11946
11947         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11948         (image_instance_parent_glyph): find an image_instance's parent
11949         glyph or image_instance.
11950         (image_instance_layout): mark the size as changed.
11951         (set_image_instance_dirty_p): new function. mark an image
11952         instance, plus all of its parents, as dirty.
11953         (Fset_image_instance_property): use it.
11954         (Fglyph_animated_timeout_handler): use it.
11955         (update_subwindow): call update_widget and device methods for
11956         update_subwindow. Mark all changed flags as clean.
11957         (Fresize_subwindow): mark size as changed.
11958
11959         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11960         failures.
11961         (x_update_subwindow): only resize subwindows here.
11962         (x_update_widget): new function. Update all changed properties of
11963         a widget.
11964         (x_resize_subwindow): deleted.
11965         (x_widget_set_property): deleted.
11966         (x_progress_gauge_set_property): deleted.
11967         (x_progress_gauge_update): new function. Implement recorded
11968         changes.
11969         (x_tab_control_update): ditto.
11970         (x_tab_control_set_property): deleted.
11971         (console_type_create_glyphs_x): declare new functions.
11972         (image_instantiator_format_create_glyphs_x): ditto.
11973
11974         * glyphs-widget.c (widget_set_property): mark text changed.
11975         (update_widget): new function. Update properties of a widget.
11976         (widget_instantiate): for layouts make sure we set their
11977         children's parent correctly.
11978         (tab_control_set_property): new function. Record changes that will
11979         take place under redisplay's control.
11980         (progress_gauge_set_property): ditto.
11981         (image_instantiator_progress_guage): declare new functions.
11982         (image_instantiator_tab_control): ditto.
11983
11984         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11985         now.
11986         (mswindows_update_widget): new function. Update all properties on
11987         a widget that have changed.
11988         (mswindows_button_update): new function. Update a button's set
11989         state.
11990         (mswindows_tab_control_update): new function. Update the items in
11991         a tab.
11992         (mswindows_tab_control_set_property): deleted.
11993         (mswindows_progress_gauge_update): new function. Update the
11994         progress gauge's progress.
11995         (mswindows_widget_set_property): deleted. This is all done
11996         asynchronously now.
11997         (mswindows_progress_gauge_set_property): ditto.
11998         (console_type_create_glyphs_mswindows): declare new methods.
11999         (image_instantiator_format_create_glyphs_mswindows): ditto.
12000
12001         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12002         (msprinter_set_frame_properties): ditto.
12003
12004         * console.h (struct console_methods): Add update_widget_method.
12005
12006 2000-02-09  Andy Piper  <andy@xemacs.org>
12007
12008         * gui-msw.c (Fmswindows_shell_execute): Make
12009         mswindows-shell-execute industrial strength.
12010
12011 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12012
12013         * lrecord.h: Make macro argument `props' match member function `plist'.
12014         * fns.c (Fget):
12015         * fns.c (Fput):
12016         * fns.c (Fremprop):
12017         * fns.c (Fobject_plist):
12018         * alloc.c:
12019         * symbols.c:
12020         Object property list frobbing cleanup.
12021         - Allow any lisp object (compared with `eq'), not just symbols, as
12022           keys in object plists.
12023         - Move symbol plist frobbing into symbols.c, where it belongs.
12024         - Move string plist frobbing into alloc.c, where it belongs.
12025         - Everything's an lrecord now, so no need to test for symbolp, etc.
12026         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12027
12028         * extents.c: Reorder code to remove declarations.
12029
12030         * frame.h (store_in_alist): Remove useless declaration.
12031
12032 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12033
12034         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12035         * config.h.in: Add HAVE_XCONVERTCASE.
12036
12037 2000-02-07  Andy Piper  <andy@xemacs.org>
12038
12039         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12040         it breaks many things.
12041
12042 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12043
12044         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12045         actually can start a common comment type.
12046         * src/syntax.h (SYNTAX_END_P): ditto for end.
12047
12048 2000-02-07  Martin Buchholz <martin@xemacs.org>
12049
12050         * XEmacs 21.2.28 is released.
12051
12052 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12053
12054         * event-Xt.c (x_keysym_to_character): New.
12055         (maybe_define_x_key_as_self_inserting_character): New.
12056         (x_has_keysym): New.
12057         Auto-define all keys on the keyboard as self-insert-key.
12058
12059 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12060
12061         * menubar.c (vars_of_menubar): A small code simplification.
12062
12063         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12064
12065         * ExternalShell.c:
12066         * ExternalClient.c:
12067         * EmacsShell-sub.c:
12068         * EmacsManager.c:
12069         * EmacsFrame.c:
12070         Use consistent style for specifying X resources.
12071
12072         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12073         This makes (dontusethis-set-symbol-value-handler) actually usable.
12074
12075         * lrecord.h (lrecord_decription_type):
12076         * alloc.c (pdump_register_sub):
12077         (pdump_dump_data):
12078         (pdump_reloc_one):
12079         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12080         Comply with XEmacs coding style.
12081         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12082         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12083
12084         * keymap.c (Faccessible_keymaps):
12085         Make (accessible-keymaps map "\C-h") do the Right Thing.
12086         Make (accessible-keymaps map []) do the Right Thing.
12087         Make (accessible-keymaps map "") do the Right Thing.
12088         (check_keymap_definition_loop): New function.
12089         (keymap_store_internal): Keep luser from shooting self in foot,
12090           via (define-key ctl-x-4-map "p" global-map).
12091         Remove fullness slot from struct Lisp_Keymap, since hash tables
12092         are now reliable.
12093         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12094
12095 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12096
12097         * redisplay.c (init_redisplay): Fix small memory leak.
12098         * elhash.h:
12099         * elhash.c (pdump_reorganize_hash_table):
12100         Rename from reorganize_hash_table. Change prototype.
12101         Reuse the original memory for hentries.  Save 100k.
12102         * alloc.c (PDUMP_READ): new macro.
12103         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12104         * alloc.c: No need to #ifndef before #undef.
12105
12106         * print.c: Allow debug_print() to print readably by modifying
12107         debug_print_readably.  Use consistent variable names.
12108
12109         * .dbxrc: Try to get things to work even if stopped in a function
12110         without source available by explicitly specifying source files.
12111 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12112
12113         * unexnt.c (_start): Removed bogus code which caused loading heap
12114         from differrent executable file.
12115         Removed bogus assignment to _fmode, which caused inconsistencies.
12116
12117 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12118
12119         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12120         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12121         Do not preliminary `#define signal sigset'.
12122
12123         * systime.h: Do not prototype environ on windows nt and cygwin,
12124         this conflicts with system header.
12125
12126         * syssignal.h: Use correct define for WINDOWSNT
12127
12128         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12129         with system header.
12130
12131         * sysdep.c (near start of file): Fixed commentary and rearranged
12132         ifdefs in readable order.
12133         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12134         (start_of_text):
12135         (end_of_text):
12136         (end_of_data): Do not compile in if using PDUMP.
12137
12138         * symsinit.h: Prototyped vars_of_nt().
12139
12140         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12141         (find_child_console): Use it.
12142         (sys_kill): Use it.
12143
12144         * ntheap.h: Do not extern os_subtype.
12145
12146         * ntheap.c (cache_system_info): Do not cache unneeded:
12147         nt_major_version, nt_minor_version and os_subtype.
12148         (recreate_heap): Do not compile in when PDUMPing.
12149
12150         * nt.c (geteuid and friends): Use the new varibale
12151         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12152         (init_user_info): Removed the above mentioned hackery.
12153         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12154         stat has been fixed in the C runtime.
12155         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12156
12157         * file-coding.c (struct file_coding_dump): Do not define
12158         ucs_to_mule_table in the struct if not MULE.
12159         (struct struct lrecord_description fcd_description_1): Do not dump
12160         the above.
12161
12162         * emacs.c (main_1): Call vars_of_nt().
12163         (right before Fdump_emacs_data): Don't need lastfile if using both
12164         portabe dumper and system malloc.
12165
12166         * alloc.c (Fmemory_limit): Conditionalized out.
12167         (pdump): Use OPEN_BINARY for the portable dump file.
12168         (pdump_load): Ditto.
12169
12170 2000-02-02  Mike Alexander  <mta@arbortext.com>
12171
12172         * nt.c (convert_time): Set tm_isdst before calling mktime and
12173         avoid calling it at all if the compiler supports 64 bit integers.
12174         Also initialize utc_base_ft before using it.
12175
12176 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12177
12178         * frame.c (change_frame_size_1): Take f->internal_border_width
12179         into consideration when calculating the width of the frame.
12180
12181 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12182
12183         * window.c (frame_min_height):
12184         (frame_size_valid_p):
12185         (frame_pixsize_valid_p): Added.
12186         (check_frame_size): Generalized.
12187
12188         * window.h: Prototyped the above.
12189
12190         * lisp.h:
12191         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12192         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12193         Deleted Vwin32_* and Vbinary_process_* unused variables.
12194
12195         * device-msw.c (msprinter_init_device): Do not get printer font
12196         list; Added DEVMODE functions.
12197
12198         * frame-msw.c: Added lots of printer code.
12199
12200         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12201         general.c.
12202
12203         * console-msw.h: Added more msprinter device private slots.
12204
12205 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12206
12207         * event-msw.c (key_needs_default_processing_p): Added.
12208         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12209
12210 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12211
12212         * glyphs.c (image_instance_layout): Mark image instance as clean
12213         after layout.
12214         (glyph_dirty_p): Removed redundant function.
12215         (invalidate_glyph_geometry_maybe): Added.
12216         (update_glyph_cachel_data): Call it.
12217
12218         * glyphs.h: Prototyped it.
12219
12220         * redisplay.c (add_glyph_rune): Call it.
12221         (redisplay_window): Reset glyphs cachels when frame faces have
12222         changed, thus forcing recomputation of built-in border glyphs.
12223
12224 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12225
12226         * Makefile.in.in: Make portable dumper and purify play well together.
12227         Add imperfect, but better than nothing, support for pdump.
12228         Remove xemacs.dmp when temacs is re-generated.
12229         Don't ignore errors when dumping xemacs.
12230
12231         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12232
12233 2000-01-28  Andy Piper  <andy@xemacs.org>
12234
12235         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12236         (setup_normal_frame): ditto.
12237         (setup_frame_without_minibuffer): ditto.
12238         (setup_minibuffer_frame): ditto.
12239         (delete_frame_internal): ditto.
12240         (Fmake_frame_invisible): ditto.
12241         (Ficonify_frame): ditto.
12242
12243         * window.h: change Fset_window_buffer signature.
12244
12245         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12246         (Fset_window_buffer): allow recording of buffer if the window is
12247         the selected window.
12248         (window_loop): Use new Fset_window signature.
12249
12250 2000-01-23  Daniel Pittman  <daniel@danann.net>
12251
12252         * config.h.in: Added template for `HAVE_ATHENA_3D'
12253
12254 2000-01-29  Andy Piper  <andy@xemacs.org>
12255
12256         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12257
12258         * gutter.c (output_gutter): Don't output if the window isn't live.
12259
12260 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12261
12262         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12263         of 01/12/00: Moved SetFocus back here where it belongs.
12264
12265 2000-01-23  Andy Piper  <andy@xemacs.org>
12266
12267         * s/cygwin32.h: declare printer things.
12268
12269 2000-01-26  Andy Piper  <andy@xemacs.org>
12270
12271         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12272         Alexander.
12273
12274 2000-01-24  Andy Piper  <andy@xemacs.org>
12275
12276         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12277         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12278
12279         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12280
12281         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12282
12283         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12284
12285         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12286         (mswindows_output_display_block): Avoid local shadows.
12287
12288         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12289         (mswindows_enqueue_mouse_button_event): ditto.
12290         (mswindows_handle_gui_wm_command): remove declaration.
12291
12292         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12293         warnings.
12294
12295         * console-msw.h: Avoid shadows.
12296         (mswindows_get_toolbar_button_text):
12297         (emacs_mswindows_create_stream_pair):
12298         (emacs_mswindows_delete_stream_pair):
12299         (mswindows_handle_toolbar_wm_command): declare.
12300
12301         * device-msw.c (build_syscolor_string): Avoid shadows.
12302
12303 2000-01-23  Andy Piper  <andy@xemacs.org>
12304
12305         * glyphs-widget.c (widget_instantiate): reverse the items for
12306         layouts so that children are in the expected order.
12307
12308 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12309
12310         * ralloc.c: safe_bcopy ==> memmove
12311         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12312         * s/msdos.h: Remove BCOPY macros.
12313         * insdel.c (gap_right): Remove BCOPY conditional code.
12314         * insdel.c (gap_left): Remove BCOPY conditional code.
12315         XEmacs demands a working ANSI C compiler - hence memmove.
12316
12317         * regex.c (regex_compile): Remove accidental use of trigraphs.
12318
12319 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12320
12321         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12322         event timestamp.
12323
12324 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12325
12326         * event-msw.c (mswindows_drain_windows_queue): Added the
12327         parameter.
12328         (mswindows_need_event): Commented the call to
12329         mswindows_drain_windows_queue().
12330         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12331         only.
12332
12333         * console-msw.h: Moved a few function prototypes here from
12334         event-msw.c.
12335
12336         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12337         parameter from unsigned short to unsigned long.
12338         (Fmswindows_shell_execute): Added return value.
12339
12340 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12341
12342         * sysdep.c (init_system_name):
12343           process-unix.c (unix_canonicalized_host_name):
12344         Don't call freeaddrinfo() if getaddrinfo() fails.
12345
12346         * process-unix.c (unix_open_unix_network_stream):
12347         Moved the code to get a port # into address loop.
12348
12349 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12350
12351         * buffer.c (reinit_vars_of_buffer):
12352         The right place to initialize conversion_in_dynarr and
12353         conversion_out_dynarr.
12354
12355         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12356
12357         * process-unix.c (unix_canonicalize_host_name): Muleize.
12358         (unix_open_network_stream): Muleize.
12359
12360         * buffer.h: Fix up prototypes for ralloc.c functions.
12361
12362 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12363         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12364         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12365                 instead of gethostbyname()
12366         * process-unix.c: In unix_canonicalize_host_name() and
12367                 unix_open_network_stream(), add code to use getaddrinfo()
12368                 instead of gethostbyname().
12369
12370 2000-01-27  Daniel Pittman <daniel@danann.net>
12371
12372         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12373         libs when built with flat Athena.
12374
12375 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12376
12377         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12378         Use coding standards for function prototypes.
12379
12380 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12381
12382         * dialog-msw.c (push_lisp_string_as_unicode):
12383         * doc.c (unparesseuxify_doc_string):
12384         * dired.c (Fuser_name_completion_1):
12385         * dired.c (Fuser_name_all_completions):
12386         * dired.c (free_user_cache):
12387         * dired.c (user_name_completion):
12388         * console-x.c (get_display_arg_connection):
12389         * minibuf.c (clear_echo_area_internal):
12390         * minibuf.c (echo_area_append):
12391         * eldap.c (Fldap_open):
12392         * eldap.c (Fldap_search_internal):
12393         * frame-x.c (x_set_frame_text_value):
12394         * frame-x.c (x_set_frame_properties):
12395         * frame-x.c (x_create_widgets):
12396         * redisplay-tty.c (term_get_fkeys_1):
12397         * objects-x.c (x_parse_nearest_color):
12398         * objects-x.c (x_valid_color_name_p):
12399         * objects-x.c (x_initialize_font_instance):
12400         * objects-x.c (x_list_fonts):
12401         * objects-x.c (x_find_charset_font):
12402         * tooltalk.c (Fadd_tooltalk_message_arg):
12403         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12404         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12405         * process-unix.c (unix_create_process):
12406         * ntproc.c (sys_spawnve):
12407         * sound.c (Fplay_sound_file):
12408         * sound.c (Fplay_sound):
12409         * buffer.c (init_initial_directory):
12410         * buffer.c (init_buffer):
12411         * editfns.c (init_editfns):
12412         * editfns.c (Ftemp_directory):
12413         * editfns.c (Fuser_full_name):
12414         * editfns.c (uncache_home_directory):
12415         * editfns.c (get_home_directory):
12416         * editfns.c (Fuser_home_directory):
12417         * editfns.c (Fformat_time_string):
12418         * editfns.c (Fcurrent_time_string):
12419         * gui-x.c (button_item_to_widget_value):
12420         * database.c (Fopen_database):
12421         * event-Xt.c (x_to_emacs_keysym):
12422         * event-Xt.c (x_event_to_emacs_event):
12423         * event-Xt.c (describe_event_window):
12424         * event-msw.c (mswindows_wnd_proc):
12425         * glyphs-eimage.c (jpeg_instantiate):
12426         * glyphs-eimage.c (gif_instantiate):
12427         * glyphs-eimage.c (png_instantiate):
12428         * glyphs-eimage.c (tiff_instantiate):
12429         * glyphs-x.c (xbm_instantiate_1):
12430         * glyphs-x.c (x_xbm_instantiate):
12431         * glyphs-x.c (x_xface_instantiate):
12432         * glyphs-x.c (autodetect_instantiate):
12433         * glyphs-x.c (cursor_font_instantiate):
12434         * glyphs-x.c (x_widget_instantiate):
12435         * glyphs-x.c (x_widget_set_property):
12436         * glyphs-x.c (x_widget_property):
12437         * glyphs-x.c (BUILD_GLYPH_INST):
12438         * print.c (write_string_to_stdio_stream):
12439         * print.c (output_string):
12440         * print.c (Falternate_debugging_output):
12441         * print.c (Fexternal_debugging_output):
12442         * glyphs-msw.c (extract_xpm_color_names):
12443         * glyphs-msw.c (mswindows_xpm_instantiate):
12444         * glyphs-msw.c (bmp_instantiate):
12445         * glyphs-msw.c (resource_name_to_resource):
12446         * glyphs-msw.c (mswindows_resource_instantiate):
12447         * glyphs-msw.c (xbm_instantiate_1):
12448         * glyphs-msw.c (mswindows_xbm_instantiate):
12449         * glyphs-msw.c (mswindows_xface_instantiate):
12450         * glyphs-msw.c (mswindows_widget_instantiate):
12451         * glyphs-msw.c (add_tree_item):
12452         * glyphs-msw.c (add_tab_item):
12453         * glyphs-msw.c (mswindows_combo_box_instantiate):
12454         * glyphs-msw.c (mswindows_widget_property):
12455         * glyphs-msw.c (mswindows_combo_box_property):
12456         * glyphs-msw.c (mswindows_widget_set_property):
12457         * console.c (stuff_buffered_input):
12458         * objects-msw.c (mswindows_initialize_color_instance):
12459         * objects-msw.c (mswindows_valid_color_name_p):
12460         * objects-msw.c (mswindows_list_fonts):
12461         * objects-msw.c (mswindows_font_instance_truename):
12462         * bytecode.c (optimize_compiled_function):
12463         * select-x.c (symbol_to_x_atom):
12464         * select-x.c (x_atom_to_symbol):
12465         * select-x.c (hack_motif_clipboard_selection):
12466         * select-x.c (selection_data_to_lisp_data):
12467         * select-x.c (lisp_data_to_selection_data):
12468         * select-x.c (Fx_get_cutbuffer_internal):
12469         * select-x.c (Fx_store_cutbuffer_internal):
12470         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12471         * buffer.h (TO_INTERNAL_FORMAT): New function.
12472         * emacs.c (make_arg_list_1):
12473         * emacs.c (make_argc_argv):
12474         * emacs.c (main_1):
12475         * emacs.c (Fdump_emacs):
12476         * emacs.c (split_string_by_emchar_1):
12477         * file-coding.h:
12478         * lisp.h:
12479         * lstream.h:
12480         * symsinit.h:
12481         * device-x.c (x_init_device):
12482         * device-x.c (Fx_valid_keysym_name_p):
12483         * device-x.c (Fx_get_font_path):
12484         * device-x.c (Fx_set_font_path):
12485         * glyphs.c (bitmap_to_lisp_data):
12486         * glyphs.c (pixmap_to_lisp_data):
12487         * alloc.c (make_ext_string): Use coding system arguments.  Update
12488         all callers.
12489         * alloc.c (build_string):
12490         * callproc.c (child_setup):
12491         * callproc.c (init_callproc):
12492         * fileio.c (lisp_strerror):
12493         * fileio.c (directory_file_name):
12494         * fileio.c (Fexpand_file_name):
12495         * fileio.c (Ffile_truename):
12496         * fileio.c (Fsysnetunam):
12497         * fileio.c (Fdo_auto_save):
12498         * sysdep.c (sys_readdir):
12499         * tests.c: New file.  Allow adding C tests.
12500         Replace GET_* macros with a more comprehensible and flexible
12501         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12502         Modify all calls.
12503         Any coding system can be used to do format conversion.
12504         Eliminate enum external_data_format.
12505         Eliminate convert_to_external_format.
12506         Eliminate convert_to_internal_format.
12507         Make sure file-name, keyboard, terminal, and ctext are always
12508         defined as coding systems or aliases.  Make
12509         file-name-coding-system, terminal-coding-system, and
12510         keyboard-coding-system magical variables that are equivalent to
12511         defining the corresponding coding system aliases.
12512
12513         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12514         * file-coding.c (Fcoding_system_alias_p): New function.
12515         * file-coding.c (Fcoding_system_aliasee): New function.
12516         * file-coding.c (append_suffix_to_symbol): New function.
12517         * file-coding.c (dangling_coding_system_alias_p): New function.
12518         * file-coding.c (Ffind_coding_system):
12519         * file-coding.c (Fcopy_coding_system):
12520         * file-coding.c (encode_coding_no_conversion):
12521         * file-coding.c (syms_of_file_coding):
12522         * file-coding.c (vars_of_file_coding):
12523         Rewrite coding system alias code.
12524         Allow nested aliases, like symbolic links.
12525         Allow redefinition of coding system aliases.
12526         Prevent existence of dangling coding system aliases.
12527
12528         * dired.c (Fuser_name_completion_1):
12529         * dired.c (Fuser_name_all_completions):
12530         A crash would happen if user did QUIT in the middle of building
12531         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12532
12533         * lisp.h:
12534         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12535
12536         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12537         an unsigned char *.  Update all callers.
12538
12539 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12540
12541         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12542
12543 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12544
12545         * elhash.c (hentry_description): Use more portable definition.
12546         (resize_hash_table): Initialize new hentries using
12547         xnew_array_and_zero, thereby simplifying the code.
12548
12549         * mule-charset.c (make_charset): Make sure entire object is
12550         initialized, to avoid Purify warnings.
12551
12552         * alloc.c (resize_string): Fix unlikely crash with big strings.
12553
12554 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12555
12556         * realpath.c (xrealpath):
12557         Don't call getwd().
12558
12559 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12560
12561         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12562
12563 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12564
12565         * unexelfsgi.c (unexec): Change the way we decide which segment
12566         should be extended.
12567
12568         Assumption that .bss section should be outside the PT_LOADable
12569         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12570         it's present) is inside the 'data' segment. This would fail the
12571         test which was used to find a segment to grow and cover new
12572         heap. Instead of this assumption, I created another one - on IRIX
12573         the segment to grow should start below .bss and it's address
12574         should extent above the end of .bss. Once this segment is
12575         identified, it's grown to accommodate the new heap and new
12576         zero-length .bss section is added at the end of .data2.
12577
12578 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12579
12580         * eval.c (Feval): Wrong number of arguments should use original
12581         function, not the indirect_function version of it.
12582
12583 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12584
12585         * glyphs-x.c (x_button_instantiate): Don't add image if
12586         it is not a pixmap.
12587         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12588         is relative.
12589
12590 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12591
12592         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12593         declaration.
12594         (DEFVAR_INT_MAGIC): Ditto.
12595         (DEFVAR_BOOL_MAGIC): Ditto.
12596         * glyphs.h: Reindent backslash.
12597
12598 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12599
12600         * glyphs-widget.c (layout_query_geometry):
12601         (layout_layout): Use correct types for gheight, gwidth.
12602
12603 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12604
12605         * EmacsManager.c (QueryGeometry): Purified.
12606
12607 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12608
12609         * alloc.c (make_float): Make sure entire object is initialized, to
12610         avoid Purify warnings.
12611         (pdump_register_sub): Remove useless assignment.
12612         (pdump): Use xmalloc, not malloc.
12613         (pdump_load): Use xmalloc, not malloc.
12614
12615 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12616
12617         * callproc.c:
12618         * dired-msw.c:
12619         * fileio.c:
12620         * process-nt.c:
12621         * redisplay-msw.c:
12622         * sysdep.c: Removed redundant #include <windows.h>
12623
12624 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12625
12626         * frame.c (delete_frame_internal): Do not delete device when its
12627         implementation so declares.
12628         (delete_frame_internal): Set device selected frame to nil when
12629         last frame goes away.
12630
12631         * device-msw.c (msprinter_device_system_metrics): Implemented.
12632         (mswindows_device_system_metrics): Added 'device-dpi property.
12633
12634         * device.c: (Fdevice_printer_p): Added.
12635         Added 'offset-workspace device metric.
12636
12637         * console.h (device_metrics): Declared DM_offset_workspace.
12638
12639 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12640
12641         * fileio.c (Ffile_truename): Remove pointless and confusing
12642         initialization of elen.
12643
12644         * glyphs-widget.c: Compiler warning fixes.
12645
12646 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12647
12648         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12649         instead of a Lisp_Object as argument to make it consistent with
12650         the other LIVE_P macros.
12651         (CHECK_LIVE_PROCESS): New macro.
12652
12653         * process.c: Declare Qprocess_live_p.
12654         (Fprocess_live_p): New function.
12655         (create_process): Use PROCESS_LIVE_P.
12656         (read_process_output): Ditto.
12657         (set_process_filter): Ditto.
12658         (Fdelete_process): Ditto.
12659         (kill_buffer_processes): Ditto
12660         (process_send_signal): Use CHECK_LIVE_PROCESS.
12661         (Fprocess_input_coding_system): Check whether process is still
12662         alive (fix PR#1061).
12663         (Fprocess_output_coding_system): Ditto.
12664         (Fprocess_coding_system): Ditto.
12665         (Fset_process_input_coding_system): Ditto.
12666         (Fset_process_output_coding_system): Ditto.
12667
12668 2000-01-23  Andy Piper  <andy@xemacs.org>
12669
12670         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12671         layout and widget.
12672
12673         * glyphs.c (mark_image_instance): take into account changed
12674         image_instance format.
12675         (image_instance_equal): ditto.
12676         (image_instance_hash): ditto.
12677
12678         * glyphs-widget.c (widget_instantiate): Incorporate layout
12679         instantiation here. Delay layout of the layout until later.
12680         (layout_instantiate): deleted.
12681         (layout_query_geometry): new function. get the geometry of a
12682         layout.
12683         (layout_layout): layout a layout dynamically.
12684         (image_instantiator_widget): New function - splitting up
12685         image_instantiator_format_create_glyphs_widget for netwinder
12686         compilation.
12687         (image_instantiator_buttons):
12688         (image_instantiator_edit_fields):
12689         (image_instantiator_combo_box):
12690         (image_instantiator_scrollbar):
12691         (image_instantiator_progress_guage):
12692         (image_instantiator_tree_view):
12693         (image_instantiator_tab_control):
12694         (image_instantiator_labels):
12695         (image_instantiator_layout): ditto.
12696         (image_instantiator_format_create_glyphs_widget): Call preceding
12697         functions.
12698
12699 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12700
12701         * process.c (Fset_process_coding_system):
12702         * device-x.c (Fx_keysym_hash_table):
12703         Docstring fixes.
12704
12705         * lstream.c (Lstream_write): Return documented value, not 0.
12706
12707         * fileio.c (directory_file_name):
12708         (Fsubstitute_in_file_name):
12709         (Fsubstitute_insert_file_contents_internal):
12710         (Fwrite_region_internal):
12711         * emacs.c:
12712         * sysdep.c:
12713         * getloadavg.c:
12714         * systty.h:
12715         Remove vestigial APOLLO-conditional code.
12716
12717 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12718
12719         * getpagesize.h: Add guard macros.
12720         * libsst.h: Add guard macros.
12721         * libst.h: Add guard macros.
12722         * line-number.h: Add guard macros.
12723         * ndir.h: Add guard macros.
12724         * sysfloat.h: Add guard macros.
12725         * sysfile.h: Add guard macros.
12726         * sysproc.h: Add guard macros.
12727         * syswait.h: Add guard macros.
12728         * xintrinsic.h: Add guard macros.
12729         * xintrinsicp.h: Add guard macros.
12730         * xmmanager.h: Add guard macros.
12731         * xmmanagerp.h: Add guard macros.
12732         * xmprimitive.h: Add guard macros.
12733         * xmu.h: Add guard macros.
12734         * gpmevent.h: Add copyright statement. Add guard macros.
12735         * miscplay.h: Add guard macros.
12736         * *.h: Use consistent C-standards-approved guard macro names.
12737
12738         * opaque.c (make_opaque): Switch parameter order.
12739         * opaque.h (make_opaque): Switch parameter order.
12740         Update all callers.
12741         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12742
12743         * config.h.in (type_checking_assert): Added.
12744         (bufpos_checking_assert): Added.
12745
12746 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12747
12748         * alloc.c: Harmless pdump changes.
12749         - Use countof().
12750         - spell alignment correctly.
12751         * sysdep.c: Use countof()
12752
12753 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12754
12755         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12756         initially_selected_for_input() console method, default to 0.
12757         (semi_canonicalize_console_connection): Try to delegate to
12758         canonicalize_console_connection if no such console method.
12759         (canonicalize_console_connection): Vice versa.
12760         (print_console): Do not print nil connection.
12761
12762         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12763         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12764         (XDEVIMPF_FRAMELESS_OK): Added.
12765         (CONSOLE_INHERITS_METHOD): Added.
12766
12767         * console-msw.c (mswindows_canonicalize_console_connection):
12768         Added.
12769         (mswindows_canonicalize_device_connection): Added.
12770
12771         * console-msw.h (struct msprinter_device): Added this struct and
12772         accessor macros.
12773         (mswindows_device): Made fontlist a lisp object.
12774
12775         * device.c (semi_canonicalize_device_connection):  Try to delegate
12776         to canonicalize_device_connection if no such console method.
12777         (canonicalize_device_connection): Vice versa.
12778         (print_device): Do not print nil connection.
12779
12780         * device-msw.c (mswindows_init_device): Call InitCommonControls
12781         when have widgets.
12782         (mswindows_delete_device): Removed fontlist deallocation.
12783         (mswindows_mark_device): Added.
12784
12785         * events.c (event_equal): Added abort() at unreached code.
12786         (event_hash): Ditto.
12787
12788         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12789         fallback tags of Windows devices.
12790
12791         * general.c (syms_of_general): Initialized Qmsprinter.
12792
12793         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12794         of fallback tags of Windows devices.
12795
12796         * lisp.h: Declared Qmsprinter.
12797
12798         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12799         of strings.
12800         (mswindows_list_fonts): Ditto.
12801         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12802         that it can be used by both mswindows and msprinter devices.
12803         (initialize_font_instance): Added.
12804         (mswindows_initialize_font_instance): Use it.
12805         (msprinter_initialize_font_instance): Added.
12806
12807         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12808         and implementation flags check.
12809         (redisplay_without_hooks): Changed the call to the above.
12810         (Fredraw_device): Ditto.
12811         (Fredisplay_device): Ditto.
12812
12813         * redisplay-msw.c (get_frame_dc): Implemented.
12814         (get_frame_compdc): Implemented.
12815         (many functions): Use the two functions above to get device
12816         contexts, ether for a window or a printer.
12817
12818 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12819
12820         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12821         initialization here.
12822         (init_symbols_once_early): Call it.
12823         * emacs.c (main_1): Call it.
12824         * symsinit.h: Declare it.
12825
12826 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12827
12828         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12829         Lisp_Object.
12830         (pdump_backtrace): Ditto.
12831         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12832         (pdump_get_entry): Abort if trying to register a null pointer.
12833         (pdump_dump_data): Cleanup types when relocating.
12834         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12835         (pdump_dump_rtables): Remove bad casts.
12836         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12837         Lisp_Object instead of a EMACS_INT for the hashtable
12838         reorganization.
12839
12840 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12841
12842         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12843
12844         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12845
12846         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12847
12848         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12849
12850 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12851
12852         * faces.h (FACE_STRIKETHRU_P): Added.
12853
12854         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12855         of font variants.
12856
12857         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12858         (mswindows_set_dc_font): New function, aware of font variants,
12859         separated from mswindows_update_dc.
12860
12861         * objects-msw.h (struct mswindows_font_instance_data): Added
12862         definition.
12863
12864         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12865         cached fonts and the data structure.
12866         (mswindows_initialize_font_instance): Added creation of font data
12867         structure.
12868         (mswindows_print_font_instance): Print at least something.
12869         (mswindows_create_font_variant): Implemented.
12870         (mswindows_get_hfont): Implemented.
12871
12872 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12873
12874         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12875         prototyping problem with msvc.
12876
12877         * emacs.c (main_1): added syms_of_gui_mswindows() call
12878
12879         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12880         syms_of_gui_mswindows() function
12881
12882         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12883
12884 2000-01-18  Martin Buchholz <martin@xemacs.org>
12885
12886         * XEmacs 21.2.27 is released.
12887
12888 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12889
12890         * glyphs-eimage.c (struct tiff_error_struct):
12891         (tiff_error_func):
12892         (tiff_warning_func):
12893         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12894
12895         * unexmips.c:
12896         * unexhp9k3.c:
12897         * unexfreebsd.c:
12898         * unexec.c: Remove vestigial Lucid C code.
12899         * unexalpha.c:
12900         * unexaix.c:
12901         * termcap.c:
12902         * libsst.c: Ansify.
12903         Remove declarations of errno and strerror().
12904
12905         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12906
12907         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12908
12909 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12910
12911         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12912         Optimize.
12913
12914 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12915
12916         * md5.c:
12917         * file-coding.c:
12918         * file-coding.h:
12919         Change enum eol_type to eol_type_t.
12920
12921 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12922
12923         * gui.c (get_gui_callback): Check cons before accessing car.
12924
12925 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12926
12927         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12928         (XSETSPECIFIER_TYPE): Ditto.
12929
12930 2000-01-17  Didier Verna  <didier@xemacs.org>
12931
12932         * redisplay.c (generate_fstring_runes): compute string size in
12933         characters, not bytes.
12934
12935 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12936
12937         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12938
12939 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12940
12941         * print.c (print_error_message): Call print_prepare().
12942
12943 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12944
12945         * .dbxrc: Renamed from dbxrc.
12946
12947         * events.c (event_to_character):
12948         Use `assert (foo)' instead of `if (!foo) abort()'
12949
12950         * .gdbinit (xtype): Add documentation.
12951         * .gdbinit (check-temacs): New function.
12952         * .gdbinit (check-xemacs): New function.
12953         * dbxrc (check-xemacs): New function.
12954         * dbxrc (check-xemacs): New function.
12955
12956 2000-01-14  Andy Piper  <andy@xemacs.org>
12957
12958         * glyphs-widget.c (widget_query_geometry): Make sure that we
12959         calculate default dimensions correctly.
12960
12961 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12962
12963         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12964
12965         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12966         pdump_wire'd variable.
12967
12968         * emacs.c: (main_1): Conditionalized calls to
12969         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12970
12971 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12972
12973         * window.c (Fset_window_configuration):
12974         * sysdep.c (_start):
12975         * input-method-motif.c (res):
12976         * event-Xt.c (Xt_process_to_emacs_event):
12977         Simple compiler warning fixes.
12978
12979         * bytecode.c (funcall_compiled_function): Use the original
12980         function symbol on the backtrace list in preference to the
12981         compiled_function object in error messages.
12982
12983 2000-01-13  Andy Piper  <andy@xemacs.org>
12984
12985         * glyphs-x.c (update_widget_face): Make sure we update the widget
12986         background as well as foreground.
12987
12988 2000-01-13  Andy Piper  <andy@xemacs.org>
12989
12990         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12991         fields to subwindow.
12992         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12993         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12994         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12995         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12996
12997         * glyphs-widget.c (check_valid_tab_orientation): new function.
12998         (initialize_widget_image_instance): zero orientation and
12999         justification.
13000         (widget_instantiate): pick up orientation.
13001         (tab_control_query_geometry): return appropriate values for
13002         vertical tabs.
13003
13004         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13005         appropriate creation flags for left, right and bottom tabs.
13006
13007         * s/cygwin32.h: add tab definitions.
13008
13009 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13010
13011         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13012         frame upon hiding a subwindow.
13013         (mswindows_button_instantiate): Changed the push button style to
13014         BS_PUSHBUTTON.
13015         (mswindows_button_instantiate): Removed button BS_NOTIFY
13016         style.
13017         (mswindows_button_instantiate): Removed redundant check for
13018         a disabled gui item.
13019         (mswindows_button_instantiate): Made use of WS_TABSTOP
13020         consistent: "operable" controls (edit, button, tree, scroll) have
13021         this style, "display-only" ones (static, progress gauge) do
13022         not. This style is currently ignored by XEmacs though. Also,
13023         removed the WS_EX_CONTROLPARENT style - it is not for children,
13024         it is for their parents!
13025         (mswindows_edit_field_instantiate): Ditto.
13026         (mswindows_progress_gauge_instantiate): Ditto.
13027         (mswindows_tree_view_instantiate): Ditto.
13028         (mswindows_tab_control_instantiate): Ditto.
13029         (mswindows_scrollbar_instantiate): Ditto.
13030         (mswindows_combo_box_instantiate): Ditto.
13031         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13032         style to the "clip" window.
13033         (mswindows_button_instantiate): Removed compilation warning by
13034         equally typing terms of the ?: operator.
13035
13036 2000-01-12  Didier Verna  <didier@xemacs.org>
13037
13038         * redisplay.c (generate_fstring_runes): new parameter holding the
13039         last modeline-format extent.
13040         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13041         extent, fill the glyph block with it.
13042         (generate_fstring_runes): handle these parameters.
13043         (generate_formatted_string_db): ditto.
13044
13045         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13046         glyphs'extents in the modeline.
13047
13048 1999-01-11  Mike Woolley  <mike@bulsara.com>
13049
13050         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13051         256Mb, as a workaround for the non-starting problem many people
13052         have experienced.
13053
13054 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13055
13056         * console-tty.c (Fset_console_tty_output_coding_system):
13057         Force redrawing tty frame.
13058
13059 2000-01-10  Didier Verna  <didier@xemacs.org>
13060
13061         * redisplay.c (generate_fstring_runes): fix size computation bug.
13062
13063 2000-01-09  William M. Perry <wmperry@aventail.com>
13064
13065         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13066
13067 2000-01-09  Andy Piper  <andy@xemacs.org>
13068
13069         * glyphs-msw.c: index -> i to avoid shadows.
13070         (xbm_create_bitmap_from_data): make static.
13071         (check_valid_string_or_int): deleted.
13072         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13073
13074         * glyphs-x.c (x_update_subwindow): remove unused args.
13075
13076         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13077         back pointer - this is done in allocate_image_instance.
13078         (query_string_font): return Qnil to make the compiler happy.
13079         (unmap_subwindow): set to ~0 to make the compiler happy.
13080         (glyph_query_geometry): comment out until used.
13081         (glyph_layout): ditto.
13082
13083 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13084
13085         * insdel.c (signal_after_change): Remove extraneous unbind_to().