update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
4         and optional argument `rehash' is specified, call
5         `open_chise_data_source_maybe' before
6         `chise_ds_foreach_char_feature_name' is called.
7
8 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * chartab.c (char_attribute_list_reset_map_func): New function
11         when HAVE_LIBCHISE is defined.
12         (Fchar_attribute_list): Add new optional argument `rehash' when
13         HAVE_LIBCHISE is defined.
14         (open_chise_data_source_maybe): Use "chise-db" instead of
15         "char-db".
16         (char_attribute_system_db_file): Likewise.
17         (Fload_char_attribute_table): Use
18         `chise_feature_foreach_char_with_value' instead of
19         `chise_char_feature_value_iterate'.
20
21 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * chartab.c (Vchise_db_directory): New variable.
24         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
25
26 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
29         instead of HAVE_CHISE to specify using with libchise.
30
31         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
32
33         * chartab.h: Don't use HAVE_CHISE_CLIENT.
34
35         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
36         defined or HAVE_LIBCHISE_LIBCHISE is defined.
37         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
38         is defined.
39         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
40         HAVE_CHISE to specify using with libchise.
41         (syms_of_chartab): Don't define symbol `system-char-id' when
42         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
43
44 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
47         specify CHISE DB support.
48         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
49         of `char_attribute_system_db_file' to check feature DB file.
50
51         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
52         HAVE_CHISE_CLIENT to specify CHISE DB support.
53
54         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
55         specify CHISE DB support.
56         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
57         not defined.
58         (Freset_char_attribute_table): Use `chise_feature_setup_db'
59         instead of `char_attribute_system_db_file' to check feature DB
60         file.
61
62 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
65         `HAVE_CHISE_CLIENT'.
66
67 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
70         (Fsave_charset_mapping_table): Don't use
71         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
72
73         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
74         (HAVE_LIBCHISE): New macro.
75
76         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
77
78         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
79         (Fsave_char_attribute_table): Don't use
80         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
81
82 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
83
84         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
85         defined.
86         (save_uint16_byte_table): Likewise.
87         (save_byte_table): Likewise.
88         (char_table_get_db): Use `chise_ds_load_char_feature_value'
89         instead of `chise_char_load_feature_value'.
90         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
91
92 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.h (struct Lisp_Char_Table): Delete member
95         `feature_table' if CHISE is defined.
96
97         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
98         (Fcopy_char_table): Likewise.
99         (char_table_open_db_maybe): Likewise.
100         (char_table_close_db_maybe): Likewise.
101         (char_table_get_db): Likewise.
102         (Fmount_char_attribute_table): Likewise.
103         (Fload_char_attribute_table): Likewise.
104
105 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * mule-charset.c (load_char_decoding_entry_maybe): Use
108         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
109         `chise_ccs_decode'.
110
111 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
114         instead of `chise_open_data_source'.
115         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
116         `chise_ds_close'.
117
118 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
119
120         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
121         instead of `chise_ds_open_feature_table'.
122         (char_table_close_db_maybe): Don't use `chise_ft_close'.
123
124 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * mule-charset.c (Fsave_charset_mapping_table): Use
127         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
128         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
129         `chise_ccs_sync' instead of `chise_ccst_close'.
130         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
131
132         * chartab.c (open_chise_data_source_maybe): Modify for
133         `chise_open_data_source'.
134         (char_table_open_db_maybe): Modify for
135         `chise_ds_open_feature_table'.
136
137 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
138
139         * mule-charset.c (load_char_decoding_entry_maybe): Use
140         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
141         `chise_ccst_close'.
142
143 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
144
145         * mule-charset.c (Fsave_charset_mapping_table): Use
146         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
147         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
148         `chise_dt_put_char' and `chise_dt_close'.
149         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
150         `chise_ccs_decode' and `chise_ccst_close' instead of
151         `chise_ds_open_decoding_table', `chise_dt_get_char' and
152         `chise_dt_close'.
153
154         * chartab.c (char_table_get_db): Use
155         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
156         (load_char_attribute_table_map_func): Modify for
157         `chise_char_feature_value_iterate'.
158         (Fload_char_attribute_table): Use
159         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
160
161 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
164
165 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
166
167         * chartab.c (put_char_table): Modify for inherited coded-charsets
168         in XEmacs CHISE.
169
170 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
171
172         * chartab.c (Fput_char_table_map_function): Fixed.
173         (word_boundary_p): Don't check charset in XEmacs CHISE.
174
175 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
176
177         * mule-charset.c (Fsave_charset_mapping_table): Use
178         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
179         instead of `chise_open_decoding_table'; refer
180         `default_chise_data_source'; use `chise_dt_close' instead of
181         `chise_close_decoding_table'.
182         (load_char_decoding_entry_maybe): Likewise.
183
184         * chartab.c (default_chise_data_source): New variable when `CHISE'
185         is defined.
186         (Fcopy_char_table): `ct->ds' is deleted.
187         (open_chise_data_source_maybe): New function.
188         (Fclose_char_data_source): New function.
189         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
190         use `chise_ds_open_feature_table' instead of
191         `chise_open_feature_table'.
192         (char_table_close_db_maybe): Use `chise_ft_close' instead of
193         `chise_close_feature_table'; `cit->ds' is deleted.
194         (syms_of_chartab): Add new builtin function
195         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
196
197         * chartab.h (default_chise_data_source): New extern variable.
198         (open_chise_data_source_maybe): New prototype.
199         (struct Lisp_Char_Table): Delete `ds'.
200
201 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
202
203         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
204         `CHISE' is defined.
205
206 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
207
208         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
209         not defined; add code for non-libchise setting.
210         (char_table_close_db_maybe): Likewise.
211         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
212         defined.
213         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
214         even if `CHISE' is not defined.
215         (Freset_char_attribute_table): Likewise.
216         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
217         `char_table_close_db_maybe' even if `CHISE' is not defined; use
218         `char_table_get_db'.
219         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
220         `char_table_close_db_maybe' even if `CHISE' is not defined.
221
222 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
223
224         * chartab.c (char_table_open_db_maybe): New function.
225         (char_table_close_db_maybe): New function.
226         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
227         (Freset_char_attribute_table): Likewise.
228         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
229         `char_table_close_db_maybe'.
230         (Fload_char_attribute_table): Likewise.
231
232 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
233
234         * chartab.c: Don't include <chise.h> because it is included in
235         chartab.h.
236         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
237         defined.
238         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
239         `CHISE' is defined.
240         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
241         `CHISE' is defined.
242         (Fclose_char_attribute_table): Close `ct->feature_table' and
243         `ct->ds' when `CHISE' is defined.
244         (Freset_char_attribute_table): Likewise.
245         (load_char_attribute_maybe): Use `cit->ds' and
246         `cit->feature_table' when `CHISE' is defined.
247         (Fload_char_attribute_table): Likewise.
248
249         * chartab.h: Include <chise.h> when `CHISE' is defined.
250         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
251         when `CHISE' is defined.
252
253 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
254
255         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
256         is defined.
257         (char_table_description): Likewise.
258         (Fmake_char_table): Likewise.
259         (Fcopy_char_table): Likewise.
260         (Fmount_char_attribute_table): Likewise.
261         (Fclose_char_attribute_table): Likewise.
262         (Freset_char_attribute_table): Likewise.
263         (load_char_attribute_maybe): Likewise.
264         (Fload_char_attribute_table): Likewise.
265
266         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
267         defined.
268
269 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
270
271         * chartab.c (load_char_attribute_table_map_func): New function
272         when CHISE is defined.
273         (Qload_char_attribute_table_map_function): Don't define when CHISE
274         is defined.
275         (Fload_char_attribute_table_map_function): Likewise.
276         (Fload_char_attribute_table): Use libchise when `CHISE' is
277         defined.
278         (syms_of_chartab): Don't define
279         `load-char-attribute-table-map-function' when CHISE is defined.
280
281 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
282
283         * chartab.c: Include <chise.h> when `CHISE' is defined.
284         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
285
286 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * mule-charset.c (charset_code_point): Fix problem when searching
289         in mother CCS fails with `defined_only' mode.
290
291 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
292
293         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
294         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
295         (put_char_composition): Likewise.
296         (Fput_char_attribute): Likewise.
297         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
298
299 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
300
301         * chartab.c (Q_ucs): Deleted.
302         (Fput_char_attribute): Don't refer `->ucs'.
303         (Fdefine_char): Likewise.
304         (Ffind_char): Likewise.
305         (syms_of_chartab): Delete `->ucs'.
306
307 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
308
309         * mule-charset.c (Qmap_cns11643_2): Renamed from
310         `Qchinese_cns11643_2'.
311         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
312         `chinese-cns11643-2'.
313         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
314         `=cns11643-2'.
315
316 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
317
318         * mule-charset.c (Qmap_cns11643_1): Renamed from
319         `Qchinese_cns11643_1'.
320         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
321         `chinese-cns11643-1'.
322         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
323         `=cns11643-1'.
324
325 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
326
327         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
328         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
329         `chinese-gb12345'.
330         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
331         `=gb12345'.
332
333 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
334
335         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
336         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
337         `chinese-gb2312'.
338         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
339         `=gb2312'.
340
341 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
342
343         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
344         (syms_of_mule_charset): Add new symbol `=big5' instead of
345         `chinese-big5'.
346         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
347
348 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
351         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
352         `korean-ksc5601'.
353         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
354         `=ks-x1001'.
355
356 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
357
358         * mule-charset.c (Qmap_jis_x0212): Renamed from
359         `Qjapanese_jisx0212'.
360         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
361         `japanese-jisx0212'.
362         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
363         `=jis-x0212'.
364
365 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
366
367         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
368         `Qjapanese_jisx0208'.
369         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
370         of `japanese-jisx0208'.
371         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
372         `=jis-x0208-1983'.
373
374 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
375
376         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
377         `Qjapanese_jisx0208_1978'.
378         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
379         of `japanese-jisx0208-1978'.
380         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
381         `=jis-x0208-1978'.
382
383 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
384
385         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
386         only for XEmacs CHISE.
387
388 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * char-ucs.h: Compact non-ISO-IR charset-ids.
391         (LEADING_BYTE_UCS): Changed to -177.
392         (LEADING_BYTE_CONTROL_1): Changed to -77.
393         (LEADING_BYTE_UCS_BMP): Changed to -176.
394         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
395
396 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * mule-charset.c (Qiso_ir): New variable.
399         (Fmake_charset): Recognise new property `iso-ir'.
400         (syms_of_mule_charset): Add new symbol `iso-ir'.
401
402 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
403
404         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
405         n to -n; charset-id of non ISO-IR sets are changed to positive
406         numbers.
407
408 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
409
410         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
411         for &MCS-XXXXXXXX; values.
412
413 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
414
415         * mule.c (Vxemacs_chise_version): Renamed from
416         `Vutf_2000_version'.
417         (vars_of_mule): Add new variable `xemacs-chise-version'; define
418         `utf-2000-version' as an alias for `xemacs-chise-version'.
419
420 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
423         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
424         defined.
425
426         * config.h.in (CHISE): New macro.
427
428 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
429
430         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
431         of `ucs'.
432         (Qmap_ucs): New variable.
433         (syms_of_mule_charset): Add new symbol `=ucs'.
434         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
435
436         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
437         (simplify_char_spec): Likewise.
438
439         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
440
441         * char-ucs.h (Qmap_ucs): New extern variable.
442
443 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
446         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
447         don't define it when UTF2000 is not defined.
448         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
449         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
450         when UTF2000 is not defined.
451         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
452         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
453
454 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
455
456         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
457
458         * mule-charset.c (Vcharset_ucs_gb): Deleted.
459         (Qucs_gb): Deleted.
460         (syms_of_mule_charset): Delete `ucs-gb'.
461         (complex_vars_of_mule_charset): Likewise.
462
463 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
464
465         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
466
467         * mule-charset.c (Vcharset_ucs_cns): Deleted.
468         (Qucs_cns): Deleted.
469         (syms_of_mule_charset): Delete `ucs-cns'.
470         (complex_vars_of_mule_charset): Likewise.
471
472 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
473
474         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
475
476         * mule-charset.c (Vcharset_ucs_jis): Deleted.
477         (Qucs_jis): Deleted.
478         (syms_of_mule_charset): Delete `ucs-jis'.
479         (complex_vars_of_mule_charset): Likewise.
480
481 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
482
483         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
484
485         * mule-charset.c (Vcharset_ucs_ks): Deleted.
486         (Qucs_ks): Deleted.
487         (syms_of_mule_charset): Delete `ucs-ks'.
488         (complex_vars_of_mule_charset): Likewise.
489
490 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
493         (Qideograph_daikanwa_2): Deleted.
494         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
495         (complex_vars_of_mule_charset): Likewise.
496
497         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
498         (LEADING_BYTE_DAIKANWA_1): Deleted.
499         (LEADING_BYTE_DAIKANWA_2): Deleted.
500         (MIN_CHAR_DAIKANWA): Deleted.
501         (MAX_CHAR_DAIKANWA): Deleted.
502
503 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
504
505         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
506         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
507         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
508
509         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
510         (Vcharset_ideograph_daikanwa): Deleted.
511         (Qideograph_hanziku_{1..12}): Deleted.
512         (Qideograph_daikanwa): Deleted.
513         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
514         Vcharset_ideograph_daikanwa.
515         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
516         `ideograph-hanziku-{1..12}'.
517         (complex_vars_of_mule_charset): Likewise.
518
519 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
522
523         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
524         (Qideograph_gt_pj_{1..11}): Deleted.
525         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
526         (complex_vars_of_mule_charset): Likewise.
527
528 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (Vcharset_ucs_big5): Deleted.
531         (Vcharset_ideograph_gt): Deleted.
532         (Qucs_big5): Deleted.
533         (Qideograph_gt): Deleted.
534         (syms_of_mule_charset): Delete symbol `ucs-big5' and
535         `ideograph-gt'.
536         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
537         and `ideograph-gt'.
538
539         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
540         (LEADING_BYTE_GT): Deleted.
541         (MIN_CHAR_GT): Deleted.
542         (MAX_CHAR_GT): Deleted.
543
544 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
547
548 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
549
550         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
551         (save_uint16_byte_table): Likewise.
552         (save_byte_table): Likewise; convert values by it.
553         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
554         for `ideographic-structure'.
555         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
556         as the filter for `ideographic-structure'.
557
558 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * chartab.c (put_char_composition): New function.
561         (Fput_char_attribute): Use `put_char_composition'; use
562         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
563
564         * fns.c (simplify_char_spec): New function.
565         (char_ref_simplify_spec): New function.
566         (Fchar_refs_simplify_char_specs): New function.
567         (syms_of_fns): Add new builtin function
568         `char-refs-simplify-char-specs'.
569
570 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
571
572         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
573         (Qideograph_cbeta): Deleted.
574         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
575         (complex_vars_of_mule_charset): Likewise.
576
577         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
578         (MIN_CHAR_CBETA): Comment out.
579         (MAX_CHAR_CBETA): Likewise.
580
581 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
582
583         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
584         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
585         CHISE client feature.
586
587 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
588
589         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
590
591 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
592
593         * mule-charset.c (charset_lookup_description_1): Use
594         `NUM_LEADING_BYTES' in UTF-2000.
595
596 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
597
598         * char-ucs.h (GC_CHARSETP): Deleted.
599
600 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * char-ucs.h (MAX_CHAR_GT): Updated.
603
604 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
605
606         * text-coding.c: Sync with XEmacs 21.4.10.
607
608 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * mule-charset.c (Vcharset_china3_jef): Deleted.
611         (Qchina3_jef): Deleted.
612         (syms_of_mule_charset): Don't define `china3-jef'.
613         (complex_vars_of_mule_charset): Likewise.
614
615         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
616         (MIN_CHAR_CHINA3_JEF): Comment out.
617         (MAX_CHAR_CHINA3_JEF): Comment out.
618
619 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * mule-charset.c (Vcharset_ucs_gb): New variable.
622         (Qucs_gb): New variable.
623         (syms_of_mule_charset): Add new symbol `ucs-gb'.
624         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
625
626         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
627
628 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
629
630         * mule-charset.c (charset_code_point): if a coded-charset has a
631         final-byte, don't inherit the builtin range of the mother CCS.
632
633 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * mule-charset.c (charset_code_point): Fix problem about
636         inheritance.
637
638 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
639
640         * mule-charset.c (decode_builtin_char): Reorganized.
641
642 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * text-coding.c (char_encode_as_entity_reference): Modify for
645         `charset_code_point'.
646         (char_encode_shift_jis): Likewise.
647         (char_encode_big5): Likewise.
648         (char_encode_utf8): Likewise.
649         (char_encode_iso2022): Likewise.
650
651         * mule-charset.c (charset_code_point): Add new argument
652         `defined_only'.
653         (Fencode_char): Add new optional argument `defined_only'.
654
655         * chartab.c (put_char_table): Modify for `charset_code_point'.
656
657         * char-ucs.h (charset_code_point): Add new argument
658         `defined_only'.
659         (encode_char_1): Modify for `charset_code_point'.
660
661 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
664         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
665
666 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
669         (Qjis_x0208): Likewise.
670         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
671         XCHARSET_FINAL(charset).
672         (charset_code_point): Modify condition for final-byte based
673         builtin-chars.
674         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
675         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
676         in UTF-2000; specify `=jis-x0208' as the mother of
677         `japanese-jisx0208-1978', `japanese-jisx0208' and
678         `japanese-jisx0208-1990' in UTF-2000.
679
680 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
681
682         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
683
684 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
685
686         * text-coding.c (decode_coding_utf16): Support UTF-16.
687         (char_encode_utf16): Fixed.
688
689 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
690
691         * text-coding.c (Qutf16): New variable in MULE.
692         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
693         (Fcoding_system_type): Add `utf-16' in MULE.
694         (struct detection_state): Add a structure for utf16 in MULE.
695         (detect_coding_type): Setup st->utf16.mask in MULE.
696         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
697         MULE.
698         (reset_encoding_stream): Use `char_encode_utf16' and
699         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
700         (detect_coding_utf16): New function [incomplete].
701         (decode_coding_utf16): New function [support only UCS-2].
702         (char_encode_utf16): New function.
703         (char_finish_utf16): New function.
704         (syms_of_file_coding): Add new symbol `utf-16'; setup
705         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
706
707         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
708         UTF-2000.
709         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
710         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
711
712 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
713
714         * chartab.c (put_char_table): When a charset is specified as a
715         range in UTF-2000, don't support builtin characters.
716
717 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
718
719         * mule-charset.c (decode_defined_char): Don't refer external
720         database if Qunbound or Qnil are found.
721         (Fsave_charset_mapping_table): Don't define it if
722         HAVE_CHISE_CLIENT is not defined.
723         (Freset_charset_mapping_table): New function.
724         (load_char_decoding_entry_maybe): Store Qnil if a character is not
725         found in external database.
726         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
727         if HAVE_CHISE_CLIENT is not defined; add new builtin function
728         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
729
730 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
731
732         * text-coding.c (decode_coding_utf8): Check CCS is specified or
733         not.
734
735 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
736
737         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
738         Q_lowercase, Q_uppercase in UTF-2000.
739
740         * chartab.c (get_char_table): Add special code for the standard
741         case table to use character attribute `->downcase' and
742         `->uppercase' for case operations in UTF-2000.
743
744         * casetab.c (Qflippedcase): New variable in UTF-2000.
745         (Q_lowercase): Likewise.
746         (Q_uppercase): Likewise.
747         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
748         and `->uppercase' in UTF-2000.
749         (complex_vars_of_casetab): Assign attribute name `downcase' to
750         downcase and CANON table of Vstandard_case_table in UTF-2000;
751         assign attribute name `flippedcase' to upcase and EQV table of
752         Vstandard_case_table in UTF-2000.
753
754 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * text-coding.c (decode_add_er_char): Support isolated-chars.
757         (char_encode_as_entity_reference): Likewise.
758
759 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
760
761         * emacs.c (Vutf_2000_lisp_directory): New variable.
762         (Vconfigure_utf_2000_lisp_directory): Likewise.
763         (complex_vars_of_emacs): Add new variable
764         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
765
766 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
767
768         * char-ucs.h (DECODE_CHAR): Delete special code for
769         `chinese-big5-1' and `chinese-big5-2'.
770
771         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
772         (Qbig5_2): Likewise.
773         (decode_defined_char): Support CONVERSION_BIG5_1 and
774         CONVERSION_BIG5_2.
775         (decode_builtin_char): Likewise.
776         (charset_code_point): Likewise.
777         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
778         'conversion in UTF-2000.
779         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
780         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
781         `chinese-big5-2' as children of `chinese-big5'.
782
783         * char-ucs.h (CONVERSION_BIG5_1): New macro.
784         (CONVERSION_BIG5_2): New macro.
785
786 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
787
788         * text-coding.c (char_encode_big5): Support entity-reference.
789
790 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
791
792         * text-coding.c (char_encode_as_entity_reference): New function.
793         (char_encode_utf8): Use `char_encode_as_entity_reference'.
794
795 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * text-coding.c (decode_coding_big5): Support entity-reference
798         decoding feature.
799
800 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
801
802         * text-coding.c (allocate_coding_system): Initialize initial
803         charsets for CODESYS_UTF8.
804         (Fmake_coding_system): Accept charset-g0, charset-g1 and
805         charset-g2 for CODESYS_UTF8.
806         (decode_coding_utf8): Use charset-g0.
807         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
808         to force variants to map to UCS.
809
810 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * text-coding.c (Qutf_8_mcs): New variable.
813         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
814         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
815         instead of `utf-8' in UTF-2000.
816
817 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
818
819         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
820         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
821         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
822         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
823         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
824         CONVERSION_96x96x96x96 are introduced.
825         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
826         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
827         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
828
829         * char-ucs.h (CONVERSION_94): New macro.
830         (CONVERSION_96): New macro.
831         (CONVERSION_94x94): New macro.
832         (CONVERSION_96x96): New macro.
833         (CONVERSION_94x94x94): New macro.
834         (CONVERSION_96x96x96): New macro.
835         (CONVERSION_94x94x94x60): New macro.
836         (CONVERSION_94x94x94x94): New macro.
837         (CONVERSION_96x96x96x96): New macro.
838
839 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
840
841         * chartab.c (Vcharacter_variant_table): Deleted.
842         (Fchar_variants): Use character-attribute `->ucs-variants' instead
843         of `Vcharacter_variant_table'.
844         (Fput_char_attribute): Likewise.
845         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
846         (complex_vars_of_chartab): Likewise.
847
848 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
849
850         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
851
852         * fns.c (Qideographic_structure): New variable.
853         (Qkeyword_char): New variable.
854         (ids_format_unit): New function.
855         (Fideographic_structure_to_ids): New function.
856         (syms_of_fns): Add new symbols `ideographic-structure' and
857         `:char'; add new builtin function `ideographic-structure-to-ids'.
858
859         * data.c (Fchar_ref_p): New function.
860         (syms_of_data): Add new builtin function `char-ref-p'.
861
862         * chartab.h: Add an EXFUN for `Ffind_char'.
863
864 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * text-coding.c (Vcharacter_composition_table): Deleted.
867         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
868         in every UTF-2000.
869
870         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
871         UTF-2000.
872         (Vcharacter_composition_table): Deleted.
873         (Fget_composite_char): Use the implementation for external-DB
874         support in every UTF-2000.
875         (Fput_char_attribute): Likewise.
876         (char_attribute_system_db_file): Don't define if external-DB
877         feature is not available.
878         (Fsave_char_attribute_table): Likewise.
879         (Fmount_char_attribute_table): Likewise.
880         (Fclose_char_attribute_table): Likewise.
881         (Freset_char_attribute_table): Likewise.
882         (Fload_char_attribute_table): Likewise.
883         (syms_of_chartab): Don't define `save-char-attribute-table',
884         `mount-char-attribute-table', `reset-char-attribute-table',
885         `close-char-attribute-table' and `load-char-attribute-table' if
886         external-DB feature is not available.
887         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
888
889 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
890
891         * text-coding.c (Qcomposition): Add extern if external-DB feature
892         is supported.
893         (Vcharacter_composition_table): Don't add extern if external-DB
894         feature is supported.
895         (COMPOSE_ADD_CHAR): Modify for new data-representation of
896         character composition rule if external-DB feature is supported.
897
898         * chartab.c (Vcharacter_composition_table): Don't define if
899         external-DB feature is supported.
900         (Qcomposition): New variable.
901         (Fget_composite_char): New implementation for external-DB support.
902         (Fput_char_attribute): Use `composition' property of each
903         character instead of `Vcharacter_composition_table' to store
904         character-composition rules if external-DB feature is supported.
905         (syms_of_chartab): Add new symbol `composition'.
906         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
907         external-DB feature is supported.
908
909 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
910
911         * chartab.c (Vchar_db_stingy_mode): New variable.
912         (load_char_attribute_maybe): Close database if
913         Vchar_db_stingy_mode is not NIL.
914         (Fload_char_attribute_table_map_function): Use
915         `get_char_id_table_0' instead of `get_char_id_table'.
916         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
917
918         * chartab.h (get_char_id_table_0): New inline function.
919         (get_char_id_table): Use `get_char_id_table_0'.
920
921 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
922
923         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
924         and `COMPOSE_ADD_CHAR'.
925         (decode_coding_iso2022): Use `decode_flush_er_chars'.
926
927 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
928
929         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
930         instead of `DECODE_ADD_UCS_CHAR'.
931         (COMPOSE_ADD_CHAR): Likewise.
932
933 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
934
935         * text-coding.c (decode_flush_er_chars): New inline function.
936         (decode_add_er_char): New function.
937         (decode_coding_utf8): Use `decode_flush_er_chars' and
938         `decode_add_er_char'.
939
940 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
941
942         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
943         done before `decode_output_utf8_partial_char'.
944
945         * mule-charset.c (complex_vars_of_mule_charset): Specify
946         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
947         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
948
949 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
950
951         * mule-charset.c (decode_defined_char): New function; search
952         mother.
953         (decode_builtin_char): Don't search mother if
954         XCHARSET_MAX_CODE(charset) == 0.
955         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
956         == 0 even if code >= XCHARSET_MAX_CODE(charset).
957         (Fdecode_char): Use `decode_defined_char' instead of
958         `DECODE_DEFINED_CHAR'.
959         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
960         mother of `Vcharset_ucs_jis'.
961
962         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
963         instead of `DECODE_DEFINED_CHAR'.
964
965         * char-ucs.h (decode_defined_char): Renamed from
966         `DECODE_DEFINED_CHAR'; changed to normal function.
967         (DECODE_CHAR): Use `decode_defined_char' instead of
968         `DECODE_DEFINED_CHAR'.
969
970         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
971
972 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
973
974         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
975
976         * text-coding.c (Vcoded_charset_entity_reference_alist): New
977         variable.
978         (Quse_entity_reference): New variable.
979         (Qd): New variable.
980         (Qx): New variable.
981         (QX): New variable.
982         (coding_system_description): Add description for
983         `ccs_priority_list'.
984         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
985         (allocate_coding_system): Initialize `ccs_priority_list' in
986         UTF-2000.
987         (Fmake_coding_system): Add description about
988         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
989         (codesys).
990         (Fcoding_system_property): Accept `disable-composition' and
991         `use-entity-reference' in UTF-2000.
992         (struct decoding_stream): Add new member `er_counter' and `er_buf'
993         in UTF-2000.
994         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
995         (decode_coding_utf8): Decode entity-reference if
996         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
997         (char_encode_utf8): Encode non-Unicode characters as
998         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
999         (str->codesys).
1000         (syms_of_file_coding): Add new symbols `use-entity-reference',
1001         `d', `x', `X'.
1002         (vars_of_file_coding): Add new variable
1003         `coded-charset-entity-reference-alist'.
1004         (complex_vars_of_file_coding): Declare `disable-composition' and
1005         `use-entity-reference' to be coding-system-properties in UTF-2000.
1006
1007         * file-coding.h (struct Lisp_Coding_System): Add new member
1008         `use_entity_reference' and `ccs_priority_list'.
1009         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1010         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1011         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1012
1013 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1014
1015         * chartab.c (save_uint8_byte_table): Don't clear the table.
1016         (save_uint16_byte_table): Likewise.
1017         (save_byte_table): Likewise.
1018         (Fmount_char_attribute_table): New function.
1019         (syms_of_chartab): Add new builtin function
1020         `mount-char-attribute-table'.
1021
1022 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1023
1024         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1025         "w+" mode.
1026         (load_char_decoding_entry_maybe): Open database as read-only mode.
1027
1028         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1029         open database as "w+" mode.
1030         (load_char_attribute_maybe): Open database as read-only mode.
1031         (Fload_char_attribute_table): Likewise.
1032
1033 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034
1035         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1036         (char_table_description): Delete member `db_file'.
1037         (Fmake_char_table): Don't refer `ct->db_file'.
1038         (Fcopy_char_table): Likewise.
1039         (Fsave_char_attribute_table): Likewise.
1040         (Fclose_char_attribute_table): Likewise.
1041         (Freset_char_attribute_table): Likewise.
1042         (load_char_attribute_maybe): Likewise.
1043         (Fload_char_attribute_table): Likewise.
1044
1045         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1046
1047 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1048
1049         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1050         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1051         `ct->db' is living.
1052         (load_char_attribute_maybe): Likewise.
1053         (Fload_char_attribute_table): Likewise.
1054
1055 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1056
1057         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1058         `ct->db_file' unconditionally.
1059
1060 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1061
1062         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1063         UTF-2000.
1064         (char_table_description): Add description for `db_file' and `db'
1065         in UTF-2000.
1066         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1067         UTF-2000.
1068         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1069         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1070         (Fclose_char_attribute_table): New function.
1071         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1072         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1073         and `cit->db'.
1074         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1075         (syms_of_chartab): Add new builtin function
1076         `Fclose_char_attribute_table'.
1077
1078 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1079
1080         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1081         `db' in UTF-2000.
1082         (load_char_attribute_maybe): Change interface.
1083         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1084
1085 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1088
1089 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1092         instead of `DECODE_CHAR' for mother; don't use special code for
1093         chinese-big5 to use code space of chinese-big5-1 and
1094         chinese-big5-2.
1095         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1096         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1097
1098         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1099         (MAX_CHAR_BIG5_CDP): Revival.
1100
1101 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1104         the XLFD registry-encoding name of `chinese-big5'.
1105
1106 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1107
1108         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1109         (Qchinese_big5_cdp): Deleted.
1110         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1111         (complex_vars_of_mule_charset): Delete coded-charset
1112         `chinese-big5-cdp'.
1113
1114         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1115         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1116         `CHARSET_ID_OFFSET - n' for private CCS.
1117         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1118         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1119         of `MIN_LEADING_BYTE'.
1120         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1121         `(CHARSET_ID_OFFSET - 97)'.
1122         (MIN_CHAR_BIG5_CDP): Deleted.
1123         (MAX_CHAR_BIG5_CDP): Deleted.
1124
1125 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126
1127         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1128
1129 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130
1131         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1132         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1133         chartab.c].
1134
1135         * chartab.c (Vutf_2000_version): Moved to mule.c.
1136         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1137
1138 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1139
1140         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1141         when HAVE_CHISE_CLIENT is not defined.
1142
1143         * mule.c (vars_of_mule): Provide feature `chise' when
1144         HAVE_CHISE_CLIENT is defined.
1145
1146 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1147
1148         * config.h.in (UTF2000): Add comment.
1149         (HAVE_CHISE_CLIENT): New macro.
1150
1151 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1152
1153         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1154         CONSP.
1155         (Fput_char_attribute): Likewise.
1156         (char_attribute_system_db_file): Encode file-name of attribute.
1157         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1158         the initial value.
1159
1160 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1163         (Fsave_charset_mapping_table): Use
1164         `char_attribute_system_db_file'.
1165         (load_char_decoding_entry_maybe): Likewise.
1166
1167         * chartab.h (Qsystem_char_id): New external variable.
1168         (char_attribute_system_db_file): New prototype.
1169
1170         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1171         (char_attribute_system_db_file): New function.
1172         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1173         (Freset_char_attribute_table): Likewise.
1174         (load_char_attribute_maybe): Likewise.
1175         (Fload_char_attribute_table): Likewise.
1176         (syms_of_chartab): Add new symbol `system-char-id'.
1177
1178 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1181         `XCHARSET_GRAPHIC(ccs)'.
1182
1183 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1186
1187 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1188
1189         * chartab.c (Q_ucs_variants): New variable.
1190         (syms_of_chartab): Add new symbol `->ucs-variants'.
1191         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1192         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1193         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1194
1195         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1196
1197         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1198         `HAVE_DATABASE' is defined.
1199         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1200         `HAVE_DATABASE' is defined.
1201
1202 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1203
1204         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1205         attribute-table.
1206         (Freset_char_attribute_table): New function.
1207         (syms_of_chartab): Add new builtin function
1208         `reset-char-attribute-table'.
1209
1210 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1211
1212         * chartab.c (load_char_attribute_maybe): Don't make directories.
1213
1214 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1217
1218         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1219         for decoding-table.
1220
1221 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1222
1223         * mule-charset.c (Fsave_charset_mapping_table): Use
1224         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1225
1226         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1227         instead of `XCHARSET_CHARS'.
1228
1229 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1230
1231         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1232         (XCHARSET_BYTE_SIZE): Likewise.
1233
1234         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1235         mule-charset.c].
1236         (XCHARSET_BYTE_SIZE): Likewise.
1237
1238 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1239
1240         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1241         data-directory to store database.
1242         (Fsave_char_attribute_table): Likewise.
1243         (load_char_attribute_maybe): Likewise.
1244         (Fload_char_attribute_table): Likewise.
1245
1246 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1247
1248         * mule-charset.c (Fsave_charset_mapping_table): New function.
1249         (syms_of_mule_charset): Add new builtin function
1250         `save-charset-mapping-table'.
1251
1252 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1255         (get_ccs_octet_table): New inline function.
1256         (put_ccs_octet_table): Likewise.
1257         (decoding_table_put_char): Use `get_ccs_octet_table' and
1258         `put_ccs_octet_table'.
1259         (decoding_table_remove_char): Use `decoding_table_put_char'.
1260         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1261
1262         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1263         into encoding_table.
1264         (make_charset): Use Qunbound instead Qnil as initial value of
1265         decoding_table.
1266
1267 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1270         element is Qunloaded.
1271         (map_over_uint16_byte_table): Likewise.
1272         (map_over_byte_table): Likewise.
1273         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1274         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1275         database support, load encoding-table of the specified
1276         coded-charset if it is not loaded yet.
1277         (save_uint8_byte_table): New function of UTF-2000 with external
1278         database support.
1279         (save_uint16_byte_table): Likewise.
1280         (save_byte_table): Likewise.
1281         (Fput_char_attribute): Don't store value into external database
1282         even if the external database feature is supported in UTF-2000;
1283         set `attribute' as name of char-table if the external database
1284         feature is supported.
1285         (Fsave_char_attribute_table): New function in UTF-2000.
1286         (syms_of_chartab): Add new builtin function
1287         `save-char-attribute-table' in UTF-2000.
1288
1289 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1290
1291         * chartab.c (char_attribute_table_to_put): New variable in
1292         UTF-2000.
1293         (Qput_char_table_map_function): Likewise.
1294         (value_to_put): Likewise.
1295         (Fput_char_table_map_function): New function in UTF-2000.
1296         (put_char_table): Use `Fmap_char_attribute' for
1297         CHARTAB_RANGE_CHARSET in UTF-2000.
1298         (Fput_char_attribute): Store symbol instead of string in
1299         `XCHAR_TABLE_NAME (table)'.
1300         (load_char_attribute_maybe): Likewise.
1301         (syms_of_chartab): Add new symbol/function
1302         `put-char-table-map-function'.
1303
1304 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1305
1306         * database.h: Add new EXFUN for `Fmap_database'.
1307
1308         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1309         (syms_of_database): Likewise.
1310
1311         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1312         UTF-2000.
1313         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1314         (XCHAR_TABLE_UNLOADED): Likewise.
1315
1316         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1317         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1318         HAVE_DATABASE is defined.
1319         (char_attribute_table_to_load): New variable of UTF-2000 with
1320         external database support.
1321         (Qload_char_attribute_table_map_function): Likewise.
1322         (Fload_char_attribute_table_map_function): New function of
1323         UTF-2000 with external database support.
1324         (Fload_char_attribute_table): New function of UTF-2000.
1325         (Fmap_char_attribute): Call Fload_char_attribute_table if
1326         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1327         (syms_of_chartab): Add new symbol and function
1328         `load-char-attribute-table-map-function' in UTF-2000 with external
1329         database support; add new function `load-char-attribute-table' in
1330         UTF-2000.
1331
1332 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * chartab.h (load_char_attribute_maybe): New prototype for
1335         UTF-2000 with DATABASE support.
1336         (get_char_id_table): Use `load_char_attribute_maybe' if
1337         HAVE_DATABASE is defined.
1338
1339         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1340         with DATABASE support.
1341
1342 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343
1344         * chartab.c (Fput_char_attribute): Use S-expression as key of
1345         external database.
1346
1347         * chartab.h (get_char_id_table): Use S-expression as key of
1348         external database.
1349
1350 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1353         if an element is not loaded, load the corresponding attributes
1354         from an external database.
1355         (map_over_uint16_byte_table): Likewise.
1356         (map_over_byte_table): Likewise.
1357         (map_char_table): Modify for `map_over_uint8_byte_table',
1358         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1359         element is not loaded, load the corresponding attributes from an
1360         external database.
1361         (Fput_char_attribute): Change initial values to Qunloaded.
1362
1363         * chartab.h (get_char_id_table): If a character attribute is not
1364         loaded and the attribute value is not found in an external
1365         database, store Qunbound as the attribute value.
1366
1367 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * chartab.c (BT_UINT8_unloaded): New macro.
1370         (UINT8_VALUE_P): Accept Qunloaded.
1371         (UINT8_ENCODE): Likewise.
1372         (UINT8_DECODE): Likewise.
1373         (BT_UINT16_unloaded): New macro.
1374         (UINT16_VALUE_P): Accept Qunloaded.
1375         (UINT16_ENCODE): Likewise.
1376         (UINT16_DECODE): Likewise.
1377         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1378         BT_UINT16_unloaded.
1379         (mark_char_table): Mark `ct->name' in UTF-2000.
1380         (char_table_description): Add `name' in UTF-2000.
1381         (Fmake_char_table): Initialize `ct->name'.
1382         (Fcopy_char_table): Copy `ct->name'.
1383         (Fput_char_attribute): Store value into an external database if
1384         HAVE_DATABASE is defined.
1385
1386         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1387         UTF-2000.
1388         (CHAR_TABLE_NAME): New macro in UTF-2000.
1389         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1390         (get_char_id_table): Try to read an external database if Qunloaded
1391         is stored in a table.
1392
1393         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1394         Qunloaded.
1395
1396 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1397
1398         * database.h: Add EXFUN definitions for Fopen_database,
1399         Fput_database, Fget_database and Fclose_database.
1400
1401         * data.c (Qunloaded): New variable in UTF-2000.
1402
1403         * lisp.h (Qunloaded): New variable in UTF-2000.
1404
1405 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * mule-charset.c (put_char_ccs_code_point): Modify for
1408         `decoding_table_remove_char' and `decoding_table_put_char'.
1409         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1410
1411         * char-ucs.h (decoding_table_remove_char): Change arguments to
1412         hide decoding_table vector.
1413         (decoding_table_put_char): Likewise.
1414
1415 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1416
1417         * mule-charset.c (decoding_table_remove_char): Moved to
1418         char-ucs.h.
1419         (decoding_table_put_char): Likewise.
1420
1421         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1422         from mule-charset.c].
1423         (decoding_table_remove_char): New inline function [moved from
1424         mule-charset.c].
1425         (decoding_table_put_char): Likewise.
1426
1427 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1428
1429         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1430         extension.
1431
1432 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1433
1434         * mule-charset.c (decode_builtin_char): Support mother charsets.
1435
1436 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1437
1438         * mule-charset.c (Q94x94x60): New variable.
1439         (charset_code_point): Support conversion `94x94x60'.
1440         (Fmake_charset): Likewise.
1441         (syms_of_mule_charset): Add new symbol `94x94x60'.
1442
1443         * char-ucs.h (CONVERSION_94x94x60): New macro.
1444
1445 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1446
1447         * mule-charset.c (charset_code_point): Unify code about
1448         `code-offset'.
1449
1450 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1451
1452         * mule-charset.c (charset_code_point): Merge code about builtin
1453         characters into code about mother charsets; don't use
1454         `range_charset_code_point'.
1455         (range_charset_code_point): Deleted.
1456
1457 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * mule-charset.c (Qcode_offset): New variable.
1460         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1461         `max-code'; accept new property `code-offset'.
1462         (syms_of_mule_charset): Add new symbol `code-offset'.
1463
1464 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465
1466         * mule-charset.c (range_charset_code_point): Fixed.
1467
1468 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * mule-charset.c (decode_builtin_char): Change semantics of
1471         code-offset of coded-charset.
1472         (charset_code_point): Likewise.
1473         (range_charset_code_point): Likewise.
1474         (complex_vars_of_mule_charset): Modify for the change.
1475
1476 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (Fencode_char): Reverse arguments.
1479
1480         * mule-charset.c (charset_code_point): Fixed.
1481
1482 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * mule-charset.c (Vcharset_mojikyo): Deleted.
1485         (Vcharset_mojikyo_2022_1): Deleted.
1486         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1487         (Qmin_code): New variable in UTF-2000.
1488         (Qmax_code): Likewise.
1489         (Qmother): Likewise.
1490         (Qconversion): Likewise.
1491         (Q94x60): Likewise.
1492         (Qmojikyo): Deleted.
1493         (Qmojikyo_2022_1): Deleted.
1494         (Qmojikyo_pj_{1..22}): Deleted.
1495         (mark_charset): Mark `cs->mother'.
1496         (charset_description): Add description for `mother'.
1497         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1498         new arguments `mother' and `conversion'; use
1499         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1500         (charset_code_point): Moved from char-ucs.h; support `mother'
1501         charset feature.
1502         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1503         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1504         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1505         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1506         allow 2 as the value of `graphic' in UTF-2000; add new properties
1507         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1508         require `final' in UTF-2000; modify for `make_charset'.
1509         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1510         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1511         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1512         (Fencode_char): New function.
1513         (syms_of_mule_charset): Add new builtin function `encode-char' in
1514         UTF-2000; add new symbols `min-code', `max-code', `mother',
1515         `conversion' and `94x60'; delete symbols `mojikyo',
1516         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1517         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1518         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1519         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1520
1521         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1522         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1523
1524         * char-ucs.h (Vcharset_mojikyo): Deleted.
1525         (Vcharset_mojikyo_2022_1): Deleted.
1526         (LEADING_BYTE_MOJIKYO): Deleted.
1527         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1528         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1529         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1530         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1531         add new member `mother'; add new member `conversion'.
1532         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1533         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1534         (CHARSET_MOTHER): New macro.
1535         (CHARSET_CONVERSION): New macro.
1536         (CONVERSION_IDENTICAL): New macro.
1537         (CONVERSION_94x60): New macro.
1538         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1539         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1540         (XCHARSET_MOTHER): New macro.
1541         (XCHARSET_CONVERSION): New macro.
1542         (MIN_CHAR_MOJIKYO): Deleted.
1543         (MAX_CHAR_MOJIKYO): Deleted.
1544         (DECODE_MOJIKYO_2022): Deleted.
1545         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1546         (charset_code_point): Changed to non-inline function.
1547         (encode_char_1): Use `charset_code_point'.
1548         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1549
1550 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1551
1552         * lread.c (read_compiled_function): Fix prototype.
1553         (read_vector): Likewise.
1554
1555 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1556
1557         * lrecord.h (struct lrecord_header): Delete `older'.
1558         (set_lheader_implementation): Delete code for `older'.
1559         (set_lheader_older_implementation): Deleted.
1560         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1561         (OLDER_RECORD_P): Deleted.
1562         (OLDER_RECORD_HEADER_P): Deleted.
1563         (alloc_older_lcrecord): Deleted.
1564         (alloc_older_lcrecord_type): Deleted.
1565
1566         * alloc.c (all_older_lcrecords): Deleted.
1567         (alloc_older_lcrecord): Deleted.
1568         (disksave_object_finalization_1): Delete code for older objects.
1569         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1570         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1571
1572 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573
1574         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1575         instead of `make_older_vector'.
1576         (put_char_ccs_code_point): Likewise.
1577         (mark_charset): Mark `cs->decoding_table'.
1578         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1579
1580         * lisp.h (make_older_vector): Deleted.
1581         (make_vector_newer): Deleted.
1582
1583         * config.h.in (HAVE_GGC): Deleted.
1584
1585         * alloc.c (make_older_vector): Deleted.
1586         (make_vector_newer_1): Deleted.
1587         (make_vector_newer): Deleted.
1588
1589 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1590
1591         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1592         (Qideograph_daikanwa_2): New variable.
1593         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1594         (complex_vars_of_mule_charset): Add new coded-charset
1595         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1596         `LEADING_BYTE_DAIKANWA'.
1597
1598         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1599         (LEADING_BYTE_DAIKANWA_1): New macro.
1600         (LEADING_BYTE_DAIKANWA_2): New macro.
1601         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1602
1603 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1604
1605         * mule-charset.c (complex_vars_of_mule_charset): Change
1606         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1607         the second revised version.
1608
1609 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * mule-charset.c (Vcharset_ucs_smp): New variable.
1612         (Vcharset_ucs_sip): New variable.
1613         (Qucs_smp): New variable.
1614         (Qucs_sip): New variable.
1615         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1616         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1617         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1618         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1619         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1620         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1621
1622         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1623         (LEADING_BYTE_UCS_SIP): New macro.
1624         (MIN_CHAR_SMP): New macro.
1625         (MAX_CHAR_SMP): New macro.
1626         (MIN_CHAR_SIP): New macro.
1627         (MAX_CHAR_SIP): New macro.
1628
1629 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1630
1631         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1632         utf-2000.
1633
1634 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635
1636         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1637         value; don't store value into `encoding_table' of `Lisp_Charset'.
1638         (mark_charset): `encoding_table' was deleted.
1639         (charset_description): Likewise.
1640         (make_charset): Likewise.
1641         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1642         `put_char_ccs_code_point'.
1643
1644         * chartab.h (Fput_char_attribute): New EXFUN.
1645
1646         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1647         is unified with normal symbol space.
1648         (Fget_char_attribute): Likewise.
1649         (Fput_char_attribute): Likewise; behavior of
1650         `put_char_ccs_code_point' is changed.
1651
1652         * char-ucs.h: Include "elhash.h".
1653         (Vchar_attribute_hash_table): New external variable.
1654         (struct Lisp_Charset): Delete `encoding_table'.
1655         (CHARSET_ENCODING_TABLE): New implementation; refer
1656         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1657         `Lisp_Charset'.
1658
1659 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660
1661         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1662         (cs) == 0.
1663
1664 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1665
1666         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1667         `chinese-big5'.
1668
1669 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1670
1671         * chartab.c (uint8_byte_table_description): New constant.
1672         (uint8-byte-table): Use `uint8_byte_table_description'.
1673         (uint16_byte_table_description): New constant.
1674         (uint16-byte-table): Use `uint16_byte_table_description'.
1675
1676 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677
1678         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1679         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1680
1681 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1682
1683         * mule-charset.c (Vcharset_ucs_ks): New variable.
1684         (Qucs_ks): New variable.
1685         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1686         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1687
1688         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1689
1690 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691
1692         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1693         (Fdecode_char): Likewise.
1694
1695         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1696         chartab.h.
1697         (Fdefine_char): Modify for Fdecode_char.
1698         (Ffind_char): Likewise.
1699
1700         * mule-charset.c (Fdecode_char): Add new optional argument
1701         `defined-only'.
1702         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1703
1704 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1705
1706         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1707         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1708         (allocate_coding_system): Initialize initial-charsets of
1709         CODESYS_BIG5 in XEmacs UTF-2000.
1710         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1711         CODESYS_BIG5 in XEmacs UTF-2000.
1712         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1713         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1714
1715         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1716         variables.
1717         (Qideograph_hanziku_{1 .. 12}): Likewise.
1718         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1719         .. 12}'.
1720         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1721         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1722         `ideograph-hanziku-{1 .. 12}'.
1723
1724         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1725         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1726         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1727         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1728         (DECODE_DEFINED_CHAR): New inline function.
1729         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1730
1731 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * mule-charset.c (Vcharset_china3_jef): Renamed from
1734         `Vcharset_japanese_jef_china3'.
1735         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1736         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1737         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1738         (syms_of_mule_charset): Rename `china3-jef' from
1739         `japanese-jef-china3'.
1740         (complex_vars_of_mule_charset): Likewise; rename
1741         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1742
1743         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1744         `LEADING_BYTE_JEF_CHINA3'.
1745         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1746         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1747
1748 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749
1750         * mule-charset.c (encode_builtin_char_1): Comment out special code
1751         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1752
1753         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1754         (MAX_CHAR_MOJIKYO_0): Comment out.
1755         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1756         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1757         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1758         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1759
1760 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1761
1762         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1763         (Qideograph_cbeta): New variable.
1764         (encode_builtin_char_1): Comment out special code for
1765         coded-charset `mojikyo' and `japanese-jef-china3'.
1766         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1767         (complex_vars_of_mule_charset): Add new coded-charset
1768         `ideograph-cbeta'.
1769
1770         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1771         (MIN_CHAR_CBETA): New macro.
1772         (MAX_CHAR_CBETA): New macro.
1773
1774 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1777         (LEADING_BYTE_JEF_CHINA3): New macro.
1778         (MIN_CHAR_JEF_CHINA3): New macro.
1779         (MAX_CHAR_JEF_CHINA3): Likewise.
1780         (DECODE_CHAR): Fixed.
1781
1782 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1783
1784         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1785         (Qjapanese_jef_china3): New variable.
1786         (encode_builtin_char_1): Support `japanese-jef-china3'.
1787         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1788         (complex_vars_of_mule_charset): Add new coded-charset
1789         `japanese-jef-china3'.
1790
1791 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1794         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1795         94^4, 96^3, 96^4, 128^n and 256^n set.
1796         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1797         (map_char_table): Likewise.
1798
1799 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800
1801         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1802         UTF-2000.
1803
1804 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1805
1806         * chartab.h (get_char_id_table): New inline function.
1807
1808         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1809         function.
1810
1811 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1812
1813         * chartab.h (decode_char_table_range): New prototype in XEmacs
1814         UTF-2000.
1815         (put_char_id_table): New inline function in XEmacs UTF-2000.
1816
1817         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1818         function.
1819         (decode_char_table_range): Delete static declaration in XEmacs
1820         UTF-2000.
1821
1822 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1823
1824         * chartab.c (put_char_id_table): Use `put_char_table'.
1825
1826 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827
1828         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1829         (map_over_uint16_byte_table): Likewise.
1830         (map_over_byte_table): Likewise.
1831         (map_char_table): Modify for `map_over_uint8_byte_table',
1832         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1833         UTF-2000.
1834
1835 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836
1837         * chartab.c (struct map_char_table_for_charset_arg): New
1838         structure.
1839         (map_char_table_for_charset_fun): New function.
1840         (map_char_table): Use `map_char_table' for encoding_table of
1841         `range->charset'.
1842
1843 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844
1845         * chartab.c (map_char_table): Check a character is found in
1846         range->charset instead of non default value is defined in
1847         char-table when range is CHARTAB_RANGE_ROW.
1848
1849 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * chartab.c (map_char_id_table): Deleted.
1852         (Fmap_char_attribute): Use `map_char_table' instead of
1853         `map_char_id_table'.
1854
1855 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1856
1857         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1858         UTF-2000.
1859         (update_syntax_table): Deleted in XEmacs UTF-2000.
1860
1861         * syntax.c (find_defun_start): Use `syntax_table' instead of
1862         `mirror_syntax_table' in XEmacs UTF-2000.
1863         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1864         UTF-2000.
1865         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1866         XEmacs UTF-2000.
1867         (Fmatching_paren): Likewise.
1868         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1869         in XEmacs UTF-2000.
1870         (find_start_of_comment): Likewise.
1871         (find_end_of_comment): Likewise.
1872         (Fforward_comment): Likewise.
1873         (scan_lists): Likewise.
1874         (char_quoted): Likewise.
1875         (Fbackward_prefix_chars): Likewise.
1876         (scan_sexps_forward): Likewise.
1877         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1878         (update_syntax_table): Likewise.
1879
1880         * search.c (skip_chars): Use `syntax_table' instead of
1881         `mirror_syntax_table' in XEmacs UTF-2000.
1882         (wordify): Likewise.
1883         (Freplace_match): Likewise.
1884
1885         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1886         `mirror_syntax_table' in XEmacs UTF-2000.
1887         (WORDCHAR_P_UNSAFE): Likewise.
1888         (re_match_2_internal): Likewise.
1889
1890         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1891         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1892
1893         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1894         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1895
1896         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1897         XEmacs UTF-2000.
1898
1899         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1900         UTF-2000.
1901         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1902         (char_table_description): Delete `mirror_table' in XEmacs
1903         UTF-2000.
1904         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1905         UTF-2000.
1906         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1907         (Fcopy_char_table): Likewise.
1908         (put_char_table): Don't call `update_syntax_table' in XEmacs
1909         UTF-2000.
1910
1911         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1912         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1913         (casify_region_internal): Likewise.
1914
1915         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1916
1917         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1918         `mirror_syntax_table' in XEmacs UTF-2000.
1919
1920         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1921         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1922         (Fexpand_abbrev): Likewise.
1923
1924 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925
1926         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1927
1928 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1929
1930         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1931         (map_over_uint16_byte_table): Likewise.
1932         (map_over_byte_table): Likewise.
1933         (get_char_id_table): Refer `cit->default_value'.
1934         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1935         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1936         of character-id ranges.
1937         (mark_char_table): Mark `ct->default_value'.
1938         (char_table_description): Add `default_value'.
1939         (fill_char_table): Use `default_value'.
1940         (decode_char_table_range): Decode `nil' as
1941         `CHARTAB_RANGE_DEFAULT'.
1942         (get_char_id_table): Refer `cit->default_value'.
1943         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1944         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1945         temporary hack; check value of char-table is bound or not.
1946         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1947
1948         * chartab.h (struct Lisp_Char_Table): Add new member
1949         `default_value' in XEmacs UTF-2000.
1950         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1951         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1952         UTF-2000.
1953
1954 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1955
1956         * chartab.h (Lisp_Char_ID_Table): Deleted.
1957
1958         * chartab.c (char_table_description): Fix typo.
1959         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1960         `Lisp_Char_ID_Table'.
1961
1962 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1965         `CHAR_ID_TABLE_P'.
1966
1967         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1968         `CHAR_ID_TABLE_P'.
1969
1970         * chartab.h (XCHAR_ID_TABLE): Deleted.
1971         (XSETCHAR_ID_TABLE): Deleted.
1972         (CHAR_ID_TABLE_P): Deleted.
1973
1974         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1975         `CHAR_ID_TABLE_P'.
1976         (Fget_composite_char): Likewise.
1977         (put_char_table): Likewise.
1978         (add_char_attribute_alist_mapper): Fixed.
1979         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1980         `CHAR_ID_TABLE_P'.
1981         (Fget_char_attribute): Likewise.
1982         (Fget_char_attribute): Likewise.
1983         (Fmap_char_attribute): Likewise.
1984
1985         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1986         `CHAR_ID_TABLE_P'.
1987         (encode_char_1): Likewise.
1988
1989 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1990
1991         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1992         `XCHAR_ID_TABLE'.
1993
1994         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1995         instead of `XCHAR_ID_TABLE'.
1996         (remove_char_ccs): Likewise.
1997
1998         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1999         `XCHAR_ID_TABLE'.
2000         (Fget_composite_char): Likewise.
2001         (Fchar_variants): Likewise.
2002         (put_char_table): Likewise.
2003         (add_char_attribute_alist_mapper): Likewise.
2004         (Fchar_attribute_alist): Likewise.
2005         (Fget_char_attribute): Likewise.
2006         (Fput_char_attribute): Likewise.
2007         (Fmap_char_attribute): Likewise.
2008         (Fmap_char_attribute): Likewise.
2009
2010         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2011         `XCHAR_ID_TABLE'.
2012         (encode_char_1): Likewise.
2013
2014 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2017         `Lisp_Char_ID_Table'.
2018         (mark_char_id_table): Deleted.
2019         (print_char_id_table): Likewise.
2020         (char_id_table_equal): Likewise.
2021         (char_id_table_hash): Likewise.
2022         (char_id_table_description): Likewise.
2023         (char_id_table): Likewise.
2024         (make_char_id_table): Use `Fmake_char_table' and
2025         `fill_char_table'.
2026         (get_char_id_table): Use `Lisp_Char_Table' instead of
2027         `Lisp_Char_ID_Table'.
2028         (put_char_id_table): Likewise.
2029         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2030         `XCHAR_ID_TABLE'.
2031         (Fremove_char_attribute): Likewise.
2032         (syms_of_chartab): Don't define type `char-id-table'.
2033
2034         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2035         (char_id_table): Likewise.
2036         (GC_CHAR_ID_TABLE_P): Likewise.
2037         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2038         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2039         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2040         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2041         (get_char_id_table): Use `Lisp_Char_Table' instead of
2042         `Lisp_Char_ID_Table'.
2043         (put_char_id_table_0): Likewise.
2044         (put_char_id_table): Likewise.
2045
2046 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2047
2048         * chartab.h: Lisp_Byte_Table related codes are moved from
2049         chartab.h.
2050
2051         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2052
2053 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2054
2055         * chartab.h: Don't include "chartab.h".
2056         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2057         (Lisp_Char_ID_Table): Likewise.
2058         (char_id_table): Likewise.
2059         (XCHAR_ID_TABLE): Likewise.
2060         (XSETCHAR_ID_TABLE): Likewise.
2061         (CHAR_ID_TABLE_P): Likewise.
2062         (GC_CHAR_ID_TABLE_P): Likewise.
2063         (get_char_id_table): Likewise.
2064
2065         * char-ucs.h: Include "chartab.h".
2066         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2067         (Lisp_Char_ID_Table): Likewise.
2068         (char_id_table): Likewise.
2069         (XCHAR_ID_TABLE): Likewise.
2070         (XSETCHAR_ID_TABLE): Likewise.
2071         (CHAR_ID_TABLE_P): Likewise.
2072         (GC_CHAR_ID_TABLE_P): Likewise.
2073         (get_char_id_table): Likewise.
2074
2075 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2076
2077         * chartab.c (copy_uint8_byte_table): New function.
2078         (copy_uint16_byte_table): New function.
2079         (copy_byte_table): New function.
2080         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2081         characters to call.
2082         (map_over_uint16_byte_table): Likewise.
2083         (map_over_byte_table): Likewise.
2084         (get_byte_table): Move prototype to chartab.h.
2085         (put_byte_table): Likewise.
2086         (put_char_id_table_0): Moved to chartab.h.
2087         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2088         (char_table_entry_equal): Likewise.
2089         (char_table_entry_hash): Likewise.
2090         (char_table_entry_description): Likewise.
2091         (char_table_entry): Likewise.
2092         (make_char_table_entry): Likewise.
2093         (copy_char_table_entry): Likewise.
2094         (get_non_ascii_char_table_value): Likewise.
2095         (map_over_charset_ascii): Likewise.
2096         (map_over_charset_control_1): Likewise.
2097         (map_over_charset_row): Likewise.
2098         (map_over_other_charset): Likewise.
2099         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2100         (print_char_table): Likewise.
2101         (char_table_equal): Likewise.
2102         (char_table_hash): Likewise.
2103         (char_table_description): Likewise.
2104         (fill_char_table): Likewise.
2105         (Fcopy_char_table): Likewise.
2106         (get_char_table): Likewise.
2107         (Fget_range_char_table): Likewise.
2108         (put_char_table): Likewise.
2109         (map_char_table): Likewise.
2110         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2111         UTF-2000.
2112
2113 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2114
2115         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2116         `Vauto_fill_chars' in XEmacs UTF-2000.
2117
2118         * chartab.h (get_byte_table): New prototype [moved from
2119         chartab.c].
2120         (put_byte_table): Likewise [moved from chartab.c].
2121         (put_char_id_table_0): New inline function [moved from chartab.c].
2122         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2123         (Lisp_Char_Table_Entry): Likewise.
2124         (char_table_entry): Likewise.
2125         (XCHAR_TABLE_ENTRY): Likewise.
2126         (XSETCHAR_TABLE_ENTRY): Likewise.
2127         (CHAR_TABLE_ENTRYP): Likewise.
2128         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2129         (NUM_ASCII_CHARS): Likewise.
2130         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2131         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2132
2133 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134
2135         * chartab.c (get_char_id_table): Change interface.
2136         (put_char_id_table_0): New function.
2137         (put_char_id_table): Change interface; new implementation.
2138         (Fget_composite_char): Modify for interface change of
2139         `get_char_id_table'.
2140         (Fchar_variants): Likewise.
2141         (add_char_attribute_alist_mapper): Likewise.
2142         (Fchar_attribute_alist): Likewise.
2143         (Fget_char_attribute): Likewise.
2144         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2145         as same as character as the first argument like `put-char-table';
2146         modify for interface change of `put_char_id_table'.
2147         (Fremove_char_attribute): Modify for interface change of
2148         `put_char_id_table'.
2149
2150 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2151
2152         * text-coding.c: Sync up with XEmacs 21.2.41.
2153         (COMPOSE_ADD_CHAR): Modify for interface change of
2154         `get_char_id_table'.
2155
2156         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2157         change of `put_char_id_table'.
2158         (remove_char_ccs): Likewise.
2159
2160         * chartab.h (put_char_id_table): Change interface.
2161
2162         * char-ucs.h (get_char_id_table): Change interface.
2163         (charset_code_point): Modify for interface change of
2164         `get_char_id_table'.
2165         (encode_char_1): Likewise.
2166
2167 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2170         argument `ccs'.
2171         (map_over_uint16_byte_table): Likewise.
2172         (map_over_byte_table): Likewise.
2173         (map_char_id_table): Add new argument `range' like
2174         `map_char_table'.
2175         (Fmap_char_attribute): Add new argument `range' like
2176         `Fmap_char_table'.
2177
2178 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2179
2180         * chartab.c (map_over_uint8_byte_table): Change interface of
2181         mapping function to use struct chartab_range instead of Emchar.
2182         (map_over_uint16_byte_table): Likewise.
2183         (map_over_byte_table): Likewise.
2184         (map_char_id_table): Likewise.
2185         (struct slow_map_char_id_table_arg): Deleted.
2186         (slow_map_char_id_table_fun): Deleted.
2187         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2188         function `slow_map_char_table_fun' instead of struct
2189         `slow_map_char_id_table_arg' and function
2190         `slow_map_char_id_table_fun'.
2191
2192 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * mule-charset.c: Move char-it-table related codes to chartab.c.
2195         (Vutf_2000_version): Moved to chartab.c.
2196         (Fdefine_char): Likewise.
2197         (Ffind_char): Likewise.
2198         (syms_of_mule_charset): Move types `uint8-byte-table',
2199         `uint16-byte-table', `byte-table' and `char-id-table' to
2200         chartab.c; move functions `char_attribute_list,
2201         `find_char_attribute_table, `char_attribute_alist,
2202         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2203         `map_char_attribute, `define_char, `find_char, `char_variants and
2204         `get_composite_char to chartab.c; move symbols `=>ucs',
2205         `->decomposition', `compat', `isolated', `initial', `medial',
2206         `final', `vertical', `noBreak', `fraction', `super', `sub',
2207         `circle', `square', `wide', `narrow', `small' and `font' to
2208         chartab.c.
2209         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2210         setting codes for `Vcharacter_composition_table' and
2211         `Vcharacter_variant_table' to chartab.c.
2212         (complex_vars_of_mule_charset): Move setting code for
2213         `Vchar_attribute_hash_table' to chartab.c.
2214
2215         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2216         (make_char_id_table): New prototype.
2217         (put_char_id_table): Likewise.
2218         (Fget_char_attribute): Likewise.
2219
2220         * chartab.c: Move char-id-table related code from mule-charset.c.
2221         (Vutf_2000_version): Moved from mule-charset.c.
2222
2223         * char-ucs.h (Qucs): New external variable.
2224         (put_char_ccs_code_point): New prototype.
2225         (remove_char_ccs): Likewise.
2226
2227 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2228
2229         * mule-charset.c (Vcharset_ucs_jis): New variable.
2230         (Qucs_jis): Likewise.
2231         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2232         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2233
2234         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2235
2236 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2237
2238         * mule-charset.c (map_over_uint8_byte_table): New function.
2239         (map_over_uint16_byte_table): Likewise.
2240         (map_over_byte_table): Likewise.
2241         (map_char_id_table): Likewise.
2242         (slow_map_char_id_table_fun): Likewise.
2243         (Fmap_char_attribute): Likewise.
2244         (syms_of_mule_charset): Add new function `map-char-attribute'.
2245
2246 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2249         (syms_of_mule_charset): Add new function `find-char'.
2250
2251 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2254         XEmacs UTF-2000.
2255         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2256         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2257         XEmacs UTF-2000.
2258         (complex_vars_of_mule_charset): Add new coded-charset
2259         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2260         `ideograph-gt-pj-*'.
2261
2262         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2263
2264 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2265
2266         * mule-charset.c (encode_builtin_char_1): Purge codes about
2267         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2268         {MIN|MAX}_CHAR_HEBREW.
2269         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2270         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2271
2272         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2273         (MAX_CHAR_GREEK): Purged.
2274         (MIN_CHAR_CYRILLIC): Purged.
2275         (MAX_CHAR_CYRILLIC): Purged.
2276         (MIN_CHAR_HEBREW): Commented out.
2277         (MAX_CHAR_HEBREW): Likewise.
2278
2279 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280
2281         * mule-charset.c (Qto_ucs): New variable.
2282         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2283         (Fdefine_char): Likewise.
2284         (syms_of_mule_charset): Add new symbol `=>ucs'.
2285
2286 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2287
2288         * mule-charset.c (Fdecode_char): Fixed.
2289
2290 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2291
2292         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2293         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2294         "tcvn5712-1".
2295
2296 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297
2298         * mule-charset.c (Vcharset_ucs_big5): New variable.
2299         (Qucs_big5): Likewise.
2300         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2301         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2302
2303         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2304
2305 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2306
2307         * mule-charset.c (decode_builtin_char): Check Big5 code range
2308         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2309
2310 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2313         (Qchinese_gb12345): Likewise.
2314         (Fdecode_builtin_char): Fixed.
2315         (syms_of_mule_charset): Add `chinese-gb12345'.
2316         (complex_vars_of_mule_charset): Add coded-charset
2317         `chinese-gb12345'.
2318
2319         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2320         (LEADING_BYTE_CHINESE_GB12345): New macro.
2321
2322 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2323
2324         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2325         and `latin-viscii-upper' for `latin-viscii'.
2326
2327 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * mule-charset.c (Fdecode_builtin_char): Comment out
2330         regularization code for ISO-IR GR representation.
2331
2332 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * mule-charset.c (decode_builtin_char): New function; renamed from
2335         `make_builtin_char'; return -1 instead of signal.
2336         (Fdecode_builtin_char): Use `decode_builtin_char'.
2337
2338         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2339         `make_builtin_char'.
2340         (DECODE_CHAR): Use `decode_builtin_char' instead of
2341         `make_builtin_char'; use mapping table of `chinese-big5' for
2342         `chinese-big5-{1,2}'.
2343
2344 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2345
2346         * text-coding.c (char_encode_big5): New function.
2347         (char_finish_big5): Likewise.
2348         (reset_encoding_stream): Use `char_encode_big5' and
2349         `char_finish_big5' for CODESYS_BIG5.
2350         (mule_encode): Don't use `encode_coding_big5'.
2351         (encode_coding_big5): Deleted.
2352
2353 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2354
2355         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2356         0x81- in XEmacs UTF-2000.
2357         (detect_coding_big5): Likewise.
2358
2359 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360
2361         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2362         generate character-id if the CCS property does not have
2363         corresponding predefined character.
2364         (make_builtin_char): Return -1 if corresponding predefined
2365         character is not found.
2366         (Fdecode_char): Return nil if corresponding character is not
2367         found.
2368         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2369         don't map to builtin ucs space.
2370
2371 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2372
2373         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2374         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2375
2376 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2377
2378         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2379         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2380         (Qideograph_gt): Likewise.
2381         (Qideograph_gt_pj_{1..11}): Likewise.
2382         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2383         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2384         `ideograph-gt-pj-11'.
2385         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2386         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2387         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2388
2389         * char-ucs.h (LEADING_BYTE_GT): New macro.
2390         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2391         (MIN_CHAR_GT): Likewise.
2392         (MAX_CHAR_GT): Likewise.
2393
2394 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2395
2396         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2397         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2398
2399         * doprnt.c (unsigned_int_converters): Add `c'.
2400         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2401
2402         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2403         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2404         `MIN_CHAR_MOJIKYO'.
2405         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2406         (MAX_CHAR_MOJIKYO_0): New macro.
2407         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2408
2409 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2410
2411         * mule-charset.c (Fdefine_char): Delete cemented out code.
2412         (encode_builtin_char_1): Modify for new allocation of builtin
2413         Mojikyo characters.
2414
2415         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2416
2417 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * mule-charset.c (Vcharset_ucs_cns): New variable.
2420         (Qucs_cns): New variable.
2421         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2422         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2423
2424 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2425
2426         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2427
2428 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2429
2430         * search.c (search_buffer): Make `charset_base_code' as
2431         character-id >> 6 to eliminate the corresponding last byte in
2432         UTF-8 representation [I'm not sure it is right thing].
2433         (boyer_moore): Likewise.
2434
2435 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2436
2437         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2438         representation in MULE.
2439
2440 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441
2442         * text-coding.c (Fmake_coding_system): Use
2443         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2444         `EXTERNAL_PROPERTY_LIST_LOOP'.
2445
2446 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447
2448         * text-coding.c (decode_output_utf8_partial_char): New function.
2449         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2450
2451 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2452
2453         * text-coding.c (decode_coding_utf8): Output original byte
2454         sequence if it is broken; change order of conditions.
2455
2456         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2457         of conditions.
2458
2459         * mb-multibyte.h (BYTE_ASCII_P):
2460         Use bit ops for char-signedness safety.
2461         (BYTE_C0_P): Use bit ops for char-signedness safety.
2462         (BYTE_C1_P): Use bit ops for char-signedness safety.
2463
2464         * character.h: (XCHAR_OR_CHAR_INT):
2465         Always use inline function.
2466         Remove redundant type checking assert() - XINT will abort quite
2467         nicely.
2468
2469 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * text-coding.c: (Fencode_shift_jis_char):
2472         (Fencode_big5_char):
2473         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2474         Replace 0 with '\0' when working with bytes.
2475         Replace initial "(" with "\(" in docstrings.
2476
2477         (Fmake_coding_system):
2478         When type is ccl and value is vector, register it with a proper
2479         symbol.  And checks whether the given ccl program is valid.
2480         (mule_decode): When calling ccl_driver, if src indicates
2481         NULL pointer, set an empty string instead.
2482         (mule_encode): Likewise.
2483
2484         (detect_eol_type):
2485         (detect_coding_sjis):
2486         (decode_coding_sjis):
2487         (detect_coding_big5):
2488         (decode_coding_big5):
2489         (detect_coding_ucs4):
2490         (decode_coding_ucs4):
2491         (detect_coding_utf8):
2492         (decode_coding_utf8):
2493         (detect_coding_iso2022):
2494         (decode_coding_iso2022):
2495         (decode_coding_no_conversion):
2496         (mule_decode):
2497         Make all detecting and decoding functions take an Extbyte * arg.
2498         (text_encode_generic):
2499         (encode_coding_big5):
2500         (encode_coding_no_conversion):
2501         (mule_encode):
2502         Make all encoding functions take a Bufbyte * arg.
2503         Use size_t instead of unsigned int for memory sizes.
2504         Only cast to unsigned char whenever dereferencing Extbyte *.
2505
2506         (struct lrecord_description fcd_description_1): Use countof.
2507         (complex_vars_of_file_coding):
2508         Use countof instead of sizeof.
2509         Use CHECK_NATNUM instead of CHECK_INT.
2510
2511 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * mule-charset.c (Fget_char_attribute): Add new optional argument
2514         `default-value'.
2515         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2516         (remove_char_ccs): Likewise.
2517
2518 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2519
2520         * text-coding.c (char_encode_shift_jis): New implementation in
2521         UTF-2000.
2522         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2523         ...)'.
2524
2525         * mule-charset.c (Vcharset_chinese_big5): New variable in
2526         UTF-2000.
2527         (Qchinese_big5): New variable in UTF-2000.
2528         (BIG5_SAME_ROW): New macro in UTF-2000.
2529         (make_builtin_char): Use builtin characters of
2530         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2531         characters of `Vcharset_chinese_big5'.
2532         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2533         (complex_vars_of_mule_charset): Add new coded-charset
2534         `chinese-big5' in UTF-2000.
2535
2536         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2537         (Vcharset_chinese_big5): New external variable declaration.
2538         (Vcharset_japanese_jisx0208_1990): Likewise.
2539
2540 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2541
2542         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2543         function.
2544         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2545
2546 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2547
2548         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2549         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2550         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2551         `mojikyo-pj-*'.
2552
2553 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2554
2555         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2556
2557 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2558
2559         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2560         to 0.17.
2561
2562 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2565         for `CHARSET_BY_ATTRIBUTES'.
2566         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2567         `CHARSET_BY_ATTRIBUTES'.
2568
2569         * text-coding.c (struct decoding_stream): Rename member `CH' to
2570         `CPOS'.
2571         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2572         (decode_coding_sjis): Likewise.
2573         (decode_coding_big5): Likewise.
2574         (decode_coding_ucs4): Likewise.
2575         (decode_coding_utf8): Likewise.
2576         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2577         `CHARSET_BY_ATTRIBUTES'.
2578         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2579         `str->counter'; decode 3, 4 bytes sets.
2580         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2581         sets.
2582         (decode_coding_no_conversion): Use `str->cpos' instead of
2583         `str->ch'.
2584
2585         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2586         (Qmojikyo_2022_1): New variable.
2587         (make_charset): Don't use `CHARSET_TYPE_*'.
2588         (range_charset_code_point): Support coded-charset
2589         `mojikyo-2022-1'.
2590         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2591         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2592         `CHARSET_BY_ATTRIBUTES'.
2593         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2594         `CHARSET_BY_ATTRIBUTES'.
2595         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2596         (complex_vars_of_mule_charset): Add new coded-charset
2597         `mojikyo-2022-1'.
2598
2599         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2600         interface; changed to inline function.
2601
2602         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2603         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2604         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2605         (CHARSET_TYPE_94): Deleted.
2606         (CHARSET_TYPE_94X94): Deleted.
2607         (CHARSET_TYPE_96): Deleted.
2608         (CHARSET_TYPE_96X96): Deleted.
2609         (CHARSET_TYPE_128): Deleted.
2610         (CHARSET_TYPE_128X128): Deleted.
2611         (CHARSET_TYPE_256): Deleted.
2612         (CHARSET_TYPE_256X256): Deleted.
2613         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2614         to inline function.
2615         (DECODE_MOJIKYO_2022): New inline function.
2616         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2617         `Vcharset_mojikyo_2022_1'.
2618
2619 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620
2621         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2622         instead of `EQ'.
2623         (put_byte_table): Likewise.
2624         (char_id_table_equal): Use `get_byte_table' [new implementation].
2625
2626 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * mule-charset.c: Include <limits.h> in UTF-2000.
2629         (BT_UINT8_MIN): New macro in UTF-2000.
2630         (BT_UINT8_MAX): New macro in UTF-2000.
2631         (BT_UINT8_t): New macro in UTF-2000.
2632         (BT_UINT8_nil): New macro in UTF-2000.
2633         (BT_UINT8_unbound): New macro in UTF-2000.
2634         (INT_UINT8_P): New inline function in UTF-2000.
2635         (UINT8_VALUE_P): New inline function in UTF-2000.
2636         (UINT8_ENCODE): New inline function in UTF-2000.
2637         (UINT8_DECODE): New inline function in UTF-2000.
2638         (mark_uint8_byte_table): New function in UTF-2000.
2639         (print_uint8_byte_table): New function in UTF-2000.
2640         (uint8_byte_table_equal): New function in UTF-2000.
2641         (uint8_byte_table_hash): New function in UTF-2000.
2642         (make_uint8_byte_table): New function in UTF-2000.
2643         (uint8_byte_table_same_value_p): New function in UTF-2000.
2644         (BT_UINT16_MIN): New macro in UTF-2000.
2645         (BT_UINT16_MAX): New macro in UTF-2000.
2646         (BT_UINT16_t): New macro in UTF-2000.
2647         (BT_UINT16_nil): New macro in UTF-2000.
2648         (BT_UINT16_unbound): New macro in UTF-2000.
2649         (INT_UINT16_P): New inline function in UTF-2000.
2650         (UINT16_VALUE_P): New inline function in UTF-2000.
2651         (UINT16_ENCODE): New inline function in UTF-2000.
2652         (UINT16_DECODE): New inline function in UTF-2000.
2653         (UINT8_TO_UINT16): New inline function in UTF-2000.
2654         (mark_uint16_byte_table): New function in UTF-2000.
2655         (print_uint16_byte_table): New function in UTF-2000.
2656         (uint16_byte_table_equal): New function in UTF-2000.
2657         (uint16_byte_table_hash): New function in UTF-2000.
2658         (make_uint16_byte_table): New function in UTF-2000.
2659         (uint16_byte_table_same_value_p): New function in UTF-2000.
2660         (print_byte_table): New function in UTF-2000.
2661         (byte-table): Use `print_byte_table' as printer.
2662         (make_byte_table): Delete second argument `older'.
2663         (byte_table_same_value_p): New function in UTF-2000.
2664         (copy_byte_table): Deleted.
2665         (get_byte_table): New function in UTF-2000.
2666         (put_byte_table): New function in UTF-2000.
2667         (print_char_id_table): New function in UTF-2000.
2668         (char-id-table): Use `print_char_id_table' as printer.
2669         (make_char_id_table): Delete second argument `older'.
2670         (get_char_id_table): Use `get_byte_table [new implementation].
2671         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2672         implementation].
2673         (Ffind_char_attribute_table): New function in UTF-2000.
2674         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2675         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2676         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2677         (syms_of_mule_charset): Add new function
2678         `find-char-attribute-table' in UTF-2000.
2679
2680         * lrecord.h (enum lrecord_type): Add
2681         `lrecord_type_uint16_byte_table' and
2682         `lrecord_type_uint8_byte_table'.
2683
2684         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2685         (Lisp_Uint8_Byte_Table): New type.
2686         (XUINT8_BYTE_TABLE): New macro.
2687         (XSETUINT8_BYTE_TABLE): New macro.
2688         (UINT8_BYTE_TABLE_P): New macro.
2689         (GC_UINT8_BYTE_TABLE_P): New macro.
2690         (struct Lisp_Uint16_Byte_Table): New structure.
2691         (Lisp_Uint16_Byte_Table): New type.
2692         (XUINT16_BYTE_TABLE): New macro.
2693         (XSETUINT16_BYTE_TABLE): New macro.
2694         (UINT16_BYTE_TABLE_P): New macro.
2695         (GC_UINT16_BYTE_TABLE_P): New macro.
2696
2697 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2698
2699         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2700         (Vcharacter_ideographic_strokes_table): Deleted.
2701         (Vcharacter_total_strokes_table): Deleted.
2702         (Vcharacter_morohashi_daikanwa_table): Deleted.
2703         (Vcharacter_decomposition_table): Deleted.
2704         (Qname): Deleted because it is duplicated.
2705         (Qideographic_radical): Deleted.
2706         (Qideographic_strokes): Deleted.
2707         (Qtotal_strokes): Deleted.
2708         (Qmorohashi_daikanwa): Deleted.
2709         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2710         `ideographic-radical', `ideographic-strokes', `total-strokes',
2711         `morohashi-daikanwa' and `->decomposition'.
2712         (Fget_char_attribute): Likewise.
2713         (Fput_char_attribute): Likewise; use `make-vector' instead of
2714         `make_older_vector' for `->decomposition' value.
2715         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2716         `ideograph-daikanwa'.
2717         (syms_of_mule_charset): Delete builtin symbols `name',
2718         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2719         `morohashi-daikanwa'.
2720         (vars_of_mule_charset): Don't setup
2721         `Vcharacter_ideographic_radical_table',
2722         `Vcharacter_ideographic_strokes_table',
2723         `Vcharacter_total_strokes_table',
2724         `Vcharacter_morohashi_daikanwa_table' and
2725         `Vcharacter_decomposition_table'.
2726
2727 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2730         `make_older_vector', `make_vector_newer_1' and
2731         `make_vector_newer'.
2732
2733         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2734         `make_older_vector' and `make_vector_newer'.
2735
2736         * config.h.in (HAVE_GGC): New macro.
2737
2738 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739
2740         * mule-charset.c (struct char_attribute_list_closure): New
2741         structure in UTF-2000.
2742         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2743         (Fchar_attribute_list): Likewise.
2744         (Fset_charset_mapping_table): Use `make_vector_newer'.
2745         (Fdecode_builtin_char): New function in UTF-2000.
2746         (syms_of_mule_charset): Add new function `char-attribute-list' and
2747         `decode-builtin-char' in UTF-2000.
2748
2749         * lisp.h (make_vector_newer): New prototype.
2750
2751         * alloc.c (make_vector_newer_1): New function.
2752         (make_vector_newer): New function.
2753
2754 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2755
2756         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2757         50100)'.
2758
2759 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2760
2761         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2762         (Vcharacter_attribute_table): Deleted.
2763         (Vcharacter_name_table): Deleted.
2764         (put_char_attribute): Deleted.
2765         (remove_char_attribute): Deleted.
2766         (struct char_attribute_alist_closure): New structure.
2767         (add_char_attribute_alist_mapper): New function.
2768         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2769         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2770         (Fget_char_attribute): Likewise.
2771         (Fput_char_attribute): Likewise.
2772         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2773         of `remove_char_attribute'.
2774         (Fdefine_char): Return character.
2775         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2776         and `Vcharacter_name_table'.
2777         (complex_vars_of_mule_charset): Likewise
2778         `Vchar_attribute_hash_table'.
2779
2780 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2781
2782         * character.h (CHARC_CHARSET): New macro.
2783         (CHARC_CHARSET_ID): New macro.
2784         (CHARC_CODE_POINT): New macro.
2785         (CHARC_COLUMNS): New macro.
2786         (CHARC_TO_CHAR): New inline function.
2787         (CHARC_EQ): New inline function.
2788         (CHARC_ASCII_EQ): New inline function.
2789         (CHARC_IS_SPACE): New inline function.
2790         (ASCII_TO_CHARC): New inline function.
2791
2792         * char-ucs.h (encode_char_2): Deleted.
2793         (ENCODE_CHAR): Use `encode_char_1' again.
2794         (breakup_char_1): Likewise.
2795         (CHAR_TO_CHARC): New inline function.
2796
2797         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2798
2799 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2800
2801         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2802         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2803         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2804         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2805         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2806         `CHARC_IS_SPACE'.
2807         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2808
2809         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2810         `CHARC_CODE_POINT'.
2811         (x_output_display_block): Use `CHARC_CHARSET' and
2812         `CHARC_ASCII_EQ'.
2813
2814         * redisplay-tty.c (tty_output_display_block): Use
2815         `CHARC_ASCII_EQ'.
2816         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2817
2818         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2819
2820         * insdel.c (find_charsets_in_charc_string): Use
2821         `CHARC_CHARSET_ID'.
2822         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2823         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2824         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2825         (convert_charc_string_into_malloced_string): Likewise.
2826
2827 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2828
2829         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2830         instead of <Emchar_dynarr *> for buf; use
2831         `convert_bufbyte_string_into_charc_dynarr' instead of
2832         `convert_bufbyte_string_into_emchar_dynarr'; use
2833         `find_charsets_in_charc_string' instead of
2834         `find_charsets_in_emchar_string'.
2835
2836         * redisplay.h:
2837         - Include "character.h".
2838         (struct rune): New member `cglyph'; delete member `chr'.
2839
2840         * redisplay.c (redisplay_text_width_charc_string): New function;
2841         delete `redisplay_text_width_emchar_string'.
2842         (rtw_charc_dynarr): New variable; renamed from
2843         `rtw_emchar_dynarr'.
2844         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2845         `rtw_emchar_dynarr'; use
2846         `convert_bufbyte_string_into_charc_dynarr' instead of
2847         `convert_bufbyte_string_into_emchar_dynarr'; use
2848         `redisplay_text_width_charc_string' instead of
2849         `redisplay_text_width_emchar_string'.
2850         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2851         instead of `rtw_emchar_dynarr'; use
2852         `convert_bufbyte_string_into_charc_dynarr' instead of
2853         `convert_bufbyte_string_into_emchar_dynarr'.
2854         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2855         `redisplay_text_width_charc_string' instead of
2856         `redisplay_text_width_emchar_string'.
2857         (create_text_block): Modify for <struct rune> change.
2858         (generate_formatted_string_db): Likewise.
2859         (create_string_text_block): Likewise.
2860         (pixel_to_glyph_translation): Likewise.
2861
2862         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2863         instead of <const Emchar *>.
2864         (x_text_width): Likewise.
2865         (x_output_display_block): Use <Charc_dynarr *> instead
2866         <Emchar_dynarr *>; modify for <structure rune> change.
2867         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2868         *>.
2869
2870         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2871         <const Emchar *>; use `charc_string_displayed_columns' instead of
2872         `emchar_string_displayed_columns'.
2873         (tty_output_display_block): Use <Charc_dynarr *> instead of
2874         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2875         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2876         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2877         `tty_output_emchar_dynarr_dynarr'.
2878         (tty_output_charc_dynarr): New function; delete
2879         `tty_output_charc_dynarr'.
2880
2881         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2882         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2883         <Emchar_dynarr *> for buf; use
2884         `convert_bufbyte_string_into_charc_dynarr' instead of
2885         `convert_bufbyte_string_into_emchar_dynarr'.
2886
2887         * frame.c (title_string_charc_dynarr): New variable; renamed from
2888         `title_string_emchar_dynarr'.
2889         (generate_title_string): Use `title_string_charc_dynarr' instead
2890         of `title_string_emchar_dynarr'; use
2891         `convert_charc_string_into_malloced_string' instead of
2892         `convert_emchar_string_into_malloced_string'.
2893         (init_frame): Use `title_string_charc_dynarr' instead of
2894         `title_string_emchar_dynarr'.
2895
2896         * console.h:
2897         - Include "character.h".
2898         (struct console_methods): Use <const Charc *> instead of <const
2899         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2900         <Emchar_dynarr *> in output_string_method.
2901
2902         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2903         <Emchar_dynarr *>.
2904
2905         * console-stream.c (stream_text_width): Use <const Charc *>
2906         instead of <const Emchar *>.
2907
2908         * character.h (Charc_dynarr): New type.
2909
2910         * char-ucs.h (structure Charc): New structure; define new type
2911         `Charc'.
2912
2913         * char-lb.h (DECODE_CHAR): New inline function.
2914         (encode_char_1): New inline function.
2915         (ENCODE_CHAR): New macro.
2916         (structure Charc): New structure; define new type `Charc'.
2917
2918         * char-1byte.h (Vcharset_control_1): New macro.
2919         (Vcharset_latin_iso8859_1): New macro.
2920         (DECODE_CHAR): New inline function.
2921         (encode_char_1): New inline function.
2922         (ENCODE_CHAR): New macro.
2923         (structure Charc): New structure; define new type `Charc'.
2924
2925         * insdel.c (find_charsets_in_charc_string): New function; delete
2926         `find_charsets_in_emchar_string'.
2927         (charc_string_displayed_columns): New function; delete
2928         `emchar_string_displayed_columns'.
2929         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2930         `convert_bufbyte_string_into_emchar_dynarr'.
2931         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2932         `convert_charc_string_into_bufbyte_dynarr'.
2933         (convert_charc_string_into_malloced_string): New function; delete
2934         `convert_charc_string_into_malloced_string'.
2935
2936         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2937         `find_charsets_in_emchar_string'.
2938         (charc_string_displayed_columns): New prototype; delete
2939         `emchar_string_displayed_columns'.
2940         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2941         `convert_charc_string_into_bufbyte_dynarr'.
2942         (convert_charc_string_into_malloced_string): New prototype; delete
2943         `convert_charc_string_into_malloced_string'.
2944
2945 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2946
2947         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2948
2949 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2950
2951         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2952
2953         * char-ucs.h: Use <short> for <Charset_ID>.
2954
2955         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2956         <Charset_ID>.
2957
2958 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2959
2960         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2961         to 0.16.
2962
2963 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2964
2965         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2966         variable.
2967         (Qmorohashi_daikanwa): New variable.
2968         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2969         for `morohashi-daikanwa' attribute.
2970         (Fget_char_attribute): Likewise.
2971         (Fput_char_attribute): Likewise.
2972         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2973         has the same value of `ideograph-daikanwa'.
2974         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2975         (vars_of_mule_charset): Setup
2976         `Vcharacter_morohashi_daikanwa_table'.
2977
2978 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2979
2980         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2981         attributes.
2982         (add_charset_to_list_mapper): Add `key' instead of
2983         `XCHARSET_NAME (value)' to return aliases.
2984
2985 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2986
2987         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2988         variable.
2989         (Vcharacter_ideographic_strokes_table): New variable.
2990         (Qideographic_radical): New variable.
2991         (Qideographic_strokes): New variable.
2992         (Fchar_attribute_alist): Use
2993         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2994         attribute; use `Vcharacter_ideographic_strokes_table' for
2995         `ideographic-strokes' attribute.
2996         (Fget_char_attribute): Likewise.
2997         (Fput_char_attribute): Likewise.
2998         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2999         `ideographic-strokes'.
3000         (vars_of_mule_charset): Setup
3001         `Vcharacter_ideographic_radical_table' and
3002         `Vcharacter_ideographic_strokes_table'.
3003
3004 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3005
3006         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3007         (Qtotal_strokes): New variable.
3008         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3009         `total-strokes' attribute.
3010         (Fget_char_attribute): Likewise.
3011         (Fput_char_attribute): Likewise.
3012         (syms_of_mule_charset): Add new symbol `total-strokes'.
3013         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3014
3015 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3016
3017         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3018         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3019         are found.
3020         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3021         `->decomposition' attribute.
3022         (Fput_char_attribute): Likewise.
3023         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3024
3025 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3026
3027         * mule-charset.c (decoding_table_check_elements): New function.
3028         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3029
3030 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3031
3032         * mule-charset.c (Fset_charset_mapping_table): Use
3033         `put_char_ccs_code_point'.
3034
3035 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3036
3037         * mule-charset.c (decoding_table_put_char): New inline function.
3038         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3039
3040 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3041
3042         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3043         (XCHARSET_BYTE_SIZE): New macro.
3044         (decoding_table_remove_char): New inline function.
3045         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3046         `decoding_table_remove_char'.
3047         (remove_char_ccs): Use `decoding_table_remove_char'.
3048         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3049
3050 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3051
3052         * mule-charset.c (Vcharacter_name_table): New variable.
3053         (Qname): New variable.
3054         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3055         attribute.
3056         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3057         `Vcharacter_name_table' for `name' attribute.
3058         (Fremove_char_attribute): Use function `remove_char_ccs'.
3059         (put_char_ccs_code_point): New function.
3060         (remove_char_ccs): New function.
3061         (syms_of_mule_charset): Add new symbol `name'.
3062         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3063
3064 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * mule-charset.c (make_byte_table): Add new argument `older'.
3067         (make_char_id_table): Likewise.
3068         (copy_char_id_table): Comment out because it is not used.
3069         (put_char_id_table): Modify for `make_byte_table'.
3070         (Fput_char_attribute): Make encoding_table as older object;
3071         inherit older bit of `Vcharacter_composition_table'.
3072         (mark_charset): Don't mark `cs->encoding_table'.
3073         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3074         normal object; make `Vcharacter_composition_table' as an older
3075         object; delete staticpro for `Vcharacter_composition_table'; make
3076         `Vcharacter_variant_table' as a normal object.
3077
3078         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3079         (mark_object): Don't check older object in UTF-2000.
3080
3081         * lrecord.h (struct lrecord_header): Add new member `older' in
3082         UTF-2000.
3083         (set_lheader_implementation): Setup `SLI_header->older' in
3084         UTF-2000.
3085         (set_lheader_older_implementation): New macro in UTF-2000.
3086         (OLDER_RECORD_P): New macro in UTF-2000.
3087         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3088         (alloc_older_lcrecord): New prototype in UTF-2000.
3089         (alloc_older_lcrecord_type): New macro in UTF-2000.
3090
3091 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3092
3093         * mule-charset.c (byte_table_description): Use
3094         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3095         (char_id_table_description): Delete bogus `, 1'.
3096         (Fget_char_attribute): Refer encoding_table of each coded-charset
3097         to get value of coded-charset attribute of a character.
3098         (Fput_char_attribute): Use `make_older_vector' instead of
3099         `make_vector'; use encoding_table of each coded-charset to store
3100         value of coded-charset attribute of a character.
3101         (Fremove_char_attribute): Use encoding_table of each coded-charset
3102         to store value of coded-charset attribute of a character.
3103         (mark_charset): Mark `cs->encoding_table'; don't mark
3104         `cs->decoding_table'.
3105         (charset_description): Add description of new member
3106         `encoding_table'.
3107         (make_charset): Initialize `encoding_table'.
3108
3109         * char-ucs.h (struct Lisp_Charset): Add new member
3110         `encoding_table'.
3111         (CHARSET_ENCODING_TABLE): New macro.
3112         (XCHARSET_ENCODING_TABLE): New macro.
3113         (charset_code_point): New implementation.
3114         (encode_char_1): Likewise.
3115
3116         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3117         (disksave_object_finalization_1): Call finalizers of
3118         `all_older_lcrecords' in UTF-2000.
3119         (make_older_vector): New function in UTF-2000.
3120         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3121         UTF-2000.
3122
3123         * lisp.h (make_older_vector): New prototype in UTF-2000.
3124
3125 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3126
3127         * lrecord.h (enum lrecord_type): Rename
3128         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3129
3130         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3131         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3132         `get_char_code_table'.
3133
3134         * mule-charset.c (mark_char_id_table): Renamed from
3135         `mark_char_code_table'.
3136         (char_id_table_equal): Renamed from `char_code_table_equal'.
3137         (char_id_table_hash): Renamed from `char_code_table_hash'.
3138         (make_char_id_table): Renamed from `make_char_code_table'.
3139         (copy_char_id_table): Renamed from `copy_char_code_table'.
3140         (get_char_id_table): Renamed from `get_char_code_table'.
3141         (put_char_id_table): Renamed from `put_char_code_table'.
3142         (to_char_id): Renamed from `to_char_code'.
3143
3144         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3145         `Lisp_Char_Code_Table'.
3146         (char_id_table): Renamed from `char_code_table'.
3147         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3148         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3149         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3150         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3151         (get_char_id_table): Renamed from `get_char_code_table'.
3152
3153 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3154
3155         * lrecord.h (enum lrecord_type): Rename
3156         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3157
3158         * mule-charset.c (mark_byte_table): Renamed from
3159         `mark_char_byte_table'.
3160         (byte_table_equal): Renamed from `char_byte_table_equal'.
3161         (byte_table_hash): Renamed from `byte_table_hash'.
3162         (make_byte_table): Renamed from `make_byte_table'.
3163         (copy_byte_table): Renamed from `copy_char_byte_table'.
3164
3165         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3166         `Lisp_Char_Byte_Table'.
3167         (byte_table): Renamed from `char_byte_table'.
3168         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3169         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3170         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3171         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3172
3173 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3174
3175         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3176         (dfc_convert_to_internal_format): Likewise.
3177         
3178         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3179         * text-coding.c (Fcoding_system_alias_p): New function.
3180         * text-coding.c (Fcoding_system_aliasee): New function.
3181         * text-coding.c (append_suffix_to_symbol): New function.
3182         * text-coding.c (dangling_coding_system_alias_p): New function.
3183         * text-coding.c (Ffind_coding_system):
3184         * text-coding.c (Fcopy_coding_system):
3185         * text-coding.c (encode_coding_no_conversion):
3186         * text-coding.c (syms_of_file_coding):
3187         * text-coding.c (vars_of_file_coding):
3188         Rewrite coding system alias code.
3189         Allow nested aliases, like symbolic links.
3190         Allow redefinition of coding system aliases.
3191         Prevent existence of dangling coding system aliases.
3192         Eliminate convert_to_external_format.
3193         Eliminate convert_to_internal_format.
3194         
3195         * text-coding.c: Change enum eol_type to eol_type_t.
3196
3197 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3198
3199         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3200         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3201
3202         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3203         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3204
3205 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3206
3207         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3208         `ideograph-daikanwa'.
3209
3210         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3211         (Vcharset_ucs_bmp): Likewise.
3212         (Vcharset_mojikyo): Add new extern variable definition.
3213         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3214         (Vcharset_latin_iso8859_3): Likewise.
3215         (Vcharset_latin_iso8859_4): Likewise.
3216         (Vcharset_latin_iso8859_9): Likewise.
3217         (Vcharset_latin_viscii_lower): Likewise.
3218         (Vcharset_latin_viscii_upper): Likewise.
3219         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3220         `mojikyo' code-point is used to decode.
3221         (encode_char_2): New function [to convert `mojikyo' code-point to
3222         Mojikyo font encoding].
3223         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3224         (breakup_char_1): Likewise.
3225         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3226
3227 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3228
3229         * text-coding.c (Fmake_coding_system): Add document about
3230         `disable-composition' property.
3231
3232 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3233
3234         * text-coding.c (Qdisable_composition): New variable; delete
3235         `Qcomposite'.
3236         (Fmake_coding_system): Add new property `disable-composite';
3237         delete property `composite'.
3238         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3239         instead of `!CODING_SYSTEM_COMPOSITE'.
3240         (syms_of_file_coding): Add new symbol `disable-composition';
3241         delete symbol `composite'.
3242
3243         * file-coding.h (struct Lisp_Coding_System): Add
3244         `disable_composition'; delete `enable_composition'.
3245         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3246         `CODING_SYSTEM_COMPOSITE'.
3247         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3248         `XCODING_SYSTEM_COMPOSITE'.
3249
3250 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3251
3252         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3253         to 0.15.
3254
3255 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3256
3257         * text-coding.c (Qcomposite): New variable.
3258         (Fmake_coding_system): Add new property `composite'.
3259         (struct decoding_stream): Add `combined_char_count',
3260         `combined_chars' and `combining_table' in UTF-2000.
3261         (COMPOSE_FLUSH_CHARS): New macro.
3262         (COMPOSE_ADD_CHAR): New macro.
3263         (reset_decoding_stream): Reset `str->combined_char_count' and
3264         `str->combining_table' in UTF-2000.
3265         (decode_coding_iso2022): Modify for character-decomposition.
3266         (syms_of_file_coding): Add new symbol `composite'.
3267
3268 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3269
3270         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3271         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3272         of `Vcharacter_composition_table' if `->decomposition' property
3273         has only 1 element.
3274         (Qlatin_tcvn5712): New variable.
3275         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3276         (complex_vars_of_mule_charset): Add new coded-charset
3277         `latin-tcvn5712'.
3278
3279         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3280
3281 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * file-coding.h (struct Lisp_Coding_System): Add
3284         `enable_composition'.
3285         (CODING_SYSTEM_COMPOSITE): New macro.
3286         (XCODING_SYSTEM_COMPOSITE): New macro.
3287
3288 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3289
3290         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3291
3292 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3293
3294         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3295         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3296
3297 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3298
3299         * mule-charset.c (Vcharset_mojikyo): New variable.
3300         (Fdefine_char): Don't use coded-charset which does not have
3301         non-builtin character range to allocate character-id.
3302         (Qmojikyo): New variable.
3303         (syms_of_mule_charset): Add new symbol `mojikyo'.
3304         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3305
3306         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3307         (LEADING_BYTE_MOJIKYO): New macro.
3308         (MIN_CHAR_MOJIKYO): New macro.
3309         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3310         (MAX_CHAR_MOJIKYO): New macro.
3311
3312 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3313
3314         * mule-charset.c (remove_char_attribute): Fixed.
3315
3316 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3317
3318         * mule-charset.c (remove_char_attribute): New function.
3319         (Fremove_char_attribute): New function.
3320         (encode_builtin_char_1): Comment out builtin-support for
3321         greek-iso8859-7 and cyrillic-iso8859-5.
3322         (Fdecode_char): Check `code' is an integer.
3323         (syms_of_mule_charset): Add `remove-char-attribute'.
3324         (MIN_CHAR_GREEK): Deleted.
3325         (MAX_CHAR_GREEK): Likewise.
3326         (MIN_CHAR_CYRILLIC): Likewise.
3327         (MAX_CHAR_CYRILLIC): Likewise.
3328         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3329         MAX_CHAR_GREEK for `greek-iso8859-7'.
3330
3331         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3332         (MAX_CHAR_GREEK): Likewise.
3333         (MIN_CHAR_CYRILLIC): Likewise.
3334         (MAX_CHAR_CYRILLIC): Likewise.
3335
3336 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3337
3338         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3339         format is used without `ucs' property.
3340         (Fdecode_char): Fix problem with GR representation.
3341         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3342         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3343
3344 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3345
3346         * mule-charset.c (make_builtin_char): New function.
3347         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3348         (Fset_charset_mapping_table): Modify for new representation of
3349         code-point.
3350         (Fdecode_char): New function.
3351         (syms_of_mule_charset): Add new builtin function `decode-char' in
3352         UTF-2000.
3353
3354         * char-ucs.h (make_builtin_char): New prototype.
3355         (DECODE_CHAR): New inline function.
3356         (MAKE_CHAR): Use `DECODE_CHAR'.
3357
3358 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3359
3360         * text-coding.c (parse_charset_conversion_specs): Use
3361         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3362         `XCHARSET_TYPE'.
3363         (iso2022_designate): Likewise.
3364
3365         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3366         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3367
3368         * mule-charset.c (Vcharset_ucs): New variable.
3369         (print_charset): Change design; use `CHARSET_CHARS' and
3370         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3371         (make_charset): Change signature to specify `chars' and
3372         `dimension' instead of `type'.
3373         (range_charset_code_point): Modify for 256^n-set.
3374         (encode_builtin_char_1): Encode as `ucs' in default.
3375         (Fmake_charset): Modify for `make_charset'.
3376         (Fmake_reverse_direction_charset): Likewise.
3377         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3378         UTF-2000.
3379         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3380         for `make_charset'.
3381
3382         * char-ucs.h (Vcharset_ucs): New variable.
3383         (LEADING_BYTE_UCS): New macro.
3384         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3385         and `chars' to `unsigned short' from `unsigned int'.
3386         (CHARSET_TYPE): Deleted.
3387         (XCHARSET_TYPE): Deleted.
3388
3389 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3390
3391         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3392
3393         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3394         (ENCODE_CHAR): New macro.
3395
3396 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3397
3398         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3399         to 0.14 (Kawachi-Katakami).
3400
3401 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3402
3403         * text-coding.c (char_encode_shift_jis): Modify for
3404         `charset_code_point'.
3405         (char_encode_iso2022): Likewise.
3406
3407         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3408         (integer) instead of list of <Lisp_Object>s (integers) as the
3409         format of code-point of a coded-charset.
3410         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3411         (encode_builtin_char_1): New function; delete
3412         `split_builtin_char'.
3413         (charset_code_point): Return <int> instead of <Lisp_Object>.
3414         (Fsplit_char): Don't use `SPLIT_CHAR'.
3415
3416         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3417         prototype for `split_builtin_char'.
3418         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3419         (charset_code_point): Likewise.
3420         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3421         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3422
3423 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3424
3425         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3426         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3427
3428 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3429
3430         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3431
3432         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3433         (MAX_CHAR_OBS_94x94): Deleted.
3434
3435 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3436
3437         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3438
3439         * char-ucs.h (MAX_CHAR_BMP): New macro.
3440
3441 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3442
3443         * text-coding.c: Sync with r21-2-24.
3444
3445 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3446
3447         * file-coding.c: Modify for UTF-2000.
3448
3449 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3450
3451         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3452         to 0.13 (Takaida).
3453
3454 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3455
3456         * mule-charset.c (split_builtin_char): Delete builtin support for
3457         `katakana-jisx0201'.
3458         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3459         BMP area in builtin representation.
3460
3461         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3462         `Vcharset_katakana_jisx0201'.
3463
3464 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3465
3466         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3467         (Qisolated): New variable.
3468         (Qinitial): New variable.
3469         (Qmedial): New variable.
3470         (Qfinal): New variable.
3471         (Qvertical): New variable.
3472         (Qsmall): New variable.
3473         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3474         `Qvertical' and `Qsmall'.
3475         (Qmojikyo_pj_[1 .. 21]): New variable.
3476         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3477         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3478         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3479         .. 21]'.
3480
3481 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3482
3483         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3484         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3485         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3486
3487 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3488
3489         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3490         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3491         BMP.
3492         (Qjapanese_jisx0208_1990): New variable.
3493         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3494         (complex_vars_of_mule_charset): Add new coded-charset
3495         `japanese-jisx0208-1990'.
3496
3497         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3498         (MIN_CHAR_JIS_X0208_1990): New macro.
3499         (MAX_CHAR_JIS_X0208_1990): New macro.
3500
3501 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3502
3503         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3504         coded-charset is not found.
3505
3506 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3507
3508         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3509         (Fdefine_char): Use `Fmake_char'.
3510
3511 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3512
3513         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3514         (Vcharset_hiragana_jisx0208): Deleted.
3515         (Vcharset_katakana_jisx0208): Deleted.
3516         (Qideograph_daikanwa): New variable.
3517         (Qhiragana_jisx0208): Deleted.
3518         (Qkatakana_jisx0208): Deleted.
3519         (split_builtin_char): Split `ideograph-daikanwa'.
3520         (Fsplit_char): New implementation for UTF-2000.
3521         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3522         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3523         (complex_vars_of_mule_charset): Add new coded-charset
3524         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3525         `katakana-jisx0208'.
3526
3527         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3528         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3529         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3530         (MIN_CHAR_DAIKANWA): New macro.
3531         (MAX_CHAR_DAIKANWA): New macro.
3532
3533 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3534
3535         * data.c (Fstring_to_number): Don't recognize floating point if
3536         base is not 10.
3537
3538 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3539
3540         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3541
3542 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3543
3544         * mule-charset.c (Qsquare): New variable.
3545         (to_char_code): Add `Qsquare'.
3546         (syms_of_mule_charset): Add new symbol `square'.
3547
3548 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3549
3550         * mule-charset.c (Qcircle): New variable.
3551         (to_char_code): Add `Qcircle'.
3552         (syms_of_mule_charset): Add new symbol `circle'.
3553
3554 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3555
3556         * mule-charset.c (Qfont): New variable.
3557         (to_char_code): Add `Qfont'.
3558         (syms_of_mule_charset): Add new symbol `font'.
3559
3560 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3561
3562         * mule-charset.c (Qsub): New variable.
3563         (to_char_code): Add `Qsub'.
3564         (syms_of_mule_charset): Add new symbol `sub'.
3565
3566 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3567
3568         * mule-charset.c (Fput_char_attribute): Convert each element of
3569         VALUE to GL position if ATTRIBUTE is a GR-set,
3570
3571 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3572
3573         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3574         coded-charset is a GR-set.
3575
3576 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3577
3578         * mule-charset.c (Fput_char_attribute): Check each element of
3579         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3580
3581 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3582
3583         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3584         UTF-2000.
3585         (Qethiopic_ucs): New variable in UTF-2000.
3586         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3587         (complex_vars_of_mule_charset): Add new coded-charset
3588         `ethiopic-ucs' in UTF-2000.
3589
3590         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3591         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3592         9)'.
3593         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3594         10)'.
3595         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3596
3597 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3598
3599         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3600         `ascii'.
3601
3602 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3603
3604         * mule-charset.c (Vcharacter_variant_table): New variable.
3605         (Q_ucs): New variable.
3606         (Fchar_variants): New function.
3607         (Fput_char_attribute): Register `->ucs' value to
3608         `Vcharacter_variant_table'.
3609         (syms_of_mule_charset): Add new function `char-variants' and new
3610         symbol `->ucs'.
3611         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3612
3613 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3614
3615         * mule-charset.c (get_char_code_table): Allow negative character
3616         code.
3617         (put_char_code_table): Likewise.
3618         (Vcharacter_composition_table): New variable.
3619         (Q_decomposition): New variable.
3620         (Qwide): New variable.
3621         (Qnarrow): New variable.
3622         (Qcompat): New variable.
3623         (QnoBreak): New variable.
3624         (Qsuper): New variable.
3625         (Qfraction): New variable.
3626         (to_char_code): New function.
3627         (Fget_composite_char): New function.
3628         (Fput_char_attribute): Register `->decomposition' value to
3629         `Vcharacter_composition_table'.
3630         (syms_of_mule_charset): Add new function `get-composite-char', new
3631         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3632         `super' and `fraction'.
3633         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3634
3635 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3636
3637         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3638         character; copy the return value.
3639
3640 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3641
3642         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3643
3644         * mule-charset.c (range_charset_code_point): Must use make_int.
3645         (split_builtin_char): New function.
3646
3647 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3648
3649         * mule-charset.c (char_byte_table): Change name from
3650         "char-code-table" to "char-byte-table".
3651         (mark_char_code_table): New function.
3652         (char_code_table_equal): New function.
3653         (char_code_table_hash): New function.
3654         (char_code_table_description): New constant.
3655         (char_code_table): New type.
3656         (make_char_code_table): New function.
3657         (copy_char_code_table): New function.
3658         (get_char_code_table): Modify for `char_code_table' type.
3659         (put_char_code_table): Likewise.
3660         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3661         (Kashiwara).
3662
3663         * char-ucs.h (char_code_table): New type.
3664         (XCHAR_CODE_TABLE): New macro.
3665         (XSETCHAR_CODE_TABLE): New macro.
3666         (CHAR_CODE_TABLE_P): New macro.
3667         (GC_CHAR_CODE_TABLE_P): New macro.
3668         (struct Lisp_Char_Code_Table): New structure.
3669
3670 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3671
3672         * mule-charset.c (Fmake_charset): Setup byte_offset for
3673         {94|96}^n-set.
3674
3675 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3676
3677         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3678         character.
3679
3680 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3681
3682         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3683         is found.
3684
3685 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3686
3687         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3688         charset, it is regarded as a charset.
3689         (put_char_attribute): New function in UTF-2000.
3690         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3691         charset, mapping-table of the charset is modified.
3692         (Fdefine_char): New function in UTF-2000.
3693         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3694         `Fput_char_attribute'.
3695         (syms_of_mule_charset): Add new function `define-char' and new
3696         symbol `ucs' in UTF-2000.
3697         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3698
3699 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3700
3701         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3702         non-UTF-2000 configuration.
3703
3704 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3705
3706         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3707         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3708
3709         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3710         deleted.
3711         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3712         (Fset_charset_mapping_table): Likewise.
3713
3714         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3715         (CHARSET_ENCODING_TABLE): Delete.
3716         (XCHARSET_ENCODING_TABLE): Delete.
3717         (charset_code_point): New interface.
3718
3719 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3720
3721         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3722         instead of `charset_get_byte1' and `charset_get_byte2'.
3723
3724         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3725         (charset_get_byte2): Deleted.
3726
3727 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3728
3729         * char-ucs.h (SPLIT_CHAR): New inline function.
3730         (breakup_char_1): Use `SPLIT_CHAR'.
3731
3732         * mule-charset.c (range_charset_code_point): New function.
3733         (charset_code_point): New function.
3734
3735         * char-ucs.h (range_charset_code_point): New interface.
3736         (breakup_char_1): Use `range_charset_code_point'.
3737
3738 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3739
3740         * mule-charset.c (Fmake_charset): Delete unused local variable
3741         `code_offset'.
3742
3743         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3744         (breakup_char_1): Find a charset and code-point in
3745         `Vcharacter_attribute_table'.
3746
3747 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3748
3749         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3750         to 0.10 (Yao).
3751
3752 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3753
3754         * mule-charset.c (Vcharacter_attribute_table): New variable.
3755         (Fchar_attribute_alist): New function.
3756         (Fget_char_attribute): New function.
3757         (Fput_char_attribute): New function.
3758         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3759         too.
3760         (syms_of_mule_charset): Add new function `char-attribute-alist',
3761         `get-char-attribute' and `put-char-attribute'.
3762         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3763
3764 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * mule-charset.c (Fmake_charset): Just use
3767         `get_unallocated_leading_byte'.
3768
3769         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3770         sets; don't use final-byte based number for private sets.
3771
3772 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3773
3774         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3775         integer.
3776
3777 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3778
3779         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3780         to 0.9.
3781
3782 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3783
3784         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3785         of `CHAR_LEADING_BYTE' in UTF-2000.
3786
3787         * insdel.c (find_charsets_in_bufbyte_string): Use
3788         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3789         (find_charsets_in_emchar_string): Likewise.
3790
3791         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3792         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3793
3794         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3795         (CHAR_CHARSET_ID): New macro.
3796
3797 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3798
3799         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3800         charset-id - MIN_LEADING_BYTE.
3801         (put_char_table): Likewise.
3802
3803 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3804
3805         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3806         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3807         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3808         (CHARSET_ID_OFFSET): New macro.
3809         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3810         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3811         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3812         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3813         4).
3814         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3815         5).
3816         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3817         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3818         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3819         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3820         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3821
3822 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3823
3824         * mule-charset.c (next_allocated_leading_byte): New variable in
3825         UTF-2000.
3826         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3827         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3828         (get_unallocated_leading_byte): Simply use
3829         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3830         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3831         UTF-2000.
3832
3833         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3834         (MAX_LEADING_BYTE_PRIVATE): New macro.
3835         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3836         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3837
3838 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3839
3840         * mule-charset.c (Fmake_charset): Allocate final-byte based
3841         charset-id for 94-set, 96-set and 94x94-set.
3842
3843 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3844
3845         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3846         ambiguous `else'.
3847         (Fmake_charset): Likewise.
3848         (complex_vars_of_mule_charset): Modify the font registry of
3849         `ucs-bmp' not to match `Ethiopic-Unicode'.
3850
3851 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3852
3853         * mule-charset.c (complex_vars_of_mule_charset): Add font
3854         registory of `ucs-bmp'.
3855
3856 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3857
3858         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3859         coded-charsets in `default-coded-charset-priority-list' when
3860         breaking up a character.
3861
3862         * mule-charset.c (Vcharset_latin_viscii): New variable.
3863         (Qlatin_viscii): New variable.
3864         (make_charset): Don't use `decoding_table'.
3865         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3866         byte_offset.
3867         (Fset_charset_mapping_table): New implementation.
3868         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3869         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3870         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3871         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3872         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3873         charset `latin_viscii'.
3874
3875         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3876         (CHARSET_TYPE_94X94): Change to 1 from 2.
3877         (CHARSET_TYPE_96): Change to 2 from 1.
3878         (CHARSET_TYPE_128): New macro.
3879         (CHARSET_TYPE_128X128): Change to 5 from 4.
3880         (CHARSET_TYPE_256): New macro.
3881         (CHARSET_TYPE_256X256): Change to 7 from 5.
3882         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3883
3884 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3885
3886         * text-coding.c (char_encode_shift_jis): Refer
3887         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3888         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3889
3890         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3891         (char_byte_table_equal): New function in UTF-2000.
3892         (char_byte_table_hash): New function in UTF-2000.
3893         (char_byte_table_description): New constant in UTF-2000.
3894         (char_byte_table): New type in UTF-2000.
3895         (make_char_byte_table): New function in UTF-2000.
3896         (copy_char_byte_table): New function in UTF-2000.
3897         (make_char_code_table): New macro in UTF-2000.
3898         (get_char_code_table): New function in UTF-2000.
3899         (put_char_code_table): New function in UTF-2000.
3900         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3901         (charset_description): Add setting in UTF-2000.
3902         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3903         `CHARSET_TO_BYTE1_TABLE(cs)'.
3904         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3905         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3906         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3907         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3908         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3909         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3910         `CHARSET_TO_BYTE2_TABLE(cs)'.
3911
3912         * char-ucs.h (char_byte_table): New type.
3913         (XCHAR_BYTE_TABLE): New macro.
3914         (XSETCHAR_BYTE_TABLE): New macro.
3915         (CHAR_BYTE_TABLE_P): New macro.
3916         (GC_CHAR_BYTE_TABLE_P): New macro.
3917         (struct Lisp_Char_Byte_Table): New structure.
3918         (get_char_code_table): New interface.
3919         (Emchar_to_byte_table): Deleted.
3920         (get_byte_from_character_table): Deleted.
3921         (struct Lisp_Charset): Add `encoding_table'; delete
3922         `to_byte1_table' and `to_byte2_table'.
3923         (CHARSET_ENCODING_TABLE): New macro.
3924         (CHARSET_TO_BYTE1_TABLE): Deleted.
3925         (CHARSET_TO_BYTE2_TABLE): Deleted.
3926         (XCHARSET_ENCODING_TABLE): New macro.
3927         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3928         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3929
3930 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3931
3932         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3933         `vietnamese-viscii-*'.
3934
3935 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3936
3937         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3938         (Qvietnamese_viscii_upper): New variable.
3939         (Fdefine_charset_alias): New function.
3940         (syms_of_mule_charset): Add new function `define-charset-alias'.
3941         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3942         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3943         `latin-viscii-*'.
3944
3945 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3948         (MAX_CHAR_OBS_94x94): New macro.
3949         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3950         for 94x94 sets.
3951
3952         * mule-charset.c (put_byte_from_character_table): Change unit size
3953         from 128 to 256.
3954         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3955         not defined.
3956         (Fmake_reverse_direction_charset): Modify dummy argument of
3957         `make_charset' for non-UTF-2000 environment.
3958
3959 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3960
3961         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3962
3963         * mule-charset.c (destroy_byte_from_character_table): New macro.
3964         (latin_jisx0201_to_ucs): Deleted.
3965         (latin_iso8859_2_to_ucs): Deleted.
3966         (latin_iso8859_3_to_ucs): Deleted.
3967         (latin_iso8859_4_to_ucs): Deleted.
3968         (latin_iso8859_9_to_ucs): Deleted.
3969         (latin_viscii_lower_to_ucs): Deleted.
3970         (latin_viscii_upper_to_ucs): Deleted.
3971         (mark_charset): Mark `cs->decoding_table'.
3972         (Fcharset_mapping_table): Fix DOC-string.
3973         (Fset_charset_mapping_table): New function.
3974         (syms_of_mule_charset): Add nwe function
3975         `set-charset-mapping-table'.
3976         (complex_vars_of_mule_charset): Don't setup and use
3977         `latin_*_to_ucs'.
3978
3979 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3980
3981         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3982         charset.
3983
3984 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3985
3986         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3987         (Vcharset_katakana_jisx0208): New variable.
3988         (Qhiragana_jisx0208): New variable.
3989         (Qkatakana_jisx0208): New variable.
3990         (make_charset): Add new argument `byte_offset'.
3991         (charset_get_byte1): Modify for new coded-charset definition; use
3992         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3993         `XCHARSET_BYTE_OFFSET'.
3994         (Fmake_charset): Modify for `make_charset'.
3995         (Fmake_reverse_direction_charset): Likewise.
3996         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3997         `katakana-jisx0208'.
3998         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3999         `.'  in font registry of charset `katakana-jisx0201',
4000         `latin-jisx0201', `vietnamese-viscii-lower' and
4001         `vietnamese-viscii-upper'; modify DOC-string of charset
4002         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4003         registry of charset `japanese-jisx0208' not to use font for JIS
4004         X0208:1990; add new charset `hiragana-jisx0208' and
4005         `katakana-jisx0208'.
4006
4007         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4008         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4009         (struct Lisp_Charset): Add `byte_offset'.
4010         (CHARSET_BYTE_OFFSET): New macro.
4011         (XCHARSET_UCS_MIN): New macro.
4012         (XCHARSET_UCS_MAX): New macro.
4013         (XCHARSET_CODE_OFFSET): New macro.
4014         (XCHARSET_BYTE_OFFSET): New macro.
4015         (MIN_CHAR_HIRAGANA): New macro.
4016         (MAX_CHAR_HIRAGANA): New macro.
4017         (MIN_CHAR_KATAKANA): New macro.
4018         (MAX_CHAR_KATAKANA): New macro.
4019         (MAKE_CHAR): Modify for new coded-charset definition; use
4020         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4021         `XCHARSET_BYTE_OFFSET'.
4022
4023 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4024
4025         * mule-charset.c (CHAR96): Deleted.
4026         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4027         <Lisp_Object>.
4028         (latin_iso8859_2_to_ucs): Likewise.
4029         (latin_iso8859_3_to_ucs): Likewise.
4030         (latin_iso8859_4_to_ucs): Likewise.
4031         (latin_iso8859_9_to_ucs): Likewise.
4032         (latin_viscii_lower_to_ucs): Likewise.
4033         (latin_viscii_upper_to_ucs): Likewise.
4034         (latin_tcvn5712_to_ucs): Commented out.
4035         (make_charset): Change type of argument `decoding_table' from
4036         <Emchar*> to <Lisp_Object> [vector of characters].
4037         (Fmake_charset): Modify for `make_charset'.
4038         (Fmake_reverse_direction_charset): Likewise.
4039         (Fcharset_mapping_table): New function in UTF-2000.
4040         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4041         UTF-2000.
4042         (complex_vars_of_mule_charset): Modify for type change of
4043         `*_to_ucs'; modify for `make_charset'.
4044
4045         * char-ucs.h (struct Lisp_Charset): Change type of
4046         `decoding_table' from <Emchar*> to <Lisp_Object>.
4047         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4048
4049 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4050
4051         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4052         error with non-UTF-2000-Mule.
4053
4054 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4055
4056         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4057         in lisp again].
4058         (Vcharset_chinese_cns11643_4): Likewise.
4059         (Vcharset_chinese_cns11643_5): Likewise.
4060         (Vcharset_chinese_cns11643_6): Likewise.
4061         (Vcharset_chinese_cns11643_7): Likewise.
4062         (Qchinese_cns11643_3): Likewise.
4063         (Qchinese_cns11643_4): Likewise.
4064         (Qchinese_cns11643_5): Likewise.
4065         (Qchinese_cns11643_6): Likewise.
4066         (Qchinese_cns11643_7): Likewise.
4067         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4068         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4069         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4070         (complex_vars_of_mule_charset): Likewise.
4071
4072 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4073
4074         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4075         96-set.
4076         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4077         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4078
4079 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4080
4081         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4082         0xFF60.
4083         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4084         (breakup_char_1): Likewise.
4085
4086         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4087         one of them includes the specified character.
4088
4089 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4090
4091         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4092
4093 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4094
4095         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4096
4097 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4098
4099         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4100         definition for non-UTF-2000 Mule.
4101         (latin_iso8859_3_to_ucs): Likewise.
4102         (latin_iso8859_4_to_ucs): Likewise.
4103         (latin_iso8859_9_to_ucs): Likewise.
4104         (latin_jisx0201_to_ucs): Likewise.
4105         (MIN_CHAR_THAI): Likewise.
4106         (MAX_CHAR_THAI): Likewise.
4107         (MIN_CHAR_GREEK): Likewise.
4108         (MAX_CHAR_GREEK): Likewise.
4109         (MIN_CHAR_HEBREW): Likewise.
4110         (MAX_CHAR_HEBREW): Likewise.
4111         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4112         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4113         (MIN_CHAR_CYRILLIC): Likewise.
4114         (MAX_CHAR_CYRILLIC): Likewise.
4115
4116 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4117
4118         * char-ucs.h (breakup_char_1): Use
4119         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4120         thai-tis620 and katakana-jisx0201 area.
4121
4122 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4123
4124         * char-ucs.h (breakup_char_1): Use
4125         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4126         area.
4127
4128         * text-coding.c (reset_encoding_stream): Fixed.
4129         (char_encode_ucs4): Delete `& 255'.
4130
4131         * char-ucs.h (breakup_char_1): Use
4132         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4133
4134 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4135
4136         * file-coding.c (Fmake_coding_system): Don't set up
4137         `codesys->fixed.size'.
4138         (encode_coding_no_conversion): Don't refer
4139         `str->codesys->fixed.size'.
4140
4141 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4142
4143         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4144         (latin_a_char_to_byte1): Deleted.
4145         (latin_a_char_to_byte2): Deleted.
4146
4147 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4148
4149         * mule-charset.c (make_charset): Add new argument `ucs_min',
4150         `ucs_max' and `code_offset'.
4151         (charset_get_byte1): New implementation [delete specific charset
4152         depended implementations].
4153         (Fmake_charset): Modify for `make_charset'.
4154         (Fmake_reverse_direction_charset): Likewise.
4155         (complex_vars_of_mule_charset): Likewise.
4156
4157         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4158         `code_offset'.
4159         (CHARSET_UCS_MIN): New macro.
4160         (CHARSET_UCS_MAX): New macro.
4161         (CHARSET_CODE_OFFSET): New macro.
4162         (MAKE_CHAR): Delete charset depended definitions [except
4163         katakana-jisx0201].
4164
4165 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4166
4167         * char-ucs.h (breakup_char_1): Use
4168         `Vdefault_coded_charset_priority_list' for C0-Controls,
4169         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4170
4171 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4172
4173         * char-ucs.h (charset_get_byte1): New function.
4174         (XCHARSET_GET_BYTE1): Deleted.
4175         (charset_get_byte2): New function.
4176         (XCHARSET_GET_BYTE2): Deleted.
4177         (Vdefault_coded_charset_priority_list): New external variable.
4178         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4179         `Vdefault_preferred_coded_charset_list'.
4180
4181         * mule-charset.c (charset_get_byte1): New function.
4182         (charset_get_byte2): New function.
4183         (Vdefault_coded_charset_priority_list): New variable.
4184         (vars_of_mule_charset): Add new variable
4185         `default-coded-charset-priority-list'.
4186
4187 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4188
4189         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4190         (XCHARSET_GET_BYTE2): New inline function.
4191         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4192         `XCHARSET_GET_BYTE2'.
4193
4194 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4195
4196         * mule-charset.c (make_charset): Initialize
4197         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4198         NULL if table is not defined.
4199
4200 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4201
4202         * text-coding.c (char_encode_shift_jis): Use
4203         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4204         `ucs_to_latin_jisx0201'.
4205
4206         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4207         (ucs_to_latin_iso8859_2): Deleted.
4208         (ucs_to_latin_iso8859_3): Deleted.
4209         (ucs_to_latin_iso8859_4): Deleted.
4210         (ucs_to_latin_iso8859_9): Deleted.
4211         (ucs_to_latin_viscii_lower): Deleted.
4212         (ucs_to_latin_viscii_upper): Deleted.
4213         (ucs_to_latin_tcvn5712): Deleted.
4214         (make_charset): Add new argument `decoding_table'; set up
4215         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4216         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4217         `decoding_table' is defined in UTF-2000.
4218         (Fmake_charset): Modify for `make_charset'.
4219         (Fmake_reverse_direction_charset): Likewise.
4220         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4221         and `GENERATE_96_SET'.
4222
4223         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4224         (ucs_to_latin_jisx0201): Deleted.
4225         (latin_iso8859_2_to_ucs): Deleted.
4226         (ucs_to_latin_iso8859_2): Deleted.
4227         (latin_iso8859_3_to_ucs): Deleted.
4228         (ucs_to_latin_iso8859_3): Deleted.
4229         (latin_iso8859_4_to_ucs): Deleted.
4230         (ucs_to_latin_iso8859_4): Deleted.
4231         (latin_iso8859_9_to_ucs): Deleted.
4232         (ucs_to_latin_iso8859_9): Deleted.
4233         (latin_viscii_lower_to_ucs): Deleted.
4234         (ucs_to_latin_viscii_lower): Deleted.
4235         (latin_viscii_upper_to_ucs): Deleted.
4236         (ucs_to_latin_viscii_upper): Deleted.
4237         (struct Lisp_Charset): Renamed `encoding_table' to
4238         `to_byte1_table'; add `to_byte2_table'.
4239         (CHARSET_DECODING_TABLE): New macro.
4240         (CHARSET_TO_BYTE1_TABLE): New macro.
4241         (CHARSET_TO_BYTE2_TABLE): New macro.
4242         (XCHARSET_DECODING_TABLE): New macro.
4243         (XCHARSET_TO_BYTE1_TABLE): New macro.
4244         (XCHARSET_TO_BYTE2_TABLE): New macro.
4245         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4246         tables.
4247         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4248         don't use `ucs_to_*' tables.
4249
4250 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4251
4252         * text-coding.c (Fmake_coding_system): Don't set up
4253         `codesys->fixed.size'.
4254         (encode_coding_no_conversion): Use `if' instead of `switch'.
4255
4256         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4257
4258 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4261         (Fmake_charset): Modify for `make_charset'.
4262         (Fmake_reverse_direction_charset): Likewise.
4263         (complex_vars_of_mule_charset): Likewise.
4264
4265 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4266
4267         * text-coding.c (char_encode_shift_jis): Use table
4268         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4269
4270 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4271
4272         * text-coding.c (text_encode_generic): Use `if' instead of
4273         `switch'.
4274         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4275         decode JIS-Latin.
4276
4277 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4278
4279         * text-coding.c (encode_coding_sjis): Deleted.
4280         (char_encode_shift_jis): New function.
4281         (char_finish_shift_jis): New function.
4282         (reset_encoding_stream): Set up `encode_char' and `finish' for
4283         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4284         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4285         (char_encode_utf8): Treat `eol_type'.
4286
4287 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4288
4289         * file-coding.c (decode_coding_iso2022): Use
4290         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4291
4292 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4293
4294         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4295         to 0.7 (Hirano).
4296
4297 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4298
4299         * char-lb.h (CHAR_COLUMNS): New macro.
4300
4301 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4302
4303         * text-coding.c (char_encode_ucs4): New function.
4304         (char_finish_ucs4): New function.
4305         (encode_coding_ucs4): Deleted.
4306         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4307         (text_encode_generic): Delete local variable `charset' and `half'.
4308         (ucs_to_mule_table): Deleted.
4309         (mule_to_ucs_table): Deleted.
4310         (Fset_ucs_char): Deleted.
4311         (ucs_to_char): Deleted.
4312         (Fucs_char): Deleted.
4313         (Fset_char_ucs): Deleted.
4314         (Fchar_ucs): Deleted.
4315         (decode_ucs4): Deleted.
4316         (mule_char_to_ucs4): Deleted.
4317         (encode_ucs4): Deleted.
4318         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4319         (decode_coding_utf8): Likewise.
4320         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4321         (char_encode_iso2022): Fixed.
4322         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4323         `Fset_char_ucs' and `Fchar_ucs'.
4324         (complex_vars_of_file_coding): Don't initialize
4325         `ucs_to_mule_table'.
4326
4327         * objects-tty.c (tty_initialize_font_instance): Don't use
4328         `XCHARSET_COLUMNS'.
4329
4330         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4331         UTF-2000.
4332
4333         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4334         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4335
4336         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4337         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4338         (emchar_string_displayed_columns): Likewise.
4339
4340         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4341         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4342         (string_column_at_point): Likewise.
4343         (Fmove_to_column): Likewise.
4344
4345         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4346         `encoding_table' and `decoding_table'.
4347         (CHARSET_REP_BYTES): Deleted.
4348         (XCHARSET_REP_BYTES): Deleted.
4349         (XCHARSET_COLUMNS): Deleted.
4350         (CHAR_COLUMNS): New macro.
4351         (lookup_composite_char): Deleted unconditionally.
4352         (composite_char_string): Likewise.
4353
4354 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4355
4356         * char-ucs.h (Emchar_to_byte_table): New type.
4357         (get_byte_from_character_table): New function interface.
4358         (Vcharset_latin_jisx0201): New variable.
4359         (latin_jisx0201_to_ucs): New variable.
4360         (ucs_to_latin_jisx0201): New variable.
4361         (Vcharset_latin_iso8859_2): New variable.
4362         (latin_iso8859_2_to_ucs): New variable.
4363         (ucs_to_latin_iso8859_2): New variable.
4364         (Vcharset_latin_iso8859_3): New variable.
4365         (latin_iso8859_3_to_ucs): New variable.
4366         (ucs_to_latin_iso8859_3): New variable.
4367         (Vcharset_latin_iso8859_4): New variable.
4368         (latin_iso8859_4_to_ucs): New variable.
4369         (ucs_to_latin_iso8859_4): New variable.
4370         (Vcharset_latin_iso8859_9): New variable.
4371         (latin_iso8859_9_to_ucs): New variable.
4372         (ucs_to_latin_iso8859_9): New variable.
4373         (Vcharset_latin_viscii_lower): New variable.
4374         (latin_viscii_lower_to_ucs): New variable.
4375         (ucs_to_latin_viscii_lower): New variable.
4376         (Vcharset_latin_viscii_upper): New variable.
4377         (latin_viscii_upper_to_ucs): New variable.
4378         (ucs_to_latin_viscii_upper): New variable.
4379         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4380         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4381         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4382         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4383         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4384         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4385         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4386         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4387         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4388         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4389
4390         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4391         (Vcharset_latin_viscii_upper): New variable.
4392         (make_byte_from_character_table): New function.
4393         (put_byte_from_character_table): New function.
4394         (get_byte_from_character_table): New function.
4395         (CHAR96): New macro.
4396         (ucs_to_latin_jisx0201): New variable.
4397         (latin_jisx0201_to_ucs): New variable.
4398         (ucs_to_latin_iso8859_2): New variable.
4399         (latin_iso8859_2_to_ucs): New variable.
4400         (ucs_to_latin_iso8859_3): New variable.
4401         (latin_iso8859_3_to_ucs): New variable.
4402         (ucs_to_latin_iso8859_4): New variable.
4403         (latin_iso8859_4_to_ucs): New variable.
4404         (ucs_to_latin_iso8859_9): New variable.
4405         (latin_iso8859_9_to_ucs): New variable.
4406         (ucs_to_latin_viscii_lower): New variable.
4407         (latin_viscii_lower_to_ucs): New variable.
4408         (ucs_to_latin_viscii_upper): New variable.
4409         (latin_viscii_upper_to_ucs): New variable.
4410         (ucs_to_latin_tcvn5712): New variable.
4411         (latin_tcvn5712_to_ucs): New variable.
4412         (Qlatin_viscii_lower): New variable.
4413         (Qlatin_viscii_upper): New variable.
4414         (syms_of_mule_charset): Set up new symbol
4415         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4416         (complex_vars_of_mule_charset): Set up new charset
4417         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4418         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4419         `ucs_to_<CHARSET>' tables.
4420
4421 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4422
4423         * text-coding.c: New file.
4424
4425 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4426
4427         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4428
4429         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4430         (MAKE_CHAR): Modify for `ucs-bmp'.
4431         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4432         non-MULE characters of BMP.
4433
4434 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4435
4436         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4437         to 0.6.
4438
4439 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4440
4441         * lstream.h:
4442         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4443         - Include character.h for `CHAR_ASCII_P'.
4444
4445         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4446
4447         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4448         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4449
4450         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4451         (BYTE_C0_P): Likewise.
4452         (BYTE_C1_P): Likewise.
4453         (Lstream_get_emchar_1): Likewise.
4454         (Lstream_fput_emchar): Likewise.
4455         (Lstream_funget_emchar): Likewise.
4456         (copy_internal_to_external): Likewise.
4457         (copy_external_to_internal): Likewise.
4458
4459         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4460         (BYTE_C0_P): Likewise.
4461         (BYTE_C1_P): Likewise.
4462         (Lstream_get_emchar_1): Likewise.
4463         (Lstream_fput_emchar): Likewise.
4464         (Lstream_funget_emchar): Likewise.
4465         (copy_internal_to_external): Likewise.
4466         (copy_external_to_internal): Likewise.
4467
4468         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4469         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4470
4471         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4472         (BYTE_ASCII_P): Moved to mb-1byte.h.
4473
4474 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4475
4476         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4477
4478         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4479         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4480         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4481         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4482         (VALIDATE_CHARPTR_FORWARD): Likewise.
4483         (simple_charptr_emchar): Moved to mb-multibyte.h.
4484         (simple_set_charptr_emchar): Likewise.
4485         (simple_charptr_copy_char): Likewise.
4486         (non_ascii_charptr_emchar): Likewise.
4487         (non_ascii_set_charptr_emchar): Likewise.
4488         (non_ascii_charptr_copy_char): Likewise.
4489         (charptr_emchar): Moved to mb-*byte.h.
4490         (set_charptr_emchar): Likewise.
4491         (charptr_copy_char): Likewise.
4492
4493         * mb-1byte.h, mb-multibyte.h: New files.
4494
4495 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4496
4497         * mb-utf-8.h (MULTIBYTE): New macro.
4498         (MAX_EMCHAR_LEN): Moved from buffer.h.
4499         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4500
4501         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4502
4503         * mb-lb.h, multibyte.h: New files.
4504
4505         * char-1byte.h (Charset_ID): Moved from buffer.h.
4506         (MIN_LEADING_BYTE): Likewise.
4507         (LEADING_BYTE_ASCII): Likewise.
4508         (NUM_LEADING_BYTES): Likewise.
4509         (CHARSETP): Likewise.
4510         (CHARSET_BY_LEADING_BYTE): Likewise.
4511         (XCHARSET_LEADING_BYTE): Likewise.
4512         (XCHARSET_GRAPHIC): Likewise.
4513         (XCHARSET_COLUMNS): Likewise.
4514         (XCHARSET_DIMENSION): Likewise.
4515         (CHAR_CHARSET): Likewise.
4516         (CHAR_LEADING_BYTE): Likewise.
4517         (BREAKUP_CHAR): Likewise.
4518         (Vcharset_ascii): Likewise.
4519
4520         * buffer.h: Include multibyte.h unconditionally.
4521         (VALID_CHARPTR_P): Moved to multibyte.h.
4522         (ASSERT_VALID_CHARPTR): Likewise.
4523         (REAL_INC_CHARPTR): Likewise.
4524         (REAL_INC_CHARBYTIND): Likewise.
4525         (REAL_DEC_CHARPTR): Likewise.
4526         (INC_CHARPTR): Likewise.
4527         (INC_CHARBYTIND): Likewise.
4528         (DEC_CHARPTR): Likewise.
4529         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4530         (VALIDATE_CHARPTR_FORWARD): Likewise.
4531         (charptr_n_addr): Likewise.
4532         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4533         (simple_charptr_emchar): Moved to multibyte.h.
4534         (simple_set_charptr_emchar): Likewise.
4535         (simple_charptr_copy_char): Likewise.
4536         (non_ascii_charptr_emchar): Likewise.
4537         (non_ascii_set_charptr_emchar): Likewise.
4538         (non_ascii_charptr_copy_char): Likewise.
4539         (charptr_emchar): Likewise.
4540         (set_charptr_emchar): Likewise.
4541         (charptr_copy_char): Likewise.
4542         (charptr_emchar_n): Likewise.
4543         (Charset_ID): Moved to char-1byte.h.
4544         (Vcharset_ascii): Likewise.
4545         (CHAR_CHARSET): Likewise.
4546         (CHAR_LEADING_BYTE): Likewise.
4547         (LEADING_BYTE_ASCII): Likewise.
4548         (NUM_LEADING_BYTES): Likewise.
4549         (MIN_LEADING_BYTE): Likewise.
4550         (CHARSETP): Likewise.
4551         (CHARSET_BY_LEADING_BYTE): Likewise.
4552         (XCHARSET_LEADING_BYTE): Likewise.
4553         (XCHARSET_GRAPHIC): Likewise.
4554         (XCHARSET_COLUMNS): Likewise.
4555         (XCHARSET_DIMENSION): Likewise.
4556         (BREAKUP_CHAR): Likewise.
4557
4558 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4559
4560         * character.h: Add document about interface for characters.
4561
4562         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4563         (MAKE_CHAR): Delete comment about
4564         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4565         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4566         (BREAKUP_CHAR): Modify name of arguments.
4567         (CHAR_CHARSET): Modify name of argument.
4568
4569         * buffer.h: Delete document about Emchar accessors.
4570
4571 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4572
4573         * character.h (CHAR_INTP): Moved from buffer.h
4574         (CHAR_OR_CHAR_INTP): Likewise.
4575         (XCHAR_OR_CHAR_INT): Likewise.
4576         (CHECK_CHAR_COERCE_INT): Likewise.
4577
4578         * buffer.h (CHAR_INTP): Moved to character.h
4579         (CHAR_OR_CHAR_INTP): Likewise.
4580         (XCHAR_OR_CHAR_INT): Likewise.
4581         (CHECK_CHAR_COERCE_INT): Likewise.
4582
4583 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4584
4585         * character.h:
4586         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4587         - Include char-1byte.h, char-lb.h or char-ucs.h.
4588
4589         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4590
4591         * buffer.h: Include character unconditionally.
4592         (valid_char_p): Moved to char-*.h.
4593         (non_ascii_valid_char_p): Moved to char-lb.h.
4594
4595         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4596
4597 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4598
4599         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4600         in UTF-2000 because it is not ported yet and not to use
4601         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4602         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4603         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4604
4605         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4606         (CHAR_ASCII_P): Moved from character.h.
4607
4608         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4609         (CHAR_ASCII_P): Likewise.
4610         (CHAR_FIELD1_MASK): Deleted.
4611         (CHAR_FIELD2_MASK): Deleted.
4612         (CHAR_FIELD3_MASK): Deleted.
4613         (MAX_CHAR_BASIC_LATIN): New macro.
4614         (CHAR_FIELD1): Deleted.
4615         (CHAR_FIELD2_INTERNAL): Deleted.
4616         (CHAR_FIELD3_INTERNAL): Deleted.
4617         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4618         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4619         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4620         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4621         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4622         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4623         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4624         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4625         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4626         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4627         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4628         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4629         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4630         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4631         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4632         (MIN_CHAR_COMPOSITION): Deleted.
4633         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4634         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4635
4636 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4637
4638         * buffer.h: Include mb-utf-8.h in UTF-2000.
4639
4640         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4641
4642         * mb-utf-8.h: New file.
4643
4644 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4645
4646         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4647         instead of `int'.
4648
4649         * mule-charset.h, buffer.h (Charset_ID): New type.
4650
4651 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4652
4653         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4654         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4655         instead of `MULE_CHAR_PRIVATE_OFFSET',
4656         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4657         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4658         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4659
4660         * character.h (Vcharset_japanese_jisx0212): New variable
4661         definition.
4662
4663 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4664
4665         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4666         (charset_by_attributes): Delete array about direction.
4667         (latin_a_char_to_charset): New variable in UTF-2000.
4668         (latin_a_char_to_byte1): New variable in UTF-2000.
4669         (latin_a_char_to_byte2): New variable in UTF-2000.
4670         (Qucs_bmp): New variable.
4671         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4672         `Bufbyte'.
4673         (next_allocated_2_byte_leading_byte): Likewise.
4674         (non_ascii_set_charptr_emchar): Likewise.
4675         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4676         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4677         `charset_by_attributes'.
4678         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4679         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4680         and `CHARSET_BY_LEADING_BYTE'.
4681         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4682         `utf-2000-version' to `vars_of_mule_charset'.
4683         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4684         define `leading-code-private-11' in UTF-2000; move setting of
4685         `utf-2000-version' from `syms_of_mule_charset'.
4686         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4687         UTF-2000.
4688
4689         * character.h (Charset_ID): New type.
4690         (LEADING_BYTE_UCS_BMP): New macro.
4691         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4692         (CHARSET_ID_OFFSET_94): New macro.
4693         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4694         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4695         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4696         final-byte.
4697         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4698         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4699         (CHARSET_ID_OFFSET_96): New macro.
4700         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4701         CHARSET_ID_OFFSET_96 and final-byte.
4702         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4703         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4704         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4705         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4706         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4707         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4708         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4709         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4710         (LEADING_BYTE_THAI_TIS620): Likewise.
4711         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4712         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4713         (CHARSET_ID_OFFSET_94x94): New macro.
4714         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4715         CHARSET_ID_OFFSET_94x94 and final-byte.
4716         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4717         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4718         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4719         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4720         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4721         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4722         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4723         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4724         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4725         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4726         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4727         (CHARSET_TYPE_128X128): New macro.
4728         (CHARSET_TYPE_256X256): New macro.
4729         (XCHARSET_PRIVATE_P): Delete unconditionally.
4730         (charset_by_attributes): Delete array about direction.
4731         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4732         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4733         (MIN_CHAR_94): New macro.
4734         (MAX_CHAR_94): New macro.
4735         (MIN_CHAR_96): New macro.
4736         (MAX_CHAR_96): New macro.
4737         (MIN_CHAR_94x94): New macro.
4738         (MAX_CHAR_94x94): New macro.
4739         (MIN_CHAR_96x96): New macro.
4740         (MAX_CHAR_96x96): New macro.
4741         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4742         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4743         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4744         - 32)'.
4745         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4746         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4747         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4748         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4749         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4750         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4751         `XCHARSET_LEADING_BYTE' to make code-point.
4752         (latin_a_char_to_charset): New variable.
4753         (latin_a_char_to_byte1): New variable.
4754         (latin_a_char_to_byte2): New variable.
4755         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4756         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4757         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4758
4759         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4760         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4761         (find_charsets_in_emchar_string): Likewise.
4762         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4763
4764         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4765         `int'.
4766         (decode_coding_iso2022): Likewise.
4767
4768         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4769         of `unsigned char'.
4770
4771         * redisplay.c (redisplay_text_width_emchar_string): Use
4772         `Charset_ID' instead of `unsigned char'.
4773         (redisplay_frame_text_width_string): Likewise.
4774
4775         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4776         `unsigned char'.
4777
4778         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4779         instead of `unsigned char'.
4780         (face_cachel_charset_font_metric_info): Likewise.
4781
4782         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4783         (get_non_ascii_char_table_value): Likewise.
4784         (get_char_table): Likewise.
4785         (put_char_table): Likewise.
4786         (map_over_other_charset): Likewise.
4787         (map_char_table): Likewise.
4788
4789         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4790         instead of `unsigned char'.
4791
4792 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4795         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4796
4797         * mule-charset.c (leading_code_private_11): Don't define in
4798         UTF-2000.
4799
4800         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4801         in UTF-2000 because it is not ported yet and not to use
4802         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4803
4804 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4805
4806         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4807
4808 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4809
4810         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4811         in UTF-2000.
4812
4813         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4814         of unsigned char to store leading-byte.
4815
4816         * chartab.c (get_non_ascii_char_table_value): Don't use
4817         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4818
4819         * file-coding.c (encode_coding_big5): Delete bogus implementation
4820         in UTF2000.
4821
4822         * character.h (LEADING_BYTE_*): Delete definition for
4823         non-UTF-2000.
4824         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4825         (LEADING_BYTE_PREFIX_P): Deleted.
4826         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4827         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4828         (BUFBYTE_LEADING_BYTE_P): Deleted.
4829         (CHARSET_PRIVATE_P): Deleted unconditionally.
4830         (rep_bytes_by_first_byte): Deleted unconditionally.
4831         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4832         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4833         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4834         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4835         (CHAR_FIELD2): Deleted.
4836         (CHAR_FIELD3): Deleted.
4837         (MAKE_CHAR): Delete definition for non-UTF-2000.
4838         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4839         (breakup_char_1): New implementation.
4840         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4841         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4842
4843 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4844
4845         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4846         condition.
4847
4848 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4849
4850         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4851         (CHARSET_PRIVATE_P): Likewise.
4852         (XCHARSET_PRIVATE_P): Likewise.
4853         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4854
4855         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4856         UTF2000.
4857         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4858
4859 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4860
4861         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4862         (NUM_LEADING_BYTES): Changed from 128 to 256.
4863         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4864         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4865         UTF2000.
4866         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4867
4868         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4869         UTF2000.
4870         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4871         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4872         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4873         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4874         (Qchinese_cns11643_3): New variable in UTF2000.
4875         (Qchinese_cns11643_4): New variable in UTF2000.
4876         (Qchinese_cns11643_5): New variable in UTF2000.
4877         (Qchinese_cns11643_6): New variable in UTF2000.
4878         (Qchinese_cns11643_7): New variable in UTF2000.
4879         (syms_of_mule_charset): Define `chinese-cns11643-3',
4880         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4881         and `chinese-cns11643-7' in UTF2000.
4882         (vars_of_mule_charset): Initialize
4883         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4884         + 1 in UTF2000.
4885         (complex_vars_of_mule_charset): Setup charset
4886         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4887         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4888
4889 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4890
4891         * mule-charset.c: Move setting for `leading-code-private-11' from
4892         `syms_of_mule_charset' to `vars_of_mule_charset'.
4893
4894 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4895
4896         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4897         and `NUM_LEADING_BYTES' in assert.
4898
4899 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4900
4901         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4902         instead of 128.
4903         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4904         `NUM_LEADING_BYTES' instead of 128.
4905
4906 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4907
4908         * mule-charset.h (charset_by_leading_byte): Use
4909         `NUM_LEADING_BYTES' instead of 128.
4910         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4911
4912         * mule-charset.c (charset_by_leading_byte): Use
4913         `NUM_LEADING_BYTES' instead of 128.
4914         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4915
4916         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4917         128.
4918
4919 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4920
4921         * mule-charset.c (syms_of_mule_charset): Update to
4922         0.4 (Shin-Imamiya).
4923
4924 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4925
4926         * file-coding.c (encode_coding_sjis): New implementation for
4927         UTF2000.  (decode_coding_sjis): Ditto.
4928
4929 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4930
4931         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4932         Don't define in UTF2000.
4933
4934         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4935         defined.
4936
4937         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4938         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4939         MULE.
4940
4941 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4942
4943         * config.h.in (CHAR_IS_UCS4): New macro.
4944
4945         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4946         conventional MULE representation.
4947         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4948
4949         * mule-charset.h: Reverted to original.
4950
4951         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4952         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4953         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4954
4955         * character.h: New file.
4956
4957         * file-coding.c (Fmake_coding_system): Set 1 to
4958         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4959         defined.
4960         (encode_coding_no_conversion): New implementation for UTF2000.
4961
4962         * file-coding.h (struct Lisp_Coding_System): Add new member
4963         `fixed.size'.
4964
4965 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4966
4967         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4968         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4969         (encode_coding_iso2022): New implementation for UTF2000.
4970
4971 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4972
4973         * mule-canna.c (c2mu): New implementation for UTF2000.
4974         (m2c): Likewise.
4975
4976 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4977
4978         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4979
4980 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4981
4982         * file-coding.c (reset_encoding_stream): Set 0 to
4983         `str->iso2022.current_char_boundary' in UTF2000.
4984         (encode_utf8): Don't define in UTF2000.
4985         (encode_coding_utf8): New implementation for UTF-8 representation
4986         of UTF2000.
4987         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4988
4989 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4990
4991         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4992
4993         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4994         UTF2000.
4995         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4996
4997         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4998
4999         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5000         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5001         as UTF-8 in UTF2000.
5002         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5003         (non_ascii_valid_char_p): Don't define in UTF2000.
5004         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5005         (Lstream_get_emchar_1): Likewise.
5006         (utf-2000-version): New variable in UTF2000.
5007
5008         * lread.c (read_escape): Add new reader `u'.
5009
5010         * insdel.c (three_to_one_table): Don't define in UTF2000.
5011         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5012         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5013         UTF2000.
5014         (bytind_to_bufpos_func): Likewise.
5015         (buffer_mule_signal_inserted_region): Likewise.
5016         (vars_of_insdel): Don't initialize `three_to_one_table'.
5017         (init_buffer_text): Use `buf->text->mule_size' instead of
5018         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5019         UTF2000.
5020
5021         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5022         UTF-8 representation in UTF2000.
5023         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5024         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5025         (decode_coding_iso2022): Don't define local variable `lb' in
5026         UTF2000; don't use LEADING_BYTE in UTF2000; use
5027         `DECODE_ADD_UCS_CHAR' in UTF2000.
5028         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5029
5030         * config.h.in (UTF2000): New macro.
5031
5032         * buffer.h (struct buffer_text): Add new member `mule_size' and
5033         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5034         (valid_char_p): Return always 1 in UTF2000.
5035         (MAX_EMCHAR_LEN): 6 in UTF2000.
5036         (three_to_one_table): Don't define in UTF2000.
5037         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5038         UTF2000.
5039         (real_bytind_to_bufpos): Likewise.
5040
5041         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5042
5043 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5044
5045         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5046         representation change.
5047         (Vutf_2000_version): New variable.
5048         (leading_code_private_11): New variable.
5049         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5050         `leading-code-private-11'.
5051
5052         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5053         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5054         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5055         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5056         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5057         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5058         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5059         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5060         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5061         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5062         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5063         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5064         (MIN_CHAR_GREEK): New macro.
5065         (MAX_CHAR_GREEK): New macro.
5066         (MIN_CHAR_CYRILLIC): New macro.
5067         (MAX_CHAR_CYRILLIC): New macro.
5068         (MIN_CHAR_HEBREW): New macro.
5069         (MAX_CHAR_HEBREW): New macro.
5070         (MIN_CHAR_THAI): New macro.
5071         (MAX_CHAR_THAI): New macro.
5072         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5073         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5074         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5075         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5076         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5077         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5078         (CHAR_FIELD2): New inline function.
5079         (CHAR_FIELD3): New inline function.
5080         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5081         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5082         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5083         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5084         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5085         (MIN_CHAR_COMPOSITION): Likewise.
5086         (CHAR_LEADING_BYTE): Modified for character representation change.
5087         (MAKE_CHAR): Likewise.
5088
5089         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5090         (Vcharset_greek_iso8859_7): Likewise.
5091         (Vcharset_cyrillic_iso8859_5): Likewise.
5092         (Vcharset_hebrew_iso8859_8): Likewise.
5093         (Vcharset_thai_tis620): Likewise.
5094         (Vcharset_katakana_jisx0201): Likewise.
5095
5096 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5097
5098         * XEmacs 21.4.12 "Portable Code" is released.
5099
5100 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5101
5102         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5103         * s/cygwin.sc: new linker file.
5104
5105 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5106
5107         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5108
5109         * redisplay-x.c (x_output_string): Use X11-specified types.
5110         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5111         * emacs.c (__free_hook): Use typeof with Intel compiler.
5112         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5113
5114 2003-01-08  Andy Piper  <andy@xemacs.org>
5115
5116         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5117         reserve size during unexec().
5118
5119 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5120
5121         * process-unix.c (unix_create_process): Don't let outchannel block.
5122
5123 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5124
5125         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5126         Needed for IsBadReadPtr().
5127
5128 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5129
5130         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5131
5132 2002-12-14  Ben Wing  <ben@xemacs.org>
5133
5134         * callint.c: Declaration error.
5135         * dumper.c (pdump):
5136         * dumper.c (pdump_load): Warning fix.
5137         * process.c: GCPRO error.
5138         * glyphs.c (unmap_subwindow):
5139         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5140         * event-stream.c (maybe_kbd_translate): Wrong argument to
5141         character_to_event().
5142
5143         * alloc.c (garbage_collect_1):
5144         * emacs.c:
5145         * emacs.c (debug_can_access_memory):
5146         * emacs.c (fatal_error_signal):
5147         * emacs.c (mswindows_handle_hardware_exceptions):
5148         * emacs.c (main_1):
5149         * emacs.c (main):
5150         * emacs.c (assert_failed):
5151         * emacs.c (syms_of_emacs):
5152         * lisp.h:
5153         * print.c:
5154         * print.c (std_handle_out_va):
5155         * print.c (write_string_to_stdio_stream):
5156         * print.c (write_fmt_string):
5157         * print.c (printing_badness):
5158         * print.c (printing_major_badness):
5159         * print.c (print_internal):
5160         * print.c (debug_print_no_newline):
5161         * print.c (debug_backtrace):
5162         Be more defensive in handling bad values when printing.  Add code
5163         from trunk involving inhibit_non_essential_printing_operations.
5164         When going down or in debug_print(), don't do external conversion
5165         and such and try really, really hard when printing to avoid core
5166         dumping.  Add force-debugging-signal, debug_break().
5167
5168 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5169
5170         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5171         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5172
5173 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5174
5175         * database.c: Fix open_database. Berkeley DB API has changed in
5176         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5177
5178 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5179
5180         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5181
5182 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5183
5184         * event-Xt.c (Xt_timeout):
5185         (Xt_timeout_callback):
5186         (emacs_Xt_add_timeout):
5187         (emacs_Xt_remove_timeout):
5188         (Xt_timeout_to_emacs_event):
5189         Turn completed_timeouts from a stack into a queue.  Fixes
5190         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5191
5192 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5193
5194         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5195         * emacs.c (main): Assert that mmap'd allocation is disabled.
5196
5197 2002-10-14  Andy Piper  <andy@xemacs.org>
5198
5199         * glyphs-widget.c (layout_query_geometry): add in fiddle
5200         factor. Include border text in width layout calculation.
5201         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5202
5203 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5204
5205         * XEmacs 21.4.10 "Military Intelligence" is released.
5206
5207 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5208
5209         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5210         using the NAS private array SoundFileInfo that no longer exists in
5211         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5212         and earlier.  This is broken for some versions between 1.5a and
5213         1.5f.
5214
5215 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5216
5217         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5218
5219         * emacs.c (shut_down_emacs): Improve crash message.
5220
5221 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5222
5223         * file-coding.c (determine_real_coding_system): Check for coding
5224         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5225         shebangs and Python PEP 263.
5226
5227 2002-10-08  Andy Piper  <andy@xemacs.org>
5228
5229         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5230         if static sizes haven't been set.
5231
5232 2002-08-30  Mike Alexander  <mta@arbortext.com>
5233
5234         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5235         to close a socket.
5236
5237 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5238
5239         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5240
5241 2002-09-20  Mike Sperber <mike@xemacs.org>
5242
5243         (This partially gets back my patch from 2002-07-20 without the
5244         bug.)
5245         * callproc.c (child_setup): Remove Ben's comment noting confusion
5246         over the file descriptors >= 3: close_process_descs() doesn't
5247         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5248         * process-unix.c (unix_create_process): Call
5249         begin_dont_check_for_quit to inhibit unwanted interaction (and
5250         thus breaking of X event synchronicity) in the child.
5251
5252 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5253
5254         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5255         widget.
5256
5257 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5258
5259         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5260         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5261         the xemacs process did not exit, but looped infinitely here.  This
5262         fixes that problem.
5263
5264 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5265
5266         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5267         (find_context): Improve comments.
5268
5269         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5270         (re_match_2): An XCHAR_TABLE operation was missing.
5271
5272         Many of the following changes were inspired by Andy Piper's (now
5273         obsolete) patch to make syntax-table text property lookup optional.
5274
5275         [Documentation]
5276
5277         * syntax.h (top level): Document semantics of syntax flags.
5278         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5279         * syntax.c, syntax.h (top level): Document syntax cache better in
5280         comments.
5281
5282         [Instrument syntax caching (temporary change)]
5283
5284         * syntax.h (enum syntax_cache_statistics_functions, struct
5285         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5286         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5287         * syntax.c (scan_words, Fforward_comment, scan_lists,
5288         Fbackward_prefix_characters):
5289         * font-lock.c (find_context):
5290         Use them to instrument syntax caching. 
5291         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5292         syntax_cache_statistics_function_names): New type and variables.
5293         * syntax.c (update_syntax_cache): Update and report statistics.
5294
5295         [Major syntax cache optimizations]
5296
5297         syntax.c (lookup_syntax_properties): Default off.
5298
5299         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5300         * syntax.c (update_syntax_cache):
5301         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5302
5303         [Minor syntax cache optimizations and code clarifications]
5304
5305         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5306         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5307         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5308         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5309         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5310         (Code clarification.)
5311
5312         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5313         scan_lists): Compute code from syncode, use Boolean macros instead
5314         of redundant masking operations.  (Code clarification; any decent
5315         compiler can do this optimization.)
5316
5317         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5318         for clarity.
5319
5320         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5321         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5322         use F*_single_property_change instead of F*_extent_change.
5323         Currently F*_single_property_change is _much_ less efficient.
5324
5325         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5326         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5327         syntax_cache.object properly, don't leave Qt or Qnil.
5328         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5329         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5330         tests for Qt or Qnil.
5331
5332 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5333
5334         * redisplay.c (point_in_line_start_cache): 
5335         * extents.c (print_extent_1):
5336         Fix warnings.
5337
5338         * extents.c (Fset_extent_property): Document `syntax-table' property.
5339
5340         * extents.h (Fnext_single_property_change): EXFUN it.
5341
5342 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5343
5344         * search.c (clear_unused_search_regs): New static function.
5345         (search_buffer): 
5346         (simple_search): 
5347         (boyer_moore):
5348         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5349         Minor clarifications in comments.
5350
5351         * regex.c (re_match_2_internal): Ensure no stale submatches.
5352
5353 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5354
5355         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5356
5357 2002-08-29  Jerry James  <james@xemacs.org>
5358
5359         * lisp.h: structrures -> structures.
5360
5361 2002-06-03  Andy Piper  <andy@xemacs.org>
5362
5363         * frame.c (frame_conversion_internal): add conversion appropriate
5364         for setting frame dimensions in pixels.
5365
5366         * console.h (struct console_methods): add device-specific widget
5367         layout functions.
5368
5369         * emacs.c (main_1): initialize glyph vars.
5370
5371         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5372         (handle_focus_event_2): new function. Allow focus to
5373         be set to a particular window and widget.
5374         (enqueue_focus_event): new function. Create a
5375         synthetic focus event.
5376         (emacs_Xt_handle_magic_event): call
5377         handle_focus_event_2.
5378
5379         * frame.c (Fset_frame_pixel_height): new function. Allow
5380         pixel-based sizing. Does the right thing on character-oriented
5381         displays.
5382         (Fset_frame_pixel_width): ditto.
5383         (Fset_frame_pixel_size): ditto.
5384         (syms_of_frame): declare.
5385
5386         * general-slots.h: add :vertically-justify and
5387         :horizontally-justify.
5388
5389         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5390         (mswindows_widget_border_width): new function.
5391         (mswindows_combo_box_instantiate): set border widths.
5392         (console_type_create_glyphs_mswindows): declare.
5393
5394         * glyphs-widget.c:
5395         (check_valid_justification): allow vertical and horizontal
5396         justification.
5397         (widget_border_width): new function. Call device methods.
5398         (widget_instance_border_width): ditto.
5399         (logical_unit_height): new function. Determine the height of a
5400         logical-unit. Logical units are intended to provide grid-like
5401         layout for subcontrols in a layout. If the layout is
5402         :vertically-justify top then subcontrols will be positioned on
5403         logical-unit boundaries, thus allowing adjacent subcontrols to
5404         line up.
5405         (widget_logical_unit_height): ditto for widgets.
5406         (redisplay_widget): misc cleanup.
5407         (widget_spacing): new function. Call device specific
5408         methods. Intended to be the default gap between adjacent widgets.
5409         (widget_query_geometry): use new spacing functions to determine
5410         appropriate geometry.
5411         (initialize_widget_image_instance): initialize horizontal and
5412         vertical justification.
5413         (widget_instantiate): use logica-units where appropriate for
5414         sizing large widgets.
5415         (button_query_geometry): use widget_instance_border_width.
5416         (tree_view_query_geometry): ditto.
5417         (tab_control_query_geometry): ditto.
5418         (edit_field_query_geometry): new function.
5419         (layout_update): pick up :justify, :horizontally-justify and
5420         :vertically-justify none of which worked previously. :justify is
5421         used as a fallback for both horizontal and vertical justification.
5422         (layout_query_geometry): use logical units to size appropriately.
5423         (layout_layout): ditto.
5424         (Fwidget_logical_to_character_width): new function. Allow users to
5425         convert from logical units to characters so that frame sizes can
5426         be set appropriately.
5427         (Fwidget_logical_to_character_height): ditto.
5428         (syms_of_glyphs_widget): declare.
5429         (image_instantiator_edit_fields): add edit_field_query_geometry.
5430         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5431         :horizontally-justify.
5432         (specifier_vars_of_glyphs_widget): new function. Declare
5433         Vwidget_border_width which is not yet used.
5434
5435         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5436         (x_widget_border_width): new function.
5437         (x_widget_instantiate): create a sensible name for widgets.
5438         (console_type_create_glyphs_x): declare x_widget_border_width.
5439
5440         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5441         (struct Lisp_Image_Instance): add :vertically-justify and
5442         :horizontally-justify.
5443         (LAYOUT_JUSTIFY_TOP): new.
5444         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5445         (ROUND_UP): new macro. Round argument up to next integral
5446         interval.
5447
5448         * redisplay-output.c (redisplay_output_layout): misc formatting.
5449
5450         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5451
5452 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5453
5454         * XEmacs 21.4.9 "Informed Management" is released.
5455
5456 2002-08-19  Andy Piper  <andy@xemacs.org>
5457
5458         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5459         win32 format.
5460
5461         * realpath.c (xrealpath): normalize drive spec also so that dir
5462         sep chars are not mixed on cygwin.
5463
5464 2002-08-06  Jerry James  <james@xemacs.org>
5465
5466         * window.c (Fsplit_window): Count only half of the divider width
5467         against the left window when splitting horizontally. 
5468
5469 2002-06-24  Andy Piper  <andy@xemacs.org>
5470
5471         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5472         toolbar was cleared.
5473
5474         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5475         function. Split out from mswindows_output_frame_toolbars.
5476         (mswindows_output_frame_toolbars): move clear pieces to
5477         mswindows_output_frame_toolbars.
5478
5479         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5480         out from gtk_output_frame_toolbars.
5481         (gtk_output_frame_toolbars): move clear pieces to
5482         gtk_clear_frame_toolbars.
5483
5484         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5485         the frame is cleared. How this ever worked before is a mystery.
5486         (x_output_frame_toolbars): Only output toolbars.
5487         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5488
5489         * gutter.c (update_gutter_geometry):
5490         Mark frame layout changed.
5491         (update_frame_gutter_geometry, update_frame_gutters):
5492         Respect frame_layout_changed.
5493
5494         * console.h (struct console_methods): add
5495         clear_frame_toolbars_method.
5496
5497         * redisplay.c (redisplay_frame): call
5498         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5499
5500         * toolbar.h: declare update_frame_toolbars_geometry.
5501
5502         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5503         out from update_frame_toolbars.  Call clear_frame_toolbars.
5504         (update_frame_toolbars): only output, do not change geometry.
5505
5506         * redisplay.c: add frame_layout_changed.
5507
5508         * redisplay.h: add frame_layout_changed.
5509         (CLASS_RESET_CHANGED_FLAGS): set it.
5510         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5511         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5512         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5513
5514         * device.h (struct device): add frame_layout_changed.
5515         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5516
5517         * frame.h (struct frame): add frame_layout_changed.
5518         (MARK_FRAME_LAYOUT_CHANGED): new.
5519
5520 2002-06-30  Mike Alexander  <mta@arbortext.com>
5521
5522         * event-msw.c (mswindows_need_event): Don't wait for a new message
5523         if the queue is not empty.  Suggested by Paul Moore.
5524
5525 2002-06-12  Andy Piper  <andy@xemacs.org>
5526
5527         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5528         for printing on accurately.
5529
5530 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5531
5532         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5533         WM_ACTIVATE message. Make sure that the frame is visible if the
5534         window is visible. This seemss to fix the problem where XEmacs
5535         appears to freeze after switching desktops with certain virtual
5536         window managers.
5537         (debug_output_mswin_message): Added code to output message
5538         parameters for WM_WINDOWPOSCHANGED, 
5539         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5540
5541 2002-05-25  Andy Piper  <andy@xemacs.org>
5542
5543         * select-x.c (vars_of_select_x): Fix docstring of
5544         x-selection-strict-motif-ownership
5545
5546 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5547
5548         * keymap.c (get_keymap):
5549         Add comment about do_autoload GCPROs own args.
5550
5551 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5552
5553         * bytecode.c (execute_optimized_program): check_opcode ifdef
5554         ERROR_CHECK_BYTE_CODE.
5555
5556 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5557
5558         Thanks to Ben Wing and Michael Sperber.
5559
5560         * eval.c (Fcommand_execute):
5561         (Feval):
5562         (Ffuncall):
5563         (Fmacroexpand_internal):
5564         (function_argcount):
5565         callint.c (Fcall_interactively):
5566         Add comment about do_autoload GCPROs own args.
5567
5568         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5569
5570         * eval.c (Ffuncall): Extra braces to placate GCC.
5571
5572 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5573
5574         * backtrace.h (grow_specpdl):
5575         (SPECPDL_RESERVE):
5576         * EmacsFrame.c (EmacsFrameSetValues):
5577         * eval.c (grow_specpdl):
5578         * ExternalShell.c (hack_event_masks_1):
5579         * glyphs-x.c (convert_EImage_to_XImage): 
5580         (x_finalize_image_instance):
5581         * ralloc.c (page_size):
5582         (r_alloc_sbrk):
5583         * xgccache.c (gc_cache_hash):
5584         Fix unsigned comparison warnings.
5585
5586 2002-07-29  Jerry James  <james@xemacs.org>
5587
5588         * lread.c (locate_file): Any nonnegative return value indicates
5589         success if MODE is nonnegative.
5590
5591 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5592
5593         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5594         argument. 
5595
5596 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5597
5598         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5599
5600         * dumper.c (pdump_get_indirect_count):
5601         (pdump_scan_by_alignment):
5602         (pdump_dump_root_struct_ptrs):
5603         (pdump_dump_rtables):
5604         (pdump_dump_root_objects):
5605         (pdump):
5606         * nas.c (WaveOpenDataForReading):
5607         * fns.c (print_bit_vector):
5608         * font-lock.c (SINGLE_SYNTAX_STYLE):
5609         * glyphs.c (check_for_ignored_expose):
5610         (find_matching_subwindow):
5611         * glyphs-eimage.c:
5612         * imgproc.c (get_histogram):
5613         * redisplay.c (point_in_line_start_cache):
5614         * redisplay-output.c (redisplay_unmap_subwindows):
5615         * symbols.c (defsymbol_massage_name_1):
5616         (defkeyword_massage_name):
5617         (deferror_massage_name_and_message):
5618         * redisplay-x.c (x_output_string): 
5619         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5620         * frame.h (struct frame):
5621         * filelock.c (current_lock_owner):
5622         * doprnt.c (emacs_doprnt_1):
5623         * lisp.h (struct Lisp_Bit_Vector):
5624         (DO_REALLOC):
5625         Fix warnings.
5626
5627 2002-02-13  Ben Wing  <ben@xemacs.org>
5628
5629         * event-stream.c (reset_key_echo):
5630         * event-stream.c (reset_this_command_keys):
5631         * event-stream.c (execute_command_event):
5632         If console is dead as a result of C-x 5 0, then post-command stuff
5633         needs to be careful and do only non-console-specific stuff.
5634
5635 2002-07-01  Mike Sperber <mike@xemacs.org>
5636
5637         * process-unix.c (unix_send_process): Mark coding_outstream as
5638         non-open upon SIGPIPE.
5639
5640         * event-stream.c (Fnext_event): Reorder switch cases to something
5641         that makes sense.
5642
5643 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5644
5645         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5646         Don't bogusly reinitialize ascii_character property.
5647
5648 2002-07-08  Mike Sperber <mike@xemacs.org>
5649
5650         * process.c (Fstart_process_internal): Do error checking before we
5651         fork off the child, so the child can't muck with the state of the
5652         parent.
5653
5654 2002-07-08  Mike Sperber <mike@xemacs.org>
5655
5656         * ralloc.c (init_ralloc): Allocate properly for pdump.
5657
5658 2002-06-12  Andy Piper  <andy@xemacs.org>
5659
5660         * glyphs.c (query_string_geometry): check the string.
5661
5662         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5663         widget names.
5664
5665 2002-06-17  Jerry James  <james@xemacs.org>
5666
5667         * sysdll.c: Remove RTLD_GLOBAL initialization.
5668         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5669
5670 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5671
5672         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5673
5674 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5675
5676         * sysdep.c (sys_rename): Make sys_rename work for the case where
5677         Windows rename sets errno to EACCES if target file exists.
5678
5679 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5680
5681         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5682         Fix detection of metric units to work on Win95
5683
5684 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5685
5686         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5687
5688 2002-04-25  Andy Piper  <andy@xemacs.org>
5689
5690         * redisplay.c (create_text_block): Remove extra comment trailer.
5691
5692 2002-04-24  Andy Piper  <andy@xemacs.org>
5693
5694         * redisplay.c (create_text_block): Don't actually add propagation
5695         data if the line ends after we have added a glyph.
5696
5697 2002-04-22  Andy Piper  <andy@xemacs.org>
5698
5699         * extents.c (extent_fragment_update): check for glyphs we have
5700         previously displayed.
5701         * extents.c (print_extent_1): warning removal.
5702         * extents.h: change prototype.
5703         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5704         widths correctly for wide glyphs.
5705         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5706         * redisplay.c (prop_type): add PROP_GLYPH.
5707         * redisplay.c (struct prop_block): add glyph type
5708         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5709         to the propagation data.
5710         * redisplay.c (create_text_block): if there is a glyph in the
5711         propagation data use it to salt extent_fragment_update.
5712         * redisplay.c (create_string_text_block): ditto.
5713
5714 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5715
5716         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5717         * redisplay-output.c (compare_runes): Compare them.
5718         * redisplay.c: Update copyright date.
5719         * redisplay.c (pos_data): Add need_baseline_computation field.
5720         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5721         need_baseline_computation; zero yoffset. Set max_pixmap_height
5722         for all pixmaps, not just automatically positioned ones.
5723         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5724         * redisplay.c (calculate_baseline): New, compute textual baseline.
5725         * redisplay.c (add_glyph_rune): Call them.
5726         * redisplay.c (create_text_block): Likewise.
5727         * redisplay.c (create_overlay_glyph_block): Likewise.
5728         * redisplay.c (add_margin_runes): Likewise.
5729         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5730
5731         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5732         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5733         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5734         * redisplay-msw.c (mswindows_output_string): Likewise.
5735         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5736         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5737         * redisplay-x.c (x_output_display_block): Likewise.
5738
5739 2002-03-28  Ben Wing  <ben@xemacs.org>
5740
5741         * redisplay.c: Fixed bug in redisplay
5742         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5743         and down of the lines, since they're bigger than the line
5744         size. (It was seen most obviously when there's a horizontal scroll
5745         bar, e.g. do C-h a glyph or something like that.) The problem was
5746         that the glyph-contrib-p setting on glyphs was ignored even if it
5747         was set properly, which it wasn't until now.
5748
5749 2002-04-24  Andy Piper  <andy@xemacs.org>
5750
5751         * lisp.h (Dynarr_end): Fix definition.
5752
5753 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5754
5755         * redisplay.c (mark_redisplay): Remove call to
5756         update_frame_window_mirror.
5757
5758 2001-11-15  Andy Piper  <andy@xemacs.org>
5759
5760         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5761         cygwin (again).
5762
5763 2002-02-13  Andy Piper  <andy@xemacs.org>
5764
5765         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5766         we did in fact enqueue the XM_MAPFRAME event.
5767
5768 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5769
5770         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5771         to fix problem switching between virtual desktops under virtuawin
5772         virtual window manager.
5773
5774 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5775
5776         * event-msw.c: Typo fix.
5777         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5778         magic XM_MAPFRAME event has been sent.
5779
5780 2001-11-23  Andy Piper  <andy@xemacs.org>
5781
5782         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5783
5784 2001-11-21  Andy Piper  <andy@xemacs.org>
5785
5786         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5787         mouse events outside the frame.
5788
5789 2002-03-20  Andy Piper  <andy@xemacs.org>
5790
5791         * menubar-msw.c (mswindows_popup_menu): warning removal.
5792         * dialog-msw.c (dialog_popped_down): ditto.
5793
5794 2001-12-11  Andy Piper  <andy@xemacs.org>
5795
5796         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5797         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5798         popup_up_p.
5799         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5800         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5801         * menubar-msw.c (mswindows_popup_menu): ditto.
5802
5803 2001-10-29  Andy Piper  <andy@xemacs.org>
5804
5805         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5806         cancels.
5807
5808 2002-01-03  Andy Piper  <andy@xemacs.org>
5809
5810         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5811         letters.
5812         (xrealpath): ditto.
5813
5814 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5815
5816         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5817         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5818         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5819         Detect and handle case where machine is set up for metric units
5820
5821 2002-04-02  Andy Piper  <andy@xemacs.org>
5822
5823         * dired-msw.c (mswindows_get_files): 
5824         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5825         completely handled by XEmacs. Suggested by Thomas Vogler
5826         <mail@thomas-vogler.de>.
5827
5828 2001-11-14  Andy Piper  <andy@xemacs.org>
5829
5830         * nt.c (REG_ROOT): change registry key to XEmacs.
5831
5832 2002-04-27  Andy Piper  <andy@xemacs.org>
5833
5834         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5835
5836 2002-04-26  Andy Piper  <andy@xemacs.org>
5837
5838         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5839         behavior.
5840
5841 2002-03-14  Mike Alexander  <mta@arbortext.com>
5842
5843         * event-msw.c (mswindows_unwait_process): New, remove process from
5844         wait list
5845         * process-nt.c (nt_finalize_process_data): Call
5846         mswindows_unwait_process
5847         * console-msw.h: Declare mswindows_unwait_process
5848
5849 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5850
5851         * editfns.c (Fdecode_time):
5852         (Fformat_time_string):
5853         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5854         (make_time): Warning elimination (change arg name).
5855
5856 2001-11-24  Andy Piper  <andy@xemacs.org>
5857
5858         * window.c (Fsplit_window): Doc return type.
5859
5860 2002-04-01  Andy Piper  <andy@xemacs.org>
5861
5862         * emacs.c (Fkill_emacs): Only output message box in interactive
5863         mode.
5864
5865 2002-04-26  Andy Piper  <andy@xemacs.org>
5866  
5867         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5868         cygwin.
5869
5870 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5871
5872         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5873         bit platform.
5874
5875 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5876
5877         * XEmacs 21.4.8 "Honest Recruiter" is released.
5878
5879 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5880
5881         Supersedes 2002-04-17 patch.
5882
5883         * process.h (PROCESS_LIVE_P): Use the process status as
5884         evidence of health, not the state of the input stream.
5885         (PROCESS_READABLE_P): Say if the process is readable
5886         from. (It may be dead nonetheless.)
5887         (CHECK_READABLE_PROCESS): Test for that condition.
5888
5889         * process.c (create_process): Use PROCESS_READABLE_P.
5890         (read_process_output, set_process_filter): Likewise.
5891
5892         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5893         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5894
5895         This code is #if 0'd, this is not the time to add new functions:
5896
5897         * process.c (Fprocess_readable_p): Report readability status.
5898         * process.c (Qprocess_readable_p): New, associated symbol...
5899         * process.c (syms_of_process): ... initialize it.
5900
5901 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5902
5903         * XEmacs 21.4.7 "Economic Science" is released.
5904
5905 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5906
5907         * process.h (PROCESS_LIVE_P): Use the process status as
5908         evidence of health, not the state of the input stream.
5909
5910 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5911
5912         * sysdep.c (sys_siglist): change "signum" to "signal"
5913
5914 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5915
5916         * s/darwin.h: New file.
5917         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5918         
5919 2002-04-23  Andreas Jaeger  <aj@suse.de>
5920
5921         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5922         which use lib64 for 64-bit libs.
5923         (START_FILES): Likewise.
5924
5925 2002-02-11  Mike Sperber  <mike@xemacs.org>
5926
5927         * device-x.c: 
5928         (x_IO_error_handler):
5929         (x_init_device): Temporarily keep device in static variable
5930         `device_being_initialized' so we can recover gracefully from
5931         internal XOpenDevice failure.  (XOpenDevice is documented to
5932         return NULL on failure, but sometimes calls the IO error handler
5933         instead.)
5934
5935 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5936
5937         * dired.c (Ffile_name_all_completions): Change documentation --
5938         remove reference to completion-ignored-extensions.
5939         * dired.c (vars_of_dired): Change documentation for
5940         completion-ignored-extensions -- remove reference to
5941         file-name-all-completions.
5942
5943 2002-03-06  Jerry James  <james@xemacs.org>
5944
5945         * emodules.c (emodules_load): Fix multiple loading of same module.
5946
5947 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5948         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5949         RTLD_LAZY to avoid incorrect symbol binding when using nested
5950         shared libraries on Solaris.
5951
5952 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5953
5954         * fileio.c (Ffind_file_name_handler): Improve docstring.
5955
5956 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5957
5958         * fns.c (Fmapconcat): Improve docstring.
5959
5960 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5961
5962         * device-gtk.c: Add prototype for
5963         emacs_gtk_selection_clear_event_handle.
5964         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5965         selection.  Setup signal handler for "selection_clear_event"
5966         (emacs_gtk_selection_clear_event_handle).
5967
5968         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5969         other applications owning the clipboard (based on
5970         x_handle_selection_clear).
5971
5972 2001-12-23  William M. Perry  <wmperry@gnu.org>
5973
5974         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5975         
5976 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5977
5978         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5979
5980 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5981
5982         * XEmacs 21.4.6 "Common Lisp" is released.
5983
5984 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5985
5986         * search.c (Freplace_match): Add missing sub-expression functionality.
5987
5988         * buffer.c (decode_buffer): Add a check for pointer type to
5989         decode_buffer, before gcc's CSE optimization reorders a
5990         dereference in front of the allow_string test.
5991
5992 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5993
5994         * window.c (window_loop): Fix bug that sometimes prevented
5995         window_loop() from iterating across multiple devices.  Also, at
5996         Ben's request, changed infloop-detecting code to abort() instead
5997         of silently terminating window_loop().
5998
5999 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6000
6001         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6002         * editfns.c (make_time): New function.
6003         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6004         * lisp.h (make_time): Prototype and comment it.
6005         * dired.c (wasteful_word_to_lisp): Deprecate.
6006         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6007
6008 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6009
6010         * fileio.c (auto_save_1): Use current coding system, not
6011         escape-quoted.
6012
6013 2001-11-13  Ben Wing  <ben@xemacs.org>
6014
6015         * window.c:
6016         * window.c (window_truncation_on):
6017         * window.c (syms_of_window):
6018         truncate-partial-width-windows should respect the buffer being
6019         displayed, like other redisplay vars.
6020
6021 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6022
6023         * event-stream.c (Fread_key_sequence): save current buffer.
6024
6025 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6026
6027         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6028
6029 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6030
6031         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6032
6033 2001-10-26  Mike Alexander  <mta@arbortext.com>
6034
6035         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6036
6037 2001-10-25  Andy Piper  <andy@xemacs.org>
6038
6039         * ChangeLog:
6040         * dialog-msw.c (handle_directory_proc): new function.
6041          (handle_directory_dialog_box): new fucntion.
6042          (handle_file_dialog_box): use new directory dialog support.
6043          (mswindows_make_dialog_box_internal): ditto.
6044         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6045         handling.
6046         (mswindows_find_frame): make global.
6047         * fileio.c (Fexpand_file_name): build fix.
6048         * general-slots.h: add Qdirectory.
6049         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6050         handling.
6051         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6052         cygwin not leaving win32 paths unchanged.
6053         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6054         cygwin runtime to do path conversion.
6055         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6056         (syms_of_win32): add new function.
6057         * window.c (window_loop): build fix.
6058
6059 2001-10-15  Andy Piper  <andy@xemacs.org>
6060
6061         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6062
6063 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6064
6065         * XEmacs 21.4.5 "Civil Service" is released.
6066
6067 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6068
6069         * glyphs-x.c: Force buffer-tab highlight update when moving the
6070         buffer, avoiding an ugly black border, used for keyboard focus
6071         indication, on a widget that can never have keyboard focus, the
6072         buffer tab.
6073
6074 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6075
6076         * process-unix.c (unix_open_multicast_group): Remove too much
6077         conversion between host and network byte order.
6078
6079 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6080
6081         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6082         before replacing them.
6083
6084         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6085         operation.
6086
6087         * src/window.c (undedicate_windows): Use it.
6088         * src/window.h: Add prototype.
6089
6090 2001-09-17  Ben Wing  <ben@xemacs.org>
6091
6092         * fileio.c (normalize_filename):
6093         * fileio.c (Fexpand_file_name):
6094         Fix various C++ compile errors in Andy's recent code.
6095         
6096         * callint.c (Fcall_interactively):
6097         * editfns.c (Ftemp_directory):
6098         * editfns.c (Fuser_full_name):
6099         * emacs.c (argmatch):
6100         * lread.c (locate_file_map_suffixes):
6101         * redisplay-x.c (x_ring_bell):
6102         Fix sign-compare warnings.
6103         
6104 2001-09-08  Andy Piper  <andy@xemacs.org>
6105
6106         * fileio.c (normalize_filename): copied from nt.c
6107         * (Ffile_name_directory): enable win32 paths under cygwin.
6108         * (Ffile_name_nondirectory): ditto.
6109         * (directory_file_name): ditto.
6110         * (Fexpand_file_name): ditto.
6111         * (Ffile_truename): ditto.
6112         * (Fsubstitute_in_file_name): ditto.
6113         * (Ffile_name_absolute_p): ditto.
6114         * (Ffile_readable_p): ditto.
6115
6116 2001-09-08  Andy Piper  <andy@xemacs.org>
6117
6118         * device-msw.c (mswindows_finish_init_device): remove dde
6119         initialization.
6120         * device-msw.c (mswindows_init_dde): factor out from
6121         mswindows_finish_init_device()
6122         * device-msw.c (init_mswindows_very_early): new function
6123         initialize but don't enable dde.
6124         * emacs.c (main_1): call init_mswindows_very_early.
6125         * event-msw.c:
6126         * event-msw.c (mswindows_dde_callback): only execute when we are
6127         ready.
6128         * symsinit.h: declare init_mswindows_very_early.
6129
6130 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6131
6132         [sjt: This has been in 21.5 for months with no complaints.]
6133
6134         * console.h (struct console_methods): Added flags member.
6135         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6136         (CONMETH_IMPL_FLAG):
6137         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6138         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6139
6140         * device.c (window_system_pixelated_geometry): Use the above macros.
6141
6142         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6143         implememntation flag.
6144         * device.h (DEVICE_DISPLAY_P): Use it.
6145
6146         * frame.c (delete_frame_internal): Use the above macro.
6147
6148         * redisplay.c (redisplay_device): Use it.
6149         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6150         (redisplay_frame): Ditto.
6151
6152         * device-msw.c (mswindows_device_implementation_flags): Removed.
6153         (msprinter_device_implementation_flags): Removed.
6154         (console_type_create_device_mswindows): Removed references to
6155         implementation_flags methods, set implementation flags here.
6156         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6157
6158         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6159         (console_type_create_device_gtk): Removed method declaration.
6160         Added commented out statement which semantically matches the
6161         commented out statement in the above removed method.
6162
6163 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6164
6165         The attached patch fixes a few warnings. 
6166
6167         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6168         * src/frame-gtk.c: guard against GNOME calls in GTK only
6169         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6170         * src/select-gtk.c: prototype lisp_to_time
6171
6172 2001-06-08  Ben Wing  <ben@xemacs.org>
6173
6174         ------ gc-in-window-procedure fixes ------
6175         
6176         * alloc.c:
6177         * alloc.c (struct post_gc_action):
6178         * alloc.c (register_post_gc_action):
6179         * alloc.c (run_post_gc_actions):
6180         * alloc.c (garbage_collect_1):
6181         Create "post-gc actions", to avoid those dreaded "GC during window
6182         procedure" problems.
6183
6184         * event-msw.c:
6185         Abort, clean and simple, when GC in window procedure.  We want
6186         to flush these puppies out.
6187
6188         * glyphs-msw.c:
6189         * glyphs-msw.c (finalize_destroy_window):
6190         * glyphs-msw.c (mswindows_finalize_image_instance):
6191         Use a post-gc action when destroying subwindows.
6192
6193         * lisp.h:
6194         Declare register_post_gc_action().
6195
6196         * scrollbar-msw.c:
6197         * scrollbar-msw.c (unshow_that_mofo):
6198         Use a post-gc action when unshowing scrollbar windows, if in gc.
6199
6200         * redisplay.c (mark_redisplay):
6201         Add comment about the utter evilness of what's going down here.
6202
6203         ------ cygwin setitimer fixes ------
6204         
6205         * Makefile.in.in (sheap_objs):
6206         * Makefile.in.in (profile_objs):
6207         * Makefile.in.in (objs):
6208         Compile profile.c only when HAVE_SETITIMER.
6209         
6210         * nt.c (mswindows_sigset):
6211         * nt.c (mswindows_sighold):
6212         * nt.c (mswindows_sigrelse):
6213         * nt.c (mswindows_sigpause):
6214         * nt.c (mswindows_raise):
6215         * nt.c (close_file_data):
6216         Style fixes.
6217         
6218         * nt.c:
6219         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6220         
6221         * profile.c:
6222         * profile.c (Fstart_profiling):
6223         * profile.c (Fstop_profiling):
6224         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6225         instead of just plain setitimer().
6226         
6227         * signal.c:
6228         * signal.c (set_one_shot_timer):
6229         * signal.c (alarm):
6230         Define qxe_setitimer() as an encapsulation around setitimer() --
6231         call setitimer() directly unless Cygwin or MS Win, in which case
6232         we use our simulated version in win32.c.
6233         
6234         * systime.h:
6235         * systime.h (struct itimerval):
6236         * systime.h (ITIMER_REAL):
6237         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6238         comment about "qxe" and the policy regarding encapsulation.
6239
6240         * win32.c:
6241         * win32.c (setitimer_helper_proc):
6242         * win32.c (setitimer_helper_period):
6243         * win32.c (setitimer_helper):
6244         * win32.c (mswindows_setitimer):
6245         Move setitimer() emulation here, so Cygwin can use it.
6246         Rename a couple of functions and variables to be longer and more
6247         descriptive.  In setitimer_helper_proc(), send the signal
6248         using either mswindows_raise() or (on Cygwin) kill().  If for
6249         some reason we are still getting lockups, we'll change the kill()
6250         to directly invoke the signal handlers.
6251
6252         ------ windows shell fixes ------
6253         
6254         * callproc.c:
6255         * ntproc.c:
6256         Comments about how these two files must die.
6257
6258         * callproc.c (init_callproc):
6259         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6260         not just COMSPEC. (more correct and closer to FSF.) Don't
6261         force a value for SHELL into the environment. (Comments added
6262         to explain why not.)
6263         
6264         * nt.c (init_user_info):
6265         Don't shove a fabricated SHELL into the environment.  See above.
6266
6267 2001-06-01  Ben Wing  <ben@xemacs.org>
6268
6269         * Makefile.in.in (ldflags):
6270         eliminate that pesky "defaulting to 00401000" warning.
6271         * nt.h:
6272         eliminate warnings.
6273
6274 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6275
6276         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6277         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6278
6279 2001-04-24  Jerry James <james@xemacs.org>
6280
6281         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6282         correct order.
6283
6284 2001-06-01  Ben Wing  <ben@xemacs.org>
6285
6286         * event-msw.c (debug_mswin_messages):
6287         conditionalize the messages that were causing compile errors.
6288         (if only macros could generate #ifdef statements ...)
6289
6290 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6291
6292         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6293
6294 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6295
6296         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6297
6298 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6299
6300         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6301         * process-unix.c (unix_canonicalize_host_name):
6302         sysdep.c (init_system_name):
6303         Use it to conditionally support IPv6 canonicalization.
6304
6305 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6306
6307         * event-msw.c:
6308         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6309
6310 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6311
6312         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6313         attempt is made to scroll when no scroll bar is available.
6314
6315 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6316
6317         * input-method-motif.c (XIM_delete_frame): New callback.
6318         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6319         got deleted from 21.4.3.)
6320
6321 2001-06-01  Ben Wing  <ben@xemacs.org>
6322
6323         * nt.c (mswindows_utime):
6324         * nt.c (close_file_data):
6325         fix off-by-one-indirection error.
6326
6327 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6328
6329         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6330         because set_file_times() now takes Lisp_Object path, instead of
6331         char*.
6332         * nt.c: Include buffer.h.
6333         * nt.c (convert_from_time_t): New.
6334         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6335         not set mtime correctly.
6336         * nt.h: Declare mswindows_utime().
6337         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6338         path, instead of char*.
6339         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6340
6341 2001-05-30  Ben Wing  <ben@xemacs.org>
6342
6343         For 21.4:
6344
6345         (Stephen, just take all event-msw.c patches.  This includes
6346         the "iconify" fix below.)
6347
6348         * event-msw.c:
6349         * event-msw.c (mswindows_dequeue_dispatch_event):
6350         * event-msw.c (assert):
6351         * event-msw.c (emacs_mswindows_quit_p):
6352         * event-msw.c (debug_mswin_messages):
6353         * event-msw.c (debug_output_mswin_message):
6354         * event-msw.c (vars_of_event_mswindows):
6355         Fix yet more problems with C-g handling.
6356         Implement debug-mswindows-events.
6357         
6358 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6359
6360         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6361         
6362 2001-05-23  Ben Wing  <ben@xemacs.org>
6363
6364         * event-msw.c (winsock_writer):
6365         * event-msw.c (winsock_closer):
6366         prior kludgy code was clobbering the buffer, thinking it was
6367         "unused" space to store an unneeded return value; instead, use
6368         the variable we've already got staring us in the face.
6369
6370 2001-05-17  Andy Piper  <andy@xemacs.org>
6371
6372         * sysfile.h: don't assume that file attributes are boolean
6373
6374 2001-05-23  Ben Wing  <ben@xemacs.org>
6375
6376         * device-msw.c (msprinter_init_device):
6377         signal an error rather than crash with an unavailable network
6378         printer (from Mike Alexander).
6379         
6380         * event-msw.c:
6381         * event-msw.c (struct winsock_stream):
6382         * event-msw.c (winsock_writer):
6383         * event-msw.c (winsock_closer):
6384         * event-msw.c (make_winsock_stream_1):
6385         cleanup headers.  fix (hopefully) an error with data corruption
6386         when sending to a network connection.
6387
6388         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6389         to handle the ~user prefix by (a) always assuming we're referencing
6390         ourselves and not even verifying the user -- hence any file with
6391         a tilde as its first char is invalid! (b) if there wasn't a slash
6392         following the filename, the pointer was set *past* the end of
6393         file and we started reading from uninitialized memory.  Now we
6394         simply treat these as files, always.
6395
6396         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6397         
6398 2001-05-19  Ben Wing  <ben@xemacs.org>
6399
6400         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6401
6402         * process-nt.c:
6403         * process-nt.c (vars_of_process_nt):
6404         remove unused mswindows-quote-process-args.  rec for 21.4.
6405         
6406 2001-05-12  Ben Wing  <ben@xemacs.org>
6407
6408         * event-msw.c (mswindows_dde_callback):
6409         * event-msw.c (mswindows_wnd_proc):
6410         eliminate cygwin warnings.
6411
6412 2001-05-06  Ben Wing  <ben@xemacs.org>
6413
6414         * console-msw.h:
6415         * device-msw.c:
6416         * device-msw.c (print_dialog_worker):
6417         * device-msw.c (mswindows_handle_print_dialog_box):
6418         * device-msw.c (syms_of_device_mswindows):
6419         * dialog-msw.c (mswindows_make_dialog_box_internal):
6420         * general-slots.h:
6421         implement printing the selection when it's selected.
6422
6423 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6424
6425         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6426
6427 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6428
6429         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6430         EMACS_INT is signed.
6431
6432 2001-04-15  Michael Lausch  <mla@1012surf.net>
6433
6434         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6435         gtk_widget_request_size() to give scrollbar >0 width for
6436         GTK >1.2.8.
6437
6438 2001-05-30  William M. Perry  <wmperry@gnu.org>
6439
6440         * event-gtk.c: Check for buttons as modifier keys.
6441
6442 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6443
6444         * s\mingw32.h:
6445         Properly find MinGW's <process.h> inside Cygwin's restructured
6446         include directories.  Don't try to include <cygwin/version.h>
6447         since we are dropping support for MinGW in versions of Cygwin
6448         earlier than b21.
6449         * nt.c:
6450         Drop support for MinGW in versions of Cygwin before b21.
6451         * sysdep.c:
6452         Properly find MinGW's <process.h> inside Cygwin's restructured
6453         include directories.
6454         * syswindows.h:
6455         Drop support for MinGW in versions of Cygwin before b21.
6456         * unexcw.c:
6457         Even though a.out.h is no longer detected by configure, allow
6458         MinGW to use it until we figure out how to do the job with Win32.
6459
6460 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6461
6462         * syntax.c (find_start_of_comment):
6463         Fix `unbalanced parentheses' bug when dealing with mixed comment
6464         styles in c++/java/etc. mode
6465
6466 2001-05-29  Mike Alexander  <mta@arbortext.com>
6467
6468         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6469         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6470
6471 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6472
6473         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6474
6475 2001-03-31  Mike Sperber <mike@xemacs.org>
6476
6477         * search.c (Freplace_match): Support FSF-style specification of
6478         match subexpression when applied to a buffer.
6479
6480 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6481
6482         * event-stream.c (is_scrollbar_event): add missing semicolon
6483
6484 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6485
6486         * Makefile.in.in: Use TAR macro instead of hardcoding
6487           tar.  Allows use of GNU tar instead of system tar
6488
6489 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6490
6491         * event-stream.c (is_scrollbar_event): add missing semicolon
6492
6493 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6494
6495         * XEmacs 21.4.3 "Academic Rigor" is released.
6496
6497 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6498
6499         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6500
6501 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6502
6503         * buffer.c (Vcase_fold_search): Remove obsolete
6504           comment about non ASCII case-fold-search.  This
6505           bug has been fixed by case-table changes.
6506
6507 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6508
6509         * event-msw.c: Restore include of events-mod.h.
6510
6511 2001-04-22   zhaoway  <zw@debian.org>
6512
6513         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6514         !HAVE_SCROLLBARS.
6515
6516 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6517
6518         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6519
6520 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6521
6522         * mule-charset.c (Fmake_charset): Add missing else.
6523
6524 2001-04-23  Ben Wing  <ben@xemacs.org>
6525
6526         * event-msw.c (FAKE_MOD_QUIT):
6527         * event-msw.c (mswindows_dequeue_dispatch_event):
6528         * event-msw.c (mswindows_wnd_proc):
6529         * event-msw.c (emacs_mswindows_quit_p):
6530         Get critical quit working.
6531
6532 2001-05-05  Ben Wing  <ben@xemacs.org>
6533
6534         * console-msw.h:
6535         * device-msw.c:
6536         * device-msw.c (mswindows_get_default_margin):
6537         * frame-msw.c (mswindows_size_frame_internal):
6538         * frame-msw.c (msprinter_init_frame_1):
6539         * frame-msw.c (vars_of_frame_mswindows):
6540         Change top/bottom margin defaults to 0.5 inches.
6541
6542 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6543
6544         Fix link error with gcc 3.0 on Linux.
6545         * terminfo.c (UP): Remove.
6546         * terminfo.c (BC): Remove.
6547         * terminfo.c (PC): Remove.
6548         They weren't used, and in any case, these symbols should be
6549         defined in the *library*.
6550
6551 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6552
6553         * s/aix4.h: Fix crash with xlc -O3.
6554         Improve comment explaining how -O3 works.
6555
6556 2001-04-15  Ben Wing  <ben@xemacs.org>
6557
6558         * event-stream.c:
6559         * event-stream.c (Fnext_event):
6560         * event-stream.c (is_scrollbar_event):
6561         * event-stream.c (execute_command_event):
6562         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6563         crash' problem.  His fix introduces other problems.  We filter
6564         out scrollbar events specifically, making them somewhat invisible
6565         to command-building, and not appearing in `this-command-keys'.
6566         More work is still needed (see comments in event-stream.c), but
6567         this fixes all the major problems.
6568
6569 2001-04-20  Ben Wing  <ben@xemacs.org>
6570
6571         * .cvsignore: Added stuff for Windows.
6572
6573 2001-04-28  Ben Wing  <ben@xemacs.org>
6574
6575         * buffer.c (Ferase_buffer):
6576         * editfns.c (buffer_insert1):
6577         * editfns.c (Finsert_before_markers):
6578         * editfns.c (Finsert_string):
6579         * editfns.c (Finsert_char):
6580         * editfns.c (Fdelete_region):
6581         * editfns.c (Fwiden):
6582         * editfns.c (Fnarrow_to_region):
6583         remove bogus lines setting zmacs_region_stays to 0.
6584         
6585 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6586
6587         * process-unix.c (unix_open_network_stream): If connect() fails
6588         invalidate file descriptor after closing it.
6589
6590 2001-03-08  Mike Alexander  <mta@arbortext.com>
6591
6592         * event-msw.c (mswindows_need_event_in_modal_loop):
6593         Don't dispatch a message if we didn't get one.
6594         (mswindows_need_event):
6595         Terminate the correct process when one exits instead of the first
6596         one on Vprocess_list and look for process termination when in
6597         mswindows_protect_modal_loop.
6598
6599 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6600
6601         * XEmacs 21.4.1 "Copyleft" is released.
6602
6603 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6604
6605         * input-method-motif.c (XIM_delete_frame): New callback.
6606         (XIM_init_frame): Register it.
6607
6608 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6609
6610         * XEmacs 21.4.0 "Solid Vapor" is released.
6611
6612 2001-04-15  Ben Wing  <ben@xemacs.org>
6613
6614         * cmdloop.c (call_command_loop):
6615         Fix braino in bit-rotting code.
6616         
6617 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6618
6619         * extents.c (Fset_extent_endpoints): Force creation of extent info
6620         in buffer_or_string.
6621
6622         * extents.c (process_extents_for_insertion_mapper): Correctly
6623         check for open-open zero-length extents.
6624
6625 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6626
6627         * lisp.h: New typedefs Memory_count, Element_count.
6628         * regex.c:
6629         * regex.h:
6630         Sign-compare warning elimination: several unsigned -> signed.
6631         Based on work by Ben Wing <ben@xemacs.org>.
6632
6633 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6634
6635         * XEmacs 21.2.47 "Zephir" is released.
6636
6637 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6638
6639         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6640
6641 2001-04-03  Mike Sperber <mike@xemacs.org>
6642
6643         * search.c: Revert previous patch due because of release.
6644
6645 2001-03-30  Ben Wing  <ben@xemacs.org>
6646
6647         * s\cygwin32.h:
6648         Add missing killpg prototype.
6649
6650         * elhash.c:
6651         Add a comment about fixing problems when a new entry is added
6652         while mapping.
6653
6654         * frame-msw.c (mswindows_init_frame_1):
6655         Fix compile warnings.
6656
6657         * menubar.c (vars_of_menubar):
6658         Provide `menu-accelerator-support' to indicate that we properly
6659         support %_ in menu specifications, so that package code can
6660         conditionalize on this (and remove %_ from menu specifications
6661         on older versions).
6662
6663         * event-msw.c:
6664         * scrollbar-msw.c:
6665         * scrollbar-msw.c (can_scroll):
6666         * scrollbar-msw.h:
6667         Fix handling of mouse wheel under Windows to follow standards --
6668         now scrolls window under pointer, not selected window.
6669
6670 2001-03-31  Mike Sperber <mike@xemacs.org>
6671
6672         * search.c (Freplace_match): Support FSF-style specification of
6673         match subexpression when applied to a buffer.
6674
6675 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6676
6677         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6678         function to modify KEYMAP, so map over a copy of the hash table.
6679
6680 2001-03-21  Martin Buchholz <martin@xemacs.org>
6681
6682         * XEmacs 21.2.46 "Urania" is released.
6683
6684 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6685
6686         * realpath.c (xrealpath): Make file-truename work with symlinks to
6687         /cygdrive paths on cygwin. Always lowercase drive-letters on
6688         native windows.
6689         (cygwin_readlink): Don't try to find canonical filename unless
6690         file exists.
6691
6692 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6693
6694         * ChangeLog: Log GTK merge.
6695
6696         * dumper.c:
6697         * select-x.c:
6698         * specifier.c:
6699         * symeval.h:
6700         Revert gratuitous whitespace changes from GTK merge.
6701
6702         * emacs.c: Document end of complex #ifdef @ l. 1495.
6703
6704
6705 2001-03-12  Andy Piper  <andy@xemacs.org>
6706
6707         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6708         have to do likewise.
6709
6710 2001-03-12  Andy Piper  <andy@xemacs.org>
6711
6712         * sysdep.c: we only support mingw now.
6713
6714 2001-03-09  Andy Piper  <andy@xemacs.org>
6715
6716         * unexcw.c (copy_executable_and_dump_data_section): making approx
6717         overrun a warning only.
6718
6719 2001-03-10  William M. Perry  <wmperry@aventail.com>
6720
6721         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6722         satisfy Stephen's identical-after-cpp plea.
6723
6724 2001-03-02  Ben Wing  <ben@xemacs.org>
6725
6726         * cmds.c:
6727         * cmds.c (Fforward_char):
6728         * syntax.c:
6729         * window.c:
6730
6731         Augment documentation of the most common motion commands to make
6732         note of the shifted-motion support.
6733         
6734 2001-03-02  Ben Wing  <ben@xemacs.org>
6735
6736         * nt.c (mswindows_fstat):
6737         * nt.c (mswindows_stat):
6738         * search.c (boyer_moore):
6739         Fix compile warnings under Windows.
6740         
6741         * sysdep.c (sys_readdir):
6742         Fix buggy filename-conversion code under Mule.
6743
6744 2001-03-09  William M. Perry  <wmperry@aventail.com>
6745
6746         * Makefile.in.in:
6747         * config.h.in:
6748         * console.c:
6749         * console.h:
6750         * device.c:
6751         * device.h:
6752         * dragdrop.c:
6753         * emacs.c:
6754         * event-stream.c:
6755         * events.c:
6756         * events.h:
6757         * faces.c:
6758         * frame.h:
6759         * general-slots.h:
6760         * glyphs.c:
6761         * gutter.c:
6762         * inline.c:
6763         * lisp.h:
6764         * lrecord.h:
6765         * make-src-depend:
6766         * redisplay-output.c:
6767         * redisplay.c:
6768         * symsinit.h:
6769         * sysfile.h:
6770         * toolbar.c:
6771         * window.c:
6772         The Great GTK Merge.
6773
6774         * ChangeLog.GTK:
6775         * console-gtk.c:
6776         * console-gtk.h:
6777         * device-gtk.c:
6778         * emacs-marshals.c:
6779         * emacs-widget-accessors.c:
6780         * event-gtk.c:
6781         * frame-gtk.c:
6782         * gccache-gtk.c:
6783         * gccache-gtk.h:
6784         * glade.c:
6785         * glyphs-gtk.c:
6786         * glyphs-gtk.h:
6787         * gtk-glue.c:
6788         * gtk-xemacs.c:
6789         * gtk-xemacs.h:
6790         * gui-gtk.c:
6791         * gui-gtk.h:
6792         * menubar-gtk.c:
6793         * native-gtk-toolbar.c:
6794         * objects-gtk.c:
6795         * objects-gtk.h:
6796         * redisplay-gtk.c:
6797         * scrollbar-gtk.c:
6798         * scrollbar-gtk.h:
6799         * select-gtk.c:
6800         * toolbar-gtk.c:
6801         * ui-byhand.c:
6802         * ui-gtk.c:
6803         * ui-gtk.h:
6804         The Great GTK Merge: new files.
6805
6806 2001-02-26  Ben Wing  <ben@xemacs.org>
6807
6808         Reapplied Lstream change.
6809
6810 2001-02-26  Ben Wing  <ben@xemacs.org>
6811
6812         Undid the last change, since it is more controversial than I
6813         thought.  It should be back in at some point soon.
6814         
6815 2001-02-25  Ben Wing  <ben@xemacs.org>
6816
6817         * buffer.c:
6818         * callproc.c (Fold_call_process_internal):
6819         * event-msw.c (ntpipe_slurp_reader):
6820         * event-msw.c (ntpipe_shove_writer):
6821         * event-msw.c (winsock_reader):
6822         * event-msw.c (winsock_writer):
6823         * file-coding.c:
6824         * file-coding.c (detect_eol_type):
6825         * file-coding.c (detect_coding_type):
6826         * file-coding.c (determine_real_coding_system):
6827         * file-coding.c (Fdetect_coding_region):
6828         * file-coding.c (decoding_reader):
6829         * file-coding.c (decoding_writer):
6830         * file-coding.c (mule_decode):
6831         * file-coding.c (Fdecode_coding_region):
6832         * file-coding.c (encoding_reader):
6833         * file-coding.c (encoding_writer):
6834         * file-coding.c (mule_encode):
6835         * file-coding.c (Fencode_coding_region):
6836         * file-coding.c (detect_coding_sjis):
6837         * file-coding.c (decode_coding_sjis):
6838         * file-coding.c (encode_coding_sjis):
6839         * file-coding.c (detect_coding_big5):
6840         * file-coding.c (decode_coding_big5):
6841         * file-coding.c (encode_coding_big5):
6842         * file-coding.c (detect_coding_ucs4):
6843         * file-coding.c (decode_coding_ucs4):
6844         * file-coding.c (encode_coding_ucs4):
6845         * file-coding.c (detect_coding_utf8):
6846         * file-coding.c (decode_coding_utf8):
6847         * file-coding.c (encode_coding_utf8):
6848         * file-coding.c (detect_coding_iso2022):
6849         * file-coding.c (decode_coding_iso2022):
6850         * file-coding.c (encode_coding_iso2022):
6851         * file-coding.c (decode_coding_no_conversion):
6852         * file-coding.c (encode_coding_no_conversion):
6853         * glyphs-x.c (write_lisp_string_to_temp_file):
6854         * gpmevent.c (tty_get_foreign_selection):
6855         * lisp.h:
6856         * lstream.c:
6857         * lstream.c (Lstream_flush_out):
6858         * lstream.c (Lstream_adding):
6859         * lstream.c (Lstream_write_1):
6860         * lstream.c (Lstream_write):
6861         * lstream.c (Lstream_raw_read):
6862         * lstream.c (Lstream_read_more):
6863         * lstream.c (Lstream_read):
6864         * lstream.c (Lstream_unread):
6865         * lstream.c (Lstream_fputc):
6866         * lstream.c (stdio_reader):
6867         * lstream.c (stdio_writer):
6868         * lstream.c (filedesc_reader):
6869         * lstream.c (filedesc_writer):
6870         * lstream.c (lisp_string_reader):
6871         * lstream.c (struct fixed_buffer_stream):
6872         * lstream.c (make_fixed_buffer_input_stream):
6873         * lstream.c (make_fixed_buffer_output_stream):
6874         * lstream.c (fixed_buffer_reader):
6875         * lstream.c (fixed_buffer_writer):
6876         * lstream.c (struct resizing_buffer_stream):
6877         * lstream.c (resizing_buffer_writer):
6878         * lstream.c (dynarr_writer):
6879         * lstream.c (lisp_buffer_reader):
6880         * lstream.c (lisp_buffer_writer):
6881         * lstream.h:
6882         * lstream.h (lstream_implementation):
6883         * lstream.h (struct lstream):
6884         * md5.c (Fmd5):
6885         * process-nt.c (nt_send_process):
6886         * process-unix.c (unix_send_process):
6887         
6888         Correct Lstream lossage due to mixing of signed and unsigned
6889         quantities.  All Lstream uses of size_t and ssize_t are now a
6890         single signed data type Lstream_data_count.  This fixes problems
6891         under Windows with sending large quantities of data to a process,
6892         and may well fix other subtle bugs.
6893
6894 2001-02-23  Martin Buchholz <martin@xemacs.org>
6895
6896         * XEmacs 21.2.45 "Thelxepeia" is released.
6897
6898 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6899
6900         * lisp-union.h (XSETINT): 
6901         (XSETCHAR):
6902         (XSETOBJ): 
6903         Reverse previous change of 2001-02-06.
6904
6905 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6906
6907         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6908         buffers.
6909         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6910         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6911         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6912         * regex.c (POS_AS_IN_BUFFER): removed
6913         * regex.c (re_search_2):
6914         * regex.c (re_match_2):
6915         Don't use an offset of 1 when calculating buffer positions, since
6916         `BI_BUF_BEGV' does it already.
6917
6918 2001-02-18  Wim Dumon  <wim@easics.be>
6919
6920         * insdel.c (prepare_to_modify_buffer): Also check for
6921         supersession when clash-detection is enabled. 
6922
6923 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6924
6925         * regex.c (re_match_2_internal):
6926         Convert temp characters from 'const unsigned char' to 're_char'.
6927         Fix crashing bug with extended characters under mule.
6928         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6929         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6930         font-lock, pdump, and new syntax-table code.
6931         * syntax.c (find_start_of_comment):
6932         (find_end_of_comment):
6933         (forward-comment):
6934         Fix crashing bugs involving moving beyond end of buffer.
6935         * syntax.c (find_start_of_comment):
6936         Fixed logic to allow proper detection of cases where the same
6937         character is used to end both a two-char comment start and a
6938         two-char comment end sequence. Fixes `(forward-comment -1)'.
6939         * syntax.c (find_start_of_comment):
6940         Return position just past last comment-end character for all cases
6941         (previously was only done for two-char comment-end sequences).
6942         * syntax.c (forward-comment):
6943         Take value returned from `find_end_of_comment', rather than
6944         incrementing it.
6945         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6946         Properly deal with BUFFERP (syntax_cache.object)
6947
6948 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6949
6950         * alloc.c (Fgarbage_collect): 
6951         * alloc.c (make_bit_vector_from_byte_vector):
6952         -Wsign-compare-correctness.
6953
6954 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6955
6956         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6957         (XSETCHAR): Likewise.
6958         (XSETOBJ): Likewise.
6959
6960 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6961
6962         * mule-canna.c (canna-func-delete_previous): 
6963         Rename to canna-func-delete-previous.
6964
6965 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6966
6967         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6968
6969 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6970
6971         * font-lock.c (find_context): Fix C++ compile errors introduced by
6972         recent patch
6973
6974 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6975
6976         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6977         pragma, but earlier ones barf on the same pragma.
6978
6979 2001-02-06  Mike Sperber <mike@xemacs.org>
6980
6981         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6982         `configure-mule-lisp-directory'.
6983
6984 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6985
6986         Make sure dump-id.c is compiled in the same way as other .c's.
6987         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6988         * dump-id.h: Remove.
6989         * emacs.c: Move dump-id.h into dumper.h.
6990         * dumper.h: Move dump-id.h into dumper.h.
6991         * Makefile.in.in:
6992         Use standard .c.o rule for building dump-id.o.
6993         Remove preprocessor flags from link command.
6994         Add dump-id.o to ${otherobjs} if PDUMP.
6995
6996 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6997
6998         Port FSF 20.7 syntax table improvements.
6999         * syntax.c.
7000         * syntax.h.
7001
7002         Fixups for new syntax table stuff.
7003         * dired.c: Include syntax.c.
7004         (Fdirectory_files): Initialize regex_match_object and
7005         regex_emacs_buffer.
7006         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7007         and Fget_char_property.
7008
7009         Use ported FSF 20.7 syntax table improvements.
7010         * font-lock.c.
7011         * regex.c.
7012         * search.c.
7013         
7014 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7015
7016         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7017         Unixware's enum boolean from sys/types.h.
7018
7019 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7020
7021         Fix support for building with latest Purify.
7022         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7023         (PURIFY_FLAGS): Likewise.
7024
7025 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7026
7027         * fileio.c (lisp_string_set_file_times): New.
7028         * fileio.c (Fcopy_file): Use it.
7029         Fixes bug:
7030         (copy-file filename non-ascii-filename t t)
7031         ==> No such file or directory, non-ascii-filename
7032
7033 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7034
7035         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7036         USHRT_MAX seems clearer than ~0 anyways.
7037
7038 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7039
7040         dumper improvements.  Inspired by Olivier.
7041         * dumper.c (pdump_max_align): New.
7042         * dumper.c (pdump_add_entry): Use pdump_max_align.
7043         * dumper.c (pdump_get_entry_list): Likewise.
7044         * dumper.c (pdump_scan_by_alignment): Likewise.
7045         Don't iterate through unnecessary alignments.
7046         * dumper.c (pdump_file_get): No need to align result of malloc().
7047         * dumper.c (pdump_mallocadr): Remove.  
7048         The result of malloc() is guaranteed to be maximally aligned.
7049         * dumper.c: s/elmt/elt/g;
7050         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7051         * dumper.c (pdump_alert_undump_object): Likewise.
7052         * dumper.c (pdump_align_table): 
7053         Don't support alignments > 64.
7054         Store ALIGNOF's, not shift counts, in table.
7055
7056 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7057
7058         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7059         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7060         * systime.h: Use HAVE_UTIME.
7061         * sysdep.c (struct utimbuf): Remove.
7062         * sysdep.c (set_file_times): Prefer utime() to utimes().
7063         * config.h.in (HAVE_UTIME): New.
7064         * config.h.in (HAVE_UTIME_H): Remove.
7065         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7066
7067 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7068
7069         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7070
7071 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7072
7073         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7074
7075 2001-02-08  Martin Buchholz <martin@xemacs.org>
7076
7077         * XEmacs 21.2.44 "Thalia" is released.
7078
7079 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7080
7081         Fixes crashes in kill-emacs on some systems.
7082         * process-unix.c (unix_kill_child_process):
7083         It's OK for kill() to fail with ESRCH.
7084
7085 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7086
7087         Contortions to make .gdbinit tricks work on most systems.
7088         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7089         * alloc.c (dbg_valmask): Make non-const.
7090         * alloc.c (dbg_typemask): Make non-const.
7091         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7092         * alloc.c (dbg_valbits): Make non-const.
7093         * alloc.c (dbg_gctypebits): Make non-const.
7094         * .gdbinit (decode_object): Make it work with AIX cc.
7095
7096 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7097
7098         * elhash.c (make_general_lisp_hash_table):
7099         Use simpler and more efficient calloc to clear entries.
7100
7101 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7102
7103         * window.c (window_scroll): Work around an AIX C compiler bug.
7104         Fixes 'scroll-up' does nothing problem with xlC.
7105
7106 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7107
7108         * .gdbinit: Remove obsolete comment.
7109
7110 2001-01-31  Mike Alexander  <mta@arbortext.com>
7111
7112         * select.c (Fown_selection_internal): Set owned_p for device
7113         method correctly.
7114
7115 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7116
7117         Port to g++ 2.97.
7118         "not" cannot be used as a macro name as it is an operator in C++
7119         * config.h.in: Stop #defining `not'.
7120         * chartab.c (check_category_char): not ==> not_p
7121         * chartab.h: Likewise.
7122         * regex.c (re_match_2_internal): Likewise.
7123
7124 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7125
7126         * lisp-disunion.h: Fix up comments.
7127
7128 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7129
7130         * keymap.c (define_key_check_and_coerce_keysym):
7131         (syms_of_keymap):
7132         Support mouse-6 and mouse-7 bindings in the obvious way.
7133
7134 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7135
7136         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7137
7138 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7139
7140         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7141         Previous patch missed DEFVAR_INT_MAGIC.
7142         Make sure future DEFVAR_foo use correct types.
7143         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7144         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7145         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7146         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7147         * (DEFVAR_INT): Likewise.
7148         * redisplay.c (vertical_clip): Should be of type Fixnum.
7149         * redisplay.c (horizontal_clip): Likewise.
7150         * lisp.h (dump_add_opaque_int): New.
7151         (dump_add_opaque_fixnum): New.
7152
7153 2001-01-29  Andy Piper  <andy@xemacs.org>
7154
7155         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7156         since they can be eval'ed
7157
7158 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7159
7160         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7161         Oops, XEmacs redefines `class'.  Use `typename' instead.
7162
7163 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7164
7165         * dumper.c: Fix C++ compile errors.
7166
7167 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7168
7169         * tparam.c: Use correct prototypes.
7170
7171 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7172
7173         * sysproc.h: #include util.h for NetBSD's openpty.
7174
7175 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7176
7177         More 64-bit correctness.
7178         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7179         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7180         Fix up comments.
7181         This finally finishes the 64-bit SGI port.
7182         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7183         * symbols.c: Fix up comments and type casts.
7184         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7185         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7186         * symeval.h (Fixnum): New type.
7187         * symeval.h (symbol_value_type): Fix up comment.
7188
7189         * commands.h:
7190         * nt.c:
7191         * emacs.c:
7192         * data.c:
7193         * redisplay.c:
7194         * abbrev.c:
7195         * dired-msw.c:
7196         * event-Xt.c:
7197         * eldap.c:
7198         * window.c:
7199         * sound.c:
7200         * event-stream.c:
7201         * eval.c:
7202         * buffer.c:
7203         * mule-canna.c: A million DEFVAR_INTs here...
7204         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7205         * extents.c:
7206         * cmdloop.c:
7207         * lisp.h:
7208         * select-x.c:
7209         * console-x.h:
7210         * event-msw.c:
7211         * mule-wnnfns.c:
7212         * hpplay.c:
7213         * ralloc.c:
7214         * alloc.c:
7215         * keymap.c:
7216         * profile.c:
7217         s/int/Fixnum/g in DEFVAR_INT declarations.
7218
7219 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7220
7221         Port pdump to SGI alignment-sensitive environment.
7222         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7223         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7224         properly aligned.
7225         Define and use aligned reading and writing macros.
7226         Use buffered stdio instead of posix i/o for faster dumping.
7227         Eliminate kludgy 256 byte space for header.
7228         Read and write from dump file using structs for alignment safety.
7229         * dumper.c (pdump_align_stream): New.
7230         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7231         * dumper.c (PDUMP_READ_ALIGNED): New.
7232         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7233         * dumper.c (pdump_static_Lisp_Object): New struct.
7234         * dumper.c (pdump_static_pointer): New struct.
7235         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7236         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7237         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7238         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7239
7240         * dumper.c (pdump_backtrace):
7241         * dumper.c (pdump_get_indirect_count):
7242         * dumper.c (pdump_register_object):
7243         * dumper.c (pdump_register_struct):
7244         * dumper.c (pdump_reloc_one):
7245         * dumper.c (pdump_scan_by_alignment):
7246         * dumper.c (pdump_dump_from_root_struct_ptrs):
7247         * dumper.c (pdump_dump_opaques):
7248         * dumper.c (pdump_dump_rtables):
7249         * dumper.c (pdump_dump_from_root_objects):
7250         * dumper.c (pdump):
7251         * dumper.c (pdump_load_finish):
7252         Use aligned reading and writing.
7253
7254         * dumper.c (pdump_free): Make static.
7255         * dumper.c (pdump_hFile): Likewise.
7256         * dumper.c (pdump_hMap): Likewise.
7257
7258 2001-01-26  Martin Buchholz <martin@xemacs.org>
7259
7260         * XEmacs 21.2.43 "Terspichore" is released.
7261
7262 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7263
7264         Type fiddling for window_config.saved_windows_count
7265         * window.c (struct window_config): 
7266         Make saved_windows_count member unsigned.
7267         * window.c (sizeof_window_config_for_n_windows): 
7268         Make parameter unsigned.
7269         * window.c (mark_window_config):
7270         * window.c (window_config_equal):
7271         * window.c (free_window_configuration):
7272         * window.c (Fset_window_configuration):
7273         * window.c (count_windows):
7274         * window.c (Fcurrent_window_configuration):
7275         * window.c (reinit_vars_of_window):
7276         Update all callers and users.
7277
7278 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7279
7280         Alignment correctness for flexible arrays.
7281         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7282         Make alignment-correct. Add interesting comments.
7283         * alloc.c (size_vector):
7284         * alloc.c (make_vector_internal):
7285         * alloc.c (make_bit_vector_internal):
7286         * alloc.c (sweep_bit_vectors_1):
7287         * fns.c (size_bit_vector):
7288         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7289         * window.c (sizeof_window_config_for_n_windows): 
7290         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7291
7292 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7293
7294         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7295
7296 2001-01-23  Andy Piper  <andy@xemacs.org>
7297
7298         * select.c (Fown_selection_internal): pass owned_p
7299
7300         * select-msw.c (mswindows_own_selection): New Signature.
7301
7302         * console.h (struct console_methods): add owned_p to
7303         _own_selection.
7304
7305         * select-x.c (x_own_selection): pass owned_p
7306         (hack_motif_clipboard_selection): use owned_p
7307         (vars_of_select_x): new variable -
7308         x_selection_strict_motif_ownership.
7309
7310 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7311
7312         * specifier.h (specifier_data_offset): Remove pointless parens.
7313         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7314
7315 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7316
7317         Make Lisp_Object sizeof methods be alignment-correct.
7318         pdump must restore objects to the same alignment as the C compiler
7319         assumes.  It really matters on SGIs.
7320         * lstream.c (aligned_sizeof_lstream): New.
7321         (sizeof_lstream): Use aligned_sizeof_lstream.
7322         (Lstream_new): Likewise.
7323         * opaque.c (aligned_sizeof_opaque): New.
7324         (sizeof_opaque): Use aligned_sizeof_opaque.
7325         (make_opaque): Likewise.
7326         * specifier.c (aligned_sizeof_specifier): New.
7327         (sizeof_specifier): Use aligned_sizeof_specifier.
7328         (make_specifier_internal): Likewise.
7329
7330 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7331
7332         * lstream.h (struct lstream): Use max_align_t for trailing data.
7333         * specifier.h (struct Lisp_Specifier): Likewise.
7334
7335 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7336
7337         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7338         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7339         (CCL_SUSPEND): Likewise.
7340         (CCL_INVALID_CMD): Likewise.
7341         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7342         (ccl_driver): Likewise.
7343         (CCL_WRITE_CHAR): Macro hygiene.
7344         (CCL_WRITE_STRING): Macro hygiene.
7345
7346 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7347
7348         Port "portable" dumper to SunOS 4 and HP-UX.
7349         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7350         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7351         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7352
7353 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7354
7355         * lisp.h (ALIGNOF): A better definition for C++.
7356
7357 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7358
7359         Macro hygiene.
7360         Fix printf warnings: int format, long int arg.
7361         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7362         (PUSH_FAILURE_POINT): Use correct printf formats.
7363         (POP_FAILURE_POINT): Use correct printf formats.  
7364         Use do {...} while (0)
7365
7366 2001-01-20  Martin Buchholz <martin@xemacs.org>
7367
7368         * XEmacs 21.2.42 "Poseidon" is released.
7369
7370 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7371
7372         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7373
7374 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7375
7376         De-kludgify FIXED_TYPE free list frobbing.
7377         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7378         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7379         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7380         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7381         * alloc.c (LRECORD_FREE_P): New.
7382         * alloc.c (MARK_LRECORD_AS_FREE): New.
7383         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7384         * alloc.c (STRUCT_FREE_P): Deleted.
7385         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7386         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7387         * alloc.c (STRING_CHARS_FREE_P): New.
7388         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7389         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7390         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7391         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7392         * alloc.c (resize_string): Use new definitions.
7393         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7394         * alloc.c (verify_string_chars_integrity): Use new definitions.
7395         * alloc.c (compact_string_chars): Use new definitions.
7396         * alloc.c: Update monster comments.
7397         * lrecord.h (lrecord_type): Add some new lrecord types for
7398         alloc.c's use.
7399
7400 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7401
7402         Improve alignment hackery.
7403         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7404         (max_align_t): Moved from opaque.h - general purpose.
7405         (ALIGN_PTR): Use size_t, not long.
7406         * opaque.h (max_align_t): Move to lisp.h.
7407
7408 2001-01-18  Norbert Koch  <nk@LF.net>
7409
7410         * gui.h: Fix and add prototypes to fix build problems.
7411
7412 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7413
7414         temacs is going away, so `dump-temacs' is now a bad name.
7415         * .dbxrc (dump-temacs): Rename to `dmp'.
7416         * .gdbinit (dump-temacs): Rename to `dmp'.
7417
7418 2001-01-17  Andy Piper  <andy@xemacs.org>
7419
7420         * glyphs.c (print_image_instance): comment to make martin happy.
7421
7422         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7423         change.
7424
7425         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7426         activation.
7427         (mswindows_tab_control_redisplay): warning suppression.
7428
7429         * glyphs-widget.c (widget_update): re-write to cope with updated
7430         items.
7431         (widget_instantiate): use new gui_item functions.
7432         (tab_control_update): deleted.
7433         (progress_gauge_update): deleted.
7434         (image_instantiator_progress_guage): take out update reference.
7435         (image_instantiator_tree_view): ditto.
7436         (image_instantiator_tab_control): ditto.
7437
7438         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7439         Right the new way.
7440         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7441         return whether anything was changed.
7442         (update_gui_item_keywords): as it sounds.
7443
7444         * gui.h: declare widget_gui_parse_item_keywords.
7445
7446         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7447         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7448
7449 2001-01-17  Martin Buchholz <martin@xemacs.org>
7450
7451         * XEmacs 21.2.41 "Polyhymnia" is released.
7452
7453 2001-01-16  Didier Verna  <didier@xemacs.org>
7454
7455         * glyphs.c (image_instantiate): don't use fallbacks when
7456         instantiating a face's background pixmap by inheritance.
7457
7458 2001-01-14  Mike Sperber <mike@xemacs.org>
7459
7460         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7461         Conditionalize accordingly.
7462
7463 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7464
7465         * dumper.c (pdump_file_get): Fix a compiler warning.
7466
7467 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7468
7469         Make Purify happy when pdumping.
7470         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7471         iniitalizing all bits of new lisp object memory.
7472         * symbols.c (Fmake_local_variable): Likewise.
7473         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7474         * symbols.c (Fdefvaralias): Likewise.
7475         * mule-charset.c (vars_of_mule_charset): Likewise.
7476
7477 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7478         Add the `-nd' flag when running pre-dump operations under the debugger.
7479         * .dbxrc (run-temacs): Add `-nd'.
7480         * .dbxrc (update-elc): Likewise.
7481         * .dbxrc (dump-temacs): Likewise.
7482         * .gdbinit (run-temacs): Likewise.
7483         * .gdbinit (check-temacs): Likewise.
7484         * .gdbinit (update-elc): Likewise.
7485         * .gdbinit (dump-temacs): Likewise.
7486
7487 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7488
7489         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7490         export OBJECT_MODE=64
7491         configure --pdump --use-union-type=no
7492         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7493         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7494
7495         * miscplay.c (sndcnv8U_2mono):
7496         Avoid two uses of `++' in the same expression.
7497         Suppresses a GCC warning.
7498
7499 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7500
7501         Make sure future compilers don't miscompile alloc.c.
7502         * alloc.c:
7503         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7504         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7505
7506 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7507
7508         * dumper.c: A little post-pdump-rename comment fixup.
7509
7510 2001-01-09  Jerry James  <james@eecs.ku.edu>
7511
7512         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7513
7514 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7515
7516         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7517         script:
7518         #!/bin/sh
7519         replace_symbol () {
7520           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7521         }
7522
7523         replace_symbol pdump_wire_lists pdump_weak_object_chains
7524         replace_symbol pdump_wire_list dump_add_weak_object_chain
7525
7526         replace_symbol pdump_wires pdump_root_objects
7527         replace_symbol pdump_wire dump_add_root_object
7528
7529         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7530         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7531
7532         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7533         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7534         replace_symbol dumpstructinfo pdump_root_struct_ptr
7535         replace_symbol dumpstruct dump_add_root_struct_ptr
7536
7537         replace_symbol dumpopaque dump_add_opaque
7538         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7539         replace_symbol dumpopaqueinfos pdump_opaques
7540         replace_symbol dumpopaqueinfo pdump_opaque
7541
7542         replace_symbol nb_structdump nb_root_struct_ptrs
7543         replace_symbol nb_opaquedump nb_opaques
7544
7545         replace_symbol align_table pdump_align_table
7546         replace_symbol dump_header pdump_header
7547
7548         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7549         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7550
7551
7552 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7553
7554         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7555         optimizing bytecount_to_charcount().
7556
7557 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7558
7559         * config.h.in:
7560         (HAVE_DLFCN_H): Removed.
7561         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7562
7563 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7564
7565         Portable dumper maintainability improvements.
7566         * alloc.c (staticpro):
7567         * alloc.c (staticpro_nodump):
7568         * alloc.c (garbage_collect_1):
7569         * alloc.c (reinit_alloc_once_early):
7570         * alloc.c (init_alloc_once_early):
7571         * alloc.c: Move dumper functions to alloc.c.
7572         * dumper.c (pdump_backtrace):
7573         * dumper.c (pdump_dump_structs):
7574         * dumper.c (pdump_dump_opaques):
7575         * dumper.c (pdump_dump_rtables):
7576         * dumper.c (pdump_dump_wired):
7577         * dumper.c (pdump):
7578         * dumper.c (pdump_load_check):
7579         * dumper.c (pdump_load_finish):
7580         * dumper.c (pdump_file_unmap):
7581         * dumper.c (pdump_file_get):
7582         * dumper.c (pdump_resource_free):
7583         * dumper.c (pdump_resource_get):
7584         * dumper.c (pdump_file_free):
7585         * dumper.c (pdump_file_try):
7586         * dumper.c (pdump_load):
7587         Remove fixed size limits on staticpro(), staticpro_nodump(),
7588         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7589         Remove custom code for dumping lrecord_implementations_table - use
7590         dumpopaque instead.
7591         Remove (most of the) custom code for dumping staticpros - dump it
7592         like any other dynarr.
7593
7594         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7595         * dumper.c: Moved functions from alloc.c.
7596         * alloc.c (dumpstruct): Moved to dumper.c.
7597         * alloc.c (dumpopaque): Likewise.
7598         * alloc.c (pdump_wire): Likewise.
7599         * alloc.c (pdump_wire_list): Likewise.
7600
7601         * lisp.h (Dynarr_sizeof): New.
7602         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7603         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7604         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7605
7606         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7607         * lisp.h (dumpopaque): ditto.
7608         * lisp.h (pdump_wire): ditto.
7609         * lisp.h (pdump_wire_list): ditto.
7610
7611 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7612
7613         * make-src-depend (PrintPatternDeps):
7614         Use `sort' to make output independent of perl version.
7615
7616 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7617
7618         Port to Netbsd 1.5.
7619         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7620         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7621
7622 2001-01-03  Didier Verna  <didier@xemacs.org>
7623
7624         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7625         that `focus_frame' is alive before thinking of calling
7626         `redisplay_redraw_cursor' on it.
7627
7628 2001-01-08  Martin Buchholz <martin@xemacs.org>
7629
7630         * XEmacs 21.2.40 is released.
7631
7632 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7633
7634         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7635
7636 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7637
7638         * alloc.c (dbg_valmask): Make const.
7639         * alloc.c (dbg_typemask): Make const.
7640         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7641         * alloc.c (dbg_valbits): Make const.
7642         * alloc.c (dbg_gctypebits): Make const.
7643
7644 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7645
7646         * redisplay-x.c (x_bevel_area):
7647         redisplay.h (struct rune):
7648         Typo fixes in comments.
7649
7650 2001-01-05  Andy Piper  <andy@xemacs.org>
7651
7652         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7653         adjustment.
7654
7655         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7656
7657 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7658
7659         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7660
7661         * mule-ccl.c (stack_idx_of_map_multiple):
7662         Non const global data must not be initialized!
7663         Found by MIYASHITA Hisashi.
7664
7665 2001-01-02  Andy Piper  <andy@xemacs.org>
7666
7667         * frame.c (change_frame_size): make sure frame size is always
7668         marked as changed.
7669
7670         * glyphs.c (image_instance_layout): minor code reuse.
7671
7672         * window.c (Fcurrent_window_configuration): revert previous
7673         change.
7674
7675 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7676
7677         * glyphs.h:
7678         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7679
7680 2000-12-31  Andy Piper  <andy@xemacs.org>
7681
7682         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7683         when widget gets unmapped.
7684
7685         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7686         function. Make sure widgets losing focus don't just drop it.
7687         (handle_focus_event_1): record the widget with focus.
7688
7689 2000-12-31  Andy Piper  <andy@xemacs.org>
7690
7691         * window.c (allocate_window): use
7692         make_image_instance_cache_hash_table.
7693         (make_dummy_parent): ditto.
7694         (Fset_window_configuration): ditto.
7695
7696         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7697
7698         * glyphs.c (process_image_string_instantiator): use
7699         INSTANTIATOR_TYPE.
7700         (get_image_instantiator_governing_domain): ditto.
7701         (normalize_image_instantiator): ditto.
7702         (instantiate_image_instantiator): ditto.
7703         (make_image_instance_1): ditto.
7704         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7705         (instantiator_eq_equal): new function for use with instance hash
7706         tables.
7707         (instantiator_eq_hash): ditto.
7708         (make_image_instance_cache_hash_table): create a suitable hash
7709         table for storing image instances.
7710
7711         * elhash.h (hash_table_weakness): new internal weakness type
7712         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7713         declare new functions.
7714
7715         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7716         another weakness type for glyphs.
7717         (make_standard_lisp_hash_table): new function split out from
7718         make_general_lisp_hash_table.
7719         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7720         (hash_table_instantiate): ditto.
7721         (Fmake_hash_table): ditto.
7722
7723 2000-12-31  Martin Buchholz <martin@xemacs.org>
7724
7725         * XEmacs 21.2.39 is released.
7726
7727 2000-12-29  Andy Piper  <andy@xemacs.org>
7728
7729         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7730
7731         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7732         the frame has changed so that we pick up geometry changes such as
7733         menubar visibility.
7734
7735 2000-12-28  Andy Piper  <andy@xemacs.org>
7736
7737         * lastfile.c (my_ebss): make a char array so we can pad the
7738         bss. Fixes cygwin unexec.
7739
7740         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7741
7742 2000-12-26  Andy Piper  <andy@xemacs.org>
7743
7744         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7745         comments and try and be more precise about a non-/SIGIO world.
7746         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7747         SIGIO.
7748
7749         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7750         we don't normalize to zero width or height.
7751
7752 2000-12-24  Andy Piper  <andy@xemacs.org>
7753
7754         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7755
7756 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7757
7758         * s/sco5.h: SCO 5 has pty support.
7759
7760 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7761
7762         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7763         input-method-xlib.c contains whole contents of input-method-xfs.c,
7764         so we can use input-method-xlib.c's code for USE_XFONTSET
7765         using #ifdefs.
7766         * input-method-xfs.c: removed.
7767
7768 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7769
7770         * file-coding.h (enum coding_category_type): reorder enumerators to
7771         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7772         (now one greater than largest real coding_category_type enumerator).
7773         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7774         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7775         Fcoding_category_list, Fset_coding_priority_list,
7776         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7777         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7778
7779 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7780
7781         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7782         * redisplay-output.c (redisplay_output_window): Clear top of window
7783         when face is changed.
7784         * redisplay-x.c (x_redraw_exposed_window): Call
7785         redisplay_clear_top_of_window.
7786         * redisplay.h: Publish redisplay_clear_top_of_window.
7787
7788 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7789
7790         * buffer.c (Fkill_buffer): Map over all devices.
7791         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7792         (list_windows): New function.
7793         (list_all_windows): Ditto.
7794         (Freplace_buffer_in_windows): Use them.
7795
7796 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7797
7798         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7799         (Fopen_database): Use `db_create' instead of `db_open'.
7800         (syms_of_database): Initialize Qqueue.
7801
7802 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7803
7804         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7805         buffer_local_face_property.
7806         * buffer.h (struct buffer): New member buffer_local_face_property.
7807         * window.c (Fset_window_buffer):  Mark window's face as changed
7808         when buffer has buffer local face.
7809         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7810         * objects.c (color_after_change): Set buffer_local_face_property
7811         when locale of face specifier is buffer.
7812         * objects.c (font_after_change): Ditto.
7813         * objects.c (face_boolean_after_change): Ditto.
7814         * glyphs.c (image_after_change): Ditto.
7815
7816 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7817
7818         * nt.c (mswindows_fstat): Report file permissions, volume serial
7819         number, etc. Code adapted from FSF Emacs 20.7.
7820
7821 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7822
7823         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7824         of stat when we don't have symbolic links, to make sure
7825         mswindows_stat is called on mswindows.
7826
7827 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7828
7829         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7830
7831 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7832
7833         * doprnt.c (emacs_doprnt_1): More printing fixes.
7834         Make printing of numbers compatible with libc and FSF Emacs.
7835         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7836         Use the system printf to do most of the hard work of formatting,
7837         instead of doprnt_1().
7838         Calculate memory to allocate for format string.
7839         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7840         (doprnt_1): Cleaner code and documentation.
7841
7842 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7843
7844         * Makefile.in.in: Use the loop variable to install headers.
7845
7846 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7847
7848         * window.c (Fsplit_window): Don't invalidate face cache.
7849
7850 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7851
7852         * minibuf.c (Fall_completions): Undo the previous change
7853         which removed checking elements start with space.
7854
7855 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7856
7857         * mule-canna.c: Didier suppression.
7858
7859 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7860
7861         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7862         (warning suppression).  Add English comment translations.
7863
7864 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7865
7866         * unexelfsgi.c (unexec): Better test for mmap failure.
7867
7868 2000-12-05  Martin Buchholz <martin@xemacs.org>
7869
7870         * XEmacs 21.2.38 is released.
7871
7872 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7873
7874         * redisplay.c (bar-cursor): Make a user variable.
7875
7876         * symsinit.h: Add init_postgresql_from_environment.
7877
7878 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7879
7880         * regex.c: Convert to clean C.
7881
7882 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7883
7884         * realpath.c:
7885         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7886         initialization.
7887         (sys_readlink): renamed to system_readlink to avoid conflict with
7888         the other sys_readlink.
7889
7890 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7891
7892         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7893
7894 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7895
7896         * postgresql.c (init_postgresql_from_environment): new function.
7897         (vars_of_postgresql): Move code initializing Lisp variables out and
7898         into init_postgresql_from_environment.
7899         emacs.c (main_1): Call init_postgresql_from_environment if and only
7900         if running a dumped XEmacs.
7901
7902 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7903
7904         * buffer.c: Make find-file-compare-truenames default to true on
7905         windows.
7906
7907         * realpath.c (win32_abs_start):
7908         (cygwin_readlink):
7909         (win32_readlink): New functions.
7910         (xrealpath): Return really real filenames on windows.
7911
7912         * fileio.c (Ffile_truename): Make file-truename work on windows.
7913
7914 2000-11-29  Didier Verna  <didier@xemacs.org>
7915
7916         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7917         * faces.c (update_face_cachel_data): use it.
7918         * faces.c (add_face_cachel): use it. Complete background pixmap
7919         frobbing in face cache if `update_face_cachel_data' has not done so.
7920
7921 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7922
7923         * search.c (string_match_1): Don't set last_thing_searched
7924         when search failed.
7925
7926 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7927
7928         * buffer.c: Include casetab.h
7929         (common_init_complex_vars_of_buffer): Use new case-table object.
7930         * buffer.h: Include casetab.h
7931         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7932         (DOWNCASE_TABLE_OF): Ditto.
7933         * bufslots.h: Remove char-tables and add case-table.
7934         * casetab.c: Include casetab.h
7935         (CASE_TABLE_P): Removed.
7936         (mark_case_table): New function.
7937         (allocate_case_table): New function.
7938         (Fcase_table_p): Use new case-table.
7939         (case_table_char): New function.
7940         (Fget_case_table): Ditto.
7941         (Fput_case_table): Ditto.
7942         (Fput_case_table_pair): Ditto.
7943         (Fcopy_case_table): Ditto.
7944         (Fcurrent_case_table): Return case-table.
7945         (Fstandard_case_table): Return case-table.
7946         (Fset_case_table): Fix doc-string.
7947         (set_case_table): Use case-table
7948         (syms_of_casetab): DEFSUBR new functions.
7949         (complex_vars_of_casetab): Set up standard case-table.
7950         * casetab.h: New file.
7951         * editfns.c: Include casetab.h
7952         (Fcompare_buffer_substrings): Use case-table.
7953         * inline.c: Include casetab.h
7954         * lisp.h: Remove bogus extern.
7955         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7956         * search.c: Include casetab.h
7957         (TRANSLATE_ASCII): Removed.
7958         (TRANSLATE): Unconditionally translate character.
7959         (looking_at_1): Use case-table.
7960         (string_match_1): Ditto.
7961         (fast_string_match): Ditto.
7962         (search_command): Ditto.
7963         (search_buffer): Separate boyer_moore.  Check whether
7964         boyer_moore is possible.
7965         (simple_search): New function.
7966         (boyer_moore): Separated from search_buffer. Translate char.
7967
7968 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7969
7970         * regex.c (RE_TR_ASCII): Removed.
7971         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7972         (PATFETCH): Call PATFETCH_RAW.
7973         (PATFETCH_RAW): Fetch Emchar.
7974         (PATUNFETCH): Decrement charptr.
7975         (GET_BUFFER_SPACE): Rename b to buf_end.
7976         (BUF_PUSH): Ditto.
7977         (BUF_PUSH_2): Ditto.
7978         (BUF_PUSH_3): Ditto.
7979         (EXTEND_BUFFER): Ditto.
7980         (SET_LIST_BIT): Ditto.
7981         (regex_compile): Ditto.  Translate non ASCII char.
7982         (compile_range): Ditto.
7983         (re_search_2): Ditto.
7984         (re_match_2_internal): Compare Emchar.
7985         (bcmp_translate): Ditto.
7986
7987 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7988
7989         * lisp.h (basic char/int typedefs):  comment improvement.
7990
7991 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7992
7993         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7994         unstomp inhibit_site_lisp.  Improve comments.
7995
7996 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7997
7998         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7999
8000 2000-11-28  Andy Piper  <andy@xemacs.org>
8001
8002         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8003         clipped display for windows in the gutter also.
8004         (redisplay_display_boxes_in_window_p): change semantics of return
8005         codes to be more intuitive.
8006
8007         * gutter.h: declare display_boxes_in_gutter_p.
8008
8009         * gutter.c (display_boxes_in_gutter_p): new function for
8010         redisplay.
8011
8012 2000-11-22  Andy Piper  <andy@xemacs.org>
8013
8014         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8015         autodetect domain.
8016
8017 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8018
8019         * callproc.c (Fold_call_process_internal):
8020         * gpm.c (Freceive_gpm_event):
8021         (tty_get_foreign_selection): Might be just warning supression.
8022         * fileio.c (Fwrite_region_internal):
8023         (Fset_visited_file_modtime):
8024         * keymap.c (event_matches_key_specifier_p):
8025         Initialize GCPROed variable.
8026
8027         * menubar-x.c (command_builder_find_menu_accelerator):
8028         Initialize before use.
8029
8030 2000-11-23  Andy Piper  <andy@xemacs.org>
8031
8032         * unexcw.c (unexec): make the resulting executable executable.
8033
8034 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8035
8036         * doc.c (get_doc_string):
8037         Use size_t, not int, for result of XSTRING_LENGTH.
8038
8039         * cmds.c (Fdelete_char):
8040         * cmds.c (Fpoint_at_eol):
8041         * cmds.c (Fself_insert_command):
8042         Use EMACS_INT, not int, for result of XINT.
8043         Someday, someone will want to insert more than 2**31 identical characters.
8044
8045         * cmds.c (Fdelete_char):
8046         * cmds.c (Fdelete_backward_char):
8047         * syntax.c (Fforward_word):
8048         * syntax.c (Fforward_comment):
8049         Make COUNT argument optional, for consistency with forward-char et al.
8050
8051 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8052
8053         * lisp.h:
8054         * print.c (long_to_string):
8055         Return a useful value: the pointer at end of data written.
8056
8057         * doprnt.c:
8058         Use `static const char * const' for constant strings.
8059         (union printf_arg): Delete `i', `ui' members.
8060         (get_doprnt_args):
8061         (emacs_doprnt_1):
8062         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8063         Do all printf-ing via the `l' specifier.
8064         Use EMACS_INT instead of int.
8065         Optimize.
8066
8067 2000-11-20  Didier Verna  <didier@xemacs.org>
8068
8069         * faces.c (update_face_cachel_data): don't frob the background
8070         pixmap when the window is being created. The face is needed but
8071         does not exist yet.
8072
8073 2000-11-20  Andy Piper  <andy@xemacs.org>
8074
8075         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8076         messing with a debug environment.
8077
8078 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8079
8080         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8081
8082 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8083
8084         * casetab.c (Fcase_table_p): Fix compile error and crash.
8085
8086 2000-11-18  Philip Aston  <philipa@mail.com>
8087
8088         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8089
8090 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8091
8092         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8093         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8094
8095 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8096
8097         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8098         * unexelf.c: Use HAVE_ELF_H.
8099         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8100         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8101         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8102         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8103         for testing.
8104         So this is an unexelfsgi.c from a different line of development.
8105
8106 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8107
8108         * regex.c (RE_TR_ASCII): New function.
8109         (RE_TRANSLATE): Call it.
8110
8111 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8112
8113         * buffer.h (TRT_TABLE_OF): Remove assert.
8114         (IN_TRT_TABLE_DOMAIN): Removed.
8115
8116 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8117
8118         * free-hook.c (log_gcpro):
8119         (show_gcprohist): Add support for GCPRO5.
8120
8121 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8122
8123         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8124
8125 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8126
8127         * symeval.h: Declare flush_all_buffer_local_cache.
8128
8129         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8130         (flush_buffer_local_cache): Added.
8131         (flush_all_buffer_local_cache): Added.
8132
8133         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8134
8135         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8136         (pdump_dump_data): Ditto.
8137         (pdump_reloc_one): Ditto.
8138         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8139         before dumping.
8140
8141
8142 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8143
8144         * buffer.c: Remove if 0'ed entry.
8145         * buffer.h: Rewrite TRT to use char-table.
8146         * bufslots.h: Remove mirror tables.
8147         * casetab.c: Remove mirror tables.
8148         (CASE_TABLE_P): New macro.
8149         (Fcase_table_p): Element of a case table is string or char-table.
8150         (make_mirror_trt_table): Removed.
8151         (set_case_table): Setup char-table from strings for backward
8152         compatibility.
8153         * dired.c (Fdirectory_files):
8154         * dired-msw.c: (mswindows_get_files):
8155         * lisp.h: Change prototype of re_pattern_buffer.
8156         * regex.c: (RE_TRANSLATE): New macro.
8157         (TRANSLATE_P): Ditto.
8158         Change translate to type RE_TRANSLATE_TYPE.
8159         * regex.h: Define RE_TRANSLATE_TYPE
8160         * search.c (TRANSLATE): New macro.
8161         (TRANSLATE_ASCII): New macro.
8162         Translate table is changed to Lisp_Object.
8163         (signal_failure): Inhibit return.
8164
8165 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8166
8167         * device-msw.c:
8168         * eldap.c:
8169         * event-Xt.c:
8170         * event-stream.c:
8171         * print.c:
8172         Do UNGCPRO before return.
8173
8174 2000-11-14  Martin Buchholz <martin@xemacs.org>
8175
8176         * XEmacs 21.2.37 is released.
8177
8178 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8179
8180         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8181         Add comments about discarded return value.
8182
8183 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8184
8185         * callint.c:
8186         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8187
8188 2000-10-27  Andy Piper  <andy@xemacs.org>
8189
8190         * gutter.c (Fset_default_gutter_position): default left and right
8191         gutters to visible.
8192         (calculate_gutter_size): calculate resonable heuristic for left
8193         and right gutter sizes.
8194         (specifier_vars_of_gutter): change left and right gutter sizes to
8195         autodetect.
8196         (calculate_gutter_size_from_display_lines): new function.
8197         (output_gutter): check for resizing on left and right gutters.
8198         (clear_gutter): don't special case top and left gutters.
8199         (specifier_vars_of_gutter): use new signature for
8200         set_specifier_caching.
8201
8202         * glyphs-x.c (x_redisplay_widget): spelling fix.
8203         * glyphs.c (specifier_vars_of_glyphs):
8204         * menubar.c (specifier_vars_of_menubar):
8205         * redisplay.c (specifier_vars_of_redisplay):
8206         * toolbar.c (specifier_vars_of_toolbar):
8207         * window.c (specifier_vars_of_window):
8208         * scrollbar.c (specifier_vars_of_scrollbar):
8209         (complex_vars_of_scrollbar): use new signature for
8210         set_specifier_caching.
8211
8212         * specifier.c (set_specifier_caching): include recompute flag.
8213         (recompute_one_cached_specifier_in_window): always recompute if
8214         flag set.
8215         (recompute_one_cached_specifier_in_frame): ditto.
8216
8217         * specifier.h (struct specifier_caching): add recompute flag.
8218
8219 2000-10-24  Andy Piper  <andy@xemacs.org>
8220
8221         * unexcw.c (copy_executable_and_dump_data_section): add new
8222         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8223         5.0 happy.
8224
8225 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8226
8227         * console-x.h (x_device): New member modifier_release_time.
8228         * event-Xt.c (x_handle_sticky_modifiers):
8229         Bound interval modifier keys are sticky.
8230         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8231         * events.h: extern it.
8232
8233 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8234
8235         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8236
8237 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8238
8239         * event-stream.c (execute_command_event): Preserve current_events
8240         and the like when event is misc-user-event.
8241         Inhibit quit during the call to maybe_echo_keys.
8242
8243 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8244
8245         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8246         symlink when buffer is killed.
8247         (inhibit_clash_detection): New variable.
8248
8249 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8250
8251         * console.c (Fset_input_method): Trigger redisplay on tty.
8252
8253 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8254
8255         * process.c (Fprocess_status): Revert to previous behavior:
8256         (process-status "nosuchprocess") ==> nil
8257
8258 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8259
8260         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8261         Work around another GCC 2.95.2 optimizer bug.
8262
8263 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8264
8265         * process.c (Fget_process): Use LIST_LOOP_2.
8266         (kill_buffer_processes): Use LIST_LOOP_2.
8267
8268         * minibuf.c (Fall_completions):
8269         Delete old non-functional code for FSF fourth argument.
8270
8271         * frame.c (frame_matches_frame_spec):
8272         Renamed from `frame_matches_frametype'.  Update all callers.
8273         (device_matches_device_spec):
8274         Renamed from 'device_matches_console_spec'.  Update all callers.
8275
8276         * doc.c (Fsubstitute_command_keys):
8277         Remove buffer overflow crash.  Small code cleanups.
8278
8279         * casetab.c (check_case_table): Simpler code.
8280
8281         * window.c (Freplace_buffer_in_windows):
8282         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8283         (and similar implementation) as Fdelete_windows_on.
8284         Update all callers.
8285
8286         * alloc.c (Fmake_list):
8287         * alloc.c (make_vector):
8288         * alloc.c (Fmake_vector):
8289         * alloc.c (make_bit_vector):
8290         * alloc.c (Fmake_bit_vector):
8291         * alloc.c (Fbit_vector):
8292         * alloc.c (Fmake_string):
8293         * alloc.c (Fpurecopy):
8294         * alloc.c (Fmemory_limit):
8295         * buffer.c:
8296         * buffer.c (Fget_buffer):
8297         * buffer.c (Fkill_buffer):
8298         * buffer.c (complex_vars_of_buffer):
8299         * bytecode.c (Fcompiled_function_stack_depth):
8300         * callint.c (Fprefix_numeric_value):
8301         * event-stream.c:
8302         * event-stream.c (Fread_key_sequence):
8303         * casetab.c:
8304         * casetab.c (Fcase_table_p):
8305         * casetab.c (check_case_table):
8306         * casetab.c (Fset_case_table):
8307         * casetab.c (Fset_standard_case_table):
8308         * chartab.c:
8309         * chartab.c (Fchar_table_type):
8310         * chartab.c (Freset_char_table):
8311         * chartab.c (Fget_char_table):
8312         * chartab.c (Fget_range_char_table):
8313         * chartab.c (Fput_char_table):
8314         * chartab.c (Fmap_char_table):
8315         * chartab.c (Fcategory_table_p):
8316         * chartab.c (Fcheck_category_at):
8317         * chartab.c (Fchar_in_category_p):
8318         * chartab.c (Fcategory_table):
8319         * chartab.c (Fcopy_category_table):
8320         * chartab.c (Fset_category_table):
8321         * chartab.c (Fcategory_designator_p):
8322         * chartab.c (Fcategory_table_value_p):
8323         * cmds.c (Fdelete_char):
8324         * cmds.c (Fdelete_backward_char):
8325         * cmds.c (Fself_insert_command):
8326         * cmds.c (Fself_insert_internal):
8327         * console.c (Fvalid_console_type_p):
8328         * console.c (Fcdfw_console):
8329         * console.c (Fconsole_type):
8330         * console.c (Fconsole_name):
8331         * console.c (Fconsole_device_list):
8332         * console.c (Fconsole_on_window_system_p):
8333         * data.c:
8334         * data.c (Feq):
8335         * data.c (Fold_eq):
8336         * data.c (Fsubr_interactive):
8337         * data.c (Fchar_to_int):
8338         * data.c (Fint_to_char):
8339         * data.c (Fsetcar):
8340         * data.c (Fsetcdr):
8341         * data.c (Fnumber_to_string):
8342         * data.c (Fstring_to_number):
8343         * data.c (Frem):
8344         * database.c (mark_database):
8345         * database.c (finalize_database):
8346         * database.c (Fdatabase_live_p):
8347         * database.c (Fdatabasep):
8348         * device-x.c (Fx_get_resource):
8349         * device.c (Fdfw_device):
8350         * dired.c:
8351         * dired.c (Ffile_name_completion):
8352         * dired.c (Ffile_name_all_completions):
8353         * dired.c (Fuser_name_completion):
8354         * dired.c (Fuser_name_completion_1):
8355         * dired.c (Fuser_name_all_completions):
8356         * doc.c (Fdocumentation):
8357         * doc.c (Fdocumentation_property):
8358         * doc.c (Fsubstitute_command_keys):
8359         * editfns.c:
8360         * editfns.c (Fchar_to_string):
8361         * editfns.c (Fstring_to_char):
8362         * editfns.c (Ftemp_directory):
8363         * editfns.c (Finsert_char):
8364         * editfns.c (Fbuffer_substring_no_properties):
8365         * editfns.c (Fnarrow_to_region):
8366         * editfns.c (Fchar_equal):
8367         * editfns.c (Fchar_Equal):
8368         * editfns.c (Ftranspose_regions):
8369         * emacs.c (Fdump_emacs):
8370         * eval.c (Fthrow):
8371         * eval.c (Fcommand_execute):
8372         * eval.c (Fautoload):
8373         * eval.c (Fbacktrace):
8374         * eval.c (Fbacktrace_frame):
8375         * events.c:
8376         * events.c (Fcopy_event):
8377         * events.c (Fcharacter_to_event):
8378         * events.c (Fevent_button):
8379         * events.c (Fevent_process):
8380         * extents.c:
8381         * extents.c (Fnext_extent_change):
8382         * extents.c (Fextent_property):
8383         * faces.c (Ffacep):
8384         * faces.c (Fmake_face):
8385         * file-coding.c:
8386         * file-coding.c (Fencode_shift_jis_char):
8387         * file-coding.c (Fencode_big5_char):
8388         * fileio.c (Ffile_name_directory):
8389         * fileio.c (Ffile_name_nondirectory):
8390         * fileio.c (Ffile_name_as_directory):
8391         * fileio.c (Fdirectory_file_name):
8392         * fileio.c (Ffile_truename):
8393         * fileio.c (Fsubstitute_in_file_name):
8394         * fileio.c (Ffile_modes):
8395         * fileio.c (Fset_file_modes):
8396         * fileio.c (Fset_default_file_modes):
8397         * fileio.c (Fverify_visited_file_modtime):
8398         * floatfns.c (Facos):
8399         * floatfns.c (Fasin):
8400         * floatfns.c (Fatan):
8401         * floatfns.c (Fcos):
8402         * floatfns.c (Fsin):
8403         * floatfns.c (Ftan):
8404         * floatfns.c (Fbessel_j0):
8405         * floatfns.c (Fbessel_j1):
8406         * floatfns.c (Fbessel_jn):
8407         * floatfns.c (Fbessel_y0):
8408         * floatfns.c (Fbessel_y1):
8409         * floatfns.c (Fbessel_yn):
8410         * floatfns.c (Ferf):
8411         * floatfns.c (Ferfc):
8412         * floatfns.c (Flog_gamma):
8413         * floatfns.c (Fexp):
8414         * floatfns.c (Fexpt):
8415         * floatfns.c (Flog):
8416         * floatfns.c (Flog10):
8417         * floatfns.c (Fsqrt):
8418         * floatfns.c (Fcube_root):
8419         * floatfns.c (Facosh):
8420         * floatfns.c (Fasinh):
8421         * floatfns.c (Fatanh):
8422         * floatfns.c (Fcosh):
8423         * floatfns.c (Fsinh):
8424         * floatfns.c (Ftanh):
8425         * floatfns.c (Fabs):
8426         * floatfns.c (Ffloat):
8427         * floatfns.c (Flogb):
8428         * floatfns.c (Fceiling):
8429         * floatfns.c (Ffloor):
8430         * floatfns.c (Fround):
8431         * floatfns.c (Ftruncate):
8432         * floatfns.c (Ffceiling):
8433         * floatfns.c (Fffloor):
8434         * floatfns.c (Ffround):
8435         * floatfns.c (Fftruncate):
8436         * fns.c (Fstring_equal):
8437         * fns.c (Fstring_lessp):
8438         * fns.c (concat2):
8439         * fns.c (concat3):
8440         * fns.c (vconcat2):
8441         * fns.c (vconcat3):
8442         * fns.c (Fsubstring):
8443         * fns.c (Fassoc):
8444         * fns.c (Fold_assoc):
8445         * fns.c (assoc_no_quit):
8446         * fns.c (Fassq):
8447         * fns.c (Fold_assq):
8448         * fns.c (assq_no_quit):
8449         * fns.c (Frassoc):
8450         * fns.c (Fold_rassoc):
8451         * fns.c (Frassq):
8452         * fns.c (Fold_rassq):
8453         * fns.c (rassq_no_quit):
8454         * fns.c (Fremassoc):
8455         * fns.c (remassoc_no_quit):
8456         * fns.c (Fremassq):
8457         * fns.c (remassq_no_quit):
8458         * fns.c (Fremrassoc):
8459         * fns.c (Fremrassq):
8460         * fns.c (remrassq_no_quit):
8461         * fns.c (Fsort):
8462         * fns.c (Fplist_get):
8463         * fns.c (Fplist_put):
8464         * fns.c (Fplist_remprop):
8465         * fns.c (Fplist_member):
8466         * fns.c (Flax_plist_get):
8467         * fns.c (Flax_plist_put):
8468         * fns.c (Flax_plist_remprop):
8469         * fns.c (Flax_plist_member):
8470         * fns.c (Fequal):
8471         * fns.c (Fold_equal):
8472         * fns.c (Frequire):
8473         * fns.c (Fbase64_encode_region):
8474         * fns.c (Fbase64_encode_string):
8475         * fns.c (Fbase64_decode_region):
8476         * frame.c:
8477         * frame.c (frame_matches_frame_spec):
8478         * frame.c (device_matches_device_spec):
8479         * frame.c (next_frame):
8480         * frame.c (previous_frame):
8481         * frame.c (Fnext_frame):
8482         * frame.c (Fprevious_frame):
8483         * frame.c (Fframe_property):
8484         * frame.c (Fset_frame_height):
8485         * frame.c (Fset_frame_size):
8486         * frame.h:
8487         * glyphs.c:
8488         * glyphs.c (if):
8489         * glyphs.c (decode_error_behavior_flag):
8490         * glyphs.c (Fmake_image_instance):
8491         * indent.c (Findent_to):
8492         * intl.c (Fignore_defer_gettext):
8493         * keymap.c (Fkeymapp):
8494         * keymap.c (Flookup_key):
8495         * lread.c:
8496         * lread.c (Fload_internal):
8497         * lread.c (Feval_buffer):
8498         * lread.c (Feval_region):
8499         * macros.c (Fexecute_kbd_macro):
8500         * marker.c (set_marker_internal):
8501         * marker.c (Fset_marker):
8502         * marker.c (set_marker_restricted):
8503         * marker.c (Fcopy_marker):
8504         * marker.c (noseeum_copy_marker):
8505         * menubar.c:
8506         * menubar.c (Fpopup_menu):
8507         * minibuf.c:
8508         * mule-charset.c (Fcharset_name):
8509         * mule-charset.c (Fchar_charset):
8510         * mule-charset.c (Fchar_octet):
8511         * mule-charset.c (Fsplit_char):
8512         * mule-wnnfns.c (Fwnn_open):
8513         * mule-wnnfns.c (Fwnn_dict_comment):
8514         * mule-wnnfns.c (Fwnn_quit_henkan):
8515         * mule-wnnfns.c (Fwnn_word_toroku):
8516         * mule-wnnfns.c (Fwnn_word_sakujo):
8517         * mule-wnnfns.c (Fwnn_word_use):
8518         * mule-wnnfns.c (Fwnn_hindo_set):
8519         * objects.c:
8520         * objects.c (Fmake_color_instance):
8521         * objects.c (Fmake_font_instance):
8522         * print.c (Fwrite_char):
8523         * process.c:
8524         * process.c (mark_process):
8525         * process.c (print_process):
8526         * process.c (get_process_from_usid):
8527         * process.c (Fprocessp):
8528         * process.c (Fprocess_live_p):
8529         * process.c (Fget_process):
8530         * process.c (Fget_buffer_process):
8531         * process.c (get_process):
8532         * process.c (Fprocess_id):
8533         * process.c (Fprocess_name):
8534         * process.c (Fprocess_command):
8535         * process.c (init_process_io_handles):
8536         * process.c (start_process_unwind):
8537         * process.c (Fstart_process_internal):
8538         * process.c (Fopen_multicast_group_internal):
8539         * process.c (Fset_process_window_size):
8540         * process.c (read_process_output):
8541         * process.c (send_process):
8542         * process.c (Fprocess_tty_name):
8543         * process.c (Fset_process_buffer):
8544         * process.c (Fprocess_buffer):
8545         * process.c (Fprocess_mark):
8546         * process.c (set_process_filter):
8547         * process.c (Fset_process_filter):
8548         * process.c (Fprocess_filter):
8549         * process.c (Fprocess_send_region):
8550         * process.c (Fprocess_send_string):
8551         * process.c (exec_sentinel):
8552         * process.c (Fset_process_sentinel):
8553         * process.c (Fprocess_sentinel):
8554         * process.c (status_notify):
8555         * process.c (Fprocess_status):
8556         * process.c (Fprocess_exit_status):
8557         * process.c (process_send_signal):
8558         * process.c (Fprocess_send_eof):
8559         * process.c (deactivate_process):
8560         * process.c (remove_process):
8561         * process.c (Fdelete_process):
8562         * process.c (kill_buffer_processes):
8563         * process.c (Fprocess_kill_without_query):
8564         * process.c (Fprocess_kill_without_query_p):
8565         * rangetab.c:
8566         * rangetab.c (Fget_range_table):
8567         * rangetab.c (Fput_range_table):
8568         * rangetab.c (Fremove_range_table):
8569         * rangetab.c (Fclear_range_table):
8570         * search.c:
8571         * search.c (Fskip_chars_forward):
8572         * search.c (Fskip_chars_backward):
8573         * search.c (Fskip_syntax_forward):
8574         * search.c (Fskip_syntax_backward):
8575         * search.c (search_command):
8576         * search.c (Freplace_match):
8577         * search.c (Fregexp_quote):
8578         * select.c (Fown_selection_internal):
8579         * select.c (Fselection_owner_p):
8580         * select.c (Fselection_exists_p):
8581         * select.c (Fget_selection_internal):
8582         * specifier.c:
8583         * symbols.c:
8584         * symbols.c (Fintern):
8585         * symbols.c (Fintern_soft):
8586         * symbols.c (Funintern):
8587         * symbols.c (Fapropos_internal):
8588         * symbols.c (Fset_default):
8589         * syntax.c:
8590         * syntax.c (Fsyntax_table_p):
8591         * syntax.c (Fcopy_syntax_table):
8592         * syntax.c (Fset_syntax_table):
8593         * syntax.c (Fchar_syntax):
8594         * syntax.c (syntax_match):
8595         * syntax.c (Fmatching_paren):
8596         * syntax.c (Fforward_word):
8597         * syntax.c (scan_lists):
8598         * syntax.c (Fscan_lists):
8599         * syntax.c (Fscan_sexps):
8600         * syntax.c (Fparse_partial_sexp):
8601         * toolbar.c (Fcheck_toolbar_button_syntax):
8602         * tooltalk.doc:
8603         * window.c:
8604         * window.c (Fwindowp):
8605         * window.c (Fwindow_live_p):
8606         * window.c (Fwindow_point):
8607         * window.c (Fdelete_window):
8608         * window.c (Fnext_window):
8609         * window.c (Fprevious_window):
8610         * window.c (Fother_window):
8611         * window.c (window_loop):
8612         * window.c (Fget_lru_window):
8613         * window.c (Fsplit_window):
8614         * window.c (Fenlarge_window):
8615         * window.c (Fenlarge_window_pixels):
8616         * window.c (Fshrink_window):
8617         * window.c (Fshrink_window_pixels):
8618         * window.c (change_window_height):
8619         * window.c (Fwindow_configuration_p):
8620         * window.c (Fcurrent_window_configuration):
8621         * window.h:
8622         * casefiddle.c (casify_object):
8623         * casefiddle.c (Fupcase):
8624         * casefiddle.c (Fdowncase):
8625         * casefiddle.c (Fcapitalize):
8626         * casefiddle.c (Fupcase_initials):
8627         * casefiddle.c (casify_region_internal):
8628         * casefiddle.c (casify_region):
8629         * casefiddle.c (Fupcase_region):
8630         * casefiddle.c (Fdowncase_region):
8631         * casefiddle.c (Fcapitalize_region):
8632         * casefiddle.c (Fupcase_initials_region):
8633         * casefiddle.c (Fupcase_word):
8634         * casefiddle.c (Fdowncase_word):
8635         * casefiddle.c (Fcapitalize_word):
8636         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8637         Replace 0 with '\0' when working with bytes.
8638         Replace initial "(" with "\(" in docstrings.
8639
8640 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8641
8642         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8643
8644         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8645
8646 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8647
8648         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8649
8650 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8651
8652         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8653         correctly.
8654
8655 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8656
8657         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8658         (inhibit_auto_save_session): New variable.
8659         (vars_of_fileio): Declare and initialize them.
8660         * fileio.c (Fdo_auto_save): Don't create session file if
8661         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8662
8663 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8664
8665         * sgiplay.c (play_internal): C++ compilability.
8666         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8667         * callproc.c (Fold_call_process_internal):
8668         Remove unused vars `env', `first'.
8669         * scrollbar.c (update_scrollbar_instance):
8670         #### unused var `current_window'.
8671         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8672         etc. within #ifdef NOT_YET.
8673         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8674         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8675         * specifier.c (specifier_instance):
8676         #### unused var `tag'.
8677         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8678
8679 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8680
8681         * fns.c (Fbutlast):
8682         * fns.c (list_sort):
8683         * fns.c (Ffillarray):
8684         * fns.c (bytecode_nconc2):
8685         * fns.c (Fnconc):
8686         * fns.c (mapcar1):
8687         * fns.c (Fmapconcat):
8688         Be pedantically 64-bit correct.  For the time when someone will
8689         want to have a list with length > 2**32.
8690
8691         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8692         Work around MIPSpro compiler bug.
8693
8694         * process-unix.c (unix_kill_child_process): Add snarky comment.
8695         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8696
8697         * config.h.in: Oops, _getpt ==> _getpty
8698
8699 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8700
8701         * config.h.in:
8702         * regex.c:
8703         Use void*, not char*, as return type of alloca().
8704
8705         * alloc.c (free_marker): Side effect inside assert expression!
8706
8707 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8708
8709         * mule-charset.c (Fset_charset_ccl_program): To check
8710         if the given ccl program is valid, use setup_ccl_program()
8711         instead of CHECK_VECTOR().
8712         (Fmake_charset): Likewise.
8713
8714 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8715
8716         * faces.c (get_extent_fragment_face_cache_index):
8717         Fix cachel.merged_faces memory leak.
8718
8719 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8720
8721         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8722         Reset MSB of octets obtained by DECODE_SJIS
8723         because of the incompatibility with Emacs.
8724         (ccl_driver)<CCL_ENCODE_SJIS>:
8725         Set MSB of octets before passing them to
8726         ENCODE_SJIS because of the incompatibility
8727         with Emacs.
8728
8729 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8730
8731         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8732         (DECLARE_LRECORD): Undo the last change.
8733         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8734
8735 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8736
8737         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8738         the implementation to lrecord_implementations_table.
8739
8740 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8741
8742         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8743         initial value of `lrecord_type_##c_name' and
8744         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8745         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8746         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8747         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8748         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8749
8750 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8751
8752         * miscplay.c (sndcnv8S_2mono):
8753         (sndcnv2monounsigned):
8754         (sndcnvULaw_2linear):
8755         (sndcnv16swap):
8756         Remove implementation-defined behavior.
8757
8758 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8759
8760         * input-method-xlib.c: Warning suppression.
8761
8762 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8763
8764         * mule-ccl.c: Sync up with Emacs 21.0.90.
8765         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8766         Do nothing.
8767         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8768         Likewise.
8769         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8770         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8771         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8772         leading char belongs to official 2-dimensional charset.
8773         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8774         write the given character as is.  Otherwise,
8775         if it is a multibyte char, convert it by
8776         non_ascii_set_charptr_emchar, then write it.
8777         (CCL_WRITE_STRING): Likewise.
8778         (ccl_get_compiled_code): New function.
8779         (setup_ccl_program): When ccl_prog is invalid,
8780         return -1.
8781         (Fregister_code_conversion_map): New function.
8782         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8783
8784         * mule-ccl.h: Sync up with Emacs 21.0.90.
8785         (Fregister_ccl_program): export it.
8786
8787         * redisplay-msw.c (separate_textual_runs):
8788         If ccl program is not valid, don't do ccl conversion.
8789
8790         * redisplay-x.c (separate_textual_runs): Ditto.
8791
8792         * file-coding.c (Fmake_coding_system):
8793         When type is ccl and value is vector, register it
8794         with a proper symbol.  And checks whether the
8795         given ccl program is valid.
8796         (mule_decode): When calling ccl_driver, if src indicates
8797         NULL pointer, set an empty string instead.
8798         (mule_encode): Likewise.
8799
8800 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8801
8802         The following large batch of changes gets us back to a state of
8803         C++ compilability.  Extbyte is now a char, which means that
8804         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8805
8806         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8807
8808         * sound.c (Fplay_sound): Type correctness.
8809
8810         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8811         (x_get_window_property): Type correctness.
8812         (receive_incremental_selection): unsigned char ==> Extbyte
8813         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8814         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8815         (Fx_store_cutbuffer_internal): Type correctness.
8816
8817         * process-unix.c (try_to_initialize_subtty): Type correctness.
8818
8819         * objects-x.c (x_print_color_instance): Type correctness.
8820         (x_print_font_instance): Type correctness.
8821         (x_list_fonts): SExtbyte ==> Extbyte.
8822         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8823         (x_find_charset_font): SExtbyte ==> Extbyte.
8824         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8825         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8826         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8827         Use bufbyte_strcmp.
8828
8829         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8830         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8831         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8832         (BYTE_C0_P): Use bit ops for char-signedness safety.
8833         (BYTE_C1_P): Use bit ops for char-signedness safety.
8834         (CHARSET_BY_LEADING_BYTE):
8835         (CHARSET_BY_ATTRIBUTES):
8836         Always use inline function.
8837         Use type_checking_assert.
8838         Hide chlook.
8839
8840         * mule-charset.c (non_ascii_charptr_copy_char):
8841         Modify to work with both ASCII and non-ASCII characters.
8842         Improve docs and variable names.
8843         Replace over-clever fall-through switch with a simple loop.
8844         (Lstream_get_emchar_1):
8845         Replace over-clever fall-through switch with a simple loop.
8846
8847         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8848         Warning suppression.
8849
8850         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8851         the return value of Lstream_getc, which could be EOF as well.
8852
8853         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8854
8855         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8856         APIs can be used on Extbytes without casts.  Risky!
8857         (SExtbyte): Remove.
8858         (UExtbyte): Remove.
8859
8860         * input-method-xlib.c (XIM_init_device):
8861         Use Xlib.h instead of IntrinsicP.h.
8862         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8863         which will break in X11R7.
8864         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8865         to call XRegisterIMInstantiateCallback with correct types.
8866
8867         * gui-x.c (button_item_to_widget_value): Type correctness.
8868
8869         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8870
8871         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8872         (xbm_instantiate_1): Type correctness.
8873         (BUILD_GLYPH_INST):  Type correctness.
8874
8875         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8876
8877         * file-coding.c:
8878         (decode_coding_sjis):
8879         (decode_coding_big5):
8880         (decode_coding_ucs4):
8881         (decode_coding_utf8):
8882         (decode_coding_iso2022):
8883         (decode_coding_no_conversion):
8884         Make all decoding functions take an Extbyte * arg.
8885         (encode_coding_sjis):
8886         (encode_coding_big5):
8887         (encode_coding_ucs4):
8888         (encode_coding_utf8):
8889         (encode_coding_iso2022):
8890         (encode_coding_no_conversion):
8891         Make all encoding functions take a Bufbyte * arg.
8892         Use size_t instead of unsigned int for memory sizes.
8893         Only cast to unsigned char whenever dereferencing Extbyte *.
8894
8895         * doc.c (unparesseuxify_doc_string): Type correctness.
8896
8897         * console-x.c (split_up_display_spec):
8898         Rewrite without using details of internal string representation.
8899         (x_semi_canonicalize_device_connection): Type correctness.
8900
8901         * config.h.in:
8902         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8903         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8904         (HAVE_XFREE386): Removed.
8905
8906         * buffer.h (DEC_CHARPTR): `const' correctness.
8907         (bufbyte_strcmp): New.
8908         (bufbyte_memcmp): New.
8909
8910         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8911
8912         * buffer.h (XCHAR_OR_CHAR_INT):
8913         Always use inline function.
8914         Remove redundant type checking assert() - XINT will abort quite nicely.
8915
8916 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8917
8918         * search.c (Freplace_match): Set newtext to an empty string.
8919
8920 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8921
8922         * s/decosf1-3.h: Remove #include of stropts.h
8923         * s/ptx.h: Remove #include of stropts.h
8924         * s/usg5-4.h: Remove #include of stropts.h
8925         * sysproc.h:
8926         * config.h.in:
8927         Use stropts.h, not sys/stropts.h.
8928         Use strtio.h, not sys/strtio.h.
8929
8930 2000-10-04  Martin Buchholz <martin@xemacs.org>
8931
8932         * XEmacs 21.2.36 is released.
8933
8934 2000-09-21  Andy Piper  <andy@xemacs.org>
8935
8936         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8937         changes still involve copying the widget tree.
8938         (update_widget_face): make sure a change is register in the widget
8939         tree. Call update_tab_widget_face appropriately.
8940         (update_tab_widget_face): ditto.
8941         (x_tab_control_redisplay): make sure non-structural changes still
8942         involve copying the widget tree.
8943
8944 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8945
8946         * lread.c (locate_file): Check the path element is non-nil.
8947
8948 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8949
8950         * lisp.h: Warning suppression for SCO compilers.
8951
8952         * redisplay-tty.c (reset_tty_modes): Fix crash.
8953         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8954
8955 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8956
8957         Big signal/process handling overhaul.  Bugs fixed:
8958         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8959         M-x comint-kill-subjob should work for both values nil and t of
8960         process-connection-type. It was broken on most platforms.
8961         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8962         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8963         * process-unix.c: Signal/Process handling overhaul.
8964         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8965         (allocate_pty): Use all available modern methods of allocating
8966         ptys, falling back to old style BSD allocation as a last resort.
8967         Use allegedly more secure Unix98 pty allocation by default.
8968         (allocate_pty_the_old_fashioned_way): New. the last resort.
8969         (unix_create_process): Push ptem, ldterm, ttcompat where
8970         available.  Autoconfiscate.
8971         (try_to_initialize_subtty): New.
8972         (unix_kill_child_process): Proper signal handling for ptys on most
8973         platforms, using special knowledge of AIX, BSD, etc...
8974         (unix_create_process): Always disconnect_controlling_terminal() for
8975         subprocesses, whether using ptys or not.
8976         * process.h: Remove old getpt-dependent PTY code.
8977         * process.c (Fprocess_send_signal): New, obvious generic function.
8978         (decode_signal): New.
8979         (Finterrupt_process):
8980         (Fkill_process):
8981         (Fquit_process):
8982         (Fstop_process):
8983         (Fcontinue_process):
8984         (Fsignal_process): Use decode_signal.
8985         (process_send_signal):
8986         Many docstring corrections.
8987         Allow any signal to be sent to a process object.
8988         * config.h.in: Add symbols for big signal/process overhaul.
8989         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8990         * sysproc.h: Include process-related headers, where available:
8991         sys/stropts.h sys/strtio.h pty.h libutil.h
8992         * s/irix4-0.h:
8993         * s/irix5-0.h:
8994         * s/cygwin32.h:
8995         * s/gnu.h:
8996         * s/linux.h:
8997         * s/hpux.h:
8998         * s/aix3-1.h:
8999         Remove old S&M pty stuff.
9000         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9001         * systty.h: Simplify cpp hackery, improve comments.
9002         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9003
9004         * editfns.c (Fformat_time_string):
9005         Be a little more paranoid with the return value of ctime.
9006
9007         * fileio.c (check_executable):
9008         (check_writable):
9009         Use symbolic constants X_OK, W_OK.
9010
9011         * console-x.c (split_up_display_spec): Fix a warning.
9012
9013 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9014
9015         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9016         * ntproc.c (sys_spawnve): make_string ==> build_string
9017         Small clarity improvements.
9018
9019 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9020
9021         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9022
9023         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9024
9025         * config.h.in (HAVE_STRCASECMP): Remove.
9026
9027 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9028
9029         * redisplay-output.c (redisplay_output_pixmap):
9030         Cleaner and possibly more 64-bit correct code.
9031
9032 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9033
9034         * dumper.c (pdump_load_finish): move restoration of
9035         `noninteractive1' to emacs.c (main_1).
9036         * emacs.c (main_1): protect LISP-visible command-line flags
9037         from pdump_load().
9038
9039 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9040
9041         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9042         DUMP_TARGET instead of literal program names.
9043
9044 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9045
9046         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9047
9048 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9049
9050         * *: Spelling mega-patch
9051
9052 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9053
9054         * fns.c (bad_bad_turtle):
9055         Delete "Eek!" comment, since we fixed the bug to which it refers.
9056
9057 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9058
9059         * alloca.c: Replace REGISTER with register.
9060
9061 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9062
9063         * file-coding.c (ucs_to_char): Use countof.
9064
9065 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9066
9067         * file-coding.c: (ucs_to_char):
9068         (complex_vars_of_file_coding):
9069         Use countof instead of sizeof.
9070         Use CHECK_NATNUM instead of CHECK_INT.
9071
9072         * sysdep.c (strcasecmp): Remove.
9073         * device-x.c (ascii_strcasecmp): New.
9074         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9075         Avoid using non-standard non-portable strcasecmp.
9076
9077 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9078
9079         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9080         * font-lock.c: remove reference to emacsfns.h.
9081         * search.c: small doc improvement.
9082         * event-Xt.c: correct file names in comments.
9083         * console-x.h Correct file names in comments.
9084         * frame.c: Correct file names in comments.
9085         * event-stream.c: remove Energize from comments.
9086
9087 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9088
9089         * symeval.h (DEFERROR_STANDARD):
9090         (DEFERROR):
9091         (DEFSYMBOL):
9092         (DEFSYMBOL_NO_DUMP):
9093         (DEFSYMBOL_MULTIWORD_PREDICATE):
9094         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9095         (DEFKEYWORD):
9096         The construct &##name is not sensible C.
9097         Fixes compilation errors with Unixware native compiler.
9098
9099 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9100
9101         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9102         (next_frame_internal): Removed.  We now just have next_frame.
9103         (next_frame):
9104         Write a simpler and cleaner one-pass algorithm.
9105         Remove called_from_delete_device arg and #ifdefed-out code.
9106         (previous_frame):
9107         Renamed from prev_frame.  Update callers.
9108         Cleaned up to have an analogous implementation to next_frame.
9109         (other_visible_frames_internal): Remove the
9110         called_from_delete_device bogus arg, and hence, remove this
9111         function.  Just use other_visible_frames().
9112
9113         * window.c (Fnext_window):
9114         Prettify docstring.
9115         Since next_frame() is guaranteed to return a frame, remove check
9116         for nil inserted in previous patch.
9117         (Fprevious_window):
9118         Prettify docstring.
9119         Make code look more like Fnext_window.
9120         (window_loop):
9121         Respect the `console' arg when iterating through windows.
9122         Fixes bug: (get-buffer-window buffer t device) not respecting
9123         the `device' arg.
9124         This function needs more work, as others have pointed out.
9125
9126         * frame.h: Rename prev_frame to previous_frame.
9127         device_matches_console_spec no longer takes a `frame' arg.
9128
9129         * s/gnu.h:
9130         * s/linux.h:
9131         * s/hpux.h:
9132         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9133         From "Golubev I. N." <gin@mo.msk.ru>.
9134
9135         * make-src-depend: Fix typo.
9136
9137 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9138
9139         * window.c (Fnext_window):
9140         next_frame() might return nil, not a frame.
9141         Fixes this crash:
9142         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9143
9144         * frame.c (next_frame_internal):
9145         We've passed a frame if we've passed its device.
9146         Fixes this crash:
9147         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9148 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9149
9150 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9151
9152         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9153         Allow option to suppress accelerators in menu/dialog items.
9154         (populate_or_checksum_helper): Pass dialog title through above.
9155
9156 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9157
9158         * event-msw.c (mswindows_key_to_emacs_keysym):
9159         Add "pause" key, fix "menu" key.
9160
9161 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9162
9163         * eval.c (reinit_vars_of_eval):
9164         Increase max_lisp_eval_depth to 1000,
9165         required for thai-xtis.el to byte-compile under some circumstances.
9166
9167 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9168
9169         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9170         From Kenichi Handa.
9171
9172 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9173
9174         * make-src-depend: Make the generated Makefiles smaller.
9175
9176         * s/hpux.h (SETUP_SLAVE_PTY):
9177         Provide a %d in the format string for the errno argument.
9178
9179         * editfns.c (Ftemp_directory):
9180         Warning fix.
9181         Avoid buffer overrun on very long file name.
9182
9183         * input-method-xlib.c (XIM_init_device):
9184         6th parameter of XRegisterIMInstantiateCallback has different
9185         pointer types on different OSes, so simply cast to (void *).
9186
9187         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9188
9189         * sysdll.c (dll_open):
9190         shl_load will hang hard if passed a NULL filename.
9191         Simply return NULL for compatibility with dlopen.
9192         * sysdll.c: Conform to XEmacs coding standards.
9193
9194         * sysdep.c (get_pty_max_bytes):
9195         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9196
9197 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9198
9199         * tooltalk.c: Add #include <syssignal.h>
9200
9201 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9202
9203         * s/hpux.h: Don't use undefined function sigunblock().
9204
9205 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9206
9207         * config.h.in: Add HAVE_BALLOON_HELP.
9208         * emacs.c: Use HAVE_BALLOON_HELP.
9209         * Makefile.in.in (x_objs):
9210         Make Balloon Help conditional on finding shape.h.
9211
9212 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9213
9214         * syntax.c (regex_emacs_buffer_p): New variable.
9215         * syntax.h (regex_emacs_buffer_p): extern.
9216         * search.c (looking_at_1):
9217         (string_match_1):
9218         (fast_string_match):
9219         (search_buffer): Set regex_emacs_buffer_p.
9220         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9221         when before_dot, at_dot, after_dot.
9222
9223 2000-08-23  Andy Piper  <andy@xemacs.org>
9224
9225         * gui-x.c (popup_selection_callback): Only set action_occurred
9226         when we really have an image instance.
9227         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9228
9229 2000-08-23  Andy Piper  <andy@xemacs.org>
9230
9231         * gui-msw.c (mswindows_handle_gui_wm_command): set
9232         action_occurred.
9233         * gui-x.c (popup_selection_callback): ditto.
9234
9235         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9236         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9237         (struct Lisp_Image_Instance): add action_occurred flag.
9238
9239         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9240         (image_instance_changed): ditto.
9241         (reset_frame_subwindow_instance_cache): only unmap windows - do
9242         not remove them from the cache also.
9243
9244         * glyphs-widget.c (tab_control_update): better debug.
9245         (progress_gauge_update): ditto.
9246         (layout_update): ditto.
9247         (layout_instantiate): ditto.
9248         (tab_control_order_only_changed): cope with null pending items.
9249
9250         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9251         debug. Force selection of an item when an action occurred. Cope
9252         with null pending_items.
9253         (mswindows_progress_gauge_redisplay): better debug.
9254         * glyphs-x.c (x_tab_control_redisplay): ditto.
9255
9256         * redisplay.c (redisplay_frame): reset the frame cache if the
9257         frame is garbaged.
9258
9259         * window.c (Fset_window_configuration): potentially re-enable
9260         frame cache reset.
9261         (window_unmap_subwindows): need to finalize instances here since
9262         it is only used in mark_window_as_deleted.
9263
9264 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9265
9266         * nas.c (SndOpenDataForReading):
9267         nas.c (WaveOpenDataForReading):
9268         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9269         Somehow escaped from the 2000-08-14 patch.
9270
9271 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9272
9273         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9274         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9275
9276 2000-08-21  Andy Piper  <andy@xemacs.org>
9277
9278         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9279         window if it is not already displayed.
9280
9281         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9282         it is not already displayed.
9283
9284         * window.c (Fset_window_configuration): don't reset the frame
9285         cache.
9286
9287         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9288         instances from the frame cache if we are actually finalizing them.
9289         (reset_frame_subwindow_instance_cache): reset frame cache only
9290         after unmapping everything.
9291         (map_subwindow): set displayed flag after mapping.
9292
9293 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9294
9295         * data.c (indirect_function):
9296         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9297
9298         * eval.c (function_argcount):
9299         Use original function when signaling errors.
9300
9301 2000-08-18  Andy Piper  <andy@xemacs.org>
9302
9303         * frame.c (delete_frame_internal): use new
9304         free_frame_subwindow_instances name.
9305
9306         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9307         (add_tab_item): make return type correct.
9308         (mswindows_tab_control_instantiate): assert index of tab.
9309         (mswindows_tab_control_redisplay): Re-code to use
9310         gui_item_equal_sans_selected and gui_item_list_find_selected.
9311
9312         * glyphs-widget.c (tab_control_update): Correct comment.
9313
9314         * window.c (window_unmap_subwindows): use new
9315         unmap_subwindow_instance_cache_mapper.
9316         (window_unmap_subwindows_cache_mapper): deleted.
9317         (Fset_window_configuration): comparisons should now be with
9318         EQ. Preserve the subwindow instance cache across configuration
9319         changes.
9320         (allocate_window): ditto.
9321         (make_dummy_parent): ditto.
9322
9323         * glyphs.c (free_frame_subwindow_instances): rename from
9324         free_frame_subwindow_instance_cache. finalize all instances rather
9325         than just those in the display cache.
9326         (finalize_all_subwindow_instances): walk windows unmapping and
9327         finalizing subwindows.
9328         (unmap_subwindow_instance_cache_mapper): moved from
9329         window.c. Allow finalization as well as unmapping.
9330
9331         * gui.c (gui_item_list_find_selected): new function.
9332
9333         * gui.h (gui_item_list_find_selected): declare.
9334
9335         * glyphs-x.c (x_tab_control_redisplay): pick tab
9336         explicitly. Re-code to use gui_item_equal_sans_selected and
9337         gui_item_list_find_selected.
9338
9339         * glyphs-x.h: add lwlib-utils.h
9340
9341         * buffer.c (Frecord_buffer): undo previous change.
9342
9343 2000-08-09  Vin Shelton  <acs@xemacs.org>
9344
9345         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9346         possible.  Create temporary files more securely.  The patch was
9347         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9348         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9349         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9350         for details.
9351
9352 2000-08-07  Ben Wing  <ben@xemacs.org>
9353
9354         * getloadavg.c: remove duplicate (and windows-breaking)
9355         includes of fcntl.h and sys/file.h.
9356
9357         * nt.c: remove duplicate getloadavg() definition.
9358
9359         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9360         encodings.
9361
9362 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9363
9364         * eval.c (function_argcount): If function needs to be autoloaded
9365         actually use the loaded definition.
9366         GCPRO function.
9367
9368 2000-08-05  Ben Wing  <ben@xemacs.org>
9369
9370         * getloadavg.c: add prototype for getloadavg().  remove
9371         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9372         of the code).  remove duplicate header includes.
9373
9374         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9375
9376         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9377         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9378         useful load average.
9379
9380         * alloc.c (reinit_alloc_once_early): removed references to
9381         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9382         the lisp vars are the only things referencing the malloc_sbrk_*
9383         vars, and they were already if 0'd out.  these vars only exist
9384         in the older malloc.c, which is basically unused, and they're
9385         only for informational purposes.
9386
9387         * m\*.h: removed useless VIRT_ADDR_VARIES.
9388
9389         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9390
9391 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9392
9393         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9394         color if the image is a mono pixmap.
9395
9396 2000-07-30  Ben Wing  <ben@xemacs.org>
9397
9398         * Makefile.in.in (release):
9399         Remove stray @.
9400
9401         * buffer.c (directory_is_current_directory):
9402         * dired-msw.c (mswindows_get_files):
9403         * dired.c:
9404         * dired.c (Fdirectory_files):
9405         * dired.c (file_name_completion_stat):
9406         * dired.c (Ffile_attributes):
9407         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9408         preprocessor tricks, to avoid problems on some machines
9409         (e.g. SCO).
9410
9411         * callproc.c (egetenv): GC docs.
9412
9413         * console-msw.h:
9414         * console-msw.h (struct mswindows_dialog_id):
9415         * lrecord.h (lrecord_type):
9416         New object for use with MSW dialogs.
9417
9418         * console.h (struct console_methods):
9419         New enable/disable frame methods, for proper modal dialogs.
9420
9421         * device-msw.c (msprinter_default_printer): Fix to follow
9422         proper Mule conventions.
9423
9424         * device-msw.c:
9425         * device-msw.c (signal_open_printer_error):
9426         * device-msw.c (msprinter_init_device):
9427         * device-msw.c (ensure_not_printing):
9428         * device-msw.c (plist_get_margin):
9429         * device-msw.c (Fmsprinter_select_settings):
9430         * device-msw.c (finalize_devmode):
9431         * device-msw.c (Fmsprinter_settings_despecialize):
9432         * device-msw.c (signal_enum_priner_error):
9433         * extents.c (decode_extent):
9434         * extents.c (decode_map_extents_flags):
9435         * extents.c (decode_extent_at_flag):
9436         * extents.c (Fextent_at):
9437         * extents.c (Fextents_at):
9438         * extents.c (symbol_to_glyph_layout):
9439         [[[[2]]]] Use structured errors.
9440
9441         * dialog-msw.c:
9442         * dialog-msw.c (mswindows_is_dialog_msg):
9443         * dialog-msw.c (mark_mswindows_dialog_id):
9444         * dialog-msw.c (dialog_proc):
9445         * dialog-msw.c (handle_question_dialog_box):
9446         * dialog-msw.c (syms_of_dialog_mswindows):
9447         Define new object to clean up marking; use it as a dialog identifier.
9448         Call new delete-dialog-box-hook.
9449
9450         * dialog-x.c (dbox_selection_callback):
9451         * dialog-x.c (dbox_descriptor_to_widget_value):
9452         * dialog-x.c (x_make_dialog_box_internal):
9453         Call new delete-dialog-box-hook.
9454         Return an id.
9455
9456         * dialog.c:
9457         * dialog.c (syms_of_dialog):
9458         * dialog.c (vars_of_dialog):
9459         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9460
9461         * eval.c:
9462         * eval.c (signal_call_debugger):
9463         when noninteractive, output stack traces on the console instead
9464         of in a (never-seen) buffer.
9465
9466         * eval.c (signal_type_error):
9467         * eval.c (invalid_argument_2):
9468         * lisp.h:
9469         new funs for use w/structured errors.
9470
9471         * event-Xt.c:
9472         * event-Xt.c (x_to_emacs_keysym):
9473         * event-Xt.c (describe_event):
9474         * event-Xt.c (emacs_Xt_event_handler):
9475         * event-Xt.c (vars_of_event_Xt):
9476         * event-msw.c:
9477         * event-msw.c (mswindows_wnd_proc):
9478         * event-msw.c (vars_of_event_mswindows):
9479         rename {x,mswindows}-debug-events to debug-{}-events for
9480         consistency with other debug-foo variables.
9481
9482         * event-stream.c:
9483         document next-event more clearly.
9484
9485         * fileio.c (Ffile_name_directory):
9486         * fileio.c (Ffile_name_nondirectory):
9487         * fileio.c (Funhandled_file_name_directory):
9488         * fileio.c (file_name_as_directory):
9489         * fileio.c (Ffile_name_as_directory):
9490         * fileio.c (directory_file_name):
9491         * fileio.c (Fdirectory_file_name):
9492         * fileio.c (Fmake_temp_name):
9493         * fileio.c (Ffile_truename):
9494         * fileio.c (Fsubstitute_in_file_name):
9495         * fileio.c (expand_and_dir_to_file):
9496         * fileio.c (barf_or_query_if_file_exists):
9497         * fileio.c (check_executable):
9498         * fileio.c (Ffile_exists_p):
9499         * fileio.c (Ffile_writable_p):
9500         * fileio.c (Ffile_directory_p):
9501         * fileio.c (Ffile_regular_p):
9502         * fileio.c (Ffile_modes):
9503         * fileio.c (Ffile_newer_than_file_p):
9504         * fileio.c (Fverify_visited_file_modtime):
9505         * fileio.c (Fset_visited_file_modtime):
9506         * fileio.c (auto_save_1):
9507         (1). (2).
9508         fix up gcpro's.
9509
9510         * frame-msw.c:
9511         * frame-msw.c (mswindows_init_frame_1):
9512         * frame-msw.c (mswindows_enable_frame):
9513         * frame-msw.c (error_frame_unsizable):
9514         * frame-msw.c (msprinter_init_frame_1):
9515         * frame-msw.c (msprinter_init_frame_3):
9516         * frame-msw.c (console_type_create_frame_mswindows):
9517         (2).
9518         implement new enable/disable frame methods.
9519
9520         * frame-x.c:
9521         * frame-x.c (x_enable_frame):
9522         * frame-x.c (console_type_create_frame_x):
9523         implement new enable/disable frame methods.
9524
9525         * frame.c:
9526         * frame.c (Fdisable_frame):
9527         * frame.c (syms_of_frame):
9528         * frame.h (struct frame):
9529         implement new enable/disable frame methods/functions.
9530
9531         * general-slots.h:
9532         add initial-focus.
9533
9534         * glyphs-msw.c (mswindows_widget_instantiate):
9535         comment that initial-focus should be implemented.
9536
9537         * glyphs-widget.c:
9538         * glyphs-widget.c (check_valid_instantiator):
9539         * glyphs-widget.c (check_valid_orientation):
9540         * glyphs-widget.c (check_valid_tab_orientation):
9541         * glyphs-widget.c (check_valid_justification):
9542         * glyphs-widget.c (check_valid_border):
9543         * glyphs-widget.c (check_valid_callback):
9544         * glyphs-widget.c (check_valid_int_or_function):
9545         * glyphs-widget.c (check_valid_string_or_vector):
9546         * glyphs-widget.c (check_valid_item_list_1):
9547         * glyphs-widget.c (widget_validate):
9548         * glyphs-widget.c (combo_box_validate):
9549         * glyphs-widget.c (widget_instantiate):
9550         * glyphs-widget.c (syms_of_glyphs_widget):
9551         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9552         * glyphs-widget.c (image_instantiator_combo_box):
9553         * glyphs-widget.c (image_instantiator_scrollbar):
9554         * glyphs-widget.c (image_instantiator_tab_control):
9555         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9556         (2).
9557         support (unimplemented) keyword initial-focus.
9558         reindent long macros.
9559
9560         * glyphs-x.c (x_redisplay_widget):
9561         * glyphs-x.c (x_button_instantiate):
9562         * glyphs-x.c (x_button_redisplay):
9563         * glyphs-x.c (x_progress_gauge_instantiate):
9564         * glyphs-x.c (x_edit_field_instantiate):
9565         * glyphs-x.c (x_combo_box_instantiate):
9566         * glyphs-x.c (x_tab_control_instantiate):
9567         * glyphs-x.c (x_label_instantiate):
9568         * gui-x.c:
9569         * gui-x.c (button_item_to_widget_value):
9570         * gui-x.c (gui_items_to_widget_values_1):
9571         * gui-x.c (gui_item_children_to_widget_values):
9572         * gui-x.c (gui_items_to_widget_values):
9573         * gui-x.h:
9574         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9575         add new flag to gui-parsing routines to indicate whether
9576         accelerator specs should be supported.
9577
9578         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9579
9580         * glyphs.h (struct Lisp_Image_Instance):
9581         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9582         add initial-focus flag.
9583
9584         * gui.c:
9585         * gui.c (syms_of_gui):
9586         * gui.c (vars_of_gui):
9587         clean up menu-no-selection-hook.
9588
9589         * gui.h:
9590         support delete-dialog-box-hook.
9591
9592         * lread.c (Fload_internal):
9593         * lread.c (locate_file_in_directory_mapper):
9594         (1).
9595
9596         * lrecord.h:
9597         * lrecord.h (struct toolbar_button):
9598         * lrecord.h (syms_of_toolbar):
9599         document how to create a new object.
9600
9601         * menubar-msw.c (mswindows_char_is_accelerator):
9602         may be called on frames w/o menus.
9603
9604         * menubar.c (vars_of_menubar):
9605         clean up :filter docs.
9606
9607         * nt.c (readdir):
9608         * ntproc.c:
9609         (1).
9610
9611         * process-nt.c:
9612         * process-nt.c (validate_signal_number):
9613         * process-nt.c (signal_cannot_launch):
9614         * process-nt.c (nt_create_process):
9615         * process-nt.c (nt_send_process):
9616         * process-nt.c (nt_kill_child_process):
9617         * process-nt.c (nt_open_network_stream):
9618         * process-nt.c (syms_of_process_nt):
9619         (2).
9620         delete quote-handling.  call new lisp code that does it better.
9621
9622         * process-unix.c (connect_to_file_descriptor):
9623         * process-unix.c (allocate_pty):
9624         * process-unix.c (unix_send_process):
9625         * process-unix.c (unix_kill_child_process):
9626         * process-unix.c (unix_open_network_stream):
9627         * process-unix.c (unix_open_multicast_group):
9628         (1). (2).
9629
9630         * process.c:
9631         * process.c (Fstart_process_internal):
9632         (2).  need to canonicalize process path even if absolute.
9633
9634         * select-msw.c (symbol_to_ms_cf):
9635         * select-msw.c (ms_cf_to_symbol):
9636         * select-msw.c (cf_is_autofreed):
9637         * select-msw.c (mswindows_destroy_selection):
9638         * select.c:
9639         * select.c (syms_of_select):
9640         * select.h:
9641         support dibv5, fix bugs. (from Mike Alexander)
9642
9643         * select.c (Fget_selection_internal):
9644         * select.c (select_convert_out):
9645
9646         * sysdep.c:
9647         * sysdep.c (xemacs_stat):
9648         renamed.
9649
9650         * sysdep.c (mkdir):
9651         * sysdep.c (rmdir):
9652         but keep original stat() here because we provide encapsulation
9653         around these funs.
9654
9655         * sysfile.h:
9656         * sysfile.h (fstat):
9657         remove stat garbage.
9658
9659         * syswindows.h:
9660         fix X/MSW conflict.
9661         don't include tchar.h.  it's inappropriate because it makes
9662         compile-time distinctions when we want runtime distinctions.
9663         (we provide our own tchar replacements)
9664
9665         * toolbar.c:
9666         use default object printer for toolbar-button.
9667
9668         * unexcw.c:
9669         make sure we don't encapsulate.
9670
9671         * window.c (vars_of_window):
9672         emphasize that temp-buffer-show-hook is obsolete.
9673
9674 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9675
9676         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9677         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9678
9679         * events.c (Fevent_timestamp_lessp):
9680         Not 64-bit clean.  Use EMACS_INT, not int.
9681
9682 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9683
9684         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9685         unsigned int and changed the last enum to
9686         lrecord_type_last_built_in_type.
9687         (lrecord_implementations_table): changed prototype to know how
9688         long the array is supposed to be.
9689         (lrecord_type_count): new unsigned int to keep track of the
9690         current number of lisp lrecord types.
9691         (DEFINE_EXTERNAL_LRECORD):
9692         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9693         dynamic-modules to declare new lisp types. They are the same
9694         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9695         int for each new type, and increment lrecord_type_count by 1.
9696
9697         * alloc.c (lrecord_implementations_table): Changed to reference
9698         lrecord_type_last_built_in_type for the size of the array.
9699         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9700
9701 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9702
9703         * glyphs.h (check_valid_item_list): Renamed from
9704         check_valid_item_list_1.
9705
9706 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9707
9708         * select.c (Qselect_coerce): New.
9709         * select.c (Vselection_coercion_alist): New.
9710         * select.c (syms_of_select): Declare.
9711         * select.c (get-selection-internal): Use it.
9712         Use the new select-coerce functionality.
9713
9714         * select.c (select_coerce): New.
9715         * select.h (select_coerce): Declare.
9716         New function to coerce one type of data into another.
9717
9718 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9719
9720         * callproc.c (Fcall_process_internal):
9721         (Fcall_process_internal):
9722         * process-unix.c (unix_create_process):
9723         Save and restore the value of errno, so that error messages are accurate.
9724
9725 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9726
9727         * elhash.c (print_hash_table):
9728         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9729         Prettify docstrings and indentation.
9730
9731 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9732
9733         * window.c (Fwindow_pixel_edges): Subtract frame border and
9734         gutter size.
9735
9736 2000-07-31  Andy Piper  <andy@xemacs.org>
9737
9738         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9739         will acknowledge the change.
9740
9741         * glyphs.h: declare tab_control_order_only_changed.
9742
9743         * glyphs-x.c (x_tab_control_redisplay): use
9744         tab_control_order_only_changed.
9745
9746         * glyphs-widget.c (tab_control_order_only_changed): new function.
9747
9748         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9749         tab_control_order_only_changed.
9750
9751         * gui.c (gui_item_equal_sans_selected): new function.
9752         (gui_item_equal): use it.
9753
9754         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9755         :properties in favor of :items..
9756
9757         * glyphs-widget.c (check_valid_item_list): rename from
9758         check_valid_item_list_1.
9759         (check_valid_item_list_1): renamed.
9760         (combo_box_validate): deprecate :properties in favor of :items.
9761         (widget_instantiate): ditto.
9762         (tab_control_update): ditto.
9763         (image_instantiator_combo_box): ditto.
9764         (image_instantiator_tree_view): ditto.
9765         (image_instantiator_tab_control): ditto.
9766         (layout_post_instantiate): remove dead code.
9767
9768         * print.c (debug_print_no_newline): only write to debugger if in
9769         WIN32_NATIVE.
9770
9771         * elhash.c (Fmake_hash_table): update doc string.
9772
9773         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9774         messages whilst in GC. This at least stops XEmacs crashing but has
9775         the potential for wierd behaviour.
9776
9777 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9778
9779         * config.h.in:
9780         Make existence of s&m files optional.
9781
9782         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9783         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9784         * s/gnu.h: Remove HAVE_GETLOADAVG.
9785         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9786         * s/sol2.h: Remove HAVE_GETLOADAVG.
9787         * lisp.h: Remove getloadavg() declaration.
9788         * fns.c:
9789         Include <sys/loadavg.h> if available.
9790         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9791         * config.h.in:  Group together getloadavg()-related macros.
9792         Use only configure-time tests to detect getloadavg().
9793
9794 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9795
9796         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9797
9798 2000-07-25  Andy Piper  <andy@xemacs.org>
9799
9800         * syswindows.h: add tchar.h for native builds.
9801
9802         * frame.c (syms_of_frame): remove set-glyph-image.
9803
9804         * general-slots.h: add Qset_glyph_image.
9805
9806         * glyphs-widget.c (layout_update): add domain arg to
9807         set-glyph-image.
9808         (syms_of_glyphs_widget): remove set-glyph-image.
9809
9810 2000-07-23  Ben Wing  <ben@xemacs.org>
9811
9812         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9813         Vpopup_frame_list.
9814
9815 2000-07-22  Andy Piper  <andy@xemacs.org>
9816
9817         * symsinit.h: add syms_of_win32().
9818
9819         * gui-msw.c (syms_of_gui_mswindows): remove
9820         Fmswindows_shell_execute.
9821         (Fmswindows_shell_execute): moved to win32.c.
9822
9823         * emacs.c (main_1): add syms_of_win32 ().
9824
9825         * win32.c (init_potentially_nonexistent_functions): rewrite in
9826         compiler-friendly terms.
9827         (Fmswindows_shell_execute): move here from gui-msw.c.
9828         (syms_of_win32): new.
9829
9830         * device-msw.c (Fmswindows_printer_list): clean up args to
9831         EnumPrinters.
9832         Don't include tchar under cygwin or mingw.
9833         (msprinter_default_printer): make cygwin-friendly.
9834
9835 2000-07-21  Andy Piper  <andy@xemacs.org>
9836
9837         * glyphs-widget.c (image_instantiator_tree_view): use tab
9838         control's update function.
9839         (layout_property): new function. Retrieve items.
9840
9841         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9842         function. Re-populate the tree view from the pending items.
9843
9844         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9845         is designated the parent if the domain is an image instance. This
9846         is needed so that dirtiness can be cascade up the hierarchy and
9847         thus for layout children to be redisplayed correctly.
9848         (allocate_image_instance): rename glyph -> parent.
9849
9850         * redisplay.h: change redisplay_output_layout signature.
9851
9852         * redisplay-msw.c (mswindows_output_display_block): use domain
9853         arg.
9854
9855         * redisplay-x.c (x_output_display_block): use domain arg.
9856
9857 2000-07-10  Andy Piper  <andy@xemacs.org>
9858
9859         * window.c (Fset_window_configuration): add comment.
9860
9861         * redisplay-output.c (compare_runes):
9862         (redisplay_output_subwindow): redisplay rather than update subwindow.
9863         (redisplay_output_layout): ditto.
9864
9865         * redisplay-msw.c (mswindows_frame_output_end):
9866         (mswindows_frame_output_end): make defer window pos optional.
9867
9868         * lisp.h: add Flast.
9869
9870         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9871         normalize method. Change update method to be for changed
9872         instantiators. Add redisplay method. Change signature of layout
9873         method.
9874         (struct Lisp_Image_Instance): add instantiator.
9875         (IMAGE_INSTANCE_INSTANTIATOR): new.
9876         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9877         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9878         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9879
9880         * glyphs.c:
9881         (find_instantiator_differences): new function.
9882         (Fset_instantiator_property): new convenience function.
9883         (check_image_instance_structure): strictly check for vector
9884         instantiators.
9885         (normalize_image_instantiator): make non-static.
9886         (instantiate_image_instantiator): pass on dest_mask and use new
9887         signatures for image_instance_layout and friends.
9888         (mark_image_instance): mark the instantiator. Mark the subwindow
9889         face not the widget face.
9890         (image_instance_equal): add instantiator.
9891         (image_instance_hash): ditto.
9892         (allocate_image_instance): ditto.
9893         (Fset_image_instance_property): removed.
9894         (Fimage_instance_file_name): ditto.
9895         (Fcolorize_image_instance): ditto.
9896         (image_instance_layout): add offsets to be set.
9897         (update_image_instance): new function. update an image instance
9898         from its changed instantiator.
9899         (inherit_normalize): add dest_mask.
9900         (xbm_normalize): ditto.
9901         (xface_normalize): ditto.
9902         (xpm_normalize): ditto.
9903         (text_update): set_property -> update.
9904         (image_instantiate): use the glyph identity as a hash key, not the
9905         instantiator.
9906         (glyph_width): use new image_instance_layout signature.
9907         (glyph_ascent): ditto.
9908         (glyph_descent): ditto.
9909         (glyph_height): ditto.
9910         (glyph_query_geometry): ressurrect.
9911         (glyph_layout): ditto.
9912         (redisplay_subwindow): update -> redisplay.
9913         (syms_of_glyphs): add Fset_instantiator_property.
9914         (image_instantiator_format_create): set_property -> update.
9915
9916         * glyphs-x.c:
9917         (autodetect_normalize): add dest_maks to signature.
9918         (x_redisplay_subwindow): update -> redisplay.
9919         (x_redisplay_widget): ditto.
9920         (x_button_redisplay): ditto.
9921         (x_progress_gauge_redisplay): ditto.
9922         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9923         stacking order.
9924         (console_type_create_glyphs_x): update -> redisplay.
9925         (image_instantiator_format_create_glyphs_x): ditto.
9926
9927         * glyphs-widget.c:
9928         (check_valid_instantiator): disallow glyphs in the instantiator,
9929         they must now be vectors.
9930         (check_valid_instantiator_list): ditto.
9931         (glyph_instantiator_to_glyph): use internal symbol rather than
9932         intern.
9933         (widget_update): renamed from widget_set_property. Call cascaded
9934         update methods.
9935         (redisplay_widget): renamed from update_widget.
9936         (widget_layout): image_instance_layout now takes position as well
9937         as size.
9938         (widget_normalize): ditto.
9939         (widget_instantiate): ditto.
9940         (tab_control_query_geometry) ditto.:
9941         (tab_control_update): renamed from tab_control_set_property.
9942         (progress_gauge_update): set_property -> update.
9943         (layout_normalize): rewrite so that child instantiators are
9944         normalized also.
9945         (layout_update): new function. Create glyphs from the normalized
9946         children and cope with any other layout keywords. We do not
9947         instantiate children here that will be take care of by
9948         redisplay_output_layout.
9949         (layout_instantiate): call layout_update and not much else.
9950         (layout_post_instantiate): not sure whether this is needed
9951         anymore.
9952         (layout_query_geometry): query glyph geometry rather than
9953         image_instance geometry.
9954         (layout_layout): set offsets from pass in parameters. Use glyph
9955         geometry and layout functions rather than image instance ones.
9956         (native_layout_layout): ditto.
9957         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9958         (image_instantiator_widget): set_property -> update.
9959         (image_instantiator_buttons): ditto.
9960         (image_instantiator_progress_guage): ditto.
9961         (image_instantiator_tab_control): ditto.
9962         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9963         (image_instantiator_layout): add update method.
9964
9965         * glyphs-msw.c (bmp_normalize):
9966         (mswindows_resource_normalize): add dest_mask so that it can be
9967         proprogated by layout_normalize.
9968         (begin_defer_window_pos): make optional because it may not be the
9969         right thing to do and it introduces differences with X.
9970         (mswindows_unmap_subwindow): ditto.
9971         (mswindows_map_subwindow): ditto.
9972         (mswindows_redisplay_subwindow): renamed from
9973         mswindows_update_subwindow.
9974         (mswindows_redisplay_widget): ditto.
9975         (mswindows_button_redisplay): renamed from
9976         mswindows_button_update. Update is now what the instantiation
9977         function does for a changed instantiator.
9978         (mswindows_progress_gauge_instantiate): set the progress value
9979         here if appropriate.
9980         (mswindows_tab_control_redisplay): cope with re-ordering of the
9981         members of the tab widget by simply selecting the new top
9982         widget. This makes things appear ok if you click on a tab.
9983         (mswindows_combo_box_instantiate): image_instance_layout now takes
9984         position as well as size.
9985         (mswindows_progress_gauge_redisplay): renamed from
9986         mswindows_progress_gauge_update.
9987         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9988         (image_instantiator_format_create_glyphs_mswindows): ditto.
9989
9990         * glyphs-eimage.c (jpeg_normalize):
9991         (gif_normalize):
9992         (png_normalize):
9993         (tiff_normalize): add dest_mask so that it can be proprogated by
9994         layout_normalize.
9995
9996         * elhash.c:
9997         (print_hash_table):
9998         (hash_table_weakness_validate):
9999         (decode_hash_table_weakness):
10000         (Fhash_table_weakness):
10001         (Fhash_table_type):
10002         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10003
10004         * console.h (struct console_methods): move update_* to
10005         redisplay_*.
10006
10007 2000-07-20  Ben Wing  <ben@xemacs.org>
10008
10009         * *.[ch] (XSETOBJ): remove unused middle argument.
10010         lisp-disunion.h: correct wrap_object() to one argument.
10011
10012 2000-07-15  Ben Wing  <ben@xemacs.org>
10013
10014         * s/cygwin32.h:
10015         * s/cygwin32.h (CYGWIN_CONV_PATH):
10016         Add missing logb prototype for v1.1.
10017         Use post-b20 names and alias to pre-b20 names when pre-b20.
10018
10019         * s/windowsnt.h: [5].
10020
10021 2000-07-15  Ben Wing  <ben@xemacs.org>
10022
10023         * Makefile.in.in (x_objs):
10024         * Makefile.in.in (sheap_objs):
10025         * Makefile.in.in (objs):
10026         added win32.o, cosmetic cleanups.
10027
10028         * alloc.c (Fmake_byte_code):
10029         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10030         etc. macros which declare their own args now.
10031
10032         * alloc.c (syms_of_alloc):
10033         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10034
10035         * buffer.c:
10036         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10037
10038         * buffer.c (Fget_file_buffer):
10039         Fixed GCPRO problem.
10040
10041         * buffer.c (get_truename_buffer):
10042         Fixed comment about GC checking.
10043
10044         * buffer.c (syms_of_buffer):
10045         Undeclared those dedicated frame funs.
10046         [2].
10047
10048         * buffer.h:
10049         Define convenience macros for internal/external conversions.
10050         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10051         and Qenvironment_variable_encoding for cleaner code.
10052
10053         * bufslots.h:
10054         Remove dedicated-frame; in lisp.
10055
10056         * bytecode.c (funcall_compiled_function):
10057         [1].
10058
10059         * bytecode.c (syms_of_bytecode):
10060         [2].
10061
10062         * console-msw.c:
10063         * console-msw.c (mswindows_show_console): Rewrote.
10064
10065         * console-msw.c (Fmswindows_debugging_output): New.
10066         Sends to OutputDebugString (special MSWin debugger interface).
10067
10068         * console-msw.c (Fmswindows_message_box):
10069         Fixed stupid bugs so it works when called from kill-emacs.
10070
10071         * console-msw.c (syms_of_console_mswindows):
10072         Declare Fmswindows_debugging_output.
10073
10074         * console-msw.h:
10075         New MSWin prototypes.
10076
10077         * console-msw.h (struct mswindows_frame):
10078         New entry last-click-mods for improved button-modifier support.
10079
10080         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10081         New struct entry `popup' with corresponding accessor.
10082
10083         * console-x.c:
10084         * console-x.c (split_up_display_spec):
10085         * console-x.c (get_display_arg_connection):
10086         * console-x.c (x_semi_canonicalize_console_connection):
10087         * console-x.c (x_canonicalize_device_connection):
10088         [[[6]]]: Change char to more specific type.
10089         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10090
10091         * console-x.c (x_semi_canonicalize_console_connection):
10092         * console-x.c (x_canonicalize_device_connection):
10093         [[[9]]]: Fix up error signalling to use new structured error system.
10094
10095         * console-x.h:
10096         [[[4]]]: Define codesys aliases:
10097         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10098         Qx_color_name_encoding, Qx_display_name_encoding.
10099
10100         * console.h (struct console_methods):
10101         New method make_dialog_box_internal supersedes older
10102         popup_dialog_box method.
10103
10104         * data.c:
10105         Define many new errors, part of new structured errors.
10106
10107         * data.c (init_errors_once_early):
10108         * data.c (syms_of_data):
10109         [2].
10110
10111         * device-msw.c (mswindows_init_device):
10112         [[[5]]]: Cleanup to support NT 3.51.
10113
10114         * device-msw.c (decode_devmode): Cleanup.
10115
10116         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10117         * device-msw.c (mswindows_handle_print_dialog_box):
10118         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10119         * device-msw.c (syms_of_device_mswindows):
10120         Delete the dialog box primitives recently introduced by Kirill and
10121         instead interface to general dialog box interface.
10122
10123         * device-x.c:
10124         * device-x.c (compute_x_app_name):
10125         * device-x.c (x_init_device):
10126         * device-x.c (Fx_valid_keysym_name_p):
10127         * device-x.c (Fx_set_font_path):
10128         [6].
10129         [7].
10130
10131         * device.h (wrap_device): New.
10132         First of its kind; meant to replace XSETDEVICE.
10133
10134         * dialog-msw.c: Many file-dialog symbols.
10135
10136         * dialog-msw.c (mswindows_register_popup_frame): New.
10137         * dialog-msw.c (mswindows_is_dialog_msg): New.
10138         For supporting kbd traversal in dialog boxes.
10139
10140         * dialog-msw.c (dialog_proc):
10141         Support hitting ESC in dialogs.
10142
10143         * dialog-msw.c (struct):
10144         Common dialog box errors.
10145
10146         * dialog-msw.c (handle_file_dialog_box): New.
10147         Add file dialog code.
10148
10149         * dialog-msw.c (handle_question_dialog_box):
10150         Redo existing code to support new question dialog syntax.
10151
10152         * dialog-msw.c (console_type_create_dialog_mswindows):
10153         We support new dialog console method.
10154
10155         * dialog-msw.c (syms_of_dialog_mswindows):
10156         * dialog-msw.c (vars_of_dialog_mswindows):
10157         New file dialog symbols, vars.
10158
10159         * dialog-x.c:
10160         * dialog-x.c (maybe_run_dbox_text_callback):
10161         * dialog-x.c (dbox_descriptor_to_widget_value):
10162         * dialog-x.c (x_make_dialog_box_internal):
10163         * dialog-x.c (console_type_create_dialog_x):
10164         Mule-ize entire file.
10165         Redo to support question dialog syntax.
10166         [6].
10167
10168         * dialog.c:
10169         * dialog.c (Fmake_dialog_box_internal):
10170         * dialog.c (syms_of_dialog):
10171         Kill old popup-dialog-box, replace with new primitive.
10172         Just call device method or signal error.
10173
10174         * eldap.c (Fldap_open):
10175         * eldap.c (Fldap_search_basic):
10176         * eldap.c (Fldap_add):
10177         * eldap.c (Fldap_modify):
10178         [1].
10179         [7].
10180
10181         * emacs.c:
10182         * emacs.c (make_arg_list_1):
10183         * emacs.c (make_arg_list):
10184         Mule-ize call to dll_init().
10185         [6].
10186         [8].
10187
10188         * emacs.c (make_argc_argv):
10189         * emacs.c (free_argc_argv):
10190         * emacs.c (init_cmdargs):
10191         * emacs.c (main_1):
10192         * emacs.c (Fkill_emacs):
10193         * emacs.c (Fdump_emacs):
10194         Update comments about what can be used in syms_* etc.
10195         Call init_win32() when necessary.
10196         Fix up MS Win dialog box in kill-buffer to actually work right.
10197         [7].
10198
10199         * eval.c:
10200         * eval.c (For):
10201         * eval.c (Fand):
10202         * eval.c (Fprogn):
10203         * eval.c (Fprog1):
10204         * eval.c (Fprog2):
10205         * eval.c (FletX):
10206         * eval.c (Flet):
10207         * eval.c (condition_case_3):
10208         * eval.c (Feval):
10209         * eval.c (function_argcount):
10210         * eval.c (funcall_lambda):
10211         [1].
10212
10213         * eval.c (type_error): New.
10214         * eval.c (maybe_type_error): New.
10215         * eval.c (continuable_type_error): New.
10216         * eval.c (maybe_continuable_type_error): New.
10217         * eval.c (type_error_with_frob): New.
10218         * eval.c (maybe_type_error_with_frob): New.
10219         * eval.c (continuable_type_error_with_frob): New.
10220         * eval.c (maybe_continuable_type_error_with_frob): New.
10221         New functions for use with structured errors.
10222
10223         * event-Xt.c:
10224         * event-Xt.c (x_event_to_emacs_event):
10225         Buttons are now modifiers too.
10226
10227         * event-Xt.c (emacs_Xt_current_event_timestamp):
10228         Implement new event method.
10229         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10230
10231         * event-msw.c:
10232         * event-msw.c (ntpipe_shove_writer): [5].
10233         * event-msw.c (mswindows_enqueue_mouse_button_event):
10234         * event-msw.c (mswindows_drain_windows_queue):
10235         * event-msw.c (mswindows_wnd_proc): [7].
10236         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10237         * event-msw.c (mswindows_modifier_state):
10238         Throughout: support new button modifiers.
10239
10240         * event-msw.c (emacs_mswindows_current_event_timestamp):
10241         Implement new event method.
10242         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10243
10244         * event-stream.c:
10245         * event-stream.c (event_stream_current_event_timestamp): New.
10246         * event-stream.c (maybe_kbd_translate): New functionality.
10247         * event-stream.c (vars_of_event_stream):
10248         Document new kbd-translate-table functionality.
10249
10250         * event-stream.c (Fcurrent_event_timestamp): New.
10251         New primitive for use in fabricated events.
10252         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10253
10254         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10255
10256         * events.c:
10257         * events.c (Fmake_event):
10258         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10259         [1].
10260         [9].
10261
10262         * events.c (format_event_object): fix gcc warnings.
10263
10264         * events.c (Fevent_timestamp): Document new primitives.
10265
10266         * events.c (TIMESTAMP_HALFSPACE): New.
10267
10268         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10269         comparing timestamps correctly (half-space algorithm).
10270
10271         * events.c (Fevent_modifier_bits): Doc fix.
10272
10273         * events.c (Fevent_modifiers): Major doc addition.
10274         * events.c (event_x_y_pixel_internal): Typo fix.
10275         * events.c (syms_of_events): Declare new primitives.
10276
10277         * events.h:
10278         Update long comment for button modifiers, timestamps.
10279
10280         * events.h (struct event_stream):
10281         New current_event_timestamp method.
10282
10283         * extents.c:
10284         * extents.c (extent_in_region_p):
10285         * extents.c (decode_extent):
10286         * extents.c (Fset_extent_parent):
10287         * extents.c (decode_map_extents_flags):
10288         Fix gcc warnings.
10289         [9].
10290
10291         * extents.c (struct extent_at_arg):
10292         * extents.c (decode_extent_at_flag):
10293         * extents.c (extent_at_mapper):
10294         * extents.c (extent_at_bytind):
10295         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10296         * extents.c (Fextents_at): New primitive. [9].
10297         * extents.c (symbol_to_glyph_layout): [9].
10298         Support new primitive `extents-at'.
10299
10300
10301         * extents.c (get_text_property_bytind):
10302         extent_at_bytind has another arg.
10303         [9].
10304
10305         * extents.c (syms_of_extents): New primitive.
10306
10307         * file-coding.c (Fmake_coding_system): [1].
10308         * file-coding.c (subsidiary_coding_system): fix gcc warning
10309         * file-coding.c (syms_of_file_coding): [2].
10310
10311         * fileio.c (Fexpand_file_name):
10312         * fileio.c (Fsysnetunam):
10313         * fileio.c (Ffile_exists_p):
10314         * fileio.c (Ffile_executable_p):
10315         * fileio.c (Fverify_visited_file_modtime):
10316         Clean up GCPROing.
10317
10318         * fileio.c (syms_of_fileio): [2].
10319
10320         * filelock.c (lock_file_1):
10321         * filelock.c (current_lock_owner):
10322         * filelock.c (lock_if_free):
10323         * filelock.c (lock_file):
10324         * filelock.c (unlock_file):
10325         Clean up GCPROing.
10326
10327         * fns.c (concat): Fix gcc warning.
10328
10329         * fns.c (Fmember):
10330         * fns.c (Fold_member):
10331         * fns.c (Fmemq):
10332         * fns.c (Fold_memq):
10333         * fns.c (memq_no_quit):
10334         * fns.c (Fassoc):
10335         * fns.c (Fold_assoc):
10336         * fns.c (Fassq):
10337         * fns.c (Fold_assq):
10338         * fns.c (assq_no_quit):
10339         * fns.c (Frassoc):
10340         * fns.c (Fold_rassoc):
10341         * fns.c (Frassq):
10342         * fns.c (Fold_rassq):
10343         * fns.c (rassq_no_quit):
10344         * fns.c (Fdelete):
10345         * fns.c (Fold_delete):
10346         * fns.c (Fdelq):
10347         * fns.c (Fold_delq):
10348         * fns.c (delq_no_quit):
10349         * fns.c (Fremassoc):
10350         * fns.c (Fremassq):
10351         * fns.c (remassq_no_quit):
10352         * fns.c (Fremrassoc):
10353         * fns.c (Fremrassq):
10354         * fns.c (remrassq_no_quit):
10355         * fns.c (Freverse):
10356         * fns.c (mapcar1):
10357         [1].
10358
10359         * frame-msw.c (mswindows_init_frame_1):
10360         * frame-msw.c (mswindows_delete_frame):
10361         Register popups with dialog code so keyboard traversing works.
10362
10363         * frame-tty.c (tty_raise_frame_no_select): [1].
10364
10365         * frame-x.c:
10366         * frame-x.c (x_set_frame_text_value):
10367         * frame-x.c (x_set_frame_properties):
10368         * frame-x.c (x_create_widgets):
10369         [7].
10370
10371         * frame.c:
10372         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10373
10374         * frame.h (wrap_frame): New.
10375         Macro like wrap_device.
10376
10377         * general.c:
10378         * general.c (SYMBOL):
10379         * general.c (syms_of_general):
10380         Major reorg.  This is now just a wrapper and symbols themselves
10381         are listed in general-slots.h.
10382
10383         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10384         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10385
10386         * glyphs-msw.c (mswindows_native_layout_instantiate):
10387         Add DS_CONTROL so keyboard traversal will work.
10388
10389         * glyphs-widget.c:
10390         * glyphs-widget.c (syms_of_glyphs_widget):
10391         Move some symbols to general-slots.h.
10392
10393         * glyphs-x.c:
10394         * glyphs-x.c (xbm_instantiate_1):
10395         * glyphs-x.c (x_xbm_instantiate):
10396         * glyphs-x.c (x_xface_instantiate):
10397         * glyphs-x.c (autodetect_instantiate):
10398         * glyphs-x.c (cursor_font_instantiate):
10399         * glyphs-x.c (x_update_widget):
10400         * glyphs-x.c (x_widget_instantiate):
10401         * glyphs.c (bitmap_to_lisp_data):
10402         * glyphs.c (pixmap_to_lisp_data):
10403         [7].
10404
10405         * glyphs.c (syms_of_glyphs):
10406         [2].
10407
10408         * gui-x.c:
10409         * gui-x.c (print_widget_value):
10410         * gui-x.c (menu_separator_style_and_to_external):
10411         * gui-x.c (add_accel_and_to_external):
10412         * gui-x.c (button_item_to_widget_value):
10413         * gui-x.c (gui_items_to_widget_values_1):
10414         * gui-x.c (gui_items_to_widget_values):
10415         * gui-x.c (syms_of_gui_x):
10416         * gui-x.c (vars_of_gui_x):
10417         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10418         [9].
10419
10420         * gui-x.h:
10421         Muleize, prototype changes matching gui-x.c.
10422
10423         * gui.c:
10424         * gui.c (separator_string_p):
10425         * gui.c (gui_item_add_keyval_pair):
10426         * gui.c (make_gui_item_from_keywords_internal):
10427         * gui.c (signal_too_long_error):
10428         * gui.c (parse_gui_item_tree_item):
10429         * gui.c (syms_of_gui):
10430         * gui.c (vars_of_gui):
10431         * gui.h:
10432         menu-no-selection-hook moved here (used by MSWin).
10433         Move some symbols to general-slots.h.
10434         [6].
10435         [9].
10436
10437         * insdel.c (get_buffer_pos_char):
10438         * insdel.c (get_buffer_range_char):
10439         Add GC comments.
10440
10441         * keymap.c (keymap_lookup_directly):
10442         * keymap.c (keymap_store):
10443         * keymap.c (ensure_meta_prefix_char_keymapp):
10444         * keymap.c (describe_map):
10445         * keymap.h:
10446         Support new button modifiers.
10447
10448         * lisp-disunion.h (wrap_object):
10449         * lisp-disunion.h (XSETOBJ):
10450         Rename make_obj to wrap_object.
10451
10452         * lisp-union.h:
10453         * lisp-union.h (make_int):
10454         * lisp-union.h (make_char):
10455         Support wrap_object.
10456
10457         * lisp.h:
10458         * lisp.h (LIST_LOOP):
10459         * lisp.h (EXTERNAL_LIST_LOOP):
10460         * lisp.h (LIST_LOOP_2):
10461         * lisp.h (EXTERNAL_LIST_LOOP_1):
10462         * lisp.h (EXTERNAL_LIST_LOOP_2):
10463         * lisp.h (EXTERNAL_LIST_LOOP_3):
10464         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10465         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10466         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10467         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10468         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10469         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10470         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10471         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10472         * lisp.h (struct Lisp_Symbol):
10473         * lisp.h (maybe_continuable_error_with_frob):
10474         Fix up section comments.
10475         Add new types for char to indicate usage.
10476         Delete symbols auto-generated from general-slots.h.
10477         Add prototypes for structured error functions.
10478         Add long comments describing looping macros and change interface
10479         so that lvalues are automatically declared.
10480         Add NO_DECLARE macro in case callers want to declare lvalues
10481         themselves.
10482
10483         * lread.c (read_syntax_error):
10484         * lread.c (continuable_read_syntax_error):
10485         * lread.c (read_structure):
10486         * lread.c (sequence_reader):
10487         * lread.c (read_list_conser):
10488         * lread.c (read_compiled_function):
10489         Rename syntax_error and continuable_syntax_error to avoid clash
10490         with same-named structured error functions.
10491
10492         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10493         * menubar-msw.c (populate_menu_add_item):
10494         * menubar-msw.c (populate_or_checksum_helper):
10495         [5].
10496         [9].
10497
10498         * menubar-x.c:
10499         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10500         Mule-ize whole file.
10501
10502         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10503
10504         * mule-charset.c (Fmake_charset):
10505         * mule-wnnfns.c (Fwnn_set_param):
10506         [1].
10507
10508         * ntproc.c (create_child):
10509         * ntproc.c (Fwin32_set_current_locale):
10510         Add comments portending doom.
10511
10512         * objects-msw.c:
10513         * objects-msw.c (old_font_enum_callback_2):
10514         * objects-msw.c (font_enum_callback_1):
10515         * objects-msw.c (mswindows_enumerate_fonts):
10516         [5].
10517
10518         * objects-x.c:
10519         * objects-x.c (allocate_nearest_color):
10520         * objects-x.c (x_parse_nearest_color):
10521         * objects-x.c (x_initialize_color_instance):
10522         * objects-x.c (x_print_color_instance):
10523         * objects-x.c (x_finalize_color_instance):
10524         * objects-x.c (x_valid_color_name_p):
10525         * objects-x.c (x_initialize_font_instance):
10526         * objects-x.c (x_print_font_instance):
10527         * objects-x.c (valid_x_font_name_p):
10528         * objects-x.c (truename_via_FONT_prop):
10529         * objects-x.c (truename_via_random_props):
10530         * objects-x.c (truename_via_XListFonts):
10531         * objects-x.c (x_font_truename):
10532         * objects-x.c (x_font_instance_truename):
10533         * objects-x.c (x_font_instance_properties):
10534         * objects-x.c (x_list_fonts):
10535         * objects-x.c (x_find_charset_font):
10536         Mule-ize entire file.
10537         [7].
10538
10539         * objects-x.h:
10540         Mule-verify.
10541
10542         * print.c:
10543         * print.c (std_handle_out_external):
10544         * print.c (debug_print_no_newline):
10545         * print.c (syms_of_print):
10546         Output to all debugger kinds in debug-print.
10547         Fix console-output code under MSWin to actually work.
10548
10549         * process-nt.c (send_signal):
10550         * process-nt.c (nt_create_process):
10551         Use newer Unicode macros.
10552
10553         * process-unix.c (unix_create_process):
10554         * process-unix.c (unix_canonicalize_host_name):
10555         * process-unix.c (unix_open_network_stream):
10556         [7].
10557
10558         * scrollbar-x.c:
10559         Mule-verify.
10560
10561         * search.c (syms_of_search):
10562         [2].
10563
10564         * select-msw.c (mswindows_destroy_selection):
10565         Use LIST_LOOP_2.
10566
10567         * select-x.c (symbol_to_x_atom):
10568         [7].
10569
10570         * select.c (syms_of_select):
10571         [2].
10572
10573         * sound.c (Fplay_sound_file):
10574         [7].
10575
10576         * specifier.c:
10577         * specifier.c (decode_specifier_type):
10578         * specifier.c (Fvalid_specifier_locale_type_p):
10579         * specifier.c (check_valid_locale_or_locale_type):
10580         * specifier.c (decode_locale):
10581         * specifier.c (decode_locale_type):
10582         * specifier.c (decode_locale_list):
10583         * specifier.c (check_valid_domain):
10584         * specifier.c (decode_specifier_tag_set):
10585         * specifier.c (Fcanonicalize_tag_set):
10586         * specifier.c (Fdefine_specifier_tag):
10587         * specifier.c (Fspecifier_tag_predicate):
10588         * specifier.c (check_valid_inst_list):
10589         * specifier.c (check_valid_spec_list):
10590         * specifier.c (decode_how_to_add_specification):
10591         * specifier.c (check_modifiable_specifier):
10592         * specifier.c (specifier_add_spec):
10593         * specifier.c (boolean_validate):
10594         * specifier.c (display_table_validate):
10595         [9].
10596
10597         * specifier.c (syms_of_specifier):
10598         Move some symbols to general-slots.h.
10599         [2].
10600
10601         * symbols.c:
10602         * symbols.c (Fmapatoms):
10603         * symbols.c (Fapropos_internal):
10604         Add GCPROs.
10605
10606         * symbols.c (set_default_buffer_slot_variable):
10607         * symbols.c (set_default_console_slot_variable):
10608         [1].
10609
10610         * symbols.c (defsymbol_massage_name_1):
10611         * symbols.c (defkeyword_massage_name):
10612         * symbols.c (deferror_1):
10613         * symbols.c (deferror):
10614         * symbols.c (deferror_massage_name_and_message):
10615         * symeval.h:
10616         * symeval.h (DEFSYMBOL):
10617         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10618
10619         * symbols.c (syms_of_symbols):
10620         [2].
10621
10622         * symsinit.h:
10623         * symsinit.h (init_win32): New.
10624         Also new is syms_of_dialog_mswindows.
10625
10626         * syswindows.h:
10627         Add new Unicode macros, missing Cygwin wide-char functions,
10628         convenience conversion macros for Qmswindows_tstr, macros for
10629         encapsulating required MSWin <-> Cygwin filename conversions,
10630         prototype for dynamically-extracted (not in NT 3.51) functions.
10631
10632         * toolbar-x.c:
10633         Mule-verify.
10634
10635         * tooltalk.c (Fadd_tooltalk_message_arg):
10636         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10637         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10638         [7].
10639
10640         * tooltalk.c (syms_of_tooltalk):
10641         [2].
10642
10643         * unexnt.c:
10644         * unexnt.c (unexec):
10645         Fix up headers, declaration of unexec() to be more standard.
10646
10647 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10648
10649         * offix.h: Revert change to guard macros - they're used in offix.c!
10650
10651 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10652
10653         * lisp.h: Defsubred Fdelete.
10654
10655         * console-msw.h:  (msprinter_default_printer): Added.
10656
10657         * console-msw.c (msprinter_canonicalize_console_connection):
10658         (msprinter_canonicalize_device_connection): Added.
10659
10660         * device-msw.c (msprinter_default_printer):
10661         (Fmswingows_get_default_printer):
10662         (signal_enum_priner_error):
10663         (Fmswingows_printer_list): Added.
10664
10665 2000-07-19  Martin Buchholz <martin@xemacs.org>
10666
10667         * XEmacs 21.2.35 is released.
10668
10669 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10670
10671         * select-x.c (x_handle_selection_request):
10672         Text selected in xemacs and pasted into xterm failed to appear.
10673         Spelling fixes and cosmetic changes.
10674
10675 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10676
10677         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10678         XEmacs frame (fix for doubling chars in dialog boxes).
10679
10680 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10681
10682         * select.c (select_convert_in, select_convert_out):
10683         Don't call intern() every time.
10684
10685         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10686         * select.c (vars_of_select): Initialise them.
10687
10688 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10689
10690         * select.c (selection-coercible-types): New.
10691
10692         * select.c (own-selection-internal):
10693         * select.c (get-selection-internal):
10694         MULE bug fix - these should default to COMPOUND_TEXT and not
10695         STRING for MULE. I think.
10696
10697         * select.c (select_convert_out): Use selection-coercible-types
10698         to find types that we can attempt to perform coercions on.
10699
10700 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10701
10702         * mule-wnnfns.c:
10703         * mule-canna.c:
10704         Add coding: cookie to identify encoding.
10705
10706         * mule-canna.c (CANNA_mode_keys): make static.
10707         Use proper prototypes, even for functions of no arguments.
10708         Remove external prototype for Fding().
10709
10710         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10711
10712         * select.c (syms_of_select): Add missing DEFSUBR.
10713
10714 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10715
10716         * select.c (get_selection_internal, own_selection_internal):
10717         Make the type default to STRING, rather than placing a nil type
10718         into Vselection_alist.
10719
10720 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10721
10722         * gpmevent.c (tty_selection_exists_p):
10723         * gpmevent.c (tty_own_selection):
10724         Updated parameter lists.
10725
10726 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10727
10728         * select.h (selection-alist): Removed declaration.
10729
10730         * select.h (get_local_selection):
10731         * select.c (get_local_selection):
10732         Made static.
10733
10734         * select.h (convert_selection): Removed declaration.
10735         * select.c (convert_selection): Removed.
10736         This function belongs in Lisp.
10737
10738         * select.h (select_convert_in): Declare.
10739         * select.h (select_convert_out): Declare.
10740         * select.c (select_convert_in): New.
10741         * select.c (select_convert_out): New.
10742         New conversion functions for other files to call.
10743
10744         * select.h (select_notify_buffer_kill): Declare.
10745         * select.c (select_notify_buffer_kill): New.
10746         New functions that get called from kill-buffer.
10747
10748         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10749         X-specific lisp code.
10750
10751         * select.h: Declare some of the lisp-visible functions for
10752         external use.
10753
10754         * select.c (clean_local_selection_data): Removed. This was
10755         a disgusting function, and previously should have been in
10756         select-x.c in any case. The functionality is now provided
10757         in select-convert-from-integer (select.el).
10758
10759         * select.c (available-selection-types): Fixed stupidity where
10760         INTEGER and ATOM got added twice. Also add STRING when we see an
10761         extent.
10762
10763         * select.c (get-selection-internal): Removed symbol stripping. No
10764         longer causes conversion when data comes from the internal cache.
10765
10766         * select.c (syms_of_select): Added new functions.
10767
10768         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10769         error checking - previously this called abort!
10770
10771         * select-x.c (x_own_selection): Changed comment.
10772
10773         * select-x.c (x_handle_selection_request): Use select_convert_out.
10774         Don't mess with selection-alist; it's an internal variable of select.c.
10775
10776         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10777
10778         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10779         rather than messing with selection-alist.
10780
10781         * select-msw.c (mswindows_get_foreign_selection):
10782         Use TO_INTERNAL_FORMAT rather than hacking.
10783
10784 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10785
10786         * process-unix.c (unix_open_multicast_group):
10787         (unix_open_multicast_group): Remove useless casts.
10788
10789 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10790
10791         * sound.c (Fplay_sound): Fix `unused variable' warning.
10792
10793         * emacs.c (main): Use correct type for _environ on SCO5.
10794
10795 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10796
10797         * console.h (own_selection_method):
10798         * console.h (selection_exists_p_method):
10799         * console.h (available_selection_types_method): New.
10800         * console.h (register_selection_data_type_method): New.
10801         * console.h (selection_data_type_name): New.
10802
10803         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10804         function & alist to track GlobalAlloc()'d handles that need
10805         releasing when the clipboard data gets replaced or emptied.
10806
10807         * event-msw.c (mswindows_wnd_proc): Call it.
10808
10809         * lisp.h, general.c (Qappend): New symbol representing a
10810         `how-to-add' mode.
10811
10812         * select.c (own-selection-internal):
10813         * select.c (selection-exists-p):
10814         * select.c (available-selection-types): New.
10815         * select.c (register-selection-data-type): New.
10816         * select.c (selection-data-type-name): New.  New functions to deal
10817         with device-specific selection data formats.
10818         * select.c (selection-converter-out-alist): Renamed.
10819         * select.c (selection-converter-in-alist): New.
10820         * select.c (selection-appender-alist): New.  Added new alists.
10821         * select.c (syms_of_select, vars_of_select): Added new symbols &
10822         variables.
10823         * select.c (get_local_selection): Split.
10824         * select.c: Removed spurious type checking - selections may now be
10825         of any type, not just strings.
10826         * select.c (own-selection-internal):
10827
10828         * select.h, select.c (convert_selection): New. Created
10829         convert_selection() function based on get_local_selection().
10830         * select.h, select.c (QCF_*): New symbols representing mswindows
10831         clipboard formats.
10832         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10833         symbols representing `how-to-add' modes.
10834
10835         * select-msw.c (x_sym_p): New.
10836         * select-msw.c (symbol_to_ms_cf): New.
10837         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10838         symbols & clipboard formats. Can also handle string names.
10839         * select-msw.c (mswindows_own_selection):
10840         * select-msw.c (mswindows_selection_exists_p):
10841         Added `data-type' parameter. Use it.
10842         * select-msw.c (mswindows_available_selection_types): New.
10843         * select-msw.c (mswindows_register_selection_data_type): New.
10844         * select-msw.c (mswindows_selection_data_type_name): New.
10845         * select-msw.c (mswindows_own_selection):
10846         * select-msw.c (mswindows_get_foreign_selection):
10847         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10848         * select-msw.c (console_create_select_mswindows): Added new methods.
10849         * select-msw.c (mswindows_destroy_selection): New.
10850         * select-msw.c (Vhandle_alist): New list.
10851         * select-msw.c (mswindows_own_selection):
10852
10853         * select-x.c (x_own_selection):
10854         * select-x.c (x_selection_exists_p):
10855         * select-x.c: Added some comments about maybe using new
10856         functionality.
10857         * select-x.c (x_own_selection):
10858
10859         * specifier.c: Remove definition of Qappend (now in general.c)
10860         * specifier.c (syms_of_specifier): Remove Qappend.
10861
10862 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10863
10864         * config.h.in: Add socklen_t.
10865
10866         * s/decosf4-0.h: No special compiler flags needed or desired.
10867         In particular, undefine _BSD for DEC OSF 4.0.
10868
10869 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10870
10871         * redisplay-msw.c (msprinter_frame_output_end): Added.
10872         (console_type_create_redisplay_mswindows): Referred the above.
10873
10874         * frame.c (setup_frame_without_minibuffer): Do not create a
10875         default minibuffer frame on a printer device.
10876
10877         * frame-msw.c (apply_dc_geometry): Added.
10878         (msprinter_start_page):
10879         (msprinter_init_frame_3):
10880         (msprinter_eject_page): Use it.
10881
10882         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10883         and removed residual duplex and orientation properties.
10884
10885 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10886
10887         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10888
10889         * unexalpha.c: Remove system prototypes from C sources!
10890
10891 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10892
10893         * eval.c: Remove references to M-x edit-options in DEFUNs for
10894         `defvar' and `defconst'.
10895
10896 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10897
10898         * config.h.in: Remove SMART_INCLUDE hackery.
10899
10900         PostgreSQL hacking:
10901         * config.h.in: Don't use SMART_INCLUDE.
10902
10903         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10904         * inline.c: Simply #include "postgresql.h"
10905         * postgresql.c:
10906         - Don't use SMART_INCLUDE
10907         - Use simply "const".
10908         - Use standard doc string conventions.
10909         - Use correct type for result of PQstatus.
10910
10911 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10912
10913         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10914
10915         C++ compilation changes.
10916         * config.h.in (EXTERN_C): Define.
10917         * config.h.in (not): This is also a C++ keyword.
10918         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10919         * cm.c: Use EXTERN_C.
10920         * redisplay-tty.c: Use EXTERN_C.
10921         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10922
10923 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10924
10925         * general.c: Remove duplicate definition for Qfunction.
10926
10927 2000-07-08  Ben Wing  <ben@xemacs.org>
10928
10929         * device-msw.c (msprinter_init_device):
10930         * device-msw.c (sync_printer_with_devmode):
10931         * device-msw.c (handle_devmode_changes):
10932         * device-msw.c (print_dialog_worker):
10933         * device-msw.c (Fmsprinter_apply_settings):
10934         * device-msw.c (hash_devmode):
10935         * device-msw.c (Fmsprinter_settings_despecialize):
10936         use Qmswindows_tstr, not Qctext.
10937
10938         * vm-limit.c (check_memory_limits):
10939         avoid infinite loop printing warning messages.
10940
10941 2000-07-05  Craig Lanning  <lanning@scra.org>
10942
10943         * Makefile.in.in: Add support for including the Windows resources
10944         when building with the cygwin and mingw targets.
10945
10946         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10947         not set or not correct.
10948         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10949         (init_initial_directory): Don't try to use $PWD on the
10950         WIN32_NATIVE target.
10951
10952         * s\cygwin32.h:
10953         [[Add -mwindows to eliminate console window.]] not required --ben
10954         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10955         (MAIL_USE_POP): removed; now handled by configure.
10956
10957         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10958         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10959         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10960         (MAIL_USE_POP): removed; now handled by configure.
10961         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10962         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10963         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10964         constant string.
10965         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10966         up from <winsock.h> via systime.h.
10967         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10968         (getpagesize): from Dan Holmsand, added.
10969         Added #endif which was left dangling by Ben's mega patch; added
10970         comment to help prevent this in the future.
10971
10972         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10973
10974 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10975
10976         * console-msw.h (struct mswindows_device): Removed unnecessary
10977         cached device geometry values.
10978         Added update_tick and an accessor macro.
10979         (Lisp_Devmode): Added lrecord declaration.
10980         (struct msprinter_device): Contain devmode as a Lisp object.
10981         Added mswindows_get_selected_frame_hwnd();
10982
10983         * console.h (struct console_methods): Indentation nitpicking.
10984
10985         * device-msw.c (mswindows_init_device): Do not initialize geometry
10986         cache. Initialize update tick.
10987         (mswindows_device_system_metrics): Ask the device for its geometry.
10988         (global_free_2_maybe):
10989         (devmode_to_hglobal):
10990         (handle_printer_changes):
10991         (ensure_not_printing):
10992         (print_dialog_worker):
10993         (Fmsprinter_print_setup_dialog):
10994         (Fmsprinter_print_dialog):
10995         (plist_get_margin):
10996         (plist_set_margin):
10997         (Fmsprinter_page_setup_dialog): Added functions.
10998         (sync_printer_with_devmode):
10999         (handle_devmode_changes):
11000         (Fmsprinter_get_settings):
11001         (Fmsprinter_select_settings):
11002         (Fmsprinter_apply_settings):
11003         (allocate_devmode):
11004         (Fmsprinter_settings_copy):
11005         (Fmsprinter_settings_despecialize):
11006         (print_devmode):
11007         (finalize_devmode):
11008         (equal_devmode):
11009         (hash_devmode): Added functions
11010         (syms_of_device_mswindows): Init devmode lrecord class.
11011
11012         * device.h: Added an exfun for find-device.
11013
11014         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11015         geometry; although, recreate the device compatible DC.
11016
11017         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11018         (msprinter_init_frame_3):
11019         (msprinter_frame_property):
11020         (msprinter_internal_frame_property_p):
11021         (msprinter_frame_properties):
11022         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11023         print job properties (will move to device settings).
11024
11025         * lisp.h: Added symbols.
11026
11027         * general.c (syms_of_general): Declared them.
11028
11029         * hash.c (string_hash): Added.
11030
11031         * lrecord.h (lrecord_type): Added devmode lrecord type.
11032
11033 2000-07-02  Mike Sperber <mike@xemacs.org>
11034
11035         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11036         FreeBSD 4.0.
11037
11038 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11039
11040         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11041         integer.
11042
11043 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11044
11045         * data.c (Fstring_to_number): Don't recognize floating point if
11046         base is not 10.
11047
11048 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11049
11050         * glyphs-widget.c (tab_control_query_geometry):
11051         (widget_query_geometry):
11052         (button_query_geometry):
11053         * glyphs.c (text_query_geometry):
11054         Enforce type correctness.
11055
11056 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11057
11058         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11059         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11060
11061 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11062
11063         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11064         conflicts with gcc's fixincluded version of FOO.h.
11065
11066         * glyphs.h (image_instance_geometry): Remove trailing `,'
11067
11068 2000-06-08  Mike Alexander  <mta@arbortext.com>
11069
11070         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11071         (shove_thread): Don't write the same output twice
11072         (make_ntpipe_output_stream): Increase priority of shove thread
11073         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11074         chance to run
11075         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11076         it.
11077
11078 2000-06-12  Ben Wing  <ben@xemacs.org>
11079
11080         * s\mingw32.h (sigset):
11081         * s\windowsnt.h (sigset):
11082         rename msw_ to mswindows_ for consistency with general convention.
11083
11084 2000-06-12  Ben Wing  <ben@xemacs.org>
11085
11086         * console-msw.c:
11087         * console-msw.c (mswindows_get_console_hwnd):
11088         * console-msw.c (mswindows_ensure_console_allocated):
11089         * console-msw.c (mswindows_hide_console):
11090         * console-msw.c (mswindows_show_console):
11091         * console-msw.c (mswindows_ensure_console_buffered):
11092         * console-msw.c (mswindows_output_console_string):
11093         * console-msw.c (mswindows_windows9x_p):
11094         * console-msw.h:
11095         * device-msw.c (mswindows_get_workspace_coords):
11096         * device-msw.c (mswindows_device_system_metrics):
11097         * dialog-msw.c (mswindows_popup_dialog_box):
11098         * event-msw.c (mswindows_wnd_proc):
11099         * frame-msw.c (mswindows_size_frame_internal):
11100         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11101         * menubar-msw.c (displayable_menu_item):
11102         * menubar-msw.c (mswindows_char_is_accelerator):
11103         * nt.c:
11104         * nt.c (mswindows_sigset):
11105         * nt.c (mswindows_sigrelse):
11106         * nt.c (mswindows_sigpause):
11107         * nt.c (mswindows_raise):
11108         * nt.c (timer_proc):
11109         * ntproc.c:
11110         * ntproc.c (find_child_console):
11111         * ntproc.c (sys_kill):
11112         * print.c:
11113         * print.c (std_handle_out_external):
11114         * process-nt.c (find_child_console):
11115         * process-nt.c (send_signal_the_95_way):
11116         * process-nt.c (ensure_console_window_exists):
11117         * process-nt.c (nt_create_process):
11118         * syssignal.h:
11119         rename msw_ to mswindows_ for consistency with general convention.
11120
11121         * emacs.c:
11122         * dumper.c:
11123         include nt.h, not syswindows.h.
11124
11125         * nt.c (mswindows_fstat):
11126         * nt.c (mswindows_stat):
11127         prefix mswindows_ instead of attempting to directly override the
11128         library functions.  fix declarations.
11129
11130         * nt.h:
11131         include syswindows.h.  move some sysdep.h stuff here.
11132
11133         * ntheap.h:
11134         include syswindows.h, not <windows.h>.
11135
11136         * ntplay.c:
11137         clean up headers.
11138
11139         * sysdep.c:
11140         clean up headers.
11141
11142         * sysdep.c (sys_fstat):
11143         * sysdep.c (sys_stat):
11144         call mswindows versions when appropriate.
11145
11146         * sysdep.h:
11147         move mswin decls to nt.h.
11148
11149         * syswindows.h:
11150         add long comment describing appropriate use of the various windows
11151         headers.
11152
11153 2000-06-11  Ben Wing  <ben@xemacs.org>
11154
11155         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11156
11157 2000-06-10  Ben Wing  <ben@xemacs.org>
11158
11159         * Makefile.in.in (release):
11160         Correction to make sure xemacs.exe always dumped when correct.
11161
11162         * alloca.c:
11163         * balloon_help.c:
11164         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11165
11166         * buffer.c (set_buffer_internal):
11167         [[[[2]]]]: Remove HAVE_FEP code.
11168
11169         * buffer.c (init_initial_directory):
11170         [3].
11171
11172         * bytecode.c:
11173         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11174         individual files.
11175
11176         * callproc.c:
11177         * callproc.c (call_process_cleanup):
11178         * callproc.c (Fold_call_process_internal):
11179         * callproc.c (child_setup):
11180         * callproc.c (getenv_internal):
11181         * callproc.c (init_callproc):
11182         * callproc.c (vars_of_callproc):
11183         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11184         __CYGWIN32__ -> CYGWIN.
11185         DOS_NT -> WIN32_NATIVE.
11186         Remove MSDOS support/references, converting to WIN32_NATIVE
11187           where correct.
11188         __MINGW32__ -> MINGW.
11189         Fix windows.h includes.
11190         Remove bogus HAVE_NTGUI.
11191
11192         * config.h.in:
11193         [2].
11194
11195         * console-msw.c:
11196         mswindows_message_outputted added for use in allowing startup
11197         errors on the console to be seen.
11198
11199         * console-msw.c (msw_ensure_console_allocated):
11200         * console-msw.c (msw_output_console_string):
11201         * console-msw.c (DHEADER):
11202         * console-msw.c (DOPAQUE_DATA):
11203         * console-msw.c (DEVENT):
11204         * console-msw.c (DCONS):
11205         * console-msw.c (DCONSCDR):
11206         * console-msw.c (DSTRING):
11207         * console-msw.c (DVECTOR):
11208         * console-msw.c (DSYMBOL):
11209         * console-msw.c (DSYMNAME):
11210         Fix warnings.
11211
11212         * console-stream.c (stream_init_console):
11213         Fix text/binary problems.
11214
11215         * device-msw.c:
11216         * device-msw.c (mswindows_finish_init_device):
11217         * device-msw.c (mswindows_delete_device):
11218         [1].
11219
11220         * device.c (handle_asynch_device_change):
11221         [3].
11222
11223         * dgif_lib.c:
11224         * dgif_lib.c (DGifOpenFileName):
11225         * dgif_lib.c (DGifOpenFileHandle):
11226         * dgif_lib.c (DGifGetLine):
11227         * dgif_lib.c (DGifGetPixel):
11228         Added config.h/lisp.h, fix up includes.
11229         [1].
11230
11231         * dired-msw.c:
11232         [4].
11233
11234         * dired.c:
11235         * dired.c (file_name_completion):
11236         * dired.c (Ffile_attributes):
11237         * dired.c (syms_of_dired):
11238         [1].
11239
11240         * dumper.c:
11241         * dumper.c (pdump_file_unmap):
11242         * dumper.c (pdump_load):
11243         [1].
11244
11245         * editfns.c:
11246         * editfns.c (Ftemp_directory):
11247         * editfns.c (user_login_name):
11248         * editfns.c (Fuser_real_login_name):
11249         * editfns.c (get_home_directory):
11250         [1].
11251
11252         * elhash.c (finish_marking_weak_hash_tables):
11253         [[[[5]]]]: Fix GCC warnings.
11254
11255         * emacs.c:
11256         * emacs.c (mswindows_handle_hardware_exceptions):
11257         * emacs.c (make_arg_list_1):
11258         * emacs.c (main_1):
11259         * emacs.c (Fkill_emacs):
11260         * emacs.c (Fdump_emacs):
11261         [1].
11262         Fix problems with nested crashes, add long comment.
11263
11264         * event-Xt.c (init_event_Xt_late):
11265         [1].
11266
11267         * event-msw.c:
11268         * event-msw.c (mswindows_dde_callback):
11269         * event-msw.c (mswindows_handle_sticky_modifiers):
11270         * event-msw.c (mswindows_wnd_proc):
11271         [1].
11272         [5].
11273
11274         * events.c (character_to_event):
11275         [1].
11276
11277         * fileio.c:
11278         * fileio.c (Ffile_name_directory):
11279         * fileio.c (Ffile_name_nondirectory):
11280         * fileio.c (directory_file_name):
11281         * fileio.c (Fexpand_file_name):
11282         * fileio.c (Fsubstitute_in_file_name):
11283         * fileio.c (Ffile_name_absolute_p):
11284         * fileio.c (check_executable):
11285         * fileio.c (Ffile_readable_p):
11286         * fileio.c (Ffile_accessible_directory_p):
11287         * fileio.c (Ffile_modes):
11288         * fileio.c (Funix_sync):
11289         * fileio.c (vars_of_fileio):
11290         [1]. [4].
11291
11292         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11293
11294         Expand getdefdir defn.
11295         Fix bogus rename() comment.
11296
11297         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11298         to use standard XEmacs include files, e.g. sysfile.h, rather
11299         than system-specific includes.
11300
11301         * fns.c:
11302         * fns.c (Fsubseq):
11303         [5]. [6].
11304
11305         * frame.c (vars_of_frame):
11306         [1].
11307
11308         * getloadavg.c:
11309         * getloadavg.c (getloadavg):
11310         [1]. [6].
11311         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11312         (We don't use it elsewhere in the code; just add a comment.)
11313
11314         * gif_io.c:
11315         [6].
11316         Add config.h.
11317
11318         * glyphs-msw.c:
11319         * glyphs-msw.c (mswindows_resource_instantiate):
11320         [1].
11321
11322         * glyphs-x.c (x_native_layout_instantiate):
11323         [5].
11324
11325         * gui-msw.c (Fmswindows_shell_execute):
11326         [1].
11327
11328         * insdel.c:
11329         [4].
11330
11331         * lisp.h:
11332         [4]. [5].
11333
11334         * lread.c (locate_file_in_directory_mapper):
11335         [1].
11336
11337         * lstream.c:
11338         [4].
11339
11340         * mem-limits.h:
11341         * mem-limits.h (get_lim_data):
11342         [1].
11343
11344         * menubar-msw.c:
11345         [4].
11346
11347         * ndir.h:
11348         [1].
11349
11350         * nt.c:
11351         * nt.c (getwd):
11352         * nt.c (closedir):
11353         * nt.c (rva_to_section):
11354         * nt.c (mswindows_executable_type):
11355         [1]. [6].
11356         Fix closedir() defn.
11357
11358         * nt.h:
11359         [[[[8]]]]: *_OK defs moved to sysfile.h.
11360
11361         * ntproc.c:
11362         [6]. [7].
11363
11364         * objects-x.c:
11365         [4].
11366
11367         * print.c:
11368         * print.c (std_handle_out_external):
11369         [1]. [4].
11370
11371         * process-nt.c:
11372         * process-nt.c (nt_create_process):
11373         [6].
11374         try to fix process quoting somewhat.
11375
11376         * process-unix.c (unix_create_process):
11377         [1].
11378
11379         * process.c:
11380         * process.c (vars_of_process):
11381         Add Vnull_device.
11382
11383         * process.h:
11384         [1].
11385
11386         * realpath.c:
11387         * realpath.c (xrealpath):
11388         [1].
11389
11390         * redisplay-tty.c (init_tty_for_redisplay):
11391         [3].
11392
11393         * redisplay.c:
11394         [4]. [6].
11395
11396         * scrollbar-msw.c:
11397         [4].
11398
11399         * sheap.c:
11400         * sheap.c (more_static_core):
11401         * sheap.c (report_sheap_usage):
11402         [5]. [6].
11403
11404         * signal.c:
11405         * signal.c (alarm_signal):
11406         [1]. [6].
11407
11408         * sound.c:
11409         [6].
11410
11411         * strftime.c:
11412         * strftime.c (zone_name):
11413         [1]. [5].
11414
11415         * symsinit.h (init_sunpro):
11416         [1].
11417
11418         * syscommctrl.h:
11419         commctrl.h not in Cygwin b20.1.
11420
11421         * sysdep.c:
11422         * sysdep.c (endif):
11423         * sysdep.c (sys_subshell):
11424         * sysdep.c (init_baud_rate):
11425         * sysdep.c (emacs_get_tty):
11426         * sysdep.c (emacs_set_tty):
11427         * sysdep.c (tty_init_sys_modes_on_device):
11428         * sysdep.c (init_system_name):
11429         * sysdep.c (sys_open):
11430         * sysdep.c (interruptible_open):
11431         * sysdep.c (sys_fopen):
11432         * sysdep.c (sys_mkdir):
11433         * sysdep.c (sys_rename):
11434         * sysdep.c (get_process_times_1):
11435         [1]. [6].
11436
11437         * sysdep.h:
11438         [1].
11439
11440         * sysdir.h:
11441         * sysdir.h (DIRENTRY_NONEMPTY):
11442         [1]. [6].
11443
11444         * sysdll.c (dll_init):
11445         * sysdll.h:
11446         [1].
11447
11448         * sysfile.h:
11449         [1]. [6]. [8].
11450         added text/binary defs.
11451
11452         * sysfloat.h:
11453         [1].
11454
11455         * sysproc.h:
11456         * sysproc.h (EDESTADDRREQ):
11457         * sysproc.h (poll_fds_for_input):
11458         [1]. [6].
11459
11460         * syspwd.h:
11461         [6].
11462
11463         * syssignal.h:
11464         [1].
11465
11466         * systime.h:
11467         [1]. [6].
11468
11469         * systty.h:
11470         [1].
11471
11472         * syswindows.h:
11473         [1].
11474         Always define WIN32_LEAN_AND_MEAN.
11475
11476         * unexcw.c (unexec):
11477         [5].
11478
11479         * unexec.c:
11480         * unexec.c (copy_text_and_data):
11481         * unexec.c (adjust_lnnoptrs):
11482         [1].
11483
11484         * unexnt.c:
11485         * unexnt.c (_start):
11486         [1].
11487
11488 2000-06-07  Ben Wing  <ben@xemacs.org>
11489
11490         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11491         was used only as a model.  We've long since extracted any useful
11492         logic or code out of this. (I just did an exhaustive search.)
11493
11494         * s\msdos.h: Removed.
11495
11496         * s\windows95.h: Removed.
11497
11498 2000-06-10  Ben Wing  <ben@xemacs.org>
11499
11500         * s\cygwin32.h:
11501         [1]. [5].
11502         Don't use extern with fun defs.
11503
11504         * s\mingw32.h:
11505         [1]. [7].
11506         Remove nt\inc include.
11507         Remove getdisk, getdefdir. (The former is unused, the latter
11508         expanded in fileio.h.)
11509
11510         * s\windowsnt.h:
11511         * s\windowsnt.h (WIN32_NATIVE):
11512         * s\windowsnt.h (HAVE_STRCASECMP):
11513         [1]. [7].
11514         Add long comment about preprocessor changes.
11515         Remove getdisk, getdefdir. (The former is unused, the latter
11516         expanded in fileio.h.)
11517
11518 2000-06-10  Ben Wing  <ben@xemacs.org>
11519
11520         * m\arm.h:
11521         * m\delta.h:
11522         * m\intel386.h:
11523         * m\sequent.h:
11524         * m\template.h:
11525         * m\windowsnt.h:
11526         [1].
11527         Remove bogus/unused NO_SOCK_SIGIO.
11528
11529 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11530
11531         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11532         not an Emchar.
11533
11534 2000-06-04  Mike Sperber <mike@xemacs.org>
11535
11536         * casetab.c (set_case_table): For `set-standard-case-table',
11537         actually deposit the new case tables where the rest of XEmacs can
11538         see them.
11539
11540 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11541
11542         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11543
11544 2000-06-05  Ben Wing  <ben@xemacs.org>
11545
11546         * callproc.c (child_setup): Don't do close_load_descs() under
11547         MS Windows.  Put in a comment explaining why.
11548
11549 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11550
11551         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11552         Toolkit shell" which breaks `kill-compilation' on Windows NT
11553         native, retaining STDERR handling improvements.
11554
11555 2000-06-01  Andreas Jaeger  <aj@suse.de>
11556
11557         * s/s390.h: Support for S390, based on a patch by Martin
11558         Schwidefsky <schwidefsky@de.ibm.com>.
11559
11560 2000-05-30  Andy Piper  <andy@xemacs.org>
11561
11562         * window.c (allocate_window):
11563         (make_dummy_parent):
11564         (Fset_window_configuration): use new hashtable type.
11565
11566         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11567         (struct image_instantiator_methods):
11568         (struct Lisp_Image_Instance): make instance geometry signed.
11569
11570         * glyphs.c (instantiate_image_instantiator):
11571         (image_instance_query_geometry):
11572         (image_instance_layout):
11573         (image_instance_layout):
11574         (query_string_geometry):
11575         (text_query_geometry):
11576         (image_instantiate):
11577         (image_instantiate):
11578         (cache_subwindow_instance_in_frame_maybe):
11579         (subwindow_query_geometry): make instance geometry signed.
11580
11581         * glyphs-widget.c (widget_query_geometry):
11582         (widget_layout):
11583         (button_query_geometry):
11584         (tree_view_query_geometry):
11585         (tab_control_query_geometry):
11586         (layout_query_geometry):
11587         (layout_layout):
11588         (native_layout_layout): make instance geometry signed.
11589
11590 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11591
11592         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11593         constant.
11594
11595         * general.c (syms_of_general): Add Qfull_assoc symbol.
11596
11597         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11598         correctly.
11599         (decode_weak_list_type): Decode full-assoc type.
11600         (encode_weak_list_type): Encode full-assoc type.
11601         (Fmake_weak_list): Update doc string.
11602
11603 2000-05-30  Andy Piper  <andy@xemacs.org>
11604
11605         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11606
11607         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11608         (decode_hash_table_weakness): ditto.
11609         (Fhash_table_weakness): ditto.
11610         (Fhash_table_type): ditto.
11611         (finish_marking_weak_hash_tables): ditto.
11612         (hash_table_weakness_validate): ditto.
11613         (syms_of_elhash): ditto.
11614
11615 2000-05-28  Martin Buchholz <martin@xemacs.org>
11616
11617         * XEmacs 21.2.34 is released.
11618
11619 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11620
11621         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11622         start cache.
11623         (updating_line_start_cache): Gone.
11624         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11625         generic code to force a minimum of 1 line laid out in the
11626         CMOTION_DISP case.
11627
11628 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11629
11630         * glyphs.c (instantiate_image_instantiator): Check for initialized
11631         height & width no longer special cases IMAGE_NOTHING.
11632         (nothing_instantiate): Set height and width of instance.
11633
11634 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11635
11636         * unexelf.c (unexec): Search for ".data" section.
11637         Initialize new_data2_offset from old_data_index.
11638         Remove redundant check for ElfW.
11639
11640 2000-05-23  Andy Piper  <andy@xemacs.org>
11641
11642         * glyphs.c (get_image_instantiator_governing_domain): allow more
11643         specific domains as the governing domain rather than expecting an
11644         exact match. This fixes problems with layouts.
11645
11646 2000-05-22  Andy Piper  <andy@xemacs.org>
11647
11648         * redisplay-output.c (compare_runes): check for non-images
11649
11650         * glyphs.c (set_glyph_dirty_p): ditto.
11651         (update_glyph_cachel_data): ditto.
11652
11653         * glyphs-widget.c (layout_post_instantiate): ditto.
11654         (layout_post_instantiate): ditto.
11655
11656         * event-msw.c (mswindows_wnd_proc): warning removal.
11657
11658 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11659
11660         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11661
11662         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11663
11664         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11665
11666         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11667         (mswindows_executable_type): mingw32 now has enough headers for
11668         this to work.
11669
11670 2000-05-20  Andy Piper  <andy@xemacs.org>
11671
11672         * console-msw.c (mswindows_output_last_error): ; -> ,
11673
11674 2000-05-12  Andy Piper  <andy@xemacs.org>
11675
11676         * console-msw.c (FROB): compare ints with ints.
11677
11678 2000-05-11  Andy Piper  <andy@xemacs.org>
11679
11680         * glyphs-x.c (x_finalize_image_instance): make minimal build
11681         happy.
11682
11683 2000-05-20  Ben Wing  <ben@xemacs.org>
11684
11685         * event-Xt.c:
11686         * event-Xt.c (vars_of_event_Xt):
11687         move modifier-keys-are-sticky to event-stream.c.
11688
11689         * event-msw.c:
11690         * event-msw.c (mswindows_enqueue_mouse_button_event):
11691         * event-msw.c (key_needs_default_processing_p):
11692         * event-msw.c (XEMSW_LCONTROL):
11693         * event-msw.c (mswindows_handle_sticky_modifiers):
11694         * event-msw.c (FROB):
11695         * event-msw.c (clear_sticky_modifiers):
11696         * event-msw.c (output_modifier_keyboard_state):
11697         * event-msw.c (output_alt_keyboard_state):
11698         * event-msw.c (mswindows_wnd_proc):
11699         * event-msw.c (mswindows_modifier_state):
11700         * event-msw.c (emacs_mswindows_handle_magic_event):
11701         implement sticky modifiers.
11702
11703         * event-stream.c:
11704         * event-stream.c (vars_of_event_stream):
11705         move modifier-keys-are-sticky here.
11706
11707         * lisp.h:
11708         add CHECK_FUNCTION.
11709
11710         * rangetab.c:
11711         implement map-range-table.
11712
11713
11714 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11715
11716         * redisplay-tty.c (reset_tty_modes):
11717         (tty_redisplay_shutdown): Adjust argument type to
11718         tty_frame_output_end.
11719
11720 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11721
11722         * eval.c (Fbacktrace): Don't output a line with only right
11723         parenthesis.
11724
11725 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11726
11727         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11728         (Fpq_reset_poll): Ditto.
11729
11730 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11731
11732         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11733
11734 2000-05-16  Ben Wing  <ben@xemacs.org>
11735
11736         * buffer.c:
11737         * buffer.c (dfc_convert_to/from_internal_format):
11738         * buffer.c (reinit_vars_of_buffer):
11739         Fix conversion functions to allow reentrancy.
11740
11741         * console-msw.c:
11742         * console-msw.c (mswindows_output_last_error):
11743         New fun, generally useful -- output a human-readable
11744         version of GetLastError() on the console.
11745
11746         * console-msw.h:
11747         * console-msw.h (struct mswindows_frame):
11748         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11749
11750         * console-stream.c (stream_output_begin):
11751         * console-stream.c (stream_output_end):
11752         * console-stream.c (stream_output_vertical_divider):
11753         * console-stream.c (stream_clear_region):
11754         * console-stream.c (stream_flash):
11755         * console-stream.c (console_type_create_stream):
11756         Delete blank stream methods, not needed.
11757
11758         * console.h (struct console_methods):
11759         Split begin/end methods into window and frame.
11760
11761         * event-msw.c:
11762         * event-msw.c (mswindows_handle_paint):
11763         * event-msw.c (output_alt_keyboard_state):
11764         * event-msw.c (mswindows_wnd_proc):
11765         * event-msw.c (vars_of_event_mswindows):
11766         Comment about problems with ignored-expose.
11767         Define mswindows-debug-events; not really implemented.
11768
11769         * frame-msw.c (mswindows_init_frame_1):
11770         random cleanups.
11771
11772         * glyphs-msw.c:
11773         * glyphs-msw.c (begin_defer_window_pos):
11774         * glyphs-msw.c (mswindows_unmap_subwindow):
11775         * glyphs-msw.c (mswindows_map_subwindow):
11776         * glyphs-msw.c (mswindows_resize_subwindow):
11777         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11778
11779         * glyphs.c (make_image_instance_1):
11780         Fix crash.
11781
11782         * gutter.c (Fredisplay_gutter_area):
11783         Use new begin/end methods.
11784
11785         * lisp.h (Dynarr_new2):
11786         New creation fun.
11787
11788         * redisplay-msw.c:
11789         * redisplay-msw.c (mswindows_frame_output_begin):
11790         * redisplay-msw.c (mswindows_frame_output_end):
11791         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11792         New begin/end methods -- handle DeferWindowPos.
11793
11794         * redisplay-output.c (redisplay_move_cursor):
11795         * redisplay-output.c (redraw_cursor_in_window):
11796         * redisplay-output.c (redisplay_update_line):
11797         * redisplay-output.c (redisplay_output_window):
11798         New begin/end methods.
11799
11800         * redisplay-tty.c:
11801         * redisplay-tty.c (tty_frame_output_begin):
11802         * redisplay-tty.c (tty_frame_output_end):
11803         * redisplay-tty.c (console_type_create_redisplay_tty):
11804         New begin/end methods.
11805
11806         * redisplay-x.c:
11807         * redisplay-x.c (x_window_output_begin):
11808         * redisplay-x.c (x_window_output_end):
11809         * redisplay-x.c (console_type_create_redisplay_x):
11810         New begin/end methods.
11811
11812         * redisplay.c (redisplay_frame):
11813         * redisplay.c (Fredisplay_echo_area):
11814         New begin/end methods.
11815         use MAYBE_DEVMETH for clear_frame; it may not exist.
11816
11817         * window.h (WINDOW_XFRAME):
11818         WINDOW_XFOO macros -- get locale and decode struct pointer.
11819
11820
11821 2000-05-12  Ben Wing  <ben@xemacs.org>
11822
11823         * emacs.c:
11824         * emacs.c (ensure_no_quitting_from_now_on):
11825         * emacs.c (fatal_error_signal):
11826         * emacs.c (mswindows_handle_hardware_exceptions):
11827         * emacs.c (main):
11828         * emacs.c (Fkill_emacs):
11829         * emacs.c (shut_down_emacs):
11830         * emacs.c (assert_failed):
11831         various improvements in fatal error handling.
11832
11833         * eval.c:
11834         move preparing_for_armageddon to emacs.c.
11835
11836         * lisp.h:
11837         declare fatal_error_in_progress.
11838
11839         * print.c:
11840         * print.c (std_handle_out_external):
11841         * print.c (std_handle_out_va):
11842         * print.c (stderr_out):
11843         * print.c (stdout_out):
11844         use console under mswin when no standard output.
11845         don't do code conversion during fatal error.
11846
11847         * scrollbar.c (Fscrollbar_page_up):
11848         * scrollbar.c (Fscrollbar_page_down):
11849         fix missing else.  reindent.
11850
11851 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11852
11853         Emergency fix.
11854
11855         * glyphs.h (GLYPH_CACHEL_DESCENT):
11856         (GLYPH_CACHEL_DESCENT):
11857         (GLYPH_CACHEL_DESCENT):
11858         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11859         used in case these are inline functions.
11860         Use more absurd values to error check.
11861
11862         include window.h for error check functions.
11863
11864 2000-05-11  Ben Wing  <ben@xemacs.org>
11865
11866         * cmdloop.c (Freally_early_error_handler):
11867         Display message box under windows; otherwise, message will disappear
11868         before it can be viewed.
11869
11870         * console-msw.c:
11871         * console-msw.c (Fmswindows_message_box):
11872         * console-msw.c (FROB):
11873         * console-msw.c (syms_of_console_mswindows):
11874         Define new fun `mswindows-message-box'.
11875         #### I will merge this into `popup-dialog-box'; just give me
11876         a bit of time.
11877
11878         * general.c:
11879         * general.c (syms_of_general):
11880         Some new symbols used in `mswindows-message-box'.
11881
11882         * glyphs.c:
11883         * glyphs.c (Fset_image_instance_property):
11884         put warning in this fun.
11885
11886         * glyphs.h:
11887         * glyphs.h (GLYPH_CACHEL_WIDTH):
11888         * glyphs.h (GLYPH_CACHEL_ASCENT):
11889         * glyphs.h (GLYPH_CACHEL):
11890         * glyphs.h (GLYPH_CACHEL_GLYPH):
11891         define error-checking versions to try to catch a bug i've seen --
11892         redisplay gets in an infinite loop because the glyph width of the
11893         continuation glyph is 65535.
11894
11895         * lisp.h:
11896         Extern message-box stuff.
11897
11898         * window.c (allocate_window):
11899         * window.c (make_dummy_parent):
11900         * window.c (Fset_window_configuration):
11901         Use EQUAL not EQ for subwindow caches to make them work a bit
11902         better. (Something is still very broken.)
11903
11904
11905 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11906
11907         * glyphs.c (image_instantiate): Suppress gcc warnings.
11908         (Fmake_image_instance): Fix doc string.
11909         * specifier.c (Fmake_specifier): Ditto.
11910
11911 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11912
11913         * paths.h.in (PATH_LOCK): Removed.
11914         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11915         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11916
11917 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11918
11919         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11920         Document (featurep '(and xemacs 21.02)).
11921
11922 2000-05-09  Ben Wing  <ben@xemacs.org>
11923
11924         * buffer.c (complex_vars_of_buffer):
11925         update modeline-format doc.
11926
11927         * device.h:
11928         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11929
11930         * emacs.c:
11931         timeline of all released versions of Emacs, for use in creating
11932         authorship comments and in synching up.
11933
11934         * glyphs-widget.c (image_instantiator_buttons):
11935         * glyphs-widget.c (image_instantiator_edit_fields):
11936         * glyphs-widget.c (image_instantiator_combo_box):
11937         * glyphs-widget.c (image_instantiator_scrollbar):
11938         * glyphs-widget.c (image_instantiator_progress_guage):
11939         * glyphs-widget.c (image_instantiator_tree_view):
11940         * glyphs-widget.c (image_instantiator_tab_control):
11941         * glyphs-widget.c (image_instantiator_labels):
11942         * glyphs-widget.c (image_instantiator_layout):
11943         * glyphs-widget.c (image_instantiator_native_layout):
11944         rename decode_domain method to governing_domain.
11945
11946         * glyphs.c:
11947         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11948         * glyphs.c (add_entry_to_device_ii_format_list):
11949         make sure we don't put an entry more than once into the list.
11950         * glyphs.c (check_instance_cache_mapper):
11951         *************************************************************
11952         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11953         HAVE BEEN GETTING.
11954         *************************************************************
11955         * glyphs.c (get_image_instantiator_governing_domain):
11956         clean up, expand on new concept of governing domain.
11957         * glyphs.c (instantiate_image_instantiator):
11958         * glyphs.c (allocate_image_instance):
11959         use governing_domain instead of cache_domain in naming.
11960         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11961         * glyphs.c (make_image_instance_1):
11962         * glyphs.c (Fmake_image_instance):
11963         allow for any domain (not just device), and process the
11964         governing domain correctly.  very big doc fix.
11965         * glyphs.c (Fimage_instance_domain):
11966         new primitive, to retrieve the governing domain of an image instance.
11967         * glyphs.c (image_instantiate):
11968         use new governing_domain stuff.  this fixes a crash you could get
11969         by instantiating certain widget glyphs in frame locales. (should
11970         signal an error instead of crashing.)
11971         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11972         * glyphs.c (Fglyphp): clean up doc.
11973         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11974         * glyphs.c (syms_of_glyphs):
11975         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11976         * glyphs.c (image_instantiator_format_create): add some comments about
11977         bogus code.
11978         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11979         for current-display-table. (Apparently Hrjove implemented in 1998 a
11980         design I wrote up in 1996, but didn't update the doc string.)
11981
11982         * glyphs.h: clean up a doc string.
11983         * glyphs.h (governing_domain):
11984         * glyphs.h (struct image_instantiator_methods):
11985         changes for governing_domain stuff.
11986
11987         * gutter.c:
11988         * gutter.c (Fgutter_specifier_p):
11989         * gutter.c (Fgutter_size_specifier_p):
11990         * gutter.c (Fgutter_visible_specifier_p):
11991         * objects.c:
11992         * objects.c (Fcolor_specifier_p):
11993         * objects.c (Ffont_specifier_p):
11994         * objects.c (Fface_boolean_specifier_p):
11995         doc strings moved to make-*-specifier.
11996
11997         * redisplay.c (add_disp_table_entry_runes_1):
11998         * redisplay.c (generate_fstring_runes):
11999         * redisplay.c (screen):
12000         add random comments and doc strings.
12001
12002         * specifier.c:
12003         * specifier.c (Fmake_specifier):
12004         major overhaul of this doc string.
12005
12006         * specifier.c (Fvalid_specifier_domain_p):
12007         comment about the bogosity of image instances being domains.
12008         * specifier.c (decode_domain):
12009         now non-static, used in glyphs.c.
12010         * specifier.c (specifier_instance):
12011         comment about the bogosity of image instances being domains.
12012         * specifier.c (Fgeneric_specifier_p):
12013         move doc string to make-generic-specifier.
12014         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12015         rebackslashify.
12016
12017         * specifier.h:
12018         * specifier.h (DOMAIN_FRAME):
12019         * specifier.h (DOMAIN_LIVE_P):
12020         * specifier.h (DOMAIN_XDEVICE):
12021         rebackslashify.
12022         add comments about problems with these macros.
12023         prototype for decode_domain.
12024
12025         * toolbar.c:
12026         * toolbar.c (Ftoolbar_specifier_p):
12027         move doc string to `make-toolbar-specifier'.
12028
12029         * window.c (window_unmap_subwindows_cache_mapper):
12030         *************************************************************
12031         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12032         HAVE BEEN GETTING.
12033         *************************************************************
12034
12035 2000-05-09  Andy Piper  <andy@xemacs.org>
12036
12037         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12038
12039         * window.c (Fset_window_configuration): reset the frame subwindow
12040         cache and re-initialize the window subwindow caches.
12041
12042         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12043
12044 2000-05-09  Ben Wing  <ben@xemacs.org>
12045
12046         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12047         DWORD.
12048
12049 2000-04-26  Mike Woolley  <mike@bulsara.com>
12050
12051         * ntheap.c: Changed recreate_heap to limit the amount reserved
12052         for the heap to that which is actually available. Also now
12053         displays a message box (with some dignostics) in the event that
12054         it still can't start.
12055
12056 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12057
12058         * callproc.c (Fold_call_process_internal): GCPRO path
12059
12060 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12061
12062         Patch by Bill Perry.
12063
12064         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12065         back data instead of #ifdef.
12066         (Fscrollbar_page_down): ditto.
12067
12068 2000-05-07  Ben Wing  <ben@xemacs.org>
12069
12070         * buffer.h:
12071         Kludge for defining Qmswindows_tstr.
12072
12073         * nt.c:
12074         * nt.c (open_input_file):
12075         * nt.c (open_output_file):
12076         * nt.c (rva_to_section):
12077         * nt.c (mswindows_executable_type):
12078         Move all memory-mapped-file routines here (some were in unexnt.c,
12079         which is bad because they are used by process-nt.c, and unexnt
12080         won't be around when portable dumping).  Synched the above routines
12081         with FSF 20.6.
12082
12083         * nt.h:
12084         Removed ifdef'd out bogus code.
12085         Fixed some prototypes.
12086
12087         * nt.h (file_data):
12088         * nt.h (OFFSET_TO_RVA):
12089         * nt.h (RVA_TO_OFFSET):
12090         * nt.h (RVA_TO_PTR):
12091         Moved the memory-mapped-file structures, macros and prototypes
12092         here, to parallel nt.c.  ntheap.h should really be removed
12093         entirely, and it's a non-portable-dumper specific file.
12094
12095         * ntheap.h (round_to_next):
12096         Moved the memory-mapped-file structures, macros and prototypes
12097         to nt.h.
12098
12099         * ntproc.c (compare_env):
12100         Moved rva_to_section and mswindows_executable_type to nt.c.
12101         Moved compare_env to process-nt.c.
12102         ntproc.c will die, one day.
12103
12104         * ntproc.c (sys_spawnve):
12105         Account for win32_ -> mswindows_.
12106
12107         * process-nt.c:
12108         * process-nt.c (struct nt_process_data):
12109         * process-nt.c (ensure_console_window_exists):
12110         * process-nt.c (compare_env):
12111         * process-nt.c (nt_create_process):
12112         * process-nt.c (nt_kill_process_by_pid):
12113         * process-nt.c (syms_of_process_nt):
12114         * process-nt.c (vars_of_process_nt):
12115         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12116         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12117         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12118         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12119         Move compare_env here from ntproc.c.
12120
12121         * process.c (Fprocess_send_region):
12122         Takes an optional fourth argument, BUFFER, which should fix some
12123         problems with call-process.
12124
12125         * syscommctrl.h:
12126         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12127
12128         * syswindows.h:
12129         Move ICC_BAR_CLASSES to syscommctrl.h.
12130         Add preliminary macros for MSWindows/Mule.  More to come.
12131
12132         * unexnt.c:
12133         * unexnt.c (unexec):
12134         open_output_file moved to nt.c.
12135
12136
12137 2000-05-05  Andy Piper  <andy@xemacs.org>
12138
12139         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12140         instance from the frame cache also since GC may catch up too late
12141         to make frame deletion sane.
12142
12143 2000-05-04  Andy Piper  <andy@xemacs.org>
12144
12145         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12146         (x_finalize_image_instance): ungcpro on deletion.
12147
12148         * glyphs.c (image_instantiator_format_create): give pointers a
12149         query geometry method so that the geometry is at least set.
12150
12151         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12152         initialize layouts if using widgets.
12153
12154 2000-05-03  Andy Piper  <andy@xemacs.org>
12155
12156         * nt.c: remove bogus reference to sysmmsystem.h
12157
12158         * gui-x.c (popup_selection_callback): fix no selection abort.
12159
12160 2000-05-02  Andy Piper  <andy@xemacs.org>
12161
12162         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12163         (mswindows_widget_instantiate): ditto.
12164
12165         * glyphs-widget.c (initialize_widget_image_instance): initialize
12166         children correctly.
12167         (widget_instantiate): cope with children and items in the same
12168         instance.
12169
12170         * glyphs.c (mark_image_instance): cope with children as a first
12171         class member.
12172         (image_instance_equal): ditto.
12173         (image_instance_hash): ditto.
12174         (image_instance_changed): ditto.
12175
12176 2000-04-30  Andy Piper  <andy@xemacs.org>
12177
12178         * glyphs.c (subwindow_query_geometry): new function. Return some
12179         defaults.
12180         (subwindow_instantiate): don't assign dimensions if none have been
12181         given.
12182         (image_instantiator_format_create): add subwindow_query_geometry.
12183         (print_image_instance): cope with layouts as widgets.
12184
12185 2000-04-29  Andy Piper  <andy@xemacs.org>
12186
12187         * frame.c (delete_frame_internal): call
12188         free_frame_subwindow_instance_cache so that all subwindows are
12189         finalized before their parent.
12190         (mark_frame): remove subwindow_cachels.
12191         (Fmake_frame): remove subwindow_cachel manipulation.
12192         (allocate_frame_core): subwindow_instance_cache is a weak list.
12193         (delete_frame_internal): set subwindow_instance_cache to nil.
12194
12195         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12196         finalization safe.
12197         (mswindows_finalize_image_instance): use the device
12198         not the domain as the domain may have died already.
12199
12200         * glyphs-x.c (x_finalize_image_instance): ditto.
12201         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12202         HEIGHT.
12203
12204         * redisplay-output.c (redisplay_unmap_subwindows): update for
12205         subwindow instance cache as a weak list.
12206         (redisplay_unmap_subwindows_maybe): ditto.
12207         (redisplay_unmap_subwindows_except_us): ditto.
12208
12209         * glyphs.c (unmap_subwindow): error checking will check the domain
12210         so don't deal with it here. Don't use cachels anymore.
12211         (map_subwindow): ditto.
12212         (update_subwindow_cachel_data): remove old accessor names.
12213         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12214         (Fresize_subwindow): don't update cachel.
12215         (mark_subwindow_cachels):
12216         (update_subwindow_cachel_data):
12217         (add_subwindow_cachel):
12218         (get_subwindow_cachel_index):
12219         (update_subwindow_cachel):
12220         (reset_subwindow_cachels):
12221         (mark_subwindow_cachels_as_not_updated): deleted.
12222         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12223         subwindow instance to the frame cache.
12224         (find_matching_subwindow): update for subwindow instance cache as
12225         a weak list.
12226         (update_widget_instances): ditto.
12227         (image_instance_type_to_mask):inlined.
12228         (free_frame_subwindow_instance_cache): new function. finalize all
12229         subwindows that are instantiated.
12230
12231         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12232         of cachel information.
12233         (IMAGE_INSTANCE_DISPLAY_X):
12234         (IMAGE_INSTANCE_DISPLAY_Y):
12235         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12236         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12237         (XIMAGE_INSTANCE_DISPLAY_X):
12238         (XIMAGE_INSTANCE_DISPLAY_Y):
12239         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12240         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12241         remove subwindow_cachel structure and function references.
12242         (image_instance_type_to_mask): inline from glyphs.c
12243
12244         * redisplay.c (redisplay_frame): remove subwindow_cachel
12245         references.
12246
12247         * frame.h (struct frame): remove subwindow_cachels.
12248         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12249
12250         * frameslots.h: add subwindow_instance_cache.
12251
12252         * window.c (replace_window): check subwindow cache of replacement.
12253         (window_unmap_subwindows_cache_mapper):
12254         (window_unmap_subwindows): new functions. Unmap all subwindows
12255         cached on this window.
12256         (mark_window_as_deleted): unmap all subwindows.
12257
12258 2000-04-27  Andy Piper  <andy@xemacs.org>
12259
12260         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12261
12262         * glyphs-widget.c (widget_layout): return something.
12263         (layout_layout): return something. Fail if not initialized.
12264         (layout_query_geometry): ditto.
12265         (image_instantiator_native_layout): new function. Initialized the
12266         native layout type.
12267         (widget_instantiate): don't do layout stuff here.
12268
12269         * glyphs.c (instantiate_image_instantiator): reorded calling or
12270         instantiate and post_instantiate with layout in between.
12271         (image_instance_layout): be more selective about deciding whether
12272         the layout has been done or not.
12273
12274         * glyphs.h (struct image_instantiator_methods): return a value
12275         from layout_method.
12276
12277 2000-04-26  Andy Piper  <andy@xemacs.org>
12278
12279         * glyphs.c (allocate_image_instance): make initial width and
12280         height unspecified. Set initialized to 0.
12281
12282         * syscommctrl.h new file. Encapsulates commctrl.h.
12283
12284         * syswindows.h new file. Encapsulates windows.h.
12285
12286         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12287         * nt.c: ditto.
12288         * console-msw.h: ditto.
12289
12290         * redisplay-tty.c (tty_output_display_block): remove layout references.
12291
12292         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12293         window handle rather than just the frame.
12294
12295         * glyphs.c (mark_image_instance): remove layout references.
12296         (print_image_instance): ditto.
12297         (image_instance_equal): ditto.
12298         (image_instance_hash): ditto.
12299         (decode_image_instance_type): ditto.
12300         (encode_image_instance_type): ditto.
12301         (image_instantiate): ditto.
12302         (allocate_glyph): ditto.
12303         (Fimage_instance_height): ditto.
12304         (Fimage_instance_width): ditto.
12305         (update_subwindow): ditto.
12306
12307         * redisplay-x.c (x_output_display_block): recode for layouts as
12308         widgets.
12309
12310         * redisplay-output.c (redisplay_output_layout): recode for layouts
12311         as widgets.
12312         (compare_runes): remove layout references.
12313
12314         * redisplay-msw.c (mswindows_output_display_block): recode for
12315         layouts as widgets.
12316
12317         * glyphs-widget.c (image_instantiator_layout): remove
12318         layout_possible_dest_types.
12319         (layout_possible_dest_types): deleted.
12320
12321         * glyphs.h (image_instance_type): remove layout references.
12322         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12323         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12324         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12325
12326 2000-04-25  Andy Piper  <andy@xemacs.org>
12327
12328         * glyphs-widget.c (image_instantiator_buttons):
12329         (image_instantiator_edit_fields):
12330         (image_instantiator_combo_box):
12331         (image_instantiator_scrollbar):
12332         (image_instantiator_progress_guage):
12333         (image_instantiator_tree_view):
12334         (image_instantiator_tab_control):
12335         (image_instantiator_labels):
12336         (image_instantiator_layout): call default post_instantiate method.
12337         (widget_post_instantiate): new function. Simply lays out the
12338         widgets.
12339
12340         * glyphs.h (struct image_instantiator_methods): add
12341         post_instantiate method.
12342
12343         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12344         method calls.
12345
12346 2000-04-23  Andy Piper  <andy@xemacs.org>
12347
12348         * glyphs.h (struct image_instantiator_methods): add
12349         decode_domain_method.
12350         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12351         derived from the domain.
12352         (IMAGE_INSTANCE_FRAME): new accessor.
12353         (XIMAGE_INSTANCE_FRAME): ditto.
12354
12355         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12356         instead of _SUBWINDOW_FRAME.
12357         (finalize_image_instance): ditto.
12358         (Fimage_instance_foreground): ditto.
12359         (Fimage_instance_background): ditto.
12360         (image_instantiate): ditto.
12361         (update_subwindow_cachel): ditto.
12362         (update_subwindow): ditto.
12363         (unmap_subwindow): ditto.
12364         (map_subwindow): ditto
12365         (subwindow_instantiate): ditto.
12366         * glyphs-msw.c (mswindows_update_widget): ditto.
12367         (mswindows_progress_gauge_instantiate): ditto.
12368         (mswindows_tab_control_update): ditto.
12369         * glyphs-x.c (x_update_widget): ditto.
12370         (x_widget_instantiate): ditto.
12371         (x_tab_control_instantiate): ditto.
12372         (x_tab_control_update): ditto.
12373         * event-msw.c (mswindows_wnd_proc): ditto
12374
12375         * glyphs-widget.c (image_instantiator_layout): use
12376         subwindow_decode_domain.
12377         (image_instantiator_buttons): ditto.
12378         (image_instantiator_edit_fields): ditto.
12379         (image_instantiator_combo_box): ditto.
12380         (image_instantiator_scrollbar): ditto.
12381         (image_instantiator_progress_guage): ditto.
12382         (image_instantiator_tree_view): ditto.
12383         (image_instantiator_tab_control): ditto.
12384         (image_instantiator_labels): ditto.
12385         (image_instantiator_layout): ditto.
12386
12387         * glyphs.c: add instance error checking to many functions.
12388         (instantiate_image_instantiator): decode device from cache_domain.
12389         (image_instantiate): partially rewrite by using
12390         decode_image_instantiator_domain to determine what domain the
12391         instance needs to be cached in.
12392         (decode_image_instantiator_domain): new function. Determine what
12393         domain the image needs to be cached in.
12394         (check_window_subwindow_cache): new error checking function.
12395         (check_instance_cache_mapper): ditto.
12396         (check_image_instance_structure): ditto.
12397         (subwindow_decode_domain): new function. Encodes a window as a
12398         subwindow's cache domain.
12399         (image_instantiator_format_create): use it for text and
12400         subwindows.
12401
12402 2000-04-21  Andy Piper  <andy@xemacs.org>
12403
12404         * glyphs.c (image_instance_device): new function.
12405         (image_instance_frame): new function.
12406         (image_instance_window): new function.
12407         (image_instance_live_p): new function.
12408
12409         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12410         cache to nil.
12411
12412         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12413         (IMAGE_INSTANCE_DOMAIN): new accessor.
12414         (XIMAGE_INSTANCE_DOMAIN): ditto.
12415
12416         * glyphs-x.c (x_finalize_image_instance): device->domain.
12417
12418         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12419         (mswindows_finalize_image_instance): ditto.
12420
12421         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12422         (gif_instantiate): ditto.
12423         (png_instantiate): ditto.
12424         (tiff_instantiate): ditto.
12425
12426         * glyphs.c (instantiate_image_instantiator): use domain rather
12427         than device.
12428         (mark_image_instance): device -> domain.
12429         (print_image_instance): ditto.
12430         (finalize_image_instance): ditto.
12431         (image_instance_equal): ditto.
12432         (allocate_image_instance): ditto.
12433         (Fcolorize_image_instance): ditto.
12434         (query_string_geometry): ditto.
12435         (image_instantiate): ditto
12436         (query_string_font): ditto.
12437         (image_instantiate): ditto.
12438         (update_subwindow): ditto.
12439         (unmap_subwindow): ditto.
12440         (map_subwindow): ditto.
12441         (subwindow_instantiate): ditto.
12442
12443         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12444         (DOMAIN_FRAME): ditto.
12445         (DOMAIN_WINDOW): ditto.
12446         (DOMAIN_LIVE_P): ditto.
12447         (XDOMAIN_DEVICE): ditto.
12448         (XDOMAIN_FRAME): ditto.
12449         (XDOMAIN_WINDOW): ditto.
12450
12451         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12452         a valid specifier domain.
12453
12454 2000-04-19  Andy Piper  <andy@xemacs.org>
12455
12456         * glyphs-widget.c (syms_of_glyphs_widget): remove
12457         widget-callback-current-channel.
12458         (vars_of_glyphs_widget): ditto.
12459         * glyphs.h: ditto
12460
12461         * gui.c (get_gui_callback): revert to previous behaviour.
12462
12463 2000-04-18  Andy Piper  <andy@xemacs.org>
12464
12465         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12466         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12467         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12468
12469         * glyphs.c (image_instance_equal): add margin_width.
12470         (image_instance_hash): ditto.
12471
12472         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12473         (layout_query_geometry): ditto.
12474         (layout_layout): ditto.
12475         (syms_of_glyphs_widget): add margin-width.
12476         (image_instantiator_layout): allow margin-width.
12477
12478         * glyphs.c (update_widget_instances): make a normal function.
12479         (syms_of_glyphs): remove Qupdate_widget_instances.
12480         * glyphs.h: ditto.
12481
12482         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12483         so that we don't corrupt ideas about the last event or
12484         command. Remove widget-callback-current-channel fiddling.
12485         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12486
12487 2000-05-01  Martin Buchholz <martin@xemacs.org>
12488
12489         * XEmacs 21.2.33 is released.
12490
12491 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12492
12493         * make-src-depend: Allow dots in header file name.
12494
12495 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12496
12497         * mule-charset.h (struct charset_lookup): Add
12498         next_allocated_1_byte_leading_byte and
12499         next_allocated_2_byte_leading_byte.
12500         * mule-charset.c: Move above two variables so that those values
12501         will be dumped.
12502
12503 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12504
12505         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12506         when string length is zero.
12507         (find_charsets_in_emchar_string): Ditto.
12508
12509 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12510
12511         * lisp.h: extern Qdialog and Qmenubar.
12512
12513         * gui-x.c: added events.h.
12514                 also fixed typo which made the file uncompilable.
12515
12516         * general.c: Added Qmenubar and Qdialog
12517
12518 2000-04-28  Ben Wing  <ben@xemacs.org>
12519
12520         * frame-msw.c (mswindows_init_frame_1):
12521         * frame-msw.c (mswindows_mark_frame):
12522         * event-msw.c (mswindows_enqueue_dispatch_event):
12523         * console-msw.h:
12524         * console-msw.h (struct mswindows_frame):
12525         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12526         there are now three hash tables for callbacks.
12527         mswindows_enqueue_dispatch_event is no longer static.
12528
12529         * dialog-x.c (maybe_run_dbox_text_callback):
12530         * dialog-x.c (dbox_descriptor_to_widget_value):
12531         switch to new cons3 form for callbacks.
12532
12533         * glyphs-msw.c (mswindows_register_gui_item):
12534         * glyphs-msw.c (mswindows_widget_instantiate):
12535         * glyphs-msw.c (add_tree_item):
12536         * glyphs-msw.c (add_tab_item):
12537         new image instance parameter, so it can be passed to callback-ex.
12538         respect :callback-ex as well as :callback.
12539
12540         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12541         add :callback-ex.
12542
12543         * glyphs.c (print_image_instance):
12544         prettify, e.g. now prints widget type.
12545
12546         * gui-x.h:
12547         certain funs have new image instance parameter.
12548
12549         * gui.c:
12550         * gui.c (get_gui_callback):
12551         * gui.c (gui_item_add_keyval_pair):
12552         * gui.c (gui_item_init):
12553         * gui.c (gui_add_item_keywords_to_plist):
12554         * gui.c (mark_gui_item):
12555         * gui.c (gui_item_hash):
12556         * gui.c (gui_item_equal):
12557         * gui.c (copy_gui_item):
12558         * gui.c (syms_of_gui):
12559         recognize callback-ex in a number of places.
12560         also, fix the annoying "can't get out of yes-no dialog" bug.
12561
12562         * gui.h:
12563         * gui.h (struct Lisp_Gui_Item):
12564         recognize callback-ex in a number of places.
12565
12566         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12567         new parameter in button_item_to_widget_value.
12568
12569         * glyphs-x.c (x_update_widget):
12570         * glyphs-x.c (x_button_instantiate):
12571         * glyphs-x.c (x_button_update):
12572         * glyphs-x.c (x_progress_gauge_instantiate):
12573         * glyphs-x.c (x_edit_field_instantiate):
12574         * glyphs-x.c (x_combo_box_instantiate):
12575         * glyphs-x.c (x_tab_control_instantiate):
12576         * glyphs-x.c (x_label_instantiate):
12577         new image instance parameter in various places.
12578
12579         * event-Xt.c:
12580         * event-Xt.c (enqueue_Xt_dispatch_event):
12581         this fun gets exported.
12582
12583         * gui-msw.c:
12584         * gui-msw.c (mswindows_handle_gui_wm_command):
12585         handle both :callback and :callback-ex, and generate our own
12586         event because it's one of the callback-ex arguments.
12587
12588         * gui-x.c:
12589         * gui-x.c (popup_selection_callback):
12590         handle both :callback and :callback-ex, and generate our own
12591         event because it's one of the callback-ex arguments.
12592         * gui-x.c (button_item_to_widget_value):
12593         * gui-x.c (gui_items_to_widget_values_1):
12594         * gui-x.c (gui_item_children_to_widget_values):
12595         * gui-x.c (gui_items_to_widget_values):
12596         new image instance parameter in various places.
12597
12598         * fns.c (Freplace_list):
12599         fix small typo in doc string.
12600
12601         * lisp.h:
12602         declare enqueue_Xt_dispatch_event.
12603
12604 2000-04-28  Ben Wing  <ben@xemacs.org>
12605
12606         * buffer.c:
12607         * buffer.c (Frecord_buffer):
12608         * buffer.c (syms_of_buffer):
12609         delete record-buffer-hook.
12610
12611         * fns.c:
12612         * fns.c (Freplace_list):
12613         * fns.c (syms_of_fns):
12614         new primitive replace-list.
12615
12616         * frameslots.h:
12617         slot for old buffer-alist.
12618
12619         * lisp.h:
12620         exfun replace-list.
12621
12622         * redisplay.c:
12623         * redisplay.c (redisplay_frame):
12624         * redisplay.c (syms_of_redisplay):
12625         * redisplay.c (vars_of_redisplay):
12626         new hook buffer-list-changed-hook.
12627         call it.
12628
12629 2000-04-27  Ben Wing  <ben@xemacs.org>
12630
12631         * extents.h: extern in_modeline_generation.
12632
12633         * redisplay.c (generate_formatted_string_db): set
12634         in_modeline_generation.
12635
12636         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12637         flags if in modeline generation.  otherwise frame-modified-tick
12638         is ticked far too often.
12639         Declare in_modeline_generation.
12640
12641 2000-04-26  Ben Wing  <ben@xemacs.org>
12642
12643         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12644         option.
12645         (vars_of_emacs): add quick-build as an error-checking option.
12646         A bit kludgy, but there doesn't seem much point in creating
12647         a real var for this.
12648
12649         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12650
12651 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12652
12653         * redisplay.h (struct display_line): Add a new variable,
12654         line_continuation.
12655
12656         * redisplay.c (create_text_block): Set dl->line_continuation if
12657         the line continues.
12658         (create_string_text_block): Ditto.
12659         (regenerate_window_incrementally): Use line_continuation instead
12660         of searching continuation glyph.
12661         (add_margin_runes): Call add_glyph_rune.
12662         (add_glyph_rune): Handle margin glyph.
12663
12664 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12665
12666         * filelock.c (fill_in_lock_file_name):
12667         ANSIfy.
12668         Check for IS_ANY_SEP instead of '/'.
12669         (lock_file_1):
12670         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12671         Never check errno without first seeing that system call failed.
12672         (unlock_file): Add GCPRO.
12673         (Flock_buffer): Fix docstring.
12674         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12675
12676 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12677
12678         * sysdep.c (get_pty_max_bytes):
12679         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12680         strings longer than 252 bytes.
12681
12682         * md5.c: Unconditionally include ANSI header <limits.h>
12683
12684         * glyphs-x.c (convert_EImage_to_XImage):
12685         * lisp-union.h (union Lisp_Object):
12686         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12687
12688 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12689
12690         * filelock.c (current_lock_owner): Remove unused variable o, p.
12691
12692 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12693
12694         * callint.c: Remove multiply defined symbol Qlet
12695         (syms_of_callint): ditto.
12696
12697 2000-04-14  Andy Piper  <andy@xemacs.org>
12698
12699         * general.c (syms_of_general): add last-command, this-command, let
12700         and funcall.
12701
12702         * lisp.h: declare various symbols.
12703
12704         * glyphs.h: declare Qwidget_callback_current_channel;
12705
12706         * glyphs-widget.c (syms_of_glyphs_widget): add
12707         Qgui_callback_current_channel.
12708         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12709
12710         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12711         widget-callback-current-channel when invoking the interactive
12712         arg. Also bind last-command and next-command when invoking the
12713         widget updates.
12714         * gui-x.c (popup_selection_callback): ditto.
12715
12716         * gui.c (get_gui_callback): massage args so that we are always
12717         calling eval. This allows us to add our own variable bindings
12718         outside.
12719
12720         * glyphs-x.c (x_button_instantiate): use
12721         gui_items_to_widget_values since this is GC safe.
12722         (x_progress_gauge_instantiate): ditto.
12723         (x_edit_field_instantiate): ditto.
12724         (x_label_instantiate): ditto.
12725
12726         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12727         (emacs_Xt_event_widget_focus_out): new function
12728         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12729         focus.
12730         (emacs_Xt_event_add_widget_actions): new function. add focus
12731         functions as actions.
12732         (init_event_Xt_late): use it.
12733
12734 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12735
12736         * event-stream.c (Fdispatch_event): Doc fix.
12737
12738 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12739
12740         * postgresql.c: Remove all references to PQsetenv*.
12741
12742         * postgresql.h: Remove references to PGsetenvHandler object.
12743         * lrecord.h (lrecord_type): Ditto.
12744
12745 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12746
12747         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12748         real_heigh and real_width members, and accessor macros for these.
12749
12750         * glyphs-msw.c (init_image_instance_geometry): New function.
12751         (init_image_instance_from_dibitmap): Use it.
12752         (mswindows_resource_instantiate): Use it.
12753         (init_image_instance_from_xbm_inline): Use it.
12754         (mswindows_initialize_image_instance_mask): Use real bitmap
12755         geometry.
12756         (mswindows_create_resized_bitmap): Ditto.
12757         (mswindows_create_resized_mask): Ditto.
12758
12759         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12760         and bitmap to their surface size.
12761
12762 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12763
12764         * process-unix.c (unix_send_process): Guard against process MIA
12765         after Faccept_process_output.
12766
12767 2000-04-11  Ben Wing  <ben@xemacs.org>
12768
12769         * eval.c (unbind_to_hairy): fix brokenness introduced by
12770         nanosecond speed improvements.
12771
12772 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12773
12774         * sunplay.c (init_device): To play sounds correctly, the device
12775         apparently needs to be initialized at least once by XEmacs.  Make
12776         it so.
12777
12778 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12779
12780         * redisplay.c (add_margin_runes): Add text image glyph
12781           handling.
12782
12783 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12784
12785         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12786         gcc is newer than 2.5.
12787
12788 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12789
12790         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12791
12792         * fns.c (size_bit_vector):
12793         * alloc.c (size_vector):
12794         (make_vector_internal):
12795         (make_bit_vector_internal):
12796         (sweep_bit_vectors_1):
12797         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12798
12799 2000-04-06  Andy Piper  <andy@xemacs.org>
12800
12801         * gmalloc.c (malloc): undo previous change.
12802         (malloc): ditto.
12803         (free): ditto.
12804         (realloc): ditto.
12805
12806 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12807
12808         * line-number.c (buffer_line_number): Revert to former version.
12809
12810 2000-04-06  Andy Piper  <andy@xemacs.org>
12811
12812         * gmalloc.c (malloc): add error checking.
12813         (malloc): ditto.
12814         (free): ditto.
12815         (realloc): ditto.
12816
12817         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12818         button_item_to_widget_value arg.
12819
12820         * glyphs-x.c (x_button_instantiate): add extra
12821         button_item_to_widget_value arg.
12822         (x_progress_gauge_instantiate): ditto.
12823         (x_edit_field_instantiate): ditto.
12824         (x_label_instantiate): ditto.
12825
12826         * gui-x.c (gui_items_to_widget_values_1): add extra
12827         button_item_to_widget_value arg.
12828         (button_item_to_widget_value): add extra menu_item_p arg.
12829
12830         * gui-x.h: change signature of button_item_to_widget_value.
12831
12832         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12833         button_item_to_widget_value arg.
12834
12835 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12836
12837         * buffer.h (struct buffer): auto_save_modified should be long.
12838
12839 2000-04-05  Andy Piper  <andy@xemacs.org>
12840
12841         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12842         type.
12843         (button_query_geometry): give a little more room so that athena
12844         buttons fit.
12845
12846 2000-04-05  Andy Piper  <andy@xemacs.org>
12847
12848         * faces.c (complex_vars_of_faces): The widget face should inherit
12849         the font of the gui-element face.
12850
12851 2000-04-04  Andy Piper  <andy@xemacs.org>
12852
12853         * glyphs-x.c (x_button_update): new function. unconditionally
12854         update a button's state when the instance is dirty.
12855         (image_instantiator_format_create_glyphs_x): add x_button_update.
12856         (x_widget_instantiate): remove old resize cruft.
12857
12858 2000-04-02  Andy Piper  <andy@xemacs.org>
12859
12860         * frame.c (change_frame_size_1): The introduction of gutters means
12861         that we need to allow 0 as a potential frame dimension.
12862
12863 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12864
12865         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12866         image glyph if allow_cursor.
12867         (add_hscroll_rune): Don't allow cursor to border glyph.
12868         (create_text_block): Ditto.
12869
12870         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12871         text not in buffer.
12872         (redisplay_output_layout): Call ensure_face_cachel_complete for
12873         text image glyph.
12874
12875
12876 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12877
12878         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12879
12880         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12881         not in buffer
12882
12883         * redisplay-tty.c (tty_output_display_block): Delete the routine
12884         for text image glyph
12885         * redisplay-x.c (x_output_display_block): ditto
12886         * redisplay-msw.c (mswindows_output_display_block): ditto
12887
12888 2000-02-02  Mike Alexander  <mta@arbortext.com>
12889
12890         Note: Some of these were committed by accident as part of other
12891         patches.
12892
12893         * regex.c (regex_compile): Avoid compiler warnings.
12894
12895         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12896
12897         * nt.h: Declare term_ntproc correctly.
12898
12899         * nt.c: Remove incorrect declaration of get_home_directory which
12900         is declared correctly in lisp.h.
12901
12902         * keymap.c (get_keyelt): Avoid compiler warnings.
12903         (raw_lookup_key_mapper): Avoid compiler warnings.
12904
12905         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12906
12907         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12908
12909         * filemode.c (mode_string): Avoid compiler warnings.
12910
12911         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12912         avoid warning.
12913
12914         * events-mod.h: Undef some things that winuser.h defines differently.
12915
12916         * data.c (Faset): Avoid compiler warnings.
12917
12918         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12919
12920 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12921
12922         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12923         Fall through to simple beep on error.
12924         Replace "extern" by real header file.
12925
12926         * linuxplay.c: Use nativesound.h
12927         (play_sound_data): Return error code. Be less verbose on error.
12928
12929         * sunplay.c: Use nativesound.h
12930         (play_sound_data): Return error code. Be less verbose on error.
12931
12932         * ntplay.c: Use nativesound.h
12933         (play_sound_data): Return fake error code
12934
12935         * sgiplay.c: Use nativesound.h
12936         (play_sound_data): Return error code
12937
12938         * hpplay.c: Use nativesound.h, partially implement
12939         new error code. Break compilation until finished.
12940         (play_sound_data): error code.
12941
12942         * nativesound.h (play_sound_file):
12943           (play_sound_data): Prototype in new header.
12944
12945 2000-03-31  Andy Piper  <andy@xemacs.org>
12946
12947         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12948         for toggle and radio buttons.
12949         (image_instantiator_buttons): use it.
12950
12951 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12952
12953         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12954         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12955         found. Scrollbar event probably belonged to some old config.
12956
12957 2000-03-31  Andy Piper  <andy@xemacs.org>
12958
12959         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12960         than 1.
12961         (initialize_widget_image_instance): default layout to
12962         LAYOUT_HORIZONTAL rather than 0.
12963         (widget_instantiate): reverse the item list at the end rather than
12964         every iteration.
12965         (layout_layout): re-code for the border text at the front of the
12966         item list rather than at the end.
12967         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12968         provided by the user.
12969         (widget_query_geometry): comment.
12970
12971 2000-03-30  Andy Piper  <andy@xemacs.org>
12972
12973         * glyphs-widget.c (image_instantiator_layout): allow standard
12974         widget keywords in layouts.
12975
12976         * gutter.c (output_gutter): cope with nil gutter contents.
12977
12978         * frame.c (Fset_frame_properties): add gutter docs.
12979
12980 2000-03-29  Andy Piper  <andy@xemacs.org>
12981
12982         * toolbar-msw.c (TBSTYLE_FLAT): add.
12983         (mswindows_output_toolbar): minor fiddling.
12984
12985 2000-03-29  Andy Piper  <andy@xemacs.org>
12986
12987         * gutter.c (output_gutter): force gutter size recalculation if
12988         what we are trying to display won't fit.
12989         (update_gutter_geometry): new function. A per-gutter version of
12990         update_frame_gutter_geometry.
12991         (update_frame_gutter_geometry): use it.
12992         (redraw_exposed_gutter): add extra debugging output.
12993
12994 2000-03-28  Mike Alexander  <mta@arbortext.com>
12995
12996         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12997         (pdump_file_unmap): Implement it on Windows
12998         (pdump_file_get): Save alocated handles for pdump_file_unmap
12999
13000 2000-03-28  Andy Piper  <andy@xemacs.org>
13001
13002         * gui.c (get_gui_callback): treat Quit specially.
13003
13004 2000-03-27  Andy Piper  <andy@xemacs.org>
13005
13006         * glyphs.c (image_instantiate): be careful to check in the same
13007         way we assigned.
13008
13009 2000-03-27  Didier Verna  <didier@xemacs.org>
13010
13011         * config.h.in: define the proper SMART_INCLUDE macro.
13012         handle renaming of `foo_h_path' to `foo_h_file'.
13013
13014         * database.c: ditto.
13015
13016         * emacs.c: ditto.
13017
13018         * linuxplay.c: ditto.
13019
13020         * terminfo.c: ditto.
13021
13022         * tooltalk.h: ditto.
13023
13024 2000-03-27  Andy Piper  <andy@xemacs.org>
13025
13026         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13027         gets updated whenever the face might have changed.
13028
13029 2000-03-26  Mike Alexander  <mta@arbortext.com>
13030
13031         * dumper.c (pdump_resource_free): Fix the comment.
13032
13033 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13034
13035         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13036
13037 2000-03-22  Mike Alexander  <mta@arbortext.com>
13038
13039         * dumper.c: Include Windows headers on Windows
13040         (pdump_resource_free): Add a body to the function
13041         (pdump_load): exe_name -> exe_path and add some comments.
13042
13043 2000-03-25  Mike Alexander  <mta@arbortext.com>
13044
13045         * gui.c (copy_gui_item_tree): Return a value in all cases
13046
13047 2000-03-21  Didier Verna  <didier@xemacs.org>
13048
13049         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13050         lwlib/config.h.in.
13051         (SMART_INCLUDE): new macro.
13052         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13053         the proper location.
13054
13055         * postgresql.c: use it.
13056
13057         * inline.c: ditto.
13058
13059 2000-03-24  Andy Piper  <andy@xemacs.org>
13060
13061         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13062         do this.
13063
13064 2000-03-24  Andy Piper  <andy@xemacs.org>
13065
13066         * redisplay-output.c (compare_runes): use image_instance_changed
13067         to detect changes. Do not depend on glyphs_changed, only depend on
13068         dirtiness.
13069          (redisplay_output_layout): add debug messages.
13070         (compare_runes): ditto.
13071
13072         * glyphs.h: declare new functions.
13073         (struct Lisp_Image_Instance): remove percent and associated
13074         accessors.
13075
13076         * gui.h: declare new copying functions.
13077
13078         * gui.c (copy_gui_item_tree): new function.
13079         (copy_gui_item): new function.
13080         (gui_item_id_hash): revert to standard hash.
13081         (gui_item_hash): ditto.
13082         (gui_item_hash_internal): deleted.
13083         (mark_gui_item): mark value.
13084         (gui_item_add_keyval_pair): add value.
13085         (gui_item_init): ditto.
13086         (gui_add_item_keywords_to_plist): ditto.
13087         (gui_item_equal): ditto.
13088         (syms_of_gui): add Q_value.
13089
13090         * glyphs-x.c (x_progress_gauge_update): use pending items and
13091         value for setting the state.
13092         (x_update_widget): don't set items from pending here.
13093
13094         * glyphs-widget.c (update_widget): update items here.
13095         (progress_gauge_set_property): use items for storing value. Put
13096         new value in pending items.
13097
13098         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13099         items for new value. Convert percent -> value.
13100         (mswindows_tab_control_update): don't update items here.
13101
13102         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13103         (update_subwindow): ditto.
13104         (image_instance_changed): new function. Compare hash values and
13105         past and present widget items.
13106         (image_instantiate): We more careful about where we instantiate
13107         things.
13108         (image_instantiate): add error checking.
13109
13110         * gutter.c (syms_of_gutter): use -hook.
13111
13112 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13113
13114         * console-tty.c (Fset_console_tty_input_coding_system): Use
13115         Qkeyboard.
13116         (Fset_console_tty_output_coding_system): Use Qterminal.
13117         (tty_init_console): Use Qkeyboard and Qterminal.
13118
13119 2000-03-21  Ben Wing  <ben@xemacs.org>
13120
13121         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13122         From Mike Alexander <mta@arbortext.com>.
13123
13124 2000-03-21  Ben Wing  <ben@xemacs.org>
13125
13126         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13127         process brokenness.  Proper implementation to come.
13128         * callproc.c:
13129         Rename call-process-internal to old-call-process-internal.
13130         New impl. in process.el.
13131
13132 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13133
13134         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13135
13136 2000-03-20  Andy Piper  <andy@xemacs.org>
13137
13138         * glyphs.c (full_list_hash): make hashes of the same elements in
13139         different orders return different values.
13140
13141 2000-03-20  Martin Buchholz <martin@xemacs.org>
13142
13143         * XEmacs 21.2.32 is released.
13144
13145 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13146
13147         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13148         (DFC_MALLOC_USE_CONVERTED_DATA):
13149         Add aliasing-safe casts to allow use with char* or unsigned char*
13150         lvalues.
13151
13152         * eldap.c (Fldap_open):
13153         (Fldap_search_basic):
13154         (Fldap_add):
13155         (Fldap_modify):
13156         Make C++-compilable.
13157         Make sure GCPRO'ed variables are initialized.
13158         Use temp variables to avoid repeated calls to Flength.
13159
13160 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13161
13162         * sysfile.h:
13163         Make sure PATH_MAX is always defined.
13164         Include limits.h for PATH_MAX.
13165         Deprecate use of MAXPATHLEN.
13166
13167 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13168
13169         * emacs.c: Add reinit_vars_of_fileio.
13170         * symsinit.h: Add reinit_vars_of_fileio.
13171         * fileio.c (reinit_vars_of_fileio): New.
13172         * fileio.c (Fmake_temp_name):
13173         Initialize temp_name random number from microseconds to make
13174         collisions even less likely.  Initialize always at process startup
13175         time.  (make-temp-name) used to return the same file name twice in
13176         a row when PDUMP.
13177         Random stylistic fiddling.
13178         Comment fixes.
13179
13180 2000-03-20  Andy Piper  <andy@xemacs.org>
13181
13182         * glyphs.c (image_instantiate): allow text glyphs to be
13183         instantiated in the minibuffer window.
13184
13185 2000-03-19  Andy Piper  <andy@xemacs.org>
13186
13187         * glyphs.c (image_instance_hash): be careful about which items we
13188         hash on.
13189
13190         * glyphs-widget.c (tab_control_set_property): record into pending
13191         items rather than the actual items.
13192
13193         * glyphs-x.c (x_update_widget): use pending items to update with.
13194
13195         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13196         to update with.
13197
13198         * glyphs.c (mark_image_instance): mark pending items.
13199
13200         * window.c (Fset_window_configuration): record the buffer.
13201         (Fselect_window): totally revert previous change which breaks many
13202         things.
13203
13204 2000-03-18  Andy Piper  <andy@xemacs.org>
13205
13206         * glyphs-msw.c (mswindows_tab_control_update): force selected
13207         item.
13208
13209         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13210         window domain cache, otherwise we get inconsistencies at
13211         startup. There is something fishy at startup which can lead to the
13212         minibuffer being the selected window when the gutter content is
13213         instantiated.
13214
13215         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13216         gcpros.
13217         (parse_gui_item_tree_children): ditto.
13218         (parse_gui_item_tree_item): ditto.
13219
13220         * glyphs.c (Fupdate_widget_instances): return something.
13221
13222 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13223
13224         * window.c (Fselect_window): Undo 2000-03-17 change.
13225
13226 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13227
13228         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13229         against v7.0 libraries.  Insta-coredump city until the postgres
13230         folks fix it.
13231
13232 2000-03-17  Andy Piper  <andy@xemacs.org>
13233
13234         * faces.c (complex_vars_of_faces): don't give the widget face an
13235         inherited background pixmap.
13236
13237         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13238         selected item.
13239
13240         * event-stream.c (Fdispatch_non_command_events): return something.
13241
13242         * gutter.c (output_gutter): use widget face.
13243         (clear_gutter): ditto.
13244
13245         * NEWS: adjust again.
13246
13247         * window.c (Fselect_window): make sure this runs to completion to
13248         avoid oddities with Fset_window_configuration.
13249         (Fcurrent_window_configuration): in general do not save the
13250         minibuffer as the selected window.
13251
13252         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13253
13254 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13255
13256         * emacs.c (Frunning_temacs_p): Revert previous patch.
13257         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13258
13259 2000-03-16  Andy Piper  <andy@xemacs.org>
13260
13261         * glyphs-x.c (x_tab_control_update): if no widget values then
13262         return.
13263
13264         * NEWS: update for new features.
13265
13266         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13267         synthetic event to the native system.
13268         (reinit_vars_of_event_Xt): set force_event_pending to
13269         emacs_Xt_force_event_pending.
13270
13271         * events.h (struct event_stream): add force_event_pending.
13272
13273         * specifier.c (recompute_one_cached_specifier_in_window): add
13274         comment.
13275
13276         * redisplay.c (redisplay_frame): don't call
13277         update_frame_subwindows. Reset subwindow cachels when
13278         subwindows_changed, removing this was an optimization too far.
13279
13280         * redisplay-output.c (compare_runes): reorganize so that we catch
13281         glyph changes when we want them. Set optimize_output when this
13282         would help layouts.
13283         (redisplay_output_layout): remove frame_really_changed, use
13284         optimize_output instead.
13285
13286         * redisplay-msw.c (mswindows_output_display_block): reset
13287         optimize_output after outputting a glyph.
13288         * redisplay-x.c (x_output_display_block): ditto.
13289         * redisplay-tty.c (tty_output_display_block): ditto.
13290
13291         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13292         functions.
13293         (gutter_specs_changed): do specific gutter positions.
13294         (top_gutter_specs_changed): new function. Only update the
13295         specified gutter specs.
13296         (bottom_gutter_specs_changed): ditto.
13297         (left_gutter_specs_changed): ditto.
13298         (right_gutter_specs_changed): ditto.
13299
13300         * gui.c (gui_item_hash_internal): new function, does a real hash.
13301         (gui_item_id_hash): use it.
13302         (gui_item_hash): hash the eval'ed gui_item.
13303
13304         * gui-x.c (popup_selection_callback): send an eval event to call
13305         Fupdate_widget_instances.
13306
13307         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13308         to call Fupdate_widget_instances.
13309
13310         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13311         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13312
13313         * glyphs.c: (update_frame_subwindows): deleted.
13314         (Fupdate_widget_instances): new function for updating the dirty
13315         state of widgets that might have changed.
13316         (syms_of_glyphs): add Qupdate_widget_instances.
13317         (full_list_hash): hash a list completely.
13318         (image_instance_hash): use it for items and properties.
13319
13320         * frame-msw.c (mswindows_size_frame_internal): remove unused
13321         variable.
13322
13323         * faces.h (struct face_cachel): fix comment.
13324
13325         * event-stream.c (Fdispatch_non_command_events): new
13326         function. Process non-command events, forcing an event cycle
13327         beforehand.
13328         (syms_of_event_stream): declare.
13329         (event_stream_force_event_pending): new function. Force an event
13330         on the native event queue so that an event cycle will occur next
13331         time we check.
13332
13333         * event-msw.c:
13334         (struct ntpipe_shove_stream):
13335         (mswindows_enqueue_dispatch_event):
13336         (mswindows_dequeue_dispatch_event):
13337         (mswindows_cancel_dispatch_event):
13338         (mswindows_pump_outstanding_events):
13339         (mswindows_drain_windows_queue):
13340         (mswindows_handle_paint):
13341         (mswindows_wnd_proc):
13342         (mswindows_key_to_emacs_keysym):
13343         (get_process_input_waitable):
13344         (emacs_mswindows_delete_stream_pair): re-indent file.
13345         (mswindows_need_event): do not process further fds if the windows
13346         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13347         fixes the 100% cpu problem.
13348         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13349
13350 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13351
13352         * alloc.h: New.
13353         * dumper.h: New.
13354         * dumper.c: New.
13355
13356         * emacs.c: Moved dump file searching to dumper.c.
13357         (Frunning_temacs_p): Fixed.
13358
13359         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13360         last_lrecord_type_index_assigned.
13361
13362 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13363
13364         * symsinit.h: Added reinit parameter to init_console_stream
13365         declaration.
13366
13367         * lisp.h: Added file parameter to pdump_load declaration.
13368
13369         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13370         support.  Added dump file searching.
13371
13372         * config.h.in: Added EMACS_PROGNAME.
13373
13374         * console-stream.c (init_console_stream): Fix reinitialisation
13375         when running from temacs.
13376
13377         * alloc.c (pdump): Add id support.
13378         (pdump_load): Add file parameter and signature/id support.
13379
13380         * Makefile.in.in: Add full pdump support.
13381
13382 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13383
13384         * postgresql.c: Update documentation to reflect latest code
13385         status.
13386         (print_result): Show tuple counts in printed representation when
13387         appropriate.
13388         (Fpq_put_nbytes): MULE-ize.
13389         (Fpq_get_line_async): Ditto.
13390
13391 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13392
13393         * postgresql.c (Fpq_lo_import): Fix return value.
13394         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13395
13396 2000-03-13  Ben Wing  <ben@xemacs.org>
13397
13398         * alloc.c (pdump_load):
13399         Fix compile warning under mswin.
13400
13401 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13402
13403         * postgresql.c: Mule-ization, bug fixes.
13404         Use PG_CODING to encapsulate coding system name changes.
13405         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13406         (pg-coding-system): Create.
13407
13408         (Fpq_conn_defaults): Mule-ize.
13409         (Fpq_connectdb): Mule-ize & bug fix.
13410         (Fpq_connect_start): Mule-ize.
13411         (Fpq_set_client_encoding): Mule-ize.
13412         (Fpq_finish): Document `DEAD' connection status.
13413         (Fpq_clear): Ditto.
13414         (Fpq_pgconn): Mule-ize.
13415         (Fpq_exec): Mule-ize & bug fix.
13416         (Fpq_send_query): Ditto.
13417         (Fpq_get_result): Ditto.
13418         (Fpq_res_status): Mule-ize.
13419         (Fpq_result_error_message): Mule-ize.
13420         (Fpq_ntuples): fix comments.
13421         (Fpq_fname): Mule-ize.
13422         (Fpq_fnumber): Mule-ize.
13423         (Fpq_ftype): fix comments.
13424         (Fpq_get_value): Mule-ize.
13425         (Fpq_cmd_status): Ditto.
13426         (Fpq_cmd_tuples): Ditto.
13427         (Fpq_oid_value): Ditto.
13428         (Fpq_notifies): Ditto.
13429         (Fpq_lo_import): Ditto.
13430         (Fpq_lo_export): Ditto.
13431         (Fpq_get_line): Ditto.
13432         (Fpq_put_line): Mule-ize and bug fix.
13433         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13434
13435 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13436
13437         * postgresql.c (vars_of_postgresql): Mule-ize.
13438         (Fpq_conn_defaults): Ditto.
13439
13440 2000-03-12  Ben Wing  <ben@xemacs.org>
13441
13442         * alloc.c (Fmake_byte_code):
13443         * alloc.c (debug_string_purity_print):
13444         * alloc.c (pdump_backtrace):
13445         * alloc.c (pdump_get_indirect_count):
13446         * alloc.c (pdump_register_sub):
13447         * alloc.c (pdump_register_object):
13448         * alloc.c (pdump_register_struct):
13449         * alloc.c (pdump_dump_data):
13450         * alloc.c (pdump_reloc_one):
13451         Minor cleanups.
13452
13453         * console-msw.c:
13454         * console-msw.c (GetConsoleHwnd):
13455         * console-msw.c (msw_hide_console):
13456         * console-msw.c (msw_show_console):
13457         * console-msw.c (msw_ensure_console_buffered):
13458         * console-msw.c (msw_output_console_string):
13459         * console-msw.c (console_type_create_mswindows):
13460
13461         a) Added functions to manipulate the console window for use with
13462         shell support.
13463
13464         b) Added support for writing text to the console, which is now
13465         used under Windows when xemacs is not being run non-interactively,
13466         to write text that would otherwise be destined for stdout because
13467         under these circumstances, text written to stdout tends to
13468         disappear and not be seen.
13469
13470         * console-msw.h:
13471         * event-Xt.c:
13472         * event-Xt.c (x_event_to_emacs_event):
13473         * event-Xt.c (describe_event_window):
13474         * events-mod.h (XEMACS_MOD_CONTROL):
13475         * events.c:
13476         * events.c (Fmake_event):
13477         * events.c (character_to_event):
13478         * events.c (event_to_character):
13479         * events.c (format_event_object):
13480         * events.c (Fevent_modifiers):
13481         * events.h:
13482         * events.h (struct key_data):
13483         * events.h (struct button_data):
13484         * events.h (struct misc_user_data):
13485         * frame-x.c (Fcde_start_drag_internal):
13486         * frame-x.c (Foffix_start_drag_internal):
13487         * gpmevent.c (Freceive_gpm_event):
13488         * keymap.c:
13489         * keymap.c (bucky_sym_to_bucky_bit):
13490         * keymap.c (control_meta_superify):
13491         * keymap.c (make_key_description):
13492         * keymap.c (keymap_lookup_directly):
13493         * keymap.c (create_bucky_submap):
13494         * keymap.c (keymap_store):
13495         * keymap.c (define_key_check_and_coerce_keysym):
13496         * keymap.c (define_key_parser):
13497         * keymap.c (define_key_alternate_name):
13498         * keymap.c (Fdefine_key):
13499         * keymap.c (raw_lookup_key_mapper):
13500         * keymap.c (struct map_keymap_unsorted_closure):
13501         * keymap.c (map_keymap_unsorted_mapper):
13502         * keymap.c (map_keymap_sort_predicate):
13503         * keymap.c (map_keymap_sorted):
13504         * keymap.c (accessible_keymaps_mapper_1):
13505         * keymap.c (where_is_recursive_mapper):
13506         * keymap.c (describe_map_mapper):
13507         * keymap.c (describe_map_sort_predicate):
13508         * keymap.c (describe_map):
13509         * keymap.c (complex_vars_of_keymap):
13510         And a number of other files, the key modifier preprocessor
13511         constants that xemacs uses have names that conflict with constants
13512         defined under MS Windows for other purposes, so they were renamed
13513         to begin with the prefix XEMACS_. The variables that hold such
13514         modifiers were changed to consistently be of type int to fix
13515         various compile warnings.
13516
13517         * console.c (complex_vars_of_console):
13518         * device.c:
13519         * device-msw.c:
13520         * device-msw.c (mswindows_finish_init_device):
13521         * device-msw.c (msw_get_workspace_coords):
13522         * device-msw.c (mswindows_device_system_metrics):
13523         and various other files, added support for a new
13524         device property called offset-workspace which returns the position
13525         of the upper left corner of the workspace area and goes along with
13526         the existing size-workspace property.
13527
13528         * dialog-msw.c:
13529         * dialog-msw.c (push_bufbyte_string_as_unicode):
13530         * dialog-msw.c (mswindows_popup_dialog_box):
13531         Added support for XEmacs-style accelerator specifications in
13532         button text.  Note: I didn't add support for this under X Windows,
13533         and somebody needs to do this.
13534
13535         * dialog.c:
13536         * dialog.c (Fpopup_dialog_box):
13537         Documented the support for accelerators that was just mentioned.
13538
13539         editfns.c (get_home_directory): Changed behavior under Windows
13540         when HOME not defined; former behavior was irretrievably broken.
13541
13542         * emacs.c:
13543         * emacs.c (main_1):
13544         * emacs.c (main):
13545         * minibuf.c (clear_echo_area_internal):
13546         * minibuf.c (echo_area_append):
13547         * print.c:
13548         * print.c (std_handle_out_external):
13549         * print.c (std_handle_out_va):
13550         * print.c (fatal):
13551         * print.c (write_string_to_stdio_stream):
13552         * print.c (output_string):
13553         * print.c (debug_print):
13554         * print.c (debug_backtrace):
13555         * print.c (debug_short_backtrace):
13556         Cleaned up the code that prints text to stdout so that this can be
13557         changed to output into a console window instead under MS Windows,
13558         as described above.
13559
13560         * eval.c:
13561         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13562         * eval.c (internal_catch):
13563         * eval.c (unwind_to_catch):
13564         * eval.c (throw_or_bomb_out):
13565         * eval.c (condition_case_1):
13566         * eval.c (signal_1):
13567         * eval.c (check_error_state_sanity):
13568         * eval.c (call_with_suspended_errors_1):
13569         * eval.c (call_with_suspended_errors):
13570         * eval.c (reinit_vars_of_eval):
13571         Added code to catch throw loops and check for a pesky bug that may
13572         be gone now.
13573
13574         * event-msw.c:
13575         * event-msw.c (key_needs_default_processing_p):
13576         * event-msw.c (mswindows_wnd_proc):
13577         * event-msw.c (mswindows_modifier_state):
13578         * event-msw.c (emacs_mswindows_quit_p):
13579         * event-msw.c (vars_of_event_mswindows):
13580         a) Added support for using the alt key to select menu items as is
13581         standard under MS Windows.  This is controlled using the variable
13582         menu-accelerator-enabled, just like under X Windows.  There is an
13583         option on the options menu to turn this support on.  I really
13584         think that it should be on by default under Windows, but I'm not
13585         going to make this change yet.
13586
13587         b)  Added support for dynamic display size changes under Windows.
13588
13589         * event-stream.c:
13590         * event-stream.c (maybe_echo_keys):
13591         * event-stream.c (Fnext_event):
13592         * event-stream.c (command_builder_find_leaf):
13593         * event-stream.c (lookup_command_event):
13594         * event-stream.c (execute_command_event):
13595         * event-stream.c (pre_command_hook):
13596         * event-stream.c (post_command_hook):
13597         * event-stream.c (syms_of_event_stream):
13598         * event-stream.c (vars_of_event_stream):
13599         * event-stream.c (complex_vars_of_event_stream):
13600         * events.h (struct command_builder):
13601
13602         a) Tried to clean up a little bit the horribly written x-specific
13603         accelerator code that crept into this file.  I moved this code
13604         into menubar-x.c where it belongs. I also needed to move the
13605         command builder structure into the file events.h because it is
13606         accessed directly by this accelerator code.  What I didn't do, but
13607         which should be done at some point, is to properly abstract this
13608         code using device methods instead of the kludgy way that it
13609         currently hooks into the event code.
13610
13611         b) Added the lisp variables this-command-properties and
13612         last-command- properties, which should be used to synchronize two
13613         adjacent commands in preference to playing games with the variable
13614         this-command, which is typically what happens.
13615
13616         c) Added some slightly nasty code to hook into the lisp support
13617         for shifted- motion-key selection.  This is actually necessary for
13618         somewhat complicated reasons, which are described in
13619         simple.el. (NB: I think the proper thing would be to have the code
13620         that calls the pre and post command hooks also call out to generic
13621         lisp functions in simple.el, where all built-in stuff could be
13622         added.  I will think about this more.)
13623
13624         * event-unixoid.c (poll_fds_for_input):
13625         * lread.c (readchar):
13626         * redisplay-tty.c (tty_clear_frame):
13627         * redisplay-x.c (x_get_gc):
13628         * signal.c (interrupt_signal):
13629         And a whole bunch of other files: fixed up places that printed
13630         directly to stderr to instead call the function stderr_out so that
13631         the changes I made under Windows work correctly.
13632
13633         * filemode.c (mode_string):
13634         Warning fixes.
13635
13636         * frame-msw.c:
13637         * frame-msw.c (mswindows_size_frame_internal):
13638         Fixed the computation of frame size and position to keep the frame
13639         within the workspace area, rather than within the physical
13640         dimensions of the screen, so that the frame doesn't overlap window
13641         manager decorations, such as the start menu and toolbar, typically
13642         at the bottom of the screen.
13643
13644         * frame.c (vars_of_frame):
13645         Changed the default frame title format under MS Windows to consist
13646         of buffername-XEmacs, which is standard under MS Windows.  I think
13647         it might be a good idea to change this everywhere because I think
13648         it is superior to the current frame title format, but this is the
13649         kind of change that is likely to cause some people to get annoyed,
13650         so I'm not making it.
13651
13652         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13653
13654         * gui-msw.c (mswindows_handle_gui_wm_command):
13655         Fixed compile warnings.
13656
13657         * gui-x.c:
13658         * gui-x.c (strdup_and_add_accel):
13659         * gui-x.c (button_item_to_widget_value):
13660         * gui-x.h:
13661         Added code to automatically put an accelerator onto the beginning
13662         of menu items that don't have one as is now the standard, and is
13663         described more later.  Also fixed things so that the menu item
13664         name can be an evaluated expression, again a new standard.
13665
13666         * gui.c:
13667         * gui.c (gui_item_add_keyval_pair):
13668         * gui.c (make_gui_item_from_keywords_internal):
13669         * gui.c (gui_add_item_keywords_to_plist):
13670         * gui.c (gui_item_accelerator):
13671         * gui.c (gui_name_accelerator):
13672         * gui.c (gui_item_included_p):
13673         * gui.c (gui_item_display_flush_left):
13674         * gui.c (gui_item_display_flush_right):
13675         * gui.c (parse_gui_item_tree_item):
13676         * gui.c (parse_gui_item_tree_children):
13677         * gui.c (parse_gui_item_tree_list):
13678         Mule-ized.  Cleanup.  GCPRO addition.
13679
13680         * line-number.c (buffer_line_number):
13681         * lisp.h:
13682         * lisp.h (EMACS_INT_MAX):
13683         Added the manifest constant EMACS_INT_MIN corresponding to the
13684         existing constant EMACS_INT_MAX.  This is partially to fix compile
13685         warnings under Windows, and partly for cleanliness.
13686
13687         * menubar-msw.c:
13688         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13689         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13690         * menubar-msw.c (displayable_menu_item):
13691         * menubar-msw.c (populate_menu_add_item):
13692         * menubar-msw.c (populate_or_checksum_helper):
13693         * menubar-msw.c (populate_menu):
13694         * menubar-msw.c (update_frame_menubar_maybe):
13695         * menubar-msw.c (prune_menubar):
13696         * menubar-msw.c (msw_char_is_accelerator):
13697         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13698         * menubar-msw.c (mswindows_handle_wm_command):
13699         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13700         * menubar-msw.c (mswindows_handle_wm_initmenu):
13701         * menubar-msw.c (mswindows_update_frame_menubars):
13702         * menubar-msw.c (mswindows_free_frame_menubars):
13703         * menubar-msw.c (mswindows_popup_menu):
13704         Fixed a bug in handling accelerators where an extra character
13705         would be displayed in the menu item.  Also generalized the
13706         function displayable_menu_item because it is now used by the
13707         dialog box code as well.  And finally, added code in the functions
13708         that create the menubar to extract a list of accelerators for the
13709         top level menubar, which is used in the event code to determine
13710         whether a particular alt-key combination should be used to invoke
13711         a menu item, or should be passed through to access the standard
13712         XEmacs keymap binding for this key combination.
13713
13714         Much needed GCPROing.
13715
13716         * menubar-x.c:
13717         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13718         * menubar-x.c (menu_item_descriptor_to_widget_value):
13719         * menubar-x.c (restore_in_menu_callback):
13720         * menubar-x.c (x_popup_menu):
13721         * menubar-x.c (menu_move_up):
13722         * menubar-x.c (menu_move_down):
13723         * menubar-x.c (menu_move_left):
13724         * menubar-x.c (menu_move_right):
13725         * menubar-x.c (menu_select_item):
13726         * menubar-x.c (command_builder_operate_menu_accelerator):
13727         * menubar-x.c (menu_accelerator_junk_on_error):
13728         * menubar-x.c (command_builder_find_menu_accelerator):
13729         * menubar-x.c (Faccelerate_menu):
13730         * menubar.h:
13731         Moved a whole bunch of code here that was previously in
13732         event-stream.c as described above.  There is also code connected
13733         to the new standard of adding an accelerator to the beginning of
13734         menu items that don't have one as described above and below.
13735
13736         * menubar.c:
13737         * menubar.c (menu_parse_submenu_keywords):
13738         * menubar.c (Fmenu_find_real_submenu):
13739         * menubar.c (Fnormalize_menu_item_name):
13740         * menubar.c (syms_of_menubar):
13741         * menubar.c (vars_of_menubar):
13742         * menubar.c (complex_vars_of_menubar):
13743
13744         a) Cleaned up a bunch of documentation and improved it.
13745
13746         b) XEmacs now automatically adds an accelerator onto the beginning
13747         of any menu items that don't have one.  I did this because there
13748         will inevitably be some menu items on the main menubar that don't
13749         have accelerators on them because the package that adds that
13750         particular menu item hasn't yet been fixed up to have accelerators
13751         in them and it looked rather strange to have some items with and
13752         some items without accelerators, especially since even in items
13753         without accelerators, you can, at least under windows, still
13754         access the item through an accelerator corresponding to the first
13755         character in the item's name.  If people don't like this behavior,
13756         I can add a variable to turn it off optionally, but I'm not sure
13757         this is a good idea because we really do need to have accelerators
13758         on all of the menu items, and if a package doesn't like the
13759         accelerators being put on the first character, then it should put
13760         the accelerators where they belong.
13761
13762         c) I made a behavior change, which is that the descriptor that
13763         specifies the text of the menu item, which formerly was just a
13764         string, can now also be an evaluated expression.  This makes this
13765         descriptor parallel with all of the others, which could also be
13766         evaluated expressions.  This also obviates the need for the
13767         keyword :label, which was previously listed in the documentation
13768         as unimplemented, and which was for the same purpose.
13769
13770         d) GCPROing.
13771
13772         * ntproc.c:
13773         * ntproc.c (new_child):
13774         * ntproc.c (sys_spawnve):
13775         * ntproc.c (find_child_console):
13776         * ntproc.c (sys_kill):
13777         Fixed compile warnings.  By the way, this file should really go
13778         away entirely, and this will happen as soon as Kirill makes his
13779         final round of process cleanups, which affect the function
13780         call-process.
13781
13782         * process-nt.c:
13783         * process-nt.c (struct nt_process_data):
13784         * process-nt.c (find_process_from_pid):
13785         * process-nt.c (send_signal_the_nt_way):
13786         * process-nt.c (enable_child_signals):
13787         * process-nt.c (find_child_console):
13788         * process-nt.c (send_signal_the_95_way):
13789         * process-nt.c (nt_finalize_process_data):
13790         * process-nt.c (ensure_console_window_exists):
13791         * process-nt.c (nt_create_process):
13792         * process-nt.c (nt_kill_child_process):
13793         * process-nt.c (nt_kill_process_by_pid):
13794         * process-nt.c (nt_open_network_stream):
13795         * process-nt.c (vars_of_process_nt):
13796         Copied over code from Emacs 20.5 to correctly send signals to sub-
13797         processes under Windows 95.  Also added code to automatically
13798         create and hide console window when a sub-process is created under
13799         Windows 95, which obviates the need for the separate runemacs.exe
13800         executable, and finally implemented some variables that were
13801         implemented in Emacs 20.5, but previously not in XEmacs.  These
13802         include mswindows- start-process-share-console and
13803         mswindows-start-process-inherit-error-mode. (Both of these only
13804         apply to Windows 95.)
13805
13806         * regex.c (regex_compile): Fixed a compile warning.
13807
13808         * select-msw.c:
13809         * select-msw.c (mswindows_own_selection):
13810         * select-msw.c (mswindows_get_foreign_selection):
13811         * select-msw.c (mswindows_disown_selection):
13812         * select-msw.c (console_type_create_select_mswindows):
13813         * select-msw.c (syms_of_select_mswindows):
13814         Cleaned up the file and implemented the device method
13815         selection_exists_p, which had accidentally been left out.  Also
13816         removed four lisp functions that were remnants from before the
13817         time when the selection code was properly device abstracted.
13818         These functions are no longer needed because there are generic
13819         equivalents, and because they were added recently and don't exist
13820         in FSF Emacs, I don't think there's any problem with just deleting
13821         them.
13822
13823         * sysdep.c:
13824         * sysdep.c (sys_subshell):
13825         Fixed a compile warning, although in this case there's probably
13826         something wrong with this code, and it ought to be looked into
13827         more thoroughly by somebody who understands it.
13828
13829         * window.c:
13830         * window.c (Fwindow_text_area_height):
13831         * window.c (Fwindow_width):
13832         * window.c (Fwindow_full_width):
13833         * window.c (Fwindow_pixel_width):
13834         * window.c (debug_print_window):
13835         * window.c (syms_of_window):
13836         Added functions window-text-area-height and window-full-width,
13837         which are functions for returning various width and height
13838         characteristics of a window. (One of these functions is necessary
13839         for making the file dialog box work correctly, and the other one
13840         was added for completeness.)  Also added a table to the
13841         documentation for window-height which describes the entire scheme
13842         for accessing width and height characteristics of a window.
13843
13844 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13845
13846         * nt.c (fstat): Added a comment for another problem with
13847         non-encapsulated [f]stat(), reported by Adrian Aichner
13848         <aichner@ecf.teradyne.com>.
13849
13850 2000-03-11  Andy Piper  <andy@xemacs.org>
13851
13852         * window.c (make_dummy_parent): initialize subwindow instance
13853         cache.
13854         (Fset_window_configuration): zero extent_modiff.
13855
13856 2000-03-10  Andy Piper  <andy@xemacs.org>
13857
13858         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13859         more changes can be triggered.
13860         (Fredisplay_frame): ditto.
13861         (Fredraw_device): ditto.
13862         (Fredisplay_device): ditto.
13863         (redisplay_frame): make non-static.
13864         (redisplay_frame): call update_frame_gutter_geometry outside of
13865         display proper.
13866
13867         * gutter.h: declare update_frame_gutter_geometry.
13868
13869         * redisplay.h: declare redisplay_frame.
13870
13871         * gutter.c (update_frame_gutter_geometry): move geometry changes
13872         in update_frame_gutters here. Geometry changes can only occur
13873         outside of redisplay.
13874         (update_frame_gutters): remove geometry change code.
13875         (Fredisplay_gutter_area): make sure that we are in display when we
13876         update and that we have flushed any size changes.
13877
13878 2000-03-11  Andy Piper  <andy@xemacs.org>
13879
13880         * alloc.c (pdump_dump_data): remove i & count shadows.
13881
13882 2000-02-27  Mike Alexander  <mta@arbortext.com>
13883
13884         * sysdep.h: Declare pdump_read_file
13885
13886         * sysdep.c (pdump_read_file): New function
13887
13888         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13889         dump data
13890
13891 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13892
13893         * lrecord.h: add `lrecord_type_pgsetenv'.
13894
13895 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13896
13897         * symsinit.h: declare (vars|syms)_of* functions.
13898         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13899
13900 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13901
13902         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13903
13904         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13905         GCCs.
13906
13907         * emacs.c (main_1): Call postgres initialization code.
13908
13909         * postgresql.h: New file.  PostgreSQL RDBMS support.
13910         * postgresql.c: New file.
13911
13912 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13913
13914         * redisplay-output.c (redisplay_output_display_block): Disable
13915         redundant code.
13916
13917 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13918
13919         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13920         (Fcanna_henkan_next): Ditto.
13921         (Fcanna_bunsetu_henkou): Ditto.
13922         (Fcanna_henkan_kakutei): Ditto.
13923         (Fcanna_henkan_end): Ditto.
13924         (Fcanna_henkan_quit): Ditto.
13925         (Fcanna_henkan_next): Set retun value correctly.
13926         (c2mu): Use unsigned char instead of signed char.
13927
13928 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13929
13930         * emacs.c (main_1): Always call syms_of_gui.
13931         * inline.c: include gui.h
13932
13933 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13934
13935         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13936         converted to Lisp_Object.
13937         (Qtop_bottom): New variable.
13938         (syms_of_redisplay): Initialize it.
13939         * redisplay.h (Vvisible_bell): Ditto.
13940         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13941         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13942         only flash top and bottom.
13943
13944 2000-03-08  Andy Piper  <andy@xemacs.org>
13945
13946         * buffer.c (Frename_buffer): record new buffer name the right way.
13947
13948 2000-03-08  Andy Piper  <andy@xemacs.org>
13949
13950         * glyphs.c (update_subwindow): increase hash depth so that widget
13951         items get picked up properly.
13952
13953         * redisplay-output.c (compare_runes): increase hash depth so that
13954         widget items get picked up properly.
13955
13956 2000-03-08  Andy Piper  <andy@xemacs.org>
13957
13958         * gutter.c (output_gutter): add some debug.
13959
13960         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13961         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13962         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13963
13964         * redisplay-output.c (compare_runes): use display_hash to
13965         determine if glyphs really are not the same.
13966
13967         * glyphs.c (update_subwindow): check display_hash to see if
13968         anything really needs to be updated. If not then do
13969         nothing. Record the display_hash after updating.
13970         (image_instance_equal): compare the image_instance face also.
13971
13972 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13973
13974         * redisplay.h: Fix comment style.
13975
13976 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13977
13978         * consle-msw.h (struct mswindows_frame):
13979         Added new member paint_pending to indicate whether a WM_PAINT
13980         magic event has been queued for this frame.
13981
13982         * event-msw.c (mswindows_drain_windows_queue):
13983         Don't queue a WM_PAINT magic event if one is already queued.
13984         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13985
13986         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13987
13988 2000-03-07  Didier Verna  <didier@xemacs.org>
13989
13990         * dired.c: #include `regex.h' after `sysfile.h'.
13991
13992 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13993
13994         * sound.c (init_nas_sound): Fix compiler warning.
13995
13996         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13997         (FREE_STRUCT_P):
13998         (MARK_STRUCT_AS_FREE):
13999         (MARK_STRUCT_AS_NOT_FREE):
14000         Make `gcc -fstrict-aliasing' work properly.
14001
14002 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14003
14004         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14005         (mswindows_delete_device): Call CoUnnitialize().
14006
14007         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14008
14009 2000-02-25    <CraigL@DyCon.com>
14010
14011         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14012         <errno.h>.
14013
14014         * sysdep.c: This extern declaration for environ prevents MinGW
14015         from finding the variable in CRTDLL.DLL.
14016
14017         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14018         windows headers.
14019         (SHGFI_EXETYPE): ..
14020         (WM_MOUSEWHEEL): ..
14021         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14022         definitions.
14023         (MMRESULT): Removed, now defined in cygwin's windows headers.
14024         (TIMECAPS): ..
14025         (uid_t,gid_t,pid_t,ssize_t): ..
14026         (_timeb): Removed, MinGW defines both _timeb and timeb.
14027         (HAVE_H_ERRNO): Added.
14028         (HAVE_TZNAME): Added, configure is not detecting this.
14029
14030 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14031
14032         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14033         * syntax.c (syntax_match): Use it.
14034
14035         * cmds.c: Import auto-fill-chars from FSF Emacs.
14036         (Vauto_fill_chars): New variables.
14037         (internal_self_insert): Check Vauto_fill_chars.
14038         (vars_of_cmds):
14039         Declare auto-fill-chars as a Lisp variable and initialize it.
14040
14041 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14042
14043         * fileio.c (Fmake_symbolic_link):
14044         (Ffile_symlink_p):
14045         Run handlers even if local machine doesn't have symlinks.
14046
14047 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14048
14049         * event-msw.c (mswindows_drain_windows_queue):
14050         Don't generate paint magic events for non-XEmacs frames.
14051
14052 2000-03-05  Andy Piper  <andy@xemacs.org>
14053
14054         * redisplay.c (redisplay_frame): generate_displayable_area and
14055         friends assumes that we are not in GC, we therefore have to make
14056         sure that this doesn't happen.
14057
14058         * gutter.c (calculate_gutter_size): generate_displayable_area
14059         assumes that we are not in GC, we therefore have to make sure that
14060         this doesn't happen.
14061
14062 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14063
14064         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14065
14066 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14067
14068         * redisplay.c (regenerate_window): Make sure we set a sane value
14069         for end_pos even if we jump out of the loop.
14070         (regenerate_window): Answer Ben's question :-).
14071         (start_end_of_last_line): Add may_error argument.
14072         (start_of_last_line):
14073         (end_of_last_line): Pass may_error = 0.
14074         (end_of_last_line_may_error): New function.
14075         (pixel_to_glyph_translation): Use it, so we don't crash in
14076         event_to_glyph.
14077
14078 2000-03-04  Andy Piper  <andy@xemacs.org>
14079
14080         * window.h (struct window): add gutter_extent_modiff.
14081
14082         * window.c (allocate_window): zero out gutter_extent_modiff.
14083
14084         * redisplay.h: declare sync_display_line_structs.
14085
14086         * redisplay.c (add_glyph_rune): add a better comment.
14087
14088         * redisplay-output.c (sync_display_line_structs): made non-static.
14089         (compare_runes): remove unneccesary glyph cachel access.
14090
14091         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14092
14093         * gutter.c (output_gutter): don't output the gutter if extent
14094         changes only involve extents in buffers. use 4 sets of display
14095         lines.
14096         (gutter_extent_signal_changed_region_maybe): new function. Mark
14097         extents in gutters as changed.
14098         (update_frame_gutters): use 4 sets of display lines.
14099         (reset_gutter_display_lines): ditto.
14100         (free_frame_gutters): ditto.
14101         (redraw_exposed_gutter): force output of gutters.
14102
14103         * frame.h (struct frame): add 4 sets of gutter display lines.
14104
14105         * extents.c: (extent_changed_for_redisplay): signal changes to
14106         extents in strings in the gutter as well as extents in buffers.
14107
14108 2000-03-02  Andy Piper  <andy@xemacs.org>
14109
14110         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14111
14112         * frame.c (Fmake_frame): make sure the gutters get initialized
14113         after the frame is visible.
14114         (set_frame_selected_window): re-arrange compilation macros a
14115         little.
14116         (change_frame_size_1): mark gutters changed.
14117
14118         * device.c (Fset_device_class): mark gutters changed.
14119
14120 2000-03-01  Andy Piper  <andy@xemacs.org>
14121
14122         * window.c (window_top_frame_gutter_height): deleted.
14123         (window_bottom_frame_gutter_height): ditto.
14124         (window_left_frame_gutter_height): ditto.
14125         (window_right_frame_gutter_height): ditto.
14126         (window_top_gutter_height): don't use them.
14127         (window_bottom_gutter_height): ditto.
14128         (window_left_gutter_width): ditto.
14129         (window_right_gutter_width): ditto.
14130         (Fsplit_window): ditto.
14131         (Fwindow_pixel_edges): don't use border dimensions here.
14132
14133         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14134         (update_scrollbar_instance): ditto.
14135
14136         * redisplay.c (generate_modeline): don't take gutters into account.
14137         (generate_modeline): ditto.
14138         (redisplay_frame): small gutter display optimization.
14139
14140         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14141
14142         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14143         gutters into account.
14144
14145         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14146         for window position and type.
14147
14148         * gutter.c (get_gutter_coords): fix for frame gutters.
14149         (update_frame_gutters): update frame geometry if the gutters have
14150         changed.
14151         (init_frame_gutters): record current gutter geometries.
14152
14153         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14154         var.
14155         (mswindows_widget_instantiate): ditto.
14156
14157         * frame.h (struct frame): add current_gutter_bounds.
14158
14159         * frame.c (change_frame_size_1): position window and minibuffer
14160         appropriately taking into account the frame gutters.
14161
14162         * frame-x.c: (x_initialize_frame_size): take into account the
14163         frame gutters.
14164
14165 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14166
14167         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14168
14169 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14170
14171         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14172
14173 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14174
14175         * file-coding.c (reset_decoding_stream): Clear previous
14176         detection state when autodetect.
14177
14178 2000-02-29  Didier Verna  <didier@xemacs.org>
14179
14180         * extents.c (set_extent_glyph_1): don't require extents to be
14181         attached.
14182
14183 2000-02-27  Andy Piper  <andy@xemacs.org>
14184
14185         * gutter.c (Fset_default_gutter_position): don't default left and
14186         right gutter visibility to t.
14187         (Fset_default_gutter_position): run
14188         default-gutter-position-changed-hook.
14189         (syms_of_gutter): add default-gutter-position-changed-hook.
14190
14191 2000-02-26  Andy Piper  <andy@xemacs.org>
14192
14193         * specifier.c (Fmake_specifier): add gutter references.
14194
14195         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14196
14197         * lisp.h: declare Fvalid_plist_p.
14198
14199         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14200         as changed.
14201         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14202         well as its visibility so that it gets reconstructed.
14203         (construct_window_gutter_spec): new function. Construct a string
14204         to be displayed in the gutter from a plist of strings. Take care
14205         to only use elements that are declared as visible.
14206         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14207         WINDOW_GUTTER.
14208         (gutter_validate): allow plists of strings in the specifier.
14209         (gutter_specs_changed): construct the real_gutter from the gutter
14210         specs using construct_window_gutter_spec.
14211         (gutter_visible_validate): gutter-visible is a new specifier type.
14212         (Fgutter_visible_specifier_p): new function for the new specifier.
14213         (syms_of_gutter): declare gutter-visible and
14214         Fgutter_visible_specifier_p.
14215         (specifier_type_create_gutter): intitalize new gutter-visible
14216         specifier.
14217         (reinit_specifier_type_create_gutter): ditto.
14218         (specifier_vars_of_gutter): use new specifier type for gutter
14219         visibility.
14220         (init_frame_gutters): construct real_gutter correctly.
14221         (Fgutter_specifier_p): beef up documentation.
14222         (Fgutter_size_specifier_p): ditto.
14223
14224         * winslots.h: add real_gutter slots.
14225
14226 2000-02-25  Andy Piper  <andy@xemacs.org>
14227
14228         * device-msw.c: Be kind to older cygwin versions. From Raymond
14229         Toy <toy@rtp.ericsson.se>.
14230
14231         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14232         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14233
14234 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14235
14236         * elhash.c (MARK_OBJ): Practice macro hygiene.
14237
14238 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14239
14240         * miscplay.c: s/__inline__/inline/g;
14241         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14242         (get_device_compdc): INLINE ==> static inline
14243         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14244         find -name '*.h' | \
14245         xargs global-replace \
14246         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14247
14248 2000-02-25  Andy Piper  <andy@xemacs.org>
14249
14250         * window.c (window_top_frame_gutter_height): new function.
14251         (window_top_window_gutter_height): ditto.
14252         (window_top_gutter_height): use them.
14253         (window_bottom_frame_gutter_height): new function.
14254         (window_bottom_window_gutter_height): ditto.
14255         (window_bottom_gutter_height): use them.
14256         (window_left_window_gutter_width): new function.
14257         (window_left_frame_gutter_width): ditto.
14258         (window_left_gutter_width): use them.
14259         (window_right_window_gutter_width): new function.
14260         (window_right_frame_gutter_width): ditto.
14261         (window_right_gutter_width): use them.
14262         (window_pixel_height): new function. calulate window pixel height
14263         with frame gutter involvement.
14264         (Fsplit_window): calculate new sizes taking frame gutters into
14265         account.
14266         (window_char_height_to_pixel_height): don't include frame gutters.
14267         (window_char_height): use window_pixel_height.
14268         (window_pixheight): rename from window_pixel_height.
14269         (change_window_height): use it.
14270         (window_pixel_height_to_char_height): don't include frame gutters.
14271         (window_char_width_to_pixel_width): ditto.
14272
14273 2000-02-25  Andy Piper  <andy@xemacs.org>
14274
14275         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14276         if it is.
14277
14278 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14279
14280         * alloc.c (staticpro):
14281         (staticpro_nodump):
14282         (dumpstruct):
14283         (dumpopaque):
14284         (pdump_wire):
14285         (pdump_wire_list):
14286         (compact_string_chars):
14287         (pdump_dump_wired):
14288         Convert:  if (foo) abort();  ==>  assert (! foo);
14289
14290         * eldap.c (Fldap_search_basic):
14291         (Fldap_add):
14292         (Fldap_modify):
14293         (Fldap_delete):
14294         Fix compiler warnings, and possible crashes if (random) return
14295         value were to be used.
14296
14297 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14298
14299         * device-msw.c: Workaround ResetDC failure.
14300
14301         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14302         applying a devmode.
14303
14304         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14305         (mswindows_text_width): Do not start printer page.
14306
14307         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14308
14309         * glyphs-msw.c: Added image methods to msprinter console and
14310         msprinter-specific image instantiation.
14311
14312 2000-02-20  Mike Alexander  <mta@arbortext.com>
14313
14314         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14315         to avoid crashes when selection-sets-clipboard is on
14316         (mswindows_own_selection): ditto
14317
14318 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14319
14320         * glyphs-msw.c:
14321         * redisplay-msw.c (get_frame_dc):
14322         (get_frame_compdc):
14323         * console-msw.h:
14324         * device-msw.c (mswindows_init_device):
14325         (mswindows_delete_device):
14326         (msprinter_init_device):
14327         (msprinter_delete_device):
14328         * frame-msw.c (mswindows_init_frame_1):
14329         (mswindows_delete_frame):
14330         (msprinter_init_frame_3):
14331         (msprinter_delete_frame): Move compatible DC to device object from
14332         frame object, for both mswindows and msprinter. Only one at a time
14333         is needed, it is a real waste to have one per frame!
14334
14335 2000-02-23  Andy Piper  <andy@xemacs.org>
14336
14337         * glyphs.c: add dynamic width and height elements.
14338         (image_instance_equal): ditto.
14339
14340         * glyphs-widget.c (widget_query_geometry): calculate width and
14341         height dynamically if required.
14342         (initialize_widget_image_instance): initialize dynamic dimensions.
14343         (widget_instantiate): pick-up dynamic dimensions.
14344
14345         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14346         dynamic determination. Add appropriate macros.
14347
14348         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14349         dimensions safe.
14350         (WINDOW_GUTTER_SIZE): ditto.
14351         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14352
14353         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14354         inline.
14355         (get_frame_dc): ditto.
14356
14357         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14358         here.
14359
14360 2000-02-23  Martin Buchholz <martin@xemacs.org>
14361
14362         * XEmacs 21.2.31 is released.
14363
14364 2000-02-22  Ben Wing <ben@xemacs.org>
14365
14366         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14367
14368 2000-02-22  Andy Piper  <andy@xemacs.org>
14369
14370         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14371
14372 2000-02-21  Mike Sperber <mike@xemacs.org>
14373
14374         * .dbxrc:
14375         * .gdbinit:
14376         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14377         variables.
14378
14379 2000-02-21  Mike Sperber <mike@xemacs.org>
14380
14381         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14382
14383 2000-02-21  Martin Buchholz <martin@xemacs.org>
14384
14385         * XEmacs 21.2.30 is released.
14386
14387 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14388
14389         Performance hacking.
14390         * *.c (syms_of_*):
14391         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14392         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14393         * emacs.c (main_1):
14394         * lisp.h (DEFUN):
14395         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14396         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14397         * symeval.h (DEFVAR_SYMVAL_FWD):
14398         * symbols.c (guts_of_unbound_marker):
14399         Make all c_readonly objects also lisp_readonly and marked for life.
14400         * lrecord.h (struct lrecord_implementation):
14401         Document flags better.
14402         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14403         * lrecord.h (DECLARE_LRECORD):
14404         * lrecord.h (XSETRECORD):
14405         * lrecord.h (RECORDP):
14406         * lrecord.h (RECORD_TYPEP):
14407         * lrecord.h (RECORD_MARKER): New.
14408         * lrecord.h (error_check_*):
14409         * lrecord.h (CONCHECK_NONRECORD):
14410         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14411         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14412         * lrecord.h (set_lheader_implementation):
14413         * lrecord.h (enum lrecord_type): New.
14414         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14415         * alloc.c (disksave_object_finalization_1):
14416         * alloc.c (mark_object):
14417         * alloc.c (lrecord_type_index):
14418         * alloc.c (tick_lcrecord_stats):
14419         * alloc.c (Fgarbage_collect):
14420         * alloc.c (init_alloc_once_early):
14421         * alloc.c (pdump_load):
14422         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14423         * alloc.c (lrecord_type_index): Delete.
14424         Make lisp object type indexes be constant.
14425           Makes (byte-compile) 5% faster.
14426         Put all marker functions into their own array.
14427           Makes (garbage-collect) 5% faster.
14428         Optimize SYMBOL_VALUE_MAGIC_P.
14429           Makes (byte-compile) 2-3% faster.
14430         * config.h.in (gc_checking_assert): New.
14431         * alloc.c: Use gc_checking_assert().
14432         * .dbxrc: Make compatible with new object type implementation.
14433         * .gdbinit: Make compatible with new object type implementation.
14434         * alloc.c: Delete all symbols defined only for debugging, such as
14435         Lisp_Type_Vector and lrecord_charset.
14436
14437 2000-02-21  Andy Piper  <andy@xemacs.org>
14438
14439         * gui-msw.c (Fmswindows_shell_execute): fix file location
14440         problems.
14441
14442         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14443         unshowing so that set_window_buffer doesn't undo
14444         kill_buffer_hook's hard work.
14445
14446         * glyphs-widget.c (tab_control_query_geometry): don't count the
14447         first item when calculating geometry.
14448
14449         * glyphs.c (map_subwindow): remove redundant code.
14450         (update_frame_subwindows): be more circumspect about when to
14451         update subwindows.
14452
14453         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14454         when items haven't changed. Update faces if faces have changed as
14455         well as just the widget face.
14456         (x_tab_control_update): Update faces if faces have changed as well
14457         as just the widget face.
14458
14459 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14460
14461         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14462         registration.
14463         (build_syscolor_string): Use mswindows_color_to_string to try to
14464         get a named color.
14465         (mswindows_device_system_metrics): Reverse the foreground and
14466         background colors so that they match the documentation.
14467
14468         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14469         they match the default Windows palette.
14470         (mswindows_color_to_string): New function.
14471
14472 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14473
14474         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14475
14476 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14477
14478         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14479         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14480
14481         * symbols.c (init_symbols_once_early): Removed obsolete
14482         DATA_SEG_BITS related kludge.
14483         (defvar_magic): Ditto.
14484
14485         * malloc.c: Removed obsolete DATA_SEG_BITS
14486         * ralloc.c: Ditto.
14487         * mem-limits.h: Ditto.
14488
14489         * Makefile.in.in: Removed obsolete HAVE_SHM
14490         * emacs.c: Ditto.
14491
14492 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14493
14494         *  device-msw.c (mswindows_delete_device): Free DDE string
14495         handles.
14496
14497 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14498
14499         * keymap.c (get_keyelt):
14500         * unexnt.c (unexec):
14501         * vm-limit.c (memory_warnings):
14502         * ntheap.c (recreate_heap):
14503         * ntheap.h (UNINIT_PTR):
14504         * select-msw.c (Fmswindows_get_clipboard):
14505         (Fmswindows_set_clipboard):
14506         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14507         * objects-msw.c:
14508         * menubar-msw.c (displayable_menu_item):
14509         * glyphs-msw.c:
14510         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14511         * sysdep.c (sys_subshell):
14512         * process-nt.c (nt_create_process):
14513         * nt.c (normalize_filename):
14514         (dostounix_filename):
14515         (unixtodos_filename):
14516         * ntproc.c (win32_executable_type):
14517         * ntplay.c (play_sound_data_1):
14518         (play_sound_file):
14519         * editfns.c (get_home_directory):
14520         * event-msw.c (struct winsock_stream):
14521         (mswindows_dde_callback):
14522         * device-msw.c (msprinter_init_device):
14523         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14524
14525         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14526         mswindows_clear_toolbar were swapped!
14527
14528         * objects-msw.c:(colormap_t):
14529         (fontmap_t):
14530         * emacs.c (struct standard_args): Fixed const jumble.
14531
14532         * glyphs-widget.c (update_widget): Fixed comparison notation.
14533
14534         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14535
14536         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14537         __declspec(noreturn) syntax.
14538
14539 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14540
14541         * eldap.c (Fldap_open):
14542         (Fldap_search_basic):
14543         (Fldap_add):
14544         (Fldap_modify):
14545         Use new coding system conversion macros.
14546
14547 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14548
14549         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14550
14551 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14552
14553         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14554         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14555
14556         * eldap.c (Qadd, Qreplace): New constant symbols
14557         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14558         interruptions by XEmacs signals
14559         Remove unnecessary calls to slow_down_interrupts and
14560         speed_up_interrupts
14561         (Fldap_search_basic): Renamed from Fldap_search_internal
14562         Added new optional parameter VERBOSE that triggers the
14563         display of progress messages
14564         Remove unnecessary calls to slow_down_interrupts and
14565         speed_up_interrupts
14566         LDAP result code analysis rewritten
14567         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14568         (syms_of_eldap): Define the new symbols and functions
14569
14570
14571 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14572
14573         * realpath.c: Determine PATH_MAX maximally portably.
14574
14575         * insdel.c (bytecount_to_charcount): Optimize.
14576         The function used to be optimized for entirely ASCII sequences.
14577         Now it is optimized for successive characters from the same
14578         charset.  This also wins big for _mostly_ ASCII sequences.
14579
14580         * fileio.c (Ffile_truename): convert return from realpath() using
14581         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14582         - Rewrite GCPROing slightly.
14583
14584         * sysdep.c (sys_open): Do filename conversion, like all other
14585         sys_* functions.  Fixes bug:
14586         (let ((file-name-coding-system 'iso-8859-2))
14587            (write-region x y latin2-name))
14588         ==> writes filename using internal encoding.
14589
14590 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14591
14592         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14593         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14594         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14595         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14596         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14597         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14598         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14599         (CONST_IF_NOT_DEBUG): Delete.
14600         * alloc.c (this_one_is_unmarkable): Delete.
14601         (mark_object): Don't check for this_one_is_unmarkable. Use the
14602         c_readonly flag instead.
14603         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14604
14605 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14606
14607         * event-msw.c (mswindows_drain_windows_queue):
14608         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14609         away redundant repaint events.
14610
14611 2000-02-17  Andy Piper  <andy@xemacs.org>
14612
14613         * redisplay.h: declare mark_redisplay_structs.
14614
14615         * redisplay.c (redisplay_window):
14616         (redisplay_frame): don't check subwindows_state_changed.
14617         (mark_redisplay): mark gutters here.
14618
14619         * glyphs.c: (instantiate_image_instantiator): always layout if we
14620         haven't done so already.
14621         (allocate_image_instance): don't mark as dirty.
14622         (update_subwindow): bind inhibit_quit.
14623
14624         * gutter.c (mark_gutters): new function.
14625
14626         * glyphs-x.c (x_update_widget): Always resize to get round a
14627         widget bug.
14628
14629         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14630         breaking absolutely everything.
14631
14632         * gutter.h: declare mark_gutters.
14633
14634 2000-02-16  Martin Buchholz <martin@xemacs.org>
14635
14636         * XEmacs 21.2.29 is released.
14637
14638 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14639
14640         * fns.c (size_bit_vector): Fix computation of the size.
14641
14642 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14643
14644         * *.[ch]: Change CONST to const globally.
14645         find -name '*.[ch]' | \
14646         xargs global-replace \
14647         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14648         - Remove vestigial references to CONST_IS_LOSING
14649
14650 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14651
14652         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14653         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14654         events instead of dispatching them directly.
14655         (mswindows_handle_paint): New function to do repainting.
14656         (mswindows_wnd_proc):
14657         (emacs_mswindows_handle_magic_event): Call above function.
14658
14659 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14660
14661         * objects-msw.c (mswindows_create_font_variant): Return the new
14662         font handle.
14663         (initialize_font_instance): Get font metrics from the underlined
14664         variant of the font to cope with the case where the underlined
14665         font has a bigger descent.
14666
14667 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14668
14669         * gui.c (gui_item_accelerator): Return the first underlined
14670         character in item name.
14671
14672 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14673
14674         * lisp.h: Added Qprinter.
14675
14676         * general.c (syms_of_general): Initialized it.
14677
14678         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14679         (get_frame_dc):
14680         (get_frame_compdc): Made inline.
14681
14682         * console.h (struct console_methods): Added eject_page method.
14683
14684         * frame.h: Added FRAME_DISPLAY_P and friends.
14685         Aligned backslahes in many macros in more readable fashion.
14686         Added page_number to struct frame, and an accessor macro
14687         for it.
14688
14689         * defice.h: Added DEVICE_DISPLAY_P and friends.
14690
14691         * device.c (Fdevice_printer_p): Used these.
14692
14693         * frame.c (allocate_frame_core): Initialize page number.
14694         (Fprint_job_page_number):
14695         (Fprint_job_eject_page): Implemented.
14696
14697         * frame-msw.c (msprinter_eject_page): Added method.
14698         (msprinter_start_page): Added.
14699
14700         * window.c (Fwindow_truncated_p): Fixed docstring.
14701         (Fwindow_last_line_visible_height): Implemented.
14702
14703 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14704
14705         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14706
14707 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14708
14709         * syntax.c (scan_words): Always advance at least one character.
14710
14711 2000-02-13  Andy Piper  <andy@xemacs.org>
14712
14713         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14714         to make sure the glyph is in the cachels.
14715
14716         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14717         global image instance flag.
14718         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14719         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14720
14721         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14722         (Fset_image_instance_property): mark layout as changed.
14723         (invalidate_glyph_geometry_maybe): mark layout as changed.
14724         (glyph_width): use new NEEDS_LAYOUT macro.
14725         (glyph_ascent): ditto.
14726         (glyph_descent): ditto.
14727         (glyph_height): ditto.
14728         (image_instance_layout): mark layout as clean after laying out.
14729         (update_subwindow): don't mark layout as clean here.
14730
14731         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14732         should no longer be needed.
14733
14734         * glyphs-x.c (x_update_widget): sanitize asserts.
14735         (x_finalize_image_instance): sanitize assignment to widgets.
14736
14737         * glyphs-widget.c (widget_instantiate): don't need to clear the
14738         layout flag here.
14739
14740 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14741
14742         * sysdep.c (getcwd): Use standard prototype.
14743         * sysdep.h (getcwd): Use standard prototype.
14744
14745         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14746         (sequence, start, end).
14747         Remove redundant type checking.
14748         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14749         view of `caller-protects') to avoid a crash where the real fix was
14750         found elsewhere.
14751
14752 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14753
14754         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14755
14756         * s/sol2.h: Remove feature macro initialization.
14757
14758         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14759         (vector_hash): New.  Code from internal_hash.
14760         * lrecord.h:
14761         Fix up allocation subsystem comments.
14762
14763         * config.h.in: Add __EXTENSIONS__ for Solaris.
14764
14765         * systime.h (EMACS_GETTIMEOFDAY): New.
14766         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14767         Remove Solaris-specific code.
14768         Use void* for the (ignored) second arg for gettimeofday().
14769
14770         * elhash.c (hash_table_hash): Implement it, finally.
14771         * elhash.c:  Use hashcode_t.
14772
14773         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14774         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14775
14776         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14777         * fns.c (size_bit_vector):
14778         * alloc.c (size_vector):
14779         (make_vector_internal):
14780         (make_bit_vector_internal):
14781         (sweep_bit_vectors_1):
14782         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14783
14784 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14785
14786         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14787         Include strings.h to avoid warnings for bzero and strcasecmp.
14788
14789 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14790
14791         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14792         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14793
14794         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14795         sequence.
14796
14797 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14798
14799         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14800         use a value field instead.
14801         (symbol_value_forward_forward): Use value field.
14802         (DEFVAR_SYMVAL_FWD): Use value field.
14803         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14804         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14805         (DEFVAR_CONST_INT): Ditto.
14806         (DEFVAR_BOOL): Ditto.
14807         (DEFVAR_CONST_BOOL): Ditto.
14808         (DEFVAR_INT_MAGIC): Ditto.
14809         (DEFVAR_BOOL_MAGIC): Ditto.
14810
14811         * symbols.c (guts_of_unbound_marker): Use value field.
14812         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14813         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14814
14815         * lisp.h: Declare dumpopaque and noninteractive1.
14816
14817         * alloc.c (dumpopaque): Added.
14818         (pdump_dump_opaquevec): Added.
14819         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14820         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14821         noninteractive.
14822
14823 2000-02-10  Andy Piper  <andy@xemacs.org>
14824
14825         * glyphs.c (image_instance_layout): if the size changes, mark it
14826         as such.
14827
14828         * redisplay-output.c (redisplay_output_layout): Update the
14829         subwindow here.
14830         (redisplay_output_subwindow): ditto.
14831
14832         * glyphs.c (update_subwindow): make sure we reset flags for
14833         layouts as well as everything else.
14834
14835         * glyphs-widget.c (layout_layout): don't need to set the instances
14836         dimensions here.
14837
14838 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14839
14840         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14841         not HAVE_DLOPEN, which is a lower-level thing.
14842
14843         * .cvsignore: Ignore gmon.out
14844
14845 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14846
14847         * .cvsignore: Ignore portable dumper xemacs.dmp file
14848
14849 2000-02-09  Andy Piper  <andy@xemacs.org>
14850
14851         * redisplay-output.c (redisplay_output_layout): be more clever
14852         about when we output based on the changed flags.
14853
14854         * glyphs.h (struct image_instantiator_methods): add update_method.
14855         (struct Lisp_Image_Instance): add changed flags. Declare new
14856         macros for manipulating them.
14857
14858         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14859         (image_instance_parent_glyph): find an image_instance's parent
14860         glyph or image_instance.
14861         (image_instance_layout): mark the size as changed.
14862         (set_image_instance_dirty_p): new function. mark an image
14863         instance, plus all of its parents, as dirty.
14864         (Fset_image_instance_property): use it.
14865         (Fglyph_animated_timeout_handler): use it.
14866         (update_subwindow): call update_widget and device methods for
14867         update_subwindow. Mark all changed flags as clean.
14868         (Fresize_subwindow): mark size as changed.
14869
14870         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14871         failures.
14872         (x_update_subwindow): only resize subwindows here.
14873         (x_update_widget): new function. Update all changed properties of
14874         a widget.
14875         (x_resize_subwindow): deleted.
14876         (x_widget_set_property): deleted.
14877         (x_progress_gauge_set_property): deleted.
14878         (x_progress_gauge_update): new function. Implement recorded
14879         changes.
14880         (x_tab_control_update): ditto.
14881         (x_tab_control_set_property): deleted.
14882         (console_type_create_glyphs_x): declare new functions.
14883         (image_instantiator_format_create_glyphs_x): ditto.
14884
14885         * glyphs-widget.c (widget_set_property): mark text changed.
14886         (update_widget): new function. Update properties of a widget.
14887         (widget_instantiate): for layouts make sure we set their
14888         children's parent correctly.
14889         (tab_control_set_property): new function. Record changes that will
14890         take place under redisplay's control.
14891         (progress_gauge_set_property): ditto.
14892         (image_instantiator_progress_guage): declare new functions.
14893         (image_instantiator_tab_control): ditto.
14894
14895         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14896         now.
14897         (mswindows_update_widget): new function. Update all properties on
14898         a widget that have changed.
14899         (mswindows_button_update): new function. Update a button's set
14900         state.
14901         (mswindows_tab_control_update): new function. Update the items in
14902         a tab.
14903         (mswindows_tab_control_set_property): deleted.
14904         (mswindows_progress_gauge_update): new function. Update the
14905         progress gauge's progress.
14906         (mswindows_widget_set_property): deleted. This is all done
14907         asynchronously now.
14908         (mswindows_progress_gauge_set_property): ditto.
14909         (console_type_create_glyphs_mswindows): declare new methods.
14910         (image_instantiator_format_create_glyphs_mswindows): ditto.
14911
14912         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14913         (msprinter_set_frame_properties): ditto.
14914
14915         * console.h (struct console_methods): Add update_widget_method.
14916
14917 2000-02-09  Andy Piper  <andy@xemacs.org>
14918
14919         * gui-msw.c (Fmswindows_shell_execute): Make
14920         mswindows-shell-execute industrial strength.
14921
14922 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14923
14924         * lrecord.h: Make macro argument `props' match member function `plist'.
14925         * fns.c (Fget):
14926         * fns.c (Fput):
14927         * fns.c (Fremprop):
14928         * fns.c (Fobject_plist):
14929         * alloc.c:
14930         * symbols.c:
14931         Object property list frobbing cleanup.
14932         - Allow any lisp object (compared with `eq'), not just symbols, as
14933           keys in object plists.
14934         - Move symbol plist frobbing into symbols.c, where it belongs.
14935         - Move string plist frobbing into alloc.c, where it belongs.
14936         - Everything's an lrecord now, so no need to test for symbolp, etc.
14937         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14938
14939         * extents.c: Reorder code to remove declarations.
14940
14941         * frame.h (store_in_alist): Remove useless declaration.
14942
14943 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14944
14945         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14946         * config.h.in: Add HAVE_XCONVERTCASE.
14947
14948 2000-02-07  Andy Piper  <andy@xemacs.org>
14949
14950         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14951         it breaks many things.
14952
14953 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14954
14955         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14956         actually can start a common comment type.
14957         * src/syntax.h (SYNTAX_END_P): ditto for end.
14958
14959 2000-02-07  Martin Buchholz <martin@xemacs.org>
14960
14961         * XEmacs 21.2.28 is released.
14962
14963 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14964
14965         * event-Xt.c (x_keysym_to_character): New.
14966         (maybe_define_x_key_as_self_inserting_character): New.
14967         (x_has_keysym): New.
14968         Auto-define all keys on the keyboard as self-insert-key.
14969
14970 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14971
14972         * menubar.c (vars_of_menubar): A small code simplification.
14973
14974         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14975
14976         * ExternalShell.c:
14977         * ExternalClient.c:
14978         * EmacsShell-sub.c:
14979         * EmacsManager.c:
14980         * EmacsFrame.c:
14981         Use consistent style for specifying X resources.
14982
14983         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14984         This makes (dontusethis-set-symbol-value-handler) actually usable.
14985
14986         * lrecord.h (lrecord_decription_type):
14987         * alloc.c (pdump_register_sub):
14988         (pdump_dump_data):
14989         (pdump_reloc_one):
14990         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14991         Comply with XEmacs coding style.
14992         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14993         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14994
14995         * keymap.c (Faccessible_keymaps):
14996         Make (accessible-keymaps map "\C-h") do the Right Thing.
14997         Make (accessible-keymaps map []) do the Right Thing.
14998         Make (accessible-keymaps map "") do the Right Thing.
14999         (check_keymap_definition_loop): New function.
15000         (keymap_store_internal): Keep luser from shooting self in foot,
15001           via (define-key ctl-x-4-map "p" global-map).
15002         Remove fullness slot from struct Lisp_Keymap, since hash tables
15003         are now reliable.
15004         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15005
15006 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15007
15008         * redisplay.c (init_redisplay): Fix small memory leak.
15009         * elhash.h:
15010         * elhash.c (pdump_reorganize_hash_table):
15011         Rename from reorganize_hash_table. Change prototype.
15012         Reuse the original memory for hentries.  Save 100k.
15013         * alloc.c (PDUMP_READ): new macro.
15014         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15015         * alloc.c: No need to #ifndef before #undef.
15016
15017         * print.c: Allow debug_print() to print readably by modifying
15018         debug_print_readably.  Use consistent variable names.
15019
15020         * .dbxrc: Try to get things to work even if stopped in a function
15021         without source available by explicitly specifying source files.
15022 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15023
15024         * unexnt.c (_start): Removed bogus code which caused loading heap
15025         from differrent executable file.
15026         Removed bogus assignment to _fmode, which caused inconsistencies.
15027
15028 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15029
15030         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15031         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15032         Do not preliminary `#define signal sigset'.
15033
15034         * systime.h: Do not prototype environ on windows nt and cygwin,
15035         this conflicts with system header.
15036
15037         * syssignal.h: Use correct define for WINDOWSNT
15038
15039         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15040         with system header.
15041
15042         * sysdep.c (near start of file): Fixed commentary and rearranged
15043         ifdefs in readable order.
15044         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15045         (start_of_text):
15046         (end_of_text):
15047         (end_of_data): Do not compile in if using PDUMP.
15048
15049         * symsinit.h: Prototyped vars_of_nt().
15050
15051         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15052         (find_child_console): Use it.
15053         (sys_kill): Use it.
15054
15055         * ntheap.h: Do not extern os_subtype.
15056
15057         * ntheap.c (cache_system_info): Do not cache unneeded:
15058         nt_major_version, nt_minor_version and os_subtype.
15059         (recreate_heap): Do not compile in when PDUMPing.
15060
15061         * nt.c (geteuid and friends): Use the new varibale
15062         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15063         (init_user_info): Removed the above mentioned hackery.
15064         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15065         stat has been fixed in the C runtime.
15066         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15067
15068         * file-coding.c (struct file_coding_dump): Do not define
15069         ucs_to_mule_table in the struct if not MULE.
15070         (struct struct lrecord_description fcd_description_1): Do not dump
15071         the above.
15072
15073         * emacs.c (main_1): Call vars_of_nt().
15074         (right before Fdump_emacs_data): Don't need lastfile if using both
15075         portabe dumper and system malloc.
15076
15077         * alloc.c (Fmemory_limit): Conditionalized out.
15078         (pdump): Use OPEN_BINARY for the portable dump file.
15079         (pdump_load): Ditto.
15080
15081 2000-02-02  Mike Alexander  <mta@arbortext.com>
15082
15083         * nt.c (convert_time): Set tm_isdst before calling mktime and
15084         avoid calling it at all if the compiler supports 64 bit integers.
15085         Also initialize utc_base_ft before using it.
15086
15087 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15088
15089         * frame.c (change_frame_size_1): Take f->internal_border_width
15090         into consideration when calculating the width of the frame.
15091
15092 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15093
15094         * window.c (frame_min_height):
15095         (frame_size_valid_p):
15096         (frame_pixsize_valid_p): Added.
15097         (check_frame_size): Generalized.
15098
15099         * window.h: Prototyped the above.
15100
15101         * lisp.h:
15102         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15103         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15104         Deleted Vwin32_* and Vbinary_process_* unused variables.
15105
15106         * device-msw.c (msprinter_init_device): Do not get printer font
15107         list; Added DEVMODE functions.
15108
15109         * frame-msw.c: Added lots of printer code.
15110
15111         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15112         general.c.
15113
15114         * console-msw.h: Added more msprinter device private slots.
15115
15116 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15117
15118         * event-msw.c (key_needs_default_processing_p): Added.
15119         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15120
15121 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15122
15123         * glyphs.c (image_instance_layout): Mark image instance as clean
15124         after layout.
15125         (glyph_dirty_p): Removed redundant function.
15126         (invalidate_glyph_geometry_maybe): Added.
15127         (update_glyph_cachel_data): Call it.
15128
15129         * glyphs.h: Prototyped it.
15130
15131         * redisplay.c (add_glyph_rune): Call it.
15132         (redisplay_window): Reset glyphs cachels when frame faces have
15133         changed, thus forcing recomputation of built-in border glyphs.
15134
15135 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15136
15137         * Makefile.in.in: Make portable dumper and purify play well together.
15138         Add imperfect, but better than nothing, support for pdump.
15139         Remove xemacs.dmp when temacs is re-generated.
15140         Don't ignore errors when dumping xemacs.
15141
15142         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15143
15144 2000-01-28  Andy Piper  <andy@xemacs.org>
15145
15146         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15147         (setup_normal_frame): ditto.
15148         (setup_frame_without_minibuffer): ditto.
15149         (setup_minibuffer_frame): ditto.
15150         (delete_frame_internal): ditto.
15151         (Fmake_frame_invisible): ditto.
15152         (Ficonify_frame): ditto.
15153
15154         * window.h: change Fset_window_buffer signature.
15155
15156         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15157         (Fset_window_buffer): allow recording of buffer if the window is
15158         the selected window.
15159         (window_loop): Use new Fset_window signature.
15160
15161 2000-01-23  Daniel Pittman  <daniel@danann.net>
15162
15163         * config.h.in: Added template for `HAVE_ATHENA_3D'
15164
15165 2000-01-29  Andy Piper  <andy@xemacs.org>
15166
15167         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15168
15169         * gutter.c (output_gutter): Don't output if the window isn't live.
15170
15171 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15172
15173         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15174         of 01/12/00: Moved SetFocus back here where it belongs.
15175
15176 2000-01-23  Andy Piper  <andy@xemacs.org>
15177
15178         * s/cygwin32.h: declare printer things.
15179
15180 2000-01-26  Andy Piper  <andy@xemacs.org>
15181
15182         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15183         Alexander.
15184
15185 2000-01-24  Andy Piper  <andy@xemacs.org>
15186
15187         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15188         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15189
15190         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15191
15192         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15193
15194         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15195
15196         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15197         (mswindows_output_display_block): Avoid local shadows.
15198
15199         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15200         (mswindows_enqueue_mouse_button_event): ditto.
15201         (mswindows_handle_gui_wm_command): remove declaration.
15202
15203         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15204         warnings.
15205
15206         * console-msw.h: Avoid shadows.
15207         (mswindows_get_toolbar_button_text):
15208         (emacs_mswindows_create_stream_pair):
15209         (emacs_mswindows_delete_stream_pair):
15210         (mswindows_handle_toolbar_wm_command): declare.
15211
15212         * device-msw.c (build_syscolor_string): Avoid shadows.
15213
15214 2000-01-23  Andy Piper  <andy@xemacs.org>
15215
15216         * glyphs-widget.c (widget_instantiate): reverse the items for
15217         layouts so that children are in the expected order.
15218
15219 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15220
15221         * ralloc.c: safe_bcopy ==> memmove
15222         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15223         * s/msdos.h: Remove BCOPY macros.
15224         * insdel.c (gap_right): Remove BCOPY conditional code.
15225         * insdel.c (gap_left): Remove BCOPY conditional code.
15226         XEmacs demands a working ANSI C compiler - hence memmove.
15227
15228         * regex.c (regex_compile): Remove accidental use of trigraphs.
15229
15230 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15231
15232         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15233         event timestamp.
15234
15235 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15236
15237         * event-msw.c (mswindows_drain_windows_queue): Added the
15238         parameter.
15239         (mswindows_need_event): Commented the call to
15240         mswindows_drain_windows_queue().
15241         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15242         only.
15243
15244         * console-msw.h: Moved a few function prototypes here from
15245         event-msw.c.
15246
15247         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15248         parameter from unsigned short to unsigned long.
15249         (Fmswindows_shell_execute): Added return value.
15250
15251 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15252
15253         * sysdep.c (init_system_name):
15254           process-unix.c (unix_canonicalized_host_name):
15255         Don't call freeaddrinfo() if getaddrinfo() fails.
15256
15257         * process-unix.c (unix_open_unix_network_stream):
15258         Moved the code to get a port # into address loop.
15259
15260 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15261
15262         * buffer.c (reinit_vars_of_buffer):
15263         The right place to initialize conversion_in_dynarr and
15264         conversion_out_dynarr.
15265
15266         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15267
15268         * process-unix.c (unix_canonicalize_host_name): Muleize.
15269         (unix_open_network_stream): Muleize.
15270
15271         * buffer.h: Fix up prototypes for ralloc.c functions.
15272
15273 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15274         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15275         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15276                 instead of gethostbyname()
15277         * process-unix.c: In unix_canonicalize_host_name() and
15278                 unix_open_network_stream(), add code to use getaddrinfo()
15279                 instead of gethostbyname().
15280
15281 2000-01-27  Daniel Pittman <daniel@danann.net>
15282
15283         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15284         libs when built with flat Athena.
15285
15286 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15287
15288         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15289         Use coding standards for function prototypes.
15290
15291 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15292
15293         * dialog-msw.c (push_lisp_string_as_unicode):
15294         * doc.c (unparesseuxify_doc_string):
15295         * dired.c (Fuser_name_completion_1):
15296         * dired.c (Fuser_name_all_completions):
15297         * dired.c (free_user_cache):
15298         * dired.c (user_name_completion):
15299         * console-x.c (get_display_arg_connection):
15300         * minibuf.c (clear_echo_area_internal):
15301         * minibuf.c (echo_area_append):
15302         * eldap.c (Fldap_open):
15303         * eldap.c (Fldap_search_internal):
15304         * frame-x.c (x_set_frame_text_value):
15305         * frame-x.c (x_set_frame_properties):
15306         * frame-x.c (x_create_widgets):
15307         * redisplay-tty.c (term_get_fkeys_1):
15308         * objects-x.c (x_parse_nearest_color):
15309         * objects-x.c (x_valid_color_name_p):
15310         * objects-x.c (x_initialize_font_instance):
15311         * objects-x.c (x_list_fonts):
15312         * objects-x.c (x_find_charset_font):
15313         * tooltalk.c (Fadd_tooltalk_message_arg):
15314         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15315         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15316         * process-unix.c (unix_create_process):
15317         * ntproc.c (sys_spawnve):
15318         * sound.c (Fplay_sound_file):
15319         * sound.c (Fplay_sound):
15320         * buffer.c (init_initial_directory):
15321         * buffer.c (init_buffer):
15322         * editfns.c (init_editfns):
15323         * editfns.c (Ftemp_directory):
15324         * editfns.c (Fuser_full_name):
15325         * editfns.c (uncache_home_directory):
15326         * editfns.c (get_home_directory):
15327         * editfns.c (Fuser_home_directory):
15328         * editfns.c (Fformat_time_string):
15329         * editfns.c (Fcurrent_time_string):
15330         * gui-x.c (button_item_to_widget_value):
15331         * database.c (Fopen_database):
15332         * event-Xt.c (x_to_emacs_keysym):
15333         * event-Xt.c (x_event_to_emacs_event):
15334         * event-Xt.c (describe_event_window):
15335         * event-msw.c (mswindows_wnd_proc):
15336         * glyphs-eimage.c (jpeg_instantiate):
15337         * glyphs-eimage.c (gif_instantiate):
15338         * glyphs-eimage.c (png_instantiate):
15339         * glyphs-eimage.c (tiff_instantiate):
15340         * glyphs-x.c (xbm_instantiate_1):
15341         * glyphs-x.c (x_xbm_instantiate):
15342         * glyphs-x.c (x_xface_instantiate):
15343         * glyphs-x.c (autodetect_instantiate):
15344         * glyphs-x.c (cursor_font_instantiate):
15345         * glyphs-x.c (x_widget_instantiate):
15346         * glyphs-x.c (x_widget_set_property):
15347         * glyphs-x.c (x_widget_property):
15348         * glyphs-x.c (BUILD_GLYPH_INST):
15349         * print.c (write_string_to_stdio_stream):
15350         * print.c (output_string):
15351         * print.c (Falternate_debugging_output):
15352         * print.c (Fexternal_debugging_output):
15353         * glyphs-msw.c (extract_xpm_color_names):
15354         * glyphs-msw.c (mswindows_xpm_instantiate):
15355         * glyphs-msw.c (bmp_instantiate):
15356         * glyphs-msw.c (resource_name_to_resource):
15357         * glyphs-msw.c (mswindows_resource_instantiate):
15358         * glyphs-msw.c (xbm_instantiate_1):
15359         * glyphs-msw.c (mswindows_xbm_instantiate):
15360         * glyphs-msw.c (mswindows_xface_instantiate):
15361         * glyphs-msw.c (mswindows_widget_instantiate):
15362         * glyphs-msw.c (add_tree_item):
15363         * glyphs-msw.c (add_tab_item):
15364         * glyphs-msw.c (mswindows_combo_box_instantiate):
15365         * glyphs-msw.c (mswindows_widget_property):
15366         * glyphs-msw.c (mswindows_combo_box_property):
15367         * glyphs-msw.c (mswindows_widget_set_property):
15368         * console.c (stuff_buffered_input):
15369         * objects-msw.c (mswindows_initialize_color_instance):
15370         * objects-msw.c (mswindows_valid_color_name_p):
15371         * objects-msw.c (mswindows_list_fonts):
15372         * objects-msw.c (mswindows_font_instance_truename):
15373         * bytecode.c (optimize_compiled_function):
15374         * select-x.c (symbol_to_x_atom):
15375         * select-x.c (x_atom_to_symbol):
15376         * select-x.c (hack_motif_clipboard_selection):
15377         * select-x.c (selection_data_to_lisp_data):
15378         * select-x.c (lisp_data_to_selection_data):
15379         * select-x.c (Fx_get_cutbuffer_internal):
15380         * select-x.c (Fx_store_cutbuffer_internal):
15381         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15382         * buffer.h (TO_INTERNAL_FORMAT): New function.
15383         * emacs.c (make_arg_list_1):
15384         * emacs.c (make_argc_argv):
15385         * emacs.c (main_1):
15386         * emacs.c (Fdump_emacs):
15387         * emacs.c (split_string_by_emchar_1):
15388         * file-coding.h:
15389         * lisp.h:
15390         * lstream.h:
15391         * symsinit.h:
15392         * device-x.c (x_init_device):
15393         * device-x.c (Fx_valid_keysym_name_p):
15394         * device-x.c (Fx_get_font_path):
15395         * device-x.c (Fx_set_font_path):
15396         * glyphs.c (bitmap_to_lisp_data):
15397         * glyphs.c (pixmap_to_lisp_data):
15398         * alloc.c (make_ext_string): Use coding system arguments.  Update
15399         all callers.
15400         * alloc.c (build_string):
15401         * callproc.c (child_setup):
15402         * callproc.c (init_callproc):
15403         * fileio.c (lisp_strerror):
15404         * fileio.c (directory_file_name):
15405         * fileio.c (Fexpand_file_name):
15406         * fileio.c (Ffile_truename):
15407         * fileio.c (Fsysnetunam):
15408         * fileio.c (Fdo_auto_save):
15409         * sysdep.c (sys_readdir):
15410         * tests.c: New file.  Allow adding C tests.
15411         Replace GET_* macros with a more comprehensible and flexible
15412         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15413         Modify all calls.
15414         Any coding system can be used to do format conversion.
15415         Eliminate enum external_data_format.
15416         Eliminate convert_to_external_format.
15417         Eliminate convert_to_internal_format.
15418         Make sure file-name, keyboard, terminal, and ctext are always
15419         defined as coding systems or aliases.  Make
15420         file-name-coding-system, terminal-coding-system, and
15421         keyboard-coding-system magical variables that are equivalent to
15422         defining the corresponding coding system aliases.
15423
15424         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15425         * file-coding.c (Fcoding_system_alias_p): New function.
15426         * file-coding.c (Fcoding_system_aliasee): New function.
15427         * file-coding.c (append_suffix_to_symbol): New function.
15428         * file-coding.c (dangling_coding_system_alias_p): New function.
15429         * file-coding.c (Ffind_coding_system):
15430         * file-coding.c (Fcopy_coding_system):
15431         * file-coding.c (encode_coding_no_conversion):
15432         * file-coding.c (syms_of_file_coding):
15433         * file-coding.c (vars_of_file_coding):
15434         Rewrite coding system alias code.
15435         Allow nested aliases, like symbolic links.
15436         Allow redefinition of coding system aliases.
15437         Prevent existence of dangling coding system aliases.
15438
15439         * dired.c (Fuser_name_completion_1):
15440         * dired.c (Fuser_name_all_completions):
15441         A crash would happen if user did QUIT in the middle of building
15442         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15443
15444         * lisp.h:
15445         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15446
15447         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15448         an unsigned char *.  Update all callers.
15449
15450 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15451
15452         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15453
15454 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15455
15456         * elhash.c (hentry_description): Use more portable definition.
15457         (resize_hash_table): Initialize new hentries using
15458         xnew_array_and_zero, thereby simplifying the code.
15459
15460         * mule-charset.c (make_charset): Make sure entire object is
15461         initialized, to avoid Purify warnings.
15462
15463         * alloc.c (resize_string): Fix unlikely crash with big strings.
15464
15465 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15466
15467         * realpath.c (xrealpath):
15468         Don't call getwd().
15469
15470 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15471
15472         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15473
15474 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15475
15476         * unexelfsgi.c (unexec): Change the way we decide which segment
15477         should be extended.
15478
15479         Assumption that .bss section should be outside the PT_LOADable
15480         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15481         it's present) is inside the 'data' segment. This would fail the
15482         test which was used to find a segment to grow and cover new
15483         heap. Instead of this assumption, I created another one - on IRIX
15484         the segment to grow should start below .bss and it's address
15485         should extent above the end of .bss. Once this segment is
15486         identified, it's grown to accommodate the new heap and new
15487         zero-length .bss section is added at the end of .data2.
15488
15489 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15490
15491         * eval.c (Feval): Wrong number of arguments should use original
15492         function, not the indirect_function version of it.
15493
15494 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15495
15496         * glyphs-x.c (x_button_instantiate): Don't add image if
15497         it is not a pixmap.
15498         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15499         is relative.
15500
15501 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15502
15503         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15504         declaration.
15505         (DEFVAR_INT_MAGIC): Ditto.
15506         (DEFVAR_BOOL_MAGIC): Ditto.
15507         * glyphs.h: Reindent backslash.
15508
15509 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15510
15511         * glyphs-widget.c (layout_query_geometry):
15512         (layout_layout): Use correct types for gheight, gwidth.
15513
15514 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15515
15516         * EmacsManager.c (QueryGeometry): Purified.
15517
15518 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15519
15520         * alloc.c (make_float): Make sure entire object is initialized, to
15521         avoid Purify warnings.
15522         (pdump_register_sub): Remove useless assignment.
15523         (pdump): Use xmalloc, not malloc.
15524         (pdump_load): Use xmalloc, not malloc.
15525
15526 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15527
15528         * callproc.c:
15529         * dired-msw.c:
15530         * fileio.c:
15531         * process-nt.c:
15532         * redisplay-msw.c:
15533         * sysdep.c: Removed redundant #include <windows.h>
15534
15535 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15536
15537         * frame.c (delete_frame_internal): Do not delete device when its
15538         implementation so declares.
15539         (delete_frame_internal): Set device selected frame to nil when
15540         last frame goes away.
15541
15542         * device-msw.c (msprinter_device_system_metrics): Implemented.
15543         (mswindows_device_system_metrics): Added 'device-dpi property.
15544
15545         * device.c: (Fdevice_printer_p): Added.
15546         Added 'offset-workspace device metric.
15547
15548         * console.h (device_metrics): Declared DM_offset_workspace.
15549
15550 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15551
15552         * fileio.c (Ffile_truename): Remove pointless and confusing
15553         initialization of elen.
15554
15555         * glyphs-widget.c: Compiler warning fixes.
15556
15557 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15558
15559         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15560         instead of a Lisp_Object as argument to make it consistent with
15561         the other LIVE_P macros.
15562         (CHECK_LIVE_PROCESS): New macro.
15563
15564         * process.c: Declare Qprocess_live_p.
15565         (Fprocess_live_p): New function.
15566         (create_process): Use PROCESS_LIVE_P.
15567         (read_process_output): Ditto.
15568         (set_process_filter): Ditto.
15569         (Fdelete_process): Ditto.
15570         (kill_buffer_processes): Ditto
15571         (process_send_signal): Use CHECK_LIVE_PROCESS.
15572         (Fprocess_input_coding_system): Check whether process is still
15573         alive (fix PR#1061).
15574         (Fprocess_output_coding_system): Ditto.
15575         (Fprocess_coding_system): Ditto.
15576         (Fset_process_input_coding_system): Ditto.
15577         (Fset_process_output_coding_system): Ditto.
15578
15579 2000-01-23  Andy Piper  <andy@xemacs.org>
15580
15581         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15582         layout and widget.
15583
15584         * glyphs.c (mark_image_instance): take into account changed
15585         image_instance format.
15586         (image_instance_equal): ditto.
15587         (image_instance_hash): ditto.
15588
15589         * glyphs-widget.c (widget_instantiate): Incorporate layout
15590         instantiation here. Delay layout of the layout until later.
15591         (layout_instantiate): deleted.
15592         (layout_query_geometry): new function. get the geometry of a
15593         layout.
15594         (layout_layout): layout a layout dynamically.
15595         (image_instantiator_widget): New function - splitting up
15596         image_instantiator_format_create_glyphs_widget for netwinder
15597         compilation.
15598         (image_instantiator_buttons):
15599         (image_instantiator_edit_fields):
15600         (image_instantiator_combo_box):
15601         (image_instantiator_scrollbar):
15602         (image_instantiator_progress_guage):
15603         (image_instantiator_tree_view):
15604         (image_instantiator_tab_control):
15605         (image_instantiator_labels):
15606         (image_instantiator_layout): ditto.
15607         (image_instantiator_format_create_glyphs_widget): Call preceding
15608         functions.
15609
15610 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15611
15612         * process.c (Fset_process_coding_system):
15613         * device-x.c (Fx_keysym_hash_table):
15614         Docstring fixes.
15615
15616         * lstream.c (Lstream_write): Return documented value, not 0.
15617
15618         * fileio.c (directory_file_name):
15619         (Fsubstitute_in_file_name):
15620         (Fsubstitute_insert_file_contents_internal):
15621         (Fwrite_region_internal):
15622         * emacs.c:
15623         * sysdep.c:
15624         * getloadavg.c:
15625         * systty.h:
15626         Remove vestigial APOLLO-conditional code.
15627
15628 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15629
15630         * getpagesize.h: Add guard macros.
15631         * libsst.h: Add guard macros.
15632         * libst.h: Add guard macros.
15633         * line-number.h: Add guard macros.
15634         * ndir.h: Add guard macros.
15635         * sysfloat.h: Add guard macros.
15636         * sysfile.h: Add guard macros.
15637         * sysproc.h: Add guard macros.
15638         * syswait.h: Add guard macros.
15639         * xintrinsic.h: Add guard macros.
15640         * xintrinsicp.h: Add guard macros.
15641         * xmmanager.h: Add guard macros.
15642         * xmmanagerp.h: Add guard macros.
15643         * xmprimitive.h: Add guard macros.
15644         * xmu.h: Add guard macros.
15645         * gpmevent.h: Add copyright statement. Add guard macros.
15646         * miscplay.h: Add guard macros.
15647         * *.h: Use consistent C-standards-approved guard macro names.
15648
15649         * opaque.c (make_opaque): Switch parameter order.
15650         * opaque.h (make_opaque): Switch parameter order.
15651         Update all callers.
15652         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15653
15654         * config.h.in (type_checking_assert): Added.
15655         (bufpos_checking_assert): Added.
15656
15657 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15658
15659         * alloc.c: Harmless pdump changes.
15660         - Use countof().
15661         - spell alignment correctly.
15662         * sysdep.c: Use countof()
15663
15664 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15665
15666         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15667         initially_selected_for_input() console method, default to 0.
15668         (semi_canonicalize_console_connection): Try to delegate to
15669         canonicalize_console_connection if no such console method.
15670         (canonicalize_console_connection): Vice versa.
15671         (print_console): Do not print nil connection.
15672
15673         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15674         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15675         (XDEVIMPF_FRAMELESS_OK): Added.
15676         (CONSOLE_INHERITS_METHOD): Added.
15677
15678         * console-msw.c (mswindows_canonicalize_console_connection):
15679         Added.
15680         (mswindows_canonicalize_device_connection): Added.
15681
15682         * console-msw.h (struct msprinter_device): Added this struct and
15683         accessor macros.
15684         (mswindows_device): Made fontlist a lisp object.
15685
15686         * device.c (semi_canonicalize_device_connection):  Try to delegate
15687         to canonicalize_device_connection if no such console method.
15688         (canonicalize_device_connection): Vice versa.
15689         (print_device): Do not print nil connection.
15690
15691         * device-msw.c (mswindows_init_device): Call InitCommonControls
15692         when have widgets.
15693         (mswindows_delete_device): Removed fontlist deallocation.
15694         (mswindows_mark_device): Added.
15695
15696         * events.c (event_equal): Added abort() at unreached code.
15697         (event_hash): Ditto.
15698
15699         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15700         fallback tags of Windows devices.
15701
15702         * general.c (syms_of_general): Initialized Qmsprinter.
15703
15704         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15705         of fallback tags of Windows devices.
15706
15707         * lisp.h: Declared Qmsprinter.
15708
15709         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15710         of strings.
15711         (mswindows_list_fonts): Ditto.
15712         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15713         that it can be used by both mswindows and msprinter devices.
15714         (initialize_font_instance): Added.
15715         (mswindows_initialize_font_instance): Use it.
15716         (msprinter_initialize_font_instance): Added.
15717
15718         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15719         and implementation flags check.
15720         (redisplay_without_hooks): Changed the call to the above.
15721         (Fredraw_device): Ditto.
15722         (Fredisplay_device): Ditto.
15723
15724         * redisplay-msw.c (get_frame_dc): Implemented.
15725         (get_frame_compdc): Implemented.
15726         (many functions): Use the two functions above to get device
15727         contexts, ether for a window or a printer.
15728
15729 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15730
15731         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15732         initialization here.
15733         (init_symbols_once_early): Call it.
15734         * emacs.c (main_1): Call it.
15735         * symsinit.h: Declare it.
15736
15737 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15738
15739         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15740         Lisp_Object.
15741         (pdump_backtrace): Ditto.
15742         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15743         (pdump_get_entry): Abort if trying to register a null pointer.
15744         (pdump_dump_data): Cleanup types when relocating.
15745         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15746         (pdump_dump_rtables): Remove bad casts.
15747         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15748         Lisp_Object instead of a EMACS_INT for the hashtable
15749         reorganization.
15750
15751 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15752
15753         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15754
15755         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15756
15757         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15758
15759         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15760
15761 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15762
15763         * faces.h (FACE_STRIKETHRU_P): Added.
15764
15765         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15766         of font variants.
15767
15768         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15769         (mswindows_set_dc_font): New function, aware of font variants,
15770         separated from mswindows_update_dc.
15771
15772         * objects-msw.h (struct mswindows_font_instance_data): Added
15773         definition.
15774
15775         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15776         cached fonts and the data structure.
15777         (mswindows_initialize_font_instance): Added creation of font data
15778         structure.
15779         (mswindows_print_font_instance): Print at least something.
15780         (mswindows_create_font_variant): Implemented.
15781         (mswindows_get_hfont): Implemented.
15782
15783 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15784
15785         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15786         prototyping problem with msvc.
15787
15788         * emacs.c (main_1): added syms_of_gui_mswindows() call
15789
15790         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15791         syms_of_gui_mswindows() function
15792
15793         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15794
15795 2000-01-18  Martin Buchholz <martin@xemacs.org>
15796
15797         * XEmacs 21.2.27 is released.
15798
15799 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15800
15801         * glyphs-eimage.c (struct tiff_error_struct):
15802         (tiff_error_func):
15803         (tiff_warning_func):
15804         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15805
15806         * unexmips.c:
15807         * unexhp9k3.c:
15808         * unexfreebsd.c:
15809         * unexec.c: Remove vestigial Lucid C code.
15810         * unexalpha.c:
15811         * unexaix.c:
15812         * termcap.c:
15813         * libsst.c: Ansify.
15814         Remove declarations of errno and strerror().
15815
15816         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15817
15818         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15819
15820 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15821
15822         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15823         Optimize.
15824
15825 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15826
15827         * md5.c:
15828         * file-coding.c:
15829         * file-coding.h:
15830         Change enum eol_type to eol_type_t.
15831
15832 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15833
15834         * gui.c (get_gui_callback): Check cons before accessing car.
15835
15836 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15837
15838         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15839         (XSETSPECIFIER_TYPE): Ditto.
15840
15841 2000-01-17  Didier Verna  <didier@xemacs.org>
15842
15843         * redisplay.c (generate_fstring_runes): compute string size in
15844         characters, not bytes.
15845
15846 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15847
15848         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15849
15850 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15851
15852         * print.c (print_error_message): Call print_prepare().
15853
15854 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15855
15856         * .dbxrc: Renamed from dbxrc.
15857
15858         * events.c (event_to_character):
15859         Use `assert (foo)' instead of `if (!foo) abort()'
15860
15861         * .gdbinit (xtype): Add documentation.
15862         * .gdbinit (check-temacs): New function.
15863         * .gdbinit (check-xemacs): New function.
15864         * dbxrc (check-xemacs): New function.
15865         * dbxrc (check-xemacs): New function.
15866
15867 2000-01-14  Andy Piper  <andy@xemacs.org>
15868
15869         * glyphs-widget.c (widget_query_geometry): Make sure that we
15870         calculate default dimensions correctly.
15871
15872 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15873
15874         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15875
15876         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15877         pdump_wire'd variable.
15878
15879         * emacs.c: (main_1): Conditionalized calls to
15880         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15881
15882 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15883
15884         * window.c (Fset_window_configuration):
15885         * sysdep.c (_start):
15886         * input-method-motif.c (res):
15887         * event-Xt.c (Xt_process_to_emacs_event):
15888         Simple compiler warning fixes.
15889
15890         * bytecode.c (funcall_compiled_function): Use the original
15891         function symbol on the backtrace list in preference to the
15892         compiled_function object in error messages.
15893
15894 2000-01-13  Andy Piper  <andy@xemacs.org>
15895
15896         * glyphs-x.c (update_widget_face): Make sure we update the widget
15897         background as well as foreground.
15898
15899 2000-01-13  Andy Piper  <andy@xemacs.org>
15900
15901         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15902         fields to subwindow.
15903         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15904         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15905         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15906         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15907
15908         * glyphs-widget.c (check_valid_tab_orientation): new function.
15909         (initialize_widget_image_instance): zero orientation and
15910         justification.
15911         (widget_instantiate): pick up orientation.
15912         (tab_control_query_geometry): return appropriate values for
15913         vertical tabs.
15914
15915         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15916         appropriate creation flags for left, right and bottom tabs.
15917
15918         * s/cygwin32.h: add tab definitions.
15919
15920 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15921
15922         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15923         frame upon hiding a subwindow.
15924         (mswindows_button_instantiate): Changed the push button style to
15925         BS_PUSHBUTTON.
15926         (mswindows_button_instantiate): Removed button BS_NOTIFY
15927         style.
15928         (mswindows_button_instantiate): Removed redundant check for
15929         a disabled gui item.
15930         (mswindows_button_instantiate): Made use of WS_TABSTOP
15931         consistent: "operable" controls (edit, button, tree, scroll) have
15932         this style, "display-only" ones (static, progress gauge) do
15933         not. This style is currently ignored by XEmacs though. Also,
15934         removed the WS_EX_CONTROLPARENT style - it is not for children,
15935         it is for their parents!
15936         (mswindows_edit_field_instantiate): Ditto.
15937         (mswindows_progress_gauge_instantiate): Ditto.
15938         (mswindows_tree_view_instantiate): Ditto.
15939         (mswindows_tab_control_instantiate): Ditto.
15940         (mswindows_scrollbar_instantiate): Ditto.
15941         (mswindows_combo_box_instantiate): Ditto.
15942         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15943         style to the "clip" window.
15944         (mswindows_button_instantiate): Removed compilation warning by
15945         equally typing terms of the ?: operator.
15946
15947 2000-01-12  Didier Verna  <didier@xemacs.org>
15948
15949         * redisplay.c (generate_fstring_runes): new parameter holding the
15950         last modeline-format extent.
15951         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15952         extent, fill the glyph block with it.
15953         (generate_fstring_runes): handle these parameters.
15954         (generate_formatted_string_db): ditto.
15955
15956         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15957         glyphs'extents in the modeline.
15958
15959 1999-01-11  Mike Woolley  <mike@bulsara.com>
15960
15961         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15962         256Mb, as a workaround for the non-starting problem many people
15963         have experienced.
15964
15965 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15966
15967         * console-tty.c (Fset_console_tty_output_coding_system):
15968         Force redrawing tty frame.
15969
15970 2000-01-10  Didier Verna  <didier@xemacs.org>
15971
15972         * redisplay.c (generate_fstring_runes): fix size computation bug.
15973
15974 2000-01-09  William M. Perry <wmperry@aventail.com>
15975
15976         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15977
15978 2000-01-09  Andy Piper  <andy@xemacs.org>
15979
15980         * glyphs-msw.c: index -> i to avoid shadows.
15981         (xbm_create_bitmap_from_data): make static.
15982         (check_valid_string_or_int): deleted.
15983         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15984
15985         * glyphs-x.c (x_update_subwindow): remove unused args.
15986
15987         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15988         back pointer - this is done in allocate_image_instance.
15989         (query_string_font): return Qnil to make the compiler happy.
15990         (unmap_subwindow): set to ~0 to make the compiler happy.
15991         (glyph_query_geometry): comment out until used.
15992         (glyph_layout): ditto.
15993
15994 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15995
15996         * insdel.c (signal_after_change): Remove extraneous unbind_to().